query
stringlengths 7
33.1k
| document
stringlengths 7
335k
| metadata
dict | negatives
sequencelengths 3
101
| negative_scores
sequencelengths 3
101
| document_score
stringlengths 3
10
| document_rank
stringclasses 102
values |
---|---|---|---|---|---|---|
Attachment att = dao.findById(attachSeq); | @Override
@Transactional(rollbackFor= {Exception.class})
public int deleteByid(int attachSeq) {
return aDao.deleteByid(attachSeq);
// fUtil.delAttachedFile(att);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"NjOrderAttachment selectByPrimaryKey(String id);",
"AttachmentDTO findOne(Long id);",
"@Override\n\tpublic Tnoticeattach getAttachById(Long attachs) {\n\t\tSystem.out.println(attachs);\n\t\treturn (Tnoticeattach) queryOneObject(\n\t\t\t\t\"select t from Tnoticeattach t where t.naattachid= ?\", attachs);\n\t}",
"public interface AttachmentRepo extends CrudRepository<Attachment,Long> {\n}",
"@Override\n\tpublic ArrayList<Attachment> getAttachment(String docType, int seq) {\n\t\treturn aDao.getAttachment(docType, seq);\n\t}",
"public interface AttachmentRepository extends JpaRepository<Attachment,Long> {\n}",
"AnnouncementDO selectByPrimaryKey(Integer announceid);",
"int insertSelective(NjOrderAttachment record);",
"int updateByPrimaryKeySelective(NjOrderAttachment record);",
"int updateByPrimaryKey(NjOrderAttachment record);",
"public interface AttachmentsRepo extends PagingAndSortingRepository<AttachmentEntity, String> {\n List<AttachmentEntity> findByMessageId(String guid);\n}",
"public cn.com.ho.workflow.infrastructure.db.tables.pojos.ActHiAttachment fetchOneById_(String value) {\n return fetchOne(ActHiAttachment.ACT_HI_ATTACHMENT.ID_, value);\n }",
"EhrPersonFile selectByPrimaryKey(Long id);",
"List<NjOrderAttachment> selectByExample(NjOrderAttachmentExample example);",
"mailIdentify selectByPrimaryKey(Integer id);",
"@GET\n\t\t\t@Path(\"/{id}/record\")\n\t\t\t@Produces({\"application/xml\"})\n\t\t\tpublic Rows getAttachmentRecord() {\n\t\t\t\tRows rows = null;\n\t\t\t\ttry {\n\t\t\t\t\trows=new AttachmentDao(uriInfo,header).getAttachmentRows();\n\t\t\t\t} catch (AuthenticationException e) {\n\t\t\t\t\t rows=new TemplateUtility().getFailedMessage(e.getMessage());\n\t\t\t\t\t e.printStackTrace();\n\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\t logger.info( \"Error calling getAttachmentRecord()\"+ ex.getMessage());\n\t\t\t\t\t ex.printStackTrace();\n\t\t\t\t}\n\t\t\t\treturn rows;\n\t\t\t}",
"public static List<Generic> getAttachmentsDetail(Connection conn,String campus,int id,int seq,String originalname) throws Exception {\n\n\t\treturn getAttachmentsDetail(conn,campus,id,seq,originalname,\"\");\n\n\t}",
"EnterprisePicture selectByPrimaryKey(Integer id);",
"int updateByPrimaryKeyWithBLOBs(AnnouncementDO record);",
"DiaryFile selectByPrimaryKey(String maperId);",
"@Override\n\tpublic AttachmentHibernateDAO getAttachmentDAO() {\n\t\treturn (AttachmentHibernateDAO)instantiateDAO(AttachmentHibernateDAO.class);\n\t}",
"SysPic selectByPrimaryKey(Integer id);",
"AutoAssessDetailWithBLOBs selectByPrimaryKey(Long id);",
"int insert(NjOrderAttachment record);",
"int updateByPrimaryKeyWithBLOBs(ResumePractice record);",
"QuestionWithBLOBs selectByPrimaryKey(Integer id);",
"public Object getAttachment() {\n\treturn attachment;\n }",
"int updateByPrimaryKeyWithBLOBs(Subject record);",
"public interface AttachmentService extends DAO {\n\n /**\n * 查找合同对应的附件\n *\n * @param contract 合同编号\n * @return 附件列表\n */\n public List<Attachment> findByContractId(String contract);\n\n /**\n * 上传附件\n *\n * @param attachment 文件信息\n * @param attachmentName 文件名\n * @return 文件名\n */\n public String uploadAttachment(File attachment, String attachmentName);\n}",
"public List<cn.com.ho.workflow.infrastructure.db.tables.pojos.ActHiAttachment> fetchById_(String... values) {\n return fetch(ActHiAttachment.ACT_HI_ATTACHMENT.ID_, values);\n }",
"Page<AttachmentDTO> findAll(Pageable pageable);",
"FileRecordAdmin selectByPrimaryKey(String id);",
"PicInfo selectByPrimaryKey(Integer r_p_i);",
"public E findById(Serializable pk) ;",
"FileSet selectByPrimaryKey(Integer id);",
"PaasCustomAutomationRecord selectByPrimaryKey(Integer id);",
"@Override\n\tpublic List<String> getAttach() throws Exception {\n\t\treturn dao.getAttach();\n\t}",
"public interface PhotoRepository extends CrudRepository<Photo, UUID> {\n\n Photo findByFilename(String filename);\n}",
"int updateByPrimaryKeyWithBLOBs(AutoAssessDetailWithBLOBs record);",
"int updateByPrimaryKeySelective(AutoAssessDetailWithBLOBs record);",
"ResourceWithBLOBs selectByPrimaryKey(Integer resourceid);",
"Storage selectByPrimaryKey(Integer recordId);",
"public IncomingReport find(Integer id) throws DAOException;",
"public interface AttachmentService {\n\n /**\n * Save a attachment.\n *\n * @param attachmentDTO the entity to save\n * @return the persisted entity\n */\n AttachmentDTO save(AttachmentDTO attachmentDTO);\n\n /**\n * Get all the attachments.\n *\n * @param pageable the pagination information\n * @return the list of entities\n */\n Page<AttachmentDTO> findAll(Pageable pageable);\n\n /**\n * Get the \"id\" attachment.\n *\n * @param id the id of the entity\n * @return the entity\n */\n AttachmentDTO findOne(Long id);\n\n /**\n * Delete the \"id\" attachment.\n *\n * @param id the id of the entity\n */\n void delete(Long id);\n\n /**\n *根据转运编码获取转运上传的图片\n * @param code\n * @param request\n * @return\n */\n List<AttachmentDTO> findFilesByTranshipCode(String code, HttpServletRequest request);\n\n /**\n * 修改附件的基本信息\n * @param attachmentDTO\n * @return\n */\n AttachmentDTO updateAttachment(AttachmentDTO attachmentDTO);\n}",
"int updateByPrimaryKeyWithBLOBs(ActActivityRegister record);",
"NewsFile selectByPrimaryKey(Integer fileId);",
"@Test\r\n\tpublic void findByFileInfoID() {\n\t\tSystem.out.println(123);\r\n\t\tint file_id = 1;\r\n\t\tFileInfo f= fileInfoDao.findByFileInfoID(file_id);\r\n\t\tdd(f);\r\n\t\t\r\n\t}",
"ResPartnerBankEntityWithBLOBs selectByPrimaryKey(Integer id);",
"int updateByPrimaryKeyWithBLOBs(TbMessage record);",
"int updateByPrimaryKeyWithBLOBs(DashboardGoods record);",
"@Override\n\tpublic int insert(Attachment attach) {\n\t\treturn aDao.insert(attach);\n\t}",
"Enfermedad selectByPrimaryKey(Integer idenfermedad);",
"int updateByPrimaryKeyWithBLOBs(QuestionWithBLOBs record);",
"int updateByPrimaryKeyWithBLOBs(Goods record);",
"@Override\n\tpublic ImageEntity find(Object primarykey) {\n\t\treturn (ImageEntity) DatabaseContext.find(ImageEntity.class, primarykey);\n\t}",
"AuthorDO selectByPrimaryKey(Long authorId);",
"int updateByPrimaryKeyWithBLOBs(SysPic record);",
"IceApp selectByPrimaryKey(Long id);",
"List<Attachment> getAttachmentList(ContentIdentifier id);",
"public Object attachment(Object key);",
"int updateByPrimaryKeyWithBLOBs(ResourceWithBLOBs record);",
"CE findById(ID id);",
"public Invoice findById(long id);",
"TrackerAttachments loadTrackerAttachments(final Integer id);",
"Ad selectByPrimaryKey(Integer id);",
"ItoProduct selectByPrimaryKey(Integer id);",
"SpCharInSeq findById(Integer spcharinseqId);",
"ProductPricelistEntityWithBLOBs selectByPrimaryKey(Integer id);",
"int updateByPrimaryKeySelective(QuestionWithBLOBs record);",
"List<AlbumImage> selectByAlbum(Integer albumId);",
"public java.lang.Long getAttachmentId() {\n return attachmentId;\n }",
"@Override\r\n public Asset findOne(Long id) {\n return assetDao.findById(id);\r\n }",
"int updateByPrimaryKeyWithBLOBs(TbSerdeParams record);",
"int updateByPrimaryKeySelective(ResourceWithBLOBs record);",
"int updateByPrimaryKeyWithBLOBs(Massage record);",
"Journal selectByPrimaryKey(Long id);",
"int updateByPrimaryKeyWithBLOBs(Forumpost record);",
"TestActivityEntity selectByPrimaryKey(Integer id);",
"DashboardGoods selectOneByExampleWithBLOBs(DashboardGoodsExample example);",
"Appraise selectByPrimaryKey(Integer id);",
"int updateByPrimaryKey(EnterprisePicture record);",
"int updateByPrimaryKeyWithBLOBs(Yqbd record);",
"Massage selectByPrimaryKey(Integer massageId);",
"Article selectByPrimaryKey(String id);",
"SellMedia selectSellMediaByPrimaryKey(Integer id) throws SQLException;",
"int insertSelective(AutoAssessDetailWithBLOBs record);",
"SportAlbumPicture selectByPrimaryKey(String id);",
"PdfCodeTemporary selectByPrimaryKey(Integer id);",
"Disproduct selectByPrimaryKey(String samId);",
"ExamRoom selectByPrimaryKey(Integer pkid);",
"ReferenceData findById(ReferenceDataId id) throws DataException;",
"int updateByExample(@Param(\"record\") NjOrderAttachment record, @Param(\"example\") NjOrderAttachmentExample example);",
"TbComEqpModel selectByPrimaryKey(String EQP_MODEL_ID);",
"public void testGetRecordWithWikiPageIdAndFileNameWithStatusAorD() {\r\n\t\tInteger wikiPageId = 1045617;\r\n\t\tString fileName = \"test.gif\";\r\n\t\tInteger wikiAttachmentId = 1;\r\n\t\tPnWikiAttachment pnWikiAttachment = new PnWikiAttachment(wikiAttachmentId);\r\n\t\tpnWikiAttachment.setAttachmentName(fileName);\r\n\t\t\r\n\t\texpect(mockDao.getRecordWithWikiPageIdAndFileNameWithStatusAorD(wikiPageId, fileName)).andReturn(pnWikiAttachment);\r\n\t\treplay(mockDao);\r\n\t\t\r\n\t\tPnWikiAttachment pnWikiAttachment2 = service.getRecordWithWikiPageIdAndFileNameWithStatusAorD(wikiPageId, fileName);\r\n\t\tassertEquals(1, pnWikiAttachment2.getWikiAttachmentId().intValue());\r\n\t\tassertEquals(\"test.gif\", pnWikiAttachment2.getAttachmentName());\r\n\t\tverify(mockDao);\r\n\t}",
"@Override\r\n\tpublic DishAttachment getDishAttachment(Long id) {\n\t\treturn null;\r\n\t}",
"VolumeAttachment getAttachmentForVolumeOnServer(String volumeId, String serverId);",
"public abstract Iterator getAttachments();",
"public static List<Generic> getAttachmentsDetail(Connection conn,String campus,int id,int seq,String originalname,String sort) throws Exception {\n\n\t\tList<Generic> genericData = null;\n\n\t\t// retrieve all active forums a user has access to.\n\t\t// active is where the user is actively participating in (message_author)\n\t\t// the historyid is valid because the coursetype is PRE\n\t\t// and messages are in forum only at review process\n\t\ttry{\n\t\t\tgenericData = new LinkedList<Generic>();\n\n\t\t\tAseUtil aseUtil = new AseUtil();\n\n\t\t\t//\n\t\t\t// default sort is filename\n\t\t\t//\n\t\t\tif(sort == null || sort.equals(\"\")){\n\t\t\t\tsort = \"fn\";\n\t\t\t}\n\n\t\t\tString sql = \"SELECT seq, auditby, filename, auditdate, sq, en, qn FROM tblfndfiles \"\n\t\t\t\t+ \"WHERE id=? AND campus=? AND originalname=? AND seq <> ? \";\n\n\t\t\tif(sort.equals(\"fn\")){\n\t\t\t\tsql = sql + \" ORDER BY originalname, seq \";\n\t\t\t}\n\t\t\telse{\n\t\t\t\tsql = sql + \" ORDER BY sq, en, qn\";\n\t\t\t}\n\n\t\t\tPreparedStatement ps = conn.prepareStatement(sql);\n\t\t\tps.setInt(1,id);\n\t\t\tps.setString(2,campus);\n\t\t\tps.setString(3,originalname);\n\t\t\tps.setInt(4,seq);\n\t\t\tResultSet rs = ps.executeQuery();\n\t\t\twhile(rs.next()){\n\t\t\t\tgenericData.add(new Generic(\n\t\t\t\t\t\t\t\t\t\t\"\" + rs.getInt(\"seq\"),\n\t\t\t\t\t\t\t\t\t\toriginalname,\n\t\t\t\t\t\t\t\t\t\tAseUtil.nullToBlank(rs.getString(\"auditby\")),\n\t\t\t\t\t\t\t\t\t\taseUtil.ASE_FormatDateTime(rs.getString(\"auditdate\"),Constant.DATE_DATETIME),\n\t\t\t\t\t\t\t\t\t\tAseUtil.nullToBlank(rs.getString(\"filename\")),\n\t\t\t\t\t\t\t\t\t\t\"\" + rs.getInt(\"sq\"),\n\t\t\t\t\t\t\t\t\t\t\"\" + rs.getInt(\"en\"),\n\t\t\t\t\t\t\t\t\t\t\"\" + rs.getInt(\"qn\"),\n\t\t\t\t\t\t\t\t\t\t\"\",\n\t\t\t\t\t\t\t\t\t\t\"\"\n\t\t\t\t\t\t\t\t\t));\n\t\t\t} // rs\n\t\t\trs.close();\n\t\t\tps.close();\n\n\t\t\taseUtil = null;\n\t\t}\n\t\tcatch(SQLException e){\n\t\t\tlogger.fatal(\"FndDB - getAttachments: \" + e.toString());\n\t\t\treturn null;\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tlogger.fatal(\"FndDB - getAttachments: \" + e.toString());\n\t\t\treturn null;\n\t\t}\n\n\t\treturn genericData;\n\t}",
"@Override\r\n\tpublic List<String> getAttach(int f_idx) {\n\t\treturn null;\r\n\t}",
"int updateByPrimaryKeyWithBLOBs(AccuseInfo record);"
] | [
"0.72419804",
"0.6910363",
"0.63884455",
"0.6352234",
"0.6233871",
"0.6103954",
"0.6054318",
"0.5992078",
"0.5931585",
"0.58987045",
"0.5893409",
"0.58732635",
"0.5866825",
"0.58491516",
"0.58436406",
"0.5833048",
"0.58317536",
"0.5825809",
"0.5804758",
"0.5769502",
"0.57493854",
"0.5712748",
"0.571006",
"0.56513155",
"0.56371564",
"0.56088316",
"0.5599326",
"0.5573556",
"0.55723673",
"0.5530783",
"0.5503018",
"0.5494395",
"0.5489742",
"0.54823184",
"0.54815537",
"0.5470399",
"0.54518867",
"0.54451954",
"0.5433465",
"0.54306287",
"0.5429338",
"0.5413801",
"0.5401432",
"0.5396776",
"0.5391327",
"0.5376655",
"0.53745747",
"0.5367794",
"0.53653777",
"0.53592134",
"0.5358905",
"0.5349603",
"0.53437936",
"0.5327755",
"0.5323842",
"0.5322423",
"0.5320377",
"0.5320339",
"0.5309335",
"0.5304552",
"0.5297807",
"0.5295576",
"0.52755266",
"0.5268982",
"0.52599186",
"0.5259909",
"0.52583593",
"0.5252512",
"0.5244007",
"0.523201",
"0.52316815",
"0.5227466",
"0.52246463",
"0.5221259",
"0.5220991",
"0.5219578",
"0.521733",
"0.5213753",
"0.5211705",
"0.52104396",
"0.5204454",
"0.5202361",
"0.5197168",
"0.51925814",
"0.51902443",
"0.51863164",
"0.5181686",
"0.51811063",
"0.51806635",
"0.5169521",
"0.5169504",
"0.516881",
"0.5168173",
"0.51631725",
"0.5154498",
"0.5154387",
"0.5149645",
"0.51413536",
"0.5141311",
"0.51258886"
] | 0.5722721 | 21 |
/ Copyright 2019 Phoebus Tecnologia Ltda. 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 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. | public interface GenericService<T extends GenericEntity> {
/**
* Saves a given entity. Use the returned instance for further operations as the
* save operation might have changed the entity instance completely.
*/
T save(T obj);
/**
* Edits a given entity. Use the returned instance for further operations as the
* edit operation might have changed the entity instance completely.
*/
T edit(T obj);
/**
* Edits a given entity. Use the returned instance for further operations as the
* edit operation might have changed the entity instance completely.
*/
T edit(long id, T obj);
/**
* Retrieves an entity by its id.
*/
Optional<T> find(long id);
/**
* Deletes a given entity.
*/
void delete(long id);
/**
* Deletes a given entity.
*/
void delete(T obj);
/**
* Returns all instances of the type.
*/
Iterable<T> list();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface HuobiConsts {\n String API_HOST_PRO = \"api.huobi.pro\";\n String API_HOST_HADAX = \"api.hadax.com\";\n\n String USER_AGENT = \"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.71 Safari/537.36\";\n\n String ENDPOINT_SECURITY_TYPE_APIKEY = \"AccessKeyId\";\n String ENDPOINT_SECURITY_TYPE_APIKEY_HEADER = ENDPOINT_SECURITY_TYPE_APIKEY + \":#\";\n\n String ENDPOINT_SECURITY_TYPE_SIGNED = \"Signature\";\n String ENDPOINT_SECURITY_TYPE_SIGNED_HEADER = ENDPOINT_SECURITY_TYPE_SIGNED + \":#\";\n\n String SIGNATURE_METHOD = \"HmacSHA256\";\n String SIGNATURE_VERSION = \"2\";\n\n DateTimeFormatter DT_FORMAT = DateTimeFormatter.ofPattern(\"uuuu-MM-dd'T'HH:mm:ss\");\n ZoneId ZONE_GMT = ZoneId.of(\"Z\");\n\n\n interface WsCode {\n int manualClose = 4999;\n int autoReconnect = 4998;\n int pingExpired = 1003;\n }\n\n\n}",
"private stendhal() {\n\t}",
"private Platform() {\n\t\t\n\t}",
"protected MetadataUGWD() {/* intentionally empty block */}",
"private MetallicityUtils() {\n\t\t\n\t}",
"private SparkseeUtils()\n {\n /*\n * Intentionally left empty.\n */\n }",
"public interface QuarkusPlatformSummary {\n\n}",
"private MApi() {}",
"public interface Constants {\n\n\t// /**\n\t// * Version string to identify library (e.g., in EXIficientGUI)\n\t// */\n\t// public static final String VERSION = \"1.0.0-SNAPSHOT\";\n\n\t/**\n\t * <p>\n\t * W3C EXI Namespace URI\n\t * </p>\n\t * \n\t * <p>\n\t * Defined to be \"<code>http://www.w3.org/2009/exi</code>\".\n\t */\n\tpublic static final String W3C_EXI_NS_URI = \"http://www.w3.org/2009/exi\";\n\n\t/**\n\t * <p>\n\t * W3C EXI local-name for datatype xsd:base64Binary\n\t * </p>\n\t */\n\tpublic static final String W3C_EXI_LN_BASE64BINARY = \"base64Binary\";\n\n\t/**\n\t * <p>\n\t * W3C EXI local-name for datatype xsd:hexBinary\n\t * </p>\n\t */\n\tpublic static final String W3C_EXI_LN_HEXBINARY = \"hexBinary\";\n\n\t/**\n\t * <p>\n\t * W3C EXI local-name for datatype xsd:boolean\n\t * </p>\n\t */\n\tpublic static final String W3C_EXI_LN_BOOLEAN = \"boolean\";\n\n\t/**\n\t * <p>\n\t * W3C EXI local-name for datatype xsd:dateTime\n\t * </p>\n\t */\n\tpublic static final String W3C_EXI_LN_DATETIME = \"dateTime\";\n\n\t/**\n\t * <p>\n\t * W3C EXI local-name for datatype xsd:time\n\t * </p>\n\t */\n\tpublic static final String W3C_EXI_LN_TIME = \"time\";\n\n\t/**\n\t * <p>\n\t * W3C EXI local-name for datatype xsd:date\n\t * </p>\n\t */\n\tpublic static final String W3C_EXI_LN_DATE = \"date\";\n\n\t/**\n\t * <p>\n\t * W3C EXI local-name for datatype xsd:gYearMonth\n\t * </p>\n\t */\n\tpublic static final String W3C_EXI_LN_GYEARMONTH = \"gYearMonth\";\n\n\t/**\n\t * <p>\n\t * W3C EXI local-name for datatype xsd:gYear\n\t * </p>\n\t */\n\tpublic static final String W3C_EXI_LN_GYEAR = \"gYear\";\n\n\t/**\n\t * <p>\n\t * W3C EXI local-name for datatype xsd:gMonthDay\n\t * </p>\n\t */\n\tpublic static final String W3C_EXI_LN_GMONTHDAY = \"gMonthDay\";\n\n\t/**\n\t * <p>\n\t * W3C EXI local-name for datatype xsd:gDay\n\t * </p>\n\t */\n\tpublic static final String W3C_EXI_LN_GDAY = \"gDay\";\n\n\t/**\n\t * <p>\n\t * W3C EXI local-name for datatype xsd:gMonth\n\t * </p>\n\t */\n\tpublic static final String W3C_EXI_LN_GMONTH = \"gMonth\";\n\n\t/**\n\t * <p>\n\t * W3C EXI local-name for datatype xsd:decimal\n\t * </p>\n\t */\n\tpublic static final String W3C_EXI_LN_DECIMAL = \"decimal\";\n\n\t/**\n\t * <p>\n\t * W3C EXI local-name for datatype xsd:float and xsd:double\n\t * </p>\n\t */\n\tpublic static final String W3C_EXI_LN_DOUBLE = \"double\";\n\n\t/**\n\t * <p>\n\t * W3C EXI local-name for datatype xsd:integer\n\t * </p>\n\t */\n\tpublic static final String W3C_EXI_LN_INTEGER = \"integer\";\n\n\t/**\n\t * <p>\n\t * W3C EXI local-name for datatype xsd:string, xsd:anySimpleType and all\n\t * types derived by union\n\t * </p>\n\t */\n\tpublic static final String W3C_EXI_LN_STRING = \"string\";\n\n\t/**\n\t * XML Reader feature\n\t */\n\tpublic static final String W3C_EXI_FEATURE_BODY_ONLY = \"http://www.w3.org/exi/features/exi-body-only\";\n\n\t/**\n\t * Initial Entries in String Table Partitions\n\t */\n\t/* \"\", empty string */\n\tpublic static final String[] PREFIXES_EMPTY = { \"\" };\n\tpublic static final String[] LOCAL_NAMES_EMPTY = {};\n\t/* \"http://www.w3.org/XML/1998/namespace\" */\n\tpublic static String[] PREFIXES_XML = { \"xml\" };\n\tpublic static String[] LOCAL_NAMES_XML = { \"base\", \"id\", \"lang\", \"space\" };\n\t/* \"http://www.w3.org/2001/XMLSchema-instance\", xsi */\n\tpublic static String[] PREFIXES_XSI = { \"xsi\" };\n\tpublic static String[] LOCAL_NAMES_XSI = { \"nil\", \"type\" };\n\t/* \"http://www.w3.org/2001/XMLSchema\", xsd */\n\tpublic static String[] PREFIXES_XSD = {};\n\tpublic static String[] LOCAL_NAMES_XSD = { \"ENTITIES\", \"ENTITY\", \"ID\",\n\t\t\t\"IDREF\", \"IDREFS\", \"NCName\", \"NMTOKEN\", \"NMTOKENS\", \"NOTATION\",\n\t\t\t\"Name\", \"QName\", \"anySimpleType\", \"anyType\", \"anyURI\",\n\t\t\t\"base64Binary\", \"boolean\", \"byte\", \"date\", \"dateTime\", \"decimal\",\n\t\t\t\"double\", \"duration\", \"float\", \"gDay\", \"gMonth\", \"gMonthDay\",\n\t\t\t\"gYear\", \"gYearMonth\", \"hexBinary\", \"int\", \"integer\", \"language\",\n\t\t\t\"long\", \"negativeInteger\", \"nonNegativeInteger\",\n\t\t\t\"nonPositiveInteger\", \"normalizedString\", \"positiveInteger\",\n\t\t\t\"short\", \"string\", \"time\", \"token\", \"unsignedByte\", \"unsignedInt\",\n\t\t\t\"unsignedLong\", \"unsignedShort\" };\n\n\t/**\n\t * \n\t */\n\tpublic static final String EMPTY_STRING = \"\";\n\t// public static final StringValue EMPTY_STRING_VALUE = new\n\t// StringValue(Constants.EMPTY_STRING);\n\n\tpublic static final String XSI_SCHEMA_LOCATION = \"schemaLocation\";\n\tpublic static final String XSI_NONAMESPACE_SCHEMA_LOCATION = \"noNamespaceSchemaLocation\";\n\n\tpublic static final String XML_NS_PREFIX = XMLConstants.XML_NS_PREFIX; // \"xml\"\n\tpublic static final String XML_NULL_NS_URI = XMLConstants.NULL_NS_URI; // \"\"\n\tpublic static final String XML_DEFAULT_NS_PREFIX = XMLConstants.DEFAULT_NS_PREFIX; // \"\"\n\tpublic static final String XML_NS_ATTRIBUTE_NS_URI = XMLConstants.XMLNS_ATTRIBUTE_NS_URI; // \"http://www.w3.org/2000/xmlns/\"\n\tpublic static final String XML_NS_ATTRIBUTE = XMLConstants.XMLNS_ATTRIBUTE; // \"xmlns\"\n\tpublic static final String XML_NS_URI = XMLConstants.XML_NS_URI; // \"http://www.w3.org/XML/1998/namespace\"\n\tpublic static final String XML_SCHEMA_INSTANCE_NS_URI = XMLConstants.W3C_XML_SCHEMA_INSTANCE_NS_URI; // \"http://www.w3.org/2001/XMLSchema-instance\"\n\tpublic static final String XML_SCHEMA_NS_URI = XMLConstants.W3C_XML_SCHEMA_NS_URI; // \"http://www.w3.org/2001/XMLSchema\"\n\n\tpublic static final String XSI_PFX = \"xsi\";\n\tpublic static final String XSI_TYPE = \"type\";\n\tpublic static final String XSI_NIL = \"nil\";\n\n\tpublic static final String COLON = \":\";\n\n\tpublic static final String XSD_LIST_DELIM = \" \";\n\tpublic static final char XSD_LIST_DELIM_CHAR = ' ';\n\tpublic static final char[] XSD_LIST_DELIM_CHAR_ARRAY = { ' ' };\n\n\t// public static final String CDATA_START = \"<![CDATA[\";\n\t// public static final char[] CDATA_START_ARRAY = CDATA_START.toCharArray();\n\t// public static final String CDATA_END = \"]]>\";\n\t// public static final char[] CDATA_END_ARRAY = CDATA_END.toCharArray();\n\n\tpublic static final String XSD_ANY_TYPE = \"anyType\";\n\n\tpublic static final String XSD_BOOLEAN_TRUE = \"true\";\n\tpublic static final String XSD_BOOLEAN_1 = \"1\";\n\tpublic static final String XSD_BOOLEAN_FALSE = \"false\";\n\tpublic static final String XSD_BOOLEAN_0 = \"0\";\n\n\tpublic static final char[] XSD_BOOLEAN_TRUE_ARRAY = XSD_BOOLEAN_TRUE\n\t\t\t.toCharArray();\n\tpublic static final char[] XSD_BOOLEAN_1_ARRAY = XSD_BOOLEAN_1\n\t\t\t.toCharArray();\n\tpublic static final char[] XSD_BOOLEAN_FALSE_ARRAY = XSD_BOOLEAN_FALSE\n\t\t\t.toCharArray();\n\tpublic static final char[] XSD_BOOLEAN_0_ARRAY = XSD_BOOLEAN_0\n\t\t\t.toCharArray();\n\n\tpublic static final String DECODED_BOOLEAN_TRUE = XSD_BOOLEAN_TRUE;\n\tpublic static final String DECODED_BOOLEAN_FALSE = XSD_BOOLEAN_FALSE;\n\tpublic static final char[] DECODED_BOOLEAN_TRUE_ARRAY = DECODED_BOOLEAN_TRUE\n\t\t\t.toCharArray();\n\tpublic static final char[] DECODED_BOOLEAN_FALSE_ARRAY = DECODED_BOOLEAN_FALSE\n\t\t\t.toCharArray();\n\n\tpublic static final int NOT_FOUND = -1;\n\n\t/*\n\t * Block & Channel settings Maximal Number of Values (per Block / Channel)\n\t */\n\tpublic static final int MAX_NUMBER_OF_VALUES = 100;\n\tpublic static final int DEFAULT_BLOCK_SIZE = 1000000;\n\n\t/*\n\t * StringTable settings\n\t */\n\tpublic static final int DEFAULT_VALUE_MAX_LENGTH = -1; // unbounded\n\tpublic static final int DEFAULT_VALUE_PARTITON_CAPACITY = -1; // unbounded\n\n\t/*\n\t * Float & Double Values\n\t */\n\tpublic static final String FLOAT_INFINITY = \"INF\";\n\tpublic static final String FLOAT_MINUS_INFINITY = \"-INF\";\n\tpublic static final String FLOAT_NOT_A_NUMBER = \"NaN\";\n\n\tpublic static final char[] FLOAT_INFINITY_CHARARRAY = FLOAT_INFINITY\n\t\t\t.toCharArray();\n\tpublic static final char[] FLOAT_MINUS_INFINITY_CHARARRAY = FLOAT_MINUS_INFINITY\n\t\t\t.toCharArray();\n\tpublic static final char[] FLOAT_NOT_A_NUMBER_CHARARRAY = FLOAT_NOT_A_NUMBER\n\t\t\t.toCharArray();\n\n\t/* -(2^14) == -16384 */\n\tpublic static final int FLOAT_SPECIAL_VALUES = -16384;\n\tpublic static final int FLOAT_MANTISSA_INFINITY = 1;\n\tpublic static final int FLOAT_MANTISSA_MINUS_INFINITY = -1;\n\tpublic static final int FLOAT_MANTISSA_NOT_A_NUMBER = 0;\n\n\t/* -(2^14-1) == -16383 */\n\tpublic static final long FLOAT_EXPONENT_MIN_RANGE = -16383;\n\t/* 2^14-1 == 16383 */\n\tpublic static final long FLOAT_EXPONENT_MAX_RANGE = 16383;\n\t/* -(2^63) == -9223372036854775808L */\n\tpublic static final long FLOAT_MANTISSA_MIN_RANGE = -9223372036854775808L;\n\t/* 2^63-1 == 9223372036854775807L */\n\tpublic static final long FLOAT_MANTISSA_MAX_RANGE = 9223372036854775807L;\n\n}",
"private HeaderUtil() {}",
"private BuilderUtils() {}",
"private HSBC() {\n\t\t\n\t\t\n\t}",
"@SuppressWarnings(\"unused\")\n\tprivate void version() {\n\n\t}",
"private JacobUtils() {}",
"private Aliyun() {\n\t\tsuper();\n\t}",
"public interface C0003a {\n public static final String ah = \"image_manager_disk_cache\";\n public static final int hP = 262144000;\n\n @Nullable\n a bz();\n }",
"private Utils() {}",
"private Utils() {}",
"private Utils() {}",
"private Utils() {}",
"private OMUtil() { }",
"private Rekenhulp()\n\t{\n\t}",
"private NativeSupport() {\n\t}",
"private C3P0Helper() { }",
"public interface MetaData {\r\n\r\n\tpublic static final String CV_SBML = \"SBML\";\r\n\r\n\tpublic static final String ET_SBML = \"SBML_import\";\r\n\r\n\tpublic static final String AN_SBO = \"SBO\";\r\n\r\n\tpublic static final String RT_CONSUMED_BY = \"cs_by\";\r\n\r\n\tpublic static final String RT_PRODUCED_BY = \"pd_by\";\r\n\r\n\tpublic static final String RT_REGULATED_BY = \"rg_by\";\r\n\r\n\tpublic static final String RT_TRANSFORMATION_OF = \"transformation_of\";\r\n\r\n\tpublic static final String CC_REACTION = \"Reaction\";\r\n\r\n\tpublic static final String CC_COMPOUND = \"Comp\";\r\n\r\n\tpublic static final String CC_CELCOMP = \"CelComp\";\r\n\r\n}",
"public interface ApplicationMetadata {\n float MAP_ZOOM_VALUE = 16.0f;\n String DEVICE_ID = \"device_id\";\n String DEVICE_TOKEN = \"device_token\";\n String APP_LANGUAGE = \"app_language\";\n int SUCCESS_RESPONSE_STATUS = 0;\n int FAILURE_RESPONSE_STATUS = 1;\n\n String RESPONSE_MSG = \"response_msg\";\n String RESPONSE_DATA = \"response_data\";\n String USER_NAME = \"name\";\n String USER_EMAIL = \"email\";\n String USER_MOBILE = \"mobile\";\n String USER_IMAGE = \"profile_pic\";\n String LOGIN = \"login\";\n String USER_ID = \"customer_id\";\n String BOOKING_STATUS = \"booking_status\";\n String VEHICLE_TYPE = \"type\";\n String VEHICLE_MESSAGE = \"msg\";\n String SESSION_TOKEN = \"session_token\";\n String LOGOUT = \"logout\";\n String LATITUDE = \"latitude\";\n String LONGITUDE = \"longitude\";\n\n\n String ADDRESS = \"address\";\n String HOURLY_CHARGES = \"hourly_charges\";\n String PASSWORD = \"password\";\n String PERSONAL_DESC = \"personal_desc\";\n String SERVICE_TYPE = \"service_type\";\n String STRIPE_ID = \"stripe_id\";\n String STRIPE_TOKEN = \"stripe_token\";\n String USER_LATITUDE = \"user_latitude\";\n String USER_LONGITUDE = \"user_longitude\";\n String USER_ADD_DATE = \"user_add_date\";\n String USER_MOD_DATE = \"user_mod_date\";\n String IMAGE_BASE_URL = \"http://fairrepair.onsisdev.info/public/media/mechanic/\";\n String CUSTOMER_IMAGE_BASE_URL = \"http://fairrepair.onsisdev.info/public/media/customer/\";\n String LANG_ENGLISH = \"en\";\n String LANGUAGE = \"language\" ;\n String PAGE_IDENTIFIER = \"page_identifier\";\n String ABOUT_MECH = \"aboutusmechanic\";\n String TNC_MECH = \"termofservicesmechanic\";\n String PRIVACY_POLICY_MECH = \"privecypolicymechanic\";\n String TEST_SELECT_TYPES = \"test_select_type\";\n String AVAILABLE = \"1\";\n String NOT_AVAILABLE = \"0\";\n\n String APP_STATUS = \"app_status\";\n String NOTIFICATION_DATA = \"notification_data\";\n\n String REQUEST_ID = \"request_id\";\n String APP_CUSTOMER_ID = \"app_customer_id\";\n String OFFER_PRICE = \"offer_price\";\n int NOTIFICATION_NEW_OFFER = 1;\n int NOTIFICATION_REQ_ACCEPTED = 2;\n int NOTIFICATION_OFFER_ACCEPTED = 3;\n int NOTIFICATION_REQ_COMPLETED = 5;\n String NOTIFICATION_TYPE = \"notification_type\";\n String BILLING_PRICE = \"billing_price\";\n String SERVICE_DETAIL = \"service_detail\";\n String APP_PROVIDER_ID = \"app_provider_id\";\n String CUSTOMER_ID = \"customer_id\";\n String MESSAGE = \"message\";\n String LOCATION = \"location\";\n String SERVICE_CHARGE = \"service_charge\";\n String TOTAL_PRICE = \"total_price\";\n String SERVICE_CHARGE_PRICE = \"service_charge_price\";\n int NOTIFICATION_REQ_CANCELED = 4;\n int SHOW_ALL_MECH = 100;\n int SHOW_MECH_REQUEST = 110;\n int PIC_CROP_REQUEST_ID = 232;\n @Nullable\n String RATE_REVIEW = \"rate_review\";\n}",
"@Override\n public int getVersion() {\n return 0;\n }",
"public static void main(String args[]) throws Exception\n {\n \n \n \n }",
"private WAPIHelper() { }",
"private ReportGenerationUtil() {\n\t\t\n\t}",
"@Override\n public String getDescription() {\n return DESCRIPTION;\n }",
"@Override\n public boolean isSupported() {\n return true;\n }",
"@Override\n protected void initialize() {\n\n \n }",
"private Util() { }",
"public int getVersion() { return 1; }",
"public interface GeoGebraConstants {\n\n\t// GeoGebra version\n\t// DO NOT CHANGE the format of VERSION_STRING (or add commented out version)\n\t// as it is read by the build system\n\t// and updated automatically by the \"Version Bump\" task\n\t/** last build date */\n\tpublic static final String BUILD_DATE = \"05 September 2023\";\n\t/** complete version string */\n\tpublic static final String VERSION_STRING = \"5.0.800.0\";\n\n\t/** proper noun, should NOT be translated / transliterated */\n\tpublic static final String APPLICATION_NAME = \"GeoGebra\";\n\n\t/** Download update **/\n\tpublic static final String DOWNLOAD_PACKAGE_WIN =\n\t\t\t\"https://download.geogebra.org/package/win\";\n\n\t/** App versions */\n\tenum Version {\n\t\tCAS,\n\t\tGRAPHING,\n\t\tGRAPHING_3D,\n\t\tGEOMETRY,\n\t\tSCIENTIFIC,\n\t\tSUITE,\n\t\tMIXED_REALITY,\n\t\tNOTES,\n\t\tPROBABILITY,\n\t\tCLASSIC;\n\n\t\tpublic String getTransKey() {\n\t\t\tswitch (this) {\n\t\t\tcase GRAPHING:\n\t\t\t\treturn \"GeoGebraGraphingCalculator\";\n\t\t\tcase GRAPHING_3D:\n\t\t\t\treturn \"GeoGebra3DGrapher\";\n\t\t\tcase SCIENTIFIC:\n\t\t\t\treturn \"GeoGebraScientificCalculator\";\n\t\t\tcase CAS:\n\t\t\t\treturn \"GeoGebraCASCalculator\";\n\t\t\tcase GEOMETRY:\n\t\t\t\treturn \"GeoGebraGeometry\";\n\t\t\tcase NOTES:\n\t\t\t\treturn \"GeoGebraNotes\";\n\t\t\tcase SUITE:\n\t\t\t\treturn \"GeoGebraCalculatorSuite\";\n\t\t\tdefault:\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic enum Platform {\n\n\t\tDESKTOP(\"d\"),\n\n\t\t/** GeoGebra Graphing Calculator */\n\t\tANDROID(\"a\"),\n\n\t\tWEB(\"w\"),\n\n\t\tIOS(\"i\"),\n\n\t\tIOS_WEBVIEW(\"iw\"),\n\n\t\tWEB_FOR_BROWSER_2D(\"w2d\"),\n\n\t\tOFFLINE(\"offline\"),\n\n\t\tSMART(\"smart\"),\n\n\t\tPOWERPOINT(\"p\");\n\n\t\tprivate String name;\n\n\t\tPlatform(String name) {\n\t\t\tthis.name = name;\n\t\t}\n\n\t\tpublic String getName() {\n\t\t\treturn name;\n\t\t}\n\n\t\t/**\n\t\t * @param prerelease\n\t\t * whether we run prerelease\n\t\t * @return eg X.Y.Zd-prerelease\n\t\t */\n\t\tpublic String getVersionString(boolean prerelease, String appCode) {\n\n\t\t\tStringBuilder suffix = new StringBuilder(10);\n\t\t\tsuffix.append(name);\n\t\t\tif (!\"classic\".equals(appCode)) {\n\t\t\t\tsuffix.append(appCode);\n\t\t\t}\n\t\t\tif (prerelease) {\n\t\t\t\tsuffix.append(\"-prerelease\");\n\t\t\t}\n\n\t\t\t// everything except old Java desktop version should be version\n\t\t\t// 6.0.x.x\n\t\t\tswitch (this) {\n\t\t\tdefault:\n\t\t\t\t// change 5.0.274.0 to 6.0.274.0\n\t\t\t\treturn VERSION_STRING.replace(\"5.0.\", \"6.0.\") + \"-\" + suffix;\n\t\t\tcase DESKTOP:\n\t\t\t\treturn VERSION_STRING + \"-\" + suffix;\n\t\t\t}\n\t\t}\n\n\t\t/**\n\t\t * \n\t\t * @return true if this is a phone version.\n\t\t */\n\t\tpublic boolean isPhone() {\n\t\t\treturn \"i\".equals(name);\n\t\t}\n\n\t}\n\n\tenum MenuType {\n\t\tDEFAULT, EXAM\n\t}\n\n\tString SUITE_APPNAME = \"GeoGebraCalculatorSuite\";\n\n\tString GRAPHING_APPCODE = \"graphing\";\n\tString GEOMETRY_APPCODE = \"geometry\";\n\tString G3D_APPCODE = \"3d\";\n\tString SCIENTIFIC_APPCODE = \"scientific\";\n\tString CAS_APPCODE = \"cas\";\n\tString SUITE_APPCODE = \"suite\";\n\tString CLASSIC_APPCODE = \"classic\";\n\tString EVALUATOR_APPCODE = \"evaluator\";\n\tString NOTES_APPCODE = \"notes\";\n\tString PROBABILITY_APPCODE = \"probability\";\n\n\tString SUITE_SHORT_NAME = \"CalculatorSuite.short\";\n\n\tString SUITE_URL_NAME = \"calculator\";\n\n\t/**\n\t * used by version checker, so that sys admins can disable version checking\n\t * for *all* ggb versions with\n\t * HKEY_LOCAL_MACHINE/Software/JavaSoft/Prefs/geogebra/version_check_allow =\n\t * false\n\t */\n\tpublic static final String PREFERENCES_ROOT_GLOBAL = \"/geogebra\";\n\n\t/** eg HKEY_CURRENT_USER/Software/JavaSoft/Prefs/geogebra42/ */\n\t/** root preferences node */\n\tpublic static final String PREFERENCES_ROOT = \"/geogebra50\";\n\t/** File format version */\n\tpublic static final String XML_FILE_FORMAT = \"5.0\";\n\n\t// This is used for checking if a minor update exists (on each run):\n\t// DON'T change to https (causes problems)\n\tpublic static final String VERSION_URL_MINOR =\n\t\t\t\"https://download.geogebra.org/installers/5.0/version.txt\";\n\n\t// This is used for checking whether a major update exists (monthly):\n\t// DON'T change to https (causes problems)\n\tpublic static final String VERSION_URL = \"https://download.geogebra.org/installers/version.txt\";\n\n\tpublic static final String INSTALLERS_URL = \"https://www.geogebra.org/download\";\n\n\t/** Splash filename -- used for online */\n\tpublic static final String SPLASH_STRING = \"splash.png\";\n\t// archive\n\t/** short version, for online archive */\n\tpublic static final String SHORT_VERSION_STRING = \"5.0\";\n\t// File format versions\n\t/** XSD for ggb files */\n\tpublic static final String GGB_XSD_FILENAME = \"ggb.xsd\";\n\t/** XSD for ggt (macro) files */\n\tpublic static final String GGT_XSD_FILENAME = \"ggt.xsd\";\n\t// URLs\n\t/** URL of GeoGebraWeb main js file (offline version) */\n\t// public static final String GEOGEBRA_HTML5_BASE_OFFLINE =\n\t// \"web/web.nocache.js\";\n\t/** URL of GeoGebra jars */\n\tpublic final static String GEOGEBRA_ONLINE_ARCHIVE_BASE = \"https://jars.geogebra.org/webstart/\"\n\t\t\t+ SHORT_VERSION_STRING + \"/\";\n\t/** URL of GeoGebra jars, zipped */\n\tpublic static final String GEOGEBRA_ONLINE_JARS_ZIP = GEOGEBRA_ONLINE_ARCHIVE_BASE\n\t\t\t+ \"geogebra-jars.zip\";\n\t/** update directory, typically on Windows */\n\tpublic static final String GEOGEBRA_JARS_UPDATE_DIR = \"\\\\GeoGebra 5.0\\\\jars\\\\update\";\n\n\t/** update directory, typically on Windows */\n\tpublic static final String GEOGEBRA_THIRD_PARTY_UPDATE_DIR = \"\\\\GeoGebra 5.0\"\n\t\t\t+ \"\\\\thirdparty\\\\update\";\n\n\t/** http prefix */\n\tpublic static final String HTTP = \"http://\";\n\t/** https prefix */\n\tpublic static final String HTTPS = \"https://\";\n\n\t/** GeoGebra URL */\n\tpublic final static String GEOGEBRA_WEBSITE = \"https://www.geogebra.org/\";\n\t/** GeoGebraTube beta URL, used when Feature.TUBE_BETA == true */\n\tpublic final static String GEOGEBRA_WEBSITE_BETA = \"https://beta.geogebra.org/\";\n\n\tpublic final static String TUBE_URL_SHORT = \"https://ggbm.at/\";\n\tpublic final static String GEOGEBRA_HELP_WEBSITE = \"https://help.geogebra.org/\";\n\n\t/** max possible heap space for applets in MB */\n\tpublic final static int MAX_HEAP_SPACE = 1024;\n\t/**\n\t * minimal precision in LocusEquation: by default rounding is at least 4\n\t * decimals (this changes dynamically when zooming in)\n\t */\n\tpublic static final long PROVER_MIN_PRECISION = 10000;\n\n\t/** CSS class name for GeoGebraWeb &article> tag */\n\tpublic static final String GGM_CLASS_NAME = \"geogebraweb\";\n\t/** mimetype of GGB files */\n\tpublic static final String GGW_MIME_TYPE = \"application/vnd.geogebra.file\";\n\n\t/** Splash timeout in miliseconds */\n\tpublic static final int SPLASH_DIALOG_DELAY = 1000;\n\n\t/** license URL */\n\tpublic static final String GGB_LICENSE_URL = \"https://www.geogebra.org/license\";\n\n\t/**\n\t * URL of the webpage to call if a file should be uploaded. If you want to\n\t * test GeoGebra Materials uploads on a test server, use a test IP URL\n\t * instead, e.g.: \"http://140.78.116.131:8082/upload\"\n\t */\n\tpublic static final String uploadURL = \"https://www.geogebra.org/upload\";\n\tpublic static final String uploadURLBeta = \"https://beta.geogebra.org/upload\";\n\n\tpublic static final String GEOGEBRA_LOADING_PNG = \"https://www.geogebra.org/images/GeoGebra_loading.png\";\n\tpublic static final String APPLET_PLAY_PNG = \"https://www.geogebra.org/images/applet_play.png\";\n\n\t// //////////////////////////////////////////////////////////////////////////\n\t// AUTHENTICATING WITH GOOGLE\n\t// ///////////////////////////////////////////////\n\t// //////////////////////////////////////////////////////////////////////////\n\n\t/**\n\t * This app's personal client ID assigned by the Google APIs Console\n\t * (http://code.google.com/apis/console).\n\t */\n\tpublic static final String GOOGLE_CLIENT_ID = \"656990710877-g0tjpnhriv39e59f5s5ubs81sv2686m6\"\n\t\t\t+ \".apps.googleusercontent.com\";\n\n\t/**\n\t * The Graphing Chrome app's client ID from the Google APIs Console\n\t * (http://code.google.com/apis/console).\n\t */\n\tpublic static final String CHROME_APP_CLIENT_ID =\n\t\t\t\"656990710877-3uu4empvnqi7co987usqk0talj3hnt2r.apps.googleusercontent.com\";\n\n\t// The auth scope being requested. This scope will allow the application to\n\t// identify who the authenticated user is.\n\tpublic static final String PLUS_ME_SCOPE = \"https://www.googleapis.com/auth/plus.me\";\n\tpublic static final String DRIVE_SCOPE = \"https://www.googleapis.com/auth/drive.file https://www.googleapis.com/auth/drive.readonly\";\n\tpublic static final String USERINFO_EMAIL_SCOPE = \"https://www.googleapis.com/auth/userinfo.email\";\n\tpublic static final String USERINFO_PROFILE_SCOPE = \"https://www.googleapis.com/auth/userinfo.profile\";\n\tpublic static final String API_USERINFO = \"https://www.googleapis.com/oauth2/v1/userinfo?alt=json&access_token=\";\n\n\tpublic static final String FORUM_URL = \"https://www.reddit.com/r/geogebra/\";\n\n\tpublic static final String EDIT_URL_BASE = \"https://www.geogebra.org/material/edit/id/\";\n\n\tpublic static final String CDN_APPS = \"https://cdn.geogebra.org/apps/\";\n\n\t/**\n\t * Get the version string for versions 6.0.*\n\t *\n\t * @return version string\n\t */\n\tstatic String getVersionString6() {\n\t\treturn VERSION_STRING.replace(\"5.0.\", \"6.0.\");\n\t}\n}",
"public interface IPSBrandCodeConstants\n{\n public static final int REPOSITORY = 1;\n public static final int SERVER = 2;\n public static final int PUBLISHER = 4;\n public static final int DEVELOPMENT_TOOLS = 8;\n public static final int DATABASE_PUBLISHER = 16;\n public static final int BEA_ACCELERATOR = 32;\n public static final int MULTI_SERVER_MANANGER = 64;\n public static final int CONTENT_CONNECTOR = 128;\n public static final int WORD = 256;\n public static final int INLINE_EDITING = 512;\n public static final int SPRINTA = 1024;\n public static final int APPLICATION_SERVER = 2048;\n public static final int WEB_SERVICES_LISTENER = 4096;\n public static final int DOCUMENT_ASSEMBLER = 8192;\n public static final int WEBSPHERE_ACCELERATOR = 16384;\n public static final int CONVERA_SEARCH = 32768;\n public static final int EKTRON_WEP_XML = 65536;\n public static final int EKTRON_WEBIMAGEFX = 131072;\n\n \n /**\n * Represents types of servers for which codes can be generated.\n */\n public enum ServerTypes\n {\n /**\n * Development server\n */\n DEVELOPMENT(0, \"Development\"),\n \n /**\n * Production server\n */\n PRODUCTION(1, \"Production\"),\n \n /**\n * Test server\n */\n TEST(2, \"Test\"),\n \n /**\n * Failover server\n */\n FAIL0VER(3, \"Fail Over\"),\n \n /**\n * Disaster Recovery server\n */\n DISATER_RECOVERY(4, \"Disaster Recovery\"),\n \n /**\n * Publishing Hub\n */\n PUBLISHING_HUB(5, \"Publishing Hub\");\n \n /**\n * Constructor\n * \n * @param value The integer representation of this type. \n * \n * @param displayName The display name, assumed not <code>null</code> or \n * empty.\n */\n private ServerTypes(int value, String displayName)\n {\n mi_value = value;\n mi_name = displayName;\n }\n \n /**\n * Get the integer value of this server type\n * \n * @return The value\n */\n public int getValue()\n {\n return mi_value;\n }\n \n /**\n * Returns the display name of this type\n * \n * @return The name, never <code>null</code> or empty.\n */\n @Override\n public String toString()\n {\n return mi_name;\n }\n \n /**\n * Determine if this type is an extended server type. These are types\n * that are not available for codes that don't support extended product\n * info.\n * \n * @return <code>true</code> if it is extended, <code>false</code>\n * otherwise.\n */\n public boolean isExtendedServerType()\n {\n return mi_value > PRODUCTION.mi_value;\n }\n \n /**\n * Lookup enum value by ordinal. Ordinals should be unique. If they are\n * not unique, then the first enum value with a matching ordinal is\n * returned.\n * \n * @param s The enum value\n * \n * @return an enumerated value, never <code>null</code>.\n * \n * @throws IllegalArgumentException if the value does not match\n */\n public static ServerTypes valueOf(int s) throws IllegalArgumentException\n {\n ServerTypes types[] = values();\n for (int i = 0; i < types.length; i++)\n {\n if (types[i].getValue() == s)\n return types[i];\n }\n throw new IllegalArgumentException(\"No match for value: \" + s);\n } \n \n /**\n * Gets list of server types sorted on display name ascending \n * case-insensitive.\n * \n * @return The list, never <code>null</code> or empty.\n */\n public static List<ServerTypes> getSortedValues()\n {\n List<ServerTypes> sortedTypes = new ArrayList<ServerTypes>();\n for (ServerTypes serverTypes : values())\n sortedTypes.add(serverTypes);\n \n Collections.sort(sortedTypes, new Comparator<ServerTypes>() {\n\n public int compare(ServerTypes t1, ServerTypes t2)\n {\n return t1.mi_name.toLowerCase().compareTo(\n t2.mi_name.toLowerCase());\n }});\n \n return sortedTypes;\n }\n \n\n /**\n * The value supplied during construction, immutable.\n */\n private int mi_value;\n \n /**\n * The display name supplied during construction, immutable.\n */\n private String mi_name;\n }\n \n \n /**\n * Represents types of evals for which codes can be generated.\n */\n public enum EvalTypes\n {\n /**\n * Development server\n */\n NOT_EVAL(0, \"Non-Eval\"),\n \n /**\n * Production server\n */\n M30_DAY(1, \"30 Day Eval\"),\n \n /**\n * Test server\n */\n M60_DAY(2, \"60 Day Eval\"),\n \n /**\n * Failover server\n */\n M90_DAY(3, \"90 Day Eval\"),\n \n /**\n * Disaster Recovery server\n */\n TERM(4, \"Term License\");\n\n \n /**\n * Constructor\n * \n * @param value The integer representation of this type. \n * \n * @param displayName The display name, assumed not <code>null</code> or \n * empty.\n */\n private EvalTypes(int value, String displayName)\n {\n mi_value = value;\n mi_name = displayName;\n }\n \n /**\n * Get the integer value of this eval type\n * \n * @return The value\n */\n public int getValue()\n {\n return mi_value;\n }\n \n /**\n * Returns the display name of this type\n * \n * @return The name, never <code>null</code> or empty.\n */\n @Override\n public String toString()\n {\n return mi_name;\n }\n \n /**\n * Determine if this type is an extended server type. These are types\n * that are not available for codes that don't support extended product\n * info.\n * \n * @return <code>true</code> if it is extended, <code>false</code>\n * otherwise.\n */\n public boolean isExtendedEvalType()\n {\n return mi_value > M90_DAY.mi_value;\n }\n \n /**\n * Lookup enum value by ordinal. Ordinals should be unique. If they are\n * not unique, then the first enum value with a matching ordinal is\n * returned.\n * \n * @param s The enum value\n * \n * @return an enumerated value, never <code>null</code>.\n * \n * @throws IllegalArgumentException if the value does not match\n */\n public static EvalTypes valueOf(int s) throws IllegalArgumentException\n {\n EvalTypes types[] = values();\n for (int i = 0; i < types.length; i++)\n {\n if (types[i].getValue() == s)\n return types[i];\n }\n throw new IllegalArgumentException(\"No match for value: \" + s);\n } \n \n /**\n * The value supplied during construction, immutable.\n */\n private int mi_value;\n \n /**\n * The display name supplied during construction, immutable.\n */\n private String mi_name;\n } \n}",
"private WolUtil() {\n }",
"public interface DublinCoreConstants {\n \n /** Creates a new instance of Class */\n public static int DC_TITLE = 0;\n public static int DC_CREATOR = 1;\n public static int DC_SUBJECT = 2;\n public static int DC_DATE = 3;\n public static int DC_TYPE= 4;\n public static int DC_FORMAT= 5;\n public static int DC_IDENTIFIER = 6;\n public static int DC_COLLECTION = 7;\n public static int DC_COVERAGE = 8;\n \n public static int SUPPORTED_NUMBER = 9;\n \n public static final String[] DC_FIELDS = {\"title\",\"creator\",\"subject\",\"date\",\"type\",\"format\",\"identifier\",\"collection\",\"coverage\"};\n public static final String DC_NAMESPACE = \"dc:\";\n \n}",
"private Utils() {\n\t}",
"private Utils() {\n\t}",
"com.soa.SolicitarServicioDocument.SolicitarServicio getSolicitarServicio();",
"@Override\n public int describeContents() { return 0; }",
"@ServoyClientSupport(ng = false, mc = true, wc = false, sc = false)\r\npublic interface IMobileSMHasTitle\r\n{\r\n\t/**\r\n\t * Get title label for the field or label.\r\n\t * \r\n\t * @sample\r\n\t * var form = solutionModel.newForm('someForm', 'db:/example_data/parent_table');\r\n\t * var field = form.newField('parent_table_text', JSField.TEXT_FIELD, 1);\r\n\t * field.getTitle().text = 'Parent table'\r\n\t * forms['someForm'].controller.show()\r\n\t */\r\n\tpublic IMobileSMTitle getTitle();\r\n}",
"public interface PrivacyHeader extends Header\n{\n\n /**\n * Name of PrivacyHeader\n */\n public final static String NAME = \"Privacy\";\n\n\n /**\n * Set Privacy header value\n * @param privacy -- privacy type to set.\n */\n public void setPrivacy(String privacy) throws ParseException;\n\n /**\n * Get Privacy header value\n * @return privacy token name\n */\n public String getPrivacy();\n\n\n}",
"private final zzgy zzgb() {\n }",
"@Override\n public void perish() {\n \n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"private static java.lang.String[] a(android.content.Context r3, com.xiaomi.xmpush.thrift.u r4) {\n /*\n java.lang.String r0 = r4.h()\n java.lang.String r1 = r4.j()\n java.util.Map r4 = r4.s()\n if (r4 == 0) goto L_0x0073\n android.content.res.Resources r2 = r3.getResources()\n android.util.DisplayMetrics r2 = r2.getDisplayMetrics()\n int r2 = r2.widthPixels\n android.content.res.Resources r3 = r3.getResources()\n android.util.DisplayMetrics r3 = r3.getDisplayMetrics()\n float r3 = r3.density\n float r2 = (float) r2\n float r2 = r2 / r3\n r3 = 1056964608(0x3f000000, float:0.5)\n float r2 = r2 + r3\n java.lang.Float r3 = java.lang.Float.valueOf(r2)\n int r3 = r3.intValue()\n r2 = 320(0x140, float:4.48E-43)\n if (r3 > r2) goto L_0x0051\n java.lang.String r3 = \"title_short\"\n java.lang.Object r3 = r4.get(r3)\n java.lang.String r3 = (java.lang.String) r3\n boolean r2 = android.text.TextUtils.isEmpty(r3)\n if (r2 != 0) goto L_0x0042\n r0 = r3\n L_0x0042:\n java.lang.String r3 = \"description_short\"\n java.lang.Object r3 = r4.get(r3)\n java.lang.String r3 = (java.lang.String) r3\n boolean r4 = android.text.TextUtils.isEmpty(r3)\n if (r4 != 0) goto L_0x0073\n goto L_0x0072\n L_0x0051:\n r2 = 360(0x168, float:5.04E-43)\n if (r3 <= r2) goto L_0x0073\n java.lang.String r3 = \"title_long\"\n java.lang.Object r3 = r4.get(r3)\n java.lang.String r3 = (java.lang.String) r3\n boolean r2 = android.text.TextUtils.isEmpty(r3)\n if (r2 != 0) goto L_0x0064\n r0 = r3\n L_0x0064:\n java.lang.String r3 = \"description_long\"\n java.lang.Object r3 = r4.get(r3)\n java.lang.String r3 = (java.lang.String) r3\n boolean r4 = android.text.TextUtils.isEmpty(r3)\n if (r4 != 0) goto L_0x0073\n L_0x0072:\n r1 = r3\n L_0x0073:\n r3 = 2\n java.lang.String[] r3 = new java.lang.String[r3]\n r4 = 0\n r3[r4] = r0\n r4 = 1\n r3[r4] = r1\n return r3\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.xiaomi.push.service.ah.a(android.content.Context, com.xiaomi.xmpush.thrift.u):java.lang.String[]\");\n }",
"public interface HTTPConstantsInterface {\n \n int DEFAULT_HTTPS_PORT = 443;\n String DEFAULT_HTTPS_PORT_STRING = \"443\"; // $NON-NLS-1$\n int DEFAULT_HTTP_PORT = 80;\n String DEFAULT_HTTP_PORT_STRING = \"80\"; // $NON-NLS-1$\n String PROTOCOL_HTTP = \"http\"; // $NON-NLS-1$\n String PROTOCOL_HTTPS = \"https\"; // $NON-NLS-1$\n String HEAD = \"HEAD\"; // $NON-NLS-1$\n String POST = \"POST\"; // $NON-NLS-1$\n String PUT = \"PUT\"; // $NON-NLS-1$\n String GET = \"GET\"; // $NON-NLS-1$\n String OPTIONS = \"OPTIONS\"; // $NON-NLS-1$\n String TRACE = \"TRACE\"; // $NON-NLS-1$\n String DELETE = \"DELETE\"; // $NON-NLS-1$\n String PATCH = \"PATCH\"; // $NON-NLS-1$\n String PROPFIND = \"PROPFIND\"; // $NON-NLS-1$\n String PROPPATCH = \"PROPPATCH\"; // $NON-NLS-1$\n String MKCOL = \"MKCOL\"; // $NON-NLS-1$\n String COPY = \"COPY\"; // $NON-NLS-1$\n String MOVE = \"MOVE\"; // $NON-NLS-1$\n String LOCK = \"LOCK\"; // $NON-NLS-1$\n String UNLOCK = \"UNLOCK\"; // $NON-NLS-1$\n String CONNECT = \"CONNECT\"; // $NON-NLS-1$\n+ String REPORT = \"REPORT\"; // $NON-NLS-1$\n+ String MKCALENDAR = \"MKCALENDAR\"; // $NON-NLS-1$\n String HEADER_AUTHORIZATION = \"Authorization\"; // $NON-NLS-1$\n String HEADER_COOKIE = \"Cookie\"; // $NON-NLS-1$\n String HEADER_CONNECTION = \"Connection\"; // $NON-NLS-1$\n String CONNECTION_CLOSE = \"close\"; // $NON-NLS-1$\n String KEEP_ALIVE = \"keep-alive\"; // $NON-NLS-1$\n // e.g. \"Transfer-Encoding: chunked\", which is processed automatically by the underlying protocol\n String TRANSFER_ENCODING = \"transfer-encoding\"; // $NON-NLS-1$\n String HEADER_CONTENT_ENCODING = \"content-encoding\"; // $NON-NLS-1$\n String HTTP_1_1 = \"HTTP/1.1\"; // $NON-NLS-1$\n String HEADER_SET_COOKIE = \"set-cookie\"; // $NON-NLS-1$\n String ENCODING_GZIP = \"gzip\"; // $NON-NLS-1$\n String HEADER_CONTENT_DISPOSITION = \"Content-Disposition\"; // $NON-NLS-1$\n String HEADER_CONTENT_TYPE = \"Content-Type\"; // $NON-NLS-1$\n String HEADER_CONTENT_LENGTH = \"Content-Length\"; // $NON-NLS-1$\n String HEADER_HOST = \"Host\"; // $NON-NLS-1$\n String HEADER_LOCAL_ADDRESS = \"X-LocalAddress\"; // $NON-NLS-1$ pseudo-header for reporting Local Address\n String HEADER_LOCATION = \"Location\"; // $NON-NLS-1$\n String APPLICATION_X_WWW_FORM_URLENCODED = \"application/x-www-form-urlencoded\"; // $NON-NLS-1$\n String MULTIPART_FORM_DATA = \"multipart/form-data\"; // $NON-NLS-1$\n // For handling caching\n String IF_NONE_MATCH = \"If-None-Match\"; // $NON-NLS-1$\n String IF_MODIFIED_SINCE = \"If-Modified-Since\"; // $NON-NLS-1$\n String ETAG = \"Etag\"; // $NON-NLS-1$\n String LAST_MODIFIED = \"Last-Modified\"; // $NON-NLS-1$\n String EXPIRES = \"Expires\"; // $NON-NLS-1$\n String CACHE_CONTROL = \"Cache-Control\"; //e.g. public, max-age=259200\n String DATE = \"Date\"; //e.g. Date Header of response \n \n }",
"public Tbdtokhaihq3() {\n super();\n }",
"private SnapshotUtils() {\r\n\t}",
"public interface UUCConstants {\n\t\n\n\tpublic String SERVICE_NAME = \"uuc.service.name\";\n\t\n\tpublic String SERVICE_ID = \"uuc.service.id\";\n\t\n\tpublic String SERVICE_URI = \"uuc.service.url\";\n\n\tpublic String USER_ID = \"uuc.user.id\";\n\t\n\tpublic String USER_NAME = \"uuc.user.name\";\n\t\n\tpublic String USER_EMAIL = \"uuc.user.email\";\n\t\n\tpublic String USER_GROUP=\"uuc.user.group\";\n\t\n\tpublic String USER_TITLE = \"uuc.user.title\";\n\t\n\tpublic String USER_LEVEL = \"uuc.user.level\";\n\t\n\tpublic String USER_PHOTO = \"uuc.user.photo\";\n\t\n\tpublic String USER_PHONE = \"uuc.user.phone\";\n\t\n\tpublic String USER_PASSWORD=\"uuc.user.password\";\n\t\n\tpublic String USER_EMPLOYEE_ID = \"uuc.user.employeeid\";\n}",
"public SgaexpedbultoImpl()\n {\n }",
"public interface ConstantsKey {\n// Values\n String TEXT_FONT_STYLE_NAME=\"WorkSans_Regular.ttf\";\n// Urls\n String BASE_URL=\"http://test.code-apex.com/codeapex_project/index.php/api/user/\";\n String BASEURL =\"baseurl\" ;\n// Keys\n}",
"@Override\n public void settings() {\n // TODO Auto-generated method stub\n \n }",
"@Override\n public int getVersion() {\n return 3;\n }",
"private OspfConfigUtil() {\n\n }",
"public interface ZConstants {\n String SAMPLE = \"/documenttype/{Id}\";\n String GET_LOGIN_ROLES = \"user/getloginroles\";\n String LOGIN = \"user/login\";\n String LOGOUT = \"user/Logout\";\n String PHOTO_SEARCH = \"photos/search\";\n String PHOTO_FAVORITE = \"photos/{id}/favorite\";\n\n\n String CONTENT_TYPE = \"Content-Type: \";\n String AUTHORIZATION = \"Authorization\";\n String CM_APPLICATION_JSON = \"application/json\";\n String CM_H_X_WWW_FORM_URLENCODED = \"application/x-www-form-urlencoded\";//Content/Media Type,Header\n String H_X_MS_BLOB_KEY = \"x-ms-blob-type\";\n String H_X_MS_BLOB_VALUE = \"BlockBlob\";\n String C_H_MULTIPART_FORM_DATA = \"multipart/form-data\";\n String GSON_DATE_FORMAT = \"yyyy-MM-dd'T'HH:mm:ssZ\";\n String BEARER_HEAD = \"Bearer \";\n}",
"@Override\n public void init() {\n\n }",
"@Override \r\n\tpublic String getName() {\r\n\t\treturn \"Bazooka\";\r\n\t}",
"private RecipleazBackendService() {\n }",
"public interface PaperDbConstants {\n String UNIVERSAL_TYPE = \"universal_flavor_type\";\n String PAPER_ACCESS_TOKEN = \"paper_access_token\";\n\n\n String LIVE = \"LIVE\";\n String DEV = \"DEV\";\n\n String LOGIN_CREDENTIALS = \"logininfo\";\n\n}",
"private RESTBackend()\n\t\t{\n\t\t\t\n\t\t}",
"zzang mo29839S() throws RemoteException;",
"@Override\n public int describeContents() {\n// ignore for now\n return 0;\n }",
"private VlcUtils()\n {\n \n }",
"private S2EdgeUtil() {}",
"@Override\n public String getDescription() {\n return description;\n }",
"public interface Constants {\r\n\r\n String ID = \"id\";\r\n String CREATED_AT = \"created_at\";\r\n String UPDATED_AT = \"updated_at\";\r\n String CREATED_BY = \"created_by\";\r\n String MODIFIED_BY = \"modified_by\";\r\n String DESCRIPTION = \"description\";\r\n String START_DATE = \"start_date\";\r\n String END_DATE = \"end_date\";\r\n String PLACE_HOLDER = \"{}\";\r\n String EMPTY = \"\";\r\n\r\n\r\n String USER_DETAIL = \"user_details\";\r\n\r\n String FILE_LOCATION = \"C:\\\\BVN\";\r\n String FILE_LOCATION_DECRYPTED = \"C:\\\\BVN\\\\decrypted\";\r\n String FILE_LOCATION_ENCRYPTED = \"C:\\\\BVN\\\\encrypted\";\r\n\r\n String ERROR_MESSAGE = \"Unable to process action, please try again\";\r\n\r\n String AGENT_ID_IS_REQUIRED = \"Agent Id is required\";\r\n String BRANCH_ID_IS_REQUIRED = \"Branch Id is required\";\r\n\r\n String SECRET_KEY = \"aeskey\";\r\n String IV = \"iv\";\r\n String USERNAME = \"username\";\r\n\r\n}",
"public interface Constants {\n\n //前端显示描述类内容最长字符串长度\n int MAX_LIST_CONTEXT_LENGTH = 60;\n\n //描述内容最大长度\n int MAX_CONTEXT_LENGTH = 3000;\n\n //评论内容最大长度\n int MAX_COMMENT_LENGTH = 500;\n\n //获取更多评论记录数\n int MAX_MORE_COMMENT_NUM = 100;\n\n //上传文件名字最大长度\n int MAX_FILE_NAME_LENGTH = 30;\n\n //同一作业连续发送提醒交作业通知间隔秒数\n int MIN_SECONDS_WARNSUB = 21600;\n\n //口语作业最多支持单词数\n int MAX_VOICE_WORK_WORDS = 15;\n\n //作业发布最长延迟天数\n int MAX_PUBLISH_WORK_EXDAYS = 60;\n\n // 课外作业\n int WORK_TYPE_EXTRA_WORK = 8;\n\n //板书类型\n int WORK_TYPE_VOICE_WORK = 7;\n\n //板书类型\n int WORK_TYPE_BLACKBOARD_PUBLISH = 6;\n\n //网络课件类型\n int WORK_TYPE_COURSE_REAPPEAR = 5;\n\n //电子作业\n int WORK_TYPE_EXERCISE_WORK = 4;\n\n //同步课堂作业\n int WORK_TYPE_SYNCLASS_WORK = 3;\n\n //同步课堂作业\n int WORK_TYPE_MAGIC_WORK = 2;\n\n //同步课堂作业\n int WORK_TYPE_GUIDANCE_WORK = 1;\n\n //我的课件\n int COURSEWARE_BELONG_TYPE_MY_APPEAR = 1;\n\n //发布的课件\n int COURSEWARE_BELONG_TYPE_COURSE_APPEAR = 3;\n\n //用户类型\n String TEACHER_TYPE = \"1\";\n\n String STUDENT_TYPE = \"2\";\n\n int WORK_TYPE = 1;\n\n int BLACKBOARD_TYPE = 2;\n\n //乐观锁机制尝试次数\n int OPTIMISTIC_LOCK_TRY_TIMES = 10;\n\n //提分宝作业评分描述10\n String MAGIC_WORK_SCORE_CONTEXT10 = \"恭喜你!继续保持,清华北大在等你哦!\";\n\n //提分宝作业评分描述9\n String MAGIC_WORK_SCORE_CONTEXT9 = \"哇噢!可以挑战清华北大了!\";\n\n //提分宝作业评分描述8\n String MAGIC_WORK_SCORE_CONTEXT8 = \"你好聪明,加油冲击重点大学吧!\";\n\n //提分宝作业评分描述7\n String MAGIC_WORK_SCORE_CONTEXT7 = \"太棒了,可以挑战一本大学啦!\";\n\n //提分宝作业评分描述6\n String MAGIC_WORK_SCORE_CONTEXT6 = \"再次挑战,稍微努力下就能二本大学啦!\";\n\n //提分宝作业评分描述5\n String MAGIC_WORK_SCORE_CONTEXT5 = \"再多练练就可以上大学啦!\";\n /**提分宝数据统计前端页面分数描述*/\n //提分宝作业评分描述10\n String STATISTICS_SCORE_CONTEXT10 = \"清华北大\";\n //提分宝作业评分描述9\n String STATISTICS_SCORE_CONTEXT9 = \"重点大学\";\n //提分宝作业评分描述8\n String STATISTICS_SCORE_CONTEXT8 = \"一本大学\";\n //提分宝作业评分描述7\n String STATISTICS_SCORE_CONTEXT7 = \"二本大学\";\n //提分宝作业评分描述6\n String STATISTICS_SCORE_CONTEXT6 = \"三本大学\";\n //提分宝作业评分描述5\n String STATISTICS_SCORE_CONTEXT5 = \"挑战完成\";\n\n\n\n //提醒交作业通知标题\n String WARNSUB_TITLE = \"作业提醒\";\n\n //提醒查看教师发布的板书、网络课件通知标题\n String WARNVIEW_BLACKBOARD_TITLE = \"新板书\";\n String WARNVIEW_COURSEWARE_TITLE = \"新课件\";\n\n //提醒交作业通知内容\n String WARNSUB_CONTENT = \"赶快交作业,老师都着急啦!\";\n\n String GUIDANCE_WORK_NAME = \"预习作业\";\n String MAGIC_WORK_NAME = \"提分宝作业\";\n String SYNCLASS_WORK_NAME = \"同步课堂作业\";\n String EXERCISE_WORK_NAME = \"电子作业\";\n String VOICE_WORK_NAME = \"口语作业\";\n String BLACKBOARD_WORK_NAME = \"板书\";\n String COURSEWARE_WORK_NAME = \"网络课件\";\n String EXTRA_WORK_NAME = \"课外作业\";\n\n String WARN_SUB_WORK_BUSY = \"您太忙碌啦,请休息一会儿,稍后再试\";\n\n // 页面最初加载的评论数\n int MIN_COMMENT_NUM = 4;\n\n // 数字的正则表达式\n final String NUMBER_EXPR = \"^[-+]?(([0-9]+)([.]([0-9]+))?|([.]([0-9]+))?)$\";\n\n // indentifyId\n String IDENTIFY_SCHOOL_MANAGER = \"SCHOOL_MANAGER\";\n String IDENTIFY_TEACHER = \"TEACHER\";\n String IDENTIFY_STUDENT = \"STUDENT\";\n String IDENTIFY_PARENT=\"PARENT\";\n\n final int MAX_STUDENT_NUMBER_FOR_PUBLIC = 1000;\n\n //出题数\n int MAGIC2_WORK_QUEST_NUM = 8;\n //最大衍生题号sort\n int MAGIC2_WORK_MAX_SORT = 5;\n\n //错误率\n double MAGIC2_WORK_WRONG_QUEST_NUM = 0.2;\n\n //默认题目初始平均用时\n final long MAGIC2_WORK_QUEST_AVGTIME = 30000;\n //默认作业时间\n final long DEFAULT_WORK_TIME = 300000;\n}",
"private ApiInfo apiDetails() {\n\t\tApiInfo apiInfo= new ApiInfoBuilder()\n\t\t\t\t.title(\"AuthorizationMicroservice Documentation\")\n\t\t\t\t.description(\"Gets the login details and checks the login details if yes it will generate a JWT token which we can use to validate the user.\")\n\t\t\t\t.termsOfServiceUrl(\"Help\")\n\t\t\t\t.license(\"Audit Management System 1.0\")\n\t\t\t\t.contact(new Contact(\"Souraj Mukhopadhyay\",\"cognizant.com\",\"[email protected]\"))\n\t\t\t\t.version(\"1.0\")\t\t\n\t\t\t\t.build();\n\t\tlog.debug(\"API Info{}:\", apiInfo);\n\t\treturn apiInfo;\n\t}",
"public Version version()\n/* */ {\n/* 518 */ return PackageVersion.VERSION;\n/* */ }",
"@Override\n protected String getDescription() {\n return DESCRIPTION;\n }",
"@Override\n void init() {\n }",
"Context mo1490b();",
"private GardenerStrategyHelpers() {\n }",
"public interface Constants {\n String NA = \"NA\";\n String ARG_USERS=\"user\";\n String SENDER_ID =\"fro9SbG2Eic:APA91bHzUBA35xjcDP7TXu5uG3JetLMENHfJpfKnRjS02-y8W4n1ZonIn9HYNAwjV8F3uiOAV2gXparORINEEps3t0kCZHI2rutU33DaUlDeGJYrKDK_fG9HCdXAq1gNHtfmfqHGDBve\" ;\n}",
"public String getLicense();",
"public void mo6081a() {\n }",
"private SolutionsPackage() {}",
"@Override\n public String describe() {\n return null;\n }",
"public interface TAG_JAVA_CODEBASE\n{\n\n /**\n * Class downloading is supported for stubs, ties, values, and \n * value helpers. The specification allows transmission of codebase \n * information on the wire for stubs and ties, and enables usage of \n * pre-existing ClassLoaders when relevant. \n * <p>\n * For values and value helpers, the codebase is transmitted after the \n * value tag. For stubs and ties, the codebase is transmitted as \n * the TaggedComponent <code>TAG_JAVA_CODEBASE</code> in the IOR \n * profile, where the <code>component_data</code> is a CDR encapsulation \n * of the codebase written as an IDL string. The codebase is a \n * space-separated list of one or more URLs.\n */\n public static final int value = (int)(25L);\n}",
"@Override\n public boolean isSupported() {\n return true;\n }",
"private TMCourse() {\n\t}",
"Petunia() {\r\n\t\t}",
"public interface C45630d {\n\n /* renamed from: com.tencent.mm.plugin.appbrand.jsapi.video.d$f */\n public interface C10555f {\n /* renamed from: es */\n void mo22049es(boolean z);\n }\n\n /* renamed from: com.tencent.mm.plugin.appbrand.jsapi.video.d$d */\n public interface C19512d {\n /* renamed from: dd */\n void mo34676dd(int i, int i2);\n }\n\n /* renamed from: com.tencent.mm.plugin.appbrand.jsapi.video.d$e */\n public interface C27129e {\n void onVisibilityChanged(boolean z);\n }\n\n /* renamed from: com.tencent.mm.plugin.appbrand.jsapi.video.d$g */\n public enum C27130g {\n DEFAULT,\n FILL,\n CONTAIN,\n COVER;\n\n static {\n AppMethodBeat.m2505o(126548);\n }\n }\n\n /* renamed from: com.tencent.mm.plugin.appbrand.jsapi.video.d$a */\n public interface C38399a {\n void aDF();\n\n void aEZ();\n\n boolean aFA();\n\n void aFD();\n\n void aFE();\n\n boolean aFF();\n\n void aFG();\n\n void aFH();\n\n boolean aFI();\n\n void aFN();\n\n void aFO();\n\n boolean aFR();\n\n void aFy();\n\n void hide();\n\n void onDestroy();\n\n void seek(int i);\n\n void setDanmakuBtnOnClickListener(C10555f c10555f);\n\n void setDanmakuBtnOpen(boolean z);\n\n void setExitFullScreenBtnOnClickListener(OnClickListener onClickListener);\n\n void setFullScreenBtnOnClickListener(OnClickListener onClickListener);\n\n void setIplaySeekCallback(C42594c c42594c);\n\n void setMuteBtnOnClickListener(OnClickListener onClickListener);\n\n void setMuteBtnState(boolean z);\n\n void setOnPlayButtonClickListener(OnClickListener onClickListener);\n\n void setOnUpdateProgressLenListener(C19512d c19512d);\n\n void setOnVisibilityChangedListener(C27129e c27129e);\n\n void setPlayBtnInCenterPosition(boolean z);\n\n void setShowControlProgress(boolean z);\n\n void setShowDanmakuBtn(boolean z);\n\n void setShowFullScreenBtn(boolean z);\n\n void setShowMuteBtn(boolean z);\n\n void setShowPlayBtn(boolean z);\n\n void setShowProgress(boolean z);\n\n void setStatePorter(C38400h c38400h);\n\n void setTitle(String str);\n }\n\n /* renamed from: com.tencent.mm.plugin.appbrand.jsapi.video.d$h */\n public interface C38400h {\n int aFg();\n\n int aFh();\n }\n\n /* renamed from: com.tencent.mm.plugin.appbrand.jsapi.video.d$b */\n public interface C42593b {\n /* renamed from: H */\n void mo34677H(String str, int i, int i2);\n\n void aFq();\n\n void aFr();\n\n void aFs();\n\n void aFt();\n\n void aFu();\n\n void aFv();\n\n /* renamed from: de */\n void mo34684de(int i, int i2);\n }\n\n /* renamed from: com.tencent.mm.plugin.appbrand.jsapi.video.d$c */\n public interface C42594c {\n void aFw();\n\n /* renamed from: oA */\n void mo22044oA(int i);\n }\n\n void aEX();\n\n void akV();\n\n void akW();\n\n /* renamed from: as */\n boolean mo61579as(float f);\n\n /* renamed from: c */\n void mo61580c(boolean z, String str, int i);\n\n /* renamed from: e */\n boolean mo61581e(double d, boolean z);\n\n int getCacheTimeSec();\n\n int getCurrPosMs();\n\n int getCurrPosSec();\n\n int getVideoDurationSec();\n\n boolean isLive();\n\n boolean isPlaying();\n\n boolean pause();\n\n /* renamed from: s */\n boolean mo61590s(double d);\n\n void setControlBar(C38399a c38399a);\n\n void setIMMVideoViewCallback(C42593b c42593b);\n\n void setMute(boolean z);\n\n void setScaleType(C27130g c27130g);\n\n void setVideoSource(int i);\n\n void start();\n\n void stop();\n}",
"@SuppressWarnings(\"unused\")\npublic interface Constants {\n /**\n * Extra data key. Used with intent or some others.\n */\n class Extras {\n public static final String TAG = \"ext_tag\";\n public static final String FLAG = \"ext_flag\";\n public static final String DATA = \"ext_data0\";\n public static final String DATA_1 = \"ext_data1\";\n public static final String DATA_2 = \"ext_data2\";\n public static final String DATA_3 = \"ext_data3\";\n public static final String DATA_4 = \"ext_data4\";\n public static final String DATA_5 = \"ext_data5\";\n public static final String DATA_6 = \"ext_data6\";\n public static final String DATA_7 = \"ext_data7\";\n public static final String DATA_8 = \"ext_data8\";\n public static final String GRADE_INFO = \"ext_grade_info\";\n public static final String MEMBER_VP_INFO = \"ext_member_vp_info\";\n public static final String MEMBER_VP_POSITION = \"ext_member_vp_position\";\n }\n\n\n}",
"public void mo55254a() {\n }",
"@kotlin.Metadata(mv = {1, 1, 15}, bv = {1, 0, 3}, k = 1, d1 = {\"\\u0000(\\n\\u0002\\u0018\\u0002\\n\\u0002\\u0010\\u0000\\n\\u0000\\n\\u0002\\u0018\\u0002\\n\\u0000\\n\\u0002\\u0010\\u0002\\n\\u0000\\n\\u0002\\u0018\\u0002\\n\\u0000\\n\\u0002\\u0018\\u0002\\n\\u0000\\n\\u0002\\u0018\\u0002\\n\\u0000\\bg\\u0018\\u00002\\u00020\\u0001J\\b\\u0010\\u0002\\u001a\\u00020\\u0003H&J\\u0010\\u0010\\u0004\\u001a\\u00020\\u00052\\u0006\\u0010\\u0006\\u001a\\u00020\\u0007H&J\\u0010\\u0010\\u0004\\u001a\\u00020\\u00052\\u0006\\u0010\\b\\u001a\\u00020\\tH&J\\u0010\\u0010\\u0004\\u001a\\u00020\\u00052\\u0006\\u0010\\n\\u001a\\u00020\\u000bH&\\u00a8\\u0006\\f\"}, d2 = {\"Lcom/github/midros/istheapp/di/component/AppComponent;\", \"\", \"getInterfaceFirebase\", \"Lcom/github/midros/istheapp/data/rxFirebase/InterfaceFirebase;\", \"inject\", \"\", \"app\", \"Lcom/github/midros/istheapp/app/IsTheApp;\", \"accessibilityDataService\", \"Lcom/github/midros/istheapp/services/accessibilityData/AccessibilityDataService;\", \"notificationService\", \"Lcom/github/midros/istheapp/services/notificationService/NotificationService;\", \"app_debug\"})\[email protected](modules = {com.github.midros.istheapp.di.module.AppModule.class, com.github.midros.istheapp.di.module.FirebaseModule.class})\[email protected]()\npublic abstract interface AppComponent {\n \n public abstract void inject(@org.jetbrains.annotations.NotNull()\n com.github.midros.istheapp.app.IsTheApp app);\n \n public abstract void inject(@org.jetbrains.annotations.NotNull()\n com.github.midros.istheapp.services.accessibilityData.AccessibilityDataService accessibilityDataService);\n \n public abstract void inject(@org.jetbrains.annotations.NotNull()\n com.github.midros.istheapp.services.notificationService.NotificationService notificationService);\n \n @org.jetbrains.annotations.NotNull()\n public abstract com.github.midros.istheapp.data.rxFirebase.InterfaceFirebase getInterfaceFirebase();\n}",
"private UsineJoueur() {}",
"private KubevirtNetworkingUtil() {\n }",
"@Override\n protected void initialize() \n {\n \n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }"
] | [
"0.5866605",
"0.5756967",
"0.5376766",
"0.5334571",
"0.53339607",
"0.5316397",
"0.5315102",
"0.5291379",
"0.5225221",
"0.52098185",
"0.51960045",
"0.51906127",
"0.518776",
"0.5166898",
"0.5135902",
"0.5132776",
"0.5124542",
"0.5124542",
"0.5124542",
"0.5124542",
"0.5111372",
"0.5106503",
"0.51009923",
"0.5090958",
"0.50847423",
"0.5077954",
"0.5074392",
"0.5067247",
"0.5060002",
"0.5049806",
"0.5022393",
"0.5015944",
"0.5011648",
"0.5009911",
"0.50069004",
"0.50051177",
"0.4996122",
"0.49956167",
"0.4994823",
"0.4989382",
"0.4989382",
"0.49853078",
"0.49807593",
"0.4969591",
"0.49643838",
"0.49629483",
"0.49588007",
"0.49538806",
"0.49538806",
"0.49538806",
"0.49538806",
"0.49538806",
"0.49538806",
"0.49510726",
"0.49508756",
"0.49474853",
"0.49418068",
"0.49385485",
"0.49290684",
"0.49240682",
"0.49204215",
"0.49183992",
"0.49164563",
"0.49153513",
"0.49126402",
"0.4910627",
"0.49106187",
"0.49049816",
"0.49041533",
"0.48913184",
"0.48849893",
"0.4882902",
"0.4874224",
"0.4873172",
"0.48673186",
"0.48666245",
"0.48522735",
"0.48501205",
"0.48495328",
"0.48461083",
"0.4845855",
"0.48435572",
"0.483747",
"0.48369586",
"0.48359686",
"0.48320913",
"0.48305005",
"0.48293036",
"0.48230386",
"0.48226804",
"0.48226565",
"0.48225212",
"0.4818171",
"0.4814899",
"0.48123002",
"0.48107135",
"0.48099995",
"0.48092884",
"0.4808832",
"0.4808832",
"0.4808832"
] | 0.0 | -1 |
Saves a given entity. Use the returned instance for further operations as the save operation might have changed the entity instance completely. | T save(T obj); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Entity save(Entity entity);",
"E save(E entity);",
"void save(E entity);",
"void save(Object entity);",
"T save(T entity);",
"T save(T entity);",
"T save(T entity);",
"public <T> T save(T entity);",
"@Override\n\tpublic T save(T entity) {\n\t\treturn getDao().save(entity);\n\t}",
"<S extends T> S save(S entity);",
"<S extends T> S save(S entity);",
"void save(T entity);",
"public T doSave(T entity)\n {\n preDoSave(entity);\n session.saveOrUpdate(entity);\n postDoSave(entity);\n\n return entity;\n }",
"T save(T entity) throws DataConcurrencyException, DataIntegrityViolationException;",
"Boolean save(T entity);",
"public void save(E entity){\n transaction.begin();\n entityManager.persist(entity);\n transaction.commit();\n }",
"@SuppressWarnings({\n\t\t\t\t\t\t\"rawtypes\", \"unchecked\" })\n\tprotected <E extends AbstractEntity> E saveEntity(final E entity) {\n\t\tObjects.requireNonNull(entity);\n\n\t\tE entityDB;\n\t\ttry (final Connection con = conManager.getConnection(Boolean.FALSE)) {\n\t\t\tentityDB = (E) (new EntityManagerImpl(entity.getClass())).saveOrUpdate(con, entity);\n\t\t} catch (SQLException e) {\n\t\t\tthrow new IllegalStateException(\"Entity save failed\", e);\n\t\t}\n\n\t\treturn entityDB;\n\t}",
"public void save(final T entity)\n\t{\n\t\tem.persist(entity);\n\t}",
"public TEntity save(TEntity entity){\n ContentValues content = toContentValues(entity);\n TEntity oldEntity = getById(entity.getId());\n\n int newKey;\n\n if (oldEntity != null) {\n db.update(tableName, content, String.format(\"Id = %1$s\", oldEntity.getId()), null);\n newKey = oldEntity.getId();\n } else {\n newKey = (int)db.insert(tableName, null, content);\n }\n return getById(newKey);\n }",
"@Override\n public Building save(Building entity) {\n return dao.save(entity);\n }",
"public T save(T entity) throws Exception{\n\t\tentity = em.merge(entity);\n\t\treturn entity;\n\t}",
"@Override\r\n\tpublic T save(T entity) throws Exception {\n\t\ttry {\r\n\t\t\tthis.getcurrentSession().save(entity);\r\n\t\t\treturn entity;\r\n\t\t} catch (DataAccessException e) {\r\n\t\t\tthrow new Exception(\"保存\" + entity.getClass().getName() + \"实例失败\", e);\r\n\t\t}\r\n\r\n\t}",
"@Override\n\tpublic void save(Field entity) {\n\t\t\n\t}",
"@Override\n public int save(T entity) {\n return mapper.insert(entity);\n }",
"@Override\n\tpublic <S extends Audit> S save(S entity) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic void save( T entity) {\n\t baseDaoImpl.save(entity);\n\t}",
"public T save(T entity) throws DAOException {\n Helper.checkNull(entity, \"entity\");\n Helper.checkEntityManager(entityManager);\n try {\n return entityManager.merge(entity);\n } catch (Exception e) {\n throw new DAOException(\"Failed to save entity.\", e);\n }\n }",
"@Override\r\n\tpublic void save(T instance) {\r\n\t\tif (isManaged(instance)) {\r\n\t\t\tgetEntityManager().merge(instance);\r\n\t\t} else {\r\n\t\t\tgetEntityManager().persist(instance);\r\n\t\t}\r\n\t}",
"@Override\n\t@RestResource(exported = false)\n\tpublic <S extends Book> S save(S entity);",
"@Override\n\tpublic int saveObject(Evaluate entity) {\n\t\treturn evaluateMapper.saveObject(entity)\n\t\t\t\t;\n\t}",
"public E saveUpdate(E entity){\n EntityTransaction transaction = entityManager.getTransaction();\n transaction.begin();\n E e = entityManager.merge(entity);\n transaction.commit();\n return e;\n }",
"@Override\n public SideDishEntity save(SideDishEntity entity) {\n return null;\n }",
"@Override\n\tpublic void saveEntity(T t) {\n\t\tgetSession().save(t);\n\t}",
"public void save(Entity entity) throws RepositoryException {\n\t\tDatanucleusCRUDUtils.save(entity);\n\t}",
"void saveOrUpdate(T entity);",
"void saveOrUpdate(T entity);",
"public void save(Object instance);",
"public PersonalRecord save(PersonalRecord entity) {\n\t\treturn personalRecordRepository.save(entity);\n\t}",
"ID saveWithId(T entity);",
"public Predmet save(Predmet entity){\r\n\t\tPredmet find = em.find(Predmet.class, entity.getSifraPredmeta());\r\n\t\tif(find != null){\r\n\t\t\tem.getTransaction().begin();\r\n\t\t\tfind.setNazivPredmeta(entity.getNazivPredmeta());\r\n\t\t\tfind.setSkraceniNazivPredmeta(entity.getSkraceniNazivPredmeta());\r\n\t\t\tfind.setBrojSemestra(entity.getBrojSemestra());\r\n\t\t\tem.getTransaction().commit();\r\n\t\t}else{\r\n\t\t\tsuper.save(entity);\r\n\t\t}\r\n\t\tMyEvent evt = new MyEvent(this, \"Update Predmet\");\r\n\t\tPanelPrijava.realTime.fireMyEvent(evt);\r\n\t\treturn entity;\r\n\t}",
"@Override\n\tpublic <S extends Translator> S save(S entity) {\n\t\treturn save(entity);\n\t}",
"@Override\n\tpublic <S extends Audit> S saveAndFlush(S entity) {\n\t\treturn null;\n\t}",
"void save(T entity, boolean editMode) throws PersistenceException;",
"public void saveOrUpdate(T entity) {\n\t\t\n\t}",
"void save(Cartera entity);",
"@Override\n\tpublic void save(EmpType entity) {\n\t\t\n\t}",
"public Contract save(Contract entity) {\n\t\treturn null;\r\n\t}",
"public abstract void saveOrUpdate(T entity);",
"@Override\r\n\tpublic Staff save(Staff entity) {\n\t\treturn staffDao.save(entity);\r\n\t}",
"public UserEntity save(UserEntity userEntity);",
"@Override\n\tpublic Comprobante save(Comprobante entity) throws Exception {\n\t\treturn comproRepository.save(entity);\n\t}",
"public void persist(T entity) {\n getSession().persist(entity);\n }",
"public void persist(T entity) {\n getSession().persist(entity);\n }",
"@Override\n\tpublic void persist(Object entity) {\n\t\t\n\t}",
"public void save(PtJJdwcy entity);",
"public void save(Address entity);",
"@Override\r\n\tpublic final <S extends MODEL> void persist(S entity) {\r\n\t\tLOGGER.trace(\"Persisting entity {}\", entity);\r\n\t\tif (entity == null) {\r\n\t\t\tthrow DaoRuntimeException.cannotPerformCRUDOnNullEntity();\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tentityManager.persist(entity);\r\n\t\t} catch (Exception exception) {\r\n\t\t\tHandlerUtil.handle(exception);\r\n\t\t\tThrowable rootCause = Throwables.getRootCause(exception);\r\n\t\t\tthrow DaoRuntimeException.cannotSaveEntity(getEntityClassName(), rootCause.getMessage(), exception);\r\n\r\n\t\t} finally {\r\n\t\t\tcloseEntityManager(entityManager);\r\n\t\t}\r\n\r\n\t}",
"public void persist(T entity) {\n\t\tsessionFactory.getCurrentSession().persist(entity);\n\t}",
"public final void persist(final E entity) {\n getJpaTemplate().persist(entity);\n }",
"public void save(HrCStatitem entity);",
"@Override\r\n\tpublic void save(PartyType entity) {\n\t\t\r\n\t}",
"@Override\n public E insert(E entity) {\n LOG.info(\"[insert] Start: entity = \" + entity.getClass().getSimpleName());\n entityManager.persist(entity);\n LOG.info(\"[insert] End\");\n return entity;\n }",
"public Observable<E> save(final E inEntity) {\n return Observable.create(inSource -> {\n try {\n final E theSavedEntity = mRepository.save(inEntity);\n inSource.onNext(theSavedEntity);\n inSource.onComplete();\n } catch (final Exception theException) {\n inSource.onError(theException);\n }\n });\n }",
"@Transactional\n public DevStudio save(DevStudio entity) {\n return getDevStudioRepository().save(entity);\n }",
"@Transactional\n\t@Override\n\tpublic void save(T entity) {\n\t\tregistroDao.save((Registro)entity);\t\t\n\t}",
"@Override\n\tpublic void save(User entity) {\n\t\t\n\t}",
"public Saver save() {\n return new AugmentedSaver() {\n @Override\n protected void handleSave(Iterable<?> entities) {\n assertInTransaction();\n checkState(\n Streams.stream(entities).allMatch(Objects::nonNull), \"Can't save a null entity.\");\n checkProhibitedAnnotations(entities, NotBackedUp.class, VirtualEntity.class);\n ImmutableMap<Key<?>, ?> keysToEntities = uniqueIndex(entities, Key::create);\n TRANSACTION_INFO.get().putSaves(keysToEntities);\n }\n };\n }",
"E update(E entity);",
"E update(E entity);",
"public void save() throws EntityPersistenceException {\n\n }",
"@Put\n public void storeRepresentation(Representation entity)\n throws ResourceException {\n try {\n JaxbRepresentation<Student> jaxbRep =\n new JaxbRepresentation<Student>(entity, Student.class);\n jaxbRep.validate(FileUtils.getSchema(STUDENT_INPUT_SCHEMA_PATH));\n Student updatedStudent = (Student)jaxbRep.getObject();\n dataService.putStudent(student, updatedStudent);\n getResponse().setEntity(\n new JaxbRepresentation(MediaType.TEXT_XML, updatedStudent));\n getResponse().setStatus(Status.SUCCESS_OK);\n } catch (SAXException ex) {\n logger.log(Level.SEVERE, ex.toString(), ex);\n throw new ResourceException(Status.CLIENT_ERROR_BAD_REQUEST, ex);\n } catch (Exception ex) {\n logger.log(Level.SEVERE, ex.toString(), ex);\n throw new ResourceException(Status.SERVER_ERROR_INTERNAL, ex);\n }\n }",
"@Observable\n public AbstractBatchAction<T> addToSaveEntities(final T entity) {\n this.saveEntities.add(entity);\n return this;\n }",
"@Override\r\n\tpublic CertMaster save(CertMaster entity) {\n\t\treturn certMasterRepository.save(entity);\r\n\t\t\r\n\t}",
"private void saveEntity(E entity){\n try (BufferedWriter bw = new BufferedWriter(new FileWriter(this.fileName, true))) {\n bw.write(entity.toFile());\n bw.newLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"@Override\n\tpublic void saveself(DataTaxTask entity) {\n\t\tcommonDao.saveOrUpdate(entity);\n\t\t\n\t}",
"CounselorBiographyTemp save(CounselorBiographyTemp entity);",
"@Override\n\t@Transactional\n\tpublic Cliente save(Cliente entity) throws Exception {\n\t\treturn clienteRepository.save(entity);\n\t}",
"public void save(HrJBorrowcontract entity);",
"E update(E entity) throws ValidationException;",
"public void save(ShoppingCartLine entity) {\n \t\t\t\tLogUtil.log(\"saving ShoppingCartLine instance\", Level.INFO, null);\n\t try {\n entityManager.persist(entity);\n \t\t\tLogUtil.log(\"save successful\", Level.INFO, null);\n\t } catch (RuntimeException re) {\n \t\t\t\tLogUtil.log(\"save failed\", Level.SEVERE, re);\n\t throw re;\n }\n }",
"@PutMapping()\n\t@Override\n\tpublic Address save(@RequestBody Address entity) {\n\t\treturn addressService.save(entity);\n\t}",
"public void save()\n\t{\n\t\tif(entity != null)\n\t\t\t((SaveHandler)DimensionManager.getWorld(0).getSaveHandler()).writePlayerData(entity);\n\t}",
"@Override\n\tpublic <S extends Translator> S saveAndFlush(S entity) {\n\t\treturn null;\n\t}",
"@Override\r\n\tpublic void save(HotelVendorEntity entity) {\n\t\tSystem.out.println(\"invoked save\"+entity);\r\n\t\tSystem.out.println(\"saved in database\");\r\n\t\t\r\n\t\tConfiguration cfg=new Configuration();\r\n\t\tcfg.configure();\r\n\t\tSessionFactory factory=cfg.buildSessionFactory();\r\n\t\tSession session=factory.openSession();\r\n\t\tsession.beginTransaction();\r\n\t\tsession.save(entity);\r\n\t\tsession.getTransaction().commit();\r\n\t\tsession.close();\r\n\t\tfactory.close();\r\n\t\t\r\n\t}",
"@Override\n public E update(E entity) {\n LOG.info(\"[update] Start: entity = \" + entity.getClass().getSimpleName());\n entityManager.merge(entity);\n LOG.info(\"[update] End\");\n return entity;\n }",
"T update(T entity);",
"T update(T entity);",
"public void save(E entity, User user) {\n Session session = DAOUtils.getSession();\n Transaction trans = session.beginTransaction();\n\n entity.setModification(user);\n session.saveOrUpdate(entity);\n\n trans.commit();\n }",
"T makePersistent(T entity);",
"public void persist(Book entity)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tbookdao.openCurrentSessionwithTransation();\r\n\t\t\tbookdao.persist(entity);\r\n\t\t\tbookdao.closeSessionwithTransaction();\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public <T> T update(T entity);",
"public T create(T entity) {\n\t \tgetEntityManager().getTransaction().begin();\n\t getEntityManager().persist(entity);\n\t getEntityManager().getTransaction().commit();\n\t getEntityManager().close();\n\t return entity;\n\t }",
"public boolean writeToEntity(Entity entity) {\n\n\t\t\tentity.setName(name);\n\n\t\t\tif (this.scripts != null)\n\t\t\t\tentity.getScripts().setTo(scripts);\n\n\t\t\tentity.setHelp((this.help == null) ? \"\" : this.help);\n\n\t\t\tif (this.permissions != null)\n\t\t\t\tentity.setPermissions(this.permissions);\n\t\t\t\n\t\t\tif(entity instanceof Sign) {\n\t\t\t\t((Sign)entity).setMessage(signText);\n\t\t\t}\n\n\n\t\t\t// TODO: write image to Entity?\n\n\t\t\t// TODO: write position to Entity?\n\n\t\t\treturn true;\n\t\t}",
"@SuppressWarnings(\"unchecked\")\n @Override\n protected <T> T _persistOrMerge(T entity) {\n if (entity == null) {\n logger.debug(\"entity == null\");\n return null;\n }\n if (em().contains(entity)) {\n logger.debug(\"em().contains(entity), try to _merge\");\n return _merge(entity);\n }\n Serializable id = getMetadataUtil().getId(entity);\n if (id == null) {\n logger.debug(\"_persist(id == null)\");\n _persist(entity);\n return entity;\n }\n T prev = em().find((Class<T>) entity.getClass(), id);\n if (prev == null) {\n logger.debug(\"_persist(prev == null)\");\n _persist(entity);\n return entity;\n } else {\n logger.debug(\"_merge\");\n return _merge(entity);\n }\n }",
"public void save(CbmCItemFininceItem entity);",
"public void postDoSave(T entity)\n {\n }",
"@Transactional\n\t@Override\n\tpublic Persona save(Persona entity) throws Exception {\n\t\treturn personaRepository.save(entity);\n\t}",
"E create(E entity);",
"E create(E entity);",
"public void saveGeneric(Object entity) throws RepositoryException {\n\t\tDatanucleusCRUDUtils.saveGeneric(entity);\n\t}",
"public T update(final T entity)\n\t{\n\t\treturn em.merge(entity);\n\t}"
] | [
"0.77403116",
"0.7540583",
"0.74112517",
"0.7410056",
"0.7320316",
"0.7320316",
"0.7320316",
"0.7313401",
"0.71969235",
"0.71913415",
"0.71913415",
"0.7151139",
"0.7079406",
"0.70118886",
"0.69752234",
"0.6901197",
"0.6898151",
"0.68873703",
"0.68357825",
"0.67930573",
"0.67410487",
"0.6625288",
"0.66192025",
"0.6570202",
"0.6493479",
"0.64820164",
"0.64321494",
"0.6379424",
"0.6353196",
"0.6324684",
"0.63067406",
"0.6301148",
"0.62888736",
"0.62538964",
"0.625148",
"0.625148",
"0.6243685",
"0.6242254",
"0.62046695",
"0.6179236",
"0.6169043",
"0.61654466",
"0.6151506",
"0.6130546",
"0.61222446",
"0.6112864",
"0.6111227",
"0.6105763",
"0.60689294",
"0.60639954",
"0.60563976",
"0.6022693",
"0.6022693",
"0.60141027",
"0.6007636",
"0.60065895",
"0.6002019",
"0.5998206",
"0.5998011",
"0.599591",
"0.59893745",
"0.59635156",
"0.5953707",
"0.59472704",
"0.5946985",
"0.5914597",
"0.5904169",
"0.5878083",
"0.5878083",
"0.58672804",
"0.585246",
"0.5842857",
"0.58237654",
"0.5805564",
"0.5770686",
"0.5748111",
"0.5738631",
"0.5727887",
"0.57184595",
"0.56775206",
"0.56694114",
"0.56470764",
"0.55602074",
"0.5546259",
"0.55365944",
"0.55279285",
"0.55279285",
"0.5516967",
"0.5514167",
"0.55099106",
"0.5503738",
"0.5503292",
"0.55001503",
"0.5492207",
"0.54910886",
"0.5490369",
"0.5478703",
"0.5471713",
"0.5471713",
"0.5465084",
"0.5431733"
] | 0.0 | -1 |
Edits a given entity. Use the returned instance for further operations as the edit operation might have changed the entity instance completely. | T edit(T obj); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"E update(E entity);",
"E update(E entity);",
"public void update(E entity);",
"E update(E entity) throws ValidationException;",
"E update(ID id, E entity, RequestContext context);",
"public <T> T update(T entity);",
"T update(T entity);",
"T update(T entity);",
"void update(T entity) throws Exception;",
"boolean update(T entity) throws Exception;",
"public void updateEntity();",
"void update(CE entity);",
"void update(T entity);",
"void update(T entity);",
"public Address update(Address entity);",
"protected abstract Entity getEditedEntity();",
"default E update(ID id, E entity) {\n return update(id, entity, null);\n }",
"boolean updateById(T entity);",
"void save(T entity, boolean editMode) throws PersistenceException;",
"protected abstract void showEditedEntity(Entity e);",
"public abstract boolean update(T entity) throws ServiceException;",
"@RequestMapping(value = { \"/edit-{id}\" }, method = RequestMethod.POST)\n\tpublic String updateEntity(@Valid ENTITY entity, BindingResult result,\n\t\t\tModelMap model, @PathVariable ID id,@RequestParam(required = false) Integer idEstadia) {\n\t\ttry{\n\t\t\tif(idEstadia != null){\n\t\t\t\tmodel.addAttribute(\"idEstadia\", idEstadia);\n\t\t\t}\n\n\t\t\tif (result.hasErrors()) {\n\t\t\t\treturn viewBaseLocation + \"/form\";\n\t\t\t}\n\n\t\t\tabm.actualizar(entity);\n\n\t\t\tmodel.addAttribute(\"success\", \"La modificación se realizó correctamente.\");\n\t\t} catch (Exception exception) {\n\t\t\tmodel.addAttribute(\"success\", \"La modificación no pudo realizarse.\");\n\t\t}\n\n\t\tmodel.addAttribute(\"loggedinuser\", getPrincipal());\n\t\t//return viewBaseLocation + \"/list\";\n\t\treturn \"redirect:list\";\n\n\t}",
"public T update(T entity) throws DataAccessException;",
"@RequestMapping(value = { \"/edit-{id}\" }, method = RequestMethod.GET)\n\tpublic String editEntity(@PathVariable ID id, ModelMap model,\n\t\t\t@RequestParam(required = false) Integer idEstadia) {\n\t\tENTITY entity = abm.buscarPorId(id);\n\t\tmodel.addAttribute(\"entity\", entity);\n\t\tmodel.addAttribute(\"edit\", true);\n\n\t\tif(idEstadia != null){\n\t\t\tmodel.addAttribute(\"idEstadia\", idEstadia);\n\t\t}\n\n\t\tmodel.addAttribute(\"loggedinuser\", getPrincipal());\n\t\treturn viewBaseLocation + \"/form\";\n\t}",
"@Override\n\tpublic T update(T entity) {\n\t\treturn entity;\n\t}",
"void update(Student entity);",
"public void update(T entity) {\n\t\tsessionFactory.getCurrentSession().update(entity);\n\t}",
"public Equipamento editar(Equipamento eq) {\r\n\t\t\tthis.conexao.abrirConexao();\r\n\t\t\tString sqlUpdate = \"UPDATE equipamentos SET nome=?,descricao=?, id_usuario=? WHERE id_equipamentos=?\";\r\n\t\t\ttry {\r\n\t\t\t\tPreparedStatement statement = (PreparedStatement) this.conexao.getConexao().prepareStatement(sqlUpdate);\r\n\t\t\t\tstatement.setString(1, eq.getNome());\r\n\t\t\t\tstatement.setString(2, eq.getDescricao());\r\n\t\t\t\tstatement.setLong(3, eq.getUsuario().getId());\r\n\t\t\t\tstatement.setLong(4, eq.getId());\r\n\t\t\t\t/*int linhasAfetadas = */statement.executeUpdate();\r\n\t\t\t\t\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} finally {\r\n\t\t\t\tthis.conexao.fecharConexao();\r\n\t\t\t}\r\n\t\t\treturn eq;\r\n\t\t}",
"public T update(final T entity)\n\t{\n\t\treturn em.merge(entity);\n\t}",
"@Override\n\tpublic void updateEntity(T t) {\n\t\tgetSession().update(t);\n\t}",
"public void update(Book entity)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tbookdao.openCurrentSessionwithTransation();\r\n\t\t\tbookdao.update(entity);\r\n\t\t\tbookdao.closeSessionwithTransaction();\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"T edit(long id, T obj);",
"@Override\n public E update(E entity) {\n LOG.info(\"[update] Start: entity = \" + entity.getClass().getSimpleName());\n entityManager.merge(entity);\n LOG.info(\"[update] End\");\n return entity;\n }",
"public AnswerEntity editAnswer(AnswerEntity answerEntity) {\n entityManager.merge(answerEntity);\n return answerEntity;\n }",
"@Override\n public void editar(EntidadeBase entidade) throws EditarEntidadeException, ValidacaoEntidadeException, Exception {\n setOperacao(OPERACAO_EDITAR);\n // validar se os campos vêm todos bem preenchidos\n boolean isValido = validarCampos(entidade);\n\n // se estiver bem preenchido,\n // avança para a edição\n if (isValido) {\n\n lista.put(entidade.getCodigo(), entidade);\n } else {\n // senão, retorna erro\n throw new EditarEntidadeException();\n }\n }",
"public void update(IEntity entity) throws SQLException;",
"public int update(final GenericEntity entity) throws GenericEntityException {\n return update(entity, null);\n }",
"@Override\n\tpublic void update(EmpType entity) {\n\t\t\n\t}",
"public HrJBorrowcontract update(HrJBorrowcontract entity);",
"@Override\n\t@Transactional\n\tpublic Cliente update(Cliente entity) throws Exception {\n\t\treturn clienteRepository.save(entity);\n\t}",
"public E saveUpdate(E entity){\n EntityTransaction transaction = entityManager.getTransaction();\n transaction.begin();\n E e = entityManager.merge(entity);\n transaction.commit();\n return e;\n }",
"@Override\n\tpublic void update(T entity) {\n\t\tbaseDaoImpl.update(entity);\n\t}",
"E update(E entiry);",
"public void Update(StokContract entity) {\n\t\t\n\t}",
"@Override\n\t\tpublic boolean update(Carrera entity, int id) {\n\t\t\t\treturn false;\n\t\t}",
"@Put\n\tpublic Representation put(Representation entity) {\n\t\tUserInfo userInfo = userInfoProvider.get();\n\t\tif (!userInfo.isSignedIn) {\n\t\t\t// TODO 401\n\t\t\treturn null;\n\t\t}\n\t\tMember member = memberDAO.readByUserId(userInfo.userId);\n\t\tKey theaterKey = Validation\n\t\t\t\t.getValidDSKey((String) getRequestAttributes()\n\t\t\t\t\t\t.get(\"theaterKey\"));\n\n\t\tif (!tmjDAO.memberHasAccessToTheater(\n\t\t\t\tKeyFactory.keyToString(memberDAO.getKey(member)),\n\t\t\t\tKeyFactory.keyToString(theaterKey))) {\n\t\t\t// TODO 401\n\t\t\treturn null;\n\t\t}\n\n\t\tKey locationKey = Validation\n\t\t\t\t.getValidDSKey((String) getRequestAttributes().get(\n\t\t\t\t\t\t\"locationKey\"));\n\n\t\t// check location belongs to given theaterKey\n\t\tif (!KeyFactory.keyToString(locationKey.getParent()).equals(\n\t\t\t\tKeyFactory.keyToString(theaterKey))) {\n\t\t\t// TODO 401\n\t\t\treturn null;\n\t\t}\n\n\t\t// Location locationOld = locationDAO.read(locationKey);\n\n\t\tLocation locationNew = null;\n\n\t\ttry {\n\t\t\tlocationNew = gson.fromJson(entity.getText(), Location.class);\n\t\t} catch (JsonParseException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\t// TODO support partial operations\n\n\t\tlocationDAO.update(locationNew, locationKey);\n\n\t\t// TODO return locationNew with key info\n\t\treturn null;\n\t}",
"@Override\n\tpublic void Update(PersonelContract entity) {\n\n\t}",
"@Override\n\tpublic User updateEntity(long id, User Entity) throws Exception {\n\t\treturn null;\n\t}",
"@Override\n\tpublic void update(Recipe entity) {\n\t\t\n\t}",
"@Override\r\n\tpublic T update(T entity) throws Exception {\n\t\ttry {\r\n\t\t\tthis.getcurrentSession().update(entity);\r\n\t\t\treturn entity;\r\n\t\t}catch (NonUniqueObjectException e) {\r\n\t\t\tthis.getcurrentSession().merge(entity);\r\n\t\t\treturn entity;\r\n\t\t} catch (DataAccessException e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\tthrow new Exception(\"更新\" + entity.getClass().getName() + \"实例失败\", e);\r\n\t\t}\r\n\t}",
"public void edit(Person person) {\n\t\tlogger.debug(\"Editing existing person\");\n\t\t// Retrieve existing person via id\n\t\tPerson existingPerson = this.get(person.getId());\n\t\t// Assign updated values to this person\n\t\texistingPerson.setFirstName(person.getFirstName());\n\t\texistingPerson.setLastName(person.getLastName());\n\t\texistingPerson.setMoney(person.getMoney());\n\t // Save updates\n\t\tentityManager.merge(person);\n\t}",
"public void edit(Person person) {\n\t\t\n\t\tSession session = sessionFactory.getCurrentSession();\n\t\t\n\t\t// Retrieve existing person via id\n\t\tPerson existingPerson = (Person) session.get(Person.class, person.getId());\n\t\t\n\t\t// Assign updated values to this person\n\t\texistingPerson.setFirstName(person.getFirstName());\n\t\texistingPerson.setLastName(person.getLastName());\n\t\texistingPerson.setMoney(person.getMoney());\n\n\t\t// Save updates\n\t\tsession.merge(existingPerson);\n\t}",
"public String edit(Entidades entidade) {\n\t\tif(verificaPermissao()) {\n\t\t\tEntidadesDAO.saveOrUpdate(entidade);\n\t\t\tthis.entidades = new Entidades();\n\t\t}\n\t\treturn \"/Consulta/consulta_entidades\";\n\t}",
"@Override\n public void update(T entity) throws SQLException {\n\n this.dao.update(entity);\n\n }",
"public QuestionEntity editQuestionContent (final QuestionEntity questionEntity) {\n return entityManager.merge(questionEntity);\n }",
"BaseRecord editRecord(String id, String fieldName, String newValue, String clientId) throws Exception;",
"protected Object update(Object entity) {\r\n\r\n try {\r\n entityManager.getTransaction().begin();\r\n Object o = entityManager.merge(entity);\r\n entityManager.getTransaction().commit();\r\n return o;\r\n } catch (Exception e) {\r\n System.err.println(\"Erro ao atualizar Entidade \" + e.getMessage());\r\n }\r\n\r\n return null;\r\n }",
"ProductView updateProduct(int productId, EditProductBinding productToEdit) throws ProductException;",
"Trade editTrade(String tradeId, Trade editedTrade) throws \n OrderBookTradeException;",
"public Entity(Entity entity) {\n this(entity.getCoordinates(), entity.getIcon(), entity.canChangeRooms());\n }",
"public void edit(Person person) {\n\t\tpersonRepository.edit(person);\n\t}",
"@Override\n\tpublic Result update(CurriculumVitae entity) {\n\t\treturn null;\n\t}",
"public static Question update(Question entity) throws ApplicationException {\n Question result = new Question();\n\n Connection connection = null;\n try {\n connection = ConnectionPool.getConnection();\n result = QuestionDatabaseAccess.update(entity, connection);\n } finally {\n ConnectionPool.releaseConnection(connection);\n }\n\n return result;\n }",
"void editStorage(StorageEntity storage);",
"public TEntity save(TEntity entity){\n ContentValues content = toContentValues(entity);\n TEntity oldEntity = getById(entity.getId());\n\n int newKey;\n\n if (oldEntity != null) {\n db.update(tableName, content, String.format(\"Id = %1$s\", oldEntity.getId()), null);\n newKey = oldEntity.getId();\n } else {\n newKey = (int)db.insert(tableName, null, content);\n }\n return getById(newKey);\n }",
"CounselorBiographyTemp update(CounselorBiographyTemp entity);",
"public void setEntity(org.openejb.config.ejb11.Entity entity) {\n this._entity = entity;\n }",
"E save(E entity);",
"public <T> boolean editObject(T entity) throws DataAccessException {\n\t\tboolean flag = false;\n try {\n mapper.editDept((DeptVO) entity);\n flag = true;\n } catch (DataAccessException e) {\n flag = false;\n throw e;\n }\n return flag;\n\t}",
"@Override\n\t@Transactional\n\tpublic T update(T entity) {\n\t\tif (entity == null) {\n\t\t\treturn null;\n\t\t}\n\t\thibernateTemplate.update(entity);\n\t\thibernateTemplate.getSessionFactory().getCurrentSession().flush();\n\t\thibernateTemplate.getSessionFactory().getCurrentSession().clear();\n\t\treturn getById(entity.getId());\n\t}",
"public CbmCItemFininceItem update(CbmCItemFininceItem entity);",
"public T update(T entity) {\n\t \t getEntityManager().getTransaction().begin();\n\t \t System.out.print(\"casito: \" + ((CamposModel)entity).getClase());\n\t \t T entityN = getEntityManager().merge(entity);\n\t\t getEntityManager().getTransaction().commit();\n\t return entityN;\n\t }",
"void save(E entity);",
"@Override\n\tpublic void editar(Contato contato) {\n\t\tthis.dao.editar(contato);\n\t\t\n\t}",
"Product editProduct(Product product);",
"@Override\n\tpublic Comprobante update(Comprobante entity) throws Exception {\n\t\treturn comproRepository.save(entity);\n\t}",
"public void modificar(Long id, G entity, HttpServletRequest httpRequest) throws AppException;",
"@Override\n\tpublic ImageEntity update(Object entity) {\n\t\tDatabaseContext.merge(entity);\n\t\treturn (ImageEntity) entity;\n\t}",
"public HrCStatitem update(HrCStatitem entity);",
"@Override\n\tpublic int updateObject(Evaluate entity) {\n\t\treturn evaluateMapper.updateObject(entity);\n\t}",
"@Transactional\n\tpublic PetDTO editPet(PetDTO petDTO) {\n\t\tPet pet = validateParametersEdit(petDTO);\n\t\tpetSetters(pet, petDTO);\n\t\tpetRepository.save(pet);\n\t\treturn convertToDTO(pet);\n\t}",
"public PtJJdwcy update(PtJJdwcy entity);",
"public Client update(Client updated) throws EntityNotFoundException;",
"User editUser(User user);",
"@Override\n\tpublic void editInventory(Inventory inventory) {\n\t\tinventoryDao.save(inventory);\n\t}",
"WithInactivityOption getEditedEntityWithInactivityOption();",
"void editMyPost(Post post);",
"public book edit(book editedbook) {\n\t\t\n\t\treturn repository.save(editedbook);\n\t}",
"public void updateContratoDosimetro(ContratoDosimetro entity)\n throws Exception;",
"WriteRequest modify(PiEntity entity);",
"public Observable<E> update(final E inEntity) {\n return Observable.create(inSource -> {\n try {\n final E theUpdatedEntity = mRepository.persist(inEntity);\n inSource.onNext(theUpdatedEntity);\n inSource.onComplete();\n } catch (final Exception theException) {\n inSource.onError(theException);\n }\n });\n }",
"@Override\r\n\tpublic Long update(Producto entity) throws Exception {\n\t\treturn productRepository.update(entity);\r\n\t}",
"@Override\n\tpublic void update(DomainEntity entity) throws SQLException {\n\t\t\n\t}",
"protected abstract void updateEntry(PersistentEntity persistentEntity, K id, T entry);",
"Order editOrder(String orderId, Order editedOrder) throws \n OrderBookOrderException;",
"public interface EditViewHandler<T extends DomainObject> extends Serializable {\n\t\n\t/**\n\t * Saves the data in the back-end.\n\t * \n\t * @param entity Object containing the data to be saved in the back-end\n\t * @param editMode Indicates whether the operation is an update or not\n\t * \n\t * @throws PersistenceException if the operation could not be processed in the back-end\n\t */\n\tvoid save(T entity, boolean editMode) throws PersistenceException;\n\t\n\t/**\n\t * Cancels the operation of either an record update or creation\n\t * \n\t * @param entity The entity being edited when the operation is cancelled.\n\t * @param editMode Indicates whether the operation is an update or creation\n\t */\n\tvoid cancel(T entity, boolean editMode);\n\t\n\t/**\n\t * Defines the view to be managed and presented by the view handler.\n\t * \n\t * @param view The view to present data processed by the handler\n\t */\n\tvoid setView(PopupView<T> view);\n\t\n\t/**\n\t * Registers a handler to track changes performed in a given entity. \n\t * \n\t * @param changeListener The object to be defined as the change handler\n\t */\n\tvoid setChangeListener(EntityChangeListener<T> changeListener);\n}",
"@Override\n\tpublic Fournisseur update(Fournisseur entity) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic void editar(ProdutoPedido produtoPedido) {\n\t\tdao.update(produtoPedido);\n\t}",
"public static <T> boolean sendEntityForUpdate(RESTClient<T> client, long id, T entity)\n throws NotFoundException, TimeoutException {\n Response response = ResponseWrapper\n .wrap(HttpWrapper.wrap(client.getEndpointTarget().path(String.valueOf(id)))\n .put(Entity.entity(entity, MediaType.APPLICATION_JSON), Response.class));\n if (response != null) {\n response.bufferEntity();\n }\n if (response != null && response.getStatus() == Status.NOT_FOUND.getStatusCode()) {\n throw new NotFoundException();\n } else if (response != null && response.getStatus() == Status.REQUEST_TIMEOUT.getStatusCode()) {\n throw new TimeoutException();\n }\n if (response != null && response.getStatus() == 200) {\n return true;\n }\n return false;\n }",
"public Empleado editarEmpleado(Empleado empleado) {\n\n try {\n empDAO.edit(empleado);\n return buscarEmpleado(empleado.getLegajo());\n } catch (NonexistentEntityException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n } catch (Exception e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n return null;\n }"
] | [
"0.6770668",
"0.6770668",
"0.6700214",
"0.66963404",
"0.66432726",
"0.65890896",
"0.65337765",
"0.65337765",
"0.6358107",
"0.6325468",
"0.6304593",
"0.6297834",
"0.627782",
"0.627782",
"0.6245543",
"0.6234306",
"0.61128896",
"0.6070676",
"0.602625",
"0.5967067",
"0.5942324",
"0.59056276",
"0.59023327",
"0.5899883",
"0.58255833",
"0.58242625",
"0.5820508",
"0.5794445",
"0.57943267",
"0.5707711",
"0.56920344",
"0.56903094",
"0.566285",
"0.56322134",
"0.5630122",
"0.5626842",
"0.56128746",
"0.5598415",
"0.5597373",
"0.5578499",
"0.5530055",
"0.5508798",
"0.5505641",
"0.54926693",
"0.5490855",
"0.54886377",
"0.5477586",
"0.5456232",
"0.5449585",
"0.54431057",
"0.54386157",
"0.5421761",
"0.54152614",
"0.54114693",
"0.5393741",
"0.5390834",
"0.53818524",
"0.5371602",
"0.534584",
"0.53296536",
"0.53247344",
"0.53181225",
"0.53164715",
"0.53078073",
"0.529454",
"0.5286118",
"0.5284648",
"0.5283341",
"0.52783",
"0.5272311",
"0.52712166",
"0.52681196",
"0.52594733",
"0.5258558",
"0.5244486",
"0.52385014",
"0.5228825",
"0.5227991",
"0.5223978",
"0.52174485",
"0.52090853",
"0.51900333",
"0.517959",
"0.5177433",
"0.5171992",
"0.51699483",
"0.5140068",
"0.51315045",
"0.51235086",
"0.5120157",
"0.5118331",
"0.5109088",
"0.50963575",
"0.5082325",
"0.508007",
"0.50675464",
"0.5061374",
"0.50612354",
"0.5060845",
"0.5059447"
] | 0.5365267 | 58 |
Edits a given entity. Use the returned instance for further operations as the edit operation might have changed the entity instance completely. | T edit(long id, T obj); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"E update(E entity);",
"E update(E entity);",
"public void update(E entity);",
"E update(E entity) throws ValidationException;",
"E update(ID id, E entity, RequestContext context);",
"public <T> T update(T entity);",
"T update(T entity);",
"T update(T entity);",
"void update(T entity) throws Exception;",
"boolean update(T entity) throws Exception;",
"public void updateEntity();",
"void update(CE entity);",
"void update(T entity);",
"void update(T entity);",
"public Address update(Address entity);",
"protected abstract Entity getEditedEntity();",
"default E update(ID id, E entity) {\n return update(id, entity, null);\n }",
"boolean updateById(T entity);",
"void save(T entity, boolean editMode) throws PersistenceException;",
"protected abstract void showEditedEntity(Entity e);",
"public abstract boolean update(T entity) throws ServiceException;",
"@RequestMapping(value = { \"/edit-{id}\" }, method = RequestMethod.POST)\n\tpublic String updateEntity(@Valid ENTITY entity, BindingResult result,\n\t\t\tModelMap model, @PathVariable ID id,@RequestParam(required = false) Integer idEstadia) {\n\t\ttry{\n\t\t\tif(idEstadia != null){\n\t\t\t\tmodel.addAttribute(\"idEstadia\", idEstadia);\n\t\t\t}\n\n\t\t\tif (result.hasErrors()) {\n\t\t\t\treturn viewBaseLocation + \"/form\";\n\t\t\t}\n\n\t\t\tabm.actualizar(entity);\n\n\t\t\tmodel.addAttribute(\"success\", \"La modificación se realizó correctamente.\");\n\t\t} catch (Exception exception) {\n\t\t\tmodel.addAttribute(\"success\", \"La modificación no pudo realizarse.\");\n\t\t}\n\n\t\tmodel.addAttribute(\"loggedinuser\", getPrincipal());\n\t\t//return viewBaseLocation + \"/list\";\n\t\treturn \"redirect:list\";\n\n\t}",
"public T update(T entity) throws DataAccessException;",
"@RequestMapping(value = { \"/edit-{id}\" }, method = RequestMethod.GET)\n\tpublic String editEntity(@PathVariable ID id, ModelMap model,\n\t\t\t@RequestParam(required = false) Integer idEstadia) {\n\t\tENTITY entity = abm.buscarPorId(id);\n\t\tmodel.addAttribute(\"entity\", entity);\n\t\tmodel.addAttribute(\"edit\", true);\n\n\t\tif(idEstadia != null){\n\t\t\tmodel.addAttribute(\"idEstadia\", idEstadia);\n\t\t}\n\n\t\tmodel.addAttribute(\"loggedinuser\", getPrincipal());\n\t\treturn viewBaseLocation + \"/form\";\n\t}",
"@Override\n\tpublic T update(T entity) {\n\t\treturn entity;\n\t}",
"void update(Student entity);",
"public void update(T entity) {\n\t\tsessionFactory.getCurrentSession().update(entity);\n\t}",
"public T update(final T entity)\n\t{\n\t\treturn em.merge(entity);\n\t}",
"public Equipamento editar(Equipamento eq) {\r\n\t\t\tthis.conexao.abrirConexao();\r\n\t\t\tString sqlUpdate = \"UPDATE equipamentos SET nome=?,descricao=?, id_usuario=? WHERE id_equipamentos=?\";\r\n\t\t\ttry {\r\n\t\t\t\tPreparedStatement statement = (PreparedStatement) this.conexao.getConexao().prepareStatement(sqlUpdate);\r\n\t\t\t\tstatement.setString(1, eq.getNome());\r\n\t\t\t\tstatement.setString(2, eq.getDescricao());\r\n\t\t\t\tstatement.setLong(3, eq.getUsuario().getId());\r\n\t\t\t\tstatement.setLong(4, eq.getId());\r\n\t\t\t\t/*int linhasAfetadas = */statement.executeUpdate();\r\n\t\t\t\t\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} finally {\r\n\t\t\t\tthis.conexao.fecharConexao();\r\n\t\t\t}\r\n\t\t\treturn eq;\r\n\t\t}",
"@Override\n\tpublic void updateEntity(T t) {\n\t\tgetSession().update(t);\n\t}",
"public void update(Book entity)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tbookdao.openCurrentSessionwithTransation();\r\n\t\t\tbookdao.update(entity);\r\n\t\t\tbookdao.closeSessionwithTransaction();\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"@Override\n public E update(E entity) {\n LOG.info(\"[update] Start: entity = \" + entity.getClass().getSimpleName());\n entityManager.merge(entity);\n LOG.info(\"[update] End\");\n return entity;\n }",
"public AnswerEntity editAnswer(AnswerEntity answerEntity) {\n entityManager.merge(answerEntity);\n return answerEntity;\n }",
"@Override\n public void editar(EntidadeBase entidade) throws EditarEntidadeException, ValidacaoEntidadeException, Exception {\n setOperacao(OPERACAO_EDITAR);\n // validar se os campos vêm todos bem preenchidos\n boolean isValido = validarCampos(entidade);\n\n // se estiver bem preenchido,\n // avança para a edição\n if (isValido) {\n\n lista.put(entidade.getCodigo(), entidade);\n } else {\n // senão, retorna erro\n throw new EditarEntidadeException();\n }\n }",
"public void update(IEntity entity) throws SQLException;",
"public int update(final GenericEntity entity) throws GenericEntityException {\n return update(entity, null);\n }",
"@Override\n\tpublic void update(EmpType entity) {\n\t\t\n\t}",
"public HrJBorrowcontract update(HrJBorrowcontract entity);",
"@Override\n\t@Transactional\n\tpublic Cliente update(Cliente entity) throws Exception {\n\t\treturn clienteRepository.save(entity);\n\t}",
"public E saveUpdate(E entity){\n EntityTransaction transaction = entityManager.getTransaction();\n transaction.begin();\n E e = entityManager.merge(entity);\n transaction.commit();\n return e;\n }",
"@Override\n\tpublic void update(T entity) {\n\t\tbaseDaoImpl.update(entity);\n\t}",
"E update(E entiry);",
"public void Update(StokContract entity) {\n\t\t\n\t}",
"@Override\n\t\tpublic boolean update(Carrera entity, int id) {\n\t\t\t\treturn false;\n\t\t}",
"@Put\n\tpublic Representation put(Representation entity) {\n\t\tUserInfo userInfo = userInfoProvider.get();\n\t\tif (!userInfo.isSignedIn) {\n\t\t\t// TODO 401\n\t\t\treturn null;\n\t\t}\n\t\tMember member = memberDAO.readByUserId(userInfo.userId);\n\t\tKey theaterKey = Validation\n\t\t\t\t.getValidDSKey((String) getRequestAttributes()\n\t\t\t\t\t\t.get(\"theaterKey\"));\n\n\t\tif (!tmjDAO.memberHasAccessToTheater(\n\t\t\t\tKeyFactory.keyToString(memberDAO.getKey(member)),\n\t\t\t\tKeyFactory.keyToString(theaterKey))) {\n\t\t\t// TODO 401\n\t\t\treturn null;\n\t\t}\n\n\t\tKey locationKey = Validation\n\t\t\t\t.getValidDSKey((String) getRequestAttributes().get(\n\t\t\t\t\t\t\"locationKey\"));\n\n\t\t// check location belongs to given theaterKey\n\t\tif (!KeyFactory.keyToString(locationKey.getParent()).equals(\n\t\t\t\tKeyFactory.keyToString(theaterKey))) {\n\t\t\t// TODO 401\n\t\t\treturn null;\n\t\t}\n\n\t\t// Location locationOld = locationDAO.read(locationKey);\n\n\t\tLocation locationNew = null;\n\n\t\ttry {\n\t\t\tlocationNew = gson.fromJson(entity.getText(), Location.class);\n\t\t} catch (JsonParseException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\t// TODO support partial operations\n\n\t\tlocationDAO.update(locationNew, locationKey);\n\n\t\t// TODO return locationNew with key info\n\t\treturn null;\n\t}",
"@Override\n\tpublic void Update(PersonelContract entity) {\n\n\t}",
"@Override\n\tpublic User updateEntity(long id, User Entity) throws Exception {\n\t\treturn null;\n\t}",
"@Override\n\tpublic void update(Recipe entity) {\n\t\t\n\t}",
"@Override\r\n\tpublic T update(T entity) throws Exception {\n\t\ttry {\r\n\t\t\tthis.getcurrentSession().update(entity);\r\n\t\t\treturn entity;\r\n\t\t}catch (NonUniqueObjectException e) {\r\n\t\t\tthis.getcurrentSession().merge(entity);\r\n\t\t\treturn entity;\r\n\t\t} catch (DataAccessException e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\tthrow new Exception(\"更新\" + entity.getClass().getName() + \"实例失败\", e);\r\n\t\t}\r\n\t}",
"public void edit(Person person) {\n\t\tlogger.debug(\"Editing existing person\");\n\t\t// Retrieve existing person via id\n\t\tPerson existingPerson = this.get(person.getId());\n\t\t// Assign updated values to this person\n\t\texistingPerson.setFirstName(person.getFirstName());\n\t\texistingPerson.setLastName(person.getLastName());\n\t\texistingPerson.setMoney(person.getMoney());\n\t // Save updates\n\t\tentityManager.merge(person);\n\t}",
"public void edit(Person person) {\n\t\t\n\t\tSession session = sessionFactory.getCurrentSession();\n\t\t\n\t\t// Retrieve existing person via id\n\t\tPerson existingPerson = (Person) session.get(Person.class, person.getId());\n\t\t\n\t\t// Assign updated values to this person\n\t\texistingPerson.setFirstName(person.getFirstName());\n\t\texistingPerson.setLastName(person.getLastName());\n\t\texistingPerson.setMoney(person.getMoney());\n\n\t\t// Save updates\n\t\tsession.merge(existingPerson);\n\t}",
"public String edit(Entidades entidade) {\n\t\tif(verificaPermissao()) {\n\t\t\tEntidadesDAO.saveOrUpdate(entidade);\n\t\t\tthis.entidades = new Entidades();\n\t\t}\n\t\treturn \"/Consulta/consulta_entidades\";\n\t}",
"@Override\n public void update(T entity) throws SQLException {\n\n this.dao.update(entity);\n\n }",
"public QuestionEntity editQuestionContent (final QuestionEntity questionEntity) {\n return entityManager.merge(questionEntity);\n }",
"BaseRecord editRecord(String id, String fieldName, String newValue, String clientId) throws Exception;",
"protected Object update(Object entity) {\r\n\r\n try {\r\n entityManager.getTransaction().begin();\r\n Object o = entityManager.merge(entity);\r\n entityManager.getTransaction().commit();\r\n return o;\r\n } catch (Exception e) {\r\n System.err.println(\"Erro ao atualizar Entidade \" + e.getMessage());\r\n }\r\n\r\n return null;\r\n }",
"ProductView updateProduct(int productId, EditProductBinding productToEdit) throws ProductException;",
"T edit(T obj);",
"Trade editTrade(String tradeId, Trade editedTrade) throws \n OrderBookTradeException;",
"public Entity(Entity entity) {\n this(entity.getCoordinates(), entity.getIcon(), entity.canChangeRooms());\n }",
"public void edit(Person person) {\n\t\tpersonRepository.edit(person);\n\t}",
"@Override\n\tpublic Result update(CurriculumVitae entity) {\n\t\treturn null;\n\t}",
"public static Question update(Question entity) throws ApplicationException {\n Question result = new Question();\n\n Connection connection = null;\n try {\n connection = ConnectionPool.getConnection();\n result = QuestionDatabaseAccess.update(entity, connection);\n } finally {\n ConnectionPool.releaseConnection(connection);\n }\n\n return result;\n }",
"void editStorage(StorageEntity storage);",
"public TEntity save(TEntity entity){\n ContentValues content = toContentValues(entity);\n TEntity oldEntity = getById(entity.getId());\n\n int newKey;\n\n if (oldEntity != null) {\n db.update(tableName, content, String.format(\"Id = %1$s\", oldEntity.getId()), null);\n newKey = oldEntity.getId();\n } else {\n newKey = (int)db.insert(tableName, null, content);\n }\n return getById(newKey);\n }",
"public void setEntity(org.openejb.config.ejb11.Entity entity) {\n this._entity = entity;\n }",
"CounselorBiographyTemp update(CounselorBiographyTemp entity);",
"E save(E entity);",
"public <T> boolean editObject(T entity) throws DataAccessException {\n\t\tboolean flag = false;\n try {\n mapper.editDept((DeptVO) entity);\n flag = true;\n } catch (DataAccessException e) {\n flag = false;\n throw e;\n }\n return flag;\n\t}",
"@Override\n\t@Transactional\n\tpublic T update(T entity) {\n\t\tif (entity == null) {\n\t\t\treturn null;\n\t\t}\n\t\thibernateTemplate.update(entity);\n\t\thibernateTemplate.getSessionFactory().getCurrentSession().flush();\n\t\thibernateTemplate.getSessionFactory().getCurrentSession().clear();\n\t\treturn getById(entity.getId());\n\t}",
"public CbmCItemFininceItem update(CbmCItemFininceItem entity);",
"public T update(T entity) {\n\t \t getEntityManager().getTransaction().begin();\n\t \t System.out.print(\"casito: \" + ((CamposModel)entity).getClase());\n\t \t T entityN = getEntityManager().merge(entity);\n\t\t getEntityManager().getTransaction().commit();\n\t return entityN;\n\t }",
"void save(E entity);",
"@Override\n\tpublic void editar(Contato contato) {\n\t\tthis.dao.editar(contato);\n\t\t\n\t}",
"Product editProduct(Product product);",
"@Override\n\tpublic Comprobante update(Comprobante entity) throws Exception {\n\t\treturn comproRepository.save(entity);\n\t}",
"@Override\n\tpublic ImageEntity update(Object entity) {\n\t\tDatabaseContext.merge(entity);\n\t\treturn (ImageEntity) entity;\n\t}",
"public void modificar(Long id, G entity, HttpServletRequest httpRequest) throws AppException;",
"public HrCStatitem update(HrCStatitem entity);",
"@Override\n\tpublic int updateObject(Evaluate entity) {\n\t\treturn evaluateMapper.updateObject(entity);\n\t}",
"@Transactional\n\tpublic PetDTO editPet(PetDTO petDTO) {\n\t\tPet pet = validateParametersEdit(petDTO);\n\t\tpetSetters(pet, petDTO);\n\t\tpetRepository.save(pet);\n\t\treturn convertToDTO(pet);\n\t}",
"public PtJJdwcy update(PtJJdwcy entity);",
"public Client update(Client updated) throws EntityNotFoundException;",
"User editUser(User user);",
"@Override\n\tpublic void editInventory(Inventory inventory) {\n\t\tinventoryDao.save(inventory);\n\t}",
"WithInactivityOption getEditedEntityWithInactivityOption();",
"void editMyPost(Post post);",
"public book edit(book editedbook) {\n\t\t\n\t\treturn repository.save(editedbook);\n\t}",
"public void updateContratoDosimetro(ContratoDosimetro entity)\n throws Exception;",
"WriteRequest modify(PiEntity entity);",
"public Observable<E> update(final E inEntity) {\n return Observable.create(inSource -> {\n try {\n final E theUpdatedEntity = mRepository.persist(inEntity);\n inSource.onNext(theUpdatedEntity);\n inSource.onComplete();\n } catch (final Exception theException) {\n inSource.onError(theException);\n }\n });\n }",
"@Override\r\n\tpublic Long update(Producto entity) throws Exception {\n\t\treturn productRepository.update(entity);\r\n\t}",
"@Override\n\tpublic void update(DomainEntity entity) throws SQLException {\n\t\t\n\t}",
"protected abstract void updateEntry(PersistentEntity persistentEntity, K id, T entry);",
"Order editOrder(String orderId, Order editedOrder) throws \n OrderBookOrderException;",
"public interface EditViewHandler<T extends DomainObject> extends Serializable {\n\t\n\t/**\n\t * Saves the data in the back-end.\n\t * \n\t * @param entity Object containing the data to be saved in the back-end\n\t * @param editMode Indicates whether the operation is an update or not\n\t * \n\t * @throws PersistenceException if the operation could not be processed in the back-end\n\t */\n\tvoid save(T entity, boolean editMode) throws PersistenceException;\n\t\n\t/**\n\t * Cancels the operation of either an record update or creation\n\t * \n\t * @param entity The entity being edited when the operation is cancelled.\n\t * @param editMode Indicates whether the operation is an update or creation\n\t */\n\tvoid cancel(T entity, boolean editMode);\n\t\n\t/**\n\t * Defines the view to be managed and presented by the view handler.\n\t * \n\t * @param view The view to present data processed by the handler\n\t */\n\tvoid setView(PopupView<T> view);\n\t\n\t/**\n\t * Registers a handler to track changes performed in a given entity. \n\t * \n\t * @param changeListener The object to be defined as the change handler\n\t */\n\tvoid setChangeListener(EntityChangeListener<T> changeListener);\n}",
"public static <T> boolean sendEntityForUpdate(RESTClient<T> client, long id, T entity)\n throws NotFoundException, TimeoutException {\n Response response = ResponseWrapper\n .wrap(HttpWrapper.wrap(client.getEndpointTarget().path(String.valueOf(id)))\n .put(Entity.entity(entity, MediaType.APPLICATION_JSON), Response.class));\n if (response != null) {\n response.bufferEntity();\n }\n if (response != null && response.getStatus() == Status.NOT_FOUND.getStatusCode()) {\n throw new NotFoundException();\n } else if (response != null && response.getStatus() == Status.REQUEST_TIMEOUT.getStatusCode()) {\n throw new TimeoutException();\n }\n if (response != null && response.getStatus() == 200) {\n return true;\n }\n return false;\n }",
"@Override\n\tpublic Fournisseur update(Fournisseur entity) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic void editar(ProdutoPedido produtoPedido) {\n\t\tdao.update(produtoPedido);\n\t}",
"public Empleado editarEmpleado(Empleado empleado) {\n\n try {\n empDAO.edit(empleado);\n return buscarEmpleado(empleado.getLegajo());\n } catch (NonexistentEntityException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n } catch (Exception e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n return null;\n }"
] | [
"0.6769486",
"0.6769486",
"0.6699044",
"0.6694615",
"0.664129",
"0.6588106",
"0.65324724",
"0.65324724",
"0.6356985",
"0.632407",
"0.6302524",
"0.6296254",
"0.62766963",
"0.62766963",
"0.6244152",
"0.6231783",
"0.6111469",
"0.6069957",
"0.602518",
"0.5964899",
"0.59406555",
"0.590293",
"0.59012204",
"0.58977497",
"0.5824352",
"0.58227926",
"0.5819619",
"0.5794372",
"0.579294",
"0.5706085",
"0.56904554",
"0.56626165",
"0.5630694",
"0.56279254",
"0.56252193",
"0.56120855",
"0.5596578",
"0.55953664",
"0.5578035",
"0.55305046",
"0.55077434",
"0.5503132",
"0.5490721",
"0.5489351",
"0.5489056",
"0.54750365",
"0.54549307",
"0.5447746",
"0.54429644",
"0.54363346",
"0.54188067",
"0.5412554",
"0.5410363",
"0.5392641",
"0.53878987",
"0.53809977",
"0.5368049",
"0.5362698",
"0.53432155",
"0.5331987",
"0.5321731",
"0.53162247",
"0.531621",
"0.5304784",
"0.5295929",
"0.5286431",
"0.52843285",
"0.528425",
"0.52766985",
"0.52708614",
"0.52691466",
"0.52671456",
"0.5260729",
"0.5256198",
"0.5240684",
"0.5237166",
"0.52274",
"0.5227368",
"0.52224696",
"0.5215183",
"0.52077323",
"0.5188619",
"0.5177837",
"0.5174011",
"0.51708686",
"0.5168328",
"0.51373935",
"0.51288927",
"0.5122647",
"0.51188165",
"0.5117506",
"0.51073885",
"0.5094656",
"0.50806236",
"0.5075957",
"0.5065174",
"0.50602263",
"0.50591177",
"0.5058864",
"0.5058468"
] | 0.56875205 | 31 |
Retrieves an entity by its id. | Optional<T> find(long id); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Entity getEntityById(Long id);",
"public TEntity getById(int id){\n String whereClause = String.format(\"Id = %1$s\", id);\n Cursor cursor = db.query(tableName, columns, whereClause, null, null, null, null);\n\n if (cursor.getCount() == 1) {\n cursor.moveToFirst();\n return fromCursor(cursor);\n }\n return null;\n }",
"@ModelAttribute\n\tpublic Entity getEntity(@PathVariable(\"entity\") Long id) {\n\t\tEntity entity = service.findOne(id);\n\t\tif (entity == null) {\n\t\t\tthrow new NotFoundException(String.format(\"Entity with identifier '%s' not found\", id));\n\t\t}\n\t\treturn entity;\n\t}",
"@Override\n public E getById(final I id) {\n LOG.info(\"[getById] Start: Id = \" + id);\n LOG.info(\"[getById] End\");\n return entityManager.find(entityClass, id);\n }",
"<T> T get(Class<T> entityClass, Serializable id);",
"public abstract Object get(String entityName, Serializable id);",
"public T findById(final String id)\n\t{\n\t\treturn em.find(entityClass, id);\n\t}",
"E getById(long id);",
"public Entity getByPrimaryKey(Id id) throws RepositoryException{\n\t\treturn (Entity)DatanucleusCRUDUtils.getById(getEntity(), id);\n\t}",
"protected abstract T getEntityById(Long id);",
"T getById(Long id);",
"public T find(int id) {\n\t \treturn getEntityManager().find(getEntityClass(), id);\n\t }",
"public T get( final int id )\n\t{\n\t\treturn this.dao.findById( id ).get();\n\t}",
"@SuppressWarnings(\"unchecked\")\n public T retrieveById(Id id) throws EntityNotFoundException, DAOException {\n if (id == null) {\n throw new IllegalArgumentException(\"'id' should not be null.\");\n }\n if ((id instanceof Long) && ((Long) id) <= 0) {\n throw new IllegalArgumentException(\"'id' should not be <= 0.\");\n }\n Helper.checkEntityManager(entityManager);\n\n String queryString = \"select e from \"\n + entityBeanType.getCanonicalName()\n + \" e where e.id = :id and (e.deleted is null or e.deleted = false)\";\n Query query = entityManager.createQuery(queryString);\n query.setParameter(\"id\", id);\n\n // Involves an unchecked conversion:\n try {\n return (T) query.getSingleResult();\n } catch (NoResultException e) {\n throw new EntityNotFoundException(\"Cannot find entity with id:\"\n + id + \".\", e);\n } catch (Exception e) {\n throw new DAOException(\"Failed to get entity.\", e);\n }\n }",
"Optional<T> getEntityById(ID_TYPE id);",
"public abstract T findEntityById(int id);",
"@Override\n @LogMethod\n public T get(long id) throws InventoryException {\n \tInventoryHelper.checkPositive(id, \"id\");\n T entity = repository.getByKey(id);\n InventoryHelper.checkEntityExist(entity, id);\n return entity;\n }",
"@Override\n\tpublic T get(ID id) {\n\t\tOptional<T> obj = getDao().findById(id);\n\t\tif (obj.isPresent()) {\n\t\t\treturn obj.get();\n\t\t}\t\t\n\t\treturn null;\n\t}",
"@Override\n\tpublic T getEntityById(String id) {\n\t\treturn null;\n\t}",
"@Override\n public T findById(ID id) {\n return crudRepository.findById(id).orElseThrow(\n () -> new ResourceNotFoundException(\"Can not find an entity with id: \" + id));\n }",
"T getById(int id);",
"AceEntity findEntity (String id) {\n\t\tfor (int i=0; i<entities.size(); i++) {\n\t\t\tAceEntity entity = (AceEntity) entities.get(i);\n\t\t\tif (entity.id.equals(id)) {\n\t\t\t\treturn entity;\n\t\t\t}\n\t\t}\n\t\tSystem.err.println (\"*** unable to find entity with id \" + id);\n\t\treturn null;\n\t}",
"E find(Id id) throws RepositoryException;",
"T get(Integer id);",
"T get(ID id);",
"public Client findById(Integer id) throws\n\t EntityNotFoundException;",
"T get(PK id);",
"@Override\n public CartEntity getById(int id) {\n return entityManager.find(CartEntity.class,id);\n }",
"@Override\r\n\tpublic Object getEntity(Class entityClass, Serializable id) {\n\t\treturn template.get(entityClass, id);\r\n\t}",
"public final E find(final K id) {\n return getJpaTemplate().find(getEntityClass(), id);\n }",
"T getById(ID id);",
"@Override\n public Optional<T> findById(ID id) {\n T entity = getSession().get(this.getPersistentClass(), id);\n return Optional.ofNullable(entity);\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic T get(Long id) {\n\t\tSession session = sessionFactory.getCurrentSession();\n\t\t\n\t\treturn (T) session.get(target, id);\n\t}",
"ProductEntity findById(long id);",
"public <T> T find(Class<T> entityClass, String id);",
"public Person get( Integer id ) {\n\t\t// Retrieve existing person\n\t\tPerson person = (Person) entityManager.createQuery(\"FROM Person p where p.id = :id\")\n \t.setParameter(\"id\", id).getSingleResult();\n\t\treturn person;\n\t}",
"T findById(final ID id) throws RequiredValueException, NoEntityFoundException;",
"public E findById(E entity){\n Object identifier = HibernateUtil.getIdEntity(entity);\n return (E) entityManager.find(entity.getClass(),identifier);\n }",
"Object get(ID id) throws Exception;",
"T getById(PK id);",
"Note getOneEntity(Long id);",
"String get(String id);",
"@Override\n\tpublic T findById(ID id) {\n\t\treturn parserEntity(this.getConcreteDAO().findById(id));\n\t}",
"public LugarEntity find(Long id){\n return em.find(LugarEntity.class, id);\n }",
"@Override\n\tpublic Equipo get(Long id)\n\t{\n\t\tOptional<Equipo> entity = equipoRepository.findById(id);\n\t\treturn entity.orElse(null);\n\t}",
"@Override\n\tpublic Enterprise get(Integer id) {\n\t\treturn enterpriseDAO.get(id);\n\t}",
"@Transactional(propagation = Propagation.MANDATORY)\n\tpublic default E getOne(K id) {\n\t\treturn getRepository().getOne(id);\n\t}",
"@Override\r\n\tpublic T findEntity(Class<T> c, Serializable id) throws Exception {\n\t\treturn (T) this.getcurrentSession().get(c, id);\r\n\t}",
"@Override\n @SuppressWarnings(\"unchecked\")\n public T findById(ID id) {\n return (T) this.getSession().load(this.getPersistentClass(), id);\n }",
"public Data findById(Object id);",
"public T get(int id) {\n return this.session.get(this.type, id);\n }",
"<K extends BasicEntity> K get(Class<K> clazz, Object id);",
"Alimento loadAlimentoById(Long id) throws EntityNotFoundException;",
"@Override\n\tpublic OrderEntity findOneById(Long id) {\n\t\treturn oder.getById(id);\n\t}",
"public Entity2 findEntity2ById(String id) throws DaoException;",
"public T findById(final UUID id) {\n\t\tfinal T result = em.find(persistentClass, id);\n\t\treturn result;\n\t}",
"public ENTITY getByID(long ID) {\n\t\tCriteriaBuilder builder = em.getCriteriaBuilder();\n\t\tCriteriaQuery<BaseModel> query = builder.createQuery(BaseModel.class);\n\t\tRoot baseModel = query.from(BaseModel.class);\n\n\t\tquery.where(builder.equal(baseModel.get(\"ID\"), ID));\n\t\t\n\t\treturn (ENTITY) em.createQuery(query).getSingleResult();\n\t}",
"public Epreuve getById(Long id) {\n\t\tEntityManager em = EntityManagerHolder.getCurrentEntityManager();\n\t\tEpreuve epreuve = em.find(Epreuve.class, id);\n\t\tSystem.out.println(\"Epreuve lu\");\n\t\treturn epreuve;\n\t}",
"public EspecieEntity encontrarPorId(Long id ){\r\n return em.find(EspecieEntity.class, id);\r\n }",
"public T get(ID id) {\n\t\treturn (T) sessionFactory.getCurrentSession().get(clazz, id);\n\t}",
"public Product get(String id);",
"T findById(Integer id);",
"@Override\n\tpublic Gasto findById(Integer id) {\n\t\treturn gastoModel.findById(id).orElseThrow(null);\n\t}",
"@Override\n public T findById(ID id) throws SQLException {\n\n return this.dao.queryForId(id);\n\n }",
"@Override\r\n\tpublic Person findbyid(int id) {\n\t\tQuery query=em.createQuery(\"Select p from Person p where p.id= \"+id);\r\n\t\tPerson p=(Person) query.getSingleResult();\r\n\t\treturn p;\r\n\t\r\n\t}",
"@Override\n\tpublic T getEntryById(Serializable id) {\n\t\treturn (T) this.hibernateTemplate.get(this.classt, id);\n\t}",
"@Override\n\tpublic User findById(String id) {\n\t\tUser u= em.find(User.class, id);\n\t\tSystem.out.println(u);\n\t\treturn u;\n\t}",
"@SuppressWarnings(\"unchecked\")\n\tprotected <ID extends Serializable> T get(ID id) {\n\t\tT retValue = null;\n\t\tSession session = null;\n\t\ttry {\n\t\t\tsession = mDbHelper.beginTransaction();\n\t\t\tretValue = (T) session.get(mClazz, id);\n\t\t\tmDbHelper.endTransaction(session);\n\t\t} catch (Exception e) {\n\t\t\tmDbHelper.cancelTransaction(session);\n\t\t\tAppLogger.error(e, \"Failed to execute get by id\");\n\t\t}\n\n\t\treturn retValue;\n\t}",
"public Etudiant getById(int id) {\n\t\treturn dao.getById(id);\r\n\t}",
"public <T> T getPlainEntity(Class<T> entityClass, String id);",
"private DBObject getById(MongoDbServer entity, String id) throws Exception {\n MongoClient mongoClient = new MongoClient(entity.getAttribute(SoftwareProcess.HOSTNAME));\n try {\n DB db = mongoClient.getDB(TEST_DB);\n DBCollection testCollection = db.getCollection(TEST_COLLECTION);\n DBObject doc = testCollection.findOne(new BasicDBObject(\"_id\", new ObjectId(id)));\n return doc;\n } finally {\n mongoClient.close();\n }\n }",
"public Person get( Integer id ) {\n\t\t\n\t\tSession session = sessionFactory.getCurrentSession();\t\t\n\t\t\n\t\treturn(Person) session.get(Person.class,id);\n\t}",
"D getById(K id);",
"T findOne(Long id);",
"public ConsejoEntity find(Long id)\r\n {\r\n return em.find(ConsejoEntity.class, id);\r\n }",
"@Override\n\tpublic T findById(Class<T> entidade, Long id) throws Exception {\n\t\treturn null;\n\t}",
"@Override\n\tpublic Object findByIdObject(Class<T> entidade, Long id) throws Exception {\n\t\treturn null;\n\t}",
"User get(Key id);",
"public TastyEntity get(TastyEntity entity,String idvalue) {\n\t\treturn tastyDao.get(entity,idvalue);\r\n\t}",
"@Transactional(propagation = Propagation.REQUIRED, readOnly = true)\n\tpublic <T> T getById(final Class<T> obj, final String id){\n\t\treturn dao.get(obj, id);\n\t}",
"@Override\n\t@Transactional\n\tpublic T getById(Integer id) {\n\t\tif (id == null) {\n\t\t\treturn null;\n\t\t}\n\t\tObject result = hibernateTemplate.getSessionFactory().getCurrentSession()\n\t\t\t\t.createCriteria(getGenericClass())\n\t\t\t\t.add(Restrictions.idEq(id))\n\t\t\t\t.uniqueResult();\n\t\treturn initialize(checkType(result));\n\t}",
"@SuppressWarnings(\"unchecked\")\n public T doRetrieve(ID id, boolean lock)\n {\n T entity;\n if (id == null) throw new IllegalArgumentException(\"Parameter id was null!\");\n\n if (lock)\n entity = (T) session.load(getPersistentClass(), id, LockOptions.UPGRADE);\n else\n entity = (T) session.load(getPersistentClass(), id);\n\n return entity;\n }",
"@Override\n public Item get(long idItem) throws EntityNotFound;",
"@Override\n public Person findByID(Long id) {\n Session session = getSessionFactory().openSession();\n Person p = session.load(Person.class, id);\n session.close();\n return p;\n }",
"@Override\n public Customer findById(long id) throws EntityNotFoundException\n {\n return custrepos.findById(id)\n .orElseThrow(() -> new EntityNotFoundException(Long.toString(id)));\n }",
"@Override\n public DetalleVenta get(int id) {\n return detalleVentaJpaRepository.getOne(id);\n }",
"Repository findById(Integer id);",
"@Override\n public SideDishEntity find(Long id) throws ObjectNotFoundUserException {\n return null;\n }",
"@Override\n\tpublic car getById(int id) {\n\t\ttry{\n\t\t\tcar so=carDataRepository.getById(id);\n\t\t\t\n\t\t\treturn so;\n\t\t\t}\n\t\t\tcatch(Exception ex)\n\t\t\t{\n\t\t\t\tex.printStackTrace();\n\t\t\t\treturn null;\n\t\t\t}\n\t}",
"public BankThing retrieve(String id);",
"@Override\r\n\t@Transactional(readOnly=true)\r\n\tpublic Orden findById(Long id) {\n\t\treturn ordenRepository.findById(id).orElse(null);\r\n\t}",
"@Transactional(propagation = Propagation.NEVER)\n\tpublic User getById(int id) {\n\t\treturn userRepository.findById(id)\n\t\t\t\t.orElseThrow(() -> new HttpClientErrorException(HttpStatus.NOT_FOUND));\n\t}",
"@Override\n public T findById(Long id) {\n return manager.find(elementClass, id);\n }",
"@Override\n public Building get(long id) {\n return dao.get(Building.class, id);\n }",
"public Person getOne(Integer id) {\n\t\tPerson person = personRepository.getOne(id);\n\t\treturn person;\n\t}",
"@Override\r\n\tpublic Strumento getById(int id) throws StrumentoNotFoundException {\n\t\treturn strumentoRepository.getOne(id);\r\n\t}",
"@Override\n\tpublic Optional<Dispositivo> getById(int id) {\n\t\treturn dispositivoDao.findById(id);\n\t}",
"public Event getEventById(int id) {\n Optional<Event> optionalEvent = eventRepository.findById(id);\n if (optionalEvent.isPresent()) {\n LOGGER.info(\"Returning event with id {}\", id);\n return optionalEvent.get();\n }\n else {\n LOGGER.error(\"event with id {} has not been found\", id);\n throw new ResourceNotFoundException(\"Event not found\");\n }\n }",
"@Override\n public Optional<FridgeEntity> getById(String id) {\n return Optional.empty();\n }",
"@Override\n public Song getSong(long id) {\n Song s = null;\n try {\n s = em.createQuery(\"SELECT s FROM Song s WHERE s.id = :id\", Song.class)\n .setParameter(\"id\", id)\n .getSingleResult();\n } catch (NoResultException e) {\n\n }\n return s;\n }",
"@Override\n\tpublic Employee findById(int id) {\n\t\tSession currentSession = entityManager.unwrap(Session.class);\n\t\t\n\t\t// create a query to get an employee based on Id\n\t\tQuery<Employee> theQuery = currentSession.createQuery(\"from Employee e where e.id =: id\" , Employee.class);\n\t\ttheQuery.setParameter(\"id\", id);\n\t\tEmployee employee = theQuery.getSingleResult();\n\t\treturn employee;\n\t}"
] | [
"0.8008805",
"0.78383756",
"0.7814966",
"0.76498",
"0.7633836",
"0.75599766",
"0.7545466",
"0.7481006",
"0.74731255",
"0.73994786",
"0.73447067",
"0.7325245",
"0.7312803",
"0.73034984",
"0.7258192",
"0.72457457",
"0.7245285",
"0.7190184",
"0.7180779",
"0.71767825",
"0.71407485",
"0.7104591",
"0.7084949",
"0.7057287",
"0.7056695",
"0.705029",
"0.7041229",
"0.7027348",
"0.6995514",
"0.69868916",
"0.6981533",
"0.69449246",
"0.6943771",
"0.69358015",
"0.69356287",
"0.69309145",
"0.69304496",
"0.6928215",
"0.69012827",
"0.68950725",
"0.6880794",
"0.6825182",
"0.6782126",
"0.6779776",
"0.6764665",
"0.6741825",
"0.67219585",
"0.6719514",
"0.67179954",
"0.6710708",
"0.6703061",
"0.66853577",
"0.6677726",
"0.6671003",
"0.66684914",
"0.66658187",
"0.6653573",
"0.6651584",
"0.6648763",
"0.6642226",
"0.66398495",
"0.66356",
"0.66161764",
"0.6615265",
"0.66132915",
"0.66050345",
"0.66045076",
"0.6593231",
"0.6588618",
"0.65866095",
"0.6586339",
"0.6568205",
"0.65649134",
"0.65643215",
"0.6560507",
"0.6550293",
"0.6526689",
"0.65258646",
"0.6506739",
"0.6506197",
"0.6494024",
"0.6489897",
"0.6484201",
"0.6480956",
"0.64767885",
"0.64711523",
"0.64697343",
"0.6459529",
"0.6455646",
"0.6449322",
"0.644524",
"0.6443609",
"0.64418095",
"0.6441028",
"0.64401853",
"0.64364696",
"0.6436464",
"0.64363325",
"0.64357",
"0.6432879",
"0.6431644"
] | 0.0 | -1 |
Deletes a given entity. | void delete(long id); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void delete(Entity entity);",
"void delete(E entity);",
"void delete(E entity);",
"void deleteEntityById(Long id);",
"public void deleteEntity(AnnexDetail entity) throws Exception {\n\t\t\n\t}",
"void delete(int entityId);",
"void delete(Object entity);",
"public void delete(T entity) throws Exception{\n\t\tem.remove(entity);\n\t}",
"public <T> boolean delete(T entity);",
"void delete(T entity);",
"void delete(T entity);",
"Boolean delete(T entity);",
"boolean delete(T entity) throws Exception;",
"protected void delete(Object entity) {\r\n try {\r\n entityManager.getTransaction().begin();\r\n entityManager.remove(entity);\r\n entityManager.getTransaction().commit();\r\n } catch (Exception e) {\r\n System.err.println(\"Erro ao remover Entidade \" + e.getMessage());\r\n }\r\n }",
"ApiResponse deleteEntityById(Integer id);",
"public void delete(T entity) {\n\t\tsessionFactory.getCurrentSession().delete(entity);\n\t}",
"public void delete(E entity){\n Object idEntity = HibernateUtil.getIdEntity(entity);\n EntityTransaction entityTransaction = entityManager.getTransaction();\n entityTransaction.begin();\n entityManager.createNativeQuery(\"delete from \" + entity.getClass().getSimpleName().toLowerCase() +\n \" where id = \" + idEntity).executeUpdate();\n entityTransaction.commit();\n }",
"@Override\n public E delete(final E entity) {\n LOG.info(\"[delete] Start: entity = \" + entity.getClass().getSimpleName());\n entityManager.remove(entity);\n LOG.info(\"[delete] End\");\n return entity;\n }",
"boolean deleteById(T entity);",
"public void delete(E entity) {\n Session session = DAOUtils.getSession();\n Transaction trans = session.beginTransaction();\n\n session.delete(entity);\n\n trans.commit();\n }",
"void delete(E entity, RequestContext context)\n throws TechnicalException, ResourceNotFoundException;",
"@DeleteMapping(name = \"delete\")\n\tpublic ResponseEntity<?> delete(@ModelAttribute Entity entity) {\n\t\tgetService().delete(entity);\n\t\treturn ResponseEntity.ok().build();\n\t}",
"public void delete(EmployeeEntity entity){\n EmployeeDB.getInstance().delete(entity);\n }",
"@Override\n\tpublic void delete(T entity) {\n\t}",
"public void delete(Address entity);",
"@Override\n\tpublic void delete(T entity) {\n\t\tbaseDaoImpl.delete(entity);\n\t}",
"@Override\n\tpublic void delete(T entity) {\n\t\tbaseDaoImpl.delete(entity);\n\t}",
"@Override\r\n\tpublic void delete(T entity) throws Exception {\n\t\ttry {\r\n\t\t\tthis.getcurrentSession().delete(entity);\r\n\t\t} catch (DataAccessException e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\tthrow new Exception(\"删除\" + entity.getClass().getName() + \"实例失败\", e);\r\n\t\t}\r\n\t}",
"default void delete(E entity)\n throws TechnicalException, ResourceNotFoundException {\n delete(entity, null);\n }",
"@DELETE\n public void delete() {\n PersistenceService persistenceSvc = PersistenceService.getInstance();\n try {\n persistenceSvc.beginTx();\n deleteEntity(getEntity());\n persistenceSvc.commitTx();\n } finally {\n persistenceSvc.close();\n }\n }",
"@Override\n\tpublic void delete(Translator entity) {\n\t\t\n\t}",
"public void doDelete(T entity)\n {\n preDoDelete(entity);\n session.delete(entity);\n postDoDelete(entity);\n }",
"public void delete() throws EntityPersistenceException {\n\n }",
"@SuppressWarnings(\"unchecked\")\n public void delete(T entity) throws EntityNotFoundException, DAOException {\n Helper.checkNull(entity, \"entity\");\n Helper.checkEntityManager(entityManager);\n\n try {\n Id id = ((Id) ((Long) entity.getId()));\n T persitedEntity = retrieveById(id);\n persitedEntity.setDeleted(true);\n entityManager.merge(persitedEntity);\n } catch (Exception e) {\n throw Helper.wrapWithDAOException(e,\n \"Failed to delete entity.\");\n }\n }",
"@Override\n\tpublic int deleteObject(Evaluate entity) {\n\t\treturn evaluateMapper.deleteObject(entity);\n\t}",
"public <T> boolean delete(Class<T> entityClass, String id);",
"@Override\n\tpublic ImageEntity delete(Object entity) {\n\t\tDatabaseContext.delete(entity);\n\t\treturn (ImageEntity) entity;\n\t}",
"public void delete(HrJBorrowcontract entity);",
"@Override\n\tpublic void delete(Field entity) {\n\t\t\n\t}",
"public void delete(HrCStatitem entity);",
"@Transactional\n\t@Override\n\tpublic void delete(T entity) {\n\t\tregistroDao.delete((Registro) entity);\n\t\t\n\t}",
"@Override\n\tpublic void delete(UploadDF entity) {\n\t\tSession session = factory.openSession();\n\t\ttry{\n\t\t\tsession.beginTransaction();\n\t\t\tsession.delete(entity);\n\t\t\tsession.getTransaction().commit();\n\t\t}catch(HibernateException exception){\n\t\t\tsession.getTransaction().rollback();\n\t\t\tthrow exception;\n\t\t}finally{\n\t\t\tsession.close();\n\t\t}\n\t}",
"public void delete(final T entity)\n\t{\n\t\tentity.setDeleted(true);\n\t\t em.merge(entity);\n\t}",
"@Override\n public void delete(SideDishEntity entity) {\n\n }",
"@Override\r\n public void deleteEntity(String entityName) {\n\r\n }",
"public int delete(GenericEntity entity) throws GenericEntityException {\n SQLProcessor sqlP = new AutoCommitSQLProcessor(helperName);\n\n try {\n return deleteImpl(entity, sqlP.getConnection());\n } catch (GenericDataSourceException e) {\n sqlP.rollback();\n throw new GenericDataSourceException(\"Exception while deleting the following entity: \" + entity.toString(), e);\n } finally {\n closeSafely(entity, sqlP);\n }\n }",
"public void delete(Contract entity) {\n\r\n\t}",
"@Override\n\t@Transactional\n\tpublic T delete(T entity) {\n\t\tif (entity == null) {\n\t\t\treturn null;\n\t\t}\n\t\thibernateTemplate.delete(entity);\n\t\treturn entity;\n\t}",
"@Override\n\tpublic void delete(Audit entity) {\n\t\t\n\t}",
"@Override\n\tpublic void delete(Object entidade) {\n\t\t\n\t}",
"public void deleteEntity(final String entityId) throws OAuthServiceException {\n if (entityId != null) {\n final WebResource deleteResource = tokenResource.path(entityId);\n final ClientResponse resp =\n deleteResource.cookie(getCookie()).delete(ClientResponse.class);\n if (resp != null) {\n final int status = resp.getStatus();\n if (status != TOKEN_UPDATED) {\n throw new OAuthServiceException(\n \"failed to delete the token: status code=\" + status);\n }\n }\n }\n }",
"@Override\r\n\tpublic void delete(PartyType entity) {\n\t\t\r\n\t}",
"@DELETE\n public void delete() {\n try {\n dao.delete(dao.retrieveById(id));\n } catch (EntityInUse eiu) {\n throw new WebApplicationException(WSUtils.buildError(400, EntityInUse.ERROR_MESSAGE));\n }\n }",
"@Override\n\tpublic void delete(User entity) {\n\t\t\n\t}",
"public void delete(ControlAcceso entity) {\n\n\t}",
"protected abstract void deleteEntity(EntityType entityType, String entityName)\n throws IOException, IllegalAccessException;",
"public void deleteDetalleNominaEmpleado(DetalleNominaEmpleado entity)\n throws Exception;",
"public long delete(Entity entity){\r\n\t\ttry {\r\n\t\t\tthis.prepareFields(entity, true);\r\n\t\t\tString tableName = this.getTableName();\r\n\t\t\tTransferObject to = new TransferObject(\r\n\t\t\t\t\t\ttableName,\r\n\t\t\t\t\t\tprimaryKeyTos,\r\n\t\t\t\t\t\tfieldTos, \r\n\t\t\t\t\t\tTransferObject.DELETE_TYPE);\r\n\t\t\t\r\n\r\n\t\t\t\r\n\t\t\treturn transactStatements(to);\r\n\t\t} catch (Exception e) {\r\n\t\t\tLog.e(\"GPALOG\" , e.getMessage(),e); \r\n\t\t}\r\n\t\treturn 0;\r\n\t}",
"@Transactional\n\t@Override\n\tpublic void deleteById(Integer entityId) {\n\t\tregistroDao.deleteById(entityId);\n\t}",
"public void delete(SecRole entity);",
"@Override\n\tpublic void delete(Recipe entity) {\n\t\t\n\t}",
"abstract protected void removeEntity(Entity entity);",
"@Override\r\n\tpublic void delete(Empregado entity) throws Exception {\n\t\tentity.setAtivo(false);\r\n\t\tem.unwrap(Session.class).update(entity);\r\n\t}",
"public void delete(CbmCItemFininceItem entity);",
"@Override\n\tpublic int deleteByPk(BaseEntity entity) throws DaoException {\n\t\treturn 0;\n\t}",
"@RequestMapping(value = \"/delete\", method = RequestMethod.DELETE)\n\tpublic void delete(@RequestBody User entity) {\n\t\tdao.delete(entity);\n\t}",
"@Override\r\n\tpublic void delete(Plate entity) {\n\t\t\r\n\t}",
"protected abstract void deleteEntity(EntityType entityType, String entityName, int entityVersion)\n throws IOException, IllegalAccessException;",
"void delete(T obj) throws PersistException;",
"public void deleteGeominas(Geominas entity) throws Exception;",
"public void delete(Book entity) {\n\t\tentityManager.remove(entityManager.contains(entity) ? entity : entityManager.merge(entity));\n\t}",
"public void delete(ShoppingCartLine entity) {\n \t\t\t\tLogUtil.log(\"deleting ShoppingCartLine instance\", Level.INFO, null);\n\t try {\n \tentity = entityManager.getReference(ShoppingCartLine.class, entity.getId());\n entityManager.remove(entity);\n \t\t\tLogUtil.log(\"delete successful\", Level.INFO, null);\n\t } catch (RuntimeException re) {\n \t\t\t\tLogUtil.log(\"delete failed\", Level.SEVERE, re);\n\t throw re;\n }\n }",
"@Override\n public void delete(LineEntity entity) {\n\n }",
"@Override\n\tpublic void delete(List<Field> entity) {\n\t\t\n\t}",
"@Override\n\tpublic void delete(EntityManagerFactory emf, Stop entity) {\n\t\t\n\t}",
"public void deleteProduct(Supplier entity) {\n\t\t\r\n\t}",
"@Override\n\tpublic void entityDeleted(TGEntity entity) {\n \tOptional<TGAttribute> attr = entity.getAttributes().stream().findFirst();\n gLogger.log(TGLogger.TGLevel.Debug, \"Entity is deleted - \" + (attr.isPresent() ? attr.get().getValue() : \"no attribute found\"));\n removedList.put(((AbstractEntity) entity).getVirtualId(), entity);\n\t}",
"@DELETE\n @Path(\"/\")\n public Response delete() {\n\n if (entityDefinition == null) {\n return Response.status(Status.NOT_FOUND).build();\n }\n entityDefinition.getService().deleteCustom(entityId);\n return Response.status(Status.NO_CONTENT).build();\n }",
"public void deletePhysical(final T entity)\n\t{\n\t\tem.remove(entity);\n\t}",
"public void removeEntity(Entity entity){\n entityList.remove(entity);\n }",
"ResponseEntity deleteById(UUID id);",
"public int deleteOrderRequest(OrderEntity orderEntity);",
"public final void remove(final E entity) {\n getJpaTemplate().remove(entity);\n }",
"@Override\n\tpublic Result delete(CurriculumVitae entity) {\n\t\treturn null;\n\t}",
"public void remove(T entity) throws DataAccessException;",
"@Override\n\tpublic void delete(FxzfLane entity) {\n\t\t\n\t}",
"public void deleteContratoDosimetro(ContratoDosimetro entity)\n throws Exception;",
"public StokContract Delete(StokContract entity) {\n\t\treturn null;\n\t}",
"@Delete\n void delete(UsersEntity usersEntity);",
"@Override\n\tpublic void delete(Category entity) {\n\t\t\n\t}",
"public void postDoDelete(T entity)\n {\n }",
"@Override\n\tpublic void delete(User entity) {\n\t\tuserlist.remove(String.valueOf(entity.getDni()));\n\t}",
"@Override\n public void deleteEntity(String entitySetName, OEntityKey entityKey) {\n super.deleteEntity(entitySetName, entityKey);\n }",
"public void eliminarEntidad(E entidad) {\n logger.debug(\"Eliminando la entidad: [\" + clasePersistente + \"]\" + entidad);\n getSesion().delete(entidad);\n }",
"public boolean delete(Entity entity, PreparedStatement pstmt)\n\t\t\tthrows NoSuchMethodException, SecurityException,\n\t\t\tIllegalAccessException, IllegalArgumentException,\n\t\t\tInvocationTargetException, SQLException {\n\t\treturn addByIdProperty(entity, pstmt, 1).execute();\n\t}",
"@Override\n\tpublic PersonelContract Delete(PersonelContract entity) {\n\t\treturn null;\n\t}",
"void removeEntity(IViewEntity entity);",
"@Override\n\tpublic int delete(ElectricalCheck entity) throws Exception {\n\t\treturn 0;\n\t}",
"public void deleteSupplierEntity(SupplierEntity originEntity) {\n\n Session session = SessionFactoryProvider.getSessionFactory().openSession();\n Transaction tx = null;\n\n try {\n\n tx = session.beginTransaction();\n session.delete(originEntity);\n tx.commit();\n log.warn(\"Deleted supplier: \" + originEntity + \" with id of: \" + originEntity.getSupplierId());\n\n } catch (HibernateException e) {\n\n if (tx!=null) {\n tx.rollback();\n }\n\n e.printStackTrace();\n\n } finally {\n\n session.close();\n\n }\n\n }",
"@Override\n\tpublic void delete(MedioPago entidad) {\n\t\t\n\t}",
"@Override\n\tpublic void delete(Category entity) {\n\n\t}"
] | [
"0.8397088",
"0.8124312",
"0.8124312",
"0.8057794",
"0.8019652",
"0.80030936",
"0.79706556",
"0.7964307",
"0.7941071",
"0.79033214",
"0.79033214",
"0.7836776",
"0.7801956",
"0.7792936",
"0.77633256",
"0.77552354",
"0.77118516",
"0.7697611",
"0.76523304",
"0.76079774",
"0.7596439",
"0.7581168",
"0.7539123",
"0.74992263",
"0.74418694",
"0.7397817",
"0.7397817",
"0.7354372",
"0.7338551",
"0.7326016",
"0.72989535",
"0.72477084",
"0.72433263",
"0.7238719",
"0.72185916",
"0.72035944",
"0.7198052",
"0.71749115",
"0.71675265",
"0.7159235",
"0.71180224",
"0.70978343",
"0.7086108",
"0.70833004",
"0.7044299",
"0.70370305",
"0.7029555",
"0.7023429",
"0.70150834",
"0.69545126",
"0.6917186",
"0.68758726",
"0.68747455",
"0.68727803",
"0.6871012",
"0.6856927",
"0.6841178",
"0.6833632",
"0.68201554",
"0.68157285",
"0.681422",
"0.6811556",
"0.6809471",
"0.67869794",
"0.6774229",
"0.6766088",
"0.6756778",
"0.67538506",
"0.67453784",
"0.6733257",
"0.67312694",
"0.67212796",
"0.6705807",
"0.6688045",
"0.6686021",
"0.66665065",
"0.666422",
"0.6659455",
"0.6638803",
"0.6631563",
"0.66305",
"0.6623563",
"0.6596174",
"0.6589976",
"0.6587587",
"0.6585519",
"0.65853673",
"0.6580853",
"0.65715873",
"0.6571316",
"0.6560769",
"0.6544369",
"0.65368",
"0.6527645",
"0.65186906",
"0.6516601",
"0.6510085",
"0.6503046",
"0.6483816",
"0.6474966",
"0.64697397"
] | 0.0 | -1 |
Deletes a given entity. | void delete(T obj); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void delete(Entity entity);",
"void delete(E entity);",
"void delete(E entity);",
"void deleteEntityById(Long id);",
"public void deleteEntity(AnnexDetail entity) throws Exception {\n\t\t\n\t}",
"void delete(int entityId);",
"void delete(Object entity);",
"public void delete(T entity) throws Exception{\n\t\tem.remove(entity);\n\t}",
"public <T> boolean delete(T entity);",
"void delete(T entity);",
"void delete(T entity);",
"Boolean delete(T entity);",
"boolean delete(T entity) throws Exception;",
"protected void delete(Object entity) {\r\n try {\r\n entityManager.getTransaction().begin();\r\n entityManager.remove(entity);\r\n entityManager.getTransaction().commit();\r\n } catch (Exception e) {\r\n System.err.println(\"Erro ao remover Entidade \" + e.getMessage());\r\n }\r\n }",
"ApiResponse deleteEntityById(Integer id);",
"public void delete(T entity) {\n\t\tsessionFactory.getCurrentSession().delete(entity);\n\t}",
"public void delete(E entity){\n Object idEntity = HibernateUtil.getIdEntity(entity);\n EntityTransaction entityTransaction = entityManager.getTransaction();\n entityTransaction.begin();\n entityManager.createNativeQuery(\"delete from \" + entity.getClass().getSimpleName().toLowerCase() +\n \" where id = \" + idEntity).executeUpdate();\n entityTransaction.commit();\n }",
"@Override\n public E delete(final E entity) {\n LOG.info(\"[delete] Start: entity = \" + entity.getClass().getSimpleName());\n entityManager.remove(entity);\n LOG.info(\"[delete] End\");\n return entity;\n }",
"boolean deleteById(T entity);",
"public void delete(E entity) {\n Session session = DAOUtils.getSession();\n Transaction trans = session.beginTransaction();\n\n session.delete(entity);\n\n trans.commit();\n }",
"void delete(E entity, RequestContext context)\n throws TechnicalException, ResourceNotFoundException;",
"@DeleteMapping(name = \"delete\")\n\tpublic ResponseEntity<?> delete(@ModelAttribute Entity entity) {\n\t\tgetService().delete(entity);\n\t\treturn ResponseEntity.ok().build();\n\t}",
"public void delete(EmployeeEntity entity){\n EmployeeDB.getInstance().delete(entity);\n }",
"@Override\n\tpublic void delete(T entity) {\n\t}",
"public void delete(Address entity);",
"@Override\n\tpublic void delete(T entity) {\n\t\tbaseDaoImpl.delete(entity);\n\t}",
"@Override\n\tpublic void delete(T entity) {\n\t\tbaseDaoImpl.delete(entity);\n\t}",
"@Override\r\n\tpublic void delete(T entity) throws Exception {\n\t\ttry {\r\n\t\t\tthis.getcurrentSession().delete(entity);\r\n\t\t} catch (DataAccessException e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\tthrow new Exception(\"删除\" + entity.getClass().getName() + \"实例失败\", e);\r\n\t\t}\r\n\t}",
"default void delete(E entity)\n throws TechnicalException, ResourceNotFoundException {\n delete(entity, null);\n }",
"@DELETE\n public void delete() {\n PersistenceService persistenceSvc = PersistenceService.getInstance();\n try {\n persistenceSvc.beginTx();\n deleteEntity(getEntity());\n persistenceSvc.commitTx();\n } finally {\n persistenceSvc.close();\n }\n }",
"@Override\n\tpublic void delete(Translator entity) {\n\t\t\n\t}",
"public void doDelete(T entity)\n {\n preDoDelete(entity);\n session.delete(entity);\n postDoDelete(entity);\n }",
"public void delete() throws EntityPersistenceException {\n\n }",
"@SuppressWarnings(\"unchecked\")\n public void delete(T entity) throws EntityNotFoundException, DAOException {\n Helper.checkNull(entity, \"entity\");\n Helper.checkEntityManager(entityManager);\n\n try {\n Id id = ((Id) ((Long) entity.getId()));\n T persitedEntity = retrieveById(id);\n persitedEntity.setDeleted(true);\n entityManager.merge(persitedEntity);\n } catch (Exception e) {\n throw Helper.wrapWithDAOException(e,\n \"Failed to delete entity.\");\n }\n }",
"@Override\n\tpublic int deleteObject(Evaluate entity) {\n\t\treturn evaluateMapper.deleteObject(entity);\n\t}",
"public <T> boolean delete(Class<T> entityClass, String id);",
"@Override\n\tpublic ImageEntity delete(Object entity) {\n\t\tDatabaseContext.delete(entity);\n\t\treturn (ImageEntity) entity;\n\t}",
"public void delete(HrJBorrowcontract entity);",
"@Override\n\tpublic void delete(Field entity) {\n\t\t\n\t}",
"public void delete(HrCStatitem entity);",
"@Transactional\n\t@Override\n\tpublic void delete(T entity) {\n\t\tregistroDao.delete((Registro) entity);\n\t\t\n\t}",
"@Override\n\tpublic void delete(UploadDF entity) {\n\t\tSession session = factory.openSession();\n\t\ttry{\n\t\t\tsession.beginTransaction();\n\t\t\tsession.delete(entity);\n\t\t\tsession.getTransaction().commit();\n\t\t}catch(HibernateException exception){\n\t\t\tsession.getTransaction().rollback();\n\t\t\tthrow exception;\n\t\t}finally{\n\t\t\tsession.close();\n\t\t}\n\t}",
"public void delete(final T entity)\n\t{\n\t\tentity.setDeleted(true);\n\t\t em.merge(entity);\n\t}",
"@Override\n public void delete(SideDishEntity entity) {\n\n }",
"@Override\r\n public void deleteEntity(String entityName) {\n\r\n }",
"public int delete(GenericEntity entity) throws GenericEntityException {\n SQLProcessor sqlP = new AutoCommitSQLProcessor(helperName);\n\n try {\n return deleteImpl(entity, sqlP.getConnection());\n } catch (GenericDataSourceException e) {\n sqlP.rollback();\n throw new GenericDataSourceException(\"Exception while deleting the following entity: \" + entity.toString(), e);\n } finally {\n closeSafely(entity, sqlP);\n }\n }",
"public void delete(Contract entity) {\n\r\n\t}",
"@Override\n\t@Transactional\n\tpublic T delete(T entity) {\n\t\tif (entity == null) {\n\t\t\treturn null;\n\t\t}\n\t\thibernateTemplate.delete(entity);\n\t\treturn entity;\n\t}",
"@Override\n\tpublic void delete(Audit entity) {\n\t\t\n\t}",
"@Override\n\tpublic void delete(Object entidade) {\n\t\t\n\t}",
"public void deleteEntity(final String entityId) throws OAuthServiceException {\n if (entityId != null) {\n final WebResource deleteResource = tokenResource.path(entityId);\n final ClientResponse resp =\n deleteResource.cookie(getCookie()).delete(ClientResponse.class);\n if (resp != null) {\n final int status = resp.getStatus();\n if (status != TOKEN_UPDATED) {\n throw new OAuthServiceException(\n \"failed to delete the token: status code=\" + status);\n }\n }\n }\n }",
"@Override\r\n\tpublic void delete(PartyType entity) {\n\t\t\r\n\t}",
"@DELETE\n public void delete() {\n try {\n dao.delete(dao.retrieveById(id));\n } catch (EntityInUse eiu) {\n throw new WebApplicationException(WSUtils.buildError(400, EntityInUse.ERROR_MESSAGE));\n }\n }",
"@Override\n\tpublic void delete(User entity) {\n\t\t\n\t}",
"public void delete(ControlAcceso entity) {\n\n\t}",
"protected abstract void deleteEntity(EntityType entityType, String entityName)\n throws IOException, IllegalAccessException;",
"public void deleteDetalleNominaEmpleado(DetalleNominaEmpleado entity)\n throws Exception;",
"public long delete(Entity entity){\r\n\t\ttry {\r\n\t\t\tthis.prepareFields(entity, true);\r\n\t\t\tString tableName = this.getTableName();\r\n\t\t\tTransferObject to = new TransferObject(\r\n\t\t\t\t\t\ttableName,\r\n\t\t\t\t\t\tprimaryKeyTos,\r\n\t\t\t\t\t\tfieldTos, \r\n\t\t\t\t\t\tTransferObject.DELETE_TYPE);\r\n\t\t\t\r\n\r\n\t\t\t\r\n\t\t\treturn transactStatements(to);\r\n\t\t} catch (Exception e) {\r\n\t\t\tLog.e(\"GPALOG\" , e.getMessage(),e); \r\n\t\t}\r\n\t\treturn 0;\r\n\t}",
"@Transactional\n\t@Override\n\tpublic void deleteById(Integer entityId) {\n\t\tregistroDao.deleteById(entityId);\n\t}",
"public void delete(SecRole entity);",
"@Override\n\tpublic void delete(Recipe entity) {\n\t\t\n\t}",
"abstract protected void removeEntity(Entity entity);",
"@Override\r\n\tpublic void delete(Empregado entity) throws Exception {\n\t\tentity.setAtivo(false);\r\n\t\tem.unwrap(Session.class).update(entity);\r\n\t}",
"public void delete(CbmCItemFininceItem entity);",
"@Override\n\tpublic int deleteByPk(BaseEntity entity) throws DaoException {\n\t\treturn 0;\n\t}",
"@RequestMapping(value = \"/delete\", method = RequestMethod.DELETE)\n\tpublic void delete(@RequestBody User entity) {\n\t\tdao.delete(entity);\n\t}",
"@Override\r\n\tpublic void delete(Plate entity) {\n\t\t\r\n\t}",
"protected abstract void deleteEntity(EntityType entityType, String entityName, int entityVersion)\n throws IOException, IllegalAccessException;",
"void delete(T obj) throws PersistException;",
"public void deleteGeominas(Geominas entity) throws Exception;",
"public void delete(Book entity) {\n\t\tentityManager.remove(entityManager.contains(entity) ? entity : entityManager.merge(entity));\n\t}",
"public void delete(ShoppingCartLine entity) {\n \t\t\t\tLogUtil.log(\"deleting ShoppingCartLine instance\", Level.INFO, null);\n\t try {\n \tentity = entityManager.getReference(ShoppingCartLine.class, entity.getId());\n entityManager.remove(entity);\n \t\t\tLogUtil.log(\"delete successful\", Level.INFO, null);\n\t } catch (RuntimeException re) {\n \t\t\t\tLogUtil.log(\"delete failed\", Level.SEVERE, re);\n\t throw re;\n }\n }",
"@Override\n public void delete(LineEntity entity) {\n\n }",
"@Override\n\tpublic void delete(List<Field> entity) {\n\t\t\n\t}",
"@Override\n\tpublic void delete(EntityManagerFactory emf, Stop entity) {\n\t\t\n\t}",
"public void deleteProduct(Supplier entity) {\n\t\t\r\n\t}",
"@Override\n\tpublic void entityDeleted(TGEntity entity) {\n \tOptional<TGAttribute> attr = entity.getAttributes().stream().findFirst();\n gLogger.log(TGLogger.TGLevel.Debug, \"Entity is deleted - \" + (attr.isPresent() ? attr.get().getValue() : \"no attribute found\"));\n removedList.put(((AbstractEntity) entity).getVirtualId(), entity);\n\t}",
"@DELETE\n @Path(\"/\")\n public Response delete() {\n\n if (entityDefinition == null) {\n return Response.status(Status.NOT_FOUND).build();\n }\n entityDefinition.getService().deleteCustom(entityId);\n return Response.status(Status.NO_CONTENT).build();\n }",
"public void deletePhysical(final T entity)\n\t{\n\t\tem.remove(entity);\n\t}",
"public void removeEntity(Entity entity){\n entityList.remove(entity);\n }",
"ResponseEntity deleteById(UUID id);",
"public int deleteOrderRequest(OrderEntity orderEntity);",
"public final void remove(final E entity) {\n getJpaTemplate().remove(entity);\n }",
"@Override\n\tpublic Result delete(CurriculumVitae entity) {\n\t\treturn null;\n\t}",
"public void remove(T entity) throws DataAccessException;",
"@Override\n\tpublic void delete(FxzfLane entity) {\n\t\t\n\t}",
"public void deleteContratoDosimetro(ContratoDosimetro entity)\n throws Exception;",
"public StokContract Delete(StokContract entity) {\n\t\treturn null;\n\t}",
"@Delete\n void delete(UsersEntity usersEntity);",
"@Override\n\tpublic void delete(Category entity) {\n\t\t\n\t}",
"public void postDoDelete(T entity)\n {\n }",
"@Override\n\tpublic void delete(User entity) {\n\t\tuserlist.remove(String.valueOf(entity.getDni()));\n\t}",
"@Override\n public void deleteEntity(String entitySetName, OEntityKey entityKey) {\n super.deleteEntity(entitySetName, entityKey);\n }",
"public void eliminarEntidad(E entidad) {\n logger.debug(\"Eliminando la entidad: [\" + clasePersistente + \"]\" + entidad);\n getSesion().delete(entidad);\n }",
"public boolean delete(Entity entity, PreparedStatement pstmt)\n\t\t\tthrows NoSuchMethodException, SecurityException,\n\t\t\tIllegalAccessException, IllegalArgumentException,\n\t\t\tInvocationTargetException, SQLException {\n\t\treturn addByIdProperty(entity, pstmt, 1).execute();\n\t}",
"@Override\n\tpublic PersonelContract Delete(PersonelContract entity) {\n\t\treturn null;\n\t}",
"void removeEntity(IViewEntity entity);",
"@Override\n\tpublic int delete(ElectricalCheck entity) throws Exception {\n\t\treturn 0;\n\t}",
"public void deleteSupplierEntity(SupplierEntity originEntity) {\n\n Session session = SessionFactoryProvider.getSessionFactory().openSession();\n Transaction tx = null;\n\n try {\n\n tx = session.beginTransaction();\n session.delete(originEntity);\n tx.commit();\n log.warn(\"Deleted supplier: \" + originEntity + \" with id of: \" + originEntity.getSupplierId());\n\n } catch (HibernateException e) {\n\n if (tx!=null) {\n tx.rollback();\n }\n\n e.printStackTrace();\n\n } finally {\n\n session.close();\n\n }\n\n }",
"@Override\n\tpublic void delete(MedioPago entidad) {\n\t\t\n\t}",
"@Override\n\tpublic void delete(Category entity) {\n\n\t}"
] | [
"0.8397088",
"0.8124312",
"0.8124312",
"0.8057794",
"0.8019652",
"0.80030936",
"0.79706556",
"0.7964307",
"0.7941071",
"0.79033214",
"0.79033214",
"0.7836776",
"0.7801956",
"0.7792936",
"0.77633256",
"0.77552354",
"0.77118516",
"0.7697611",
"0.76523304",
"0.76079774",
"0.7596439",
"0.7581168",
"0.7539123",
"0.74992263",
"0.74418694",
"0.7397817",
"0.7397817",
"0.7354372",
"0.7338551",
"0.7326016",
"0.72989535",
"0.72477084",
"0.72433263",
"0.7238719",
"0.72185916",
"0.72035944",
"0.7198052",
"0.71749115",
"0.71675265",
"0.7159235",
"0.71180224",
"0.70978343",
"0.7086108",
"0.70833004",
"0.7044299",
"0.70370305",
"0.7029555",
"0.7023429",
"0.70150834",
"0.69545126",
"0.6917186",
"0.68758726",
"0.68747455",
"0.68727803",
"0.6871012",
"0.6856927",
"0.6841178",
"0.6833632",
"0.68201554",
"0.68157285",
"0.681422",
"0.6811556",
"0.6809471",
"0.67869794",
"0.6774229",
"0.6766088",
"0.6756778",
"0.67538506",
"0.67453784",
"0.6733257",
"0.67312694",
"0.67212796",
"0.6705807",
"0.6688045",
"0.6686021",
"0.66665065",
"0.666422",
"0.6659455",
"0.6638803",
"0.6631563",
"0.66305",
"0.6623563",
"0.6596174",
"0.6589976",
"0.6587587",
"0.6585519",
"0.65853673",
"0.6580853",
"0.65715873",
"0.6571316",
"0.6560769",
"0.6544369",
"0.65368",
"0.6527645",
"0.65186906",
"0.6516601",
"0.6510085",
"0.6503046",
"0.6483816",
"0.6474966",
"0.64697397"
] | 0.0 | -1 |
Returns all instances of the type. | Iterable<T> list(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Collection<Instance> getInstances();",
"public List<ServiceInstance> getAllInstances();",
"public List<Type> getAll();",
"private Collection getInstances() {\n \t\tCollection instances=null;\r\n\r\n //instances = cls.getInstances();\r\n \t\tRDFProperty ready = owlModel.getRDFProperty(oTab.namespacePrefix + \":\" + oTab.pReady);\r\n\r\n \t\tif ( ready != null )\r\n \t\t{\r\n \t\t\tinstances = owlModel.getRDFResourcesWithPropertyValue(ready, true);\r\n \t\t}\r\n \t\telse\r\n \t\t{\r\n \t\t\tSystem.out.println(\"*** Could not lookup property defintion for \" + oTab.namespacePrefix + \":\" + oTab.pReady + \" Ontology not imported\");\r\n \t\t}\r\n\r\n return instances;\r\n }",
"public List<ServiceInstance<InstanceDetails>> listInstances() throws Exception {\n\t\tCollection<String> serviceNames = serviceDiscovery.queryForNames();\n\t\tSystem.out.println(serviceNames.size() + \" type(s)\");\n\t\tList<ServiceInstance<InstanceDetails>> list = new ArrayList<>();\n\t\tfor (String serviceName : serviceNames) {\n\t\t\tCollection<ServiceInstance<InstanceDetails>> instances = serviceDiscovery.queryForInstances(serviceName);\n\t\t\tSystem.out.println(serviceName);\n\t\t\tfor (ServiceInstance<InstanceDetails> instance : instances) {\n\t\t\t\toutputInstance(instance);\n\t\t\t\tlist.add(instance);\n\t\t\t}\n\t\t}\n\t\treturn list;\n\t}",
"@Override\r\n\tpublic List<T> findAll() {\n\t\treturn getSession().createQuery(\r\n\t\t\t\t\"FROM \"+clazz.getSimpleName())\r\n\t\t\t\t.list();\r\n\t}",
"public List<T> findAll() {\n\n\t\tConnection dbConnection = ConnectionFactory.getConnection();\n\t\tPreparedStatement findStatement = null;\n\t\tResultSet rs = null;\n\t\tString findStatementString = \"SELECT * FROM \" + type.getSimpleName();\n\n\t\ttry {\n\t\t\tfindStatement = dbConnection.prepareStatement(findStatementString);\n\t\t\trs = findStatement.executeQuery();\n\t\t\treturn createObjects(rs);\n\t\t} catch (SQLException e) {\n\t\t\tLOGGER.log(Level.WARNING, type.getName() + \"DAO:findAll\" + e.getMessage());\n\t\t} finally {\n\t\t\tConnectionFactory.close(rs);\n\t\t\tConnectionFactory.close(findStatement);\n\t\t\tConnectionFactory.close(dbConnection);\n\t\t}\n\t\treturn null;\n\t}",
"public List<InstanceType> listInstanceTypes() throws IOException,\n\t\t\tClassNotFoundException {\n\t\treturn list(InstanceType.class);\n\t}",
"@CheckReturnValue\n Stream<? extends Thing.Remote<SomeRemoteThing, SomeRemoteType>> instances();",
"public int getInstancesPerType()\n {\n return instancesPerType;\n }",
"public <T extends IDBEntities> List<T> retrieveAll(Class<? extends IDBEntities> type) {\n\t\tif (type == null)\n\t\t\treturn new ArrayList<>();\n\t\tList<T> result;\n\t\tEntityManager em = getEM();\n\t\ttry {\n\t\t\tQuery q = em.createNamedQuery(type.getSimpleName() + \".findAll\", type);\n\t\t\tresult = q.getResultList();\n\t\t} catch (Exception ex) {\n\t\t\t// No records exist\n\t\t\treturn null;\n\t\t} finally {\n\t\t\tem.close();\n\t\t}\n\t\t// Dealing with EclipseLink Vector overriding issues (iterators don't work properly)\n\t\tList<T> output = new ArrayList<>();\n\t\toutput.addAll(result);\n\t\treturn output;\n\t}",
"@Override\n public List<T> findAll() {\n return manager\n .createQuery(\"from \" + elementClass.getSimpleName() + \" e\", elementClass)\n .getResultList();\n }",
"public List<E> findAll(Class<E> type){\n transaction.begin();\n List<E> types = entityManager.createQuery(\" from \" + type.getName()).getResultList();\n transaction.commit();\n return types;\n }",
"@Override\n\t@Transactional\n\tpublic List<T> getAll() {\n\t\tList<?> result = hibernateTemplate.getSessionFactory().getCurrentSession()\n\t\t\t\t.createCriteria(getGenericClass())\n\t\t\t\t.list();\n\t\treturn result.stream()\n\t\t\t\t.map(e -> initialize(checkType(e)))\n\t\t\t\t.filter(e -> e != null)\n\t\t\t\t.collect(Collectors.toList());\n\t}",
"public final List<CharacterInstance> getInstances() {\n return instances;\n }",
"@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic List<T> getAll(Class<T> type) {\n\t\treturn super.getSessionFactory().getCurrentSession().createQuery(\"from \"+type.getName()+\"\").list();\r\n\t}",
"@Override\n\tpublic List<T> getAllEntry() {\n\t\treturn this.hibernateTemplate.find(\"from \"+this.classt.getName());\n\t}",
"@Override\n\tpublic Collection<Instance> getByQuery(Query query) {\n\t\treturn null;\n\t}",
"public Iterator<ODocument> getAllAsList(@Generic(\"T\") final Class<?> type) {\n return getAll(type);\n }",
"public static ArrayList<InstanceEntity> getInstances() {\n ILifeCycleServiceRest resourceserviceproxy =\n ConsumerFactory.createConsumer(MsbUtil.getNsocLifecycleBaseUrl(),\n ILifeCycleServiceRest.class);\n String result = \"\";\n try {\n result = resourceserviceproxy.getVnfInstances();\n } catch (Exception e1) {\n LOG.error(\"query vim info faild.\", e1);\n return null;\n }\n if (ToolUtil.isEmptyString(result)) {\n return null;\n }\n\n Gson gson = new Gson();\n Type listType = new TypeToken<ArrayList<InstanceEntity>>() {}.getType();\n return gson.fromJson(result, listType);\n }",
"public List<T> findAll() {\n\t Query q = getEntityManager().createQuery(\"select u from \" + getEntityClass().getSimpleName() + \" u\");\n\t return q.getResultList();\n\t }",
"public static SortBuilder[] allInstances() {\n \t\treturn (SortBuilder[]) allInstances.toArray(new SortBuilder[allInstances.size()]);\n \t}",
"public java.util.List<String> getInstanceTypes() {\n if (instanceTypes == null) {\n instanceTypes = new com.amazonaws.internal.SdkInternalList<String>();\n }\n return instanceTypes;\n }",
"<T> IList<T> getObjects(Class<T> type);",
"@Override\n\tpublic Instances getInstances() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic List<TypeDocument> findAll() {\n\t\treturn typeDocumentRepository.findAll();\n\t}",
"public List findAll() {\n return findAll(ClassItem.class);\n }",
"<T> Set<T> lookupAll(Class<T> type);",
"@Override\n public synchronized Set<AttributeType> getAttributeInstances() {\n return attributeInstances = nonNullSet(attributeInstances, AttributeType.class);\n }",
"List<T> getAll();",
"List<T> getAll();",
"List<T> getAll();",
"List<T> getAll();",
"List<T> getAll();",
"default List<TypeInfo> allTypes() {\n List<TypeInfo> allTypes = new LinkedList<>();\n allTypes.add(this);\n allTypes.addAll(Arrays.asList(interfaces()));\n allTypes.addAll(superClass().stream().flatMap(s -> s.allTypes().stream()).collect(Collectors.toList()));\n return allTypes;\n }",
"@Override\n\tpublic List<EmploieType> findAll() {\n\t\treturn emploieTypeRepository.findAll();\n\t}",
"public SortedSet<WVnfInstance> getAllVnfInstances ()\n\t{\n\t\treturn n.getResources().stream().filter(r->!r.getType().contains(WNetConstants.LISTSEPARATORANDINVALIDNAMECHARACTER)).map(r->new WVnfInstance(r)).collect(Collectors.toCollection(TreeSet::new));\n\t}",
"@RequestMapping(value = \"/discovery-client/instances\", method = RequestMethod.GET)\n public Map<String, Integer> getAllInstances() {\n final Map<String, Integer> response = new HashMap<>();\n\n final Applications applications = discoveryClient.getApplications();\n final List<Application> applicationList = applications.getRegisteredApplications();\n\n //TODO Java 8 Stream\n // Get instances from eureka\n for (final Application app : applicationList) {\n response.put(app.getName(), app.getInstances().size());\n }\n\n return response;\n }",
"@Override\n public synchronized Set<FeatureType> getFeatureInstances() {\n return featureInstances = nonNullSet(featureInstances, FeatureType.class);\n }",
"@Override\n\tpublic List<FoodType> FindAllType() {\n\t\treturn ftb.FindAllType();\n\t}",
"public List<T> findAll() {\n\t\treturn null;\n\t}",
"public List<ServiceInstance> getAllInstances(String serviceName);",
"<T> List<T> getAll(Class<T> clazz);",
"public static Set<Class<?>> getAllInterfacesAsSet(Object instance) {\n Assert.notNull(instance, \"Instance must not be null\");\n\n return getAllInterfacesForClassAsSet(instance.getClass());\n }",
"@Override\n\tpublic List<Kind> findAll() {\n\t\treturn kindDao.findAll();\n\n\t}",
"@Override\n\tpublic List<T> getAll() {\n\t\treturn getDao().findAll();\n\t}",
"@Override\r\n\tpublic List<Type> getTypes() {\n\t\treturn (List<Type>)BaseDao.select(\"select * from type\", Type.class);\r\n\t}",
"@GetMapping(\"/types\")\n\t@Timed\n\tpublic List<TypesDTO> getAllTypes() {\n\t\tthis.log.debug(\"REST request to get all Types\");\n\t\treturn this.typesService.findAll();\n\t}",
"public static List<FoundObject> findAll() {\n\t\treturn getPersistence().findAll();\n\t}",
"public ArrayList<Instance> getTestInstances() {\n ArrayList<Instance> testing = new ArrayList<>();\n testing.addAll(instances.subList(targetsize, instances.size()));\n return testing;\n }",
"protected List findAll(Class clazz) {\r\n\r\n try {\r\n Query q = entityManager.createNamedQuery(clazz.getSimpleName() + \".findAll\");\r\n return q.getResultList();\r\n } catch (Exception e) {\r\n //Nao e um erro :)\r\n }\r\n return null;\r\n }",
"@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic List<T> getList() {\r\n\t\tgetEntityManager().flush();\r\n\t\treturn getEntityManager().createQuery(\r\n\t\t\t\t\"select OBJECT(o) from \" + getClassType().getSimpleName() + \" o order by o.id\")\r\n\t\t\t\t.getResultList();\r\n\t}",
"@SuppressWarnings(\"rawtypes\")\r\n\tpublic List getAll(Class className) {\r\n\t\tQuery q = em.createNativeQuery(\r\n\t\t\t\t\"select * from \" + className.getSimpleName(), className);\r\n\t\treturn q.getResultList();\r\n\t}",
"List<Type> getAllTypeList();",
"@Override\r\n\tpublic List<HouseType> queryAllHtype() {\n\t\treturn adi.queryAllHtype();\r\n\t}",
"<T extends Component> Collection<T> getAllComponents(Class<T> type);",
"private static void listInstances(ServiceDiscovery<InstanceDetails> serviceDiscovery) throws\n Exception {\n \n try {\n Collection<String> serviceNames = serviceDiscovery.queryForNames();\n System.out.println(serviceNames.size() + \" type(s)\");\n for (String serviceName : serviceNames) {\n Collection<ServiceInstance<InstanceDetails>> instances = serviceDiscovery\n .queryForInstances(serviceName);\n System.out.println(serviceName);\n for (ServiceInstance<InstanceDetails> instance : instances) {\n outputInstance(instance);\n }\n }\n } finally {\n CloseableUtils.closeQuietly(serviceDiscovery);\n }\n }",
"@NonNull\n public static Instance[] allInstancesOf(@NonNull Snapshot snapshot, String baseClassName) {\n ClassObj theClass = snapshot.findClass(baseClassName);\n\n if (theClass == null) {\n throw new IllegalArgumentException(\"Class not found: \" + baseClassName);\n }\n\n ArrayList<ClassObj> classList = new ArrayList<ClassObj>();\n\n classList.add(theClass);\n classList.addAll(traverseSubclasses(theClass));\n\n ArrayList<Instance> instanceList = new ArrayList<Instance>();\n\n for (ClassObj someClass : classList) {\n instanceList.addAll(someClass.getInstancesList());\n }\n\n Instance[] result = new Instance[instanceList.size()];\n\n instanceList.toArray(result);\n\n return result;\n }",
"private Collection<TypeDeclaration> getAllTypes() {\n if (allTypes != null) {\n return allTypes;\n }\n allTypes = new ArrayList<TypeDeclaration>();\n for (Symbol s : getMembers(false)) {\n allTypes.add(env.declMaker.getTypeDeclaration((ClassSymbol) s));\n }\n return allTypes;\n }",
"public List<T> getAll() {\n\t\treturn this.getAll(new ArrayList<String>(), false);\n\t}",
"@Override\n public List<BaiseeClazz> findAllClazzInfo() {\n return claMapper.findAllClazzInfo();\n }",
"@Override\r\n\tpublic List<Object> findAll() {\n\t\treturn null;\r\n\t}",
"public abstract List<Object> getAll();",
"ISet<Class<?>> collectAllTypeWiredServices();",
"public <T extends BusinessObject> Collection<T> findAll(Class<T> clazz) {\r\n return (Collection<T>)getPersistenceBrokerTemplate().getCollectionByQuery(QueryFactory.newQuery(clazz, (Criteria) null));\r\n }",
"public java.util.List<VcmsArticleType> findAll();",
"public List<ServiceInstance> getAllInstances(String serviceName, ServiceInstanceQuery query);",
"public ArrayList<T> findAll() {\n\t\tConnection connection = null;\n\t\tPreparedStatement statement = null;\n\t\tResultSet resultSet = null;\n\t\tString query = createFindAll();\n\t\ttry {\n\t\t\tconnection = ConnectionDB.getConnection();\n\t\t\tstatement = connection.prepareStatement(query);\n\t\t\tresultSet = statement.executeQuery();\n\t\t\treturn createObjects(resultSet);\n\t\t} catch (SQLException e) {\n\t\t\tLOGGER.log(Level.WARNING, type.getName() + \"DAO:findAll\" + e.getMessage());\n\t\t} finally {\n\t\t\tConnectionDB.close(resultSet);\n\t\t\tConnectionDB.close(statement);\n\t\t\tConnectionDB.close(connection);\n\t\t}\n\t\treturn null;\n\t}",
"<T> void lookupAll(Class<T> type, Collection<T> out);",
"List<T> findAll() ;",
"List<T> findAll();",
"List<T> findAll();",
"List<T> findAll();",
"public List<InstanceTypePrice> listInstanceTypePrices() throws IOException,\n\t\t\tClassNotFoundException {\n\t\treturn new LinkedList<InstanceTypePrice>();\n\t}",
"@SuppressWarnings(\"unchecked\")\n private static <T> Stream<T> all(Class<T> type, Iterator<Object> i) {\n requireNonNull(type);\n requireNonNull(i);\n \n return all(i).filter(o -> type.isAssignableFrom(o.getClass()))\n .map(o -> (T) o);\n }",
"public List findall() {\r\n log.debug(\"TwitterAccountHibernateDAO.findall\");\r\n List<T> t = find().list();\r\n \r\n return t;\r\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic List<T> list() {\n\t\treturn sessionFactory.getCurrentSession().createCriteria(clazz).addOrder(org.hibernate.criterion.Order.asc(\"id\")).list();\n\t}",
"public List<ServiceInstance> getAllInstancesByKey(ServiceInstanceQuery query);",
"@Override\n public List<R> getAll() {\n return onFindForList(getSession().createCriteria(entityClass).list());\n }",
"public List<Container> findAll() {\n\t\tSession currentSession = em.unwrap(Session.class);\n\t\t\n\t\t//create the query\n\t\tQuery<Container> query = currentSession.createQuery(\"from Container\", Container.class);\n\t\t\n\t\t//execute query and get result list\n\t\tList<Container> containers = query.getResultList();\n\t\t//System.out.println(containers);\n\t\t//return the results\n\t\treturn containers;\n\t}",
"public InstanceDescription[] getContainedInstances() {\n return m_containedInstances;\n }",
"public java.util.List<SeriesInstance> getInstance() { \n\t\tif (myInstance == null) {\n\t\t\tmyInstance = new java.util.ArrayList<SeriesInstance>();\n\t\t}\n\t\treturn myInstance;\n\t}",
"public List<ItemTypeDTO> getAll();",
"public List<E> findAll() {\n return getDao().findAll();\n }",
"@SuppressWarnings(\"unchecked\")\r\n\tpublic static List<Tag> getTagsByType(Integer type) {\r\n\t\tQuery q = PMF.get().getPersistenceManager().newQuery(Tag.class);\r\n\t\tq.setFilter(\"type == :typeParam\");\r\n\t\treturn (List<Tag>) q.execute(type);\r\n\t}",
"List<T> obtenerAll();",
"@Override\n\tpublic Iterable<Oglas> findAll() {\n\t\treturn repository.findAll();\n\t}",
"Collection<T> findAll();",
"@Override\n\tpublic List<Classe> getClasses() {\n\t\treturn classeRepository.findAll();\n\t}",
"public ArrayList<BikeType> getAllTypes(){\n typelist = new ArrayList<>();\n\n try(Connection con = DatabaseConnector.getConnection();\n PreparedStatement ps = con.prepareStatement(ALL_TYPES);\n ResultSet rs = ps.executeQuery()){\n\n while(rs.next()){\n BikeType type = new BikeType(rs.getString(cTypeName),rs.getDouble(cRentalPrice));\n type.setTypeId(rs.getInt(cTypeId));\n typelist.add(type);\n }\n\n }catch(Exception e){\n System.out.println(\"Exception: \" + e);\n }\n return typelist;\n }",
"public SampletypeBean[] loadAll() throws SQLException \n {\n Connection c = null;\n PreparedStatement ps = null;\n try \n {\n c = getConnection();\n ps = c.prepareStatement(\"SELECT \" + ALL_FIELDS + \" FROM sampletype\",ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);\n return loadByPreparedStatement(ps);\n }\n finally\n {\n getManager().close(ps);\n freeConnection(c);\n }\n }",
"public List<I> get() {\n synchronized (refs) {\n List<I> res = new ArrayList<>();\n for (Iterator<WeakReference<I>> iterator = refs.iterator(); iterator.hasNext(); ) {\n WeakReference<I> ref = iterator.next();\n I instance = ref.get();\n if (instance == null) {\n iterator.remove();\n } else {\n res.add(instance);\n }\n }\n return res;\n }\n }",
"@Override\r\n\tpublic List<AsxDataVO> findAll() {\n\t\treturn mongoTemplate.find(new Query(), AsxDataVO.class);\r\n\t}",
"@Override\r\n\tpublic List<?> findAll(Class<?> entity) {\n\t\treturn null;\r\n\t}",
"public final void mT__54() throws RecognitionException {\n try {\n int _type = T__54;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // ../org.xtext.example.webgme_mtl/src-gen/org/xtext/example/webgme/parser/antlr/internal/InternalMTL.g:52:7: ( 'allInstances' )\n // ../org.xtext.example.webgme_mtl/src-gen/org/xtext/example/webgme/parser/antlr/internal/InternalMTL.g:52:9: 'allInstances'\n {\n match(\"allInstances\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }",
"public final native KmlObjectList getElementsByType(String type) /*-{\r\n\t\treturn this.getElementsByType(type);\r\n\t}-*/;",
"@Transactional(readOnly = true)\n public Page<ItemInstance> findAll(Pageable pageable) {\n log.debug(\"Request to get all ItemInstances\");\n return itemInstanceRepository.findAll(pageable);\n }",
"public List<Entity> getAll() {\n return entities;\n }",
"List<Widget> findAll();",
"@Override\n public List<T> findAll() {\n String getAllQuery = \"SELECT * FROM \" + getTableName();\n return getJdbcTemplate().query(getAllQuery,\n BeanPropertyRowMapper.newInstance(getEntityClass()));\n }",
"private static void printAll(Class cls, PersistenceManager pm) {\n Extent extent = pm.getExtent(cls, true);\n Iterator itr = extent.iterator();\n printCollection(\"All \" + cls.getName() + \" instances:\", itr);\n extent.close(itr);\n }"
] | [
"0.7738123",
"0.7172061",
"0.7031178",
"0.69717175",
"0.6766654",
"0.672286",
"0.6708667",
"0.66421777",
"0.66166866",
"0.65298975",
"0.64938176",
"0.6455558",
"0.64202976",
"0.6398732",
"0.63888574",
"0.6344976",
"0.63267094",
"0.63195544",
"0.63156563",
"0.62823844",
"0.6263584",
"0.62027675",
"0.6201543",
"0.6197131",
"0.61548775",
"0.61287004",
"0.6099172",
"0.60898125",
"0.6084866",
"0.60642725",
"0.60642725",
"0.60642725",
"0.60642725",
"0.60642725",
"0.6045727",
"0.604508",
"0.6007049",
"0.59940755",
"0.59907943",
"0.59896684",
"0.59816563",
"0.5954345",
"0.5917678",
"0.59170544",
"0.5912917",
"0.58907115",
"0.58793664",
"0.5877785",
"0.58764213",
"0.58725196",
"0.58722836",
"0.5860818",
"0.5851497",
"0.58377147",
"0.5836733",
"0.58235663",
"0.5819695",
"0.5816908",
"0.5814889",
"0.5775312",
"0.5767727",
"0.5763898",
"0.575953",
"0.5751067",
"0.57374084",
"0.57287675",
"0.5724494",
"0.5719762",
"0.5714971",
"0.5714152",
"0.5708581",
"0.5708581",
"0.5708581",
"0.5695617",
"0.5694119",
"0.568077",
"0.5674818",
"0.5647657",
"0.5644441",
"0.5637665",
"0.5636945",
"0.5627342",
"0.5623728",
"0.5622558",
"0.56145847",
"0.5608736",
"0.56082374",
"0.56069404",
"0.5603473",
"0.55993557",
"0.5593952",
"0.5592324",
"0.55845326",
"0.5583808",
"0.5575494",
"0.55713683",
"0.5569054",
"0.5567171",
"0.554778",
"0.5542268",
"0.55398136"
] | 0.0 | -1 |
Created by khush on 06/11/2016. | public interface StockPECalculator extends StockCalculator{
BigDecimal calculatePE(Stock stock, LocalDate calculationDate);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"public final void mo51373a() {\n }",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"private static void cajas() {\n\t\t\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"private void init() {\n\n\t}",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"private void poetries() {\n\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"public void mo38117a() {\n }",
"@Override\n public void init() {\n }",
"@Override\n void init() {\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\n public int describeContents() { return 0; }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"private void kk12() {\n\n\t}",
"@Override\n protected void initialize() \n {\n \n }",
"private void strin() {\n\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {}",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"@Override\n protected void init() {\n }",
"@Override\n public void init() {\n\n }",
"@Override\n public void init() {\n\n }",
"@Override\n public void init() {}",
"public void mo4359a() {\n }",
"@Override\n\tpublic void nghe() {\n\n\t}",
"protected boolean func_70814_o() { return true; }",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tpublic void init()\n\t{\n\n\t}",
"@Override\n\tpublic void init() {\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"private void m50366E() {\n }",
"private Rekenhulp()\n\t{\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"private void init() {\n\n\n\n }",
"@Override\n public void memoria() {\n \n }",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\t\tpublic void init() {\n\t\t}",
"@Override\n public void initialize() { \n }",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"@Override\n\tprotected void initialize() {\n\t}",
"@Override\n\tprotected void initialize() {\n\t}",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"public void mo6081a() {\n }",
"@Override\n public void init() {\n }"
] | [
"0.603065",
"0.59647185",
"0.58995235",
"0.58739805",
"0.58041877",
"0.58041877",
"0.57929856",
"0.5720228",
"0.5708575",
"0.5673664",
"0.5659937",
"0.5648709",
"0.5643551",
"0.56415504",
"0.5640566",
"0.56294507",
"0.56241673",
"0.5623615",
"0.5613469",
"0.5613469",
"0.5613469",
"0.5613469",
"0.5613469",
"0.558835",
"0.55765384",
"0.55757993",
"0.5573277",
"0.5567083",
"0.55525327",
"0.5551684",
"0.55458647",
"0.5540656",
"0.55157864",
"0.55157864",
"0.55133253",
"0.55077463",
"0.55045485",
"0.5497008",
"0.5497008",
"0.5497008",
"0.5497008",
"0.5497008",
"0.5497008",
"0.54964906",
"0.54950976",
"0.54950976",
"0.54950976",
"0.54929996",
"0.54929996",
"0.54929996",
"0.5486935",
"0.54849017",
"0.5482975",
"0.54809713",
"0.54809713",
"0.54809713",
"0.5479746",
"0.5479746",
"0.5479215",
"0.54725564",
"0.5472417",
"0.5471709",
"0.5471709",
"0.54713273",
"0.54544085",
"0.5449346",
"0.54457456",
"0.544529",
"0.54448265",
"0.54403543",
"0.54368925",
"0.5424116",
"0.54173917",
"0.54151285",
"0.5410293",
"0.5396552",
"0.53852814",
"0.53829366",
"0.53749865",
"0.53736264",
"0.53590256",
"0.5357323",
"0.5357323",
"0.5357323",
"0.5357323",
"0.5357323",
"0.5357323",
"0.5357323",
"0.5350708",
"0.53466046",
"0.53389066",
"0.53380024",
"0.5328948",
"0.5325162",
"0.5322683",
"0.5320114",
"0.52956116",
"0.52956116",
"0.5291598",
"0.5282131",
"0.5275483"
] | 0.0 | -1 |
levelGroups will be a table where each row is a unique combination of levels from all the factors to use in a model run | @SuppressWarnings("unchecked")
public void run(Class<?> modelRunClass) throws ParseException, Exception{
ArrayList<ExperimentalGroup> experimentalGroups = new ArrayList<ExperimentalGroup>();
combinationsOfLevels(experimentalGroups);
int baseSeed = baseParams.get("Seed").valueInt;
int runID = 1;
for(ExperimentalGroup experimentalGroup : experimentalGroups){
LinkedHashMap<String, ParameterValue> runParams = new LinkedHashMap<String, ParameterValue>();
for(String key : baseParams.keySet()){
runParams.put(key, (ParameterValue)baseParams.get(key).clone());
}
for(Level level : experimentalGroup.levels){
for(ParameterValue paramValue : level.values){
runParams.remove(paramValue.parameter.name);
runParams.put(paramValue.parameter.name,paramValue);
}
}
for (int i = 0; i < this.replicates; i++) {
LinkedHashMap<String, ParameterValue> runParamsWithRep = (LinkedHashMap<String, ParameterValue>) runParams.clone();
ExperimentalGroup experimentalGroupWithRep = (ExperimentalGroup) experimentalGroup.clone();
experimentalGroupWithRep.setReplicate(i);
experimentalGroupWithRep.setRun(runID++);
Object modelRun = null;
if(baseSeed != 0){
runParamsWithRep.remove("Seed");
runParamsWithRep.put("Seed",new ParameterValue(baseParams.get("Seed").parameter, (new Integer(baseSeed * (i+1))).toString()));
}
try {
modelRun = modelRunClass.newInstance();
} catch (InstantiationException ex) {
log.error(ex);
} catch (IllegalAccessException ex) {
log.error(ex);
}
((Model)modelRun).setParameters(runParamsWithRep);
((Model)modelRun).setExperimentalGroup(experimentalGroupWithRep);
executer.execute((Runnable) modelRun);
}
}
executer.shutdown();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Group renderLevel() {\n\t\tGroup levelGroup = new Group();\n\t\tNode background = renderBackground(level);\n\t\tlevelGroup.getChildren().add(background);\n\t\tList<Sprite> textSpriteList = level.sprites().stream().filter(sprite -> sprite.isText()).collect(Collectors.toList());\n\t\ttextSpriteList.stream().forEach(textSprite -> levelGroup.getChildren().add(renderText(textSprite)));\n\t\tList<Sprite> imageSpriteList = level.sprites().stream().filter((sprite -> !sprite.isText())).collect(Collectors.toList());\n\t\timageSpriteList.stream().filter(sprite -> sprite.isActive()).forEach(sprite -> levelGroup.getChildren().add(renderSprite(sprite)));\n\t\treturn levelGroup;\n\t}",
"protected abstract Level[] getLevelSet();",
"public void setLevels(String levels) {\r\n\t\tthis.levels = levels;\r\n\t}",
"public void combinationsOfLevels(ArrayList<ExperimentalGroup> levelGroups) throws CloneNotSupportedException{\n\t\tExperimentalGroup workingGroup = new ExperimentalGroup();\n\t\tfor(int i = 0; i < this.factors.size(); i++){\n\t\t\tworkingGroup.addLevel(this.factors.get(i).levels.get(0));\n\t\t}\n\t\tcombinationsOfLevels(levelGroups,workingGroup,0);\n\t}",
"private void createAggLevels() {\n\t\t\tAoiLevel aggTableLevel\t\t= errorTable.getAoiLevel();\n\t\t\tAoiHierarchy aoiHierarchy \t= aggTableLevel.getHierarchy();\n\t\t\tAoiDimension aoiDim \t\t= getAoiDimension( aoiHierarchy );\n//\t\t\tField<Integer> aoiField \t= errorTable.getAoiField();\n\t\t\t\n//\t\t\tAggLevel aggLevel = new AggLevel( aoiDim.getHierarchy().getName() , aoiLevel.getName() , aoiField.getName() );\n//\t\t\taggLevels.add(aggLevel);\n//\t\t\t\n\t\t\t\n//\t\t\tAoiDimension aoiDim = getAoiDimension(aoiHierarchy);\n\t\t\tfor ( AoiLevel level : aoiHierarchy.getLevels() ) {\n\t\t\t\tif ( level.getRank() <= aggTableLevel.getRank() ) {\n\t\t\t\t\tField<Integer> field = errorTable.getAoiIdField( level );\n\t\t\t\t\tAggLevel aggLevel = new AggLevel(aoiDim.getHierarchy().getName(), level.getName(), field.getName());\n\t\t\t\t\taggLevels.add(aggLevel);\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"public BuildALevel(List<String> level) {\n this.level = level;\n this.map = new TreeMap<String, String>();\n // call the splitLevelDetails method\n splitLevelDetails();\n }",
"public void Setlevels(int lvl)\r\n {\r\n level = lvl;\r\n }",
"public Level[] makeLevels() {\n final int nbrLevels = 4;\n Level[] levels = new Level[nbrLevels];\n\n for (int i = 0; i < maps.length; i++) {\n try {\n levels[i] = getMapParser().parseMap(maps[i]);\n } catch (IOException e) {\n throw new PacmanConfigurationException(\n \"Unable to create level, name = \" + getLevelMap(), e);\n }\n }\n\n return levels;\n }",
"@Test\n public void levelsTest() {\n // TODO: test levels\n }",
"public void runLevels(List<LevelInformation> levels) {\n int i = 0;\n for (LevelInformation levelInfo : levels) {\n i++;\n Counter currScore = this.scoreBoard.getScoreCounter();\n GameLevel level = new GameLevel(levelInfo, this.animationRunner, this.keyboardSensor,\n this.numberOfLives, this.scoreBoard);\n\n level.initialize();\n //level has more blocks and player has more lives\n while (level.getBlockCounter().getValue() > 0 && level.getLifeCounter().getValue() > 0) {\n level.playOneTurn();\n }\n\n //no more lives\n if (this.numberOfLives.getValue() == 0) {\n addToTable();\n this.animationRunner.run(new KeyPressStoppableAnimation(this.keyboardSensor, \"space\",\n new GameOverScreen(currScore)));\n\n break;\n }\n if (i == levels.size() && level.getBlockCounter().getValue() == 0) {\n addToTable();\n this.animationRunner.run(new KeyPressStoppableAnimation(this.keyboardSensor, \"space\",\n new WinnerScreen(currScore)));\n\n break;\n }\n }\n this.animationRunner.run(new KeyPressStoppableAnimation(this.keyboardSensor, \"space\",\n new HighScoresAnimation(highScoresTable)));\n\n\n }",
"public String getLevels() {\r\n\t\treturn levels;\r\n\t}",
"private void buildGroups() {\n if(groups.size() == 1){\n Group aGroup = groups.get(0);\n for (Team team : teams) {\n aGroup.add(team);\n }\n return;\n }\n\n for (Team team : teams) {\n groups.get(getIndex()).add(team);\n }\n }",
"public LevelGroup(long id, String name, String description, List<Level> levels) {\n this.name = name;\n this.description = description;\n this.levels = levels;\n this.id = id;\n }",
"List<StepGroup> stepGroups();",
"public static void makeLevelsForTesting() {\n\t\tBuilder builder = new Builder();\n\t\tbuilder.setLevels(new ArrayList<Level>());\n\t\tfor (int i = 0; i < 15; i++) {\n\t\t\tbuilder.addNewLevel(i % 3, 12);\n\t\t\tint[] nothing = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,\n\t\t\t\t\t0, 0, 0, 0, 0 };\n\t\t\tbuilder.saveLevel(nothing);\n\t\t\tSystem.out.println(builder.getLevels());\n\t\t}\n\t\tbuilder.saveToDisc();\n\t}",
"private static List<Element> buildGroups(SegmentLibrary segmentLibrary,\n\t\t\tMap<Integer, gov.nist.healthcare.hl7tools.service.util.mock.hl7.domain.Group> map) {\n\t\tList<Element> topLevelGroup = new ArrayList<Element>();\n\t\tMap<Integer, Element> gm = new HashMap<Integer, Element>();\n\t\t// create groups map\n\t\tlog.info(\"group count=\" + map.values().size());\n\t\tfor (gov.nist.healthcare.hl7tools.service.util.mock.hl7.domain.Group g : map.values()) {\n//\t\t\tlog.info(\"group name=\" + g.getName());\n\t\t\tElement e = new Element();\n\t\t\te.setName(g.getName());\n\t\t\te.setType(g.isChoice() ? ElementType.CHOICE : ElementType.GROUP);\n\t\t\tgm.put(g.getId(), e);\n\t\t\tif (g.getName().contains(\".ROOT\"))\n\t\t\t\ttopLevelGroup.add(e);\n\t\t\tif (e.getName() == null) {\n\t\t\t\tlog.info(\"here=\" + e.toString());\n\t\t\t}\n\t\t}\n\t\t// update groups children\n\t\tfor (gov.nist.healthcare.hl7tools.service.util.mock.hl7.domain.Group g : map.values()) {\n\t\t\tList<Element> children = new ArrayList<Element>();\n\t\t\tif (g.getChildren() != null) {\n\t\t\t\t// Some messages in old versions don't have children\n\t\t\t\t// log.info(\"o loop=\" + \" gid=\" + g.getId() + \" g.name=\" +\n\t\t\t\t// g.getName() + \" size=\" + g.getChildren().size());\n\t\t\t\tfor (gov.nist.healthcare.hl7tools.service.util.mock.hl7.domain.Element ee : g.getChildren()) {\n//\t\t\t\t\tlog.info(\"ee group id=\" + ee.getGroupId());\n\t\t\t\t\t// FIXME: Temporary hack to fix the position\n\t\t\t\t\tElement tmp = updateChildren(ee, map, gm, segmentLibrary);\n\t\t\t\t\tchildren.add(tmp);\n\t\t\t\t\ttmp.setPosition(children.size());\n\t\t\t\t}\n\t\t\t}\n\t\t\tgm.get(g.getId()).setChildren(children);\n\t\t}\n\t\treturn topLevelGroup;\n\t}",
"static int[] createVisualToLogicalMap(byte[] levels) {\n int len = levels.length;\n int[] mapping = new int[len];\n\n byte lowestOddLevel = (byte)(NUMLEVELS + 1);\n byte highestLevel = 0;\n\n // initialize mapping and levels\n\n for (int i = 0; i < len; i++) {\n mapping[i] = i;\n\n byte level = levels[i];\n if (level > highestLevel) {\n highestLevel = level;\n }\n\n if ((level & 0x01) != 0 && level < lowestOddLevel) {\n lowestOddLevel = level;\n }\n }\n\n while (highestLevel >= lowestOddLevel) {\n int i = 0;\n for (;;) {\n while (i < len && levels[i] < highestLevel) {\n i++;\n }\n int begin = i++;\n\n if (begin == levels.length) {\n break; // no more runs at this level\n }\n\n while (i < len && levels[i] >= highestLevel) {\n i++;\n }\n int end = i - 1;\n\n while (begin < end) {\n int temp = mapping[begin];\n mapping[begin] = mapping[end];\n mapping[end] = temp;\n ++begin;\n --end;\n }\n }\n\n --highestLevel;\n }\n\n return mapping;\n }",
"public static String[] getLevels() {\n\t\treturn levels;\n\t}",
"public List<Level> getLevels() {\n return levels;\n }",
"public Set getGroups() { return this.groups; }",
"public final float[][] reconstructedLevelSets() {\n \tfloat[][] levelsets = new float[nobj][nx*ny*nz];\n \tfor (int n=0;n<nobj;n++) {\n \t\tfor (int xyz=0; xyz<nx*ny*nz; xyz++) {\n \t\t\tif (mgdmlabels[0][xyz]==n) levelsets[n][xyz] = -mgdmfunctions[0][xyz];\n \t\t\telse levelsets[n][xyz] = 0.0f;\n \t\t\t\n \t\t\tfor (int l=0;l<nmgdm && mgdmlabels[l][xyz]!=n;l++) {\n \t\t\t\tlevelsets[n][xyz] += mgdmfunctions[l][xyz];\n \t\t\t}\n \t\t}\n \t}\n \treturn levelsets;\n }",
"private static List<Element> buildGroups (SegmentLibrary segmentLibrary, Map<Integer, gov.nist.healthcare.hl7tools.service.util.mock.hl7.domain.Group> map) {\n\t\tList<Element> topLevelGroup = new ArrayList<Element>();\n\t\tMap<Integer, Element> gm = new HashMap<Integer, Element>();\n\t\t// create groups map\n\t\tfor(gov.nist.healthcare.hl7tools.service.util.mock.hl7.domain.Group g: map.values()) {\n\t\t\tElement e = new Element();\n\t\t\te.setName(g.getName());\n\t\t\te.setType(g.isChoice() ? ElementType.CHOICE : ElementType.GROUP);\n\t\t\tgm.put(g.getId(), e);\n\t\t\tif(g.getName().contains(\".ROOT\"))\n\t\t\t\ttopLevelGroup.add(e);\n\t\t}\n\t\t// update groups children\n\t\tfor(gov.nist.healthcare.hl7tools.service.util.mock.hl7.domain.Group g: map.values()) {\n\t\t\tList<Element> children = new ArrayList<Element>();\n\t\t\tif(g.getChildren() != null) //Some messages in old versions don't have children\n\t\t\t\tfor(gov.nist.healthcare.hl7tools.service.util.mock.hl7.domain.Element ee: g.getChildren()) {\n\t\t\t\t\t//FIXME: Temporary hack to fix the position\n\t\t\t\t\tElement tmp = updateChildren(ee, map, gm, segmentLibrary);\n\t\t\t\t\tchildren.add( tmp );\n\t\t\t\t\ttmp.setPosition( children.size() );\n\t\t\t\t}\n\t\t\tgm.get(g.getId()).setChildren(children);\n\t\t}\n\t\treturn topLevelGroup;\n\t}",
"byte[] getLevels() {\n return levels;\n }",
"public Kabasuji(ArrayList<Level> level){\n\t\tthis.levels = level;\n\t\t@SuppressWarnings(\"unused\")\n\t\tLevelSelection levelSec = new LevelSelection(level);\n\t}",
"private void splitLevels() {\n\t\tint first = 0;\n\t\tfor(int i = 1; i<allCoords.size(); i++) {\n\t\t\tif (allCoords.get(i).z != allCoords.get(i-1).z) {\n\t\t\t\tfor(int j=first; j<i; j++) {\n\t\t\t\t\tcurrentLevel.add(allCoords.get(j));\n\t\t\t\t}\n\t\t\t\tsplitIntoRoots(); // automatically splits the cross section into roots\n\t\t\t\tcurrentLevel.clear();\n\t\t\t\tfirst = i;\n\t\t\t}\n\t\t}\n\t}",
"public static Level[] createTestLevel(){\n\t\tLevel[] testLevels = new Level[16];\n\t\tint[] squareNum = new int[144];\n\t\n\t\tColor[] cl = new Color[144];\n\t\t\n\t\t\n\n\t\t\n\t\tfor (int i=0;i<144;i++){\n\t\t\tsquareNum[i] =0;\n\t\t\tcl[i]=null;\n\t\t}\n\t\tint count18=0;\n\t\tfor (int i=1;i<4;i++){\n\t\t\tfor (int j=1;j<7;j++){\n\t\t\t\tsquareNum[count18] =j;\n\t\t\t\tif (i==1){\n\t\t\t\t\tcl[count18]=Color.RED;\n\t\t\t\t}\n\t\t\t\telse if (i==2){\n\t\t\t\t\tcl[count18]=Color.YELLOW;\n\t\t\t\t}\n\t\t\t\telse if (i==3){\n\t\t\t\t\tcl[count18]=Color.GREEN;\n\t\t\t\t}\n\t\t\t\tcount18=count18+5;\n\t\t\t}\n\t\t}\n\n\n\t\tSquare bullPenSquare1[] = new Square[6]; \n\t\tbullPenSquare1[0] = new Square(1,3);\n\t\tbullPenSquare1[1] = new Square(0,1);\n\t\tbullPenSquare1[2] = new Square(0,2);\n\t\tbullPenSquare1[3] = new Square(0,3);\n\t\tbullPenSquare1[4] = new Square(0,4);\n\t\tbullPenSquare1[5] = new Square(0,5);\t\t\n\t\t\n\t\tSquare bullPenSquare2[] = new Square[6]; \n\t\tbullPenSquare2[0] = new Square(0,0);\n\t\tbullPenSquare2[1] = new Square(1,0);\n\t\tbullPenSquare2[2] = new Square(2,0);\n\t\tbullPenSquare2[3] = new Square(2,1);\n\t\tbullPenSquare2[4] = new Square(2,2);\n\t\tbullPenSquare2[5] = new Square(1,2);\t\t\n\n\t\tSquare bullPenSquare3[] = new Square[6]; \n\t\tbullPenSquare3[0] = new Square(1,1);\n\t\tbullPenSquare3[1] = new Square(0,1);\n\t\tbullPenSquare3[2] = new Square(0,2);\n\t\tbullPenSquare3[3] = new Square(0,3);\n\t\tbullPenSquare3[4] = new Square(0,4);\n\t\tbullPenSquare3[5] = new Square(0,5);\t\t\n\t\t\n\t\tSquare bullPenSquare4[] = new Square[6]; \n\t\tbullPenSquare4[0] = new Square(1,1);\n\t\tbullPenSquare4[1] = new Square(2,1);\n\t\tbullPenSquare4[2] = new Square(3,1);\n\t\tbullPenSquare4[3] = new Square(3,2);\n\t\tbullPenSquare4[4] = new Square(3,3);\n\t\tbullPenSquare4[5] = new Square(3,4);\t\t\n\n\t\tSquare bullPenSquare5[] = new Square[6]; \n\t\tbullPenSquare5[0] = new Square(0,2);\n\t\tbullPenSquare5[1] = new Square(1,2);\n\t\tbullPenSquare5[2] = new Square(2,2);\n\t\tbullPenSquare5[3] = new Square(3,2);\n\t\tbullPenSquare5[4] = new Square(4,2);\n\t\tbullPenSquare5[5] = new Square(5,2);\t\n\t\t\n\t\tSquare bullPenSquare6[] = new Square[6]; \n\t\tbullPenSquare6[0] = new Square(0,0);\n\t\tbullPenSquare6[1] = new Square(0,1);\n\t\tbullPenSquare6[2] = new Square(0,2);\n\t\tbullPenSquare6[3] = new Square(0,3);\n\t\tbullPenSquare6[4] = new Square(0,4);\n\t\tbullPenSquare6[5] = new Square(0,5);\t\n\t\t\n\t\tPiece bullPenPiece= new Piece(0,0,bullPenSquare1,bullPenSquare1[0],2);\n\t\tbullPenPiece.setColor(new Color(0,0,0));\n\n\n\t\tArrayList<Piece> bullPenPieceArray=new ArrayList<Piece>();\n\t\tbullPenPieceArray.add(new Piece(0,0,bullPenSquare1,bullPenSquare1[0],2));\n\t\tbullPenPieceArray.get(0).setColor(Color.BLUE);\n\t\tbullPenPieceArray.add(new Piece(0,0,bullPenSquare2,bullPenSquare2[0],2));\n\t\tbullPenPieceArray.get(1).setColor(Color.GREEN);\n\t\tbullPenPieceArray.add(new Piece(0,0,bullPenSquare3,bullPenSquare3[0],2));\n\t\tbullPenPieceArray.get(2).setColor(Color.YELLOW);\n\t\tbullPenPieceArray.add(new Piece(0,0,bullPenSquare4,bullPenSquare4[0],2));\n\t\tbullPenPieceArray.get(3).setColor(Color.ORANGE);\n\t\tbullPenPieceArray.add(new Piece(0,0,bullPenSquare5,bullPenSquare5[0],2));\n\t\tbullPenPieceArray.get(4).setColor(Color.RED);\n\t\tbullPenPieceArray.add(new Piece(0,0,bullPenSquare6,bullPenSquare6[0],2));\n\t\tbullPenPieceArray.get(5).setColor(Color.PINK);\n\n\n\t\tBullpen bp = new Bullpen(bullPenPieceArray);\n\t\t//Bullpen bp = new Bullpen();\n\n\n\n\t\tSquare[] boardSquare = new Square[144]; \n\t\tfor (int i1=0;i1<12;i1++){\n\t\t\tfor (int j=0;j<12;j++){\n\n\t\t\t\tboardSquare[i1*12+j] = new Square(i1,j);\n\t\t\t}\n\t\t}\n\n\t\tSquare hitSquares[] = new Square[6]; \n\t\thitSquares[0] = new Square(6,4);\n\t\thitSquares[1] = new Square(5,2);\n\t\thitSquares[2] = new Square(5,3);\n\t\thitSquares[3] = new Square(5,4);\n\t\thitSquares[4] = new Square(5,5);\n\t\thitSquares[5] = new Square(5,6);\t\n\n\t\tHint hints = new Hint(hitSquares);\n\n\t\tBoard testBoard = new Board(boardSquare);\n\t\ttestBoard.sethint(hints);\n\t\t\n\t\t////// add remove test\n\t\t//bullPenPiece.setColor(Color.PINK);\n\t\t//bp.removepiece(bullPenPieceArray.get(5));\n\t\t//testBoard.addpiece(bullPenPiece);\n\t\t///test over\n\t\t\n\t\tfor (int i=0;i<15;i++){\n\t\t\tif (i%3==0){\n\t\t\t\ttestLevels[i] = new PuzzleLevel(i,GetLevelTpye(i%3),testBoard,bp,20);\n\t\t\t\ttestLevels[i].updateLevelStar(new Achievement(new Random().nextInt(3) + 1));\n\t\t\t}\n\t\t\telse if (i%3==1){\n\t\t\t\ttestLevels[i] = new LightningLevel(i,GetLevelTpye(i%3),testBoard,bp,30);\n\t\t\t\ttestLevels[i].updateLevelStar(new Achievement(new Random().nextInt(3) + 1));\n\t\t\t}\n\t\t\telse {\n\t\t\t\ttestLevels[i] = new ReleaseLevel(i,GetLevelTpye(i%3),testBoard,bp,squareNum,cl);\n\t\t\t\ttestLevels[i].updateLevelStar(new Achievement(new Random().nextInt(3) + 1));\n\t\t\t}\n\n\t\t}\n\t\ttestLevels[13].updateLevelStar(new Achievement(0));\n\t\ttestLevels[14].updateLevelStar(new Achievement(-1));\n\n\t\t\n\t\t\n\t\t\n\t\t//---------------------------------------------- \n\t\tint[] sixNum = new int[36];\n\t\tColor[] sixcolor = new Color[36];\n\t\tfor (int i=0;i<36;i++){\n\t\t\tsixNum[i] =0;\n\t\t\tsixcolor[i]=null;\n\t\t}\n\t\tint count1=0;\n\t\tfor (int i=1;i<4;i++){\n\t\t\tfor (int j=1;j<7;j++){\n\t\t\t\tsquareNum[count1] =j;\n\t\t\t\tif (i==1){\n\t\t\t\t\tcl[count1]=Color.RED;\n\t\t\t\t}\n\t\t\t\telse if (i==2){\n\t\t\t\t\tcl[count1]=Color.YELLOW;\n\t\t\t\t}\n\t\t\t\telse if (i==3){\n\t\t\t\t\tcl[count1]=Color.GREEN;\n\t\t\t\t}\n\t\t\t\tcount1=count1+1;\n\t\t\t}\n\t\t}\n\t\tSquare[] sixBoardSquare = new Square[36]; \n\t\tfor (int i1=0;i1<6;i1++){\n\t\t\tfor (int j=0;j<6;j++){\n\n\t\t\t\tsixBoardSquare[i1*6+j] = new Square(i1,j);\n\t\t\t}\n\t\t}\n\t\tSquare sixhint[] = new Square[6]; \n\t\tsixhint[0] = new Square(0,0);\n\t\tsixhint[1] = new Square(0,1);\n\t\tsixhint[2] = new Square(0,2);\n\t\tsixhint[3] = new Square(0,3);\n\t\tsixhint[4] = new Square(0,4);\n\t\tsixhint[5] = new Square(0,5);\t\n\n\t\tHint sixhints = new Hint(sixhint);\n\n\t\tBoard sixBoard = new Board(sixBoardSquare);\n\t\tsixBoard.sethint(sixhints);\n\t\t\n\t\ttestLevels[15] = new ReleaseLevel(15,GetLevelTpye(14%3),sixBoard,bp,sixNum,sixcolor);\n\t\ttestLevels[15].updateLevelStar(new Achievement(1));\n\t\t//--------------------------------------------\n\t\t\n\t\treturn testLevels;\n\t\t/*\n\t\t\tpublic Level(int LevelNumber, String LevelType, Board b, Bullpen p){\n\t\t\t\tthis.LevelNumber = LevelNumber;\n\t\t\t\tthis.LevelType = LevelType;\n\t\t\t\tthis.b = b;\n\t\t\t\tthis.p = p;\n\t\t\t}\n\n\t\t */\n\t}",
"public static Level[] createPhaseTwoLevel(){\n\t\tLevel[] testLevels = new Level[1];\n\t\t\n\t\tSquare Level1Piece1[] = new Square[6]; \n\t\tLevel1Piece1[0] = new Square(0,0);\n\t\tLevel1Piece1[1] = new Square(1,0);\n\t\tLevel1Piece1[2] = new Square(2,0);\n\t\tLevel1Piece1[3] = new Square(3,0);\n\t\tLevel1Piece1[4] = new Square(4,0);\n\t\tLevel1Piece1[5] = new Square(5,0);\t\t\n\t\t\n\t\tSquare Level1Piece2[] = new Square[6]; \n\t\tLevel1Piece2[0] = new Square(0,1);\n\t\tLevel1Piece2[1] = new Square(0,0);\n\t\tLevel1Piece2[2] = new Square(1,0);\n\t\tLevel1Piece2[3] = new Square(2,0);\n\t\tLevel1Piece2[4] = new Square(3,0);\n\t\tLevel1Piece2[5] = new Square(4,0);\t\t\n\t\t\n\t\tSquare Level1Piece3[] = new Square[6]; \n\t\tLevel1Piece3[0] = new Square(0,0);\n\t\tLevel1Piece3[1] = new Square(0,1);\n\t\tLevel1Piece3[2] = new Square(0,2);\n\t\tLevel1Piece3[3] = new Square(1,0);\n\t\tLevel1Piece3[4] = new Square(1,1);\n\t\tLevel1Piece3[5] = new Square(1,2);\t\t\n\t\t\n\t\tSquare Level1Piece4[] = new Square[6]; \n\t\tLevel1Piece4[0] = new Square(0,0);\n\t\tLevel1Piece4[1] = new Square(1,0);\n\t\tLevel1Piece4[2] = new Square(1,1);\n\t\tLevel1Piece4[3] = new Square(1,2);\n\t\tLevel1Piece4[4] = new Square(1,3);\n\t\tLevel1Piece4[5] = new Square(2,3);\n\t\t\n\t\tSquare Level1Piece5[] = new Square[6]; \n\t\tLevel1Piece5[0] = new Square(2,0);\n\t\tLevel1Piece5[1] = new Square(2,1);\n\t\tLevel1Piece5[2] = new Square(1,1);\n\t\tLevel1Piece5[3] = new Square(0,1);\n\t\tLevel1Piece5[4] = new Square(0,2);\n\t\tLevel1Piece5[5] = new Square(1,2);\t\n\t\t\n\t\tSquare Level1Piece6[] = new Square[6]; \n\t\tLevel1Piece6[0] = new Square(2,0);\n\t\tLevel1Piece6[1] = new Square(2,1);\n\t\tLevel1Piece6[2] = new Square(1,1);\n\t\tLevel1Piece6[3] = new Square(0,1);\n\t\tLevel1Piece6[4] = new Square(1,2);\n\t\tLevel1Piece6[5] = new Square(2,2);\t\n\t\t\n\t\tArrayList<Piece> bullPenPieceArray=new ArrayList<Piece>();\n\t\tbullPenPieceArray.add(new Piece(0,0,Level1Piece1,Level1Piece1[0],2));\n\t\tbullPenPieceArray.get(0).setColor(Color.BLUE);\n\t\tbullPenPieceArray.add(new Piece(0,0,Level1Piece2,Level1Piece2[0],2));\n\t\tbullPenPieceArray.get(1).setColor(Color.GREEN);\n\t\tbullPenPieceArray.add(new Piece(0,0,Level1Piece3,Level1Piece3[0],2));\n\t\tbullPenPieceArray.get(2).setColor(Color.YELLOW);\n\t\tbullPenPieceArray.add(new Piece(0,0,Level1Piece4,Level1Piece4[0],2));\n\t\tbullPenPieceArray.get(3).setColor(Color.ORANGE);\n\t\tbullPenPieceArray.add(new Piece(0,0,Level1Piece5,Level1Piece5[0],2));\n\t\tbullPenPieceArray.get(4).setColor(Color.RED);\n\t\tbullPenPieceArray.add(new Piece(0,0,Level1Piece6,Level1Piece6[0],2));\n\t\tbullPenPieceArray.get(5).setColor(Color.PINK);\n\t\tBullpen bp = new Bullpen(bullPenPieceArray);\n\t\t\n\t\t\n\t\tSquare[] sq = new Square[36]; \n\t\tfor (int i1=0;i1<6;i1++){\n\t\t\tfor (int j=0;j<6;j++){\n\t\t\t\tsq[i1*6+j] = new Square(i1,j);\n\t\t\t}\n\t\t}\n\t\tSquare hitSquares[] = new Square[6]; \n\t\thitSquares[0] = new Square(0,0);\n\t\thitSquares[1] = new Square(1,0);\n\t\thitSquares[2] = new Square(2,0);\n\t\thitSquares[3] = new Square(3,0);\n\t\thitSquares[4] = new Square(4,0);\n\t\thitSquares[5] = new Square(5,0);\t\n\t\tHint hints = new Hint(hitSquares);\n\t\tBoard bd = new Board(sq);\n\t\tbd.sethint(hints);\n\t\t\n\t\ttestLevels[0] = new PuzzleLevel(0,GetLevelTpye(0%3),bd,bp,8);\n\t\ttestLevels[0].updateLevelStar(new Achievement(0));\n\t\t\n\t\treturn testLevels;\n\t}",
"public void setLevel(int level) { \r\n\t\tthis.level = level; \r\n\t}",
"@Test\n public void testLevelToString() {\n for (PdfaFlavour.Level level : PdfaFlavour.Level.values()) {\n System.out.println(level.toString());\n }\n }",
"static int[] LevelGen() {\t\t\n\t\tSystem.out.println(\"Dungeon size integer: \" + dungeonsize);\n\t\tint lvldata[];\t\t\n\t\tint enemychance;\n\t\tint spawnthreshold = 70;\n\t\tint eventtype;\n\t\tlvldata = new int[dungeonsize];\t\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"Enemy spawn threshold: \" + spawnthreshold);\n\t\tSystem.out.println();\n\t\t\n\t\tfor(int i = 0; i < dungeonsize; i++) {\n\t\t\tlvldata[i] = (int) ((Math.random() * 4) + 1);\t// Sets the dungeon type\n\t\t\tlvldata[i] *= 100;\t// Adjusts the value\n\t\t\tenemychance = (int) (Math.random() * 101);\n\t\t\tlvldata[i] += (int) (Math.random() * 6);\n\t\t\t\n\t\t\tif (enemychance > 40) {\n\t\t\t\tlvldata[i] += 10;\n\t\t\t}\n\t\t\tif (enemychance > 60) {\n\t\t\t\tlvldata[i] += 20;\n\t\t\t}\n\t\t\tif (enemychance > 90) {\n\t\t\t\tlvldata[i] += 30;\n\t\t\t}\n\t\t\tif (Engine.devmode == true) {\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"--Loop \" + (i + 1) + \"--\");\n\t\t\t\tSystem.out.print(\"Leveldata: \" + lvldata[i] +\", \");\t\t\t\n\t\t\t\tSystem.out.print(\"Enemychance: \" + enemychance);\n\t\t\t\tSystem.out.print(\", Roomtype: \" + lvldata[i] / 100);\n\t\t\t\tSystem.out.print(\", Enemylocation: \" + (lvldata[i]/10) % 10);\n\t\t\t\tSystem.out.print(\", Eventtype: \" + (lvldata[i] % 100) % 10);\n\t\t\t\tSystem.out.println(\"\tLevelGen cycle \" + i + \" passed\");\n\t\t\t}\n\t\t}\n\t\tlvldata[0] = 000;\t// Sets the first and the last as hubs\n\t\tlvldata[(dungeonsize-1)] = 000;\t\t\n\t\treturn lvldata;\n\t}",
"public void setLevel(String level);",
"void createNewLevel(int level);",
"public void setLevel(int level)\r\n {\r\n\tthis.level = level;\r\n }",
"message.Figure.FigureData.FigureLevelTable getLevelTableList(int index);",
"private void updateGroup(String newGroupName, int level) {\r\n Equals levelFilter = new Equals(fieldName[level], previousNodeValue);\r\n CoeusVector cvFilteredData = (CoeusVector)cvHierarchyData.filter(levelFilter);\r\n if(cvFilteredData != null && cvFilteredData.size()>0) {\r\n for (int index=0; index < cvFilteredData.size(); index++) {\r\n sponsorHierarchyBean = (SponsorHierarchyBean)cvFilteredData.get(index);\r\n sponsorHierarchyBean.setAcType(TypeConstants.UPDATE_RECORD);\r\n switch(level) {\r\n case 1:\r\n sponsorHierarchyBean.setLevelOne(newGroupName);\r\n break;\r\n case 2:\r\n sponsorHierarchyBean.setLevelTwo(newGroupName);\r\n break;\r\n case 3:\r\n sponsorHierarchyBean.setLevelThree(newGroupName);\r\n break;\r\n case 4:\r\n sponsorHierarchyBean.setLevelFour(newGroupName);\r\n break;\r\n case 5:\r\n sponsorHierarchyBean.setLevelFive(newGroupName);\r\n break;\r\n case 6:\r\n sponsorHierarchyBean.setLevelSix(newGroupName);\r\n break;\r\n case 7:\r\n sponsorHierarchyBean.setLevelSeven(newGroupName);\r\n break;\r\n case 8:\r\n sponsorHierarchyBean.setLevelEight(newGroupName);\r\n break;\r\n case 9:\r\n sponsorHierarchyBean.setLevelNine(newGroupName);\r\n break;\r\n case 10:\r\n sponsorHierarchyBean.setLevelTen(newGroupName);\r\n break;\r\n }\r\n }\r\n }\r\n }",
"@Select(\"select id,item from dicts where id in (23,24,25,26,27)\")\n\tList<Dict> findLevels();",
"public RiskLevelSelectionModel() {\n\n // get the risk levels\n Set<RiskLevel> riskLevelSet = AgilePlanningObjectFactory.getStoryService().findAllRiskLevel();\n \n // put the risk levels in a list\n riskLevels = new ArrayList<RiskLevel>(riskLevelSet);\n \n }",
"public void runLevels() {\n int levelnum = 1;\n double speed = 1;\n while (true) {\n\n GameLevel level = new GameLevel(new Level(levelnum, speed),\n this.keyboardSensor, this.animationRunner, this.blocks,\n this.score, this.numLives);\n this.frameRate = level.getFrameRate();\n\n level.initialize();\n\n while (this.blocks.getValue() > 0 && this.numLives.getValue() > 0) {\n level.playOneTurn(frameRate);\n if (this.blocks.getValue() == 0) {\n\n break;\n }\n\n this.numLives.decrease(1);\n }\n levelnum++;\n speed += 0.5;\n\n if (this.numLives.getValue() <= 0) {\n break;\n }\n\n }\n\n this.animationRunner.run(new KeyPressStoppableAnimation(animationRunner.getGui().getKeyboardSensor(),\n KeyboardSensor.SPACE_KEY, new EndScreen(score.getValue(), false)), this.frameRate);\n\n showScore();\n\n score = new Counter(0);\n numLives = new Counter(numberLives);\n blocks = new Counter(0);\n\n }",
"public void setLevel(String level){\n\t\tthis.level = level;\n\t}",
"protected void setLevel(int level){\r\n this.level = level;\r\n }",
"public void setLevel(int level) {\n this.level = level;\n }",
"public void setLevel(int level) {\n this.level = level;\n }",
"public void runLevels(List<LevelInformation> levels) {\n\n for (LevelInformation levelInfo : levels) {\n\n Counter blocks = new Counter();\n GameLevel level = new GameLevel(levelInfo, this.keyboardSensor, this.animationRunner, this.lives,\n this.score, blocks);\n level.initialize();\n\n // play the same level over and over again as long as the player still has lives left\n while (this.lives.getValue() > 0) {\n level.playOneTurn();\n\n // if no blocks are left - move to the next level\n if (blocks.getValue() == 0) {\n // if all blocks are dead by now, add 100 to the score\n this.score.increase(LEVEL_COMPLETE_SCORE);\n break;\n } else {\n // subtract 1 life\n this.lives.decrease(1);\n\n // if no more lives are left, the game's over\n if (this.lives.getValue() == 0) {\n break;\n }\n }\n }\n\n // if no more lives are left, the game's over\n if (this.lives.getValue() == 0) {\n break;\n }\n }\n\n // ask the user for his name if his score is going to be on the highscore table\n if (this.highscore.isHighScore(this.score.getValue())) {\n DialogManager dialog = this.animationRunner.gui().getDialogManager();\n String name = dialog.showQuestionDialog(\"Name\", \"What is your name?\", \"\").trim();\n\n // if no name was entered\n if (name.equals(\"uninitializedValue\") || name.isEmpty()) {\n name = \"Anonymous\";\n }\n\n // remove commas\n if (name.contains(\",\")) {\n name = name.replace(\",\", \"\");\n }\n\n // add the record to the list\n this.highscore.add(new ScoreInfo(name.trim(), this.score.getValue()));\n\n try {\n // save the data\n this.highscore.save();\n } catch (IOException ioe) {\n System.err.println(ioe.getMessage());\n System.exit(-1);\n }\n }\n\n // show end screen - win or lose\n this.animationRunner.run(new KeyPressStoppableAnimation(\n this.keyboardSensor, \"space\", new EndScreen(this.lives, this.score)));\n // show highscores table\n this.animationRunner.run(new KeyPressStoppableAnimation(\n this.keyboardSensor, \"space\", new HighScoresAnimation(this.highscore)));\n\n // when the game ends reset counters\n this.score = new Counter();\n this.lives = new Counter(Ass7Game.LIVES);\n }",
"public void setLevel(Integer level) {\n this.level = level;\n }",
"public void setLevel(Integer level) {\n this.level = level;\n }",
"public void setLevel(Integer level) {\n this.level = level;\n }",
"public void setLevel(Integer level) {\n this.level = level;\n }",
"public void setLevel(Integer level) {\n this.level = level;\n }",
"public void setLevel(String level) {\n this.level = level;\n }",
"public void setLevel(String level) {\n this.level = level;\n }",
"public void setLevel(int level){\n\t\tthis.level = level;\n\t}",
"private void generateLevel() {\n\t\tgenerateBorder();\n\t\tfor (int y = 1; y < height - 1; y++) {\n\t\t\tfor (int x = 1; x < height - 1; x++) {\n\t\t\t\tif (random.nextInt(2) == 1) {\n\t\t\t\t\ttiles[x + y * width] = new Tile(Sprite.getGrass(), false, x, y);\n\t\t\t\t\trandForest(x, y);\n\t\t\t\t} else {\n\t\t\t\t\ttiles[x + y * width] = new Tile(Sprite.getDirt(), false, x, y);\n\t\t\t\t\trandOre(x, y);\n\t\t\t\t}\n\t\t\t\tif (x == 4 && y == 4) {\n\t\t\t\t\ttiles[x + y * width] = new Tile(Sprite.getGrass(), false, x, y);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}",
"public double[][] getLevelSet() {\r\n\t\treturn _levelSet;\r\n\t}",
"public static ArrayList<Level> createLevels(Context context) {\n\n //Create an array list to store the levels\n ArrayList<Level> levelsArrayList = new ArrayList<>();\n\n //Initialize our level string resources\n String[] levelNameArray = context.getResources().getStringArray(R.array.level_name);\n String[] levelEarningsArray = context.getResources().getStringArray(R.array.level_earnings);\n String[] levelRequiredToUnlockArray = context.getResources().getStringArray(R.array.required_to_unlock_level);\n int[] levelScoreNeededToUnlock = context.getResources().getIntArray(R.array.score_required_to_unlock);\n\n //Failed question icons\n TypedArray failedQuestionIconsArray = context.getResources().obtainTypedArray(R.array.failed_question_icon);\n\n\n //Store the number of levels into numLevels variable\n int numLevels = levelNameArray.length;\n //Create levels\n for (int i = 0; i < numLevels; i++) {\n levelsArrayList.add(new Level(levelNameArray[i], levelEarningsArray[i], levelRequiredToUnlockArray[i], levelScoreNeededToUnlock[i], extractQuestions(context, levelNameArray[i].toLowerCase()), failedQuestionIconsArray.getResourceId(i, R.drawable.ic_block)));\n }\n\n //Always recycle your TypedArrays\n failedQuestionIconsArray.recycle();\n\n //Return an ArrayList with levels\n return levelsArrayList;\n }",
"public static List<DownSamplingLevels> getLevels() {\n return levels;\n }",
"private void addLevels() {\r\n\t\tlevel1 = new Level();\r\n\t\tadd(level1, LEVEL_OFFSET, getHeight() - FIRST_LEVEL_VERTICAL_OFFSET);\r\n\t\t\r\n\t\tlevel2 = new Level();\r\n\t\tadd(level2, LEVEL_OFFSET, (level1.getY() * (2/3.0)) - level2.getHeight() / 2.0);\r\n\t\t\r\n\t\tlevel3 = new Level();\r\n\t\tadd(level3, LEVEL_OFFSET, (level1.getY() * (1/3.0)) - level3.getHeight() / 2.0);\r\n\t\t\r\n\t\tladder1 = new Ladder();\r\n\t\tadd(ladder1, getWidth() - ladder1.getWidth() * 1.5, level2.getY());\r\n\t\t\r\n\t\tladder2 = new Ladder();\r\n\t\tadd(ladder2, ladder2.getWidth() / 2.0, level3.getY());\r\n\t}",
"public Map<SkillType, Integer> getLevels() {\n return levels;\n }",
"@Override\n public int getGroupCount() {\n return Grade.length;\n }",
"private void createGroupsForBranchPoints(SignalGroupsData signalGroups) {\n Id<SignalSystem> idSystem2 = Id.create(\"signalSystem2\", SignalSystem.class);\r\n\t\tSignalGroupData groupLeftTurn12 = signalGroups.getFactory().createSignalGroupData(idSystem2, \r\n\t\t\t\tId.create(\"signalLeftTurn1_2\", SignalGroup.class));\r\n\t\tgroupLeftTurn12.addSignalId(Id.create(\"signal1_2.2_3\", Signal.class));\r\n\t\tsignalGroups.addSignalGroupData(groupLeftTurn12);\r\n\r\n\t\tSignalGroupData groupLeftTurn72 = signalGroups.getFactory().createSignalGroupData(idSystem2, \r\n\t\t\t\tId.create(\"signalLeftTurn7_2\", SignalGroup.class));\r\n\t\tgroupLeftTurn72.addSignalId(Id.create(\"signal7_2.2_1\", Signal.class));\r\n\t\tsignalGroups.addSignalGroupData(groupLeftTurn72);\r\n\t\t\r\n\t\tSignalGroupData groupRightTurns1232 = signalGroups.getFactory().createSignalGroupData(idSystem2, \r\n\t\t\t\tId.create(\"signalRightTurns2\", SignalGroup.class));\r\n\t\tgroupRightTurns1232.addSignalId(Id.create(\"signal1_2.2_7\", Signal.class));\r\n\t\tgroupRightTurns1232.addSignalId(Id.create(\"signal3_2.2_1\", Signal.class));\r\n\t\tsignalGroups.addSignalGroupData(groupRightTurns1232);\r\n\t\t\r\n\t\t// create groups for system 5\r\n\t\tId<SignalSystem> idSystem5 = Id.create(\"signalSystem5\", SignalSystem.class);\r\n\t\tSignalGroupData groupLeftTurn65 = signalGroups.getFactory().createSignalGroupData(idSystem5, \r\n\t\t\t\tId.create(\"signalLeftTurn6_5\", SignalGroup.class));\r\n\t\tgroupLeftTurn65.addSignalId(Id.create(\"signal6_5.5_8\", Signal.class));\r\n\t\tsignalGroups.addSignalGroupData(groupLeftTurn65);\r\n\r\n\t\tSignalGroupData groupLeftTurn45 = signalGroups.getFactory().createSignalGroupData(idSystem5, \r\n\t\t\t\tId.create(\"signalLeftTurn4_5\", SignalGroup.class));\r\n\t\tgroupLeftTurn45.addSignalId(Id.create(\"signal4_5.5_6\", Signal.class));\r\n\t\tsignalGroups.addSignalGroupData(groupLeftTurn45);\r\n\t\t\r\n\t\tSignalGroupData groupRightTurns6585 = signalGroups.getFactory().createSignalGroupData(idSystem5, \r\n\t\t\t\tId.create(\"signalRightTurns5\", SignalGroup.class));\r\n\t\tgroupRightTurns6585.addSignalId(Id.create(\"signal6_5.5_4\", Signal.class));\r\n\t\tgroupRightTurns6585.addSignalId(Id.create(\"signal8_5.5_6\", Signal.class));\r\n\t\tsignalGroups.addSignalGroupData(groupRightTurns6585);\r\n\t\t\r\n\t\tif (TtCreateParallelNetworkAndLanes.checkNetworkForSecondODPair(this.scenario.getNetwork())) {\r\n\t\t\t// create groups for system 10\r\n\t\t\tId<SignalSystem> idSystem10 = Id.create(\"signalSystem10\", SignalSystem.class);\r\n\t\t\tSignalGroupData groupLeftTurn910 = signalGroups.getFactory().createSignalGroupData(idSystem10, \r\n\t\t\t\t\tId.create(\"signalLeftTurn9_10\", SignalGroup.class));\r\n\t\t\tgroupLeftTurn910.addSignalId(Id.create(\"signal9_10.10_4\", Signal.class));\r\n\t\t\tsignalGroups.addSignalGroupData(groupLeftTurn910);\r\n\r\n\t\t\tSignalGroupData groupLeftTurn310 = signalGroups.getFactory().createSignalGroupData(idSystem10, \r\n\t\t\t\t\tId.create(\"signalLeftTurn3_10\", SignalGroup.class));\r\n\t\t\tgroupLeftTurn310.addSignalId(Id.create(\"signal3_10.10_9\", Signal.class));\r\n\t\t\tsignalGroups.addSignalGroupData(groupLeftTurn310);\r\n\t\t\t\r\n\t\t\tSignalGroupData groupRightTurns910410 = signalGroups.getFactory().createSignalGroupData(idSystem10, \r\n\t\t\t\t\tId.create(\"signalRightTurns10\", SignalGroup.class));\r\n\t\t\tgroupRightTurns910410.addSignalId(Id.create(\"signal9_10.10_3\", Signal.class));\r\n\t\t\tgroupRightTurns910410.addSignalId(Id.create(\"signal4_10.10_9\", Signal.class));\r\n\t\t\tsignalGroups.addSignalGroupData(groupRightTurns910410);\r\n\t\t\t\r\n\t\t\t// create groups for system 11\r\n\t\t\tId<SignalSystem> idSystem11 = Id.create(\"signalSystem11\", SignalSystem.class);\r\n\t\t\tSignalGroupData groupLeftTurn1211 = signalGroups.getFactory().createSignalGroupData(idSystem11, \r\n\t\t\t\t\tId.create(\"signalLeftTurn12_11\", SignalGroup.class));\r\n\t\t\tgroupLeftTurn1211.addSignalId(Id.create(\"signal12_11.11_7\", Signal.class));\r\n\t\t\tsignalGroups.addSignalGroupData(groupLeftTurn1211);\r\n\r\n\t\t\tSignalGroupData groupLeftTurn811 = signalGroups.getFactory().createSignalGroupData(idSystem11, \r\n\t\t\t\t\tId.create(\"signalLeftTurn8_11\", SignalGroup.class));\r\n\t\t\tgroupLeftTurn811.addSignalId(Id.create(\"signal8_11.11_12\", Signal.class));\r\n\t\t\tsignalGroups.addSignalGroupData(groupLeftTurn811);\r\n\t\t\t\r\n\t\t\tSignalGroupData groupRightTurns1211711 = signalGroups.getFactory().createSignalGroupData(idSystem11, \r\n\t\t\t\t\tId.create(\"signalRightTurns11\", SignalGroup.class));\r\n\t\t\tgroupRightTurns1211711.addSignalId(Id.create(\"signal12_11.11_8\", Signal.class));\r\n\t\t\tgroupRightTurns1211711.addSignalId(Id.create(\"signal7_11.11_12\", Signal.class));\r\n\t\t\tsignalGroups.addSignalGroupData(groupRightTurns1211711);\r\n\t\t}\r\n\t}",
"public void addLevel()\r\n {\r\n tables.addFirst( new HashMap<String,T>() );\r\n counts.addFirst( 0 );\r\n }",
"public void setLevel(int level) {\n\t\tthis.level = level;\t\n\t}",
"public Collection getLevels(){\n List<String> levels = new ArrayList<>();\n File directoryPath = new File(DATA_PATH+gameName+\"/\");\n for (String s : directoryPath.list()) {\n if (isLevelFile(s)){\n levels.add(getLevelName(s));\n }\n }\n Collections.sort(levels);\n return Collections.unmodifiableList(levels);\n }",
"public GcGroupLevelExample() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"private void incrementLevels(int levels){\n this.level += levels;\n if (this.level > 10){\n this.level = 10;\n }\n }",
"public void setLevel(int level) {\r\n\t\t\r\n\t\tthis.level = level;\r\n\t\t\r\n\t}",
"protected void setLevel(int level)\n {\n this.level = level;\n }",
"private void constructLevel(int level){\n gamePanel.removeAll();\n GridLayout layout = new GridLayout(grid.length,grid[0].length);\n gamePanel.setLayout(layout);\n gamePanel.setBackground(Color.BLACK);\n gamePanel.setFocusable(true);\n gamePanel.requestFocusInWindow();\n gamePanel.updateUI();\n }",
"public void setLevel(int level) {\n \t\tthis.level = level;\n \t}",
"private String[] getLevelsFound() {\r\n String[] levelsFound = new String[levels.size()];\r\n Iterator<NetworkLevels> iterator = levels.iterator();\r\n int i = 0;\r\n while (iterator.hasNext()) {\r\n levelsFound[i++] = iterator.next().name().toLowerCase();\r\n }\r\n return levelsFound;\r\n }",
"public void setLevel(int level) {\n if(level > Constant.MAX_LEVEL){\n this.level = Constant.MAX_LEVEL;\n }else {\n this.level = level;\n }\n this.expToLevelUp = this.expValues[this.level];\n }",
"private void levelUp() {\n\t\t\n\t\tfor (ArrayList<Invader> row : enemyArray) {\n\t\t\tfor (Invader a : row) {\n\t\t\t\tif (a.getVisibility()) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tresetInvaders();\n\t\taddRow();\n\t\t\n\t\tenemyShotList.add(new Shot(0, 0, SHOT_WIDTH, SHOT_HEIGHT, 15));\n\t\tlevel++;\n\t\t\n\t\tint powerupx = (int) (Math.random()*(WIDTH-PLAYER_WIDTH));\n\t\tdouble poweruprandom = Math.random();\n\t\t\n\t\tif (poweruprandom < 0.25) {\n\t\t\tarmorPiercing.reset(powerupx);\n\t\t}\n\t\t\n\t\tif (poweruprandom >= 0.25 && poweruprandom < 0.5) {\n\t\t\texplosive.reset(powerupx);\n\t\t}\n\t}",
"private void loadLevel(int level) throws SQLException, IOException {\n\t\tString levelText = LorannDAO.chooseLevel(level);\n\t\tthis.onTheLevel = new IElement[this.getWidth()][this.getHeight()];\n\t\tString[] levelArray = levelText.split(\"\\n\");\n\t\t\n\t\tfor(int y = 0; y < height; y++) {\n\t\t\tfor(int x = 0; x < width; x++) {\n\t\t\t\tswitch(levelArray[y].toCharArray()[x]) {\n\t\t\t\t\tcase '3':\n\t\t\t\t\t\tthis.setCharacterPosition(new Point(x, y));\n\t\t\t\t\t\tthis.setOnTheLevelXY(x, y, MotionlessElementFactory.createFloor());\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase '5':\n\t\t\t\t\t\tthis.purses.add(new Purse(x, y, this));\n\t\t\t\t\t\tthis.setOnTheLevelXY(x, y, MotionlessElementFactory.createFloor());\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase '8':\n\t\t\t\t\t\tthis.energyBall = new CrystalEnergy(x,y,this);\n\t\t\t\t\t\tthis.setOnTheLevelXY(x, y, MotionlessElementFactory.createFloor());\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase '9':\n\t\t\t\t\t\tthis.monsters.add(new Monster_2(this, x, y));\n\t\t\t\t\t\tthis.setOnTheLevelXY(x, y, MotionlessElementFactory.createFloor());\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase '6':\n\t\t\t\t\t\tthis.door = new Gate(x, y, this);\n\t\t\t\t\t\tthis.setOnTheLevelXY(x, y, MotionlessElementFactory.createFloor());\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase '4':\n\t\t\t\t\t\tthis.monsters.add(new Monster_1(this, x, y));\n\t\t\t\t\t\tthis.setOnTheLevelXY(x, y, MotionlessElementFactory.createFloor());\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'A':\n\t\t\t\t\t\tthis.monsters.add(new Monster_3(this, x, y));\n\t\t\t\t\t\tthis.setOnTheLevelXY(x, y, MotionlessElementFactory.createFloor());\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'B':\n\t\t\t\t\t\tthis.monsters.add(new Monster_4(this, x, y));\n\t\t\t\t\t\tthis.setOnTheLevelXY(x, y, MotionlessElementFactory.createFloor());\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault: \n\t\t\t\t\t\tthis.setOnTheLevelXY(x, y, MotionlessElementFactory.getFromFileSymbol(levelArray[y].toCharArray()[x]));\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}",
"public void changeLevel(Level level) {\n if (Consts.TEST) {\n this.level = level;\n return;\n }\n\n try {\n level.validate();\n } catch (Exception e) {\n e.printStackTrace();\n level = this.level;\n }\n this.level = level;\n entities.clear();\n pacman.respawn(level.getRandomPacmanSpawn());\n // items spawnen\n for (int y = 0; y < level.getHeight(); y++) {\n for (int x = 0; x < level.getWidth(); x++) {\n if (level.getField(x, y) == MapModule.DOT)\n entities.add(new Dot(x, y));\n else if (level.getField(x, y) == MapModule.POWERUP)\n entities.add(new PowerUp(x, y));\n else if (level.getField(x, y) == MapModule.SPEEDUP)\n entities.add(new SpeedUp(x, y));\n else if (level.getField(x, y) == MapModule.TELEPORT)\n entities.add(new Teleporter(x, y));\n }\n }\n\n // 4 Geister im normalen Spiel, 1 Geist fuer Tests\n for (int i = 0; i < (Consts.TEST ? 1 : Consts.NUM_GHOSTS); i++) {\n Ghost g = new Ghost(i);\n g.respawn(level.getNextGhostSpawn());\n entities.add(g);\n }\n }",
"private void createLevelBoxes() {\n int totalRows = (LEVELS / LEVEL_COLUMNS_PER_SCREEN) + 1;\n \n // Calculate space between each level square\n int spaceBetweenRows = (CAMERA_HEIGHT / LEVEL_ROWS_PER_SCREEN) - LEVEL_PADDING;\n int spaceBetweenColumns = (CAMERA_WIDTH / LEVEL_COLUMNS_PER_SCREEN) - LEVEL_PADDING;\n \n //Current Level Counter\n int iLevel = 1;\n //Create the Level selectors, one row at a time.\n int boxX = LEVEL_PADDING, boxY = LEVEL_PADDING;\n for (int y = 0; y < totalRows; y++) {\n for (int x = 0; x < LEVEL_COLUMNS_PER_SCREEN; x++) {\n \n //On Touch, save the clicked level in case it's a click and not a scroll.\n final int levelToLoad = iLevel;\n \n if(iLevel >= mMaxLevelReached) {\n \t dotLevel = new Sprite(boxX, boxY, resourcesManager.level_dot_red_region, vbom) {\n @Override\n public boolean onAreaTouched(final TouchEvent pSceneTouchEvent, final float pTouchAreaLocalX, final float pTouchAreaLocalY) {\n if (levelToLoad >= mMaxLevelReached)\n iLevelClicked = -1;\n else\n iLevelClicked = levelToLoad;\n return false;\n }\n };\n }\n else {\n \tdotLevel = new Sprite(boxX, boxY, resourcesManager.level_dot_green_region, vbom) {\n @Override\n public boolean onAreaTouched(final TouchEvent pSceneTouchEvent, final float pTouchAreaLocalX, final float pTouchAreaLocalY) {\n if (levelToLoad >= mMaxLevelReached)\n iLevelClicked = -1;\n else\n iLevelClicked = levelToLoad;\n return false;\n }\n };\n }\n \n this.attachChild(dotLevel);\n \n this.attachChild(new Text(boxX, boxY - 5, resourcesManager.font, String.valueOf(iLevel), vbom));\n \n \n this.registerTouchArea(dotLevel);\n \n iLevel++;\n boxX += spaceBetweenColumns + LEVEL_PADDING;\n \n if (iLevel > LEVELS)\n break;\n }\n \n if (iLevel > LEVELS)\n break;\n \n boxY += spaceBetweenRows + LEVEL_PADDING;\n boxX = 50;\n }\n }",
"public HashMap selectLevel() {\n\n // get database and initialize hashmap\n SQLiteDatabase db = getWritableDatabase();\n HashMap<Integer, ArrayList<Integer>> levelMap = new HashMap<>();\n\n // select levels per multiplication\n for (int i = 0; i < amountMultiplications; i++) {\n\n // get cursor\n Cursor cursor = db.rawQuery(\"SELECT level FROM exercises WHERE multiplicationTable = \"\n + (i + 1), null);\n\n // make list with all levels and add list to hashmap\n ArrayList<Integer> levels = new ArrayList<>();\n try {\n while (cursor.moveToNext()) {\n levels.add(cursor.getInt(0));\n }\n levelMap.put(i + 1, levels);\n } finally {\n cursor.close();\n }\n }\n\n return levelMap;\n }",
"public static ArrayList<Integer> fetchLevels() {\r\n\r\n\t\tArrayList<Integer> levels = new ArrayList<Integer>();\r\n\r\n\t\tsqlQuery = \"SELECT DISTINCT(level) FROM flipkart_category;\";\r\n\r\n\t\ttry{\r\n\t\t\tconn=DbConnection.getConnection();\r\n\t\t\tps=conn.prepareStatement(sqlQuery);\r\n\t\t\trs=ps.executeQuery();\r\n\r\n\t\t\twhile(rs.next()){\r\n\t\t\t\tint levelTemp;\r\n\t\t\t\tlevelTemp=rs.getInt(1);\r\n\r\n\t\t\t\tlevels.add(levelTemp);\r\n\t\t\t}\r\n\t\t}catch(Exception e){\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\treturn levels;\r\n\t}",
"public void generateLevel() {\n\t\tfor (int y = 0; y < this.height; y++) {\n\t\t\tfor (int x = 0; x < this.width; x++) {\n\t\t\t\tif (x * y % 10 < 5)\n\t\t\t\t\ttiles[x + y * width] = Tile.GRASS.getId();\n\t\t\t\telse\n\t\t\t\t\ttiles[x + y * width] = Tile.STONE.getId();\n\t\t\t}\n\t\t}\n\t}",
"public synchronized void generateLevel(Game game, int levelPack, int levelNumber) {\n\t\tInputStream in = null;\n\t\tString levelCode = levelPack + \"-\" + levelNumber;\n\t\ttry {\n\t\t\tin = game.getFileIO().readAsset(\"level\" + levelCode + \".txt\");\n\t\t\tList<String> layers = readLines(in);\n\t\t\t//set world height\n\t\t\tWORLD_HEIGHT = layers.size();\n\t\t\t\n\t\t\tfor(float i = 0, y = 0.5f + layers.size() - 1; i < layers.size(); i++, y -= 1) {\n\t\t\t\tString layer = layers.get((int)i);\n\t\t\t\t\n\t\t\t\tfor(float j = 0, x = 0.5f; j < layer.length(); j++, x += 1) {\n\t\t\t\t\tif(x > tempWidth) {\n\t\t\t\t\t\ttempWidth = x + 0.5f;\n\t\t\t\t\t}\n\t\t\t\t\tchar tile = layer.charAt((int)j);\n\t\t\t\t\t\n\t\t\t\t\tif(tile == 'T') {\n\t\t\t\t\t\tRegTile regTile = new RegTile(x, y);\n\t\t\t\t\t\tregTiles.add(regTile);\n\t\t\t\t\t} else if(tile == 'L') {\n\t\t\t\t\t\tRegTile regTile = new RegTile(x, y);\n\t\t\t\t\t\tregTiles.add(regTile);\n\t\t\t\t\t\tleftXLimit = x - 0.5f;\n\t\t\t\t\t} else if(tile == 'l') {\n\t\t\t\t\t\tRegTile regTile = new RegTile(x, y);\n\t\t\t\t\t\tregTiles.add(regTile);\n\t\t\t\t\t\trightXLimit = x + 0.5f;\n\t\t\t\t\t} else if(tile == 'M') {\n\t\t\t\t\t\tRegTile regTile = new RegTile(x, y);\n\t\t\t\t\t\tregTiles.add(regTile);\n\t\t\t\t\t\tminXLimit = x - 0.5f;\n\t\t\t\t\t} else if(tile == 'U') {\n\t\t\t\t\t\tSpike upSpike = new Spike(x, y);\n\t\t\t\t\t\tupSpikes.add(upSpike);\n\t\t\t\t\t} else if(tile == 'V') {\n\t\t\t\t\t\tSpike downSpike = new Spike(x, y);\n\t\t\t\t\t\tdownSpikes.add(downSpike);\n\t\t\t\t\t} else if(tile == 'R') {\n\t\t\t\t\t\tSpike rightSpike = new Spike(x, y);\n\t\t\t\t\t\trightSpikes.add(rightSpike);\n\t\t\t\t\t} else if(tile == 'J') {\n\t\t\t\t\t\tSpike leftSpike = new Spike(x, y);\n\t\t\t\t\t\tleftSpikes.add(leftSpike);\n\t\t\t\t\t} else if(tile == 'D') {\n\t\t\t\t\t\tDiamond diamond = new Diamond(x, y);\n\t\t\t\t\t\tdiamondBlocks.add(diamond);\n\t\t\t\t\t} else if(tile == 'G') {\n\t\t\t\t\t\tGold gold = new Gold(x, y);\n\t\t\t\t\t\tgoldBlocks.add(gold);\n\t\t\t\t\t} else if(tile == 'S') {\n\t\t\t\t\t\tSilver silver = new Silver(x, y);\n\t\t\t\t\t\tsilverBlocks.add(silver);\n\t\t\t\t\t} else if(tile == 'P') {\n\t\t\t\t\t\tplayer = new Player(x, y);\n\t\t\t\t\t\tplayer.velocity.y = 1;\n\t\t\t\t\t\trespawnPoint = new Vector2(x, y);\n\t\t\t\t\t} else if(tile == 'C') {\n\t\t\t\t\t\tCheckpoint checkpoint = new Checkpoint(x, y);\n\t\t\t\t\t\tcheckpoints.add(checkpoint);\n\t\t\t\t\t} else if(tile == 'F') {\n\t\t\t\t\t\tEndingFlag eflag = new EndingFlag(x, y);\n\t\t\t\t\t\teflags.add(eflag);\n\t\t\t\t\t} else if(tile == '#') {\n\t\t\t\t\t\tworldNumberG = (int)Math.ceil(y);\n\t\t\t\t\t\tlevelNumberG = (int)Math.ceil(x);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\t\n\t\t\t\n\t\t\t//set max found width across map to permanent width for current world\n\t\t\tWORLD_WIDTH = tempWidth;\n\t\t} catch (Exception e) {\n\t\t\t\n\t\t}\n\t}",
"private String[][] generate(DefaultListModel<String> wordListModel) {\r\n\t\tString[][] level = new String[6][6];\r\n\t\t\r\n\t\tfor(int x = 0; x < 6; x++){\r\n\t\t\tfor(int y = 0; y < 6; y++){\r\n\t\t\t\tif(m.getBoard().tiles[x][y].isEnabled()){\r\n\t\t\t\t\tlevel[x][y] = \"_\";\r\n\t\t\t\t} else {\r\n\t\t\t\t\tlevel[x][y] = \"!\";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\ttry {\r\n\t\t\tString[][] levelAdded = level;\r\n\t\t\tfor(Object word : wordListModel.toArray()){\r\n\t\t\t\tString word1 = (String) word;\r\n\t\t\t\tword1 = word1.toUpperCase();\r\n\t\t\t\tif (word1.contains(\"QU\")) {\r\n\t\t\t\t\tword1 = word1.replaceAll(\"QU\", \"Q\");\r\n\t\t\t\t}\r\n\t\t\t\tlevelAdded = addWord(levelAdded, word1);\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(\"Letter could not be placed around other tile\");\r\n\t\t\tJOptionPane.showMessageDialog(builder, \"Not all of your words could be added to the board. \\nPlease shorten your word list and/or its words to make room.\");\r\n\t\t}\r\n\t\tfor (int x = 0; x < 6; x++) { \r\n\t\t\tfor (int y = 0; y < 6; y++) {\r\n\t\t\t\tif (level[x][y] == \"_\") {\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn level;\r\n\t}",
"public void setLevelSet(double[][] ls) {\r\n\t\t_levelSet = ls;\r\n\t}",
"public void setLevel(int level) {\n\t\tthis.level = level;\n\t}",
"public void setLevel(int level) {\n\t\tthis.level = level;\n\t}",
"public void setLevel(Level level) { this.currentLevel = level; }",
"public abstract Collection getGroups();",
"@Override\n\tpublic String generateLevel(GameDescription game, ElapsedCpuTimer elapsedTimer) {\n\t\tString result = \"\";\n\t\tArrayList<SpriteData> sprites = game.getAllSpriteData();\n\t\tArrayList<SpriteData> avatars = game.getAvatar();\n\t\t\n\t\t//Get a random width and random height value based on the length of game sprites\n\t\t//and it should be in between maxSize and minSize\n\t\tint width = (int)Math.max(minSize, sprites.size() * (1 + 0.25 * random.nextDouble()));\n\t\tint length = (int)Math.max(minSize, sprites.size() * (1 + 0.25 * random.nextDouble()));\n\t\twidth = (int)Math.min(width, maxSize);\n\t\tlength = (int)Math.min(length, maxSize);\n\t\t\n\t\tArrayList<Character> avatar = new ArrayList<Character>();\n\t\tArrayList<Character> choices = new ArrayList<Character>();\n\t\tfor(Map.Entry<Character, ArrayList<String>> pair:game.getLevelMapping().entrySet()){\n\t\t\tboolean avatarExists = false;\n\t\t\t//check if the avatar is found in this level mapping\n\t\t\tfor (SpriteData avatarName:avatars){\n\t\t\t\tif(pair.getValue().contains(avatarName.name)){\n\t\t\t\t\tavatarExists = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tif(!avatarExists){\n\t\t\t\t//if not avatar add to other symbols\n\t\t\t\tif(!pair.getValue().contains(\"avatar\")){\n\t\t\t\t\tchoices.add(pair.getKey());\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{\n\t\t\t\t//add the avatar symbol if it exist\n\t\t\t\tavatar.add(pair.getKey());\n\t\t\t}\n\t\t}\n\t\t\n\t\tArrayList<DataPoint> dataPoints = new ArrayList<DataPoint>();\n\n\t\t//add level borders based on static variable includeBorders\n\t\tif(includeBorders){\n\t\t\tincludeBorders = buildLayout(game, dataPoints, width, length);\n\t\t}\n\t\t\n\t\t//Add only one of all objects in the choices array\n\t\tfor(Character c:choices){\n\t\t\taddUnique(dataPoints, width, length, c);\n\t\t}\n\t\t\n\t\t//if no avatar is defined in the level mapping section use 'A' to add it\n\t\tif(avatar.size() == 0){\n\t\t\tavatar.add('A');\n\t\t}\n\t\taddUnique(dataPoints, width, length, avatar.get(random.nextInt(avatar.size())));\n\t\t\n\t\t//construct the result string from the array of datapoints\n\t\tfor(int y=0; y < length; y++){\n\t\t\tfor(int x=0; x < width; x++){\n\t\t\t\t//check if the position (x, y) is defined in the list of points\n\t\t\t\tDataPoint p = isUnique(dataPoints, x, y);\n\t\t\t\t//if yes then add the result\n\t\t\t\tif(p != null){\n\t\t\t\t\tresult += p.c;\n\n\t\t\t\t}\n\t\t\t\t//add empty space\n\t\t\t\telse if(random.nextDouble() < emptyPercentage){\n\t\t\t\t\tresult += \" \";\n\t\t\t\t}\n\t\t\t\t//add random object\n\t\t\t\telse{\n\t\t\t\t\tresult += choices.get(random.nextInt(choices.size()));\n\t\t\t\t}\n\t\t\t}\n\t\t\tresult += \"\\n\";\n\t\t}\n\t\t\n\t\treturn result;\n\t}",
"@Override\n\tpublic void setLevelNumber(int i) {\n\t\tnumLevel =i;\n\t}",
"public LevelInterface generateLevel (GamePlay playerMetrics);",
"public List<List<String>> levelsSplitter(java.io.Reader reader) throws Exception {\r\n BufferedReader bufferedReader = (BufferedReader) reader;\r\n String line;\r\n int fourChecks = 0;\r\n List<List<String>> levels = new ArrayList<>();\r\n List<String> level = new ArrayList<>();\r\n List<String> currentBlockLayOut = new ArrayList<>();\r\n boolean levelBool = false;\r\n boolean blocksBool = false;\r\n this.blocksLayOut = new ArrayList<>();\r\n try {\r\n while ((line = bufferedReader.readLine()) != null) {\r\n if (line.startsWith(\"#\") || line.startsWith(\" \")) { // empty lines and comments\r\n continue;\r\n }\r\n if (line.equals(\"START_LEVEL\")) {\r\n levelBool = true;\r\n fourChecks++;\r\n continue;\r\n }\r\n if (levelBool) {\r\n level.add(line);\r\n }\r\n if (line.equals(\"START_BLOCKS\") && !blocksBool) {\r\n blocksBool = true;\r\n fourChecks++;\r\n continue;\r\n }\r\n if (blocksBool) {\r\n currentBlockLayOut.add(line);\r\n }\r\n if (line.equals(\"END_BLOCKS\")) {\r\n blocksBool = false;\r\n blocksLayOut.add(currentBlockLayOut);\r\n fourChecks++;\r\n }\r\n if (line.equals(\"END_LEVEL\")) {\r\n levelBool = false;\r\n fourChecks++;\r\n if (fourChecks != 4) {\r\n throw new Exception(\"levels definition format is wrong!\");\r\n }\r\n fourChecks = 0;\r\n levels.add(level);\r\n level = new ArrayList<>();\r\n currentBlockLayOut = new ArrayList<>();\r\n }\r\n }\r\n } catch (Exception e) {\r\n throw new Exception(\"problems were found during reading the levels definition file\");\r\n } finally {\r\n if (bufferedReader != null) {\r\n try {\r\n bufferedReader.close();\r\n } catch (Exception e) {\r\n throw new Exception(\"problems were found while closing the levels definition file\");\r\n }\r\n }\r\n }\r\n return levels;\r\n }",
"public void extendGraph(int level) {\n\t\tmaxLevel++;\n\t\tsteps.put(maxLevel+1, steps.get(maxLevel));\n\t\tif (maxLevel == graph.countLevels()){\n\t\t\tgraph.extend();\n\t\t}\n\t\t\t\n\t\t\n\t\t/* start at highest level and move each level up until we get to insert level*/\n\t\tfor(int i = maxLevel; i > level; i--) {\n\t\t\tsteps.put(i, steps.get(i-1));\n\t\t\tfacts.put(i, facts.get(i-1));\n\t\t\tinconsistencies.put(i, inconsistencies.get(i-1));\n\t\t}\n\t\t\n\t\t/* add new sets to level */\n\t\t// Set<PlanGraphStep> newSteps = new HashSet<PlanGraphStep>();\n\t\tsteps.put(level, new HashSet<PlanGraphStep>());\n\t\tfacts.put(level, new HashSet<PlanGraphLiteral>());\n\t\tinconsistencies.put(level, new HashSet<LPGInconsistency>());\n\t\t\n\t\t/* propagate facts from previous level via no-ops\n\t\tfor (PlanGraphLiteral pgLiteral : facts.get(level-1)) {\n\t\t\taddStep(persistentSteps.get(pgLiteral), level, false);\n\t\t}*/\n\t\tfacts.get(level).addAll(facts.get(level-1));\n\t\t \n\t}",
"java.util.List<message.Figure.FigureData.FigureLevelTable> \n getLevelTableListList();",
"public void combinationsOfLevels(ArrayList<ExperimentalGroup> levelGroups, ExperimentalGroup workingGroup, int factorIndex) throws CloneNotSupportedException{\n\t\tif(factorIndex >= this.factors.size()){\n\t\t\tlevelGroups.add((ExperimentalGroup)workingGroup.clone());\n\t\t\treturn;\n\t\t}\n\t\tfor(int i = 0; i < this.factors.get(factorIndex).levels.size(); i++){\n\t\t\tworkingGroup.levels.remove(factorIndex);\n\t\t\tworkingGroup.levels.add(factorIndex,this.factors.get(factorIndex).levels.get(i));\n\t\t\tcombinationsOfLevels(levelGroups, workingGroup, factorIndex + 1);\n\t\t}\n\t}",
"private static List<Element> getXMLGroups(Model model) {\n Set<Group> groups = new TreeSet<>(Comparators.objectsById());\n groups.addAll(model.getGroups(null));\n List<Element> result = new ArrayList<>(groups.size());\n for (Group curGroup : groups) {\n Element groupElement = new Element(\"group\");\n groupElement.setAttribute(\"id\", String.valueOf(curGroup.getId()));\n groupElement.setAttribute(\"name\", curGroup.getName());\n for (TCSObjectReference<?> curRef : curGroup.getMembers()) {\n Element memberElement = new Element(\"member\");\n memberElement.setAttribute(\"name\", curRef.getName());\n groupElement.addContent(memberElement);\n }\n for (Map.Entry<String, String> curEntry\n : curGroup.getProperties().entrySet()) {\n Element propertyElement = new Element(\"property\");\n propertyElement.setAttribute(\"name\", curEntry.getKey());\n propertyElement.setAttribute(\"value\", curEntry.getValue());\n groupElement.addContent(propertyElement);\n }\n result.add(groupElement);\n }\n return result;\n }",
"private void fillActiveLevels() \n\t{\n\t\tStringBuffer sb = new StringBuffer();\n\t\tfor(int i=0;i<level[0].length+2;i++){\n\t\t\tsb.append(\"-\");\n\t\t}\n\t\tString lineStartEnd = sb.toString();\n\t\tchar[] startEnd = lineStartEnd.toCharArray();\n\t\tlevelActive[0] = startEnd;\n\t\tlevelActive[levelActive.length-1] = startEnd;\n\t\tfor (int i = 1; i <= level.length; i++) \n\t\t{\n\t\t\tlevelActive[i][0] = '-';\n\t\t\tSystem.arraycopy(level[i - 1], 0, levelActive[i], 1, level[0].length);\n\t\t\tlevelActive[i][level[0].length+1] = '-';\n\t\t}\n\t}",
"int fill_level_count(int input, int[] h, int levels) {\n\n\t\th[levels] = input;\n\t\tif (input <= MIN_SET_SIZE)\n\t\t\treturn levels + 1;\n\t\treturn fill_level_count(input / DEC_FACTOR, h, levels + 1);\n\t}",
"private void prepareChecklistFormModel() \n\t{\n\t\tchecklistGroup.clear();\n\t\tSet<ChecklistGroup> groupCollection = checklistService.loadGroups();\n\t\tIterator it = groupCollection.iterator();\n\t\twhile(it.hasNext())\n\t\t{\t\t\t\n\t\t\tChecklistGroup group = (ChecklistGroup) it.next();\n\t\t\tchecklistGroup.add(new ChecklistGroupModel(Integer.toString(group.getId()),\n\t\t\t\t\t\t\t\t\t\t\t\tgroup.getGroupName(),\n\t\t\t\t\t\t\t\t\t\t\t\tchecklistService.loadActivityCollection(Integer.toString(group.getId()))));\t\t \t\n\t\t}\n\t}",
"public void setLevel(int newlevel)\n {\n level = newlevel; \n }",
"public void setLevel(Level level) {\r\n\t\tthis.level = level;\r\n\t}",
"public void createLevel() {\n room = 1;\n currentLevelFinish = false;\n createRoom();\n }",
"@Test\n public void shouldTestIsBetweenTwoGroupsOnLevel() {\n this.rowGroupHeaderLayer.addGroupingLevel();\n // group spans Address and Facts\n this.rowGroupHeaderLayer.addGroup(1, \"Test\", 4, 7);\n\n // tests on level 0\n // additional level should not change the results\n shouldTestIsBetweenTwoGroups();\n\n // tests on level 1\n // note that if check on deeper level is false, it also needs to be\n // false on the upper level\n\n // move left reorderToLeftEdge\n assertTrue(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 0, true, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 1, true, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 2, true, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 3, true, MoveDirectionEnum.LEFT));\n assertTrue(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 4, true, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 5, true, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 6, true, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 7, true, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 8, true, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 9, true, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 10, true, MoveDirectionEnum.LEFT));\n assertTrue(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 11, true, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 12, true, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 13, true, MoveDirectionEnum.LEFT));\n\n // move right reorderToLeftEdge\n assertTrue(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 0, true, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 1, true, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 2, true, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 3, true, MoveDirectionEnum.RIGHT));\n assertTrue(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 4, true, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 5, true, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 6, true, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 7, true, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 8, true, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 9, true, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 10, true, MoveDirectionEnum.RIGHT));\n assertTrue(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 11, true, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 12, true, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 13, true, MoveDirectionEnum.RIGHT));\n\n // move left reorderToRightEdge\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 0, false, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 1, false, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 2, false, MoveDirectionEnum.LEFT));\n assertTrue(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 3, false, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 4, false, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 5, false, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 6, false, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 7, false, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 8, false, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 9, false, MoveDirectionEnum.LEFT));\n assertTrue(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 10, false, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 11, false, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 12, false, MoveDirectionEnum.LEFT));\n assertTrue(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 13, false, MoveDirectionEnum.LEFT));\n\n // move right reorderToRightEdge\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 0, false, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 1, false, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 2, false, MoveDirectionEnum.RIGHT));\n assertTrue(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 3, false, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 4, false, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 5, false, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 6, false, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 7, false, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 8, false, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 9, false, MoveDirectionEnum.RIGHT));\n assertTrue(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 10, false, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 11, false, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 12, false, MoveDirectionEnum.RIGHT));\n assertTrue(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 13, false, MoveDirectionEnum.RIGHT));\n\n // assertTrue(RowGroupUtils.isBetweenTwoGroups(this.columnGroupHeaderLayer,\n // 1, 0, true, MoveDirectionEnum.LEFT));\n // assertTrue(RowGroupUtils.isBetweenTwoGroups(this.columnGroupHeaderLayer,\n // 1, 4, true, MoveDirectionEnum.LEFT));\n // assertTrue(RowGroupUtils.isBetweenTwoGroups(this.columnGroupHeaderLayer,\n // 1, 11, true, MoveDirectionEnum.LEFT));\n // assertTrue(RowGroupUtils.isBetweenTwoGroups(this.columnGroupHeaderLayer,\n // 1, 13, false, MoveDirectionEnum.RIGHT));\n //\n // assertFalse(RowGroupUtils.isBetweenTwoGroups(this.columnGroupHeaderLayer,\n // 1, 8, true, MoveDirectionEnum.LEFT));\n // assertFalse(RowGroupUtils.isBetweenTwoGroups(this.columnGroupHeaderLayer,\n // 1, 5, true, MoveDirectionEnum.LEFT));\n\n // TODO remove group on level 0\n // no group on level 1 at this positions\n // assertTrue(RowGroupUtils.isBetweenTwoGroups(this.columnGroupHeaderLayer,\n // 1, 0, false, MoveDirectionEnum.LEFT));\n // assertTrue(RowGroupUtils.isBetweenTwoGroups(this.columnGroupHeaderLayer,\n // 1, 2, true, MoveDirectionEnum.LEFT));\n // assertTrue(RowGroupUtils.isBetweenTwoGroups(this.columnGroupHeaderLayer,\n // 1, 12, true, MoveDirectionEnum.LEFT));\n // assertTrue(RowGroupUtils.isBetweenTwoGroups(this.columnGroupHeaderLayer,\n // 1, 13, true, MoveDirectionEnum.RIGHT));\n }",
"public int countLevels() {\n return levels.size();\n }",
"public void setGroupsCount(long groupsCount) {\r\n this.groupsCount = groupsCount;\r\n }"
] | [
"0.5997668",
"0.59834033",
"0.5975785",
"0.5957265",
"0.5871033",
"0.5691752",
"0.5659375",
"0.5581115",
"0.5558036",
"0.5551287",
"0.55313367",
"0.55001765",
"0.54960793",
"0.54893523",
"0.5467071",
"0.54530394",
"0.5418998",
"0.54057044",
"0.5368873",
"0.53639114",
"0.5358512",
"0.5350687",
"0.53233",
"0.53198975",
"0.53008825",
"0.52740103",
"0.52619934",
"0.5256065",
"0.5253303",
"0.5251316",
"0.5248414",
"0.52394074",
"0.52385014",
"0.52316207",
"0.5219342",
"0.5207452",
"0.52065",
"0.52005655",
"0.5174708",
"0.5171002",
"0.5160507",
"0.5160507",
"0.5157724",
"0.5156288",
"0.5156288",
"0.5156288",
"0.5156288",
"0.5156288",
"0.51530594",
"0.51530594",
"0.5152283",
"0.51430595",
"0.5137107",
"0.5134279",
"0.51301914",
"0.5117947",
"0.51098764",
"0.51083183",
"0.51044685",
"0.51024324",
"0.5098509",
"0.5084872",
"0.5083162",
"0.5076871",
"0.507321",
"0.50731874",
"0.5070046",
"0.5068878",
"0.50662166",
"0.5066008",
"0.50659007",
"0.50540215",
"0.50459164",
"0.50455564",
"0.50434804",
"0.5041891",
"0.50366485",
"0.50173604",
"0.5014714",
"0.50132453",
"0.500507",
"0.500507",
"0.4993033",
"0.49885136",
"0.4975774",
"0.4971792",
"0.49686894",
"0.49655694",
"0.4949014",
"0.49266776",
"0.492019",
"0.49191418",
"0.4919102",
"0.49026766",
"0.4896601",
"0.48964822",
"0.48941174",
"0.48776203",
"0.4875222",
"0.48720405",
"0.48719382"
] | 0.0 | -1 |
Initialize "workingGroup" which will be a row of levels | public void combinationsOfLevels(ArrayList<ExperimentalGroup> levelGroups) throws CloneNotSupportedException{
ExperimentalGroup workingGroup = new ExperimentalGroup();
for(int i = 0; i < this.factors.size(); i++){
workingGroup.addLevel(this.factors.get(i).levels.get(0));
}
combinationsOfLevels(levelGroups,workingGroup,0);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void initLevel(){\n baseLevel = levelCreator.createStaticGrid(this.levelFile);\n dynamicLevel= levelCreator.createDynamicGrid(levelFile);\n colDetector = new CollisionHandler();\n goalTiles = baseLevel.getTilePositions('x');\n }",
"public void setStartLevelGroup(int num)\n\t{\n\t\tsetGroup(_Prefix + HardZone.STARTLEVEL.toString(), num);\n\t}",
"private void fillActiveLevels() \n\t{\n\t\tStringBuffer sb = new StringBuffer();\n\t\tfor(int i=0;i<level[0].length+2;i++){\n\t\t\tsb.append(\"-\");\n\t\t}\n\t\tString lineStartEnd = sb.toString();\n\t\tchar[] startEnd = lineStartEnd.toCharArray();\n\t\tlevelActive[0] = startEnd;\n\t\tlevelActive[levelActive.length-1] = startEnd;\n\t\tfor (int i = 1; i <= level.length; i++) \n\t\t{\n\t\t\tlevelActive[i][0] = '-';\n\t\t\tSystem.arraycopy(level[i - 1], 0, levelActive[i], 1, level[0].length);\n\t\t\tlevelActive[i][level[0].length+1] = '-';\n\t\t}\n\t}",
"public Group(){\n\t\tstartTime =-1;\n\t\ttempNumber = 0;\n\t}",
"public void createLevel() {\n room = 1;\n currentLevelFinish = false;\n createRoom();\n }",
"private Level produce() {\n\t\tint[][]grid = new int[row][column];\n\t\tArrayList<Point> goals = new ArrayList<Point>();\n\t\tint newRand = 0;\n\t\tfor (int x = 0; x < row; x++)\t{\n\t\t\tfor (int y = 0; y < column; y++)\t{\n\t\t\t\tnewRand = rand.nextInt(TOTAL);\n\t\t\t\tif (newRand < CAT_1)\t{\n\t\t\t\t\tgrid[x][y] = 1;\n\t\t\t\t} else if (newRand < CAT_2)\t{\n\t\t\t\t\tgrid[x][y] = 2;\n\t\t\t\t} else if (newRand < CAT_3)\t{\n\t\t\t\t\tgrid[x][y] = 3;\n\t\t\t\t} else if (newRand < CAT_4)\t{\n\t\t\t\t\tgrid[x][y] = 4;\n\t\t\t\t} else if (newRand < CAT_5)\t{\n\t\t\t\t\tgoals.add(new Point(x,y));\n\t\t\t\t} else if (newRand < TOTAL)\t{\n\t\t\t\t\tgrid[x][y] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn new Level(grid, row, column, goals);\n\t}",
"public static Group initGroupObject(){\n Group test_group = new Group(\"testGroup\");\n return test_group;\n }",
"private void constructLevel(int level){\n gamePanel.removeAll();\n GridLayout layout = new GridLayout(grid.length,grid[0].length);\n gamePanel.setLayout(layout);\n gamePanel.setBackground(Color.BLACK);\n gamePanel.setFocusable(true);\n gamePanel.requestFocusInWindow();\n gamePanel.updateUI();\n }",
"public static void makeLevelsForTesting() {\n\t\tBuilder builder = new Builder();\n\t\tbuilder.setLevels(new ArrayList<Level>());\n\t\tfor (int i = 0; i < 15; i++) {\n\t\t\tbuilder.addNewLevel(i % 3, 12);\n\t\t\tint[] nothing = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,\n\t\t\t\t\t0, 0, 0, 0, 0 };\n\t\t\tbuilder.saveLevel(nothing);\n\t\t\tSystem.out.println(builder.getLevels());\n\t\t}\n\t\tbuilder.saveToDisc();\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t\t// Set your level dimensions.\n\t\t// Note that rows and columns cannot exceed a size of 16\n\t\tsetDimensions(4, 4);\n\t\t\n\t\t// Select your board type\n\t\tsetBoardType(BoardType.CHECKER_BOARD);\n\n\t\t// Select your grid colors.\n\t\t// You need to specify two colors for checker boards\n\t\tList<Color> colors = new ArrayList<Color>();\n\t\tcolors.add(new Color(255, 173, 179, 250)); // stale blue\n\t\tcolors.add(new Color(255, 255, 255, 255)); // white\n\t\tsetColors(colors);\n\t\t\n\t\t// Specify the level's rules\n\t\taddGameRule(new DemoGameRule());\n\t\t\n\t\t// Retrieve player IDs\n\t\tList<String> playerIds = getContext().getGame().getPlayerIds();\n\t\tString p1 = playerIds.get(0);\n\t\tString p2 = playerIds.get(1);\n\n\t\t// Add your entities to the level's universe\n\t\t// using addEntity(GameEntity) method\n\t\taddEntity(new Pawn(this, p1, EntityType.BLACK_PAWN, new Point(0, 0)));\n\t\taddEntity(new Pawn(this, p2, EntityType.WHITE_PAWN, new Point(3, 3)));\n\t}",
"protected void initializeGroups() {\r\n if ((getCriteriaGroup() != null) && (getCriteriaGroup().getItems().isEmpty())) {\r\n getCriteriaGroup().setItems(getCriteriaFields());\r\n }\r\n\r\n if (getResultsGroup() != null) {\r\n if ((getResultsGroup().getItems().isEmpty()) && (getResultFields() != null)) {\r\n getResultsGroup().setItems(getResultFields());\r\n }\r\n\r\n if (getResultsGroup().getCollectionObjectClass() == null) {\r\n getResultsGroup().setCollectionObjectClass(getDataObjectClass());\r\n }\r\n }\r\n\r\n if (getItems().isEmpty()) {\r\n setItems(Arrays.asList(getCriteriaGroup(), getResultsGroup()));\r\n }\r\n }",
"public GcGroupLevelExample() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"public void newGroup() {\n addGroup(null, true);\n }",
"public Group() {\n\t\t\tfirst = last = null;\n\t\t\tsize = 0;\n\t\t}",
"LevelStacks() {\n stacks = new ArrayList<>();\n }",
"private void createAggLevels() {\n\t\t\tAoiLevel aggTableLevel\t\t= errorTable.getAoiLevel();\n\t\t\tAoiHierarchy aoiHierarchy \t= aggTableLevel.getHierarchy();\n\t\t\tAoiDimension aoiDim \t\t= getAoiDimension( aoiHierarchy );\n//\t\t\tField<Integer> aoiField \t= errorTable.getAoiField();\n\t\t\t\n//\t\t\tAggLevel aggLevel = new AggLevel( aoiDim.getHierarchy().getName() , aoiLevel.getName() , aoiField.getName() );\n//\t\t\taggLevels.add(aggLevel);\n//\t\t\t\n\t\t\t\n//\t\t\tAoiDimension aoiDim = getAoiDimension(aoiHierarchy);\n\t\t\tfor ( AoiLevel level : aoiHierarchy.getLevels() ) {\n\t\t\t\tif ( level.getRank() <= aggTableLevel.getRank() ) {\n\t\t\t\t\tField<Integer> field = errorTable.getAoiIdField( level );\n\t\t\t\t\tAggLevel aggLevel = new AggLevel(aoiDim.getHierarchy().getName(), level.getName(), field.getName());\n\t\t\t\t\taggLevels.add(aggLevel);\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"public Level(ArrayList<Tile[]> curr, Point rowdyStart) {\r\n\t\tthis.layout = curr;\r\n\t\tthis.playerStart = rowdyStart;\r\n\t\tthis.WIDTH = layout.size();\r\n\t\tthis.HEIGHT = layout.get(0).length;\r\n\t\tthis.countCoins();\r\n\t}",
"protected void initCurrentGP() {\n\t\t// centers the falling pieces at the top row\n\t\tcurrentPieceGridPosition = new int[]{0, 3};\n\t}",
"public Level(){\n\t\tlevel_image_pattern = \"default\";\n\t\t\n\t\timages = new HashMap <String, Image>();\n\t\tpickables = new ArrayList<Pickable>();\n\t\tplayer_initial_position = new int[2];\n\t\tplayer_initial_position[0] = 0;\n\t\tplayer_initial_position[1] = 0;\n\t\t\n\t\tconfig = Config.getInstance();\n\t\t\n\t}",
"public Group getGroup_0() { return cGroup_0; }",
"public Group getGroup_0() { return cGroup_0; }",
"public Group getGroup_0() { return cGroup_0; }",
"public Group getGroup_0() { return cGroup_0; }",
"public Group getGroup_0() { return cGroup_0; }",
"public Group getGroup_0() { return cGroup_0; }",
"public Group getGroup_0() { return cGroup_0; }",
"public Group getGroup_0() { return cGroup_0; }",
"public Group getGroup_0() { return cGroup_0; }",
"public Group getGroup_0() { return cGroup_0; }",
"public Group getGroup_0() { return cGroup_0; }",
"public Group getGroup_0() { return cGroup_0; }",
"public Group getGroup_0() { return cGroup_0; }",
"public Group getGroup_0() { return cGroup_0; }",
"private void setUpDefaultTree() {\n\t\tTreeItem<String> tempTreeItem = new TreeItem<String>(\"Floor 1\");\n\t\tFloor tempFloor = new Floor(new Image(\"scheduleyTest/floorplan1.jpg\"));\n\t\tfloorHashMap.put(tempTreeItem, tempFloor);\n\t\ttree.getRoot().getChildren().add(tempTreeItem);\n\t\ttempFloor.addMeetingSpace(new MeetingSpace(new Rectangle(88,40,213,113)));\n\t\ttempFloor.addMeetingSpace(new MeetingSpace(new Rectangle(88,153,139,119)));\n\t\ttempTreeItem.getChildren().addAll(new TreeItem<String>(\"Room 1\"), new TreeItem<String>(\"Room 2\"));\n\t}",
"public MultiLevelQueue()\n {\n levels = new TreeMap<>();\n }",
"public void initBoard() {\n board = new Board();\n\n // initilaisation des groupes\n Group violet = new Group();\n Group bleu = new Group();\n Group orange = new Group();\n Group vert = new Group();\n Group rouge = new Group();\n Group jaune = new Group();\n Group rose = new Group();\n Group marine = new Group();\n Group gare = new Group();\n Group compagnie = new Group();\n\n // ajout des cases\n board.addCaseBoard(new StartCase());\n board.addCaseBoard(new BuildingCaseImpl(\"Bvd Belleville\", 60, 2, 10,30, 90, 160,250, 30,violet, 50));\n board.addCaseBoard(new CaseBoardImpl(\"Caisse de caumunauté\"));\n board.addCaseBoard(new BuildingCaseImpl(\"Rue lecourbe\", 60, 4,20,60,180,320,450, 30,violet, 50));\n board.addCaseBoard(new CaseBoardImpl(\"Taxes\"));\n board.addCaseBoard(new BuyableCaseImpl(\"Gare Monparnasse\", 200, 2, 100,gare));\n board.addCaseBoard(new BuildingCaseImpl(\"Rue de Vaugirard\", 100, 6,30,90,270,400,550, 50, bleu, 50));\n board.addCaseBoard(new CaseBoardImpl(\"Chance\"));\n board.addCaseBoard(new BuildingCaseImpl(\"Rue de Courcelles\", 100, 6,30,90,270,400,550, 50, bleu, 50));\n board.addCaseBoard(new BuildingCaseImpl(\"Av de la Republique\", 120, 8,40,100,300,450,600, 60, bleu, 50));\n board.addCaseBoard(new CaseBoardImpl(\"Prison\"));\n board.addCaseBoard(new BuildingCaseImpl(\"Bvd de la villette\", 140, 10,50,150,450,625,750, 70, orange, 100));\n board.addCaseBoard(new BuyableCaseImpl(\"Compagnie de distribution d'electricité\",150, 0, 75, compagnie));\n board.addCaseBoard(new BuildingCaseImpl(\"Av de Neuilly\", 140, 10,50,150,450,625,750, 70, orange, 100));\n board.addCaseBoard(new BuildingCaseImpl(\"Rue de Paradis\", 160, 12,60,180,500,700,900, 80, orange, 100));\n board.addCaseBoard(new BuyableCaseImpl(\"Gare de Lyon\", 200, 2, 100,gare));\n board.addCaseBoard(new BuildingCaseImpl(\"Av de Mozart\", 180, 14,70,200,550,700,900, 90, vert, 100));\n board.addCaseBoard(new CaseBoardImpl(\"Caisse de Communauté\"));\n board.addCaseBoard(new BuildingCaseImpl(\"Bvd Saint Michel\", 180, 14,70,200,550,700,900, 90, vert, 100));\n board.addCaseBoard(new BuildingCaseImpl(\"Place Pigalle\", 200, 16,80,220,600,800,950, 100, vert, 100));\n board.addCaseBoard(new CaseBoardImpl(\"Park Gratuit\"));\n board.addCaseBoard(new BuildingCaseImpl(\"Av Matignon\", 220, 18,90,250,700,875,1050, 110, rouge, 150));\n board.addCaseBoard(new CaseBoardImpl(\"Chance\"));\n board.addCaseBoard(new BuildingCaseImpl(\"Bvd MalesHerbes\", 220, 18,90,250,700,875,1050, 110, rouge, 150));\n board.addCaseBoard(new BuildingCaseImpl(\"Av Henri-Martin\", 240, 20,100,300,750,925,1100, 120, rouge, 150));\n board.addCaseBoard(new BuyableCaseImpl(\"Gare du Nord\", 200, 2, 100,gare));\n board.addCaseBoard(new BuildingCaseImpl(\"Fb Saint Honoré\", 260, 22,110,330,800,975,1150, 130, jaune, 150));\n board.addCaseBoard(new BuildingCaseImpl(\"Place de la Bourse\", 260, 22,110,330,800,975,1150, 130, jaune, 150));\n board.addCaseBoard(new BuyableCaseImpl(\"Compagnie de distribution des eaux\",150, 0, 75, compagnie));\n board.addCaseBoard(new BuildingCaseImpl(\"Rue lafayette\", 280, 24,120,360,850,1025,1200, 140, jaune, 150));\n board.addCaseBoard(new CaseBoardImpl(\"Aller en Prison\"));\n board.addCaseBoard(new BuildingCaseImpl(\"Av de Breteuil\", 300, 26,130,390,900,1100,1275, 150, rose, 200));\n board.addCaseBoard(new BuildingCaseImpl(\"Av Foch\", 300, 26,130,390,900,1100,1275, 150, rose, 200));\n board.addCaseBoard(new CaseBoardImpl(\"Caisse de Communauté\"));\n board.addCaseBoard(new BuildingCaseImpl(\"Bvd des Capucines\", 320, 28,150,450,1000,1200,1400, 160, rose, 200));\n board.addCaseBoard(new BuyableCaseImpl(\"Gare Saint-Lazarre\", 200, 2, 100,gare));\n board.addCaseBoard(new CaseBoardImpl(\"Chance\"));\n board.addCaseBoard(new BuildingCaseImpl(\"Av des Champs Elysées\", 350, 35,175,500,1100,1300,1500, 175, marine, 200));\n board.addCaseBoard(new CaseBoardImpl(\"Caisse de Communauté\"));\n board.addCaseBoard(new BuildingCaseImpl(\"Rue de la Paix\", 400, 50,200,600,1400,1700,2000, 200, marine, 200));\n }",
"public Group renderLevel() {\n\t\tGroup levelGroup = new Group();\n\t\tNode background = renderBackground(level);\n\t\tlevelGroup.getChildren().add(background);\n\t\tList<Sprite> textSpriteList = level.sprites().stream().filter(sprite -> sprite.isText()).collect(Collectors.toList());\n\t\ttextSpriteList.stream().forEach(textSprite -> levelGroup.getChildren().add(renderText(textSprite)));\n\t\tList<Sprite> imageSpriteList = level.sprites().stream().filter((sprite -> !sprite.isText())).collect(Collectors.toList());\n\t\timageSpriteList.stream().filter(sprite -> sprite.isActive()).forEach(sprite -> levelGroup.getChildren().add(renderSprite(sprite)));\n\t\treturn levelGroup;\n\t}",
"private void newGroup()\n\t{\n\t\t// There is no need anymore to take care of the meta-data.\n\t\t// That is done once in DenormaliserMeta.getFields()\n\t\t//\n data.targetResult = new Object[meta.getDenormaliserTargetFields().length];\n \n for (int i=0;i<meta.getDenormaliserTargetFields().length;i++)\n {\n data.targetResult[i] = null;\n\n data.counters[i]=0L; // set to 0\n data.sum[i]=null;\n }\n\t}",
"public static Level[] createPhaseTwoLevel(){\n\t\tLevel[] testLevels = new Level[1];\n\t\t\n\t\tSquare Level1Piece1[] = new Square[6]; \n\t\tLevel1Piece1[0] = new Square(0,0);\n\t\tLevel1Piece1[1] = new Square(1,0);\n\t\tLevel1Piece1[2] = new Square(2,0);\n\t\tLevel1Piece1[3] = new Square(3,0);\n\t\tLevel1Piece1[4] = new Square(4,0);\n\t\tLevel1Piece1[5] = new Square(5,0);\t\t\n\t\t\n\t\tSquare Level1Piece2[] = new Square[6]; \n\t\tLevel1Piece2[0] = new Square(0,1);\n\t\tLevel1Piece2[1] = new Square(0,0);\n\t\tLevel1Piece2[2] = new Square(1,0);\n\t\tLevel1Piece2[3] = new Square(2,0);\n\t\tLevel1Piece2[4] = new Square(3,0);\n\t\tLevel1Piece2[5] = new Square(4,0);\t\t\n\t\t\n\t\tSquare Level1Piece3[] = new Square[6]; \n\t\tLevel1Piece3[0] = new Square(0,0);\n\t\tLevel1Piece3[1] = new Square(0,1);\n\t\tLevel1Piece3[2] = new Square(0,2);\n\t\tLevel1Piece3[3] = new Square(1,0);\n\t\tLevel1Piece3[4] = new Square(1,1);\n\t\tLevel1Piece3[5] = new Square(1,2);\t\t\n\t\t\n\t\tSquare Level1Piece4[] = new Square[6]; \n\t\tLevel1Piece4[0] = new Square(0,0);\n\t\tLevel1Piece4[1] = new Square(1,0);\n\t\tLevel1Piece4[2] = new Square(1,1);\n\t\tLevel1Piece4[3] = new Square(1,2);\n\t\tLevel1Piece4[4] = new Square(1,3);\n\t\tLevel1Piece4[5] = new Square(2,3);\n\t\t\n\t\tSquare Level1Piece5[] = new Square[6]; \n\t\tLevel1Piece5[0] = new Square(2,0);\n\t\tLevel1Piece5[1] = new Square(2,1);\n\t\tLevel1Piece5[2] = new Square(1,1);\n\t\tLevel1Piece5[3] = new Square(0,1);\n\t\tLevel1Piece5[4] = new Square(0,2);\n\t\tLevel1Piece5[5] = new Square(1,2);\t\n\t\t\n\t\tSquare Level1Piece6[] = new Square[6]; \n\t\tLevel1Piece6[0] = new Square(2,0);\n\t\tLevel1Piece6[1] = new Square(2,1);\n\t\tLevel1Piece6[2] = new Square(1,1);\n\t\tLevel1Piece6[3] = new Square(0,1);\n\t\tLevel1Piece6[4] = new Square(1,2);\n\t\tLevel1Piece6[5] = new Square(2,2);\t\n\t\t\n\t\tArrayList<Piece> bullPenPieceArray=new ArrayList<Piece>();\n\t\tbullPenPieceArray.add(new Piece(0,0,Level1Piece1,Level1Piece1[0],2));\n\t\tbullPenPieceArray.get(0).setColor(Color.BLUE);\n\t\tbullPenPieceArray.add(new Piece(0,0,Level1Piece2,Level1Piece2[0],2));\n\t\tbullPenPieceArray.get(1).setColor(Color.GREEN);\n\t\tbullPenPieceArray.add(new Piece(0,0,Level1Piece3,Level1Piece3[0],2));\n\t\tbullPenPieceArray.get(2).setColor(Color.YELLOW);\n\t\tbullPenPieceArray.add(new Piece(0,0,Level1Piece4,Level1Piece4[0],2));\n\t\tbullPenPieceArray.get(3).setColor(Color.ORANGE);\n\t\tbullPenPieceArray.add(new Piece(0,0,Level1Piece5,Level1Piece5[0],2));\n\t\tbullPenPieceArray.get(4).setColor(Color.RED);\n\t\tbullPenPieceArray.add(new Piece(0,0,Level1Piece6,Level1Piece6[0],2));\n\t\tbullPenPieceArray.get(5).setColor(Color.PINK);\n\t\tBullpen bp = new Bullpen(bullPenPieceArray);\n\t\t\n\t\t\n\t\tSquare[] sq = new Square[36]; \n\t\tfor (int i1=0;i1<6;i1++){\n\t\t\tfor (int j=0;j<6;j++){\n\t\t\t\tsq[i1*6+j] = new Square(i1,j);\n\t\t\t}\n\t\t}\n\t\tSquare hitSquares[] = new Square[6]; \n\t\thitSquares[0] = new Square(0,0);\n\t\thitSquares[1] = new Square(1,0);\n\t\thitSquares[2] = new Square(2,0);\n\t\thitSquares[3] = new Square(3,0);\n\t\thitSquares[4] = new Square(4,0);\n\t\thitSquares[5] = new Square(5,0);\t\n\t\tHint hints = new Hint(hitSquares);\n\t\tBoard bd = new Board(sq);\n\t\tbd.sethint(hints);\n\t\t\n\t\ttestLevels[0] = new PuzzleLevel(0,GetLevelTpye(0%3),bd,bp,8);\n\t\ttestLevels[0].updateLevelStar(new Achievement(0));\n\t\t\n\t\treturn testLevels;\n\t}",
"public void createGroup() {\n\t\tString name = JOptionPane\n\t\t\t\t.showInputDialog(\"Please Enter a new group name:\");\n\t\tif (name.equals(\"\"))\n\t\t\treturn;\n\n\t\tDefaultMutableTreeNode node = (DefaultMutableTreeNode) getLastSelectedPathComponent();\n\t\tEllowFile pfile = (EllowFile) node.getUserObject(), file;\n\t\tif (pfile.isDirectory()) {\n\t\t\tfile = new EllowFile(pfile.getAbsolutePath() + \"\\\\\\\\\" + name);\n\t\t\tfile.mkdirs();\n\t\t\tmodel.insertNodeInto(new DefaultMutableTreeNode(file), node,\n\t\t\t\t\tnode.getChildCount());\n\t\t} else {\n\t\t\tfile = new EllowFile(pfile.getParent() + \"\\\\\\\\\" + name);\n\t\t\tfile.mkdirs();\n\t\t\tnode = ((DefaultMutableTreeNode) node.getParent());\n\t\t\tmodel.insertNodeInto(new DefaultMutableTreeNode(file), node,\n\n\t\t\tnode.getChildCount());\n\t\t}\n\t\tfile.parentProject = pfile.parentProject;\n\t\tpfile.parentProject.rebuild();\n\t\tmodel.nodeChanged(root);\n\t}",
"public static Level[] createTestLevel(){\n\t\tLevel[] testLevels = new Level[16];\n\t\tint[] squareNum = new int[144];\n\t\n\t\tColor[] cl = new Color[144];\n\t\t\n\t\t\n\n\t\t\n\t\tfor (int i=0;i<144;i++){\n\t\t\tsquareNum[i] =0;\n\t\t\tcl[i]=null;\n\t\t}\n\t\tint count18=0;\n\t\tfor (int i=1;i<4;i++){\n\t\t\tfor (int j=1;j<7;j++){\n\t\t\t\tsquareNum[count18] =j;\n\t\t\t\tif (i==1){\n\t\t\t\t\tcl[count18]=Color.RED;\n\t\t\t\t}\n\t\t\t\telse if (i==2){\n\t\t\t\t\tcl[count18]=Color.YELLOW;\n\t\t\t\t}\n\t\t\t\telse if (i==3){\n\t\t\t\t\tcl[count18]=Color.GREEN;\n\t\t\t\t}\n\t\t\t\tcount18=count18+5;\n\t\t\t}\n\t\t}\n\n\n\t\tSquare bullPenSquare1[] = new Square[6]; \n\t\tbullPenSquare1[0] = new Square(1,3);\n\t\tbullPenSquare1[1] = new Square(0,1);\n\t\tbullPenSquare1[2] = new Square(0,2);\n\t\tbullPenSquare1[3] = new Square(0,3);\n\t\tbullPenSquare1[4] = new Square(0,4);\n\t\tbullPenSquare1[5] = new Square(0,5);\t\t\n\t\t\n\t\tSquare bullPenSquare2[] = new Square[6]; \n\t\tbullPenSquare2[0] = new Square(0,0);\n\t\tbullPenSquare2[1] = new Square(1,0);\n\t\tbullPenSquare2[2] = new Square(2,0);\n\t\tbullPenSquare2[3] = new Square(2,1);\n\t\tbullPenSquare2[4] = new Square(2,2);\n\t\tbullPenSquare2[5] = new Square(1,2);\t\t\n\n\t\tSquare bullPenSquare3[] = new Square[6]; \n\t\tbullPenSquare3[0] = new Square(1,1);\n\t\tbullPenSquare3[1] = new Square(0,1);\n\t\tbullPenSquare3[2] = new Square(0,2);\n\t\tbullPenSquare3[3] = new Square(0,3);\n\t\tbullPenSquare3[4] = new Square(0,4);\n\t\tbullPenSquare3[5] = new Square(0,5);\t\t\n\t\t\n\t\tSquare bullPenSquare4[] = new Square[6]; \n\t\tbullPenSquare4[0] = new Square(1,1);\n\t\tbullPenSquare4[1] = new Square(2,1);\n\t\tbullPenSquare4[2] = new Square(3,1);\n\t\tbullPenSquare4[3] = new Square(3,2);\n\t\tbullPenSquare4[4] = new Square(3,3);\n\t\tbullPenSquare4[5] = new Square(3,4);\t\t\n\n\t\tSquare bullPenSquare5[] = new Square[6]; \n\t\tbullPenSquare5[0] = new Square(0,2);\n\t\tbullPenSquare5[1] = new Square(1,2);\n\t\tbullPenSquare5[2] = new Square(2,2);\n\t\tbullPenSquare5[3] = new Square(3,2);\n\t\tbullPenSquare5[4] = new Square(4,2);\n\t\tbullPenSquare5[5] = new Square(5,2);\t\n\t\t\n\t\tSquare bullPenSquare6[] = new Square[6]; \n\t\tbullPenSquare6[0] = new Square(0,0);\n\t\tbullPenSquare6[1] = new Square(0,1);\n\t\tbullPenSquare6[2] = new Square(0,2);\n\t\tbullPenSquare6[3] = new Square(0,3);\n\t\tbullPenSquare6[4] = new Square(0,4);\n\t\tbullPenSquare6[5] = new Square(0,5);\t\n\t\t\n\t\tPiece bullPenPiece= new Piece(0,0,bullPenSquare1,bullPenSquare1[0],2);\n\t\tbullPenPiece.setColor(new Color(0,0,0));\n\n\n\t\tArrayList<Piece> bullPenPieceArray=new ArrayList<Piece>();\n\t\tbullPenPieceArray.add(new Piece(0,0,bullPenSquare1,bullPenSquare1[0],2));\n\t\tbullPenPieceArray.get(0).setColor(Color.BLUE);\n\t\tbullPenPieceArray.add(new Piece(0,0,bullPenSquare2,bullPenSquare2[0],2));\n\t\tbullPenPieceArray.get(1).setColor(Color.GREEN);\n\t\tbullPenPieceArray.add(new Piece(0,0,bullPenSquare3,bullPenSquare3[0],2));\n\t\tbullPenPieceArray.get(2).setColor(Color.YELLOW);\n\t\tbullPenPieceArray.add(new Piece(0,0,bullPenSquare4,bullPenSquare4[0],2));\n\t\tbullPenPieceArray.get(3).setColor(Color.ORANGE);\n\t\tbullPenPieceArray.add(new Piece(0,0,bullPenSquare5,bullPenSquare5[0],2));\n\t\tbullPenPieceArray.get(4).setColor(Color.RED);\n\t\tbullPenPieceArray.add(new Piece(0,0,bullPenSquare6,bullPenSquare6[0],2));\n\t\tbullPenPieceArray.get(5).setColor(Color.PINK);\n\n\n\t\tBullpen bp = new Bullpen(bullPenPieceArray);\n\t\t//Bullpen bp = new Bullpen();\n\n\n\n\t\tSquare[] boardSquare = new Square[144]; \n\t\tfor (int i1=0;i1<12;i1++){\n\t\t\tfor (int j=0;j<12;j++){\n\n\t\t\t\tboardSquare[i1*12+j] = new Square(i1,j);\n\t\t\t}\n\t\t}\n\n\t\tSquare hitSquares[] = new Square[6]; \n\t\thitSquares[0] = new Square(6,4);\n\t\thitSquares[1] = new Square(5,2);\n\t\thitSquares[2] = new Square(5,3);\n\t\thitSquares[3] = new Square(5,4);\n\t\thitSquares[4] = new Square(5,5);\n\t\thitSquares[5] = new Square(5,6);\t\n\n\t\tHint hints = new Hint(hitSquares);\n\n\t\tBoard testBoard = new Board(boardSquare);\n\t\ttestBoard.sethint(hints);\n\t\t\n\t\t////// add remove test\n\t\t//bullPenPiece.setColor(Color.PINK);\n\t\t//bp.removepiece(bullPenPieceArray.get(5));\n\t\t//testBoard.addpiece(bullPenPiece);\n\t\t///test over\n\t\t\n\t\tfor (int i=0;i<15;i++){\n\t\t\tif (i%3==0){\n\t\t\t\ttestLevels[i] = new PuzzleLevel(i,GetLevelTpye(i%3),testBoard,bp,20);\n\t\t\t\ttestLevels[i].updateLevelStar(new Achievement(new Random().nextInt(3) + 1));\n\t\t\t}\n\t\t\telse if (i%3==1){\n\t\t\t\ttestLevels[i] = new LightningLevel(i,GetLevelTpye(i%3),testBoard,bp,30);\n\t\t\t\ttestLevels[i].updateLevelStar(new Achievement(new Random().nextInt(3) + 1));\n\t\t\t}\n\t\t\telse {\n\t\t\t\ttestLevels[i] = new ReleaseLevel(i,GetLevelTpye(i%3),testBoard,bp,squareNum,cl);\n\t\t\t\ttestLevels[i].updateLevelStar(new Achievement(new Random().nextInt(3) + 1));\n\t\t\t}\n\n\t\t}\n\t\ttestLevels[13].updateLevelStar(new Achievement(0));\n\t\ttestLevels[14].updateLevelStar(new Achievement(-1));\n\n\t\t\n\t\t\n\t\t\n\t\t//---------------------------------------------- \n\t\tint[] sixNum = new int[36];\n\t\tColor[] sixcolor = new Color[36];\n\t\tfor (int i=0;i<36;i++){\n\t\t\tsixNum[i] =0;\n\t\t\tsixcolor[i]=null;\n\t\t}\n\t\tint count1=0;\n\t\tfor (int i=1;i<4;i++){\n\t\t\tfor (int j=1;j<7;j++){\n\t\t\t\tsquareNum[count1] =j;\n\t\t\t\tif (i==1){\n\t\t\t\t\tcl[count1]=Color.RED;\n\t\t\t\t}\n\t\t\t\telse if (i==2){\n\t\t\t\t\tcl[count1]=Color.YELLOW;\n\t\t\t\t}\n\t\t\t\telse if (i==3){\n\t\t\t\t\tcl[count1]=Color.GREEN;\n\t\t\t\t}\n\t\t\t\tcount1=count1+1;\n\t\t\t}\n\t\t}\n\t\tSquare[] sixBoardSquare = new Square[36]; \n\t\tfor (int i1=0;i1<6;i1++){\n\t\t\tfor (int j=0;j<6;j++){\n\n\t\t\t\tsixBoardSquare[i1*6+j] = new Square(i1,j);\n\t\t\t}\n\t\t}\n\t\tSquare sixhint[] = new Square[6]; \n\t\tsixhint[0] = new Square(0,0);\n\t\tsixhint[1] = new Square(0,1);\n\t\tsixhint[2] = new Square(0,2);\n\t\tsixhint[3] = new Square(0,3);\n\t\tsixhint[4] = new Square(0,4);\n\t\tsixhint[5] = new Square(0,5);\t\n\n\t\tHint sixhints = new Hint(sixhint);\n\n\t\tBoard sixBoard = new Board(sixBoardSquare);\n\t\tsixBoard.sethint(sixhints);\n\t\t\n\t\ttestLevels[15] = new ReleaseLevel(15,GetLevelTpye(14%3),sixBoard,bp,sixNum,sixcolor);\n\t\ttestLevels[15].updateLevelStar(new Achievement(1));\n\t\t//--------------------------------------------\n\t\t\n\t\treturn testLevels;\n\t\t/*\n\t\t\tpublic Level(int LevelNumber, String LevelType, Board b, Bullpen p){\n\t\t\t\tthis.LevelNumber = LevelNumber;\n\t\t\t\tthis.LevelType = LevelType;\n\t\t\t\tthis.b = b;\n\t\t\t\tthis.p = p;\n\t\t\t}\n\n\t\t */\n\t}",
"public void assignAndStartInitialProjects() {\n\t\tfor(Player p:players) {\n\t\t\tSubproject sp=drawProject();\n\t\t\tSubprojectField result=sp.setChip(p.removeChip());\n\t\t\tp.raiseScore(result.getAmountSZT());\n\t\t}\n\t}",
"public void setLevel(Level level) { this.currentLevel = level; }",
"public JIssueGroup() {\n this(DSL.name(\"issue_group\"), null);\n }",
"private void populateLevel() {\r\n\r\n\r\n\t\t// Setup Goal\r\n\t\tJsonValue goalVal = levelAssets.get(\"goal\");\r\n\t\tfloat gWidth = goalTile.getRegionWidth()/scale.x;\r\n\t\tfloat gHeight = goalTile.getRegionHeight()/scale.y;\r\n\t\tfloat gX = goalVal.get(\"pos\").getFloat(0) + gWidth / 2;\r\n\t\tfloat gY = goalVal.get(\"pos\").getFloat(1) + gHeight / 2;\r\n\t\tgoalDoor = new DoorModel(gX, gY, gWidth, gHeight);\r\n\t\tgoalDoor.setBodyType(BodyDef.BodyType.StaticBody);\r\n\t\tgoalDoor.setDensity(constants.get(\"goal\").getFloat(\"density\", 0));\r\n\t\tgoalDoor.setFriction(constants.get(\"goal\").getFloat(\"friction\", 0));\r\n\t\tgoalDoor.setRestitution(constants.get(\"goal\").getFloat(\"restitution\", 0));\r\n\t\tgoalDoor.setSensor(true);\r\n\t\tgoalDoor.setDrawScale(scale);\r\n\t\tgoalDoor.setTexture(goalTile);\r\n\t\tgoalDoor.setName(\"goal\");\r\n\t\taddObject(goalDoor);\r\n\t\taddObjectTo(goalDoor, LevelCreator.allTag);\r\n\r\n\t\t// Get default values\r\n\t\tJsonValue defaults = constants.get(\"defaults\");\r\n\t\tJsonValue objs = levelAssets.get(\"objects\");\r\n\r\n\t\t//group platform constants together for access in following for-loop\r\n\t\tTextureRegion[] xTexture = {lightTexture, darkTexture, allTexture,\r\n\t\t\tlightningLightTexture, lightningDarkTexture, lightningAllTexture,\r\n\t\t\trainLightTexture, rainDarkTexture, rainAllTexture,\r\n\t\t\t\tcrumbleLightTexture, crumbleDarkTexture, crumbleAllTexture};\r\n\r\n\t\tTextureRegion[] reducedXTexture = {lightTexture, darkTexture, allTexture,\r\n\t\t\t\tlightningLightTextureReduced, lightningDarkTextureReduced, lightningAllTextureReduced,\r\n\t\t\t\trainLightTextureReduced, rainDarkTextureReduced, rainAllTextureReduced,\r\n\t\t\t\tcrumbleLightTextureReduced, crumbleDarkTextureReduced, crumbleAllTextureReduced};\r\n\r\n\r\n\t\t// Setup platforms\r\n\t\tfor(int i=0; i < (objs != null ? objs.size : 0); i++)\r\n\t\t{\r\n\t\t\tJsonValue obj = objs.get(i);\r\n\r\n\t\t\t// Get platform attributes\r\n\t\t\tint platformType = obj.get(\"type\").asInt();\r\n\t\t\tint property = obj.get(\"property\") == null ? 0: obj.get(\"property\").asInt();\r\n\t\t\tJsonValue platformArgs = obj.get(\"positions\");\r\n\t\t\tJsonValue pathsArgs = obj.get(\"paths\");\r\n\r\n\t\t\tfor (int j = 0; j < platformArgs.size; j++) {\r\n\t\t\t\tfloat[] bounds = platformArgs.get(j).asFloatArray();\r\n\t\t\t\tfloat x = bounds[0], y = bounds[1], width = bounds[2], height = bounds[3];\r\n\t\t\t\tTextureRegion newXTexture;\r\n\t\t\t\tTextureRegion crumbleTexture = null;\r\n\t\t\t\tTexture originalTexture = null;\r\n\t\t\t\ttry {\r\n\t\t\t\t\t// temporary - need to refactor asset directory\r\n\t\t\t\t\tJsonValue assetName = obj.get(\"assetName\");\r\n\t\t\t\t\tint assetIndex = assetName.asInt();\r\n\t\t\t\t\tnewXTexture = new TextureRegion(tutorial_signs[assetIndex]);\r\n\t\t\t\t} catch(Exception e) {\r\n\t\t\t\t\tint platIdx = platformType-1+(property - 1)*3;\r\n\t\t\t\t\tint crumbleIdx = platIdx + 3;\r\n\t\t\t\t\tnewXTexture = new TextureRegion(xTexture[platIdx]);\r\n\t\t\t\t\toriginalTexture = newXTexture.getTexture();\r\n\t\t\t\t\t// For crumble animation\r\n\t\t\t\t\tif (platIdx > 5) {\r\n\t\t\t\t\t\tcrumbleTexture = new TextureRegion(xTexture[crumbleIdx]);\r\n//\t\t\t\t\t\tcrumbleTexture.setRegion(0, 0, width, height);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// If the platform size is the same as the spritesheet size\r\n\t\t\t\t\tif (originalTexture.getWidth() > 32 && width%(originalTexture.getWidth()/32) == 0) {\r\n\t\t\t\t\t\tnewXTexture = new TextureRegion(reducedXTexture[platIdx]);\r\n\t\t\t\t\t\toriginalTexture = newXTexture.getTexture();\r\n\t\t\t\t\t\tif (platIdx > 5) {\r\n\t\t\t\t\t\t\tcrumbleTexture = new TextureRegion(reducedXTexture[crumbleIdx]);\r\n//\t\t\t\t\t\t\tcrumbleTexture.setRegion(0, 0, width, height);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n//\t\t\t\t\tnewXTexture.setRegion(0, 0, width, height);\r\n\t\t\t\t}\r\n\t\t\t\tPlatformModel platformModel = new PlatformModel(bounds, platformType, property, newXTexture, scale,\r\n\t\t\t\t\t\tdefaults.getFloat( \"density\", 0.0f ), defaults.getFloat( \"friction\", 0.0f ) ,\r\n\t\t\t\t\t\tdefaults.getFloat( \"restitution\", 0.0f ), originalTexture, crumbleTexture);\r\n\t\t\t\tplatformModel.setTag(platformType);\r\n\t\t\t\tplatformModel.setProperty(property);\r\n\t\t\t\taddObject(platformModel);\r\n\t\t\t\taddObjectTo(platformModel, platformType);\r\n\t\t\t\t//TODO: Moving platforms\r\n\r\n\r\n\t\t\t\tif (pathsArgs != null) {\r\n\t\t\t\t\tfloat[] paths = pathsArgs.get(j).asFloatArray();\r\n\r\n\t\t\t\t\t//** Moving platform if > 1 path or different path from starting position\r\n\t\t\t\t\tif (hasValidPath(x, y, paths)) {\r\n\t\t\t\t\t\tplatformModel.setBodyType(BodyDef.BodyType.KinematicBody);\r\n\t\t\t\t\t\tmovingObjects.add(platformModel);\r\n\r\n\t\t\t\t\t\tPooledList<Vector2> pathList = new PooledList<>();\r\n\t\t\t\t\t\tfor (int k = 0; k < paths.length; k+=2) {\r\n\t\t\t\t\t\t\tpathList.add(new Vector2(paths[k], paths[k+1]));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tfloat velocity = 3;\r\n\r\n\t\t\t\t\t\tplatformModel.setGravityScale(0);\r\n\t\t\t\t\t\tplatformModel.setPaths(pathList);\r\n\t\t\t\t\t\tplatformModel.setVelocity(velocity);\r\n\r\n\t\t\t\t\t\tmovingObjects.add(platformModel);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// This world is heavier\r\n\t\tworld.setGravity( new Vector2(0,defaults.getFloat(\"gravity\",0)) );\r\n\r\n\t\t// Set level background index\r\n\t\tint backgroundTextureIndex = levelAssets.get(\"background\").asInt();\r\n\t\tbackgroundLightTexture = backgrounds[backgroundTextureIndex - 1];\r\n\t\tbackgroundDarkTexture = backgrounds[backgroundTextureIndex];\r\n\t\tbackgroundTexture = backgroundLightTexture;\r\n\r\n\t\t// Initialize background animations\r\n\t\tactualBackgroundTexture = backgroundTexture.getTexture();\r\n\t\tbackgroundEntirePixelWidth = actualBackgroundTexture.getWidth();\r\n\t\tbackgroundNumAnimFrames = (int)(backgroundEntirePixelWidth/backgroundFramePixelWidth);\r\n\t\tbackgroundAnimator = new FilmStrip(backgroundTexture,1, backgroundNumAnimFrames, backgroundNumAnimFrames);\r\n\t\tbackgroundAnimator.setFrame(0);\r\n\t\tbackgroundAnimeframe = 0;\r\n\t\tbackgroundOrigin = new Vector2(backgroundAnimator.getRegionWidth()/2.0f, backgroundAnimator.getRegionHeight()/2.0f);\r\n\r\n\t\t// Set level bounds\r\n\t\twidthUpperBound = levelAssets.get(\"dimensions\").getInt(0);\r\n\t\theightUpperBound = levelAssets.get(\"dimensions\").getInt(1);\r\n\r\n\t\t// Setup Somni\r\n\r\n\t\tJsonValue somniVal = levelAssets.get(\"somni\");\r\n\t\tfloat sWidth = somniTexture.getRegionWidth()/scale.x;\r\n\t\tfloat sHeight = somniTexture.getRegionHeight()/scale.y;\r\n\t\tfloat sX = somniVal.get(\"pos\").getFloat(0) + sWidth / 2;\r\n\t\tfloat sY = somniVal.get(\"pos\").getFloat(1) + sHeight / 2;\r\n\t\tsomni = new CharacterModel(constants.get(\"somni\"), sX, sY, sWidth, sHeight, platformController.somnif, CharacterModel.LIGHT);\r\n\t\tsomni.setDrawScale(scale);\r\n\t\tsomni.setTexture(somniIdleTexture);\r\n\t\tsomni.setFilterData(platformController.somnif);\r\n\t\tsomni.setActive(true);\r\n\t\taddObject(somni);\r\n\t\taddObjectTo(somni, LevelCreator.allTag);\r\n\r\n\r\n\t\t// Setup Phobia\r\n\r\n\t\tJsonValue phobiaVal = levelAssets.get(\"phobia\");\r\n\t\tfloat pWidth = phobiaTexture.getRegionWidth()/scale.x;\r\n\t\tfloat pHeight = phobiaTexture.getRegionHeight()/scale.y;\r\n\t\tfloat pX = phobiaVal.get(\"pos\").getFloat(0) + pWidth / 2;\r\n\t\tfloat pY = phobiaVal.get(\"pos\").getFloat(1) + pHeight / 2;\r\n\t\tphobia = new CharacterModel(constants.get(\"phobia\"), pX, pY, pWidth, pHeight, platformController.phobiaf, CharacterModel.DARK);\r\n\t\tphobia.setDrawScale(scale);\r\n\t\tphobia.setTexture(phobiaIdleTexture);\r\n\t\tphobia.setFilterData(platformController.phobiaf);\r\n\t\taddObject(phobia);\r\n\t\taddObjectTo(phobia, LevelCreator.allTag);\r\n\t\tphobia.setActive(true);\r\n\r\n\t\t// Setup Combined\r\n\r\n\t\tfloat cWidth = combinedTexture.getRegionWidth()/scale.x;\r\n\t\tfloat cHeight = combinedTexture.getRegionHeight()/scale.y;\r\n\r\n\t\tcombined = new CharacterModel(constants.get(\"combined\"), 0, 0, cWidth, cHeight, platformController.combinedf, CharacterModel.DARK);\r\n\t\tcombined.setDrawScale(scale);\r\n\t\tcombined.setTexture(somniPhobiaTexture);\r\n\t\t//combined.setTag();\r\n\t\tcombined.setFilterData(platformController.combinedf);\r\n\t\taddObject(combined);\r\n\t\taddObjectTo(combined, LevelCreator.allTag);\r\n\t\tcombined.setActive(true);\r\n\r\n\t\t//Remove combined\r\n\t\tobjects.remove(combined);\r\n\t\tsharedObjects.remove(combined);\r\n\t\tcombined.setActive(false);\r\n\r\n\t\taction = 0;\r\n\r\n\t\tPreferences prefs = GDXRoot.getPreferences();\r\n\t\tvolume = prefs.contains(\"volume\") ? prefs.getFloat(\"volume\") : defaults.getFloat(\"volume\",\r\n\t\t\t\t1.0f);\r\n//\t\tSystem.out.println(volume);\r\n\r\n\t\tplatformController.applyFilters(objects);\r\n\t}",
"public Group getGroup_9() { return cGroup_9; }",
"public Group getGroup_9() { return cGroup_9; }",
"public Group getGroup_9() { return cGroup_9; }",
"private void createNewGroup() {\r\n if(selectedNode != null) { \r\n DefaultMutableTreeNode nextNode = (DefaultMutableTreeNode)selectedNode.getNextNode();\r\n if(selectedNode.isLeaf() && !selectedNode.getAllowsChildren()) {\r\n CoeusOptionPane.showInfoDialog(coeusMessageResources.parseMessageKey(\"maintainSponsorHierarchy_exceptionCode.1254\"));\r\n return;\r\n } else if(selTreePath.getPathCount() == 10) {\r\n CoeusOptionPane.showInfoDialog(coeusMessageResources.parseMessageKey(\"maintainSponsorHierarchy_exceptionCode.1255\"));\r\n return;\r\n }else if (nextNode != null && nextNode.isLeaf()) {\r\n CoeusOptionPane.showInfoDialog(\"The group '\"+selectedNode.toString()+\"' has sponsors assigned to it. \\nCannot create subgroups for this group.\");\r\n return;\r\n }else {\r\n nextNode = new DefaultMutableTreeNode(\"New Group - \"+(selectedNode.getLevel()+1)+\".\"+selectedNode.getChildCount(),true);\r\n model.insertNodeInto(nextNode, selectedNode, selectedNode.getChildCount());\r\n TreePath newSelectionPath = selTreePath.pathByAddingChild(nextNode);\r\n sponsorHierarchyTree.clearSelection();\r\n sponsorHierarchyTree.addSelectionPath(newSelectionPath);\r\n sponsorHierarchyTree.startEditingAtPath(newSelectionPath);\r\n newGroup = true;\r\n saveRequired = true;\r\n }\r\n }\r\n }",
"private void createTopLevelPart() {\n\t\t//------------------------------------------------\n\t\t// Top Level\n\t\t//------------------------------------------------\n\t\ttopLevelCheckbox = new Button(generalSettingsGroup, SWT.CHECK);\n\t\ttopLevelCheckbox.setText(\"Top Level:\");\n\t\t\n\t\ttopLevelDeco = new ControlDecoration(topLevelCheckbox, SWT.LEFT | SWT.TOP);\n\t\ttopLevelDeco.setImage(SWTResourceManager.getImage(GeneralSettingsGroup.class, \"/org/eclipse/jface/fieldassist/images/info_ovr.gif\"));\n\t\ttopLevelDeco.setDescriptionText( \"A top level can be used if the csv data is structured in blocks,\"\n\t\t\t\t\t\t\t\t\t\t+ \"\\nwith a top level and sub corresponding sub levels, example: \"\n\t\t\t\t\t\t\t\t\t\t+ \"\\n\"\n\t\t\t\t\t\t\t\t\t\t+ \"\\n Level Description\\t\\tCount\"\n\t\t\t\t\t\t\t\t\t\t+ \"\\n ----- ------------\\t\\t-----\"\n\t\t\t\t\t\t\t\t\t\t+ \"\\n Top Warehouse A\\t10\"\n\t\t\t\t\t\t\t\t\t\t+ \"\\n Sub Apple\\t\\t2\"\n\t\t\t\t\t\t\t\t\t\t+ \"\\n Sub Durian\\t\\t8\"\n\t\t\t\t\t\t\t\t\t\t+ \"\\n Top Warehouse B\\t12\"\n\t\t\t\t\t\t\t\t\t\t+ \"\\n Sub Apple\\t\\t9\"\n\t\t\t\t\t\t\t\t\t\t+ \"\\n Sub Durian\\t\\t1\"\n\t\t\t\t\t\t\t\t\t\t+ \"\\n Sub Passionfruit\\t\\t2\" );\n\t\t\n\t\ttopLevelCheckbox.addSelectionListener(new SelectionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\n\t\t\t\tif(topLevelCheckbox.getSelection()){\n\t\t\t\t\t\n\t\t\t\t\tolderColumnCombo.getCombo().setEnabled(true);\t\t\n\t\t\t\t\tyoungerColumnCombo.getCombo().setEnabled(true);\t\t\n\t\t\t\t\ttopLevelField.setEnabled(true);\n\t\t\t\t\tsortResultCheckbox.setSelection(false);\n\t\t\t\t\tsortResultCheckbox.setEnabled(false);\n\t\t\t\t\t\n\t\t\t\t}else{\n\t\t\t\t\t\n\t\t\t\t\tolderColumnCombo.getCombo().setEnabled(false);\t\t\n\t\t\t\t\tyoungerColumnCombo.getCombo().setEnabled(false);\t\t\n\t\t\t\t\ttopLevelField.setEnabled(false);\t\n\t\t\t\t\tsortResultCheckbox.setEnabled(true);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent arg0) {}\n\t\t});\n\t\t\n\t\ttopLevelComposite = new Composite(generalSettingsGroup, SWT.NONE);\n\t\ttopLevelComposite.setLayout(new GridLayout(3, false));\n\t\tGridData gd_topLevelComposite = new GridData(SWT.FILL, SWT.CENTER, false, false, 2, 1);\n\t\tgd_topLevelComposite.heightHint = 30;\n\t\ttopLevelComposite.setLayoutData(gd_topLevelComposite);\n\t\t\n\t\t//---------------------------------\n\t\t// older Column Combo\n\t\tolderColumnCombo = new ColumnChooserCombo(topLevelComposite, SWT.NONE | SWT.READ_ONLY, CSVComparatorGUI.getOlderFileGroup());\n\t\tolderColumnCombo.setDescriptionText(\"Choose the column of the older file\\nused to determine if it is a topLevel.\");\n\t\tolderColumnCombo.getCombo().setEnabled(false);\t\n\t\t\n\t\tNotNullStringValidator olderValidator = new NotNullStringValidator(olderColumnCombo, SWT.BOTTOM | SWT.LEFT) {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic boolean checkPreconditions(){\n\t\t\t\t//only check if toplevel is enabled\n\t\t\t\treturn topLevelCheckbox.getSelection();\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic String getStringToValidate() {\n\t\t\t\treturn olderColumnCombo.getText();\n\t\t\t}\n\t\t};\n\t\t\n\t\tolderColumnCombo.setValidator(olderValidator);\n\t\tolderColumnCombo.setTag(\"ALWAYS\");\n\t\t\n\t\t\n\t\t//---------------------------------\n\t\t// younger Column Combo\n\t\tyoungerColumnCombo = new ColumnChooserCombo(topLevelComposite, SWT.NONE | SWT.READ_ONLY, CSVComparatorGUI.getYoungerFileGroup());\n\t\tyoungerColumnCombo.setDescriptionText(\"Choose the column of the younger file\\nused to determine if it is a topLevel.\");\n\t\tyoungerColumnCombo.getCombo().setEnabled(false);\t\n\t\t\n\t\tNotNullStringValidator youngerValidator = new NotNullStringValidator(youngerColumnCombo, SWT.BOTTOM | SWT.LEFT) {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic boolean checkPreconditions(){\n\t\t\t\t//only check if toplevel is enabled\n\t\t\t\treturn topLevelCheckbox.getSelection();\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic String getStringToValidate() {\n\t\t\t\treturn youngerColumnCombo.getText();\n\t\t\t}\n\t\t};\n\t\t\n\t\tyoungerColumnCombo.setValidator(youngerValidator);\n\t\tyoungerColumnCombo.setTag(\"ALWAYS\");\n\t\t\n\t\t//---------------------------------\n\t\t// FilePath Field\n\t\t\n\t\ttopLevelField = new Text(topLevelComposite, SWT.BORDER);\n\t\tGridData gd_topLevelField = new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1);\n\t\tgd_topLevelField.horizontalIndent = 5;\n\t\ttopLevelField.setLayoutData(gd_topLevelField);\n\t\ttopLevelField.setEnabled(false);\n\t\t\n\t\ttopLevelFieldDeco = new ControlDecoration(topLevelField, SWT.LEFT | SWT.TOP);\n\t\ttopLevelFieldDeco.setImage(SWTResourceManager.getImage(GeneralSettingsGroup.class, \"/org/eclipse/jface/fieldassist/images/info_ovr.gif\"));\n\t\ttopLevelFieldDeco.setDescriptionText(\"The value which identifies a row as a top level.\");\n\t\t\n\t\tNotNullStringValidator topLevelValidator = new NotNullStringValidator(topLevelField, SWT.BOTTOM | SWT.LEFT) {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic boolean checkPreconditions(){\n\t\t\t\t//only check if toplevel is enabled\n\t\t\t\treturn topLevelCheckbox.getSelection();\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic String getStringToValidate() {\n\t\t\t\treturn topLevelField.getText();\n\t\t\t}\n\t\t};\n\t\tnew Label(topLevelComposite, SWT.NONE);\n\t\t\n\t\ttopLevelField.addModifyListener(topLevelValidator);\n\t\t\n\t\ttopLevelValidator.setTag(\"ALWAYS\");\n\t\tCSVComparatorGUI.getValidatorEngine().addValidator(topLevelValidator);\n\t}",
"public abstract String getDefaultGroup();",
"public Group getGroup_9_0() { return cGroup_9_0; }",
"@Override\n public int getLevelNumber() {\n return 0;\n }",
"public Group()\n\t{\n\t\tthis.members = new ArrayList<>();\n\t\tthis.groupID= idCounter;\n\t\tidCounter++;\n\t}",
"protected void levelUp() {\n\t\tlevel++;\n\t\t// set up floors for next level\n\t\tint[] nextFloors = floors[level];\n\t\tint[] nextFurnishing = furnishings[level];\n\t\tfor(int i = 0; i < nextFloors.length; i++) {\n\t\t\tFloor newFloor = game.getFloorByKey(nextFloors[i]);\n\t\t\ttiles[i].setFloor(newFloor);\n\t\t\tif(nextFurnishing[i] != 0) {\n\t\t\t\tFurnishingDirectory newFurn = game.getFurnishingByKey(nextFurnishing[i]);\n\t\t\t\tnew Furnishing(newFurn, tiles[i]);\n\t\t\t}\n\t\t}\n\t}",
"@Test\n public void shouldTestIsBetweenTwoGroupsOnLevel() {\n this.rowGroupHeaderLayer.addGroupingLevel();\n // group spans Address and Facts\n this.rowGroupHeaderLayer.addGroup(1, \"Test\", 4, 7);\n\n // tests on level 0\n // additional level should not change the results\n shouldTestIsBetweenTwoGroups();\n\n // tests on level 1\n // note that if check on deeper level is false, it also needs to be\n // false on the upper level\n\n // move left reorderToLeftEdge\n assertTrue(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 0, true, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 1, true, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 2, true, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 3, true, MoveDirectionEnum.LEFT));\n assertTrue(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 4, true, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 5, true, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 6, true, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 7, true, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 8, true, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 9, true, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 10, true, MoveDirectionEnum.LEFT));\n assertTrue(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 11, true, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 12, true, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 13, true, MoveDirectionEnum.LEFT));\n\n // move right reorderToLeftEdge\n assertTrue(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 0, true, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 1, true, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 2, true, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 3, true, MoveDirectionEnum.RIGHT));\n assertTrue(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 4, true, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 5, true, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 6, true, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 7, true, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 8, true, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 9, true, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 10, true, MoveDirectionEnum.RIGHT));\n assertTrue(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 11, true, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 12, true, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 13, true, MoveDirectionEnum.RIGHT));\n\n // move left reorderToRightEdge\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 0, false, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 1, false, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 2, false, MoveDirectionEnum.LEFT));\n assertTrue(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 3, false, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 4, false, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 5, false, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 6, false, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 7, false, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 8, false, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 9, false, MoveDirectionEnum.LEFT));\n assertTrue(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 10, false, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 11, false, MoveDirectionEnum.LEFT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 12, false, MoveDirectionEnum.LEFT));\n assertTrue(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 13, false, MoveDirectionEnum.LEFT));\n\n // move right reorderToRightEdge\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 0, false, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 1, false, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 2, false, MoveDirectionEnum.RIGHT));\n assertTrue(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 3, false, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 4, false, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 5, false, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 6, false, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 7, false, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 8, false, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 9, false, MoveDirectionEnum.RIGHT));\n assertTrue(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 10, false, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 11, false, MoveDirectionEnum.RIGHT));\n assertFalse(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 12, false, MoveDirectionEnum.RIGHT));\n assertTrue(RowGroupUtils.isBetweenTwoGroups(this.rowGroupHeaderLayer, 1, 13, false, MoveDirectionEnum.RIGHT));\n\n // assertTrue(RowGroupUtils.isBetweenTwoGroups(this.columnGroupHeaderLayer,\n // 1, 0, true, MoveDirectionEnum.LEFT));\n // assertTrue(RowGroupUtils.isBetweenTwoGroups(this.columnGroupHeaderLayer,\n // 1, 4, true, MoveDirectionEnum.LEFT));\n // assertTrue(RowGroupUtils.isBetweenTwoGroups(this.columnGroupHeaderLayer,\n // 1, 11, true, MoveDirectionEnum.LEFT));\n // assertTrue(RowGroupUtils.isBetweenTwoGroups(this.columnGroupHeaderLayer,\n // 1, 13, false, MoveDirectionEnum.RIGHT));\n //\n // assertFalse(RowGroupUtils.isBetweenTwoGroups(this.columnGroupHeaderLayer,\n // 1, 8, true, MoveDirectionEnum.LEFT));\n // assertFalse(RowGroupUtils.isBetweenTwoGroups(this.columnGroupHeaderLayer,\n // 1, 5, true, MoveDirectionEnum.LEFT));\n\n // TODO remove group on level 0\n // no group on level 1 at this positions\n // assertTrue(RowGroupUtils.isBetweenTwoGroups(this.columnGroupHeaderLayer,\n // 1, 0, false, MoveDirectionEnum.LEFT));\n // assertTrue(RowGroupUtils.isBetweenTwoGroups(this.columnGroupHeaderLayer,\n // 1, 2, true, MoveDirectionEnum.LEFT));\n // assertTrue(RowGroupUtils.isBetweenTwoGroups(this.columnGroupHeaderLayer,\n // 1, 12, true, MoveDirectionEnum.LEFT));\n // assertTrue(RowGroupUtils.isBetweenTwoGroups(this.columnGroupHeaderLayer,\n // 1, 13, true, MoveDirectionEnum.RIGHT));\n }",
"@Override\n\tpublic void setLevelNumber(int i) {\n\t\tnumLevel =i;\n\t}",
"public IntervalBasedHierarchy setUpGroupWithFixWidth(int width) {\n int downSize = this.intervals.size();\n int level = 0;\n List<IntervalNode> downList = this.intervals;\n while (downSize > width) {\n List<IntervalNode> tmpList = new ArrayList<>();\n int size = downSize / width;\n int left = downSize % width;\n IntervalNode lNode = null;\n IntervalNode hNode = null;\n int i;\n for (i = 0; i < size; i++) {\n lNode = downList.get(i * width);\n hNode = downList.get((i + 1) * width - 1);\n level(level).addGroup(width, lNode.lBound.compareTo(hNode.hBound) == 0\n ? lNode.lBound.toString()\n : lNode.lBound.toString() + \"~\" + hNode.hBound.toString());\n tmpList.add(new IntervalNode(lNode.lBound, hNode.hBound));\n }\n if (left != 0) {\n lNode = downList.get(i * width);\n hNode = downList.get(downSize - 1);\n level(level).addGroup(left, lNode.lBound.compareTo(hNode.hBound) == 0\n ? lNode.lBound.toString()\n : lNode.lBound.toString() + \"~\" + hNode.hBound.toString());\n tmpList.add(new IntervalNode(lNode.lBound, hNode.hBound));\n }\n\n downSize = tmpList.size();\n downList = tmpList;\n ++level;\n }\n return this;\n }",
"public Group() {\r\n\t}",
"public LevelSelect() {\n\t\t\n\t}",
"public static final void initLevel()\n {\n current = new JARLevel();\n\n //assign blocks, enemies, the player and all items\n current.iWalls = new JARWall[]\n {\n new JARWall( 30 + 256, current.iLevelBoundY - 310 + 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 384, current.iLevelBoundY - 320 + 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 512, current.iLevelBoundY - 300 + 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 640, current.iLevelBoundY - 290 + 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 768, current.iLevelBoundY - 280 + 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 896, current.iLevelBoundY - 270 + 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 1152, current.iLevelBoundY - 260 + 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 1408, current.iLevelBoundY - 250 + 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n\n new JARWall( 30 + 1664, current.iLevelBoundY - 240 - 32, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 1664, current.iLevelBoundY - 240 + 0, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 1664, current.iLevelBoundY - 240 + 32, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 1664, current.iLevelBoundY - 240 - 2 * 32, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 1664, current.iLevelBoundY - 240 - 3 * 32, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 1664, current.iLevelBoundY - 240 - 4 * 32, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n\n new JARWall( 30 + 1920, current.iLevelBoundY - 230 + 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n new JARWall( 30 + 2100, current.iLevelBoundY - 230 + 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.EYes ),\n\n new JARWall( 66, current.iLevelBoundY - 324, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n\n new JARWall( 0, current.iLevelBoundY - 64, JARWall.WALL_STONE_1, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 128, current.iLevelBoundY - 64, JARWall.WALL_STONE_1, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 256, current.iLevelBoundY - 64, JARWall.WALL_STONE_1, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 384, current.iLevelBoundY - 64, JARWall.WALL_STONE_1, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 512, current.iLevelBoundY - 64, JARWall.WALL_STONE_1, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 640, current.iLevelBoundY - 64, JARWall.WALL_STONE_1, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 768, current.iLevelBoundY - 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 896, current.iLevelBoundY - 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 1024, current.iLevelBoundY - 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 1152, current.iLevelBoundY - 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 1280, current.iLevelBoundY - 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 1408, current.iLevelBoundY - 64, JARWall.WALL_STONE_2, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 1536, current.iLevelBoundY - 64, JARWall.WALL_STONE_3, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 1664, current.iLevelBoundY - 64, JARWall.WALL_STONE_3, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 1792, current.iLevelBoundY - 64, JARWall.WALL_STONE_3, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 1920, current.iLevelBoundY - 64, JARWall.WALL_STONE_3, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 2048, current.iLevelBoundY - 64, JARWall.WALL_STONE_3, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n new JARWall( 2176, current.iLevelBoundY - 64, JARWall.WALL_STONE_3, LibRect2D.Elevation.ENone, PassThrough.ENo ),\n };\n current.iEnemies = new JARPlayer[]\n {\n/*\n new JARPlayer( 500, GameObjectType.EEnemy, JARPlayerTemplate.ENEMY_WEAK ),\n new JARPlayer( 1000, GameObjectType.EEnemy, JARPlayerTemplate.ENEMY_WEAK ),\n new JARPlayer( 1500, GameObjectType.EEnemy, JARPlayerTemplate.ENEMY_WEAK ),\n new JARPlayer( 2000, GameObjectType.EEnemy, JARPlayerTemplate.ENEMY_WEAK ),\n new JARPlayer( 2500, GameObjectType.EEnemy, JARPlayerTemplate.ENEMY_STRONG ),\n new JARPlayer( 3000, GameObjectType.EEnemy, JARPlayerTemplate.ENEMY_STRONG ),\n new JARPlayer( 3500, GameObjectType.EEnemy, JARPlayerTemplate.ENEMY_STRONG ),\n new JARPlayer( 4000, GameObjectType.EEnemy, JARPlayerTemplate.ENEMY_STRONG ),\n new JARPlayer( 4500, GameObjectType.EEnemy, JARPlayerTemplate.ENEMY_STRONG )\n*/\n };\n\n current.iPlayer = new JARPlayer( 0, GameObjectType.EPlayer, JARPlayerTemplate.USER );\n\n current.iItems = new JARItem[]\n {\n //new JARItem( 50, 700, JARItemType.ITEM_TYPE_COIN ),\n //new JARItem( 150, 700, JARItemType.ITEM_TYPE_COIN ),\n //new JARItem( 250, 700, JARItemType.ITEM_TYPE_COIN ),\n new JARItem( 550, 700, JARItemType.ITEM_TYPE_CHERRY ),\n new JARItem( 650, 700, JARItemType.ITEM_TYPE_CHERRY ),\n new JARItem( 750, 700, JARItemType.ITEM_TYPE_CHERRY ),\n new JARItem( 1050, 700, JARItemType.ITEM_TYPE_APPLE ),\n new JARItem( 1150, 700, JARItemType.ITEM_TYPE_APPLE ),\n new JARItem( 1250, 700, JARItemType.ITEM_TYPE_APPLE ),\n new JARItem( 1550, 700, JARItemType.ITEM_TYPE_ORANGE ),\n new JARItem( 1650, 700, JARItemType.ITEM_TYPE_ORANGE ),\n new JARItem( 1750, 700, JARItemType.ITEM_TYPE_ORANGE ),\n new JARItem( 2050, 700, JARItemType.ITEM_TYPE_PEAR ),\n new JARItem( 2150, 700, JARItemType.ITEM_TYPE_PEAR ),\n new JARItem( 2250, 700, JARItemType.ITEM_TYPE_PEAR ),\n new JARItem( 2550, 700, JARItemType.ITEM_TYPE_STRAWBERRY ),\n new JARItem( 2650, 700, JARItemType.ITEM_TYPE_STRAWBERRY ),\n new JARItem( 2750, 700, JARItemType.ITEM_TYPE_STRAWBERRY ),\n };\n }",
"public void setCurrentLevel(String initCurrentLevel)\n {\n currentLevel = initCurrentLevel;\n }",
"public GLineGroup() {\n\t\t// empty\n\t}",
"private void updateGroup(String newGroupName, int level) {\r\n Equals levelFilter = new Equals(fieldName[level], previousNodeValue);\r\n CoeusVector cvFilteredData = (CoeusVector)cvHierarchyData.filter(levelFilter);\r\n if(cvFilteredData != null && cvFilteredData.size()>0) {\r\n for (int index=0; index < cvFilteredData.size(); index++) {\r\n sponsorHierarchyBean = (SponsorHierarchyBean)cvFilteredData.get(index);\r\n sponsorHierarchyBean.setAcType(TypeConstants.UPDATE_RECORD);\r\n switch(level) {\r\n case 1:\r\n sponsorHierarchyBean.setLevelOne(newGroupName);\r\n break;\r\n case 2:\r\n sponsorHierarchyBean.setLevelTwo(newGroupName);\r\n break;\r\n case 3:\r\n sponsorHierarchyBean.setLevelThree(newGroupName);\r\n break;\r\n case 4:\r\n sponsorHierarchyBean.setLevelFour(newGroupName);\r\n break;\r\n case 5:\r\n sponsorHierarchyBean.setLevelFive(newGroupName);\r\n break;\r\n case 6:\r\n sponsorHierarchyBean.setLevelSix(newGroupName);\r\n break;\r\n case 7:\r\n sponsorHierarchyBean.setLevelSeven(newGroupName);\r\n break;\r\n case 8:\r\n sponsorHierarchyBean.setLevelEight(newGroupName);\r\n break;\r\n case 9:\r\n sponsorHierarchyBean.setLevelNine(newGroupName);\r\n break;\r\n case 10:\r\n sponsorHierarchyBean.setLevelTen(newGroupName);\r\n break;\r\n }\r\n }\r\n }\r\n }",
"public SmilGroup() {\n\t\tsmilFiles = new LinkedList<D202SmilFile>();\n\t\tdiskUsage = -1;\n\t\tallFiles = new HashSet<FilesetFile>();\n\t\t//System.err.println(\"new group\");\n\t}",
"void createNewLevel(int level);",
"private Group createTopLevelGroup(Group specifiedGroup) {\n SequentialGroup group = createSequentialGroup();\n if (getAutoCreateContainerGaps()) {\n group.addSpring(new ContainerAutoPreferredGapSpring());\n group.addGroup(specifiedGroup);\n group.addSpring(new ContainerAutoPreferredGapSpring());\n } else {\n group.addGroup(specifiedGroup);\n }\n return group;\n }",
"public void buildInCell() {\n this.level++;\n if (this.level == 4) {\n this.setFreeSpace(false);\n }\n }",
"private void initLevel () \n {\n score = 0;\n scoreVisual = score;\n level = new Level(Constants.LEVEL_01);\n cameraHelper.setTarget(level.bird);\n initPhysics();\n }",
"private void buildGroups() {\n if(groups.size() == 1){\n Group aGroup = groups.get(0);\n for (Team team : teams) {\n aGroup.add(team);\n }\n return;\n }\n\n for (Team team : teams) {\n groups.get(getIndex()).add(team);\n }\n }",
"protected void setRoom() {\n\t\tfor(int x = 0; x < xSize; x++) {\n\t\t\tfor (int y = 0; y < ySize; y++) {\n\t\t\t\tif (WALL_GRID[y][x] == 1) {\n\t\t\t\t\tlevelSetup[x][y] = new SimpleRoom();\n\t\t\t\t} else{\n\t\t\t\t\tlevelSetup[x][y] = new ForbiddenRoom();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\n\t\t// put special rooms\n\t\tlevelSetup[6][0] = new RoomWithLockedDoor();\n\t\tlevelSetup[2][6] = new FragileRoom();\n\n\t}",
"public void init(Level level) {\r\n\t\tthis.level = level;\r\n\t}",
"private void initNewLevel() {\n\t\tmaze = new Maze(\"maze.xml\");\n\t\tPoint position = Cell.positionOfCell(26, 13);\n\t\tposition.x += 7;\n\t\tif (highScore.getScore() == 0)\n\t\t\tpacman = new Pacman(maze, position, maze.cellAt(26, 13),\n\t\t\t\t\tDirection.RIGHT, 3);\n\t\telse\n\t\t\tpacman = new Pacman(maze, position, maze.cellAt(26, 13),\n\t\t\t\t\tDirection.RIGHT, pacman.getNumberOfLives());\n\t\tinitGhosts();\n\n\t\ttimer.stop();\n\t\tlevelStartTimer.restart();\n\t}",
"public void addLevel()\r\n {\r\n tables.addFirst( new HashMap<String,T>() );\r\n counts.addFirst( 0 );\r\n }",
"public void initLevelGrid(int[][] initGrid, int initGridColumns, int initGridRows)\n {\n // KEEP ALL THE GRID INFO\n levelGrid = initGrid;\n gridColumns = initGridColumns;\n gridRows = initGridRows;\n\n // AND BUILD THE TILE GRID FOR STORING THE TILES\n // SINCE WE NOW KNOW ITS DIMENSIONS\n tileGrid = new ArrayList[gridColumns][gridRows];\n for (int i = 0; i < gridColumns; i++)\n {\n for (int j = 0; j < gridRows; j++)\n {\n // EACH CELL HAS A STACK OF TILES, WE'LL USE\n // AN ARRAY LIST FOR THE STACK\n tileGrid[i][j] = new ArrayList();\n }\n }\n // MAKE ALL THE TILES VISIBLE\n enableTiles(true);\n }",
"protected int createGroup() {\n\t\tint id = _motherGroupID + 1;\n\t\twhile (_soundNodes.containsKey(id)) { id++; }\n\t\tcreateGroup(id);\n\t\treturn id;\n\t}",
"public LG(){\n\t\tchildren = new LinkedHashMap<Loop, LinkedHashSet<Loop>>();\n\t\tparent = new LinkedHashMap<Loop, Loop>();\n\t\tloops = new LinkedHashSet<Loop>();\n\t\tloopCounter = new LinkedHashMap<Loop, Integer>();\n\t}",
"public void initClusters(){\n\t\tUnitRow unitRow = data.getUnitRow();\n\t\tUnit currentUnit = null;\n\t\tLeaf leaf = null;\n\n\t\tfor (int i = 0; i < unitRow.getLength(); i++){\n\t\t\tcurrentUnit = unitRow.getUnit(i);\n\t\t\tleaf = new Leaf(currentUnit);\n\t\t\tclusters.add(leaf);\n\t\t}\n\t\tSystem.out.println(\"Clusters initialized.\");\n\t}",
"public UsersGroupsRecord() {\n\t\tsuper(org.kallithea.ldap.sync.jooq.tables.UsersGroups.USERS_GROUPS);\n\t}",
"public GridBagPanel init0()\n {\n myGBC.gridx = myGBC.gridy = 0;\n return this;\n }",
"public Level(int levelNumber)\r\n\t{\t\r\n\t\tlevelNum = levelNumber;\r\n\t\tlevelFileName = \"level\"+levelNum+\".txt\";\r\n\t\tlistFileName = \"level\"+levelNum+\"items.txt\";\r\n\t\tmakeCommonObjects();\r\n\t\tgrid = new Grid(levelFileName);\r\n\t\tGridSquare startSquare = grid.startLocation();\r\n\t\tplayer = new Player((int)startSquare.rect.x,(int)startSquare.platform.getBoundingRectangle().y+3);\r\n\t\tAndroidGame.camera.position.x = player.getX();\r\n\t\tAndroidGame.camera.position.y = player.getY();\r\n\t\tbackground = new Background(levelNumber, grid);\r\n\t\tdoorBubble = new OffScreenBubble(grid.getFinish());\r\n\t\tif(grid.getKey()!=null)\r\n\t\t{\r\n\t\t\thasKey = true;\r\n\t\t\tkeyBubble = new OffScreenBubble(grid.getKey());\r\n\t\t}\r\n\t\tplayer.reset(grid);\r\n\t}",
"private static void tileInit(int i, int j, Group tileGroup, int i2, int i3, int i4, int i5) {\n Tile tile = new Tile(i, j, (i2), (i3));\n tile.setTranslateX((i4));\n tile.setTranslateY(i5);\n tileGroup.getChildren().add(tile);\n }",
"private PaletteContainer createDefault1Group() {\r\n\t\tPaletteGroup paletteContainer = new PaletteGroup(\r\n\t\t\t\tMessages.Default1Group_title);\r\n\t\tpaletteContainer.setId(\"createDefault1Group\"); //$NON-NLS-1$\r\n\t\tpaletteContainer.setDescription(Messages.Default1Group_desc);\r\n\t\tpaletteContainer.add(createDocTopic1CreationTool());\r\n\t\treturn paletteContainer;\r\n\t}",
"public final void rule__AstInitialize__Group__9() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:13631:1: ( rule__AstInitialize__Group__9__Impl )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:13632:2: rule__AstInitialize__Group__9__Impl\n {\n pushFollow(FOLLOW_rule__AstInitialize__Group__9__Impl_in_rule__AstInitialize__Group__927614);\n rule__AstInitialize__Group__9__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"private void fillCacheGroupState(CheckpointRecord cpRec) throws IgniteCheckedException {\n GridCompoundFuture grpHandleFut = asyncRunner == null ? null : new GridCompoundFuture();\n\n for (CacheGroupContext grp : cctx.cache().cacheGroups()) {\n if (grp.isLocal() || !grp.walEnabled())\n continue;\n\n Runnable r = () -> {\n ArrayList<GridDhtLocalPartition> parts = new ArrayList<>(grp.topology().localPartitions().size());\n\n for (GridDhtLocalPartition part : grp.topology().currentLocalPartitions())\n parts.add(part);\n\n CacheState state = new CacheState(parts.size());\n\n for (GridDhtLocalPartition part : parts) {\n state.addPartitionState(\n part.id(),\n part.dataStore().fullSize(),\n part.updateCounter(),\n (byte)part.state().ordinal()\n );\n }\n\n synchronized (cpRec) {\n cpRec.addCacheGroupState(grp.groupId(), state);\n }\n };\n\n if (asyncRunner == null)\n r.run();\n else\n try {\n GridFutureAdapter<?> res = new GridFutureAdapter<>();\n\n asyncRunner.execute(U.wrapIgniteFuture(r, res));\n\n grpHandleFut.add(res);\n }\n catch (RejectedExecutionException e) {\n assert false : \"Task should never be rejected by async runner\";\n\n throw new IgniteException(e); //to protect from disabled asserts and call to failure handler\n }\n }\n\n if (grpHandleFut != null) {\n grpHandleFut.markInitialized();\n\n grpHandleFut.get();\n }\n }",
"public Sudoku() {\n\t\tfor (int i = 0; i < 9; i++) {\n\t\t\tfor (int j = 0; j < 9; j++) {\n\t\t\t\tthis.initialState[i][j] = this.currentState[i][j] = 0;\n\t\t\t}\n\t\t}\n\t}",
"GroupCell createGroupCell();",
"protected VoltexGroup() {\n\t\tsuper();\n\t}",
"public FlxRadioButtonGroup()\n\t{\n\t\tthis(0);\n\t}",
"private void setMediumDifficultyGridUp1(){\n\t\tmediumDifficulty1 = new SudokuGrid();\n\t\tCell[][] _matrix = {{new Cell(6), new Cell(0), new Cell(0), new Cell(0), new Cell(1), new Cell(0), new Cell(0), new Cell(7), new Cell(0)},\n\t\t\t\t\t\t\t{new Cell(8), new Cell(0), new Cell(5), new Cell(7), new Cell(0), new Cell(0), new Cell(0), new Cell(4), new Cell(0)},\n\t\t\t\t\t\t\t{new Cell(0), new Cell(2), new Cell(0), new Cell(5), new Cell(0), new Cell(0), new Cell(6), new Cell(0), new Cell(0)},\n\t\t\t\t\t\t\t{new Cell(0), new Cell(3), new Cell(0), new Cell(0), new Cell(0), new Cell(4), new Cell(7), new Cell(0), new Cell(0)},\n\t\t\t\t\t\t\t{new Cell(7), new Cell(0), new Cell(0), new Cell(3), new Cell(0), new Cell(8), new Cell(0), new Cell(0), new Cell(2)},\n\t\t\t\t\t\t\t{new Cell(0), new Cell(0), new Cell(9), new Cell(1), new Cell(0), new Cell(0), new Cell(0), new Cell(5), new Cell(0)},\n\t\t\t\t\t\t\t{new Cell(0), new Cell(0), new Cell(2), new Cell(0), new Cell(0), new Cell(1), new Cell(0), new Cell(8), new Cell(0)},\n\t\t\t\t\t\t\t{new Cell(0), new Cell(7), new Cell(0), new Cell(0), new Cell(0), new Cell(5), new Cell(3), new Cell(0), new Cell(6)},\n\t\t\t\t\t\t\t{new Cell(0), new Cell(6), new Cell(0), new Cell(0), new Cell(2), new Cell(0), new Cell(0), new Cell(0), new Cell(7)}};\n\t\tmediumDifficulty1.set_matrix(_matrix);\n\t}",
"private void createGrpClinicSelection() {\n\n\t}",
"public void initSubprojects(){\n\t\tArrayList<SubprojectField> fieldsFirestation=new ArrayList<SubprojectField>(Arrays.asList(\n\t\t\t\tnew SubprojectField(10, false, false),\n\t\t\t\tnew SubprojectField(10, false, false),\n\t\t\t\tnew SubprojectField(50, true, false),\n\t\t\t\tnew SubprojectField(10, false, false),\n\t\t\t\tnew SubprojectField(20, false, false),\n\t\t\t\tnew SubprojectField(30, false, false),\n\t\t\t\tnew SubprojectField(40, true, false),\n\t\t\t\tnew SubprojectField(20, false, false),\n\t\t\t\tnew SubprojectField(50, false, true)));\n\t\tprojectsAvailable.add(new Subproject(\"Feuerwache\",fieldsFirestation,0));\n\t\tArrayList<SubprojectField> fieldsNorthStreet=new ArrayList<SubprojectField>(Arrays.asList(\n\t\t\t\tnew SubprojectField(10, false, false),\n\t\t\t\tnew SubprojectField(30, false, false),\n\t\t\t\tnew SubprojectField(10, false, false),\n\t\t\t\tnew SubprojectField(20, false, false),\n\t\t\t\tnew SubprojectField(50, false, false),\n\t\t\t\tnew SubprojectField(20, true, false),\n\t\t\t\tnew SubprojectField(10, false, false),\n\t\t\t\tnew SubprojectField(30, true, false),\n\t\t\t\tnew SubprojectField(30, false, true)));\n\t\tprojectsAvailable.add(new Subproject(\"Landebahn Nord\",fieldsNorthStreet,1));\n\t\tArrayList<SubprojectField> fieldsSouthStreet=new ArrayList<SubprojectField>(Arrays.asList(\n\t\t\t\tnew SubprojectField(20, false, false),\n\t\t\t\tnew SubprojectField(10, false, false),\n\t\t\t\tnew SubprojectField(20, true, false),\n\t\t\t\tnew SubprojectField(10, false, false),\n\t\t\t\tnew SubprojectField(50, false, false),\n\t\t\t\tnew SubprojectField(50, false, false),\n\t\t\t\tnew SubprojectField(10, true, false),\n\t\t\t\tnew SubprojectField(20, false, false),\n\t\t\t\tnew SubprojectField(40, false, true)));\n\t\tprojectsAvailable.add(new Subproject(\"Landebahn S�d\",fieldsSouthStreet,2));\n\t\tArrayList<SubprojectField> fieldsTerminalA=new ArrayList<SubprojectField>(Arrays.asList(\n\t\t\t\tnew SubprojectField(20, false, false),\n\t\t\t\tnew SubprojectField(20, false, false),\n\t\t\t\tnew SubprojectField(10, true, false),\n\t\t\t\tnew SubprojectField(30, false, false),\n\t\t\t\tnew SubprojectField(10, true, false),\n\t\t\t\tnew SubprojectField(50, false, true)));\n\t\tprojectsAvailable.add(new Subproject(\"Terminal A\",fieldsTerminalA,3));\n\t\tArrayList<SubprojectField> fieldsTerminalB=new ArrayList<SubprojectField>(Arrays.asList(\n\t\t\t\tnew SubprojectField(20, false, false),\n\t\t\t\tnew SubprojectField(10, false, false),\n\t\t\t\tnew SubprojectField(30, true, false),\n\t\t\t\tnew SubprojectField(10, false, false),\n\t\t\t\tnew SubprojectField(10, false, false),\n\t\t\t\tnew SubprojectField(50, true, false),\n\t\t\t\tnew SubprojectField(20, false, false),\n\t\t\t\tnew SubprojectField(50, false, true)));\n\t\tprojectsAvailable.add(new Subproject(\"Terminal B\",fieldsTerminalB,4));\n\t\tArrayList<SubprojectField> fieldsMainTerminal=new ArrayList<SubprojectField>(Arrays.asList(\n\t\t\t\tnew SubprojectField(20, false, false),\n\t\t\t\tnew SubprojectField(10, true, false),\n\t\t\t\tnew SubprojectField(30, false, false),\n\t\t\t\tnew SubprojectField(10, false, false),\n\t\t\t\tnew SubprojectField(10, false, false),\n\t\t\t\tnew SubprojectField(20, true, false),\n\t\t\t\tnew SubprojectField(50, true, false),\n\t\t\t\tnew SubprojectField(10, false, false),\n\t\t\t\tnew SubprojectField(50, false, true)));\n\t\tprojectsAvailable.add(new Subproject(\"Hauptterminal\",fieldsMainTerminal,5));\n\t\tArrayList<SubprojectField> fieldsParkStation=new ArrayList<SubprojectField>(Arrays.asList(\n\t\t\t\tnew SubprojectField(50, false, false),\n\t\t\t\tnew SubprojectField(50, false, false),\n\t\t\t\tnew SubprojectField(50, true, false),\n\t\t\t\tnew SubprojectField(20, false, false),\n\t\t\t\tnew SubprojectField(20, true, false),\n\t\t\t\tnew SubprojectField(20, false, false),\n\t\t\t\tnew SubprojectField(50, false, false),\n\t\t\t\tnew SubprojectField(20, false, true)));\n\t\tprojectsAvailable.add(new Subproject(\"Parkplatz\",fieldsParkStation,6));\n\t\tArrayList<SubprojectField> fieldsPreStation=new ArrayList<SubprojectField>(Arrays.asList(\n\t\t\t\tnew SubprojectField(20, false, false),\n\t\t\t\tnew SubprojectField(10, false, false),\n\t\t\t\tnew SubprojectField(50, true, false),\n\t\t\t\tnew SubprojectField(20, false, false),\n\t\t\t\tnew SubprojectField(50, false, false),\n\t\t\t\tnew SubprojectField(20, false, true)));\n\t\tprojectsAvailable.add(new Subproject(\"Vorfeld\",fieldsPreStation,7));\n\t}",
"public CreateGroup() {\n initComponents();\n start();\n }",
"public Kabasuji(ArrayList<Level> level){\n\t\tthis.levels = level;\n\t\t@SuppressWarnings(\"unused\")\n\t\tLevelSelection levelSec = new LevelSelection(level);\n\t}",
"private void sameGroup() {\n if(winningHoleGroup == 0){\n max = 9;\n min = 0;\n }\n if(winningHoleGroup == 1){\n max = 19;\n min = 10;\n }\n if(winningHoleGroup == 2){\n max = 29;\n min = 20;\n }\n if(winningHoleGroup == 3){\n max = 39;\n min = 30;\n }\n if(winningHoleGroup == 4){\n max = 49;\n min = 40;\n }\n }",
"public GroupLayoutRonald ()\n {\n groupFunction();\n }",
"private void initGrille() {\n this.setLayout(new GridLayout(8, 8));\n Color backgroundColor = Color.WHITE;\n for (int i = 7; i >= 0; i--) {\n for (int j = 0; j < 8; j++) {\n CaseJeu c = new CaseJeu(j, i, backgroundColor, fenetre);\n if (j != 7) {\n backgroundColor = (backgroundColor.equals(Color.GRAY)) ? Color.WHITE : Color.GRAY;\n }\n this.add(c);\n }\n }\n }",
"private BranchGroup createBranchGroup() {\n BranchGroup bg = new BranchGroup();\n\n TransformGroup tg = new TransformGroup();\n tg.addChild(new ColorCube(0.3f));\n\n // creo un'istanza Transform3D per ogni asse\n Transform3D rotationX = new Transform3D();\n Transform3D rotationY = new Transform3D();\n Transform3D rotationZ = new Transform3D();\n\n // applico le trasformazioni tramite \"rotX\", \"rotY\" e \"rotZ\"\n rotationX.rotX(Math.PI * 0.2d);\n rotationY.rotY(Math.PI * 0.2d);\n\n // Unisco le trasformazioni\n rotationY.mul(rotationX);\n rotationZ.rotZ(Math.PI * 0.2d);\n rotationZ.mul(rotationY);\n\n // applico la trasformazione al TransformGroup e la aggiungo al branchgroup\n tg.setTransform(rotationZ); \n bg.addChild(tg);\n\n return bg;\n }",
"public void initGrid()\n {\n\tfor (int y=0; y<cases.length; y++)\n \t{\n for (int x=0; x<cases[y].length; x++)\n {\n\t\tcases[y][x] = new Case();\n }\n\t}\n\t\n\tint pos_y_case1 = customRandom(4);\n\tint pos_x_case1 = customRandom(4);\n\t\n\tint pos_y_case2 = customRandom(4);\n\tint pos_x_case2 = customRandom(4);\n\t\t\n\twhile ((pos_y_case1 == pos_y_case2) && (pos_x_case1 == pos_x_case2))\n\t{\n pos_y_case2 = customRandom(4);\n pos_x_case2 = customRandom(4);\n\t}\n\t\t\n\tcases[pos_y_case1][pos_x_case1] = new Case(true);\n\tcases[pos_y_case2][pos_x_case2] = new Case(true);\n }",
"public void generateLevel() {\n\t\tfor (int y = 0; y < this.height; y++) {\n\t\t\tfor (int x = 0; x < this.width; x++) {\n\t\t\t\tif (x * y % 10 < 5)\n\t\t\t\t\ttiles[x + y * width] = Tile.GRASS.getId();\n\t\t\t\telse\n\t\t\t\t\ttiles[x + y * width] = Tile.STONE.getId();\n\t\t\t}\n\t\t}\n\t}",
"public void groupSelectedFurniture() {\n List<HomePieceOfFurniture> selectedFurniture = getMovableSelectedFurniture();\n if (!selectedFurniture.isEmpty()) {\n final boolean basePlanLocked = this.home.isBasePlanLocked();\n final boolean allLevelsSelection = this.home.isAllLevelsSelection();\n final List<Selectable> oldSelection = this.home.getSelectedItems();\n List<HomePieceOfFurniture> homeFurniture = this.home.getFurniture();\n // Sort the grouped furniture in the ascending order of their index in home or their group\n Map<HomeFurnitureGroup, TreeMap<Integer, HomePieceOfFurniture>> groupedFurnitureMap =\n new HashMap<HomeFurnitureGroup, TreeMap<Integer, HomePieceOfFurniture>>();\n int groupedFurnitureCount = 0;\n for (HomePieceOfFurniture piece : selectedFurniture) {\n HomeFurnitureGroup group = getPieceOfFurnitureGroup(piece, null, homeFurniture);\n TreeMap<Integer, HomePieceOfFurniture> sortedMap = groupedFurnitureMap.get(group);\n if (sortedMap == null) {\n sortedMap = new TreeMap<Integer, HomePieceOfFurniture>();\n groupedFurnitureMap.put(group, sortedMap);\n }\n if (group == null) {\n sortedMap.put(homeFurniture.indexOf(piece), piece);\n } else {\n sortedMap.put(group.getFurniture().indexOf(piece), piece);\n }\n groupedFurnitureCount++;\n }\n final HomePieceOfFurniture [] groupedPieces = new HomePieceOfFurniture [groupedFurnitureCount]; \n final int [] groupedPiecesIndex = new int [groupedPieces.length];\n final Level [] groupedPiecesLevel = new Level [groupedPieces.length];\n final float [] groupPiecesElevation = new float [groupedPieces.length];\n final boolean [] groupPiecesVisible = new boolean [groupedPieces.length];\n final HomeFurnitureGroup [] groupedPiecesGroups = new HomeFurnitureGroup [groupedPieces.length];\n Level minLevel = this.home.getSelectedLevel();\n int i = 0;\n for (Map.Entry<HomeFurnitureGroup, TreeMap<Integer, HomePieceOfFurniture>> sortedMapEntry : groupedFurnitureMap.entrySet()) {\n for (Map.Entry<Integer, HomePieceOfFurniture> pieceEntry : sortedMapEntry.getValue().entrySet()) {\n HomePieceOfFurniture piece = pieceEntry.getValue();\n groupedPieces [i] = piece;\n groupedPiecesIndex [i] = pieceEntry.getKey();\n groupedPiecesLevel [i] = piece.getLevel();\n groupPiecesElevation [i] = piece.getElevation();\n groupPiecesVisible [i] = piece.isVisible();\n groupedPiecesGroups [i] = sortedMapEntry.getKey();\n if (groupedPiecesLevel [i] != null) {\n if (minLevel == null\n || groupedPiecesLevel [i].getElevation() < minLevel.getElevation()) {\n minLevel = groupedPiecesLevel [i];\n }\n }\n i++;\n }\n } \n final HomeFurnitureGroup group;\n if (selectedFurniture.indexOf(this.leadSelectedPieceOfFurniture) > 0) {\n group = createHomeFurnitureGroup(Arrays.asList(groupedPieces), this.leadSelectedPieceOfFurniture);\n } else {\n group = createHomeFurnitureGroup(Arrays.asList(groupedPieces));\n }\n // Store piece elevation that could have been updated during grouping\n final float [] groupPiecesNewElevation = new float [groupedPieces.length];\n i = 0;\n for (HomePieceOfFurniture piece : groupedPieces) {\n groupPiecesNewElevation [i++] = piece.getElevation();\n }\n TreeMap<Integer, HomePieceOfFurniture> homeSortedMap = groupedFurnitureMap.get(null);\n final int groupIndex = homeSortedMap != null \n ? homeSortedMap.lastKey() + 1 - groupedPieces.length\n : homeFurniture.size();\n final boolean movable = group.isMovable();\n final Level groupLevel = minLevel;\n \n doGroupFurniture(groupedPieces, new HomeFurnitureGroup [] {group}, \n null, new int [] {groupIndex}, new Level [] {groupLevel}, basePlanLocked, false);\n if (this.undoSupport != null) {\n UndoableEdit undoableEdit = new AbstractUndoableEdit() {\n @Override\n public void undo() throws CannotUndoException {\n super.undo();\n doUngroupFurniture(new HomeFurnitureGroup [] {group}, groupedPieces, \n groupedPiecesGroups, groupedPiecesIndex, groupedPiecesLevel, basePlanLocked, allLevelsSelection);\n for (int i = 0; i < groupedPieces.length; i++) {\n groupedPieces [i].setElevation(groupPiecesElevation [i]);\n groupedPieces [i].setVisible(groupPiecesVisible [i]);\n }\n home.setSelectedItems(oldSelection);\n }\n \n @Override\n public void redo() throws CannotRedoException {\n super.redo();\n for (int i = 0; i < groupedPieces.length; i++) {\n groupedPieces [i].setElevation(groupPiecesNewElevation [i]);\n groupedPieces [i].setLevel(null);\n }\n group.setMovable(movable);\n group.setVisible(true);\n doGroupFurniture(groupedPieces, new HomeFurnitureGroup [] {group}, \n null, new int [] {groupIndex}, new Level [] {groupLevel}, basePlanLocked, false);\n }\n \n @Override\n public String getPresentationName() {\n return preferences.getLocalizedString(FurnitureController.class, \"undoGroupName\");\n }\n };\n this.undoSupport.postEdit(undoableEdit);\n }\n }\n }"
] | [
"0.5949413",
"0.58992034",
"0.5763305",
"0.5713158",
"0.569083",
"0.56508034",
"0.56157005",
"0.55982107",
"0.5574523",
"0.55720395",
"0.55590266",
"0.5534222",
"0.5502566",
"0.5501375",
"0.5454127",
"0.5452388",
"0.5421682",
"0.54071814",
"0.539486",
"0.5361641",
"0.5361641",
"0.5361641",
"0.5361641",
"0.5361641",
"0.5361641",
"0.5361641",
"0.5361641",
"0.5361641",
"0.5361641",
"0.5361641",
"0.5361641",
"0.5361641",
"0.5361641",
"0.53511953",
"0.53452563",
"0.5343814",
"0.53391224",
"0.53295624",
"0.53159404",
"0.5302422",
"0.5285622",
"0.5242115",
"0.5228697",
"0.5225206",
"0.52146965",
"0.52077866",
"0.52077866",
"0.52077866",
"0.5194825",
"0.51945823",
"0.51758033",
"0.51610416",
"0.5153392",
"0.51520437",
"0.5147323",
"0.5138239",
"0.51265496",
"0.5125254",
"0.51165706",
"0.5087352",
"0.5087012",
"0.50771177",
"0.50737715",
"0.5068582",
"0.5056486",
"0.5056256",
"0.5055053",
"0.5047585",
"0.5047563",
"0.5046312",
"0.5044178",
"0.5037157",
"0.50370777",
"0.50344753",
"0.50302035",
"0.5030192",
"0.5023674",
"0.5013283",
"0.50037247",
"0.50005245",
"0.5000479",
"0.50001776",
"0.49982488",
"0.4991395",
"0.49873462",
"0.49791944",
"0.49704587",
"0.49700803",
"0.4962462",
"0.49591348",
"0.49585563",
"0.49449337",
"0.49436462",
"0.49407285",
"0.4940436",
"0.49374473",
"0.49361324",
"0.49347463",
"0.49341",
"0.49272275",
"0.49265042"
] | 0.0 | -1 |
combinationsOfLevels is a recursive method which replaces the appropriate element in working group and then passes off to the next factor or it adds the final ExperimentalGroup to levelGroups when all factors have been visited | public void combinationsOfLevels(ArrayList<ExperimentalGroup> levelGroups, ExperimentalGroup workingGroup, int factorIndex) throws CloneNotSupportedException{
if(factorIndex >= this.factors.size()){
levelGroups.add((ExperimentalGroup)workingGroup.clone());
return;
}
for(int i = 0; i < this.factors.get(factorIndex).levels.size(); i++){
workingGroup.levels.remove(factorIndex);
workingGroup.levels.add(factorIndex,this.factors.get(factorIndex).levels.get(i));
combinationsOfLevels(levelGroups, workingGroup, factorIndex + 1);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void combinationsOfLevels(ArrayList<ExperimentalGroup> levelGroups) throws CloneNotSupportedException{\n\t\tExperimentalGroup workingGroup = new ExperimentalGroup();\n\t\tfor(int i = 0; i < this.factors.size(); i++){\n\t\t\tworkingGroup.addLevel(this.factors.get(i).levels.get(0));\n\t\t}\n\t\tcombinationsOfLevels(levelGroups,workingGroup,0);\n\t}",
"private void splitLevels() {\n\t\tint first = 0;\n\t\tfor(int i = 1; i<allCoords.size(); i++) {\n\t\t\tif (allCoords.get(i).z != allCoords.get(i-1).z) {\n\t\t\t\tfor(int j=first; j<i; j++) {\n\t\t\t\t\tcurrentLevel.add(allCoords.get(j));\n\t\t\t\t}\n\t\t\t\tsplitIntoRoots(); // automatically splits the cross section into roots\n\t\t\t\tcurrentLevel.clear();\n\t\t\t\tfirst = i;\n\t\t\t}\n\t\t}\n\t}",
"public void groupSelectedFurniture() {\n List<HomePieceOfFurniture> selectedFurniture = getMovableSelectedFurniture();\n if (!selectedFurniture.isEmpty()) {\n final boolean basePlanLocked = this.home.isBasePlanLocked();\n final boolean allLevelsSelection = this.home.isAllLevelsSelection();\n final List<Selectable> oldSelection = this.home.getSelectedItems();\n List<HomePieceOfFurniture> homeFurniture = this.home.getFurniture();\n // Sort the grouped furniture in the ascending order of their index in home or their group\n Map<HomeFurnitureGroup, TreeMap<Integer, HomePieceOfFurniture>> groupedFurnitureMap =\n new HashMap<HomeFurnitureGroup, TreeMap<Integer, HomePieceOfFurniture>>();\n int groupedFurnitureCount = 0;\n for (HomePieceOfFurniture piece : selectedFurniture) {\n HomeFurnitureGroup group = getPieceOfFurnitureGroup(piece, null, homeFurniture);\n TreeMap<Integer, HomePieceOfFurniture> sortedMap = groupedFurnitureMap.get(group);\n if (sortedMap == null) {\n sortedMap = new TreeMap<Integer, HomePieceOfFurniture>();\n groupedFurnitureMap.put(group, sortedMap);\n }\n if (group == null) {\n sortedMap.put(homeFurniture.indexOf(piece), piece);\n } else {\n sortedMap.put(group.getFurniture().indexOf(piece), piece);\n }\n groupedFurnitureCount++;\n }\n final HomePieceOfFurniture [] groupedPieces = new HomePieceOfFurniture [groupedFurnitureCount]; \n final int [] groupedPiecesIndex = new int [groupedPieces.length];\n final Level [] groupedPiecesLevel = new Level [groupedPieces.length];\n final float [] groupPiecesElevation = new float [groupedPieces.length];\n final boolean [] groupPiecesVisible = new boolean [groupedPieces.length];\n final HomeFurnitureGroup [] groupedPiecesGroups = new HomeFurnitureGroup [groupedPieces.length];\n Level minLevel = this.home.getSelectedLevel();\n int i = 0;\n for (Map.Entry<HomeFurnitureGroup, TreeMap<Integer, HomePieceOfFurniture>> sortedMapEntry : groupedFurnitureMap.entrySet()) {\n for (Map.Entry<Integer, HomePieceOfFurniture> pieceEntry : sortedMapEntry.getValue().entrySet()) {\n HomePieceOfFurniture piece = pieceEntry.getValue();\n groupedPieces [i] = piece;\n groupedPiecesIndex [i] = pieceEntry.getKey();\n groupedPiecesLevel [i] = piece.getLevel();\n groupPiecesElevation [i] = piece.getElevation();\n groupPiecesVisible [i] = piece.isVisible();\n groupedPiecesGroups [i] = sortedMapEntry.getKey();\n if (groupedPiecesLevel [i] != null) {\n if (minLevel == null\n || groupedPiecesLevel [i].getElevation() < minLevel.getElevation()) {\n minLevel = groupedPiecesLevel [i];\n }\n }\n i++;\n }\n } \n final HomeFurnitureGroup group;\n if (selectedFurniture.indexOf(this.leadSelectedPieceOfFurniture) > 0) {\n group = createHomeFurnitureGroup(Arrays.asList(groupedPieces), this.leadSelectedPieceOfFurniture);\n } else {\n group = createHomeFurnitureGroup(Arrays.asList(groupedPieces));\n }\n // Store piece elevation that could have been updated during grouping\n final float [] groupPiecesNewElevation = new float [groupedPieces.length];\n i = 0;\n for (HomePieceOfFurniture piece : groupedPieces) {\n groupPiecesNewElevation [i++] = piece.getElevation();\n }\n TreeMap<Integer, HomePieceOfFurniture> homeSortedMap = groupedFurnitureMap.get(null);\n final int groupIndex = homeSortedMap != null \n ? homeSortedMap.lastKey() + 1 - groupedPieces.length\n : homeFurniture.size();\n final boolean movable = group.isMovable();\n final Level groupLevel = minLevel;\n \n doGroupFurniture(groupedPieces, new HomeFurnitureGroup [] {group}, \n null, new int [] {groupIndex}, new Level [] {groupLevel}, basePlanLocked, false);\n if (this.undoSupport != null) {\n UndoableEdit undoableEdit = new AbstractUndoableEdit() {\n @Override\n public void undo() throws CannotUndoException {\n super.undo();\n doUngroupFurniture(new HomeFurnitureGroup [] {group}, groupedPieces, \n groupedPiecesGroups, groupedPiecesIndex, groupedPiecesLevel, basePlanLocked, allLevelsSelection);\n for (int i = 0; i < groupedPieces.length; i++) {\n groupedPieces [i].setElevation(groupPiecesElevation [i]);\n groupedPieces [i].setVisible(groupPiecesVisible [i]);\n }\n home.setSelectedItems(oldSelection);\n }\n \n @Override\n public void redo() throws CannotRedoException {\n super.redo();\n for (int i = 0; i < groupedPieces.length; i++) {\n groupedPieces [i].setElevation(groupPiecesNewElevation [i]);\n groupedPieces [i].setLevel(null);\n }\n group.setMovable(movable);\n group.setVisible(true);\n doGroupFurniture(groupedPieces, new HomeFurnitureGroup [] {group}, \n null, new int [] {groupIndex}, new Level [] {groupLevel}, basePlanLocked, false);\n }\n \n @Override\n public String getPresentationName() {\n return preferences.getLocalizedString(FurnitureController.class, \"undoGroupName\");\n }\n };\n this.undoSupport.postEdit(undoableEdit);\n }\n }\n }",
"public void recursivePermuter(ArrayList<Course> originalCourseList,\n ArrayList<ArrayList<Course>> results, ArrayList<Course> result) {\n if (originalCourseList.size() == result.size()) {\n ArrayList<Course> temp = new ArrayList<>(result);\n results.add(temp);\n }\n for (int i = 0; i < originalCourseList.size(); i++) {\n if (!result.contains(originalCourseList.get(i))) {\n result.add(originalCourseList.get(i));\n recursivePermuter(originalCourseList, results, result);\n result.remove(result.size() - 1);\n }\n }\n }",
"protected void tryCombinations(LinkedList<Creature> creatureList){\n \n \n int numCombinationCreatures = maxCreatures - prioritizedHeroes.length;\n long i = 0;//debug, for seeing what step of the list it's on\n int listNum = 1;//debug\n long nCrNum = OtherThings.nCr(listNum, numCombinationCreatures);//debug\n \n boolean strengthMode = !mindFollowers();//don't need to check for duplicates if on strength mode\n \n Iterator<LinkedList<Creature>> combinations = new CombinationIterator(creatureList,numCombinationCreatures);\n \n \n while(combinations.hasNext() && searching){\n i ++;//debug\n if (i > nCrNum){//debug\n //System.out.println(listNum + \" \" + creatureList.get(listNum));//debug\n progressReport(listNum,creatureList);\n listNum ++;//debug\n nCrNum = OtherThings.nCr(listNum, numCombinationCreatures);\n }//debug\n \n \n LinkedList<Creature> combo = combinations.next();\n for (Hero hero : prioritizedHeroes){\n combo.add(hero);\n }\n \n \n if (canAffordMonsters(combo) && !usingWeakMonstersOnNH(combo)){\n if (strengthMode){\n tryPermutations(combo);\n }\n else if (!isDuplicateCombination(combo)){\n tryPermutations(combo);\n addToTriedCombos(combo);\n }\n }\n }\n }",
"private void arrangeFactors() {\n List<Condition> tempTrialConditions = new ArrayList<Condition>();\n List<Condition> tempStudyConditions = new ArrayList<Condition>();\n List<ibfb.domain.core.Factor> tempFactors = new ArrayList<ibfb.domain.core.Factor>();\n\n // conditions\n for (Condition cond : workbookStudy.getConditions()) {\n if (hasLabel(cond.getLabel(), Workbook.STUDY)) {\n cond.setLabel(Workbook.STUDY);\n tempStudyConditions.add(cond);\n }\n }\n for (Condition cond : workbookStudy.getStudyConditions()) {\n if (hasLabel(cond.getLabel(), Workbook.STUDY)) {\n cond.setLabel(Workbook.STUDY);\n tempStudyConditions.add(cond);\n }\n }\n\n // study conditions\n for (Condition cond : workbookStudy.getConditions()) {\n //if (hasLabel(cond.getLabel(), Workbook.TRIAL_LABEL)) {\n if (hasLabel(cond.getLabel(), workbookStudy.getTrialLabel())) {\n\n cond.setLabel(workbookStudy.getTrialLabel());\n tempTrialConditions.add(cond);\n }\n }\n for (Condition cond : workbookStudy.getStudyConditions()) {\n // if (hasLabel(cond.getLabel(), Workbook.TRIAL_LABEL)) {\n if (hasLabel(cond.getLabel(), workbookStudy.getTrialLabel())) {\n cond.setLabel(workbookStudy.getTrialLabel());\n tempTrialConditions.add(cond);\n }\n }\n\n // factors (ENTRY)\n for (Condition cond : workbookStudy.getStudyConditions()) {\n //if (hasLabel(cond.getLabel(), Workbook.TRIAL_LABEL)) {\n if (hasLabel(cond.getLabel(), workbookStudy.getTrialLabel())) {\n //tempFactors.add(getFactor(cond, Workbook.ENTRY_LABEL));\n tempFactors.add(getFactor(cond, workbookStudy.getTrialLabel()));\n }\n }\n\n for (Condition cond : workbookStudy.getConditions()) {\n //if (hasLabel(cond.getLabel(), Workbook.ENTRY_LABEL)) {\n if (hasLabel(cond.getLabel(), workbookStudy.getEntryLabel())) {\n //tempFactors.add(getFactor(cond, Workbook.ENTRY_LABEL));\n tempFactors.add(getFactor(cond, workbookStudy.getEntryLabel()));\n }\n }\n for (ibfb.domain.core.Factor factor : workbookStudy.getFactors()) {\n //if (hasLabel(factor.getLabel(), Workbook.ENTRY_LABEL)) {\n if (hasLabel(factor.getLabel(), workbookStudy.getEntryLabel())) {\n tempFactors.add(factor);\n }\n }\n\n // Factors (plot)\n for (Condition cond : workbookStudy.getStudyConditions()) {\n //if (hasLabel(cond.getLabel(), Workbook.PLOT_LABEL)) {\n if (hasLabel(cond.getLabel(), workbookStudy.getPlotLabel())) {\n //tempFactors.add(getFactor(cond, Workbook.PLOT_LABEL));\n tempFactors.add(getFactor(cond, workbookStudy.getPlotLabel()));\n }\n }\n for (Condition cond : workbookStudy.getConditions()) {\n //if (hasLabel(cond.getLabel(), Workbook.PLOT_LABEL)) {\n if (hasLabel(cond.getLabel(), workbookStudy.getPlotLabel())) {\n //tempFactors.add(getFactor(cond, Workbook.PLOT_LABEL));\n tempFactors.add(getFactor(cond, workbookStudy.getPlotLabel()));\n }\n }\n\n for (ibfb.domain.core.Factor factor : workbookStudy.getFactors()) {\n //if (hasLabel(factor.getLabel(), Workbook.PLOT_LABEL)) {\n if (hasLabel(factor.getLabel(), workbookStudy.getPlotLabel())) {\n tempFactors.add(factor);\n /*} else if (factor.getLabel() != null && workbookStudy.getOtherLabels().contains(factor.getLabel())) {\n tempFactors.add(factor);\n */\n }\n }\n\n for (ibfb.domain.core.Factor factor : workbookStudy.getFactors()) {\n //if (hasLabel(factor.getLabel(), Workbook.PLOT_LABEL)) {\n if (factor.getLabel() != null \n && !hasLabel(factor.getLabel(), Workbook.STUDY)\n && !hasLabel(factor.getLabel(), workbookStudy.getEntryLabel())\n && !hasLabel(factor.getLabel(), workbookStudy.getPlotLabel())\n && !hasLabel(factor.getLabel(), workbookStudy.getTrialLabel())) {\n tempFactors.add(factor);\n }\n }\n\n workbookStudy.setStudyConditions(tempStudyConditions);\n workbookStudy.setConditions(tempTrialConditions);\n workbookStudy.setFactors(tempFactors);\n }",
"public static void permutation(int cs[], int ns[], int temp[], int level, List<Integer> results) {\n\t\tif (cs.length - level == 0) {\n\t\t\t// check the number, if greater return,\n\t\t\tStringBuilder builder = new StringBuilder();\n\t\t\tfor (int n : temp) {\n\t\t\t\tbuilder.append(n);\n\t\t\t}\n\t\t\tresults.add(new Integer(builder.toString()));\n\t\t\treturn;\n\t\t}\n\n\t\tfor (int i = 0; i < cs.length; i++) {\n\t\t\tif (ns[i] == 0) {\n\t\t\t\tns[i] = 1;\n\t\t\t\ttemp[level] = cs[i];\n\t\t\t\tpermutation(cs, ns, temp, level + 1, results);\n\t\t\t\tns[i] = 0;\n\t\t\t}\n\t\t}\n\t}",
"private boolean helperDFS(Node current){\n\n if(expandedNode.size() == 999){\n //limit has been reached. jump out of recursion.\n expandedNode.add(current);\n System.out.println(\"No solution found.\");\n printExpanded(expandedNode);\n System.exit(0);\n return false;\n }\n\n boolean b = cycleCheck(current,expandedNode);\n\n if(!b){\n expandedNode.add(current);\n }else{\n return false;\n }\n\n if(current.getDigit().getDigitString().equals(goalNode.getDigit().getDigitString())){\n //goal reached.\n //expandedNode.add(current);\n solutionPath(current);\n printExpanded(expandedNode);\n System.exit(0);\n }\n\n //Now make the children.\n\n if(!forbidden.contains(current.getDigit().getDigitString())){\n\n if(current.getDigit().last_changed != 0){\n\n if ((Integer.parseInt(current.getDigit().getFirst_digit()) - 1 >= 0)) {\n Node child_node = new Node(current.getDigit().decreaseFirstDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(0);\n if(!forbidden.contains(child_node.getDigit().getDigitString()) && helperDFS(child_node)){\n return true;\n }\n }\n\n //+1 child first digit\n if ((Integer.parseInt(current.getDigit().getFirst_digit()) + 1 <= 9)) {\n Node child_node = new Node(current.getDigit().increaseFirstDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(0);\n if(!forbidden.contains(child_node.getDigit().getDigitString()) && helperDFS(child_node)){\n return true;\n }\n }\n }\n\n if(current.getDigit().last_changed != 1){\n if ((Integer.parseInt(current.getDigit().getSecond_digit()) - 1 >= 0)) {\n Node child_node = new Node(current.getDigit().decreaseSecondDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(1);\n if(!forbidden.contains(child_node.getDigit().getDigitString()) && helperDFS(child_node)){\n return true;\n }\n }\n\n //+1 child\n if ((Integer.parseInt(current.getDigit().getSecond_digit()) + 1 <= 9)) {\n Node child_node = new Node(current.getDigit().increaseSecondDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(1);\n if(!forbidden.contains(child_node.getDigit().getDigitString()) && helperDFS(child_node)){\n return true;\n }\n }\n }\n\n if(current.getDigit().last_changed != 2){\n if ((Integer.parseInt(current.getDigit().getThird_digit()) - 1 >= 0)) {\n Node child_node = new Node(current.getDigit().decreaseThirdDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(2);\n if(!forbidden.contains(child_node.getDigit().getDigitString()) && helperDFS(child_node)){\n return true;\n }\n }\n //+1 child\n if ((Integer.parseInt(current.getDigit().getThird_digit()) + 1 <= 9)) {\n Node child_node = new Node(current.getDigit().increaseThirdDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(2);\n if(!forbidden.contains(child_node.getDigit().getDigitString()) && helperDFS(child_node)){\n return true;\n }\n }\n }\n }\n return false;\n }",
"public void letterCombinations(String digits,String current,String[] mappings,int index,List<String> result){\n if(digits.length()==current.length()){\n result.add(current);\n return;\n }\n // if digit is \"2\" , mappings['2' - '0' ] will give me mappings[2] .i.e abc\n String letters = mappings[digits.charAt(index)-'0'];\n\n //for all letters in mappings[i] call recursively\n // i.e. mappings[2] => \"abc\",call for a, then b and then c\n for (int i=0;i<letters.length();i++){\n // add to current character at index i\n // increment index to simulate selection condition\n letterCombinations(digits,current+letters.charAt(i),mappings,index+1,result);\n }\n }",
"public void RunAlgo(int i,Set<Session> s, ArrayList<Set<Session>> courses){\n System.out.println(i);\n if(i==courses.size()) {\n Set<Session> temp= copySet(s);\n if(allCombinations.size()>maxSize) flag=false;\n allCombinations.add(temp);\n System.out.println(allCombinations.size());\n return;\n }\n Set<Session> current = courses.get(i);\n for (Session x : current) {\n if (isGoodMatch(x, s)) {\n s.add(x);\n if(flag)\n RunAlgo(i + 1, s, courses);\n s.remove(x);\n }\n }\n\n }",
"@Test\n @Order(1)\n void algorithms() {\n \n Combination initialComb = new Combination();\n for (int i = 0; i < assignementProblem.getAssignmentData().getLength(); i++) {\n initialComb.add((long) i + 1);\n }\n assignementProblem.setInCombination(initialComb);\n executeAlgo(SearchTestUtil.ALGO.TABU);\n executeAlgo(SearchTestUtil.ALGO.RECUIT);\n }",
"private List<LPGActionGraph> fixMutexStep(PlanGraphStep stepToRemove, \n\t\t\tMutexRelation inconsistency, int currentLevel) {\n\n\t\tList<LPGActionGraph> mutexSolutions = new ArrayList<LPGActionGraph>();\n\t\t\n\t\t/* option 1 - remove */\n\t\tLPGActionGraph neighbor1 = this.copyActionGraph();\n\t\tneighbor1.removeStep(stepToRemove, inconsistency.getCurrentLevel());\n\t\tneighbor1.graphQuality = neighbor1.calculateQuality();\n\t\tmutexSolutions.add(neighbor1);\n\t\t\n\t\t\n\t\t/* option 2 - postpone by moving up a level*/\n\t\tLPGActionGraph neighbor2 = this.copyActionGraph();\n\t\t//neighbor2.extendGraph(currentLevel + 1);\n\t\tneighbor2.removeEffects(stepToRemove, inconsistency.getCurrentLevel(), false);\n\t\tneighbor2.removeInvalidMutex(stepToRemove, inconsistency.getCurrentLevel());\n\t\t\n\t\tif (maxLevel <= 8 && maxExtend > 0) {\n\t\t\tneighbor2.extendGraph(currentLevel + 1);\n\t\t\tmaxExtend--;\n\t\t}\n\t\t\n\t\tif(currentLevel + 1 <= maxLevel) {\n\t\t\tneighbor2.addStep(stepToRemove, currentLevel + 1);\n\t\t\tneighbor2.graphQuality = neighbor2.calculateQuality();\n\t\t\tmutexSolutions.add(neighbor2); \n\t\t}\n\t\t\n\t\t/* option 3 - anticipate by moving mutex step back a level\n\t\tLPGActionGraph neighbor3 = this.copyActionGraph();\n\t\tneighbor3.removeStep(stepToRemove, inconsistency.getCurrentLevel());\n\t\tneighbor3.extendGraph(currentLevel);\n\t\tneighbor3.addStep(stepToRemove, currentLevel);\n\t\tneighbor3.graphQuality = neighbor3.calculateQuality();\n\t\tmutexSolutions.add(neighbor3);*/\n\t\t\n\t\treturn mutexSolutions;\n\t}",
"private static <T> Set<Set<T>> combine(List<T> friends, int size, Set<Set<T>> groups, Set<T> group, int position) {\r\n\t\tif (group.size() == size) {\r\n\r\n\t\t\t// base case of recursion where the combination is complete\r\n\t\t\tgroups.add(group);\r\n\r\n\t\t} else if (friends.size() - position < size - group.size()) {\r\n\t\t\t// friends.size() - position is the number of possible people who\r\n\t\t\t// could be added\r\n\r\n\t\t\t// size - group.size() is the number of people requried to accept a\r\n\t\t\t// combination of friends\r\n\r\n\t\t\t// if there are not enough possible people left for a combination to\r\n\t\t\t// be\r\n\t\t\t// accepted, we can ignore a combination before its recursion is\r\n\t\t\t// fully\r\n\t\t\t// complete\r\n\r\n\t\t} else {\r\n\r\n\t\t\t// on a recursion tree, this call would be a left branch where a\r\n\t\t\t// null\r\n\t\t\t// element is into the new group at the given position\r\n\r\n\t\t\t// leave out friend in new group\r\n\t\t\tcombine(friends, size, groups, group, position + 1);\r\n\r\n\t\t\t// on a recursion tree, this call would be a right branch where a\r\n\t\t\t// new\r\n\t\t\t// element is added into the new group at the given position\r\n\r\n\t\t\t// include in friend in new group\r\n\t\t\tSet<T> newGroup = new HashSet<T>();\r\n\t\t\tnewGroup.addAll(group);\r\n\t\t\tnewGroup.add(friends.get(position));\r\n\t\t\tcombine(friends, size, groups, newGroup, position + 1);\r\n\t\t}\r\n\r\n\t\treturn groups;\r\n\t}",
"public void allCombinations(){\n // Sorts the AI's rack\n combinations = new ArrayList<ArrayList<Piece>>();\n ArrayList<Piece> pieces = playersPieces;\n this.removeNulls(numOfNulls());\n for (int index = 0; index < pieces.size();index++){\n Piece temp = pieces.get(index);\n char compareWord = pieces.get(index).theLetter();\n int lowerIndex = index-1;\n\n while (lowerIndex >=0 && compareWord < pieces.get(lowerIndex).theLetter()){\n pieces.set(lowerIndex+1, pieces.get(lowerIndex));\n lowerIndex--;\n }\n\n pieces.set(lowerIndex+1,temp);\n }\n \n // Makes a list of all combinations through the recursive combine method\n combine(pieces, 0, new ArrayList<Piece>());\n insertionSort(combinations);\n combinations.remove(0);\n \n return;\n }",
"public void helper(int[] nums, int index, List<List<Integer>> list, List<Integer> cur, int k) {\n if (cur.size() == k) list.add(new ArrayList<Integer>(cur));\n for (int i = index; i < nums.length; i ++) {\n // Add the next value.\n cur.add(nums[i]);\n // Find all potential subsets building off the current set.\n helper(nums, i + 1, list, cur, k);\n // Backtrack by removing the current value.\n cur.remove(cur.size() - 1);\n }\n }",
"public void extendGraph(int level) {\n\t\tmaxLevel++;\n\t\tsteps.put(maxLevel+1, steps.get(maxLevel));\n\t\tif (maxLevel == graph.countLevels()){\n\t\t\tgraph.extend();\n\t\t}\n\t\t\t\n\t\t\n\t\t/* start at highest level and move each level up until we get to insert level*/\n\t\tfor(int i = maxLevel; i > level; i--) {\n\t\t\tsteps.put(i, steps.get(i-1));\n\t\t\tfacts.put(i, facts.get(i-1));\n\t\t\tinconsistencies.put(i, inconsistencies.get(i-1));\n\t\t}\n\t\t\n\t\t/* add new sets to level */\n\t\t// Set<PlanGraphStep> newSteps = new HashSet<PlanGraphStep>();\n\t\tsteps.put(level, new HashSet<PlanGraphStep>());\n\t\tfacts.put(level, new HashSet<PlanGraphLiteral>());\n\t\tinconsistencies.put(level, new HashSet<LPGInconsistency>());\n\t\t\n\t\t/* propagate facts from previous level via no-ops\n\t\tfor (PlanGraphLiteral pgLiteral : facts.get(level-1)) {\n\t\t\taddStep(persistentSteps.get(pgLiteral), level, false);\n\t\t}*/\n\t\tfacts.get(level).addAll(facts.get(level-1));\n\t\t \n\t}",
"private void nextLevel()\n\t{\n\t\tMapInstance.getInstance().setSelectedLevel(MapInstance.getInstance().getSelectedLevel() + 1);\n\t}",
"public void printCombinationsRecurse(int value) {\r\n\t\tint stackPtr = 0;\r\n\t\tint[] stack = new int[LARGEST_NUMBER];\r\n\t\t// push each starting number from 1 to LARGEST_NUMBER\r\n\t\tfor (int a = 1; a <= LARGEST_NUMBER; a++) {\r\n\t\t\tstack[stackPtr] = a;\r\n\t\t\tprintRecursive(value, stack, stackPtr);\r\n\t\t}\r\n\t}",
"public void ungroupSelectedFurniture() {\n List<HomeFurnitureGroup> movableSelectedFurnitureGroups = new ArrayList<HomeFurnitureGroup>(); \n for (Selectable item : this.home.getSelectedItems()) {\n if (item instanceof HomeFurnitureGroup) {\n HomeFurnitureGroup group = (HomeFurnitureGroup)item;\n if (isPieceOfFurnitureMovable(group)) {\n movableSelectedFurnitureGroups.add(group);\n }\n }\n } \n if (!movableSelectedFurnitureGroups.isEmpty()) {\n List<HomePieceOfFurniture> homeFurniture = this.home.getFurniture();\n final boolean oldBasePlanLocked = this.home.isBasePlanLocked();\n final boolean allLevelsSelection = this.home.isAllLevelsSelection();\n final List<Selectable> oldSelection = this.home.getSelectedItems();\n // Sort the groups in the ascending order of their index in home or their group\n Map<HomeFurnitureGroup, TreeMap<Integer, HomeFurnitureGroup>> groupsMap =\n new HashMap<HomeFurnitureGroup, TreeMap<Integer, HomeFurnitureGroup>>();\n int groupsCount = 0;\n for (HomeFurnitureGroup piece : movableSelectedFurnitureGroups) {\n HomeFurnitureGroup groupGroup = getPieceOfFurnitureGroup(piece, null, homeFurniture);\n TreeMap<Integer, HomeFurnitureGroup> sortedMap = groupsMap.get(groupGroup);\n if (sortedMap == null) {\n sortedMap = new TreeMap<Integer, HomeFurnitureGroup>();\n groupsMap.put(groupGroup, sortedMap);\n }\n if (groupGroup == null) {\n sortedMap.put(homeFurniture.indexOf(piece), piece);\n } else {\n sortedMap.put(groupGroup.getFurniture().indexOf(piece), piece);\n }\n groupsCount++;\n }\n final HomeFurnitureGroup [] groups = new HomeFurnitureGroup [groupsCount]; \n final HomeFurnitureGroup [] groupsGroups = new HomeFurnitureGroup [groups.length];\n final int [] groupsIndex = new int [groups.length];\n final Level [] groupsLevels = new Level [groups.length];\n int i = 0;\n List<HomePieceOfFurniture> ungroupedPiecesList = new ArrayList<HomePieceOfFurniture>();\n List<Integer> ungroupedPiecesIndexList = new ArrayList<Integer>();\n List<HomeFurnitureGroup> ungroupedPiecesGroupsList = new ArrayList<HomeFurnitureGroup>();\n for (Map.Entry<HomeFurnitureGroup, TreeMap<Integer, HomeFurnitureGroup>> sortedMapEntry : groupsMap.entrySet()) {\n TreeMap<Integer, HomeFurnitureGroup> sortedMap = sortedMapEntry.getValue();\n int endIndex = sortedMap.lastKey() + 1 - sortedMap.size();\n for (Map.Entry<Integer, HomeFurnitureGroup> groupEntry : sortedMap.entrySet()) {\n HomeFurnitureGroup group = groupEntry.getValue();\n groups [i] = group;\n groupsGroups [i] = sortedMapEntry.getKey();\n groupsIndex [i] = groupEntry.getKey(); \n groupsLevels [i++] = group.getLevel();\n for (HomePieceOfFurniture groupPiece : group.getFurniture()) {\n ungroupedPiecesList.add(groupPiece);\n ungroupedPiecesGroupsList.add(sortedMapEntry.getKey());\n ungroupedPiecesIndexList.add(endIndex++);\n }\n }\n } \n final HomePieceOfFurniture [] ungroupedPieces = \n ungroupedPiecesList.toArray(new HomePieceOfFurniture [ungroupedPiecesList.size()]); \n final HomeFurnitureGroup [] ungroupedPiecesGroups = \n ungroupedPiecesGroupsList.toArray(new HomeFurnitureGroup [ungroupedPiecesGroupsList.size()]); \n final int [] ungroupedPiecesIndex = new int [ungroupedPieces.length];\n final Level [] ungroupedPiecesLevels = new Level [ungroupedPieces.length];\n boolean basePlanLocked = oldBasePlanLocked;\n for (i = 0; i < ungroupedPieces.length; i++) {\n ungroupedPiecesIndex [i] = ungroupedPiecesIndexList.get(i); \n ungroupedPiecesLevels [i] = ungroupedPieces [i].getLevel();\n // Unlock base plan if the piece is a part of it\n basePlanLocked &= !isPieceOfFurniturePartOfBasePlan(ungroupedPieces [i]);\n } \n final boolean newBasePlanLocked = basePlanLocked;\n\n doUngroupFurniture(groups, ungroupedPieces, ungroupedPiecesGroups, ungroupedPiecesIndex, ungroupedPiecesLevels, newBasePlanLocked, false);\n if (this.undoSupport != null) {\n UndoableEdit undoableEdit = new AbstractUndoableEdit() {\n @Override\n public void undo() throws CannotUndoException {\n super.undo();\n doGroupFurniture(ungroupedPieces, groups, groupsGroups, groupsIndex, groupsLevels, oldBasePlanLocked, allLevelsSelection);\n home.setSelectedItems(oldSelection);\n }\n \n @Override\n public void redo() throws CannotRedoException {\n super.redo();\n doUngroupFurniture(groups, ungroupedPieces, ungroupedPiecesGroups, ungroupedPiecesIndex, ungroupedPiecesLevels, newBasePlanLocked, false);\n }\n \n @Override\n public String getPresentationName() {\n return preferences.getLocalizedString(FurnitureController.class, \"undoUngroupName\");\n }\n };\n this.undoSupport.postEdit(undoableEdit);\n }\n }\n }",
"public void backtrack(String combination, String next_digits) {\n if (next_digits.length() == 0) {\n // the combination is done\n output.add(combination);\n }\n // if there are still digits to check\n else {\n // iterate over all letters which map\n // the next available digit\n String digit = next_digits.substring(0, 1);\n String letters = phone.get(digit);\n for (int i = 0; i < letters.length(); i++) {\n String letter = phone.get(digit).substring(i, i + 1);\n // append the current letter to the combination\n // and proceed to the next digits\n backtrack(combination + letter, next_digits.substring(1));\n }\n }\n }",
"void findCriteriaChains(PlanNode root, List<PlanNode> foundNodes, AnalysisRecord analysisRecord)\n throws QueryPlannerException, TeiidComponentException {\n\n PlanNode recurseRoot = root;\n if(root.getType() == NodeConstants.Types.SELECT) {\n \t\n // Walk to end of the chain and change recurse root\n while(recurseRoot.getType() == NodeConstants.Types.SELECT) {\n \t// Look for opportunities to replace with a semi-join \n \trecurseRoot = planMergeJoin(recurseRoot, root);\n \tif (root.getChildCount() == 0) {\n \t\troot = recurseRoot.getFirstChild();\n \t\tif (root.getType() != NodeConstants.Types.SELECT) {\n \t\t\troot = root.getParent();\n \t\t}\n \t}\n \trecurseRoot = recurseRoot.getFirstChild();\n }\n\n // Ignore trivial 1-node case\n if(recurseRoot.getParent() != root) {\n // Found root for chain\n foundNodes.add(root);\n }\n }\n \n if (recurseRoot.getType() != NodeConstants.Types.ACCESS) {\n for (PlanNode child : recurseRoot.getChildren()) {\n findCriteriaChains(child, foundNodes, analysisRecord);\n }\n }\n }",
"private List<ItemSet> generateCombinations(List<Item> items, Integer size) {\n\t\tint[] indexes = new int[size];\n\t\tList<ItemSet> combinations = new ArrayList<>();\n\n\t\t// If the current size is not greater than the item size, process the\n\t\t// list\n\t\tif (size <= items.size()) {\n\t\t\t// Initialize the indexes\n\t\t\tfor (int i = 0; i < size; i++) {\n\t\t\t\tindexes[i] = i;\n\t\t\t}\n\n\t\t\t// Generate first combination\n\t\t\tcombinations.add(generateItemSet(items, indexes));\n\n\t\t\t// Process until return\n\t\t\twhile (true) {\n\t\t\t\tint toIncrement = size - 1;\n\t\t\t\t// Find position of item that can be incremented\n\t\t\t\twhile (toIncrement >= 0 && indexes[toIncrement] == items.size() - size + toIncrement) {\n\t\t\t\t\ttoIncrement--;\n\t\t\t\t}\n\n\t\t\t\t// If no indexes can be incremented, return the combinations\n\t\t\t\tif (toIncrement < 0) {\n\t\t\t\t\treturn combinations;\n\t\t\t\t}\n\t\t\t\t// Otherwise...\n\t\t\t\telse {\n\t\t\t\t\t// Increment the index\n\t\t\t\t\tindexes[toIncrement]++;\n\n\t\t\t\t\t// Increment subsequent indexes\n\t\t\t\t\tfor (++toIncrement; toIncrement < size; toIncrement++) {\n\t\t\t\t\t\tindexes[toIncrement] = indexes[toIncrement - 1] + 1;\n\t\t\t\t\t}\n\n\t\t\t\t\t// Generate the combination\n\t\t\t\t\tcombinations.add(generateItemSet(items, indexes));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// size > item set\n\t\treturn null;\n\t}",
"protected LinkedList<FunQuadruple> generateCandidates(List<FunQuadruple> lk) {\n\n LinkedList<FunQuadruple> lkPlus1 = new LinkedList<>();\n if (lk.isEmpty()) {\n return lkPlus1;\n }\n Set<ColumnCombinationBitset> subsets = new HashSet<>();\n int k = lk.get(0).candidate.size();\n ColumnCombinationBitset union = new ColumnCombinationBitset();\n for (FunQuadruple subsetQuadruple : lk) {\n // TODO optimise: all bits are set? --> break\n // If subsetQuadruple represents a unique do not add it to subsets and union (it should be pruned).\n if (subsetQuadruple.count == 0) {\n continue;\n }\n union = subsetQuadruple.candidate.union(union);\n subsets.add(subsetQuadruple.candidate);\n }\n\n Map<ColumnCombinationBitset, Integer> candidateGenerationCount = new HashMap<>();\n\n List<ColumnCombinationBitset> lkPlus1Candidates;\n FunQuadruple lkPlus1Member;\n for (ColumnCombinationBitset subset : subsets) {\n lkPlus1Candidates = union.getNSubsetColumnCombinationsSupersetOf(\n subset, k + 1);\n // FIXME add key conditional here\n // Removed key conditional - should not be triggerable?\n for (ColumnCombinationBitset candidate : lkPlus1Candidates) {\n if (candidateGenerationCount.containsKey(candidate)) {\n int count = candidateGenerationCount.get(candidate);\n count++;\n candidateGenerationCount.put(candidate, count);\n } else {\n candidateGenerationCount.put(candidate, 1);\n }\n }\n }\n\n for (ColumnCombinationBitset candidate : candidateGenerationCount\n .keySet()) {\n if (candidateGenerationCount.get(candidate) == (k + 1)) {\n lkPlus1Member = new FunQuadruple(candidate, addPliGenerate(\n candidate).getRawKeyError());\n lkPlus1.add(lkPlus1Member);\n }\n }\n return lkPlus1;\n }",
"public static void recursiveLetterCombinations(String digits, List<String> result_list, \n Map<Character, char[]> letter_map, StringBuilder sb) {\n if(sb.length() == digits.length()) {\n result_list.add(sb.toString());\n return;\n }\n\n // Loop through every digit to find the corresponding letter combination\n for(char ch : letter_map.get(digits.charAt(sb.length()))) {\n // Add that corresponding character to the string biuilder\n sb.append(ch);\n\n // Run the recursive function to do the same for the remainder of the sequence\n recursiveLetterCombinations(digits, result_list, letter_map, sb);\n\n // Once the recursive for the remainder of the sequence is over, clear that portion of the string builder\n sb.deleteCharAt(sb.length() - 1);\n }\n }",
"private void crossProduct() {\n BaseCandidateElement[] it = o.inputObject.firstStageCandidates.values().toArray(new BaseCandidateElement[0]);\n // logger.info(Arrays.toString(it));\n for (int i = 0; i < it.length; i++) {\n for (int j = i + 1; j < it.length; j++) {\n if (PrecisConfigProperties.HIERARCHY_DIMS_ENABLED && hierarchyDimsNegation.checkIfBelongToSameHierarchyGroup(it[i], it[j]))\n continue;\n if (it[i].xor(it[j]).cardinality() == 4) {\n BitSet b = it[i].or(it[j]);\n o.inputObject.addCandidate(b);\n }\n }\n }\n }",
"private void updateGroup(String newGroupName, int level) {\r\n Equals levelFilter = new Equals(fieldName[level], previousNodeValue);\r\n CoeusVector cvFilteredData = (CoeusVector)cvHierarchyData.filter(levelFilter);\r\n if(cvFilteredData != null && cvFilteredData.size()>0) {\r\n for (int index=0; index < cvFilteredData.size(); index++) {\r\n sponsorHierarchyBean = (SponsorHierarchyBean)cvFilteredData.get(index);\r\n sponsorHierarchyBean.setAcType(TypeConstants.UPDATE_RECORD);\r\n switch(level) {\r\n case 1:\r\n sponsorHierarchyBean.setLevelOne(newGroupName);\r\n break;\r\n case 2:\r\n sponsorHierarchyBean.setLevelTwo(newGroupName);\r\n break;\r\n case 3:\r\n sponsorHierarchyBean.setLevelThree(newGroupName);\r\n break;\r\n case 4:\r\n sponsorHierarchyBean.setLevelFour(newGroupName);\r\n break;\r\n case 5:\r\n sponsorHierarchyBean.setLevelFive(newGroupName);\r\n break;\r\n case 6:\r\n sponsorHierarchyBean.setLevelSix(newGroupName);\r\n break;\r\n case 7:\r\n sponsorHierarchyBean.setLevelSeven(newGroupName);\r\n break;\r\n case 8:\r\n sponsorHierarchyBean.setLevelEight(newGroupName);\r\n break;\r\n case 9:\r\n sponsorHierarchyBean.setLevelNine(newGroupName);\r\n break;\r\n case 10:\r\n sponsorHierarchyBean.setLevelTen(newGroupName);\r\n break;\r\n }\r\n }\r\n }\r\n }",
"void updateTreeSelection() {\n\n TreePath[] selections = tree.getSelectionPaths();\n currentSelectedPaths.clear();\n if (selections != null) {\n for (TreePath selection : selections) {\n currentSelectedPaths.add(selection);\n }\n }\n if ((selections == null) || (selections.length == 0)) {\n farmStatistics.setEnabled(false);\n linkStatistics.setEnabled(false);\n synchronized (basicPanel.getClusterPanel().getTreeLock()) {\n basicPanel.getClusterPanel().updateClusters(new Vector(), new Hashtable());\n }\n synchronized (basicPanel.getValPanel().getTreeLock()) {\n basicPanel.getValPanel().updateValues(new Vector());\n }\n synchronized (basicPanel.getModPanel().getTreeLock()) {\n basicPanel.getModPanel().updateList(new Vector());\n }\n return;\n }\n if ((selections.length == 1)\n && (((DefaultMutableTreeNode) selections[0].getLastPathComponent()).getUserObject() instanceof rcNode)) {\n farmStatistics.setEnabled(canShowFarmStatistics());\n linkStatistics.setEnabled(canShowLinkStatistics());\n } else {\n farmStatistics.setEnabled(false);\n linkStatistics.setEnabled(false);\n }\n Object[] userSel = new Object[selections.length];\n selectedGroups.clear();\n for (int j = 0; j < selections.length; j++) {\n userSel[j] = ((DefaultMutableTreeNode) selections[j].getLastPathComponent()).getUserObject();\n if (userSel[j] instanceof String) { // group selected\n selectedGroups.add(userSel[j]);\n DefaultMutableTreeNode groupNode = ((DefaultMutableTreeNode) selections[j].getLastPathComponent());\n for (int i = 0; i < treeModel.getChildCount(groupNode); i++) {\n tree.addSelectionPath(selections[j].pathByAddingChild(treeModel.getChild(groupNode, i)));\n }\n }\n }\n\n // update the parameters window to show only common parameters\n updateParamAndModPanels(userSel);\n }",
"public void helper(List<Integer> permutation,\n List<List<Integer>> rst,\n int[] nums) {\n // 3-recursion exit\n if (permutation.size() == nums.length) {\n // deep copy\n rst.add(new ArrayList<>(permutation));\n return;\n }\n\n // 2-recursion split\n // [3, 1] => [3, 1, 2]\n for (int i = 0; i < nums.length; i ++) {\n if (permutation.contains(nums[i])) continue;\n permutation.add(nums[i]);\n helper(permutation, rst, nums);\n permutation.remove(permutation.size() - 1);\n }\n }",
"private static void selectFromCartesianProduct(int level, Selector where, String[] requestedColumns,\n\t\t\tTable[] allTables, Cursor[] allIterators, Table resultTable) {\n\t\tallIterators[level] = allTables[level].rows();\n\n\t\twhile (allIterators[level].advance()) { // If we haven't reached the tips of the branches yet,\n\t\t\t\t\t\t\t\t\t\t\t\t// go down one more level.\n\n\t\t\tif (level < allIterators.length - 1)\n\t\t\t\tselectFromCartesianProduct(level + 1, where, requestedColumns, allTables, allIterators, resultTable);\n\n\t\t\t// If we are at the leaf level, then get approval for\n\t\t\t// the fully-assembled row, and add the row to the table\n\t\t\t// if it's approved.\n\n\t\t\tif (level == allIterators.length - 1) {\n\t\t\t\tif (where.approve(allIterators))\n\t\t\t\t\tinsertApprovedRows(resultTable, requestedColumns, allIterators);\n\t\t\t}\n\t\t}\n\t}",
"public <T> void getPossibleCombinationsOf(List<T> aPossibleItems,\n List<T> aComboItems,\n int aStartIdx,\n int anEndIdx,\n int aCurrentIdx,\n int aChoiceSize,\n List<List<T>> aResults) {\n \n if (aCurrentIdx == aChoiceSize) {\n \n aResults.add(new ArrayList<T>(aComboItems));\n }\n else {\n \n for (int i = aStartIdx; (i <= anEndIdx) && (anEndIdx - i + 1 >= aChoiceSize - aCurrentIdx); i++) {\n \n aComboItems.set(aCurrentIdx, aPossibleItems.get(i));\n this.getPossibleCombinationsOf(aPossibleItems, \n aComboItems, \n i+1, \n anEndIdx, \n aCurrentIdx+1, \n aChoiceSize, \n aResults);\n }\n }\n\n }",
"static void all_sub_groups_of_size_k(int num_of_nodes,\r\n int k, long numOfGroups,\r\n LinkedList<Integer>[] groups)\r\n {\r\n //create array of all the nodes\r\n int arr[] = new int[num_of_nodes];\r\n for (int i = 0; i < num_of_nodes; i++){\r\n arr[i] = i;\r\n }\r\n\r\n int data[] = new int[k]; // temporary array which will hold the subgroup\r\n\r\n currNumOfGroups = 0;\r\n // Print all combination using temprary\r\n // array 'data[]'\r\n getAllGroupsOfSizeK(arr, num_of_nodes, k, 0, data, 0,\r\n numOfGroups, groups);\r\n }",
"public static void makeLevelsForTesting() {\n\t\tBuilder builder = new Builder();\n\t\tbuilder.setLevels(new ArrayList<Level>());\n\t\tfor (int i = 0; i < 15; i++) {\n\t\t\tbuilder.addNewLevel(i % 3, 12);\n\t\t\tint[] nothing = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,\n\t\t\t\t\t0, 0, 0, 0, 0 };\n\t\t\tbuilder.saveLevel(nothing);\n\t\t\tSystem.out.println(builder.getLevels());\n\t\t}\n\t\tbuilder.saveToDisc();\n\t}",
"@Override\n\tpublic void updateLevel() {\n\t\tthis.algorithm();\n\t\t\n\t}",
"private void fillActiveLevels() \n\t{\n\t\tStringBuffer sb = new StringBuffer();\n\t\tfor(int i=0;i<level[0].length+2;i++){\n\t\t\tsb.append(\"-\");\n\t\t}\n\t\tString lineStartEnd = sb.toString();\n\t\tchar[] startEnd = lineStartEnd.toCharArray();\n\t\tlevelActive[0] = startEnd;\n\t\tlevelActive[levelActive.length-1] = startEnd;\n\t\tfor (int i = 1; i <= level.length; i++) \n\t\t{\n\t\t\tlevelActive[i][0] = '-';\n\t\t\tSystem.arraycopy(level[i - 1], 0, levelActive[i], 1, level[0].length);\n\t\t\tlevelActive[i][level[0].length+1] = '-';\n\t\t}\n\t}",
"private static List<Element> buildGroups(SegmentLibrary segmentLibrary,\n\t\t\tMap<Integer, gov.nist.healthcare.hl7tools.service.util.mock.hl7.domain.Group> map) {\n\t\tList<Element> topLevelGroup = new ArrayList<Element>();\n\t\tMap<Integer, Element> gm = new HashMap<Integer, Element>();\n\t\t// create groups map\n\t\tlog.info(\"group count=\" + map.values().size());\n\t\tfor (gov.nist.healthcare.hl7tools.service.util.mock.hl7.domain.Group g : map.values()) {\n//\t\t\tlog.info(\"group name=\" + g.getName());\n\t\t\tElement e = new Element();\n\t\t\te.setName(g.getName());\n\t\t\te.setType(g.isChoice() ? ElementType.CHOICE : ElementType.GROUP);\n\t\t\tgm.put(g.getId(), e);\n\t\t\tif (g.getName().contains(\".ROOT\"))\n\t\t\t\ttopLevelGroup.add(e);\n\t\t\tif (e.getName() == null) {\n\t\t\t\tlog.info(\"here=\" + e.toString());\n\t\t\t}\n\t\t}\n\t\t// update groups children\n\t\tfor (gov.nist.healthcare.hl7tools.service.util.mock.hl7.domain.Group g : map.values()) {\n\t\t\tList<Element> children = new ArrayList<Element>();\n\t\t\tif (g.getChildren() != null) {\n\t\t\t\t// Some messages in old versions don't have children\n\t\t\t\t// log.info(\"o loop=\" + \" gid=\" + g.getId() + \" g.name=\" +\n\t\t\t\t// g.getName() + \" size=\" + g.getChildren().size());\n\t\t\t\tfor (gov.nist.healthcare.hl7tools.service.util.mock.hl7.domain.Element ee : g.getChildren()) {\n//\t\t\t\t\tlog.info(\"ee group id=\" + ee.getGroupId());\n\t\t\t\t\t// FIXME: Temporary hack to fix the position\n\t\t\t\t\tElement tmp = updateChildren(ee, map, gm, segmentLibrary);\n\t\t\t\t\tchildren.add(tmp);\n\t\t\t\t\ttmp.setPosition(children.size());\n\t\t\t\t}\n\t\t\t}\n\t\t\tgm.get(g.getId()).setChildren(children);\n\t\t}\n\t\treturn topLevelGroup;\n\t}",
"private void gameTree(MinimaxNode<GameState> currentNode, int depth, int oIndex){\n currentNode.setNodeIndex(oIndex); \n if (depth == 0) {\n return;\n }\n else{\n if (currentNode.getState().isDead(oIndex)){ //checks to see if current player is dead, if so, just skips their moves\n int newIndex = (oIndex + 1) % currentNode.getState().getNrPlayers();\n/* if(oIndex == 3){\n newIndex = 0;\n }\n else{\n newIndex = oIndex + 1;\n }*/\n gameTree(currentNode, depth-1, newIndex);\n }\n else{\n //this if statement sets up chance nodes, if the target has been met it will create 5 children nodes with randomly generated new target postitions \n if(!currentNode.getState().hasTarget()){\n currentNode.setChanceNode();\n for(int i = 1; i <= 5; i++){\n try{\n GameState newState = (GameState)currentNode.getState().clone();\n newState.chooseNextTarget();\n MinimaxNode<GameState> childNode = new MinimaxNode(newState);\n childNode.setProbability(0.2);\n currentNode.addChild(childNode); \n }\n catch (CloneNotSupportedException e){\n System.out.println(\"Clone not excepted\");\n }\n \n }\n for (int i = 0; i < currentNode.getNumberOfChildren(); i++){\n gameTree(currentNode.getChildren().get(i), depth, oIndex);\n }\n\n }\n else{\n List<Integer> options = new ArrayList();\n for (int i = 1; i <= 4; i++) {\n if (currentNode.getState().isLegalMove(oIndex, i)){\n options.add(i);\n }\n }\n for (int i = 0; i < options.size(); i++){\n try{\n GameState newState = (GameState)currentNode.getState().clone();\n newState.setOrientation(oIndex, options.get(i));\n newState.updatePlayerPosition(oIndex);\n MinimaxNode<GameState> childNode = new MinimaxNode(newState);\n currentNode.addChild(childNode);\n }\n catch (CloneNotSupportedException e){\n System.out.println(\"Clone not excepted\");\n }\n }\n int newIndex = (oIndex + 1) % currentNode.getState().getNrPlayers();\n /* if(oIndex == 3){\n newIndex = 0;\n }\n else{\n newIndex = oIndex + 1;\n }*/\n for (int i = 0; i < currentNode.getNumberOfChildren(); i++){\n gameTree(currentNode.getChildren().get(i), depth-1, newIndex);\n }\n } \n } \n }\n }",
"protected void incrementDepthLimit() {\n currDepthLimit++;\n }",
"private void processIterationResults(Map<String, List<MutablePair<String, Double>>> continuousChoices,\n\t\t\tMap<String, Pair<String, Double>> iterationChoices, Map<String, List<String>> clusters,\n\t\t\tList<Mention> copyContext) {\n\t\tfor (Map.Entry<String, Pair<String, Double>> iterationChoice : iterationChoices.entrySet()) {\n\t\t\tfinal String key = iterationChoice.getKey();\n\t\t\tList<MutablePair<String, Double>> continuousPairs = continuousChoices.get(key);\n\t\t\tif (continuousPairs == null) {\n\t\t\t\tcontinuousPairs = Lists.newArrayList();\n\t\t\t\tcontinuousChoices.put(key, continuousPairs);\n\t\t\t}\n\n\t\t\tboolean found = false;\n\t\t\tfinal Pair<String, Double> iterationChoicePair = iterationChoice.getValue();\n\t\t\tfor (MutablePair<String, Double> continuousPair : continuousPairs) {\n\t\t\t\tif (continuousPair.getKey().equals(iterationChoicePair.getKey())) {\n\t\t\t\t\t// Same entity = 'Collision' - so modify/update score accordingly\n\t\t\t\t\tfound = true;\n\t\t\t\t\t// It's the same pair, so let's combine them!\n\t\t\t\t\tfinal Double currentValue = continuousPair.getValue();\n\t\t\t\t\tfinal Double newValue = computeNewValue(this.context.size() - clusters.size(), currentValue,\n\t\t\t\t\t\t\titerationChoicePair.getValue());\n\t\t\t\t\tcontinuousPair.setValue(newValue);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (!found) {\n\t\t\t\t// TODO: Check if logic really holds as rn I'm not sure whether there really is\n\t\t\t\t// exactly one pair here if it doesn't exist yet\n\t\t\t\t//\n\t\t\t\t// Not a collision, so just add it\n\t\t\t\tcontinuousPairs.add(new MutablePair<String, Double>(iterationChoicePair.getLeft(),\n\t\t\t\t\t\tinitVal(iterationChoicePair.getRight())));\n\t\t\t}\n\t\t}\n\n\t\tDouble minValue = Double.MAX_VALUE;\n\t\tPair<String, Double> minPair = null;\n\t\tString minKey = null;\n\t\t// Find the entity-score pair for the worst surface form\n\t\tfor (Map.Entry<String, Pair<String, Double>> e : iterationChoices.entrySet()) {\n\t\t\tfinal Pair<String, Double> currentPair = e.getValue();\n\t\t\tfinal Double currentValue = currentPair.getRight();\n\t\t\tif (currentValue <= minValue) {\n\t\t\t\tminKey = e.getKey();\n\t\t\t\tminPair = currentPair;\n\t\t\t\tminValue = currentValue;\n\t\t\t}\n\t\t}\n\n\t\t// Remove surface form with worst result (as it likely is noise)\n\t\tclusters.remove(minKey);\n\t\tMentionUtils.removeStringMention(minKey, copyContext);\n\n\t}",
"public void levelOrderTraversalBruteForce(){\n System.out.println(\"levelOrderTraversalBruteForce\");\n\n for(int level = 1; level <=height(); level++){\n printLevel(level);\n }\n System.out.println();\n }",
"private void GreedySearch(){\n\n Queue<Node> expanded = new LinkedList<>();\n ArrayList<Node> fringe = new ArrayList<>();\n ArrayList<Node> fringeTemp = new ArrayList<>();\n\n\n Node current = startNode;\n\n while(expanded.size() < 1000){\n\n if(current.getDigit().getDigitString().equals(goalNode.getDigit().getDigitString())){\n //goal is reached.\n solutionPath(current);\n expanded.add(current);\n printExpanded(expanded);\n System.exit(0);\n }\n\n\n boolean b = cycleCheck(current,expanded);\n\n if(!b) {\n expanded.add(current);\n }\n\n if(!b){\n\n if(current.getDigit().last_changed != 0){\n\n if ((Integer.parseInt(current.getDigit().getFirst_digit()) - 1 >= 0)) {\n Node child_node = new Node(current.getDigit().decreaseFirstDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(0);\n\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n }\n\n //+1 child first digit\n if ((Integer.parseInt(current.getDigit().getFirst_digit()) + 1 <= 9)) {\n Node child_node = new Node(current.getDigit().increaseFirstDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(0);\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n\n }\n }\n\n if(current.getDigit().last_changed != 1){\n\n if ((Integer.parseInt(current.getDigit().getSecond_digit()) - 1 >= 0)) {\n Node child_node = new Node(current.getDigit().decreaseSecondDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(1);\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n }\n\n //+1 child\n if ((Integer.parseInt(current.getDigit().getSecond_digit()) + 1 <= 9)) {\n Node child_node = new Node(current.getDigit().increaseSecondDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(1);\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n }\n }\n\n if(current.getDigit().last_changed != 2){\n if ((Integer.parseInt(current.getDigit().getThird_digit()) - 1 >= 0)) {\n Node child_node = new Node(current.getDigit().decreaseThirdDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(2);\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n }\n //+1 child\n if ((Integer.parseInt(current.getDigit().getThird_digit()) + 1 <= 9)) {\n Node child_node = new Node(current.getDigit().increaseThirdDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(2);\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n }\n }\n\n }\n\n\n\n for(Node n : fringe){\n heuristicSetter(n);\n\n }\n\n fringeTemp.addAll(fringe);\n //now all the nodes in fringe have the heuristic value.\n //We can get the last added minm\n Node minm;\n if(fringeTemp.size() != 0){\n minm = fringeTemp.get(0);\n }else{\n break;\n }\n for(int i = 1; i<fringeTemp.size(); i++){\n if(fringeTemp.get(i).getHeuristic() <= minm.getHeuristic()){\n minm = fringeTemp.get(i);\n }\n }\n\n //now we have the minm for the next stage.\n current = minm;\n fringeTemp.remove(minm);\n fringe.clear();\n }\n\n //While loop ends\n System.out.println(\"No solution found.\");\n printExpanded(expanded);\n\n\n\n }",
"private void applyPowers(HashSet<ElitePower> elitePowers, int availablePowerAmount) {\n\n if (availablePowerAmount < 1) return;\n\n ArrayList<ElitePower> localPowers = new ArrayList<>(elitePowers);\n\n for (ElitePower mobPower : this.powers)\n localPowers.remove(mobPower);\n\n for (int i = 0; i < availablePowerAmount; i++)\n if (localPowers.size() < 1)\n break;\n else {\n ElitePower selectedPower = localPowers.get(ThreadLocalRandom.current().nextInt(localPowers.size()));\n this.powers.add(selectedPower);\n selectedPower.applyPowers(this.eliteMob);\n localPowers.remove(selectedPower);\n if (selectedPower instanceof MajorPower)\n this.majorPowerCount++;\n if (selectedPower instanceof MinorPower)\n this.minorPowerCount++;\n }\n\n }",
"public List<String> letterCombinations(String digits) {\n if (digits.length() == 0) {\n return combinations;\n }\n\n // Initiate backtracking with an empty path and starting index of 0\n phoneDigits = digits;\n backtrack(0, new StringBuilder());\n return combinations;\n }",
"private void updateHighLevelInfo() {\n\t\t// update activities mapping at high level petri net\n\t\tfor (HLActivity activity : process.getActivities()) {\n\t\t\t// update the choice node itself\n\t\t\tTransition transNode = (Transition) highLevelPN.findModelGraphVertexForActivity(activity.getID());\n\t\t\tColoredTransition transNsim = (ColoredTransition) this.findTransition(transNode);\n\t\t\thighLevelPN.replaceModelGraphVertexForActivity(transNode, transNsim);\n\t\t}\n\t\t// update choices mapping at high level petri net\n\t\tfor (HLChoice choice : process.getChoices()) {\n\t\t\t// update the choice node itself\n\t\t\tPlace choiceNode = (Place) highLevelPN.findModelGraphVertexForChoice(choice.getID());\n\t\t\tColoredPlace choiceNsim = (ColoredPlace) this.findPlace(choiceNode.getIdentifier());\n\t\t\thighLevelPN.replaceModelGraphVertexForChoice(choiceNode, choiceNsim);\n\t\t}\n\t\t// update the hlActivity links at the ColoredTransition\n\t\tIterator it = this.getTransitions().iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tColoredTransition simTrans = (ColoredTransition) it.next();\n\t\t\tHLActivity hlTrans = highLevelPN.findActivity(simTrans);\n\t\t\tsimTrans.setHighLevelTransition(hlTrans);\n\t\t}\n\t\t\n\t\t// Add the group for all resources to each transition and to the process\n\t\t// the group for all resources may only be attached to a transition in the case\n\t\t// that no group has been defined for that transition\n\t\tArrayList<HLID> allResourceIDs = new ArrayList<HLID>();\n\t\tIterator<HLResource> resourceIt = process.getResources().iterator();\n\t\twhile (resourceIt.hasNext()) {\n\t\t\tallResourceIDs.add(resourceIt.next().getID());\n\t\t}\n\t}",
"void levelList(Node root, ArrayList< LinkedList< Node > > results, int level)\n{\n\tif(root == null) return; // base case: the outlet of the recursive\n\n\tLinkedList<Node> list = null; // initialize list with null, i.e. we did not create it yet\n\n\t//because we use the DFS therefore we must pass the level as one of the parameter\n\t//to pinpoint the level for the current position\n\tif(results.size() == level)\n\t\t//now we are visiting a new level we did not visit before\n\t{\n\t\tlist = new LinkedList<Node>();//now we create a new element which will be stored in results later\n\t\tresults.add(list);\n\t}else{\n\t\t//else we have already visited this level and all we need to do is get out of the level \n\t\t//to add the new node into it\n\t\tlist = results.get(level);\n\t}\n\n\t//ok. now is the kernel operation, i.e. after we locate the level we will add the node anyway\n\tlist.add(root);\n\n\t//now we can go to the next recursive condition\n\t//do not forget to increase the level as the new parameter for the next round\n\tlevellist(root.left, results, level+1);\n\tlevellist(root.right, results, level+1);\n}",
"public <T> void getPossibleCombinationsOfPascal(List<T> aPossibleItems,\n List<T> aComboItems,\n int aStartIdx,\n int anEndIdx,\n int aCurrentIdx,\n int aChoiceSize,\n List<List<T>> aResults) {\n \n if (aCurrentIdx == aChoiceSize) {\n \n aResults.add(new ArrayList<T>(aComboItems));\n }\n else {\n \n if ( aStartIdx < anEndIdx) {\n \n aComboItems.set(aCurrentIdx, aPossibleItems.get(aStartIdx));\n this.getPossibleCombinationsOfPascal(aPossibleItems, \n aComboItems, \n aStartIdx+1, \n anEndIdx, \n aCurrentIdx+1, \n aChoiceSize, \n aResults);\n \n this.getPossibleCombinationsOfPascal(aPossibleItems, \n aComboItems, \n aStartIdx+1, \n anEndIdx, \n aCurrentIdx, \n aChoiceSize, \n aResults);\n }\n \n }\n\n }",
"@SuppressLint(\"NewApi\")\r\n\tpublic void showLevelAdvanceMenu() {\n\t\ttry {\r\n\t\t\tThread.sleep(500);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t}\r\n\t\tLevelManager levelManager = game.getModel().getLevelManager();\r\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(this);\r\n \tbuilder.setTitle(getString(R.string.level_passed) + \"\\n\" + getString(R.string.next_up));\r\n \tLevel[] nextLevels = levelManager.getNextLevels();\r\n \tLevel nextLevel = nextLevels[0];\r\n \tString levelCaption = nextLevel.getCaption();\r\n \t\r\n \tfinal List<Stage> unlockedStages = levelManager.getOtherUnlockedStages(nextLevel.getStageKey());\r\n \t\r\n \tboolean twoLevelsTemp = false;\r\n \tLevel nextUnlockedLevelTemp = null;\r\n \tint levelsCount = 1;\r\n \tif (nextLevels.length > 1) {\r\n \t\tnextUnlockedLevelTemp = nextLevels[1];\r\n \t\ttwoLevelsTemp = true;\r\n \t\tlevelsCount++;\r\n \t}\r\n \tfinal Level nextUnlockedLevel = nextUnlockedLevelTemp;\r\n \tfinal boolean twoLevels = twoLevelsTemp;\r\n \t\r\n \tString[] items = new String[unlockedStages.size() + levelsCount];\r\n \tint i = 0;\r\n \titems[i++] = levelCaption;\r\n \tif (twoLevels) {\r\n \t\titems[i++] = nextUnlockedLevel.getCaption();\r\n \t}\r\n \tfor (Stage stage: unlockedStages) {\r\n \t\titems[i++] = stage.getCaption();\r\n \t}\r\n \tbuilder.setItems(items, new DialogInterface.OnClickListener() {\r\n \t public void onClick(DialogInterface dialog, int item) {\r\n \t \tif (item > 0) {\r\n \t \t\tif (twoLevels) {\r\n \t \t\t\tif (item == 1) {\r\n \t \t\t\t\tgame.getController().selectLevel(nextUnlockedLevel);\r\n \t \t\t\t} else {\r\n \t \t\t\tshowChooseLevelMenu(unlockedStages.get(item - 2));\r\n \t \t\t\t}\r\n \t \t\t} else {\r\n \t \t\t\tshowChooseLevelMenu(unlockedStages.get(item - 1));\r\n \t \t\t}\r\n \t \t}\r\n \t \tpassLevelMenuDone();\r\n \t }\r\n \t});\r\n \tbuilder.setOnCancelListener(new DialogInterface.OnCancelListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void onCancel(DialogInterface dialog) {\r\n\t\t\t\tpassLevelMenuDone();\r\n\t\t\t}\r\n\t\t});\r\n \ttry {\r\n\t \tbuilder.setOnDismissListener(new DialogInterface.OnDismissListener() {\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void onDismiss(DialogInterface dialog) {\r\n\t\t\t\t\tpassLevelMenuDone();\r\n\t\t\t\t}\r\n\t\t\t});\r\n \t} catch (Throwable t) {\r\n \t\t// this might throw if API is not compatible\r\n \t\tLog.i(\"JaroActivity\", \"showLevelAdvanceMenu.t\");\r\n \t}\r\n \tAlertDialog dialog = builder.create();\r\n \tdialog.show();\r\n\t}",
"public BfsResult computeLevel(Buffer adjacencyMatrixTransposed, int startNode, int maxIterations, int concurrency) {\n checkStatusCode(setGlobalInt(GxB_NTHREADS, concurrency));\n\n long nodeCount = nrows(adjacencyMatrixTransposed);\n\n // result vector\n Buffer resultVector = createVector(intType(), nodeCount);\n // make result vector dense\n checkStatusCode(assignVectorInt(resultVector, null, null, 0, GrB_ALL, nodeCount, null));\n // finish pending work on v\n nvalsVector(resultVector);\n\n // queue vector\n Buffer queueVector = createVector(booleanType(), nodeCount);\n // init node vector\n setVectorElementBoolean(queueVector, startNode, true);\n\n // ! difference to ejml version: here exists an any monoid as well as a pair op\n // any is non-deterministic -> not possible in ejml semi-rings\n // any + pair -> determenistic as it will always return 1 if one pair is found\n Buffer semiRing = createSemiring(anyMonoidDouble(), pairBinaryOpDouble());\n\n Buffer multDesc = createDescriptor();\n // invert the mask\n checkStatusCode(setDescriptorValue(multDesc, GrB_MASK , GrB_COMP));\n // clear q first\n checkStatusCode(setDescriptorValue(multDesc, GrB_OUTP , GrB_REPLACE));\n\n Buffer assignDesc = createDescriptor();\n checkStatusCode(setDescriptorValue(assignDesc, GrB_MASK, GrB_STRUCTURE));\n\n int level = 1;\n // nodeCount\n int nodesVisited = 0;\n long nodesInQueue = 1;\n\n // BFS-traversal\n for (; ; level++) {\n // v<q> = level, using vector assign with q as the mask\n checkStatusCode(assignVectorInt(resultVector, queueVector, null, level, GrB_ALL, nodeCount, assignDesc));\n\n nodesVisited += nodesInQueue ;\n // check for fixPoint\n if (nodesInQueue == 0 || nodesVisited == nodeCount || level > maxIterations) break ;\n\n // q<¬v> = q lor.land matrix\n checkStatusCode(mxv(queueVector, resultVector, null, semiRing, adjacencyMatrixTransposed, queueVector, multDesc));\n\n nodesInQueue = nvalsVector(queueVector);\n }\n\n // output vector\n int[] values = new int[Math.toIntExact(nodeCount)];\n long[] indices = new long[Math.toIntExact(nodeCount)];\n\n // make sure everything got written\n vectorWait(resultVector);\n checkStatusCode(extractVectorTuplesInt(resultVector, values, indices));\n\n\n // free c-allocated stuff\n freeVector(queueVector);\n freeVector(resultVector);\n freeDescriptor(multDesc);\n freeDescriptor(assignDesc);\n freeSemiring(semiRing);\n\n // just using values as we know its a dense vector\n return new BfsDenseIntegerResult(values, level - 1, 0);\n }",
"private void addAllComposedGlyphsToSubset() {\n int newIndex = this.subset.size();\n for (final int composedGlyph : this.composedGlyphs) {\n this.subset.put(composedGlyph, newIndex++);\n }\n }",
"private void increaseLevel(boolean list)\n\t{\n\t\tlevel++;\n\n\t\tif(hasData.length == level)\n\t\t{\n\t\t\t// Grow lists when needed\n\t\t\thasData = Arrays.copyOf(hasData, hasData.length * 2);\n\t\t\tlists = Arrays.copyOf(lists, hasData.length * 2);\n\t\t}\n\n\t\thasData[level] = false;\n\t\tlists[level] = list;\n\n\t\tnextKey = ! list;\n\t}",
"private void incrementLevels(int levels){\n this.level += levels;\n if (this.level > 10){\n this.level = 10;\n }\n }",
"private static void recurseSubsets(\n List<List<Integer>> answer, ArrayList<Integer> currentAnswer, int[] nums, int startIndex) {\n answer.add(new ArrayList<>(currentAnswer)); // clone\n\n for (int i = startIndex; i < nums.length; i++) {\n currentAnswer.add(nums[i]);\n recurseSubsets(answer, currentAnswer, nums, i + 1); // i+1: don't reuse nums[i]\n currentAnswer.remove(currentAnswer.size() - 1);\n }\n }",
"private void permutation(int[] ans, int l, int r) {\n if (l == r)\n perm.add(ans.clone());\n else {\n for (int i = l; i <= r; i++) {\n ans = swap(ans, l, i);\n permutation(ans, l + 1, r);\n ans = swap(ans, l, i);\n }\n }\n }",
"protected void buildGroups( Group rootElement, ListIterator<IActualElement> elements ) {\n//\t\t\n\t\twhile ( elements.hasNext() ) {\n\t\t\tIActualElement element = elements.next();\n\n\t\t\t// untested\n\t\t\tif ( element.getLevel() == 88 ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif ( element.getLevel() <= rootElement.getLevel() ) {\n\t\t\t\telements.previous();\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif ( element.isOccursed() ) {\n\t\t\t\t//element.setOccursDepth( rootElement.getOccursDepth() + 1 );\n\t\t\t}\n\t\t\telse {\n\t\t\t\t//element.setOccursDepth( rootElement.getOccursDepth() );\n\t\t\t}\n\n\t\t\tif ( element instanceof Group ) {\n\t\t\t\tbuildGroups( (Group)element, elements);\n\t\t\t}\n\n\t\t\t//\t\t\t\t\n\t\t\trootElement.addChildElement( element );\n\n\t\t\tif ( element.isOccursed() )\n\t\t\t{\n\t\t\t\tfor ( int i = 1; i < element.getOccursCount(); ++i )\n\t\t\t\t{\n\t\t\t\t\tIActualElement clonedElement = element.cloneElement();\n//\t\t\t\t\t\n\t\t\t\t\trootElement.addChildElement( clonedElement );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void generalLevelUp() {\n\t\tif(currentGenLevelXP >= nextGenLevelXP)\n\t\t\tcurrentGenLevelXP = currentGenLevelXP - nextGenLevelXP;\n\t\telse\n\t\t\tcurrentGenLevelXP = 0;\n\t\t\n\t\tif(generalLevel < 40) { // Level cap is 40\n\t\t\tgeneralLevel++;\n\t\t\tLogger.print(getName() + \" levels up to \" + generalLevel + \".\");\n\t\t\tstatUp();\n\t\t}\n\t\tsetGenExpReq();\n\t}",
"public static void changeLevel(int Rs, int Cs, int level, int[][] original){\n cowGrid = new int[3][3];\n max = 0;\n\n //Finds the max number in the 3x3 grid.\n for (int i = 0; i < 3; i++){\n for (int j = 0; j < 3; j++){\n if (max < original[Rs + i][Cs + j]){\n max = original[Rs + i][Cs + j];\n }\n }\n }\n\n //Changes the depth of the grid.\n for (int i = 0; i < 3; i++){\n for (int j = 0; j < 3; j++){\n if (max - original[Rs + i][Cs + j] <= level){\n original[Rs + i][Cs + j] = max - level;\n }\n }\n }\n }",
"public abstract Combinacion elegirCombinacionOculta();",
"public void backtrack(List<String> result, int i, char[] chars) {\n\n if (i == chars.length) {\n // recursive signal outlet\n result.add(new String(chars));\n // recursive exports\n return;\n }\n\n // chars [i] in the current space possible once or twice Sleeper (The letter signal)\n if (Character.isLetter(chars[i])) {\n // parallel to the Level 1\n chars[i] = Character.toLowerCase(chars[i]);\n backtrack (result, i + 1, chars); // space to the next level\n\n // Level 2 in parallel, corresponding to the next backtrack\n chars[i] = Character.toUpperCase(chars[i]);\n }\n\n backtrack (result, i + 1, chars); // space to the next level\n\n }",
"private Stack<Select> selectionPathAux(JoinPointClass current, String joinPointName,\n ArrayList<JoinPointClass> visitedList, Set<JoinPointClass> ignoreSet, SelectionPathV2 selPath) {\n\n Stack<Select> path = new Stack<>();\n\n if (ignoreSet.contains(current) || visitedList.contains(current)) {\n\n return path;\n }\n\n final Select selected = select(current, joinPointName);\n if (selected != null) {\n\n path.push(selected);\n return path;\n }\n\n visitedList.add(current);\n\n // System.out.println(\"SELECTS: \" + current.getSelects());\n for (final Select select : current.getSelects()) {\n final JoinPointClass next = getJoinPoint(select);\n Stack<Select> pathAux = selectionPathAux(next, joinPointName, visitedList, ignoreSet, selPath);\n if (!pathAux.isEmpty()) {\n pathAux.add(select);\n if (selPath.hasSecondaryPath()) {\n selPath.getSecondaryPath().get().add(select);\n }\n if (!path.isEmpty()) {\n if (!alreadyFound) {\n selPath.setSecondaryPath(pathAux);\n selPath.setTieBreakReason(\"use the first path found (from a depth first search)\");\n // System.out.println(\n // \"More than one path for inital join point '\" + joinPointName + \"'. Two of then are: \");\n // Function<Pair<String, String>, String> converted = p -> {\n // if (p.getLeft().equals(p.getRight())) {\n // return p.getLeft();\n // }\n // return \"(\" + p.getRight() + \" as \" + p.getLeft() + \")\";\n // };\n //\n // System.out.println(\"\\t1. \" + StringUtils.join(path, converted, \".\"));\n // System.out.println(\"\\t2. \" + StringUtils.join(pathAux, converted, \".\"));\n //\n // System.out.println(\"Select uses a depth first search. Will use 1.\");\n alreadyFound = true;\n }\n break;\n }\n path = pathAux;\n } else {\n ignoreSet.add(next);\n }\n }\n visitedList.remove(current);\n\n return path;\n }",
"public void dfs(ArrayList<String> ans, String digits, int level, String str) {\n\t\tif (level == digits.length()) {\n ans.add(str);\n return;\n }\n \n \n //change it to ASCII code, and then get the string\n String letters = mapping[digits.charAt(level) - '0'];\n \n for (int i = 0; i < letters.length(); i++) {\n \tdfs(ans, digits, level+1, str+letters.charAt(i));\n }\n }",
"public static void permute()\n\t{\n\t\t/* INITIALIZE FOR PERMUTATION TESTING */\n\t\t//int l, r, s, T, K;\n\t\t//Random random = new Random();\n\t\tRandom random = new Random(13);\n\n\t\tclade = clad[k];\n\t\tclade.chiPvalue = 0;\n\n\t\tfor(int l = 0; l < 2; l++)\n\t\t{\n\t\t\tclade.ITcPvalue[l] = 0;\n\t\t\tclade.ITnPvalue[l] = 0;\n\t\t\tclade.corrDcWPvalue[l] = 0;\n\t\t\tclade.corrDnWPvalue[l] = 0;\n\t\t \n\t\t for(i = 0; i < clade.numSubClades; i++)\n\t\t\t{\n\t\t\t\tclade.DcPvalue[i][l] = 0;\n\t\t\t\tclade.DnPvalue[i][l] = 0;\n\t\t\t}\n\t\t}\n\n\n\t/*\n\t\tfprintf(stderr, \"\\n\\n\"); \n\t\tfor (i=0; i<numSubClades; i++)\n\t\tfprintf(stderr,\" rowTotal(%d):%d \", i, rowTotal[i]);\n\t\tfprintf(stderr, \"\\n\"); \n\t\tfor (j=0; j<numCladeLocations; j++)\n\t\tfprintf(stderr,\" columnTotal(%d):%d \", j, columnTotal[j]);\n\t\tfprintf(stderr, \"\\n\\n\");\n\t\t\n\t\tfprintf(stderr,\"\\n\\n Permuting %s\", title);\n\t\tfprintf(stderr,\"\\n 0 %d permutations\\n \",numPermutations);\n*/\t\t\n\t\tfor (int K = 0; K < GeoDis.numPermutations; K++)\n\t\t{\t\n\t\t\t\t\n\t\t\tprogress++;\n\t\t\tpercentage = ((double)progress * 100)/((double)numPermutations*(double)numClades); \n\t\n\t\t\trandObsChi = 0;\n\n\t\t\tfor(int l = 0; l < clade.totaNumObs; l++)\n\t\t\t\tclade.RBMatrix[l][0] = random.nextInt(); /* 0 - 32767\t*/\t\n\t\t\t \n\t\t\tclade.cumColTotal = 0; /* cumColTotal is the cumulative column total */\n\n\t\t\tfor(j = 0; j < clade.numCladeLocations; j++)\n\t\t\t{\t\n\t\t\t\tif (j == 0)\n\t\t\t\t\tclade.cumColTotal = 0;\n\t\t\t\telse\t\t\t\t\n\t\t\t\tclade.cumColTotal = clade.cumColTotal + clade.columnTotal[j-1];\n\t\t\t\t\n\t\t\t\tfor (int s = 0; s < clade.columnTotal[j]; s++)\n\t\t\t\t{\n\t\t\t\t\tint l = s + clade.cumColTotal;\n\t\t\t\t\tclade.RBMatrix[l][1] = j+1;\n\t\t\t\t}\n\t\t\t}\n\t\t/*for (l=0; l<totaNumObs; l++)\n\t\t\t\tfprintf(stderr,\"\\nB: %6d %d\", RBMatrix[l][0], RBMatrix[l][1]);*/\n\n\n\n\t\t\t/* * * ORDER BY RANDOM NUMBERS * * */\n\t\t\tfor(int l = 0; l < (clade.totaNumObs - 1); l++)\n\t\t\t{\t\n\t\t\t\tfor(int r = l +1; r < clade.totaNumObs; r++)\n\t\t\t \t{\t\t\t\n\t\t\t\t\tif(clade.RBMatrix[r][0] < clade.RBMatrix[l][0])\n\t\t\t\t\t//\tcontinue;\n\t\t\t\t\t\t\n\t\t\t\t\t//else\n\t\t\t\t\t{\t\n\t\t\t\t\t\tint T = clade.RBMatrix[r][0];\n\t\t\t\t\t\tclade.RBMatrix[r][0] = clade.RBMatrix[l][0];\n\t\t\t\t\t\tclade.RBMatrix[l][0] = T;\n\t\t\t\t\t\tT = clade.RBMatrix[r][1];\n\t\t\t\t\t\tclade.RBMatrix[r][1] = clade.RBMatrix[l][1];\n\t\t\t\t\t\tclade.RBMatrix[l][1] = T;\n\t\t\t \t\t}\n\t\t\t \t}\n\t\t \t}\n\t/*for (l=0; l<totaNumObs; l++)\n\t\t\tfprintf(stderr,\"\\nAfter: %6d %d\", RBMatrix[l][0], RBMatrix[l][1]);*/\n\n\n\t\t\t/* * * CALCULATE RANDOM OBSERVATIONS * * */\n\t\t\tfor(i = 0; i < clade.numSubClades; i++)\n\t\t\t\tfor(j = 0; j < clade.numCladeLocations; j++)\n\t\t\t\t\tclade.randMatrix[i][j] = 0;\n\n\t\t\t \n\t\t\tclade.cumRowTotal = 0; /* cumulative row totals */\n\t\t\t\t\n\t\t\tfor(i = 0; i < clade.numSubClades; i++)\n\t\t\t{\n\t\t\t\tif (i == 0)\n\t\t\t\tclade.cumRowTotal = 0;\n\t\t\t\t\n\t\t\t\telse\n\t\t\t\tclade.cumRowTotal += clade.rowTotal[i-1];\t\n\t\t\t\t\n\t\t\t\t/*fprintf(stderr, \"\\n\\nRow %d: rowTotal[i]:%d\",i, rowTotal[i]); */\n\t\t\t\t\n\t\t\t\tfor(int s = 0; s < clade.rowTotal[i]; s++)\n\t\t\t\t{\n\t\t\t\t\tint l = s + clade.cumRowTotal;\n\t\t\t\t\tindex = clade.RBMatrix[l][1]-1;\n\t\t\t\t\t/*fprintf(stderr, \"rowTotal= %d index=%d s=%d \",rowTotal[i], index, s); */\n\t\t\t\t\tclade.randMatrix[i][index]++;\n\t\t\t\t}\n\t\t\t}\n\n\n\n\n\t\t/* prints the randomized table of contingency\n\t\t\t\tfor(i = 0; i < numSubClades; i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tfprintf(stderr, \"\\n\");\n\t\t\t\t\t\tfor(j = 0; j < numCladeLocations; j++)\n\t\t\t\t\t\t\tfprintf(stderr, \"%d \", randMatrix[i][j]);\n\t\t\t\t\t}\n\t\t*/\t\t\n\n\n\t\t\t/* * CALCULATE RANDOM CHI - SQUARE STATISTIC * */\n\t\t\trandObsChi = 0;\n\t\t\n\t\t\tfor(i = 0; i < clade.numSubClades; i++)\n\t\t\t\tfor(j = 0; j < clade.numCladeLocations; j++)\n\t\t\t\t\trandObsChi += Math.pow( (double) clade.randMatrix[i][j] - clade.expObsMatrix[i][j], 2) / clade.expObsMatrix[i][j];\n\t\t\t\t\t\n\t\t\t/*fprintf(fpout,\"\\n%f \", randObsChi);\t\t*/\n\t\t\t\t\t\n\t\t\tif(randObsChi - clade.obsChi >= ROUNDING_ERROR)\n\t\t\t\tclade.chiPvalue++;\n\n\n\t\t\tif (doingDistances)\n\t\t\t{\n\t\t\t\tfor(c=0; c<clade.numSubClades; c++)\n\t\t\t\t{\n\t\t\t\t\tclade.randDc[c]=0.0;\n\t\t\t\t\tclade.randDn[c]=0.0;\n\t\t\t\t\t//clade.varDc[c]=0;\n\t\t\t\t\t//clade.varDn[c]=0;\n\t\t\t\t\tsum1 = sum2 = sum3 = 0.0;\n\t\t\t\t\tsumc1 = sumc2 = sumc3 = 0.0;\n\n\t\t\t\t\tfor(i=0; i<clade.numCladeLocations; i++) \t\n\t\t\t\t\t{\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tsum2 += clade.randMatrix[c][i] * (clade.randMatrix[c][i]-1) / 2 ;\n\t\t\t\t\t\tsumc2 += (clade.randMatrix[c][i] * (clade.randMatrix[c][i]-1) / 2) + \n\t\t\t\t\t (clade.randMatrix[c][i] * (clade.columnTotal[i] - clade.randMatrix[c][i]));\t\n\t\t\t\t\t\n\t\t\t\t\t\tfor (j=0; j<clade.numCladeLocations; j++)\n\t\t\t\t\t\t{\t\n\t\t\t\t\t\t\tpopA = clade.cladeLocIndex[i];\n\t\t\t\t\t\t\tpopB = clade.cladeLocIndex[j];\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (j != i)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tsum1 += (double) clade.randMatrix[c][i] * clade.randMatrix[c][j] * distance[popA-1][popB-1];\n\t\t\t\t\t\t\t\tsum3 += clade.randMatrix[c][i] * clade.randMatrix[c][j];\t\t\t\n\t\t\t\t\t\t\t\tsumc1 += (double) clade.randMatrix[c][i] * clade.columnTotal[j] * distance[popA-1][popB-1];\t\n\t\t\t\t\t\t\t\tsumc3 += clade.randMatrix[c][i] * clade.columnTotal[j];\n\t\t\t\t\t\t\t\t//System.err.println(\"\\npopA = \" + popA + \" popB = \" + popB + \" dist= \" + distance[popA-1][popB-1]);\n\t\t\t\t\t\t\t\t//System.err.println(\"sumc1: \" + clade.randMatrix[c][i] + \" * \" + clade.columnTotal[j] +\" * \" + distance[popA-1][popB-1] + \" = \" + sumc1); \n\t\t\t\t\t\t\t\t//System.err.println(\"\\nROBS[\" + c +\"][\" + i+ \"]= \" + clade.randMatrix[c][i]); \n\t\t\t\t\t\t\t\t//System.err.println(\"\\nCT[\" + j +\"]= \" + clade.columnTotal[j]); \n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} \n\n\t\t\t\t\t\t//System.err.println(\"\\nOBS[\" + c +\"][\" + i+ \"]= \" + clade.obsMatrix[c][i]); \n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tif (sum3 == 0)\n\t\t\t\t\t\tclade.randDc[c] = 0;\n\t\t\t\t\telse\n\t\t\t\t\t\tclade.randDc[c] = sum1 / (sum2 + sum3);\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\t\tif (sumc3 == 0)\n\t\t\t\t\t\tclade.randDn[c] = 0;\n\t\t\t\t\telse\n\t\t\t\t\t\tclade.randDn[c] = sumc1 / (sumc2 + sumc3);\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t//System.err.println(\"\\nClade \" + clade.cladeName + \" subclade \" + c + \n\t // \" Dc= \" + clade.Dc[c] + \" Dn= \" + clade.Dn[c]); \t\t\n\t\t\n\t\t\t\t\t//System.err.println(\"sum1= \" + sum1 + \" sum2= \" + sum2 + \" sum3= \" + sum3); \n\t\t\t\t\t//System.err.println(\"sumc1= \" + sumc1 + \" sumc2= \" + sumc2 + \" sumc3= \" + sumc3); \n\n\n\t\t\t\t\tif(clade.Dc[c] - clade.randDc[c] >= ROUNDING_ERROR)\n\t\t\t\t\t\tclade.DcPvalue[c][0]++;\n\n\t\t\t\t\tif(clade.randDc[c] - clade.Dc[c] >= ROUNDING_ERROR )\n\t\t\t\t\t\tclade.DcPvalue[c][1]++;\n\n\t\t\t\t\tif(clade.Dn[c] - clade.randDn[c] >= ROUNDING_ERROR)\n\t\t\t\t\t\tclade.DnPvalue[c][0]++;\n\n\t\t\t\t\tif(clade.randDn[c] - clade.Dn[c] >= ROUNDING_ERROR)\n\t\t\t\t\t\tclade.DnPvalue[c][1]++;\n\n\n\t\t\t\n\t\t\t\t}\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\telse\n\t\t\t{\n\t\t\t\t/* * CALCULATE DISTANCE TEST STATISTIC * */\n\n\t\t\t\tfor(i = 0; i < clade.numSubClades; i++)\n\t\t\t\t{\n\t\t\t\t\tclade.randMeanLatitude[i] = 0;\n\t\t\t\t\tclade.randMeanLongitude[i] = 0;\n\t\t\t\t\tclade.randDc[i] = 0;\n\t\t\t\t\tclade.randDn[i] = 0;\n\t\t\t\t\tclade.subCladeSum[i] = 0;\n\t\t\t\t\n\t\t\t\t\tfor(j = 0; j < clade.numCladeLocations; j++)\n\t\t\t\t\t{\n\t\t\t\t\t\tindex = clade.cladeLocIndex[j] - 1;\n\t\t\t\t\t\tclade.absFreq[i][j] = (double) clade.randMatrix[i][j] / (double) sampleSize[index];\t\t\n\t\t\t\t\t\tclade.subCladeSum[i] = clade.subCladeSum[i] + clade.absFreq[i][j];\n\t\t\t\t\t}\t\n\n\t\t\t\t\tfor(j = 0; j < clade.numCladeLocations; j++)\n\t\t\t\t\t\tclade.relFreq[i][j] = clade.absFreq[i][j]/clade.subCladeSum[i];\n\t\t\t\t}\n\t\t/*\t\t\n\t\t\t\tfor(i = 0; i < numSubClades; i++)\n\t\t\t\t{\n\t\t\t\t\tfprintf(stderr,\"\\n\");\n\t\t\t\t\tfor(j = 0; j < numCladeLocations; j++)\n\t\t\t\t\t\tfprintf(stderr,\"Asim: %f \", relFreq[i][j]);\n\t\t\t\t}\n\t\t*/\n\t\t\t\t\n\t\t\t\tfor(i = 0; i < clade.numSubClades; i++)\n\t\t\t\t{\t\n\t\t\t\t\tfor(j = 0; j < clade.numCladeLocations; j++)\n\t\t\t\t\t{\n\t\t\t\t\t\tindex = clade.cladeLocIndex[j]-1;\n\t\t\t\t\t\tclade.randMeanLatitude[i] = clade.randMeanLatitude[i] + clade.relFreq[i][j] * Latitude[index];\n\t\t\t\t\t\tclade.randMeanLongitude[i] = clade.randMeanLongitude[i] + clade.relFreq[i][j] * Longitude[index];\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tfor(j = 0; j < clade.numCladeLocations; j++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (clade.relFreq[i][j] == 0)\n\t\t\t\t\t\t\tcontinue;\n\n\t\t\t\t\t\tindex = clade.cladeLocIndex[j] - 1;\n\t\t\t\t\t\tif (Latitude[index] == clade.randMeanLatitude[i] && Longitude[index] == clade.randMeanLongitude[i]) \n\t\t\t\t\t\t\tZ = 1;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tZ = Math.sin(Latitude[index]) * Math.sin(clade.randMeanLatitude[i]) + Math.cos(Latitude[index]) * \n\t\t\t\t\t\t\tMath.cos(clade.randMeanLatitude[i]) * Math.cos(clade.randMeanLongitude[i] - Longitude[index]);\n\t\t\t\t\t\n\t\t\t\t\t\tif (Math.abs(Z) < 1)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tRVZ = RADIUS * Math.acos (Z); \n\t\t\t\t\t\t\tclade.randDc[i] += clade.relFreq[i][j] * RVZ;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (Latitude[index] == clade.meanLatNest && Longitude[index] == clade.meanLonNest) \n\t\t\t\t\t\t\tZB = 1;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tZB = Math.sin(Latitude[index]) * Math.sin(clade.meanLatNest) + Math.cos(Latitude[index]) * \n\t\t\t\t\t\t\tMath.cos(clade.meanLatNest) * Math.cos(clade.meanLonNest - Longitude[index]);\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (Math.abs(ZB) < 1)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tRVZ = RADIUS * Math.acos (ZB);\n\t\t\t\t\t\t\tclade.randDn[i] += clade.relFreq[i][j] * RVZ;\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tif(clade.Dc[i] - clade.randDc[i] >= ROUNDING_ERROR)\n\t\t\t\t\t\tclade.DcPvalue[i][0]++;\n\n\t\t\t\t\tif(clade.randDc[i] - clade.Dc[i] >= ROUNDING_ERROR)\n\t\t\t\t\t\tclade.DcPvalue[i][1]++;\n\n\t\t\t\t\tif(clade.Dn[i] - clade.randDn[i] >= ROUNDING_ERROR)\n\t\t\t\t\t\tclade.DnPvalue[i][0]++;\n\n\t\t\t\t\tif(clade.randDn[i] - clade.Dn[i] >= ROUNDING_ERROR)\n\t\t\t\t\t\tclade.DnPvalue[i][1]++;\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t\t/* * TEST STATISTICS FOR POSITION VS. INTERIOR * */\n\n\t\t\trandTipDistance = 0;\n\t\t\trandIntDistance = 0;\n\t\t\trandTipDisNested = 0;\n\t\t\trandIntDisNested = 0;\n\t\t\t\n\t\t\tif(clade.check != (double) clade.numSubClades && clade.check != 0)\n\t\t\t{\t\n\t\t\t\tfor(i = 0; i < clade.numSubClades; i++)\n\t\t\t\t{\n\t\t\t\t\trandTipDistance += clade.Position[i] * clade.randDc[i] * (double) clade.rowTotal[i] / (double) clade.indTipClades;\n\t\t\t\t\trandTipDisNested += clade.Position[i] * clade.randDn[i] * (double) clade.rowTotal[i] / (double) clade.indTipClades;\n\t\t\t\t\trandIntDistance += (1 - clade.Position[i]) * clade.randDc[i] * (double) clade.rowTotal[i] / (double) clade.indIntClades;\n\t\t\t\t\trandIntDisNested += (1 - clade.Position[i]) * clade.randDn[i] * (double) clade.rowTotal[i] / (double) clade.indIntClades;\n\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\tif(clade.tipIntDistance - (randIntDistance - randTipDistance) >= ROUNDING_ERROR)\n\t\t\t\t\tclade.ITcPvalue[0]++;\n\n\t\t\t\tif((randIntDistance - randTipDistance) - clade.tipIntDistance >= ROUNDING_ERROR)\n\t\t\t\t \tclade.ITcPvalue[1]++;\n\n\t\t\t\tif(clade.tipIntDisNested - (randIntDisNested - randTipDisNested) >= ROUNDING_ERROR)\n\t\t\t\t\tclade.ITnPvalue[0]++;\n\t\t\t\t\n\t\t\t\tif((randIntDisNested - randTipDisNested) - clade.tipIntDisNested >= ROUNDING_ERROR)\n\t\t\t\t\tclade.ITnPvalue[1]++;\n\t\t\t\t\n\t\t\t}\n\n\t\t\tif(!weights){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t//{\n\t\t\t\t/* * CORRELATION TESTS OF DISTANCE WITH OUTGROUP WEIGHTS * */\n\n\t\t\t\t //double c, n, w;\n\t\t\t\t \n\t\t\t\t clade.meanDc = 0;\n\t\t\t\t clade.meanDn = 0;\n\t\t\t\t clade.sumDcxWeight = 0;\n\t\t\t\t clade.sumDnxWeight = 0;\n\t\t\t\t clade.sumDcSq = 0;\n\t\t\t\t clade.sumDnSq = 0;\n\n\t\t\t\tfor(i = 0; i < clade.numSubClades; i++)\n\t\t\t\t\t{\n\t\t\t\t \tclade.meanDc += clade.randDc[i] / (double) clade.numSubClades;\n\t\t\t\t \tclade.meanDn += clade.randDn[i] / (double) clade.numSubClades;\n\t\t\t\t \tclade.sumDcxWeight += clade.randDc[i] * clade.weight[i];\n\t\t\t\t \tclade.sumDnxWeight += clade.randDn[i] * clade.weight[i];\n\t\t\t\t \tclade.sumDcSq += Math.pow(clade.randDc[i],2); \n\t\t\t\t \tclade.sumDnSq += Math.pow(clade.randDn[i],2);\n\t\t\t\t\t}\n\t\t\t\t\n\t \t\tdouble c = clade.sumDcSq - (double) clade.numSubClades * Math.pow(clade.meanDc,2);\n\t \t\tdouble n = clade.sumDnSq - (double) clade.numSubClades * Math.pow(clade.meanDn,2);\n\t \t\t\tdouble w = clade.sumWeightSq - (double) clade.numSubClades * Math.pow(clade.meanWeight,2); \n\n\t\t\t\tif (clade.corrDcWeights != NA && c > 0 && w > 0)\n\t\t\t\t\t//;\n\t\t\t\t//else\n\t\t\t\t \t{\n\t\t\t\t \tclade.randCorrDcWeights = (clade.sumDcxWeight - (double) clade.numSubClades * clade.meanDc * clade.meanWeight)/ \n\t\t\t\t \t(Math.sqrt(c*w));\n\n\t\t\t\t\tif(clade.randCorrDcWeights > 1)\n\t\t\t\t\t\t\tclade.randCorrDnWeights = 1;\n\t\t\t\t\t\n\t\t\t\t\tif(clade.randCorrDcWeights < -1)\n\t\t\t \t\tclade.randCorrDcWeights = -1;\n\t\t\t\t\n\t\t\t\t\tif(clade.corrDcWeights - clade.randCorrDcWeights >= ROUNDING_ERROR)\n\t\t\t\t \t\tclade.corrDcWPvalue[0]++;\n\t\t\t\t\t \n\t\t\t\t\tif(clade.randCorrDcWeights - clade.corrDcWeights >= ROUNDING_ERROR)\n\t\t\t\t \tclade.corrDcWPvalue[1]++;\n\t\t\t\t\t}\n\n\n\t\t\t\tif (clade.corrDnWeights == NA || n <= 0 || w <= 0)\n\t\t\t\t\tcontinue;\t\t\n\t\t\t\t//else\n\t\t\t\t\t//{\n\t\t\t\t \tclade.randCorrDnWeights = (clade.sumDnxWeight - (double) clade.numSubClades * clade.meanDn * clade.meanWeight)/ \n\t\t\t\t \t(Math.sqrt(n*w));\n\t\t\t\t\n\t\t\t\t\tif(clade.randCorrDnWeights > 1)\n\t\t\t\t\t\tclade.randCorrDnWeights = 1;\n\n\t\t\t\t\tif(clade.randCorrDnWeights < -1)\n\t\t\t\t\t\tclade.randCorrDnWeights = -1;\n\n\t\t\t\t\tif(clade.corrDnWeights - clade.randCorrDnWeights >= ROUNDING_ERROR)\n\t\t\t\t\t\tclade.corrDnWPvalue[0]++;\n\n\t\t\t\t\tif(clade.randCorrDnWeights - clade.corrDnWeights >= ROUNDING_ERROR)\n\t\t\t\t\t\tclade.corrDnWPvalue[1]++;\n\t\t\t\t\t//}\n\t\t\t\t//}\n\t} // end of 1 replicate\n\n\n\t\tclade.chiPvalue /= (double) GeoDis.numPermutations;\n\n\t\tfor(int l = 0; l < 2; l++)\n\t\t{\n\t\t\tclade.ITcPvalue[l] /= (double) GeoDis.numPermutations;\n\t\t\tclade.ITnPvalue[l] /= (double) GeoDis.numPermutations;\n\t\t\tclade.corrDcWPvalue[l] /= (double) GeoDis.numPermutations;\n\t\t\tclade.corrDnWPvalue[l] /= (double) GeoDis.numPermutations;\n\n\t\t\tfor (i =0; i < clade.numSubClades; i++)\n\t\t\t{\n\t\t\t clade.DcPvalue[i][l] /= (double) GeoDis.numPermutations;\n\t\t\t clade.DnPvalue[i][l] /= (double) GeoDis.numPermutations;\n\t\t\t}\n\t\t}\n\n\t}",
"public static Object[] ticket_combo(int l, Set<Set<Object>> ticket_indices_powerset, Object[] all_number_subset_array, Object[] winning_number_subset_array) {\n \n Set<Object> curr_t = new HashSet<Object>(); //carries one ticket\n Set<Object> set_to_buy = new HashSet<Object>(); //carries one winning combo\n Set<Object> curr_win_combo = new HashSet<Object>(); //carries one ticket combo\n \n boolean has_winning = false;\n int match_count = 0;\n int ticket_amount_count = all_number_subset_array.length; //smallest amount of tickets needed so far\n \n // a combo to possibly buy\n for(Set<Object> curr_indices_subset : ticket_indices_powerset) {\n int curr_num_tickets_to_buy = curr_indices_subset.toArray().length;\n if(ticket_amount_count <= curr_num_tickets_to_buy && has_winning)\n {\n continue;\n }\n //copy a winning array\n Object[] winning_number_subset_array_copy = Arrays.copyOf(winning_number_subset_array, winning_number_subset_array.length);\n //setup a counter of uncovered winning combos\n int uncovered_winning_possibilities = winning_number_subset_array_copy.length;\n Object[] curr_indices_subset_array = curr_indices_subset.toArray();\n \n //take each ticket in a combo\n for(Object curr_index : curr_indices_subset_array) {\n int curr_index_int = ((Integer) curr_index).intValue() - 1;\n curr_t = (java.util.HashSet<java.lang.Object>) all_number_subset_array[curr_index_int];\n \n //see which winning combos you can cross out\n for(int i = 0; i < winning_number_subset_array_copy.length; i++) {\n match_count = 0;\n curr_win_combo = (java.util.HashSet<java.lang.Object>) winning_number_subset_array[i];\n if (winning_number_subset_array_copy[i] instanceof Integer)\n {\n continue;\n }\n \n for(Object combo_num : curr_win_combo) {\n for(Object ticket_num : curr_t) {\n if(((Integer)combo_num).intValue() == ((Integer)ticket_num).intValue())\n {\n match_count++;\n }\n }\n }\n if(match_count >= l)\n {\n uncovered_winning_possibilities--;\n winning_number_subset_array_copy[i] = 0;\n }\n }\n }\n //after ticket combo loop\n if((uncovered_winning_possibilities == 0) && (!has_winning || (curr_num_tickets_to_buy < ticket_amount_count)))\n {\n has_winning = true;\n ticket_amount_count = curr_num_tickets_to_buy;\n set_to_buy = curr_indices_subset;\n \n }\n }\n Object[] final_ticket_indeces = set_to_buy.toArray();\n return final_ticket_indeces;\n }",
"private List<EventProducer> createHierarchy(\n\t\t\tList<EventProducer> eventProdToMerge, double currentHierarchyDepth,\n\t\t\tint ppid, int dividingFactor) {\n\t\tLinkedList<EventProducer> newEventProd = new LinkedList<EventProducer>();\n\n\t\tint groupSize;\n\n\t\t// If first hierarchy depth\n\t\tif (currentHierarchyDepth == 0.0)\n\t\t\t// Do not split, just create a super producer representing the whole\n\t\t\t// group\n\t\t\tgroupSize = eventProdToMerge.size();\n\t\telse\n\t\t\t// Compute the size of a new group\n\t\t\tgroupSize = eventProdToMerge.size() / dividingFactor;\n\n\t\tif (groupSize <= 1)\n\t\t\treturn eventProdToMerge;\n\n\t\tint mergedProducers = 0;\n\t\tint i;\n\n\t\t// Compute new group of EP\n\t\tfor (i = 0; i < eventProdToMerge.size() - groupSize; i = i + groupSize) {\n\t\t\tEventProducer newNode = createProducer(eventProdToMerge.get(i)\n\t\t\t\t\t.getName() + \"_\" + (int) currentHierarchyDepth, ppid);\n\t\t\tnewEventProd.add(newNode);\n\t\t\tLinkedList<EventProducer> newSubGroup = new LinkedList<EventProducer>();\n\n\t\t\t// Update the parent of leaves event prod\n\t\t\tfor (int j = i; j < i + groupSize; j++) {\n\t\t\t\teventProdToMerge.get(j).setParentId(newNode.getId());\n\t\t\t\tnewSubGroup.add(eventProdToMerge.get(j));\n\t\t\t}\n\n\n\t\t\t// Keep merging?\n\t\t\tif (currentHierarchyDepth + 1 < maxHierarchyDepth\n\t\t\t\t\t&& newSubGroup.size() >= dividingFactor\n\t\t\t\t\t&& newSubGroup.size() > 1) {\n\t\t\t\tnewEventProd.addAll(createHierarchy(newSubGroup,\n\t\t\t\t\t\tcurrentHierarchyDepth + 1, newNode.getId(),\n\t\t\t\t\t\tdividingFactor));\n\t\t\t}\n\t\t\telse {\n\t\t\t\tnewEventProd.addAll(newSubGroup);\n\t\t\t}\n\t\t\tmergedProducers = i + groupSize;\n\t\t}\n\n\t\tint remainingEP = eventProdToMerge.size() - mergedProducers;\n\n\t\tif (remainingEP == 1) {\n\t\t\tnewEventProd.add(eventProdToMerge.get(eventProdToMerge.size() - 1));\n\t\t} else\n\t\t\t// Check if some producer remains\n\t\t\tif (mergedProducers < eventProdToMerge.size()) {\n\t\t\t\tEventProducer newNode = createProducer(eventProdToMerge.get(i)\n\t\t\t\t\t\t.getName() + \"_\" + (int) currentHierarchyDepth, ppid);\n\t\t\t\tnewEventProd.add(newNode);\n\t\t\t\tLinkedList<EventProducer> newSubGroup = new LinkedList<EventProducer>();\n\n\t\t\t\tfor (i = mergedProducers; i < eventProdToMerge.size(); i++) {\n\t\t\t\t\tif(currentHierarchyDepth > 0.0 || newNode.getName().matches(\"^\\\\d+$\")\n\t\t\t\t\t\t\t|| newNode.getName().compareTo(eventProdToMerge.get(i).getName()\n\t\t\t\t\t\t\t\t\t+ \"_\" + (int) currentHierarchyDepth) != 0){\n\t\t\t\t\t\t// Do not copy data structure at depth 0\n\t\t\t\t\t\teventProdToMerge.get(i).setParentId(newNode.getId());\n\t\t\t\t\t\tnewSubGroup.add(eventProdToMerge.get(i));\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (currentHierarchyDepth + 1 < maxHierarchyDepth\n\t\t\t\t\t\t&& newSubGroup.size() >= dividingFactor\n\t\t\t\t\t\t&& newSubGroup.size() > 1 && dividingFactor > 1) {\n\t\t\t\t\tnewEventProd.addAll(createHierarchy(newSubGroup,\n\t\t\t\t\t\t\tcurrentHierarchyDepth + 1, newNode.getId(),\n\t\t\t\t\t\t\tdividingFactor));\n\t\t\t\t} else {\n\t\t\t\t\tnewEventProd.addAll(newSubGroup);\n\t\t\t\t}\n\t\t\t}\n\n\t\tlogger.debug(currentHierarchyDepth + \", \" + newEventProd.size());\n\t\treturn newEventProd;\n\t}",
"public LinkedList<BoardPermute> solve(int districtSize) {\n double votesToWin = districtSize / 2.0;\r\n \r\n int district = 0;\r\n LinkedList<BoardPermute> possBoards = new LinkedList<BoardPermute>();\r\n possBoards.add(new BoardPermute(boardRows, boardCols));\r\n \r\n // for each unassigned square\r\n int unassigned = boardRows*boardCols;\r\n for (int i = 0; i < unassigned; i++) {\r\n// System.out.println((unassigned - i) + \" rounds remaining...\");\r\n int currPossBoards = possBoards.size();\r\n int assignedToDistrict = i % districtSize;\r\n if (assignedToDistrict == 0) district++;\r\n for (int j = 0; j < currPossBoards; j++) {\r\n// if ((currPossBoards - j) % 100 == 0) {\r\n// System.out.println((unassigned - i) + \" rounds remaining: \" + (currPossBoards - j) + \" possible boards remaining this round.\");\r\n// }\r\n if (j == 0)\r\n System.out.println((unassigned - i) + \" rounds remaining: \" + (currPossBoards - j) + \" possible boards this round.\");\r\n BoardPermute possBoard = possBoards.poll();\r\n // a new district needs to start\r\n if (assignedToDistrict == 0) {\r\n Square move = possBoard.newDistrict();\r\n BoardPermute newBoard = possBoard.copyBoardWithChange(move, district, getSquare(move));\r\n if (!possBoards.contains(newBoard)) {\r\n possBoards.add(newBoard);\r\n }\r\n }\r\n // or an old district needs to expand\r\n else {\r\n ArrayList<Square> moves = possBoard.expandDistrict(district);\r\n for (Square move : moves) {\r\n // check if move would invalidate the district\r\n int newScore = possBoard.districtScore(district) + getSquare(move);\r\n int otherVotes = (assignedToDistrict+1) - newScore;\r\n if (newScore == 0 || otherVotes < votesToWin) {\r\n BoardPermute newBoard = possBoard.copyBoardWithChange(move, district, getSquare(move));\r\n // TODO: this is totally inefficient\r\n // there must be a better way but I am too tired right now to think of it\r\n if (!possBoards.contains(newBoard)) {\r\n possBoards.add(newBoard);\r\n }\r\n }\r\n }\r\n }\r\n }\r\n \r\n }\r\n \r\n return possBoards;\r\n }",
"public void dfs(String[] letters, String digits, int index, String tmp, ArrayList<String> rnt){\n if(index==digits.length()){\n rnt.add(tmp);\n return;\n }\n \n int num = digits.charAt(index) - '0';\n String curr = letters[num];\n //case 1: current length is 0 \n if(curr.length()==0)\n dfs(letters, digits, index+1, tmp, rnt);\n //case 2: not 0, try all combinations\n else{\n for(int i=0; i<curr.length(); i++){\n String newtmp = tmp + curr.charAt(i);\n dfs(letters, digits, index+1, newtmp, rnt);\n }\n }\n }",
"private void helper(int[] S, int k, int p, ArrayList<ArrayList<Integer>> result, ArrayList<Integer> set) {\n if(k==0) {\n result.add(set);\n return;\n }\n if(S.length-p>=k) {\n ArrayList<Integer> newSet = new ArrayList<Integer>(set);\n newSet.add(S[p]);\n helper(S, k-1, p+1, result, newSet); //if S[p] be choosen\n helper(S, k, p+1, result, set); // if S[p] not be choosen\n }\n\n }",
"void findFactors(Multimap<JBurgPatternMatcher, JBurgPatternMatcher> factors)\n {\n if ( isRoot() || parentIsRoot() || isNary() )\n {\n // The first two levels of the tree are a priori present so\n // they don't need to be factored, and n-ary patterns are\n // leaf nodes with their own arity checking so they don't\n // need to be factored, either.\n }\n else\n {\n factors.addToSet(this,this);\n }\n\n if ( this.subPatterns != null )\n for (JBurgPatternMatcher kid: this.subPatterns)\n kid.findFactors(factors);\n }",
"public static void builtTree\n ( ArrayList<DefaultMutableTreeNode> treeArray , \n int recursion , DefaultMutableTreeNode selected , \n boolean enableDirs , boolean enableFiles )\n {\n int m;\n if (recursion<0) { m = DEFAULT_RECURSION_LIMIT; }\n else { m = recursion; }\n for ( int k=0; k<m; k++ )\n {\n boolean request = false;\n // Start cycle for entries\n int n = treeArray.size();\n for ( int i=0; i<n; i++ )\n {\n DefaultMutableTreeNode x1 = treeArray.get(i);\n // Support selective mode, skip if not selected\n if ( (selected != null) & ( selected != x1 ) ) continue;\n // Analyse current entry, skip if already handled\n ListEntry x2 = (ListEntry)x1.getUserObject();\n if ( x2.handled == true ) continue;\n request = true;\n x2.failed = false;\n // Start handling current entry\n String x3 = x2.path;\n File file1 = new File( x3 );\n boolean exists1 = file1.exists();\n boolean directory1=false;\n if (exists1) { directory1 = file1.isDirectory(); }\n // Handling directory: make list of childs directories/files\n if ( exists1 & directory1 )\n {\n String[] list = file1.list();\n int count=0;\n if ( list != null ) count = list.length;\n for ( int j=0; j<count; j++ )\n {\n String s1 = list[j];\n String s2 = x3+\"/\"+s1;\n File file2 = new File(s2);\n boolean dir = file2.isDirectory();\n if ( ( enableDirs & dir ) | ( enableFiles & !dir ) )\n {\n ListEntry y1 = \n new ListEntry ( s1, \"\", s2, false, false );\n DefaultMutableTreeNode y2 = \n new DefaultMutableTreeNode( y1 );\n treeArray.add( y2 );\n x1.add( y2 );\n x1.setAllowsChildren( true ); // this entry is DIRECTORY\n }\n }\n }\n // Handling file: read content\n if ( exists1 & !directory1 )\n {\n int readSize = 0;\n //\n StringBuilder data = new StringBuilder(\"\");\n FileInputStream fis;\n byte[] array = new byte[BUFFER_SIZE];\n try \n { \n fis = new FileInputStream(file1);\n readSize = fis.read(array); \n fis.close();\n }\n catch ( Exception e ) \n // { data = \"N/A : \" + e; x2.failed=true; }\n { data.append( \"N/A : \" + e ); x2.failed = true; }\n char c1;\n for (int j=0; j<readSize; j++)\n { \n c1 = (char)array[j];\n // if ( (c1=='\\n') | (c1=='\\r') ) { data = data + \" \"; }\n if ( ( c1 == '\\n' ) | (c1 == '\\r' ) ) { data.append( \" \" ); }\n else \n { \n if ( ( c1 < ' ' )|( c1 > 'z' ) ) { c1 = '_'; }\n // data = data + c1;\n data.append( c1 );\n }\n }\n x2.name2 = data.toString();\n x2.leaf = true;\n x1.setAllowsChildren( false ); // this entry is FILE\n }\n // End cycle for entries\n x2.handled = true;\n }\n // End cycle for recursion\n if (request==false) break;\n }\n }",
"public void growthCycle() {\n\t\tboolean doMore = true;\n\t\tdo {\n\t\t\tdoMore = false;\n\t\t\tgrower = planter;\n\t\t\tCollections.shuffle(grower, random);\n\t\t\tplanter = new ArrayList<Room>();\n\t\t\tfor(Room room : grower) {\n\t\t\t\tif(rooms.size() >= size.maxRooms) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif(room.plantChildren(this)) {\n\t\t\t\t\t//System.out.println(\"Added side room.\");\n\t\t\t\t\tdoMore = true;\n\t\t\t\t}\n\t\t\t} \n\t\t} while(doMore);\t\t\n\t\t//DoomlikeDungeons.profiler.endTask(\"Adding Rooms (growthCycle)\");\n\t}",
"private void buildGroups() {\n if(groups.size() == 1){\n Group aGroup = groups.get(0);\n for (Team team : teams) {\n aGroup.add(team);\n }\n return;\n }\n\n for (Team team : teams) {\n groups.get(getIndex()).add(team);\n }\n }",
"public List<List<Integer>> getLevelSequences(int sfactor) {\n\n List<List<Integer>> sequences = new ArrayList<List<Integer>>();\n List<Integer> al = new ArrayList<Integer>();\n\n if (selectedLevelIndices.size() > 0) {\n int previous = selectedLevelIndices.get(0);\n al.add(previous);\n for (int i = 1; i < selectedLevelIndices.size(); i++) {\n int next = selectedLevelIndices.get(i);\n if (next - previous == 1 && al.size() <= sfactor) {\n al.add(next);\n previous = next;\n } else {\n sequences.add(al);\n al = new ArrayList<Integer>();\n al.add(next);\n previous = next;\n }\n }\n\n sequences.add(al);\n }\n\n return sequences;\n }",
"public void combinationUtil(int arr[], int data[], int start, \n int end, int index, int r) \n {\n if (index == r) \n { \n int c_arr[] = new int[r];\n for (int j=0; j<r; j++){ \n if(data[j]!=0){\n // System.out.print(data[j]+\" \");\n c_arr[j] = data[j]; \n }\n else{\n c_arr = new int[0];\n break;\n } \n }\n if(c_arr.length>0){\n // System.out.println(\"-----\"); \n combinations.add(c_arr);\n }\n\n return; \n } \n for (int i=start; i<=end && end-i+1 >= r-index; i++) \n { \n data[index] = arr[i]; \n combinationUtil(arr, data, i+1, end, index+1, r); \n } \n }",
"private void changeLevel(int levelNum) {\n /* TODO: clean up in here */\n try \n {\n if(levelNum > 0) \n {\n /* positive leve number means get a puzzle from manager */\n\n /* retrieve the puzzle from the puzzlemanager by number */\n Puzzle level = timLevels.getLevel(levelNum);\n\n /* if manager returned null, print error message and don't do anything else */\n if(level == null) \n {\n System.err.println(\"Error changing to level \" + levelNum);\n fireTimEvent(new TimEvent(this,TimEvent.UPDATE),TimEvent.TIMGUI); //not quite sure why this event gets fired in the event of a level loading failure since nothing has changed --Andrew\n return;\n }\n\n /* clear existing world */\n winTester = null; //remove old wintester\n timWorld.clear(); //clear world of old widgets\n ws.clearWidgets(); //clear widget scroller of old widgets\n SELECT_MODE = SelectMode.NONE;\n selectedWidget = null;\n\n /* create the widgets and add them to the world */\n ArrayList<LockedWidgetInfo> lockedWidgets = level.getLockedWidgetSet();\n\n /* ordered list of created widgets */\n ArrayList<Widget> widgetList = new ArrayList<Widget>();\n\n for(int i=0; i < lockedWidgets.size(); i++) \n {\n /* create the widget */\n Widget w = WidgetFactory.createWidget(lockedWidgets.get(i).getWidgetClassName());\n /* set its position */\n w.setPosition(new Vector2f(lockedWidgets.get(i).getX(),lockedWidgets.get(i).getY()));\n /* set its direction */\n w.setDirection(lockedWidgets.get(i).getDirection());\n /* set it to locked */\n w.setLock(true);\n /* add it to the world */\n timWorld.addWidget(w);\n\n /* dirty hack to be able to retrieve widgets from ordered list for win condition tester */\n widgetList.add(w);\n }\n\n /* Add placeable widgets to scroller */\n ArrayList<ToolboxWidgetInfo> levelWidgets = level.getToolboxWidgetSet();\n for(int i=0; i < levelWidgets.size(); i++) \n {\n String className =levelWidgets.get(i).getWidgetClassName();\n int qty = levelWidgets.get(i).getNumber();\n ws.addWidget(className.substring(className.lastIndexOf('.') + 1,className.length()), qty);\n }\n\n /* set up win condition tester */\n /* win condition info */\n String winConditionType = new String(level.getWinCondition().getType());\n ArrayList<Object> winArgs = level.getWinCondition().getArguments();\n \n /* set up the win condition for the level*/\n if(winConditionType.equals(WinConditionInfo.SINGLECOLLISION)) \n {\n if(winArgs != null) \n {\n SingleCollision singCol = new SingleCollision();\n timWorld.addCollisionListener(singCol);\n /* grab appropriate widget from the list */\n singCol.setTargetWidget(widgetList.get(Integer.parseInt(winArgs.get(0).toString())));\n winTester = singCol;\n }\n }\n else if(winConditionType.equals(WinConditionInfo.PAIRCOLLISION)) \n {\n if(winArgs != null) \n {\n PairCollision pairCol = new PairCollision();\n timWorld.addCollisionListener(pairCol);\n pairCol.setTargetWidget1(widgetList.get(Integer.parseInt(winArgs.get(0).toString())));\n pairCol.setTargetWidget2(widgetList.get(Integer.parseInt(winArgs.get(1).toString())));\n winTester = pairCol;\n }\n }\n else if(winConditionType.equals(WinConditionInfo.TOUCHLOCATION)) \n {\n if(winArgs != null) \n {\n TouchingLocationCollision touchLocCol = new TouchingLocationCollision(Integer.parseInt(winArgs.get(1).toString()), Integer.parseInt(winArgs.get(2).toString()), Integer.parseInt(winArgs.get(3).toString()), Integer.parseInt(winArgs.get(4).toString()));\n touchLocCol.setTargetWidget1(widgetList.get(Integer.parseInt(winArgs.get(0).toString())));\n winTester = touchLocCol;\n }\n }\n else if(winConditionType.equals(WinConditionInfo.INSIDELOCATION)) \n {\n if(winArgs != null) \n {\n InsideLocationCollision inLocCol = new InsideLocationCollision(Integer.parseInt(winArgs.get(1).toString()), Integer.parseInt(winArgs.get(2).toString()), Integer.parseInt(winArgs.get(3).toString()), Integer.parseInt(winArgs.get(4).toString()));\n timWorld.addCollisionListener(inLocCol);\n inLocCol.setTargetWidget1(widgetList.get(Integer.parseInt(winArgs.get(0).toString())));\n winTester = inLocCol;\n }\n }\n else\n {\n /* TODO: expand this error handling considerably */\n System.out.println(\"Invalid Win Condition set\");\n }\n \n /* fire event to tell timgui to update */\n fireTimEvent(new TimEvent(this,TimEvent.UPDATE,levelNum,level),TimEvent.TIMGUI);\n }\n else \n {\n /* freeplay mode */\n timWorld.clear();\n winTester = null; //remove old win tester\n SELECT_MODE = SelectMode.NONE;\n selectedWidget = null;\n\n /* add all widgets from the factory to the scroller in unlimited quantities */\n ws.clearWidgets();\n for(String widget : WidgetFactory.availableWidgets()) {\n ws.addWidget(widget,-1);\n }\n }\n } \n catch (Exception ex) \n {\n System.out.println(ex.getMessage());\n ex.printStackTrace();\n System.out.println(\"Error changing to level \" + levelNum);\n }\n }",
"static void combinationUtil(int arr[], int data[], int start, \n\t\t\tint end, int index, int r,ArrayList<ArrayList<Integer>> setOfIntArrays) \n\t{ \n\t\t// Current combination is ready to be printed, print it \n\t\tif (index == r) { \n\t\t//System.out.println(\"\\n\");\n\t\tArrayList<Integer> lineArray = new ArrayList<Integer>();\n\t\t\n\t\t\t\tfor (int j=0; j<r; j++) {\n\t\t\t\t\t//System.out.print(data[j]); \n\t\t\t\t\t//System.out.println(\"\\n\\n\"); \n\t\t\t\t\tlineArray.add(new Integer(data[j]));\n\t\t\t\t\t}\n\t\t\t\tsetOfIntArrays.add(lineArray);\n\t\t\t\treturn; \n\t\t\t} \n\t\t// replace index with all possible elements. The condition \n\t\t// \"end-i+1 >= r-index\" makes sure that including one element \n\t\t// at index will make a combination with remaining elements \n\t\t// at remaining positions \n\t\tfor (int i=start; i<=end && end-i+1 >= r-index; i++) \n\t\t{ \n\t\t\tdata[index] = arr[i]; \n\t\t\tcombinationUtil(arr, data, i+1, end, index+1, r,setOfIntArrays); \n\t\t} \n\n\t}",
"public void buildEssentialPrimeImplicant(){ \n //int count = 0; \n // For loop ticks all the essential prime Implicants\n for(Entry<Integer, Boolean> mint: mintermList.entrySet()){\n //System.out.printf(\"\\n %d minterm inside buildEssential.\", mint.getKey());\n int count = 0; \n for(Implicant p:primeImp){\n if(p.contains(mint.getKey())){\n count++;\n }\n }\n \n if(count == 1){ // Prime Implicant occurs for only one minterm\n mint.setValue(true);\n for(Implicant x:primeImp){\n if(x.contains(mint.getKey())){\n if(!finalPrimeImp.contains(x))\n finalPrimeImp.add(x);\n \n //System.out.printf(\"\\n %s added to final Prime Implicant List.\",x.toString());\n }\n }\n \n }\n \n }\n \n /**\n * Remove Essential Prime Implicant from primeImpl\n */\n for (Implicant i:finalPrimeImp){\n primeImp.remove(i);\n for(Entry<Integer, Boolean> mint: mintermList.entrySet()){\n if(i.contains(mint.getKey()))\n mint.setValue(true); \n }\n primeImp.remove(i);\n } \n }",
"private IndividualGroupList adaptativeSplitIntoGroups(List<Individual> individuals) \n {\n int individualCount = individuals.size();\n\n IndividualGroupList groups = new IndividualGroupList();\n IndividualGroup group = new IndividualGroup();\n int currentGroupSize = 8;\n \n for (int i = 0; i < individualCount; i++)\n {\n Individual individual = individuals.get(i);\n\n int individualGroupSize = getGroupSize(individual.getPositiveProbability());\n\n if (individualGroupSize != currentGroupSize || group.countIndividuals() == currentGroupSize)\n {\n groups.add(group);\n group = new IndividualGroup();\n currentGroupSize = individualGroupSize;\n }\n\n group.add(individual);\n }\n\n if (group.countIndividuals() > 0)\n groups.add(group);\n \n return groups;\n }",
"public void cloningFactor() {\n\t\t\t\n\t\t\tsort();\n\t\t\tdouble factorNum = 0.0; \n\t\t\t\n\t\t\tfor(Solution sol : population) {\n\t\t\t\tfactorNum = averagePath / (double) sol.getPath();\n\t\t\t\tsol.setCloningFactor(factorNum);\n\t\t\t}\n\t\t}",
"private void subLayers(Layer layer, int layerGroupId, int depth)\n\t{\n\t\tLayer subLayer;\n\t\tint totalLayers = layer.getLayersCount();\n\t\t\n\t\tfor (int i = totalLayers - 1; i >= 0; i--) {\n\t\t\tsubLayer = layer.getLayer(i);\n\t\t\t\n\t\t\tif (!subLayer.isVisible() || (subLayer.getType() == LayerType.NORMAL && subLayer.getWidth() == 0)) {\n\t\t\t\tthis.layersToRemove.add(subLayer);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tsubLayer.adjustPositionAndSizeInformation();\n\t\t\tthis.layerId++;\n\t\t\t\n\t\t\tif (LayerType.NORMAL == subLayer.getType()) {\n\t\t\t\t\n\t\t\t\tsubLayer.setUniqueLayerId(this.layerId);\n\t\t\t\tsubLayer.setGroupLayerId(layerGroupId);\n\t\t\t\tsubLayer.setDepth(depth);\n\t\t\t\t\n\t\t\t\tthis.layers.add(subLayer);\n\t\t\t\t\n\t\t\t} else if (LayerType.OPEN_FOLDER == subLayer.getType() || LayerType.CLOSED_FOLDER == subLayer.getType()) {\n\t\t\t\t\n\t\t\t\tsubLayer.setUniqueLayerId(this.layerId);\n\t\t\t\tsubLayer.setGroupLayerId(layerGroupId);\n\t\t\t\tsubLayer.setDepth(depth);\n\t\t\t\t\n\t\t\t\tthis.layers.add(subLayer);\n\t\t\t\t\n\t\t\t\tif (subLayer.getLayersCount() > 0) {\n\t\t\t\t\tthis.subLayers(subLayer, this.layerId, depth + 1);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t}",
"public List<String> letterCombinations(String digits) {\n\t \n\t recurse(digits, \"\");\n\t return ans; \n\t}",
"public final void rule__XCasePart__Group__3__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:11099:1: ( ( ( rule__XCasePart__Alternatives_3 ) ) )\r\n // InternalDroneScript.g:11100:1: ( ( rule__XCasePart__Alternatives_3 ) )\r\n {\r\n // InternalDroneScript.g:11100:1: ( ( rule__XCasePart__Alternatives_3 ) )\r\n // InternalDroneScript.g:11101:2: ( rule__XCasePart__Alternatives_3 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXCasePartAccess().getAlternatives_3()); \r\n }\r\n // InternalDroneScript.g:11102:2: ( rule__XCasePart__Alternatives_3 )\r\n // InternalDroneScript.g:11102:3: rule__XCasePart__Alternatives_3\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__XCasePart__Alternatives_3();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXCasePartAccess().getAlternatives_3()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public void powerSwitcher(int x, int y, int radius, boolean power) {\t\t\r\n\r\n\t\tfor(int k=1;k<radius+1;k++) { //Add power to tiles around building if its possible\r\n\t\t\tif(x-k>=0) {\t\t\t\t\t//First check if tile can be checked\r\n\t\t\t\tif(power) {\r\n\t\t\t\t\ttileMap[x-k][y].setPowered(true); //If we are adding power add or else remove\r\n\t\t\t\t}else {\r\n\t\t\t\t\ttileMap[x-k][y].setPowered(false);\r\n\t\t\t\t}\t\r\n\t\t\t} \r\n\t\t\tif(x+k<201) { //Repeat for all directions \r\n\t\t\t\tif(power) { \r\n\t\t\t\t\ttileMap[x+k][y].setPowered(true);\r\n\t\t\t\t}else {\r\n\t\t\t\t\ttileMap[x+k][y].setPowered(false);\r\n\t\t\t\t}\t\r\n\t\t\t}\r\n\t\t\tif(y-k>=0) {\r\n\t\t\t\tif(power) {\r\n\t\t\t\t\ttileMap[x][y-k].setPowered(true);\r\n\t\t\t\t}else {\r\n\t\t\t\t\ttileMap[x][y-k].setPowered(false);\r\n\t\t\t\t}\t\r\n\t\t\t}\r\n\t\t\tif(y+k<201) {\r\n\t\t\t\tif(power) {\r\n\t\t\t\t\ttileMap[x][y+k].setPowered(true);\r\n\t\t\t\t}else {\r\n\t\t\t\t\ttileMap[x][y+k].setPowered(false);\r\n\t\t\t\t}\t\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private static int combinationRecursive(int n, int k) {\n\t\tif (k == 0 || n == k) {\n\t\t\treturn 1;\n\t\t} else {\n\t\t\treturn (int)(n/(double)k) * combinationRecursive(n-1, k-1);\n\t\t}\n\t}",
"private List<SquareNode> createCluster(boolean skip, int ...levels ) {\n\n\t\tint total = 0;\n\t\tfor (int i = 0; i < levels.length; i++) {\n\t\t\ttotal += levels[i];\n\t\t}\n\n\t\tList<SquareNode> out = new ArrayList<>();\n\t\tfor (int i = 0; i < total; i++) {\n\t\t\tout.add( new SquareNode());\n\t\t\tout.get(i).graph = SquareNode.RESET_GRAPH;\n\t\t\tout.get(i).square = new Polygon2D_F64(4);\n\t\t}\n\n\t\tint previous = 0;\n\t\tfor (int i = 0; i < levels.length-1; i++) {\n\t\t\tint current = previous + levels[i];\n\t\t\tint next = current + levels[i + 1];\n\t\t\tfor (int a = 0; a < levels[i]; a++) {\n\t\t\t\tSquareNode n = out.get(previous + a);\n\n\t\t\t\tint right = skip ? current + a + 1 : current + a;\n\t\t\t\tint left = right - 1;\n\n\t\t\t\tif (right < next)\n\t\t\t\t\tconnect(n, 2, out.get(right), 0);\n\t\t\t\tif (left >= current) {\n\t\t\t\t\tconnect(n, 3, out.get(left), 1);\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tprevious = current;\n\t\t\tskip = !skip;\n\t\t}\n\n\t\treturn out;\n\t}",
"private final void connectSkipEdgesAndGroupLevelWEdges() {\n for (int v1=0;v1<nNodes;++v1) {\n int nSkipEdges = nSkipEdgess[v1];\n // Loop through only skip vertices.\n if (nSkipEdges == 0) continue;\n\n int[] nextNodes = outgoingSkipEdgeNextNodess[v1];\n int[] nextNodeEdgeIndexes = outgoingSkipEdgeNextNodeEdgeIndexess[v1];\n int[] outgoingSkipEdges = outgoingSkipEdgess[v1];\n float[] skipWeights = outgoingSkipEdgeWeightss[v1];\n for (int j=0;j<nSkipEdges;++j) {\n // Start from vertex v1, move in direction j.\n int previous = v1;\n int current = nextNodes[j];\n int firstEdgeIndex = nextNodeEdgeIndexes[j];\n outgoingSkipEdges[j] = current;\n skipWeights[j] = edgeWeights[firstEdgeIndex];\n\n // invariants:\n // 1. outgoingSkipEdges[j] == current.\n // 2. skipWeights[j] == path length from v1 up to current.\n // initially, skipWeights[j] = weight(v1, nextNodes[j])\n\n while (nSkipEdgess[current] == 0) {\n int nLevelWNeighbours = nLevelWNeighbourss[current];\n int[] levelWEdgeOutgoingIndexes = levelWEdgeOutgoingIndexess[current];\n \n // While current is still not yet a skip vertex,\n // Else continue expanding.\n int[] outgoingEdges = outgoingEdgess[current];\n\n for (int k=0;k<nLevelWNeighbours; ++k) {\n int index = levelWEdgeOutgoingIndexes[k];\n int next = outgoingEdges[index];\n if (next == previous) continue;\n \n int edgeIndex = outgoingEdgeIndexess[current][index];\n\n // now next == the next node in the list.\n previous = current;\n current = next;\n\n outgoingSkipEdges[j] = current;\n skipWeights[j] += edgeWeights[edgeIndex];\n break;\n }\n }\n // now all the edges along that subpath will be of the same index group.\n }\n }\n }",
"static void findGroups() {\n G2 = 0;\n while (group2()) {\n }\n\n // find group of size 3\n G3 = 0;\n while (group3()) {\n }\n }",
"@Override\n public void update() {\n selectedLevel.update();\n }",
"private void levelUp() {\n\t\t\n\t\tfor (ArrayList<Invader> row : enemyArray) {\n\t\t\tfor (Invader a : row) {\n\t\t\t\tif (a.getVisibility()) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tresetInvaders();\n\t\taddRow();\n\t\t\n\t\tenemyShotList.add(new Shot(0, 0, SHOT_WIDTH, SHOT_HEIGHT, 15));\n\t\tlevel++;\n\t\t\n\t\tint powerupx = (int) (Math.random()*(WIDTH-PLAYER_WIDTH));\n\t\tdouble poweruprandom = Math.random();\n\t\t\n\t\tif (poweruprandom < 0.25) {\n\t\t\tarmorPiercing.reset(powerupx);\n\t\t}\n\t\t\n\t\tif (poweruprandom >= 0.25 && poweruprandom < 0.5) {\n\t\t\texplosive.reset(powerupx);\n\t\t}\n\t}",
"public synchronized void setLevel(int actId) {\n/* 76 */ this.component.setLevels(actId);\n/* */ }",
"private void shrinkComponents() {\n List<List<XGraph.XVertex>> components = getComponents();\n XGraph.XVertex componentVertices[] = new XGraph.XVertex[components.size()];\n\n int index = 0;\n //create or assign component\n for (List<XGraph.XVertex> component : components) {\n //if the size of the component is 1 then there is no need to create a new component group.\n componentVertices[index++] = component.size() == 1 ? component.get(0) :\n graph.getNewComponent();\n }\n index = 0;\n //Add edges\n for (XGraph.XVertex component : componentVertices) {\n //Disable vertex and edges of the children and get minimum edge\n Hashtable<Integer, XGraph.XEdge> minEdges = new Hashtable<>();\n //Process all child vertices only if this is a new component\n if (components.get(index).size() > 1) {\n for (XGraph.XVertex vertex : components.get(index++)) {\n getMinEdges(vertex, minEdges);\n vertex.disable();\n }\n } else {\n index++;\n getMinEdges(component, minEdges);\n }\n for (Map.Entry<Integer, XGraph.XEdge> edgeEntry : minEdges.entrySet()) {\n XGraph.XEdge minEdge = edgeEntry.getValue();\n XGraph.XVertex toVertex = componentVertices[scc.getComponentNo(minEdge.toVertex())];\n //Edge already there in original graph no need to add\n if (toVertex == minEdge.toVertex() && component == minEdge.fromVertex()) {\n continue;\n }\n //Need to create a new edge\n minEdge.disable();\n //Avoid loopback\n if (toVertex.isComponent() && toVertex != minEdge.toVertex()) {\n minEdge = new XGraph.XEdge(component, toVertex, minEdge.getWeight(), minEdge);\n } else {\n minEdge = new XGraph.XEdge(component, toVertex, minEdge.getWeight(), minEdge.getOriginal());\n }\n component.addEdge(minEdge);\n toVertex.addRevEdge(minEdge);\n }\n }\n }",
"private static void nestedFor(int i) {\n\t\tif (i == pows.length) {\n\t\t\tsjekkTall();\n\t\t\treturn;\n\t\t}\n\t\tint pow = pows[i];\n\t\t\n\t\tfor (int pow1 = 0; pow1 <= pow; pow1++) {\n\t\t\tpows1[i] = pow1;\n\t\t\tfor (int pow2 = 0; pow2+pow1 <= pow; pow2++) {\n\t\t\t\tpows2[i] = pow2;\n\t\t\t\tint pow3 = pow-pow1-pow2;\n\t\t\t\tpows3[i] = pow3;\n\t\t\t\tnestedFor(i+1);\n\t\t\t}\n\t\t}\n\t}",
"public List<Configuration> solve(){\n int group = 0;\n for(List<Configuration> set : input){\n minimize(set);\n\n for(Configuration root : set) {\n root.setGroup(group);\n }\n group++;\n\n }\n\n // Step 2: Preprocess\n sortBySize(input);\n\n // Step 5: Initialize set of partial solutions\n List<Configuration> partialSolutions;\n if(input.size()==0){\n return null;\n }\n else {\n partialSolutions = input.get(0);\n input.remove(partialSolutions);\n }\n\n // Step 6: The compositional computations\n for(List<Configuration> set : input) {\n filter(partialSolutions, setCutoff);\n filter(set, setCutoff);\n partialSolutions = combine(partialSolutions, set, constraints);\n }\n\n // Step 7: Postprocessing\n //greedyPostProcessing(partialSolutions);\n\n return partialSolutions;\n }",
"private void updateInconsistencies(PlanGraphStep newStep, int currentLevel) {\n\t\t\n\t\tSet<LPGInconsistency> currentLevelInconsistencies = inconsistencies.get(currentLevel);\n\n\t\t/** remove any unsupported precondition inconsistencies that newStep supports */ \n\t\tcheckSupportedPreconditions(newStep, currentLevel, currentLevelInconsistencies);\n\t\t\n\t\t/** add any new mutex steps */\n\t\tcheckMutexSteps(newStep, currentLevel, currentLevelInconsistencies);\n\t\t\n\t\t/** check last level facts for preconditions of newStep */\n\t\tcheckUnsupportedPreconditions(newStep, currentLevel);\n\t}",
"public final void rule__XCasePart__Group__0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:11007:1: ( rule__XCasePart__Group__0__Impl rule__XCasePart__Group__1 )\r\n // InternalDroneScript.g:11008:2: rule__XCasePart__Group__0__Impl rule__XCasePart__Group__1\r\n {\r\n pushFollow(FOLLOW_81);\r\n rule__XCasePart__Group__0__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_2);\r\n rule__XCasePart__Group__1();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"private boolean pareGroup(Double groupKey, int roundNumber) {\n\t\tMap<String, ChesspairingPlayer> group = this.groupsByResult.get(groupKey);\n\t\t//<debug>\n\t\tif (group == null){\n\t\t\tSystem.out.println(\"group is null\");\n\t\t}\n\t\t//</debug>\n\t\tList<ChesspairingPlayer> players = new ArrayList<>();\n\t\tfor (Entry<String, ChesspairingPlayer> entry : group.entrySet()) {\n\t\t\tplayers.add(entry.getValue());\n\t\t}\n\t\t// order the group\n\t\tCollections.sort(players, new ByInitialOrderIdReverce());\n\t\tCollections.sort(players, new ByElo());\n\t\t// by points just in case it was a downfloater in the group\n\t\tCollections.sort(players, new Comparator<ChesspairingPlayer>() {\n\t\t\t@Override\n\t\t\tpublic int compare(ChesspairingPlayer o1, ChesspairingPlayer o2) {\n\t\t\t\tDouble pointsO1 = currentPoints.get(o1.getPlayerKey());\n\t\t\t\tDouble pointsO2 = currentPoints.get(o2.getPlayerKey());\n\t\t\t\treturn Double.compare(pointsO1, pointsO2);\n\t\t\t}\n\t\t});\n\n\t\tif (players.size() % 2 != 0) {\n\t\t\tthrow new IllegalStateException(\"You should have resolved groups count before\");\n\t\t}\n\n\t\t/**\n\t\t * split the list indexes and build the s1 and s2\n\t\t */\n\t\tList<List<Integer>> split = Tools.initialSplitList(players.size());\n\t\tList<Integer> list1 = split.get(0);\n\t\tList<Integer> list2 = split.get(1);\n\t\tint size = list2.size();\n\t\tInteger[] newArray = new Integer[size];\n\t\tInteger[] s1 = new Integer[size];\n\t\t// copy the elements\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tnewArray[i] = list2.get(i);\n\t\t\ts1[i] = list1.get(i);\n\t\t}\n\t\tSet<Integer[]> permutations = Tools.getPermutationsV01(newArray);\n\t\t// for each permutation test if paring is valid\n\t\tSet<Integer[]> validPermutations = new HashSet<>();\n\t\tfor (Integer[] s2 : permutations) {\n\t\t\tif (testIfPermutationIsValid(s1, s2, players)) {\n\t\t\t\tvalidPermutations.add(s2);\n\t\t\t}\n\t\t}\n\t\tif (validPermutations.size() == 0) {\n\t\t\t// drop the group and restart the paring. move all players down?\n\t\t\t// Yes!\n\t\t\treturn false;\n\t\t}\n\t\t// for the moment just take the first permutation and pare the players\n\t\tInteger[] s2 = validPermutations.iterator().next();\n\t\tList<ChesspairingGame> games = buildGamesFromPermutation(s1, s2, players);\n\t\tthis.generatedRound.getGames().addAll(games);\n\t\treturn true;\n\t}",
"private static void iddfs(State curr, int depth) {\n for(int i = 0; i <= depth; i++) {\r\n\r\n if(curr.isGoalState()) \r\n System.out.println(i+\":\"+curr.getOrderedPair()+\" Goal\");//initial is goal state\r\n else\r\n System.out.println(i+\":\"+curr.getOrderedPair());//initial\r\n\r\n curr.close.add(curr);\r\n State currState = curr;\r\n while(!currState.isGoalState()) {\r\n if(currState.depth < i)\r\n curr.buildStack(currState.getSuccessors(currState));\r\n System.out.print(i+\":\");\r\n curr.printHelp(currState, 5);\r\n if(!curr.open.isEmpty()) {\r\n currState = curr.open.get(curr.open.size()-1);\r\n curr.close.add(curr.open.remove(curr.open.size()-1));\r\n } else {\r\n break;\r\n }\r\n }\r\n\r\n if(currState.isGoalState()) {\r\n System.out.println(i+\":\"+currState.getOrderedPair() + \" Goal\");\r\n curr.printPath(currState);\r\n return;\r\n }\r\n curr.open.clear(); curr.close.clear();\r\n }\r\n }",
"public void testBuildTreeDeepStructure() {\n TreeNode root = buildRootNodeFromFile(\"testWihManyLevels.js\");\n\n // Ensure the hierarchy is correct.\n assertEquals(\"suite1\", root.getNodeValue().getTestText());\n assertEquals(4, root.getChildCount());\n }",
"private void expandAll()\r\n\t{\r\n\t\tint count = listAdapter.getGroupCount();\r\n\t\tfor (int i = 0; i < count; i++)\r\n\t\t{\r\n\t\t\tmyList.expandGroup(i);\r\n\t\t}\r\n\t}",
"public void fillSpecChoices(List ChoiceMenu) {\n\n ChoiceMenu.add(\"Quadratic Koch Island 1 pg. 13\"); /* pg. 13 */\n ChoiceMenu.add(\"Quadratic Koch Island 2 pg. 14\"); /* pg. 14 */\n ChoiceMenu.add(\"Island & Lake Combo. pg. 15\"); /* pg.15 */\n ChoiceMenu.add(\"Koch Curve A pg. 16\");\n ChoiceMenu.add(\"Koch Curve B pg. 16\");\n ChoiceMenu.add(\"Koch Curve C pg. 16\");\n ChoiceMenu.add(\"Koch Curve D pg. 16\");\n ChoiceMenu.add(\"Koch Curve E pg. 16\");\n ChoiceMenu.add(\"Koch Curve F pg. 16\");\n ChoiceMenu.add(\"Mod of Snowflake pg. 14\");\n ChoiceMenu.add(\"Dragon Curve pg. 17\");\n ChoiceMenu.add(\"Hexagonal Gosper Curve pg. 19\");\n ChoiceMenu.add(\"Sierpinski Arrowhead pg. 19\");\n ChoiceMenu.add(\"Peano Curve pg. 18\");\n ChoiceMenu.add(\"Hilbert Curve pg. 18\");\n ChoiceMenu.add(\"Approx of Sierpinski pg. 18\");\n ChoiceMenu.add(\"Tree A pg. 25\");\n ChoiceMenu.add(\"Tree B pg. 25\");\n ChoiceMenu.add(\"Tree C pg. 25\");\n ChoiceMenu.add(\"Tree D pg. 25\");\n ChoiceMenu.add(\"Tree E pg. 25\");\n ChoiceMenu.add(\"Tree B pg. 43\");\n ChoiceMenu.add(\"Tree C pg. 43\");\n ChoiceMenu.add(\"Spiral Tiling pg. 70\");\n ChoiceMenu.add(\"BSpline Triangle pg. 20\");\n ChoiceMenu.add(\"Snake Kolam pg. 72\");\n ChoiceMenu.add(\"Anklets of Krishna pg. 73\");\n\n /*-----------\n Color examples \n -----------*/\n ChoiceMenu.add(\"Color1, Koch Curve B\");\n ChoiceMenu.add(\"Color2, Koch Curve B\");\n ChoiceMenu.add(\"Color X, Spiral Tiling\");\n ChoiceMenu.add(\"Color Center, Spiral Tiling\");\n ChoiceMenu.add(\"Color Spokes, Spiral Tiling\");\n ChoiceMenu.add(\"Color, Quad Koch Island 1\");\n ChoiceMenu.add(\"Color, Tree E\");\n ChoiceMenu.add(\"Color, Mod of Snowflake\");\n ChoiceMenu.add(\"Color, Anklets of Krishna\");\n ChoiceMenu.add(\"Color, Snake Kolam\");\n\n ChoiceMenu.add(\"Simple Branch\");\n\n\n }",
"public void DFS(List<List<Integer>> result, List<Integer> temp, int n, int start){\n for(int i = start; i * i <= n; i++){\n //we skip undividable factor\n if(n%i != 0) continue;\n \n //found a pair of factor, we can add them to temp list to build a valid factor combination\n List<Integer> copy = new ArrayList<Integer>(temp);\n //since i <= n/i, we will add i first, then n/i\n copy.add(i);\n copy.add(n/i);\n result.add(copy);\n \n //then we try to decompose larger n/i factor, and our later factors shall not be > i, since i has been inserted into list \n temp.add(i);\n DFS(result, temp, n/i, i);\n temp.remove(temp.size() - 1);\n }\n }",
"public List<List<Integer>> permute(int[] nums) {\n if (nums.length < 2) {\n LinkedList<List<Integer>> res = new LinkedList<>();\n List<Integer> list = Arrays.stream(nums).boxed().collect(Collectors.toList());\n res.add(list);\n return res;\n }\n\n ArrayList<List<Integer>> result = new ArrayList<>();\n ArrayList<Set<Integer>> setList = new ArrayList<>();\n\n //The base set that all the other sets will be \"cloned\" from\n Set<Integer> numSetBase = Arrays.stream(nums).boxed().collect(Collectors.toSet());\n\n //Initialize the custom map-thingy\n for (int i = 0; i < nums.length; i++) {\n List<Integer> temp = new LinkedList<>();\n temp.add(nums[i]);\n result.add(temp); //Key - the list\n\n Set<Integer> newSet = new HashSet<>(numSetBase);\n newSet.remove(nums[i]);\n\n setList.add(newSet); //Add to the set of stuff left\n }\n\n //Iterate\n for (int i = 1; i < nums.length; i++) {\n //Iterate over the whole list\n int initialSize = result.size();\n for (int j = 0; j < initialSize; j++) {\n boolean isFirstElem = true;\n int firstElem = 0;\n //For each unused int in the set entry\n for (int unused: setList.get(j)) {\n if (isFirstElem) {\n firstElem = unused;\n isFirstElem = false;\n } else {\n //Add new entries for the unused nums\n Set<Integer> newSet = new HashSet<>(setList.get(j));\n List<Integer> newList = new LinkedList<>(result.get(j));\n newList.add(unused);\n newSet.remove(unused);\n //Add the new entry\n result.add(newList);\n setList.add(newSet);\n }\n }\n //Modify the first element\n if (!setList.get(j).isEmpty()) {\n result.get(j).add(firstElem);\n setList.get(j).remove(firstElem);\n }\n }\n }\n return result;\n }",
"public abstract boolean levelUp();"
] | [
"0.7148202",
"0.51688933",
"0.4913049",
"0.4906424",
"0.48757824",
"0.48179406",
"0.47642988",
"0.47559533",
"0.47363746",
"0.46673936",
"0.46547246",
"0.46256244",
"0.46167392",
"0.45935935",
"0.4566597",
"0.45478797",
"0.45393363",
"0.44817173",
"0.44389465",
"0.4427499",
"0.44259486",
"0.44166785",
"0.44055822",
"0.4395847",
"0.4393418",
"0.43904394",
"0.43866485",
"0.43765256",
"0.43734503",
"0.43606967",
"0.43589908",
"0.43584388",
"0.43543953",
"0.43445066",
"0.43437123",
"0.4342834",
"0.43427888",
"0.43419823",
"0.43327913",
"0.4332595",
"0.4325726",
"0.43201917",
"0.43104598",
"0.431004",
"0.43071055",
"0.43060255",
"0.43039057",
"0.43011466",
"0.4300237",
"0.42928657",
"0.426247",
"0.425946",
"0.42563376",
"0.4232748",
"0.42281",
"0.42246196",
"0.42227802",
"0.42205966",
"0.42199454",
"0.42098615",
"0.42084098",
"0.42076066",
"0.4205808",
"0.4189843",
"0.41836575",
"0.4175215",
"0.41721323",
"0.4166557",
"0.41665322",
"0.4165914",
"0.4160018",
"0.41539395",
"0.41501334",
"0.41436526",
"0.41425908",
"0.4135659",
"0.41351303",
"0.41334906",
"0.41313478",
"0.4131043",
"0.4127732",
"0.4126291",
"0.41256943",
"0.41231853",
"0.41218433",
"0.41102034",
"0.410742",
"0.41050288",
"0.41039893",
"0.41014153",
"0.4100838",
"0.41005024",
"0.4098749",
"0.4096473",
"0.4090635",
"0.40891847",
"0.40864578",
"0.40856615",
"0.4083927",
"0.40820244"
] | 0.72938305 | 0 |
TODO code application logic here | public static void main(String[] args) {
int i = 3;
boolean state;
do {
if (i == 0) {
System.out.println("Acess denied");
break;
}
state = auth();
if (!state) {
i--;
if (i >= 1) {
System.out.println("You have " + i + " chances");
}
} else {
System.out.println("Acess granted");
}
} while (!state);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\n public void settings() {\n // TODO Auto-generated method stub\n \n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"public void autoDetails() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n protected void execute() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\t\tpublic void rest() {\n\t\t\t\n\t\t}",
"protected void onFirstUse() {}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"private void getStatus() {\n\t\t\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\n protected void execute() {\n \n }",
"@Override\n public void feedingHerb() {\n\n }",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\n public void execute() {\n \n \n }",
"@Override\n\tpublic void view() {\n\t\t\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\r\n protected void fetchData() {\n\r\n }",
"@Override\n public void onCancelled(CancelledException arg0) {\n }",
"@Override\n public void onCancelled(CancelledException arg0) {\n }",
"@Override\r\n\t\t\tprotected void saveContext() {\n\t\t\t\t\r\n\t\t\t}",
"protected void aktualisieren() {\r\n\r\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"@Override\n\t\tprotected void onPreExecute() \n\t\t{\n\t\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\n\t\t\tpublic void onPreExecute() {\n\t\t\t\t\n\t\t\t}",
"@Override\n protected void execute() {\n }",
"@Override\n protected void execute() {\n }",
"@Override\n protected void execute() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"private static void oneUserExample()\t{\n\t}",
"@Override\n public void onCancelled(CancelledException arg0) {\n\n }",
"@Override\n protected void execute() {\n\n }",
"public void logic(){\r\n\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"public contrustor(){\r\n\t}",
"@Override\r\n\tprotected void execute() {\r\n\t}",
"@Override\n\t\tprotected void onPreExecute() {\n\t\t\t \n\t\t\t super.onPreExecute();\n\t\t}",
"@Override\n\t\tprotected void onPreExecute() {\n\t\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\r\n\tprotected void onPreExecute() {\n\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\t\tprotected void onPreExecute() {\n\t\t}",
"@Override\n\t\t\tprotected void onPreExecute()\n\t\t\t{\n\n\t\t\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"private RESTBackend()\n\t\t{\n\t\t\t\n\t\t}",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }",
"@Override\r\n\t\tprotected void run() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"public void redibujarAlgoformers() {\n\t\t\n\t}",
"@Override\n protected void startUp() {\n }",
"protected void mo6255a() {\n }",
"protected void viewSetup() {\n\t\t// TODO Auto-generated method stub\n\n\t}",
"@Override\r\n\tprotected void processRespond() {\n\r\n\t}",
"@Override\r\n\tprotected void processRespond() {\n\r\n\t}",
"@Override\r\n\tpublic void manage() {\n\t\t\r\n\t}",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}",
"public void mo38117a() {\n }",
"private void poetries() {\n\n\t}",
"@Override\n\tpublic void queryData() {\n\t\t\n\t}",
"@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}",
"@Override\n\t\t\t\t\tprotected void onPreExecute() {\n\t\t\t\t\t\tsuper.onPreExecute();\n\t\t\t\t\t}",
"@Override\n\tpublic void getStatus() {\n\t\t\n\t}",
"@Override\n protected void onPreExecute() {\n \n }",
"protected void index()\r\n\t{\n\t}",
"public void mo6081a() {\n }",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void crawl_data() {\n\t\t\r\n\t}",
"public void mo55254a() {\n }"
] | [
"0.60802186",
"0.5912082",
"0.58425087",
"0.58339286",
"0.5810548",
"0.57580656",
"0.57396024",
"0.5721001",
"0.5705411",
"0.5666017",
"0.5657976",
"0.5613798",
"0.5611188",
"0.5611188",
"0.55960613",
"0.55933475",
"0.557677",
"0.5572332",
"0.5565667",
"0.55482084",
"0.5536573",
"0.5534607",
"0.5533934",
"0.5468669",
"0.5460392",
"0.5443554",
"0.543027",
"0.5422523",
"0.5420404",
"0.5420404",
"0.5414971",
"0.53763115",
"0.5367869",
"0.53636855",
"0.53608036",
"0.5329318",
"0.5327322",
"0.5327322",
"0.53258926",
"0.53220093",
"0.53199",
"0.5311158",
"0.53085816",
"0.5307914",
"0.52976745",
"0.52976745",
"0.52976745",
"0.5297331",
"0.52968514",
"0.5293012",
"0.5281331",
"0.5277546",
"0.5277546",
"0.52726364",
"0.52688015",
"0.5267047",
"0.5266958",
"0.5262331",
"0.5261341",
"0.52587026",
"0.52557015",
"0.5255123",
"0.524477",
"0.52443206",
"0.5236655",
"0.52359647",
"0.52248156",
"0.52246475",
"0.52233",
"0.52207166",
"0.52205276",
"0.5216701",
"0.5206895",
"0.52030635",
"0.51967937",
"0.51948136",
"0.51947194",
"0.5188396",
"0.518064",
"0.518064",
"0.5177845",
"0.5175415",
"0.5175415",
"0.5175415",
"0.5175415",
"0.5175415",
"0.5175415",
"0.5173223",
"0.5173223",
"0.5170695",
"0.5168988",
"0.51654655",
"0.51593053",
"0.5157954",
"0.5156624",
"0.5153031",
"0.5152581",
"0.51493365",
"0.5148302",
"0.51443505",
"0.51430386"
] | 0.0 | -1 |
Returns a short description of the servlet. | @Override
public String getServletInfo() {
return "Short description";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getServletInfo()\n {\n return \"Short description\";\n }",
"public String getServletInfo() {\n return \"Short description\";\n }",
"public String getServletInfo() {\n return \"Short description\";\n }",
"public String getServletInfo() {\n return \"Short description\";\n }",
"public String getServletInfo() {\n return \"Short description\";\n }",
"public String getServletInfo() {\n return \"Short description\";\n }",
"public String getServletInfo() {\n return \"Short description\";\n }",
"public String getServletInfo() {\n return \"Short description\";\n }",
"public String getServletInfo() {\n return \"Short description\";\n }",
"public String getServletInfo() {\n return \"Short description\";\n }",
"public String getServletInfo() {\n return \"Short description\";\n }",
"public String getServletInfo() {\r\n return \"Short description\";\r\n }",
"public String getServletInfo() {\r\n return \"Short description\";\r\n }",
"public String getServletInfo() {\r\n return \"Short description\";\r\n }",
"public String getServletInfo() {\r\n return \"Short description\";\r\n }",
"public String getServletInfo() {\r\n return \"Short description\";\r\n }",
"public String getServletInfo() {\r\n return \"Short description\";\r\n }",
"@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }",
"@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }",
"@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}",
"@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}",
"@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}",
"@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}",
"@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}",
"@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}",
"@Override\r\n public String getServletInfo()\r\n {\r\n return \"Short description\";\r\n }",
"@Override\n public String getServletInfo()\n {\n return \"Short description\";\n }",
"@Override\r\n\tpublic String getServletInfo() {\r\n\t\treturn \"Short description\";\r\n\t}",
"@Override\r\n public String getServletInfo()\r\n {\r\n return \"Short description\";\r\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }"
] | [
"0.87634975",
"0.8732279",
"0.8732279",
"0.8732279",
"0.8732279",
"0.8732279",
"0.8732279",
"0.8732279",
"0.8732279",
"0.8732279",
"0.8732279",
"0.8699131",
"0.8699131",
"0.8699131",
"0.8699131",
"0.8699131",
"0.8699131",
"0.8531295",
"0.8531295",
"0.85282224",
"0.85282224",
"0.85282224",
"0.8527433",
"0.8527433",
"0.8527433",
"0.8527433",
"0.8527433",
"0.8527433",
"0.8516995",
"0.8512296",
"0.8511239",
"0.8510324",
"0.84964365"
] | 0.0 | -1 |
Set profile pictures of attendees from String[] of picture URLs | public View getView(final int position, View view, ViewGroup parent) {
LayoutInflater inflater = activity.getLayoutInflater();
View rowView = inflater.inflate(R.layout.comments_list, null, true);
TextView commenterName = (TextView) rowView.findViewById(R.id.commenterName);
commenterName.setText(names[position]);
TextView commentBody = (TextView) rowView.findViewById(R.id.commentBody);
commentBody.setText(comments[position]);
final ImageView profilePic = (ImageView) rowView.findViewById(R.id.commenterPicture);
Picasso.with(activity.getBaseContext()).load(pictures[position]).into(profilePic, new Callback() {
@Override
public void onSuccess() {
profilePic.setVisibility(View.VISIBLE);
}
@Override
public void onError() {
profilePic.setVisibility(View.INVISIBLE);
}
});
rowView.setOnLongClickListener(new View.OnLongClickListener() {
@Override
public boolean onLongClick(View v) {
if (canDelete(position))
showDeleteDialog(activity, position);
return true;
}
});
return rowView;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setAvatarsUrl(SparseArrayViewHolder holder, List<String> avatars) {\n LinearLayout linearLayout=holder.getView(R.id.item_avatars);\n int avatarSize= (int) mContext.getResources().getDimension(R.dimen.avatar_small_size);\n LinearLayout.LayoutParams params=new LinearLayout.LayoutParams(avatarSize,avatarSize);\n for (int i = 0; i < avatars.size(); i++) {\n ImageView image=new ImageView(mContext);\n linearLayout.addView(image,params);\n }\n for (int i = 0; i < avatars.size(); i++) {\n Glide.with(mContext).load(avatars.get(i))\n .into((ImageView) linearLayout.getChildAt(i));\n }\n }",
"void setAvatarUrl(String avatarUrl);",
"private void getImagesFromServer() {\n trObtainAllPetImages.setUser(user);\n trObtainAllPetImages.execute();\n Map<String, byte[]> petImages = trObtainAllPetImages.getResult();\n Set<String> names = petImages.keySet();\n\n for (String petName : names) {\n byte[] bytes = petImages.get(petName);\n Bitmap bitmap = BitmapFactory.decodeByteArray(bytes, 0, Objects.requireNonNull(bytes).length);\n int index = user.getPets().indexOf(new Pet(petName));\n user.getPets().get(index).setProfileImage(bitmap);\n ImageManager.writeImage(ImageManager.PET_PROFILE_IMAGES_PATH, user.getUsername() + '_' + petName, bytes);\n }\n }",
"private void loadImages(FollowersResponse response) throws IOException {\n for(User user : response.getFollowers()) {\n byte [] bytes = ByteArrayUtils.bytesFromUrl(user.getImageUrl());\n user.setImageBytes(bytes);\n }\n }",
"private void setProfilePic() {\n ParseFile image = (ParseFile) user.get(User.KEY_PROFILE_PIC);\n\n if (image != null)\n Glide.with(getContext()).load(image.getUrl()).circleCrop().into(mProfilePicImageView);\n else\n Glide.with(getContext()).load(R.drawable.no_profile_pic)\n .circleCrop().into(mProfilePicImageView);\n }",
"String updateMyAvatar(String pictureFilePath);",
"@Override\n public void setProfileImage(String s, String s1) {\n }",
"@WorkerThread @UiThread\n public void setPictures(Iterable<Picture> pictures) {\n List<String> titles = new ArrayList<>();\n List<String> urls = new ArrayList<>();\n List<String> urlsLowRes = new ArrayList<>();\n\n for (Picture picture: pictures) {\n titles.add(picture.title);\n urls.add(picture.url);\n // NEW!! Model stores low res urls\n urlsLowRes.add(picture.lowResUrl);\n }\n\n String[] titlesAsArray = titles.toArray(new String[titles.size()]);\n String[] urlsAsArray = urls.toArray(new String[urls.size()]);\n String[] urlsLowResAsArray = urlsLowRes.toArray(new String[urlsLowRes.size()]);\n\n // Synchronize for the shortest possible time\n synchronized (this) {\n this.titles = titlesAsArray;\n this.urls = urlsAsArray;\n this.urlsLowRes = urlsLowResAsArray;\n this.bitmaps.clear();\n this.bitmapsLowRes.clear();\n }\n\n // Tell all registered views that the list of pictures has changed\n notifyViews(Event.PICTURES_LIST_CHANGED);\n }",
"public void setProfilePicture(byte[] profile_picture){\n this.profile_picture = profile_picture;\n }",
"private void setProfilePic(CircleImageView circleImageView, Uri uri) {\n if (uri == null && userProfile != null) {\n File file = new File(userProfile.getProfilePic());\n if(file.exists()) {\n uri = Uri.fromFile(file);\n } else {\n HPIApp.logger(PREFIX, \"profilePic file does not exist\", Log.DEBUG);\n return;\n }\n }\n\n if (uri == null) {\n return;\n }\n\n try {\n InputStream input = getContentResolver().openInputStream(uri);\n final Bitmap bitmap = BitmapFactory.decodeStream(input);\n if (circleImageView != null) {\n circleImageView.setImageBitmap(bitmap);\n }\n } catch (FileNotFoundException e) {\n HPIApp.logger(PREFIX, e.toString(), Log.ERROR);\n }\n }",
"private void setPicToView(Intent picdata) {\n Bundle extras = picdata.getExtras();\n if (extras != null) {\n Bitmap photo = extras.getParcelable(\"data\");\n Drawable drawable = new BitmapDrawable(getResources(), photo);\n groupSetAvatar.setImageDrawable(drawable);\n // uploadUserAvatar(Bitmap2Bytes(photo));\n saveBitmapFile(picdata);\n\n }\n\n }",
"public void setProfileImg() {\n }",
"void setPersonAvatar(ReadOnlyPerson target, Avatar avatar);",
"void updateProfilePhoto(int userId, String filename);",
"public void initialiseAvatars() {\n\n\t\timage1 = null;\n\t\timage2 = null;\n\t\timage3 = null;\n\t\timage4 = null;\n\t\timage5 = null;\n\t\timage6 = null;\n\n\t\ttry {\n\t\t\timage1 = new Image(new FileInputStream(\"avatars/avatar1.png\"));\n\t\t\timage2 = new Image(new FileInputStream(\"avatars/avatar2.png\"));\n\t\t\timage3 = new Image(new FileInputStream(\"avatars/avatar3.png\"));\n\t\t\timage4 = new Image(new FileInputStream(\"avatars/avatar4.png\"));\n\t\t\timage5 = new Image(new FileInputStream(\"avatars/avatar5.png\"));\n\t\t\timage6 = new Image(new FileInputStream(\"avatars/avatar6.png\"));\n\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tav1.setImage(image1);\n\t\tav2.setImage(image2);\n\t\tav3.setImage(image3);\n\t\tav4.setImage(image4);\n\t\tav5.setImage(image5);\n\t\tav6.setImage(image6);\n\n\t}",
"private void setImage() {\n\t\t\n\t\tfor(int i=0; i<user.getIsVisited().length; i++) {\n\t\t\tif(user.getIsVisited()[i])\n\t\t\t\tspots[i].setBackgroundResource(R.drawable.num1_certified + i*2);\n\t\t\telse\n\t\t\t\tspots[i].setBackgroundResource(R.drawable.num1 + i*2);\n\t\t}\n\t}",
"public void setPhotoUrls(List<String> photoUrls) {\n this.photoUrls = photoUrls;\n }",
"@Override\n\tpublic void locateRobots() throws JSONException {\n\t\tfor (int i = 0; i < this.rob.size() && i < this.fru.size(); i++) {\n\t\t\tthis.rob.get(i).setSrc(this.fru.get(i).src);\n\t\t}\n\t}",
"public void setTeachingAvatar(){\n\t\tavatar.setIcon(new ImageIcon(\"img/Asking.png\"));\n\t}",
"private void updateMasterPic(String url) {\n pDialog.show();\n\n JSONObject reqOtpObject = new JSONObject();\n try {\n reqOtpObject.put(\"ent_profile\", url);\n myProfilePresenter.setProfilePic(token, reqOtpObject);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }",
"public void setImages(final SessionContext ctx, final Collection<GPImageLinkComponent> value)\n\t{\n\t\tsetLinkedItems( \n\t\t\tctx,\n\t\t\ttrue,\n\t\t\tGpcommonaddonConstants.Relations.BRANDBAR2GPIMAGELINKRELATION,\n\t\t\tnull,\n\t\t\tvalue,\n\t\t\tfalse,\n\t\t\tfalse,\n\t\t\tUtilities.getMarkModifiedOverride(BRANDBAR2GPIMAGELINKRELATION_MARKMODIFIED)\n\t\t);\n\t}",
"private void downloadingIssueHistoryImages(final List<Result> listOfPersons) {\n\n ImageLoader imageLoader = ImageLoader.getInstance();\n\n for (int i = 0; i < listOfPersons.size(); i++) {\n final String imageUrl = listOfPersons.get(i).getPicture().getMedium();\n\n imageLoader.loadImage(imageUrl, new SimpleImageLoadingListener() {\n @Override\n public void onLoadingComplete(String imageUri, View view, Bitmap loadedImage) {\n if (loadedImage != null) {\n\n String encodedImageString = UtilFunctions.bitmapToString(loadedImage);\n /**\n * Calling function to updating profile pic string data in local database\n */\n AppDatabase.getInstance(context).updateProfileImages(imageUri, encodedImageString);\n\n } else {\n Log.d(\"az\", \"image bitmap is null with url \" + imageUri);\n }\n }\n });\n }\n\n }",
"public void createRegistrationSet(int pictureSet, Set<String> alternativeLoginSeenImages) {\n\t\tList<String> allImages = new ArrayList<String>();\n\t\tallImages = returnFiles(pictureSet);\n\t\tallImages.removeAll(alternativeLoginSeenImages);\n\t\tthis.unseenImages.addAll(allImages);\n\t\tint counter = 0;\n\t\tRandom random = new Random();\n\t\tSet<Integer> chosenNumbers = new HashSet<Integer>(); // to ensure no duplication\n\t\twhile (counter < getNumberofregistrationimages()) {\n\t\t\tint index = random.nextInt(allImages.size());\n\t\t\tif (chosenNumbers.add(index)) {\n\t\t\t\tif (counter <= 19) {\n\t\t\t\t\tthis.listOne.add(allImages.get(index));\n\t\t\t\t} else if (counter >= 20 && counter <= 39) {\n\t\t\t\t\tthis.listTwo.add(allImages.get(index));\n\t\t\t\t} else if (counter >= 40 && counter <= 59) {\n\t\t\t\t\tthis.listThree.add(allImages.get(index));\n\t\t\t\t}\n\t\t\t\tthis.seenImages.add(allImages.get(index));\n\t\t\t\tthis.unseenImages.remove(allImages.get(index));\n\t\t\t\tcounter++;\n\t\t\t}\n\t\t}\n\t}",
"public void updateAvatar(int i) {\n\t\t// Sets the users avatar to one of the 6 avatars available\n\t\tif (i == 1) {\n\t\t\tmainAvatar.setImage(image1);\n\t\t\tavatarIndex = 1;\n\t\t} else if (i == 2) {\n\t\t\tmainAvatar.setImage(image2);\n\t\t\tavatarIndex = 2;\n\t\t} else if (i == 3) {\n\t\t\tmainAvatar.setImage(image3);\n\t\t\tavatarIndex = 3;\n\t\t} else if (i == 4) {\n\t\t\tmainAvatar.setImage(image4);\n\t\t\tavatarIndex = 4;\n\t\t} else if (i == 5) {\n\t\t\tmainAvatar.setImage(image5);\n\t\t\tavatarIndex = 5;\n\t\t} else if (i == 6) {\n\t\t\tmainAvatar.setImage(image6);\n\t\t\tavatarIndex = 6;\n\t\t}\n\n\t}",
"private void setPic() {\n int targetW =200;\n int targetH = 300;\n\n\n\t\t/* Get the size of the image */\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n\t\t/* Figure out which way needs to be reduced less */\n int scaleFactor = 1;\n if ((targetW > 0) || (targetH > 0)) {\n scaleFactor = Math.min(photoW/targetW, photoH/targetH);\n }\n\n\t\t/* Set bitmap options to scale the image decode target */\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n bmOptions.inPurgeable = true;\n\n\t\t/* Decode the JPEG file into a Bitmap */\n bitmap1 = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n\n Log.e(\"bitmap\", \"\" + bitmap1);\n mAdapter = new MyAdapter(Goonlineactivity2.this,TITLES,ICONS,NAME,EMAIL,PROFILE); // Creating the Adapter of MyAdapter class(which we are going to see in a bit)\n // And passing the titles,icons,header view name, header view email,\n // and header view profile picture\n\n mRecyclerView.setAdapter(mAdapter);\n //profile11.setImageBitmap(bitmap1);\n\n \t\t/* Associate the Bitmap to the ImageView */\n\n }",
"public void setProfilePages(List<ProfilePage> profilepages) {\n this.profilepages = profilepages;\n }",
"public void onChangeProfilePicture(View view) {\n checkPermissions();\n\n if ((ActivityCompat.checkSelfPermission(this, Manifest.permission.CAMERA)\n == PackageManager.PERMISSION_GRANTED) &&\n (ActivityCompat.checkSelfPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE)\n == PackageManager.PERMISSION_GRANTED)) {\n launchProfilePicOptions();\n }\n }",
"public void setImages(final Collection<GPImageLinkComponent> value)\n\t{\n\t\tsetImages( getSession().getSessionContext(), value );\n\t}",
"void setImageFromURL(String imageURL);",
"private void changePicture(String s)\n {\n ImageView userPic = (ImageView)findViewById(R.id.imageViewOther);\n\n Glide.with(this)\n .asBitmap()\n .load(s)\n .into(userPic);\n }",
"private void setProfileImage() {\n if(mCurrentUser!= null && mCurrentUser.getProfileImageUrl() != null) {\n //Glide.with(getContext()).load(mCurrentUser.getProfileImageUrl())\n // .placeholder(R.drawable.ic_photo)\n // .error(R.drawable.ic_camera)\n // .fitCenter()\n // .into(mIvComposeUserProfilePicture);\n\n Picasso.with(getContext()).load(mCurrentUser.getProfileImageUrl())\n .transform(new RoundedCornersTransformation(2,2))\n .placeholder(R.drawable.ic_photo)\n .error(R.drawable.ic_camera)\n .into(mIvComposeUserProfilePicture);\n }\n }",
"@Override\r\n\tpublic void initTripPicture(Set<Trippicture> pictures, String basePath) {\n\t\tfor (Trippicture tp : pictures) {\r\n\t\t\tString path = basePath + \"image_cache\\\\\" + tp.getName();\r\n\t\t\tif (!new File(path).exists()) {\r\n\t\t\t\tUtils.getFile(tp.getData(), path);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"Uri getAvatarUrl();",
"private void setPhotoAttcher() {\n\n }",
"private void setupUserProfilePicImageView() {\n if (prismUser.getProfilePicture() != null) {\n Glide.with(context)\n .asBitmap()\n .thumbnail(0.05f)\n .load(prismUser.getProfilePicture().getLowResProfilePicUri())\n .into(new BitmapImageViewTarget(userProfilePicture) {\n @Override\n protected void setResource(Bitmap resource) {\n int imageViewPadding = (int) (1 * Default.scale);\n RoundedBitmapDrawable profilePictureDrawable =\n BitmapHelper.createCircularProfilePicture(\n context,\n userProfilePicture,\n prismUser.getProfilePicture().isDefault(),\n resource,\n imageViewPadding);\n userProfilePicture.setImageDrawable(profilePictureDrawable);\n }\n });\n }\n }",
"void SetPic()\n {\n //db.collection(\"Users\").document(mFirebaseUser.getUid()).get()\n profilepic = (CircularImageView) navigationView.getHeaderView(0).findViewById(R.id.imageView3);\n storage =FirebaseStorage.getInstance();\n StorageReference storageRef = storage.getReference();\n StorageReference imagesRef = storageRef.child(\"Profile\");\n //db.collection(\"Users\").document(mFirebaseUser.getUid())\n StorageReference spaceRef = storageRef.child(\"Profile/\"+mFirebaseUser.getUid()+\".jpg\");\n GlideApp.with(this)\n .load(spaceRef)\n .into(profilepic);\n\n }",
"String getAvatarUrl();",
"protected void setPic() {\n }",
"public void setBranchPictures(server.SayHello.shandong.ScenicBranchPictureBean[] branchPictures) {\n this.branchPictures = branchPictures;\n }",
"public static void setAvatar(UUID uuid) {\n\t\tif (isAvatarChosen()) {\n\t\t\tUUID curr = null;\n\t\t\ttry {\n\t\t\t\tcurr = UUID.fromString(ConfigManager.getConfig().getString(\"Avatar.CurrentAvatar\"));\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tcurr = null;\n\t\t\t}\n\n\t\t\tif (curr != null) {\n\t\t\t\trevokeAvatar(Bukkit.getOfflinePlayer(uuid));\n\t\t\t}\n\t\t}\n\n\t\tPlayer player = Bukkit.getPlayer(uuid);\n\t\tBendingPlayer bPlayer = BendingPlayer.getBendingPlayer(player.getName());\n\t\tnew PreviousAvatar(uuid, player.getName(), bPlayer.getElements(), bPlayer.getSubElements()).save();\n\n\t\tSet<Element> elements = new HashSet<>();\n\t\tSet<SubElement> subs = new HashSet<>();\n\t\tfor (Element e : Element.getAllElements()) {\n\t\t\tif (bPlayer.hasElement(e)) {\n\t\t\t\telements.add(e);\n\t\t\t\tfor (SubElement se : Element.getSubElements(e)) {\n\t\t\t\t\tsubs.add(se);\n\t\t\t\t}\n\t\t\t} else if (e.getType() == ElementType.BENDING) {\n\t\t\t\telements.add(e);\n\t\t\t\tfor (SubElement se : Element.getSubElements(e)) {\n\t\t\t\t\tsubs.add(se);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbPlayer.getElements().clear();\n\t\tbPlayer.getElements().addAll(elements);\n\t\tGeneralMethods.saveElements(bPlayer);\n\n\t\tbPlayer.getSubElements().clear();\n\t\tbPlayer.getSubElements().addAll(subs);\n\t\tGeneralMethods.saveSubElements(bPlayer);\n\n\t\tConfigManager.getConfig().set(\"Avatar.CurrentAvatar\", uuid.toString());\n\t\tConfigManager.saveConfig();\n\t}",
"void setImage(TokenEntry entry, @NonNull String newImage);",
"private void updateUserInfo(String name, @NotNull Uri pickedImgUri, FirebaseUser currentUser) {\n //carico la foto sullo storage di Firebase e chiedo l'url\n StorageReference mStorage = FirebaseStorage.getInstance().getReference().child(\"foto utenti\");\n StorageReference imageFilePath = mStorage.child(pickedImgUri.getLastPathSegment());\n imageFilePath.putFile(pickedImgUri).addOnSuccessListener(taskSnapshot -> {\n //immagine caricata, ora posso avere l'url\n imageFilePath.getDownloadUrl().addOnSuccessListener(uri -> {\n //l'url contiene l'immagine profilo dell'utente\n UserProfileChangeRequest profileUpdate = new UserProfileChangeRequest.Builder().setDisplayName(name).setPhotoUri(uri).build();\n\n currentUser.updateProfile(profileUpdate).addOnCompleteListener(task -> {\n if (task.isSuccessful()) {\n //informazioni utente modificate\n showMessage(\"Registrato con successo!\");\n updateUI();\n }\n });\n\n });\n });\n }",
"private void setProfileUNr(){\n Set<Hole> holeSet = createHoleSetWithUNr();\n\n for (Profile profile:profiles){\n\n for (Hole hole:profile.getHoles()) {\n setHoleUNr(hole,holeSet);\n }\n\n }\n }",
"private void changeProfilePicture()\n {\n\n final CharSequence options[] = new CharSequence[] {\"Take Photo\", \"Choose from Library\", \"Cancel\"};\n\n android.support.v7.app.AlertDialog.Builder builder = new android.support.v7.app.AlertDialog.Builder(MyProfileActivity.this);\n builder.setCancelable(false);\n builder.setTitle(\"Select your option:\");\n builder.setItems(options, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int item) {\n // the user clicked on options[which]\n if (options[item].equals(\"Take Photo\")) {\n Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n startActivityForResult(intent, 0);\n } else if (options[item].equals(\"Choose from Library\")) {\n Intent intent = new Intent(\n Intent.ACTION_PICK,\n android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n intent.setType(\"image/*\");\n startActivityForResult(\n Intent.createChooser(intent, \"Select File\"),\n 1);\n } else if (options[item].equals(\"Cancel\")) {\n dialog.dismiss();\n }\n }\n });\n\n builder.show();\n }",
"public void setProfilePic(ParseFile image) {\n put(KEY_IMAGE, image);\n }",
"public Builder setAvatar(int value) {\n bitField0_ |= 0x00000001;\n avatar_ = value;\n onChanged();\n return this;\n }",
"private void updateProfileViews() {\n if(profile.getmImageUrl()!=null && !profile.getmImageUrl().isEmpty()) {\n String temp = profile.getmImageUrl();\n Picasso.get().load(temp).into(profilePicture);\n }\n profileName.setText(profile.getFullName());\n phoneNumber.setText(profile.getPhoneNumber());\n address.setText(profile.getAddress());\n email.setText(profile.geteMail());\n initListToShow();\n }",
"@Override\n public void onSuccess(Uri uri) {\n userProfilePic.set(position, uri);\n chatUserAdapter.notifyDataSetChanged();\n Log.d(TAG, \"Pic URL: \" + userProfilePic);\n }",
"public void setAvatar(String avatar) {\n this.avatar = avatar;\n }",
"public void setAvatar(String avatar) {\n this.avatar = avatar;\n }",
"public void setPhotos(ArrayList<PlacePhoto> photos) {\n this.photos = photos;\n }",
"public void setGroupPicture(Integer groupId, String url) {\n\t\tOptional<Contacto> g = currentUser.getContacts().stream()\n\t\t\t\t.filter(c -> ((c.getId() == groupId) && c instanceof Grupo)).findFirst();\n\t\tGrupo gr = (Grupo) g.get();\n\t\tgr.setPicture(url);\n\t\tcontactDAO.modifyContact(gr);\n\t\t// Update all group versions\n\t\tgr.getComponents().stream().forEach(c -> {\n\t\t\tUsuario user = userCatalog.getUser(c.getId());\n\t\t\tuser.getContacts().stream()\n\t\t\t\t\t.filter(contact -> contact instanceof Grupo && (contact.getMsgId() == gr.getMsgId()))\n\t\t\t\t\t.forEach(group -> {\n\t\t\t\t\t\tgr.setPicture(url);\n\t\t\t\t\t\tcontactDAO.modifyContact(group);\n\t\t\t\t\t});\n\t\t});\n\t}",
"public void setOwnerPhotoURL(String photoURL){\n mEditor.putString(USER_PHOTO_URL, photoURL);\n mEditor.commit();\n }",
"private void populateProfile() {\n mPassword_input_layout.getEditText().setText(mSharedPreferences.getPassWord());\n mEmail_input_layout.getEditText().setText(mSharedPreferences.getEmail());\n mEdit_name_layout.getEditText().setText(mSharedPreferences.getName());\n ((RadioButton) mRadioGender.getChildAt(mSharedPreferences.getGender())).setChecked(true);\n mPhone_input_layout.getEditText().setText(mSharedPreferences.getPhone());\n mMajor_input_layout.getEditText().setText(mSharedPreferences.getMajor());\n mClass_input_layout.getEditText().setText(mSharedPreferences.getYearGroup());\n\n // Load profile photo from internal storage\n try {\n FileInputStream fis = openFileInput(getString(R.string.profile_photo_file_name));\n Bitmap bmap = BitmapFactory.decodeStream(fis);\n mImageView.setImageBitmap(bmap);\n fis.close();\n } catch (IOException e) {\n // Default profile\n }\n }",
"public void setProfilePicture(BufferedImage newPicture)\n {\n\n picture = newPicture;\n }",
"protected void setNewAvatar(Avatar avatar)\r\n\t{\r\n\t\tGame.avatar = new Avatar(avatar);\r\n\t}",
"public void updateProfileAvatarWithURI(final String uri,\n final ServiceClientCompletion<ResponseResult> completion)\n {\n final HashMap<String, String> headers =\n getHeaderWithAccessToken(mSharecareToken.accessToken);\n final String endPoint =\n String.format(PROFILE_URI_ENDPOINT, mSharecareToken.accountID);\n\n // Create request body.\n final HashMap<String, String> image = new HashMap<String, String>(3);\n image.put(TYPE, IMAGE);\n image.put(\"uri\", uri);\n image.put(DESCRIPTION, PROFILE_AVATAR);\n\n final HashMap<String, HashMap<String, String>> body =\n new HashMap<String, HashMap<String, String>>(1);\n body.put(IMAGE, image);\n\n final Gson gson = new GsonBuilder().create();\n final String bodyJson = gson.toJson(body);\n\n this.beginRequest(endPoint, ServiceMethod.PUT, headers, null, bodyJson,\n ServiceResponseFormat.GSON,\n new ServiceResponseTransform<JsonElement, ResponseResult>()\n {\n @Override\n public ResponseResult transformResponseData(\n final JsonElement json)\n throws ServiceResponseTransformException\n {\n final ResponseResult result =\n checkResultFromAuthService(json);\n LogError(\"updateProfileAvatarWithURI\", result);\n return result;\n }\n }, completion);\n }",
"public void setImages(MimsPlus[] images) {\n this.images = images;\n }",
"public void setCurrentUserPicture(String picture) {\n\t\tcurrentUser.setPicture(picture);\n\t\tuserCatalog.modifyUser(currentUser);\n\t}",
"public void setOAuth1ProfileArray(int i, com.eviware.soapui.config.OAuth1ProfileConfig oAuth1Profile)\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.eviware.soapui.config.OAuth1ProfileConfig target = null;\n target = (com.eviware.soapui.config.OAuth1ProfileConfig)get_store().find_element_user(OAUTH1PROFILE$0, i);\n if (target == null)\n {\n throw new IndexOutOfBoundsException();\n }\n target.set(oAuth1Profile);\n }\n }",
"Observable<String> participantAvatarImageUrl();",
"public Builder setProfileImage(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n profileImage_ = value;\n onChanged();\n return this;\n }",
"private void addImageToProfile(Profile profileToAdd, String filename, String contentType)\n throws IOException {\n Photo photoToAdd = new Photo();\n photoToAdd.setMainFilename(getPhotoFilePath(false) + \"/\" + filename);\n photoToAdd.setThumbnailFilename(getPhotoFilePath(true) + \"/\" + filename);\n photoToAdd.setContentType(contentType);\n photoToAdd.setUploadDate(LocalDate.now());\n photoToAdd.setUploadProfile(profileToAdd);\n\n PersonalPhoto personalPhoto = new PersonalPhoto();\n personalPhoto.setPhoto(photoToAdd);\n personalPhoto.setPublic(false);\n personalPhoto.setProfile(profileToAdd);\n\n personalPhotoRepository.save(personalPhoto);\n }",
"private void getUserProfileImage() {\n if (!StringEmptyUtil.isEmptyString(sharedPrefManager.getImageUrl())) {\n Glide.with(Objects.requireNonNull(getApplicationContext())).load(sharedPrefManager.getImageUrl()).into(profile_image);\n } else {\n Glide.with(Objects.requireNonNull(getApplicationContext())).load(R.drawable.user_image).into(profile_image);\n\n }\n }",
"public void setPictures(@Nullable final List<PictureCollection> pictures) {\n mPictures = pictures == null ? null : new ArrayList<>(pictures);\n }",
"@Override\n public void onSuccess(Uri uri) {\n newUser = new User();\n newUser.setImages(uri.toString());\n\n }",
"public void setAvatar(String avatar)\n\t{\n\t\tthis.avatar = avatar;\n\t}",
"public Builder setProfilePictureUrl(com.google.protobuf.StringValue value) {\n if (profilePictureUrlBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n profilePictureUrl_ = value;\n onChanged();\n } else {\n profilePictureUrlBuilder_.setMessage(value);\n }\n\n return this;\n }",
"private void saveAvatar(Bitmap avatar) {\n String strAvatarFilename = \"avatar.jpg\";\r\n try {\r\n avatar.compress(CompressFormat.JPEG,\r\n 100, openFileOutput(strAvatarFilename, MODE_PRIVATE));\r\n } catch (FileNotFoundException e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n }\r\n\r\n// TODO: Determine the Uri to the local avatar.jpg file\r\n\r\n// TODO: Save the Uri path as a String preference\r\n Uri imageUri = Uri.fromFile(new File(getFilesDir(), strAvatarFilename));\r\n// TODO: Update the ImageButton with the new image\r\n ImageButton ava = (ImageButton) findViewById(R.id.avatar);\r\n\r\n ava.setImageURI(imageUri);\r\n String curimg = imageUri.getPath().toString();\r\n\r\n Editor edit = mGameSettings.edit();\r\n edit.putString(GAME_PREFERENCES_AVATAR, curimg);\r\n edit.commit();\r\n\r\n String userName = mGameSettings.getString(GAME_PREFERENCES_USERNAME, null);\r\n String avatarName = userName + \"Avatar\";\r\n String filePath = curimg;\r\n String description = \"My player avatar \";\r\n App42API.initialize(this, \"33febecb03a579e972755eccde307dd94a279b5cfe348f845b8762f8e3feb2d6\",\r\n \"b5be405b4e76d40a94cdc01250311205b5a7c7b2dc4d003714f24d0df3e219f8\");\r\n AvatarService avatarService = App42API.buildAvatarService();\r\n App42API.setOfflineStorage(true);\r\n avatarService.createAvatar(avatarName, userName, filePath, description, new App42CallBack() {\r\n public void onSuccess(Object response) {\r\n Avatar avatar = (Avatar) response;\r\n System.out.println(\"avatarName is :\" + avatar.getName());\r\n System.out.println(\"url is :\" + avatar.getURL());\r\n System.out.println(\"tinyUrl is :\" + avatar.getTinyURL());\r\n System.out.println(\"createdOn is :\" + avatar.getCreatedOn());\r\n System.out.println(\"Description is :\" + avatar.getDescription());\r\n System.out.println(\"Is Current :\" + avatar.isCurrent());\r\n System.out.println(\"UserName is :\" + avatar.getUserName());\r\n }\r\n\r\n public void onException(Exception ex) {\r\n System.out.println(\"Exception Message\" + ex.getMessage());\r\n }\r\n });\r\n\r\n\r\n }",
"void setImagePath(String path);",
"private void setName(String imageUrl, String imageName, String roleName){\r\n Log.d(TAG, \"setName: setting name to widgets.\");\r\n TextView n = findViewById(R.id.textView);\r\n n.setText(imageName);\r\n TextView r = findViewById(R.id.textView1);\r\n r.setText(roleName);\r\n\r\n ImageView imageView = findViewById(R.id.profile_image);\r\n Glide.with(this)\r\n .asBitmap()\r\n .load(imageUrl)\r\n .into(imageView);\r\n }",
"void setSites(com.microsoft.schemas._2003._10.serialization.arrays.ArrayOfguid sites);",
"private static void setPicasso(@NonNull Context context, RemoteViews views, int viewId, @NonNull String imageUrl) {\n\n try {\n //java.lang.IllegalArgumentException: Path must not be empty\n if (imageUrl.length() > 0) {\n Bitmap logoBitmap = Picasso.with(context).load(Utils.builtURI(imageUrl)).get();\n views.setImageViewBitmap(viewId, logoBitmap);\n } else {\n views.setImageViewResource(viewId, R.drawable.ic_launcher);\n }\n\n } catch (IOException | IllegalArgumentException e) {\n views.setImageViewResource(viewId, R.drawable.ic_launcher);\n e.printStackTrace();\n }\n\n }",
"private void setStudentImage() {\n ImagePicker.create(this)\n .single()\n .origin(images)\n .imageTitle(\"Tap to select student profile\") // image selection title\n .start(REQUEST_CODE_PICKER); // start image picker activity with request code\n }",
"public void setStaticPicture(String path);",
"private void profilePicImageChooser() {\n Intent pickIntent = new Intent();\n pickIntent.setType(\"image/*\");\n pickIntent.setAction(Intent.ACTION_GET_CONTENT);\n\n Intent takePhotoIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n\n String pickTitle = \"Select or take a new Picture\";\n Intent chooserIntent = Intent.createChooser(pickIntent, pickTitle);\n chooserIntent.putExtra(Intent.EXTRA_INITIAL_INTENTS, new Intent[]{takePhotoIntent});\n startActivityForResult(chooserIntent, HPIApp.Prefs.CODE_IMAGE_SELECT);\n }",
"@BindingAdapter(\"thumbnailImageUrl\")\n public static void setImages(ImageView imageView, String thumbnailImageUrl) {\n Context context = imageView.getContext();\n\n Glide.with(context).load(thumbnailImageUrl).error(R.drawable.default_user).into(imageView);\n }",
"public void setAvatar(int avatar) {\n\t\tthis.avatar = new ImageIcon(FileIO.readImageFile(this,\"/images/Player\" + avatar + \".png\"));\n\t\tthis.setIcon(this.avatar);\n\t}",
"private static void sendProfilePicture(java.util.List<java.lang.Byte> picture, java.lang.String username) {\n ChatWSclient.ChatWS_Service service = new ChatWSclient.ChatWS_Service();\n ChatWSclient.ChatWS port = service.getChatWSPort();\n port.sendProfilePicture(picture, username);\n }",
"public void updateExcomunicationTiles(ArrayList<String> tiles){\n\n excummunicationTile1.setImage(new Image(tiles.get(0)));\n excummunicationTile2.setImage(new Image(tiles.get(1)));\n excummunicationTile3.setImage(new Image(tiles.get(2)));\n }",
"private void setAdvertImages()\t{\n\n\t\tviewFlipper = (ViewFlipper) findViewById(R.id.view_flipper_display);\n\n\t\tString[] ids = getImageIDs(shopName);\n\n\t\tif(ids.length == 1)\t{\t\t//Just the logo exists\n\t\t\tLinearLayout ll = new LinearLayout(this);\n\t\t\tll.setOrientation(LinearLayout.VERTICAL);\n\n\t\t\tLinearLayout.LayoutParams lpScan = new LinearLayout.LayoutParams(LayoutParams.MATCH_PARENT,LayoutParams.MATCH_PARENT);\n\t\t\tll.setLayoutParams(lpScan);\n\t\t\tll.setGravity(Gravity.CENTER);\n\n\t\t\tImageView iv = new ImageView(this);\n\t\t\tiv.setLayoutParams(lpScan);\n\t\t\tiv.setImageBitmap(imageLoadedFromInternalStorage(ids[0]));\t\t//Sets flipper images = logo (ids[0])\n\n\t\t\tll.addView(iv);\n\t\t\tviewFlipper.addView(ll);\t\n\t\t}\n\n\n\t\tfor(int i = 1; i < ids.length; i++)\t{\n\n\t\t\tLinearLayout ll = new LinearLayout(this);\n\t\t\tll.setOrientation(LinearLayout.VERTICAL);\n\n\t\t\tLinearLayout.LayoutParams lpScan = new LinearLayout.LayoutParams(LayoutParams.MATCH_PARENT,LayoutParams.MATCH_PARENT);\n\t\t\tll.setLayoutParams(lpScan);\n\t\t\tll.setGravity(Gravity.CENTER);\n\n\t\t\tImageView iv = new ImageView(this);\n\t\t\tiv.setLayoutParams(lpScan);\n\t\t\tiv.setImageBitmap(imageLoadedFromInternalStorage(ids[i]));\n\n\t\t\tll.addView(iv);\n\t\t\tviewFlipper.addView(ll);\t\n\t\t}\n\t}",
"public void setProfiles(Set<Profile> profiles) {\n\t\tthis.profiles = profiles;\n\t}",
"private List<Owner> updatePhotos(List<Task> phoneTasks) throws Exception {\n List<Owner> result = new ArrayList<>();\n /*List<Task> filterTasks = adTasks.stream()\n .filter(el -> result.stream().noneMatch(e -> e.getId().equals(el.getId())))\n .collect(Collectors.toList());*/\n\n List<Task> resultList = RequestManager.execute(token, phoneTasks);\n result.addAll(OlxParser.parsePhones(resultList));\n\n return result;\n }",
"void setImage(String image);",
"ImageView getAvatarImageView();",
"private void updatePicture(FirebaseUser user) {\n\n if (user != null && profileImageUrl != null) {\n UserProfileChangeRequest profile = new UserProfileChangeRequest.Builder()\n .setPhotoUri(Uri.parse(profileImageUrl))\n .build();\n\n user.updateProfile(profile)\n .addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n if (task.isSuccessful()) {\n Toast.makeText(Profile.this, \"Profile Updated\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n }\n }",
"void setPlayerImages(String playerName) {\n if (playerName.equals(\"player\")) {\n List<Image> images = diceImage.getImageList(player1.getColor(), player1.getLastRoll()); // dice face images corresponding to the player rolls.\n playerDice1.setImage(images.get(0));\n playerDice2.setImage(images.get(1));\n playerDice3.setImage(images.get(2));\n } else {\n List<Image> images = diceImage.getImageList(computer.getColor(), computer.getLastRoll());\n computerDice1.setImage(images.get(0));\n computerDice2.setImage(images.get(1));\n computerDice3.setImage(images.get(2));\n }\n }",
"public void updateSecondaryProfileAvatar(final SecondaryProfile profile,\n final String uri,\n final ServiceClientCompletion<ResponseResult> completion)\n {\n final HashMap<String, String> headers =\n getHeaderWithAccessToken(mSharecareToken.accessToken);\n final String endPoint =\n String.format(EDIT_FAMILY_ENDPOINT, mSharecareToken.accountID,\n profile.identifier);\n\n // Create request body.\n final HashMap<String, String> image = new HashMap<String, String>(3);\n image.put(TYPE, IMAGE);\n image.put(URL, uri);\n image.put(DESCRIPTION, PROFILE_AVATAR);\n final HashMap<String, Object> body = new HashMap<String, Object>(1);\n body.put(IMAGE, image);\n\n final Gson gson = new GsonBuilder().create();\n final String bodyJson = gson.toJson(body);\n\n this.beginRequest(endPoint, ServiceMethod.PUT, headers, null, bodyJson,\n ServiceResponseFormat.GSON,\n new ServiceResponseTransform<JsonElement, ResponseResult>()\n {\n @Override\n public ResponseResult transformResponseData(\n final JsonElement json)\n throws ServiceResponseTransformException\n {\n final ResponseResult result =\n checkResultFromAuthService(json);\n LogError(\"updateSecondaryProfileAvatar\", result);\n return result;\n }\n }, completion);\n }",
"public Builder mergeProfilePictureUrl(com.google.protobuf.StringValue value) {\n if (profilePictureUrlBuilder_ == null) {\n if (profilePictureUrl_ != null) {\n profilePictureUrl_ =\n com.google.protobuf.StringValue.newBuilder(profilePictureUrl_).mergeFrom(value).buildPartial();\n } else {\n profilePictureUrl_ = value;\n }\n onChanged();\n } else {\n profilePictureUrlBuilder_.mergeFrom(value);\n }\n\n return this;\n }",
"public void setImg() {\n\t\tif (custom) {\n\t\t\tImage img1;\n\t\t\ttry {\n\t\t\t\timg1 = new Image(new FileInputStream(\"tmpImg.png\"));\n\t\t\t\tmainAvatar.setImage(img1); // Sets main user avatar as the custom image\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"public native final void setUrls(JsArrayString urls)/*-{\n this.urls = urls;\n }-*/;",
"private void updatePicture() {\n \tif (!picture.getText().equals(\"\")) {\n\t\t\tif ( currentProfile != null ) {\n\t\t\t\t//Tries to open the given image fileName from user, throws an error if unable to open file.\n\t\t\t\tGImage image = null;\n\t\t\t\ttry {\n\t\t\t\t\timage = new GImage(picture.getText());\n\t\t\t\t} catch (ErrorException ex) {\n\t\t\t\t\tthrow ex;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//Sets the currentProfile picture to the opened image and informs the user accordingly\n\t\t\t\tcurrentProfile.setImage(image);\n\t\t\t\tcanvas.displayProfile(currentProfile);\n\t\t\t\tcanvas.showMessage(\"Picture updated\");\n\t\t\t} else {\n\t\t\t\tcanvas.showMessage(\"Please select a profile to change picture\");\n\t\t\t}\n\t\t\t\n\t\t}\n\t}",
"public void appendToFollowedUsers(List<String> followedUsers);",
"public void addToFollowedUsers(List<String> followedUsers);",
"public void changePicture() {\n ImageView imgView = (ImageView)findViewById(R.id.poll_object_btn_image);\n Resources res = getContext().getResources();\n if(type == \"generic\") {\n //add the new picture for the generic type\n Bitmap bitmap = BitmapFactory.decodeResource(res,R.drawable.generic_view);\n imgView.setImageBitmap(bitmap);\n }\n else if(type == \"location\") {\n //add the new picture for the location type\n Bitmap bitmap = BitmapFactory.decodeResource(res,R.drawable.generic_view);\n imgView.setImageBitmap(bitmap);\n }\n else if(type == \"picture\"){\n //add the new picture for the picture type\n Bitmap bitmap = BitmapFactory.decodeResource(res,R.drawable.generic_view);\n imgView.setImageBitmap(bitmap);\n }\n }",
"protected void internalSetUris(String[] uris) {\n m_uris = uris;\n m_prefixes = new String[uris.length];\n m_prefixes[0] = \"\";\n m_prefixes[1] = \"xml\";\n }",
"public Builder setHotelImageURLs(\n int index, java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureHotelImageURLsIsMutable();\n hotelImageURLs_.set(index, value);\n onChanged();\n return this;\n }",
"public void setProfileImage(ProfileImage profileImage) {\n this.profileImage = profileImage;\n }",
"protected abstract Profile[] getProfileSet();",
"public void loadPictures(View view) {\n\n //creates a pop-up that notifies the users of the permissions requesting, giving the user a choice to either deny or allow permission\n String[] permissions = {Manifest.permission.CAMERA, Manifest.permission.WRITE_EXTERNAL_STORAGE, Manifest.permission.READ_EXTERNAL_STORAGE};\n\n ActivityCompat.requestPermissions(MainActivity.this,\n new String[]{permissions[0], permissions[1], permissions[2]}, 1);\n\n }",
"void addPhotos(Subscriber<BaseBean> subscriber, String... photos);"
] | [
"0.63852835",
"0.6307031",
"0.6052973",
"0.5926811",
"0.58397985",
"0.58109343",
"0.576827",
"0.5714013",
"0.56868917",
"0.56354946",
"0.55603373",
"0.55500966",
"0.5535008",
"0.553288",
"0.5522933",
"0.5507416",
"0.55002743",
"0.54894745",
"0.5454214",
"0.5326591",
"0.53195226",
"0.5285059",
"0.5285023",
"0.52715296",
"0.524377",
"0.52355283",
"0.522591",
"0.5212767",
"0.519839",
"0.51863617",
"0.51737654",
"0.5165217",
"0.5137534",
"0.51186365",
"0.5114166",
"0.51131487",
"0.50987047",
"0.5085843",
"0.5085399",
"0.5072702",
"0.50559926",
"0.50554556",
"0.5038309",
"0.5031585",
"0.5028215",
"0.5020428",
"0.5001723",
"0.49865913",
"0.4984735",
"0.4984735",
"0.49814993",
"0.49600813",
"0.4932279",
"0.49262667",
"0.49244758",
"0.49235457",
"0.49078315",
"0.4904905",
"0.48880208",
"0.48789063",
"0.48764777",
"0.48660472",
"0.4858514",
"0.48538855",
"0.48432168",
"0.4841987",
"0.48398316",
"0.4836045",
"0.48250753",
"0.48234048",
"0.4817087",
"0.48147827",
"0.48132053",
"0.48108545",
"0.48092037",
"0.48087433",
"0.48080745",
"0.48044863",
"0.48033273",
"0.48033062",
"0.48000595",
"0.47940868",
"0.4789668",
"0.47874615",
"0.47871462",
"0.47865975",
"0.47788456",
"0.4775262",
"0.47739905",
"0.47691125",
"0.47662818",
"0.47601596",
"0.4756907",
"0.4753165",
"0.4750667",
"0.47499773",
"0.47473153",
"0.4746714",
"0.47455332",
"0.47453743",
"0.4744433"
] | 0.0 | -1 |
Itera sobre as senhas preferenciais inicialmente | public void selectNextPassword() throws Exception {
synchronized (preferentialPasswordSet) {
Iterator<Password> ipp=preferentialPasswordSet.iterator();
while(ipp.hasNext()){
Password p=ipp.next();
if (!p.isCalled()) {
nextPassword = p;
nextPassword.setCalled(true);
persistPreferentialPasswordSet();
return;
}
}
}
// Se necessário, itera sobre as senhas normais
synchronized (normalPasswordSet) {
Iterator<Password> npp=normalPasswordSet.iterator();
while(npp.hasNext()){
Password p=npp.next();
if (!p.isCalled()) {
nextPassword = p;
nextPassword.setCalled(true);
persistNormalPasswordSet();
return;
}
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void getPropuestasOrdenadas(int confirm) throws ParseException{\n System.out.println(\"\\nSe imprimirán las propuestas de la Sala \"+getNombreSala()+\":\");\n if (propuestas.size() == 0){\n System.out.println(\"No hay reservas para esta Sala\");\n }\n else{\n for (Propuesta propuestaF : propuestas) {\n String nombreReservador = propuestaF.getReservador().getNombreCompleto();\n if (confirm == 0){\n if (propuestaF.isForAllSem()) {\n System.out.println(\"Propuesta por todo el semestre, parte el \"+propuestaF.getFechaPuntualI(0)+\" hasta \"+\n propuestaF.getFechaPuntualF(0)+\". La reserva termina el \"+\n propuestaF.getFechaPuntualI(propuestaF.getFechasPropuestasInicio().size()-1)+\" hasta \"+\n propuestaF.getFechaPuntualF(propuestaF.getFechasPropuestasFinal().size()-1));\n System.out.println(\"Esta reserva fue hecha por:\");\n if (propuestaF.getReservador() instanceof Profesor){\n System.out.println(\"Profesor \"+ nombreReservador);\n }\n else if (propuestaF.getReservador() instanceof Estudiante){\n System.out.println(\"Estudiante \"+ nombreReservador);\n }\n else{\n System.out.println(nombreReservador);\n }\n }\n else{\n int i = 0;\n int j = 0;\n int idPropuesta = 0;\n String fecha = \"01-01-50000\";\n SimpleDateFormat parseF = new SimpleDateFormat(\"dd-MM-yyyy\");\n Date fechaMasReciente = parseF.parse(fecha);\n Date fechaAux;\n Propuesta propActual;\n while(i < propuestas.size()){\n while (j < propuestas.size()){\n propActual = propuestas.get(j);\n fechaAux = propActual.getFechaPuntualI(0);\n if (fechaAux.compareTo(fechaMasReciente) < 0){\n fechaMasReciente = fechaAux;\n }\n j++;\n }\n System.out.println(\"Desde \"+propuestas.get(i).getFechaPuntualF(0)+\" hasta \"+\n propuestas.get(i).getFechaPuntualF(0));\n fecha = \"01-01-2200\";\n fechaMasReciente = parseF.parse(fecha);\n i++;\n }\n }\n }\n else if (confirm == 1){\n if (propuestaF.isForAllSem() && propuestaF.isConfirmada()) {\n System.out.println(\"Propuesta por todo el semestre, parte el \"+propuestaF.getFechaPuntualI(0)+\" hasta \"+\n propuestaF.getFechaPuntualF(0)+\". La reserva termina el \"+\n propuestaF.getFechaPuntualI(propuestaF.getFechasPropuestasInicio().size()-1)+\" hasta \"+\n propuestaF.getFechaPuntualF(propuestaF.getFechasPropuestasFinal().size()-1));\n System.out.println(\"Esta reserva fue hecha por:\");\n if (propuestaF.getReservador() instanceof Profesor){\n System.out.println(\"Profesor \"+ nombreReservador);\n }\n else if (propuestaF.getReservador() instanceof Estudiante){\n System.out.println(\"Estudiante \"+ nombreReservador);\n }\n else{\n System.out.println(nombreReservador);\n }\n }\n else if (propuestaF.isConfirmada()){\n int i = 0;\n int j = 0;\n int idPropuesta = 0;\n String fecha = \"01-01-50000\";\n SimpleDateFormat parseF = new SimpleDateFormat(\"dd-MM-yyyy\");\n Date fechaMasReciente = parseF.parse(fecha);\n Date fechaAux;\n Propuesta propActual;\n while(i < propuestas.size()){\n while (j < propuestas.size()){\n propActual = propuestas.get(j);\n fechaAux = propActual.getFechaPuntualI(0);\n if (fechaAux.compareTo(fechaMasReciente) < 0){\n fechaMasReciente = fechaAux;\n }\n j++;\n }\n System.out.println(\"Desde \"+propuestas.get(i).getFechaPuntualF(0)+\" hasta \"+\n propuestas.get(i).getFechaPuntualF(0));\n fecha = \"01-01-2200\";\n fechaMasReciente = parseF.parse(fecha);\n i++;\n }\n }\n }\n }\n }\n }",
"private void skrivOversikt() {\n System.out.println(\"\\n- Leger -\\n\");\n for (Lege lege : leger){\n System.out.println(lege);\n }\n\n System.out.println(\"\\n- Pasienter -\");\n for (Pasient pasient : pasienter){\n System.out.println(\"\\n\" + pasient);\n }\n\n System.out.println(\"\\n- Legemidler -\");\n for (Legemiddel legemiddel : legemidler){\n System.out.println(\"\\n\" + legemiddel);\n }\n\n System.out.println(\"\\n- Resepter -\");\n for (Resept resept : resepter){\n System.out.println(\"\\n\" + resept);\n }\n }",
"private List<PreDocumentoEntrata> ricercaSinteticaPreDocumentoEntrata() {\n\t\tRicercaSinteticaPreDocumentoEntrataResponse resRSPD = ricercaSinteticaPreDocumentoEntrata(0);\t\t\n\t\tList<PreDocumentoEntrata> result = resRSPD.getPreDocumenti();\n\t\t\n\t\tfor(int i = 1; i < resRSPD.getTotalePagine(); i++) {\t\t\t\n\t\t\tresRSPD = ricercaSinteticaPreDocumentoEntrata(i);\n\t\t\tresult.addAll(resRSPD.getPreDocumenti());\t\t\t\n\t\t}\n\t\treturn result;\n\t}",
"public void emissionProbabilities() {\r\n /**\r\n * Word and Tag List.\r\n */\r\n final TreeSet<String> words = new TreeSet(), tags = new TreeSet();\r\n Iterator<Kata> iterSatu = MarkovCore.LIST_KATA.iterator();\r\n while (iterSatu.hasNext()) {\r\n final Kata kata = iterSatu.next();\r\n words.add(kata.getKata());\r\n tags.add(kata.getTag());\r\n }\r\n System.out.println(\"Jumlah Kata: \" + words.size());\r\n System.out.println(\"Jumlah Tag: \" + tags.size());\r\n System.out.println();\r\n //<editor-fold defaultstate=\"collapsed\" desc=\"Emissions Calculation\">\r\n /**\r\n * Perhitungan Emisi.\r\n */\r\n Iterator<String> iterDua = words.iterator();\r\n while (iterDua.hasNext()) {\r\n final String kata = iterDua.next();\r\n Iterator<String> iterTiga = tags.iterator();\r\n while (iterTiga.hasNext()) {\r\n final StrBuilder strBuilder = new StrBuilder(10);\r\n final String tag = iterTiga.next();\r\n strBuilder.append(\"P(\");\r\n strBuilder.append(kata + \"|\");\r\n strBuilder.append(tag + \") = \");\r\n final Emissions emissions = new Emissions(kata, tag, strBuilder.toString());\r\n emissionses.add(emissions);\r\n }\r\n }\r\n\r\n final HashMap<String, Double> penyebut = new HashMap();\r\n Iterator<Kata> iterEmpat = MarkovCore.LIST_KATA.iterator();\r\n while (iterEmpat.hasNext()) {\r\n final Kata kata = iterEmpat.next();\r\n if (penyebut.get(kata.getTag()) == null) {\r\n penyebut.put(kata.getTag(), 1.0);\r\n } else {\r\n penyebut.put(kata.getTag(), penyebut.get(kata.getTag()) + 1);\r\n }\r\n }\r\n\r\n Iterator<Emissions> iterTiga = emissionses.iterator();\r\n while (iterTiga.hasNext()) {\r\n final Emissions emissions = iterTiga.next();\r\n double pembilang = 0.0;\r\n Iterator<Kata> iterKata = MarkovCore.LIST_KATA.iterator();\r\n while (iterKata.hasNext()) {\r\n Kata kata = iterKata.next();\r\n if (StringUtils.equalsIgnoreCase(kata.getKata(), emissions.word) && StringUtils.equalsIgnoreCase(kata.getTag(), emissions.tag)) {\r\n pembilang++;\r\n }\r\n }\r\n\r\n /**\r\n * WARNING - Laplace Smoothing is Activated.\r\n */\r\n// emissions.setEmissionsProbability(pembilang + 1, penyebut.get(emissions.tag) + this.uniqueWords.size(), (pembilang + 1) / (penyebut.get(emissions.tag) + this.uniqueWords.size()));\r\n emissions.setEmissionsProbability(pembilang, penyebut.get(emissions.tag), pembilang / penyebut.get(emissions.tag));\r\n }\r\n//</editor-fold>\r\n\r\n// System.out.println(emissionses.size());\r\n Iterator<Emissions> emissionsIterator = emissionses.iterator();\r\n while (emissionsIterator.hasNext()) {\r\n final Emissions emissions = emissionsIterator.next();\r\n this.emissionsMap.put(new MultiKey(emissions.word, emissions.tag), emissions.emissionsProbability);\r\n// System.out.println(emissions);\r\n }\r\n// System.out.println(this.emissionsMap.size());\r\n }",
"public void listarAsignaturasIterator() {\n\t\tSystem.out.println(\"***** Listado con Iterator del grado de \" + nombre + \" *****\");\n\t\tIterator<Asignatura> iterador = asignaturas.iterator();\n\t\twhile (iterador.hasNext()){\n\t\t\tAsignatura elemento = iterador.next();\n\t\t\tSystem.out.println(elemento);\n\t\t}\n\t\tSystem.out.println(\"**************************************************************\\n\");\n\t}",
"public void printaPiedras(){\n for(Piedra p: piedras){\n System.out.println(p);\n }\n \n// Iterator<Piedra> it =piedras.iterator();\n// while(it.hasNext()){\n// System.out.println(it.next());\n// }\n \n }",
"public void ispisiSveNapomene() {\r\n\t\tint i = 0;// redni broj napomene\r\n\t\tint brojac = 0;\r\n\t\tfor (Podsjetnik podsjetnik : lista) {\r\n\r\n\t\t\ti++;\r\n\t\t\tSystem.out.println(i + \")\" + podsjetnik);\r\n\t\t\tbrojac = i;\r\n\t\t}\r\n\t\tif (brojac == 0) {\r\n\t\t\tSystem.out.println(\"Nema unesenih napomena!!\");\r\n\t\t}\r\n\r\n\t}",
"private void computePresentPleyers() {\n\t\tthis.presentPlayerKeys = new ArrayList<>();\n\t\tList<ChesspairingPlayer> players = mTournament.getPlayers();\n\t\tfor (ChesspairingPlayer player : players) {\n\t\t\tif (player.isPresent()) {\n\t\t\t\tthis.presentPlayerKeys.add(player.getPlayerKey());\n\t\t\t}\n\t\t}\n\t}",
"public void colorearSecuencial() {\n\t\t// Collections.shuffle(nodos);\n\t\tcolorearSecuencialAlternativo();\n\t}",
"public void pleitegeierSperren() {\n kontoMap.values().stream()\n .filter(konto -> konto.getKontostand() < 0)\n .forEach(Konto::sperren);\n }",
"@Override\n public void interagit() {\n super.interagit();\n ArrayList<EtreVivant> cibles = this.ciblesPotentiellesAdjacentes(this.getPosition(),this.nombreVoisins);\n cibles.stream().filter((vivants) -> (vivants.getEtat().equals(EtatEtreVivant.MALADE))).forEach((vivants) -> {\n this.soigne(vivants);\n });\n }",
"private static void statistique(){\n\t\tfor(int i = 0; i<7; i++){\n\t\t\tfor(int j = 0; j<7; j++){\n\t\t\t\tfor(int l=0; l<jeu.getJoueurs().length; l++){\n\t\t\t\t\tif(jeu.cases[i][j].getCouleurTapis() == jeu.getJoueurs()[l].getNumJoueur()){\n\t\t\t\t\t\tjeu.getJoueurs()[l].setTapis(jeu.getJoueurs()[l].getTapisRest()+1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tJoueur j;\n\t\tSystem.out.println(\"// Fin de la partie //\");\n\t\tfor(int i=0; i<jeu.getJoueurs().length; i++) {\n\t\t\tj =jeu.getJoueurs()[i];\n\t\t\tSystem.out.println(\"Joueur \"+ (j.getNumJoueur()+1) + \" a obtenue \"+j.getTapisRest()+j.getMonnaie()+\" points\" );\n\t\t}\n\t}",
"@Test\n public void testIterator() {\n System.out.println(\"iterator\");\n Goban g = createGoban();\n ArrayList<PierrePoint> groupeAttendu = new ArrayList<>();\n groupeAttendu.add(g.getPierre(0, 0));\n groupeAttendu.add(g.getPierre(0, 1));\n groupeAttendu.add(g.getPierre(1, 0));\n GroupeDePierres groupe = new GroupeDePierres(g.getPierre(0, 0), g);\n \n for( PierrePoint p : groupe)\n {\n assertTrue(groupeAttendu.contains(p));\n }\n \n assertEquals(groupeAttendu.size(),groupe.size());\n }",
"private void getEncuestaSatisfaccions(){\n mEncuestaSatisfaccions = estudioAdapter.getEncuestaSatisfaccionSinEnviar();\n //ca.close();\n }",
"public void ganarDineroPorAutomoviles() {\n for (Persona p : super.getMundo().getListaDoctores()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaCocineros()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaAlbaniles()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaHerreros()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaCocineros()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n }",
"private Map<String, List<PreDocumentoEntrata>> raggruppaPrimoLivelloConStatoCompleto(List<PreDocumentoEntrata> preDocumentiEntrata) {\n\t\tString methodName = \"raggruppaPrimoLivelloConStatoCompleto\";\n\t\t\n\t\tMap<String, List<PreDocumentoEntrata>> result = new HashMap<String, List<PreDocumentoEntrata>>();\n\t\t\n\t\tfor(PreDocumentoEntrata preDoc : preDocumentiEntrata) {\n\t\t\t\n\t\t\tpreDoc = getDettaglioPreDocumentoEntrata(preDoc);\n\t\t\t\n\t\t\tString key = getDocumentoKey(preDoc);\n\t\t\t\t\t\t\n\t\t\tif(!isCompleto(preDoc)) {\t\n\t\t\t\tlog.info(methodName, \"Saltato perche' non completo: \"+key);\n\t\t\t\tinserisciDettaglioOperazioneAsinc(\"SALTATO\", \" predocumento: \" + preDoc.getNumero() + \" [\"+preDoc.getUid()+\"] - \" + preDoc.getDescrizione(), Esito.FALLIMENTO, \"Non completo\");\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tinserisciDettaglioOperazioneAsinc(\"AGGIORNATO\", \" predocumento: \" + preDoc.getNumero() + \" [\"+preDoc.getUid()+\"] - \" + preDoc.getDescrizione(), Esito.SUCCESSO);\n\t\t\t\n\t\t\t\n\t\t\tif(!result.containsKey(key)) {\n\t\t\t\tresult.put(key, new ArrayList<PreDocumentoEntrata>());\t\t\t\t\n\t\t\t\tlog.debug(methodName, \"Nuovo gruppo di primo livello: \"+key);\n\t\t\t}\n\t\t\t\n\t\t\tList<PreDocumentoEntrata> list = result.get(key);\t\t\t\n\t\t\tlist.add(preDoc);\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\treturn result;\n\t}",
"public static ArrayList<Integer> estadisticasPorPotrero(String nombrePotrero) {\n\n\t\tArrayList<Integer> mensaje = new ArrayList<>();\n\n\t\tArrayList<Res> resess = PotreroCRUD.selectResesNormales(nombrePotrero);\n\n\t\tRes res = null;\n\n\t\tint reses = resess.size();\n\t\tint hembras = 0;\n\t\tint machos = 0;\n\t\tint ch = 0;\n\t\tint hl = 0;\n\t\tint nv = 0;\n\t\tint vh = 0;\n\t\tint vp = 0;\n\t\tint cm = 0;\n\t\tint ml = 0;\n\t\tint mc = 0;\n\t\tint tp = 0;\n\n\t\tfor (int i = 0; i < resess.size(); i++) {\n\n\t\t\tres = resess.get(i);\n\n\t\t\tif (res.getGenero().equalsIgnoreCase(\"H\")) {\n\t\t\t\thembras++;\n\n\t\t\t\tswitch (res.getTipo()) {\n\n\t\t\t\tcase \"CH\":\n\n\t\t\t\t\tch++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"HL\":\n\n\t\t\t\t\thl++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"NV\":\n\n\t\t\t\t\tnv++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"VH\":\n\n\t\t\t\t\tvh++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"VP\":\n\n\t\t\t\t\tvp++;\n\t\t\t\t\tbreak;\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tif (res.getGenero().equalsIgnoreCase(\"M\")) {\n\t\t\t\tmachos++;\n\n\t\t\t\tswitch (res.getTipo()) {\n\n\t\t\t\tcase \"CM\":\n\n\t\t\t\t\tcm++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"ML\":\n\n\t\t\t\t\tml++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"MC\":\n\n\t\t\t\t\tmc++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"TP\":\n\n\t\t\t\t\ttp++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\n\t\tmensaje.add(reses);\n\t\tmensaje.add(hembras);\n\t\tmensaje.add(machos);\n\t\tmensaje.add(ch);\n\t\tmensaje.add(hl);\n\t\tmensaje.add(nv);\n\t\tmensaje.add(vh);\n\t\tmensaje.add(vp);\n\t\tmensaje.add(cm);\n\t\tmensaje.add(ml);\n\t\tmensaje.add(mc);\n\t\tmensaje.add(tp);\n\n\t\treturn mensaje;\n\t}",
"public void vincula(){\n for (Nodo n : exps)\n n.vincula();\n }",
"public void cargarNotas() {\n\n notas.add(null);\n notas.add(null);\n notas.add(null);\n\n int nota, cont = 0;\n for (int i = 0; i <= 2; i++) {\n\n System.out.println(\"Indique nota \" + (i + 1));\n nota = leer.nextInt();\n notas.set(cont, nota);\n cont++;\n\n }\n\n cont = 0;\n\n }",
"@Override\n\tpublic ArrayList<String> getFollows(WordGram key){\n\t\tif (!myMap.containsKey(key))\n\t\t{\n\t\t\tthrow new NoSuchElementException(key+\" not in map\");\n\t\t}\n\t\treturn (ArrayList<String>) myMap.get(key);\n\t}",
"private void lisaaMiinaOikealle(int i, int j) {\n ArrayList<Ruutu> lista;\n if (i + 1 < x) {\n lista = this.ruudukko[i + 1];\n lista.get(j).setViereisetMiinat(1);\n if (j - 1 >= 0) {\n lista.get(j - 1).setViereisetMiinat(1);\n }\n if (j + 1 < x) {\n lista.get(j + 1).setViereisetMiinat(1);\n }\n }\n }",
"public static void consultaEleicoesPassadas() {\n\t\tArrayList<Eleicao> lista;\n\t\t\n\t\tint check = 0;\n\t\tint tries = 0;\n\t\tdo {\n\t\t\ttry {\n\t\t\t\tlista = rmiserver.getEleicoesPassadas();\n\t\t\t\tif(lista.isEmpty()) {\n\t\t\t\t\tSystem.out.println(\"Nao existem eleicoes para mostrar.\");\n\t\t\t\t}else {\n\t\t\t\t\tfor(Eleicao x: lista) {\n\t\t\t\t\t\tSystem.out.println(\"\\nEleicao \"+x.titulo);\n\t\t\t\t\t\tSystem.out.println(\"\\tID: \"+x.id);\n\t\t\t\t\t\tSystem.out.println(\"\\tDescricao: \"+x.descricao);\n\t\t\t\t\t\tSystem.out.println(\"\\tData Inicio: \"+x.dataInicio.toString());\n\t\t\t\t\t\tSystem.out.println(\"\\tData Fim: \"+x.dataInicio.toString());\n\t\t\t\t\t\tSystem.out.println(\"Resultados: \");\n\t\t\t\t\t\tif(x.tipo == 1) {\n\t\t\t\t\t\t\tif(x.registoVotos.size()>0) {\n\t\t\t\t\t\t\t\tfor(Lista y: x.listaCandidaturas) {\n\t\t\t\t\t\t\t\t\tdouble perc = y.contagem/(double)x.registoVotos.size() * 100;\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"\\t\"+y.nome+\": \"+perc+\"% (Num. votos: \"+y.contagem+\")\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\tif(x.registoVotos.size()>0) {\n\t\t\t\t\t\t\t\tint alunos = 0, docentes = 0, funcs = 0;\n\t\t\t\t\t\t\t\tfor(Lista y:x.listaCandidaturas) {\n\t\t\t\t\t\t\t\t\tif(y.tipoLista.equals(\"1\")) {\n\t\t\t\t\t\t\t\t\t\talunos += y.contagem;\n\t\t\t\t\t\t\t\t\t}else if(y.tipoLista.equals(\"2\")) {\n\t\t\t\t\t\t\t\t\t\tfuncs += y.contagem;\n\t\t\t\t\t\t\t\t\t}else if(y.tipoLista.equals(\"3\")) {\n\t\t\t\t\t\t\t\t\t\tdocentes += y.contagem;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tfor(Lista y: x.listaCandidaturas) {\n\t\t\t\t\t\t\t\t\tif(y.tipoLista.equals(\"1\")) {\n\t\t\t\t\t\t\t\t\t\tif(alunos>0) {\n\t\t\t\t\t\t\t\t\t\t\tdouble perc = (double)y.contagem/(double)alunos * 100;\n\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"\\t\"+y.nome+\": \"+perc+\"% (Num. votos: \"+y.contagem+\")\");\n\t\t\t\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"\\t\"+y.nome+\": 0% (Num. votos: \"+y.contagem+\")\");\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}else if(y.tipoLista.equals(\"2\")) {\n\t\t\t\t\t\t\t\t\t\tif(funcs>0) {\n\t\t\t\t\t\t\t\t\t\t\tdouble perc = (double)y.contagem/(double)funcs * 100;\n\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"\\t\"+y.nome+\": \"+perc+\"% (Num. votos: \"+y.contagem+\")\");\n\t\t\t\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"\\t\"+y.nome+\": 0% (Num. votos: \"+y.contagem+\")\");\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}else if(y.tipoLista.equals(\"3\")) {\n\t\t\t\t\t\t\t\t\t\tif(docentes>0) {\n\t\t\t\t\t\t\t\t\t\t\tdouble perc = (double)y.contagem/(double)docentes * 100;\n\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"\\t\"+y.nome+\": \"+perc+\"% (Num. votos: \"+y.contagem+\")\");\n\t\t\t\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"\\t\"+y.nome+\": 0% (Num. votos: \"+y.contagem+\")\");\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}else if(y.tipoLista.equals(\"4\")) {\n\t\t\t\t\t\t\t\t\t\tdouble perc = y.contagem/(double)x.registoVotos.size() * 100;\n\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"\\t\"+y.nome+\": \"+perc+\"% sobre Total (Num. votos: \"+y.contagem+\")\");\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcheck = 1;\n\t\t\t} catch (RemoteException e1) {\n\t\t\t\t// Tratamento da Excepcao da chamada RMI addCandidatos\n\t\t\t\tif(tries == 0) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(6000);\n\t\t\t\t\t\t//faz novo lookup\n\t\t\t\t\t\trmiserver = (RMI_S_I) Naming.lookup(\"rmi://\"+registryIP+\":\"+registryPort+\"/rmi\");\n\t\t\t\t\t\trmiserver.subscribeConsola((ADMIN_C_I)consola);\n\t\t\t\t\t\ttries = 0;\n\t\t\t\t\t} catch (RemoteException | InterruptedException | MalformedURLException | NotBoundException e) {\n\t\t\t\t\t\t// FailOver falhou\n\t\t\t\t\t\ttries++;\n\t\t\t\t\t}\n\t\t\t\t}else if(tries > 0 && tries < 24) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t\t//faz novo lookup\n\t\t\t\t\t\trmiserver = (RMI_S_I) Naming.lookup(\"rmi://\"+registryIP+\":\"+registryPort+\"/rmi\");\n\t\t\t\t\t\trmiserver.subscribeConsola((ADMIN_C_I)consola);\n\t\t\t\t\t\ttries = 0;\n\t\t\t\t\t} catch (RemoteException | InterruptedException | MalformedURLException | NotBoundException e) {\n\t\t\t\t\t\t// FailOver falhou\n\t\t\t\t\t\ttries++;\n\t\t\t\t\t}\n\t\t\t\t}else if(tries >= 24) {\n\t\t\t\t\tSystem.out.println(\"Impossivel realizar a operacao devido a falha tecnica (Servidores RMI desligados).\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}while(check==0);\n\t\tcheck = 0;\n\t\t\n\t\t\n\t}",
"public void enfermarTodosConProbabilidad50() {\n for (Persona p : super.getMundo().getListaDoctores()) {\n if (super.getMundo().getRandom1and2() == 1) {\n super.getMundo().enfermarPersona(p);\n }\n }\n for (Persona p : super.getMundo().getListaCocineros()) {\n if (super.getMundo().getRandom1and2() == 1)\n super.getMundo().enfermarPersona(p);\n }\n for (Persona p : super.getMundo().getListaAlbaniles()) {\n if (super.getMundo().getRandom1and2() == 1)\n super.getMundo().enfermarPersona(p);\n }\n for (Persona p : super.getMundo().getListaHerreros()) {\n if (super.getMundo().getRandom1and2() == 1)\n super.getMundo().enfermarPersona(p);\n }\n for (Persona p : super.getMundo().getListaCocineros()) {\n if (super.getMundo().getRandom1and2() == 1)\n super.getMundo().enfermarPersona(p);\n }\n }",
"public void countHumanProteins() throws Exception {\n // Get the human proteins accession numbers in UniProts\n UniProtAnalyzer uniAnalyzer = new UniProtAnalyzer();\n Map<String, String> uniAccIDsMap = uniAnalyzer.loadUniProtIDsMap();\n // TREMBL \n //fileName = DATASET_DIR + \"UniProt\" + File.separator + \"uniprot_trembl_human.dat\";\n //processUniProtIds(fileName, uniProtIds);\n System.out.println(\"Total UniProt: \" + uniAccIDsMap.size());\n // Panther map file: Pathway Component to UniProt IDs\n String fileName = DATASET_DIR + \"Panther\" + File.separator + \"SequenceAssociationPathway1.13\";\n FileReader fileReader = new FileReader(fileName);\n BufferedReader bufferedReader = new BufferedReader(fileReader);\n String line = null;\n String[] tokens = null;\n Set<String> pantherIds = new HashSet<String>();\n Set<String> nonredundantIds = new HashSet<String>();\n String uniID = null;\n while ((line = bufferedReader.readLine()) != null) {\n tokens = line.split(\"\\t\");\n uniID = tokens[4];\n if (uniAccIDsMap.containsKey(uniID)) {\n pantherIds.add(uniID);\n nonredundantIds.add(uniAccIDsMap.get(uniID));\n }\n }\n System.out.println(\"UniProt in Panther: \" + pantherIds.size());\n System.out.println(\"UnitProt in Panther (nonredundant): \" + nonredundantIds.size());\n // Check how many panther ids have been in the Reactome already\n// Set<String> reactomeIds = loadReactomeIds();\n// int c = 0;\n// for (String id : pantherIds) {\n// if (reactomeIds.contains(id))\n// c++;\n// }\n// System.out.println(\"Panther ID in Reactome: \" + c);\n }",
"public void anazitisiSintagisVaseiGiatrou() {\n\t\tString doctorName = null;\n\t\ttmp_2 = 0;\n\t\tif(numOfPrescription != 0)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\" STOIXEIA SYNTAGWN\");\n\t\t\t// Emfanizw oles tis syntages\n\t\t\tfor(int j = 0; j < numOfPrescription; j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"\\n \" + j + \". STOIXEIA SYNTAGHS: \");\n\t \t \tprescription[j].print();\n\t\t\t}\n\t\t\tdoctorName = sir.readString(\"DWSTE TO EPWNYMO TOU GIATROU: \"); // Zitaw apo ton xrhsth na mou dwsei to onoma tou giatrou pou exei grapsei thn sintagh pou epithumei\n\t\t\tfor(int i = 0; i < numOfPrescription; i++)\n\t\t\t{\n\t\t\t\tif(doctorName.equals(prescription[i].getDoctorLname())) // An vre8ei kapoia antistoixeia emfanizw thn syntagh pou exei grapsei o giatros\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"VRETHIKE SYNTAGH!\");\n\t\t\t\t\t// Emfanizw thn/tis sintagh/sintages pou exoun graftei apo ton sygkekrimeno giatro\n\t\t\t\t\tprescription[i].print();\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\ttmp_2++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(tmp_2 == 0)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"DEN YPARXEI SYNTAGH POU NA PERILAMVANEI TON IATRO ME EPWNYMO: \" + doctorName);\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"DEN YPARXOUN DIATHESIMES SYNTAGES!\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}",
"private static ArrayList<String> getAllKeyWord(String [] lignes){\n ArrayList<String> res= new ArrayList<>();\n\n // La recherche dans le pdf\n for(String ligne : lignes){\n for(String mot : ligne.split(\" |/|-|\\\\(|\\\\)|,\")){\n\n try{\n if(mot.toLowerCase(Locale.ENGLISH).equals(\"c#\".toLowerCase(Locale.ENGLISH)))\n res.add(\"csharp\");\n else\n if(mot.toLowerCase(Locale.ENGLISH).equals(\"c++\".toLowerCase(Locale.ENGLISH)))\n res.add(\"cpp\");\n else\n if(!mot.toLowerCase(Locale.ENGLISH).matches(\"| |à|de|je|un|et|une|en|d'un|d'une|le|la|avec|:|\\\\|\"))\n res.add(mot.toLowerCase(Locale.ENGLISH));\n }catch (IllegalArgumentException e){\n //System.out.println(e.getMessage());\n continue;\n }\n }\n //System.out.println(\"line: \"+s);\n }\n return (ArrayList) res.stream().distinct().collect(Collectors.toList());\n }",
"protected abstract String listLearnValues();",
"public void setIteraciones(int iteraciones) {\r\n this.iteraciones = iteraciones;\r\n }",
"@Override\n public Iterator<Piedra> iterator() {\n return piedras.iterator();\n \n //crear un iterator propio\n// return new Iterator<Piedra>(){\n// int index=0;\n// @Override\n// public boolean hasNext() {\n// return piedras.size()>index;\n// }\n//\n// @Override\n// public Piedra next() {\n// return piedras.get(index++);\n// }\n// \n// };\n }",
"public void AumentarVictorias() {\r\n\t\tthis.victorias_actuales++;\r\n\t\tif (this.victorias_actuales >= 9) {\r\n\t\t\tthis.TituloNobiliario = 3;\r\n\t\t} else if (this.victorias_actuales >= 6) {\r\n\t\t\tthis.TituloNobiliario = 2;\r\n\t\t} else if (this.victorias_actuales >= 3) {\r\n\t\t\tthis.TituloNobiliario = 1;\r\n\t\t} else {\r\n\t\t\tthis.TituloNobiliario = 0;\r\n\t\t}\r\n\t}",
"public Arbre<Sommet> parcoursEnLargeur(Sommet s) {\n List<Sommet> liste = new ArrayList<Sommet>();\n List<Sommet> pere = new ArrayList<Sommet>();\n Arbre<Sommet> arbre = new Arbre<Sommet>();\n liste.add(s);\n pere.add(null);\n for(int i=0; i<liste.size(); i++) {\n if (!arbre.findKey(liste.get(i))) {\n arbre.ajouter(liste.get(i), pere.get(i));\n List<Sommet> successeur = this.getSuccesseurs(liste.get(i));\n liste.addAll(successeur);\n for (Sommet ret : successeur) {\n pere.add(liste.get(i));\n }\n }\n }\n return arbre;\n }",
"public void lojasOrdemAlfabeticaDisplay(Set<String> s) {\n Iterator<String> it = s.iterator();\n while (it.hasNext()) {\n System.out.println(it.next());\n }\n }",
"public Set<String> honorifics();",
"public DatosIteracion mejorIteracionCapturados(\r\n\t\t\tArrayList<DatosIteracion> datos) {\r\n\r\n\t\tDatosIteracion d = new DatosIteracion(\"auxiliar\");\r\n\t\tLectura l = new Lectura(999999, 0, 0);\r\n\t\td.getValoresLecturas().add(l);\r\n\r\n\t\tfor (int i = 0; i < datos.size(); i++) {\r\n\r\n\t\t\tif (d.getValoresLecturas(d.getValoresLecturas().size() - 1)\r\n\t\t\t\t\t.getCapturados() < datos\r\n\t\t\t\t\t.get(i)\r\n\t\t\t\t\t.getValoresLecturas(\r\n\t\t\t\t\t\t\tdatos.get(i).getValoresLecturas().size() - 1)\r\n\t\t\t\t\t.getCapturados()) {\r\n\r\n\t\t\t\td = datos.get(i);\r\n\t\t\t}\r\n\r\n\t\t\tif (d.getValoresLecturas(d.getValoresLecturas().size() - 1)\r\n\t\t\t\t\t.getCapturados() == datos\r\n\t\t\t\t\t.get(i)\r\n\t\t\t\t\t.getValoresLecturas(\r\n\t\t\t\t\t\t\tdatos.get(i).getValoresLecturas().size() - 1)\r\n\t\t\t\t\t.getCapturados()) {\r\n\r\n\t\t\t\tif (d.getValoresLecturas(d.getValoresLecturas().size() - 1)\r\n\t\t\t\t\t\t.getTiempo() > datos\r\n\t\t\t\t\t\t.get(i)\r\n\t\t\t\t\t\t.getValoresLecturas(\r\n\t\t\t\t\t\t\t\tdatos.get(i).getValoresLecturas().size() - 1)\r\n\t\t\t\t\t\t.getTiempo()) {\r\n\r\n\t\t\t\t\td = datos.get(i);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif (d.getValoresLecturas(d.getValoresLecturas().size() - 1)\r\n\t\t\t\t\t.getCapturados() == datos\r\n\t\t\t\t\t.get(i)\r\n\t\t\t\t\t.getValoresLecturas(\r\n\t\t\t\t\t\t\tdatos.get(i).getValoresLecturas().size() - 1)\r\n\t\t\t\t\t.getCapturados()) {\r\n\r\n\t\t\t\tif (d.getValoresLecturas(d.getValoresLecturas().size() - 1)\r\n\t\t\t\t\t\t.getTiempo() == datos\r\n\t\t\t\t\t\t.get(i)\r\n\t\t\t\t\t\t.getValoresLecturas(\r\n\t\t\t\t\t\t\t\tdatos.get(i).getValoresLecturas().size() - 1)\r\n\t\t\t\t\t\t.getTiempo()) {\r\n\r\n\t\t\t\t\tif (d.getValoresLecturas(d.getValoresLecturas().size() - 1)\r\n\t\t\t\t\t\t\t.getnNodos() <= datos\r\n\t\t\t\t\t\t\t.get(i)\r\n\t\t\t\t\t\t\t.getValoresLecturas(\r\n\t\t\t\t\t\t\t\t\tdatos.get(i).getValoresLecturas().size() - 1)\r\n\t\t\t\t\t\t\t.getnNodos()) {\r\n\r\n\t\t\t\t\t\td = datos.get(i);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn d;\r\n\t}",
"public void affiche() {\n System.out.println(\"le tapis porte \"+this.tapis.size()+\" caisse(s)\");\n for (Iterator it = this.tapis.iterator(); it.hasNext(); ) {\n System.out.println(it.next().toString());\n } \n }",
"private Map<String, Integer> getPuntuation(List<Point> points, Trial trial){\n\t\t//Resultados de la prueba sin dividir por categorias\n\t\tList<Result> results = trial.getResults();\n\t\t//ordenar los resultados de la prueba por segundos\n\t\tresults.sort((a,b) -> a.getSeconds() < b.getSeconds() ? -1 : a.getSeconds() == b.getSeconds() ? 0 : 1);\n\t\t\n\t\treturn setPuntuation(points, results);\n\t}",
"public void tulostaKomennot() {\n this.io.tulostaTeksti(\"Komennot: \");\n for (int i = 1; i <= this.komennot.keySet().size(); i++) {\n this.io.tulostaTeksti(this.komennot.get(i).toString());\n }\n this.io.tulostaTeksti(\"\");\n }",
"private Map<String,Map<String,List<PreDocumentoEntrata>>> raggruppaGruppiDiSecondoLivello(Map<String, List<PreDocumentoEntrata>> documentiSpesaRaggruppati) {\n\t\t\n\t\tMap<String,Map<String,List<PreDocumentoEntrata>>> result = new HashMap<String, Map<String,List<PreDocumentoEntrata>>>();\n\t\t\n\t\t\n\t\tfor(Entry<String, List<PreDocumentoEntrata>> entry : documentiSpesaRaggruppati.entrySet()){\n\t\t\tString key = entry.getKey();\n\t\t\tList<PreDocumentoEntrata> listaDoc = entry.getValue();\n\t\t\t\n\t\t\tMap<String,List<PreDocumentoEntrata>> preDocumentiSecondoLivello = raggruppaSecondoLivello(listaDoc);\n\t\t\t\n\t\t\tresult.put(key, preDocumentiSecondoLivello);\n\t\t\t\n\t\t}\n\t\t\n\t\treturn result;\n\t}",
"public List<Elemento> getElementosConPrefijo(String pre) {\n ArrayList<Elemento> lista = new ArrayList<>();\n for (String e : porNombre.keySet()) {\n if (e.startsWith(pre)) {\n lista.add(porNombre.get(e));\n }\n }\n return lista;\n }",
"protected void recuperarDados(){\n SharedPreferences sharedPreferences = getSharedPreferences(ARQUIVO_PREFERENCIA,0);\n\n if(sharedPreferences.contains(\"nome\")){\n String nomeUsuario = sharedPreferences.getString(\"nome\",\"Usuario não encontrado\");\n\n if(nomeUsuario.equals(\"Usuario não encontrado\")){\n lblMensagem.setText(nomeUsuario);\n } else {\n lblMensagem.setText((\"Seja bem vindo \" + nomeUsuario));\n }\n\n } else {\n lblMensagem.setText(\"Olá usuario não definido.\");\n }\n }",
"public void setIteracion(int iteracion) {\n this.iteracion = iteracion;\n }",
"public void determinarEstadoSalud(){\n \n for (int i = 0; i < listaEmpleados.size(); i++) {\n //Este for chequea si tiene alguna enfermedad preexistente -> asigna puntajes de acuerdo\n for (int j = 0; j < factoresRiesgo.length; j++) {\n \n if(listaEmpleados.get(i).getFactoresRiesgo().contains(factoresRiesgo[j])){ \n listaEmpleados.get(i).setEstadoSalud(30);\n }\n }\n //Verifica el rango de edad de la persona -> asigna puntajes de acuerdo\n if(listaEmpleados.get(i).getEdad() >= 70){\n listaEmpleados.get(i).setEstadoSalud(listaEmpleados.get(i).getEstadoSalud()+50);\n }\n if(listaEmpleados.get(i).getEdad() >= 40 && listaEmpleados.get(i).getEdad() < 70 ){\n listaEmpleados.get(i).setEstadoSalud(listaEmpleados.get(i).getEstadoSalud()+30);\n }\n if(listaEmpleados.get(i).getEdad() >= 20 && listaEmpleados.get(i).getEdad() < 40 ){\n listaEmpleados.get(i).setEstadoSalud(listaEmpleados.get(i).getEstadoSalud()+10);\n }\n //Los hombre tienen mas probabilidades de morir por la mayoria de enfermedad, incluyendo el covid-19\n if(listaEmpleados.get(i).getSexo().equals(\"hombre\")){\n listaEmpleados.get(i).setEstadoSalud(listaEmpleados.get(i).getEstadoSalud()+15);\n \n }\n //Verifica los diferentes puntajes y almacena los empleados en diferentes arraylist dependiendo su prioridad\n \n if(listaEmpleados.get(i).getEstadoSalud() >= 80){\n EmpleadosPrioridadAlta.add(listaEmpleados.get(i)); \n }\n \n if(listaEmpleados.get(i).getEstadoSalud() >= 60 && listaEmpleados.get(i).getEstadoSalud() < 80){\n EmpleadosPrioridadMediaAlta.add(listaEmpleados.get(i));\n }\n \n if(listaEmpleados.get(i).getEstadoSalud() >= 35 && listaEmpleados.get(i).getEstadoSalud() < 60){\n EmpleadosPrioridadMedia.add(listaEmpleados.get(i));\n }\n \n if(listaEmpleados.get(i).getEstadoSalud() >= 0 && listaEmpleados.get(i).getEstadoSalud() < 35){\n EmpleadosPrioridadBaja.add(listaEmpleados.get(i));\n }\n \n } \n \n }",
"protected abstract Iterator<String> iterator(int restants, HashMap<String, Intersection> intersections, HashMap<String, Paire> vuDispo, Map<String, Map<String, Chemin>> plusCourtsChemins);",
"public static ArrayList<Integer> estadisticageneral() {\n\n\t\tArrayList<Integer> mensaje = new ArrayList<>();\n\n\t\tArrayList<Res> resesAntes = ResCRUD.select();\n\t\tArrayList<Res> resess = new ArrayList<>();\n\n\t\t\n\t\tfor (int i = 0; i < resesAntes.size(); i++) {\n\t\t\t\n\t\t\tif (resesAntes.get(i).getVivo()==1) {\n\t\t\t\t\n\t\t\t\tresess.add(resesAntes.get(i));\n\t\t\t}\n\t\t}\t\t\n\n\t\tArrayList<Potrero> potrero = PotreroCRUD.select();\n\n\t\tRes res = null;\n\n\t\tint potreros = potrero.size();\n\t\tint reses = resess.size();\n\t\tint hembras = 0;\n\t\tint machos = 0;\n\t\tint ch = 0;\n\t\tint hl = 0;\n\t\tint nv = 0;\n\t\tint vh = 0;\n\t\tint vp = 0;\n\t\tint cm = 0;\n\t\tint ml = 0;\n\t\tint mc = 0;\n\t\tint tp = 0;\n\n\t\tfor (int i = 0; i < resess.size(); i++) {\n\n\t\t\tres = resess.get(i);\n\n\t\t\tif (res.getGenero().equalsIgnoreCase(\"H\")) {\n\t\t\t\thembras++;\n\n\t\t\t\tswitch (res.getTipo()) {\n\n\t\t\t\tcase \"CH\":\n\n\t\t\t\t\tch++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"HL\":\n\n\t\t\t\t\thl++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"NV\":\n\n\t\t\t\t\tnv++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"VH\":\n\n\t\t\t\t\tvh++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"VP\":\n\n\t\t\t\t\tvp++;\n\t\t\t\t\tbreak;\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tif (res.getGenero().equalsIgnoreCase(\"M\")) {\n\t\t\t\tmachos++;\n\n\t\t\t\tswitch (res.getTipo()) {\n\n\t\t\t\tcase \"CM\":\n\n\t\t\t\t\tcm++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"ML\":\n\n\t\t\t\t\tml++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"MC\":\n\n\t\t\t\t\tmc++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"TP\":\n\n\t\t\t\t\ttp++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\n\t\tmensaje.add(potreros);\n\t\tmensaje.add(reses);\n\t\tmensaje.add(hembras);\n\t\tmensaje.add(machos);\n\t\tmensaje.add(ch);\n\t\tmensaje.add(hl);\n\t\tmensaje.add(nv);\n\t\tmensaje.add(vh);\n\t\tmensaje.add(vp);\n\t\tmensaje.add(cm);\n\t\tmensaje.add(ml);\n\t\tmensaje.add(mc);\n\t\tmensaje.add(tp);\n\n\t\treturn mensaje;\n\t}",
"private void saveEncuestaSatisfaccions(String estado) {\n int c = mEncuestaSatisfaccions.size();\n for (EncuestaSatisfaccion encuesta : mEncuestaSatisfaccions) {\n encuesta.getMovilInfo().setEstado(estado);\n estudioAdapter.updateEncSatSent(encuesta);\n publishProgress(\"Actualizando Encuestas Satisfaccion\", Integer.valueOf(mEncuestaSatisfaccions.indexOf(encuesta)).toString(), Integer\n .valueOf(c).toString());\n }\n //actualizar.close();\n }",
"public void StampaPotenziali()\r\n {\r\n System.out.println(\"----\"+this.nome+\"----\\n\"); \r\n \r\n if(!Potenziale.isEmpty())\r\n {\r\n Set<Entry<Integer,ArrayList<Carta>>> Es = Potenziale.entrySet();\r\n \r\n for(Entry<Integer,ArrayList<Carta>> E : Es)\r\n {\r\n System.out.println(\" -OPZIONE \"+E.getKey()+\"\");\r\n\r\n for(Carta c : E.getValue())\r\n {\r\n System.out.println(\" [ \"+c.GetName()+\" ]\");\r\n }\r\n \r\n System.out.println(\"\\n\");\r\n }\r\n }\r\n else\r\n {\r\n System.out.println(\"-NESSUNA CARTA O COMBINAZIONE DI CARTE ASSOCIATA-\\n\");\r\n }\r\n }",
"private StringBuilder rellenarFila(StringBuilder fila, int luces_encendidas, int cantidad_de_iteraciones) {\r\n\r\n\t\tfor (int i = luces_encendidas; i < cantidad_de_iteraciones; i++) {\r\n\t\t\tfila.append(Luces.APAGADO.getLuz());\r\n\t\t}\r\n\t\treturn fila;\r\n\t}",
"public static void main(String[] args) {\n BiFunction<String, Integer, Usuario> factory = Usuario::new;\n Usuario user1 = factory.apply(\"Henrique Schumaker\", 50);\n Usuario user2 = factory.apply(\"Humberto Schumaker\", 120);\n Usuario user3 = factory.apply(\"Hugo Schumaker\", 190);\n Usuario user4 = factory.apply(\"Hudson Schumaker\", 10);\n Usuario user5 = factory.apply(\"Gabriel Schumaker\", 90);\n Usuario user6 = factory.apply(\"Nikolas Schumaker\", 290);\n Usuario user7 = factory.apply(\"Elisabeth Schumaker\", 195);\n Usuario user8 = factory.apply(\"Eliza Schumaker\", 1000);\n Usuario user9 = factory.apply(\"Marcos Schumaker\", 100);\n Usuario user10 = factory.apply(\"Wilson Schumaker\", 1300);\n \n List<Usuario> usuarios = Arrays.asList(user1, user2, user3, user4, user5,\n user6, user7, user8, user9, user10);\n \n //filtra usuarios com + de 100 pontos\n usuarios.stream().filter(u -> u.getPontos() >100);\n \n //imprime todos\n usuarios.forEach(System.out::println);\n \n /*\n Por que na saída apareceu todos, sendo que eles não tem mais de 100 pontos? \n Ele não aplicou o ltro na lista de usuários! Isso porque o método filter, assim como os \n demais métodos da interface Stream, não alteram os elementos do stream original! É muito \n importante saber que o Stream não tem efeito colateral sobre a coleção que o originou.\n */\n }",
"public void setAtores(Iterator<IPessoa> atores);",
"private void laskeMatkojenPituus() {\n matkojenpituus = 0.0;\n\n for (Matka m : matkat) {\n matkojenpituus += m.getKuljettumatka();\n }\n\n }",
"public void colorearSecuencialAlternativo() {\n\t\tint color;\n\t\tcantColores = 0;\n\t\tfor (int i = 0; i < cantNodos; i++) {\n\t\t\tcolor = 1;\n\t\t\t/** Mientras el color no se pueda usar, elijo otro color **/\n\t\t\twhile (!sePuedeColorear(i, color))\n\t\t\t\tcolor++;\n\n\t\t\tnodos.get(i).setColor(color);\n\n\t\t\tif (color > cantColores)\n\t\t\t\tcantColores = color;\n\t\t}\n\t}",
"public static void main(String[] args) {\n Set<String> mySet = new HashSet<String>(100,50);\n mySet.add(\"APPLE\");\n mySet.add(\"LG\");\n mySet.add(\"HTTC\");\n mySet.add(\"APPLE\");\n mySet.add(\"SAMSUNG\");\n Iterator<String> iterator = mySet.iterator();\n while (iterator.hasNext()){\n System.out.println(iterator.next());\n }\n\n\n\n }",
"public void listarAlunosNaDisciplina(){\r\n for(int i = 0;i<alunos.size();i++){\r\n System.out.println(alunos.get(i).getNome());\r\n }\r\n }",
"private ArrayList<Pelicula> busquedaPorGenero(ArrayList<Pelicula> peliculas, String genero){\r\n\r\n ArrayList<Pelicula> peliculasPorGenero = new ArrayList<>();\r\n\r\n\r\n\r\n for(Pelicula unaPelicula:peliculas){\r\n\r\n if(unaPelicula.getGenre().contains(genero)){\r\n\r\n peliculasPorGenero.add(unaPelicula);\r\n }\r\n }\r\n\r\n return peliculasPorGenero;\r\n }",
"public void consultasSeguimiento() {\r\n try {\r\n switch (opcionMostrarAnalistaSeguim) {\r\n case \"Cita\":\r\n ListSeguimientoRadicacionesConCita = Rad.ConsultasRadicacionYSeguimiento(2, mBsesion.codigoMiSesion());\r\n break;\r\n case \"Entrega\":\r\n ListSeguimientoRadicacionesConCita = Rad.ConsultasRadicacionYSeguimiento(3, mBsesion.codigoMiSesion());\r\n break;\r\n }\r\n } catch (Exception e) {\r\n mbTodero.setMens(\"Error en el metodo '\" + this.getClass() + \".consultasSeguimiento()' causado por: \" + e.getMessage());\r\n mbTodero.error();\r\n }\r\n\r\n }",
"private void lisaaMiinaVasemmalle(int i, int j) {\n ArrayList<Ruutu> lista;\n if (i - 1 >= 0) {\n lista = this.ruudukko[i - 1];\n lista.get(j).setViereisetMiinat(1);\n if (j - 1 >= 0) {\n lista.get(j - 1).setViereisetMiinat(1);\n }\n if (j + 1 < x) {\n lista.get(j + 1).setViereisetMiinat(1);\n }\n }\n }",
"public DatosIteracion mejorIteracionVisibles() {\r\n\r\n\t\tArrayList<DatosIteracion> array = new ArrayList<DatosIteracion>();\r\n\r\n\t\tfor (DatosEstrategia e : this.getValoresEstrategias()) {\r\n\t\t\tarray.add(this.mejorIteracionVisibles(e.getValoresIteraciones()));\r\n\t\t}\r\n\t\treturn this.mejorIteracionVisibles(array);\r\n\t}",
"public Artikel [] aenderePreisAllerArtikelmitReturn(double prozent){\n Validator.check(prozent < -100, MSG_PREIS);\n for (int i = 0; i < key; i++){\n Artikel artikel = getArtikel(i);\n double preis = artikel.getPreis();\n preis += preis * prozent / 100;\n artikel.setPreis(preis);\n }\n return (Artikel[]) lager.values().toArray();\n }",
"public DatosIteracion mejorIteracionVisibles(String estrategia) {\r\n\r\n\t\tint i;\r\n\t\tfor (i = 0; i < this.getValoresEstrategias().size(); i++) {\r\n\t\t\tif (this.getValoresEstrategias(i).getNombreEstrategia()\r\n\t\t\t\t\t.equals(estrategia))\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t\treturn this.getValoresEstrategias(i).masEficiente();\r\n\t}",
"public String listarSensores(){\r\n String str = \"\";\r\n for(PacienteNuvem x:pacientes){//Para cada paciente do sistema ele armazena uma string com os padroes do protocolo de comunicação\r\n str += x.getNick()+\"-\"+x.getNome()+\"#\";\r\n }\r\n return str;\r\n }",
"public List<String> pntcontratacionhonorarios(ReportePlazaDTO reportePlazaDTO) {\n List<CustomOutputFile> lista = new ArrayList<CustomOutputFile>();\n List<String> listaString = new ArrayList<String>();\n\n String qnaCaptura = reportePlazaDTO.getQnaCaptura();\n String qnaCaptura2 = \"\";\n\n if (new Integer(qnaCaptura) % 2 == 0) {\n qnaCaptura2 = String.valueOf((new Integer(qnaCaptura) - 1));\n } else {\n qnaCaptura2 = qnaCaptura;\n }\n\n lista = \n super.persistence().get(QueryTdPlazaDAO.class).findBypntContratacionHonorarios(qnaCaptura);\n listaString.add(\"Ejercicio,Periodo que se informa,Tipo de contratación,Partida presupuestal de los recursos con que se cubran los honorarios pactados,Nombre(s),Primer apellido,Segundo apellido,Número de contrato,Fecha de inicio del contrato,Fecha de término del contrato,Hipervínculo al contrato,Servicios contratados,Remuneración mensual bruta o contraprestación,Monto total a pagar,Prestaciones (en su caso),Hipervínculo a la normatividad que regula la celebración de contratos de servicios profesionales por honorarios,Fec valida,Area responsable,Año,Fec actualiza,Nota\");\n\n if (lista != null) {\n for (CustomOutputFile row: lista) {\n listaString.add(row.getRegistro());\n }\n } else\n listaString = null;\n return listaString;\n\n }",
"@Override\n\tpublic ArrayList<Professor> consultarTudo() {\n\t\treturn listaprof;\n\t}",
"public static void main(String[] args) {\n ArrayList<Persona> cola = new ArrayList<>();\r\n \r\n generarCola(cola);\r\n \r\n //Creamos variables que nos seran útiles\r\n double recaudacion;\r\n double recaudacionTotal=0;\r\n Persona espectadorActual;\r\n int edadActual;\r\n int contadorPersonas=0;\r\n \r\n //Creamos el iterator\r\n Iterator<Persona> it=cola.iterator();\r\n \r\n \r\n //Recorremos la cola\r\n while(it.hasNext()){\r\n \r\n espectadorActual=it.next();\r\n \r\n //\"Atendemos\" al espectador para que pague\r\n edadActual=espectadorActual.getEdad();\r\n \r\n //Comprobamosla edad\r\n if(edadActual>=5 && edadActual<=10) { \r\n \trecaudacion=1; \r\n } else if(edadActual>=11 && edadActual<=17) {\r\n \trecaudacion=2.5;\r\n } else {\r\n \trecaudacion=3.5;\r\n }\r\n contadorPersonas++;\r\n recaudacionTotal+=recaudacion;\r\n \r\n System.out.println(\"Una persona de \"+edadActual+\" años se le ha cobrado \" +recaudacion+ \" euros\");\r\n \r\n }\r\n \r\n //Mostramos el resultado\r\n System.out.println(\"La recaudación es de \"+recaudacionTotal+\" euros y han venido \"+contadorPersonas);\r\n \r\n }",
"private String elaboraAvvisoScrittura() {\n String testo = VUOTA;\n\n if (usaHeadNonScrivere) {\n testo += TAG_NON_SCRIVERE;\n testo += A_CAPO;\n }// end of if cycle\n\n return testo;\n }",
"public void pagarSaidaDaPrisao() throws Exception {\n if (listaJogadoresNaPrisao.contains(listaJogadores.get(jogadorAtual()).getNome())) {\n listaJogadoresNaPrisao.remove(listaJogadores.get(jogadorAtual()).getNome());\n listaJogadores.get(jogadorAtual()).setTentativasSairDaPrisao(0);\n listaJogadores.get(jogadorAtual()).retirarDinheiro(50);\n\n } else {\n print(\"\\tTentou tirar \" + listaJogadores.get(jogadorAtual()).getNome());\n throw new Exception(\"player is not on jail\");\n }\n\n this.pagouPrisaoRecentemente = false;\n }",
"private void getEncParticipantes() {\n mEncuestasParticipantes = estudioAdapter.getListaEncuestaParticipantesSinEnviar();\n //ca.close();\n }",
"public static void main(String[] args) {\n\n\t\tScanner teclado = new Scanner(System.in);\n\t\tRandom aleatorio = new Random();\n\t\t// variables\n\t\tString pais = \"\";\n\t\tint contador = 0;\n\t\tint contador1 = 0;\n\t\tint maximo = 0;\n\t\tString ganador = \" \";\n\t\t// declaro hasmap\n\t\tHashMap<String, Integer> paises = new HashMap<String, Integer>();\n\n\t\tSystem.out.println(\"Bienvenido al festival de Eurovision!\");\n\t\t// bucle para introducir paises\n\t\twhile (!pais.equals(\"salir\") || contador <= 3) {\n\t\t\tSystem.out.println(\"Introduzca nombre del pais \" + contador);\n\t\t\t// generera numeros alatorios\n\t\t\tint numerosaleatorios = aleatorio.nextInt(10) + 10;\n\t\t\tpais = teclado.nextLine();\n\t\t\t// insertar en el hasmap pais y numero aleatorio generado\n\t\t\tpaises.put(pais, numerosaleatorios);\n\t\t\t//maxima puntuacion\n\t\t\tif (numerosaleatorios > maximo) {\n\t\t\t\tmaximo = numerosaleatorios;\n\t\t\t\tganador = pais;\n\t\t\t}\n\t\t\t//para que salir no lo cuente como un pais\n\t\t\tif (pais.equals(\"salir\")) {\n\t\t\t\tpaises.remove(pais, numerosaleatorios);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcontador++;\n\t\t}\n\t\tSystem.out.println(\n\t\t\t\t\"con las puntuaciones repartidas, el pais ganador es :\" + ganador + \" con \" + maximo + \" puntos\");\n\t\tSystem.out.println(paises);\n\t\t// bucle para verificar pais con su puntuacion\n\t\twhile (!pais.equals(\"salir\") || contador1 <= contador) {\n\t\t\tSystem.out.println(\" introduzca el nombre de pais para saber su puntuacion:\");\n\t\t\tpais = teclado.nextLine();\n\t\t\tSystem.out.println(pais + \" ha recibido \" + paises.get(pais) + \" votos \");\n\t\t\tif (pais.equals(\"salir\")) {\n\t\t\t\tSystem.out.println(\"salir no es un pais\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}",
"public static void addAllPossesives(AnnotationSet nps, Document doc, Map<Annotation, ArrayList<Annotation>> posessives)\r\n{\r\n for (Annotation np : nps) {\r\n addPossesives(np, doc, posessives);\r\n }\r\n}",
"public void aenderePreisAllerArtikel(double prozent){\n Validator.check(prozent < -100, MSG_PREIS);\n for (Map.Entry<Integer, Artikel> integerArtikelEntry : lager.entrySet()) {\n integerArtikelEntry.getValue().aenderePreis(prozent);\n }\n }",
"public List<Theater> findPreferedTheaterListByUserNo(int user_no) throws Exception;",
"public void menuEncomendasTrans(String username){\n ArrayList<Encomenda> encs=b_dados.buscaEncomendasTransportadora(username);\n if(encs.isEmpty()){\n System.out.println(\"Não existem encomendas disponiveis na sua localização\");\n }\n else{\n Scanner s=new Scanner(System.in);\n while(!encs.isEmpty()) {\n b_dados.buscaEncomendasDisplay(encs);\n System.out.println(\"Digite o código de encomenda que a sua empresa está pronta a entregar\");\n String opcao = s.nextLine();\n int check=0;\n for (Encomenda e : encs) {\n if (e.getcodEncomenda().equals(opcao)) {\n String cod = b_dados.getTrasnportadoras().get(username).getCodEmpresa();\n String nome = b_dados.getTrasnportadoras().get(username).getNome();\n double kms=b_dados.getTrasnportadoras().get(username).getGps().distLocalizacao(b_dados.getLoja(e.getcodLoja()).getGps())+ b_dados.getTrasnportadoras().get(username).getGps().distLocalizacao(b_dados.getUtilizador(e.getcodUtilizador()).getGps());\n b_dados.novaEntrega(cod, nome, e.getcodEncomenda(), e.getcodUtilizador(), e.getcodLoja(), e.getPeso(), e.getLinhas(),kms);\n b_dados.removeEncomendaDisponivel(e);\n check=1;\n encs=b_dados.buscaEncomendasTransportadora(username);\n break;\n }\n }\n if(check==0){\n System.out.println(\"Código errado ou não existe!\");\n }\n }\n System.out.println(\"Não existem mais encomendas disponiveis!\");\n }\n }",
"public HashSet<Usuario> getRegistrosPendientesDeAprobacion(){\r\n\t\t\r\n\t\tif(!this.modoAdmin) return null;\r\n\t\t\r\n\t\tUsuario u;\r\n\t\tHashSet<Usuario> pendientes = new HashSet<Usuario>();\r\n\t\tfor(Proponente p: this.proponentes) {\r\n\t\t\tif( p.getClass().getSimpleName().equals(\"Usuario\")) {\r\n\t\t\t\tu = (Usuario)p;\r\n\t\t\t\tif(u.getEstado()== EstadoUsuario.PENDIENTE) {\r\n\t\t\t\t\tpendientes.add(u);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn pendientes;\r\n\t}",
"public List<ParCuentasGenerales> listaCuentasGeneralesPorAsignar() {\n return parParametricasService.listaCuentasGenerales();\n }",
"public void index() {\n\t\t\n\t\tList<Filme> preferencias = new ArrayList<Filme>();\n\t\tfor( Map.Entry<Key, Integer> entry : session.getUsuario().getPreferencias().entrySet()){\n\t\t\tFilme tmp = filmeDao.getById(entry.getKey());\n\t\t\ttmp.setVotos(entry.getValue());\n\t\t\tpreferencias.add(tmp);\n\t\t}\n\t\t\n\t\t// passando todos os filmes, o usuário e as preferencias dele\n\t\tresult.include(\"filmes\", filmeDao.getAllInOrder() );\n\t\tresult.include(\"usuario\", session.getUsuario() );\n\t\tresult.include(\"preferencias\", preferencias);\n\t}",
"public GrapheIndicateursProjet (Projet p) {\n seuils = p.getSeuilFixes() ;\n \n // pour l'echelle, on determine les mesures max de toutes les iterations\n \n \n iterations = p.getListeIt() ; \n nbIt = iterations.size() ;\n \n // calcul des maximums\n Iteration tempIt = null ;\n IndicateursIteration tempIndIt = null ;\n for (int i = 0 ; i < nbIt ; i++)\n {\n if (iterations.get(i) instanceof Iteration)\n {\n tempIt = (Iteration)iterations.get(i) ;\n tempIndIt = tempIt.getIndicateursIteration() ;\n // charges\n if (tempIndIt.getTotalCharges() > chargesMax) { chargesMax = tempIndIt.getTotalCharges() ; }\n\t\tif (tempIndIt.getChargeMoyenneParticipants() > moyenneChargesMax) { moyenneChargesMax = tempIndIt.getChargeMoyenneParticipants() ; }\n\t\tif (tempIndIt.getNombreParticipants() > participantsMax) { participantsMax = tempIndIt.getNombreParticipants() ; }\n\t\tif (tempIndIt.getNombreTachesTerminees() > tachesTermineesMax) { tachesTermineesMax = tempIndIt.getNombreTachesTerminees() ; }\n\t\tif (tempIndIt.getNombreMoyenTachesParticipants() > tachesParticipantsMax) { tachesParticipantsMax = tempIndIt.getNombreMoyenTachesParticipants() ; }\n\t\tif (tempIndIt.getDureeMoyenneTaches() > dureeMoyenneTacheMax) { dureeMoyenneTacheMax = tempIndIt.getDureeMoyenneTaches() ; }\n }\n }\n setPreferredSize(new Dimension(ITERATION_WIDTH * nbIt,440));\n\t//setBorder(new TitledBorder(new EtchedBorder(), \"toto\", 5, TitledBorder.ABOVE_TOP)) ;\n }",
"public static ArrayList<Vkladi> trueScetVkladi() {\r\n\t\tArrayList<Vkladi> foundVkladi = new ArrayList<Vkladi>();\r\n\t\tint i = 0;\r\n\t\tfor (Vkladi vkla : vklad) {\r\n\t\t\tif (vkla.getStat() == true) {\r\n\t\t\t\tfoundVkladi.add(vkla);\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn foundVkladi;\r\n\t}",
"public void changerTailleMotsEtCouleur(int tailleMin, int tailleMax, String couleur){\n ArrayList<Integer> listeFreqDuCorpus = new ArrayList<Integer>(); \r\n for (int i=0; i<this.corpus.getListeMot().size(); i++){\r\n int freqDuMotActuel = this.corpus.getListeMot().get(i).getFrequence();\r\n if (!listeFreqDuCorpus.contains(freqDuMotActuel)){\r\n listeFreqDuCorpus.add(freqDuMotActuel); //On change la taille du mot proportionnellement à sa fréquence d'apparition\r\n }\r\n }\r\n \r\n int freqMax = listeFreqDuCorpus.get(0);\r\n if (couleur.equals(\"ROUGE\")){\r\n this.corpusEnWordGraph.set(0, new WordGraph(this.corpus.getListeMot().get(0),this.font,this.g2d, tailleMax, new Color(255,0,0)));\r\n } else if (couleur.equals(\"VERT\")){\r\n this.corpusEnWordGraph.set(0, new WordGraph(this.corpus.getListeMot().get(0),this.font,this.g2d, tailleMax, new Color(0,255,0)));\r\n } else if (couleur.equals(\"BLEU\")) {\r\n this.corpusEnWordGraph.set(0, new WordGraph(this.corpus.getListeMot().get(0),this.font,this.g2d, tailleMax, new Color(0,0,255)));\r\n } else if (couleur.equals(\"NOIR\")) {\r\n this.corpusEnWordGraph.set(0, new WordGraph(this.corpus.getListeMot().get(0),this.font,this.g2d, tailleMax, new Color(0,0,0)));\r\n for (int i=1; i<this.corpus.getListeMot().size(); i++){\r\n Mot motActuel = this.corpus.getListeMot().get(i);\r\n int tailleDuMotActuel =(int) (((double)motActuel.getFrequence()/(double)freqMax)*(tailleMax-tailleMin) + tailleMin);\r\n this.corpusEnWordGraph.set(i, new WordGraph(motActuel, this.font, this.g2d, tailleDuMotActuel, new Color(0,0,0)));\r\n }\r\n }\r\n if (!couleur.equals(\"NOIR\")){ //Si la couleur n'est pas noir, on change la couleur des mots en nuance de la couleur choisie\r\n for (int i=1; i<this.corpus.getListeMot().size(); i++){\r\n Mot motActuel = this.corpus.getListeMot().get(i);\r\n int tailleDuMotActuel =(int) (((double)motActuel.getFrequence()/(double)freqMax)*(tailleMax-tailleMin) + tailleMin);\r\n this.corpusEnWordGraph.set(i, new WordGraph(motActuel, this.font, this.g2d, tailleDuMotActuel, this.nuanceCouleur(couleur)));\r\n }\r\n }\r\n \r\n }",
"private void actualizaSugerencias() { \t \t\n\n \t// Pide un vector con las últimas N_SUGERENCIAS búsquedas\n \t// get_historial siempre devuelve un vector tamaño N_SUGERENCIAS\n \t// relleno con null si no las hay\n \tString[] historial = buscador.get_historial(N_SUGERENCIAS);\n \t\n \t// Establece el texto para cada botón...\n \tfor(int k=0; k < historial.length; k++) { \t\t \t\t\n \t\t\n \t\tString texto = historial[k]; \n \t\t// Si la entrada k está vacía..\n \t\tif ( texto == null) {\n \t\t\t// Rellena el botón con el valor por defecto\n \t\t\ttexto = DEF_SUGERENCIAS[k];\n \t\t\t// Y lo añade al historial para que haya concordancia\n \t\t\tbuscador.add_to_historial(texto);\n \t\t} \t\t\n \t\tb_sugerencias[k].setText(texto);\n \t} \t\n }",
"@Override\n public List<Pair<Candidatura, FAE>> atribui() {\n \n List<FAE> listaFaeEvento = evento.getListaFaeEvento();\n List<Candidatura> listaCandidaturaEvento = evento.getListaCandidaturasEvento();\n List<Pair<Candidatura, FAE>> listaAtribuicoes = new ArrayList();\n \n Random geradorAleatorio = new Random();\n int indiceFae = geradorAleatorio.nextInt(listaFaeEvento.size());\n \n for (Candidatura cand : listaCandidaturaEvento){\n listaAtribuicoes.add( new Pair<>(cand, listaFaeEvento.get(indiceFae)));\n }\n \n return listaAtribuicoes;\n }",
"public void consulterBoiteVocale() {\n for (int i = 0; i < this.boiteVocale.getListeMessagesVocaux().size(); i++) {\n //on passe l'attribut consulte à true pour savoir qu'il a été vu pour la facturation\n this.boiteVocale.getListeMessagesVocaux().get(i).setConsulte(true);\n }\n }",
"@Test\n void mostraTutti() {\n EAMese[] matrice = EAMese.values();\n assertNotNull(matrice);\n assertEquals(12, matrice.length);\n\n System.out.println();\n String sep = \" - \";\n int k=0;\n for (EAMese mese : matrice) {\n System.out.println(++k+sep+mese.getLungo() + sep + mese.getBreve() + sep + mese.getGiorni());\n }// end of for cycle\n\n }",
"public void geneticoPSO(){ \n //leer archivos de texto\n nombreArchivos.stream().map((nombreArchivo) -> lam.leerArchivo(nombreArchivo)).forEach((Mochila moc) -> {\n mochilas.add(moc);\n }); \n \n int o = 0;\n for (Mochila mochila : mochilas) { \n \n Algorithm_PSO alg_pso = new Algorithm_PSO(0.1, 0.8, 0.7, 0.6, 1, tamanioPob, EFOs, mochila.getSolucion().length, mochila); \n Individuo_mochilaPSO res = (Individuo_mochilaPSO)alg_pso.correr();\n System.out.println(\"fitnes: \" + res.getFitness() + \". Solucion\" + Arrays.toString(res.getCromosoma()));\n if (o == 9){\n System.out.println(\"\");\n }\n o++;\n }\n \n }",
"private String tulostuksenApu(){\r\n String apu = \"Rivitiedosto: \";\r\n for(int i = 0; i<rivitiedot.length; i++){\r\n apu = apu + i+\": \";\r\n for(int k = 1; k <= rivitiedot[i].getKoko(); k++){\r\n apu = apu + \" \"+rivitiedot[i].get(k);\r\n }\r\n apu = apu + \" \";\r\n }\r\n\r\n return apu;\r\n }",
"public void eisagwgiSintagis() {\n\t\t//Elegw ean mporei na eisaxthei suntagi\n\t\tif(numOfMedicine != 0 && numOfDoctors != 0 && numOfPatient != 0 && numOfPrescription < 1000) \n\t\t{\n\t\t\ttmp_1 = numOfPrescription + 1;\n\t\t\t// Emfanizw to synolo twn giatrwn pou yparxoun sto farmakeio\n\t\t\tfor(i = 0; i < numOfDoctors; i++)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(i + \". STOIXEIA IATROU: \");\n\t \t \tdoctor[i].print();\n\t \t \tSystem.out.println();\n\t\t\t}\n\t\t\t// O xristis epilegei ton ari8mo pou antistoixei ston giatro pou egrapse thn syntagh\n\t\t\ttmp_1 = sir.readPositiveInt(\"EPILEKSTE TON GIATRO POU EGGRAPSE THN SYNTAGH: \"); \n\t\t\t// Elegxw an o yparxei o giatros pou edwse o xristis\n\t\t\twhile(tmp_1 < 0 || tmp_1 > numOfDoctors - 1)\n\t \t {\n\t\t\t\ttmp_1 = sir.readPositiveInt(\"DEN YPARXEI GIATROS ME TO NOUMERO POU PLIKTROLOGISATE! PARAKALW KSANADWSTE ARITHMO: \");\n\t\t\t\tSystem.out.println();\n\t \t }\n\t\t\t\n\t\t\ti = numOfPrescription + 1;\n\t\t\t// Emfanizw to synolo twn asthenwn pou yparxoun sto farmakeio\n\t\t\tfor(i = 0; i < numOfPatient; i++)\n\t\t {\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(i + \". STOIXEIA ASTHENOUS: \");\n\t patient[i].print();\n\t System.out.println();\n\t\t }\n\t\t\t// O xristis epilegei ton ari8mo pou antistoixei ston as8enh gia ton opoio proorizetai i syntagh\n\t\t\ti = sir.readPositiveInt(\"EPILEKSTE TON ASTHENH GIA TON OPOIO PROORIZETAI H SYNTAGH: \"); \n\t\t\t// Elegxw an o yparxei o as8enhs pou edwse o xristis\n\t\t\twhile(i < 0 || i > numOfPatient - 1)\n\t \t {\n\t\t\t\ti = sir.readPositiveInt(\"DEN YPARXEI ASTHENHS ME TO NOUMERO POU PLIKTROLOGISATE! PARAKALW KSANADWSTE ARITHMO: \");\n\t\t\t\tSystem.out.println();\n\t \t }\n\t\t\t\n\t\t\t// O xristis eisagei tn synoliko ar8mo farmakwn pou 8a exei h syntagh\n\t\t\tSystem.out.println();\n\t\t\ttmp_2= sir.readPositiveInt(\"EISAGETAI TON ARITHMO TWN FARMAKWN POU EPITHUMEITAI NA EXEI H SYNTAGH(1-6): \");\n\t\t\t// Elegxw an o ari8mos twn farmakwn pou edwse o xristis einai egkyros\n\t\t\twhile(tmp_2 < 0 || tmp_2 > 6)\n\t \t {\n\t\t\t\ttmp_2 = sir.readPositiveInt(\"PARAKALW KSANAEISAGETAI SYNOLIKO ARITHMO FARMAKWN(1-6): \");\n\t\t\t\tSystem.out.println();\n\t \t }\n\t\t\t// Apo8ikeuw tis times ston constructor Syntagi\n\t\t\tprescription[numOfPrescription] = new Syntagi(doctor[tmp_1], patient[i], sir.readDate(\"\\nEISAGETAI THN HMEROMHNIA EGGRAFHS THS SYNTAGHS: \"), tmp_2);\n\t\t\t\n\t\t\tprescription[numOfPrescription].dimiourgiaPinakaFarmakwn(); // Kalw tin methodo auti gia na dimiourgisw ton pinaka me ton arithmo twn farmakwn pou mou edwse o xrhsths\n\t\t\t\n\t\t\t// Emfanizw to synolo twn farmakwn\n\t\t\tfor(i = 0; i < numOfMedicine; i++)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(i + \". STOIXEIA FARMAKOU: \");\n\t\t\t\tmedicine[i].print();\n\t\t\t}\n\t\t\t\n\t\t\tfor(i = 0; i < tmp_2; i++)\n \t \t{\n\t\t\t\ta = i + 1; \n\t\t\t\t// An h syntagh apoteleitai apo perissotera tou enos farmaka tote...\n\t\t\t\tif(tmp_2 != 1)\n \t \t \t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\ttmp_1 = sir.readPositiveInt(\"ARITHMOS \" + a + \"ou FARMAKOU: \");\n\t\t\t\t\ttmp_3 = sir.readPositiveInt(\"POSOTHTA \" + a + \"ou FARMAKOU: \");\n \t \t \tSystem.out.println();\n \t \t \t}\n\t\t\t\t// An h syntagh apoteleitai apo ena farmako tote...\n\t\t\t\telse\n \t \t \t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\ttmp_1 = sir.readPositiveInt(\"ARITHMOS FARMAKOU: \");\n\t\t\t\t\ttmp_3 = sir.readPositiveInt(\"POSOTHTA FARMAKOU: \");\n \t \t\t \tSystem.out.println();\n \t \t \t}\n \t \t \t// Elegxw an o ari8mos pou edwse o xristis einai egkyros\n\t\t\t\twhile(tmp_1 < 0 || tmp_1 > numOfMedicine - 1)\n \t \t \t{\n \t \t \t\ttmp_1 = sir.readPositiveInt(\"EISAGATAI LATHOS DEDOMENA!DWSTE KSANA TIMH: \");\n \t \t\t \tSystem.out.println();\n \t \t \t}\n \t \t \t\n\t\t\t\tprescription[numOfPrescription].gemismaPinakaFarmakwn(i, medicine[tmp_1], tmp_3); // Kalw tin methodo auti gia na gemisw ton pinaka twn farmakwn pou dimiourgisa proigoumenws\n \t \t}\n\t\t\tnumOfPrescription++;\n\t\t}\n\t\t// Elegxw pote den mporei na eisaxthei syntagh\n\t\telse\n\t\t{\n\t\t\t// An oi syntages pou exoun eisaxthei xeperasan to epitrepto orio\n\t\t\tif(numOfPrescription >= 1000)\n \t\t \t{\n \t\t\t\tSystem.out.print(\"DEN MPOREITAI NA EISAGETAI ALLES SYNTAGES!EXEI KALIFTHEI O MEGISTOS ARITHMOS TOUS\");\n \t\t\t\tSystem.out.println();\n \t\t \t}\n\t\t\t// An den yparxoun iatroi, astheneis kai farmaka sto farmakeio\n\t\t\telse if(numOfDoctors == 0 && numOfPatient == 0 && numOfMedicine == 0)\n \t\t \t{\n \t\t\t\tSystem.out.print(\"DEN YPARXOUN DIATHESIMOI GIATROI, ASTHENEIS KAI FARMAKA WSTE NA OLOKLIRWTHEI H EISAGWGH SYNTAGHS!PARAKALW EISAGETAI GIATROUS, ASTHENEIS KAI FARMAKA!\");\n \t\t\t\tSystem.out.println();\n \t\t \t}\n\t\t\t// An den yparxoun iatroi kai astheneis\n\t\t\telse if(numOfDoctors == 0 && numOfPatient == 0)\n \t \t{\n\t\t\t\tSystem.out.print(\"DEN YPARXOUN DIATHESIMOI GIATROI KAI ASTHENEIS GIA NA OLOKLHRWTHEI H EISAGWGH SYNTAGHS!PARAKALW EISAGETAI GIATROUS KAI ASTHENEIS!\");\n \t \t \tSystem.out.println();\n \t \t}\n\t\t\t// An den yparxoun iatroi kai farmaka\n\t\t\telse if(numOfDoctors == 0 && numOfMedicine == 0)\n \t \t{\n\t\t\t\tSystem.out.print(\"DEN YPARXOUN DIATHESIMOI GIATROI KAI FARMAKA GIA NA OLOKLHRWTHEI H EISAGWGH SYNTAGHS!PARAKALW EISAGETAI GIATROUS KAI FARMAKA!\");\n \t \t \tSystem.out.println();\n \t \t}\n\t\t\t// An den yparxoun astheneis kai farmaka\n\t\t\telse if(numOfPatient == 0 && numOfMedicine == 0)\n \t \t{\n\t\t\t\tSystem.out.print(\"DEN YPARXOUN DIATHESIMOI ASTHENEIS KAI FARMAKA GIA NA OLOKLHRWTHEI H EISAGWGH SYNTAGHS!PARAKALW EISAGETAI ASTHENEIS KAI FARMAKA!\");\n \t \t \tSystem.out.println();\n \t \t}\n\t\t\t// An den yparxoun iatroi\n\t\t\telse if (numOfDoctors == 0)\n \t\t \t{\n \t\t\t\tSystem.out.print(\"DEN YPARXOUN DIATHESIMOI GIATROI GIA NA OLOKLHRWTHEI H EISAGWGH SYNTAGHS!PARAKALW EISAGETAI GIATROUS!\");\n \t\t\t\tSystem.out.println();\n \t\t \t}\n \t\t \t// An den yparxoun astheneis\n\t\t\telse\n \t\t \t{\n \t\t\t\tSystem.out.print(\"DEN YPARXOUN DIATHESIMOI ASTHENEIS GIA NA OLOKLHRWTHEI H EISAGWGH SYNTAGHS!PARAKALW EISAGETAI ASTHENEIS!\");\n \t\t\t\tSystem.out.println();\n \t\t \t}\n\t\t}\n\t}",
"private boolean estPlein() {\n return (nbAssoc == associations.length);\n }",
"public void busqueda_Aestrella(Estado estado_inicial, Estado estado_final) {\r\n\t\tabiertos.add(estado_inicial); // Añado como nodo abierto el punto de partida del laberinto\r\n\t\tEstado actual = abiertos.get(0); // Selecciono como punto actual el primero de los nodos abiertos (el punto de partida)\r\n\t\ttrata_repe = 1; // Variable para indicar al switch como tiene que tratar los repetidos en el switch del metodo tratar_repetidos\r\n\t\twhile (actual != estado_final && !abiertos.isEmpty()) { // Mientras que actual no sea el punto final y haya nodos abiertos\r\n\t\t\titeraciones++; // Contador de iteraciones del bucle while\r\n\t\t\tabiertos.remove(0); // Elimino el nodo actual de la lista de abiertos\r\n\t\t\tcerrados.add(actual); // Y lo añado a nodos cerrados\t\t\t\r\n\t\t\testados_cerrados = cerrados.size(); // Contador para estados cerrados\r\n\r\n\t\t\thijos = generar_sucesores(actual); // Genero los hijos del punto actual (Limpio de muros o punto de inicio)\r\n\t\t\thijos = tratar_repetidos(cerrados, abiertos, hijos); // Trato los repetidos\r\n\t\t\tinsertar(hijos); // Acolo los hijos en la lista de abiertos\r\n\t\t\testados_visitados += hijos.size(); // Contador para estados visitados\r\n\r\n\t\t\tCollections.sort(abiertos, getCompHeuristicaMasProf()); // Ordeno por heuristica Manhattan + Profundidad la cola de abiertos\r\n\r\n\t\t\tactual = abiertos.get(0); // Selecciono como actual el primero en la cola de abiertos\r\n\r\n\t\t\tif (actual.equals(estado_final)) { //Compruebo si estamos en el estado final\r\n\t\t\t\tmostrarcamino(actual, estado_final); // Muestro el camino solucion\r\n\t\t\t\tbreak; //Salgo del bucle while\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void listarProvincia() {\n provincias = JPAFactoryDAO.getFactory().getProvinciaDAO().find();\n// for(int i=0;i<provincias.size();i++ ){\n// System.out.println(\"lista:\"+provincias.get(i).getNombreprovincia());\n// }\n }",
"protected String getNomeComQuemDividir(Map<String, Pizza> nomesPizzasFavoritas){\n\t\treturn \"Renata\";\r\n\t}",
"@Override\n public boolean hasNext() {\n return numeroDiNodiAncoraVisitabili>0;\n }",
"public static LinkedList<LinkedList<Integer>> asignarVehiculos(Graph grafo, float p) throws Exception {\n LinkedList<LinkedList<Integer>> caminos = new LinkedList<>();\n LinkedList<Integer> grafoOrganizado = organizarDistancias(grafo), visitados = new LinkedList<>();\n while (!grafoOrganizado.isEmpty()) {\n int nodo = grafoOrganizado.poll();\n if (visitados.contains(nodo))\n continue;\n LinkedList<LinkedList<Integer>> permutaciones = new LinkedList<>();\n LinkedList<Integer> permutacion = new LinkedList<>();\n permutaciones(grafo, nodo, permutacion, permutaciones, nodo, 0, grafo.getWeight(nodo, 0) * p);\n LinkedList<Integer> laPermutacionMasLarga = laPermutacionMasLarga(permutaciones, visitados);\n caminos.add(laPermutacionMasLarga);\n for (int i : laPermutacionMasLarga)\n visitados.add(i);\n }\n return caminos;\n }",
"@Test\n public void testCombineRankHighPageRankWeight() {\n Iterator<Pair<Document, Double>> resultIterator = icsSearchEngine.searchQuery(Arrays.asList(\"anteater\"),\n 10, 1000000000.0);\n ImmutableList<Pair<Document, Double>> resultList = ImmutableList.copyOf(resultIterator);\n Assert.assertEquals(10, resultList.size());\n Assert.assertTrue(resultList.stream().limit(3).map(p -> p.getLeft())\n .anyMatch(doc -> doc.getText().contains(\"wics.ics.uci.edu\")));\n }",
"private void poetries() {\n\n\t}",
"public DatosIteracion mejorIteracionVisibles(ArrayList<DatosIteracion> datos) {\r\n\r\n\t\tDatosIteracion d = new DatosIteracion(\"auxiliar\");\r\n\t\tLectura l = new Lectura(999999, 0, 0);\r\n\t\td.getValoresLecturas().add(l);\r\n\r\n\t\tfor (int i = 0; i < datos.size(); i++) {\r\n\r\n\t\t\tif (d.getValoresLecturas(d.getValoresLecturas().size() - 1)\r\n\t\t\t\t\t.getnNodos() < datos\r\n\t\t\t\t\t.get(i)\r\n\t\t\t\t\t.getValoresLecturas(\r\n\t\t\t\t\t\t\tdatos.get(i).getValoresLecturas().size() - 1)\r\n\t\t\t\t\t.getnNodos()) {\r\n\r\n\t\t\t\td = datos.get(i);\r\n\t\t\t}\r\n\r\n\t\t\tif (d.getValoresLecturas(d.getValoresLecturas().size() - 1)\r\n\t\t\t\t\t.getnNodos() == datos\r\n\t\t\t\t\t.get(i)\r\n\t\t\t\t\t.getValoresLecturas(\r\n\t\t\t\t\t\t\tdatos.get(i).getValoresLecturas().size() - 1)\r\n\t\t\t\t\t.getnNodos()) {\r\n\r\n\t\t\t\tif (d.getValoresLecturas(d.getValoresLecturas().size() - 1)\r\n\t\t\t\t\t\t.getCapturados() > datos\r\n\t\t\t\t\t\t.get(i)\r\n\t\t\t\t\t\t.getValoresLecturas(\r\n\t\t\t\t\t\t\t\tdatos.get(i).getValoresLecturas().size() - 1)\r\n\t\t\t\t\t\t.getCapturados()) {\r\n\r\n\t\t\t\t\td = datos.get(i);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn d;\r\n\t}",
"@Override\n\tpublic void crearNuevaPoblacion() {\n\t\t/* Nos quedamos con los mejores individuos. Del resto, cruzamos la mitad, los mejores,\n\t\t * y el resto los borramos.*/\n\t\tList<IIndividuo> poblacion2 = new ArrayList<>();\n\t\tint numFijos = (int) (poblacion.size()/2);\n\t\t/* Incluimos el 50%, los mejores */\n\t\tpoblacion2.addAll(this.poblacion.subList(0, numFijos));\n\t\t\n\t\t/* De los mejores, mezclamos la primera mitad \n\t\t * con todos, juntandolos de forma aleatoria */\n\t\tList<IIndividuo> temp = poblacion.subList(0, numFijos+1);\n\t\tfor(int i = 0; i < temp.size()/2; i++) {\n\t\t\tint j;\n\t\t\tdo {\n\t\t\t\tj = Individuo.aleatNum(0, temp.size()-1);\n\t\t\t}while(j != i);\n\t\t\t\n\t\t\ttry {\n\t\t\t\tpoblacion2.addAll(cruce(temp.get(i), temp.get(j)));\n\t\t\t} catch (CruceNuloException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t\t//this.poblacion.clear();\n\t\tthis.poblacion = poblacion2;\n\t}",
"public void verEstado(){\n for(int i = 0;i <NUMERO_AMARRES;i++) {\n System.out.println(\"Amarre nº\" + i);\n if(alquileres.get(i) == null) {\n System.out.println(\"Libre\");\n }\n else{\n System.out.println(\"ocupado\");\n System.out.println(alquileres.get(i));\n } \n }\n }",
"@Override \n public Set<String> keySet() {\n \n \n // definido um set onde colocar o resultado\n Set<String> r = new HashSet<>();\n \n try {\n \n // abre uma conecção\n conn = Connect.connect();\n \n // abrir um statment com a querie que temos de executar\n PreparedStatement stm = conn.prepareStatement(\"SELECT nomePacote FROM Pacote WHERE visivel=TRUE;\");\n \n \n // o resultado colocado em rs\n ResultSet rs = stm.executeQuery();\n \n while (rs.next()) // enquanto existir o next\n r.add(rs.getString(\"nomePacote\")); \n } catch (SQLException | ClassNotFoundException e) {\n e.printStackTrace();\n } finally {\n Connect.close(conn);\n }\n return r;\n }",
"public void kirimNotifikasiPersetujuan(Training training){\n\t\t\n\t}",
"private void grabarProyectoCarrerasOferta() {\r\n try {\r\n if (!sessionProyecto.getEstadoActual().getCodigo().equalsIgnoreCase(EstadoProyectoEnum.INICIO.getTipo())) {\r\n return;\r\n }\r\n for (ProyectoCarreraOferta proyectoCarreraOferta : sessionProyecto.getCarrerasSeleccionadasTransfer()) {\r\n Carrera c = carreraService.find(proyectoCarreraOferta.getCarreraId());\r\n List<ProyectoCarreraOferta> proyectoCarreraOfertas = proyectoCarreraOfertaService.buscar(\r\n new ProyectoCarreraOferta(sessionProyecto.getProyectoSeleccionado(), null, null, Boolean.TRUE));\r\n \r\n Long pcoId = devuelveProyectoCarreraId(proyectoCarreraOfertas, proyectoCarreraOferta);\r\n proyectoCarreraOferta = proyectoCarreraOfertaService.buscarPorId(new ProyectoCarreraOferta(pcoId));\r\n if (proyectoCarreraOferta == null) {\r\n proyectoCarreraOferta = new ProyectoCarreraOferta(sessionProyecto.getProyectoSeleccionado(), c.getId(), sessionProyecto.getOfertaAcademicaSeleccionada().getId(),\r\n Boolean.TRUE);\r\n if (contieneCarrera(proyectoCarreraOfertas, proyectoCarreraOferta) == false) {\r\n proyectoCarreraOfertaService.guardar(proyectoCarreraOferta);\r\n this.grabarIndividuoPCO(proyectoCarreraOferta);\r\n logDao.create(logDao.crearLog(\"ProyectoCarreraOferta\", proyectoCarreraOferta.getId() + \"\", \"CREAR\", \"Carrera=\"\r\n + proyectoCarreraOferta.getCarreraId() + \"|Oferta=\" + proyectoCarreraOferta.getOfertaAcademicaId() + \"|Proyecto= \"\r\n + proyectoCarreraOferta.getProyectoId().getId(), sessionUsuario.getUsuario()));\r\n }\r\n }\r\n proyectoCarreraOferta.setEsActivo(true);\r\n proyectoCarreraOfertaService.actualizar(proyectoCarreraOferta);\r\n logDao.create(logDao.crearLog(\"ProyectoCarreraOferta\", proyectoCarreraOferta.getId() + \"\", \"EDITAR\", \"Carrera=\"\r\n + proyectoCarreraOferta.getCarreraId() + \"|Oferta=\" + proyectoCarreraOferta.getOfertaAcademicaId()\r\n + \"|Proyecto= \" + proyectoCarreraOferta.getProyectoId().getId(), sessionUsuario.getUsuario()));\r\n }\r\n } catch (Exception e) {\r\n LOG.info(e.getMessage());\r\n }\r\n }",
"public List<SinistroPendente_FaixaVO> validaSelecionaSinistroPendente_Faixa(int tipo) {\n\n\t\tDecimalFormat percentForm = new DecimalFormat(\"0.00%\");\n\t\tDecimalFormat roundForm = new DecimalFormat(\"0.00\");\n\n\t\tList<SinistroPendente_FaixaVO> listaTratadaTotais = new ArrayList<SinistroPendente_FaixaVO>();\n\t\tList<SinistroPendente_FaixaVO> listaSinistroPendente = null;\n\t\tList<SinistroPendente_FaixaVO> listaFinal = new ArrayList<SinistroPendente_FaixaVO>();\n\n\t\tswitch (tipo) {\n\t\tcase 1: // faixa tempo\n\t\t\tlistaSinistroPendente = listaSinistroPendenteTempo;\n\t\t\tbreak;\n\t\tcase 2:// faixa valor\n\t\t\tlistaSinistroPendente = listaSinistroPendenteValor;\n\t\t\tbreak;\n\t\t}\n\n\t\tint totalNumSinistrosPendentes_Administrativo = 0;\n\t\tint totalNumSinistrosPendentes_Judicial = 0;\n\t\tint totalNumSinistrosPendentes_Total = 0;\n\n\t\tBigDecimal totalValorSinistrosPendentes_Administrativo = new BigDecimal(\"0\");\n\t\tBigDecimal totalValorSinistrosPendentes_Judicial = new BigDecimal(\"0\");\n\t\tBigDecimal totalValorSinistrosPendentes_Total = new BigDecimal(\"0\");\n\n\t\tString textoGrupoAnterior = \"\";\n\n\t\t// ============================\n\t\t// esse obj serve apenas para a lista nao ficar vazia\n\t\tSinistroPendente_FaixaVO totaNulo = new SinistroPendente_FaixaVO();\n\t\ttotaNulo.setGrupo(\"vazio\");\n\t\t// ============================\n\n\t\tlistaTratadaTotais.add(totaNulo);\n\t\tfor (int i = 0; i < listaSinistroPendente.size(); i++) {\n\n\t\t\tif (i == 0) {\n\n\t\t\t\ttextoGrupoAnterior = listaSinistroPendente.get(i).getGrupo();\n\n\t\t\t\ttotalNumSinistrosPendentes_Administrativo += listaSinistroPendente.get(i)\n\t\t\t\t\t\t.getNumSinistrosPendentes_Administrativo();\n\t\t\t\ttotalNumSinistrosPendentes_Judicial += listaSinistroPendente.get(i).getNumSinistrosPendentes_Judicial();\n\t\t\t\ttotalNumSinistrosPendentes_Total += listaSinistroPendente.get(i).getNumSinistrosPendentes_Total();\n\n\t\t\t\ttotalValorSinistrosPendentes_Administrativo = totalValorSinistrosPendentes_Administrativo\n\t\t\t\t\t\t.add(new BigDecimal(listaSinistroPendente.get(i).getValorSinistrosPendentes_Administrativo()));\n\t\t\t\ttotalValorSinistrosPendentes_Judicial = totalValorSinistrosPendentes_Judicial\n\t\t\t\t\t\t.add(new BigDecimal(listaSinistroPendente.get(i).getValorSinistrosPendentes_Judicial()));\n\t\t\t\ttotalValorSinistrosPendentes_Total = totalValorSinistrosPendentes_Total\n\t\t\t\t\t\t.add(new BigDecimal(listaSinistroPendente.get(i).getValorSinistrosPendentes_Total()));\n\n\t\t\t} else if (listaSinistroPendente.get(i).getGrupo().equals(textoGrupoAnterior)) {\n\n\t\t\t\ttextoGrupoAnterior = listaSinistroPendente.get(i).getGrupo();\n\n\t\t\t\ttotalNumSinistrosPendentes_Administrativo += listaSinistroPendente.get(i)\n\t\t\t\t\t\t.getNumSinistrosPendentes_Administrativo();\n\t\t\t\ttotalNumSinistrosPendentes_Judicial += listaSinistroPendente.get(i).getNumSinistrosPendentes_Judicial();\n\t\t\t\ttotalNumSinistrosPendentes_Total += listaSinistroPendente.get(i).getNumSinistrosPendentes_Total();\n\n\t\t\t\ttotalValorSinistrosPendentes_Administrativo = totalValorSinistrosPendentes_Administrativo\n\t\t\t\t\t\t.add(new BigDecimal(listaSinistroPendente.get(i).getValorSinistrosPendentes_Administrativo()));\n\t\t\t\ttotalValorSinistrosPendentes_Judicial = totalValorSinistrosPendentes_Judicial\n\t\t\t\t\t\t.add(new BigDecimal(listaSinistroPendente.get(i).getValorSinistrosPendentes_Judicial()));\n\t\t\t\ttotalValorSinistrosPendentes_Total = totalValorSinistrosPendentes_Total\n\t\t\t\t\t\t.add(new BigDecimal(listaSinistroPendente.get(i).getValorSinistrosPendentes_Total()));\n\n\t\t\t} else if (!(listaSinistroPendente.get(i).getGrupo().equals(textoGrupoAnterior))) {\n\n\t\t\t\tSinistroPendente_FaixaVO totalVO = new SinistroPendente_FaixaVO();\n\t\t\t\ttotalVO.setGrupo(textoGrupoAnterior);\n\t\t\t\ttotalVO.setFaixa(\"Total\");\n\t\t\t\ttotalVO.setValorSinistrosPendentes_Administrativo(\n\t\t\t\t\t\ttotalValorSinistrosPendentes_Administrativo.toString());\n\t\t\t\ttotalVO.setValorSinistrosPendentes_Judicial(totalValorSinistrosPendentes_Judicial.toString());\n\t\t\t\ttotalVO.setValorSinistrosPendentes_Total(totalValorSinistrosPendentes_Total.toString());\n\t\t\t\ttotalVO.setNumSinistrosPendentes_Administrativo(totalNumSinistrosPendentes_Administrativo);\n\t\t\t\ttotalVO.setNumSinistrosPendentes_Judicial(totalNumSinistrosPendentes_Judicial);\n\t\t\t\ttotalVO.setNumSinistrosPendentes_Total(totalNumSinistrosPendentes_Total);\n\t\t\t\tlistaTratadaTotais.add(totalVO);\n\n\t\t\t\ttextoGrupoAnterior = listaSinistroPendente.get(i).getGrupo();\n\n\t\t\t\ttotalValorSinistrosPendentes_Administrativo = new BigDecimal(\"0\");\n\t\t\t\ttotalValorSinistrosPendentes_Administrativo = totalValorSinistrosPendentes_Administrativo\n\t\t\t\t\t\t.add(new BigDecimal(listaSinistroPendente.get(i).getValorSinistrosPendentes_Administrativo()));\n\n\t\t\t\ttotalValorSinistrosPendentes_Judicial = new BigDecimal(\"0\");\n\t\t\t\ttotalValorSinistrosPendentes_Judicial = totalValorSinistrosPendentes_Judicial\n\t\t\t\t\t\t.add(new BigDecimal(listaSinistroPendente.get(i).getValorSinistrosPendentes_Judicial()));\n\n\t\t\t\ttotalValorSinistrosPendentes_Total = new BigDecimal(\"0\");\n\t\t\t\ttotalValorSinistrosPendentes_Total = totalValorSinistrosPendentes_Total\n\t\t\t\t\t\t.add(new BigDecimal(listaSinistroPendente.get(i).getValorSinistrosPendentes_Total()));\n\n\t\t\t\ttotalNumSinistrosPendentes_Administrativo = 0;\n\t\t\t\ttotalNumSinistrosPendentes_Administrativo += listaSinistroPendente.get(i)\n\t\t\t\t\t\t.getNumSinistrosPendentes_Administrativo();\n\n\t\t\t\ttotalNumSinistrosPendentes_Judicial = 0;\n\t\t\t\ttotalNumSinistrosPendentes_Judicial += listaSinistroPendente.get(i).getNumSinistrosPendentes_Judicial();\n\n\t\t\t\ttotalNumSinistrosPendentes_Total = 0;\n\t\t\t\ttotalNumSinistrosPendentes_Total += listaSinistroPendente.get(i).getNumSinistrosPendentes_Total();\n\n\t\t\t}\n\n\t\t}\n\t\tboolean insere = false;\n\t\tfor (int i = 0; i < listaTratadaTotais.size(); i++) {\n\t\t\tif (listaTratadaTotais.get(i).getGrupo().equalsIgnoreCase(textoGrupoAnterior)) {\n\t\t\t\tinsere = false;\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tinsere = true;\n\t\t\t}\n\t\t}\n\t\tif (insere) {\n\t\t\tSinistroPendente_FaixaVO totaVO = new SinistroPendente_FaixaVO();\n\t\t\ttotaVO.setGrupo(textoGrupoAnterior);\n\t\t\ttotaVO.setFaixa(\"Total\");\n\t\t\ttotaVO.setValorSinistrosPendentes_Administrativo(totalValorSinistrosPendentes_Administrativo.toString());\n\t\t\ttotaVO.setValorSinistrosPendentes_Judicial(totalValorSinistrosPendentes_Judicial.toString());\n\t\t\ttotaVO.setValorSinistrosPendentes_Total(totalValorSinistrosPendentes_Total.toString());\n\n\t\t\ttotaVO.setNumSinistrosPendentes_Administrativo(totalNumSinistrosPendentes_Administrativo);\n\t\t\ttotaVO.setNumSinistrosPendentes_Judicial(totalNumSinistrosPendentes_Judicial);\n\t\t\ttotaVO.setNumSinistrosPendentes_Total(totalNumSinistrosPendentes_Total);\n\t\t\tlistaTratadaTotais.add(totaVO);\n\t\t}\n\t\tlistaTratadaTotais.remove(0);// remove o obj inserido acima com o texto\n\t\t\t\t\t\t\t\t\t\t// \"nulo\"\n\n\t\t// ###################################################\n\t\t// ###################################################\n\t\t// parte para calcular as porcentagens\n\t\t// ###################################################\n\n\t\t// este 'for' serve para vincular a lista de pendentes com a lista de\n\t\t// totais atraves do indice da lista de totais\n\t\ttextoGrupoAnterior = \"\";\n\t\tint tamLista = listaSinistroPendente.size();\n\t\tfor (int i = 0; i < tamLista; i++) {\n\t\t\tfor (int j = 0; j < listaTratadaTotais.size(); j++) {\n\t\t\t\tif (listaSinistroPendente.get(i).getGrupo().equalsIgnoreCase(listaTratadaTotais.get(j).getGrupo())) {\n\t\t\t\t\t// Exemplo: Na listaSinistroPendente na posicao i=5 o\n\t\t\t\t\t// produto eh \"Auto Correntista\". Na listaTratadaTotais\n\t\t\t\t\t// esse produto \"Auto Correntista\" eh j=1. Entao assim\n\t\t\t\t\t// saberei onde esta o total de \"Auto Correntista\" na\n\t\t\t\t\t// listaTratadaTotais.\n\t\t\t\t\tlistaSinistroPendente.get(i).setIndiceListaTotais(j);\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// este 'for' serve para organizar as listas de pendentes e a lista de\n\t\t// totais\n\t\tint inseriu = 0;\n\t\tint ultimoIndice = 0;\n\t\tfor (int j = 0; j < listaSinistroPendente.size(); j++) {\n\n\t\t\tif (listaSinistroPendente.get(j).getIndiceListaTotais() != ultimoIndice) {\n\t\t\t\tinseriu = 0;\n\t\t\t}\n\t\t\tif (inseriu == 0) {\n\t\t\t\tlistaFinal.add(listaTratadaTotais.get(listaSinistroPendente.get(j).getIndiceListaTotais()));\n\t\t\t\tultimoIndice = listaSinistroPendente.get(j).getIndiceListaTotais();\n\t\t\t\tinseriu = 1;\n\t\t\t}\n\n\t\t\tlistaFinal.add(listaSinistroPendente.get(j));\n\n\t\t}\n\n\t\tfor (int i = 0; i < listaFinal.size(); i++) {\n\t\t\tif (!(listaFinal.get(i).getFaixa().equalsIgnoreCase(\"Total\"))) {\n\n\t\t\t\tint indice = listaFinal.get(i).getIndiceListaTotais();\n\t\t\t\ttry {\n\t\t\t\t\tlistaFinal.get(i).setNumPercentSinistrosPendentes_Administrativo(\n\t\t\t\t\t\t\tpercentForm.format((double) (listaFinal.get(i).getNumSinistrosPendentes_Administrativo())\n\t\t\t\t\t\t\t\t\t/ (listaTratadaTotais.get(indice).getNumSinistrosPendentes_Administrativo())));\n\t\t\t\t\tlistaFinal.get(i).setValorPercentSinistrosPendentes_Administrativo(percentForm.format(\n\t\t\t\t\t\t\tnew BigDecimal(listaFinal.get(i).getValorSinistrosPendentes_Administrativo()).divide(\n\t\t\t\t\t\t\t\t\tnew BigDecimal(\n\t\t\t\t\t\t\t\t\t\t\tlistaTratadaTotais.get(indice).getValorSinistrosPendentes_Administrativo()),\n\t\t\t\t\t\t\t\t\t6, RoundingMode.HALF_DOWN)));\n\n\t\t\t\t} catch (ArithmeticException ae) {\n\t\t\t\t\tlistaFinal.get(i).setNumPercentSinistrosPendentes_Administrativo(\"0%\");\n\t\t\t\t\tlistaFinal.get(i).setValorPercentSinistrosPendentes_Administrativo(\"0%\");\n\n\t\t\t\t}\n\n\t\t\t\ttry {\n\t\t\t\t\tlistaFinal.get(i).setNumPercentSinistrosPendentes_Judicial(\n\t\t\t\t\t\t\tpercentForm.format((double) (listaFinal.get(i).getNumSinistrosPendentes_Judicial())\n\t\t\t\t\t\t\t\t\t/ (listaTratadaTotais.get(indice).getNumSinistrosPendentes_Judicial())));\n\n\t\t\t\t\tlistaFinal.get(i).setValorPercentSinistrosPendentes_Judicial(percentForm\n\t\t\t\t\t\t\t.format(new BigDecimal(listaFinal.get(i).getValorSinistrosPendentes_Judicial()).divide(\n\t\t\t\t\t\t\t\t\tnew BigDecimal(\n\t\t\t\t\t\t\t\t\t\t\tlistaTratadaTotais.get(indice).getValorSinistrosPendentes_Judicial()),\n\t\t\t\t\t\t\t\t\t6, RoundingMode.HALF_DOWN)));\n\n\t\t\t\t} catch (ArithmeticException ae) {\n\t\t\t\t\tlistaFinal.get(i).setNumPercentSinistrosPendentes_Judicial(\"0%\");\n\t\t\t\t\tlistaFinal.get(i).setValorPercentSinistrosPendentes_Judicial(\"0%\");\n\t\t\t\t}\n\n\t\t\t\ttry {\n\t\t\t\t\tlistaFinal.get(i).setNumPercentSinistrosPendentes_Total(\n\t\t\t\t\t\t\tpercentForm.format((double) (listaFinal.get(i).getNumSinistrosPendentes_Total())\n\t\t\t\t\t\t\t\t\t/ (listaTratadaTotais.get(indice).getNumSinistrosPendentes_Total())));\n\n\t\t\t\t\tlistaFinal.get(i).setValorPercentSinistrosPendentes_Total(percentForm\n\t\t\t\t\t\t\t.format(new BigDecimal(listaFinal.get(i).getValorSinistrosPendentes_Total()).divide(\n\t\t\t\t\t\t\t\t\tnew BigDecimal(listaTratadaTotais.get(indice).getValorSinistrosPendentes_Total()),\n\t\t\t\t\t\t\t\t\t6, RoundingMode.HALF_DOWN)));\n\n\t\t\t\t} catch (ArithmeticException ae) {\n\t\t\t\t\tlistaFinal.get(i).setNumPercentSinistrosPendentes_Total(\"0%\");\n\t\t\t\t\tlistaFinal.get(i).setValorPercentSinistrosPendentes_Total(\"0%\");\n\t\t\t\t}\n\n\t\t\t} // if\n\t\t} // for\n\n\t\tfor (int i = 0; i < listaFinal.size(); i++) {\n\n\t\t\tlistaFinal.get(i).setValorSinistrosPendentes_Administrativo(uteis.insereSeparadoresMoeda(roundForm\n\t\t\t\t\t.format(Double.parseDouble(listaFinal.get(i).getValorSinistrosPendentes_Administrativo()))));\n\t\t\tlistaFinal.get(i).setValorSinistrosPendentes_Judicial(uteis.insereSeparadoresMoeda(\n\t\t\t\t\troundForm.format(Double.parseDouble(listaFinal.get(i).getValorSinistrosPendentes_Judicial()))));\n\t\t\tlistaFinal.get(i).setValorSinistrosPendentes_Total(uteis.insereSeparadoresMoeda(\n\t\t\t\t\troundForm.format(Double.parseDouble(listaFinal.get(i).getValorSinistrosPendentes_Total()))));\n\n\t\t}\n\n\t\treturn listaFinal;\n\t}",
"public void matchingcouple()\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"Output :\");\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(\"Following are the matching pairs \");\r\n\t\t\t\t\r\n\t\t\t\tfor(int i=0;i<womenmatchinlist.size();i++)\r\n\t\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\t// print the matching pair from same index of men and women matching list\r\n\t\t\t\tSystem.out.println(menmatchinglist.get(i)+\" is engaged with \"+womenmatchinlist.get(i));\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\t}"
] | [
"0.55583704",
"0.54429954",
"0.5396711",
"0.5385716",
"0.5366492",
"0.53408086",
"0.533978",
"0.5316217",
"0.528448",
"0.5281639",
"0.52544856",
"0.5243058",
"0.5209853",
"0.5198568",
"0.5176584",
"0.5164879",
"0.5158515",
"0.5151184",
"0.51217335",
"0.50816816",
"0.5075457",
"0.507005",
"0.5043261",
"0.50258344",
"0.50189203",
"0.5013743",
"0.5012069",
"0.50099915",
"0.49970585",
"0.4991168",
"0.49903798",
"0.4986818",
"0.49820328",
"0.49795476",
"0.49693137",
"0.49645427",
"0.4959623",
"0.49589783",
"0.49545595",
"0.49525663",
"0.49411073",
"0.49361187",
"0.49312687",
"0.49260265",
"0.49203295",
"0.49167407",
"0.4913913",
"0.49108687",
"0.49046808",
"0.49018627",
"0.4899729",
"0.48984933",
"0.4890196",
"0.48869133",
"0.4881279",
"0.48596513",
"0.48576346",
"0.4856366",
"0.48547533",
"0.48522046",
"0.48504293",
"0.4847284",
"0.48443553",
"0.48364773",
"0.48359498",
"0.48167214",
"0.4812757",
"0.48036942",
"0.4801946",
"0.47991863",
"0.47953278",
"0.4789843",
"0.47883245",
"0.4787391",
"0.4787183",
"0.4777803",
"0.4761147",
"0.47589585",
"0.4758681",
"0.47586602",
"0.4755184",
"0.47542888",
"0.4753486",
"0.47486806",
"0.4747637",
"0.4745657",
"0.47445747",
"0.47419724",
"0.47413647",
"0.4740756",
"0.4738294",
"0.47364092",
"0.47327647",
"0.47319463",
"0.47316492",
"0.47287554",
"0.47273463",
"0.47251534",
"0.47249594",
"0.4721411"
] | 0.48640183 | 55 |
Sends a message.(String message) | private void sendMessage(String message) {
if (mChatService.getState() != BluetoothChatService.STATE_CONNECTED) {
// Toast.makeText(this, R.string.not_connected, Toast.LENGTH_SHORT).show();
return;
}
if (message.length() > 0) {
byte[] send = message.getBytes();
mChatService.write(send);
mOutStringBuffer.setLength(0);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void send(String message);",
"public void sendMessage(String message);",
"public void sendMessage(String message) {}",
"void sendMessage(String msg);",
"public void send(Message msg);",
"public void sendMessage(String message) {\r\n sendMessageAsByte(message.getBytes());\r\n }",
"public static void sendMessage(String message) {\r\n\t\tbtService.write(message.getBytes());\r\n\t}",
"public void sendMessage(String message) {\n\t\tsocketTextOut.println(message);\n\t\tsocketTextOut.flush();\n\t}",
"public void sendMessage(String message){\n pw.print(message);\n pw.flush();\n }",
"public void sendMessage(String message) {\n try {\n bos.write(message);\n bos.newLine();\n bos.flush();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"@Override\r\n\tpublic void sendMessage(String message) {\n\t\t\r\n\t}",
"public static void sendMessage(String message) {\n getBwapi().sendText(message);\n }",
"public void sendMessage(String message){\n\t if (mOut != null && !mOut.checkError()) {\n\t mOut.println(message+\"\\n\");\n\t mOut.flush();\n\t }\n\t }",
"@Override\n\tpublic void SendMessage(String message) {\n\t\t\n\t\ttry\n\t\t{\n\t\tprintWriters.get(clients.get(0)).println(message);\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\n\t}",
"public synchronized void send(String message) {\n writer.println(message);\n writer.flush();\n }",
"private void sendMessage(String message){\n\t\ttry{\n\t\t\toutput.writeObject(\"Punk Ass Server: \" + message);\n\t\t\toutput.flush();\n\t\t\tshowMessage(\"\\nPunk Ass Server: \" + message); \n\t\t}catch(IOException ioe){\n\t\t\tchatWindow.append(\"\\n Message not sent, try again or typing something else\");\n\t\t\t\n\t\t}\n\t\t\n\t}",
"@Override\n\tpublic void send(String msg) {\n\t\t\n\t\t\n\t\n\t}",
"public void sendMessage(String message)\n\t\t{\n\t\t\twriter.println(message);\n\t\t\twriter.flush();\n\t\t}",
"@Override\n public void send(String message) {\n\n out.println(message);\n out.flush();\n\n }",
"public void sendMessage(String s){\r\n\t\tsynchronized(msgToSend){ // synchronized to maintain thread-safety\r\n\t\t\tmsgToSend.append(s + \"\\n\");\r\n\t\t}\r\n\t}",
"@Override\n\tpublic void send(String msg) {\n\t}",
"public abstract void send(String message) throws IOException;",
"public void send(String message) throws IOException {\r\n OutputStream stream = socket.getOutputStream();\r\n PrintWriter writer = new PrintWriter(stream);\r\n writer.println(message);\r\n writer.flush();\r\n }",
"@Override\n\tpublic void Send(String message) {\n\t\tgetReceiveArea().append(\"我:\"+message + \"\\n\");\n\t\tgetMediator().sendMessage(getName(), message);\n\t}",
"public void send(String message) {\n byte[] data = message.getBytes(Charset.forName(\"UTF-8\"));\n final Payload payload = new Payload(OPCODE_TEXT, data);\n\n new Thread(new Runnable() {\n @Override\n public void run() {\n webSocketConnection.sendInternal(payload);\n }\n\n }).start();\n }",
"public void sendMessage(final String message) {\n\n Runnable runnable = new Runnable() {\n @Override\n public void run() {\n\n if (null != sendBuffer) {\n Log.d(TAG, \"Sending: \" + message);\n sendBuffer.println(message);\n sendBuffer.flush();\n }\n }\n };\n\n Thread thread = new Thread(runnable);\n thread.start();\n }",
"void sendMessage(String message) {\n writer.println(message);\n }",
"public void send(String message) {\r\n String command;\r\n if ( !message.startsWith(\"/\") || message.length() == 1 || message.startsWith(\"/ \")) {\r\n command = \"MESG\" + \" \" + message;\r\n } else {\r\n StringTokenizer tokens = new StringTokenizer(message);\r\n command = tokens.nextToken(\"/\").toUpperCase();\r\n if (command.equals(\"MESG\") && tokens.hasMoreTokens()) {\r\n command = command + \" \" + tokens.nextToken(\"\\n\").trim();\r\n } else {\r\n while (tokens.hasMoreTokens()) {\r\n command = command + \" \" + tokens.nextToken(\" \\n\");\r\n }\r\n }\r\n }\r\n if (out != null) {\r\n out.println(command);\r\n } else {\r\n keepGoing = false;\r\n finalize();\r\n }\r\n }",
"void sendRequest(String message);",
"public void sendMessage(String message) {\n\t\ttry {\n\t\t\tout.writeUTF(message);\n\t\t\tserver.CommunicationLog.info(\"Sent:\" + message + \" to \" + clientSocket.getInetAddress().toString());\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void sendMessage(String message) {\n printWriter.append(message);\n printWriter.flush();\n }",
"public void sendMessage(NetMessage message) {\n ClientDirector.getDataManager().sendMessage(message);\n }",
"public void send(String msg) throws CcException\n {\n commWriter.send(msg);\n }",
"public void sendMessage(String message) {\n\t\tif (!connectionActive()) {\n\t\t\tthrow new IllegalOperationException(\"Cannot send a message if you are not connected to a server!\\n\");\n\t\t}\n\t\tMessage bctMessage = Message.makeBroadcastMessage(userName, message);\n\t\tsocketConnection.print(bctMessage);\n\t}",
"@Override\r\n\tpublic void sendMessage(String message) {\n\t\tmediator.send(message, this);\r\n\t}",
"public void sendMessage(Message msg) {\n network.sendAsync(msg);\n }",
"public void sendMessage(String msg) {\n\t\tplayer.sendMessage(msg);\n\t}",
"public void send(String message){\n\t\ttry {\n\t\t\tSystem.out.println(\"Sende Nachricht \" + message);\n\t\t\tout.reset();\n\t\t\tout.writeObject(message);\n\t\t\tout.flush();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"void send(String message, String uri);",
"public void sendMessage(String message) {\r\n\r\n synchronized (this) {\r\n //count++;\r\n if (mBufferOut != null && !mBufferOut.checkError()) {\r\n Log.i(TAG, \"message: \" + message);\r\n mBufferOut.print(message);\r\n mBufferOut.flush();\r\n }\r\n }\r\n }",
"@Override\n\tpublic void sendMsg(String msg) {\n\n\t}",
"public void sendMessage ( String message ) {\n\t\texecute ( handle -> handle.sendMessage ( message ) );\n\t}",
"protected void sendMessage(final String message) {\n\n logger.debug(LOG_TAG + \".sendMessage()\");\n\n // send message to client\n printWriter.println(message);\n\n }",
"void sendMessage(String message) throws SocketIOException;",
"private void sendMessageToClient(String message) {\n try {\n outputStream.writeObject(message);\n outputStream.flush();\n } catch (IOException e) {\n System.out.println(\"Erreur lors de l'envoi du message au client\");\n }\n }",
"public void sendMessage(String message) {\n\t\tSystem.out.println(\"DEBUG : response sent by server = \" + message);\n\t\tprinter.println(message);\n\t}",
"public void sendMessage(String msg) {\n try {\n out.write(msg);\n out.newLine();\n out.flush();\n \n } catch (IOException e) {\n \tshutdown();\n e.printStackTrace();\n }\n }",
"void sendMessage(ChatMessage msg) {\n\t\ttry {\n\t\t\tsOutput.writeObject(msg);\n\t\t}\n\t\tcatch(IOException e) {\n\t\t\tdisplay(\"Não foi possível enviar a mesagem !!!\");\n\t\t}\n\t}",
"public void sendMessage(String msg){\n \n try{\n out.writeObject(msg.toString()); \n \n }catch(Exception e){\n e.printStackTrace();\n }\n }",
"public static void Send(Message message)\n\t{\n\t\ttry\n\t\t{\n\t\t\t_sendBuf = toByteArray(message);\n\n\t\t\t//dc message\n\t\t\tif (message.getRecipient().equalsIgnoreCase(\"\") &&\n\t\t\t\tmessage.getMessage().equalsIgnoreCase(\"%BYE%\"))\n\t\t\t{\n\t\t\t\tSystem.out.println(\"sent BYE\");\n\t\t\t\t_socket.getOutputStream().write(Message.BYE);\n\t\t\t}\n\t\t\t//lobby message\n\t\t\telse if (message.getRecipient().equalsIgnoreCase(\"\"))\n\t\t\t{\n\t\t\t\tSystem.out.println(\"sent LOBBY\");\n\t\t\t\t_socket.getOutputStream().write(Message.LOBBY);\n\t\t\t}\n\t\t\t//search request\n\t\t\telse if (message.getRecipient().equalsIgnoreCase(\"all\"))\n\t\t\t{\n\t\t\t\tSystem.out.println(\"sent SEARCH\");\n\t\t\t\t_socket.getOutputStream().write(Message.SEARCH);\n\t\t\t}\n\t\t\t//answer request\n\t\t\telse if (message.getRecipient().equalsIgnoreCase(\"server\") &&\n\t\t\t\t\t message.getOrigin().equalsIgnoreCase(\"none\"))\n\t\t\t{\n\t\t\t\tSystem.out.println(\"sent CHOICE\");\n\t\t\t\t_socket.getOutputStream().write(Message.CHOICE);\n\t\t\t}\n\t\t\t//whisper message\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"sent WHISPER\");\n\t\t\t\t_socket.getOutputStream().write(Message.WHISPER);\n\t\t\t}\n\t\t\t_socket.getOutputStream().write(_sendBuf);\n\t\t\t_socket.getOutputStream().flush();\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"void sendMessage(String msg) {\n\t\ttry {\n\t\t\tout.writeObject(msg);\n\t\t\tout.flush();\n\t\t\tSystem.out.println(\"Sending to server => \" + msg);\n\t\t} catch (IOException ioException) {\n\t\t\tioException.printStackTrace();\n\t\t}\n\t}",
"public void send(Address from, String message);",
"void sendMessage(String msg) {\n\t\ttry {\n\t\t\tout.writeObject(msg);\n\t\t\tout.flush();\n\t\t\tSystem.out.println(\"Sending to client => \" + msg);\n\t\t} catch (IOException ioException) {\n\t\t\tioException.printStackTrace();\n\t\t}\n\t}",
"public void sendMessage(String str) {\n\t\ttry {\n\t\t\tsession.getRemote().sendString(str);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void send(String msg) throws IOException {\n\t\tbyte[] data = msg.getBytes() ;\n DatagramPacket packet = new DatagramPacket(data, data.length, host, port);\n s.send(packet);\n\t}",
"public void sendSmsMessage(String message)\n throws Exception {\n }",
"private void sendMessage() {\n\t\tString text = myMessagePane.getText();\n\t\tMessage msg = new Message(text, myData.userName, myData.color);\n\n\t\tcommunicationsHandler.send(msg);\n\n\t\t// De-escape xml-specific characters\n\t\tXmlParser xmlParser = new XmlParser(myData);\n\t\tString outText = xmlParser.deEscapeXMLChars(msg.text);\n\t\tmsg.text = outText;\n\n\t\tmyMessagePane.setText(\"\");\n\t\tupdateMessageArea(msg);\n\n\t}",
"public void sendMessage(ChatMessage msg) {\n\t\ttry {\n\t\t\tsOutput.writeObject(msg);\n\t\t}\n\t\tcatch(IOException e) {\n\t\t\tdisplay(\"Exception writing to server: \" + e);\n\t\t}\n\t}",
"private void sendMessage(String message){\n try{\n output.writeObject(nickname+\" : \" + message);\n output.flush();\n showMessage(\"\\n\"+nickname+\" : \" + message);\n }catch(IOException ioException){\n chatWindow.append(\"\\n Oops! Something went wrong!\");\n }\n }",
"public void sendMessage(String text)\n\t{\n\t\ttry\n\t\t{\n\t\t\tout.println(text);\n\t\t\tout.flush();\n\t\t}\n\t\tcatch(NullPointerException e)\n\t\t{\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\t\n\t}",
"@Override\r\n\tpublic boolean send(String msg) {\n \ttry {\r\n \t\tsendMessage(msg);\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"public void sendTextMessage(String message) {\n\t\ttry {\n\t\t\tJsonPacket requestBodyPacket = new JsonPacket();\n\t\t\trequestBodyPacket.put(\"content\", message);\n\t\t\trequestBodyPacket.put(\"tts\", false);\n\n\t\t\tURL url = new URL(this.channelURL);\n\t\t\tHttpsURLConnection connection = (HttpsURLConnection) url.openConnection();\n\n\t\t\tconnection.setDoOutput(true);\n\t\t\tconnection.setDoInput(true);\n\t\t\tconnection.setRequestMethod(\"POST\");\n\t\t\tconnection.setRequestProperty(\"Authorization\", String.format(\"Bot %s\", this.api.getToken()));\n\t\t\tconnection.setRequestProperty(\"User-Agent\", \"Kiyobot\");\n\t\t\tconnection.setRequestProperty(\"Content-Type\", \"application/json\");\n\n\t\t\tOutputStream outstream = connection.getOutputStream();\n\t\t\toutstream.write(requestBodyPacket.toString().getBytes());\n\t\t\toutstream.flush();\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(connection.getInputStream()));\n\t\t\tLOGGER.trace(String.format(\"Sent message %s\", reader.readLine()));\n\t\t\treader.close();\n\t\t\toutstream.close();\n\t\t} catch (MalformedURLException mue) {\n\t\t\tLOGGER.error(\"Malformed URL, {},\\n{}\", mue.getMessage(), mue.getStackTrace());\n\t\t} catch (IOException ioe) {\n\t\t\tLOGGER.error(\"An error occurred when trying to connect to the url, {},\\n{}\", ioe.getMessage(), ioe.getStackTrace());\n\t\t}\n\t}",
"public abstract void sendMessage(String message);",
"public static void sendMessage(String message) throws IOException {\n controllerChannel.basicPublish(\n \"\",\n CONTROLLER_QUEUE_NAME,\n null,\n message.getBytes());\n }",
"private void send (String messageToSend) throws IOException {\n byte[] ba = messageToSend.getBytes();\n \n packetToSend = new DatagramPacket (ba, ba.length, serverIPAddress, PORT);\n \n //Envia el paquete por el socket.\n clientSocket.send(packetToSend);\n }",
"public void send(Message message) {\r\n channel.writeAndFlush(message);\r\n }",
"public void send(String msg){\r\n\t\ttry{\r\n\t\t\tbyte[] buf = msg.getBytes();\r\n \tInetAddress address = InetAddress.getByName(server);\r\n \tDatagramPacket packet = new DatagramPacket(buf, buf.length, address, PORT);\r\n \tsocket.send(packet);\r\n }catch(Exception e){}\r\n\t\t\r\n\t}",
"public void sendMessage(String message) {\n\n\t\tif (mOut != null && !mOut.checkError()) {\n\n\t\t\t// If encryption connection has been made\n\n\t\t\tif (diffieHellmanModule.isConnected()) {\n\t\t\t\tmessage = diffieHellmanModule.encryptString(message);\n\t\t\t}\n\n\t\t\tmOut.println(message);\n\t\t\tmOut.flush();\n\t\t}\n\t}",
"public void send(String msg) {\n msgs.push(msg);\n lastMessageSentAt = game.ticks;\n }",
"@Override\n public void sendMessage(Message m) {\n commSender.sendMessage(m);\n }",
"private void sendMessage() throws Exception {\n\t\tGetTimestamp(\"Sending Message: \");\n\t\tString inputMessage;\n\t\tinputMessage = input.nextLine();\n\t\tString tosend = encrypt(clientkey, inputMessage);\n\t\t\n\t\tJSONObject RESPONSE = new JSONObject();\n\t\tRESPONSE.put(\"payload\",tosend);\n\t\tSystem.out.println(RESPONSE);\n\t\t\n\t\tpw.println(tosend);\n\t\tpw.flush();\n\t\tSystem.out.println(\"Message sent to the client : \" + inputMessage);\n\t\tif (inputMessage.equalsIgnoreCase(\"bye\")) {\n\t\t\tSystem.out.println(\"sending close command\");\n\t\t\tcloseConnection();\n\t\t} else {\n\t\t\tgetMessage();\n\t\t}\n\t}",
"void sendMessage(Message m) throws IOException {\n String msg = m.toString();\n\n buffer = msg.getBytes(\"Windows-1256\");\n toServer = new DatagramPacket(buffer, buffer.length,\n InetAddress.getByName(sendGroup), port);\n if (m.getType() == Message.DATA) {\n manager.mManager.addMessage(m);\n }\n\n System.out.println(getName() + \"-->\" + m);\n serverSocket.send(toServer);\n }",
"void sendMessage() {\n\n\t}",
"public void sendMsg(String address, String title, String content);",
"public void send(String msg) {\n CompletableFuture.runAsync(() -> serverCon.send(msg));\n }",
"public void send(String msg)\n\t{\n\t\tsendPlain(codeFilter(msg));\n\t}",
"public void sendMsg(){\r\n\t\tsuper.getPPMsg(send);\r\n\t}",
"public void sendMsg(Message msg){\n messagesParser.sendMsg(msg);\n }",
"private void sendMessage(String message) {\n\t\t// Check that we're actually connected before trying anything\n\t\tif (mChatService.getState() != BluetoothCommService.STATE_CONNECTED) {\n\t\t\tToast.makeText(this, R.string.not_connected, Toast.LENGTH_SHORT)\n\t\t\t\t\t.show();\n\t\t\treturn;\n\t\t}\n\n\t\t// Check that there's actually something to send\n\t\tif (message.length() > 0) {\n\t\t\t// Get the message bytes and tell the BluetoothCommService to write\n\t\t\tbyte[] send = message.getBytes();\n\t\t\tmChatService.write(send);\n\n\t\t\t// Reset out string buffer to zero and clear the edit text field\n\t\t\tmOutStringBuffer.setLength(0);\n\t\t\t// mOutEditText.setText(mOutStringBuffer);\n\t\t}\n\t}",
"public static void sendMsg(String msg)\n throws IOException\n {\n if (streamOut == null)\n clientFrame.printMsg(\"Error: Not connected.\");\n else\n streamOut.write((msg + \"\\n\").getBytes());\n }",
"public void sendMessage(String message) {\n\n setChanged();\n notifyObservers(message);\n }",
"public void sendRawMessage ( String message ) {\n\t\texecute ( handle -> handle.sendRawMessage ( message ) );\n\t}",
"private void sendMessage(ChatMessage msg) {\n try {\n sOutput.writeObject(msg);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"private void bluetoothSendMsg(String s) {\n byte [] msgOnBuf;\n msgOnBuf = s.getBytes();\n try {\n outStream.write(msgOnBuf);\n } catch (IOException e) {\n Log.d(TAG,\"send message fail!\");\n }\n }",
"public void sendMsg(String msg) {\n\t\tSystem.out.println(\"sendMSG\");\n\n\t\tMessage message = new Message(msg, convID, socketOut.getInetAddress(), myNickName);\n\t\tSystem.out.println(\"Created message \" + message.toString());\n\t\ttry {\n\t\t\toutputStream.writeObject(message);\n\t\t\t//display(message);\n\n\t\t} catch (IOException e) { display(\"IOException while sending message \" + e.getMessage()); }\n\t}",
"protected void sendMessage(String msg) {\n message = msg; \n newMessage = true;\n }",
"public void sendMessageToServer(String message) {\n if (outputStream != null) {\n outputStream.println(message);\n } else {\n System.out.println(\"No OutputStream!\");\n }\n }",
"@Override\n\tpublic void sendMessage() {\n\t\t\n\t}",
"public static void sendData(String message) {\n try // send object to server\n {\n output.writeObject(message);\n output.flush(); // flush data to output\n displayMessage(\"\\nSend to Server:\");\n displayMessage(\"\\n\" + message);\n } // end try\n catch (IOException ioException) {\n displayArea.append(\"\\nError writing object\");\n } // end catch\n }",
"public void writeString(String message);",
"private void sendMessage(String message) {\n\t\tMainstarter.meClient.sendMessage(new MessageSend(message, Mainstarter.meClient));\n\t\ttextInputMessage.clear();\n\t}",
"public void sendToServer(String msg) throws IOException {\n if (clientSocket == null || output == null) {\n throw new SocketException(\"socket does not exist\");\n }\n\n // messageQueue.offer(msg);\n // sendFromMessageQueue();\n \n // 發送中文\n byte[] bytes = msg.getBytes(\"big5\");\n int[] ints = new int[bytes.length];\n for (int i = 0, l = bytes.length; i < l; i++) {\n ints[i] = bytes[i] & 0xff;\n output.write(ints[i]);\n }\n output.writeBytes(\"\\n\");\n }",
"public void sendChat(String message) {\r\n connection.chat(message);\r\n }",
"public void sendMessage(GameMessage message) {\n\t\ttry {\n\t\t\toos.writeObject(message);\n\t\t} catch(Exception e) {\n\t\t\ttable.printMsg(\"Unable to send message to the server. Connection will be terminated.\");\n\t\t\ttable.printMsg(\"Try to Connect again.\");\n\t\t\ttry {\n\t\t\t\tsock.close();\n\t\t\t} catch(Exception ee) {\n\t\t\t\t// doing nothing\n\t\t\t}\n\t\t\tsock = null;\n\t\t\ttable.repaint();\n\t\t\tSystem.out.println(\"Unable to send message to the server.\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void SendMessage(String strMessage) {\n\t\tSystem.out.println( \"EmailService sending message... : \" + strMessage );\n\t}",
"void sendText(String content);",
"public void sendMessage()\r\n {\r\n MessageScreen messageScreen = new MessageScreen(_lastMessageSent);\r\n pushScreen(messageScreen);\r\n }",
"@Override\n public void send() {\n System.out.println(\"send message by SMS\");\n }",
"@Override\n public void sendMessage(Message<JsonPayload> message) throws IOException {\n System.out.println(\"Trying to send a message...\");\n outputMessageStream.write(message.getContent().getJson());\n outputMessageStream.newLine();\n outputMessageStream.flush();\n socket.shutdownOutput();\n }",
"public boolean Send(String message) {\r\n\t\t\r\n\t\t//Add a new line so it gets entered into the robot console \r\n\t\tmessage = message.concat(\"\\n\");\r\n\t\t\r\n\t\t//Construct ip address of Robot by team number \r\n\t\taddress = this.numberToAddress(NetConsole.window.getTeam());\r\n\t\t\r\n\t\t//deconstruct String into byte array \r\n\t\tbyte[] sendData = message.getBytes();\r\n\t\t\r\n\t\t//deconstruct packet for cleansing\r\n\t\tDatagramPacket packet = null;\r\n\t\t\r\n\t\t//reconstruct packet with default port \r\n\t\tpacket = new DatagramPacket(sendData, sendData.length, address, 6668);\r\n\t\ttry {\r\n\t\t\t//Send all the Packets!\r\n\t\t\tserverSocket.send(packet);\r\n\t\t} catch (IOException e) {\r\n\t\t\tNetConsole.window.error(\"Error Sending Packets\");\r\n\t\t\te.printStackTrace();\r\n\t\t\t\r\n\t\t\t//Just in case we want to know if the proccess was successful\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t\r\n\t}"
] | [
"0.8518251",
"0.8145413",
"0.8088409",
"0.8036657",
"0.7984215",
"0.788459",
"0.78486073",
"0.7840055",
"0.78217435",
"0.78212607",
"0.7785244",
"0.773347",
"0.7723923",
"0.77192444",
"0.7619205",
"0.7618235",
"0.7612376",
"0.7586608",
"0.7569132",
"0.75361973",
"0.75332195",
"0.75186104",
"0.7509703",
"0.74987906",
"0.7495026",
"0.74945426",
"0.74848694",
"0.74530613",
"0.74508446",
"0.74485576",
"0.7430772",
"0.7428245",
"0.742624",
"0.74237597",
"0.7386695",
"0.73774904",
"0.7368304",
"0.736633",
"0.7359131",
"0.73557496",
"0.73474234",
"0.7346673",
"0.73445225",
"0.73165375",
"0.731401",
"0.73097265",
"0.72906446",
"0.7278328",
"0.72512496",
"0.7239492",
"0.7237977",
"0.7229307",
"0.72198695",
"0.7207221",
"0.7206579",
"0.71989024",
"0.7189061",
"0.71735424",
"0.71613455",
"0.71603906",
"0.71522737",
"0.7145899",
"0.7137894",
"0.71371764",
"0.71313757",
"0.7101444",
"0.70996994",
"0.70856166",
"0.7079166",
"0.7078144",
"0.7076016",
"0.70740455",
"0.7072097",
"0.70700735",
"0.706616",
"0.70638573",
"0.70616305",
"0.7054352",
"0.7048477",
"0.70456773",
"0.70437694",
"0.704351",
"0.7028476",
"0.7026756",
"0.70234555",
"0.70133126",
"0.69974315",
"0.69952136",
"0.69884986",
"0.697629",
"0.6970071",
"0.6965868",
"0.6963059",
"0.6954116",
"0.69492704",
"0.6940162",
"0.6933891",
"0.6922807",
"0.6921799",
"0.6913185"
] | 0.705493 | 77 |
Updates the status on the action bar. usin resID | private void setStatus(int resId) {
Activity activity = this;
if (null == activity) {
return;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setStatus(int resId) {\n actionBar.setSubtitle(resId);\n }",
"private void setStatus(int resId) {\n\n getSupportActionBar().setSubtitle(resId);\n //textViewStatus.setText(resId);\n\n }",
"private static void setStatus(int resId, Activity activity) {\n\n\n if (null == activity) {\n return;\n }\n final ActionBar actionBar = activity.getActionBar();\n if (null == actionBar) {\n return;\n }\n actionBar.setSubtitle(resId);\n }",
"private void setStatus(int resId) {\n FragmentActivity activity = getActivity();\n if (null == activity) {\n return;\n }\n final ActionBar actionBar = activity.getActionBar();\n if (null == actionBar) {\n return;\n }\n actionBar.setSubtitle(resId);\n }",
"private void setStatus(int resId) {\n FragmentActivity activity = getActivity();\n if (null == activity) {\n return;\n }\n final ActionBar actionBar = activity.getActionBar();\n if (null == actionBar) {\n return;\n }\n actionBar.setSubtitle(resId);\n }",
"public void updateStatus(final String newStatus)\n\t{\n\t\tif(statusBar!=null)\n\t\t{\n\t\t\tstatusBar.setText(\"Program Status: \" + newStatus);\n\t\t}\n\t\t//statusBar.repaint();\n\t}",
"private void setStatusBar(String statusMsg)\r\n {\r\n\r\n debug(\"setStatusBar() - get a handle to the main application\");\r\n StockMarketApp mainApp = getMainApp();\r\n\r\n if (mainApp != null)\r\n {\r\n debug(\"setStatusBar() - Sending message to change applications\");\r\n mainApp.setStatus(statusMsg);\r\n }\r\n debug(\"setStatusBar() - Processing completed\");\r\n }",
"void onStatusUpdate(int status);",
"void setStatus(int status);",
"private void changeStatusBar(String status)\r\n {\r\n jStatusBar.setText(status);\r\n }",
"public static void updateStatusBar(){\n\t\tstatus.setText(\"Sensors: \"+Sensor.idToSensor.size()+(TurnController.getInstance().getCurrentTurn()!=null?\", Turn: \"+TurnController.getInstance().getCurrentTurn().turn:\"\"));\n\t}",
"private void updateGUIStatus() {\r\n\r\n }",
"public void setStatus(int status);",
"public void setStatus(int status);",
"@Override\n public void setStatus(int arg0) {\n\n }",
"protected void addStatus(int resId) {\n addStatus(mContext.getText(resId).toString());\n }",
"public void changeStatusBar(int colorResource) {\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n Window window = getWindow();\n window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);\n window.clearFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);\n window.setStatusBarColor(ContextCompat.getColor(this, colorResource));\n }\n }",
"private void setStatus(CharSequence subTitle) {\n getSupportActionBar().setSubtitle(subTitle);\n //textViewStatus.setText(subTitle);\n }",
"@FXML\r\n\tprivate void updateStatus(ActionEvent event) {\r\n\t\tupdateAsset(AssetOperation.STATUS);\r\n\t}",
"@Override\n public void setStatus(int arg0, String arg1) {\n\n }",
"public static void updateScanningStatusPref(Context context, int status) {\n SharedPreferences.Editor editor = Prefs.getPreferences(context).edit();\n editor.putInt(Consts.START_BUTTON_STATUS_KEY, status).commit();\n }",
"void setStatus(String status);",
"public void updateStatus(final String status) {\n // Be a good citizen. Make sure UI changes fire on the UI thread.\n this.runOnUiThread(new Runnable() {\n public void run() {\n sipLabel.setText(status);\n }\n });\n }",
"void setStatus(STATUS status);",
"public void setStatus(int newStatus) {\n status = newStatus;\n }",
"public void setStatus(int status){\r\n\t\tthis.status=status;\r\n\t}",
"public void setStatus(String status) {\n mBundle.putString(KEY_STATUS, status);\n }",
"protected void setStatus(String status) {\n Message msg = mHandler.obtainMessage(DIALOG_UPDATE, status);\n mHandler.sendMessage(msg);\n }",
"void setStatus(java.lang.String status);",
"@Override\n\tpublic void setStatus(int status) {\n\t\t_scienceApp.setStatus(status);\n\t}",
"private void initStatusBar() {\n ModelerSession.getStatusBarService().addStatusBarItem(\n getIdentifier(), selectedToolStatusBarItem, JideBoxLayout.FIX\n );\n }",
"private static void updateStatus(final int increment) {\n if (splash != null) {\n splash.advance();\n }\n }",
"public void setStatus(int value) {\n this.status = value;\n }",
"public void setStatus(int value) {\n this.status = value;\n }",
"public void setStatus(int status) {\n STATUS = status;\n }",
"private void updateUI(Intent intent) {\n\t\tString gConnectStatus = intent.getStringExtra(STATUS);\n\t\tLog.d(TAG, gConnectStatus);\n\t\tmTextViewG = (TextView) findViewById(R.id.textGoogleStatus);\n\t\tmTextViewG.setText(gConnectStatus);\n\n\t}",
"public void updateAbilityHotbar() {\n controller.getUIController().refreshAbilityHotbar();\n }",
"@Override\n\t\tpublic void setStatus(int status) {\n\t\t\t\n\t\t}",
"private void updateBar() {\n\t\tString resources = String.format(\"Money: $%d\\nAgents: %d\\nMedia reach: %d\\nPopulation unrest: %d\"\n\t\t\t\t, player.getMoney(), player.getAgentNumber(), player.getMediaReach(), player.getUnrestSpread());\n\t\t((TextView) findViewById(R.id.text_resource_display_left)).setText(resources);\n\t\t\n\t\tresources = String.format(\"\\nAgent skill: %.0f%%\\nMedia influence: %.0f%%\\nPopulation care: %.0f%%\"\n\t\t\t\t, player.getAgentSkill(), player.getMediaPerception(), player.getUnrestStrength());\n\t\t((TextView) findViewById(R.id.text_resource_display_right)).setText(resources);\n\t}",
"@Override\n protected void onProgressUpdate(String... values) {\n labelStatus.setText(values[0]);\n }",
"@Override\n\tpublic void setStatus(int status);",
"public void setStatus(long status) {\r\n this.status = status;\r\n }",
"public void setStatus(String status) {\n statusLabel.setText(status);\n }",
"@Override\n\tpublic long updateDisplay() {\n\t\treturn AppStatus.NO_REFRESH;\n\t}",
"@Override\n\tpublic void onStatusUpdate(String arg0, int arg1, String arg2) {\n\t}",
"private void updateUI() {\n\t\t\tfinal TextView MessageVitesse = (TextView) findViewById(R.id.TextView01);\r\n\t\t\tfinal ProgressBar Progress = (ProgressBar) findViewById (R.id.ProgressBar01);\r\n\t\t\tfinal TextView MessageStatus = (TextView)findViewById (R.id.TextView02);\r\n\t\t\t\t\t\r\n\t\t\t//on affecte des valeurs aux composant\r\n\t\t\tMessageVitesse.setText(\"Vitesse Actuelle : \"+ Vitesse + \" Ko/s\");\r\n\t\t\tProgress.setProgress(Pourcent);\r\n\t\t\tMessageStatus.setText (Status);\r\n\t\t\tif (Status.equals(\"Télèchargement terminé!!!\")&&NotifDejaLancée==false){\r\n\t\t\t\tlanceNotification();\r\n\t\t\t\tNotifDejaLancée=true;\r\n\t\t\t}\r\n\t\t\t}",
"private void updateStatus() {\n \tif (!status.getText().equals(\"\")) {\n\t\t\tif (currentProfile != null) {\n\t\t\t\tcurrentProfile.setStatus(status.getText());\n\t\t\t\tcanvas.displayProfile(currentProfile);\n\t\t\t\tcanvas.showMessage(\"Status updated to \" + status.getText());\n\t\t\t} else {\n\t\t\t\tcanvas.showMessage(\"Please select a profile to change status\");\n\t\t\t}\n\t\t}\n\t}",
"void onStatusChanged(Status newStatus);",
"private void updateUI(String msg){\n if(msg != null) {\n textViewStatus.setText(msg);\n }\n }",
"boolean updateUI() {\n BackgroundStatus bgStat= _monItem.getStatus();\n WebAssert.argTst(ComparisonUtil.equals(bgStat.getID(), _oldBgStat.getID()),\n \"You cannot update the report to one with \" +\n \"a different package id.\");\n boolean retval= update();\n _oldBgStat = _monItem.getStatus();\n if (_monItem.isDone()) {\n if (_monItem.getState()==BackgroundState.SUCCESS) {\n if (!_success) {\n String name= Application.getInstance().getAppName();\n Notifications.notify( name + \" Task Completed\",\n _monItem.getReportDesc() +\", \" +_monItem.getTitle() +\" has completed.\");\n }\n _success= true;\n if (!_calledAutoActivation &&\n _monItem.getActivateOnCompletion() &&\n !_monItem.getStatus().isMultiPart()) {\n _calledAutoActivation= true;\n ActivationFactory.getInstance().activate(_monItem,0,!_monItem.getImmediately());\n }\n }\n }\n\n return retval;\n\n }",
"private void updateActionBar() {\n\t\tif (!(getContext() instanceof AppCompatActivity)) {\n\t\t\treturn;\n\t\t}\n\n\t\ttoolbar.setSubtitle(R.string.cvv_enter_security_code);\n\t}",
"public void setStatus(int v) \n {\n \n if (this.status != v)\n {\n this.status = v;\n setModified(true);\n }\n \n \n }",
"protected void setStatus(int status, String statusStr, Object action, HTTPResponse response) {\n int code = status;\n if (!statusStr.isEmpty()) {\n code = Integer.parseInt(expand(statusStr, action, false));\n }\n\n response.setStatus(code);\n }",
"public void setStatus( short newStatus )\r\n {\r\n setStatus( newStatus, -1, null );\r\n }",
"void successUiUpdater();",
"private void setStatus(CharSequence subTitle) {\n FragmentActivity activity = getActivity();\n if (null == activity) {\n return;\n }\n final ActionBar actionBar = activity.getActionBar();\n if (null == actionBar) {\n return;\n }\n actionBar.setSubtitle(subTitle);\n }",
"private void setStatus(CharSequence subTitle) {\n FragmentActivity activity = getActivity();\n if (null == activity) {\n return;\n }\n final ActionBar actionBar = activity.getActionBar();\n if (null == actionBar) {\n return;\n }\n actionBar.setSubtitle(subTitle);\n }",
"public void setStatus(Status newStatus){\n status = newStatus;\n }",
"public void setStatus(String status) { this.status = status; }",
"public void updateActionState()\n\t{\n\t\tboolean enabled = ConcernReCS.getDefault().isDirty(); //Indicates if the view content has changed\n\t\t\n//\t\tsaveaction.setEnabled(enabled);\n\n\t\tgetViewSite().getActionBars().updateActionBars();\n\t}",
"private void reDrowStatusCard() {\n \t\tint currentInstance= Storage_access.getCurrentProjectInstanceBDDID() ;\n \t\t\n \t\tdispatcher.execute(new GetActivityStateAction(currentInstance), new AsyncCallback<GetActivityStateActionResult>() {\n \n \t\n \n \t\t\t@Override public void onFailure(Throwable arg0) {\n \t\t\t\tSystem.out.println(\"!!!!!!!!!!!!!!!!!!!!!**** failed to get activities status\");\n \n \t\t\t}\n \n \t\t\t@Override public void onSuccess(GetActivityStateActionResult result) {\n \t\t\t\tfor (int i=0; i< Storage_access.getNumberOfCard(); i++) {\n \t\t\t\t\tString card = Storage_access.getCard(i);\n \t\t\t\t\tActivityState_dto a = result.getActivitiesState().get(\"\"+Storage_access.getBddIdCard(card));\n \t\t\t\t\tif (a == null) \n \t\t\t\t\t\tStorage_access.revoveFromSlot(i);\t\n \t\t\t\t\telse \n \t\t\t\t\t\tStorage_access.setSlotCard(i, a.getDay(), a.getPeriod());\t\n \t\t\t\t\t\n \t\t\t\t}\n \t\t\t\teventBus.fireEvent( \n \t\t\t\t\t\tnew BoardViewChangedEvent(getView().getCombo_viewChoice1().getSelectedIndex(),\n \t\t\t\t\t\t\t\t\t\t\t\t getView().getCombo_viewChoice2().getSelectedIndex())\n \t\t\t\t\t\t);\n \t\t\t\t//Storage_access.printStorage();\n \t\t\t}\n \n \t\t\t});\n \n \t\t\n \t}",
"public void updateScreen(){}",
"public void setStatus(String stat)\n {\n status = stat;\n }",
"@Override\r\n\tpublic void onStatusChanged(String arg0, int arg1, Bundle arg2) {\n\t\t\r\n\t}",
"void notifyStatus(String strStatus)\n \t{\n \tSharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);\n \tboolean bNotify = prefs.getBoolean(\"notify_status\", true);\n \t\n \tif (bNotify)\n \t{\n \t \tNotification notification = new Notification(\n \t \t\t\tR.drawable.icon, strStatus, System.currentTimeMillis());\n \t \tPendingIntent contentIntent = PendingIntent.getActivity(\n \t \t\t\tthis, 0, new Intent(this, MainActivity.class), 0);\n \t \tnotification.setLatestEventInfo(\n \t \t\t\tthis, getText(R.string.app_name), strStatus, contentIntent);\n \t \tmNM.notify(R.string.app_name, notification);\n \t}\n \n \t}",
"public void setStatus(int status) {\n this.status = status;\n }",
"public void setStatus(int status) {\n this.status = status;\n }",
"@Override\r\n\tpublic void onStatusChanged(String arg0, int arg1, Bundle arg2) {\n\r\n\t}",
"public void setStatus(Integer status) {\r\n this.status = status;\r\n }",
"public void setStatus(Integer status) {\r\n this.status = status;\r\n }",
"public void updateUI(){}",
"private void updateResorce() {\n }",
"public void setStatus(String text) {\n labelStatus.setText(text);\n }",
"private void updateTaskActivityLabel()\r\n {\r\n setLabelValue(\"Tile Downloads \" + myActiveQueryCounter.intValue());\r\n setProgress(myDoneQueryCounter.doubleValue() / myTotalSinceLastAllDoneCounter.doubleValue());\r\n }",
"@Override\r\n public void onStatusUpdate(String arg0, int arg1, String arg2) {\n\r\n }",
"public void setStatus(int status) {\n\t\tthis.status = (byte) status;\n\t\trefreshStatus();\n\t}",
"void setStatus(TaskStatus status);",
"private void internalSetStatus(String status) {\n jStatusLine.setText(\"Status: \" + status);\n }",
"@Override\n\tpublic void onStatusChanged(String arg0, int arg1, Bundle arg2) {\n\t\t\n\t}",
"@Override\n\tpublic void onStatusChanged(String arg0, int arg1, Bundle arg2) {\n\t\t\n\t}",
"public void setStatusBar(String status) {\n this.statusBar.setText(status);\n }",
"@Override\n public void onStatusChanged(String s, int i, Bundle bundle) {\n }",
"@Override\n public void onStatusChanged(String s, int i, Bundle bundle) {\n }",
"public void setStatusId(long statusId);",
"@Override\n @SuppressWarnings(\"all\")\n public void setStatus(int arg0, String arg1) {\n\n }",
"public synchronized final void setStatus(int sts) {\n\t\tm_status = sts;\n\t\tnotifyAll();\n\t}",
"@Override\n\t\t\tpublic void onStatusChanged(String arg0, int arg1, Bundle arg2) {\n\t\t\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == R.id.action_refresh_history) {\n ad.show();\n new Thread(){\n public void run() {\n try {\n MainActivity.this.initialize(helper);\n\n JSoupUtil.refreshHistory(MainActivity.this.helper);\n Message msg = new Message();\n msg.what = COMPLETED;\n handler.sendMessage(msg);\n } catch (IOException e) {\n e.printStackTrace();\n }finally {\n\n }\n }\n }.start();\n\n\n return true;\n } else if (id == R.id.action_refresh) {\n updateRecommands();\n Toast.makeText(this, \"Update successfully.\", Toast.LENGTH_SHORT).show();\n return true;\n } else if (id == R.id.action_history) {\n updateHistory();\n Toast.makeText(this, \"Update successfully.\", Toast.LENGTH_SHORT).show();\n }\n return super.onOptionsItemSelected(item);\n }",
"public void setStatusName(String statusName);",
"@Override\n public void onStatusChanged(String arg0, int arg1, Bundle arg2) {\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n\n update_status = \"false\";\n Intent intent = new Intent();\n intent.putExtra(\"status\",update_status);\n setResult(6, intent);\n finish();\n //finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"private void updateAction(String taskId) {\n setupPrioritySpinner();\n try {\n QueryBuilder<Task, String> queryBuilder = taskDao.queryBuilder();\n taskForUpdate = taskDao.queryForFirst(queryBuilder.where().eq(Task.TASK_ID, taskId).prepare());\n mTitle.setText(taskForUpdate.getTitle());\n mDescription.setText(taskForUpdate.getDescription());\n mDate.setDate(taskForUpdate.getDate().getTime());\n mPriority.setSelection(taskForUpdate.getPriority());\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }",
"public void setStatus( int pStatus )\r\n {\r\n mStatus = pStatus;\r\n }",
"@Override\n\tpublic void onStatusChanged(String arg0, int arg1, Bundle arg2) {\n\n\t}",
"public void setStatus(boolean newstatus){activestatus = newstatus;}",
"public void updateScreen()\r\n\t{\r\n\t\tif (this.areRealmsNotificationsEnabled())\r\n\t\t{\r\n\t\t\tthis.realmsNotification.updateScreen();\r\n\t\t}\r\n\t}",
"@Override\r\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\r\n\t\t// if (resultCode == RESULT_OK) {\r\n\t\t// if (requestCode == editRequest) { //修改成功后的状态一定是审核状态\r\n\t\t// m_nstatus = HeadhunterPublic.TASK_STATUS_AUDIT;\r\n\t\t// rewardInfo.setTask_status(String.valueOf(m_nstatus));\r\n\t\t// refresh();\r\n\t\t// setResult(RESULT_OK);\r\n\t\t// }\r\n\t\t// }\r\n\t}",
"public void setStatus(int status)\r\n\t{\r\n\t\tthis.m_status = status;\r\n\t}",
"@Override\r\n\t\t\t\t\t\t\t\tpublic void setPositiveButton() {\n\t\t\t\t\t\t\t\t\tif (SystemConfig.loginResponse.getDutyFlag().equals(\"on\")) {\r\n\t\t\t\t\t\t\t\t\t\tsendForService(\"1\", str);\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\thandler.sendEmptyMessage(ConstantValue.PROGRESS_CLOSE);\r\n\t\t\t\t\t\t\t\t\t\tMessage message = Message.obtain();\r\n\t\t\t\t\t\t\t\t\t\tmessage.obj = \"下班状态不可以改派任务!\";\r\n\t\t\t\t\t\t\t\t\t\tmessage.what = ConstantValue.ERROE;\r\n\t\t\t\t\t\t\t\t\t\thandler.sendMessage(message);\r\n\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t// for update by haoyun\r\n\t\t\t\t\t\t\t\t\t// 20130401 end\r\n\t\t\t\t\t\t\t\t}",
"public void setStatus(Integer status) {\n this.status = status;\n }"
] | [
"0.7835961",
"0.76892126",
"0.74705905",
"0.7294191",
"0.7294191",
"0.6630866",
"0.6593089",
"0.6544391",
"0.6501079",
"0.6495184",
"0.64617705",
"0.6317404",
"0.6283619",
"0.6283619",
"0.623196",
"0.6217886",
"0.6215604",
"0.6212413",
"0.6103915",
"0.60982037",
"0.6096659",
"0.6077323",
"0.60585546",
"0.6031578",
"0.60312784",
"0.6019774",
"0.60133",
"0.6006966",
"0.60066193",
"0.59948003",
"0.5993396",
"0.5958276",
"0.594272",
"0.594272",
"0.5931436",
"0.59257495",
"0.5921788",
"0.59196204",
"0.59163696",
"0.5912818",
"0.59026915",
"0.5863917",
"0.58635914",
"0.5849627",
"0.5838659",
"0.58327246",
"0.58306396",
"0.5828787",
"0.5827098",
"0.58256197",
"0.5822781",
"0.58080083",
"0.5806729",
"0.5800164",
"0.5796036",
"0.57935286",
"0.57935286",
"0.5780424",
"0.5775327",
"0.5774418",
"0.5770862",
"0.57689774",
"0.5768119",
"0.57669485",
"0.5757242",
"0.57564497",
"0.57564497",
"0.5754974",
"0.57485205",
"0.57485205",
"0.5739696",
"0.57389003",
"0.5735665",
"0.5732886",
"0.57239836",
"0.5722885",
"0.5722599",
"0.5720913",
"0.57202345",
"0.57202345",
"0.5720042",
"0.57186365",
"0.57186365",
"0.57179505",
"0.57091874",
"0.57075655",
"0.569533",
"0.56896514",
"0.56870955",
"0.56831795",
"0.5670531",
"0.5668541",
"0.56682456",
"0.56681687",
"0.5665837",
"0.56631666",
"0.5656385",
"0.5651488",
"0.5651229",
"0.56479806"
] | 0.6526729 | 8 |
Establish connection with other divice | private void connectDevice(Intent data, boolean secure) {
String address = data.getExtras()
.getString(DeviceListActivity.EXTRA_DEVICE_ADDRESS);
BluetoothDevice device = mBluetoothAdapter.getRemoteDevice(address);
mChatService.connect(device, secure);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void connect() {}",
"public void connect();",
"public void connect();",
"public void connect();",
"public void connecting() {\n\n }",
"@Override\n public void establishConnectionWithYourTower() {\n }",
"private void establishConnection() {\n\n try {\n\n for(Clone clone:this.clones){\n ClearConnection connection = new ClearConnection();\n connection.connect(clone.getIp(), clone.getOffloadingPort(), 5 * 1000);\n this.connections.add(connection);\n }\n\n this.protocol = new ERAMProtocol();\n this.ode = new ERAMode();\n\n } catch (Exception e) {\n Log.e(TAG,\"Connection setup with the Remote Server failed - \" + e);\n }\n }",
"private void connectToCS(int port, String host)throws Exception{\n socket = new Socket(host, port);\n inStream = new PDUInputStream(socket.getInputStream());\n outStream = new PDUOutputStream(socket.getOutputStream());\n\n PduJoin join = new PduJoin(nickName);\n outStream.writeToServer(join.getByteArray());\n\n chatCS();\n }",
"@Override\n public abstract void connect();",
"@Override\n\tpublic void connect() {\n\t\t\n\t}",
"@Override\n\tpublic void connect() {\n\t\t\n\t}",
"protected void connectionEstablished() {}",
"private void start_Connexion()throws UnknownHostException, IOException{\n \tsocket = new Socket(IP,num_Socket);\n \tout = new ObjectOutputStream(socket.getOutputStream());\n \tin = new ObjectInputStream(socket.getInputStream());\n \t\n }",
"private void connectingPeer() {\n for (int index = 0; index < this.peers.size(); index++) {\n String peerUrl = urlAdderP2PNodeName((String) this.peers.get(index));\n try {\n Node distNode = NodeFactory.getNode(peerUrl);\n P2PService peer = (P2PService) distNode.getActiveObjects(P2PService.class.getName())[0];\n \n if (!peer.equals(this.localP2pService)) {\n // Send a message to the remote peer to record me\n peer.register(this.localP2pService);\n // Add the peer in my group of acquaintances\n this.acqGroup.add(peer);\n }\n } catch (Exception e) {\n logger.debug(\"The peer at \" + peerUrl +\n \" couldn't be contacted\", e);\n }\n }\n }",
"void onConnectToNetByIPSucces();",
"void toConnect() throws Exception {\n\t\tnameField.setVisible(false);\n\t\tf.setTitle(nameField.getText());\n\t\tsocketToServer = new Socket(\"127.0.0.1\", 5050);\n\t\tmyOutputStream = new ObjectOutputStream(socketToServer.getOutputStream());\n\t\tmyInputStream = new ObjectInputStream(socketToServer.getInputStream()); \n\t\tconnected();\n\t\tstart();\n\t}",
"private void openConnection () {\n String[] labels = {\"Host :\", \"Port :\"};\n String[] initialValues = {\"localhost\", \"1111\"};\n StandardDialogClient openHandler = new StandardDialogClient () {\n\t@Override\n\tpublic void dialogDismissed (StandardDialog d, int code) {\n\t try {\n\t InputDialog inputD = (InputDialog)d;\n\t if (inputD.wasCancelled ()) return;\n\t String[] results = inputD.getResults ();\n\t String host = results[0];\n\t String port = results[1];\n\t TwGateway connection =\n\t (TwGateway)TwGateway.openConnection (host, port);\n\t // The following call will fail if the G2 is secure.\n\t connection.login();\n\t setConnection (connection);\n\t } catch (Exception e) {\n\t new WarningDialog (null, \"Error During Connect\", true, e.toString (), null).setVisible (true);\n\t }\n\t}\n };\t \n\n new ConnectionInputDialog (getCurrentFrame (), \"Open Connection\",\n\t\t\t\t true, labels, initialValues,\n\t\t\t\t (StandardDialogClient) openHandler).setVisible (true);\n }",
"protected abstract void onConnect();",
"public void connect() throws OOBException {\n \t\tlog.debug(\"enter to connect \");\n \t\tJSch jsch = new JSch();\n \t\ttry {\n\t\t\tjsch.addIdentity(PRIVATE_KEY, PASSPHRASE);\n \t\t\tjsch.setKnownHosts(KNOWN_HOSTS);\n \t\t\tlog.debug(\"user \" + user + \"host : \" + host);\n \t\t\tsession = jsch.getSession(user, host, 22);\n \t\t\tsession.connect();\n \t\t} catch (JSchException e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t}",
"abstract void onConnect();",
"public void initiateConnection() {\n\t\tif (Settings.getRemoteHostname() != null) {\n\t\t\ttry {\n\t\t\t\toutgoingConnection(new Socket(Settings.getRemoteHostname(), Settings.getRemotePort()));\n\t\t\t} catch (IOException e) {\n\t\t\t\tlog.error(\"failed to make connection to \" + Settings.getRemoteHostname() + \":\"\n\t\t\t\t\t\t+ Settings.getRemotePort() + \" :\" + e);\n\t\t\t\tSystem.exit(-1);\n\t\t\t}\n\t\t}\n\t}",
"protected void startConnect() {\n if (tcp) {\n connection = new TCPConnection(this);\n } else {\n connection = new UDPConnection(this, udpSize);\n }\n connection.connect(remoteAddr, localAddr);\n }",
"public abstract void onConnect();",
"public void connectToServerComp() {\n\n\t\ttry \n\t\t{\n\t\t\tSocket socket = new Socket(host, 8001);\n\t\t\tfromServer = new DataInputStream(socket.getInputStream());\n\t\t\ttoServer = new DataOutputStream(socket.getOutputStream());\n\n\t\t\ttoServer.writeInt(vsCOMPUTER);\n\n\t\t} catch (IOException ex)\n\t\t{\n\t\t\tex.printStackTrace();\n\t\t}\n\n\t\tThread thread = new Thread(new clientHandlingComputer(fromServer, toServer));\n\t\tthread.start();\n\n\t}",
"public void connect()\r\n\t{\r\n\t\tkonekcija = ConnectionClass.getConnection(adresa, port, imeBaze, korisnickoIme, sifra);\r\n\t\tSystem.out.println(\"Konekcija otvorena: \"+ konekcija.toString());\r\n\t}",
"public abstract void connectSystem();",
"private void openConnection(){}",
"public void connectToExternalServer()\n\t{\n\t\tbuildConnectionString(\"10.228.6.204\", \"\", \"ctec\", \"student\");\n\t\tsetupConnection();\n\t\t// createDatabase(\"Kyler\");\n\t}",
"public void connect() {\n try {\n socket = connectToBackEnd();\n } catch (IOException ioe) {\n ioe.printStackTrace();\n }\n }",
"public void connexionServeur() {\r\n\r\n\t\tString serverIp = JOptionPane\r\n\t\t\t\t.showInputDialog(\"Entrez le nom du serveur.\");\r\n\t\ttry {\r\n\t\t\tsocket = new Socket(serverIp, 4456);\r\n\t\t\tlogger.info(\"Connexion au socket serveur.\");\r\n\r\n\t\t\tThread t = new Thread(new EnvoiPresence(socket));\r\n\t\t\tt.start();\r\n\r\n\t\t\tThread t2 = new Thread(new ReceptionListUser(socket, mainView));\r\n\t\t\tt2.start();\r\n\r\n\t\t} catch (ConnectException e) {\r\n\t\t\tJOptionPane.showMessageDialog(new Frame(),\r\n\t\t\t\t\t\"Le serveur Draw Me An Idea n'est pas lancé\", \"Erreur\", 1);\r\n\t\t\tSystem.exit(0);\r\n\t\t} catch (UnknownHostException e) {\r\n\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}",
"private void openConnection(String host){\n try {\n this.socket = new Socket(host, PORT);\n this.fromServer = new DataInputStream(socket.getInputStream());\n this.toServer = new DataOutputStream(socket.getOutputStream());\n\n } catch (SecurityException e){\n report(\"Connect is not allowed\");\n } catch (UnknownHostException e) {\n report(\"the ip address is not found.\");\n } catch (IOException e){\n report(\"Can not connect to the server\\\"\"+host+\"\\\"\");\n }\n }",
"public void establishConnection() {\n httpNetworkService = new HTTPNetworkService(handler);\n }",
"private void connection() {\n boolean connect;\n try {\n connect = true;\n this.jTextArea1.setText(\"Server starts...\");\n server = new MultiAgentServer(this);\n String ip = \"\";\n int errorBit = 256;\n for (int i = 0; i < server.getIpAddr().length; i++) {\n int currentIP = server.getIpAddr()[i];\n if (currentIP < 0) {\n currentIP += errorBit;\n }\n ip += currentIP + \".\";\n }\n ip = ip.substring(0, ip.length() - 1);\n System.out.println(ip);\n Naming.rebind(\"//\" + ip + \"/server\", server);\n this.jTextArea1.setText(\"Servername: \" + ip);\n this.jTextArea1.append(\"\\nServer is online\");\n } catch (MalformedURLException | RemoteException e) {\n this.jTextArea1.append(\"\\nServer is offline, something goes wrong!!!\");\n connect = false;\n }\n if (dialog.getMusicBox().isSelected()) {\n sl = new SoundLoopExample();\n }\n reconnectBtn.setEnabled(!connect);\n }",
"void connected();",
"private void connect(){\n // Averiguem quina direccio IP hem d'utilitzar\n InetAddress iAddress;\n try {\n iAddress = InetAddress.getLocalHost();\n String IP = iAddress.getHostAddress();\n\n //Socket sServidor = new Socket(\"172.20.31.90\", 33333);\n sServidor = new Socket (String.valueOf(IP), 33333);\n doStream = new DataOutputStream(sServidor.getOutputStream());\n diStream = new DataInputStream(sServidor.getInputStream());\n } catch (ConnectException c){\n System.err.println(\"Error! El servidor no esta disponible!\");\n System.exit(0);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public void openConnection() {\n System.out.println(\"Opening connection...\");\n\n try {\n String HOST = \"192.168.4.1\";\n int PORT = 2323;\n connectionSocket = new Socket(HOST, PORT);\n connectionSocket.setTcpNoDelay(true);\n\n writer = new BufferedWriter(new OutputStreamWriter(new BufferedOutputStream(connectionSocket.getOutputStream())));\n reader = new BufferedReader(new InputStreamReader(connectionSocket.getInputStream()));\n\n System.out.println(\"openConnection(): Success\");\n return;\n } catch (UnknownHostException e) {\n System.out.println(\"UnknownHostException at openConnection()\");\n } catch (IOException e) {\n System.out.println(\"IOException at openConnection()\");\n } catch (Exception e) {\n System.out.println(\"Exception at openConnection()\");\n System.out.println(e.toString());\n }\n\n System.out.println(\"Failed to connect\");\n }",
"private static void connect(City a, City b, int d){\n a.addConnection(b, d);\n b.addConnection(a, d);\n }",
"public void connect() {\n\t\ttry {\n\t\t\tconnection = new Socket(ip, serverPort); // 128.39.83.87 // 127.0.0.1\n\t\t\t\n\t\t\toutput = new BufferedWriter(new OutputStreamWriter(\n connection.getOutputStream()));\n\t\t\tinput = new BufferedReader(new InputStreamReader(\n connection.getInputStream()));\n\t\t\t\n\t\t\tif (hostName.equals(Constants.IDGK + Main.userName))\n\t\t\t\tsendText(\"1\" + Main.userName);\n\t\t\telse\n\t\t\t\tsendText(\"2\" + Main.userName);\n\t\t\t\n\t\t} catch (UnknownHostException e) {\n\t\t\tMain.LOGGER.log(Level.SEVERE, \"Error connecting server\", e);\n\t\t} catch (IOException e) {\n\t\t\tMain.LOGGER.log(Level.WARNING, \"Error making output/input\", e);\n\t\t}\n\t}",
"void open(String nameNport) {\n\tString[] token=nameNport.split(\":\");\n\tString host=token[0];\n\tint port=Integer.parseInt(token[1]);\n\tint proceedFlag=1;\n\tIterator<Socket> iterator=Connection.connections.iterator();\n\tif(host.equalsIgnoreCase(\"localhost\") || host.equals(\"127.0.0.1\"))\n\t\thost=simpella.infoSocket.getLocalAddress().getHostAddress();\n\tif((host.equalsIgnoreCase(simpella.infoSocket.getLocalAddress().getHostAddress())||host.equalsIgnoreCase(simpella.infoSocket.getLocalAddress().getCanonicalHostName()))&&(simpella.serverPortNo==port || simpella.downloadPortNo==port)){\n\t\tproceedFlag=0;\n\t\tSystem.out.println(\"Client: Self Connect not allowed\");\n\t\t}\n\twhile(iterator.hasNext() && proceedFlag==1)\n\t{\n\t\tSocket sock=(Socket)iterator.next();\n\t\t\n\t\tif((host.equalsIgnoreCase(sock.getInetAddress().getHostAddress()) || host.equalsIgnoreCase(sock.getInetAddress().getCanonicalHostName())) && port==sock.getPort()){\n\t\t\tproceedFlag=0; \n\t\t\tSystem.out.println(\"Client: Duplicate connection to same IP/port not allowed\");\n\t\t\tbreak;\n\t\t}\n\t\t\n\t}\n\tif(proceedFlag==1)\n\t\t{\n\t\n\t\n\tbyte type=04;\n\tMessage msg=new Message(type);\n\ttry {\n\t\tConnection.outgoingConnPackRecv[noOfConn]=0;\n\t\tConnection.outgoingConnPackSent[noOfConn]=0;\n\t\tConnection.outgoingConnPackSentSize[noOfConn]=0;\n\t\tConnection.outgoingConnPackRecvSize[noOfConn]=0;\n\t\t\n\t\tclientSideSocket[noOfConn]=new Socket(host,port);\n\t\tSystem.out.println(\"Client:TCP Connection established...Begin handshake\");\n\t\toutToServer[noOfConn]=new ObjectOutputStream(clientSideSocket[noOfConn].getOutputStream());\n\t\tinFromServer[noOfConn]=new ObjectInputStream(clientSideSocket[noOfConn].getInputStream());\n\t\tString strToServer=\"SIMPELLA CONNECT/0.6\\r\\n\";\n\t\tbyte[] byteArray= strToServer.getBytes(\"UTF-16LE\");\n\t\tmsg.setPayload(byteArray);\n \t\n\t\tSystem.out.println(\"Client:\"+new String(byteArray));\n\t\t//outToServer.writeUTF(\"SIMPELLA CONNECT/0.6\\r\\n\");\n\t\tConnection.outgoingConnPackSent[noOfConn]++;\n\t\tConnection.outgoingConnPackSentSize[noOfConn]+=byteArray.length+23;\n\t\toutToServer[noOfConn].writeObject((Object)msg);\n\t\tConnection.outgoingConnPackRecv[noOfConn]++;\n\t\t\n\t\tMessage msg1=(Message) inFromServer[noOfConn].readObject();\n\t\tbyte[] fromServer=msg1.getPayload();\n\t\tConnection.outgoingConnPackRecvSize[noOfConn]+=fromServer.length+23;\n\t\tString strFromServer=new String(fromServer);\n\t\tSystem.out.println(\"Server:\"+strFromServer);\n\t\tif(msg1.getMessage_type()==05)\n\t\t\t{\n\t\t\tstrToServer=\"SIMPELLA/0.6 200 thank you for accepting me\\r\\n\";\n\t\t\tbyte[] byteArray1= strToServer.getBytes(\"UTF-16LE\");\n\t\t\tMessage m=new Message((byte)05);\n\t\t\tm.setPayload(byteArray1);\n\t\t\tConnection.outgoingConnPackSent[noOfConn]++;\n\t\t\tConnection.outgoingConnPackSentSize[noOfConn]+=byteArray1.length+23;\n\t\t\toutToServer[noOfConn].writeObject((Object)m);\n\t\t\t\n\t\t\tConnection.connections.add(clientSideSocket[client.noOfConn]);\n\t\t\tConnection.outgoingConnection[client.noOfConn]=clientSideSocket[client.noOfConn];\n\t\t\tConnection.clientOutStream[client.noOfConn]=outToServer[client.noOfConn];\n\t\t\tnew clientSocketListen(clientSideSocket[noOfConn],outToServer[noOfConn],inFromServer[noOfConn]);\n\t\t\tupdate();\n\t\t\tnoOfConn++;\n\t\t\t//System.out.println(\"Client:num of conn=\"+noOfConn);\n\t\t\t}\n\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"<open>:Cannot open connection to \"+host+\" at this time\");\n\t\t\t\tclientSideSocket[noOfConn].close();\n\t\t\t\tinFromServer[noOfConn].close();\n\t\t\t\toutToServer[noOfConn].close();\n//\t\t\t\tSystem.out.println(\"Client:num of conn=\"+noOfConn);\n\t\t\t}\n\t\t\n\t\t\n\t} catch (UnknownHostException e) {\n\t\tSystem.out.println(\"Unknown Host: Destination host unreachable\");\n\t\t//e.printStackTrace();\n\t} catch (Exception e) {\n\t\tSystem.out.println(\"Connection Refused/Destination host unreachable\");\n\t}\n\t\t}\n\t}",
"void createConnection();",
"private void alternateconnection() {\n\t\t\t final String url = \"jdbc:mysql://localhost:3306/\";\n\t\t\t final String username = \"root\";\n\t\t final String password = \"bordoloa\";\n\t\t System.out.println(\"Connecting with classified at local host\");\n\t\t\ttry {\n\t\t\t\tconnection=DriverManager.getConnection(url, username, password);\n\t\t\t\t\n\t\t\t\tString msg=\"Hosting the client in local database port 3306 server \"\n\t\t\t\t\t\t+url;\n\t\t\t\tSystem.out.println(msg);\n\t\t\t\tDbLog.logger().logging(msg);\n\t\t\t\treturn;\n\t\t\n\t\t\t} catch (SQLException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t DbLog.logger().logging(e.getMessage()+\"Error is Mysql local database connection\");\n\t\t\t System.out.println(\"Unable to establish connection with localhost port 3306. Please check log files for more details at:\"\n\t\t\t \t\t\t+ \" C:\\\\Users\\\\Public\\\\IntraClassifieldsLogs\\\\Database_login.txt\");\n\t\t\t System.exit(0); /// exiting the program\n\t\t\t }\n\t\t}",
"public void connectedTo(ServerDescriptor desc);",
"public static void openConnection() {\n\t\tarcade.startConnection();\n\t}",
"public void connectClusters()\n\t{\n//\t\tfor(int i = 0; i<edges.size();i++)\n//\t\t{\n//\t\t\tEdgeElement edge = edges.get(i);\n//\t\t\tString fromNodeID = edge.fromNodeID;\n//\t\t\tNodeElement fromNode = findSubNode(fromNodeID);\n//\t\t\tString toNodeID = edge.toNodeID;\n//\t\t\tNodeElement toNode = findSubNode(toNodeID); \n//\t\t\t\n//\t\t\tif(fromNode != null && toNode != null)\n//\t\t\t{\n//\t\t\t\tPortInfo oport = new PortInfo(edge, fromNode);\n//\t\t\t\tfromNode.addOutgoingPort(oport);\n//\t\t\t\tedge.addIncomingPort(oport);\n//\t\t\t\tPortInfo iport = new PortInfo(edge, toNode);\n//\t\t\t\ttoNode.addIncomingPort(iport);\n//\t\t\t\tedge.addOutgoingPort(iport);\n//\t\t\t}\n//\t\t}\n\t}",
"public void connect() {\n BotConnector newBot = new BotConnector();\n newBot.setEmail(this.email);\n newBot.setAuthenticationKey(key);\n newBot.setBotName(name);\n newBot.setRoom(room);\n //Start Listener Thread\n this.serverListener = new Thread(newBot, \"serverListener\");\n this.serverListener.start();\n }",
"void chiudiConnessione() throws RemoteException,IOException;",
"private void connectToMaster(int masterPort) throws Exception {\n // Getting the registry \n Registry registry = LocateRegistry.getRegistry(null, masterPort); \n \n // Looking up the registry for the remote object \n this.master = (Master) registry.lookup(\"master\"); \n }",
"ClientConnection connection();",
"protected void onConnect() {}",
"public static void doConnect() {\r\n\t\tlogger.info(\"Connecting to server......\");\r\n\t\tChannelFuture future = null;\r\n\t\ttry {\r\n\t\t\tfuture = bootstrap.connect(new InetSocketAddress(host, port));\r\n\t\t\tfuture.addListener(channelFutureListener);\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\t// future.addListener(channelFutureListener);\r\n\t\t\tlogger.warn(\"Closed connection.\");\r\n\t\t}\r\n\r\n\t}",
"public void onConnection();",
"public void Connect() {\n run = new Thread(\"Connect\") {\n @Override\n public void run() {\n running = true;\n try {\n server = new ServerSocket(9080);\n waitingForConnection();\n } catch (IOException ex) {\n Logger.getLogger(Dashboard.class\n .getName()).log(Level.SEVERE, null, ex);\n }\n }\n };\n run.start();\n }",
"@Override\n public boolean isConnectable() {\n return true;\n }",
"void connect() throws Exception;",
"public Echange_Client() throws UnknownHostException, IOException {\n start_Connexion(); \n }",
"void disconnect();",
"void disconnect();",
"private void connectToABBOE() throws IOException, IllegalArgumentsException {\n Socket socket = Biomine3000Utils.connectToServer(args);\n this.connection = new ABBOEConnection(CLIENT_PARAMS, socket, log);\n this.connection.init(new ObjectHandler());\n \n }",
"public static void establishConnection() {\n try {\n PropertiesLoader loader = new PropertiesLoader();\n String sshUser = loader.loadProperty().getProperty(\"sshUser\");\n String sshPassword = loader.loadProperty().getProperty(\"sshPassword\");\n String sshHost = loader.loadProperty().getProperty(\"sshHost\");\n int sshPort = Integer.parseInt(loader.loadProperty().getProperty(\"sshPort\"));\n String remoteHost = loader.loadProperty().getProperty(\"remoteHost\");\n int localPort = Integer.parseInt(loader.loadProperty().getProperty(\"localPort\"));\n int remotePort = Integer.parseInt(loader.loadProperty().getProperty(\"remotePort\"));\n\n String dbUrl = loader.loadProperty().getProperty(\"dbUrl\");\n String dbUser = loader.loadProperty().getProperty(\"dbUser\");\n String dbPassword = loader.loadProperty().getProperty(\"dbPassword\");\n\n DatabaseManager.doSshTunnel(sshUser, sshPassword, sshHost, sshPort, remoteHost, localPort, remotePort);\n connection = DriverManager.getConnection(dbUrl, dbUser, dbPassword);\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }",
"public void doConnect() throws IOException {\n if (!sc.finishConnect()) {\n return; // the selector gave a bad hint\n }\n\n // Sending pseudo\n var newConnexio = new ConnexionFrame(pseudo);\n queueMessage(newConnexio.asByteBuffer().flip());\n\n updateInterestOps();\n }",
"abstract public void openConnection();",
"public PeerToPeerConnection(GameController controller){\n this.controller = controller;\n clientID = \"HostClient\";\n isHost = true;\n isHost = true;\n System.out.println(\"PeerToPeerConnection: Constructor: HostClient\");\n }",
"public void connect() throws Exception\n {\n if(connected)\n return;\n connectionSocket = new Socket(address, CommonRegister.DEFAULT_PORT);\n localPeerID = ++localPeerIDCount;\n initListener();\n reader = new BufferedReader(new InputStreamReader(connectionSocket.getInputStream()));\n writer = new PrintWriter(connectionSocket.getOutputStream(),true);\n connected = true;\n }",
"public abstract void connect() throws UnknownHostException, IOException;",
"@Override\n\tpublic boolean connect() {\n\t\treturn false;\n\t}",
"public void connect() throws IOException {\n //Loggen \"connecting\"\n addEntry(\"connecting\");\n\n //Den Input und Output Stream zum Kommunizieren über das Socket\n //initzialisieren\n out = new PrintWriter(primeServer.getOutputStream(), true);\n in = new BufferedReader(new InputStreamReader(primeServer.getInputStream()));\n\n //Kommunikation mit dem Server initzialisieren\n out.println(MessageType.HALLO);\n //Die vom Server an diesen Client vergebene ID auslesen\n id = Integer.parseInt(in.readLine());\n\n //Loggen \"connected,id\"\n addEntry(\"connected,\" + id);\n }",
"private void establishServerConnection() {\n int lb_port = Integer.parseInt(gui.getLBPort_Text().getText());\n gui.getLBPort_Text().setEnabled(false);\n String lb_ip = gui.getLBIP_Text().getText();\n gui.getLBIP_Text().setEnabled(false);\n int server_port = Integer.parseInt(gui.getServerPort_Text().getText());\n gui.getServerPort_Text().setEnabled(false);\n String server_ip = gui.getServerIP_Text().getText();\n gui.getServerIP_Text().setEnabled(false);\n obtainId(server_ip, server_port);\n lbInfo = new ConnectionInfo(lb_ip, lb_port, 3);\n\n if (connection.startServer(server_port)) {\n connectionHandler = new ServerConnections(connection, lbInfo, requestsAnswered, processingRequests, gui.getCompleted_Text(), gui.getProcessing_Text());\n new Thread(connectionHandler).start();\n\n requestServerId();\n scheduler.scheduleAtFixedRate(heartbeat, 10, 10, TimeUnit.SECONDS);\n } else {\n gui.getLBPort_Text().setEnabled(true);\n gui.getLBIP_Text().setEnabled(true);\n gui.getServerPort_Text().setEnabled(true);\n gui.getServerIP_Text().setEnabled(true);\n gui.getButton_Connect().setEnabled(true);\n }\n }",
"private void doConnect() throws Exception {\n try {\n Registry reg = LocateRegistry.getRegistry(conf.getNameServiceHost(), conf.getNameServicePort());\n server = (IChatServer) reg.lookup(conf.getServerName());\n } catch (RemoteException e) {\n throw new Exception(\"rmiregistry not found at '\" + conf.getNameServiceHost() + \":\" +\n conf.getNameServicePort() + \"'\");\n } catch (NotBoundException e) {\n throw new Exception(\"Server '\" + conf.getServerName() + \"' not found.\");\n }\n\n //Unir al bot al canal com a usuari\n //el Hashcode li afig un valor unic al nom, per a que ningu\n //li copie el nom com a usuari\n user = new ChatUser(\"bot \" + this.hashCode(), this);\n if (!server.connectUser(user))\n throw new Exception(\"Nick already in use\");\n\n //Comprovar si hi ha canals en el servidor.\n IChatChannel[] channels = server.listChannels();\n if (channels == null || channels.length == 0)\n throw new Exception(\"Server has no channels\");\n \n //Unir el bot a cadascun dels canals\n for (IChatChannel channel : channels) {\n channel.join(user);\n }\n\n System.out.println(\"Bot unit als canals i preparat.\");\n }",
"public void connect() throws IOException;",
"@Override\n public void connecterFibreOptique() throws ConnecteurException, RemoteException, MalformedURLException, NotBoundException {\n Naming.rebind(url, (ConnecteurRemoteInterface) this);\n \n // Enregistrement de tous les autres connecteurs\n // et notification a tous les autres connecteurs\n for (String name : Naming.list(\"rmi://localhost:1099/\")) {\n name = \"rmi:\" + name;\n if (!name.equals(url)) {\n Remote o = Naming.lookup(name);\n if (o instanceof ConnecteurRemoteInterface) {\n // Enregistrement du connecteur courant\n System.out.println(url + \": \\tEnregistrement auprès de \" + name);\n ((ConnecteurRemoteInterface) o).enregistrerConnecteur(url, controleurUrl);\n // Enregistrement d'un connecteur distant\n enregistrerConnecteur(name, (ConnecteurRemoteInterface) o);\n }\n else if (o instanceof PrismeRemoteInterface) {\n if (prisme == null) {\n this.prismeUrl = name;\n prisme = (PrismeRemoteInterface) o;\n prisme.enregisterConnecteur(url);\n }\n else {\n throw new ConnecteurException(\"Plusieurs prismes semblent exister.\");\n }\n }\n }\n }\n connecteur.connecter();\n }",
"abstract T connect();",
"@Override\n public void connect(String name) throws Exception {\n }",
"public void makeConnection() {\n\t\ttry {\n\t\t\tif(sock != null) {\n\t\t\t\ttable.printMsg(\"Cannot join a server twice! You've already connected.\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tsock = new Socket(serverIP, serverPort);\n\t\t\toos = new ObjectOutputStream(sock.getOutputStream());\n\t\t\tois = new ObjectInputStream(sock.getInputStream());\n\t\t\tThread thread = new Thread(new ServerHandler());\n\t\t\tthread.start();\n\t\t} catch(Exception e) {\n\t\t\ttable.printMsg(\"Cannot Join Server.\");\n\t\t\tsock = null;\n\t\t\ttable.repaint();\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}",
"void onConnect();",
"public void connect() {\n\t\tint index = shell.getConnectionsCombo().getSelectionIndex();\n\t\tif (profiles.length == 0 || index < 0 || index >= profiles.length) {\n\t\t\tupdateSelection();\n\t\t\treturn;\n\t\t}\n\t\tIConnectionProfile profile = profiles[index];\n\t\tshell.setEnabled(false);\n\t\tnetworkManager.connect(profile, (s, r) -> {\n\t\t\tif (s) {\n\t\t\t\tcompleted = true;\n\t\t\t\tclose();\n\t\t\t} else {\n\t\t\t\tplugin.sync(() -> {\n\t\t\t\t\tMessageBox messageBox = new MessageBox(shell.isDisposed() ? null : shell, SWT.ICON_ERROR);\n\t\t\t\t\tmessageBox.setMessage(\"Failed to connect!\\n\" + r);\n\t\t\t\t\tmessageBox.open();\n\t\t\t\t\tshell.setEnabled(true);\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\t}",
"public void conectServer() {\n\n\t}",
"public void disconnect();",
"public void disconnect();",
"public void disconnect();",
"public void disconnect();",
"public synchronized void startConnection ()\r\n\t{\r\n \t\tsynchronized (this)\r\n \t\t{\r\n \t\t\tif (_roboCOM!=null) return;\r\n\t\t\t\r\n\t\t\tuitoken++;\r\n\t\t\t_roboCOM = new TCPClient (MsgQueue,cm,uitoken);\r\n\r\n\t\t\t// debug parameters\r\n\t\t\t_roboCOM.msgHello=\"Start Connection ACCE\";\r\n\t\t\t\t\t\t\t\r\n\t \t \tnew Thread (_roboCOM).start();\r\n \t\t}\r\n\t}",
"void connectionCreated();",
"public void connectToServerPVP() {\n\n\t\ttry \n\t\t{\n\t\t\tSocket socket = new Socket(host, 8001);\n\t\t\tfromServer = new DataInputStream(socket.getInputStream());\n\t\t\ttoServer = new DataOutputStream(socket.getOutputStream());\n\n\t\t\ttoServer.writeInt(vsPLAYER);\n\n\t\t} catch (IOException ex)\n\t\t{\n\t\t\tex.printStackTrace();\n\t\t}\n\n\t\tThread thread = new Thread(new clientHandlingPlayer(fromServer, toServer));\n\t\tthread.start();\n\t}",
"public static void openConnection() {\n\n\t\ttry {\n\t\t\tClass.forName(\"com.mysql.cj.jdbc.Driver\");\n\t\t\tconexion = DriverManager.getConnection(\"jdbc:mysql://192.168.1.51:9090?useTimeone=true&serverTimezone=UTC\",\n\t\t\t\t\t\"remote\", \"Password123\");// credenciales temporales\n\t\t\tSystem.out.print(\"Server Connected\");\n\n\t\t} catch (SQLException | ClassNotFoundException ex) {\n\t\t\tSystem.out.print(\"No se ha podido conectar con mi base de datos\");\n\t\t\tSystem.out.println(ex.getMessage());\n\n\t\t}\n\n\t}",
"void connectionActivity(ConnectionEvent ce);",
"private void connectToNotary() throws RemoteException, InvalidSignatureException {\n\t\tfor (String notaryID : notaryServers.keySet()) {\n\t\t\tNotaryInterface notary = notaryServers.get(notaryID);\n\n\t\t\tString cnonce = cryptoUtils.generateCNonce();\n\t\t\tString toSign = notary.getNonce(this.id) + cnonce + this.id;\n\t\t\tX509Certificate res = notary\n\t\t\t\t.connectToNotary(this.id, cnonce, cryptoUtils.getStoredCert(),\n\t\t\t\t\tcryptoUtils.signMessage(toSign));\n\n\t\t\tcryptoUtils.addCertToList(notaryID, res);\n\t\t}\n\t}",
"public void connect() { \t\n \tbindService(IChatService.class, apiConnection);\n }",
"public buyMedicine() {\n initComponents();\n getConnection();\n getConnection1();\n }",
"private void connect()\r\n\t{\r\n\t\tString remoteHostName = txtComputerName.getText();\r\n\t\tint remoteHostPort = Integer.parseInt(txtPort.getText());\r\n\t\tif (remoteHostName == null || remoteHostName.equals(\"\"))\r\n\t\t{\r\n\t\t\twriteLine(\"Enter a Computer Name\", 0);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tif (remoteHostPort <= 0)\r\n\t\t\t{\r\n\t\t\t\twriteLine(\"Enter a Port\", 0);\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t// we can now connect\r\n\t\t\t\t// set our cursor to notify the user that they might need to\r\n\t\t\t\t// wait\r\n\t\t\t\twriteLine(\"Connecting to: \" + remoteHostName + \" : \"\r\n\t\t\t\t\t\t+ remoteHostPort, 0);\r\n\t\t\t\tthis.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));\r\n\t\t\t\t// lets try to connect to the remote server\r\n\r\n\t\t\t\ttheSocket = new CommSocket(remoteHostName, remoteHostPort);\r\n\r\n\t\t\t\tif (theSocket.connect())\r\n\t\t\t\t{\r\n\t\t\t\t\twriteLine(\r\n\t\t\t\t\t\t\t\"We are successfuly connected to: \"\r\n\t\t\t\t\t\t\t\t\t+ theSocket.getRemoteHostIP(), 0);\r\n\t\t\t\t\twriteLine(\"On Port: \" + theSocket.getRemoteHostPort(), 0);\r\n\t\t\t\t\trunning = true;\r\n\t\t\t\t\t// socketListener();\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\twriteLine(\"We failed to connect!\", 0);\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t\tthis.setCursor(Cursor\r\n\t\t\t\t\t\t.getPredefinedCursor(Cursor.DEFAULT_CURSOR));\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void setup_connections()\n {\n setup_servers();\n setup_clients();\n }",
"public void getConnection() throws Exception {\n\t\ttry {\n\t\t\tSystem.out.println(\"Waiting for new client!\");\n\n\n\n\t\t\tclient = serverSocket.accept();\n\t\t\tis = client.getInputStream();\n\t\t\tisr = new InputStreamReader(is);\n\t\t\tbr = new BufferedReader(isr);\n\t\t\tos = client.getOutputStream();\n\t\t\tosw = new OutputStreamWriter(os);\n\t\t\tpw = new PrintWriter(osw, true);\n\t\t\tsleep(500);\n\t\t\t//clientkey = getClientKey();\n\t\t\tSystem.out.println(\"Client has connected!\");\n\t\t\t\n\t\t\tGetTimestamp(\"Client Publickey is being stored: \" ) ;\n\t\t\t\n\t\t\tpublicKey = getClientPublicKey();\n\t\t\t\n\t\t\tGetTimestamp(\"Client Publickey is stored: \" ) ;\n\t\t\t\n\t\t\tString tosend = encrypt1(getSharedKey(), getClientPublicKey());\n\t\t\t\n\t\t\tGetTimestamp(\"Client sharedkey is being encrypted: \") ;\n\t\t\t\n\t\t\tGetTimestamp(\"Waiting for Authorization Request from Client: \");\n\t\t\t\n\t\t\t//getclientpublickey();\n\t\t\tgetAUTH_REQUEST();\n\t\t\t//getMessage();\n\n\t\t} catch (IOException | InterruptedException ex) {\n\t\t\tLogger.getLogger(ServerTCP.class.getName()).log(Level.SEVERE, null, ex);\n\t\t}\n\t}",
"public void disconnect() {}",
"public static void connect() {\n \t\tconnPool.start();\n \t}",
"protected void connect() {\n\t\treadProperties();\n\t\tif (validateProperties())\n\t\t\tjuraMqttClient = createClient();\n\t}",
"void onConnect( );",
"@Override\n\tpublic void connect() throws IOException {\n\n\t}",
"private void doConnect(Stage stage) {\n try {\n if (validateInput() && isConnectionValid()) {\n Connection con = new Connection(connectionsCB.getEditor().getText(), rpcPort.getText(), asyncPort.getText(), nameTF.getText(), fullControlRB.isSelected());\n // remove it if connection already exists\n if (connectionMap.get(connectionsCB.getEditor().getText()) != null) {\n connectionMap.remove(connectionsCB.getEditor().getText());\n }\n con.setLastUsed(true);\n connectionMap.put(connectionsCB.getEditor().getText(), con);\n updateConnectionsList();\n ConnectionManager.getInstance().setConnected(true);\n\n stage.hide();\n }\n } catch (Exception ex) {\n LOG.error(\"Error durring connection to TRex server\", ex);\n }\n }",
"public Status connect()\n {\n return connect(5.0);\n }",
"public void connexion() {\r\n\t\ttry {\r\n\r\n\t\t\tsoapConnFactory = SOAPConnectionFactory.newInstance();\r\n\t\t\tconnection = soapConnFactory.createConnection();\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t}\r\n\t}",
"private void connectToServer() {\n\t\ttry {\n\n\t\t\tSystem.out.println(\"Attempting connection to server at port: 5555\");\n\t\t\tsocket = new Socket(\"localhost\", 5554);\n\t\t\tSystem.out.println(\"Connected to server at port: 5555\");\n\n\t\t\tobjectOutputStream = new ObjectOutputStream(socket.getOutputStream());\n\t\t\tobjectInputStream = new ObjectInputStream(socket.getInputStream());\n\t\t\t\n\t\t\t// sending client object to server\n\t\t\tobjectOutputStream.writeInt(Main.getUser().getUserId());\n\t\t\tobjectOutputStream.flush();\n\t\t} catch (UnknownHostException e) {\n\t\t\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\n\t\t\te.printStackTrace();\n\t\t}\t\t\n\t}",
"Connection createConnection();"
] | [
"0.73025477",
"0.7235818",
"0.7235818",
"0.7235818",
"0.7000458",
"0.69580024",
"0.6880498",
"0.6800827",
"0.6751544",
"0.6671088",
"0.6671088",
"0.6630688",
"0.6580636",
"0.65728253",
"0.65461546",
"0.6544347",
"0.65431195",
"0.65370625",
"0.6531962",
"0.6519591",
"0.64985335",
"0.6494807",
"0.6474391",
"0.6471081",
"0.64671105",
"0.6456431",
"0.6441147",
"0.6429936",
"0.64298445",
"0.6427322",
"0.6395603",
"0.639348",
"0.6381789",
"0.6379695",
"0.6371578",
"0.6321489",
"0.631644",
"0.6313052",
"0.6311203",
"0.62875336",
"0.6283804",
"0.62830937",
"0.62356865",
"0.6218302",
"0.62156415",
"0.6212967",
"0.62070304",
"0.6197788",
"0.61959594",
"0.6192452",
"0.61813456",
"0.6176453",
"0.61729383",
"0.6165204",
"0.6164615",
"0.61617905",
"0.61617905",
"0.6149221",
"0.61474526",
"0.61358905",
"0.6127117",
"0.6096268",
"0.6088106",
"0.60812724",
"0.607133",
"0.60475016",
"0.60434264",
"0.60377836",
"0.60338616",
"0.6027649",
"0.60202295",
"0.60114044",
"0.6010043",
"0.60090065",
"0.6007058",
"0.6003564",
"0.6000692",
"0.6000692",
"0.6000692",
"0.6000692",
"0.5997774",
"0.5985767",
"0.59826493",
"0.59781855",
"0.5972536",
"0.5965639",
"0.5960846",
"0.5955955",
"0.5953237",
"0.59469086",
"0.5942442",
"0.5942378",
"0.5940105",
"0.5934371",
"0.59237766",
"0.59148586",
"0.5908102",
"0.59073716",
"0.590141",
"0.58963734",
"0.5888688"
] | 0.0 | -1 |
Builds a category series using the provided values. | protected CategorySeries buildCategoryDataset(String title, List<Evenement> values) {
CategorySeries series = new CategorySeries(title);
int k = 0;
for (Evenement value : values) {
series.add(value.getDescription(), value.getNb_participants());
}
return series;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static CategoryDataset createSortedDataset(List<Number> values, List<String> rows, List<NumberOnlyBuildLabel> columns) {\n\t\tDefaultCategoryDataset dataset = new DefaultCategoryDataset();\n\n\t\tTreeSet<String> rowSet = new TreeSet<String>(rows);\n\t\tTreeSet<ChartUtil.NumberOnlyBuildLabel> colSet = new TreeSet<ChartUtil.NumberOnlyBuildLabel>(\n\t\t\t\tcolumns);\n\n\t\tComparable[] _rows = rowSet.toArray(new Comparable[rowSet.size()]);\n\t\tComparable[] _cols = colSet.toArray(new Comparable[colSet.size()]);\n\n\t\t// insert rows and columns in the right order, reverse rows\n\t\tfor (int i = _rows.length - 1; i >= 0; i--)\n\t\t\tdataset.setValue(null, _rows[i], _cols[0]);\n\t\tfor (Comparable c : _cols)\n\t\t\tdataset.setValue(null, _rows[0], c);\n\n\t\tfor (int i = 0; i < values.size(); i++)\n\t\t\tdataset.addValue(values.get(i), rows.get(i), columns.get(i));\n\t\treturn dataset;\n\t}",
"public Category build()\n {\n return new Category(\n new MultiSelectOption(fValue), fUpperBound, fUpperInclusive);\n }",
"public Builder setCategoryValue(int value) {\n category_ = value;\n onChanged();\n return this;\n }",
"public Builder setCategoryValue(int value) {\n \n category_ = value;\n onChanged();\n return this;\n }",
"public static CategoryDataset createDataset() {\r\n DefaultCategoryDataset dataset = new DefaultCategoryDataset();\r\n dataset.addValue(1.0, \"First\", \"C1\");\r\n dataset.addValue(4.0, \"First\", \"C2\");\r\n dataset.addValue(3.0, \"First\", \"C3\");\r\n dataset.addValue(5.0, \"First\", \"C4\");\r\n dataset.addValue(5.0, \"First\", \"C5\");\r\n dataset.addValue(7.0, \"First\", \"C6\");\r\n dataset.addValue(7.0, \"First\", \"C7\");\r\n dataset.addValue(8.0, \"First\", \"C8\");\r\n dataset.addValue(5.0, \"Second\", \"C1\");\r\n dataset.addValue(7.0, \"Second\", \"C2\");\r\n dataset.addValue(6.0, \"Second\", \"C3\");\r\n dataset.addValue(8.0, \"Second\", \"C4\");\r\n dataset.addValue(4.0, \"Second\", \"C5\");\r\n dataset.addValue(4.0, \"Second\", \"C6\");\r\n dataset.addValue(2.0, \"Second\", \"C7\");\r\n dataset.addValue(1.0, \"Second\", \"C8\");\r\n dataset.addValue(4.0, \"Third\", \"C1\");\r\n dataset.addValue(3.0, \"Third\", \"C2\");\r\n dataset.addValue(2.0, \"Third\", \"C3\");\r\n dataset.addValue(3.0, \"Third\", \"C4\");\r\n dataset.addValue(6.0, \"Third\", \"C5\");\r\n dataset.addValue(3.0, \"Third\", \"C6\");\r\n dataset.addValue(4.0, \"Third\", \"C7\");\r\n dataset.addValue(3.0, \"Third\", \"C8\");\r\n return dataset;\r\n }",
"public CategoryBuilder()\n {\n fUpperInclusive = true;\n fValue = \"\";\n }",
"private CategoryDataset createDataset( )\n\t {\n\t final DefaultCategoryDataset dataset = \n\t new DefaultCategoryDataset( ); \n\t \n\t dataset.addValue(23756.0, \"余杭\", \"闲林\");\n\t dataset.addValue(29513.5, \"余杭\", \"良渚\");\n\t dataset.addValue(25722.2, \"余杭\", \"瓶窑\");\n\t dataset.addValue(19650.9, \"余杭\", \"星桥\");\n\t dataset.addValue(19661.6, \"余杭\", \"崇贤\");\n\t dataset.addValue(13353.9, \"余杭\", \"塘栖\");\n\t dataset.addValue(25768.9, \"余杭\", \"勾庄\");\n\t dataset.addValue(12682.8, \"余杭\", \"仁和\");\n\t dataset.addValue(22963.1, \"余杭\", \"乔司\");\n\t dataset.addValue(19695.6, \"余杭\", \"临平\");\n\t \n\t return dataset; \n\t }",
"private CategoryDataset createDataset() {\n\t \n\t \tvar dataset = new DefaultCategoryDataset();\n\t \n\t\t\tSystem.out.println(bic);\n\t\t\t\n\t\t\tfor(Map.Entry<String, Integer> entry : bic.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t Integer value = entry.getValue();\n\t\t\t dataset.setValue(value, \"# Bicicletas\", key);\n\t \n\t\t\t}\n\t return dataset;\n\t \n\t }",
"private PieDataset createDataset() {\n\t\tDefaultPieDataset result = new DefaultPieDataset();\n\n\t\tif (_controler != null) {\n\t\t\tfor (Object cat : _controler.getCategorieData()) {\n\n\t\t\t\tresult.setValue((String) cat, _controler.getTotal((String) cat));\n\n\t\t\t}\n\t\t}\n\t\treturn result;\n\n\t}",
"Series<double[]> makeSeries(int dimension);",
"private void createCategory() {\n Uri uri = TimeSeriesData.TimeSeries.CONTENT_URI;\n Intent i = new Intent(Intent.ACTION_INSERT, uri);\n startActivityForResult(i, ARC_CATEGORY_CREATE);\n }",
"public Builder setCategory(proto.SocialMetricCategoryEnum value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n category_ = value.getNumber();\n onChanged();\n return this;\n }",
"private XYChart.Series<Number, Number> getFortySeries() {\n //Create new series\n XYChart.Series<Number, Number> series = new XYChart.Series<>();\n series.setName(\"Chemical Concentration\");\n Random rand = new Random();\n int c = 5; // Constant for x-axis scale\n for (int i = 0; i < 17; i++) {\n int y = rand.nextInt() % 5 + 10;\n series.getData().add(new XYChart.Data<>(i*5, y));\n }\n series.getData().add(new XYChart.Data<>(17 * c, 17));\n series.getData().add(new XYChart.Data<>(18 * c, 21));\n series.getData().add(new XYChart.Data<>(19 * c, 40));\n series.getData().add(new XYChart.Data<>(20 * c, 39));\n series.getData().add(new XYChart.Data<>(21 * c, 36));\n series.getData().add(new XYChart.Data<>(22 * c, 21));\n\n for (int i = 23; i < 30; i++) {\n int y = rand.nextInt() % 5 + 10;\n series.getData().add(new XYChart.Data<>(i*5, y));\n }\n return series;\n }",
"public static AColGroup create(double[] values) {\n\t\treturn create(ColIndexFactory.create(values.length), values);\n\t}",
"public CategoryDataset createDataset() {\n\t\tfinal DefaultCategoryDataset dataset = new DefaultCategoryDataset();\n\t\tProjectManagement projectManagement = new ProjectManagement();\n\t\tif (this.chartName == \"Earned Value\") {\n\t\t\tfor (LocalDate date : dateList) {\n\t\t\t\tdataset.addValue(projectManagement.getEarnedValue(date), \"Earned Value\", date);\n\t\t\t}\n\t\t} else if (this.chartName == \"Schedule Variance\") {\n\t\t\tfor (LocalDate date : dateList) {\n\t\t\t\tdataset.addValue(projectManagement.getScheduleVariance(date), \"Schedule Variance\", date);\n\t\t\t}\n\n\t\t} else {// Cost Variance\n\t\t\tfor (LocalDate date : dateList) {\n\t\t\t\tdataset.addValue(projectManagement.getCostVariance(date), \"Cost Variance\", date);\n\t\t\t}\n\t\t}\n\t\treturn dataset;\n\t}",
"@Override\n\tpublic void defineTargetCategories(List<String> values) {\n\t\tPreconditions.checkArgument(\n\t\t\t\tvalues.size() <= maxTargetValue,\n\t\t\t\t\"Must have less than or equal to \" + maxTargetValue + \" categories for target variable, but found \"\n\t\t\t\t\t\t+ values.size());\n\t\tif (maxTargetValue == Integer.MAX_VALUE) {\n\t\t\tmaxTargetValue = values.size();\n\t\t}\n\n\t\tfor (String value : values) {\n\t\t\ttargetDictionary.intern(value);\n\t\t}\n\t}",
"public static CourseCategory[] createCategoryResponse() {\n CourseCategory[] categories = new CourseCategory[1];\n categories[0] = new CourseCategory();\n categories[0].setCategory(\"Math\");\n CourseSubject[] subjects = new CourseSubject[2];\n subjects[0] = new CourseSubject(\"Addition\", \"Math/Addition\", 1);\n subjects[1] = new CourseSubject(\"Subtration\", \"Math/Subtration\", 2);\n categories[0].setCourseSubject(subjects);\n return categories;\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic static MockDataDomain createCategorical(int numCols, int numRows, AValueFactory r, String... categories) {\n\t\tDataSetDescription dataSetDescription = createDataSetDecription(r);\n\t\tdataSetDescription.setDataDescription(createCategoricalDataDecription(categories));\n\n\t\tDataDescription dataDescription = dataSetDescription.getDataDescription();\n\t\tMockDataDomain dataDomain = createDataDomain(dataSetDescription);\n\n\t\tCategoricalTable<String> table = new CategoricalTable<>(dataDomain);\n\n\t\ttable.setCategoryDescritions((CategoricalClassDescription<String>) dataDescription.getCategoricalClassDescription());\n\n\t\tfor (int i = 0; i < numCols; ++i) {\n\t\t\tCategoricalContainer<String> container = new CategoricalContainer<>(numRows, EDataType.STRING,\n\t\t\t\t\tCategoricalContainer.UNKNOWN_CATEOGRY_STRING);\n\t\t\tCategoricalColumn<String> column = new CategoricalColumn<>(dataDescription);\n\t\t\tcolumn.setRawData(container);\n\t\t\tfor (int j = 0; j < numRows; ++j) {\n\t\t\t\tcontainer.add(categories[r.nextInt(categories.length)]);\n\t\t\t}\n\t\t\ttable.addColumn(column);\n\t\t}\n\n\t\tdataDomain.setTable(table);\n\t\tTableAccessor.postProcess(table);\n\n\t\treturn dataDomain;\n\t}",
"private XYChart.Series<Number, Number> getTenSeries() {\n //Create new series\n XYChart.Series<Number, Number> series = new XYChart.Series<>();\n series.setName(\"Chemical Concentration\");\n Random rand = new Random();\n int c = 5; // Constant for x-axis scale\n for (int i = 0; i < 17; i++) {\n int y = rand.nextInt() % 3 + 2;\n series.getData().add(new XYChart.Data<>(i*5, y));\n }\n series.getData().add(new XYChart.Data<>(17 * c, 4));\n series.getData().add(new XYChart.Data<>(18 * c, 5));\n series.getData().add(new XYChart.Data<>(19 * c-2,8));\n series.getData().add(new XYChart.Data<>(19 * c, 10));\n series.getData().add(new XYChart.Data<>(19 * c+2,8));\n series.getData().add(new XYChart.Data<>(20 * c, 6));\n series.getData().add(new XYChart.Data<>(21 * c, 4));\n\n for (int i = 22; i < 30; i++) {\n int y = rand.nextInt() % 3 + 2;\n series.getData().add(new XYChart.Data<>(i*5, y));\n }\n return series;\n }",
"CloudCategory(String value) {\n this.value = value;\n }",
"public ScaleRuleMetricDimension withValues(List<String> values) {\n this.values = values;\n return this;\n }",
"public static CategoryDataset createDataSetForBuild(AbstractBuild<?,?> build) {\n\t\tList<Number> values = new ArrayList<Number>();\n\t\tList<String> rows = new ArrayList<String>();\n\t\tList<NumberOnlyBuildLabel> columns = new ArrayList<NumberOnlyBuildLabel>();\n\n\t\tfor (; build != null; build = build\n\t\t\t\t.getPreviousBuild()) {\n\t\t\tRobotBuildAction action = build.getAction(RobotBuildAction.class);\n\n\t\t\tNumber failed = 0, passed = 0;\n\t\t\tif (action != null && action.getResult() != null) {\n\t\t\t\tfailed = action.getResult().getOverallFailed();\n\t\t\t\tpassed = action.getResult().getOverallPassed();\n\t\t\t}\n\n\t\t\t// default 'zero value' must be set over zero to circumvent\n\t\t\t// JFreeChart stacked area rendering problem with zero values\n\t\t\tif (failed.intValue() < 1)\n\t\t\t\tfailed = 0.01f;\n\t\t\tif (passed.intValue() < 1)\n\t\t\t\tpassed = 0.01f;\n\n\t\t\tChartUtil.NumberOnlyBuildLabel label = new ChartUtil.NumberOnlyBuildLabel(\n\t\t\t\t\tbuild);\n\n\t\t\tvalues.add(passed);\n\t\t\trows.add(Messages.robot_trendgraph_passed());\n\t\t\tcolumns.add(label);\n\n\t\t\tvalues.add(failed);\n\t\t\trows.add(Messages.robot_trendgraph_failed());\n\t\t\tcolumns.add(label);\n\t\t}\n\n\t\treturn createSortedDataset(values, rows, columns);\n\t}",
"private void buildCategories() {\n List<Category> categories = categoryService.getCategories();\n if (categories == null || categories.size() == 0) {\n throw new UnrecoverableApplicationException(\n \"no item types found in database\");\n }\n\n Map<Category, List<Category>> categoriesMap = new HashMap<Category, List<Category>>();\n for (Category subCategory : categories) {\n Category parent = subCategory.getParentCategory();\n if (categoriesMap.get(parent) == null) {\n categoriesMap.put(parent, new ArrayList<Category>());\n categoriesMap.get(parent).add(subCategory);\n } else {\n categoriesMap.get(parent).add(subCategory);\n }\n }\n\n this.allCategories = categories;\n this.sortedCategories = categoriesMap;\n }",
"private XYSeries createSeries() {\r\n return createSeries(0);\r\n }",
"public CategoryBuilder setValue(String value)\n {\n fValue = value;\n return this;\n }",
"Category(int num) {\n this.num = num;\n }",
"public XYMultipleSeriesDataset getDataset() {\n\t\tEnvironmentTrackerOpenHelper openhelper = new EnvironmentTrackerOpenHelper(ResultsContent.context);\n\t\tSQLiteDatabase database = openhelper.getReadableDatabase();\n\t\tString[] columns = new String[2];\n\t\tcolumns[0] = \"MOOD\";\n\t\tcolumns[1] = \"HUE_CATEGORY\";\n\t\tCursor results = database.query(true, \"Observation\", columns, null, null, null, null, null, null);\n\t\t\n\t\t// Make sure the cursor is at the start.\n\t\tresults.moveToFirst();\n\t\t\n\t\tint[] meanMoodCategoryHue = new int[4];\n\t\tint[] nrMoodCategoryHue = new int[4];\n\t\t\n\t\t// Overloop de verschillende observaties.\n\t\twhile (!results.isAfterLast()) {\n\t\t\tint mood = results.getInt(0);\n\t\t\tint hue = results.getInt(1);\n\t\t\t\n\t\t\t// Tel de mood erbij en verhoog het aantal met 1 in de juiste categorie.\n\t\t\tmeanMoodCategoryHue[hue-1] = meanMoodCategoryHue[hue-1] + mood;\n\t\t\tnrMoodCategoryHue[hue-1]++;\n\t\t\tresults.moveToNext();\n\t\t}\n\t\t\n\t\t// Bereken voor elke hue categorie de gemiddelde mood.\n\t\tfor (int i=1;i<=4;i++) {\n\t\t\tif (nrMoodCategoryHue[i-1] == 0) {\n\t\t\t\tmeanMoodCategoryHue[i-1] = 0;\n\t\t\t} else {\n\t\t\t\tmeanMoodCategoryHue[i-1] = meanMoodCategoryHue[i-1]/nrMoodCategoryHue[i-1];\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Plaats de gegevens samen in een dataset voor de grafiek.\n\t\tXYMultipleSeriesDataset myData = new XYMultipleSeriesDataset();\n\t XYSeries dataSeries = new XYSeries(\"data\");\n\t dataSeries.add(1,meanMoodCategoryHue[0]);\n\t dataSeries.add(2,meanMoodCategoryHue[1]);\n\t dataSeries.add(3,meanMoodCategoryHue[2]);\n\t dataSeries.add(4,meanMoodCategoryHue[3]);\n\t myData.addSeries(dataSeries);\n\t return myData;\n\t}",
"private JFreeChart createChart(final String title,\n\t\t\tfinal String categoryAxisLabel, final String valueAxisLabel,\n\t\t\tfinal XYSeriesCollection dataset) {\n\t\tNumberAxis xAxis = new NumberAxis(categoryAxisLabel);\n\t\txAxis.setAutoRangeIncludesZero(false);\n\t\txAxis.setRange(0, 24);\n\t\tNumberAxis yAxis = new NumberAxis(valueAxisLabel);\n\t\tyAxis.setAutoRangeIncludesZero(true);\n\t\tyAxis.setRange(0, 100);\n\n\t\tXYPlot plot = new XYPlot(dataset, xAxis, yAxis, null);\n\n\t\tXYItemRenderer renderer = new XYLineAndShapeRenderer(true, true);\n\t\trenderer.setBaseToolTipGenerator(null/* XYToolTipGenerator */);\n\t\trenderer.setURLGenerator(null/* urlGenerator */);\n\t\tplot.setRenderer(renderer);\n\t\tplot.setOrientation(PlotOrientation.VERTICAL);\n\n\t\tJFreeChart chart = new JFreeChart(title, JFreeChart.DEFAULT_TITLE_FONT,\n\t\t\t\tplot, true/* legend */);\n\t\treturn chart;\n\t}",
"private DefaultCategoryDataset createDataset() {\n\t\t\n\t\tdataset.clear();\n\t\t\n\t\t// Query HIM to submit data for bar chart display \n\t\tHistoricalInfoMgr.getChartDataset(expNum);\n\n\n\t\treturn dataset; // add the data point (y-value, variable, x-value)\n\t}",
"private Object createDataset(final ChartConfiguration config) {\n final CategoryChart chart = (CategoryChart) config.chart;\n for (final Fields key: config.fields) {\n chart.addSeries(key.getLocalizedName(), new double[1], new double[1]);\n }\n populateDataset(config);\n return null;\n }",
"FromValuesColumns createFromValuesColumns();",
"@Override\r\n\tpublic void setDataSeries(List<Double> factValues) {\n\r\n\t}",
"private List<ExploreSitesCategory> createDefaultCategoryTiles() {\n List<ExploreSitesCategory> categoryList = new ArrayList<>();\n\n // Sport category.\n ExploreSitesCategory category = new ExploreSitesCategory(\n SPORT, getContext().getString(R.string.explore_sites_default_category_sports));\n category.setDrawable(getVectorDrawable(R.drawable.ic_directions_run_blue_24dp));\n categoryList.add(category);\n\n // Shopping category.\n category = new ExploreSitesCategory(\n SHOPPING, getContext().getString(R.string.explore_sites_default_category_shopping));\n category.setDrawable(getVectorDrawable(R.drawable.ic_shopping_basket_blue_24dp));\n categoryList.add(category);\n\n // Food category.\n category = new ExploreSitesCategory(\n FOOD, getContext().getString(R.string.explore_sites_default_category_cooking));\n category.setDrawable(getVectorDrawable(R.drawable.ic_restaurant_menu_blue_24dp));\n categoryList.add(category);\n return categoryList;\n }",
"public static CategoryDataset createSampleDataset() {\n \t\n \t// row keys...\n final String series1 = \"Expected\";\n final String series2 = \"Have\";\n final String series3 = \"Goal\";\n\n // column keys...\n final String type1 = \"Type 1\";\n final String type2 = \"Type 2\";\n final String type3 = \"Type 3\";\n final String type4 = \"Type 4\";\n final String type5 = \"Type 5\";\n final String type6 = \"Type 6\";\n final String type7 = \"Type 7\";\n final String type8 = \"Type 8\";\n\n // create the dataset...\n final DefaultCategoryDataset dataset = new DefaultCategoryDataset();\n\n dataset.addValue(1.0, series1, type1);\n dataset.addValue(4.0, series1, type2);\n dataset.addValue(3.0, series1, type3);\n dataset.addValue(5.0, series1, type4);\n dataset.addValue(5.0, series1, type5);\n dataset.addValue(7.0, series1, type6);\n dataset.addValue(7.0, series1, type7);\n dataset.addValue(8.0, series1, type8);\n\n dataset.addValue(5.0, series2, type1);\n dataset.addValue(7.0, series2, type2);\n dataset.addValue(6.0, series2, type3);\n dataset.addValue(8.0, series2, type4);\n dataset.addValue(4.0, series2, type5);\n dataset.addValue(4.0, series2, type6);\n dataset.addValue(2.0, series2, type7);\n dataset.addValue(1.0, series2, type8);\n\n dataset.addValue(4.0, series3, type1);\n dataset.addValue(3.0, series3, type2);\n dataset.addValue(2.0, series3, type3);\n dataset.addValue(3.0, series3, type4);\n dataset.addValue(6.0, series3, type5);\n dataset.addValue(3.0, series3, type6);\n dataset.addValue(4.0, series3, type7);\n dataset.addValue(3.0, series3, type8);\n\n return dataset;\n \n }",
"public DanceChart build();",
"public void initializeSeriesData(List<CustomPair<String, CustomPair<Integer, Integer>>> cans)\n {\n this.cans.addAll(cans);\n for(CustomPair<String, CustomPair<Integer, Integer>> can: cans)\n {\n if(can.getValue() != null)\n {\n seriesCounters.put(can.getKey(), can.getValue());\n }\n seriesData.put(can.getKey(), new LinkedList<>());\n firstXValue.put(can.getKey(), 0);\n LineGraphSeries<DataPoint> lineGraphSeries = new LineGraphSeries<>();\n lineGraphSeries.setDrawDataPoints(true);\n lineGraphSeries.setColor(colorList.removeFirst());\n series.put(can.getKey(), lineGraphSeries);\n }\n }",
"public Builder setCategoryId(int value) {\n\n categoryId_ = value;\n bitField0_ |= 0x00000004;\n onChanged();\n return this;\n }",
"public JFreeChart createChart(CategoryDataset dataset) {\n CategoryAxis categoryAxis = new CategoryAxis(\"\");\n ValueAxis valueAxis = new NumberAxis(\"\");\n valueAxis.setVisible(false);\n BarRenderer renderer = new BarRenderer() {\n\n @Override\n public Paint getItemPaint(int row, int column) {\n return Color.blue;\n// switch (column) {\n// case 0:\n// return Color.red;\n// case 1:\n// return Color.yellow;\n// case 2:\n// return Color.blue;\n// case 3:\n// return Color.orange;\n// case 4:\n// return Color.gray;\n// case 5:\n// return Color.green.darker();\n// default:\n// return Color.red;\n// }\n }\n };\n renderer.setDrawBarOutline(false);\n renderer.setBaseItemLabelGenerator(new StandardCategoryItemLabelGenerator());\n renderer.setBasePositiveItemLabelPosition(new ItemLabelPosition(\n ItemLabelAnchor.OUTSIDE12, TextAnchor.BOTTOM_CENTER));\n renderer.setBaseItemLabelsVisible(Boolean.TRUE);\n renderer.setBarPainter(new StandardBarPainter());\n CategoryPlot plot = new CategoryPlot(dataset, categoryAxis, valueAxis, renderer);\n JFreeChart chart = new JFreeChart(\"\", JFreeChart.DEFAULT_TITLE_FONT, plot, false);\n chart.setBackgroundPaint(Color.white);\n return chart;\n }",
"public Combinatorics(T[] values) {\n this.values = values;\n this.size = -1;\n this.result = new ArrayList<T>();\n }",
"public Builder setCategory(google.maps.fleetengine.v1.Vehicle.VehicleType.Category value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n category_ = value.getNumber();\n onChanged();\n return this;\n }",
"public Series()\n {\n super();\n }",
"public void generateChart(int[] dataValues) {\n\t\t/*\n\t\t * The XYSeriesCollection object is a set XYSeries series (dataset) that\n\t\t * can be visualized in the same chart\n\t\t */\n\t\tXYSeriesCollection dataset = new XYSeriesCollection();\n\t\t/*\n\t\t * The XYSeries that are loaded in the dataset. There might be many\n\t\t * series in one dataset.\n\t\t */\n\t\tXYSeries data = new XYSeries(\"random values\");\n\n\t\t/*\n\t\t * Populating the XYSeries data object from the input Integer array\n\t\t * values.\n\t\t */\n\t\tfor (int i = 0; i < dataValues.length; i++) {\n\t\t\tdata.add(i, dataValues[i]);\n\t\t}\n\n\t\t// add the series to the dataset\n\t\tdataset.addSeries(data);\n\n\t\tboolean legend = false; // do not visualize a legend\n\t\tboolean tooltips = false; // do not visualize tooltips\n\t\tboolean urls = false; // do not visualize urls\n\n\t\t// Declare and initialize a createXYLineChart JFreeChart\n\t\tJFreeChart chart = ChartFactory.createXYLineChart(\"Grades Histogram\", \"Grades\", \"Frequency\", dataset,\n\t\t\t\tPlotOrientation.VERTICAL, legend, tooltips, urls);\n\n\t\t/*\n\t\t * Initialize a frame for visualizing the chart and attach the\n\t\t * previously created chart.\n\t\t */\n\t\tChartFrame frame = new ChartFrame(\"First\", chart);\n\t\tframe.pack();\n\t\t// makes the previously created frame visible\n\t\tframe.setVisible(true);\n\t}",
"CategoriesType createCategoriesType();",
"CategoriesType createCategoriesType();",
"public Series( String name, SortedMap<String, Long> dateCounters ) {\n\t\tthis.name = name;\n\t\tthis.type = DEFAULT_TYPE;\n\t\tdata = new ArrayList<Double[]>();\n\t\tfor ( Entry<String, Long> dateCounter : dateCounters.entrySet() ) {\n\t\t\tlong timestamp = DateConverter.dateStringToTimestamp( dateCounter.getKey() );\n\t\t\tdata.add( new Double [] { new Double(timestamp), new Double(dateCounter.getValue()) } );\n\t\t}\n\t}",
"public static Chart createPieChart(String pieChartCaption, String[] texts,\r\n\t\t\tdouble[] values) {\n\t\tChartWithoutAxes chart = ChartWithoutAxesImpl.create();\r\n\t\tchart.setDimension(ChartDimension.TWO_DIMENSIONAL_LITERAL);\r\n\t\t// chart.setMinSlice(maxValue / 50);// 最大的十分之一\r\n\t\t// chart.setMinSliceLabel(\"其他\");\r\n\t\t// chart.setMinSlicePercent(true);\r\n\t\tText caption = chart.getTitle().getLabel().getCaption();\r\n\t\tcaption.setValue(pieChartCaption);\r\n\t\tadjustFont(caption.getFont(), STRONG_SIZE);\r\n\t\tLegend legend = chart.getLegend();\r\n\t\tlegend.setItemType(LegendItemType.CATEGORIES_LITERAL);\r\n\t\tlegend.setVisible(true);\r\n\t\tadjustFont(legend.getText().getFont(), NORMAL_SIZE);\r\n\t\tTextDataSet categoryValues = TextDataSetImpl.create(texts);//$NON-NLS-1$ //$NON-NLS-2$\r\n\t\tNumberDataSet seriesOneValues = NumberDataSetImpl.create(values);\r\n\t\t// Base Series\r\n\t\tSeries series = SeriesImpl.create();\r\n\t\tseries.setDataSet(categoryValues);\r\n\t\tSeriesDefinition sd = SeriesDefinitionImpl.create();\r\n\t\tchart.getSeriesDefinitions().add(sd);\r\n\t\tsd.getSeriesPalette().shift(0);\r\n\t\tsd.getSeries().add(series);\r\n\t\t// new colors\r\n\t\tsd.getSeriesPalette().getEntries().clear();\r\n\t\tfor (int i = 0; i < fiaBase.length; i++) {\r\n\t\t\tsd.getSeriesPalette().getEntries().add(fiaBase[i]);\r\n\t\t}\r\n\r\n\t\t// Orthogonal Series\r\n\t\tPieSeries sePie = (PieSeries) PieSeriesImpl.create();\r\n\t\tsePie.setDataSet(seriesOneValues);\r\n\t\tsePie.setExplosion(2);\r\n\t\tsePie.setRotation(40);\r\n\r\n\t\tsePie.setLabelPosition(Position.INSIDE_LITERAL);// 设置在内部显示数字\r\n\t\tadjustFont(sePie.getLabel().getCaption().getFont(), NORMAL_SIZE);// 设置字体\r\n\r\n\t\tSeriesDefinition sdef = SeriesDefinitionImpl.create();\r\n\t\tsd.getSeriesDefinitions().add(sdef);\r\n\t\tsdef.getSeries().add(sePie);\r\n\r\n\t\treturn chart;\r\n\t}",
"public Category newCategory() {\n\t\tCategory page = new Category();\r\n\t\tpage.setWpPublished(DateUtils.now());\r\n\t\tpage.setWpWeight(0);\r\n\t\treturn page;\r\n\t}",
"public Builder mergeGroupByCategory(io.dstore.values.BooleanValue value) {\n if (groupByCategoryBuilder_ == null) {\n if (groupByCategory_ != null) {\n groupByCategory_ =\n io.dstore.values.BooleanValue.newBuilder(groupByCategory_).mergeFrom(value).buildPartial();\n } else {\n groupByCategory_ = value;\n }\n onChanged();\n } else {\n groupByCategoryBuilder_.mergeFrom(value);\n }\n\n return this;\n }",
"public Builder setGroupByCategory(\n io.dstore.values.BooleanValue.Builder builderForValue) {\n if (groupByCategoryBuilder_ == null) {\n groupByCategory_ = builderForValue.build();\n onChanged();\n } else {\n groupByCategoryBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }",
"SeriesType createSeriesType();",
"public Series( String name, SortedMap<String, Long> dateCounters, SortedMap<String, Long> totalCounters ) {\n\t\tthis.name = name;\n\t\tthis.type = DEFAULT_TYPE;\n\t\tdata = new ArrayList<Double[]>();\n\t\tfor ( Entry<String, Long> dateCounter : dateCounters.entrySet() ) {\n\t\t\tlong timestamp = DateConverter.dateStringToTimestamp( dateCounter.getKey() );\n\t\t\t// get the total count for this date\n\t\t\tlong total = totalCounters.get( dateCounter.getKey() );\n\t\t\t// Avoid a divide by 0 if we simply don't have data for this time\n\t\t\tif ( total != 0 ) {\n\t\t\t\tdata.add( new Double [] { new Double(timestamp), new Double((double)dateCounter.getValue() / (double)total) * 100d } );\n\t\t\t}\n\t\t\telse {\n\t\t\t\tdata.add( new Double [] { new Double(timestamp), 0d } );\n\t\t\t}\n\t\t}\n\t}",
"@NonNull\n public static List<Category> getCategories() {\n if (CATEGORY == null) {\n CATEGORY = new ArrayList<>();\n CATEGORY.add(new Category(\"Bollywood\", R.drawable.bollywood, 1));\n CATEGORY.add(new Category(\"Hollywood\", R.drawable.hollywood3, 2));\n CATEGORY.add(new Category(\"Cricket\", R.drawable.cricket4, 3));\n CATEGORY.add(new Category(\"Science\", R.drawable.science1, 4));\n CATEGORY.add(new Category(\"Geography\", R.drawable.geography, 5));\n CATEGORY.add(new Category(\"History\", R.drawable.history, 6));\n }\n return CATEGORY;\n }",
"public Series(Collection<Integer> series)\n {\n readCollection(series);\n }",
"public static CategoryDataset createDurationDataSetForBuild(AbstractBuild<?,?> build) {\n\t\tDataSetBuilder<String, NumberOnlyBuildLabel> builder = new DataSetBuilder<String, NumberOnlyBuildLabel>();\n\n\t\tfor (; build != null; build = build\n\t\t\t\t.getPreviousBuild()) {\n\t\t\tRobotBuildAction action = build.getAction(RobotBuildAction.class);\n\n\t\t\tfloat duration = 0;\n\t\t\tif (action != null && action.getResult() != null) {\n\t\t\t\tduration = action.getResult().getDuration();\n\t\t\t}\n\n\t\t\t// default 'zero value' must be set over zero to circumvent\n\t\t\t// JFreeChart stacked area rendering problem with zero values\n\t\t\tif (duration < 1)\n\t\t\t\tduration = 0.01f;\n\n\t\t\tChartUtil.NumberOnlyBuildLabel label = new ChartUtil.NumberOnlyBuildLabel(\n\t\t\t\t\tbuild);\n\t\t\t\n\t\t\tbuilder.add(duration, \"duration\", label);\n\t\t}\n\t\t\n\t\treturn builder.build();\n\t}",
"@Test\n public void test59() throws Throwable {\n DefaultKeyedValues2DDataset defaultKeyedValues2DDataset0 = new DefaultKeyedValues2DDataset();\n NumberAxis numberAxis0 = new NumberAxis(\"w9!(d\");\n ExtendedCategoryAxis extendedCategoryAxis0 = new ExtendedCategoryAxis(\"w9!(d\");\n CategoryPlot categoryPlot0 = new CategoryPlot((CategoryDataset) defaultKeyedValues2DDataset0, (CategoryAxis) extendedCategoryAxis0, (ValueAxis) numberAxis0, (CategoryItemRenderer) null);\n CategoryPlot categoryPlot1 = (CategoryPlot)categoryPlot0.clone();\n }",
"public static AColGroup create(IColIndex cols, double[] values) {\n\t\tif(cols.size() != values.length)\n\t\t\tthrow new DMLCompressionException(\"Invalid size of values compared to columns\");\n\t\tboolean allZero = true;\n\t\tfor(double d : values)\n\t\t\tif(d != 0.0) {\n\t\t\t\tallZero = false;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\tif(allZero)\n\t\t\treturn new ColGroupEmpty(cols);\n\t\telse\n\t\t\treturn ColGroupConst.create(cols, Dictionary.create(values));\n\n\t}",
"public Builder setGroupByCategory(io.dstore.values.BooleanValue value) {\n if (groupByCategoryBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n groupByCategory_ = value;\n onChanged();\n } else {\n groupByCategoryBuilder_.setMessage(value);\n }\n\n return this;\n }",
"public String[] getCategoryList(){\n return new String[]{\n \"Macros\",\n \"Instrument Type\",\n \"TOF_NSCD\",\n \"NEW_SNS\"\n };\n }",
"@SuppressWarnings(\"unchecked\")\n public static Observable.Transformer<SetList, List<Category>> mapSetToCategory() {\n return categoryTransformer;\n }",
"public static ExpenseCategoriesFragment newInstance() {\n ExpenseCategoriesFragment fragment = new ExpenseCategoriesFragment();\n Bundle args = new Bundle();\n\n return fragment;\n }",
"public List<com.vjshop.entity.TProductCategoryBrand> fetchByProductCategories(Long... values) {\n return fetch(TProductCategoryBrand.T_PRODUCT_CATEGORY_BRAND.PRODUCT_CATEGORIES, values);\n }",
"@Test\n public void test73() throws Throwable {\n Line2D.Double line2D_Double0 = new Line2D.Double(0.0, 0.0, 1.0, 0.0);\n LogAxis logAxis0 = new LogAxis();\n line2D_Double0.y2 = 1930.2862;\n CombinedRangeCategoryPlot combinedRangeCategoryPlot0 = new CombinedRangeCategoryPlot((ValueAxis) logAxis0);\n CategoryAxis[] categoryAxisArray0 = new CategoryAxis[3];\n SubCategoryAxis subCategoryAxis0 = new SubCategoryAxis(\"Null 'axis' argument.\");\n categoryAxisArray0[0] = (CategoryAxis) subCategoryAxis0;\n CategoryAxis categoryAxis0 = new CategoryAxis(\"Null 'axis' argument.\");\n categoryAxisArray0[1] = categoryAxis0;\n CategoryAxis3D categoryAxis3D0 = new CategoryAxis3D();\n categoryAxisArray0[2] = (CategoryAxis) categoryAxis3D0;\n combinedRangeCategoryPlot0.setDomainAxes(categoryAxisArray0);\n Point2D.Double point2D_Double0 = (Point2D.Double)line2D_Double0.getP1();\n CombinedDomainXYPlot combinedDomainXYPlot0 = new CombinedDomainXYPlot((ValueAxis) logAxis0);\n BasicStroke basicStroke0 = (BasicStroke)combinedDomainXYPlot0.getDomainZeroBaselineStroke();\n combinedDomainXYPlot0.configureRangeAxes();\n CategoryMarker categoryMarker0 = null;\n try {\n categoryMarker0 = new CategoryMarker((Comparable) 1.0, (Paint) null, (Stroke) basicStroke0, (Paint) null, (Stroke) basicStroke0, (-1872.0F));\n } catch(IllegalArgumentException e) {\n //\n // Null 'paint' argument.\n //\n assertThrownBy(\"org.jfree.chart.plot.Marker\", e);\n }\n }",
"public List<Category> getCategoriesDetails(){\r\n\t\tList<Category> res = new ArrayList<Category>();\r\n\t\tString req = \"select c.label, sum(f.amount) as total, sum(f.amount)/tmp.totmonth as percent, c.color \"\r\n\t\t\t\t\t+ \"from fee f, category c, (select sum(amount) as totmonth \"\r\n\t\t\t\t\t+ \"from fee \"\r\n\t\t\t\t\t+ \"where strftime('%m%Y', date) = strftime('%m%Y', date('now'))) as tmp \"\r\n\t\t\t\t\t+ \"where c.id = f.categoryid \"\r\n\t\t\t\t\t+ \"and strftime('%m%Y', f.date) = strftime('%m%Y', date('now')) \"\r\n\t\t\t\t\t+ \"group by c.id \"\r\n\t\t\t\t\t+ \"order by total desc;\";\r\n\t\t\r\n\t\tCursor cursor = database.rawQuery(req, null);\t\t\t\t\r\n\t\tif (cursor.moveToFirst()) {\r\n\t\t\tdo {\r\n\t\t\t\tCategory cat = new Category();\r\n\t\t\t\tcat.setLabel(cursor.getString(0));\r\n\t\t\t\tcat.setTotal(cursor.getString(1));\r\n\t\t\t\tcat.setPercent(cursor.getString(2));\r\n\t\t\t\tcat.setColor(cursor.getString(3));\r\n\t\t\t\tres.add(cat);\r\n\t\t\t} while (cursor.moveToNext());\r\n\t\t}\r\n\t\tif (cursor != null && !cursor.isClosed()) {\r\n\t\t\tcursor.close();\r\n\t\t}\r\n\t\t\r\n\t\treturn res;\r\n\t}",
"@Override\n\tpublic Categories create(Categories cate) {\n\t\treturn categoriesDAO.create(cate);\n\t}",
"private List<CategoryDb> createCategoryInstances(List<String> names) {\n List<CategoryDb> list = new ArrayList<>(0);\n for (String name : names) {\n CategoryDb categoryDb = new CategoryDb();\n categoryDb.setCategoryNameEn(name);\n categoryDb.setCategoryNameRu(new CategoryMapper().toRu(name));\n list.add(categoryDb);\n }\n return list;\n }",
"FromValues createFromValues();",
"public Category(String n) {\n this.name = n;\n }",
"public void setCategories(List<CategoryMappingValue> categories) {\r\n\t\tthis.categories = categories;\r\n\t}",
"@Override\n @IcalProperty(pindex = PropertyInfoIndex.CATEGORIES,\n adderName = \"category\",\n jname = \"categories\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true)\n public void setCategories(final Set<BwCategory> val) {\n categories = val;\n }",
"public category() {\r\n }",
"public ScatterChart(@NamedArg(\"xAxis\") Axis<X> xAxis, @NamedArg(\"yAxis\") Axis<Y> yAxis) {\n this(xAxis, yAxis, FXCollections.<Series<X, Y>>observableArrayList());\n }",
"public CategoricalResults(){\n\n }",
"public Statistic(double[] values) {\n this(null, values);\n }",
"@JSProperty(\"categories\")\n void setCategories(String[] value);",
"public DataTable getDataTable() {\n\t\tdata = DataTable.create();\n\t\tMap<String, Integer>categories = new HashMap<String, Integer>();\n\t\tMap<String, Integer>names = new HashMap<String, Integer>();\n\n\t\tint row = 0;\n\t\tint col = 1;\n\t\tdata.addColumn(ColumnType.STRING, \"Category\");\n\t\tfor (VisualizationData value: values){\n\t\t\tString category = value.getCategory();\n\t\t\tString name = value.getName();\n\t\t\tif (!categories.containsKey(category)){\n\t\t\t\tdata.addRow();\n\t\t\t\tdata.setValue(row, 0, category);\n\t\t\t\tcategories.put(category, row++);\n\t\t\t}\n\t\t\tif (!names.containsKey(name)){\n\t\t\t\tdata.addColumn(ColumnType.NUMBER, name);\n\t\t\t\tnames.put(name, col++);\n\t\t\t}\n\t\t\tdata.setValue(categories.get(category), names.get(name), value.getY(inverted));\n\t\t}\n\t\tif (cumulative){\n\t\t\tdouble[] totals = new double[data.getNumberOfColumns()];\n\t\t\tfor (row = 0; row < data.getNumberOfRows(); row++){\n\t\t\t\tfor (col = 1; col < data.getNumberOfColumns(); col++){\n\t\t\t\t\ttotals[col] += data.getValueDouble(row, col);\n\t\t\t\t\tdata.setValue(row, col, totals[col]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn data;\n\t}",
"public Builder addAllCohorts(\n java.lang.Iterable<? extends com.google.analytics.data.v1beta.Cohort> values) {\n if (cohortsBuilder_ == null) {\n ensureCohortsIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(values, cohorts_);\n onChanged();\n } else {\n cohortsBuilder_.addAllMessages(values);\n }\n return this;\n }",
"@Test\n public void test32() throws Throwable {\n CyclicNumberAxis cyclicNumberAxis0 = new CyclicNumberAxis((-1505.20649), \"Category_Plot\");\n CombinedRangeCategoryPlot combinedRangeCategoryPlot0 = new CombinedRangeCategoryPlot((ValueAxis) cyclicNumberAxis0);\n SystemColor systemColor0 = SystemColor.text;\n BasicStroke basicStroke0 = (BasicStroke)CategoryPlot.DEFAULT_GRIDLINE_STROKE;\n ValueMarker valueMarker0 = new ValueMarker(4.0, (Paint) systemColor0, (Stroke) basicStroke0);\n MarkerChangeEvent markerChangeEvent0 = new MarkerChangeEvent((Marker) valueMarker0);\n combinedRangeCategoryPlot0.markerChanged(markerChangeEvent0);\n combinedRangeCategoryPlot0.setAnchorValue(1401.824847306, false);\n CategoryAxis categoryAxis0 = new CategoryAxis(\"Category_Plot\");\n combinedRangeCategoryPlot0.setDomainAxis(categoryAxis0);\n // Undeclared exception!\n try { \n combinedRangeCategoryPlot0.setDataset((-1030), (CategoryDataset) null);\n } catch(IllegalArgumentException e) {\n //\n // Requires index >= 0.\n //\n assertThrownBy(\"org.jfree.chart.util.AbstractObjectList\", e);\n }\n }",
"public Category(String categoryName) {\n this.categoryName = categoryName;\n }",
"public Category(String categoryName) {\n this.categoryName = categoryName;\n }",
"private CounterDistribution distribution(long... values) {\n CounterDistribution dist = CounterDistribution.empty();\n for (long value : values) {\n dist = dist.addValue(value);\n }\n\n return dist;\n }",
"public void setCategories(Categories categories) {\n this.categories = categories;\n }",
"public GiftCardProductQuery categories(CategoryInterfaceQueryDefinition queryDef) {\n startField(\"categories\");\n\n _queryBuilder.append('{');\n queryDef.define(new CategoryInterfaceQuery(_queryBuilder));\n _queryBuilder.append('}');\n\n return this;\n }",
"public SlotSeries build() {\n if (this.configuredSlots.size() == 0) {\n return new SlotSeries(new ArrayList<>(0));\n }\n\n final int slotCount = configuredSlots.lastKey() + 1;\n final List<Integer> slotList = new ArrayList<>(slotCount);\n\n for (int slotIndex = 0; slotIndex < slotCount; slotIndex++) {\n slotList.add(\n slotIndex,\n this.configuredSlots.getOrDefault(slotIndex, 0));\n }\n\n return new SlotSeries(slotList);\n }",
"public Category() {}",
"private void onCreateCaffeineBarChart(DateIntegerSeries coffeeCaffeineSeries, DateIntegerSeries teaCaffeineSeries) {\n // refreshes the chart (it will be loaded with default vals at this point)\n caffeineBarChart.clear();\n caffeineBarChart.redraw();\n\n // default graph: supports y from 0 to 1000 in increments of 200, but this can be\n // overridden by very large values, in which case it's MAX_VALUE rounded to next\n // increment of 200, in increments of MAX_VALUE / 5\n int maxRange = 1000;\n int combinedMaxYValue = coffeeCaffeineSeries.getMaxYValue() + teaCaffeineSeries.getMaxYValue();\n if (combinedMaxYValue > 1000) {\n if (combinedMaxYValue % 200 != 0) maxRange = combinedMaxYValue + (200 - (combinedMaxYValue % 200));\n else maxRange = combinedMaxYValue;\n }\n\n caffeineBarChart.setRangeBoundaries(0, maxRange, BoundaryMode.FIXED);\n caffeineBarChart.setRangeStep(StepMode.SUBDIVIDE, 5);\n caffeineBarChart.addMarker(new YValueMarker(400, null)); // red line for 400 mg\n caffeineBarChart.setDomainStep(StepMode.SUBDIVIDE, 10);\n\n // had to hard code the colors because they're apparently translated into ints in the backend,\n // but the ints DON'T properly translate back into the original hex string ...\n BarFormatter coffeeBarFormatter = new BarFormatter(Color.parseColor(\"#ac9782\"), Color.WHITE);\n BarFormatter teaBarFormatter = new BarFormatter(Color.parseColor(\"#4d7d55\"), Color.WHITE);\n\n caffeineBarChart.addSeries(coffeeCaffeineSeries, coffeeBarFormatter);\n caffeineBarChart.addSeries(teaCaffeineSeries, teaBarFormatter);\n\n // initialize bar caffeineBarChartRenderer (must be done after set formatter and add series to the plot)\n caffeineBarChartRenderer = caffeineBarChart.getRenderer(BarRenderer.class);\n caffeineBarChartRenderer.setBarGroupWidth(BarRenderer.BarGroupWidthMode.FIXED_WIDTH, PixelUtils.dpToPix(25));\n caffeineBarChartRenderer.setBarOrientation(BarRenderer.BarOrientation.STACKED);\n\n // X-AXIS = date values, formatted as \"10/27\"\n caffeineBarChart.getGraph().getLineLabelStyle(XYGraphWidget.Edge.BOTTOM).setFormat(new xAxisDateFormat());\n\n // Y-AXIS = caffeine values, formatted as \"800\"\n caffeineBarChart.getGraph().getLineLabelStyle(XYGraphWidget.Edge.LEFT).setFormat(new Format() {\n @Override\n public StringBuffer format(Object obj, StringBuffer toAppendTo, FieldPosition pos) {\n int intNumber = ((Number) obj).intValue();\n if (intNumber == 400) return new StringBuffer(\"[\" + intNumber + \"]\");\n else return new StringBuffer(Integer.toString(intNumber));\n }\n\n @Override\n public Number parseObject(String string, ParsePosition position) {\n throw new UnsupportedOperationException(\"Not yet implemented.\");\n }\n });\n }",
"@Override\n public ProductCategories createFromParcel(Parcel parcel_in) {\n return new ProductCategories(parcel_in);\n }",
"public JGradientSlider(int orientation, float[] thumbPositions,\n\t\t\tColor[] values) {\n\t\tsuper(orientation, thumbPositions, values);\n\t}",
"@SuppressWarnings(\"rawtypes\")\n\tprivate PieDataset createDataset(HashMap<String,Integer> mapValues) {\n\t DefaultPieDataset dataset=new DefaultPieDataset();\n\t Iterator<?> iterador = mapValues.entrySet().iterator();\n\t\twhile(iterador.hasNext()) {\n\t\t\tMap.Entry pair = (Map.Entry)iterador.next();\n\t\t\tdataset.setValue((String)pair.getKey(),(Integer)pair.getValue());\n\t\t}\n\t return dataset;\n\t }",
"public MultipleSeriesItem(int series,String xcategory, \r\n\t\t\tdouble y,String seriesname)\r\n\t{\r\n\t\tthis.y =y;\r\n\t\tthis.xcategory=xcategory;\r\n\t\tthis.series=series;\r\n\t\tthis.seriesname=seriesname;\r\n\t\t\r\n\t\t\r\n\t}",
"public static CategoryBuilder fromPrototype(\n final Category prototype)\n {\n return new CategoryBuilder()\n .setValue(prototype.getOption().getValue())\n .setUpperBound(prototype.getUpperBound())\n .setUpperInclusive(prototype.isUpperInclusive());\n }",
"private JPanel getPanelCategories() {\n\t\tif (panelCategories == null) {\n\t\t\tpanelCategories = new JPanel();\n\t\t\tpanelCategories.setLayout(new BorderLayout());\n\t\t\tpanelCategories.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(EtchedBorder.RAISED), CMMessages.getString(\"TESTDATA_CATEGORY_FUNCTION\"), TitledBorder.LEADING, TitledBorder.TOP, new Font(\"SansSerif\", Font.BOLD, 10), SystemColor.activeCaption));\n\t\t\tpanelCategories.setPreferredSize(new Dimension(272, 158));\n\t\t\tpanelCategories.setMinimumSize(new Dimension(272, 158));\n\t\t\tpanelCategories.add(getScrollCategories(), BorderLayout.CENTER);\n\t\t}\n\t\treturn panelCategories;\n\t}",
"public CategoryTree getCategories() throws SQLException {\n\t\tCategoryTree ct = new CategoryTree();\n\t\tNode root = new Node(null);\n\t\tTreeMap<Integer, TreeMap<Integer, Category>> categoriesMap = new TreeMap<Integer, TreeMap<Integer, Category>>();\n\t\tString query = \"SELECT * FROM category\";\n\t\tResultSet result = null;\n\t\tPreparedStatement pStatement = null;\n\t\ttry {\n\t\t\tpStatement = connection.prepareStatement(query);\n\t\t\tResultSet rs = pStatement.executeQuery();\n\t\t\t/*\n\t\t\t * retrieve all the categories in the db.\n\t\t\t * create a treeMap (preserves key order) which keys are the ids of every category that is father of at least one child.\n\t\t\t * the values of the treeMap are treeMaps containing all the categories children of the category which id is the key related to the value.\n\t\t\t * \n\t\t\t */\n\t\t\twhile (rs.next()) {\n\t\t\t\tCategory c = new Category();\n\t\t\t\tc.setId(rs.getInt(\"category_id\"));\n\t\t\t\tc.setName(rs.getString(\"name\"));\n\t\t\t\tc.setIndex(rs.getString(\"index\"));\n\t\t\t\tc.setFatherId(rs.getString(\"father_id\"));\n\t\t\t\tTreeMap<Integer, Category> value = categoriesMap.get(Integer.parseInt(c.getFatherId()));\n\t\t\t\t// value already existing (the category with id = c.fatherId has at least one child already)\n\t\t\t\tif (value != null) {\n\t\t\t\t\t// since c is at least the second child, if c.fatherId = 0 then lonelyChild = false\n\t\t\t\t\tif (\"0\".equals(c.getFatherId())) {\n\t\t\t\t\t\tct.setLonelyChild(false);\n\t\t\t\t\t}\n\t\t\t\t\tvalue.put(Integer.parseInt(c.getIndex()), c);\n\t\t\t\t} else {\n\t\t\t\t\tvalue = new TreeMap<Integer, Category>();\n\t\t\t\t\tvalue.put(Integer.parseInt(c.getIndex()), c);\n\t\t\t\t\tcategoriesMap.put(Integer.parseInt(c.getFatherId()), value);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// create the CategoryTree if root has children\n\t\t\tif (categoriesMap.containsKey(0)) {\n\t\t\t\tList<Category> temp = new ArrayList<Category>(categoriesMap.get(0).values());\n\t\t\t\tfor (Category c : temp) {\n\t\t\t\t\troot.addChild(new Node(c));\n\t\t\t\t}\n\t\t\t\tcategoriesMap.remove(0);\n\t\t\t\tfor (Node n : root.getChildren()) {\n\t\t\t\t\tpopulate(n, categoriesMap);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\tthrow new SQLException(\"Failed to retrieve the categories.\");\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (result != null) {\n\t\t\t\t\tresult.close();\n\t\t\t\t}\n\t\t\t} catch (Exception e1) {\n\t\t\t\tthrow new SQLException(\"Cannot close result.\");\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tif (pStatement != null) {\n\t\t\t\t\tpStatement.close();\n\t\t\t\t}\n\t\t\t} catch (Exception e1) {\n\t\t\t\tthrow new SQLException(\"Cannot close statement.\");\n\t\t\t}\n\t\t}\n\t\n\t\tct.setRoot(root);\n\t\tct.setMovableNodes();\n\t\treturn ct;\n\t}",
"public MultipleSeriesItem(int series,String xcategory,String ycategory,\r\n\t\t\tdouble zval,String seriesname)\r\n\t{\r\n\t\tthis.xcategory =xcategory;\r\n\t\tthis.ycategory=ycategory;\r\n\t\tthis.zval=zval;\r\n\t\tthis.series=series;\r\n\t\tthis.seriesname=seriesname;\r\n\t\t\r\n\t}",
"public Category() {\n super();\n }",
"private Jsons.Obj buildSeriesObj(Map<String, List<SeriesACLTransition>> seriesGroup) {\n final AclService aclService = aclService();\n return mlist(seriesGroup.entrySet().iterator()).foldl(obj(),\n new Function2<Jsons.Obj, Map.Entry<String, List<SeriesACLTransition>>, Jsons.Obj>() {\n @Override\n public Jsons.Obj apply(Jsons.Obj obj, Map.Entry<String, List<SeriesACLTransition>> ts) {\n final Jsons.Arr transitions = arr(mlist(ts.getValue()).map(JsonConv.digestSeriesAclTransition));\n final Jsons.Obj activeAcl = buildAclObj(getActiveAclForSeries(aclService, ts.getKey()), false);\n return obj.append(buildActiveAclAndTransitionsObj(ts.getKey(), activeAcl, transitions));\n }\n });\n }",
"public static Category create(@NotBlank String name) {\n return new Category(name);\n }",
"public MetricBatch build() {\n Attributes attributes = commonAttributesBuilder.build();\n return new MetricBatch(metrics, attributes);\n }",
"public Category(Context context) {\n super(context);\n ViewGroup.LayoutParams layoutParams;\n setBackgroundColor(0);\n setFocusBackgroundColor(Warna.Dasar);\n setTextColor(Warna.Teks);\n setIconColor(Warna.Teks);\n setIconPosition(1);\n setIconPadding(20, 20, 20, 20);\n setPadding(10, 10, 25, 10);\n setTextSize(13);\n setGravity(16);\n new LinearLayout.LayoutParams(-1, -2);\n setLayoutParams(layoutParams);\n setClickable(true);\n setRadius(new int[]{0, 100, 0, 100});\n }",
"public MultipleSeriesItem(int series,double x,String ycategory,String seriesname)\r\n\t\t{\r\n\t\t\tthis.x =x;\r\n\t\t\tthis.ycategory=ycategory;\r\n\t\t\tthis.series=series;\r\n\t\t\tthis.seriesname=seriesname;\r\n\t\t\t\r\n\t\t}",
"public static JFreeChart createChart(CategoryDataset dataset) {\r\n\r\n JFreeChart chart = ChartFactory.createBarChart(\r\n \"Min/Max Category Plot\", // chart title\r\n \"Category\", // domain axis label\r\n \"Value\", // range axis label\r\n dataset, // data\r\n PlotOrientation.VERTICAL,\r\n true, // include legend\r\n true, // tooltips\r\n false // urls\r\n );\r\n\r\n CategoryPlot plot = (CategoryPlot) chart.getPlot();\r\n plot.setRangePannable(true);\r\n MinMaxCategoryRenderer renderer = new MinMaxCategoryRenderer();\r\n renderer.setDrawLines(false);\r\n plot.setRenderer(renderer);\r\n ChartUtilities.applyCurrentTheme(chart);\r\n return chart;\r\n }"
] | [
"0.6081396",
"0.59690005",
"0.564447",
"0.56349903",
"0.5593414",
"0.54655355",
"0.53993064",
"0.5371484",
"0.5303921",
"0.5275316",
"0.5209635",
"0.52038664",
"0.5135823",
"0.5127982",
"0.5126798",
"0.5098253",
"0.5065948",
"0.5045862",
"0.5042265",
"0.49816898",
"0.49611366",
"0.49032366",
"0.48980445",
"0.4870514",
"0.48463646",
"0.4845597",
"0.4832307",
"0.48260987",
"0.48196295",
"0.47976083",
"0.47868901",
"0.47819713",
"0.4774532",
"0.4772623",
"0.47694254",
"0.47446114",
"0.47443762",
"0.4738914",
"0.47278985",
"0.47258243",
"0.47167185",
"0.47144243",
"0.47090682",
"0.47090682",
"0.47018868",
"0.46948496",
"0.46702144",
"0.46682522",
"0.46681568",
"0.46661672",
"0.4663302",
"0.46532628",
"0.46477622",
"0.46452034",
"0.4626263",
"0.46153444",
"0.46132442",
"0.46080327",
"0.45983028",
"0.4585252",
"0.45829338",
"0.4574264",
"0.45644888",
"0.45526522",
"0.45517278",
"0.45487112",
"0.45480654",
"0.45468694",
"0.45452437",
"0.4527724",
"0.45273042",
"0.4526077",
"0.45167667",
"0.45095852",
"0.44920886",
"0.44913",
"0.44883665",
"0.44855207",
"0.44855207",
"0.44795004",
"0.44768086",
"0.44763786",
"0.44746712",
"0.44725925",
"0.44623736",
"0.44592166",
"0.44556785",
"0.44483683",
"0.44460887",
"0.44413576",
"0.4438106",
"0.44115132",
"0.44112635",
"0.44062215",
"0.4405416",
"0.4397362",
"0.4396921",
"0.43913382",
"0.43839127",
"0.43771914"
] | 0.76737136 | 0 |
Inflate the menu; this adds items to the action bar if it is present. | @Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.menu_splash__screen, menu);
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.actions, menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.actions_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_actions, menu);\n\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.action_bar_menu, menu);\r\n\t\tmMenu = menu;\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.act_bar_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_actions, menu);\r\n\t\treturn true;\r\n //return super.onCreateOptionsMenu(menu);\r\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\r\n\t inflater.inflate(R.menu.action_bar_all, menu);\r\n\t return super.onCreateOptionsMenu(menu);\r\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\t super.onCreateOptionsMenu(menu);\n\t\tMenuInflater muu= getMenuInflater();\n\t\tmuu.inflate(R.menu.cool_menu, menu);\n\t\treturn true;\n\t\t\n\t\t\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.adventure_archive, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.archive_menu, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n \tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n \t\tinflater.inflate(R.menu.main, menu);\n \t\tsuper.onCreateOptionsMenu(menu, inflater);\n \t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.action_menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater bow=getMenuInflater();\n\t\tbow.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t\t}",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.action_menu, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\t\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\t\t\n\t\t/* Inflate the menu; this adds items to the action bar if it is present */\n\t\tgetMenuInflater().inflate(R.menu.act_main, menu);\t\t\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflate = getMenuInflater();\n inflate.inflate(R.menu.menu, ApplicationData.amvMenu.getMenu());\n return true;\n }",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.menu, menu);\n\t\t\treturn true; \n\t\t\t\t\t\n\t\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.main, menu);\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) \n {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_bar, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_item, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t \n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\t//menu.clear();\n\t\tinflater.inflate(R.menu.soon_to_be, menu);\n\t\t//getActivity().getActionBar().show();\n\t\t//getActivity().getActionBar().setBackgroundDrawable(\n\t\t\t\t//new ColorDrawable(Color.rgb(223, 160, 23)));\n\t\t//return true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n this.getMenuInflater().inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.main, menu);\n }",
"@Override\n\tpublic void onCreateOptionsMenu( Menu menu, MenuInflater inflater )\n\t{\n\t\tsuper.onCreateOptionsMenu( menu, inflater );\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}",
"@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n \t// We must call through to the base implementation.\r\n \tsuper.onCreateOptionsMenu(menu);\r\n \t\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_menu, menu);\r\n\r\n return true;\r\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.inter_main, menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.action, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu (Menu menu){\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.custom_action_bar, menu);\n\t\treturn true;\n\t}",
"public void initMenubar() {\n\t\tremoveAll();\n\n\t\t// \"File\"\n\t\tfileMenu = new FileMenuD(app);\n\t\tadd(fileMenu);\n\n\t\t// \"Edit\"\n\t\teditMenu = new EditMenuD(app);\n\t\tadd(editMenu);\n\n\t\t// \"View\"\n\t\t// #3711 viewMenu = app.isApplet()? new ViewMenu(app, layout) : new\n\t\t// ViewMenuApplicationD(app, layout);\n\t\tviewMenu = new ViewMenuApplicationD(app, layout);\n\t\tadd(viewMenu);\n\n\t\t// \"Perspectives\"\n\t\t// if(!app.isApplet()) {\n\t\t// perspectivesMenu = new PerspectivesMenu(app, layout);\n\t\t// add(perspectivesMenu);\n\t\t// }\n\n\t\t// \"Options\"\n\t\toptionsMenu = new OptionsMenuD(app);\n\t\tadd(optionsMenu);\n\n\t\t// \"Tools\"\n\t\ttoolsMenu = new ToolsMenuD(app);\n\t\tadd(toolsMenu);\n\n\t\t// \"Window\"\n\t\twindowMenu = new WindowMenuD(app);\n\n\t\tadd(windowMenu);\n\n\t\t// \"Help\"\n\t\thelpMenu = new HelpMenuD(app);\n\t\tadd(helpMenu);\n\n\t\t// support for right-to-left languages\n\t\tapp.setComponentOrientation(this);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp=getMenuInflater();\n\t\tblowUp.inflate(R.menu.welcome_menu, menu);\n\t\treturn true;\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.listing, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.item, menu);\n return true;\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.resource, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu,menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.home_action_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.template, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n Log.d(\"onCreateOptionsMenu\", \"create menu\");\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.socket_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_menu, menu);//Menu Resource, Menu\n\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actionbar, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(toolbar_res, menu);\n updateMenuItemsVisibility(menu);\n return true;\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t// \n\t\tMenuInflater mi = getMenuInflater();\n\t\tmi.inflate(R.menu.thumb_actv_menu, menu);\n\t\t\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.swag_list_activity_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\n\t\treturn true;\n\t}",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.jarvi, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {\n menuInflater.inflate(R.menu.main, menu);\n\n }",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add__listing, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actmain, menu);\r\n return true;\r\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.buat_menu, menu);\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.layout.menu, menu);\n\t\treturn true;\n\t}",
"@Override\npublic boolean onCreateOptionsMenu(Menu menu) {\n\n\t\n\t\n\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\n\treturn super.onCreateOptionsMenu(menu);\n}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ichat, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater)\n\t{\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\tinflater.inflate(R.menu.expenses_menu, menu);\n\t}",
"@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}",
"@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}",
"@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.action_bar, menu);\n return true;\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp = getMenuInflater();\n\t\tblowUp.inflate(R.menu.status, menu);\n\t\treturn true;\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.menu, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn true;\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ui_main, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_activity_actions, menu);\n return true;\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }"
] | [
"0.7246102",
"0.7201358",
"0.7194834",
"0.7176498",
"0.71066517",
"0.7039537",
"0.7037961",
"0.70112145",
"0.70094734",
"0.69807225",
"0.6944953",
"0.69389373",
"0.6933199",
"0.6916928",
"0.6916928",
"0.6891486",
"0.68831646",
"0.68754137",
"0.68745375",
"0.68621665",
"0.68621665",
"0.68621665",
"0.68621665",
"0.68515885",
"0.68467957",
"0.68194443",
"0.6817494",
"0.6813087",
"0.6813087",
"0.6812847",
"0.6805774",
"0.6801204",
"0.6797914",
"0.6791314",
"0.6789091",
"0.67883503",
"0.6783642",
"0.6759701",
"0.6757412",
"0.67478645",
"0.6744127",
"0.6744127",
"0.67411774",
"0.6740183",
"0.6726017",
"0.6723245",
"0.67226785",
"0.67226785",
"0.67208904",
"0.67113477",
"0.67079866",
"0.6704564",
"0.6699229",
"0.66989094",
"0.6696622",
"0.66952467",
"0.66865396",
"0.6683476",
"0.6683476",
"0.6682188",
"0.6681209",
"0.6678941",
"0.66772443",
"0.6667702",
"0.66673946",
"0.666246",
"0.6657578",
"0.6657578",
"0.6657578",
"0.6656586",
"0.66544783",
"0.66544783",
"0.66544783",
"0.66524047",
"0.6651954",
"0.6650132",
"0.66487855",
"0.6647077",
"0.66467404",
"0.6646615",
"0.66464466",
"0.66449624",
"0.6644209",
"0.6643461",
"0.6643005",
"0.66421187",
"0.6638628",
"0.6634786",
"0.6633529",
"0.6632049",
"0.6632049",
"0.6632049",
"0.66315657",
"0.6628954",
"0.66281766",
"0.6627182",
"0.6626297",
"0.6624309",
"0.6619582",
"0.6618876",
"0.6618876"
] | 0.0 | -1 |
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml. | @Override
public boolean onOptionsItemSelected(MenuItem item) {
int id = item.getItemId();
//noinspection SimplifiableIfStatement
if (id == R.id.action_settings) {
return true;
}
return super.onOptionsItemSelected(item);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n //\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // Back button clicked\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // app icon in action bar clicked; goto parent activity.\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n switch (id) {\r\n case android.R.id.home:\r\n // app icon in action bar clicked; go home\r\n this.finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // app icon in action bar clicked; go home\n finish();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n Log.e(\"clik\", \"action bar clicked\");\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n\t public boolean onOptionsItemSelected(MenuItem item) {\n\t int id = item.getItemId();\n\t \n\t\t\tif (id == android.R.id.home) {\n\t\t\t\t// Respond to the action bar's Up/Home button\n\t\t\t\t// NavUtils.navigateUpFromSameTask(this);\n\t\t\t\tonBackPressed();\n\t\t\t\treturn true;\n\t\t\t}\n\t \n\t \n\t return super.onOptionsItemSelected(item);\n\t }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n // Respond to the action bar's Up/Home button\r\n case android.R.id.home:\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle presses on the action bar items\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n case R.id.action_clear:\n return true;\n case R.id.action_done:\n\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onActionHomePressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId())\n {\n case android.R.id.home :\n super.onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId ()) {\n case android.R.id.home:\n onBackPressed ();\n return true;\n\n default:\n break;\n }\n return super.onOptionsItemSelected ( item );\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t switch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\t// app icon in action bar clicked; go home \n\t\t\tIntent intent = new Intent(this, Kelutral.class); \n\t\t\tintent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); \n\t\t\tstartActivity(intent); \n\t\t\treturn true;\t\t\n\t case R.id.Search:\n\t \treturn onSearchRequested();\n\t\tcase R.id.AppInfo:\n\t\t\t// Place holder menu item\n\t\t\tIntent newIntent = new Intent(Intent.ACTION_VIEW,\n\t\t\t\t\tUri.parse(\"http://forum.learnnavi.org/mobile-apps/\"));\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\n\t\tcase R.id.Preferences:\n\t\t\tnewIntent = new Intent(getBaseContext(), Preferences.class);\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\t\n\t }\n\t return false;\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n onBackPressed();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // Intent homeIntent = new Intent(this, MainActivity.class);\n // homeIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n // startActivity(homeIntent);\n finish();\n return true;\n default:\n return (super.onOptionsItemSelected(item));\n }\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // setResult and close the activity when Action Bar Up Button clicked.\n if (item.getItemId() == android.R.id.home) {\n setResult(RESULT_CANCELED);\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // This ID represents the Home or Up button. In the case of this\n // activity, the Up button is shown. Use NavUtils to allow users\n // to navigate up one level in the application structure. For\n // more details, see the Navigation pattern on Android Design:\n //\n // http://developer.android.com/design/patterns/navigation.html#up-vs-back\n //\n \tgetActionBar().setDisplayHomeAsUpEnabled(false);\n \tgetFragmentManager().popBackStack();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if(id == android.R.id.home){\n onBackPressed();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n\n }\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@RequiresApi(api = Build.VERSION_CODES.M)\n @Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif(item.getItemId()==android.R.id.home)\r\n\t\t{\r\n\t\t\tgetActivity().onBackPressed();\r\n\t\t}\r\n\t\treturn super.onOptionsItemSelected(item);\r\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if(item.getItemId()==android.R.id.home){\n super.onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n return false;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n //Back arrow\n case android.R.id.home:\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // android.R.id.home是Android内置home按钮的id\n finish();\n break;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n this.onBackPressed();\n return false;\n }\n return false;\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n int id = item.getItemId();\n\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n\r\n case android.R.id.home:\r\n /*Intent i= new Intent(getApplication(), MainActivity.class);\r\n i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);\r\n startActivity(i);*/\r\n onBackPressed();\r\n finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case android.R.id.home:\n this.finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Pass the event to ActionBarDrawerToggle, if it returns\n // true, then it has handled the app icon touch event\n if (mDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n\n // Handle your other action bar items...\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n NavUtils.navigateUpFromSameTask(getActivity());\n return true;\n case R.id.action_settings:\n Intent i = new Intent(getActivity(), SettingsActivity.class);\n startActivity(i);\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n //Fixes the Up Button\n if(id == android.R.id.home) {\n BuildRoute.this.finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()){\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return true;\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if (id == android.R.id.home) {\n NavUtils.navigateUpFromSameTask(this);\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n break;\r\n }\r\n return true;\r\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif (item.getItemId() == android.R.id.home) {\n\t\t\tfinish();\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n onBackPressed();\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if ( id == android.R.id.home ) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.home) {\r\n NavUtils.navigateUpFromSameTask(this);\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_about) {\r\n AboutDialog();\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_exit) {\r\n finish();\r\n return true;\r\n }\r\n\r\n\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item)\n {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if( id == android.R.id.home ) // Back button of the actionbar\n {\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n//noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n// finish the activity\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n\t\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\t\tswitch (item.getItemId()) {\r\n\t\t\tcase android.R.id.home:\r\n\t\t\t\tfinish();\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\treturn super.onOptionsItemSelected(item);\r\n\t\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n return true;\n }\n return false;\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if(id == android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n if (item.getItemId() == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\r\n\t\tcase android.R.id.home:\r\n\t\t\tsetResult(RESULT_OK, getIntent());\r\n\t\t\tfinish();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n\n case android.R.id.home:\n this.finish();\n return true;\n }\n return true;\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint id = item.getItemId();\n\t\tif (id == android.R.id.home) {\n\t\t\tfinish();\n\t\t\treturn true;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if (id == android.R.id.home) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n //NavUtils.navigateUpFromSameTask(this);\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // todo: goto back activity from here\n finish();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n // Handle item selection\r\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n return true;\r\n\r\n case me.cchiang.lookforthings.R.id.action_sample:\r\n// Snackbar.make(parent_view, item.getTitle() + \" Clicked \", Snackbar.LENGTH_SHORT).show();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tcase R.id.scan_menu:\n\t\t\tonScan();\n\t\t\tbreak;\n\t\tcase R.id.opt_about:\n\t\t\t//onAbout();\n\t\t\tbreak;\n\t\tcase R.id.opt_exit:\n\t\t\tfinish();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t\treturn true;\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n super.onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(@NonNull MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n finish();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if(id==android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\r\n\t switch (item.getItemId()) {\r\n\t \t// back to previous page\r\n\t case android.R.id.home:\r\n\t finish();\r\n\t return true;\r\n\t }\r\n\t return super.onOptionsItemSelected(item);\r\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId())\n {\n case android.R.id.home:\n this.finish();\n return (true);\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case R.id.home:{\n NavUtils.navigateUpFromSameTask(this);\n return true;\n }\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n switch(item.getItemId())\n {\n case android.R.id.home:\n super.onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\treturn true;\n\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n\r\n int id = item.getItemId();\r\n if(id==android.R.id.home){\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }"
] | [
"0.7905683",
"0.7805918",
"0.7766949",
"0.77280927",
"0.76328415",
"0.76229936",
"0.7585238",
"0.75312966",
"0.7488599",
"0.7458191",
"0.7458191",
"0.74387765",
"0.74228644",
"0.7403772",
"0.7392029",
"0.7387223",
"0.73796284",
"0.73707056",
"0.7362735",
"0.7356231",
"0.73459065",
"0.7341539",
"0.7330543",
"0.73291767",
"0.73262036",
"0.7319113",
"0.73170453",
"0.7313933",
"0.73042923",
"0.73042923",
"0.73021746",
"0.7298463",
"0.7293577",
"0.72871155",
"0.728366",
"0.72813606",
"0.72788465",
"0.7260218",
"0.7260118",
"0.7260118",
"0.7260118",
"0.7259794",
"0.7250006",
"0.72262347",
"0.7219645",
"0.7217006",
"0.72047913",
"0.7201841",
"0.7200691",
"0.7192642",
"0.71852654",
"0.71776754",
"0.7168698",
"0.7167816",
"0.7154364",
"0.7154273",
"0.7136245",
"0.71353966",
"0.71353966",
"0.71301633",
"0.71298534",
"0.71242434",
"0.7123501",
"0.7123328",
"0.7122727",
"0.71177506",
"0.71177506",
"0.71177506",
"0.71177506",
"0.71177506",
"0.71171933",
"0.711691",
"0.7115056",
"0.71125406",
"0.71098775",
"0.7109295",
"0.7106308",
"0.70996547",
"0.70985293",
"0.7096212",
"0.709441",
"0.709441",
"0.708686",
"0.7083485",
"0.70817393",
"0.7080634",
"0.7073991",
"0.70688444",
"0.70622706",
"0.7060854",
"0.70605165",
"0.7052146",
"0.70383173",
"0.70383173",
"0.70361066",
"0.70361066",
"0.7036086",
"0.7032447",
"0.70313036",
"0.7029748",
"0.7019589"
] | 0.0 | -1 |
Causes the currently executing thread to sleep (temporarily cease execution) for the specified number of milliseconds, subject to the precision and accuracy of system timers and schedulers. The thread does not lose ownership of any monitors. | public static void sleep(long millis) {
try {
Thread.sleep(millis);
} catch(Throwable ignored) {
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void sleep(long milliseconds) {\n\t\tGeneral.sleep(milliseconds);\n\t}",
"private void sleep(long ms) throws InterruptedException {\n Thread.sleep(ms);\n }",
"public static void sleep(long msec)\n {\n try\n {\n Thread.sleep(msec);\n }\n catch (InterruptedException e)\n {\n }\n }",
"private void sleepMilliseconds(long milliseconds) {\n try {\n Thread.sleep(milliseconds);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }",
"public void sleep()\n\t{\n\t\ttry\n\t\t{\n\t\t\tThread.sleep(getMilliseconds());\n\t\t}\n\t\tcatch (InterruptedException e)\n\t\t{\n\t\t\t// ignore but return\n\t\t}\n\t}",
"protected final void sleep(int inMilliseconds) {\r\n\r\n\t\ttry {\r\n\t\t\tThread.sleep(inMilliseconds);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t} // catch\r\n\t}",
"private static void pause( int milliseconds )\n\t{\n\t\ttry\n\t\t{\n\t\t\tThread.sleep( milliseconds );\n\t\t}\n\t\tcatch( InterruptedException e )\n\t\t{\n\t\t}\n\t}",
"public static void sleep(long ms) {\n try {\n Logger.trace(\"Sleeping for {} ms\", ms);\n Thread.sleep(ms);\n } catch (InterruptedException e) { // NOSONAR squid:S2142\n Logger.warn(\"Interrupted while sleeping for {} ms: {}\", ms, e.getMessage());\n Thread.currentThread().interrupt();\n }\n }",
"public void warte( int ms )\n {\n try\n {\n Thread.sleep( ms );\n }\n catch ( InterruptedException e )\n {\n e.printStackTrace();\n }\n }",
"private void delay (int milliSec)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tThread.sleep (milliSec);\r\n\t\t}\r\n\t\tcatch (InterruptedException e)\r\n\t\t{\r\n\t\t}\r\n\t}",
"public static void delay(int ms){\r\n\t\t\r\n\t\ttry {\r\n\t\t\tThread.sleep(ms);\r\n\t\t} catch (InterruptedException e1) {\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t}",
"public static void sleep(long millis) {\n run(() -> Thread.sleep(millis));\n }",
"public void sleepy(long ms)\n\t{\n\t\ttry {\n\t\t\tsleep(ms);\n\t\t} catch(InterruptedException e) {}\n\t}",
"@Override\n protected void sleep(int milliseconds) {\n super.sleep(milliseconds);\n }",
"private static void snooze(int milliseconds) {\n\t\ttry {\n\t\t\tThread.sleep(milliseconds);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void wait(int milliseconds)\r\n {\r\n try\r\n {\r\n Thread.sleep(milliseconds);\r\n }\r\n catch (Exception e)\r\n {\r\n // ignoring exception at the moment\r\n }\r\n }",
"public final void sleep(int millis) {\n Utils.sleep(millis);\n }",
"private void sleep(long millis){\n\t\ttry {\n\t\t\tThread.sleep(millis);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private void sleep(long millis) {\n\t\ttry {\n\t\t\tThread.sleep(millis);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void sleep(long millis) {\n long end = System.currentTimeMillis() + millis;\n for (;;)\n try {\n Thread.sleep(end - System.currentTimeMillis());\n break;\n } catch (InterruptedException e) {\n e.printStackTrace();\n } catch (IllegalArgumentException e) {\n break; // If sleep value goes below 0\n }\n }",
"public void delay(long millisec) {\n try {\n Thread.sleep(millisec);\n } catch (InterruptedException e) {\n LOGGER.info(e.getMessage());\n }\n }",
"protected void sleep(final long millis) {\n try {\n Thread.sleep(millis);\n }\n catch (final InterruptedException ie) {\n // Ignore;\n }\n }",
"private void simulateDelay(long millis) {\n try {\n Thread.sleep(millis);\n } catch (InterruptedException ignored) {\n }\n }",
"public void sleep(long millis) {\n\n\t\tlong timeOld = System.currentTimeMillis();\n\t\tlong timeNew = 0;\n\t\tlong temp = timeNew - timeOld;\n\n\t\twhile (temp < millis) {\n\t\t\ttimeNew = System.currentTimeMillis();\n\t\t\ttemp = timeNew - timeOld;\n\t\t}\n\n\t}",
"private void sleepFor(long t) {\n\t\ttry {\n\t\t\tThread.sleep(t);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private void sleep() {\n try {\n Thread.sleep(3000L);\n }\n catch (Exception ignored) {\n Log.trace(\"Sleep got interrupted.\");\n }\n }",
"private void sleep() {\n try {\n Thread.sleep(500);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }",
"private void sleep()\n {\n try {\n Thread.sleep(Driver.sleepTimeMs);\n }\n catch (InterruptedException ex)\n {\n\n }\n }",
"private void sleepMilliseconds(int time) {\n int multipliedParam = (int) (Math.random() * time + 1);\n\n try {\n TimeUnit.MILLISECONDS.sleep(multipliedParam);\n Log.v(\"DLASync.sleep\", \" sleep \" + multipliedParam + \" milliseconds...\");\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }",
"public void pause(int milliseconds) {\n\t\ttry {\n\t\t\tThread.sleep(milliseconds);\n\t\t} catch (Exception e) {\n\t\t\t// Nothing to capture\n\t\t}\n\t}",
"public static void sleep() {\n\t\ttry {\n\t\t\tThread.sleep(10 * 1000);\n\t\t} catch (InterruptedException e) {\n\t\t}\n\t}",
"private void delay() {\n\ttry {\n\t\tThread.sleep(500);\n\t} catch (InterruptedException e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t}\t\n\t}",
"public static void delay() {\n\n long ONE_SECOND = 1_000;\n\n try {\n Thread.sleep(ONE_SECOND);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }",
"private void Sleep() {\n\t\ttry {\n\t\t\tThread.sleep(10 * 1000);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void delay(){\n try {\n Thread.sleep((long) ((samplingTime * simulationSpeed.factor)* 1000));\n } catch (InterruptedException e) {\n started = false;\n }\n }",
"public static void shortWait(){\r\n\t\ttry {\r\n\t\t\tTimeUnit.SECONDS.sleep(5);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\tSystem.out.println(\"Interruption happened due to sleep() method\");\r\n\t\t}\r\n\t}",
"public static void wait(int ms) {\n try {\n Thread.sleep(ms);\n } catch (InterruptedException ex) {\n Thread.currentThread().interrupt();\n }\n }",
"public void waitForMilliSeconds(long number) {\n\n\t\ttry {\n\t\t\tThread.sleep(number);\n\t\t} catch (InterruptedException ie) {\n\n\t\t}\n\n\t}",
"public static void sleep(long milis) {\n\t\ttry {\n\t\t\tThread.sleep(milis);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public static void delay() throws InterruptedException {\n // This is the sleep thread method that makes the program sleep\n // for a program amount of milliseconds to slow down the program\n Thread.sleep(1500);\n }",
"public static void sleepFor(int sec) throws InterruptedException {\n Thread.sleep(sec * 1000);\n }",
"private static void sleep(int n) {\n try {\n TimeUnit.MILLISECONDS.sleep(n);\n } catch (InterruptedException e) {\n System.out.print(\"\\ndelay failed\");\n }\n }",
"private static void delay() throws InterruptedException {\n\t\tTimeUnit.MILLISECONDS.sleep((long) (minDelay + (long)(Math.random() * ((maxDelay - minDelay) + 1))));\n\t}",
"public static void threadWait(long millis) {\r\n\t\ttry {\r\n\t\t\tThread.sleep(millis);\r\n\t\t} catch (Exception e) {\r\n\t\t\tthrow new RuntimeException(e);\r\n\t\t}\r\n\t}",
"public static void sleepFor(float time) {\n try {\r\n Thread.sleep((int)(time*1000));\r\n } catch (InterruptedException e){\r\n }\r\n }",
"@Override\n public native void delay(int ms);",
"public static void pause(int ms) \r\n {\r\n try \r\n {\r\n Thread.sleep(ms);\r\n } catch (InterruptedException e) \r\n {\r\n System.err.format(\"IOException: %s%n\", e);\r\n }\r\n }",
"@Override\n public void setSleepTime(int st) {\n this.sleepTime = st;\n\n // notify the update thread so that it can recalculate\n if (updateThread.isRunning())\n updateThread.interrupt();\n }",
"public static void wait(int ms){\n try\n {\n Thread.sleep(ms);\n }\n catch(InterruptedException ex)\n {\n Thread.currentThread().interrupt();\n }\n}",
"private void sleep(int number) {\n\t\ttry {\n\t\t\tThread.sleep(number);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}}",
"public void sleep() throws InterruptedException, IllegalArgumentException, Time.Ex_TimeNotAvailable, Time.Ex_TooLate\n {\n // The current time.\n AbsTime now;\n // The duration to wait.\n RelTime duration;\n\n // Make error if NEVER.\n if (isNEVER()) {\n throw new IllegalArgumentException(\"this == NEVER\");\n }\n\n // Don't do anything if ASAP.\n if (!isASAP()) {\n\n // Calculate the time now.\n now = new AbsTime();\n\n // Figure out how long to wait for.\n duration = Time.diff(this, now);\n\n // If duration is negative, throw the Ex_TooLate exception.\n if (duration.getValue() < 0L) {\n throw new Time.Ex_TooLate();\n }\n\n // Do the wait.\n duration.sleep();\n }\n }",
"public static void sleep(long aInDelay) {\n try {\n Thread.sleep(aInDelay);\n } catch (InterruptedException e) {\n Display.logUnexpectedError(e);\n }\n }",
"public static void sleepUninterruptibly(int millis){\n long remaining = millis;\n long end = System.currentTimeMillis() + remaining;\n boolean interrupted = false;\n try {\n do {\n try {\n Thread.sleep(remaining);\n return;\n } catch (InterruptedException e) {\n interrupted = true;\n long now = System.currentTimeMillis();\n remaining = end - now;\n }\n } while (true);\n }finally {\n if (interrupted) {\n Thread.currentThread().interrupt();\n }\n }\n }",
"public void delay(long waitAmount){\r\n long time = System.currentTimeMillis();\r\n while ((time+waitAmount)>=System.currentTimeMillis()){ \r\n //nothing\r\n }\r\n }",
"public static void sleepFor(long duration) {\n try {\n Thread.sleep(duration);\n } catch (InterruptedException e) {\n // There is nothing to be done here\n }\n }",
"private void emulateDelay() {\n try {\n Thread.sleep(700);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }",
"public static void sleep(int delay) {\n try {\n Thread.sleep(delay);\n } catch (InterruptedException e) {\n }\n }",
"private void delay( int n )\n {\n try {\n Thread.sleep(n);\n } catch( InterruptedException e ) {\n System.exit(0);\n }\n }",
"public void setDelayedTimeout(int seconds);",
"public static void longWait(){\r\n\t\ttry {\r\n\t\t\tTimeUnit.SECONDS.sleep(15);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\tSystem.out.println(\"Interruption happened due to sleep() method\");\r\n\t\t}\r\n\t}",
"public final void sleep(int minMillis, int maxMillis) {\n Utils.sleep(Utils.random(minMillis, maxMillis));\n }",
"private static void attendre (int tms) {\n try {Thread.currentThread().sleep(tms);} \r\n catch(InterruptedException e){ }\r\n }",
"private static void attendre (int tms) {\n try {Thread.currentThread().sleep(tms);} \r\n catch(InterruptedException e){ }\r\n }",
"public void moveDelay ( )\r\n\t{\r\n\t\ttry {\r\n\t\t\tThread.sleep( 1000 );\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"private void doNothing(long milliseconds)\n {\n try\n {\n Thread.sleep(milliseconds);\n }\n catch (InterruptedException e)\n {\n System.out.println(\"Unexpeced interrupt\");\n System.exit(0);\n }\n }",
"public void pauseFor( final long ms )\n\t{\n\t\tpauseUntil( System.currentTimeMillis() + ms );\n\t}",
"public void sleep(int time) {\n try {\n Thread.sleep(time);\n } catch (InterruptedException e) {\n }\n }",
"public static void wait(int miliseconds){\n\t\ttry {\n\t\t\tThread.sleep(miliseconds);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void doNothing(int milliseconds)\n {\n try\n {\n Thread.sleep(milliseconds);\n }\n catch (InterruptedException e)\n {\n System.out.println(\"Unexpected interrupt\");\n System.exit(0);\n }\n }",
"public static void pause(long millis) {\n\t\ttry {\n\t\t\tThread.sleep(millis);\n\t\t} catch (InterruptedException e) {\n\t\t}\n\t}",
"public static void sleep(double a){\n\n try {\n Thread.sleep((long)a*1000);\n } catch (InterruptedException e) {\n\n }\n\n }",
"public static void sleepForTwoSec() throws InterruptedException {\n Thread.sleep(2000);\n }",
"public void waitSleep(int pTime)\n{\n\n try {Thread.sleep(pTime);} catch (InterruptedException e) { }\n\n}",
"public void sleep(Agent ag, long millis) throws InterruptedException {\n getThreadFor(ag).sleep(millis);\n stats.add(new SleepStat(ag.getClass()), millis);\n\n }",
"void doDaSleep(int milli)\n {\n try {\n Thread.sleep(milli);\n } catch (InterruptedException ex) {\n\n }\n }",
"public final void throttle(final long ms) {\r\n this.throttledMillis += ms;\r\n try {\r\n Thread.sleep(ms);\r\n } catch (InterruptedException ex) {\r\n }\r\n }",
"public static void sleep1 () throws InterruptedException {\n\n // throws is cheaper way to get rid of exception\n Thread.sleep(2000);\n\n }",
"private void Perform_SLEEP()\n {\n if (Utils.bit5(get_ioreg(MCUCR)))\n mSleeping = true;\n return;\n }",
"private void sleep() {\n try {\n for(long count = 0L; this.DATA_STORE.isButtonPressed() && count < this.sleepTime; count += 20L) {\n Thread.sleep(20L);\n }\n } catch (InterruptedException iEx) {\n // For now, InterruptedException may be ignored if thrown.\n }\n\n if (this.sleepTime > 20L) {\n this.sleepTime = (long)((double)this.sleepTime / 1.3D);\n }\n }",
"private void sleep(int mul)\n {\n try {\n Thread.sleep(Driver.sleepTimeMs * mul);\n }\n catch (InterruptedException ex)\n {\n\n }\n }",
"public static void sleep(int sec) {\n\t try {\n\t Thread.sleep(sec * 1000);\n\t }\n\t catch(Exception ex) {\n\t \tlogger.error(\"Error:Sleeping the thread\", ex);\n\t }\n\t}",
"public final void sleepBetweenActions()\n {\n long numOfMillis = Long\n .parseLong(getProperty(\"wait.between.user.actions.in.millis\"));\n if (numOfMillis > 10000)\n {\n numOfMillis = 10000;\n } else if (numOfMillis < 0)\n {\n numOfMillis = 0;\n }\n try\n {\n Thread.sleep(numOfMillis);\n } catch (InterruptedException e)\n {\n e.printStackTrace();\n }\n }",
"public void delay(long waitAmountMillis)\n {\n long endTime = System.currentTimeMillis() + waitAmountMillis;\n\n while (System.currentTimeMillis() < endTime)\n {\n String checkStyle = \"is absolute garbage\";\n }\n }",
"void sleep();",
"void sleep();",
"public void WaitTime(long miliseconds)\r\n {\r\n long startTime = System.currentTimeMillis();\r\n \r\n long estimatedTime = System.currentTimeMillis() - startTime;\r\n try {\r\n //driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\r\n Thread.sleep(miliseconds);\r\n } catch (InterruptedException ex) {\r\n Logger.getLogger(MainDemoClass.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }",
"public static int sleep(final long ms) {\n if (ms <= 0) {\n Thread.yield();\n return 0;\n }\n final long s = System.nanoTime();\n try {\n Thread.sleep((long) (ms * Random.nextDouble(VARIANCE[0], VARIANCE[1])));\n } catch (final InterruptedException ignored) {\n }\n return (int) ((System.nanoTime() - s) / 1000000L);\n }",
"public static void sleep(int delay) {\n try {\n \t// int delay = (int)(Math.random()*maxDelay);\n Thread.sleep(delay);\n } catch (InterruptedException e) {}\n\t}",
"public static void sleep(int secs){\n\t\ttry{\n\t\t\tThread.sleep(secs*1000);\n\t\t} catch (InterruptedException e){\n\t\t\t//FIXME See what exception is being thrown and what to do about it\n\t\t}\n\t}",
"public void setDelay(double clock);",
"private void delay() {\n\t\tDelay.msDelay(1000);\n\t}",
"public static void sleep(int seconds){\n seconds*=1000;\n try {\n Thread.sleep(seconds);\n }catch (InterruptedException e){\n e.getStackTrace();\n }\n }",
"private void schedulerSleep() {\n\n\t\ttry {\n\n\t\t\tThread.sleep(timeSlice);\n\n\t\t} catch (InterruptedException e) {\n\t\t}\n\t\t;\n\n\t}",
"public static void forMS(Promise<Void> future, long ms) {\r\n Delay.future(future, ms);\r\n }",
"private void timeSync() throws InterruptedException {\n long realTimeDateMs = currentTimeMs - System.currentTimeMillis();\n long sleepTime = periodMs + realTimeDateMs + randomJitter();\n\n if (slowdownFactor != 1) {\n sleepTime = periodMs * slowdownFactor;\n }\n\n if (sleepTime > 0) {\n Thread.sleep(sleepTime);\n }\n }",
"public static void sleep(double seconds) {\n for (int i = 0; i < seconds * 10; i++) {\n try {\n while (Display.getCurrent().readAndDispatch())\n ;\n Thread.sleep(100);\n } catch (Exception e) {\n } catch (Error e) {\n }\n }\n }",
"public static void runOnUIThreadDelayed(\n final Runnable r,\n final long ms)\n {\n NullCheck.notNull(r);\n final Looper looper = NullCheck.notNull(Looper.getMainLooper());\n final Handler h = new Handler(looper);\n h.postDelayed(r, ms);\n }",
"void sleep()\r\n\t{\r\n\t\t\r\n\t}",
"public static void waitTime(long s) {\n long l = System.currentTimeMillis() + s;\n while (System.currentTimeMillis() < l) {\n\n }\n }",
"protected void pause() {\n sleep(300);\n }"
] | [
"0.7518337",
"0.74995154",
"0.7461928",
"0.73696303",
"0.7256407",
"0.7233176",
"0.71543074",
"0.71178496",
"0.7043293",
"0.6996169",
"0.69659626",
"0.6936504",
"0.69146746",
"0.68992823",
"0.6870503",
"0.6836642",
"0.68175495",
"0.679184",
"0.6783637",
"0.67715305",
"0.67590374",
"0.6736463",
"0.6732501",
"0.67131263",
"0.670039",
"0.66966087",
"0.669521",
"0.6690978",
"0.6683882",
"0.6665859",
"0.6664292",
"0.6640346",
"0.66160953",
"0.6543257",
"0.6501937",
"0.6483368",
"0.6469361",
"0.64502776",
"0.6436246",
"0.642444",
"0.6414357",
"0.63888687",
"0.6381767",
"0.6377145",
"0.6348275",
"0.634584",
"0.63202465",
"0.6319371",
"0.63182485",
"0.6300843",
"0.6289532",
"0.6286582",
"0.6275595",
"0.62727636",
"0.6269985",
"0.62606287",
"0.6240519",
"0.622895",
"0.6220043",
"0.61958444",
"0.6192995",
"0.61780417",
"0.61780417",
"0.61679304",
"0.61467123",
"0.6125862",
"0.610976",
"0.60930884",
"0.6080247",
"0.60791093",
"0.6076742",
"0.6067169",
"0.6053781",
"0.6038745",
"0.6022865",
"0.60074663",
"0.60033923",
"0.5999512",
"0.5994529",
"0.59937066",
"0.59781",
"0.5973708",
"0.59653926",
"0.5964185",
"0.5964185",
"0.5935105",
"0.59281325",
"0.5924893",
"0.5922207",
"0.5912156",
"0.5895423",
"0.58902735",
"0.58789396",
"0.5873488",
"0.5870509",
"0.5864105",
"0.58540195",
"0.5849655",
"0.5843893",
"0.58269656"
] | 0.6862086 | 15 |
TODO Autogenerated method stub | @Override
public void setStackTrace(StackTraceElement[] stackTrace) {
super.setStackTrace(stackTrace);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
Verify if groups are valid from database | @Test
void validateUserGroupExist(){
Boolean testing_result = true;
int issue_id = 0;
String issue_group = "";
ArrayList<String> groups = new ArrayList<>();
groups.add("admin");
groups.add("concordia");
groups.add("encs");
groups.add("comp");
groups.add("soen");
UserController uc = new UserController();
LinkedHashMap<Integer, String> db_groups = uc.getAllUserGroups();
for(int key : db_groups.keySet()){
if(!groups.contains(db_groups.get(key))){
issue_id = key;
issue_group = db_groups.get(key);
testing_result = false;
}
}
Assertions.assertTrue(testing_result, " There is an issue with user(id: " + issue_id + ") having group as: " + issue_group);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n void validateUserGroupCount() {\n LinkedHashMap<Integer, String> groups = new LinkedHashMap<>();\n\n UserManagerFactory uf = new UserManagerFactory();\n\n UserManager obj = uf.getInstance(\"group1\");\n\n groups = obj.getGroups();\n\n Assertions.assertTrue(groups.size() == 5, \"There should only have 5 pre-defined groups\");\n }",
"public void setInValidGroup(boolean inValidGroup){this.inValidGroup = inValidGroup;}",
"@Test\n\tpublic void testExistsInGroupSuccess() {\n\n\t\tgrupo.addColaborador(col1);\n\t\tboolean result = grupo.existsInGroup(col1);\n\n\t\tassertTrue(result);\n\t}",
"public boolean doesGroupsTableExist() {\r\n\r\n\t\t// Variable Declarations\r\n\t\tConnection conn = null;\r\n\t\tPreparedStatement stmt = null;\r\n\r\n\t\ttry {\r\n\t\t\t// Connect to Database\r\n\t\t\tClass.forName(JDBC_DRIVER);\r\n\t\t\tconn = DriverManager.getConnection(DATABASE, USER, PASS);\r\n\r\n\t\t\t// Create SQL Statement\r\n\t\t\tString sql = \"SELECT name FROM sqlite_master\";\r\n\t\t\tstmt = conn.prepareStatement(sql);\r\n\r\n\t\t\t// Get ResultSet by Column Name\r\n\t\t\tResultSet rs = stmt.executeQuery();\r\n\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tString tName = rs.getString(\"name\");\r\n\t\t\t\tif (tName.equals(\"groups\")) {\r\n\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException se) {\r\n\t\t\t// Handle Errors for JDBC\r\n\t\t\tse.printStackTrace();\r\n\t\t} catch (Exception ex) {\r\n\t\t\t// Handle Errors for Class\r\n\t\t\tex.printStackTrace();\r\n\t\t} finally {\r\n\t\t\t// Close Resources\r\n\t\t\ttry {\r\n\t\t\t\tif (stmt != null)\r\n\t\t\t\t\tstmt.close();\r\n\t\t\t} catch (SQLException se2) {\r\n\t\t\t} // Nothing to do\r\n\r\n\t\t\ttry {\r\n\t\t\t\tif (conn != null)\r\n\t\t\t\t\tconn.close();\r\n\t\t\t} catch (SQLException se) {\r\n\t\t\t\tse.printStackTrace();\r\n\t\t\t} // End Finally Try/Catch\r\n\t\t} // End Try/Catch\r\n\r\n\t\treturn false;\r\n\t}",
"boolean validateUserGroups(SessionState state, String userId, Assignment asn)\n\t{\n\t\tSite site = getSite(asn);\n\n\t\t// finding any of the user's groups is sufficient, if they are in multiple groups the check\n\t\t// will fail no matter which of their groups is used\n\t\tOptional<Group> userGroup = getGroupsWithUser(userId, asn, site).stream().findAny();\n\t\tif (userGroup.isPresent())\n\t\t{\n\t\t\treturn checkSubmissionForUsersInMultipleGroups(asn, userGroup.get(), state, true).isEmpty();\n\t\t}\n\n\t\t// user is not in any assignment groups, if they are an instructor this is probably the Student View feature so let them through\n\t\treturn assignmentService.allowAddAssignment(site.getId()) || assignmentService.allowUpdateAssignmentInContext(site.getId());\n\t}",
"private boolean determineValid(){\n for(Integer val : group){\n if(!racers.containsKey(val)){\n WrongNumber = val;\n return false;\n }\n }\n return true;\n }",
"@Override\n\tpublic boolean checkExists(String groupName) throws DataBackendException\n {\n boolean exists = false;\n\n Connection con = null;\n\n try\n {\n con = Transaction.begin();\n\n doSelectByName(groupName, con);\n\n Transaction.commit(con);\n con = null;\n\n exists = true;\n }\n catch (NoRowsException e)\n {\n exists = false;\n }\n catch (TooManyRowsException e)\n {\n throw new DataBackendException(\n \"Multiple groups with same name '\" + groupName + \"'\");\n }\n catch (TorqueException e)\n {\n throw new DataBackendException(\"Error retrieving group information\", e);\n }\n finally\n {\n if (con != null)\n {\n Transaction.safeRollback(con);\n }\n }\n\n return exists;\n }",
"private boolean isValid(String groupName) {\n if (groupName != null) {\n if (groupName.length() > 1) {\n return true;\n }\n }\n return false;\n }",
"public synchronized boolean checkGroup(String groupName) {\n\t\t\tif(groupList.containsKey(groupName)) { \n\t\t\t\treturn true; \n\t\t\t}\n\t\t\telse { \n\t\t\t\treturn false; \n\t\t\t}\n\t\t}",
"public void testRequiredRolesMultipleRequiredGroupsOk() {\n User elmer = RoleFactory.createUser(\"elmer\");\n User pepe = RoleFactory.createUser(\"pepe\");\n User bugs = RoleFactory.createUser(\"bugs\");\n User daffy = RoleFactory.createUser(\"daffy\");\n \n Group administrators = RoleFactory.createGroup(\"administrators\");\n administrators.addRequiredMember(m_anyone);\n administrators.addMember(elmer);\n administrators.addMember(pepe);\n administrators.addMember(bugs);\n\n Group family = RoleFactory.createGroup(\"family\");\n family.addRequiredMember(m_anyone);\n family.addMember(elmer);\n family.addMember(pepe);\n family.addMember(daffy);\n\n Group alarmSystemActivation = RoleFactory.createGroup(\"alarmSystemActivation\");\n alarmSystemActivation.addMember(m_anyone);\n alarmSystemActivation.addRequiredMember(administrators);\n alarmSystemActivation.addRequiredMember(family);\n\n assertTrue(m_roleChecker.isImpliedBy(alarmSystemActivation, elmer));\n assertTrue(m_roleChecker.isImpliedBy(alarmSystemActivation, pepe));\n assertFalse(m_roleChecker.isImpliedBy(alarmSystemActivation, bugs));\n assertFalse(m_roleChecker.isImpliedBy(alarmSystemActivation, daffy));\n }",
"public void testRequiredRolesMultipleGroupsOk() {\n User elmer = RoleFactory.createUser(\"elmer\");\n User pepe = RoleFactory.createUser(\"pepe\");\n User bugs = RoleFactory.createUser(\"bugs\");\n User daffy = RoleFactory.createUser(\"daffy\");\n \n Group administrators = RoleFactory.createGroup(\"administrators\");\n administrators.addRequiredMember(m_anyone);\n administrators.addMember(elmer);\n administrators.addMember(pepe);\n administrators.addMember(bugs);\n\n Group family = RoleFactory.createGroup(\"family\");\n family.addRequiredMember(m_anyone);\n family.addMember(elmer);\n family.addMember(pepe);\n family.addMember(daffy);\n\n Group alarmSystemActivation = RoleFactory.createGroup(\"alarmSystemActivation\");\n alarmSystemActivation.addRequiredMember(m_anyone);\n alarmSystemActivation.addMember(administrators);\n alarmSystemActivation.addMember(family);\n\n assertTrue(m_roleChecker.isImpliedBy(alarmSystemActivation, elmer));\n assertTrue(m_roleChecker.isImpliedBy(alarmSystemActivation, pepe));\n assertTrue(m_roleChecker.isImpliedBy(alarmSystemActivation, bugs));\n assertTrue(m_roleChecker.isImpliedBy(alarmSystemActivation, daffy));\n }",
"public static boolean uiValidation(Group group) {\n StringBuilder errors = new StringBuilder();\n if (group.getName() == null) {\n errors.append(\"Please specify a groupname\").append(System.lineSeparator());\n } else if (group.getName().isEmpty()) {\n errors.append(\"Invalid Groupname\").append(System.lineSeparator());\n }\n\n if (!errors.toString().equals(\"\")) {\n AlertHelper.invalidArgumentExceptionAlert(errors.toString());\n return false;\n }\n return true;\n }",
"public void verifyGroupPage()\n\t{\n\t\t_waitForJStoLoad();\n\t\tString groupPageText= groups.getText();\n\t\tAssert.assertEquals(FileNames.Groups.toString(), groupPageText);\n\t}",
"public boolean getInValidGroup(){return this.inValidGroup;}",
"@Test\n public void checkValidEntity() {\n cleanEntity0();\n entity0 = EntityUtil.getSampleRole();\n final Set<ConstraintViolation<Object>> cv = PersistenceValidation.validate(entity0);\n assertTrue(cv.isEmpty());\n }",
"@Test\n void getAllClientIdWithAccess_throwingGroupCheck_stillWorks() {\n when(groupsConnection.isMemberOfGroup(any(), any())).thenThrow(new RuntimeException(\"blah\"));\n AuthenticatedRegistrarAccessor registrarAccessor =\n new AuthenticatedRegistrarAccessor(\n USER, ADMIN_CLIENT_ID, SUPPORT_GROUP, lazyGroupsConnection);\n\n verify(groupsConnection).isMemberOfGroup(\"[email protected]\", SUPPORT_GROUP.get());\n assertThat(registrarAccessor.getAllClientIdWithRoles())\n .containsExactly(CLIENT_ID_WITH_CONTACT, OWNER);\n verify(lazyGroupsConnection).get();\n }",
"public boolean isEveryIdValid()\n {\n return(idValidation.size()==0);\n }",
"public boolean isNotNullGroupId() {\n return genClient.cacheValueIsNotNull(CacheKey.groupId);\n }",
"private boolean checkInfo()\n {\n boolean flag = true;\n if(gName.isEmpty())\n {\n groupName.setError(\"Invalid name\");\n flag = false;\n }\n if(gId.isEmpty())\n {\n groupId.setError(\"Invalid id\");\n flag = false;\n }\n if(gAddress.isEmpty())\n {\n groupAddress.setError(\"Invalid address\");\n flag = false;\n }\n\n for(char c : gName.toCharArray()){\n if(Character.isDigit(c)){\n groupName.setError(\"Invalid Name\");\n flag = false;\n groupName.requestFocus();\n }\n }\n\n if(groupType.isEmpty())\n {\n flag = false;\n rPublic.setError(\"Choose one option\");\n }\n\n if(time.isEmpty())\n time = \"not set\";\n\n if(groupDescription.getText().toString().length()<20||groupDescription.getText().toString().length()>200)\n groupDescription.setError(\"Invalid description\");\n\n return flag;\n }",
"public boolean isDuplicateGroup(String groupName) {\n \n Connection con = null;\n PreparedStatement ps = null;\n ResultSet rs = null;\n int count = 0;\n \n //retrieve all Groups that match the name\n try {\n\n con = DBUtil.getConnection();\n ps = con.prepareStatement(SQL_SELECT_DUPLICATE_GROUP_COUNT);\n ps.setString(1, groupName);\n \n //get the count\n rs = ps.executeQuery();\n rs.next();\n count = rs.getInt(1);\n if (count != 0)\n return true;\n \n } catch (SQLException e) {\n throw new EJBException(\"Error checking for duplicate groups in MaintainParticipationGroupsBean.isDuplicateGroup()\", e);\n }\n finally {\n DBUtil.cleanup(con, ps, rs);\n }\n \n return false;\n }",
"boolean hasAdGroup();",
"public Future<List<String>> checkResGrp(List<String> resGrpList) {\n Promise<List<String>> p = Promise.promise();\n\n Collector<Row, ?, List<String>> catIdCollector =\n Collectors.mapping(row -> row.getString(CAT_ID), Collectors.toList());\n\n try {\n\n if (resGrpList.isEmpty()) {\n p.complete(new ArrayList<>());\n return p.future();\n }\n\n pool.withConnection(\n conn ->\n conn.preparedQuery(CHECKRESGRP)\n .collecting(catIdCollector)\n .execute(Tuple.of(resGrpList.toArray(String[]::new)))\n .onFailure(\n obj -> {\n LOGGER.error(\"checkResGrp db fail :: \" + obj.getLocalizedMessage());\n p.fail(INTERNALERROR);\n })\n .onSuccess(\n success -> {\n List<String> validItems = success.value();\n List<String> invalid =\n resGrpList.stream()\n .filter(item -> !validItems.contains(item))\n .collect(Collectors.toList());\n p.complete(invalid);\n }));\n } catch (Exception e) {\n LOGGER.error(\"Fail checkResGrp : \" + e.toString());\n p.fail(INTERNALERROR);\n }\n return p.future();\n }",
"@VisibleForTesting\n void checkGroupDeletions() {\n final String METHOD = \"checkGroupDeletions\";\n LOGGER.entering(CLASS_NAME, METHOD);\n\n NotesView groupView = null;\n ArrayList<Long> groupsToDelete = new ArrayList<Long>();\n Statement stmt = null;\n try {\n groupView = directoryDatabase.getView(NCCONST.DIRVIEW_VIMGROUPS);\n groupView.refresh();\n stmt = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,\n ResultSet.CONCUR_READ_ONLY);\n ResultSet rs = stmt.executeQuery(\n \"select groupid,groupname,pseudogroup from \" + groupTableName);\n while (rs.next()) {\n long groupId;\n String groupName;\n boolean pseudoGroup = false;\n try {\n groupId = rs.getLong(1);\n groupName = rs.getString(2);\n pseudoGroup = rs.getBoolean(3);\n } catch (SQLException e) {\n LOGGER.log(Level.WARNING, \"Failure reading group table data\", e);\n continue;\n }\n\n if (pseudoGroup) {\n LOGGER.log(Level.FINEST,\n \"Skipping deletion check for pseudo-group: {0}\", groupName);\n continue;\n }\n try {\n if (Util.isCanonical(groupName)) {\n NotesName notesGroupName = notesSession.createName(groupName);\n groupName = notesGroupName.getAbbreviated();\n }\n NotesDocument notesGroupDoc = groupView.getDocumentByKey(groupName);\n if (notesGroupDoc == null) {\n // This group no longer exists.\n LOGGER.log(Level.INFO, \"Group no longer exists in source directory\"\n + \" and will be deleted: {0}\", groupName);\n groupsToDelete.add(groupId);\n }\n Util.recycle(notesGroupDoc);\n } catch (Exception e) {\n LOGGER.log(Level.WARNING,\n \"Error checking deletions for group: \" + groupName, e);\n }\n }\n } catch (Exception e) {\n LOGGER.log(Level.WARNING, \"Error checking deletions\", e);\n } finally {\n Util.recycle(groupView);\n Util.close(stmt);\n }\n\n for (Long groupId : groupsToDelete) {\n try {\n removeGroup(groupId);\n } catch (SQLException e) {\n LOGGER.log(Level.WARNING, \"Error removing group: \" + groupId, e);\n }\n }\n LOGGER.exiting(CLASS_NAME, METHOD);\n }",
"boolean checkValidity();",
"void checkValid();",
"boolean isVirtualGroup(Object groupID) throws Exception;",
"public boolean isGroupPossible()\n\t\t{\n\t\t\treturn this.m_allowedAddGroupRefs != null && ! this.m_allowedAddGroupRefs.isEmpty();\n\n\t\t}",
"@Test\n public void testGroupModification() {\n app.getNavigationHelper().gotoGroupPage();\n\n if (! app.getGroupHelper().isThereAGroup()) {//якщо не існує ні одної групи\n app.getGroupHelper().createGroup(new CreateGroupData(\"Tol-AutoCreate\", \"Tol-AutoCreate\", null));\n }\n\n //int before = app.getGroupHelper().getGroupCount(); //count groups before test\n List<CreateGroupData> before = app.getGroupHelper().getGroupList(); // quantity of group before creation\n app.getGroupHelper().selectGroup(before.size() - 1);\n app.getGroupHelper().initGroupModification();\n CreateGroupData group = new CreateGroupData(before.get(before.size()-1).getId(),\"Change1-name\", \"Change2-header\", \"Change3-footer\");\n app.getGroupHelper().fillGroupData(group);\n app.getGroupHelper().submitGroupModification();\n app.getGroupHelper().returnToGroupPage();\n //int after = app.getGroupHelper().getGroupCount();\n List<CreateGroupData> after = app.getGroupHelper().getGroupList(); // quantity of group after creation\n //Assert.assertEquals(after, before);\n Assert.assertEquals(after.size(), before.size());\n\n before.remove(before.size() - 1);\n before.add(group); //add object to the list after creation/modification of a group\n Assert.assertEquals(new HashSet<>(before), new HashSet<>(after)); //compare two lists без учета порядка\n }",
"public boolean hasGroup(String groupName){\n\t\tGuild self = this;\r\n//\t\tSystem.out.println(\"this=\" + name +\" self.groups=\"+ groups);\r\n\t\tif (self.groups == null || self.groups.isEmpty())/// try and get it again from db\r\n\t\t\tself = MysticGuilds.getGuild(this.getName());\r\n\t\tif (self == null || self.groups == null || self.groups.isEmpty())\r\n\t\t\treturn false;\r\n\t\tfor (PermissionGroup group: self.groups){\r\n//\t\t\tSystem.out.println(\"looking at group = \" + group);\r\n\t\t\tif (group.getName().equalsIgnoreCase(groupName))\r\n\t\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public static boolean validateGroup(String name, String project){\n \n boolean r = true;\n\t\t\t \n for(int i= 0; i < groups.length; i++){\n for(int j = 0; j < groups[i].length; j++){\n\tif(j == 0 ){\n\t if(groups[i][j].equals(project)){\n\t System.out.println(\"Found a project \" +groups[i][j]);\n\t try{\n\t String[] tempArray = groups[i];\n\t duplicateCheckLoop:\n\t\tfor( String s : tempArray) {\n\t\t if(s.equals(name)){\n\t\t r = false;\n\t\t break duplicateCheckLoop;\n\t\t } r = true;\n\t }\n\t }catch (Exception e) {\n\t String error = e.getMessage();\n\t logger.writeLog(\"validateGroup Method : \", error);\n\t } \n\t }\n }\n }\n }\n \n return r;\n }",
"private boolean checkMembers(ArrayList <String> group1, ArrayList <String> group2) {\n\t\tCollections.sort(group1);\n\t\tCollections.sort(group2);\n\t\treturn(group1.equals(group2));\n\t}",
"@Test\n\tpublic void testNameExistsInGroupSuccess() {\n\n\t\tgrupo.addColaborador(col2);\n\t\tcol2.setNome(\"Sergio\");\n\t\tboolean result = grupo.nameExistsInGroup(\"Sergio\");\n\n\t\tassertTrue(result);\n\t}",
"private boolean existeDatosGrupoPuestos(ConcursoPuestoAgr concursoPuestoAgr) {\r\n\t\tString query =\r\n\t\t\t\"SELECT * FROM seleccion.datos_grupo_puesto where id_concurso_puesto_agr = \"\r\n\t\t\t\t+ concursoPuestoAgr.getIdConcursoPuestoAgr();\r\n\t\treturn seleccionUtilFormController.existeNative(query);\r\n\t}",
"public boolean isStillValid() {\n if (!this.mAbortOnInflation && this.mEntry.getSbn().getGroupKey() == this.mOriginalNotification.getGroupKey() && this.mEntry.getSbn().getNotification().isGroupSummary() == this.mOriginalNotification.getNotification().isGroupSummary()) {\n return true;\n }\n return false;\n }",
"private boolean contains(Collection<Group> groups, Group group) {\n for (Group g : groups) {\n if (group.getName().equals(g.getName()))\n return true;\n }\n return false;\n }",
"public void testExistingDriverHasGradeGroup() throws MalBusinessException{\n\t\tunallocatedDriverId = ((BigDecimal)em.createNativeQuery(TestQueryConstants.READ_DRIVER_ID_UNALLOCATED).getSingleResult()).longValue();\t\t\n\t\tdriver = driverService.getDriver(unallocatedDriverId);\n\t\tassertNotNull(\"Grade Group does not exist for driver Id \" +unallocatedDriverId, driver.getDgdGradeCode() );\n\t}",
"public void testGroupDoesNotImplySameRequiredGroup() {\n User user = RoleFactory.createUser(\"foo\");\n \n Group group = RoleFactory.createGroup(\"bar\");\n group.addRequiredMember(group);\n group.addMember(user);\n \n assertFalse(m_roleChecker.isImpliedBy(group, group));\n }",
"@Test\n public void createSqlQueryWithGroupBySucceed()\n {\n // arrange\n // act\n QuerySpecification querySpecification = new QuerySpecificationBuilder(\"*\", QuerySpecificationBuilder.FromType.ENROLLMENTS).groupBy(\"validGroupBy\").createSqlQuery();\n\n // assert\n Helpers.assertJson(querySpecification.toJson(), \"{\\\"query\\\":\\\"select * from enrollments group by validGroupBy\\\"}\");\n }",
"private static boolean allowClose(MutableGroup currentGroup) {\n \t\tif (currentGroup instanceof Instance) {\n \t\t\treturn false; // instances may never be closed, they have no parent in the group stack\n \t\t}\n \t\t\n \t\tif (currentGroup.getDefinition() instanceof GroupPropertyDefinition && \n \t\t\t\t((GroupPropertyDefinition) currentGroup.getDefinition()).getConstraint(ChoiceFlag.class).isEnabled()) {\n \t\t\t// group is a choice\n \t\t\tIterator<QName> it = currentGroup.getPropertyNames().iterator();\n \t\t\tif (it.hasNext()) {\n \t\t\t\t// choice has at least on value set -> check cardinality for the corresponding property\n \t\t\t\tQName name = it.next();\n \t\t\t\treturn isValidCardinality(currentGroup, currentGroup.getDefinition().getChild(name));\n \t\t\t}\n \t\t\t// else check all children like below\n \t\t}\n \t\t\n \t\t// determine all children\n \t\tCollection<? extends ChildDefinition<?>> children = DefinitionUtil.getAllChildren(currentGroup.getDefinition());\n \t\n \t\t// check cardinality of children\n \t\tfor (ChildDefinition<?> childDef : children) {\n \t\t\tif (isValidCardinality(currentGroup, childDef)) { //XXX is this correct?! should it be !isValid... instead?\n \t\t\t\treturn false;\n \t\t\t}\n \t\t}\n \t\t\n \t\treturn true;\n \t}",
"@Override\n public boolean existsGroupWithName(String groupName) {\n // \"Feature 'existsGroupWithName in OAuth 2 identity server' is not implemented\"\n return false;\n }",
"public void testAclGroupsSupported()\n {\n assertTrue(_ruleSet.addGroup(\"aclgroup\", Arrays.asList(new String[] {\"usera\", \"userb\"}))); \n \n _ruleSet.grant(1, \"aclgroup\", Permission.ALLOW, Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY);\n assertEquals(1, _ruleSet.getRuleCount());\n\n assertEquals(Result.ALLOWED, _ruleSet.check(TestPrincipalUtils.createTestSubject(\"usera\"),Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY));\n assertEquals(Result.ALLOWED, _ruleSet.check(TestPrincipalUtils.createTestSubject(\"userb\"),Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY));\n assertEquals(Result.DEFER, _ruleSet.check(TestPrincipalUtils.createTestSubject(\"userc\"),Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY));\n }",
"@Test\n public void groupByStoreSucceed()\n {\n // arrange\n final String groupByClause = \"validGroupBy\";\n // act\n QuerySpecificationBuilder querySpecificationBuilder = new QuerySpecificationBuilder(\"*\", QuerySpecificationBuilder.FromType.ENROLLMENTS).groupBy(groupByClause);\n\n // assert\n assertEquals(groupByClause, Deencapsulation.getField(querySpecificationBuilder, \"groupBy\"));\n }",
"private boolean isFormsExistInGroup(String groupName)throws CoeusUIException{\r\n RequesterBean requesterBean = new RequesterBean();\r\n boolean isFormExistsInGroup = false;\r\n requesterBean.setFunctionType(FORM_EXISTS_IN_GROUP);\r\n requesterBean.setDataObject(groupName);\r\n AppletServletCommunicator comm = new AppletServletCommunicator(connect,requesterBean);\r\n comm.send();\r\n ResponderBean responder = comm.getResponse();\r\n if(responder != null){\r\n if(responder.isSuccessfulResponse() && responder.getDataObject() != null){\r\n isFormExistsInGroup = ((Boolean)responder.getDataObject()).booleanValue();\r\n }\r\n }else {\r\n throw new CoeusUIException(coeusMessageResources.parseMessageKey(\"coeusApplet_exceptionCode.1147\"));\r\n }\r\n return isFormExistsInGroup;\r\n }",
"private void editValidItems(GroupOwnerModel group, String[] grps) {\r\n\t\tgroup.setGroupNameList(new ArrayList<String>());\r\n\t\tfor(String str:grps){\r\n\t\t\t for(SelectItem item: groupOwnerModel.getGroupSelectList()){\r\n\t\t\t\tif(str.trim().equalsIgnoreCase(item.getLabel())){\r\n\t\t\t\t\tgroup.getGroupNameList().add(item.getValue().toString());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"boolean groupSupports(Object groupID, int groupConstant) throws Exception;",
"@Test\n\tvoid updateUserAddGroup() {\n\t\t// Pre condition, check the user \"wuser\", has not yet the group \"DIG\n\t\t// RHA\" we want to be added by \"fdaugan\"\n\t\tinitSpringSecurityContext(\"fdaugan\");\n\t\tfinal TableItem<UserOrgVo> initialResultsFromUpdater = resource.findAll(null, null, \"wuser\",\n\t\t\t\tnewUriInfoAsc(\"id\"));\n\t\tAssertions.assertEquals(1, initialResultsFromUpdater.getRecordsTotal());\n\t\tAssertions.assertEquals(1, initialResultsFromUpdater.getData().get(0).getGroups().size());\n\t\tAssertions.assertEquals(\"Biz Agency Manager\",\n\t\t\t\tinitialResultsFromUpdater.getData().get(0).getGroups().get(0).getName());\n\n\t\t// Pre condition, check the user \"wuser\", has no group visible by\n\t\t// \"assist\"\n\t\tinitSpringSecurityContext(\"assist\");\n\t\tfinal TableItem<UserOrgVo> assisteResult = resource.findAll(null, null, \"wuser\", newUriInfoAsc(\"id\"));\n\t\tAssertions.assertEquals(1, assisteResult.getRecordsTotal());\n\t\tAssertions.assertEquals(0, assisteResult.getData().get(0).getGroups().size());\n\n\t\t// Pre condition, check the user \"wuser\", \"Biz Agency Manager\" is not\n\t\t// visible by \"mtuyer\"\n\t\tinitSpringSecurityContext(\"mtuyer\");\n\t\tfinal TableItem<UserOrgVo> usersFromOtherGroupManager = resource.findAll(null, null, \"wuser\",\n\t\t\t\tnewUriInfoAsc(\"id\"));\n\t\tAssertions.assertEquals(1, usersFromOtherGroupManager.getRecordsTotal());\n\t\tAssertions.assertEquals(0, usersFromOtherGroupManager.getData().get(0).getGroups().size());\n\n\t\t// Add a new valid group \"DIG RHA\" to \"wuser\" by \"fdaugan\"\n\t\tinitSpringSecurityContext(\"fdaugan\");\n\t\tfinal UserOrgEditionVo user = new UserOrgEditionVo();\n\t\tuser.setId(\"wuser\");\n\t\tuser.setFirstName(\"William\");\n\t\tuser.setLastName(\"User\");\n\t\tuser.setCompany(\"ing\");\n\t\tuser.setMail(\"[email protected]\");\n\t\tfinal List<String> groups = new ArrayList<>();\n\t\tgroups.add(\"DIG RHA\");\n\t\tgroups.add(\"Biz Agency Manager\");\n\t\tuser.setGroups(groups);\n\t\tresource.update(user);\n\n\t\t// Check the group \"DIG RHA\" is added and\n\t\tfinal TableItem<UserOrgVo> tableItem = resource.findAll(null, null, \"wuser\", newUriInfoAsc(\"id\"));\n\t\tAssertions.assertEquals(1, tableItem.getRecordsTotal());\n\t\tAssertions.assertEquals(1, tableItem.getRecordsFiltered());\n\t\tAssertions.assertEquals(1, tableItem.getData().size());\n\t\tAssertions.assertEquals(2, tableItem.getData().get(0).getGroups().size());\n\t\tAssertions.assertEquals(\"Biz Agency Manager\", tableItem.getData().get(0).getGroups().get(0).getName());\n\t\tAssertions.assertEquals(\"DIG RHA\", tableItem.getData().get(0).getGroups().get(1).getName());\n\n\t\t// Check the user \"wuser\", still has no group visible by \"assist\"\n\t\tinitSpringSecurityContext(\"assist\");\n\t\tfinal TableItem<UserOrgVo> assisteResult2 = resource.findAll(null, null, \"wuser\", newUriInfoAsc(\"id\"));\n\t\tAssertions.assertEquals(1, assisteResult2.getRecordsTotal());\n\t\tAssertions.assertEquals(0, assisteResult2.getData().get(0).getGroups().size());\n\n\t\t// Check the user \"wuser\", still has the group \"DIG RHA\" visible by\n\t\t// \"mtuyer\"\n\t\tinitSpringSecurityContext(\"mtuyer\");\n\t\tfinal TableItem<UserOrgVo> usersFromOtherGroupManager2 = resource.findAll(null, null, \"wuser\",\n\t\t\t\tnewUriInfoAsc(\"id\"));\n\t\tAssertions.assertEquals(1, usersFromOtherGroupManager2.getRecordsTotal());\n\t\tAssertions.assertEquals(\"DIG RHA\", usersFromOtherGroupManager2.getData().get(0).getGroups().get(0).getName());\n\n\t\t// Restore the old state\n\t\tinitSpringSecurityContext(\"fdaugan\");\n\t\tfinal UserOrgEditionVo user2 = new UserOrgEditionVo();\n\t\tuser2.setId(\"wuser\");\n\t\tuser2.setFirstName(\"William\");\n\t\tuser2.setLastName(\"User\");\n\t\tuser2.setCompany(\"ing\");\n\t\tuser2.setMail(\"[email protected]\");\n\t\tfinal List<String> groups2 = new ArrayList<>();\n\t\tgroups2.add(\"Biz Agency Manager\");\n\t\tuser.setGroups(groups2);\n\t\tresource.update(user);\n\t\tfinal TableItem<UserOrgVo> initialResultsFromUpdater2 = resource.findAll(null, null, \"wuser\",\n\t\t\t\tnewUriInfoAsc(\"id\"));\n\t\tAssertions.assertEquals(1, initialResultsFromUpdater2.getRecordsTotal());\n\t\tAssertions.assertEquals(1, initialResultsFromUpdater2.getData().get(0).getGroups().size());\n\t\tAssertions.assertEquals(\"Biz Agency Manager\",\n\t\t\t\tinitialResultsFromUpdater2.getData().get(0).getGroups().get(0).getName());\n\t}",
"public boolean isValid();",
"public boolean isValid();",
"public boolean isValid();",
"public boolean isValid();",
"public boolean isValid();",
"private boolean validateObjectForDB() {\n\t\tboolean l_ret = true;\n\t\tif (m_country_name.equals(\"\")) {\n\t\t\tm_error_string = \"Unable to add the country. Country name is required.\";\n\t\t\tl_ret = false;\n\t\t}\n\t\treturn (l_ret);\n\t}",
"private void checkCollisionGroupInternal() {\n\t\tcheckInternalCollisions();\r\n\t\t\r\n\t\t// for every composite in this Group..\r\n\t\tint clen = _composites.size();\r\n\t\tfor (int j = 0; j < clen; j++) {\r\n\t\t\t\r\n\t\t\tComposite ca = _composites.get(j);\r\n\t\t\t\r\n\t\t\t// .. vs non composite particles and constraints in this group\r\n\t\t\tca.checkCollisionsVsCollection(this);\r\n\t\t\t\r\n\t\t\t// ...vs every other composite in this Group\r\n\t\t\tfor (int i = j + 1; i < clen; i++) {\r\n\t\t\t\tComposite cb = _composites.get(i);\r\n\t\t\t\tca.checkCollisionsVsCollection(cb);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Test\n\tpublic void testGenerateAndValidateValidSudoku() {\n\t\t// Generate a large number of sudoku and checks if each one is valid\n\t\tSudoku s = SudokuGenerator.generateRandomSudoku();\n\t\tassertTrue(s.isValid());\n\t\t\n\t}",
"@Test\n\tpublic void test() {\n\t\tString r1 = CGroup.createRandomId();\n\t\tassertTrue(r1.matches(\"[0-9]+\"));\n\t\t\n\t\tString r2 = CGroup.createRandomId();\n\t\tassertFalse(r1.equals(r2));\n\t}",
"boolean hasMaterialization(Object groupID) throws Exception;",
"public boolean isAccountValidated(GuruModel model) {\n\t\tquery = \"select id from guru where email=? and pwd=? and validate_email=?\";\n\t\tList<GuruModel> list = this.jdbcTemplate.query(query,new Object[]{model.getEmail(),this.edutility.getSHA256(model.getPwd()),true},\n\t\t\t\tBeanPropertyRowMapper.newInstance(GuruModel.class));\n\t\t\n\t\tif(list.size() == 0)\n\t\t\t\treturn false;\n\t\telse\n\t\t\treturn true;\n\t\t\n\t}",
"boolean isValid();",
"boolean isValid();",
"boolean isValid();",
"boolean isValid();",
"boolean isValid();",
"public void verifyNewGroupPage()\n\t{\n\t\t_waitForJStoLoad();\n\t\tString groupPageText= newGroup.getText();\n\t\tAssert.assertEquals(FileNames.NewGroup.toString(), groupPageText);\n\t}",
"protected abstract boolean isValid();",
"@Test\n\tvoid addUserToGroup() {\n\t\t// Pre condition\n\t\tAssertions.assertTrue(resource.findById(\"wuser\").getGroups().contains(\"Biz Agency Manager\"));\n\n\t\tresource.addUserToGroup(\"wuser\", \"biz agency manager\");\n\n\t\t// Post condition -> no change\n\t\tAssertions.assertTrue(resource.findById(\"wuser\").getGroups().contains(\"Biz Agency Manager\"));\n\t}",
"public boolean createGroups(int assignmentToGroup, int otherAssignment,\n String repoPrefix) {\n \ttry{\n\n\t\t}catch (Exception se){\n\t\t\t\tSystem.err.println(\"SQL Exception.\" +\n\t\t\t\t\t\t\"<Message>: \" + se.getMessage());\n\t\t}\n // Replace this return statement with an implementation of this method!\n return false;\n }",
"private void addValidItems(UiAirplaneModel plane, String[] grps) {\r\n\t\tfor(String str:grps){\r\n\t\t\t for(SelectItem item: uiAirplaneModel.getGroupList()){\r\n\t\t\t\tif(str.trim().equalsIgnoreCase(item.getLabel())){\r\n\t\t\t\t\tplane.getGroupIDs().add(item.getValue().toString());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private void validateLocalityGroups(ConnectorTableMetadata meta)\n {\n // Validate any configured locality groups\n Optional<Map<String, Set<String>>> groups =\n AccumuloTableProperties.getLocalityGroups(meta.getProperties());\n if (!groups.isPresent()) {\n return;\n }\n\n String rowIdColumn = getRowIdColumn(meta);\n\n // For each locality group\n for (Map.Entry<String, Set<String>> g : groups.get().entrySet()) {\n // For each column in the group\n for (String col : g.getValue()) {\n // If the column was not found, throw exception\n List<ColumnMetadata> matched = meta.getColumns().stream()\n .filter(x -> x.getName().equalsIgnoreCase(col)).collect(Collectors.toList());\n\n if (matched.size() != 1) {\n throw new PrestoException(VALIDATION, \"Unknown column in locality group: \" + col);\n }\n\n if (matched.get(0).getName().equalsIgnoreCase(rowIdColumn)) {\n throw new PrestoException(VALIDATION, \"Row ID column cannot be in a locality group\");\n }\n }\n }\n }",
"public void verifyCreatedGroupOnGroupPage(String expectedGroupName) {\n\t\tString groupName = newlyCreatedGroup.getText();\n\t\tAssert.assertEquals(groupName, expectedGroupName);\n\t}",
"private boolean validateDiploidGenomes(ArrayList<DiploidGenome> genomes)\n\t{\n\t\tthis.logger.info(\"Testing validity of migrant population (ie. if migrant population has the same SNPs as the base popualtion)\");\n\n\t\tSNPCollection tocompare=genomes.get(0).getHaplotypeA().getSNPCollection();\n\n\t\tif(tocompare.size()!=this.controlCollection.size())throw new IllegalArgumentException(\"Invalid migrant population; Migrant population has different SNPs than the base population; size \"+tocompare.size()+\" vs \"+controlCollection.size());\n\t\tfor(int i=0; i<tocompare.size(); i++)\n\t\t{\n\t\t\tSNP valid=this.controlCollection.getSNPforIndex(i);\n\t\t\tSNP check=tocompare.getSNPforIndex(i);\n\t\t\tif(!valid.equals(check)) throw new IllegalArgumentException(\"Invalid migrant population; Migrant population has different SNPs than the base population \"+valid.toString()+ \" vs \"+check.toString());\n\n\t\t}\n\t\tthis.logger.info(\"Finished; Migrant population is valid\");\n\t\treturn true;\n\t}",
"protected boolean isValid() {\n return COLLECTION.getList().contains(this);\n }",
"@Test\n\tpublic void testFindAllGroupsForUser() throws PaaSApplicationException {\n\n\t\tUser user = new User();\n\t\tuser.setName(\"tstsys\");\n\n\t\tList<Group> groups = repo.findAllGroupsForUser(user);\n\n\t\tList<String> names = groups.stream().map(g -> g.getName()).collect(Collectors.toList());\n\n\t\tAssertions.assertEquals(2, groups.size(), \"Find all groups for a given user\");\n\t\tassertThat(names, hasItems(\"tstsys\", \"tstadm\"));\n\t}",
"public boolean isSetGroup() {\n return this.group != null;\n }",
"public boolean createGroup(GroupsGen group) {\n \n super.create(group);\n return true;\n }",
"@Test public void modifySecretGroups_success() throws Exception {\n createGroup(\"group8a\");\n createGroup(\"group8b\");\n createGroup(\"group8c\");\n create(CreateSecretRequestV2.builder()\n .name(\"secret8\")\n .content(encoder.encodeToString(\"supa secret8\".getBytes(UTF_8)))\n .groups(\"group8a\", \"group8b\")\n .build());\n\n // Modify secret\n ModifyGroupsRequestV2 request = ModifyGroupsRequestV2.builder()\n .addGroups(\"group8c\", \"non-existent1\")\n .removeGroups(\"group8a\", \"non-existent2\")\n .build();\n List<String> groups = modifyGroups(\"secret8\", request);\n assertThat(groups).containsOnly(\"group8b\", \"group8c\");\n }",
"public boolean isValidated() throws Exception\r\n {\n return false;\r\n }",
"@Test\n\tpublic void shouldListStatesByGroupWithRole() {\n\t\tGroup group = createGroupWithUser(app, user);\n\t\t\n\t\t// 2. Asignamos el rol al grupo\n\t\tRoleDTO roleAssignedToGroup = workflowStub.assignRole(app, user, group, formDto);\n\t\t\n\t\t// 3. Creamos un solo estado con el rol asignado al grupo\n\t\tnewState(formDto, \"state1\", roleAssignedToGroup);\n\n\t\tList<State> states = stateService.listStatesForUser(user, formDto);\n\t\tAssert.assertNotNull(\"List of states should NOT be null\", states);\n\t\tAssert.assertEquals(\"List should have the expected size\", 1, states.size());\n\t}",
"public boolean existsGroup(String groupId) {\n\t\treturn true;\n\t}",
"public void verifyBugerList()\n\t{\n\t\t\n\t}",
"protected boolean isValid() {\n \t\treturn valid;\n \t}",
"public boolean isValid() {\n return _id != null && !_id.isEmpty() &&\n _name != null && !_name.isEmpty() &&\n _created != null && !_created.isEmpty();\n }",
"@Override public boolean isValidated()\n{\n if (location_set.size() == 0 || !have_join) return false;\n\n return true;\n}",
"private void validateData() {\n }",
"boolean isXMLGroup(Object groupID) throws Exception;",
"public void testExternalGroupsSupported()\n {\n _ruleSet.grant(1, \"extgroup1\", Permission.ALLOW, Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY);\n _ruleSet.grant(2, \"extgroup2\", Permission.DENY, Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY);\n assertEquals(2, _ruleSet.getRuleCount());\n\n assertEquals(Result.ALLOWED, _ruleSet.check(TestPrincipalUtils.createTestSubject(\"usera\", \"extgroup1\"),Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY));\n assertEquals(Result.DENIED, _ruleSet.check(TestPrincipalUtils.createTestSubject(\"userb\", \"extgroup2\"),Operation.ACCESS, ObjectType.VIRTUALHOST, ObjectProperties.EMPTY));\n }",
"private void verifySnapshotIsForConsistencyGroup(BlockSnapshot snapshot,\n BlockConsistencyGroup consistencyGroup) {\n URI snapshotCGURI = snapshot.getConsistencyGroup();\n if ((NullColumnValueGetter.isNullURI(snapshotCGURI)) || (!snapshotCGURI.equals(consistencyGroup.getId()))) {\n throw APIException.badRequests.snapshotIsNotForConsistencyGroup(\n snapshot.getLabel(), consistencyGroup.getLabel());\n }\n }",
"public void testGroupDoesNotImplySameGroup() {\n User user = RoleFactory.createUser(\"foo\");\n \n Group group = RoleFactory.createGroup(\"bar\");\n group.addMember(group);\n group.addMember(user);\n \n assertFalse(m_roleChecker.isImpliedBy(group, group));\n }",
"public boolean isValid(PBFTBag bag){\n if(!wasSentByAGroupMember(bag)){\n JDSUtility.debug(\n \"[PBFTServer:isValid(bag)] s\" + getLocalServerID() + \", at time \" + getClockValue() + \", discarded \" + bag +\" because it \" +\n \"wasn't sent by a member of the group \" + getLocalGroup()\n );\n\n return false;\n }\n\n return true;\n }",
"public boolean hasGroupId() {\n return genClient.cacheHasKey(CacheKey.groupId);\n }",
"@Test\n\tvoid synchGroups() {\n\t\tassumeWritable(c);\n\t\ttry (var u1 = c.update(GROUP_SYNC_MAKE_TEMP_TABLE)) {\n\t\t\tassertEquals(List.of(), u1.getParameters());\n\t\t\tc.transaction(() -> {\n\t\t\t\tu1.call();\n\t\t\t\ttry (var u2 = c.update(GROUP_SYNC_INSERT_TEMP_ROW);\n\t\t\t\t\t\tvar u3 = c.update(GROUP_SYNC_ADD_GROUPS);\n\t\t\t\t\t\tvar u4 = c.update(GROUP_SYNC_REMOVE_GROUPS);\n\t\t\t\t\t\tvar u5 = c.update(GROUP_SYNC_DROP_TEMP_TABLE)) {\n\t\t\t\t\tassertEquals(List.of(\"group_name\", \"group_type\"),\n\t\t\t\t\t\t\tu2.getParameters());\n\t\t\t\t\tassertEquals(0, u2.call(NO_NAME, INTERNAL));\n\t\t\t\t\tassertEquals(List.of(\"user_id\"), u3.getParameters());\n\t\t\t\t\tassertEquals(0, u3.call(NO_USER));\n\t\t\t\t\tassertEquals(List.of(\"user_id\"), u4.getParameters());\n\t\t\t\t\tassertEquals(0, u4.call(NO_USER));\n\t\t\t\t\tassertEquals(List.of(), u5.getParameters());\n\t\t\t\t\tu5.call();\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}",
"boolean hasAdGroupCriterion();",
"private void validate() {\n for (DBRow row : rows) {\n for (DBColumn column : columns) {\n Cell cell = Cell.at(row, column);\n DBValue value = values.get(cell);\n notNull(value,\"Cell \" + cell);\n }\n }\n }",
"@Test\r\n\tpublic void testGetAllGuidances() {\n\t\tthis.checklistDAO.saveOrUpdateCheckList(this.checklist);\r\n\r\n\t\t// Look if this checklist is also into the database and look if the size\r\n\t\t// of the set is >= 1.\r\n\t\tList<CheckList> checklists = this.checklistDAO.getAllCheckList();\r\n\t\tassertNotNull(checklists);\r\n\t\tassertTrue(checklists.size() >= 1);\r\n\t}",
"protected boolean isValidData() {\n return true;\n }",
"Collection<MultiGroupRecord> checkAssignmentForUsersInMultipleGroups(Assignment asn, SessionState state)\n\t{\n\t\tList<MultiGroupRecord> dupes = defaultMultipleGroupCheck(asn);\n\t\talertDuplicateMemberships(dupes, state);\n\n\t\treturn dupes;\n\t}",
"boolean hasAdGroupSimulation();",
"public boolean groupSpecified() {\n return group != null && !group.isEmpty();\n }",
"private void checkCollisionVsGroup(Group g) {\n\t\tcheckCollisionsVsCollection(g);\r\n\t\t\r\n\t\tint clen = _composites.size();\r\n\t\tint gclen = g.getComposites().size();\r\n\t\t\r\n\t\t// for every composite in this group..\r\n\t\tfor (int i = 0; i < clen; i++) {\r\n\t\t\r\n\t\t\t// check vs the particles and constraints of g\r\n\t\t\tComposite c = _composites.get(i);\r\n\t\t\tc.checkCollisionsVsCollection(g);\r\n\t\t\t\r\n\t\t\t// check vs composites of g\r\n\t\t\tfor (int j = 0; j < gclen; j++) {\r\n\t\t\t\tComposite gc = g.getComposites().get(j);\r\n\t\t\t\tc.checkCollisionsVsCollection(gc);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// check particles and constraints of this group vs the composites of g\r\n\t\tfor (int j = 0; j < gclen; j++) {\r\n\t\t\tComposite gc = g.getComposites().get(j);\t\r\n\t\t\tcheckCollisionsVsCollection(gc);\r\n\t\t}\r\n\t}",
"public static void verifyGroupEquals(GuideGroup grp1, GuideGroup grp2) {\n assertEquals(grp1.getName(), grp2.getName());\n verifyGptListEquals(grp1.getAll(), grp2.getAll());\n }",
"public void checkThreeGroups( ) throws com.sun.star.uno.Exception, java.lang.Exception\n {\n prepareTestStep( false );\n\n insertRadio( 20, 30, \"group 1 (a)\", \"group 1\", \"a\" );\n insertRadio( 20, 38, \"group 1 (b)\", \"group 1\", \"b\" );\n\n insertRadio( 20, 50, \"group 2 (a)\", \"group 2\", \"a\" );\n insertRadio( 20, 58, \"group 2 (b)\", \"group 2\", \"b\" );\n\n insertRadio( 20, 70, \"group 3 (a)\", \"group 3\", \"a\" );\n insertRadio( 20, 78, \"group 3 (b)\", \"group 3\", \"b\" );\n\n // switch to alive mode\n m_document.getCurrentView( ).toggleFormDesignMode( );\n\n // initially, after switching to alive mode, all buttons should be unchecked\n verifySixPack( 0, 0, 0, 0, 0, 0 );\n\n // check one button in every group\n checkRadio( \"group 1\", \"a\" );\n checkRadio( \"group 2\", \"b\" );\n checkRadio( \"group 3\", \"a\" );\n // and verify that this worked\n verifySixPack( 1, 0, 0, 1, 1, 0 );\n\n // check all buttons which are currently unchecked\n checkRadio( \"group 1\", \"b\" );\n checkRadio( \"group 2\", \"a\" );\n checkRadio( \"group 3\", \"b\" );\n // this should have reset the previous checks in the respective groups\n verifySixPack( 0, 1, 1, 0, 0, 1 );\n\n // and back to the previous check state\n checkRadio( \"group 1\", \"a\" );\n checkRadio( \"group 2\", \"b\" );\n checkRadio( \"group 3\", \"a\" );\n verifySixPack( 1, 0, 0, 1, 1, 0 );\n\n cleanupTestStep();\n }"
] | [
"0.65209025",
"0.639838",
"0.6398349",
"0.6259819",
"0.62449944",
"0.62171113",
"0.62152195",
"0.6146592",
"0.61257404",
"0.605343",
"0.6049967",
"0.60335624",
"0.59961545",
"0.59147227",
"0.58595484",
"0.58241224",
"0.5782701",
"0.5765583",
"0.57652736",
"0.5733101",
"0.57236546",
"0.5721518",
"0.571095",
"0.5710601",
"0.56788963",
"0.56766284",
"0.5644043",
"0.56275094",
"0.5607467",
"0.56047016",
"0.5590327",
"0.55837286",
"0.55733913",
"0.5558898",
"0.55543715",
"0.5550463",
"0.5524826",
"0.5514454",
"0.55057836",
"0.54979867",
"0.5475575",
"0.5469715",
"0.54693216",
"0.5432081",
"0.5430661",
"0.5429053",
"0.5422153",
"0.5422153",
"0.5422153",
"0.5422153",
"0.5422153",
"0.5409049",
"0.5407298",
"0.5405655",
"0.54000515",
"0.53886485",
"0.53711826",
"0.53707284",
"0.53707284",
"0.53707284",
"0.53707284",
"0.53707284",
"0.5369635",
"0.5364609",
"0.53564095",
"0.5355188",
"0.53445184",
"0.53399277",
"0.53345424",
"0.5331265",
"0.53308237",
"0.53230566",
"0.5322807",
"0.5322787",
"0.53186536",
"0.53183573",
"0.53117335",
"0.530664",
"0.5302374",
"0.5294064",
"0.5291465",
"0.5288421",
"0.5285543",
"0.52783245",
"0.52781856",
"0.52725875",
"0.5269431",
"0.5268407",
"0.5263958",
"0.5259486",
"0.5255417",
"0.5250086",
"0.52499926",
"0.52402306",
"0.5236336",
"0.52356565",
"0.52320886",
"0.52302134",
"0.52251697",
"0.5220523"
] | 0.7364319 | 0 |
validate counts of predefined Singleton user groups | @Test
void validateUserGroupCount() {
LinkedHashMap<Integer, String> groups = new LinkedHashMap<>();
UserManagerFactory uf = new UserManagerFactory();
UserManager obj = uf.getInstance("group1");
groups = obj.getGroups();
Assertions.assertTrue(groups.size() == 5, "There should only have 5 pre-defined groups");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int countGroups()\n/* 25: */ {\n/* 26:22 */ return this.members.size();\n/* 27: */ }",
"int countByExample(UserGroupExample example);",
"int getGroupCount();",
"public long\n getUserGroupsCount(org.eclipse.stardust.engine.api.query.UserGroupQuery query)\n throws org.eclipse.stardust.common.error.WorkflowException;",
"public void testRequiredRolesMultipleGroupsOk() {\n User elmer = RoleFactory.createUser(\"elmer\");\n User pepe = RoleFactory.createUser(\"pepe\");\n User bugs = RoleFactory.createUser(\"bugs\");\n User daffy = RoleFactory.createUser(\"daffy\");\n \n Group administrators = RoleFactory.createGroup(\"administrators\");\n administrators.addRequiredMember(m_anyone);\n administrators.addMember(elmer);\n administrators.addMember(pepe);\n administrators.addMember(bugs);\n\n Group family = RoleFactory.createGroup(\"family\");\n family.addRequiredMember(m_anyone);\n family.addMember(elmer);\n family.addMember(pepe);\n family.addMember(daffy);\n\n Group alarmSystemActivation = RoleFactory.createGroup(\"alarmSystemActivation\");\n alarmSystemActivation.addRequiredMember(m_anyone);\n alarmSystemActivation.addMember(administrators);\n alarmSystemActivation.addMember(family);\n\n assertTrue(m_roleChecker.isImpliedBy(alarmSystemActivation, elmer));\n assertTrue(m_roleChecker.isImpliedBy(alarmSystemActivation, pepe));\n assertTrue(m_roleChecker.isImpliedBy(alarmSystemActivation, bugs));\n assertTrue(m_roleChecker.isImpliedBy(alarmSystemActivation, daffy));\n }",
"@Then(\"^validate for the count of channels$\")\r\n\tpublic void validate_for_the_count_of_channels() throws Throwable \r\n\t{\n\t Assert.assertNotNull(publishers.getNumOfChannels());\r\n\t\t\r\n\t}",
"public void testRequiredRolesMultipleRequiredGroupsOk() {\n User elmer = RoleFactory.createUser(\"elmer\");\n User pepe = RoleFactory.createUser(\"pepe\");\n User bugs = RoleFactory.createUser(\"bugs\");\n User daffy = RoleFactory.createUser(\"daffy\");\n \n Group administrators = RoleFactory.createGroup(\"administrators\");\n administrators.addRequiredMember(m_anyone);\n administrators.addMember(elmer);\n administrators.addMember(pepe);\n administrators.addMember(bugs);\n\n Group family = RoleFactory.createGroup(\"family\");\n family.addRequiredMember(m_anyone);\n family.addMember(elmer);\n family.addMember(pepe);\n family.addMember(daffy);\n\n Group alarmSystemActivation = RoleFactory.createGroup(\"alarmSystemActivation\");\n alarmSystemActivation.addMember(m_anyone);\n alarmSystemActivation.addRequiredMember(administrators);\n alarmSystemActivation.addRequiredMember(family);\n\n assertTrue(m_roleChecker.isImpliedBy(alarmSystemActivation, elmer));\n assertTrue(m_roleChecker.isImpliedBy(alarmSystemActivation, pepe));\n assertFalse(m_roleChecker.isImpliedBy(alarmSystemActivation, bugs));\n assertFalse(m_roleChecker.isImpliedBy(alarmSystemActivation, daffy));\n }",
"@Test\n void validateUserGroupExist(){\n\n Boolean testing_result = true;\n int issue_id = 0;\n String issue_group = \"\";\n\n ArrayList<String> groups = new ArrayList<>();\n groups.add(\"admin\");\n groups.add(\"concordia\");\n groups.add(\"encs\");\n groups.add(\"comp\");\n groups.add(\"soen\");\n\n UserController uc = new UserController();\n\n LinkedHashMap<Integer, String> db_groups = uc.getAllUserGroups();\n\n for(int key : db_groups.keySet()){\n if(!groups.contains(db_groups.get(key))){\n issue_id = key;\n issue_group = db_groups.get(key);\n testing_result = false;\n }\n }\n\n Assertions.assertTrue(testing_result, \" There is an issue with user(id: \" + issue_id + \") having group as: \" + issue_group);\n\n }",
"boolean validateUserGroups(SessionState state, String userId, Assignment asn)\n\t{\n\t\tSite site = getSite(asn);\n\n\t\t// finding any of the user's groups is sufficient, if they are in multiple groups the check\n\t\t// will fail no matter which of their groups is used\n\t\tOptional<Group> userGroup = getGroupsWithUser(userId, asn, site).stream().findAny();\n\t\tif (userGroup.isPresent())\n\t\t{\n\t\t\treturn checkSubmissionForUsersInMultipleGroups(asn, userGroup.get(), state, true).isEmpty();\n\t\t}\n\n\t\t// user is not in any assignment groups, if they are an instructor this is probably the Student View feature so let them through\n\t\treturn assignmentService.allowAddAssignment(site.getId()) || assignmentService.allowUpdateAssignmentInContext(site.getId());\n\t}",
"int getAndConditionGroupsCount();",
"int getInvalidLoginCount();",
"int countByExample(GroupRoleUserRelExample example);",
"Collection<MultiGroupRecord> checkAssignmentForUsersInMultipleGroups(Assignment asn, SessionState state)\n\t{\n\t\tList<MultiGroupRecord> dupes = defaultMultipleGroupCheck(asn);\n\t\talertDuplicateMemberships(dupes, state);\n\n\t\treturn dupes;\n\t}",
"@Override\n\tpublic int countUsers(String partialName) {\n\t\tlong lcount = uDao.countUsers(partialName);\n\t\tif (lcount > Integer.MAX_VALUE) {\n\t\t\t// I know this won't ever happen, but I want to make the static code\n\t\t\t// checkers happy.\n\t\t\tlogger.error(\"Too many workspaces\");\n\t\t\treturn Integer.MAX_VALUE;\n\t\t} else {\n\t\t\treturn (int) lcount;\n\t\t}\n\t}",
"int getAndSequenceGroupsCount();",
"public static boolean verifyNumberOfUsers(String s) {\n\n\t\tInteger i = Integer.parseInt(s);\n\t\tif (i >= 2) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"@java.lang.Override\n public int getUnusableAdGroupsCount() {\n return unusableAdGroups_.size();\n }",
"static void findGroups() {\n G2 = 0;\n while (group2()) {\n }\n\n // find group of size 3\n G3 = 0;\n while (group3()) {\n }\n }",
"public int getNumGroups() {\n return memberships.size();\n }",
"@Test(groups ={Slingshot,Regression})\n\tpublic void ValidateMaximumSuperUserExceeded() {\t\n\t\tReport.createTestLogHeader(\"MuMv\", \"Check the error message is getting displayed when the user tries to add sixth super user\"); \n\t\tUserProfile userProfile = new TestDataHelper().getUserProfile(\"MuMVmorethan5superuser\");\n\t\tnew LoginAction()\n\t\t.BgbnavigateToLogin()\n\t\t.BgbloginDetails(userProfile);\n\t\tnew MultiUserMultiViewAction()\n\t\t.ClickManageUserLink()\n\t\t.ClickAddNewUserLink()\n\t\t.AddUserRadioButton()\n\t\t.SuperUserCreation()\n\t\t.SuperUserOverlayyes() \n\t\t.SuperUserMaximumExceedErrorValidation(); \n\n\t}",
"int getUsersCount();",
"int getUsersCount();",
"int getUsersCount();",
"public static Integer numValidClients() {\n return getLoggedInUserConnections().size() + anonClients.size();\n }",
"Integer loadUserCount();",
"int countByExample(TUserPermissionExample example);",
"public int validateUserSolution(Sudoku sdk) {\r\n\t\tint mistakes = 0;\r\n\r\n\t\t/*\r\n\t\t * For every field in the NumberPuzzle\r\n\t\t */\r\n\t\tfor (int x = 0; x < sdk.getSize(); x++) {\r\n\t\t\tfor (int y = 0; y < sdk.getSize(); y++) {\r\n\r\n\t\t\t\t/*\r\n\t\t\t\t * Check if the user input varies from the actual solution\r\n\t\t\t\t */\r\n\t\t\t\tif (sdk.getRecentGrid()[y][x] != sdk.getSolvedGrid()[y][x]) {\r\n\t\t\t\t\tmistakes++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn mistakes;\r\n\t}",
"public long getGroupsCount() {\r\n return groupsCount;\r\n }",
"int countByExample(RegsatUserExample example);",
"int countByExample(SeGroupExample example);",
"int countByExample(BizUserWhiteListExample example);",
"int getUserCount();",
"int getUserCount();",
"public boolean hasUser(){\n return numUser < MAX_USER;\n }",
"public void setGroupsCount(long groupsCount) {\r\n this.groupsCount = groupsCount;\r\n }",
"@Override\n public int getGroupCount() {\n return mGroups.size();\n }",
"int countByExample(MessageGroupExample example);",
"public int getUnusableAdGroupsCount() {\n if (unusableAdGroupsBuilder_ == null) {\n return unusableAdGroups_.size();\n } else {\n return unusableAdGroupsBuilder_.getCount();\n }\n }",
"@Test(groups ={Slingshot,Regression})\n\tpublic void VerifyStduserMaximumuserLimit() {\n\t\tReport.createTestLogHeader(\"MuMv\", \"Verify hether error message is getting displayed when the user tries to add 21st Standard user by clicking No radio button of Add new user page \"); \t \t \t \n\t\tUserProfile userProfile = new TestDataHelper().getUserProfile(\"MuMvMaxStduserValidation\");\n\t\tnew LoginAction()\n\t\t.BgbnavigateToLogin()\n\t\t.BgbloginDetails(userProfile);\n\t\tnew MultiUserMultiViewAction()\n\t\t.ClickManageUserLink()\n\t\t.ClickAddNewUserLink()\n\t\t.AddUserRadioButton()\n\t\t.StandardUserCreations()\n\t\t.StandardMaximumExceedErrorValidation();\t \t \t\n\t}",
"public void testGroupDoesNotImplySameRequiredGroup() {\n User user = RoleFactory.createUser(\"foo\");\n \n Group group = RoleFactory.createGroup(\"bar\");\n group.addRequiredMember(group);\n group.addMember(user);\n \n assertFalse(m_roleChecker.isImpliedBy(group, group));\n }",
"@Override\n\tpublic long countMemberExcep() {\n\t\treturn 0;\n\t}",
"@Test\n public void testUserAndFlowGroupQuotaMultipleUsersAdd() throws Exception {\n Dag<JobExecutionPlan> dag1 = DagManagerTest.buildDag(\"1\", System.currentTimeMillis(),DagManager.FailureOption.FINISH_ALL_POSSIBLE.name(),\n 1, \"user5\", ConfigFactory.empty().withValue(ConfigurationKeys.FLOW_GROUP_KEY, ConfigValueFactory.fromAnyRef(\"group2\")));\n Dag<JobExecutionPlan> dag2 = DagManagerTest.buildDag(\"2\", System.currentTimeMillis(),DagManager.FailureOption.FINISH_ALL_POSSIBLE.name(),\n 1, \"user6\", ConfigFactory.empty().withValue(ConfigurationKeys.FLOW_GROUP_KEY, ConfigValueFactory.fromAnyRef(\"group2\")));\n Dag<JobExecutionPlan> dag3 = DagManagerTest.buildDag(\"3\", System.currentTimeMillis(),DagManager.FailureOption.FINISH_ALL_POSSIBLE.name(),\n 1, \"user6\", ConfigFactory.empty().withValue(ConfigurationKeys.FLOW_GROUP_KEY, ConfigValueFactory.fromAnyRef(\"group3\")));\n Dag<JobExecutionPlan> dag4 = DagManagerTest.buildDag(\"4\", System.currentTimeMillis(),DagManager.FailureOption.FINISH_ALL_POSSIBLE.name(),\n 1, \"user5\", ConfigFactory.empty().withValue(ConfigurationKeys.FLOW_GROUP_KEY, ConfigValueFactory.fromAnyRef(\"group2\")));\n // Ensure that the current attempt is 1, normally done by DagManager\n dag1.getNodes().get(0).getValue().setCurrentAttempts(1);\n dag2.getNodes().get(0).getValue().setCurrentAttempts(1);\n dag3.getNodes().get(0).getValue().setCurrentAttempts(1);\n dag4.getNodes().get(0).getValue().setCurrentAttempts(1);\n\n this._quotaManager.checkQuota(Collections.singleton(dag1.getNodes().get(0)));\n this._quotaManager.checkQuota(Collections.singleton(dag2.getNodes().get(0)));\n\n // Should fail due to user quota\n Assert.assertThrows(IOException.class, () -> {\n this._quotaManager.checkQuota(Collections.singleton(dag3.getNodes().get(0)));\n });\n // Should fail due to flowgroup quota\n Assert.assertThrows(IOException.class, () -> {\n this._quotaManager.checkQuota(Collections.singleton(dag4.getNodes().get(0)));\n });\n // should pass due to quota being released\n this._quotaManager.releaseQuota(dag2.getNodes().get(0));\n this._quotaManager.checkQuota(Collections.singleton(dag3.getNodes().get(0)));\n this._quotaManager.checkQuota(Collections.singleton(dag4.getNodes().get(0)));\n }",
"int countByExample(SysAuthenticationExample example);",
"int countByExample(AdminUserCriteria example);",
"int countByExample(AdminUserCriteria example);",
"public int countByUserIdGroupId(long userId, long groupId);",
"@Override\n public int getGroupCount() {\n return groups.length;\n }",
"int getRequestedValuesCount();",
"Collection<MultiGroupRecord> checkSubmissionForUsersInMultipleGroups(Assignment asn, Group submissionGroup, SessionState state, boolean showAlert)\n\t{\n\t\tif (submissionGroup == null || securityService.isSuperUser()) // don't check this for admin users / short circuit if no group given\n\t\t{\n\t\t\treturn Collections.emptyList();\n\t\t}\n\n\t\tString siteId = asn.getContext();\n\t\tList<MultiGroupRecord> dupes = assignmentService.checkSubmissionForUsersInMultipleGroups(siteId, submissionGroup, groupsFromRefs(siteId, asn.getGroups()));\n\t\tif (showAlert)\n\t\t{\n\t\t\talertDuplicateNames(dupes, state);\n\t\t}\n\n\t\treturn dupes;\n\t}",
"public CountMultipleCreations() {\r\n\t\tmultiples = new HashSet<String>();\r\n\t}",
"public int verificarCantidadGanadores() {\n\t\t if(ganador.size() == 1 && !ganador.contains(\"dealer\")) {\n\t\t\t return 20;\n\t\t }else if(ganador.size() == 2 && !ganador.contains(\"dealer\")) {\n\t\t\t return 10;\n\t\t }else if(ganador.size() == 3 && !ganador.contains(\"dealer\")){\n\t\t\t return 0;\n\t\t }else if(ganador.size() == 1 && ganador.contains(\"dealer\")) {\n\t\t\t return 30;\n\t\t }\n\t\t return 0;\n\t }",
"@Test\r\n\tpublic void driverRatioVisitorsCreatedGroups() {\r\n\r\n\t\tfinal Object testingData[][] = {\r\n\r\n\t\t\t// testingData[i][0] -> usernamed of the logged Actor.\r\n\t\t\t// testingData[i][1] -> expected Exception.\r\n\r\n\t\t\t{\r\n\t\t\t\t// + 1) An administrator displays the statistics\r\n\t\t\t\t\"admin\", null\r\n\t\t\t}, {\r\n\t\t\t\t// - 2) An unauthenticated actor tries to display the statistics\r\n\t\t\t\tnull, IllegalArgumentException.class\r\n\t\t\t}, {\r\n\t\t\t\t// - 3) A visitor displays the statistics\r\n\t\t\t\t\"visitor1\", IllegalArgumentException.class\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tfor (int i = 0; i < testingData.length; i++) {\r\n\r\n\t\t\tthis.startTransaction();\r\n\r\n\t\t\tthis.templateRatioVisitorsCreatedGroups((String) testingData[i][0], (Class<?>) testingData[i][1]);\r\n\r\n\t\t\tthis.rollbackTransaction();\r\n\t\t\tthis.entityManager.clear();\r\n\t\t}\r\n\r\n\t}",
"private int isPrivacyModelFulfilled(Transformation<?> transformation, HashGroupifyEntry entry) {\n \n // Check minimal group size\n if (minimalClassSize != Integer.MAX_VALUE && entry.count < minimalClassSize) {\n return 0;\n }\n \n // Check other criteria\n // Note: The d-presence criterion must be checked first to ensure correct handling of d-presence with tuple suppression.\n // This is currently ensured by convention. See ARXConfiguration.getCriteriaAsArray();\n for (int i = 0; i < classBasedCriteria.length; i++) {\n if (!classBasedCriteria[i].isAnonymous(transformation, entry)) {\n return i + 1;\n }\n }\n return -1;\n }",
"int getUserTypesCount();",
"public void testDisplaysUsersInGroup(){\n \t\tAssert.assertTrue(solo.searchText(\"GroupTestUser1\"));\n \t\tAssert.assertTrue(solo.searchText(\"GroupTestUser2\"));\n \t\tsolo.finishOpenedActivities();\n \t}",
"int getPermissionsCount();",
"boolean hasCount();",
"List<MultiGroupRecord> defaultMultipleGroupCheck(Assignment asn)\n\t{\n\t\treturn assignmentService.checkAssignmentForUsersInMultipleGroups(asn.getContext(), groupsFromRefs(asn.getContext(), asn.getGroups()));\n\t}",
"@Override\n\tpublic int countAdmins() {\n\t\treturn 0;\n\t}",
"int getGroupIdUpperBound();",
"@Override\n public int getGroupCount() {\n return Grade.length;\n }",
"int getParticipantsCount();",
"int getParticipantsCount();",
"Counter getDeskMembersCounts(String userID) throws GAException;",
"public int countByGroupId(long groupId);",
"public int countByGroupId(long groupId);",
"public void validate(){\n ArrayList<User> u1 = new ArrayList<User>();\n u1.addAll(Application.getApplication().getUsers());\n u1.add(this);\n\n ArrayList<User> u2 = new ArrayList<User>();\n \n u2.addAll(Application.getApplication().getNonValidatedUsers());\n u2.remove(this);\n\n Application.getApplication().setUsers(u1);\n Application.getApplication().setNonValidatedUsers(u2);\n }",
"@Test\n public void testFirstNameUpperBound() {\n owner.setFirstName(repeatM(20));\n assertEquals(0, validator.validate(owner).size());\n }",
"@Test\n public void testGetUserGroups() throws Exception {\n\n // p4 groups -o p4jtestsuper\n List<IUserGroup> userGroups = server.getUserGroups(superUser, new GetUserGroupsOptions().setOwnerName(true));\n assertThat(\"null user group list\", userGroups, notNullValue());\n assertThat(\"too few user groups in list\", userGroups.size() >= 1, is(true));\n\n // p4 groups -u p4jtestuser\n userGroups = server.getUserGroups(user, new GetUserGroupsOptions().setUserName(true));\n assertThat(\"null user group list\", userGroups, notNullValue());\n assertThat(\"too few user groups in list\", userGroups.size() >= 1);\n\n // p4 groups -g p4users\n userGroups = server.getUserGroups(superUserGroupName, new GetUserGroupsOptions().setGroupName(true));\n assertThat(\"null user group list\", userGroups, notNullValue());\n assertThat(userGroups.size() == 0, is(true));\n\n }",
"public int getTravelGroupListCount(Map conditions);",
"int getCountOfFemaleUsers(List<User> users);",
"public long getUserCount() throws UserManagementException;",
"public void testGroupDoesNotImplySameGroup() {\n User user = RoleFactory.createUser(\"foo\");\n \n Group group = RoleFactory.createGroup(\"bar\");\n group.addMember(group);\n group.addMember(user);\n \n assertFalse(m_roleChecker.isImpliedBy(group, group));\n }",
"int countByExample(UUserExample example);",
"private void getAllGroups(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n HandleGroup handleGroup = new HandleGroup();\n HandleUser handleUser = new HandleUser();\n \n HttpSession session = request.getSession();\n \n String email = (String) session.getAttribute(\"email\");\n \n //Get all active and inactive groups\n List<Group> groups = handleGroup.getAllGroups();\n \n request.setAttribute(\"groups\", groups);\n \n //Get number of friend requests\n int numberOfRequests = handleUser.getAllFriendRequests(email).size();\n request.setAttribute(\"numberOfRequests\", numberOfRequests);\n \n //Get number of posts to be approved in user's own groups\n int groupNotifications = handleGroup.getGroupNotifications(email);\n request.setAttribute(\"groupNotifications\", groupNotifications);\n \n RequestDispatcher dispatcher = request.getRequestDispatcher(\"manage-groups.jsp\");\n dispatcher.forward(request, response);\n \n }",
"public int getGroupCount() {\n\t\treturn this.groups.size();\n\t}",
"private boolean determineValid(){\n for(Integer val : group){\n if(!racers.containsKey(val)){\n WrongNumber = val;\n return false;\n }\n }\n return true;\n }",
"public int countByG_U_S(long groupId, long userId, int status);",
"long countByExample(GroupRightDAOExample example);",
"int countByExample(ParUsuariosExample example);",
"@Test(groups ={Slingshot,Regression})\n\tpublic void verifyMorethan20ActiveUser(){\n\t\tReport.createTestLogHeader(\"Multi User Multi View\", \"Verifies error message overlay is displayed when super user tries to reactivate a user when there are already 20 active users\");\n\t\tUserProfile userProfile = new TestDataHelper().getUserProfile(\"Morethan20ActiveUser\");\n\t\tnew LoginAction()\t\t\t \t\t\t \n\t\t.BgbloginDetails(userProfile)\n\t\t.BgbverifyAfterLogin();\n\t\tnew MultiUserMultiViewAction()\n\t\t.manageUsersLink()\t;\t \n\t\t//.verifyReAndDeActiavtionUser(userProfile);\t\t\t \t\t\t \n\t}",
"int countByExample(ROmUsersExample example);",
"@Override\n\t\tpublic int getGroupCount() {\n\t\t\treturn data.size();\n\t\t}",
"private int userAlreadyPresent() {\n System.out.printf(\"%s%n%s%n%s%n%s%n\", Notifications.getMessage(\"ERR_USER_ALREADY_PRESENT\"), Notifications.getMessage(\"SEPARATOR\"), Notifications.getMessage(\"PROMPT_PRESENT_USER_MULTIPLE_CHOICE\"), Notifications.getMessage(\"SEPARATOR\"));\n\n switch(insertInteger(1, 3)) {\n case 1:\n System.out.printf(\"%s %s%n\", Notifications.getMessage(\"MSG_EXIT_WITHOUT_SAVING\"), Notifications.getMessage(\"MSG_MOVE_TO_LOGIN\"));\n return -1;\n case 2:\n System.out.println(Notifications.getMessage(\"PROMPT_MODIFY_FIELDS\"));\n return 1;\n default:\n return 0;\n }\n }",
"@Test\n\tpublic void totalWordsInGroups() {\n\t\tint totalWords = 0;\n\t\tfor(NewsGroup g: groups) {\n\t\t\ttotalWords+= g.getTotalWords();\n\t\t}\n\t\tSystem.out.println(totalWords);\n\t\tassertTrue(totalWords == TOTAL_WORDS_ACROSS_GROUPS);\n\t}",
"protected void templateRatioVisitorsCreatedGroups(final String username, final Class<?> expected) {\r\n\r\n\t\tClass<?> caught = null;\r\n\r\n\t\t// 1. Log in \r\n\t\tthis.authenticate(username);\r\n\r\n\t\ttry {\r\n\r\n\t\t\t// 2. Display the dashboard\r\n\t\t\tfinal Double ratioRetrieved = this.administratorService.getRatioVisitorsCreatedGroups();\r\n\r\n\t\t\t//Compute the values in order to check them\r\n\t\t\tfinal List<Visitor> visitorsCreatedGroup = new ArrayList<>();\r\n\t\t\tfinal List<Visitor> visitors = new ArrayList<>(this.visitorService.findAll());\r\n\r\n\t\t\tfor (final Visitor v : visitors)\r\n\t\t\t\tif (v.getCreatedGroups().size() > 0)\r\n\t\t\t\t\tvisitorsCreatedGroup.add(v);\r\n\r\n\t\t\tfinal Double ratioRetrievedRounded = this.roundNumber(ratioRetrieved, 3);\r\n\t\t\tfinal Double ratioComputedRounded = this.roundNumber(this.computeRatio(visitorsCreatedGroup, visitors), 3);\r\n\r\n\t\t\tAssert.isTrue(ratioRetrievedRounded.equals(ratioComputedRounded));\r\n\r\n\t\t} catch (final Throwable oops) {\r\n\t\t\tcaught = oops.getClass();\r\n\t\t}\r\n\r\n\t\tthis.unauthenticate();\r\n\t\tthis.checkExceptions(expected, caught);\r\n\t}",
"private int[] countClaimedChunks(ClaimProfile profile) {\n int[] counts = new int[] { 0, 0 };\n\n for (ChunkData claimedChunk : profile.getClaimedChunks()) {\n counts[claimedChunk.isGroupChunk() ? 0 : 1]++;\n }\n\n return counts;\n }",
"public static boolean checkGroupSize(int size){\n \n boolean r = true;\n \n if (size < 2 || size >= allEITs.length) \n r = false;\n \n return r;\n }",
"int getNumberOfRegsUser(long idUser);",
"private int doValidateCheck()\n {\n if (Math.min(txtArtifactID.getText().trim().length(),\n txtGroupID.getText().trim().length()) == 0)\n {\n return 1;\n }\n if (txtPackage.getText().trim().length() > 0)\n {\n boolean matches = txtPackage.getText().matches(\"[a-zA-Z0-9\\\\.]*\"); //NOI18N\n if (!matches) {\n return 2;\n } else {\n if (txtPackage.getText().startsWith(\".\") || txtPackage.getText().endsWith(\".\"))\n {\n return 2;\n }\n }\n }\n return 0;\n }",
"@Override\n\tpublic int getGroupCount() {\n\t\tif (oneListData == null) {\n\t\t\treturn 0;\n\t\t}\n\t\treturn oneListData.size();\n\t}",
"@Override\n\tpublic int countWorkspaces(String userId, String partialWorkspaceName) {\n\t\tlong lcount = wDao.countWorkspaces(userId, partialWorkspaceName);\n\t\tif (lcount > Integer.MAX_VALUE) {\n\t\t\t// I know this won't ever happen, but I want to make the static code\n\t\t\t// checkers happy.\n\t\t\tlogger.error(\"Too many workspaces\");\n\t\t\treturn Integer.MAX_VALUE;\n\t\t} else {\n\t\t\treturn (int) lcount;\n\t\t}\n\t}",
"boolean hasMaxCount();",
"private void managePreCreatedUsers() {\n int numberRequestedGuests = CarProperties.number_pre_created_guests().orElse(0);\r\n int numberRequestedUsers = CarProperties.number_pre_created_users().orElse(0);\r\n Slog.i(TAG, \"managePreCreatedUsers(): OEM asked for \" + numberRequestedGuests\r\n + \" guests and \" + numberRequestedUsers + \" users\");\r\n if (numberRequestedGuests < 0 || numberRequestedUsers < 0) {\r\n Slog.w(TAG, \"preCreateUsers(): invalid values provided by OEM; \"\r\n + \"number_pre_created_guests=\" + numberRequestedGuests\r\n + \", number_pre_created_users=\" + numberRequestedUsers);\r\n return;\r\n }\r\n\r\n if (numberRequestedGuests == 0 && numberRequestedUsers == 0) {\r\n Slog.i(TAG, \"managePreCreatedUsers(): not defined by OEM\");\r\n return;\r\n }\r\n\r\n // Then checks how many exist already\r\n List<UserInfo> allUsers = mUserManager.getUsers(/* excludePartial= */ true,\r\n /* excludeDying= */ true, /* excludePreCreated= */ false);\r\n\r\n int allUsersSize = allUsers.size();\r\n if (DBG) Slog.d(TAG, \"preCreateUsers: total users size is \" + allUsersSize);\r\n\r\n int numberExistingGuests = 0;\r\n int numberExistingUsers = 0;\r\n\r\n // List of pre-created users that were not properly initialized. Typically happens when\r\n // the system crashed / rebooted before they were fully started.\r\n SparseBooleanArray invalidUsers = new SparseBooleanArray();\r\n\r\n for (int i = 0; i < allUsersSize; i++) {\r\n UserInfo user = allUsers.get(i);\r\n if (!user.preCreated) continue;\r\n if (!user.isInitialized()) {\r\n Slog.w(TAG, \"Found invalid pre-created user that needs to be removed: \"\r\n + user.toFullString());\r\n invalidUsers.append(user.id, /* notUsed=*/ true);\r\n continue;\r\n }\r\n if (user.isGuest()) {\r\n numberExistingGuests++;\r\n } else {\r\n numberExistingUsers++;\r\n }\r\n }\r\n if (DBG) {\r\n Slog.i(TAG, \"managePreCreatedUsers(): system already has \" + numberExistingGuests\r\n + \" pre-created guests,\" + numberExistingUsers + \" pre-created users, and these\"\r\n + \" invalid users: \" + invalidUsers );\r\n }\r\n\r\n int numberGuests = numberRequestedGuests - numberExistingGuests;\r\n int numberUsers = numberRequestedUsers - numberExistingUsers;\r\n int numberInvalidUsers = invalidUsers.size();\r\n\r\n if (numberGuests <= 0 && numberUsers <= 0 && numberInvalidUsers == 0) {\r\n Slog.i(TAG, \"managePreCreatedUsers(): all pre-created and no invalid ones\");\r\n return;\r\n }\r\n\r\n // Finally, manage them....\r\n\r\n // In theory, we could submit multiple user pre-creations in parallel, but we're\r\n // submitting just 1 task, for 2 reasons:\r\n // 1.To minimize it's effect on other system server initialization tasks.\r\n // 2.The pre-created users will be unlocked in parallel anyways.\r\n new Thread( () -> {\r\n TimingsTraceLog t = new TimingsTraceLog(TAG, Trace.TRACE_TAG_SYSTEM_SERVER);\r\n\r\n t.traceBegin(\"preCreateUsers\");\r\n if (numberUsers > 0) {\r\n preCreateUsers(t, numberUsers, /* isGuest= */ false);\r\n }\r\n if (numberGuests > 0) {\r\n preCreateUsers(t, numberGuests, /* isGuest= */ true);\r\n }\r\n t.traceEnd();\r\n\r\n if (numberInvalidUsers > 0) {\r\n t.traceBegin(\"removeInvalidPreCreatedUsers\");\r\n for (int i = 0; i < numberInvalidUsers; i++) {\r\n int userId = invalidUsers.keyAt(i);\r\n Slog.i(TAG, \"removing invalid pre-created user \" + userId);\r\n mUserManager.removeUser(userId);\r\n }\r\n t.traceEnd();\r\n }\r\n }, \"CarServiceHelperManagePreCreatedUsers\").start();\r\n }",
"Optional<List<User>> findUserLimitCount(String count) throws LogicException;",
"int countByExample(UcMembersExample example);",
"int getRolesCount();",
"int getRolesCount();",
"public void checkThreeGroups( ) throws com.sun.star.uno.Exception, java.lang.Exception\n {\n prepareTestStep( false );\n\n insertRadio( 20, 30, \"group 1 (a)\", \"group 1\", \"a\" );\n insertRadio( 20, 38, \"group 1 (b)\", \"group 1\", \"b\" );\n\n insertRadio( 20, 50, \"group 2 (a)\", \"group 2\", \"a\" );\n insertRadio( 20, 58, \"group 2 (b)\", \"group 2\", \"b\" );\n\n insertRadio( 20, 70, \"group 3 (a)\", \"group 3\", \"a\" );\n insertRadio( 20, 78, \"group 3 (b)\", \"group 3\", \"b\" );\n\n // switch to alive mode\n m_document.getCurrentView( ).toggleFormDesignMode( );\n\n // initially, after switching to alive mode, all buttons should be unchecked\n verifySixPack( 0, 0, 0, 0, 0, 0 );\n\n // check one button in every group\n checkRadio( \"group 1\", \"a\" );\n checkRadio( \"group 2\", \"b\" );\n checkRadio( \"group 3\", \"a\" );\n // and verify that this worked\n verifySixPack( 1, 0, 0, 1, 1, 0 );\n\n // check all buttons which are currently unchecked\n checkRadio( \"group 1\", \"b\" );\n checkRadio( \"group 2\", \"a\" );\n checkRadio( \"group 3\", \"b\" );\n // this should have reset the previous checks in the respective groups\n verifySixPack( 0, 1, 1, 0, 0, 1 );\n\n // and back to the previous check state\n checkRadio( \"group 1\", \"a\" );\n checkRadio( \"group 2\", \"b\" );\n checkRadio( \"group 3\", \"a\" );\n verifySixPack( 1, 0, 0, 1, 1, 0 );\n\n cleanupTestStep();\n }",
"@Test\n\tpublic void testGroupNumerousKeys() {\n\t\tint max = 1000;\n\t\tint oldsize = 0;\n\t\tint newsize = 0;\n\t\ttry {\n\t\t\toldsize = VintageConfigWebUtils.lookup(groupString).size();\n\t\t\tVintageConfigWebUtils.batchregister(groupString, keyString, valueString, 1, max);\n\t\t\t\n\t\t\tnewsize = VintageConfigWebUtils.lookup(groupString).size();\n\t\t\tassertEquals(oldsize + max, newsize);\n\n\t\t\tfor (int i = 0; i < max; i++) {\n\t\t\t\tList<String> nodesList = VintageConfigWebUtils.lookup(groupString, keyString+i);\n\t\t\t\tString nodevalue = getValueFromConfigNode(nodesList.get(0));\n\t\t\t\tassertEquals(nodevalue, valueString+i);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\tSystem.out.print(e.getMessage());\n\t\t\tfail(\"error in testGroupNumerousKeys\");\n\t\t} finally {\n\t\t\tVintageConfigWebUtils.batchunregister(groupString, keyString, 0, max);\n\t\t\tassertEquals(oldsize, VintageConfigWebUtils.lookup(groupString).size());\n\t\t}\n\t}"
] | [
"0.63795906",
"0.6041722",
"0.59263635",
"0.58270746",
"0.56784475",
"0.56776166",
"0.56716275",
"0.56677645",
"0.56667036",
"0.56421745",
"0.56042737",
"0.5578371",
"0.5560672",
"0.5558433",
"0.55185056",
"0.546994",
"0.54660493",
"0.54244107",
"0.54090667",
"0.54051864",
"0.5395052",
"0.5395052",
"0.5395052",
"0.5337655",
"0.5331894",
"0.5310533",
"0.53079236",
"0.52885854",
"0.5288343",
"0.52869815",
"0.52750236",
"0.5261695",
"0.5261695",
"0.52486336",
"0.5246815",
"0.52459735",
"0.52408296",
"0.5226631",
"0.5222731",
"0.52078414",
"0.51994145",
"0.5178179",
"0.5162408",
"0.51480937",
"0.51480937",
"0.5143012",
"0.51281154",
"0.51280075",
"0.5112307",
"0.5097643",
"0.50861114",
"0.5066223",
"0.5062958",
"0.5057849",
"0.5055768",
"0.5053325",
"0.50467455",
"0.5035394",
"0.50337815",
"0.5031263",
"0.502596",
"0.50236785",
"0.50236785",
"0.5021934",
"0.50213766",
"0.50213766",
"0.5009069",
"0.5002017",
"0.4998654",
"0.49923825",
"0.4989284",
"0.4977971",
"0.49769825",
"0.4976842",
"0.4973317",
"0.49731806",
"0.49696326",
"0.49631006",
"0.496013",
"0.49522507",
"0.49403325",
"0.49400544",
"0.49362803",
"0.49340364",
"0.49320272",
"0.493195",
"0.49279675",
"0.49151373",
"0.4912869",
"0.4910179",
"0.4902436",
"0.49016136",
"0.48958185",
"0.48921195",
"0.4889444",
"0.48811975",
"0.48730868",
"0.48730868",
"0.4870499",
"0.48680094"
] | 0.7554859 | 0 |
Service for catalogue summary functions | public interface SummaryService {
long getOrphanCount(List<Exoplanet> exoplanets);
String findPlanetWithHottestStar(List<Exoplanet> exoplanets);
List<TimelineEntry> createTimeline(List<Exoplanet> exoplanets);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getSummary();",
"public abstract String getSummaryForDatabase();",
"java.lang.String getSummary();",
"public MsvmSummaryInformation(IJIDispatch objectDispatcher, SWbemServices service) {\n\t\tsuper(objectDispatcher, service);\n\t}",
"void applySummary(Operation operation, Method method);",
"@ApiOperation(value = \"metalsSummary\", produces=\"application/json\")\n\t@ApiResponses(value={\n\t\t\t@ApiResponse(code = 200, message=\"Ok\", response = MetalSummaryResponse.class, responseContainer=\"Object\"),\n\t\t\t@ApiResponse(code = 400, message=\"Bad request\"),\n\t\t\t@ApiResponse(code = 500, message=\"Internal server error\")\n\t})\n\t@RequestMapping(value=\"/consumer-services/catalogs/metals/summary\", method = RequestMethod.GET)\n\tpublic MetalSummaryResponse metalSummary(\n\t\t\t@RequestHeader (name = \"client-id\", required = false) String clientId,\n\t\t\t@RequestHeader (name = \"Authorization\", required = false) String authorization,\n\t\t\t@RequestHeader (name = \"uuid\", required = false) String uuid){\n\t\treturn metalSummaryFormatter.metalResponseFormatter(\n\t\t\t\tmetalSummaryService.fetchMetalsByKey(Util.getSummaryKeyMetal()));\t\t\n\t}",
"@RequestMapping(method=RequestMethod.GET, value = \"/summary\")\n\tpublic List<ExpenseSummary> getSummaries() {\n\t\treturn service.getSummary();\n\t}",
"public abstract CharSequence getSummary();",
"Observable<SummaryResponse> fetchSummary();",
"public void consulterCatalog() {\n\t\t\n\t}",
"public Item2Vector<Summary> getSummaries() { return summaries; }",
"@Override\n\tpublic void wrapSummary(Customer model, HttpServletRequest request) {\n\t\t\n\t}",
"public java.lang.String getSummary(){\r\n return this.summary;\r\n }",
"public String getSummary() {\r\n return summary;\r\n }",
"@Secured({ \"GROUP_AGENT\" })\n Collection<ExpressionExperimentDetailsValueObject> generateSummaryObjects();",
"public String getSummary() {\n return summary;\n }",
"public interface ISummaryService {\n int saveSummary(Summary summary);\n Summary getUserSummaryByDate(User user,Date date);\n}",
"public String summaryInfo() {\r\n \r\n DecimalFormat df = new DecimalFormat(\"#,##0.0##\");\r\n String result = \"\";\r\n result = \"----- Summary for \" + getName() + \" -----\";\r\n result += \"\\nNumber of Ellipsoid Objects: \" + list.size();\r\n result += \"\\nTotal Volume: \" + df.format(totalVolume()) + \" cubic units\";\r\n result += \"\\nTotal Surface Area: \" + df.format(totalSurfaceArea()) \r\n + \" square units\";\r\n result += \"\\nAverage Volume: \" + df.format(averageVolume()) \r\n + \" cubic units\";\r\n result += \"\\nAverage Surface Area: \" + df.format(averageSurfaceArea()) \r\n + \" square units\";\r\n \r\n return result;\r\n }",
"String getOfferSummary();",
"@GET\n\t\t\t@Path(\"/{id}/summary\")\n\t\t\t@Produces({\"application/xml\"})\n\t\t\tpublic Rows getEquipserviceSummaryRows() {\n\t\t\t\tRows rows = null;\n\t\t\t\ttry {\n\t\t\t\t\trows=new EquipserviceDao(uriInfo,header).getEquipserviceSummaryRows();\n\t\t\t\t} catch (AuthenticationException e) {\n\t\t\t\t\t rows=new TemplateUtility().getFailedMessage(e.getMessage());\n\t\t\t\t\t e.printStackTrace();\n\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\tlogger.info( \"Error calling getEquipserviceRows()\"+ ex.getMessage());\n\t\t\t\t\t ex.printStackTrace();\n\t\t\t\t}\n\t\t\t\treturn rows;\n\t\t\t}",
"private void fnMeanSale() {\n }",
"public String summaryInfo() {\n DecimalFormat form2 = new DecimalFormat(\"#,##0.0##\");\n String result = \"\";\n result += \"----- Summary for \" + getName() + \" -----\"; \n result += \"\\nNumber of Icosahedrons: \" + (numberOfIcosahedrons());\n result += \"\\nTotal Surface Area: \" \n + form2.format(totalSurfaceArea());\n result += \"\\nTotal Volume: \" + form2.format(totalVolume()); \n result += \"\\nAverage Surface Area: \" \n + form2.format(averageSurfaceArea());\n result += \"\\nAverage Volume: \" + form2.format(averageVolume());\n result += \"\\nAverage Surface/Volume Ratio: \" \n + form2.format(averageSurfaceToVolumeRatio());\n \n return result;\n }",
"@Override\r\n\tpublic String getSummary() {\n\t\treturn null;\r\n\t}",
"@Override\n\tpublic String getSummary() {\n\t\treturn null;\n\t}",
"public String getSummary() {\n\t\treturn summary;\n\t}",
"public String getSummary() {\n\t\treturn summary;\n\t}",
"protected abstract String[] summarize();",
"public String getSummaryStatistics() {\n String format = \"%-50s \\t %12d \\t %12f \\t %12f %n\";\n int n = (int) getCount();\n double avg = getAverage();\n double std = getStandardDeviation();\n String name = getName();\n return String.format(format, name, n, avg, std);\n }",
"private JsonNode jsonSummary(ObjectMapper mapper) {\n ObjectNode summary = mapper.createObjectNode();\n summary.put(\"packages\", catalog.getPackages().size());\n summary.put(\"sources\", catalog.getSources().size());\n summary.put(\"cycles\", catalog.getCycles().size());\n summary.put(\"cycleSegments\", catalog.getCycleSegments().size());\n return summary;\n }",
"public void setSummary(String summary) {\n this.summary = summary;\n }",
"public String getSummary() {\n/* 121 */ StringBuilder sb = new StringBuilder();\n/* 122 */ sb.append(\"FindIds exeMicros[\").append(this.executionTimeMicros).append(\"] rows[\").append(this.rowCount).append(\"] type[\").append(this.desc.getName()).append(\"] predicates[\").append(this.predicates.getLogWhereSql()).append(\"] bind[\").append(this.bindLog).append(\"]\");\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 128 */ return sb.toString();\n/* */ }",
"Catalog getCatalog();",
"Catalog getCatalog();",
"@Override\n\tprotected Summary doGetSummary(Document document, Locale locale, String snippet, PortletRequest portletRequest,\n\t\t\tPortletResponse portletResponse) throws Exception {\n\t\t Summary summary = createSummary(document);\n\t\t summary.setMaxContentLength(200);\n\t\t return summary;\n\t}",
"public static PrimitiveMethodSummary getSummary(ControlFlowGraph cfg, CallSite cs) {\n if (clone_cache != null) {\n //System.out.println(\"Checking cache for \"+new Pair(cfg, cs));\n PrimitiveMethodSummary ms = (PrimitiveMethodSummary) clone_cache.get(new Pair(cfg, cs));\n if (ms != null) {\n //System.out.println(\"Using specialized version of \"+ms.getMethod()+\" for call site \"+cs);\n return ms;\n }\n }\n return getSummary(cfg);\n }",
"public Catalog getCatalog();",
"public interface IStatisticsService {\n\n public void salesStatistics();\n\n public void productsStatistics();\n\n public void customersStatistics();\n}",
"public void setSummary(String summary) {\n this.summary = summary;\n }",
"public interface StatisticsAggregator {\r\n\t\t// This is an input. Make note of this price.\r\n\t\tpublic void putNewPrice(String symbol, double price);\r\n\r\n\t\t// Get the average price\r\n\t\tpublic double getAveragePrice(String symbol);\r\n\r\n\t\t// Get the total number of prices recorded\r\n\t\tpublic int getTickCount(String symbol);\r\n\t}",
"@Test\n public void getCatalogSalesTest() {\n Integer size = null;\n Integer page = null;\n String order = null;\n // PageResourceCatalogSale response = api.getCatalogSales(size, page, order);\n\n // TODO: test validations\n }",
"@RequestMapping(method = RequestMethod.GET)\n\tpublic ResponseEntity<?> getCatalogItems() {\n\t\tBraveSpanContext openTracingContext = getTracingContext();\n\t\tio.opentracing.Span span = tracer.buildSpan(\"GetCatalogFromService\").asChildOf(openTracingContext)\n\t\t\t\t.withTag(\"Description\", \"Get All Catalogs\")\n\t\t\t\t.withTag(\"http_request_url\", request.getRequestURI()).start();\n\t\tbrave.Span braveSpan = ((BraveSpan) span).unwrap();\n\t\tbraveSpan.kind(Kind.SERVER);\n\n\t\tSummary.Timer requestTimer = Prometheus.requestLatency.startTimer();\n\t\ttry {\n\t\t\tlog.debug(\"Calling getCatalogItems() method of catalog controller is called\");\n\t\t\tPrometheus.getCounters.inc();\n\t\t\tPrometheus.inProgressRequests.inc();\n\t\t\tio.opentracing.Span mongospan = tracer.buildSpan(\"MongoService\").asChildOf(span)\n\t\t\t\t\t.withTag(\"Description\", \"MongoDB Service Call\").start();\n\t\t\tbrave.Span braveMongoSpan = ((BraveSpan) mongospan).unwrap();\n\t\t\tlog.debug(\"Calling getCatalogItems() method of catalog service\");\n\t\t\tList<Catalog> catalog = service.getCatalogItems(mongospan);\n\t\t\tbraveMongoSpan.finish();\n\t\t\tif (catalog == null) {\n\t\t\t\tlog.debug(\"No records found. Returning NOT_FOUND status.\");\n\t\t\t\treturn new ResponseEntity<>(HttpStatus.NOT_FOUND);\n\t\t\t} else {\n\t\t\t\tlog.debug(\"Returning list of items.\");\n\t\t\t\treturn new ResponseEntity<>(catalog, HttpStatus.OK);\n\t\t\t}\n\t\t} catch (Exception exc) {\n\t\t\tPrometheus.requestFailures.inc();\n\t\t\tlog.error(\"Error in getCatalogItems\", exc);\n\t\t\tspan.setTag(\"error\", exc.getMessage());\n\t\t\treturn new ResponseEntity<>(exc.toString(), HttpStatus.INTERNAL_SERVER_ERROR);\n\t\t} finally {\n\t\t\trequestTimer.observeDuration();\n\t\t\tPrometheus.inProgressRequests.dec();\n\t\t\tspan.finish();\n\t\t}\n\t}",
"public static PrimitiveMethodSummary getSummary(ControlFlowGraph cfg) {\n PrimitiveMethodSummary s = (PrimitiveMethodSummary) summary_cache.get(cfg);\n if (s == null) {\n if (TRACE_INTER) out.println(\"vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv\");\n if (TRACE_INTER) out.println(\"Building summary for \"+cfg.getMethod());\n try {\n BuildMethodSummary b = new BuildMethodSummary(cfg);\n s = b.getSummary();\n } catch (RuntimeException t) {\n System.err.println(\"Runtime exception when getting method summary for \"+cfg.getMethod());\n throw t;\n } catch (Error t) {\n System.err.println(\"Error when getting method summary for \"+cfg.getMethod());\n throw t;\n }\n summary_cache.put(cfg, s);\n if (TRACE_INTER) out.println(\"Summary for \"+cfg.getMethod()+\":\");\n if (TRACE_INTER) out.println(s);\n if (TRACE_INTER) out.println(\"^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\");\n if (TRACE_DOT) {\n try {\n BufferedWriter dos = new BufferedWriter(new OutputStreamWriter(\n new FileOutputStream(\"out.txt\", true)));\n dos.write(\"Method summary for \" + s.getMethod() + \"\\n\");\n s.dotGraph(dos);\n dos.flush();\n dos.close();\n } catch (IOException x) {\n x.printStackTrace();\n }\n } \n }\n return s;\n }",
"@Override\n public String getDescription() {\n return \"Digital goods listing\";\n }",
"public interface AnalyzeService {\n\n /*分析唐诗中作者的创作数量*/\n List<AuthorCount> analyzeAuthorCount();\n\n /*词云分析*/\n List<WordCount> analyzeWordCount();\n}",
"protected void updateSummaries() { }",
"protected void updateSummaries() { }",
"public void summary() {\r\n System.out.println(this.nama + \" usia \" + this.usia + \" tahun bekerja di Perusahaan \" + Employee.perusahaan);\r\n System.out.println(\"Memiliki total gaji \" + (Employee.pendapatan + Employee.lembur));\r\n }",
"public native final String summary() /*-{\n\t\treturn this[\"summary\"];\n\t}-*/;",
"public static void showStatistics(){\n\n }",
"protected abstract String getStatistics();",
"public void summary (java.io.PrintStream out) { throw new RuntimeException(); }",
"private void SummaryProfile() {\n //format the date & number\n DateFormat df = DateFormat.getDateInstance( DateFormat.LONG, Locale.ENGLISH );\n NumberFormat nf = NumberFormat.getCurrencyInstance( new Locale(\"id\",\"id\"));\n \n GregorianCalendar gregorian = new GregorianCalendar( );\n \n String[] displayMonths = new DateFormatSymbols().getMonths();\n \n //month and year variable ( month start from 0, so 0 is january, 11 is december )\n int gregorianmonth = gregorian.get(Calendar.MONTH);\n int gregorianyear = gregorian.get(Calendar.YEAR);\n \n \n //the title of the summary\n //ok, we must use temporary variable because of missmatch with db standard date\n int displaygregorianmonth = gregorianmonth;\n int displaygregorianyear = gregorianyear;\n \n //december watchout\n //if the current month is january ( 0 ) then we must display summary for \n //dec ( 11 ) last year ( current year - 1 )\n if(displaygregorianmonth==0) {\n displaygregorianmonth = 11;\n displaygregorianyear = gregorianyear - 1;\n }\n //if the current month is not january, then just minus it with one, current year is \n //same\n else {\n displaygregorianmonth -= 1;\n }\n DateLB.setText(\"Summary of the Company in \" + \n displayMonths[displaygregorianmonth] + \" \" + displaygregorianyear );\n \n //the summary report ( month start from 1 so no need minus anymore )\n SummarySaleLB.setText( \"Total Value of Sale Transaction : \" +\n nf.format( reportdb.TotalSaleValue( gregorianmonth,\n gregorianyear ) ) );\n SummaryPurchaseLB.setText( \"Total Value of Purchase Transaction : \" +\n nf.format( reportdb.TotalPurchaseValue( gregorianmonth,\n gregorianyear ) ) );\n SummarySalesmanCommisionLB.setText( \"Total Value of Salesman Commision Transaction : \" +\n nf.format( reportdb.TotalSalesmanCommisionValue( gregorianmonth,\n gregorianyear ) ) );\n SummarySalaryPaymentLB.setText( \"Total Value of Salary Payment Transaction : \" + \n nf.format( reportdb.TotalSalaryPaymentValue( gregorianmonth,\n gregorianyear ) ) );\n SummaryChargesLB.setText( \"Total Value of Outcome Payment Transaction : \" +\n nf.format( reportdb.TotalOutcomeValue( gregorianmonth,\n gregorianyear ) ) );\n \n }",
"@Override\n\tpublic String getSummary(Locale locale) {\n\t\treturn \"Title: \" + _dataset.getTitle();\n\t}",
"long getTotalProductsCount();",
"public interface Summarizer\n{\n public void startColumn(CharSequence label) throws Exception;\n public void endColumn() throws Exception;\n public void start(CharSequence label) throws Exception;\n public void description(CharSequence desc) throws Exception;\n public void setNorms(double f, double f2);\n public void item(Object key, int h) throws Exception;\n public void item(Object key, Stats1D h) throws Exception;\n public void finish(int sum) throws Exception;\n public void value(CharSequence label, double value) throws Exception;\n public void value(CharSequence label, CharSequence value) throws Exception;\n public void value(CharSequence label, long value) throws Exception;\n public void close() throws Exception;\n\n public final static Summarizer NO_SUMMARIZER = new Summarizer() {\n\t public void startColumn(CharSequence label) { }\n\t public void endColumn() { }\n\t public void start(CharSequence label) { }\n\t public void description(CharSequence desc) { }\n\t public void setNorms(double f, double f2) { }\n\t public void item(Object key, int h) { }\n\t public void item(Object key, Stats1D h) { }\n\t public void finish(int sum) { }\n\t public void value(CharSequence label, double value) { }\n\t public void value(CharSequence label, CharSequence value) { }\n\t public void value(CharSequence label, long value) { }\n\t public void close() { }\n };\n}",
"void statistics();",
"public interface DataAcquisitionService extends Service<DataAcquisition> {\n\n //首页查询问卷使用信息\n List<DataAcquisition> questionnaireUseInfoListByPage();\n //根据日期查询来访者使用的问卷\n List<DataAcquisition> findQuestionnaireForVisitor (DataAcquisition dataAcquisition);\n //查询活动的填报人数\n Integer findCountByActivityId(String activityId);\n List<DataAcquisition> findMyQuestionnaireListByPage(Map<String,Object> map);\n //查询来访者填写问卷的总数\n int getDataAcquisitionTotal(String userId);\n //填写问卷类别总数\n List<DataAcquisition> getQuestionnaireTypeTotal(String userId);\n //查询来访者的填写结果\n List<DataAcquisition> findDataAcquistionForVisitor(DataAcquisition dataAcquisition);\n //来访者的问卷统计分析\n Result getDataAcquisitionForVisitingCount(String userId);\n\n}",
"public interface LangIndependentSummary \n\t extends Summary {\n\t/**\n\t * Sets the summary\n\t * @param summary\n\t */\n\tpublic void setSummary(String summary);\n\t/**\n\t * Gets the summary as a {@link Reader}\n\t * @return the summary as a {@link Reader}\n\t */\n\t@GwtIncompatible(\"GWT does not supports IO\")\n\tpublic Reader asReader();\n\t/**\n\t * @return true if the summary has no data\n\t */\n\tpublic boolean isEmpty();\n\t/**\n\t * @return true if the summary has data\n\t */\n\tpublic boolean hasData();\n}",
"public String summaryStats() {\n\t\treturn new StringBuilder()\n\t\t\t\t.append(\"Documents: \"+countCorpusDocuments()+\", \")\n\t\t\t\t.append(\"Terms: \"+countCorpusTerms()+\", \")\n\t\t\t\t.append(\"Unique terms: \"+countUniqueTerms()).toString();\n\t}",
"private static final void displayAttractionSummary()\r\n {\r\n System.out.println(\"Display Attraction Summary Feature Selected!\");\r\n System.out.println(\"--------------------------------------\");\r\n \r\n // step through array of attractions with for loop\r\n for(int i = 0; i < attractionCount; i++)\r\n {\r\n attractionList[i].printDetails();\r\n System.out.println();\r\n }\r\n }",
"List<CatalogItem> getAllCatalogItems();",
"private RFSServiceSummary processService(Service service) {\n \t\tIMonitoringSummary serviceSummary = monitoringStateModel\n \t\t\t\t.summary(service);\n\t\tserviceSummary.addContextObject(new ObjectContext<DateTimeRange>(\n\t\t\t\tgetPeriod()));\n \t\tserviceSummary.compute(new NullProgressMonitor());\n \n \t\tif (serviceSummary instanceof RFSServiceSummary) {\n \n \t\t\tfinal ReportingEngine engine = (ReportingEngine) getEngine();\n \t\t\tengine.setService(service);\n \t\t\tengine.setServiceSummary((RFSServiceSummary) serviceSummary);\n \t\t\tengine.setJobMonitor(getJobMonitor());\n \t\t\tengine.setDataProvider(this.getDataProvider());\n \t\t\tengine.setPeriod(getPeriod());\n \t\t\tengine.execute();\n \t\t\tif (engine.getFailures().size() > 0) {\n \t\t\t\t// Don't add anmy\n \t\t\t\tthis.getFailures().addAll(engine.getFailures());\n \t\t\t}\n \t\t\treturn (RFSServiceSummary) serviceSummary;\n \t\t}\n \t\treturn null;\n \t}",
"void setSummary(java.lang.String summary);",
"public String summaryInfo() {\r\n DecimalFormat df = new DecimalFormat(\"#,##0.0##\");\r\n String output = \"\";\r\n output += \"----- Summary for \" + getName() + \" -----\";\r\n output += \"\\nNumber of PentagonalPyramid: \" + list.size();\r\n output += \"\\nTotal Surface Area: \" + df.format(totalSurfaceArea());\r\n output += \"\\nTotal Volume: \" + df.format(totalVolume());\r\n output += \"\\nAverage Surface Area: \" + df.format(averageSurfaceArea());\r\n output += \"\\nAverage Volume: \" + df.format(averageVolume());\r\n return output;\r\n }",
"public interface TransactionStatisticService {\n\n boolean processTransaction(Transaction transaction);\n\n TransactionStatistic getSummaryTransactionStatistic();\n}",
"public void summarizeData() {\n\t\t//take json object and populate a POJO\n\t\t\n//\t\tfor(javaObject : x) {\n\t\t\n\t\t\t//new JobSummaryObject\n\t\t\t//\n\t}",
"public PrimitiveMethodSummary getSummary() {\n PrimitiveMethodSummary s = new PrimitiveMethodSummary(this,\n method,\n param_nodes,\n my_global,\n methodCalls,\n callToRVN,\n callToTEN,\n castMap,\n castPredecessors,\n returned,\n thrown,\n passedAsParameter,\n sync_ops,\n string_nodes);\n return s;\n }",
"public interface Statistics {\n\n int getBrowseCount();\n\n int getSalesCount();\n}",
"public void createSummary(){\n\n for(int j=0;j<=noOfParagraphs;j++){\n int primary_set = paragraphs.get(j).sentences.size()/5;\n\n //Sort based on score (importance)\n Collections.sort(paragraphs.get(j).sentences,new SentenceComparator());\n for(int i=0;i<=primary_set;i++){\n contentSummary.add(paragraphs.get(j).sentences.get(i));\n }\n }\n\n //To ensure proper ordering\n Collections.sort(contentSummary,new SentenceComparatorForSummary());\n printSummary();\n }",
"public void showCatalogue() {\n for (Record r : cataloue) {\n System.out.println(r);\n }\n }",
"protected abstract List<Sentence> prepareSummary(Article article);",
"@Test public void summaryInfoTest()\n {\n PentagonalPyramid[] pArray = new PentagonalPyramid[100];\n PentagonalPyramid p1 = new PentagonalPyramid(\"PP1\", 1, 2);\n PentagonalPyramid p2 = new PentagonalPyramid(\"PP1\", 2, 3);\n PentagonalPyramid p3 = new PentagonalPyramid(\"PP1\", 3, 4);\n pArray[0] = p1;\n pArray[1] = p2;\n pArray[2] = p3;\n \n PentagonalPyramidList2 pList = new PentagonalPyramidList2(\"ListName\", \n pArray, 3);\n \n Assert.assertEquals(\"summary Test\", true, \n pList.summaryInfo().contains(\"Total\"));\n \n }",
"public interface Aggregation {\n\n final int SST = 0;\n final int SST_ANOMALY = 1;\n final int RANDOM_UNCERTAINTY = 2;\n final int COVERAGE_UNCERTAINTY = 3;\n final int LARGE_SCALE_UNCERTAINTY = 4;\n final int ADJUSTMENT_UNCERTAINTY = 5;\n final int SYNOPTIC_UNCERTAINTY = 6;\n final int SEA_ICE_FRACTION = 7;\n\n long getSampleCount();\n\n Number[] getResults();\n\n public double getSeaSurfaceTemperature();\n\n public double getSeaSurfaceTemperatureAnomaly();\n\n public double getRandomUncertainty();\n\n public double getLargeScaleUncertainty();\n\n public double getCoverageUncertainty();\n\n public double getAdjustmentUncertainty();\n\n public double getSynopticUncertainty();\n\n public double getSeaIceFraction();\n}",
"public ItemSummary() {\n }",
"@Override\n public SummaryLoader.SummaryProvider createSummaryProvider(Activity activity,\n SummaryLoader summaryLoader) {\n return new SummaryProvider(activity,summaryLoader);\n //return new SummaryProvider(summaryLoader);\n //end zhixiong.liu.hz for XR 6107743 2018/3/14\n }",
"@Override\n public String getDescriptiveName() {\n \treturn \"Stochastic Depression Analysis\";\n }",
"public void setSummary(String summary) {\n\t\tthis.summary = summary;\n\t}",
"public interface IndustryViewService {\n\n /**\n * 获取一个行业的基本数据统计信息\n *\n * @param industryName 行业名称\n * @param period 时间间隔\n * @return 行业基本数据VO包\n */\n IndustryVO getBasicIndustryInfo(String industryName, IndustryPeriodEnum period) throws NotFoundException;\n\n /**\n * 获取一个行业一段时间内的价格统计信息(折线图)\n *\n * @param industryName 行业名称\n * @param period 时间间隔\n * @return 行业基本数据VO包\n */\n LinearChartVO getIndustryPrice(String industryName, IndustryPeriodEnum period) throws NotFoundException;\n\n /**\n * 获取一个行业一段时间内的涨跌幅与大盘涨跌幅对比(折线图)\n *\n * @param industryName 行业名称\n * @param period 时间\n * @return\n * @throws BadInputException\n * @throws NotFoundException\n */\n LinearChartVO getCompareLinearChartVO(String industryName, IndustryPeriodEnum period) throws BadInputException, NotFoundException;\n\n /**\n * 获取一个行业一段时间内的资金流向统计信息(柱状图)\n *\n * @param industryName 行业名称\n * @param period 时间间隔\n * @return 行业基本数据VO包\n */\n VolumeVO getIndustryVolume(String industryName, IndustryPeriodEnum period) throws NotFoundException;\n\n /**\n * 获取所有行业涨跌幅排行榜\n *\n * @return 按照涨到跌排序的行业\n */\n List<RiseAndFallVO> getRiseAndFallList();\n}",
"public APISummary(Map<String,Object> jsonValues) {\n\t\tthis.id = (String) jsonValues.get( \"id\" );\n\t\tthis.name = (String) jsonValues.get( \"name\" );\n\t\tthis.version = (String) jsonValues.get( \"version\" );\n\t\tthis.context = (String) jsonValues.get( \"context\" );\n\t\tthis.provider = (String) jsonValues.get( \"provider\" );\n\t\tthis.description = (String) jsonValues.get( \"description\" );\n\t\tthis.status = (String) jsonValues.get( \"status\" );\n\t}",
"PurchaseSummary retrievePurchaseSummary(Long customerID) throws SQLException, DAOException;",
"public abstract String usage();",
"ExpressionExperimentDetailsValueObject generateSummary( Long id );",
"public interface INutritionalService {\n\n /**\n * Computes the nutritional score of a product\n *\n * @param product which going to be \"computed\"\n * @return the nutritional score\n */\n int computeNutritionalScore(Map<String, Object> product);\n\n\n}",
"@GET\n\t\t\t@Path(\"/{id}/summary\")\n\t\t\t@Produces({\"application/xml\"})\n\t\t\tpublic Rows getIndentSummaryRows() {\n\t\t\t\tRows rows = null;\n\t\t\t\ttry {\n\t\t\t\t\trows=new IndentDao(uriInfo,header).getIndentSummaryRows();\n\t\t\t\t} catch (AuthenticationException e) {\n\t\t\t\t\t rows=new TemplateUtility().getFailedMessage(e.getMessage());\n\t\t\t\t\t e.printStackTrace();\n\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\tlogger.info( \"Error calling getIndentRows()\"+ ex.getMessage());\n\t\t\t\t\t ex.printStackTrace();\n\t\t\t\t}\n\t\t\t\treturn rows;\n\t\t\t}",
"@SuppressWarnings(\"unused\")\n // Possible external use\n Collection<ExpressionExperimentDetailsValueObject> retrieveSummaryObjects( Collection<Long> ids );",
"@Override\n\t\t\tpublic void suprimer(Catalogue catalogue) {\n\t\t\t\t\n\t\t\t}",
"@Override\n public List<OrderSummary> summary() throws EmptyOrderListException {\n logger.info(\"Displaying Order Summary\");\n if(registeredOrders.size() > 0) {\n return registeredOrders.stream().\n collect(groupingBy(Bid::forOrder, mapping(Order::quantity, toList()))).\n entrySet().stream().\n map(toOrderSummary()).\n sorted(byTypeAndPrice).\n collect(toList());\n }\n else {\n throw new EmptyOrderListException(\"Empty Order List. Size: \" + registeredOrders.size());\n }\n }",
"public List viewTotalInscritosBD();",
"public void visitHardTotals( DevCat devCat ) {}",
"@SuppressWarnings(\"unchecked\")\r\n\tpublic List<ServiceCat> listServiceCat() {\r\n\t\tList<ServiceCat> courses = null;\r\n\t\ttry {\r\n\t\t\tcourses = session.createQuery(\"from ServiceCat\").list();\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn courses;\r\n\t}",
"public SummaryController(MongoDatabase database) {\n gson = new Gson();\n this.database = database;\n summaryCollection = database.getCollection(\"emotions\");\n }",
"public interface StorageStats {\n\n /**\n * Returns storage usage for all resources.\n *\n * @return a list of storage resource usage objects\n */\n List<StorageResourceUsage> getStorageResourceUsage();\n\n /**\n * Returns the storage usage for the specified resource.\n *\n * @param resourceName the name of the resource\n * @return a storage resource usage object\n */\n StorageResourceUsage getStorageResourceUsage(String resourceName);\n\n\n long getTotalStorageUsage(DataCategory dataCategory);\n\n long getTotalStorageUsage(DataCategory dataCategory, String projectId);\n\n}",
"@Override\n protected void printAggregates() {\n printRetrieveStudyAggregates(queryInstancesAggregates, firstResponseAggregates,\n firstFrameAggregates, totalAggregates, transferRateAggregates, frameRateAggregates);\n }",
"String getOrderSummary(){\n String s = \"\";\n\n for (Pizza p : pizzas) {\n s += p.getInfo() + \"\\n\";\n }\n\n return s;\n }",
"double GetTaskPrice(int Catalog_ID);",
"public interface CategoryService {\n\n List<CategoryPack> findCategoryPackList();\n\n List<Category> findCategoryList(Integer start, Integer count);\n\n Integer findCategoryTotalNumber();\n\n CategoryPack selectCategoryById(Integer cid);\n\n void deleteCategoryById(Integer id);\n\n void addCategory(Category category);\n\n void updateCategory(Category category);\n}",
"public ServiceResultAggregate(String name) {\n\t\tsuper(name);\n\t\tthis.components = new ArrayList<>(5);\n\t}",
"public List<CatalogService> getService(String service);",
"public interface StatisticsService {\n /**\n * Returns fed animals percentage which is between 0 and 1.\n *\n * @return fed animals percentage.\n */\n Float getFedAnimalsPercentage();\n}",
"public ControladorCatalogoServicios() {\r\n }"
] | [
"0.6634503",
"0.6494011",
"0.6369055",
"0.6051677",
"0.59494686",
"0.5941631",
"0.5877949",
"0.5875762",
"0.5874249",
"0.5871931",
"0.58286464",
"0.5793655",
"0.57476133",
"0.57242393",
"0.5697619",
"0.56971955",
"0.5665776",
"0.5659127",
"0.5603548",
"0.5598262",
"0.5597042",
"0.5582454",
"0.5542391",
"0.5518826",
"0.5507695",
"0.5507695",
"0.5495504",
"0.54874396",
"0.547509",
"0.54694015",
"0.5457678",
"0.5456629",
"0.5456629",
"0.5449953",
"0.54362977",
"0.5419152",
"0.54187006",
"0.54161286",
"0.5390669",
"0.5388458",
"0.53872794",
"0.53861403",
"0.5371385",
"0.53691685",
"0.5362206",
"0.5362206",
"0.5359562",
"0.53547937",
"0.5349026",
"0.5343895",
"0.5328351",
"0.53264874",
"0.5316969",
"0.5304745",
"0.5291859",
"0.52824575",
"0.5279258",
"0.5278262",
"0.52709496",
"0.52675",
"0.5265748",
"0.5265377",
"0.52653587",
"0.5262098",
"0.5259504",
"0.52581173",
"0.52497065",
"0.5241778",
"0.52406996",
"0.5232774",
"0.5227906",
"0.52270406",
"0.5206929",
"0.51837546",
"0.51678693",
"0.5162126",
"0.5154607",
"0.5149073",
"0.5148083",
"0.514732",
"0.51367104",
"0.5136625",
"0.5127365",
"0.51266044",
"0.5123923",
"0.51217353",
"0.5121218",
"0.51207876",
"0.5119961",
"0.5115761",
"0.51124424",
"0.510664",
"0.51051056",
"0.5099785",
"0.50981945",
"0.5089732",
"0.5086514",
"0.50833243",
"0.50829774",
"0.50761503"
] | 0.7165756 | 0 |
Creates new form TicketForm | public VentanaVentaTicket() {
initComponents();
VentanaVentaTicket.textoArea.append("************SPICY FACTORY***************\n");
VentanaVentaTicket.textoArea.append("~~~~~~~~Detalle de la Venta ~~~~~~~~~~~~\n");
VentanaVentaTicket.textoArea.append("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static Result newForm() {\n return ok(newForm.render(palletForm, setOfArticleForm));\n }",
"public ticket() {\n initComponents();\n this.mostrar();\n }",
"public ticket() {\n initComponents();\n autoID();\n }",
"public TicketBooking() {\n initComponents();\n }",
"@PostMapping(value=\"/create\")\n\tpublic Ticket creatTicket(@RequestBody Ticket ticket){\n\t\treturn ticketBookingService.createTicket(ticket);\n\t}",
"public Ticket() {\n\n }",
"public Ticket() {\n initComponents();\n setLocationRelativeTo(null);\n Calendar Cal= Calendar.getInstance();\n String fec= Cal.get(Cal.DATE)+\"/\"+(Cal.get(Cal.MONTH)+1)+\"/\"+Cal.get(Cal.YEAR);\n fecha.setText(fec);\n }",
"FORM createFORM();",
"public static void create(Formulario form){\n daoFormulario.create(form);\n }",
"@FXML\r\n private void handleButtonCreateTicket() {\r\n MobileApplication.getInstance().addViewFactory(NEWTICKET_VIEW, () -> new NewTicketView(NEWTICKET_VIEW).getView());\r\n MobileApplication.getInstance().switchView(NEWTICKET_VIEW);\r\n\r\n }",
"public Ticket_AddResponse() {\n initComponents();\n }",
"public Team create(TeamDTO teamForm);",
"public PurchaseNewTicket() {\n initComponents();\n mLoadMovieName();\n mLoadTime();\n }",
"Ticket(int id)//Instanciacion del constructor de la clase con sus respectivos parametros.\r\n {\r\n ticketID=id;//inicializacion de atributo de la clase con los parametros recibidos en el constructor.\r\n }",
"@RequestMapping(method = RequestMethod.GET)\n \tpublic String createForm(Model model, ForgotLoginForm form) {\n \t\tmodel.addAttribute(\"form\", form);\n \t\treturn \"forgotlogin/index\";\n \t}",
"@GetMapping(\"/create\")\n public ModelAndView create(@ModelAttribute(\"form\") final CardCreateForm form) {\n return getCreateForm(form);\n }",
"public Tickets createTicket(Users user) {\n Tickets tickets = new Tickets();\n tickets.setTicketId(UUID.randomUUID().toString());\n tickets.setId(user.getId());\n entityManager.persist(tickets);\n return tickets;\n }",
"public FrmCrearEmpleado() {\n initComponents();\n tFecha.setDate(new Date());\n }",
"public Ventaform() {\n initComponents();\n }",
"public IssueBookForm() {\n initComponents();\n }",
"@Override\n\tpublic int createTicket(Booking_ticket bt) {\n\t\treturn btr.createTicket(bt);\n\t}",
"public Ticket() {\n\t\tticketStatus = TICKET_STATUS_OPEN;\n\t}",
"@PostMapping(\"/tickets\")\n @Timed\n public ResponseEntity<Ticket> createTicket(@Valid @RequestBody Ticket ticket) throws URISyntaxException {\n log.debug(\"REST request to save Ticket : {}\", ticket);\n if (ticket.getId() != null) {\n throw new BadRequestAlertException(\"A new ticket cannot already have an ID\", ENTITY_NAME, \"idexists\");\n }\n Ticket result = ticketRepository.save(ticket);\n return ResponseEntity.created(new URI(\"/api/tickets/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }",
"public ViewTicketDetails() {\n initComponents();\n bindTableTicket();\n preparePopupMenu();\n selected_row=-1;\n }",
"public static Result startNewForm() {\r\n\t\tString formName = ChangeOrderForm.NAME;\r\n\t\tDecision firstDecision = CMSGuidedFormFill.startNewForm(formName,\r\n\t\t\t\tCMSSession.getEmployeeName(), CMSSession.getEmployeeId());\r\n\t\treturn ok(backdrop.render(firstDecision));\r\n\t}",
"public Ticket(){\n\t\tpass = new Passenger();\n\t}",
"public Form(){ \n\t\tsuper(tag(Form.class)); \n\t}",
"@RequestMapping(value={\"/projects/add\"}, method= RequestMethod.GET)\r\n\tpublic String createProjectForm(Model model) {\r\n\t\tUser loggedUser= sessionData.getLoggedUser();\r\n\t\tmodel.addAttribute(\"loggedUser\", loggedUser);\r\n\t\tmodel.addAttribute(\"projectForm\", new Project());\r\n\t\treturn \"addProject\";\r\n\t}",
"public tickets ()\r\n {\r\n firstName = \" \"; //set to empty string. Pass in user input.\r\n lastName = \" \";\r\n venueName = \"Litchfield Recreation Center\"; \r\n performanceName = \"Hamlet\";\r\n performanceDate = \"May 8, 2020\";\r\n performanceTime = \"6:30PM\";\r\n \r\n }",
"public AddExpensesForm() {\n initComponents();\n }",
"public Add_Lecture_Form() {\n initComponents();\n \n this.setVisible(true);\n this.pack();\n this.setLocationRelativeTo(null);\n }",
"public TorneoForm() {\n initComponents();\n }",
"public static TicketInfo newInstance(TicketPurchaseLocal ticket) {\n TicketInfo fragment = new TicketInfo();\n Bundle args = new Bundle();\n args.putSerializable(\"ticket\", ticket);\n fragment.setArguments(args);\n return fragment;\n }",
"@Override\n\tpublic void create(CreateCoinForm form) throws Exception {\n\t}",
"public static void createTicket(Ticket ticket) {\n try {\n Connection conn = Main.conn;\n PreparedStatement statement = conn.prepareStatement(\"INSERT INTO bs_tickets (username, admin, status, question, server, date_created, date_accepted, date_resolved) VALUES (?, ?, ?, ?, ?, ?, ?, ?)\");\n\n statement.setString(1, ticket.username);\n statement.setString(2, ticket.admin);\n statement.setString(3, ticket.status);\n statement.setString(4, ticket.question);\n statement.setString(5, ticket.server);\n statement.setInt(6, ticket.date_created);\n statement.setInt(7, ticket.date_accepted);\n statement.setInt(8, ticket.date_resolved);\n\n statement.executeUpdate();\n }\n catch (SQLException e) {\n e.printStackTrace();\n }\n }",
"@RequestMapping(params = \"new\", method = RequestMethod.GET)\n\t@PreAuthorize(\"hasRole('ADMIN')\")\n\tpublic String createProductForm(Model model) { \t\n \t\n\t\t//Security information\n\t\tmodel.addAttribute(\"admin\",security.isAdmin()); \n\t\tmodel.addAttribute(\"loggedUser\", security.getLoggedInUser());\n\t\t\n\t model.addAttribute(\"product\", new Product());\n\t return \"products/newProduct\";\n\t}",
"public FormInserir() {\n initComponents();\n }",
"public TAccountTicketFlow(){}",
"public TaskDetailUpdateForm() {\n initComponents();\n }",
"public static AddNewScheduleDialog createInstance(int quantity){\n AddNewScheduleDialog frag = new AddNewScheduleDialog();\n frag.quantity = quantity;\n return frag;\n }",
"public ScheduleForm() {\n initComponents();\n }",
"public Form() {\n initComponents();\n }",
"public Ticket(String name, javax.money.MonetaryAmount price, Festival festival){\n this.name = name;\n this.price = price;\n this.festival = festival;\n }",
"public InvoiceCreate() {\n initComponents();\n }",
"public UserForm(){ }",
"private FrmMainForm() {\n }",
"public static FormV1 createEntity() {\n FormV1 formV1 = new FormV1()\n .customerId(DEFAULT_CUSTOMER_ID)\n .formType(DEFAULT_FORM_TYPE);\n return formV1;\n }",
"void setTicket(Ticket ticket) {\n this.ticket = ticket;\n }",
"public BtxDetailsKcFormDefinition() {\n super();\n }",
"public ContactoFormBean() {\r\n setContexto();\r\n }",
"public form() {\n initComponents();\n }",
"public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }",
"public ProductCreate() {\n initComponents();\n }",
"public FrmNuevoEmpleado() {\n initComponents();\n }",
"public Ticket createTicket(int numLines) {\r\n\t\tList<Line> lineList = new ArrayList<Line>();\r\n\t\tint ticketScore = 0;\r\n\t\tfor (int i=0; i < numLines; i++) {\r\n\t\t\tList<Integer> lineSeq = generateLine();\r\n\t\t\tint lineScore = generateScore(lineSeq);\r\n\t\t\tticketScore += lineScore;\r\n\t\t\tLine line = new Line();\r\n\t\t\tline.setLine(lineSeq);\r\n\t\t\tline.setLineScore(lineScore);\r\n\t\t\tlineList.add(line);\r\n\t\t}\r\n\t\tList<Line> sortedLineList = sortLines(lineList);\r\n\t\t\r\n\t\tTicket ticket = new Ticket(id,numLines,sortedLineList,ticketScore);\r\n\t\tid += 1;\r\n\t\tticketList.add(ticket);\r\n\t\treturn ticket;\r\n\t}",
"public TransferOfFundsForm() {\n super();\n }",
"@GetMapping(\"/add\")\n\tpublic String showFormForAdd(Model model) {\n\t\tMemo memo = new Memo();\n\t\t\n\t\t// load categories for select options\n\t\tMap<String, String> mapCategories = generateMapCategories();\n\t\t\n\t\t// add to the model\n\t\tmodel.addAttribute(\"memo\", memo);\n\t\tmodel.addAttribute(\"categories\", mapCategories);\n\t\t\n\t\treturn \"add\";\n\t}",
"public Ticket(String destination, int price)\n {\n this.destination = destination;\n this.price = price;\n issueDateTime = new Date();\n \n }",
"@RequestMapping(value = \"/report.create\", method = RequestMethod.GET)\n @ResponseBody public ModelAndView newreportForm(HttpSession session) throws Exception {\n ModelAndView mav = new ModelAndView();\n mav.setViewName(\"/sysAdmin/reports/details\");\n\n //Create a new blank provider.\n reports report = new reports();\n \n mav.addObject(\"btnValue\", \"Create\");\n mav.addObject(\"reportdetails\", report);\n\n return mav;\n }",
"@Override\n\tpublic IAdhocTicket createTicket(String carparkId) {\n\t\tcurrentTicketNo++; // when a ticket is issued, ticketNo increments by 1\n\t\tIAdhocTicket adhocTicket = factory.make(carparkId, currentTicketNo); \n\t\t// make ticket in factory with the new ticketNo\n\t\tadhocTicketList.add(adhocTicket);\n\t\treturn adhocTicket;\n\t}",
"public TestTicket() {\n\t}",
"public Formulario() {\n initComponents();\n }",
"public FormUtama() {\n initComponents();\n }",
"public Ticket() throws GeneralSecurityException {\n macAlgorithm = new TicketMac();\n \n //TODO: Change hmac key according to your need\n byte[] hmacKey = new byte[16];\n macAlgorithm.setKey(hmacKey);\n \n ul = new Commands();\n utils = new Utilities(ul);\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jLabel6 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jPanel2 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n cboMoviename = new javax.swing.JComboBox<>();\n jLabel3 = new javax.swing.JLabel();\n cboTime = new javax.swing.JComboBox<>();\n jLabel2 = new javax.swing.JLabel();\n txtTicketNo = new javax.swing.JTextField();\n btnBook = new javax.swing.JButton();\n btnLoad = new javax.swing.JButton();\n btnEdit = new javax.swing.JButton();\n btnSave = new javax.swing.JButton();\n btnDelete = new javax.swing.JButton();\n jButton1 = new javax.swing.JButton();\n\n setBackground(new java.awt.Color(51, 51, 51));\n setClosable(true);\n setIconifiable(true);\n setTitle(\"Purchase New Ticket\");\n\n jPanel1.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(0, 0, 0), 3, true));\n jPanel1.setForeground(new java.awt.Color(51, 51, 51));\n\n jLabel6.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/stemsentertainmentcompany/AmericanSniper.jpg\"))); // NOI18N\n\n jLabel7.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/stemsentertainmentcompany/BirdMan.jpg\"))); // NOI18N\n\n jLabel9.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/stemsentertainmentcompany/Taken3.jpg\"))); // NOI18N\n\n jLabel8.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/stemsentertainmentcompany/exMachina.jpg\"))); // NOI18N\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel8)\n .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel9, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel9)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 280, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel6)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 280, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n\n jPanel2.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(0, 0, 0), 3, true));\n\n jLabel1.setFont(new java.awt.Font(\"Goudy Old Style\", 2, 14)); // NOI18N\n jLabel1.setText(\"Select movie:\");\n\n cboMoviename.setBackground(new java.awt.Color(51, 51, 51));\n cboMoviename.setForeground(new java.awt.Color(255, 255, 0));\n\n jLabel3.setFont(new java.awt.Font(\"Goudy Old Style\", 2, 14)); // NOI18N\n jLabel3.setText(\"Select viewing time/session:\");\n\n cboTime.setBackground(new java.awt.Color(51, 51, 51));\n cboTime.setForeground(new java.awt.Color(255, 255, 0));\n cboTime.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cboTimeActionPerformed(evt);\n }\n });\n\n jLabel2.setFont(new java.awt.Font(\"Goudy Old Style\", 2, 14)); // NOI18N\n jLabel2.setText(\"Ticket Number:\");\n\n btnBook.setBackground(new java.awt.Color(51, 51, 51));\n btnBook.setForeground(new java.awt.Color(255, 255, 0));\n btnBook.setText(\"Book\");\n btnBook.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnBookActionPerformed(evt);\n }\n });\n\n btnLoad.setBackground(new java.awt.Color(51, 51, 51));\n btnLoad.setForeground(new java.awt.Color(255, 255, 0));\n btnLoad.setText(\"Load\");\n btnLoad.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnLoadActionPerformed(evt);\n }\n });\n\n btnEdit.setBackground(new java.awt.Color(51, 51, 51));\n btnEdit.setForeground(new java.awt.Color(255, 255, 0));\n btnEdit.setText(\"Edit\");\n btnEdit.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnEditActionPerformed(evt);\n }\n });\n\n btnSave.setBackground(new java.awt.Color(51, 51, 51));\n btnSave.setForeground(new java.awt.Color(255, 255, 0));\n btnSave.setText(\"Save\");\n btnSave.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnSaveActionPerformed(evt);\n }\n });\n\n btnDelete.setBackground(new java.awt.Color(51, 51, 51));\n btnDelete.setForeground(new java.awt.Color(255, 255, 0));\n btnDelete.setText(\"Delete\");\n btnDelete.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnDeleteActionPerformed(evt);\n }\n });\n\n jButton1.setBackground(new java.awt.Color(51, 51, 51));\n jButton1.setFont(new java.awt.Font(\"Goudy Old Style\", 2, 14)); // NOI18N\n jButton1.setForeground(new java.awt.Color(204, 0, 0));\n jButton1.setText(\"Exit\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(btnLoad, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btnEdit, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btnSave, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btnBook, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1)\n .addComponent(cboMoviename, javax.swing.GroupLayout.PREFERRED_SIZE, 254, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(cboTime, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 254, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jLabel3)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(txtTicketNo, javax.swing.GroupLayout.PREFERRED_SIZE, 121, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addComponent(btnDelete, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(28, 28, 28))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 254, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(cboMoviename, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(cboTime, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(33, 33, 33)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(txtTicketNo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(31, 31, 31)\n .addComponent(btnBook)\n .addGap(48, 48, 48)\n .addComponent(btnLoad)\n .addGap(48, 48, 48)\n .addComponent(btnEdit)\n .addGap(48, 48, 48)\n .addComponent(btnSave)\n .addGap(52, 52, 52)\n .addComponent(btnDelete)\n .addGap(45, 45, 45)\n .addComponent(jButton1)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(4, 4, 4)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, 281, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(15, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 580, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap())\n );\n\n pack();\n }",
"public EditProductForm() {\n initComponents();\n }",
"public TicketContent(Ticket ticket) {\n this(ticket, null);\n }",
"public CrearPedidos() {\n initComponents();\n }",
"@Override\n\tpublic GetJiraTicketResponseDTO createJiraTicket(Integer id) {\n\t\treturn null;\n\t}",
"@RequestMapping(value = \"/newrecipe\", method = RequestMethod.GET)\n\tpublic String newRecipeForm(Model model) {\n\t\tmodel.addAttribute(\"recipe\", new Recipe()); //empty recipe object\n\t\tmodel.addAttribute(\"categories\", CatRepo.findAll());\n\t\treturn \"newrecipe\";\n\t}",
"public FormPortlet( )\n {\n }",
"int createTicket(Ticket ticket, int userId);",
"public MechanicForm() {\n initComponents();\n }",
"public FormularioCliente() {\n initComponents();\n }",
"public Form getCreationForm() throws ProcessManagerException {\r\n try {\r\n Action creation = processModel.getCreateAction();\r\n return processModel.getPublicationForm(creation.getName(), currentRole,\r\n getLanguage());\r\n } catch (WorkflowException e) {\r\n throw new ProcessManagerException(\"SessionController\",\r\n \"processManager.ERR_NO_CREATION_FORM\", e);\r\n }\r\n }",
"private TicketList() {\n initTicketList();\n }",
"public ViewPrescriptionForm() {\n initComponents();\n }",
"public FrmTopicDetails() {\n initComponents();\n }",
"public frm_tutor_subida_prueba() {\n }",
"@Test\n\tpublic void createTicketTest() {\n\t\tService.createTicket(new TicketCreation(), \"username\");\n\t\tMockito.verify(TicketDao, times(1)).createTicket(Mockito.any(TicketCreation.class), Mockito.anyString());\n\t}",
"public static void sendTicket(Ticket t) throws SQLException {\r\n\t\ttools.Search.deleteTicket(t.getMesa());\r\n\t\tif(t.getProductosComanda().size() == 0) {\r\n\t\t\tm.getTicketsFrame().setTicketOnTable(t);\r\n\t\t\tm.getTablesFrame().setTicketOnTable(t.getMesa());\r\n\t\t\tbbddManager.TicketDBManager.deleteComanda(t.getMesa());\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tticketsBar.add(t);\r\n\t\t\r\n\r\n\t\tm.getTicketsFrame().setTicketOnTable(t);\r\n\t\tm.getTablesFrame().setTicketOnTable(t.getMesa());\r\n\t\tbbddManager.TicketDBManager.insertComanda(t);\r\n\t}",
"@RequestMapping(value = \"onlineticketlist.htm\", method = RequestMethod.GET, params = \"newticket\")\n public String newTicket(@ModelAttribute(\"LoginUserBean\") LoginUserBean lub, @ModelAttribute(\"onlineticketing\") OnlineTicketing onlineticket, Map<String, Object> model) {\n onlineticket.setUsername(lub.getUsername());\n List onLineTicketList = onlineTicketDAO.getTicketList(lub.getUserid());\n model.put(\"onlineticketlist\", onLineTicketList);\n return \"redirect:/onlineticket.htm\";\n }",
"public FrmNuevoProveedor() {\n initComponents();\n }",
"@Override\n\tpublic void onFormCreate(AbstractForm arg0, DataMsgBus arg1) {\n\t}",
"public frmNewArtist() {\n initComponents();\n lblID.setText(Controller.Agent.ManageController.getNewArtistID());\n lblGreeting.setText(\"Dear \"+iMuzaMusic.getLoggedUser().getFirstName()+\", please use the form below to add an artist to your ranks.\");\n \n }",
"public rentForm() {\n initComponents();\n }",
"public New_appointment() {\n initComponents();\n }",
"public Project_Create() {\n initComponents();\n }",
"public FormCompra() {\n initComponents();\n }",
"public frmVenda() {\n initComponents();\n }",
"public Form(){\n\t\ttypeOfLicenseApp = new TypeOfLicencsApplication();\n\t\toccupationalTrainingList = new ArrayList<OccupationalTraining>();\n\t\taffiadavit = new Affidavit();\n\t\tapplicationForReciprocity = new ApplicationForReciprocity();\n\t\teducationBackground = new EducationBackground();\n\t\toccupationalLicenses = new OccupationalLicenses();\n\t\tofficeUseOnlyInfo = new OfficeUseOnlyInfo();\n\t}",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n txtFlightNumber = new javax.swing.JTextField();\n txtArriveTime = new javax.swing.JTextField();\n txtDepartureTime = new javax.swing.JTextField();\n txtTo = new javax.swing.JTextField();\n txtFrom = new javax.swing.JTextField();\n btnBack = new javax.swing.JButton();\n btnCreateFlight = new javax.swing.JButton();\n jLabel6 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n txtPrice = new javax.swing.JTextField();\n\n jLabel1.setText(\"From:\");\n\n jLabel2.setText(\"To:\");\n\n jLabel3.setText(\"Departure Time:\");\n\n jLabel4.setText(\"Arrive Time:\");\n\n jLabel5.setText(\"Flight Number:\");\n\n btnBack.setText(\"Back\");\n btnBack.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnBackActionPerformed(evt);\n }\n });\n\n btnCreateFlight.setText(\"Create flight\");\n btnCreateFlight.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnCreateFlightActionPerformed(evt);\n }\n });\n\n jLabel6.setFont(new java.awt.Font(\"Tahoma\", 0, 36)); // NOI18N\n jLabel6.setText(\"Create New Flight\");\n\n jLabel7.setText(\"Price:\");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(68, 68, 68)\n .addComponent(btnBack, javax.swing.GroupLayout.PREFERRED_SIZE, 91, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(164, 164, 164)\n .addComponent(jLabel6)\n .addGap(0, 337, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(364, 364, 364)\n .addComponent(btnCreateFlight))\n .addGroup(layout.createSequentialGroup()\n .addGap(241, 241, 241)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 91, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(102, 102, 102)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(txtArriveTime, javax.swing.GroupLayout.DEFAULT_SIZE, 202, Short.MAX_VALUE)\n .addComponent(txtFlightNumber)\n .addComponent(txtDepartureTime)\n .addComponent(txtTo)\n .addComponent(txtFrom)\n .addComponent(txtPrice))))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(37, 37, 37)\n .addComponent(jLabel6))\n .addGroup(layout.createSequentialGroup()\n .addGap(71, 71, 71)\n .addComponent(btnBack, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtFrom, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtTo, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(31, 31, 31)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(txtDepartureTime, javax.swing.GroupLayout.DEFAULT_SIZE, 38, Short.MAX_VALUE))\n .addGap(32, 32, 32)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtArriveTime, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(34, 34, 34)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtFlightNumber, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(26, 26, 26)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtPrice, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 26, Short.MAX_VALUE)\n .addComponent(btnCreateFlight, javax.swing.GroupLayout.PREFERRED_SIZE, 46, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(63, 63, 63))\n );\n }",
"public formPrincipal() {\n initComponents();\n }",
"@GetMapping(\"/showNewEmpForm\")\n\tpublic String showNewEmpForm(Model model) {\n\t\tEmployees employee = new Employees();\n\t\tmodel.addAttribute(\"employee\", employee);\n\t\treturn \"new_employee\";\n\t}",
"public AuditFunctionForm() {\n initComponents();\n init();\n }",
"public Ticket(String name, String descrip, int caseNum, int status, int priority, String solution) {\n\tthis.name = name;\n\tthis.descrip = descrip;\n\tthis.caseNum = caseNum;\n\tthis.status = status;\n\tthis.priority = priority;\n\tthis.solution = solution;\n }",
"public ProposalSpecialReviewForm() {\r\n }",
"public void createTicke(String ticketNumber, String branchName, int numberOnQ, String service, long waitingTime,\n String ticketDate, String estimatedTicketDate){\n editor.putString(KEY_TICKET_NUMBER, ticketNumber);\n\n // Storing Password in pref\n editor.putString(KEY_BRANCE_NAME, branchName);\n\n // Storing Password in pref\n editor.putInt(KEY_NUMBER_ON_QUEUE, numberOnQ);\n\n // Storing Password in pref\n editor.putString(KEY_SERVICE, service);\n\n // Storing Password in pref\n editor.putLong(KEY_WAITING_TIME, waitingTime);\n\n // Storing Password in pref\n editor.putString(KEY_TICKET_DATE, ticketDate);\n\n // Storing Password in pref\n editor.putString(KEY_ESTIMATED_DATE, estimatedTicketDate);\n\n // commit changes\n editor.commit();\n }",
"public FormCadastroAutomovel() {\n initComponents();\n }",
"@ModelAttribute(\"forgotLoginForm\")\n \tpublic ForgotLoginForm fromBackingObject() {\n \t\treturn new ForgotLoginForm();\n \t}"
] | [
"0.6484003",
"0.6394857",
"0.63554",
"0.62455964",
"0.6209524",
"0.61723346",
"0.61636376",
"0.60659367",
"0.6014155",
"0.5970408",
"0.59502107",
"0.59485316",
"0.5929548",
"0.5841417",
"0.5787244",
"0.57280356",
"0.566853",
"0.56431174",
"0.5636379",
"0.5624118",
"0.5615012",
"0.5566837",
"0.5557186",
"0.5554386",
"0.55125266",
"0.5512316",
"0.55102926",
"0.55097103",
"0.5493528",
"0.5492949",
"0.5490965",
"0.5472161",
"0.5469008",
"0.5463056",
"0.5457802",
"0.5444697",
"0.5439005",
"0.5430123",
"0.54255694",
"0.54253185",
"0.54143906",
"0.5400831",
"0.53945297",
"0.5393079",
"0.53921777",
"0.53885764",
"0.5379109",
"0.5376484",
"0.53715146",
"0.5370387",
"0.5363349",
"0.5362683",
"0.53561246",
"0.5355326",
"0.53519595",
"0.53457606",
"0.5336045",
"0.5332603",
"0.53054523",
"0.52907735",
"0.5286707",
"0.52772397",
"0.52737015",
"0.52669764",
"0.526214",
"0.5256903",
"0.525677",
"0.52554137",
"0.52494484",
"0.5243224",
"0.5242003",
"0.52400994",
"0.523939",
"0.5231566",
"0.52224195",
"0.52141935",
"0.52111024",
"0.5209863",
"0.52086437",
"0.5203691",
"0.51914155",
"0.5183167",
"0.5180526",
"0.5177586",
"0.5176866",
"0.5175359",
"0.5165418",
"0.5158909",
"0.51575124",
"0.5155778",
"0.5148235",
"0.5142193",
"0.5138982",
"0.51319265",
"0.5130671",
"0.5126654",
"0.51179767",
"0.51144415",
"0.5106882",
"0.51056236"
] | 0.620453 | 5 |
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor. | @SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
jScrollPane1 = new javax.swing.JScrollPane();
textoArea = new javax.swing.JTextArea();
setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
textoArea.setColumns(20);
textoArea.setRows(5);
jScrollPane1.setViewportView(textoArea);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 326, javax.swing.GroupLayout.PREFERRED_SIZE)
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 382, Short.MAX_VALUE)
);
pack();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Form() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public frmRectangulo() {\n initComponents();\n }",
"public form() {\n initComponents();\n }",
"public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }",
"public FormListRemarking() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n \n }",
"public FormPemilihan() {\n initComponents();\n }",
"public GUIForm() { \n initComponents();\n }",
"public FrameForm() {\n initComponents();\n }",
"public TorneoForm() {\n initComponents();\n }",
"public FormCompra() {\n initComponents();\n }",
"public muveletek() {\n initComponents();\n }",
"public Interfax_D() {\n initComponents();\n }",
"public quanlixe_form() {\n initComponents();\n }",
"public SettingsForm() {\n initComponents();\n }",
"public Soru1() {\n initComponents();\n }",
"public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }",
"public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }",
"public soal2GUI() {\n initComponents();\n }",
"public EindopdrachtGUI() {\n initComponents();\n }",
"public MechanicForm() {\n initComponents();\n }",
"public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }",
"public quotaGUI() {\n initComponents();\n }",
"public BloodDonationGUI() {\n initComponents();\n }",
"public PatientUI() {\n initComponents();\n }",
"public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }",
"public Oddeven() {\n initComponents();\n }",
"public myForm() {\n\t\t\tinitComponents();\n\t\t}",
"public intrebarea() {\n initComponents();\n }",
"public Magasin() {\n initComponents();\n }",
"public RadioUI()\n {\n initComponents();\n }",
"public NewCustomerGUI() {\n initComponents();\n }",
"public ZobrazUdalost() {\n initComponents();\n }",
"public FormUtama() {\n initComponents();\n }",
"public p0() {\n initComponents();\n }",
"public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }",
"public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }",
"public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }",
"public form2() {\n initComponents();\n }",
"public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}",
"public kunde() {\n initComponents();\n }",
"public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }",
"public MusteriEkle() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }",
"public frmMain() {\n initComponents();\n }",
"public frmMain() {\n initComponents();\n }",
"public DESHBORDPANAL() {\n initComponents();\n }",
"public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }",
"public frmVenda() {\n initComponents();\n }",
"public Botonera() {\n initComponents();\n }",
"public FrmMenu() {\n initComponents();\n }",
"public OffertoryGUI() {\n initComponents();\n setTypes();\n }",
"public JFFornecedores() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }",
"public vpemesanan1() {\n initComponents();\n }",
"public EnterDetailsGUI() {\n initComponents();\n }",
"public Kost() {\n initComponents();\n }",
"public UploadForm() {\n initComponents();\n }",
"public frmacceso() {\n initComponents();\n }",
"public FormHorarioSSE() {\n initComponents();\n }",
"public HW3() {\n initComponents();\n }",
"public Managing_Staff_Main_Form() {\n initComponents();\n }",
"public sinavlar2() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }",
"public P0405() {\n initComponents();\n }",
"public MiFrame2() {\n initComponents();\n }",
"public IssueBookForm() {\n initComponents();\n }",
"public Choose1() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }",
"public GUI_StudentInfo() {\n initComponents();\n }",
"public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }",
"public JFrmPrincipal() {\n initComponents();\n }",
"public bt526() {\n initComponents();\n }",
"public Pemilihan_Dokter() {\n initComponents();\n }",
"public Ablak() {\n initComponents();\n }",
"@Override\n\tprotected void initUi() {\n\t\t\n\t}",
"@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}",
"public Pregunta23() {\n initComponents();\n }",
"public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }",
"public AvtekOkno() {\n initComponents();\n }",
"public busdet() {\n initComponents();\n }",
"public ViewPrescriptionForm() {\n initComponents();\n }",
"public Ventaform() {\n initComponents();\n }",
"public Kuis2() {\n initComponents();\n }",
"public POS1() {\n initComponents();\n }",
"public CreateAccount_GUI() {\n initComponents();\n }",
"public Carrera() {\n initComponents();\n }",
"public EqGUI() {\n initComponents();\n }",
"public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }",
"public nokno() {\n initComponents();\n }",
"public dokter() {\n initComponents();\n }",
"public ConverterGUI() {\n initComponents();\n }",
"public hitungan() {\n initComponents();\n }",
"public Modify() {\n initComponents();\n }",
"public frmAddIncidencias() {\n initComponents();\n }",
"public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }"
] | [
"0.7320782",
"0.72918797",
"0.72918797",
"0.72918797",
"0.728645",
"0.72498447",
"0.7214492",
"0.720934",
"0.7197145",
"0.71912014",
"0.71852076",
"0.7160113",
"0.71487373",
"0.70943654",
"0.70820624",
"0.7058153",
"0.69883204",
"0.6978216",
"0.69558746",
"0.6955715",
"0.69455403",
"0.6944223",
"0.6936588",
"0.6933016",
"0.6929512",
"0.6925853",
"0.6925524",
"0.6912182",
"0.6912122",
"0.6895022",
"0.6894088",
"0.68921435",
"0.68919635",
"0.6889464",
"0.6884104",
"0.6883508",
"0.6882322",
"0.6879773",
"0.6876671",
"0.68755716",
"0.6872437",
"0.6860746",
"0.68575454",
"0.6857284",
"0.68563104",
"0.6854648",
"0.68544936",
"0.68532896",
"0.68532896",
"0.68444484",
"0.68380433",
"0.6837678",
"0.68299913",
"0.6828643",
"0.6828147",
"0.6825278",
"0.6823024",
"0.68182456",
"0.68178964",
"0.681216",
"0.6809752",
"0.6809671",
"0.6809534",
"0.6808423",
"0.6803337",
"0.6794699",
"0.67944574",
"0.6793996",
"0.6792107",
"0.67904186",
"0.67898226",
"0.67888504",
"0.6782858",
"0.67673683",
"0.67670184",
"0.6765726",
"0.6757476",
"0.67573047",
"0.6753978",
"0.6752576",
"0.674217",
"0.67403704",
"0.6738196",
"0.67374873",
"0.67351323",
"0.6728453",
"0.67277855",
"0.6722282",
"0.6716617",
"0.67165154",
"0.67154175",
"0.6709239",
"0.67077744",
"0.6703873",
"0.67028135",
"0.6702373",
"0.6700207",
"0.67000616",
"0.6695769",
"0.6691885",
"0.6690232"
] | 0.0 | -1 |
TODO design database downgrade policy | @Override
public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void doUpgrade() {\n // implement the database upgrade here.\n }",
"@Override\n public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n Log.e(TAG, \"[onDowngrade] Shouldn't have this case.\");\n }",
"@Override\n public void reDownloadDB(String newVersion)\n {\n }",
"public abstract void doUpgrade();",
"@Override\n public void onUpgrade(DbManager db, int oldVersion, int newVersion) {\n }",
"@Override\n public void onUpgrade(DbManager db, int oldVersion, int newVersion) {\n }",
"@Override\n\t\t\t\t\tpublic void onUpgrade(DbManager db, int oldVersion, int newVersion) {\n\t\t\t\t\t}",
"@Override\n public void upgrade() throws Exception {\n // all old CDAP tables used to be in the default database\n LOG.info(\"Checking for tables that need upgrade...\");\n List<TableNameInfo> tables = getTables(\"default\");\n\n for (TableNameInfo tableNameInfo : tables) {\n String tableName = tableNameInfo.getTableName();\n TableInfo tableInfo = getTableInfo(tableNameInfo.getDatabaseName(), tableName);\n if (!requiresUpgrade(tableInfo)) {\n continue;\n }\n\n // wait for dataset service to come up. it will be needed when creating tables\n waitForDatasetService(600);\n\n String storageHandler = tableInfo.getParameters().get(\"storage_handler\");\n if (StreamStorageHandler.class.getName().equals(storageHandler) && tableName.startsWith(\"cdap_\")) {\n LOG.info(\"Upgrading stream table {}\", tableName);\n upgradeStreamTable(tableInfo);\n } else if (DatasetStorageHandler.class.getName().equals(storageHandler) && tableName.startsWith(\"cdap_\")) {\n LOG.info(\"Upgrading record scannable dataset table {}.\", tableName);\n upgradeRecordScannableTable(tableInfo);\n } else if (tableName.startsWith(\"cdap_\")) {\n LOG.info(\"Upgrading file set table {}.\", tableName);\n // handle filesets differently since they can have partitions,\n // and dropping the table will remove all partitions\n upgradeFilesetTable(tableInfo);\n }\n }\n }",
"protected abstract String upgradeSql(int oldVersion, int newVersion);",
"@Override\n public void onUpgrade(DbManager db, int oldVersion, int newVersion) {\n }",
"@Transactional\n protected void executeStackUpgradeDDLUpdates() throws SQLException, AmbariException {\n final Configuration.DatabaseType databaseType = configuration.getDatabaseType();\n\n dbAccessor.addColumn(UPGRADE_TABLE, new DBColumnInfo(UPGRADE_PACKAGE_COL, String.class, 255, null, true));\n dbAccessor.addColumn(UPGRADE_TABLE, new DBColumnInfo(UPGRADE_TYPE_COL, String.class, 32, null, true));\n\n // Tip: skipping data update as we clearing this table at UpgradeCatalog252 DDL\n\n if (dbAccessor.tableHasColumn(REPO_VERSION_TABLE, UPGRADE_PACKAGE_COL)) {\n LOG.info(\"Dropping upgrade_package column from repo_version table.\");\n dbAccessor.dropColumn(REPO_VERSION_TABLE, UPGRADE_PACKAGE_COL);\n\n // Now, make the added column non-nullable\n // Make the hosts id non-null after all the values are populated\n LOG.info(\"Making upgrade_package column in the upgrade table non-nullable.\");\n if (databaseType == Configuration.DatabaseType.DERBY) {\n // This is a workaround for UpgradeTest.java unit test\n dbAccessor.executeQuery(\"ALTER TABLE \" + UPGRADE_TABLE + \" ALTER column \" + UPGRADE_PACKAGE_COL + \" NOT NULL\");\n } else {\n dbAccessor.alterColumn(UPGRADE_TABLE, new DBColumnInfo(UPGRADE_PACKAGE_COL, String.class, 255, null, false));\n }\n }\n\n if (dbAccessor.tableHasColumn(REPO_VERSION_TABLE, UPGRADE_TYPE_COL)) {\n // Now, make the added column non-nullable\n // Make the hosts id non-null after all the values are populated\n LOG.info(\"Making upgrade_type column in the upgrade table non-nullable.\");\n if (databaseType == Configuration.DatabaseType.DERBY) {\n // This is a workaround for UpgradeTest.java unit test\n dbAccessor.executeQuery(\"ALTER TABLE \" + UPGRADE_TABLE + \" ALTER column \" + UPGRADE_TYPE_COL + \" NOT NULL\");\n } else {\n dbAccessor.alterColumn(UPGRADE_TABLE, new DBColumnInfo(UPGRADE_TYPE_COL, String.class, 32, null, false));\n }\n }\n }",
"public void testDatabaseUpgrade_Incremental() {\n create1108(mDb);\n upgradeTo1109();\n upgradeTo1110();\n assertDatabaseStructureSameAsList(TABLE_LIST, /* isNewDatabase =*/ false);\n }",
"abstract public int dbVersion();",
"public abstract void upgrade();",
"public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n Log.i(\"Database downgrade\", \"Old version:\" + oldVersion + \" newVersion:\"+newVersion);\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_NAME);\n onCreate(db);\n }",
"private static void upgradeFrom_1_to_2(SQLiteDatabase db) {\r\n Logger.info(Logger.Type.GHOST_SMS, \"*** Upgrade database from version [%s] to version [%s]\", VERSION_1, CURRENT_VERSION);\r\n\r\n //1- do migrations\r\n db.execSQL(Parameters.QUERY_CREATE);\r\n db.execSQL(Versions.QUERY_CREATE);\r\n //2- update application version value\r\n Versions.update(db, Names.GHOST_SMS, VERSION_1, VERSION_2);\r\n }",
"@Override\n public void onDowngrade(SQLiteDatabase db, int oldV, int newV ){\n db.execSQL(\"DROP TABLE IF EXISTS \" + DAILY_ACCOUNT_TABLE);\n db.execSQL(\"DROP TABLE IF EXISTS \" + JOURNEY_ACCOUNT_TABLE);\n db.execSQL(\"DROP TABLE IF EXISTS \" + JOURNEY_TABLE);\n // Drop older table if existed\n db.execSQL(\"DROP TABLE IF EXISTS data\");\n // Create tables again\n onCreate(db);\n }",
"private static void doUpgrade(SQLiteDatabase db, Integer oldVersion) {\r\n Logger.info(Logger.Type.GHOST_SMS, \"****** last version [%s]: %s\", Names.GHOST_SMS, oldVersion);\r\n if (CURRENT_VERSION.equals(oldVersion)) {\r\n return;\r\n } else if (VERSION_1.equals(oldVersion)) {\r\n upgradeFrom_1_to_2(db);\r\n }\r\n }",
"public void testV0ToV2Update() throws Exception {\n Properties props = new Properties();\n props.setProperty(LockssRepositoryImpl.PARAM_CACHE_LOCATION, tempDirPath);\n props\n\t.setProperty(ConfigManager.PARAM_PLATFORM_DISK_SPACE_LIST, tempDirPath);\n ConfigurationUtil.setCurrentConfigFromProps(props);\n\n sqlDbManager = new SqlDbManager();\n theDaemon.setDbManager(sqlDbManager);\n sqlDbManager.initService(theDaemon);\n assertTrue(sqlDbManager.setUpDatabase(0));\n sqlDbManager.setTargetDatabaseVersion(2);\n sqlDbManager.startService();\n assertTrue(sqlDbManager.isReady());\n\n Connection conn = sqlDbManager.getConnection();\n assertNotNull(conn);\n assertFalse(sqlDbManager.tableExists(conn, SqlDbManager.OBSOLETE_METADATA_TABLE));\n assertTrue(sqlDbManager.tableExists(conn, SqlDbManager.VERSION_TABLE));\n }",
"public void testV1ToV2Update() throws Exception {\n Properties props = new Properties();\n props.setProperty(LockssRepositoryImpl.PARAM_CACHE_LOCATION, tempDirPath);\n props\n\t.setProperty(ConfigManager.PARAM_PLATFORM_DISK_SPACE_LIST, tempDirPath);\n ConfigurationUtil.setCurrentConfigFromProps(props);\n\n sqlDbManager = new SqlDbManager();\n theDaemon.setDbManager(sqlDbManager);\n sqlDbManager.initService(theDaemon);\n assertTrue(sqlDbManager.setUpDatabase(1));\n sqlDbManager.setTargetDatabaseVersion(2);\n sqlDbManager.startService();\n assertTrue(sqlDbManager.isReady());\n\n Connection conn = sqlDbManager.getConnection();\n assertNotNull(conn);\n assertFalse(sqlDbManager.tableExists(conn, SqlDbManager.OBSOLETE_METADATA_TABLE));\n assertTrue(sqlDbManager.tableExists(conn, SqlDbManager.VERSION_TABLE));\n }",
"private ServerError updateDatabase() {\n return updateDatabase(WebConf.DB_CONN, WebConf.JSON_OBJECTS, WebConf.DEFAULT_VERSION);\r\n }",
"@Override\n public void updateDatabase() {\n }",
"@Override\n\tpublic boolean upgrade() {\n\t\treturn true;\n\t}",
"private void downgrade() {\n if (!major.isEmpty() && majorSize > maxSize / 2) {\n Map.Entry<K, V> next = major.entrySet().iterator().next();\n K downgradeKey = next.getKey();\n V downgradeValue = next.getValue();\n majorSize -= safeSizeOf(downgradeKey, downgradeValue);\n major.remove(downgradeKey);\n minor.put(downgradeKey, downgradeValue);\n }\n }",
"private static void atualizarBD(){\n SchemaUpdate se = new SchemaUpdate(hibernateConfig);\n se.execute(true, true);\n }",
"public void upgrade() {\n\t\t\tLog.w(\"\" + this, \"Upgrading database \"+ db.getPath() + \" from version \" + db.getVersion() + \" to \"\n\t + DATABASE_VERSION + \", which will destroy all old data\");\n\t db.execSQL(\"DROP TABLE IF EXISTS agencies\");\n\t db.execSQL(\"DROP TABLE IF EXISTS stops\");\n\t create();\n\t\t}",
"@Override\n public int getDatabaseMinorVersion() {\n return 0;\n }",
"public boolean isDowngrade( )\n {\n return _bDowngrade;\n }",
"@Override\n public String getDatabaseProductVersion() {\n return \"1.0\";\n }",
"private boolean upgradeToVersion2(SQLiteDatabase db) {\n\n\t\tboolean upgraded = false;\n\n\t\t// DQDebugHelper.printData(\"query\", \"in method upgradeToVersion2\");\n\t\ttry {\n\n\t\t\tupgraded = true;\n\t\t} catch (final SQLException exception) {\n\t\t\tDQDebugHelper.printAndTrackException(exception);\n\t\t}\n\n\t\treturn upgraded;\n\t}",
"@Override\n public final void ensureSupported() {\n ensureDatabaseIsRecentEnough(\"2.0\");\n /**\n * Ensures this database it at least as recent as this version otherwise suggest upgrade to this higher edition of\n * Flyway.\n *\n * @param oldestSupportedVersionInThisEdition The oldest supported version of the database by this edition of Flyway.\n * @param editionWhereStillSupported The edition of Flyway that still supports this version of the database,\n * in case it's too old.\n */\n recommendFlywayUpgradeIfNecessary(\"2.7\");\n }",
"public void testV0ToV1Update() throws Exception {\n Properties props = new Properties();\n props.setProperty(LockssRepositoryImpl.PARAM_CACHE_LOCATION, tempDirPath);\n props\n\t.setProperty(ConfigManager.PARAM_PLATFORM_DISK_SPACE_LIST, tempDirPath);\n ConfigurationUtil.setCurrentConfigFromProps(props);\n\n sqlDbManager = new SqlDbManager();\n theDaemon.setDbManager(sqlDbManager);\n sqlDbManager.initService(theDaemon);\n assertTrue(sqlDbManager.setUpDatabase(0));\n sqlDbManager.setTargetDatabaseVersion(1);\n sqlDbManager.startService();\n assertTrue(sqlDbManager.isReady());\n\n Connection conn = sqlDbManager.getConnection();\n assertNotNull(conn);\n assertTrue(sqlDbManager.tableExists(conn, SqlDbManager.OBSOLETE_METADATA_TABLE));\n }",
"@Override\r\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVer, int newVer) {\n\r\n\t}",
"public abstract void updateDatabase();",
"public void testV1ToV0Update() throws Exception {\n Properties props = new Properties();\n props.setProperty(LockssRepositoryImpl.PARAM_CACHE_LOCATION, tempDirPath);\n props\n\t.setProperty(ConfigManager.PARAM_PLATFORM_DISK_SPACE_LIST, tempDirPath);\n ConfigurationUtil.setCurrentConfigFromProps(props);\n\n sqlDbManager = new SqlDbManager();\n theDaemon.setDbManager(sqlDbManager);\n sqlDbManager.initService(theDaemon);\n assertTrue(sqlDbManager.setUpDatabase(1));\n sqlDbManager.setTargetDatabaseVersion(0);\n sqlDbManager.startService();\n assertFalse(sqlDbManager.isReady());\n }",
"@Override\n public void onUpgrade(SQLiteDatabase database, ConnectionSource connectionSource, int oldVersion, int newVersion) {\n\n }",
"void checkTapDbVersion() throws ConfigurationException;",
"@Override\n\tpublic void onUpgrade(SQLiteDatabase db, ConnectionSource connectionSource, int oldVersion, int newVersion) {\n\n\t}",
"@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion)\n {\n if(newVersion > oldVersion){\n try {\n this.dbCreate();\n }catch (Exception e){\n e.printStackTrace();\n }\n }\n }",
"public void downgrade(){\n\n //downgrade a buildings stats \n this.setLevel(this.getLevel() - 1);\n this.setMaxHealth(this.getMaxHealth() - 500);\n this.setHealth(this.getHealth() - 500);\n this.maxCapacity -= 20;\n\n }",
"private static SQLiteDatabase upgradeDB(SQLiteDatabase mMetaDb, int databaseVersion) {\n Log.i(AnkiDroidApp.TAG, \"Upgrading Internal Database..\");\n // if (mMetaDb.getVersion() == 0) {\n Log.i(AnkiDroidApp.TAG, \"Applying changes for version: 0\");\n // Create tables if not exist\n mMetaDb.execSQL(\"CREATE TABLE IF NOT EXISTS languages (\" + \" _id INTEGER PRIMARY KEY AUTOINCREMENT, \"\n + \"deckpath TEXT NOT NULL, modelid INTEGER NOT NULL, \" + \"cardmodelid INTEGER NOT NULL, \"\n + \"qa INTEGER, \" + \"language TEXT)\");\n mMetaDb.execSQL(\"CREATE TABLE IF NOT EXISTS whiteboardState (\" + \"_id INTEGER PRIMARY KEY AUTOINCREMENT, \"\n + \"deckpath TEXT NOT NULL, \" + \"state INTEGER)\");\n mMetaDb.execSQL(\"CREATE TABLE IF NOT EXISTS customDictionary (\" + \"_id INTEGER PRIMARY KEY AUTOINCREMENT, \"\n + \"deckpath TEXT NOT NULL, \" + \"dictionary INTEGER)\");\n mMetaDb.execSQL(\"CREATE TABLE IF NOT EXISTS intentInformation (\" + \"id INTEGER PRIMARY KEY AUTOINCREMENT, \"\n + \"source TEXT NOT NULL, \" + \"target INTEGER NOT NULL)\");\n mMetaDb.execSQL(\"CREATE TABLE IF NOT EXISTS smallWidgetStatus (\" + \"id INTEGER PRIMARY KEY AUTOINCREMENT, \"\n + \"progress INTEGER NOT NULL, left INTEGER NOT NULL, eta INTEGER NOT NULL)\");\n // Use pragma to get info about widgetStatus.\n Cursor c = mMetaDb.rawQuery(\"PRAGMA table_info(widgetStatus)\", null);\n int columnNumber = c.getCount();\n if (columnNumber > 0) {\n if (columnNumber < 7) {\n mMetaDb.execSQL(\"ALTER TABLE widgetStatus \" + \"ADD COLUMN eta INTEGER NOT NULL DEFAULT '0'\");\n mMetaDb.execSQL(\"ALTER TABLE widgetStatus \" + \"ADD COLUMN time INTEGER NOT NULL DEFAULT '0'\");\n }\n } else {\n mMetaDb.execSQL(\"CREATE TABLE IF NOT EXISTS widgetStatus (\" + \"deckId INTEGER NOT NULL PRIMARY KEY, \"\n + \"deckName TEXT NOT NULL, \" + \"newCards INTEGER NOT NULL, \" + \"lrnCards INTEGER NOT NULL, \"\n + \"dueCards INTEGER NOT NULL, \" + \"progress INTEGER NOT NULL, \" + \"eta INTEGER NOT NULL)\");\n }\n // }\n mMetaDb.setVersion(databaseVersion);\n Log.i(AnkiDroidApp.TAG, \"Upgrading Internal Database finished. New version: \" + databaseVersion);\n return mMetaDb;\n }",
"@Override\n \tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n \n \t}",
"private void updateDB() {\n }",
"public void migrateFromLegacyIfNeeded(android.database.sqlite.SQLiteDatabase r12) {\n /*\n r11 = this;\n android.content.Context r0 = r11.mContext\n android.content.SharedPreferences r0 = android.preference.PreferenceManager.getDefaultSharedPreferences(r0)\n java.lang.String r1 = \"legacy_data_migration\"\n r2 = 0\n boolean r3 = r0.getBoolean(r1, r2)\n if (r3 == 0) goto L_0x0015\n java.lang.String r11 = \"Data migration was complete already\"\n log(r11)\n return\n L_0x0015:\n r3 = 1\n android.content.Context r11 = r11.mContext // Catch:{ Exception -> 0x00d3 }\n android.content.ContentResolver r11 = r11.getContentResolver() // Catch:{ Exception -> 0x00d3 }\n java.lang.String r4 = \"cellbroadcast-legacy\"\n android.content.ContentProviderClient r11 = r11.acquireContentProviderClient(r4) // Catch:{ Exception -> 0x00d3 }\n if (r11 != 0) goto L_0x003a\n java.lang.String r12 = \"No legacy provider available for migration\"\n log(r12) // Catch:{ all -> 0x00c5 }\n if (r11 == 0) goto L_0x002e\n r11.close() // Catch:{ Exception -> 0x00d3 }\n L_0x002e:\n android.content.SharedPreferences$Editor r11 = r0.edit()\n android.content.SharedPreferences$Editor r11 = r11.putBoolean(r1, r3)\n r11.commit()\n return\n L_0x003a:\n r12.beginTransaction() // Catch:{ all -> 0x00c5 }\n java.lang.String r4 = \"Starting migration from legacy provider\"\n log(r4) // Catch:{ all -> 0x00c5 }\n android.net.Uri r6 = android.provider.Telephony.CellBroadcasts.AUTHORITY_LEGACY_URI // Catch:{ RemoteException -> 0x00ba }\n java.lang.String[] r7 = QUERY_COLUMNS // Catch:{ RemoteException -> 0x00ba }\n r8 = 0\n r9 = 0\n r10 = 0\n r5 = r11\n android.database.Cursor r4 = r5.query(r6, r7, r8, r9, r10) // Catch:{ RemoteException -> 0x00ba }\n android.content.ContentValues r5 = new android.content.ContentValues // Catch:{ all -> 0x00ac }\n r5.<init>() // Catch:{ all -> 0x00ac }\n L_0x0053:\n boolean r6 = r4.moveToNext() // Catch:{ all -> 0x00ac }\n if (r6 == 0) goto L_0x0096\n r5.clear() // Catch:{ all -> 0x00ac }\n java.lang.String[] r6 = QUERY_COLUMNS // Catch:{ all -> 0x00ac }\n int r7 = r6.length // Catch:{ all -> 0x00ac }\n r8 = r2\n L_0x0060:\n if (r8 >= r7) goto L_0x006a\n r9 = r6[r8] // Catch:{ all -> 0x00ac }\n copyFromCursorToContentValues(r9, r4, r5) // Catch:{ all -> 0x00ac }\n int r8 = r8 + 1\n goto L_0x0060\n L_0x006a:\n java.lang.String r6 = \"_id\"\n r5.remove(r6) // Catch:{ all -> 0x00ac }\n java.lang.String r6 = \"broadcasts\"\n r7 = 0\n long r6 = r12.insert(r6, r7, r5) // Catch:{ all -> 0x00ac }\n r8 = -1\n int r6 = (r6 > r8 ? 1 : (r6 == r8 ? 0 : -1))\n if (r6 != 0) goto L_0x0053\n java.lang.StringBuilder r6 = new java.lang.StringBuilder // Catch:{ all -> 0x00ac }\n r6.<init>() // Catch:{ all -> 0x00ac }\n java.lang.String r7 = \"Failed to insert \"\n r6.append(r7) // Catch:{ all -> 0x00ac }\n r6.append(r5) // Catch:{ all -> 0x00ac }\n java.lang.String r7 = \"; continuing\"\n r6.append(r7) // Catch:{ all -> 0x00ac }\n java.lang.String r6 = r6.toString() // Catch:{ all -> 0x00ac }\n loge(r6) // Catch:{ all -> 0x00ac }\n goto L_0x0053\n L_0x0096:\n r12.setTransactionSuccessful() // Catch:{ all -> 0x00ac }\n java.lang.String r2 = \"Finished migration from legacy provider\"\n log(r2) // Catch:{ all -> 0x00ac }\n if (r4 == 0) goto L_0x00a3\n r4.close() // Catch:{ RemoteException -> 0x00ba }\n L_0x00a3:\n r12.endTransaction() // Catch:{ all -> 0x00c5 }\n if (r11 == 0) goto L_0x00e8\n r11.close() // Catch:{ Exception -> 0x00d3 }\n goto L_0x00e8\n L_0x00ac:\n r2 = move-exception\n if (r4 == 0) goto L_0x00b7\n r4.close() // Catch:{ all -> 0x00b3 }\n goto L_0x00b7\n L_0x00b3:\n r4 = move-exception\n r2.addSuppressed(r4) // Catch:{ RemoteException -> 0x00ba }\n L_0x00b7:\n throw r2 // Catch:{ RemoteException -> 0x00ba }\n L_0x00b8:\n r2 = move-exception\n goto L_0x00c1\n L_0x00ba:\n r2 = move-exception\n java.lang.IllegalStateException r4 = new java.lang.IllegalStateException // Catch:{ all -> 0x00b8 }\n r4.<init>(r2) // Catch:{ all -> 0x00b8 }\n throw r4 // Catch:{ all -> 0x00b8 }\n L_0x00c1:\n r12.endTransaction() // Catch:{ all -> 0x00c5 }\n throw r2 // Catch:{ all -> 0x00c5 }\n L_0x00c5:\n r12 = move-exception\n if (r11 == 0) goto L_0x00d0\n r11.close() // Catch:{ all -> 0x00cc }\n goto L_0x00d0\n L_0x00cc:\n r11 = move-exception\n r12.addSuppressed(r11) // Catch:{ Exception -> 0x00d3 }\n L_0x00d0:\n throw r12 // Catch:{ Exception -> 0x00d3 }\n L_0x00d1:\n r11 = move-exception\n goto L_0x00f4\n L_0x00d3:\n r11 = move-exception\n java.lang.StringBuilder r12 = new java.lang.StringBuilder // Catch:{ all -> 0x00d1 }\n r12.<init>() // Catch:{ all -> 0x00d1 }\n java.lang.String r2 = \"Failed migration from legacy provider: \"\n r12.append(r2) // Catch:{ all -> 0x00d1 }\n r12.append(r11) // Catch:{ all -> 0x00d1 }\n java.lang.String r11 = r12.toString() // Catch:{ all -> 0x00d1 }\n loge(r11) // Catch:{ all -> 0x00d1 }\n L_0x00e8:\n android.content.SharedPreferences$Editor r11 = r0.edit()\n android.content.SharedPreferences$Editor r11 = r11.putBoolean(r1, r3)\n r11.commit()\n return\n L_0x00f4:\n android.content.SharedPreferences$Editor r12 = r0.edit()\n android.content.SharedPreferences$Editor r12 = r12.putBoolean(r1, r3)\n r12.commit()\n throw r11\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.cellbroadcastreceiver.CellBroadcastDatabaseHelper.migrateFromLegacyIfNeeded(android.database.sqlite.SQLiteDatabase):void\");\n }",
"private void upgradeFrom(UpdateUI ui, CurrentSchemaVersion curr, CiDb db)\n throws OrmException, SQLException {\n List<SchemaVersion> pending = pending(curr.versionNbr);\n updateSchema(pending, ui, db);\n migrateData(pending, ui, curr, db);\n\n JdbcSchema s = (JdbcSchema) db;\n final List<String> pruneList = Lists.newArrayList();\n s.pruneSchema(new StatementExecutor() {\n @Override\n public void execute(String sql) {\n pruneList.add(sql);\n }\n\n @Override\n public void close() {\n // Do nothing.\n }\n });\n\n try (JdbcExecutor e = new JdbcExecutor(s)) {\n if (!pruneList.isEmpty()) {\n ui.pruneSchema(e, pruneList);\n }\n }\n }",
"@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n \n }",
"protected void preUpdateSchema(CiDb db) throws OrmException, SQLException {\n }",
"boolean supportsRollbackAfterDDL();",
"public static void checkForUpgrade(SQLiteDatabase db) {\r\n final Optional<Version> version = Versions.getVersion(db, Names.GHOST_SMS, null); // get last saved version\r\n if (version.isPresent()) {\r\n doUpgrade(db, version.get().version);\r\n } else {\r\n doCreate(db);\r\n }\r\n\r\n }",
"@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n if (oldVersion > newVersion) {\n // TODO: lanzar excepcion\n } else {\n /*\n * por cada version de base de datos existe un script que actualiza\n * la misma a su version inmediata superior, ejecutar cada uno de\n * los scripts desde la version inicial (oldVersion) hasta la\n * version final (newVersion), esto para no crear archivos cada vez\n * mas grandes, sino simplemente ir actualizando la base a versiones\n * inmediatamente superiores hasta llegar a la version final\n */\n\n for (int versionToUpgrade = oldVersion + 1; versionToUpgrade <= newVersion; versionToUpgrade++) {\n executeSQLScript(db, \"sql/cstigo_v\" + (versionToUpgrade - 1)\n + \"to\" + versionToUpgrade + \".sql\");\n }\n }\n }",
"protected abstract boolean isMigrationNecessary();",
"@Override\n\t\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\t\t\n\t\t}",
"@Override\n\n //\n public void onUpgrade(SQLiteDatabase db, int oldVersion,\n int newVersion) {\n\n }",
"private void upgradeDatabaseFrom4to5(SQLiteDatabase db) {\n db.delete(\"addons\", \"body IS NULL\", null);\n \n // Purge any data inconsistent with foreign key references (which may have appeared before\n // foreign keys were enabled in Bug 900289).\n db.delete(\"fields\", \"measurement NOT IN (SELECT id FROM measurements)\", null);\n db.delete(\"environments\", \"addonsID NOT IN (SELECT id from addons)\", null);\n db.delete(EVENTS_INTEGER, \"env NOT IN (SELECT id FROM environments)\", null);\n db.delete(EVENTS_TEXTUAL, \"env NOT IN (SELECT id FROM environments)\", null);\n db.delete(EVENTS_INTEGER, \"field NOT IN (SELECT id FROM fields)\", null);\n db.delete(EVENTS_TEXTUAL, \"field NOT IN (SELECT id FROM fields)\", null);\n }",
"@Override\n public void onUpgrade(SQLiteDatabase bd, int arg1, int arg2) {\n //UPDATE TABLE CONTEXTS\n bd.execSQL(\"ALTER TABLE contexts RENAME TO contexts_old\");\n bd.execSQL(\"create table contexts(_id integer primary key autoincrement, name text not null, image BLOB not null, has_elements text, scores text);\");\n bd.execSQL(\"INSERT INTO contexts (_id,name,image,has_elements,scores) SELECT _id,name,image,elements,scores FROM contexts_old;\");\n bd.execSQL(\"DROP TABLE contexts_old\");\n //UPDATE TABLE SCORES\n bd.execSQL(\"ALTER TABLE scores RENAME TO scores_old\");\n bd.execSQL(\"create table scores(_id integer primary key autoincrement, score double not null, image BLOB not null, user_name text not null, context_id int not null, correct_answer_count double not null, answer_total double not null, FOREIGN KEY(context_id) REFERENCES contexts(_id));\");\n bd.execSQL(\"INSERT INTO scores(_id, score, image, user_name, context_id, correct_answer_count,answer_total) SELECT _id, score, image, user, context_id, answer_count,answer_total FROM scores_old;\");\n bd.execSQL(\"DROP TABLE scores_old\");\n }",
"private void doUpgrade() {\n // implement the database upgrade here.\n Log.w(\"ACTUALIZANDO\",\"se actualizara la base de datos\");\n updateDatabase();\n }",
"@Override\n\tpublic void checkTableVersion() {\n\n\t}",
"@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n Log.d(TAG, \"update sqlite database\");\n int version = oldVersion;\n if (version < 8) {\n version = 8;\n }\n if (version != DATABASE_VERSION) {\n Log.d(TAG, \"destorying all old data\");\n db.execSQL(\"DROP TABLE IF EXISTS \" + Tables.DAILY_RANK);\n db.execSQL(\"DROP TABLE IF EXISTS \" + Ranks.TABLE_NAME);\n db.execSQL(\"DROP TABLE IF EXISTS \" + ManualList.TABLE_NAME);\n db.execSQL(\"DROP TABLE IF EXISTS \" + Apps.TABLE_NAME);\n onCreate(db);\n }\t\n }",
"@Override\r\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion)\r\n {\n \tdb.execSQL(DBQuery.DB_DROP_QUEST_FIELD);\r\n \tdb.execSQL(DBQuery.DB_DROP_QUEST_RADIO);\r\n \tdb.execSQL(DBQuery.DB_DROP_QUEST_CHECK);\r\n \tdb.execSQL(DBQuery.DB_DROP_EMOCA_TIME);\r\n \tdb.execSQL(DBQuery.DB_DROP_EMOCA_SRC);\r\n \tdb.execSQL(DBQuery.DB_DROP_EMOCA_REPLAY);\r\n \tdb.execSQL(DBQuery.DB_DROP_EMOCA_SCORE);\r\n \tdb.execSQL(DBQuery.DB_DROP_EMOCA_MARKS);\r\n \tdb.execSQL(DBQuery.DB_DROP_ADMIN);\r\n \tthis.onCreate(db);\r\n }",
"@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n }",
"@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n }",
"@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n }",
"public abstract void updateDbConnection() throws SQLException, ClassNotFoundException;",
"@Override\r\n public void onUpgrade( SQLiteDatabase db, int oldVersion, int newVersion ) {\r\n\r\n }",
"@Override\r\n\t\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\tCursor cursor = null;\n\t\ttry {\n\t\t\tdb.beginTransaction();\n\n\t\t\t// 1. Rename existing \"payload\" table to \"legacy_payload\"\n\t\t\tApptentiveLog.v(DATABASE, \"\\t1. Backing up \\\"payloads\\\" database to \\\"legacy_payloads\\\"\");\n\t\t\tdb.execSQL(SQL_BACKUP_LEGACY_PAYLOAD_TABLE);\n\n\t\t\t// 2. Create new Payload table as \"payload\"\n\t\t\tApptentiveLog.v(DATABASE, \"\\t2. Creating new \\\"payloads\\\" database.\");\n\t\t\tdb.execSQL(SQL_CREATE_PAYLOAD_TABLE);\n\n\t\t\t// 3. Load legacy payloads\n\t\t\tApptentiveLog.v(DATABASE, \"\\t3. Loading legacy payloads.\");\n\t\t\tcursor = db.rawQuery(SQL_SELECT_LEGACY_PAYLOADS, null);\n\n\t\t\tApptentiveLog.v(DATABASE, \"4. Save payloads into new table.\");\n\t\t\tJsonPayload payload;\n\t\t\twhile (cursor.moveToNext()) {\n\t\t\t\tPayloadType payloadType = PayloadType.parse(cursor.getString(1));\n\t\t\t\tString json = cursor.getString(LegacyPayloadEntry.PAYLOAD_KEY_JSON.index);\n\n\t\t\t\tpayload = LegacyPayloadFactory.createPayload(payloadType, json);\n\t\t\t\tif (payload == null) {\n\t\t\t\t\tApptentiveLog.d(DATABASE, \"Unable to construct payload of type %s. Continuing.\", payloadType.name());\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t// the legacy payload format didn't store 'nonce' in the database so we need to extract if from json\n\t\t\t\tString nonce = payload.optString(\"nonce\", null);\n\t\t\t\tif (nonce == null) {\n\t\t\t\t\tnonce = UUID.randomUUID().toString(); // if 'nonce' is missing - generate a new one\n\t\t\t\t}\n\t\t\t\tpayload.setNonce(nonce);\n\n\t\t\t\t// 4. Save each payload in the new table.\n\t\t\t\tApptentiveLog.v(DATABASE, \"Payload of type %s:, %s\", payload.getPayloadType().name(), payload);\n\t\t\t\tContentValues values = new ContentValues();\n\t\t\t\tvalues.put(PayloadEntry.COLUMN_IDENTIFIER.name, notNull(payload.getNonce()));\n\t\t\t\tvalues.put(PayloadEntry.COLUMN_PAYLOAD_TYPE.name, notNull(payload.getPayloadType().name()));\n\t\t\t\tvalues.put(PayloadEntry.COLUMN_CONTENT_TYPE.name, notNull(payload.getHttpRequestContentType()));\n\t\t\t\t// The token is encrypted inside the payload body for Logged In Conversations. In that case, don't store it here.\n\t\t\t\tif (!payload.isAuthenticated()) {\n\t\t\t\t\tvalues.put(PayloadEntry.COLUMN_AUTH_TOKEN.name, encrypt(payload.getConversationToken())); // might be null\n\t\t\t\t}\n\t\t\t\tvalues.put(PayloadEntry.COLUMN_CONVERSATION_ID.name, payload.getConversationId()); // might be null\n\t\t\t\tvalues.put(PayloadEntry.COLUMN_REQUEST_METHOD.name, payload.getHttpRequestMethod().name());\n\t\t\t\tvalues.put(PayloadEntry.COLUMN_PATH.name, payload.getHttpEndPoint(\n\t\t\t\t\tStringUtils.isNullOrEmpty(payload.getConversationId()) ? \"${conversationId}\" : payload.getConversationId()) // if conversation id is missing we replace it with a place holder and update it later\n\t\t\t\t);\n\n\t\t\t\tFile dest = getPayloadBodyFile(payload.getNonce());\n\t\t\t\tApptentiveLog.v(DATABASE, \"Saving payload body to: %s\", hideIfSanitized(dest));\n\t\t\t\twriteToFile(dest, payload.renderData(), !payload.isAuthenticated());\n\n\t\t\t\tvalues.put(PayloadEntry.COLUMN_AUTHENTICATED.name, payload.isAuthenticated() ? TRUE : FALSE);\n\n\t\t\t\tdb.insert(PayloadEntry.TABLE_NAME, null, values);\n\t\t\t}\n\n\t\t\t// 5. Migrate messages\n\t\t\tApptentiveLog.v(DATABASE, \"\\t6. Migrating messages.\");\n\t\t\tmigrateMessages(db);\n\n\t\t\t// 6. Finally, delete the temporary legacy table\n\t\t\tApptentiveLog.v(DATABASE, \"\\t6. Delete temporary \\\"legacy_payloads\\\" database.\");\n\t\t\tdb.execSQL(SQL_DELETE_LEGACY_PAYLOAD_TABLE);\n\t\t\tdb.setTransactionSuccessful();\n\t\t} catch (Exception e) {\n\t\t\tApptentiveLog.e(DATABASE, e, \"Error in upgradeVersion2to3()\");\n\t\t\tlogException(e);\n\t\t} finally {\n\t\t\tensureClosed(cursor);\n\t\t\tif (db != null) {\n\t\t\t\tdb.endTransaction();\n\t\t\t}\n\t\t}\n\t}",
"@Override\r\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\t\r\n\t}",
"@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\t\n\t}",
"@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\t\n\t}",
"@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\t\n\t}",
"@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\t\n\t}",
"@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\t\n\t}",
"@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\t\n\t}",
"@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\t\n\t}",
"@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\t\n\t}",
"@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\t\n\t}",
"@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\t\n\t}",
"@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\t\n\t}",
"@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\t\n\t}",
"void downgradeToReadLocks();",
"@Override\r\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\r\n\r\n }",
"@Override\r\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\r\n\t}",
"@Override\r\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\r\n\t}",
"@Override\r\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\r\n\t}",
"public void bootstrapDatabase() throws Exception {\n\n }",
"boolean supportsRollback(Database database);",
"@Override\n public void onUpgrade(SQLiteDatabase database, ConnectionSource connectionSource, int oldVersion, int newVersion) {\n try {\n\n TableUtils.dropTable(connectionSource, Comanda_Item.class, true);\n TableUtils.dropTable(connectionSource, Comanda.class, true);\n\n TableUtils.dropTable(connectionSource, Produto.class, true);\n TableUtils.dropTable(connectionSource, Mesa.class, true);\n\n\n onCreate(database, connectionSource);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }",
"@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t}",
"@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t}",
"@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t}",
"@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t}",
"@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t}",
"@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t}",
"@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t}",
"private void checkDatabaseStructure(DatabaseUpdateType update) {\n }"
] | [
"0.6760341",
"0.6756422",
"0.67316455",
"0.6578476",
"0.64931965",
"0.64221895",
"0.63729966",
"0.63655734",
"0.6336988",
"0.6304793",
"0.6294479",
"0.627361",
"0.626316",
"0.62428147",
"0.62250274",
"0.6211318",
"0.61385643",
"0.6115046",
"0.60878366",
"0.6087093",
"0.60729104",
"0.6068516",
"0.6062065",
"0.603136",
"0.59509706",
"0.5913697",
"0.58938444",
"0.58899105",
"0.58710027",
"0.5870383",
"0.5846996",
"0.584237",
"0.5834232",
"0.5753286",
"0.5744312",
"0.5742176",
"0.57415056",
"0.57295066",
"0.5720668",
"0.5718237",
"0.57092017",
"0.57062733",
"0.5700346",
"0.5635633",
"0.5599328",
"0.55985576",
"0.5596359",
"0.5593678",
"0.55912966",
"0.55882597",
"0.5577526",
"0.5574043",
"0.5571191",
"0.5569022",
"0.5563267",
"0.5561442",
"0.5557104",
"0.55503803",
"0.5549421",
"0.5548928",
"0.5548928",
"0.5548928",
"0.5545287",
"0.5540721",
"0.5532601",
"0.55290616",
"0.5526569",
"0.5526569",
"0.5526569",
"0.5526569",
"0.5526569",
"0.55196494",
"0.55196494",
"0.55196494",
"0.55196494",
"0.55196494",
"0.55196494",
"0.55196494",
"0.55196494",
"0.55196494",
"0.55196494",
"0.55196494",
"0.55196494",
"0.5515624",
"0.55138063",
"0.5510596",
"0.5510596",
"0.5510596",
"0.5510502",
"0.5502551",
"0.54988223",
"0.54959923",
"0.54959923",
"0.54959923",
"0.54959923",
"0.54959923",
"0.54959923",
"0.54959923",
"0.54952884"
] | 0.70973104 | 1 |
Turns to the target | public TurnToTarget() {
forceDone = false;
turnToTarget = new TurnToAngle(0);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void toSelectingAttackTarget() {\n }",
"Target target();",
"public void startMovingToTarget() \r\n {\n movingToTarget = true;\r\n }",
"Object getTarget();",
"Object getTarget();",
"void setTarget(java.lang.String target);",
"public Living getTarget();",
"public void setTarget(String target) {\n this.target = target;\n }",
"String getTarget();",
"String getTarget();",
"public void goToSprite(Sprite target) { \n goToXY(target.pos.x,target.pos.y);\n }",
"State getTarget();",
"public void setTarget(Target target) {\n\t\tthis.target = target;\n\t}",
"@Override\n\tpublic void setTarget(Object arg0) {\n\t\tdefaultEdgle.setTarget(arg0);\n\t}",
"private void target() {\n\t\t// find distance to flower\n\t\tdouble dist = grid.getDistance(grid.getLocation(this),\n\t\t\t\t\t\t\t\t\t grid.getLocation(targetFlower));\n\t\t// if close to flower start harvesting nectar\n\t\tif(dist < 3) {\n\t\t\tstate = \"HARVESTING\";\n\t\t}\n\t\t// if VERY far from flower, it must have died. start scouting\n\t\telse if(dist > 200){\n\t\t\tstate = \"SCOUTING\";\n\t\t}\n\t\t// else keep moving toward flower\n\t\telse{\n\t\t\tmoveTowards(grid.getLocation(targetFlower), 3);\n\t\t\tfood -= highMetabolicRate;\n\t\t}\n\t}",
"void setTarget(Node target) {\n\t\tthis.target = target;\n\t}",
"public void setTarget(String val)\r\n\t{\r\n\t\t_target = val;\r\n\t}",
"public void setTarget(java.lang.String target) {\n this.target = target;\n }",
"protected void setTarget(Command target) {\n\t\tproxy.setTarget(target);\n\t}",
"void activateTarget(@ParamName(\"targetId\") String targetId);",
"@Override\n\tpublic void setChaseTarget(){\n\t\tthis.setTarget(_pacman.getX()+Constants.SQUARE_SIDE,_pacman.getY()-(4*Constants.SQUARE_SIDE));\n\t}",
"public boolean moveTo(Object target);",
"void setTarget(IWfnTransitionAndPlace elem);",
"@Override\n\tpublic TargetLocator switchTo() {\n\t\treturn null;\n\t}",
"void setTarget(String target) {\n try {\n int value = Integer.valueOf(target);\n game.setTarget(value);\n } catch (NumberFormatException e) {\n // caused by inputting strings\n } catch (IllegalArgumentException e) {\n // caused by number < 6.\n game.setTarget(10);\n }\n }",
"public Contig getTarget() { return target; }",
"java.lang.String getTarget();",
"java.lang.String getTarget();",
"@Override\r\n\tprotected void processTarget() {\n\r\n\t}",
"@Override\r\n\tprotected void processTarget() {\n\r\n\t}",
"public void setCurrentTarget(Object target) {\r\n if (target instanceof IModelNode) {\r\n newSource = null;\r\n newTarget = (IModelNode) target;\r\n }\r\n }",
"@Override\n public void setTarget(GameObject newTarget) {\n if (newTarget != null && !newTarget.isVisible()) {\n newTarget = null;\n }\n\n // Can't target and attack festival monsters if not participant\n if (newTarget instanceof FestivalMonsterInstance && !isFestivalParticipant()) {\n newTarget = null;\n }\n\n final Party party = getParty();\n\n // Can't target and attack rift invaders if not in the same room\n if (party != null && party.isInDimensionalRift()) {\n final int riftType = party.getDimensionalRift().getType();\n final int riftRoom = party.getDimensionalRift().getCurrentRoom();\n if (newTarget != null && !DimensionalRiftManager.getInstance().getRoom(riftType, riftRoom).checkIfInZone(newTarget.getX(), newTarget.getY(), newTarget.getZ())) {\n newTarget = null;\n }\n }\n\n final GameObject oldTarget = getTarget();\n\n if (oldTarget != null) {\n if (oldTarget == newTarget) {\n return;\n }\n\n // Remove the L2Player from the _statusListener of the old target if it was a L2Character\n if (oldTarget.isCreature()) {\n ((Creature) oldTarget).removeStatusListener(this);\n }\n\n broadcastPacket(new TargetUnselected(this));\n }\n\n if (newTarget != null) {\n // Add the L2Player to the _statusListener of the new target if it's a L2Character\n if (newTarget.isCreature()) {\n ((Creature) newTarget).addStatusListener(this);\n }\n\n broadcastPacket(new TargetSelected(getObjectId(), newTarget.getObjectId(), getLoc()));\n }\n\n super.setTarget(newTarget);\n }",
"public final void takeTarget(xmf xmf) {\n akcr.b(xmf, \"target\");\n super.takeTarget(xmf);\n xmf.getLifecycle().a(this);\n }",
"@objid (\"8fb70c43-b102-4a64-9424-c7cc07d58fcf\")\n void setTarget(Instance value);",
"public void setTarget(String newValue);",
"Target convert(Source source, Target target);",
"public void target()\n {\n if(noRotation == false)\n {\n if(timer % 3 == 0)\n {\n int currentRotation = getRotation();\n turnTowards(xMouse, yMouse);\n int newRotation = getRotation();\n if (Math.abs(currentRotation-newRotation) > 180)\n {\n if (currentRotation < 180) currentRotation += 360;\n else newRotation += 360;\n }\n if(currentRotation != newRotation)\n { \n setRotation(currentRotation+direction()*8);\n }\n }\n }\n }",
"public String target(String target)\n {\n return target + \":\" + this.getPort();\n }",
"TrgPlace getTarget();",
"public void setTarget(String s) { \n shortcutValue(s, GENERAL_TARGET);\n }",
"T setUrlTarget(String urlTarget);",
"public String getTarget() {\n return target;\n }",
"public String getTarget() {\n return target;\n }",
"private Action refuelAt(Position target) {\n\t\tif (position.equals(target)) return new RefuelAction();\n\n\t\treturn moveTowardsPosition(target);\n\t}",
"@objid (\"19651663-f981-4f11-802a-d5d7cbd6f88a\")\n Instance getTarget();",
"void changeTargetMode(boolean goRight);",
"private void setNewTarget() {\n startPoint = new Circle(targetPoint);\n projection.addShift(this.targetGenerator.shiftX(startPoint), this.targetGenerator.shiftY(startPoint),\n this.targetGenerator.gridManager);\n this.targetPoint = new Circle(this.targetGenerator.generateTarget(startPoint), this.targetGenerator.gridManager.pointSize);\n projection.convertFromPixels(this.targetPoint);\n \n gameListeners.addedNewLine(startPoint, targetPoint);\n \n // TODO make probability upgradeable to spawn a new pickup\n if (Math.random() < pickupSpawnProbability) {\n generateNewPickup(); \n }\n }",
"public void turn(int target) throws InterruptedException\n {\n turnAbsolute(target + mrGyro.getHeading());\n }",
"URL getTarget();",
"private TrackingResult followTarget(Rect target)\n\t{\n\t\t// Clear any existing target rectangle.\n\t\tcamera.addTarget(null);\n\t\t\n\t\t// Outline the target being tracked.\n\t\tcamera.addTarget(target);\n\t\t\n\t\t// This is field of view size.\n\t\tSize imageSize = camera.getImageSize();\n\t\t\n\t\t// get size of target outline area.\n\t\tint targetArea = target.height * target.width;\n\t\t\n\t\t// If we have just acquired target, record initial size. Size comparison\n\t\t// is how we determine distance to target.\n\t\t\n\t\tif (initialTargetArea == 0) initialTargetArea = targetArea;\n\t\t\n\t\t// Compute center point of target in the camera view image.\n\t\tint targetCenterX = target.x + target.width / 2;\n\t\tint imageCenterX = (int) (imageSize.width / 2);\n\t\t\n\t\t// offset minus indicates target is left of image center,\n\t\t// plus to the right. If target is left, drone needs to turn\n\t\t// left to center the target in the image which is a minus yaw value.\n\t\t\n\t\tint offset = targetCenterX - imageCenterX;\n\n\t\tlogger.fine(\"offset=\" + offset);\n\t\t\n\t\toffset *= .25;\t// Scale offset down;\n\t\t\n\t\t// Determine change in distance from last target acquisition.\n\t\t\n\t\tdouble distance = initialTargetArea - targetArea;\n\t\t\n\t\tlogger.fine(String.format(\"ia=%d ta=%d dist=%.0f\", initialTargetArea, targetArea, distance));\n\t\t\n\t\t//initialTargetArea = targetArea;\n\t\t\n\t\tdouble scaleFactor = 0.0;\n\t\t\n\t\t// If distance is small, call it good otherwise the drone\n\t\t// hunts back and forth. Value must be determined by testing.\n\t\t\n\t\tif (Math.abs(distance) < 2000.0) \n\t\t\tdistance = 0.0;\n\t\telse\n\t\t{\n\t\t\t// Scale distance change to a fwd/back movement value of 20% for flyRC command.\n\t\t\t// For some unknown reason, need more power to fly forward than back and even\n\t\t\t// with 30%, forward seems not reliable.\n\t\t\t// scaleFactor must be positive to preserve the sign of distance value.\n\t\t\t\n\t\t\tscaleFactor = 20.0 / Math.abs(distance);\n\t\t\n\t\t\tdistance = distance * scaleFactor;\n\t\t}\n\t\t\n\t\tlogger.fine(String.format(\"dist=%.1f fact=%f\", distance, scaleFactor));\n\t\t\n\t\treturn new TrackingResult(offset, (int) distance);\n\t}",
"public Target getTarget() {\n return target;\n }",
"public void setToRefid(String targetid) {\n this.targetid = targetid;\n }",
"public void setTargetLocation(Location targetLocation) \n {\n this.targetLocation = targetLocation;\n }",
"public void setTarget(ObjectSequentialNumber target) {\n this.target = target;\n }",
"public abstract boolean isTarget();",
"public void setTargeted() {\n targeted ++;\n }",
"N getTarget();",
"public java.lang.String getTarget() {\n return target;\n }",
"public void switchTo() {\n\towner.ioContainer().select(this);\n }",
"public String getTarget()\r\n\t{\r\n\t\treturn _target;\r\n\t}",
"public void toSelectingAttackTarget(INodeTargetEnemy targetMenu) {\n }",
"public String getTarget() {\n return this.target;\n }",
"public void addTarget(Target target) {\n SocketChannel socketChannel = null;\n try {\n socketChannel = SocketChannel.open();\n socketChannel.configureBlocking(false);\n socketChannel.connect(target.address);\n target.socketChannel = socketChannel;\n target.connectStart = System.currentTimeMillis();\n synchronized (targets) {\n targets.add(target);\n }\n selector.wakeup();\n } catch (IOException e) {\n// e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.\n if (socketChannel != null) {\n try {\n socketChannel.close();\n } catch (IOException e1) {\n e1.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.\n }\n }\n target.failure = e;\n addFinishedTarget(target);\n }\n\n }",
"@InVertex\n Object getTarget();",
"public void setTarget(Vector3f target) \n {\n float distance = FastMath.abs(target.y - this.getPosition().y);\n this.motionTarget = target;\n this.motionPath = new MotionPath();\n \n this.motionPath.addWayPoint(this.getPosition());\n\n this.motionPath.addWayPoint(new Vector3f(this.getPosition().x, target.y, this.getPosition().z));\n \n grabberMotion = new MotionEvent(this.node, this.motionPath);\n grabberMotion.setInitialDuration(distance / this.speed);\n }",
"public void changeActivity(Activity Current, Class Target) {\n Intent intent = new Intent(Current, Target);\n startActivity(intent);\n }",
"public String adapteeTester(Target target) {\n return target.doSomething();\n }",
"void planActionForTarget(WebElement target, int targetIndex) {\n newFutureTargets.push(composeActionForTarget(target, targetIndex));\n }",
"public void setTarget(double x, double y) {\n\t\tkin.target = new Vector2d(x, y);\n\t}",
"public Target getTarget() {\n\t\treturn target;\n\t}",
"public Target getTarget() {\n\t\treturn target;\n\t}",
"public Target getTarget() {\n\t\treturn target;\n\t}",
"String getTarget() {\r\n return this.target;\r\n }",
"public void execute (T target);",
"public void executeFromGui(Player target) {\r\n\t\tremoveTrail(target);\r\n\t}",
"public abstract URI target();",
"public InsnTarget[] switchTargets() {\n return targetsOp;\n }",
"public void addTarget(Target target)\n {\n if (!targets.contains(target))\n {\n targets.add(target);\n }\n }",
"public Player getTarget() {\n return target;\n }",
"public Target getTarget() {\n\n return target;\n }",
"public static void setTarget(GameWorld gw){\n\t\tif(game == null)\n\t\t\tgame = gw;\n\t}",
"public Object getTarget()\n {\n return __m_Target;\n }",
"@Override\n\tpublic VType getTarget() {\n\t\t// TODO: Add your code here\n\t\treturn super.to;\n\t}",
"@Override\n protected void performActionResults(Action targetingAction) {\n PhysicalCard cardToSteal = targetingAction.getPrimaryTargetCard(targetGroupId);\n\n // Perform result(s)\n action.appendEffect(\n new StealCardToLocationEffect(action, cardToSteal));\n }",
"@Test\n\t\t\tpublic void testTargetOneStep()\n\t\t\t{\n\t\t\t\t//Test one step and check for the right space\n\t\t\t\tboard.calcTargets(0, 7, 1);\n\t\t\t\tSet<BoardCell> targets= board.getTargets();\n\t\t\t\tboard.clearTargets();\n\t\t\t\tassertEquals(1, targets.size());\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(1, 7)));\n\n\t\t\t\t// Test one step near a door with the incorrect direction\n\t\t\t\tboard.calcTargets(13, 6, 1);\n\t\t\t\ttargets= board.getTargets();\n\t\t\t\tboard.clearTargets();\n\t\t\t\tassertEquals(3, targets.size());\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(14, 6)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(13, 5)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(13, 7)));\n\t\t\t\t\n\t\t\t\t\n\t\t\t}",
"@Override\n public String getTarget()\n {\n return null;\n }",
"public void setTarget(String target) {\n this.target = target == null ? null : target.trim();\n }",
"public Torpedo(Board mygame, StarShip owner, int attack, StarShip target) {\n super(mygame, owner, attack);\n this.target = target;\n this.setSprite(\"torpedo\");\n }",
"private void goTo(double x, double y) \n\t{\n\t\t/* Transform our coordinates into a vector */\n\t\tx -= getX();\n\t\ty -= getY();\n\t \n\t\t/* Calculate the angle to the target position */\n\t\tdouble angleToTarget = Math.atan2(x, y);\n\t \n\t\t/* Calculate the turn required get there */\n\t\tdouble targetAngle = Utils.normalRelativeAngle(angleToTarget - getHeadingRadians());\n\t \n\t\t/* \n\t\t * The Java Hypot method is a quick way of getting the length\n\t\t * of a vector. Which in this case is also the distance between\n\t\t * our robot and the target location.\n\t\t */\n\t\tdouble distance = Math.hypot(x, y);\n\t \n\t\t/* This is a simple method of performing set front as back */\n\t\tdouble turnAngle = Math.atan(Math.tan(targetAngle));\n\t\tsetTurnRightRadians(turnAngle);\n\t\tif(targetAngle == turnAngle) {\n\t\t\tsetAhead(distance);\n\t\t} else {\n\t\t\tsetBack(distance);\n\t\t}\n\t}",
"public Boolean makeAttackAction(UnitActor target) {\n if (this.isInRange(target)) {\n PlayBoardActor current = lazyPlayboardActor.get();\n long pvStart = target.getPv();\n current.getPlayBoard().applyAttack(this.point, target.getPoint());\n this.addAction(Actions.sequence(getActionAttack(target), target.getAfterAttack(pvStart - target.getPv())));\n this.disable(true);\n this.setIdle();\n return true;\n } else {\n return false;\n }\n }",
"public AstNode getTarget() {\n return target;\n }",
"private void updateCurrentTarget(){\n switch (state){\n case States.DEAD:\n currentTarget = currentLocation;\n break;\n case States.FIGHT:\n if (targetEnemy != null)\n currentTarget = targetEnemy.getCurrentLocation();\n else\n currentTarget = targetBuilding.getLocation();\n break;\n case States.RETREAT:\n currentTarget = new Point(20,20);\n break;\n case States.LOSS:\n currentTarget = new Point(20,20);\n break;\n case States.WIN:\n currentTarget = village.getCenter();\n break;\n case States.IDLE:\n currentTarget = targetBuilding.getLocation();\n }\n }",
"Target convert(Source source);",
"public void setTarget(Object method)\n {\n __m_Target = method;\n }",
"Attribute getTarget();",
"public void teammateNewTarget(String teammateName, String newTarget) {\r\n\t\tif (getIndexForName(teammateName) != -1 && getIndexForEnemy(newTarget) != -1) {\r\n\t\t\ttargetTracking.get(getIndexForName(teammateName))\r\n\t\t\t\t\t.updateTarget(enemyTracker.getEnemyList().get(getIndexForEnemy(newTarget)));\r\n\t\t}\r\n\t}",
"public void action(EntityLivingBase target)\n {\n if (action != null)\n {\n action.execute(target);\n }\n }",
"public void setTargetid(Integer targetid) {\n this.targetid = targetid;\n }",
"public boolean Switch()\n {\n if(ID != targetID)\n {\n return true;\n }\n else\n {\n return false;\n }\n }",
"public void setTargetPosition(float x, float y){\r\n this.targetX = x;\r\n this.targetY = y;\r\n }"
] | [
"0.6930716",
"0.68460256",
"0.67705274",
"0.6698493",
"0.6698493",
"0.6663918",
"0.6608907",
"0.6572033",
"0.6565521",
"0.6565521",
"0.64977926",
"0.64712083",
"0.6456511",
"0.6442813",
"0.64372486",
"0.6386773",
"0.6335982",
"0.6307366",
"0.6279105",
"0.6265366",
"0.62539434",
"0.6185229",
"0.6148608",
"0.6130036",
"0.61213374",
"0.6116485",
"0.6116187",
"0.6116187",
"0.6101239",
"0.6101239",
"0.6069471",
"0.6063518",
"0.6063498",
"0.60575736",
"0.60439026",
"0.603301",
"0.59876645",
"0.59103036",
"0.59042346",
"0.58923626",
"0.5875994",
"0.58734006",
"0.58734006",
"0.5864901",
"0.58513844",
"0.58382654",
"0.5808545",
"0.5806501",
"0.58048475",
"0.5793048",
"0.57758915",
"0.5774328",
"0.5771677",
"0.57612026",
"0.5756571",
"0.575113",
"0.57474375",
"0.57329726",
"0.5732421",
"0.5717625",
"0.5712282",
"0.5710211",
"0.56845915",
"0.5684008",
"0.56798744",
"0.56785065",
"0.56765056",
"0.5670792",
"0.566532",
"0.56458664",
"0.56458664",
"0.56458664",
"0.56439143",
"0.5643492",
"0.5629213",
"0.56244946",
"0.56230295",
"0.56190664",
"0.5615361",
"0.5613776",
"0.56090295",
"0.560892",
"0.5585476",
"0.5582283",
"0.5576018",
"0.5573158",
"0.5557321",
"0.5550679",
"0.55491734",
"0.5546841",
"0.55459565",
"0.5540769",
"0.55327046",
"0.5522291",
"0.55214435",
"0.55198586",
"0.55181044",
"0.5509429",
"0.5500943",
"0.54965985"
] | 0.70732933 | 0 |
TODO edit to work with getting genres from the website | private static HashMap<Integer, String> getMovieGenres() {
String url = "http://api.themoviedb.org/3/genre/movie/list?api_key=" + BuildConfig.APPLICATION_ID;
JSONArray genres = null;
Integer id;
String genre;
HashMap<Integer, String> movieGenresMap = new HashMap<Integer, String>();
try {
genres = new JSONArray(
"[{\"id\":28,\"name\":\"Action\"},{\"id\":12,\"name\":\"Adventure\"},{\"id\":16,\"name\":\"Animation\"},{\"id\":35,\"name\":\"Comedy\"},{\"id\":80,\"name\":\"Crime\"},{\"id\":99,\"name\":\"Documentary\"},{\"id\":18,\"name\":\"Drama\"},{\"id\":10751,\"name\":\"Family\"},{\"id\":14,\"name\":\"Fantasy\"},{\"id\":10769,\"name\":\"Foreign\"},{\"id\":36,\"name\":\"History\"},{\"id\":27,\"name\":\"Horror\"},{\"id\":10402,\"name\":\"Music\"},{\"id\":9648,\"name\":\"Mystery\"},{\"id\":10749,\"name\":\"Romance\"},{\"id\":878,\"name\":\"Science Fiction\"},{\"id\":10770,\"name\":\"TV Movie\"},{\"id\":53,\"name\":\"Thriller\"},{\"id\":10752,\"name\":\"War\"},{\"id\":37,\"name\":\"Western\"}]");
} catch (JSONException e) {
e.printStackTrace();
}
if (genres != null && genres.length() > 0) {
try {
for (int i = 0; i < genres.length(); i++) {
JSONObject genrePair = genres.getJSONObject(i);
id = genrePair.getInt("id");
genre = genrePair.getString("name");
movieGenresMap.put(id, genre);
}
} catch (JSONException e) {
e.printStackTrace();
}
}
return movieGenresMap;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void createGenres() {\n ArrayList<String> gen = new ArrayList<>();\n //\n for (Movie mov : moviedb.getAllMovies()) {\n for (String genre : mov.getGenre()) {\n if (!gen.contains(genre.toLowerCase()))\n gen.add(genre.toLowerCase());\n }\n }\n\n Collections.sort(gen);\n\n genres = gen;\n }",
"public String genre14(){\n String genre14MovieTitle = \" \";\n for(int i = 0; i < results.length; i++){\n if(results[i].genre()) {\n genre14MovieTitle += results[i].getTitle() + \"\\n\";\n }\n }\n System.out.println(genre14MovieTitle);\n return genre14MovieTitle;\n }",
"public String getBasedOnGenre(String genre) {\n String cap = genre.substring(0, 1).toUpperCase() + genre.substring(1);\n StringBuilder json = new StringBuilder();\n for (Node node: books) {\n if (node.getItem().getGenre().equals(cap)) {\n json.append(((Book)node.getItem()).getJSON()).append(\"\\n\");\n }\n }\n for (Node node: music) {\n if (node.getItem().getGenre().equals(cap)) {\n json.append(((Music)node.getItem()).getJSON()).append(\"\\n\");\n }\n }\n for (Node node: movies) {\n if (node.getItem().getGenre().equals(cap)) {\n json.append(((Movie)node.getItem()).getJSON()).append(\"\\n\");\n }\n }\n return json.toString();\n }",
"private void reqGenre(){\n\n if(NetworkChecker.isOnline(getApplicationContext())) {\n ReqGenre.genreTvList(resGenreTvShows());\n ReqGenre.genreMovieList(resGenreMovie());\n\n }\n else {\n PopUpMsg.toastMsg(\"Network isn't avilable\",getApplicationContext());\n }\n\n }",
"public Set<String> getGenres() {\r\n return this.genres;\r\n }",
"@Nullable\n GenresPage getGenres();",
"@NonNull\n public final List<Genres> getGenres() {\n return this.genres;\n }",
"private void loadToChoice() {\n\t\tfor(Genre genre : genreList) {\n\t\t\tuploadPanel.getGenreChoice().add(genre.getName());\n\t\t}\n\t}",
"private static void queryBooksByGenre(){\n\t\tSystem.out.println(\"===Query Books By Genre===\");\n\t\tScanner string_input = new Scanner(System.in);\n\t\t\n\t\tSystem.out.println(\"Enter Genre to Query Books by: \");\n\t\tString genre = string_input.next();\n\t\tint genre_index = getGenreIndex(genre); //returns the index of the genre entered, in ALL_GENRES\n\t\t\n\t\tif(genre_index > -1){//valid genre was entered\n\t\t\tIterator<String> iter = ALL_GENRES.get(genre_index).iterator();\n\t\t\tSystem.out.println(\"All \" + genre + \" books are: \");\n\t\t\tprintAllElements(iter);\n\t\t}\n\t}",
"@Override\r\n\tprotected String getUrl() {\n\t\treturn \"http://apis.skplanetx.com/melon/genres\";\r\n\t}",
"public String getGenre()\r\n {\r\n String answer=genre;\r\n return answer;\r\n }",
"@GET(\"/v1/genres\")\r\n void getGenres( //\r\n @Query(\"apikey\") String apikey, //\r\n @Query(\"pretty\") boolean pretty, //\r\n @Query(\"catalog\") String catalog, //\r\n Callback<Collection<GenreData>> callBack);",
"public String getGenresString(){\n String genres =\"\";\n for (String str : allGenres){\n genres += str +\", \";\n }\n return genres;\n }",
"public void genres(Parameters parameters, final onSuccessCallback callback){\n getJSONArray(parameters.buildQuery(Endpoint.GENRES), new onSuccessCallback() {\n @Override\n public void onSuccess(JSONArray result) {\n callback.onSuccess(result);\n }\n\n @Override\n public void onError(VolleyError error) {\n callback.onError(error);\n }\n });\n }",
"public String getGenre() {\n return genre;\n }",
"public String getGenre() {\n return genre;\n }",
"@Override\n\tpublic List<Genre> displayAllGenres() throws MovieException {\n\t\treturn obj.displayAllGenres();\n\t}",
"public String hGenre(int tunnusnro) {\r\n List<Genre> kaikki = new ArrayList<Genre>();\r\n for (Genre genre : this.alkiot) {\r\n \t kaikki.add(genre);\r\n }\r\n for (int i = 0; i < kaikki.size(); i++) {\r\n if (tunnusnro == kaikki.get(i).getTunnusNro()) {\r\n return kaikki.get(i).getGenre();\r\n }\r\n }\r\n return \"ei toimi\";\r\n }",
"public void setGenre(String genre) {\n this.genre = genre;\n }",
"public void setGenre(String genre)\r\n {\r\n this.genre=genre;\r\n }",
"public void showGenre(Genre genre) {\n for (Record r : cataloue) {\n if (r.getGenre() == genre) {\n System.out.println(r);\n }\n }\n\n }",
"private void populateGenres(){\n try{\n Connection conn = DriverManager.getConnection(\n \"jdbc:sqlite:\\\\D:\\\\Programming\\\\Java\\\\Assignments\\\\CIS_452\\\\Music_Library\\\\album_library.sqlite\");\n Statement stmnt = conn.createStatement();\n ResultSet results = stmnt.executeQuery(\"SELECT DISTINCT genre FROM artist ORDER BY genre\");\n\n while(results.next()){\n String genre = results.getString(1);\n genreList.add(genre);\n }\n conn.close();\n } catch(SQLException e) {\n System.out.println(\"Error connecting to database: \" + e.getMessage());\n }\n }",
"public Album setGenres(Set<String> genres) {\r\n this.genres = genres;\r\n return this;\r\n }",
"Builder addGenre(URL value);",
"public Genre getGenre() {\n return genre;\n }",
"public Genre getGenre() {\n return genre;\n }",
"public void setGenre(ArrayList<String> genre) {\n this.genre = genre;\n }",
"public String getGenre()\n {\n return bookGenre;\n }",
"lanyotech.cn.park.protoc.CommonProtoc.PARKINGPICTURE getPictureGenre();",
"public void setGenre() {\r\n this.genre = genre;\r\n }",
"public Genre getGenre() {\n\n return genre;\n }",
"public void addGenre() {\n ResultSet result = null;\n try {\n result = server.executeStatement(\"SELECT genreID FROM productiongenre WHERE prodID = \" + \"'\" + getId() + \"'\" + \";\");\n if(result.next())\n genre = result.getString(\"genreID\");\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n }",
"@Test\r\n public void testGetGenreList() throws MovieDbException {\r\n LOG.info(\"getGenreList\");\r\n List<Genre> results = tmdb.getGenreList(LANGUAGE_DEFAULT);\r\n assertTrue(\"No genres found\", !results.isEmpty());\r\n }",
"public void randomGenre(View view) {\r\n String[] randomGenre = {\"Rock\", \"Funk\", \"Hip hop\", \"Country\", \"Pop\", \"Blues\", \"K-pop\", \"Punk\", \"House\", \"Soul\"};\r\n int index = (int) (Math.random() * 10);\r\n displayMessage(\"Your random genre is: \" + randomGenre[index]);\r\n }",
"public ArrayList<MovieGenreModel> getAllGenres() {\n\t\treturn null;\n\t}",
"public void setGenre(int genre) {\n this.genre = genre;\n }",
"public int getGenre() {\n return genre;\n }",
"@GET(\"genre/movie/list\")\n Call<GenreResponse> getGenreList(@Query(\"api_key\") String apikey);",
"@GET\n public List<JsonGenre> getAll() {\n \tList<Genre> genres = genreDao.getGenres();\n \tLOGGER.info(\"find \"+genres.size()+\" genres in the database\");\n \tArrayList<JsonGenre> ls = new ArrayList<JsonGenre>();\n \tfor (Genre s:genres) {\n \t\tls.add(new JsonGenre(s.getId(), s.getName()));\n \t}\n \treturn ls;\n }",
"public String getGenus() {\n return genus;\n }",
"private static ArrayList<String> getGenre(String songID) throws SQLException {\n ArrayList<String> genres = new ArrayList<>();\n genreStatement = conn.createStatement();\n genreResultSet = genreStatement.executeQuery(\"SELECT * FROM genre, trackGenre WHERE trackGenre.track_id = '\" + songID + \"' AND trackGenre.genre = genre.name;\");\n while (genreResultSet.next()){\n genres.add(genreResultSet.getString(\"name\"));\n }\n return genres;\n }",
"public void setGenre(Genre genre) {\n this.genre = genre;\n }",
"public void setGenre(Genre genre) {\n this.genre = genre;\n }",
"public List<Books> findBooksByGenre(String genre) {\r\n HttpSession session = (HttpSession) FacesContext.getCurrentInstance().getExternalContext().getSession(false);\r\n List<Genre> list = new ArrayList();\r\n Genre g = new Genre();\r\n g.setType(genre);\r\n list.add(g);\r\n session.setAttribute(\"lastGenre\",list);\r\n return bookController.findBooksByGenre(genre);\r\n }",
"public void printAverageRatingsByGenre(){\n ThirdRatings sr = new ThirdRatings();\n int raters = sr.getRaterSize();\n System.out.println(\"read data for \" + raters + \" raters\");\n System.out.println(\"-------------------------------------\");\n \n //MovieDatabase.initialize(\"ratedmovies_short.csv\");\n MovieDatabase.initialize(\"ratedmoviesfull.csv\");\n System.out.println(\"read data for \" + MovieDatabase.size() + \" movies\");\n System.out.println(\"-------------------------------------\");\n \n Filter f = new GenreFilter(\"Comedy\"); \n int minRatings = 20;\n ArrayList<Rating> aveRat = sr.getAverageRatingsByFilter(minRatings, f);\n System.out.println(\"Found \" + aveRat.size() + \" movies\");\n System.out.println(\"-------------------------------------\");\n // sort arraylist\n Collections.sort(aveRat);\n for(Rating r: aveRat){\n System.out.println(r.getValue() + \"\\t\" + MovieDatabase.getYear(r.getItem()) + \"\\t\" \n + MovieDatabase.getTitle(r.getItem()) + \"\\t\" + MovieDatabase.getGenres(r.getItem()));\n }\n System.out.println(\"-------------------------------------\");\n \n \n }",
"private void saveGenres(){\n\t\tFile genreList = new File(Paths.get(\"genres.txt\").toString());\n\t\ttry{\n\t\t\tBufferedWriter writer = new BufferedWriter(new FileWriter(genreList));\n\t\t\tfor (String s : genres){\n\t\t\t\twriter.write(s);\n\t\t\t\twriter.newLine();\n\t\t\t}\n\t\t\twriter.close();\n\t\t} catch(IOException ex){\n\t\t\t\n\t\t}\n\t}",
"public static List<Genre> get() throws IOException {\n return get(null);\n }",
"public void setGenre(String genre){\n\t\t//FIXME\n\t\tthis.genre = genre;\n\t}",
"List<Videogioco> retriveByGenere(String genere);",
"public String genresListText(Song [] songList){\n\t\t\n\t\tString text = \"\";\n\t\t\n\t\tfor(int i=0; i<songList.length; i++){\n\t\t\n\t\t\tif(songList[i]!=null){\n\t\t\t\tif( (i>0)&&(songList[i-1].getSongGenre().equals(songList[i].getSongGenre()))){ \n\t\t\t\t\n\t\t\t\t}else{\n\t\t\t\ttext+= songList[i].getSongGenre() + \",\";\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn text;\n\t}",
"public static void setUpGenres(Context context){\n SharedPreferences mSetting = context.getSharedPreferences(StaticVars.GENRE_SHARED_PREFERENCES,Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = mSetting.edit();\n //putting genre name and its id on shikimori\n\n\n editor.putInt(\"Drama\",8);\n editor.putInt(\"Драма\",8);\n editor.putInt(\"Game\",11);\n editor.putInt(\"Игры\",11);\n editor.putInt(\"Psychological\",40);\n editor.putInt(\"Психологическое\",40);\n editor.putInt(\"Adventure\",2);\n editor.putInt(\"Приключения\",2);\n editor.putInt(\"Music\",19);\n editor.putInt(\"Музыка\",19);\n editor.putInt(\"Action\",1);\n editor.putInt(\"Экшен\",1);\n editor.putInt(\"Comedy\",4);\n editor.putInt(\"Комедия\",4);\n editor.putInt(\"Demons\",6);\n editor.putInt(\"Демоны\",6);\n editor.putInt(\"Police\",39);\n editor.putInt(\"Полиция\",39);\n editor.putInt(\"Space\",29);\n editor.putInt(\"Космос\",29);\n editor.putInt(\"Ecchi\",9);\n editor.putInt(\"Этти\",9);\n editor.putInt(\"Fantasy\",10);\n editor.putInt(\"Фэнтези\",10);\n editor.putInt(\"Historical\",13);\n editor.putInt(\"Исторический\",13);\n editor.putInt(\"Horror\",14);\n editor.putInt(\"Ужасы\",14);\n editor.putInt(\"Magic\",16);\n editor.putInt(\"Магия\",16);\n editor.putInt(\"Mecha\",18);\n editor.putInt(\"Меха\",18);\n editor.putInt(\"Parody\",20);\n editor.putInt(\"Пародия\",20);\n editor.putInt(\"Samurai\",21);\n editor.putInt(\"Самураи\",21);\n editor.putInt(\"Romance\",22);\n editor.putInt(\"Романтика\",22);\n editor.putInt(\"School\",23);\n editor.putInt(\"Школа\",23);\n editor.putInt(\"Shoujo\",25);\n editor.putInt(\"Сёдзе\",25);\n editor.putInt(\"Shounen\",27);\n editor.putInt(\"Сёнен\",27);\n editor.putInt(\"Shounen Ai\",28);\n editor.putInt(\"Сёнен Ай\",28);\n editor.putInt(\"Sports\",30);\n editor.putInt(\"Спорт\",30);\n editor.putInt(\"Vampire\",32);\n editor.putInt(\"Вампиры\",32);\n editor.putInt(\"Harem\",35);\n editor.putInt(\"Гарем\",35);\n editor.putInt(\"Slice of Life\",36);\n editor.putInt(\"Повседневность\",36);\n editor.putInt(\"Seinen\",42);\n editor.putInt(\"Сейнен\",42);\n editor.putInt(\"Josei\",43);\n editor.putInt(\"Дзёсей\",43);\n editor.putInt(\"Supernatural\",37);\n editor.putInt(\"Сверхъестественное\",37);\n editor.putInt(\"Thriller\",41);\n editor.putInt(\"Триллер\",41);\n editor.putInt(\"Shoujo Ai\",26);\n editor.putInt(\"Сёдзе Ай\",26);\n editor.putInt(\"Sci-Fi\",24);\n editor.putInt(\"Фантастика\",24);\n editor.putInt(\"Super Power\",31);\n editor.putInt(\"Супер сила\",31);\n editor.putInt(\"Military\",38);\n editor.putInt(\"Военное\",38);\n editor.putInt(\"Mystery\",7);\n editor.putInt(\"Детектив\",7);\n editor.putInt(\"Kids\",15);\n editor.putInt(\"Детское\",15);\n editor.putInt(\"Cars\",3);\n editor.putInt(\"Машины\",3);\n editor.putInt(\"Martial Arts\",17);\n editor.putInt(\"Боевые искусства\",17);\n editor.putInt(\"Dementia\",5);\n editor.putInt(\"Безумие\",5);\n\n editor.apply();\n\n\n\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic static List<HashMap<String, String>> getChoiceGan(String choice) {\n\t\tList<rcmMusicListMain> musicLists = rcmMusicListMain.getAllMusic();\n\t\t\n\t\tList<HashMap<String, String>> aList = new ArrayList<HashMap<String, String>>();\n\t\tHashMap<String, String> aMap = new HashMap<String, String>();\n\t\tHashMap<String, String> bMap = new HashMap<String, String>();\n\t\t\n\t\tmusicLists.stream()\n\t\t\t.filter(musicList -> musicList.getGenre1().equals(choice) \n\t\t\t\t\t|| musicList.getGenre2().equals(choice))\n\t\t\t.sorted((musicList1, musicList2) -> musicList2.getPlayNum() - musicList1.getPlayNum())\n\t\t\t.limit(10).forEach(musicList -> {\n\t\t\t\t\t//System.out.println(musicList.getSeq()+\". \"+musicList.getTitle()+\" : \"+musicList.getSinger());\n\t\t\t\t\taMap.put(\"TITLE\", musicList.getTitle());\n\t\t\t\t\taMap.put(\"ITEM\", musicList.getSinger());\n\t\t\t\t\taList.add((HashMap<String, String>)aMap.clone());\n\t\t\t\t});\n\t\t\n\t\t\n\t\tfor(int i=0; i<aList.size(); i++) {\n\t\t\tbMap = aList.get(i); \n\t\t\tbMap.put(\"SEQ\", i+1+\"\");\n\t\t\tSystem.out.println(bMap.get(\"SEQ\")+\". \"+bMap.get(\"TITLE\")+\" : \"+bMap.get(\"ITEM\"));\n\t\t\t//System.out.println(aList.get(i).get(\"SEQ\")+\". \"+aList.get(i).get(\"TITLE\")+\" : \"+aList.get(i).get(\"ITEM\"));\n\t\t}\n\t\t\n\t\treturn aList; \n\t}",
"public void testGenreSort() {\n sorter.inssortGenre();\n list = sorter.getLibrary();\n assertEquals(list.get(0).getGenre(), \"Hip-Hop\");\n assertEquals(list.get(1).getGenre(), \"R&B\");\n assertEquals(list.get(2).getGenre(), \"Rock\");\n }",
"@Override\n\tpublic String addGenre(Genre songName, Genre songArtist, Genre songBpm, Genre songGenre) {\n\t\treturn null;\n\t}",
"public String getGenreString() {\r\n return genre.getTheBookType();\r\n }",
"boolean hasPictureGenre();",
"@Test\r\n public void testGetGenreMovies() throws MovieDbException {\r\n LOG.info(\"getGenreMovies\");\r\n List<MovieDb> results = tmdb.getGenreMovies(ID_GENRE_ACTION, LANGUAGE_DEFAULT, 0);\r\n assertTrue(\"No genre movies found\", !results.isEmpty());\r\n }",
"public String[] getVariants_ru(int[] randIds){\n Cursor crs;\n String[] variants_ru = new String[4];\n for(int i = 0; i< 4; i++){\n String[] args = new String[1];\n args[0] = Integer.toString(randIds[i]+1);\n crs = aniDB.getReadableDatabase().rawQuery(\"SELECT name_ru FROM titles WHERE id = ?\",args);\n if(crs.moveToFirst()) {\n variants_ru[i] = crs.getString(crs.getColumnIndex(\"name_ru\"));\n }\n crs.close();\n }\n return variants_ru;\n }",
"public final void setGenres(@NonNull final List<Genres> genresParam) {\n this.genres = genresParam;\n }",
"public void onGenreClick(View v) {\n // FIXME: 9ボタンのジャンル一覧ボタン押下時\n AppMeasurementWrapper.getInstance().initialize(getApplication());\n AppMeasurementWrapper.getInstance().storeTransitionSrcPoint(AppEffectClickPointEnum.HOME_GENRE_1);\n this.startGenreListActivity();\n }",
"public List<Film> findAllByGenre(String genre);",
"public String[] getVariants(int[] randIds){\n Cursor crs;\n String[] variants = new String[4];\n for(int i = 0; i< 4; i++){\n String[] args = new String[1];\n args[0] = Integer.toString(randIds[i]+1);\n crs = aniDB.getReadableDatabase().rawQuery(\"SELECT name FROM titles WHERE id = ?\",args);\n if(crs.moveToFirst()) {\n variants[i] = crs.getString(crs.getColumnIndex(\"name\"));\n }\n crs.close();\n }\n return variants;\n }",
"public static void main(String[] args) {\n String fileName = \"voca.html\";\n// String url = \"https://play.google.com/store/search?q=bcs&c=apps\";\n// String url = \"https://play.google.com/store/search?q=vocabulary&c=apps\";\n \n try {\n Document doc = Jsoup.parse(new File(fileName), \"utf-8\");\n Element divTag = doc.getElementById(\"mydiv\");\n Elements elements = divTag.getElementsByClass(\"card no-rationale square-cover apps small\");\n \n//this will print only 50 names\n// Document doc = Jsoup.connect(url).get();\n// Elements elements = doc.getElementsByClass(\"card no-rationale square-cover apps small\");\n \n for (Element element : elements) {\n// System.out.println(x++);\n name_link(element);\n }//for \n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public ObservableList<String> getAllGenres(){\n return allGenres;\n }",
"private static void initializeAllGenresList(){\n\t\tfor(int i = 0; i < 13; i ++){\n\t\t\tALL_GENRES.add(new HashSet<String>());\n\t\t}\n\t}",
"private double getGenreScore(Movie movie) {\n double genreScore = 0;\n\n for (String genre : this.generes) {\n if (movie.getGenre().contains(genre)) {\n genreScore = genreScore + 1;\n }\n }\n return genreScore;\n }",
"private static String getRatingFileName(String genre) {\n if(genre.equalsIgnoreCase(\"Fast Food\")) {\n return \"FastFoodRatings.txt\";\n }\n else if(genre.equalsIgnoreCase(\"Dine-In\")) {\n return \"DineInRatings.txt\";\n }\n else if(genre.equalsIgnoreCase(\"Italian\")) {\n return \"ItalianRatings.txt\";\n }\n else if(genre.equalsIgnoreCase(\"Mexican\")) {\n return \"MexicanRatings.txt\";\n }\n else if(genre.equalsIgnoreCase(\"Chinese\")) {\n return \"ChineseRatings.txt\";\n }\n else if(genre.equalsIgnoreCase(\"Sea Food\")) {\n return \"SeaFoodRatings.txt\";\n }\n else {\n return \"FastFoodRatings.txt\";\n }\n }",
"private static void readBooksInfo() {\n List<eGenre> arrBook = new ArrayList<>();\n\n // 1 //\n arrBook.add(eGenre.FANTASY);\n arrBook.add(eGenre.ADVENTURE);\n book.add(new Book(1200, arrBook, \"Верн Жюль\", \"Таинственный остров\", 1875));\n arrBook.clear();\n // 2 //\n arrBook.add(eGenre.FANTASY);\n arrBook.add(eGenre.MYSTIC);\n book.add(new Book(425, arrBook, \"Григоренко Виталий\", \"Иван-душитель\", 1953));\n arrBook.clear();\n // 3 //\n arrBook.add(eGenre.DETECTIVE);\n arrBook.add(eGenre.MYSTIC);\n book.add(new Book(360, arrBook, \"Сейгер Райли\", \"Последние Девушки\", 1992));\n arrBook.clear();\n // 4 //\n arrBook.add(eGenre.DETECTIVE);\n book.add(new Book(385, arrBook, \"Ольга Володарская\", \"То ли ангел, то ли бес\", 1995));\n arrBook.clear();\n // 5 //\n arrBook.add(eGenre.NOVEL);\n arrBook.add(eGenre.ACTION);\n book.add(new Book(180, arrBook, \"Лихэйн Деннис\", \"Закон ночи\", 1944));\n arrBook.clear();\n // 6 //\n arrBook.add(eGenre.NOVEL);\n book.add(new Book(224, arrBook, \"Мураками Харуки\", \"Страна Чудес без тормозов и Конец Света\", 1985));\n arrBook.clear();\n // 7 //\n arrBook.add(eGenre.STORY);\n book.add(new Book(1200, arrBook, \"Джон Хейвуд\", \"Люди Севера: История викингов, 793–1241\", 2017));\n arrBook.clear();\n // 8 //\n arrBook.add(eGenre.ACTION);\n arrBook.add(eGenre.MYSTIC);\n arrBook.add(eGenre.DETECTIVE);\n book.add(new Book(415, arrBook, \"Линдквист Юн\", \"Впусти меня\", 2017));\n arrBook.clear();\n // 9 //\n arrBook.add(eGenre.ACTION);\n book.add(new Book(202, arrBook, \"Сухов Евгений\", \"Таежная месть\", 2016));\n arrBook.clear();\n // 10 //\n arrBook.add(eGenre.DETECTIVE);\n arrBook.add(eGenre.MYSTIC);\n book.add(new Book(231, arrBook, \"Винд Кристиан\", \"Призраки глубин\", 2019));\n arrBook.clear();\n }",
"public TheatreGenre getGenre() {\n\t\treturn genre;\n\t}",
"public BookType getGenre() {\r\n return genre;\r\n }",
"Builder addGenre(Text value);",
"public static void main(String[] args) throws IOException {\n Document doc = Jsoup.connect(\"http://www.gewara.com/movie/searchCinema.xhtml?countycode=310115\").userAgent(\"Mozilla\").get();\n\n\n System.out.println(doc);\n\n\n Elements links = doc.select(\"a[href^=/movie][target=_blank][class=color3]\");\n// Document doc = Jsoup.connect(\"http://example.com\")\n// .data(\"query\", \"Java\")\n// .userAgent(\"Mozilla\")\n// .cookie(\"auth\", \"token\")\n// .timeout(3000)\n// .post();\n\n {\n// Element link = doc.select(\"a\").first();\n// String relHref = link.attr(\"href\"); // == \"/\"\n// String absHref = link.attr(\"abs:href\"); // \"http://www.open-open.com/\"\n//\n// System.out.println(relHref);\n// System.out.println(absHref);\n }\n\n\n// Element element = doc.select(\"div.chooseOpi_body\").first();\n// Elements lis = element.select(\"li\");\n//\n//\n// for (Element li : lis) {\n//\n// Movie movie = new Movie();\n// movie.setStartTime(li.select(\"span.opitime\").first().child(0).text());\n// movie.setPrice(li.select(\"span.opiPrice\").first().child(0).text());\n//// if (li.select(\"span.opiSales\").first() != null){\n//// movie.setSale(li.select(\"span.opiSales\").first().tagName(\"b\").child(1).text() +li.select(\"span.opiSales\").first().tagName(\"b\").child(1).text());\n//// }\n// System.out.println(movie.toString());\n// }\n\n\n }",
"private static int getGenreIndex(String genre){\n\t\tint index = -1;\n\t\tif(genre.equalsIgnoreCase(\"biology\"))\n\t\t\tindex = 0;\n\t\telse if(genre.equalsIgnoreCase(\"mathematics\"))\n\t\t\tindex = 1;\n\t\telse if(genre.equalsIgnoreCase(\"chemistry\"))\n\t\t\tindex = 2;\n\t\telse if(genre.equalsIgnoreCase(\"physics\"))\n\t\t\tindex = 3;\n\t\telse if(genre.equalsIgnoreCase(\"science_fiction\"))\n\t\t\tindex = 4;\n\t\telse if(genre.equalsIgnoreCase(\"fantasy\"))\n\t\t\tindex = 5;\n\t\telse if(genre.equalsIgnoreCase(\"action\"))\n\t\t\tindex = 6;\n\t\telse if(genre.equalsIgnoreCase(\"drama\"))\n\t\t\tindex = 7;\n\t\telse if(genre.equalsIgnoreCase(\"romance\"))\n\t\t\tindex = 8;\n\t\telse if(genre.equalsIgnoreCase(\"horror\"))\n\t\t\tindex = 9;\n\t\telse if(genre.equalsIgnoreCase(\"history\"))\n\t\t\tindex = 10;\n\t\telse if(genre.equalsIgnoreCase(\"autobiography\"))\n\t\t\tindex = 11;\n\t\telse if(genre.equalsIgnoreCase(\"biography\"))\n\t\t\tindex = 12;\n\t\telse{\n\t\t\tSystem.out.println(\"Invalid Genre Input: Genre entered was invalid\");\n\t\t}\n\t\treturn index;\n\t}",
"protected float[] getGenes() {\n\t\t\treturn genes;\n\t\t}",
"public String getGenreName(int g) {\n this.connect();\n String sqlGenre = \"SELECT genreType FROM genres WHERE genreID = ?\";\n String genreName = \"\";\n\n try (Connection conn = this.getConnection();\n PreparedStatement genre = conn.prepareStatement(sqlGenre)) {\n genre.setInt(1,g);\n ResultSet rsG = genre.executeQuery();\n //gets genreID\n if (rsG.next()) {\n genreName = rsG.getString(\"genreType\");\n } else {\n System.out.println(\"Genre not in database!\");\n }\n } catch(SQLException e) {\n System.out.println(e.getMessage());\n }\n return genreName;\n }",
"Builder addGenre(String value);",
"public void testGetGenre()\r\n {\r\n assertTrue(genre.equals(song.getGenre()));\r\n }",
"public void printAverageRatingsByGenre(){\n \n String moviefile = \"data/ratedmovies_short.csv\";\n String ratingsfile = \"data/ratings_short.csv\";\n \n \n ThirdRatings tr = new ThirdRatings(ratingsfile);\n \n int rating_size = tr.getRaterSize();\n \n System.out.println(\"The number of raters read is : \"+ rating_size);\n \n MovieDatabase database = new MovieDatabase();\n \n database.initialize(moviefile);\n \n int movie_size = database.size();\n \n System.out.println(\"The number of movies read is : \"+ movie_size); \n \n String genre = \"Crime\";\n \n GenreFilter genre_filter = new GenreFilter(genre);\n \n ArrayList<Rating> ratings_list = tr.getAverageRatingsByFilter(1, genre_filter);\n \n HashMap<String, Double> map = new HashMap<String, Double>();\n \n Collections.sort(ratings_list);\n \n int count = 0; \n \n for(Rating rating : ratings_list){\n \n String title = database.getTitle(rating.getItem());\n \n double val = rating.getValue();\n \n String mov_genre = database.getGenres(rating.getItem());\n \n if(val != 0.0 ){\n \n map.put(title , val);\n \n count += 1;\n\n System.out.println(val + \"\\t\" + mov_genre + \"\\t\" +title );\n }\n\n }\n \n System.out.println(\"The number of movies found with minimal number of ratings is : \"+ count); \n \n \n }",
"@Override\n\tpublic List<Movie> searchMovieByGen(String genere) {\n\t\tString sql=\"Select * from movie where GENERE='\"+genere+\"'\";\n\t\tJdbcTemplate jdbcTemplate=JdbcTemplateFactory.getJdbcTemplate();\n\t\tList<Movie> genMList=jdbcTemplate.query(sql, new MovieRowMapper());\n\t\tif(genMList==null||genMList.isEmpty()){\n\t\t\treturn null;\n\t\t}\n\t\treturn genMList;\n\t}",
"ImmutableList<SchemaOrgType> getGenreList();",
"public static JSONArray getGenreCollection(String search){\n\t\tJSONArray genreStations = JSON.getJArray(radioStationCollections, search);\n\t\tif (genreStations != null){\n\t\t\tJSONArray genreStationFirstEntries = new JSONArray();\n\t\t\tfor (Object ao : genreStations){\n\t\t\t\tString normalizedStationName = (String) ao;\n\t\t\t\tJSONArray entry = JSON.getJArray(radioStationsMap, normalizedStationName);\n\t\t\t\tif (Is.notNullOrEmpty(entry)){\n\t\t\t\t\tJSON.add(genreStationFirstEntries, entry.get(0));\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn genreStationFirstEntries;\n\t\t}else{\n\t\t\treturn new JSONArray();\n\t\t}\n\t\t//TODO: we could add some fancy fuzzy search here too ...\n\t}",
"@SuppressWarnings(\"unchecked\")\n\t@Cacheable(value=API_GENRES, key=\"{#type, #id}\")\n public List<ApiGenreDTO> getGenresForMetadata(MetaDataType type, Long id) {\n return currentSession().getNamedQuery(\"metadata.genre.\"+type.name().toLowerCase()).setParameter(LITERAL_ID, id).list();\n }",
"private static void idVorhanden() {\n\t\tLinkedHashSet<String> genre = new LinkedHashSet<String>();\t\t\t// benötigt, um duplikate von genres zu entfernen\n\t\tLinkedHashSet<String> darsteller = new LinkedHashSet<String>();\t\t// benötigt, um duplikate von darstellern zu entfernen\n\t\tString kinofilm = \"\";\t\t\t\t\t\t\t\t\t\t\t\t// benötigt für die Ausgabe des Filmtitels und Jahr\n\t\t\n\t\tsetSql(\"SELECT g.GENRE, m.TITLE, m.YEAR, mc.CHARACTER, p.NAME from Movie m JOIN MOVgen MG ON MG.MOVIEID = M.MOVIEID right JOIN GENRE G ON MG.GENREID = G.GENREID\\n\"\n\t\t\t\t\t+ \"\t\t\t\tright JOIN MOVIECHARACTER MC ON M.MOVIEID = MC.MOVIEID JOIN PERSON P ON MC.PERSONID = P.PERSONID\\n\"\n\t\t\t\t\t+ \"\t\t\t\tWHERE M.MOVIEID = \" + movieID);\t// SQL Abfrage, um Genre, Title, Year, Character und Name eines Films zu bekommen\n\t\t\n\t\tsqlAbfrage();\t\t\t\t\t\t\t\t\t// SQL Abfrage ausführen und Ergebnis im ResultSet speichern\n\t\t\n\t\ttry {\n\t\t\n\t\t\tif(!rs.next()) {\t\t\t\t\t\t\t// prüfe, ob das ResultSet leer ist\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"MovieID ungültig. Bitte eine der folgenden MovieID's angeben: \"); // Meldung ausgeben, dass ID ungültig ist\n\t\t\t\tidProblem();\t\t\t\t\t\t\t// wenn movieID nicht vorhanden, führe idProblem() aus, um mögliche Filme anzuzeigen\n\t\t\t} else {\n\t\t\t\trs.isBeforeFirst();\t\t\t\t\t\t// Durch die if-Abfrage springt der Cursor des ResultSets einen weiter und muss zurück auf die erste Stelle\n\t\t\t\twhile (rs.next()) {\t\t\t\t\t\t// Zeilenweises durchgehen des ResultSets \"rs\"\n\t\t\t\t\t/*\n\t\t\t\t\t * Aufbau des ResultSets \"rs\":\n\t\t\t\t\t * eine oder mehrere Zeilen mit folgenden Spalten:\n\t\t\t\t\t * GENRE | TITLE | YEAR | CHARACTER | NAME\n\t\t\t\t\t * (1) (2) (3) (4) (5)\n\t\t\t\t\t */\n\t\t\t\t\tgenre.add(rs.getString(1));\t\t\t\t\t\t\t\t\t\t\t// speichern und entfernen der Duplikate der Genres in \"genre\"\n\t\t\t\t\tkinofilm = (rs.getString(2) + \" (\" + rs.getString(3) + \")\");\t\t// Speichern des Filmtitels und des Jahrs in \"kinolfilm\"\n\t\t\t\t\tdarsteller.add(rs.getString(4) + \": \" + rs.getString(5));\t\t\t// speichern und entfernen der Duplikate der Darsteller in \"darsteller\"\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\t * Zur besseres Ausgabe, werden die LinkedHashSets in ArrayLists übertragen\n\t\t\t\t * Grund: Es ist nicht möglich auf einzelne, bestimmte Elemente des HashSets zuzugreifen.\n\t\t\t\t * Bedeutet: HashSet.get(2) existiert nicht, ArrayList.get(2) existiert.\n\t\t\t\t */\n\t\t\t\tArrayList<String> genreArrayList = new ArrayList<String>();\n\t\t\t\t\tfor (String s : genre) {\n\t\t\t\t\t\tgenreArrayList.add(s);\n\t\t\t\t\t}\n\n\t\t\t\tArrayList<String> darstellerArrayList = new ArrayList<String>();\n\t\t\t\t\tfor (String s : darsteller) {\n\t\t\t\t\t\tdarstellerArrayList.add(s);\n\t\t\t\t\t}\n\n\t\t\t\t\t\t\t/*\n\t\t\t\t\t\t\t * Ausgabe der Kinofilm Daten nach vorgegebenen Format:\n\t\t\t\t\t\t\t * \n\t\t\t\t\t\t\t * Kinofilm: Filmtitel (Year)\n\t\t\t\t\t\t\t * Genre: ... | ... | ..\n\t\t\t\t\t\t\t * Darsteller:\n\t\t\t\t\t\t\t * Character: Name\n\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\tSystem.out.println();\t\t\t\t\t\t\t\t// erzeugt Leerzeile\n\t\t\t\t\t\t\tSystem.out.println(\"Kinofilme: \" + kinofilm);\t\t// Ausgabe: Kinofilm: Filmtitel (Year)\n\t\t\t\t\t\t\tSystem.out.print(\"Genre: \" + genreArrayList.get(0)); // Ausgabe des ersten Genres, vermeidung des Zaunpfahlproblems\n\n\t\t\t\t\t\t\tfor (int i = 1; i < genreArrayList.size(); i++) {\t\t// Ausgabe weiterer Genres, solange es weitere Einträge in\t\n\t\t\t\t\t\t\t\tSystem.out.print(\" | \" + genreArrayList.get(i)); \t// der ArrayList \"genreArrayList\" gibt\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tSystem.out.println();\t\t\t\t\t\t\t\t// erzeugt Leerzeile\n\t\t\t\t\t\t\tSystem.out.println(\"Darsteller:\");\t\t\t\t\t// Ausgabe: Darsteller:\n\t\t\t\t\t\t\tfor (int i = 0; i < darstellerArrayList.size(); i++) {\t// Ausgabe der Darsteller, solange es\n\t\t\t\t\t\t\t\tSystem.out.println(\" \" + darstellerArrayList.get(i));\t// Darsteller in der \"darstellerArrayList\" gibt\n\t\t\t\t\t\t\t}\t\t\t\n\t\t\t}\n\t\t\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\tSystem.out.println(e); // Ausgabe Fehlermeldung\n\t\t}\n\t}",
"public void setGenus(String genus) {\n this.genus = genus;\n }",
"@Test(groups = \"suite1-1\")\n\tpublic void browseItems() {\n\n\t\tWebElement treasuryLink = driver.findElement(By\n\t\t\t\t.linkText(TREASURY_LINK_TEXT));\n\t\ttreasuryLink.click();\n\n\t\tWebDriverWait wait = new WebDriverWait(driver, 10);\n\n\t\t// Find the button to do the search inside treasury objects\n\t\tWebElement searchButton = wait\n\t\t\t\t.until(ExpectedConditions.elementToBeClickable(By\n\t\t\t\t\t\t.xpath(\"/HTML/BODY/DIV[@id=\\\"content\\\"]/DIV[2]/DIV[@id=\\\"listings-header\\\"]/FORM/SPAN/SPAN/INPUT\")));\n\n\t\t// Find the text input field to do the search\n\t\tWebElement searchField = driver\n\t\t\t\t.findElement(By\n\t\t\t\t\t\t.xpath(\"/HTML/BODY/DIV[@id=\\\"content\\\"]/DIV[2]/DIV[@id=\\\"listings-header\\\"]/FORM/INPUT[@name=\\\"search_query\\\"]\"));\n\t\t// Search key\n\t\tsearchField.sendKeys(\"bag\");\n\n\t\tsearchButton.click();\n\n\t\tWebElement numResults = driver.findElement(By\n\t\t\t\t.xpath(\"/HTML/BODY/DIV[@id=\\\"content\\\"]/DIV[1]/H1\"));\n\n\t\tassertNotEquals(numResults.getText().trim().substring(0, 1), \"0\",\n\t\t\t\t\"Results expected for given key\");\n\n\t\tWebElement gallery = wait\n\t\t\t\t.until(ExpectedConditions.elementToBeClickable(By\n\t\t\t\t\t\t.xpath(\"/HTML/BODY/DIV[@id=\\\"content\\\"]/DIV[2]/DIV[2]/UL/LI[1]/DIV[4]/A[1]/IMG\")));\n\t\t// Click should be done without errors\n\t\tgallery.click();\n\n\t}",
"public void addGenreAction()\n\t{\n\t\tViewNavigator.loadScene(\"Add Genre\", ViewNavigator.ADD_GENRE_SCENE);\n\t}",
"@Step\n public void verifyGenresForAuthor(Genre genre, Genre genre2, Response response) {\n LOG.info(String.format(\"Find all genres for Author\"));\n Assert.assertTrue(genreService.getGenresAfterResponse(response, genre, genre2));\n }",
"public void obtenerDataGenres(JSONObject response) {\n try {\n //Obtener atributo estado\n String estado = response.getString(Constantes.ESTADO);\n switch (estado) {\n case Constantes.SUCCESS:\n List<String> idList = new ArrayList<>();\n genres = new HashMap<>();\n JSONArray retorno = response.getJSONArray(\"genres\");\n //Iniciar Adaptador\n for (int i = 0; i < retorno.length(); i++) {\n JSONObject jb1 = retorno.getJSONObject(i);\n genres.put(jb1.getString(\"description\"), jb1.getString(\"id\"));\n\n }\n idList.addAll(genres.keySet());\n ArrayAdapter<String> dataAdapter = new ArrayAdapter<String>(getActivity(),\n android.R.layout.simple_spinner_item, idList);\n dataAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n sp_genre_upd.setAdapter(dataAdapter);\n sp_genre_upd.setOnItemSelectedListener(this);\n break;\n case Constantes.FAILED:\n String mensaje = response.getString(Constantes.MENSAJE);\n Toast.makeText(getActivity().getApplicationContext(), mensaje, Toast.LENGTH_SHORT).show();\n /*guardar.setEnabled(false);*/\n break;\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }",
"public ReactorResult<org.ontoware.rdfreactor.schema.rdfs.Resource> getAllOfficialArtistWebpage_as() {\r\n\t\treturn Base.getAll_as(this.model, this.getResource(), OFFICIALARTISTWEBPAGE, org.ontoware.rdfreactor.schema.rdfs.Resource.class);\r\n\t}",
"public Callback resGenreTvShows() {\n return new Callback<Genre.GenreResults>() {\n @Override\n public void onResponse(Call<Genre.GenreResults> call, Response<Genre.GenreResults> response) {\n if (response.isSuccessful()) {\n GerneList.setGenreTvList(response.body().getResults());\n\n }\n }\n\n @Override\n public void onFailure(Call<Genre.GenreResults> call, Throwable t) {\n\n }\n };\n }",
"public static String[] albumResults(String name, String artist){\n WebClient webClient = new WebClient(BrowserVersion.FIREFOX_17);\n webClient.getOptions().setTimeout(120000);\n webClient.waitForBackgroundJavaScript(60000);\n webClient.getOptions().setRedirectEnabled(true);\n webClient.getOptions().setJavaScriptEnabled(true);\n webClient.getOptions().setThrowExceptionOnFailingStatusCode(false);\n webClient.getOptions().setThrowExceptionOnScriptError(false);\n webClient.getOptions().setCssEnabled(false);\n webClient.getOptions().setUseInsecureSSL(true);\n webClient.setAjaxController(new NicelyResynchronizingAjaxController());\n \n XmlPage xml = null;\n try{\n xml = webClient.getPage(\"http://ws.audioscrobbler.com/2.0/?method=track.getInfo&artist=\"+artist+\"&track=\"+name+\"&api_key=dd37652a477e74f92d58b48835b9f314\");\n //System.out.println(xml.asXml());\n } catch (Exception e){\n e.printStackTrace();\n }\n \n String album = \"\"; \n try{\n BufferedReader in = new BufferedReader(new StringReader(xml.asXml()));\n\n String line = \"\";\n String lastline = \"\"; \n\n while((line = in.readLine())!=null){ //iterate through each line \n if(lastline.trim().contains(\"<title>\")){ //get title of album\n System.out.println(line.trim().replace(\"&\",\"&\")); \n album = line.trim().replace(\"&\",\"&\");\n }\n lastline = line;\n }\n } catch (Exception e){\n e.printStackTrace();\n }\n \n //////////////////////Get album image and release date\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\n try{\n xml = webClient.getPage(\"http://ws.audioscrobbler.com/2.0/?method=album.getInfo&artist=\"+artist+\"&album=\"+album+\"&limit=100&api_key=dd37652a477e74f92d58b48835b9f314\");\n //System.out.println(xml.asXml());\n } catch (Exception e){\n e.printStackTrace();\n }\n \n String releasedate = \"\";\n String imageURL = \"\";\n \n try{\n BufferedReader in = new BufferedReader(new StringReader(xml.asXml()));\n\n String line = \"\";\n String lastline = \"\"; \n \n while((line = in.readLine())!=null){ //iterate through each line \n if(lastline.trim().contains(\"<image size=\\\"extralarge\\\">\")){ //get album image\n System.out.println(line.trim()); \n imageURL = line.trim();\n saveImage(imageURL,\"..\\\\Album Art\\\\\"+FileNameCleaner.cleanFileName(album)+\".png\");\n }\n if(lastline.trim().contains(\"<releasedate>\")){ //get album release date\n if(!line.contains(\"</releasedate>\")){ //if there is date\n System.out.println(line.trim().replace(\", 00:00\", \"\"));\n releasedate = line.trim().replace(\", 00:00\", \"\");\n } else { //otherwise put nothing\n releasedate = \"\";\n }\n } \n lastline = line;\n }\n } catch (Exception e){\n e.printStackTrace();\n } \n String[] results = {album,releasedate,\"..\\\\Album Art\\\\\"+FileNameCleaner.cleanFileName(album)+\".png\"};\n return results;\n }",
"private static void addToGenreTable(BookDetails book, String bookTitle) {\n\t\t//ALL_GENRES representation --> Biology|Mathematics|Chemistry|Physics|Science_Fiction|Fantasy|Action|Drama|Romance|Horror|History|Autobiography|Biography \n\t\tswitch(book.getGenre()){\n\t\t\tcase Biology:\n\t\t\t\tALL_GENRES.get(0).add(bookTitle);\n\t\t\t\tbreak;\n\t\t\tcase Mathematics:\n\t\t\t\tALL_GENRES.get(1).add(bookTitle);\n\t\t\t\tbreak;\n\t\t\tcase Chemistry:\n\t\t\t\tALL_GENRES.get(2).add(bookTitle);\n\t\t\t\tbreak;\n\t\t\tcase Physics:\n\t\t\t\tALL_GENRES.get(3).add(bookTitle);\n\t\t\t\tbreak;\n\t\t\tcase Science_Fiction:\n\t\t\t\tALL_GENRES.get(4).add(bookTitle);\n\t\t\t\tbreak;\n\t\t\tcase Fantasy:\n\t\t\t\tALL_GENRES.get(5).add(bookTitle);\n\t\t\t\tbreak;\n\t\t\tcase Action:\n\t\t\t\tALL_GENRES.get(6).add(bookTitle);\n\t\t\t\tbreak;\n\t\t\tcase Drama:\n\t\t\t\tALL_GENRES.get(7).add(bookTitle);\n\t\t\t\tbreak;\n\t\t\tcase Romance:\n\t\t\t\tALL_GENRES.get(8).add(bookTitle);\n\t\t\t\tbreak;\n\t\t\tcase Horror:\n\t\t\t\tALL_GENRES.get(9).add(bookTitle);\n\t\t\t\tbreak;\n\t\t\tcase History:\n\t\t\t\tALL_GENRES.get(10).add(bookTitle);\n\t\t\t\tbreak;\n\t\t\tcase Autobiography:\n\t\t\t\tALL_GENRES.get(11).add(bookTitle);\n\t\t\t\tbreak;\n\t\t\tcase Biography:\n\t\t\t\tALL_GENRES.get(12).add(bookTitle);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tSystem.out.println(\"ERROR: Invalid Genre Input\");\n\t\t\t\tbreak;\n\t\t}\n\t}",
"public Callback resGenreMovie() {\n return new Callback<Genre.GenreResults>() {\n @Override\n public void onResponse(Call<Genre.GenreResults> call, Response<Genre.GenreResults> response) {\n if (response.isSuccessful()) {\n GerneList.setGenreMovieList(response.body().getResults());\n }\n }\n\n @Override\n public void onFailure(Call<Genre.GenreResults> call, Throwable t) {\n\n\n }\n };\n\n }",
"public int getGenreID(String gen) {\n this.connect();\n String sqlGenre = \"SELECT genreID FROM genres WHERE genres.genreType = ?\";\n int genID = 0;\n\n try (Connection conn = this.getConnection();\n PreparedStatement genre = conn.prepareStatement(sqlGenre)) {\n genre.setString(1,gen);\n ResultSet rsG = genre.executeQuery();\n //gets genreID\n if (rsG.next()) {\n genID = rsG.getInt(\"genreID\");\n } else {\n System.out.println(\"Genre not in database!\");\n genID = addGenre(gen);\n }\n } catch(SQLException e) {\n System.out.println(e.getMessage());\n }\n return genID;\n }",
"private static List<String> getGenOneChaos(Connection conn) {\n\t\tList<String> genOneNames = new ArrayList<String>();\n\t\tString sqlQuery = \"SELECT name FROM Chao WHERE generation = 1;\";\n\t\tResultSet rs = SQLManager.queryFromDB(conn, sqlQuery); \n\t\ttry {\n\t\t\twhile (rs.next()) {\n\t\t\t\tgenOneNames.add(rs.getString(1));\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn genOneNames;\n\t}",
"public lanyotech.cn.park.protoc.CommonProtoc.PARKINGPICTURE getPictureGenre() {\n return pictureGenre_;\n }",
"static String[] getMovieTitles(String substr) throws IOException {\n String[] arr = new String[10];\n StringBuilder result = new StringBuilder();\n URL url = null;\n url = new URL(\"https://jsonmock.hackerrank.com/api/movies/search/?Title=\" + substr);\n HttpURLConnection conn = (HttpURLConnection) url.openConnection();\n conn.setRequestMethod(\"GET\");\n BufferedReader rd = new BufferedReader(new InputStreamReader(conn.getInputStream()));\n String line;\n while ((line = rd.readLine()) != null) {\n result.append(line);\n }\n rd.close();\n\n System.out.println(result);\n\n return arr;\n }",
"private ArrayList<Pelicula> busquedaPorGenero(ArrayList<Pelicula> peliculas, String genero){\r\n\r\n ArrayList<Pelicula> peliculasPorGenero = new ArrayList<>();\r\n\r\n\r\n\r\n for(Pelicula unaPelicula:peliculas){\r\n\r\n if(unaPelicula.getGenre().contains(genero)){\r\n\r\n peliculasPorGenero.add(unaPelicula);\r\n }\r\n }\r\n\r\n return peliculasPorGenero;\r\n }",
"List<String> getFavoriteRecipeTitle();",
"public void setGenre(TheatreGenre genre) {\n\t\tthis.genre = genre;\n\t}"
] | [
"0.6643085",
"0.6533942",
"0.6395997",
"0.6387713",
"0.63858885",
"0.6323969",
"0.6169138",
"0.6167267",
"0.615765",
"0.615641",
"0.61303926",
"0.6119459",
"0.61013055",
"0.60755616",
"0.6019702",
"0.6019702",
"0.5967501",
"0.59671414",
"0.5958728",
"0.5935913",
"0.5933908",
"0.5911402",
"0.5892643",
"0.5887831",
"0.58777773",
"0.58777773",
"0.58567715",
"0.585093",
"0.5828824",
"0.5816627",
"0.5809347",
"0.58087206",
"0.5807615",
"0.5794132",
"0.577745",
"0.57588685",
"0.5750691",
"0.5748676",
"0.5748231",
"0.5742649",
"0.56745213",
"0.56700015",
"0.56700015",
"0.56477773",
"0.56207633",
"0.5602847",
"0.5600051",
"0.5598576",
"0.5592951",
"0.55335224",
"0.55327785",
"0.55316573",
"0.5531497",
"0.5528278",
"0.5515919",
"0.5502407",
"0.5499664",
"0.5468908",
"0.54532576",
"0.5447088",
"0.5437142",
"0.543077",
"0.5425368",
"0.5424014",
"0.5422386",
"0.5407758",
"0.5397795",
"0.53887993",
"0.53867936",
"0.5374345",
"0.53332347",
"0.5326546",
"0.5313098",
"0.53089744",
"0.5299227",
"0.5286988",
"0.5283563",
"0.5276775",
"0.5269776",
"0.52613825",
"0.52491355",
"0.5246033",
"0.52397543",
"0.5238229",
"0.5237137",
"0.5234562",
"0.5198314",
"0.5186161",
"0.5174713",
"0.51538867",
"0.5142055",
"0.5131944",
"0.51285946",
"0.5115294",
"0.5115043",
"0.5114778",
"0.5109956",
"0.5105135",
"0.50845695",
"0.5052741"
] | 0.66172516 | 1 |
get saved language from preferences | public static String getSavedLanguage(Context context) {
return getPreferences(context).getString("app-language", null);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static String getlanguage(Context ctx) {\n\t\treturn getSharedPreferences(ctx).getString(language, \"\");\n\t}",
"protected String getLang(SharedPreferences prefs, Resources res) {\n Intent intent = getIntent();\n if (intent != null) {\n String lang = intent.getStringExtra(RecognizerIntent.EXTRA_LANGUAGE);\n if (lang != null) {\n return lang;\n }\n }\n return PreferenceUtils.getPrefString(prefs, res, R.string.keyLanguage, R.string.defaultLanguage);\n }",
"String getLanguage();",
"String getLanguage();",
"String getLanguage();",
"java.lang.String getLanguage();",
"java.lang.String getLanguage();",
"public String getPrimaryLanguage(){\n return sharedPreferences.getString(PRIMARY_LANGUAGE, \"LANG_NOT_FOUND\");\n }",
"String getLang();",
"public String getLanguage();",
"public String getSecondaryLanguage(){\n return sharedPreferences.getString(SECONDARY_LANGUAGE, \"LANG_NOT_FOUND\");\n }",
"public String getCurrentLanguage() {\n return getStringData(Key.APP_CURRENT_LANGUAGE + \"\", \"zh\");\n }",
"public String getLanguage()\r\n\t{\r\n\t\treturn (String) queryParams.get(AUTH_LANGUAGE);\r\n\t}",
"public static String getLanguage() {\n return language;\n }",
"String getLocalization();",
"public String getLanguageKey();",
"private void loadLocale() {\n\t\tSharedPreferences sharedpreferences = this.getSharedPreferences(\"CommonPrefs\", Context.MODE_PRIVATE);\n\t\tString lang = sharedpreferences.getString(\"Language\", \"en\");\n\t\tSystem.out.println(\"Default lang: \"+lang);\n\t\tif(lang.equalsIgnoreCase(\"ar\"))\n\t\t{\n\t\t\tmyLocale = new Locale(lang);\n\t\t\tsaveLocale(lang);\n\t\t\tLocale.setDefault(myLocale);\n\t\t\tandroid.content.res.Configuration config = new android.content.res.Configuration();\n\t\t\tconfig.locale = myLocale;\n\t\t\tthis.getBaseContext().getResources().updateConfiguration(config, this.getBaseContext().getResources().getDisplayMetrics());\n\t\t\tCommonFunctions.lang = \"ar\";\n\t\t}\n\t\telse{\n\t\t\tmyLocale = new Locale(lang);\n\t\t\tsaveLocale(lang);\n\t\t\tLocale.setDefault(myLocale);\n\t\t\tandroid.content.res.Configuration config = new android.content.res.Configuration();\n\t\t\tconfig.locale = myLocale;\n\t\t\tthis.getBaseContext().getResources().updateConfiguration(config, this.getBaseContext().getResources().getDisplayMetrics());\n\t\t\tCommonFunctions.lang = \"en\";\n\t\t}\n\t}",
"CLanguage getClanguage();",
"public String getPreferredLanguage()\n {\n if (lsData == null)\n return null;\n else\n return lsData.language;\n }",
"public java.lang.String getLanguage()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(LANGUAGE$14);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }",
"public java.lang.String getLanguage()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(LANGUAGE$14);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }",
"public String getLanguage() {\n return languageProperty.get();\n }",
"public String getLanguage()\n {\n return mLanguage;\n }",
"public String returnLanguage() {\n\t\treturn this.registration_language.getAttribute(\"value\");\r\n\t}",
"public void loadLocale() {\n\n\t\tSystem.out.println(\"Murtuza_Nalawala\");\n\t\tString langPref = \"Language\";\n\t\tSharedPreferences prefs = getSharedPreferences(\"CommonPrefs\",\n\t\t\t\tActivity.MODE_PRIVATE);\n\t\tString language = prefs.getString(langPref, \"\");\n\t\tSystem.out.println(\"Murtuza_Nalawala_language\" + language);\n\n\t\tchangeLang(language);\n\t}",
"public String getLang() {\n return lang;\n }",
"public String getLanguage() {\r\n return language;\r\n }",
"public String getLanguage() {\n return language;\n }",
"public String getLanguage() {\n return language;\n }",
"Optional<Locale> getLanguage();",
"public java.lang.String getLanguage() {\n return language;\n }",
"public java.lang.String getLanguage() {\n return language;\n }",
"com.google.protobuf.ByteString\n getLanguageBytes();",
"public String getUserLangage() {\n return sessionData.getUserLanguage();\n }",
"public String getLanguage()\n\t{\n\t\treturn language;\n\t}",
"public String getLanguage() {\n return _language;\n }",
"public static String getCurrentLanguage() {\n\t\tif ( currentLanguage == null || currentLanguage.isEmpty() ) {\r\n\t\t\tcurrentLanguage = Locale.getDefault().getLanguage();\r\n\t\t}\r\n\t\treturn currentLanguage;\r\n\t}",
"@Override\n protected String[] onGetLanguage() {\n return mCurrentLanguage;\n }",
"com.google.protobuf.ByteString\n getLanguageBytes();",
"public Object language() {\n return this.language;\n }",
"com.google.protobuf.ByteString\n getLanguageBytes();",
"private Language askForLanguage() {\r\n // Build a message\r\n String message = \"Which language ? \\n\";\r\n for (int i = 0; i < listLanguages.size(); i++) {\r\n message += \"\\t\" + i + \"\\\\ \" + listLanguages.get(i).getName() + \"\\n\";\r\n }\r\n // Ask for number and get the correct Language\r\n return listLanguages.get(new Integer(askForLine(message)));\r\n }",
"public String[] getLanguage() {\n return mSelf.getLanguage();\n }",
"public String getLanguage() {\n return this.language;\n }",
"public Future<String> getLanguage() throws DynamicCallException, ExecutionException {\n return call(\"getLanguage\");\n }",
"public boolean isLanguageSaved(){\n return sharedPreferences.contains(PRIMARY_LANGUAGE) && sharedPreferences.contains(SECONDARY_LANGUAGE);\n }",
"public static SupportedLanguage getLang() {\n\t\tif (SINGLETON == null) {\n\t\t\tSINGLETON = new I18nHelper();\n\t\t}\n\t\treturn SINGLETON.getAndroidLang();\n\t}",
"public java.lang.String getLang()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(LANG$28);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }",
"public Language getLanguage() {\r\n\t\t\treturn lang;\r\n\t\t}",
"@java.lang.Override\n public java.lang.String getLanguage() {\n java.lang.Object ref = language_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n language_ = s;\n }\n return s;\n }\n }",
"public java.lang.String getLanguage() {\n java.lang.Object ref = language_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n language_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"@AutoEscape\n\tpublic String getLanguage();",
"public Language getLanguage() {\n return this.language;\n }",
"private String getSystemLanguage() {\n String language;\n if (System.getProperty(COUNTRY) == null) {\n language = System.getProperty(LANGUAGE);\n } else {\n language = System.getProperty(LANGUAGE) + \"-\"\n + System.getProperty(COUNTRY).toLowerCase(Locale.ENGLISH);\n }\n return language;\n }",
"public String getLanguage() throws DynamicCallException, ExecutionException {\n return (String)call(\"getLanguage\").get();\n }",
"public String getLanguage() {\n\t\treturn language;\n\t}",
"public String getLanguage() {\n\t\treturn language;\n\t}",
"@Override\n public String getLanguage() {\n Object ref = language_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n language_ = s;\n return s;\n }\n }",
"public String getLanguage() {\n\t\treturn this.language;\n\t}",
"public Language getLanguage() {\n return this.language;\n }",
"public LanguageCode getLanguage() {\n return language;\n }",
"public void prepareLang(){\n\n SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this);\n\n // first time in this page, no settings yet.\n if(!sharedPreferences.contains(studySetId+\":front:\"+studySetSupportedLanguages[0])){\n lang1 = studySetSupportedLanguages[0];\n lang2 = studySetSupportedLanguages[1];\n return ;\n }\n\n // 2nd time+\n for(String lang :studySetSupportedLanguages){\n if(sharedPreferences.getBoolean(studySetId+\":front:\"+lang, false)) lang1 = lang;\n if(sharedPreferences.getBoolean(studySetId+\":back:\"+lang, false)) lang2 = lang;\n }\n }",
"@Override\n\tpublic String toString() {\n\t\treturn \"Preferences [\" + \"language=\" + language +\"]\" ;\n\t}",
"public static String getAppLanguage() {\n return Locale.getDefault().getLanguage().toLowerCase().substring(0, 2);\n }",
"@DISPID(-2147413012)\n @PropGet\n java.lang.String language();",
"public String[] getLanguages() {\n/* 238 */ return getStringArray(\"language\");\n/* */ }",
"static WordList get(Language language) {\n return switch (language) {\n case ENGLISH -> readResource(\"bip39_english.txt\");\n };\n }",
"public String getLang() {\n return (String)getAttributeInternal(LANG);\n }",
"@Nullable\n public final String getLanguage() {\n return this.language;\n }",
"public static String getLocale(Player player)\n {\n Object ep = null;\n try\n {\n ep = getMethod(\"getHandle\", player.getClass()).invoke(player, (Object[]) null);\n }\n catch (IllegalAccessException | IllegalArgumentException| InvocationTargetException e)\n {\n e.printStackTrace();\n }\n Field f = null;\n try\n {\n f = ep.getClass().getDeclaredField(\"locale\");\n }\n catch (NoSuchFieldException | SecurityException e)\n {\n e.printStackTrace();\n }\n f.setAccessible(true);\n String language = null;\n try\n {\n language = (String) f.get(ep);\n }\n catch (IllegalArgumentException | IllegalAccessException e)\n {\n e.printStackTrace();\n }\n return language;\n }",
"Language getLanguage(LanguageID languageID, int version) throws LanguageNotFoundException;",
"public Language getLanguage()\n\t{\n\t\treturn m_language;\n\t}",
"private static String getCurrentLanguageCode() {\n return Locale.getDefault().getLanguage();\n }",
"Language findById(String id);",
"@java.lang.Override\n public com.google.protobuf.ByteString\n getLanguageBytes() {\n java.lang.Object ref = language_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n language_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String getLanguage() {\n Object ref = language_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n language_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }",
"public AVT getLang()\n {\n return m_lang_avt;\n }",
"Language findByName(String name);",
"String getLocalizedString(Locale locale);",
"public Language getExistingLanguage(int id) {\n\t\treturn languageRepository.findOne(id);\r\n\t}",
"@Override\n public com.google.protobuf.ByteString\n getLanguageBytes() {\n Object ref = language_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n language_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"@Override\n public String getLang() {\n if (request != null) {\n return GuideUtils.getAcceptLang(request);\n } else {\n return FormContainer.super.getLang();\n }\n }",
"public LanguageList getLanguageList() {\r\n return languageList;\r\n }",
"String getLangId();",
"private static ResourceBundle getBundle(String language) {\r\n\t\tResourceBundle bundle;\r\n\r\n\t\tLocale locale = new Locale(language);\r\n\t\tbundle = ResourceBundle.getBundle(filename, locale);\r\n\r\n\t\treturn bundle;\r\n\t}",
"public static Language getLanguage(Plugin plugin) {\r\n\t\tif (plugin == null) {\r\n\t\t\treturn null;\r\n\t\t} else {\r\n\t\t\tlang.setEditingPlugin(plugin);\r\n\t\t\treturn lang;\r\n\t\t}\r\n\t}",
"public com.google.protobuf.ByteString\n getLanguageBytes() {\n java.lang.Object ref = language_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n language_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public java.lang.String getDefaultLanguage() {\n return defaultLanguage;\n }",
"public Language[] getLanguageList() {\n return languageList;\n }",
"com.google.ads.googleads.v6.resources.LanguageConstant getLanguageConstant();",
"String getFlashPref();",
"public static ResourceBundle getProperties(String language) {\r\n\r\n\t\treturn properties.get(language);\r\n\t}",
"public org.apache.xmlbeans.XmlLanguage xgetLang()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlLanguage target = null;\n target = (org.apache.xmlbeans.XmlLanguage)get_store().find_attribute_user(LANG$28);\n return target;\n }\n }",
"public String getLanguageName() {\r\n return languageName;\r\n }",
"public void putPrimaryLanguage(String value){\n editor.putString(PRIMARY_LANGUAGE, value);\n editor.apply();\n }",
"public com.google.protobuf.ByteString\n getLanguageBytes() {\n Object ref = language_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n language_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"@objid (\"8b3ba8b8-4d09-4d8e-9064-983191cc6b26\")\n @Override\n public String getLanguage() {\n String language = Platform.getNL();\n if (language.contains(\"_\")) {\n return Platform.getNL().substring(0, language.lastIndexOf(\"_\"));\n }\n return Platform.getNL();\n }",
"private String setSpeechFXLanguage(String language){\n String lang;\n if (!mSpeechFXon) {\n lang = language;\n } else if (mTts == null) {\n\t\t\tLog.i(TAG, \"TTS IS NULL!\");\n\t\t\tlang = language;\n\t\t} else {\n\t\t\tlang = Languages.setSpeechLanguage(language, mDefaultSpeechLang, mTts.ttsengine());\n\t\t\tif (mTts != null && lang != null && !lang.equals(\"\")) {\n\t\t\t\tLog.i(TAG, \"TTS set speech engine language: \" + lang);\n\t\t\t\tmTts.ttsengine().setLanguage(Languages.stringToLocale(lang));\n\t\t\t} else {\n\t\t\t\t// Unchanged, so return the pilot language\n\t\t\t\tlang = language;\n\t\t\t}\n\t\t\tLog.i(TAG, \"TTS LANG: \" + lang);\n\t\t}\n\n\t\treturn lang;\n\t}",
"private void setLanguageForApp(){\n String lang = sharedPreferences.getString(EXTRA_PREF_LANG,\"en\");\n\n Locale locale = new Locale(lang);\n Resources resources = getResources();\n Configuration configuration = resources.getConfiguration();\n DisplayMetrics displayMetrics = resources.getDisplayMetrics();\n configuration.setLocale(locale);\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N){\n getApplicationContext().createConfigurationContext(configuration);\n } else {\n resources.updateConfiguration(configuration,displayMetrics);\n }\n getApplicationContext().getResources().updateConfiguration(configuration, getApplicationContext().getResources().getDisplayMetrics());\n }",
"@DISPID(-2147413103)\n @PropGet\n java.lang.String lang();"
] | [
"0.7639323",
"0.75880605",
"0.74749327",
"0.74749327",
"0.74749327",
"0.73819697",
"0.73819697",
"0.73483276",
"0.72623384",
"0.7203095",
"0.69410324",
"0.68596196",
"0.68021524",
"0.6796314",
"0.6715685",
"0.66870105",
"0.66819394",
"0.66297776",
"0.66048783",
"0.66010815",
"0.66010815",
"0.65916514",
"0.65893507",
"0.65785897",
"0.6578011",
"0.6528785",
"0.6488145",
"0.6466942",
"0.6466942",
"0.6445581",
"0.6431539",
"0.6431539",
"0.6429554",
"0.64117086",
"0.6400322",
"0.63965315",
"0.6385684",
"0.63826346",
"0.6374385",
"0.63700354",
"0.6324962",
"0.63239545",
"0.63222617",
"0.6295279",
"0.62767375",
"0.62652063",
"0.62579995",
"0.6255973",
"0.62364316",
"0.62100923",
"0.62046796",
"0.61988306",
"0.61958617",
"0.61878043",
"0.6185858",
"0.61856663",
"0.61856663",
"0.6183249",
"0.6175452",
"0.6172832",
"0.61681473",
"0.61460155",
"0.6144979",
"0.6141341",
"0.61312187",
"0.61219823",
"0.6100549",
"0.6098704",
"0.60794127",
"0.60653496",
"0.6063345",
"0.60522866",
"0.603293",
"0.6026736",
"0.6021783",
"0.60205054",
"0.60187185",
"0.6017312",
"0.59864765",
"0.5978613",
"0.5946047",
"0.5923517",
"0.59230757",
"0.5921937",
"0.5921671",
"0.59021884",
"0.58933157",
"0.5893007",
"0.58846915",
"0.58813584",
"0.5874741",
"0.5841037",
"0.58322346",
"0.58249897",
"0.5824462",
"0.5823101",
"0.5817808",
"0.58175117",
"0.5814868",
"0.58130664"
] | 0.79562014 | 0 |
set language to (by language code) | public static void setLanguage(Context context, String language) {
putString(context, "app-language", language, false);
putString(context, "old-app-language", language, true);
forceLocale(context);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setLanguage(Language language);",
"@Override\n public void setLanguage(String lang) {\n }",
"public void setLanguage(String language);",
"@Override\r\n\t\tpublic void setLang(String lang)\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t}",
"static private void setLanguage(String strL) {\r\n\r\n\t\tstrLanguage = strL;\r\n\r\n\t\t// need to reload it again!\r\n\t\tloadBundle();\r\n\t}",
"public static void setApplicationLanguage(Context context, String code) {\n\t\tResources res = context.getResources();\n\t\tConfiguration androidConfiguration = res.getConfiguration();\n\t\t\n\t\tandroidConfiguration.locale = new Locale(code);\n\t\tres.updateConfiguration(androidConfiguration, res.getDisplayMetrics());\n\t}",
"protected static void setLanguage(Language lang) {\r\n\t\tInterface.lang = lang;\r\n\t}",
"public void setLanguage(Language l)\n\t{\n\t\tm_language = l;\n\t}",
"public void setLanguage(String newLanguage) {\r\n language = newLanguage;\r\n }",
"@SuppressLint(\"SetTextI18n\")\n @Override\n public void setLanguage() {\n if (Value.language_flag == 0) {\n title.setText(title_text);\n back.setText(\"back\");\n copyright.setText(Value.copyright_text + Value.ver);\n nowTime.setText(Value.updatestring + Value.updateTime);\n } else if (Value.language_flag == 1) {\n title.setText(title_text);\n back.setText(\"返回\");\n copyright.setText(Value.copyright_text + Value.ver);\n nowTime.setText(Value.updatestring + Value.updateTime);\n } else if (Value.language_flag == 2) {\n title.setText(title_text);\n back.setText(\"返回\");\n copyright.setText(Value.copyright_text + Value.ver);\n nowTime.setText(Value.updatestring + Value.updateTime);\n }\n }",
"public void setLang(LANG language) {\n\t\tthis.language = language;\n\t}",
"public void setLanguage (String language) {\n\t\tthis.language=language;\n\t\tthis.update();\n\t}",
"public void putPrimaryLanguage(String value){\n editor.putString(PRIMARY_LANGUAGE, value);\n editor.apply();\n }",
"private void changeLanguage(String newLanguage){\n\tif (newLanguage.contentEquals(\"FR\")){\n\t\t((GameActivity) activity).setStringPreferences(\"language\", \"1\");\n\t} else if (newLanguage.contentEquals(\"UK\")){\n\t\t((GameActivity) activity).setStringPreferences(\"language\", \"2\");\n\t}\n\t\n\t/*\n\tprefLanguage = ((GameActivity) activity).getPreference(\"language\", \"1\");\n\tif (prefLanguage.contentEquals(\"1\")){\n\t\tresourcesManager.tts.setLanguage(Locale.FRENCH);\n\t} else if (prefLanguage.contentEquals(\"2\")){\n\t\tresourcesManager.tts.setLanguage(Locale.ENGLISH);\t\n\t}\n\t*/\n\t\n\t\n\t\n\t/*\n\tif (newLanguage.contentEquals(\"FR\")){\n\t\tresourcesManager.tts.setLanguage(Locale.FRENCH);\n\t\tlocalLanguage=0;\n\t} else if (newLanguage.contentEquals(\"UK\")){\n\t\tresourcesManager.tts.setLanguage(Locale.ENGLISH);\t\n\t\tlocalLanguage=1;\n\t}\n\t*/\n\t\n}",
"Builder addInLanguage(Text value);",
"Builder addInLanguage(String value);",
"public void setApplicationLanguage() {\n\t\tinitializeMixerLocalization();\n\t\tinitializeRecorderLocalization();\n\t\tinitializeMenuBarLocalization();\n\t\tsetLocalizedLanguageMenuItems();\n\t\tboardController.setLocalization(bundle);\n\t\tboardController.refreshSoundboard();\n\t}",
"public void setLang(String value) {\n setAttributeInternal(LANG, value);\n }",
"public void setLanguage(String s) {\n\t\tlanguage = s;\n\t}",
"public void setLanguage(String language) {\n _language = language;\n }",
"Builder addInLanguage(Language value);",
"public void setLanguage(String language) {\r\n this.language = language;\r\n }",
"@SuppressWarnings(\"deprecation\")\r\n public void setLanguage(String langTo) {\n Locale locale = new Locale(langTo);\r\n Locale.setDefault(locale);\r\n\r\n Configuration config = new Configuration();\r\n\r\n config.setLocale(locale);//config.locale = locale;\r\n\r\n if (Build.VERSION.SDK_INT == Build.VERSION_CODES.N) {\r\n createConfigurationContext(config);\r\n } else {\r\n getResources().updateConfiguration(config, getResources().getDisplayMetrics());\r\n }\r\n\r\n //createConfigurationContext(config);\r\n getResources().updateConfiguration(config, getApplicationContext().getResources().getDisplayMetrics());//cannot resolve yet\r\n //write into settings\r\n SharedPreferences.Editor editor = mSettings.edit();\r\n editor.putString(APP_PREFERENCES_LANGUAGE, langTo);\r\n editor.apply();\r\n //get appTitle\r\n if(getSupportActionBar()!=null){\r\n getSupportActionBar().setTitle(R.string.app_name);\r\n }\r\n\r\n }",
"public void switchLanguage(){\n Locale myLocale = new Locale(\"de\");\r\n // get current Locale\r\n String currentLocale = scanActivity.getResources().getConfiguration().locale\r\n .toString();\r\n // set Locale to english if current Locale is german\r\n if (currentLocale.equals(\"de\")) {\r\n myLocale = new Locale(\"en\");\r\n }\r\n // sets the Locale in the configuration and updates the\r\n // configuration\r\n DisplayMetrics metrics = scanActivity.getResources().getDisplayMetrics();\r\n Configuration config = scanActivity.getResources().getConfiguration();\r\n config.locale = myLocale;\r\n scanActivity.getResources().updateConfiguration(config, metrics);\r\n // recreates the app in order to show the selected language\r\n scanActivity.recreate();\r\n }",
"public void setLanguage(String pLanguage) throws DynamicCallException, ExecutionException{\n call(\"setLanguage\", pLanguage).get();\n }",
"public void setLang(java.lang.String lang)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(LANG$28);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(LANG$28);\n }\n target.setStringValue(lang);\n }\n }",
"public void updateLanguage() {\n try {\n getUserTicket().setLanguage(EJBLookup.getLanguageEngine().load(updateLanguageId));\n } catch (FxApplicationException e) {\n new FxFacesMsgErr(e).addToContext();\n }\n }",
"private void setLanguageForApp(){\n String lang = sharedPreferences.getString(EXTRA_PREF_LANG,\"en\");\n\n Locale locale = new Locale(lang);\n Resources resources = getResources();\n Configuration configuration = resources.getConfiguration();\n DisplayMetrics displayMetrics = resources.getDisplayMetrics();\n configuration.setLocale(locale);\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N){\n getApplicationContext().createConfigurationContext(configuration);\n } else {\n resources.updateConfiguration(configuration,displayMetrics);\n }\n getApplicationContext().getResources().updateConfiguration(configuration, getApplicationContext().getResources().getDisplayMetrics());\n }",
"private void setLanguage(String language_) {\n\n //by default assign language to language_. This may change below.\n language = language_;\n\n //---------- set the default file extensions ----------\n switch (language_) {\n case IAGConstant.LANGUAGE_CPP:\n //extensions = IAGConstant.CPP_EXTENSIONS;\n break;\n case IAGConstant.LANGUAGE_PYTHON3:\n //extensions = IAGConstant.PYTHON_EXTENSIONS;\n break;\n case IAGConstant.LANGUAGE_AUTO:\n //extensions = IAGConstant.PYTHON_AND_CPP_EXTENSIONS;\n break;\n default:\n //extensions = IAGConstant.PYTHON_AND_CPP_EXTENSIONS;;\n language = LANGUAGE_AUTO; //invalid language specified: use AUTO by default\n }\n\n }",
"public Builder setLanguage(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n language_ = value;\n onChanged();\n return this;\n }",
"public void setLanguage(final String lang)\r\n {\r\n // We grant to JavaScript the same privileges as the core applet\r\n\r\n AccessController.doPrivileged(new PrivilegedAction<Object>()\r\n {\r\n public Object run()\r\n {\r\n LabelManager.setLang(lang);\r\n return null;\r\n }\r\n });\r\n }",
"public void setOntologies20070510nid3Language(java.lang.String value) {\r\n\t\tBase.set(this.model, this.getResource(), ONTOLOGIES20070510NID3LANGUAGE, value);\r\n\t}",
"public void setLanguage(java.lang.String language)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(LANGUAGE$14);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(LANGUAGE$14);\n }\n target.setStringValue(language);\n }\n }",
"public void setLanguage(java.lang.String language)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(LANGUAGE$14);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(LANGUAGE$14);\n }\n target.setStringValue(language);\n }\n }",
"private void setLanguage() {\n ResourceBundle labels = ResourceBundle.getBundle\n (\"contactmanager.Contactmanager\", Locale.getDefault()); \n this.setTitle(labels.getString(\"title\"));\n }",
"@DISPID(-2147413012)\n @PropPut\n void language(\n java.lang.String rhs);",
"private void translate()\r\n\t{\r\n\t\tLocale locale = Locale.getDefault();\r\n\t\t\r\n\t\tString language = locale.getLanguage();\r\n\t\t\r\n\t\ttranslate(language);\r\n\t}",
"private void setLocale(String lang) {\n Locale myLocale = new Locale(lang);\n Resources res = getResources();\n DisplayMetrics dm = res.getDisplayMetrics();\n Configuration conf = res.getConfiguration();\n conf.setLocale(myLocale);\n res.updateConfiguration(conf, dm);\n Intent refresh = new Intent(this, MainActivity.class);\n startActivity(refresh);\n finish();\n }",
"public void setLanguage(java.lang.String language) {\n this.language = language;\n }",
"public void setLanguage(java.lang.String language) {\n this.language = language;\n }",
"public Builder setLanguage(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n language_ = value;\n onChanged();\n return this;\n }",
"private void switchLanguage( ){\n \tString xpathEnglishVersion = \"//*[@id=\\\"menu-item-4424-en\\\"]/a\";\n \tif( driver.findElement( By.xpath( xpathEnglishVersion ) ).getText( ).equals( \"English\" ) ) {\n \t\tSystem.out.println( \"Change language to English\" );\n \t\tdriver.findElement( By.xpath( xpathEnglishVersion ) ).click( );\n \t\tIndexSobrePage.sleepThread( );\n \t}\n }",
"public void setLanguage(String lang) {\n\t\tthis.language = lang;\n\t}",
"public static void setlanguage(Context ctx, String latitude) {\n\t\tEditor editor = getSharedPreferences(ctx).edit();\n\t\teditor.putString(language, latitude);\n\t\teditor.commit();\n\t}",
"public void setLanguage(String language) {\n this.language = language;\n }",
"public void setLanguage(String language) {\n this.language = language;\n }",
"public void setLanguage(Language lang) {\n\t\tGuiElements guiElems = GuiElements.getInstance();\n\t\tframe.setTitle(guiElems.getFrameTitle(lang));\n\t\tconvBtn.setText(guiElems.getConvertBtnText(lang));\n\t\tswitchBtn.setText(guiElems.getSwitchScalesText(lang));\n\t}",
"void changeLanguage() {\n\n this.currentLocaleIndex++;\n if(this.currentLocaleIndex > this.locales.size() - 1) this.currentLocaleIndex = 0;\n this.updateBundle();\n }",
"public void changeLanguage(View v) {\n Resources res = getResources();\n DisplayMetrics dm = res.getDisplayMetrics();\n Configuration config = res.getConfiguration();\n\n String targetLanguage;\n\n // Log.d(\"en-US\", targetLanguage);\n\n if ( config.locale.toString().equals(\"pt\") ) {\n targetLanguage = \"en-US\";\n } else {\n targetLanguage = \"pt\";\n }\n\n Locale newLang = new Locale(targetLanguage);\n\n config.locale = newLang;\n res.updateConfiguration(config, dm);\n\n // Reload current page with new language\n Intent refresh = new Intent(this, Settings.class);\n startActivity(refresh);\n }",
"public void setLanguage (String language) {\n switch (language.toLowerCase()) {\n default -> this.language = Language.ENGLISH;\n case \"french\" -> this.language = Language.FRENCH;\n case \"german\" -> this.language = Language.GERMAN;\n case \"spanish\" -> this.language = Language.SPANISH;\n case \"italian\" -> this.language = Language.ITALIAN;\n }\n }",
"public void addLanguage(String value) {\n/* 230 */ addStringToBag(\"language\", value);\n/* */ }",
"public static void setLanguage(String lang){\n String propFileName = lang==null ? \"resources_en\" : lang.equals(\"tr\") ? \"resources_tr\" : \"resources_en\";\n initializeStaticObjects(ResourceBundle.getBundle(\"market.dental.resources.resultProp\", lang==null ? Locale.ENGLISH : lang.equals(\"tr\") ? new Locale(\"tr\") : Locale.ENGLISH));\n }",
"public Future<Void> setLanguage(String pLanguage) throws DynamicCallException, ExecutionException{\n return call(\"setLanguage\", pLanguage);\n }",
"void updateLang() {\n if (lang == null)\n lang = game.q;\n }",
"public void setLanguage(String language)\n\t{\n\t\tthis.language = language;\n\t}",
"@Test\n public void testSetLanguage() {\n assertEquals(Language.EN, navigationBean.getSessionUser().getLanguage());\n\n navigationBean.getSessionUser().setLanguage(Language.DE);\n assertFalse(SAMPLE_LANGUAGE.equals(navigationBean.getSessionUser().getLanguage()));\n\n navigationBean.getSessionUser().setLanguage(Language.BAY);\n assertFalse(SAMPLE_LANGUAGE.equals(navigationBean.getSessionUser().getLanguage()));\n }",
"public void xsetLanguage(org.apache.xmlbeans.XmlNMTOKEN language)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlNMTOKEN target = null;\n target = (org.apache.xmlbeans.XmlNMTOKEN)get_store().find_attribute_user(LANGUAGE$14);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlNMTOKEN)get_store().add_attribute_user(LANGUAGE$14);\n }\n target.set(language);\n }\n }",
"public void xsetLanguage(org.apache.xmlbeans.XmlNMTOKEN language)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlNMTOKEN target = null;\n target = (org.apache.xmlbeans.XmlNMTOKEN)get_store().find_attribute_user(LANGUAGE$14);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlNMTOKEN)get_store().add_attribute_user(LANGUAGE$14);\n }\n target.set(language);\n }\n }",
"private void setLanguageScreen(){\n\t\t\n\t\tscreenUI.clearScreen();\n\t\tscreenUI.drawText(2, 1, \"Choose a language/Wybierz język:\");\n\t\tscreenUI.drawText(1, 3, \"[a]: English\");\n\t\tscreenUI.drawText(1, 4, \"[b]: Polski\");\n\t}",
"private void changeLanguage(Language lang) {\n this.resources = ResourceBundle.getBundle(UIController.RESOURCE_PATH + lang);\n uiController.setLanguage(lang);\n fileLoadButton.setText(resources.getString(\"LoadSimulationXML\"));\n uiController.setTitle(resources.getString(\"Launch\"));\n }",
"public void updateLanguage() {\n this.title.setText(LanguageStringMap.get().getMap().get(TITLE_KEY));\n this.skinSwitcher.updateLanguage();\n this.langSwitcher.updateLanguage();\n this.pawnSwitcher.updateLanguage();\n this.musicManager.updateLanguage();\n this.back.setText(LanguageStringMap.get().getMap().get(BACK_KEY));\n }",
"@Override\r\n\tpublic DTextArea setHtmlLang(final String lang) {\r\n\t\tsuper.setHtmlLang(lang) ;\r\n\t\treturn this ;\r\n\t}",
"public void setLanguage(String languageName) {\n\t\tsetProperty(LANGUAGE_PROPERTY, languageName);\n\t\tthis.myLanguage = languageName;\n\t}",
"public void setLanguage(final String languageValue) {\n this.language = languageValue;\n }",
"public final void setLanguage(@Nullable final String languageParam) {\n this.language = languageParam;\n }",
"public void setLang(AVT v)\n {\n m_lang_avt = v;\n }",
"public void xsetLang(org.apache.xmlbeans.XmlLanguage lang)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlLanguage target = null;\n target = (org.apache.xmlbeans.XmlLanguage)get_store().find_attribute_user(LANG$28);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlLanguage)get_store().add_attribute_user(LANG$28);\n }\n target.set(lang);\n }\n }",
"public void setLanguage(String localeString) {\n\t\tdatabaseOperation.execute(\"UPDATE \" + DatabaseContents.LANGUAGE + \" SET language = '\" + localeString + \"'\");\n\t}",
"@Override\n\tpublic void setTargetLanguage(java.lang.String targetLanguage) {\n\t\t_scienceApp.setTargetLanguage(targetLanguage);\n\t}",
"private void setLanguage(String currentLang) {\n AppSharedPreference.getInstance().putString(this, AppSharedPreference.PREF_KEY.CURRENT_LANGUAGE, currentLang);\n AppSharedPreference.getInstance().putString(this, AppSharedPreference.PREF_KEY.CURRENT_LANGUAGE_CODE, String.valueOf(languageCode));\n tvEnglish.setCompoundDrawablesWithIntrinsicBounds(0, 0, 0, 0);\n tvChineseTrad.setCompoundDrawablesWithIntrinsicBounds(0, 0, 0, 0);\n tvChineseSimple.setCompoundDrawablesWithIntrinsicBounds(0, 0, 0, 0);\n tvMalyalm.setCompoundDrawablesWithIntrinsicBounds(0, 0, 0, 0);\n tvHindi.setCompoundDrawablesWithIntrinsicBounds(0, 0, 0, 0);\n tvUrdu.setCompoundDrawablesWithIntrinsicBounds(0, 0, 0, 0);\n switch (currentLang) {\n case Constants.AppConstant.CHINES_TRAD:\n tvChineseTrad.setCompoundDrawablesWithIntrinsicBounds(0, 0, R.drawable.ic_check_green, 0);\n break;\n case Constants.AppConstant.CHINES_SIMPLE:\n tvChineseSimple.setCompoundDrawablesWithIntrinsicBounds(0, 0, R.drawable.ic_check_green, 0);\n break;\n case Constants.AppConstant.MALAYALAM:\n tvMalyalm.setCompoundDrawablesWithIntrinsicBounds(0, 0, R.drawable.ic_check_green, 0);\n break;\n case Constants.AppConstant.HINDI:\n tvHindi.setCompoundDrawablesWithIntrinsicBounds(0, 0, R.drawable.ic_check_green, 0);\n break;\n case Constants.AppConstant.ARABIC:\n tvUrdu.setCompoundDrawablesWithIntrinsicBounds(0, 0, R.drawable.ic_check_green, 0);\n break;\n default:\n tvEnglish.setCompoundDrawablesWithIntrinsicBounds(0, 0, R.drawable.ic_check_green, 0);\n }\n }",
"public void setLanguage(String language) {\n this.standardPairs.put(Parameters.LANGUAGE, language);\n }",
"String getLanguage();",
"String getLanguage();",
"String getLanguage();",
"public void setLocale (\r\n String strLocale) throws java.io.IOException, com.linar.jintegra.AutomationException;",
"java.lang.String getLanguage();",
"java.lang.String getLanguage();",
"@DISPID(-2147413103)\n @PropPut\n void lang(\n java.lang.String rhs);",
"public void setLanguage(String aLanguage) {\n\t\tthis.language = aLanguage;\n\t}",
"public void setLanguage(String language) {\n\t\tthis.language = language;\n\t}",
"public void setLanguage(String lang, String country, String variant) {\n mSelf.setLanguage(lang, country, variant);\n }",
"CLanguage getClanguage();",
"public void changeApplicationLanguage(ActionEvent event) {\n\t\tString appConfigPath = \"src/main/resources/properties/AudioEditor.properties\";\n\t\tProperties properties = new Properties();\n\t\ttry {\n\t\t\tproperties.load(new FileInputStream(new File(appConfigPath).getAbsoluteFile()));\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tif (event.getSource() == languageEnglish) {\n\t\t\tcurLocale = new Locale(\"en\", \"US\");\n\t\t\tproperties.setProperty(\"language\", \"en\");\n\t\t\tproperties.setProperty(\"country\", \"US\");\n\t\t} else if (event.getSource() == languageFinnish) {\n\t\t\tcurLocale = new Locale(\"fi\", \"FI\");\n\t\t\tproperties.setProperty(\"country\", \"FI\");\n\t\t\tproperties.setProperty(\"language\", \"fi\");\n\t\t}\n\n\t\ttry (FileOutputStream fos = new FileOutputStream(appConfigPath);) {\n\t\t\tproperties.store(fos, null);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tbundle = ResourceBundle.getBundle(\"properties/ApplicationResources\", curLocale);\n\n\t\tsetApplicationLanguage();\n\t}",
"public String getLanguage();",
"public Builder setLanguage(String language) {\n/* 1569 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"public void setLanguage(String languageKey) {\n String[] languages = {ResourceBundle.getBundle(LANGUAGE).getString(languageKey), SYNTAX};\n translations = getPatterns(languages);\n }",
"String getLang();",
"public void setLangCode(String langCode) {\n\t\tthis._langCode = langCode;\n\t}",
"Language(Locale locale) {\n this.locale = locale;\n }",
"public void setXmlLang(java.lang.String xmlLang)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(XMLLANG$26);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(XMLLANG$26);\n }\n target.setStringValue(xmlLang);\n }\n }",
"public void setEditorLanguage(EditorLanguage lang) {\n if(lang == null) {\n lang = new EmptyLanguage();\n }\n this.mLanguage = lang;\n if(mSpanner != null) {\n mSpanner.setCallback(null);\n }\n mSpanner = new TextColorProvider(lang.createAnalyzer());\n mSpanner.setCallback(this);\n if(mText != null) {\n mSpanner.analyze(mText);\n }\n if(mACPanel != null) {\n mACPanel.hide();\n mACPanel.setProvider(lang.createAutoComplete());\n }\n if(mCursor != null){\n mCursor.setLanguage(mLanguage);\n }\n invalidate();\n }",
"@DISPID(-2147413012)\n @PropGet\n java.lang.String language();",
"private String setSpeechFXLanguage(String language){\n String lang;\n if (!mSpeechFXon) {\n lang = language;\n } else if (mTts == null) {\n\t\t\tLog.i(TAG, \"TTS IS NULL!\");\n\t\t\tlang = language;\n\t\t} else {\n\t\t\tlang = Languages.setSpeechLanguage(language, mDefaultSpeechLang, mTts.ttsengine());\n\t\t\tif (mTts != null && lang != null && !lang.equals(\"\")) {\n\t\t\t\tLog.i(TAG, \"TTS set speech engine language: \" + lang);\n\t\t\t\tmTts.ttsengine().setLanguage(Languages.stringToLocale(lang));\n\t\t\t} else {\n\t\t\t\t// Unchanged, so return the pilot language\n\t\t\t\tlang = language;\n\t\t\t}\n\t\t\tLog.i(TAG, \"TTS LANG: \" + lang);\n\t\t}\n\n\t\treturn lang;\n\t}",
"public void setLanguageList(Language[] languageList) {\n this.languageList = languageList;\n }",
"public void selectLanguage(String language){\n\t\t\t if (language ==\"Spanish\"){\n\t\t\t\t driver.findElement(By.id(\"SignupRequest_language_0\")).click();\n\t\t\t }\n\t\t\t else if (language==\"English\"){\n\t\t\t\t driver.findElement(By.id(\"SignupRequest_language_2\")).click();\t\t\t \n\t\t\t }\n\t\t\t else if (language==\"Portuguese\"){\n\t\t\t\t driver.findElement(By.id(\"SignupRequest_language_1\")).click();\n\t\t\t\t }\n\t \t }",
"public void setOntologies20070510nid3Language( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), ONTOLOGIES20070510NID3LANGUAGE, value);\r\n\t}",
"Builder addInLanguage(Language.Builder value);",
"public void SetUsersLearningLanguage(String lang) {\n if (AppSettings.Instance().IsValidBCP47Code(lang))\n userLearningLang = lang;\n else\n throw new IllegalArgumentException(\"Tried to set Users Learning Language to: \" + lang + \" which is incorrect or unsupported\");\n }",
"public void updateLanguage(String lang) {\n\t\tmyLanguages.clear();\n\t\tString location = String.format(\"%s%s\", LANGUAGE_BASE, lang);\n\t\tResourceBundle rb = ResourceBundle.getBundle(location);\n\t\tfor (String key : rb.keySet()) {\n\t\t\tString[] input = rb.getString(key).split(\"\\\\|\");\n\t\t\tfor (String s : input) {\n\t\t\t\tmyLanguages.put(s.replace(\"\\\\\", \"\"), key);\n\t\t\t}\n\t\t}\n\t}",
"public void setLangCode(String langCode) {\n\t\tthis.langCode = langCode;\n\t}"
] | [
"0.8489159",
"0.8132706",
"0.8121303",
"0.7705578",
"0.76713884",
"0.7641483",
"0.76062953",
"0.75729203",
"0.7571605",
"0.748312",
"0.7362208",
"0.7344934",
"0.73090035",
"0.7298228",
"0.72920936",
"0.7251323",
"0.7233051",
"0.7227709",
"0.7198111",
"0.7156002",
"0.7153401",
"0.71506864",
"0.7145304",
"0.71368927",
"0.7135739",
"0.7132957",
"0.7121506",
"0.7101831",
"0.7100698",
"0.7091111",
"0.7084965",
"0.7080679",
"0.70683134",
"0.70683134",
"0.7066282",
"0.7037632",
"0.70352316",
"0.69281757",
"0.692366",
"0.692366",
"0.69134045",
"0.6905714",
"0.69028395",
"0.6896328",
"0.689126",
"0.689126",
"0.688665",
"0.6882593",
"0.686305",
"0.6848243",
"0.6826109",
"0.6818859",
"0.68052375",
"0.68036604",
"0.6800575",
"0.6776898",
"0.6774798",
"0.6774798",
"0.67640054",
"0.6748325",
"0.6746344",
"0.66991144",
"0.66719747",
"0.66687506",
"0.6662125",
"0.66403663",
"0.6625055",
"0.66220576",
"0.6614341",
"0.6610901",
"0.6605266",
"0.65841305",
"0.65841305",
"0.65841305",
"0.6582942",
"0.65743935",
"0.65743935",
"0.65507984",
"0.6548468",
"0.6542905",
"0.6533576",
"0.6530529",
"0.65284765",
"0.65209395",
"0.65174186",
"0.6514382",
"0.647942",
"0.64687353",
"0.64646137",
"0.6459274",
"0.64369303",
"0.64258397",
"0.64244026",
"0.64222753",
"0.64141554",
"0.6405178",
"0.64044183",
"0.6404054",
"0.6400598",
"0.6389016"
] | 0.6668582 | 64 |
force current locale on app | public static void forceLocale(Context context) {
final String language = getSavedLanguage(context);
if (language == null) {
return;
}
Debug.logE("force locale", "language " + language);
Resources res = context.getResources();
Configuration config = res.getConfiguration();
try {
config.locale = new Locale(language);
} catch(Throwable e) {
;
}
res.updateConfiguration(config, context.getResources().getDisplayMetrics());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void initialSystemLocale(Context context)\n {\n LogpieSystemSetting setting = LogpieSystemSetting.getInstance(context);\n if (setting.getSystemSetting(KEY_LANGUAGE) == null)\n {\n String mLanguage = Locale.getDefault().getLanguage();\n if (mLanguage.equals(Locale.CHINA) || mLanguage.equals(Locale.CHINESE))\n {\n setting.setSystemSetting(KEY_LANGUAGE, CHINESE);\n }\n else\n {\n setting.setSystemSetting(KEY_LANGUAGE, ENGLISH);\n }\n }\n }",
"public void setPreferredLocale(Locale locale);",
"private void setLocale() {\n\t\tLocale locale = new Locale(this.getString(R.string.default_map_locale));\n Locale.setDefault(locale);\n Configuration config = new Configuration();\n config.locale = locale;\n getBaseContext().getResources().updateConfiguration(config,\n getBaseContext().getResources().getDisplayMetrics());\n\t}",
"Locale getDefaultLocale();",
"Locale getDefaultLocale();",
"private void setLanguageForApp(){\n String lang = sharedPreferences.getString(EXTRA_PREF_LANG,\"en\");\n\n Locale locale = new Locale(lang);\n Resources resources = getResources();\n Configuration configuration = resources.getConfiguration();\n DisplayMetrics displayMetrics = resources.getDisplayMetrics();\n configuration.setLocale(locale);\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N){\n getApplicationContext().createConfigurationContext(configuration);\n } else {\n resources.updateConfiguration(configuration,displayMetrics);\n }\n getApplicationContext().getResources().updateConfiguration(configuration, getApplicationContext().getResources().getDisplayMetrics());\n }",
"public void setFallbackLocale(Locale locale) { this.fallbackLocale = locale; }",
"public static final void setLocaleFromPreferences(Context ctx) {\n String firstLocale = ctx.getResources().getConfiguration().locale.toString().substring(0, 2);\n String currentLocale = PreferenceManager.getDefaultSharedPreferences(ctx).getString(\"locale\", firstLocale);\n /**\n * Locale locale = new Locale((String) currentLocale); config.locale =\n * locale; Locale.setDefault(locale);\n */\n setLocale(ctx, currentLocale);\n }",
"public void updateLocale() {\r\n\t\tsuper.updateLocale();\r\n\t}",
"public void setLocale(Locale locale) {\n fLocale = locale;\n }",
"private void loadLocale() {\n\t\tSharedPreferences sharedpreferences = this.getSharedPreferences(\"CommonPrefs\", Context.MODE_PRIVATE);\n\t\tString lang = sharedpreferences.getString(\"Language\", \"en\");\n\t\tSystem.out.println(\"Default lang: \"+lang);\n\t\tif(lang.equalsIgnoreCase(\"ar\"))\n\t\t{\n\t\t\tmyLocale = new Locale(lang);\n\t\t\tsaveLocale(lang);\n\t\t\tLocale.setDefault(myLocale);\n\t\t\tandroid.content.res.Configuration config = new android.content.res.Configuration();\n\t\t\tconfig.locale = myLocale;\n\t\t\tthis.getBaseContext().getResources().updateConfiguration(config, this.getBaseContext().getResources().getDisplayMetrics());\n\t\t\tCommonFunctions.lang = \"ar\";\n\t\t}\n\t\telse{\n\t\t\tmyLocale = new Locale(lang);\n\t\t\tsaveLocale(lang);\n\t\t\tLocale.setDefault(myLocale);\n\t\t\tandroid.content.res.Configuration config = new android.content.res.Configuration();\n\t\t\tconfig.locale = myLocale;\n\t\t\tthis.getBaseContext().getResources().updateConfiguration(config, this.getBaseContext().getResources().getDisplayMetrics());\n\t\t\tCommonFunctions.lang = \"en\";\n\t\t}\n\t}",
"public void setRequestedLocale(final Locale val) {\n requestedLocale = val;\n }",
"@Override\n public void setLocale(Locale arg0) {\n\n }",
"public static void changeAppLocale(Context ctx, String lang) {\n Locale locale = new Locale(lang);\n Locale.setDefault(locale);\n Configuration config = new Configuration();\n config.locale = locale;\n ctx.getResources().updateConfiguration(config, ctx.getResources().getDisplayMetrics());\n }",
"@Override\n public Locale getLocale() {\n return null;\n }",
"@Override\n\tpublic void setLocale(Locale loc) {\n\t}",
"protected void localeChanged() {\n\t}",
"String getCurrentLocaleString();",
"@Override\n protected void attachBaseContext(Context base) {\n super.attachBaseContext(Application.Companion.getLocaleManager().setLocale(base));\n }",
"protected void setLocale(Locale locale) {\n this.locale = locale;\n }",
"public static void resolveRestApiLocale() {\n\t\t((ServletRequestAttributes) RequestContextHolder.currentRequestAttributes()).getRequest()\n\t\t\t\t.setAttribute(LocaleResolver.REST_API_LOCALE, CoreResources.getSystemLocale());\n\t\tresolveLocale();\n\t}",
"private void setLocale(String lang) {\n Locale myLocale = new Locale(lang);\n Resources res = getResources();\n DisplayMetrics dm = res.getDisplayMetrics();\n Configuration conf = res.getConfiguration();\n conf.setLocale(myLocale);\n res.updateConfiguration(conf, dm);\n Intent refresh = new Intent(this, MainActivity.class);\n startActivity(refresh);\n finish();\n }",
"private String getDefaultLocale() {\n return \"es-MX\";\n }",
"public void setLocale(Locale locale) {\n\n\t}",
"public void setLocale(Locale locale)\n {\n this.locale = locale;\n }",
"java.lang.String getLocale();",
"public interface LocaleContext {\n Locale getLocale();\n}",
"private static Locale getUserPreferredLocale() {\n\t\tfinal ResourceLoader rl = new ResourceLoader();\n\t\treturn rl.getLocale();\n\t}",
"private Locale getPreferredLocale() {\n return mActivity.getResources().getConfiguration().getLocales().get(0);\n }",
"public void attachBaseContext(Context context) {\n super.attachBaseContext(LocaleHelper.setLocale(context));\n }",
"protected Locale getLocale() {\n\t\treturn null;\n\t}",
"public void setLocale(Locale locale) {\r\n this.locale = locale;\r\n }",
"private void setDefaultLanguage() {\n this.setLanguage(Locale.getDefault().getDisplayLanguage());\n }",
"public final void setLocale( Locale locale )\n {\n }",
"@Override\n\tpublic Locale getLocale() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic Locale getLocale() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic Locale getLocale() {\n\t\treturn null;\n\t}",
"public void setLocale(Locale locale) {\n this.locale = locale;\n }",
"public void setLocale(Locale locale) {\n this.locale = locale;\n }",
"protected void setLocale(Locale locale) {\n this.locale = locale;\n }",
"public Locale getLocale() {\n/* 380 */ Locale locale = super.getLocale();\n/* 381 */ if (locale == null) {\n/* 382 */ return Locale.getDefault();\n/* */ }\n/* 384 */ return locale;\n/* */ }",
"private void initLanguage() {\n try {\n Resources resources = getApplicationContext().getResources();\n DisplayMetrics displayMetrics = resources.getDisplayMetrics();\n Configuration configuration = resources.getConfiguration();\n Locale locale = new Locale(\"es\", \"ES\");\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1) {\n configuration.setLocale(locale);\n } else {\n //noinspection deprecation\n configuration.locale = locale;\n }\n resources.updateConfiguration(configuration, displayMetrics);\n } catch (Throwable throwable) {\n Log.d(TAG, \"Couldn't apply ES language.\", throwable);\n }\n }",
"private Locale getLocale() {\n Locale selectedLocale = (Locale) Sessions.getCurrent().getAttribute(Attributes.PREFERRED_LOCALE);\n if (selectedLocale != null) {\n return selectedLocale;\n }\n Locale defaultLocale = ((HttpServletRequest) Executions.getCurrent().getNativeRequest()).getLocale();\n Sessions.getCurrent().setAttribute(org.zkoss.web.Attributes.PREFERRED_LOCALE, defaultLocale);\n return defaultLocale;\n }",
"@Override\n public void setLocale(Locale arg0) {\n //\n if (log4j.isDebugEnabled()) {log4j.debug(BaseMessages.getString(PKG, \"MVSFileParser.DEBUG.Ignore.Locale\"));} //$NON-NLS-1$\n }",
"public void setLocale (\r\n String strLocale) throws java.io.IOException, com.linar.jintegra.AutomationException;",
"public void switchLanguage(){\n Locale myLocale = new Locale(\"de\");\r\n // get current Locale\r\n String currentLocale = scanActivity.getResources().getConfiguration().locale\r\n .toString();\r\n // set Locale to english if current Locale is german\r\n if (currentLocale.equals(\"de\")) {\r\n myLocale = new Locale(\"en\");\r\n }\r\n // sets the Locale in the configuration and updates the\r\n // configuration\r\n DisplayMetrics metrics = scanActivity.getResources().getDisplayMetrics();\r\n Configuration config = scanActivity.getResources().getConfiguration();\r\n config.locale = myLocale;\r\n scanActivity.getResources().updateConfiguration(config, metrics);\r\n // recreates the app in order to show the selected language\r\n scanActivity.recreate();\r\n }",
"public void setDefaultLocale(Locale defaultLocale) {\n this.defaultLocale = defaultLocale;\n }",
"protected Locale getCurrentLocale()\n\t{\n\t\tLocale locale = getArchLocale();\n\t\tif (locale == null) {\n\t\t\t//Fallback to Spring locale\n\t\t\tlocale = LocaleContextHolder.getLocale();\n\t\t}\n\t\treturn locale;\n\t}",
"public Future<String> locale() throws DynamicCallException, ExecutionException {\n return call(\"locale\");\n }",
"public String changeLeguage(){\r\n\t\tFacesContext context = FacesContext.getCurrentInstance();\r\n\t\tLocale miLocale = new Locale(\"en\",\"US\");\r\n\t\tcontext.getViewRoot().setLocale(miLocale);\r\n\t\treturn \"login\";\r\n\t}",
"public String getUserLocale() {\n return sessionData.getUserLocale();\n }",
"public static void setDefaultLanguage(Context context, String lang) {\n Locale locale = new Locale(lang);\n Locale.setDefault(locale);\n Configuration config = new Configuration();\n config.locale = locale;\n context.getResources().updateConfiguration(config,\n context.getResources().getDisplayMetrics());\n }",
"public static void setApplicationLanguage(Context context, String code) {\n\t\tResources res = context.getResources();\n\t\tConfiguration androidConfiguration = res.getConfiguration();\n\t\t\n\t\tandroidConfiguration.locale = new Locale(code);\n\t\tres.updateConfiguration(androidConfiguration, res.getDisplayMetrics());\n\t}",
"protected void setLocale(Locale locale) {\n this.locale = LocaleHelper.normalize(locale);\n }",
"@SuppressWarnings(\"deprecation\")\r\n public void setLanguage(String langTo) {\n Locale locale = new Locale(langTo);\r\n Locale.setDefault(locale);\r\n\r\n Configuration config = new Configuration();\r\n\r\n config.setLocale(locale);//config.locale = locale;\r\n\r\n if (Build.VERSION.SDK_INT == Build.VERSION_CODES.N) {\r\n createConfigurationContext(config);\r\n } else {\r\n getResources().updateConfiguration(config, getResources().getDisplayMetrics());\r\n }\r\n\r\n //createConfigurationContext(config);\r\n getResources().updateConfiguration(config, getApplicationContext().getResources().getDisplayMetrics());//cannot resolve yet\r\n //write into settings\r\n SharedPreferences.Editor editor = mSettings.edit();\r\n editor.putString(APP_PREFERENCES_LANGUAGE, langTo);\r\n editor.apply();\r\n //get appTitle\r\n if(getSupportActionBar()!=null){\r\n getSupportActionBar().setTitle(R.string.app_name);\r\n }\r\n\r\n }",
"@Override\n\t\tpublic Locale getLocale() {\n\t\t\treturn null;\n\t\t}",
"public static String getDefaultLocale()\n {\n return Locale.getDefault().toString();\n }",
"public void setLocale (Locale locale) {\n _locale = locale;\n _cache.clear();\n _global = getBundle(_globalName);\n }",
"public Locale getFallbackLocale() {\treturn fallbackLocale;}",
"@Bean\n LocaleResolver localeResolver() {\n return new FixedLocaleResolver(Locale.ENGLISH);\n }",
"public static void setLocale(Locale newLocale) {\n if (newLocale == null) {\n newLocale = Locale.getDefault();\n }\n localeInfo.set(newLocale);\n }",
"public Locale getCurrentLocale() {\r\n\t\t// NOTE: should be written in some properties file\r\n\t\tLocale defaultLocale = getLocale();\r\n\t\tLocale locale = getUsersLocale();\r\n\t\t\r\n\t\tif (locale == null) {\r\n\t\t\treturn defaultLocale;\r\n\t\t}\r\n\t\treturn locale;\r\n\t}",
"public void refreshLocale() {\n this.mWifiTracker.refreshLocale();\n }",
"public void setLocale(Locale locale) {\n/* 462 */ ParamChecks.nullNotPermitted(locale, \"locale\");\n/* 463 */ this.locale = locale;\n/* 464 */ setStandardTickUnits(createStandardDateTickUnits(this.timeZone, this.locale));\n/* */ \n/* 466 */ fireChangeEvent();\n/* */ }",
"public void setLocale(Locale l) {\n if (!initialized)\n super.setLocale(l);\n else {\n locale = l;\n initNames();\n }\n }",
"public String getLocale() {\n return this.locale;\n }",
"@SuppressWarnings(\"unused\")\n public void restoreSystemLanguageAsChineseByFramework() {\n try {\n Class<?> cls = Class.forName(\"com.android.internal.app.LocalePicker\");\n Method updateLocale = cls.getDeclaredMethod(\"updateLocale\", Locale.class);\n updateLocale.invoke(cls.newInstance(), Locale.CHINESE);\n } catch (ClassNotFoundException | InstantiationException\n | IllegalAccessException | NoSuchMethodException | InvocationTargetException e) {\n e.printStackTrace();\n Assert.fail(\"setSystemLanguageAsEnglishByFramework, failed!\");\n }\n }",
"public static void setLocale(Locale locale) {\n// Recarga las entradas de la tabla con la nueva localizacion \n RESOURCE_BUNDLE = ResourceBundle.getBundle(BUNDLE_NAME, locale);\n}",
"public Locale toLocale() {\n/* 149 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"public Locale getLocale() {\r\n return Locale.getDefault();\r\n }",
"public void temp() {\n\t\t\n\t\tString language = locale.getLanguage();\n\t\tSystem.out.println(language);\n\t\t\n\t\tif(language.equals(\"ru\")) {\n\t\t\tsetLocale(new Locale(\"en\", \"US\"));\n\t\t} else {\n\t\t\tsetLocale(new Locale(\"ru\", \"UA\"));\n\t\t}\n\t}",
"boolean hasLocale();",
"public Locale getUserPreferedLanguage(HttpServletRequest request) {\n String lang = (String) request.getAttribute(EXPLICIT_LOCALE_KEY);\n if (lang != null && ! \"\".equals(lang)) {\n return request.getLocale();\n } else {\n return new Locale(lang);\n }\n }",
"public void setApplicationLanguage() {\n\t\tinitializeMixerLocalization();\n\t\tinitializeRecorderLocalization();\n\t\tinitializeMenuBarLocalization();\n\t\tsetLocalizedLanguageMenuItems();\n\t\tboardController.setLocalization(bundle);\n\t\tboardController.refreshSoundboard();\n\t}",
"public String locale() {\n return this.locale;\n }",
"protected String getCurrentLocaleName() {\n return LocaleInfo.getCurrentLocale().getLocaleName();\n }",
"public Locale getLocale() { return this.locale; }",
"public String getLocale()\n {\n return (m_taskVector == null || m_taskVector.size() == 0) ?\n DEFAULT_LOCALE :\n taskAt(0).getSourceLanguage();\n }",
"public interface LocaleProvider {\n\tLocale getLocale();\n}",
"public void setLocale(String value) {\n setAttributeInternal(LOCALE, value);\n }",
"public void setLocale(String value) {\n setAttributeInternal(LOCALE, value);\n }",
"public Locale getLocale () {\n return _locale;\n }",
"@Bean\n public CookieLocaleResolver localeResolver() {\n CookieLocaleResolver localeResolver = new CookieLocaleResolver();\n Locale defautLocal = new Locale(defLang + \"_\" + defLocal);\n localeResolver.setDefaultLocale(defautLocal);\n return localeResolver;\n }",
"public Locale getLocale()\n/* */ {\n/* 487 */ return getULocale().toLocale();\n/* */ }",
"@Override\n\tprotected void onStart() {\n\t\tsuper.onStart();\n\t\n\t\tSystem.out.println(\"!!!!!!!!!!!!!!!onStart\");\n\t\tLanguageConvertPreferenceClass.loadLocale(getApplicationContext());\n\t}",
"public static Locale getLocale() {\n return localeInfo.get();\n }",
"protected Locale resolveLocale()\n\t{\n\t\tLocale locale = getArchLocale();\n\t\tif (locale == null) {\n\t\t\tlocale = getFallbackLocale();\n\t\t}\n\t\tif (locale == null) {\n\t\t\t//Fallback to Spring locale\n\t\t\tlocale = LocaleContextHolder.getLocale();\n\t\t}\n\t\treturn locale;\n\t}",
"public Locale getLocale()\n {\n return locale;\n }",
"@Test\n\tpublic void should_resetTheLocale() {\n\t\t// set user locale to nothing\n\t\tContext.setLocale(null);\n\t\t\n\t\t// clear out the caches\n\t\tGlobalProperty defaultLocale = new GlobalProperty(OpenmrsConstants.GLOBAL_PROPERTY_DEFAULT_LOCALE, \"\",\n\t\t \"blanking out default locale\");\n\t\tContext.getAdministrationService().saveGlobalProperty(defaultLocale);\n\t}",
"public Locale getLocale() {\n\t\treturn null;\n\t}",
"public Locale getLocale() {\n return locale;\n }",
"private void ensureLanguageIsDefined() {\n SharedPreferences sharedPref;\n SharedPreferences.Editor editor;\n sharedPref = getSharedPreferences(\"LlPreferences\", Context.MODE_PRIVATE);\n if (sharedPref.getBoolean(\"app_need_lang_def\", true) == true) {\n startActivity(chooseLanguageIntent);\n }\n }",
"ULocale getLocale() {\n\t\treturn locale;\n\t}",
"@RequestMapping(value = \"/localechange/{locale}\", method = RequestMethod.GET)\r\n public String changeLocale(@PathVariable(\"locale\") String locale, HttpServletRequest request, HttpServletResponse response) {\r\n if (locale != null) {\r\n if (locale.equals(\"de\")) {\r\n RequestContextUtils.getLocaleResolver(request).setLocale(request, response, Locale.GERMAN);\r\n } else {\r\n RequestContextUtils.getLocaleResolver(request).setLocale(request, response, Locale.ENGLISH);\r\n }\r\n }\r\n return \"redirect:/home\";\r\n }",
"@Bean\n\tpublic LocaleResolver localResolver(){\n\t\tSessionLocaleResolver slr = new SessionLocaleResolver();\n\t\tslr.setDefaultLocale(Locale.FRANCE);\n\t\treturn slr;\n\t}",
"Language(Locale locale) {\n this.locale = locale;\n }",
"private Locale getBotLocale( HttpServletRequest request )\r\n {\r\n String strLanguage = request.getParameter( PARAMETER_LANGUAGE );\r\n\r\n if ( strLanguage != null )\r\n {\r\n return new Locale( strLanguage );\r\n }\r\n\r\n return LocaleService.getDefault( );\r\n }",
"@Bean\n public LocaleResolver localeResolver() {\n SessionLocaleResolver slr = new SessionLocaleResolver();\n slr.setDefaultLocale(Locale.US);\n return slr;\n }",
"public boolean enableLocaleOverride( ) {\n\t\ttry {\n\t\t\tURIBuilder builder = new URIBuilder( I18N_URL );\n\t\t\tbuilder.addParameter( \"locale\", \"en_US\" );\n\t\t\tHttpGet get = new HttpGet( builder.build( ).toURL( ).toString( ) );\n\t\t\tString result = EntityUtils.toString( this.httpClient( ).execute( get ).getEntity( ) ).trim( );\n\t\t\treturn result.contains(\"Succeeded\" );\n\t\t} catch( Exception e ) {\n\t\t\tthrow new FitbitExecutionException( e );\n\t\t}\n\t}",
"@BeforeEach\n public void setUp() throws Exception\n {\n \tLocale.setDefault( Locale.ENGLISH );\n }"
] | [
"0.7620922",
"0.7459935",
"0.7160887",
"0.70731646",
"0.70731646",
"0.70535576",
"0.6952559",
"0.68781954",
"0.6826059",
"0.6763278",
"0.67029405",
"0.66878754",
"0.6676839",
"0.6635477",
"0.6593546",
"0.6593444",
"0.65832055",
"0.65681165",
"0.6547331",
"0.65346426",
"0.65320456",
"0.64967877",
"0.64760894",
"0.6444769",
"0.64162636",
"0.63750774",
"0.635061",
"0.63205165",
"0.630959",
"0.6309212",
"0.6299279",
"0.6286676",
"0.62098134",
"0.620874",
"0.6194567",
"0.6194567",
"0.6194567",
"0.6192619",
"0.6192619",
"0.6184874",
"0.61757207",
"0.6169927",
"0.6168904",
"0.61674196",
"0.61663306",
"0.6152183",
"0.61430174",
"0.6140904",
"0.6119404",
"0.60958064",
"0.6083667",
"0.60805845",
"0.6063795",
"0.60574234",
"0.6045388",
"0.60422",
"0.6035479",
"0.6022978",
"0.60196733",
"0.6015328",
"0.60147804",
"0.600687",
"0.59917736",
"0.5989833",
"0.5984012",
"0.59825224",
"0.59802294",
"0.5975448",
"0.5951599",
"0.5932547",
"0.59314704",
"0.59266436",
"0.5921953",
"0.5907795",
"0.59069",
"0.58978707",
"0.58959955",
"0.5883666",
"0.5881297",
"0.58729106",
"0.58729106",
"0.5849976",
"0.5845935",
"0.5843801",
"0.58380914",
"0.58355683",
"0.582885",
"0.58230317",
"0.5822361",
"0.58193815",
"0.58173454",
"0.5813232",
"0.58037204",
"0.57996655",
"0.5795192",
"0.57892907",
"0.5783517",
"0.57809675",
"0.5772326",
"0.5767955"
] | 0.75385076 | 1 |
clear cache of setting variables | public static void clearCache() {
sInstance.mSettings.clear();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static void clearCache() {\n CONFIG_VALUES = null;\n RUN_MODE = null;\n }",
"public final void clear() {\r\n variablesCache.clear();\r\n }",
"void reset(){\n if (vars!=null){\n vars.clear();\n }\n if (gVars!=null){\n gVars.clear();\n }\n }",
"public synchronized static void resetCache() {\n prefixes = null;\n jsonldContext = null;\n }",
"public void clearCache() {\n/* 105 */ this.cachedRed = null;\n/* 106 */ this.cachedUsr2dev = null;\n/* 107 */ this.cachedGn2dev = null;\n/* 108 */ this.cachedBounds = null;\n/* */ }",
"public static void reset() {\n\t\tCAUGHT.clear();\n\t\tLOAD_CACHE.clear();\n\t}",
"public void resetVariables(){\n\t\tthis.queryTriplets.clear();\n\t\tthis.variableList.clear();\n\t\tthis.prefixMap.clear();\n\t}",
"void resetCache();",
"void clearCache();",
"void clearCache();",
"public static void clearCache(){\n cache.clear();\n cache2.clear();\n }",
"public void clear() {\n cache.clear();\n }",
"public void clearCache();",
"public void clearCache() {\n\tmyCachedCrum = null;\n\tmyCachedRoot = null;\n\tmyCachedPath = MuSet.make();\n/*\nudanax-top.st:13116:CanopyCache methodsFor: 'operations'!\n{void} clearCache\n\t\"Clear the cache because the canopy has\n\t changed. This ought to destroy the cachedPath. \n\t This must be cleared after every episode!!!!!!\"\n\tmyCachedCrum _ NULL.\n\tmyCachedRoot _ NULL.\n\tmyCachedPath _ MuSet make.!\n*/\n}",
"public void clearCache() {\n constructorCache.clear();\n }",
"public static void clearCache() {\n\t\tclassNamesToPersistIds = null;\n\t\tclassesToPersistIds = null;\n\t}",
"public static void clearCache() {\r\n types = null;\r\n typesById = null;\r\n updatedBuiltinTypes = false;\r\n ChangeLogTypeBuiltin.internal_clearCache();\r\n }",
"private void resetTemporary(){\n temporaryConstants = null;\n temporaryVariables = null;\n }",
"public static void clearAllCache() {\n page_cache.clear();\n key_relate.clear();\n }",
"private void clearResetCache() {\n for(IoBuffer buf : resetCache) {\n buf.free();\n }\n resetCache = null;\n }",
"public void clearCache() {\r\n \t\ttagInfoCache.clear();\r\n \t\ttldElementsByPrefix.clear();\r\n \t}",
"@Test\n public void testClear() {\n System.out.println(\"clear\");\n Setting s = Setting.factory();\n Setting s1 = Setting.factory();\n Setting s2 = Setting.factory();\n Setting s3 = Setting.getSetting(\"test1\");\n assertFalse(Setting.isNotUsed(\"test1\"));\n Setting s4 = Setting.getSetting(\"test1\");\n assertEquals(s3, s4);\n Setting.clear();\n assertTrue(Setting.isNotUsed(\"test1\"));\n\n }",
"public void clear() {\n\t\tthis.cache.clear();\n\t}",
"public void clear() {\n helpers.clear();\n islandKeysCache.clear();\n setDirty();\n }",
"public void reset() {\n\t\tvar.clear();\n\t\tname.clear();\n\t}",
"public void reset() {\n\t\tfor (Entry<TileCoordinate, DijkstraNode> entry: this.cache.entrySet()) {\n\t\t\tentry.getValue().reset();\n\t\t}\n\t}",
"public void clearCache() {\n reflectorCache.clear();\n }",
"public void clear() {\n this.cache.clear();\n }",
"protected void resetCache() {\n if (cacheResults && initialized) {\n dataCache.clear();\n }\n }",
"public static void clearCache() {\n cacheKeys.clear();\n cacheValues.clear();\n }",
"public void clearCachedArguments() {\n\t\tObject[] args = getCachedArguments();\n\t\tfor (int i = 0; i < args.length; i++) {\n\t\t\targs[i] = null;\n\t\t}\n\t}",
"private void clearLocals() {\n this.map = null;\n this.inputName = null;\n }",
"@Override\n public void clearCache() {\n }",
"private static void _reset() {\n // clear metrics\n HystrixCommandMetrics.reset();\n HystrixThreadPoolMetrics.reset();\n HystrixCollapserMetrics.reset();\n // clear collapsers\n HystrixCollapser.reset();\n // clear circuit breakers\n HystrixCircuitBreaker.Factory.reset();\n HystrixPlugins.reset();\n HystrixPropertiesFactory.reset();\n currentCommand.set(new LinkedList<HystrixCommandKey>());\n }",
"void clearValues() {\n percentMissing = \"-1\";\n PICValue = \"-1\";\n maf = \"-1\";\n phenoDataSummary = \"-1\";\n genoSummaryScript = sharedInformation.getWorkingDirectory() + scriptsRelativePath + dataSummaryScriptName;\n phenoSummaryScript = sharedInformation.getWorkingDirectory() + scriptsRelativePath + phenoSummaryScriptName;\n enginePath = sharedInformation.getWorkingDirectory() + rEngineRelativePath;\n }",
"public void removeVars(){\n this.values = new HashMap<>();\n }",
"void reset() {\n errors.clear();\n variables.clear();\n }",
"void resetCacheCounters();",
"private void setup()\n\t{\n\t\tif(values == null)\n\t\t\tvalues = new HashMap<>();\n\t\telse\n\t\t\tvalues.clear();\n\t}",
"private void flushCache()\n {\n cachedDecomposition = null;\n cachedCentroid = null;\n cachedBounds = null;\n }",
"private void reset() {\n\t\tfiles = new HashMap<>();\n\t\tparams = new HashMap<>();\n\t}",
"private void resetCache () {\n synchronized (this) {\n resourcesCache = null;\n }\n support.firePropertyChange(PROP_RESOURCES, null, null);\n }",
"public void clearCache() {\n\n\t\t// clearing form soft reference\n\t\tif (softCache != null) {\n\t\t\tsoftCache.clear();\n\t\t}\n\n\t\t// clearing from cache directory\n\t\tdeleteCacheFiles();\n\n\t}",
"public abstract void clearCache();",
"public static void clearCache() {\n CACHE.remove();\n }",
"public void reset() {\n _valueLoaded = false;\n _value = null;\n }",
"public static void clear() {\n SharedPrefWrapper sharedPref = SharedPrefWrapper.getInstance();\n sharedPref.clearWeiboPref();\n }",
"public static void clearAllSavedUserData() {\n cacheUser = null;\n cacheAccessToken = null;\n getSharedPreferences().edit().clear().commit();\n }",
"protected void clearCaches() {\n DescriptorFactory.clearInstance();\n ObjectTypeFactory.clearInstance();\n TypeQualifierApplications.clearInstance();\n TypeQualifierAnnotation.clearInstance();\n TypeQualifierValue.clearInstance();\n // Make sure the codebases on the classpath are closed\n AnalysisContext.removeCurrentAnalysisContext();\n Global.removeAnalysisCacheForCurrentThread();\n MethodInfo.clearCaches();\n if (classPath != null) {\n classPath.close();\n }\n }",
"public void reset() {\r\n properties.clear();\r\n }",
"@Test\n public void clear() {\n cache.put(1, \"a\");\n cache.put(2, \"b\");\n changesOf(0, 0, 2, 0);\n cache.clear();\n changesOf(0, 0, 0, 0);\n }",
"public void resetCache() {\n\t\tlogicClassNames = new HashMap<String, String>();\n\t}",
"public void clearForTesting() {\n mPreferences.edit().clear().apply();\n }",
"public static void clearCache() {\n sHardBitmapCache.clear();\n sSoftBitmapCache.clear();\n }",
"public final void clearPropertyCache()\n {\n this.cache.clear();\n }",
"public void resetValues() {\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putString(CUREDIFFICULTY, null);\n editor.putInt(CURETARGETSCORE, 0);\n editor.putInt(CURRSCOREFINDCURE, 0);\n editor.apply();\n System.out.println(sharedPreferences.getAll());\n\n }",
"public void clearCache() {\n textureCache.clear();\n modelCache.clear();\n blockModelCache.clear();\n }",
"public void clearLocalCache()\n/* */ {\n/* 345 */ super.clearCache();\n/* */ }",
"public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}",
"public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}",
"public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}",
"public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}",
"public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}",
"public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}",
"public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}",
"public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}",
"public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}",
"public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}",
"public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}",
"public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}",
"public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}",
"public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}",
"public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}",
"public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}",
"public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}",
"public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}",
"public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}",
"public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}",
"public void clearAllPreferenceData() {\n sharedPreferences.edit().clear().apply();\n }",
"public void clear() {\n cache = new BigDecimal[cache.length];\n }",
"public void clearCache() {\n sHardBitmapCache.clear();\n sSoftBitmapCache.clear();\n }",
"@Override\r\n protected void clearSettings() {\r\n \r\n mfile = null;\r\n rmode = null;\r\n cmap = null;\r\n cmapMin = 0.0f;\r\n cmapMax = 0.0f;\r\n super.clearSettings();\r\n \r\n }",
"public void resetCounters()\n {\n cacheHits = 0;\n cacheMisses = 0;\n }",
"@Override\n public void clearSharedPrefs() {\n\n }",
"public void limpaCache()\n\t{\n\t\tpoolMensagens.clear();\n\t}",
"public void reset() {\n counters = null;\n counterMap = null;\n counterValueMap = null;\n }",
"public static void cleanseInits() {\n delayDuration = null;\n timerFrequency = null;\n numProcessorThreads = null;\n maxProcessorTasks = null;\n }",
"public void invalidateCaches() {\n cfgCache.invalidateAll();\n analysisCache.invalidateAll();\n }",
"protected void reset()\n {\n this.shapeDataCache.removeAllEntries();\n this.sector = null;\n }",
"public void clearCache(int cacheSize) {\n\t\tparamCache = new Parameters[cacheSize];\n\t\tcommandCache = new JasminCommand[cacheSize];\n\t\tcached = new boolean[cacheSize];\n\t}",
"public void dereferenceCache() {\n this.cache = null;\n }",
"public static void clear(){\n preferences.edit().clear().apply();\n }",
"private void clearCache() {\r\n for (int i = 1; i < neurons.length; i++) {\r\n for (int j = 0; j < neurons[i].length; j++) {\r\n neurons[i][j].clearCache();\r\n }\r\n }\r\n }",
"public static void reset()\n\t\t{\n\t\t\tfeatureSet = new THashMap();\n\t\t\tfeatureIds = new TObjectIntHashMap();\n\t\t\tnextID = 1;\t\t\t\n\t\t}",
"public void cleanDescriptorCache() {\n _descriptorCache = new DescriptorCacheImpl();\n }",
"public void reset() {\r\n for (int i = 0, tot = buckets.length; i < tot; i++) {\r\n CacheData<K, V> pair = getCacheData(i);\r\n if (pair != null) {\r\n pair.reset();\r\n }\r\n }\r\n }",
"public void resetValues() {\n\t\tJavaValue[] publicJavaValues = this.publicVariables.values().toArray(new JavaValue[this.publicVariables.size()]);\n\t\tJavaValue[] privateJavaValues = this.privateVariables.values().toArray(new JavaValue[this.privateVariables.size()]);\n\n\t\tfor(int i = 0; i < publicJavaValues.length; i++) {\n\t\t\tpublicJavaValues[i].reset();\n\t\t}\n\n\t\tfor(int i = 0; i < privateJavaValues.length; i++) {\n\t\t\tprivateJavaValues[i].reset();\n\t\t}\n\t}",
"public void clearCache() {\n mCache.clear();\n }",
"public static void clearAllPreferences(Context context){\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(context);\n SharedPreferences.Editor editor = preferences.edit();\n editor.clear();\n editor.commit();\n }",
"public static void stopCaching() {\n\t\t/*\n\t\t * remove existing cache. Also, null implies that they are not be cached\n\t\t */\n\t\tfor (ComponentType aType : ComponentType.values()) {\n\t\t\tif (aType.preLoaded == false) {\n\t\t\t\taType.cachedOnes = null;\n\t\t\t}\n\t\t}\n\t}"
] | [
"0.80777025",
"0.7594435",
"0.7272021",
"0.7198835",
"0.7171816",
"0.71595365",
"0.6953489",
"0.6941732",
"0.688959",
"0.688959",
"0.68577725",
"0.6822574",
"0.67993087",
"0.67665833",
"0.67428976",
"0.6706643",
"0.6690055",
"0.66584665",
"0.6647021",
"0.66145504",
"0.6611435",
"0.66030526",
"0.6543986",
"0.65287906",
"0.6522691",
"0.65192574",
"0.64763635",
"0.647228",
"0.6462445",
"0.6459506",
"0.64551324",
"0.6452531",
"0.6450244",
"0.6449356",
"0.6445653",
"0.643659",
"0.6421982",
"0.6401527",
"0.63970685",
"0.63821095",
"0.6381998",
"0.637879",
"0.6366145",
"0.63379854",
"0.6332963",
"0.6325025",
"0.6321943",
"0.6312894",
"0.63057995",
"0.6302853",
"0.62794757",
"0.6270656",
"0.6270442",
"0.6269112",
"0.6268696",
"0.62481517",
"0.62402487",
"0.6228925",
"0.6212072",
"0.6212072",
"0.6212072",
"0.6212072",
"0.6212072",
"0.6212072",
"0.6212072",
"0.6212072",
"0.6212072",
"0.6212072",
"0.6212072",
"0.6212072",
"0.6212072",
"0.6212072",
"0.6212072",
"0.6212072",
"0.6212072",
"0.6212072",
"0.6212072",
"0.6212072",
"0.6211363",
"0.620958",
"0.6204652",
"0.62040454",
"0.62020326",
"0.61992306",
"0.6193582",
"0.61769783",
"0.6174567",
"0.6171138",
"0.6166763",
"0.6164093",
"0.6160476",
"0.6148121",
"0.61289245",
"0.612829",
"0.611977",
"0.61155784",
"0.6113244",
"0.61105406",
"0.60860044",
"0.6085055"
] | 0.7592202 | 2 |
get an integer settings value by key | public int getInt(String key, int defValue) {
return getInt(Global.getContext(), key, defValue);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getSettingByKey(String key);",
"int getInt(String key);",
"public int getPropertyInt(String key);",
"int getInt( String key, int def);",
"String get(Integer key);",
"private int getInt(setting setting) {\n return setting.getValueAsInt();\n }",
"private static int getIntegerProperty(String key) {\n String value = PROPERTIES.getProperty(key);\n // if the key is not found, Properties will return null and we should return a default value\n if (value == null) {\n return 0;\n }\n return Integer.parseInt(value);\n }",
"public int getInt(String key) {\n int value = 0;\n try {\n value = mConfigurations.getInt(key);\n } catch (JSONException e) {\n sLogger.error(\"Error retrieving integer from JSONObject.\");\n }\n return value;\n }",
"public static int getInt(String key) throws UnknownID, ArgumentNotValid {\n\t\tString value = get(key);\n\t\ttry {\n\t\t\treturn Integer.parseInt(value);\n\t\t} catch (NumberFormatException e) {\n\t\t\tString msg = \"Invalid setting. Value '\" + value + \"' for key '\" + key\n\t\t\t\t\t+ \"' could not be parsed as an integer.\";\n\t\t\tthrow new ArgumentNotValid(msg, e);\n\t\t}\n\t}",
"public int get(int key) {\n return 1;\n }",
"public int getMandatoryInt(String key) throws ConfigNotFoundException;",
"private String get(String key)\n {\n return settings.getProperty(key);\n }",
"private int getValue(final String name, final String key) {\n\t\treturn Integer.parseInt(bundleConstants.getString(name + SEPERATOR + key));\n\t}",
"public int get(int key) {\n return store[key]; // get the value for the key\n }",
"public int getInt(String key)\n {\n return getInt(key, 0);\n }",
"public int getInt( String key )\n {\n int value = 0;\n try\n {\n if ( config != null )\n {\n value = config.getInt( key );\n LOG.debug( \"getInt name [{}] value [{}]\", key, value );\n }\n else\n {\n LOG.warn( \"getInt invalid config, can't read prop [{}]\", key );\n }\n }\n catch (org.apache.commons.configuration.ConversionException e)\n {\n LOG.debug( \"getInt can't read prop [{}], exception [{}]\", key, e );\n }\n return value;\n }",
"public Integer getIntegerSetting(String name) {\n\t\treturn integers.get(name);\n\t}",
"public Integer getInteger(String key, Integer defaultValue);",
"public int getInt(String key, int defaultValue);",
"int getInt(String key, int defaultValue);",
"public Object get(String key) {\r\n\t\treturn settings.get(key);\r\n\t}",
"public static int getIntForKey(String key)\n\t{\n\t\treturn PreferencesModel.instance().getUserIntPref(key, -1);\n\t}",
"public Integer getInt(K key) throws ClassCastException;",
"public static int getIntParam(String key) throws InvalidParam {\n return getCurrentConfig().getInt(key);\n }",
"public Integer getIntegerData(String key) {\n return pref.getInt(key, 0);\n }",
"public static int getIntPreference(Context ctx, String key) {\n sharedPreferences = PreferenceManager.getDefaultSharedPreferences(ctx);\n\n return sharedPreferences.getInt(key, 0);\n }",
"String get(String key) {\n return settings.get(key);\n }",
"public int getInteger(String key) {\n\t\tint defaultValue = 0;\n\t\tif (getDefault(key) != null)\n\t\t\tdefaultValue = (Integer) getDefault(key);\n\t\tString sp = internal.getProperty(key);\n\t\tif (sp == null) {\n\t\t\treturn defaultValue;\n\t\t}\n\t\tint value;\n\t\ttry {\n\t\t\tvalue = Integer.parseInt(sp);\n\t\t} catch (NumberFormatException ex) {\n\t\t\tinternal.remove(key);\n\t\t\treturn defaultValue;\n\t\t}\n\t\treturn value;\n\t}",
"public int getIntegerProperty(String key) {\n String val = getProperty(key);\n return (null == val ? 1 : Integer.parseInt(val));\n }",
"public\n int getProperty_int(String key)\n {\n if (key == null)\n return 0;\n\n String val = getProperty(key);\n\n if (val == null)\n return 0;\n\n int ret_int = 0;\n try\n {\n Integer workint = new Integer(val);\n ret_int = workint.intValue();\n }\n catch(NumberFormatException e)\n {\n ret_int = 0;\n }\n\n return ret_int;\n }",
"String getSettingByKey(HawkularUser user, String key);",
"public int getInt(String key) {\n\t\tString value = getString(key);\n\t\t\n\t\ttry {\n\t\t\treturn Integer.parseInt(value);\n\t\t}\n\t\tcatch( NumberFormatException e ) {\n\t\t\tthrow new IllegalStateException( \"Illegal value for integer configuration parameter: \" + key);\n\t\t}\n\t}",
"public int get(int key) {\n int index = keys.indexOf(key);\n return index < 0? -1 : values.get(index);\n }",
"public int getIntegerProperty(String key) {\n\t\treturn Integer.parseInt(this.getProperty(key));\n\t}",
"public int getPropertyInt(String key, int defaultValue);",
"public int getInt(String key) {\n return Integer.parseInt(mMap.get(key));\n }",
"protected static int getVariable(String variableKey) {\r\n\t\t\r\n\t\tString valueFromPropertyFile = Settings.getProperty(variableKey);\r\n\t\t\r\n\t\tif (valueFromPropertyFile.charAt(0) == 'R') { // random value requested\r\n\t\t\t\r\n\t\t\treturn random.nextInt(getUpperBound(valueFromPropertyFile) + 1);\r\n\t\t\t\r\n\t\t} else { // absolute value specified\r\n\t\t\t\r\n\t\t\treturn new Integer(valueFromPropertyFile);\r\n\t\t}\r\n\t\t\r\n\t}",
"public static int getIntProperty(String key) {\r\n\t\treturn getIntProperty(key, 0);\r\n\t}",
"int getInt(String key) throws KeyValueStoreException;",
"public int getAsInt(String key) {\n return getAsInt(key, 0);\n }",
"@VisibleForTesting\n public int injectGetGlobalSettingInt(String key, int def) {\n return Settings.Global.getInt(this.mContext.getContentResolver(), key, def);\n }",
"public int get(int key) {\n return data[key % KEY];\n }",
"String getSettingByKey(String key, String defaultValue);",
"public static int getInt(Tag tag){\n makeInstance();\n return settingsFile.getInt(tag);\n }",
"public int get(int id) {\r\n return configurations[id];\r\n }",
"public int getInteger(String key) {\r\n try {\r\n return Integer.decode(getString(key)).intValue();\r\n }\r\n catch (Exception e) {\r\n return 0;\r\n }\r\n }",
"public static int get(int key) {\n\t\t// your code here\n\t\tif (map.containsKey(key)) {\n\t\t\tint value = map.get(key);\n\t\t\tmap.remove(key);\n\t\t\tmap.put(key,value);\n\t\t\treturn map.get(key);\n\t\t} else\n\t\t\treturn -1;\n\t}",
"public String getSetting(String key) throws SQLException {\n\t\treturn db.selectItem(\"value\", \"settings\", \"`key`='\"+key+\"'\");\n\t}",
"public static int getInt(String key, int i) {\n\t\tString token = getSystemString(key);\n\t\tif (token == null) {\n\t\t\treturn i;\n\t\t}\n\t\treturn Integer.parseInt(token);\n\t}",
"public int getIntValue(String keyName)\n {\n return Integer.parseInt(getValue(keyName));\n }",
"String getValue(String type, String key);",
"public int getInt(String urlKey) {\n\t\tint value = 0;\n\t\tString text = null;\n\t\ttry{\n\t\t\ttext = properties.getProperty(urlKey).trim();\n\t\t\tvalue = Integer.parseInt(text);\n\t\t}catch(Exception e){\n\t\t\tLOGGER.error(\"Couldn't parse \"+urlKey +\":\" + text+\"\\n\"+e);\n\t\t}\n\t\treturn value;\t\t\t\t\n\t}",
"public int getInt(String key) {\n Object value = get(key);\n return ((value instanceof Long) ? ((Long)value).intValue() : 0);\n }",
"public int getInteger(short dictionaryKey) {\n\t\treturn intsMap.get(dictionaryKey);\n\t}",
"@Override\n public int getInt(String key) {\n return random.nextInt(RANDOM_INT_BOUND);\n }",
"int value(String name);",
"public static int getInt(final String key) {\r\n if (PROP == null) {\r\n throw new RuntimeException(\"Config hasn't been initialized yet.\");\r\n }\r\n if (PROP.containsKey(key))\r\n return Integer.parseInt(PROP.getProperty(key));\r\n else\r\n throw new RuntimeException(\"No config key found for [\" + key + \"].\");\r\n }",
"public int getInt(String key) throws AgentBuilderRuntimeException {\n\t\treturn getInteger(key).intValue();\n\t}",
"public static Integer getInteger(String inKey) {\r\n Object o = getProperties().get(inKey);\r\n\r\n if (o == null) {\r\n if (LOG.isDebugEnabled()) {\r\n LOG.debug(\"getInteger: \" + inKey + \", result null\");\r\n }\r\n return null;\r\n }\r\n\r\n if (LOG.isDebugEnabled()) {\r\n LOG.debug(\"getInteger: \" + inKey + \", result \" + o);\r\n }\r\n if (o instanceof Integer) {\r\n return (Integer) o;\r\n }\r\n if (!(o instanceof String)) {\r\n throw new IllegalArgumentException(\"Config property: \" + inKey\r\n + \" is not an Integer or String: \" + o.getClass());\r\n }\r\n try {\r\n return new Integer((String) o);\r\n } catch (Exception e) {\r\n LOG.warn(\"Not an integer value: \" + o + \" for property \" + inKey);\r\n return null;\r\n }\r\n }",
"Integer getValue();",
"Integer getValue();",
"public int getAsInt(String key, int defaultVal) {\n String val = entries.getProperty(key);\n return val == null ? defaultVal : Integer.parseInt(val);\n }",
"@Override\n public int getInt(String key, int defaultVal) {\n return mSharedPreferences.getInt(key, defaultVal);\n }",
"public int get(int key) {\n if(arr[key] == -1)\n return 0;\n else if(arr[key] == 0)\n return -1;\n else return arr[key];\n }",
"String getSettingByKey(HawkularUser user, String key, String defaultValue);",
"public String getSettings(String settingsKey) {\n\t\tString settingsValue = \"\";\n\t\ttry {\n\t\t\tCursor settings = localDB.query(true, TABLE_SETTINGS, null,\n\t\t\t\t\tKEY_SETTINGS_ID + \" = ?\", new String[] { settingsKey },\n\t\t\t\t\tnull, null, null, null);\n\t\t\tif ((settings.getCount() == 0) || !settings.moveToFirst()) {\n\t\t\t\treturn \"\";\n\t\t\t}\n\t\t\tsettingsValue = settings.getString(SETTINGS_VALUE_COLUMN);\n\t\t} catch (SQLiteException ex) {\n\t\t\tLog.d(TAG, ex.getMessage());\n\t\t}\n\t\tLog.v(TAG, \"setting: \" + settingsValue);\n\t\treturn settingsValue;\n\t}",
"protected int getIntPrefOrDefault(String key, int defValue) {\n try {\n return getPrefs().getInt(key, defValue);\n } catch (ClassCastException ex) {\n Log.w(\"SpeakerPhone_preference\", \"Bad preference: \" + key, ex);\n return defValue;\n }\n }",
"public String get(int key) {\n String sql = \"SELECT data_val FROM data_map WHERE data_key = ?\";\n\n String value = null;\n try (Connection con = this.connect();\n PreparedStatement pstmt = con.prepareStatement(sql)) {\n pstmt.setInt(1, key);\n ResultSet rs = pstmt.executeQuery();\n\n if (!rs.isClosed()) {\n value = rs.getString(\"data_val\");\n rs.close();\n }\n }\n catch (SQLException e) {\n value = null;\n }\n\n return value;\n }",
"Object get(Object key);",
"StoragePrimitive get(String key);",
"private int getInt(String whatProperty, String levelConfigFilePath) {\n return getInt(levelConfig, whatProperty, levelConfigFilePath);\n }",
"int getKey();",
"int getKey();",
"public static int get(String s) {\n int buffer = map.get(s);\n return (int) buffer;\n }",
"public static int getIntValue(final String prefFile, final String key) {\n return getSharedPreferences(prefFile).getInt(key, 0);\n }",
"public static String get(String key) throws UnknownID, IOFailure, ArgumentNotValid {\n\t\tArgumentNotValid.checkNotNullOrEmpty(key, \"String key\");\n\t\tString val = System.getProperty(key);\n\t\tif (val != null) {\n\t\t\treturn val;\n\t\t}\n\n\t\t// Key not in System.properties try loaded data instead\n\t\tsynchronized (fileSettingsXmlList) {\n\t\t\tfor (SimpleXml settingsXml : fileSettingsXmlList) {\n\t\t\t\tif (settingsXml.hasKey(key)) {\n\t\t\t\t\treturn settingsXml.getString(key);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n/*\n\t\t// Key not in file based settings, try classpath settings instead\n\t\tsynchronized (defaultClasspathSettingsXmlList) {\n\t\t\tfor (SimpleXml settingsXml : defaultClasspathSettingsXmlList) {\n\t\t\t\tif (settingsXml.hasKey(key)) {\n\t\t\t\t\treturn settingsXml.getString(key);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n */\n\t\tthrow new UnknownID(\"No match for key '\" + key + \"' in settings\");\n\t}",
"public String getParameterValue(int key){\n return parameters.get(key).value;\n }",
"<S> S getSetting(Setting<S> setting);",
"public int get(int key) {\n\t\tDLLNode curr = map.get(key);\n\n\t\tif (curr != null) {\n\t\t\tupdateUsage(curr);\n\t\t\treturn curr.val;\n\t\t}\n\n\t\treturn -1;\n\t}",
"public int get(String key, int def)\n {\n try\n {\n String val = get(key);\n return Integer.parseInt(val);\n }\n catch(Exception e)\n {\n return def;\n }\n }",
"public Object get(String key) {\n return options.get(key);\n }",
"int getInfoOrDefault(\n int key,\n int defaultValue);",
"public Integer getInt(String key)\n\t{\n\t\tLong l = getLong(key);\n\t\tif(l == null)\n\t\t\treturn null;\n\t\treturn l.intValue();\n\t}",
"public static int getIntParam(String key, int dfault) {\n Configuration cur = getCurrentConfig();\n if (cur == null) {\n return dfault;\n }\n return cur.getInt(key, dfault);\n }",
"private int get(Map<T, Integer> state, T key) {\n return state.getOrDefault(key, 0);\n }",
"public Integer getInteger(String key) throws AgentBuilderRuntimeException {\n\t\tif (!extContainsKey(key))\n\t\t\tthrow new AgentBuilderRuntimeException(\n\t\t\t\t\t\"Dictionary does not contain key \\\"\" + key + \"\\\"\");\n\t\treturn (Integer) extGet(key);\n\t}",
"public static int getInt(Context context, String key, int defValue) {\r\n\t\tif (sInstance != null && sInstance.mSettings.containsKey(key)) {\r\n\t\t\treturn (Integer) sInstance.mSettings.get(key);\r\n\t\t}\r\n\t\t\r\n\t\tint val = defValue;\r\n\t\t\r\n\t\ttry {\r\n\t\t\tval = getPreferences(context).getInt(key, defValue);\r\n\t\t} catch(ClassCastException e) {\r\n\t\t\tDebug.logException(e);\r\n\t\t}\r\n\t\t\r\n\t\tif (sInstance != null) {\r\n\t\t\tsInstance.mSettings.put(key, val);\r\n\t\t}\r\n\t\t\r\n\t\treturn val;\r\n\t}",
"private int getIntegerProperty(ParameterList key, int defaultValue) \n throws NumberFormatException, NullPointerException, MissingOptionException{\n try {\n boolean keyPresent = fileParameters.containsKey(key.name);\n String strValue = keyPresent ? fileParameters.getProperty(key.name).replaceAll(\"\\\\s\", \"\") : null;\n if (!keyPresent && key.mandatory) {\n throw new MissingOptionException(\"The input parameter (\" + key.name + \") was not found\");\n }\n else if(!keyPresent || strValue.equals(\"\")){\n loadedParametersLog.append(key.name).append(\"=\").append(defaultValue).append(\" (DEFAULT)\\n\");\n return defaultValue;\n }\n loadedParametersLog.append(key.name).append(\"=\").append(strValue).append(\"\\n\");\n return Integer.parseInt(strValue);\n } catch (NumberFormatException e) {\n throw new NumberFormatException(e.getMessage() + \"\\nThe input parameter (\" + key.name + \") could not be converted to int.\");\n } catch (NullPointerException e) {\n throw new NullPointerException(e.getMessage() + \"\\nThe parameter file was not initialized.\");\n }\n }",
"public String get(int key){\n\t\treturn(hashMap[key]);\t\t\n\t}",
"public static Integer getPreferencesInteger(final Context context,\n\t\t\tfinal String key) {\n\t\tInteger result;\n\t\ttry {\n\t\t\tfinal SharedPreferences sharedPreferences = PreferenceManager\n\t\t\t\t\t.getDefaultSharedPreferences(context);\n\t\t\tresult = sharedPreferences.getInt(key, 0);\n\t\t} catch (Exception exception) {\n\t\t\tresult = null;\n\t\t}\n\t\treturn result;\n\t}",
"public int get(int key) {\n if(!map.containsKey(key)) return -1;\n return map.get(key);\n }",
"public static int GetPreferByInt(Context context, String key) {\n\t\tSharedPreferences mPrefer = PreferenceManager\n\t\t\t\t.getDefaultSharedPreferences(context);\n\t\treturn mPrefer.getInt(key, -1);\n\t}",
"public int getValue();",
"public int getValue();",
"public static final int getIntegerParam(Map<String,String> params, String key, int def) {\n\t\ttry {\n\t\t\treturn Integer.parseInt(params.get(key));\n\t\t} catch (Exception e) {\n\t\t\treturn def;\n\t\t}\n\t}",
"public String getPreference(String key) {\n return preferences.get(key).value;\n }",
"private int getIntegerValueByBitMap(LinkedHashMap<String, Integer> bitMap) {\r\n\t\r\n\tint identityInfoValue = 0;\r\n if(bitMap != null && bitMap.size() > 0) {\r\n \tStringBuilder sb = new StringBuilder();\r\n \t\r\n \tsb.append(bitMap.get(ProjectConstants.Asia)).append(bitMap.get(ProjectConstants.Korea)).append(bitMap.get(ProjectConstants.Europe))\r\n \t.append(bitMap.get(ProjectConstants.Japan)).append(bitMap.get(ProjectConstants.America));\r\n \r\n \tif(sb != null) {\r\n \t\t int num = Integer.parseInt(sb.toString().replaceFirst(\"^0+(?!$)\", \"\"));\r\n \t\t identityInfoValue = convertBinaryToDecimal(num);\r\n \t}\r\n }\r\n return identityInfoValue;\r\n}",
"protected abstract int getValue(int paramInt);",
"public int get(int key) {\n int index = key % n;\n MapNode node = keys[index];\n for (int i =0; i < node.list.size(); ++i) {\n if (node.list.get(i) == key) {\n return vals[index].list.get(i);\n }\n }\n\n return -1;\n }",
"public Integer getInteger(String key) {\n if (!jsonData.has(key))\n return null;\n try {\n return jsonData.getInt(key);\n } catch (Exception ex) {\n return null;\n }\n }"
] | [
"0.7609322",
"0.71861625",
"0.70974016",
"0.70722777",
"0.70477885",
"0.6907624",
"0.6896215",
"0.68531877",
"0.68510264",
"0.6806792",
"0.67786956",
"0.675734",
"0.66867816",
"0.66349673",
"0.66160125",
"0.6615189",
"0.65907055",
"0.6590598",
"0.6590328",
"0.65745926",
"0.65724385",
"0.657178",
"0.65446144",
"0.65056705",
"0.6504256",
"0.65008336",
"0.6484415",
"0.64757156",
"0.64466417",
"0.6443918",
"0.6430633",
"0.64149845",
"0.63624406",
"0.6348418",
"0.632584",
"0.6308754",
"0.62980896",
"0.62957555",
"0.6272406",
"0.6244792",
"0.6237282",
"0.6194551",
"0.61940205",
"0.6189294",
"0.61612856",
"0.61454713",
"0.61369395",
"0.6133186",
"0.6107303",
"0.608258",
"0.6080975",
"0.6080667",
"0.6058359",
"0.6049894",
"0.6047435",
"0.60377985",
"0.60195494",
"0.59977025",
"0.5985816",
"0.5985249",
"0.5985249",
"0.59575564",
"0.59539545",
"0.593908",
"0.5929751",
"0.59160256",
"0.59143835",
"0.5913023",
"0.5912811",
"0.5909977",
"0.5883214",
"0.58801275",
"0.58801275",
"0.58782053",
"0.5871441",
"0.5870876",
"0.5867784",
"0.58665717",
"0.5851985",
"0.58380073",
"0.5836618",
"0.5830177",
"0.5809845",
"0.5804701",
"0.5802613",
"0.57983106",
"0.5797744",
"0.57931376",
"0.5789377",
"0.5784842",
"0.57838523",
"0.57784957",
"0.57699865",
"0.57699865",
"0.5765385",
"0.5752664",
"0.57494813",
"0.573369",
"0.5689958",
"0.5681787"
] | 0.5824832 | 82 |
get an integer settings value by key | public static int getInt(Context context, String key, int defValue) {
if (sInstance != null && sInstance.mSettings.containsKey(key)) {
return (Integer) sInstance.mSettings.get(key);
}
int val = defValue;
try {
val = getPreferences(context).getInt(key, defValue);
} catch(ClassCastException e) {
Debug.logException(e);
}
if (sInstance != null) {
sInstance.mSettings.put(key, val);
}
return val;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getSettingByKey(String key);",
"int getInt(String key);",
"public int getPropertyInt(String key);",
"int getInt( String key, int def);",
"String get(Integer key);",
"private int getInt(setting setting) {\n return setting.getValueAsInt();\n }",
"private static int getIntegerProperty(String key) {\n String value = PROPERTIES.getProperty(key);\n // if the key is not found, Properties will return null and we should return a default value\n if (value == null) {\n return 0;\n }\n return Integer.parseInt(value);\n }",
"public int getInt(String key) {\n int value = 0;\n try {\n value = mConfigurations.getInt(key);\n } catch (JSONException e) {\n sLogger.error(\"Error retrieving integer from JSONObject.\");\n }\n return value;\n }",
"public static int getInt(String key) throws UnknownID, ArgumentNotValid {\n\t\tString value = get(key);\n\t\ttry {\n\t\t\treturn Integer.parseInt(value);\n\t\t} catch (NumberFormatException e) {\n\t\t\tString msg = \"Invalid setting. Value '\" + value + \"' for key '\" + key\n\t\t\t\t\t+ \"' could not be parsed as an integer.\";\n\t\t\tthrow new ArgumentNotValid(msg, e);\n\t\t}\n\t}",
"public int get(int key) {\n return 1;\n }",
"public int getMandatoryInt(String key) throws ConfigNotFoundException;",
"private String get(String key)\n {\n return settings.getProperty(key);\n }",
"private int getValue(final String name, final String key) {\n\t\treturn Integer.parseInt(bundleConstants.getString(name + SEPERATOR + key));\n\t}",
"public int get(int key) {\n return store[key]; // get the value for the key\n }",
"public int getInt(String key)\n {\n return getInt(key, 0);\n }",
"public int getInt( String key )\n {\n int value = 0;\n try\n {\n if ( config != null )\n {\n value = config.getInt( key );\n LOG.debug( \"getInt name [{}] value [{}]\", key, value );\n }\n else\n {\n LOG.warn( \"getInt invalid config, can't read prop [{}]\", key );\n }\n }\n catch (org.apache.commons.configuration.ConversionException e)\n {\n LOG.debug( \"getInt can't read prop [{}], exception [{}]\", key, e );\n }\n return value;\n }",
"public Integer getIntegerSetting(String name) {\n\t\treturn integers.get(name);\n\t}",
"public Integer getInteger(String key, Integer defaultValue);",
"public int getInt(String key, int defaultValue);",
"int getInt(String key, int defaultValue);",
"public Object get(String key) {\r\n\t\treturn settings.get(key);\r\n\t}",
"public static int getIntForKey(String key)\n\t{\n\t\treturn PreferencesModel.instance().getUserIntPref(key, -1);\n\t}",
"public Integer getInt(K key) throws ClassCastException;",
"public static int getIntParam(String key) throws InvalidParam {\n return getCurrentConfig().getInt(key);\n }",
"public Integer getIntegerData(String key) {\n return pref.getInt(key, 0);\n }",
"public static int getIntPreference(Context ctx, String key) {\n sharedPreferences = PreferenceManager.getDefaultSharedPreferences(ctx);\n\n return sharedPreferences.getInt(key, 0);\n }",
"String get(String key) {\n return settings.get(key);\n }",
"public int getInteger(String key) {\n\t\tint defaultValue = 0;\n\t\tif (getDefault(key) != null)\n\t\t\tdefaultValue = (Integer) getDefault(key);\n\t\tString sp = internal.getProperty(key);\n\t\tif (sp == null) {\n\t\t\treturn defaultValue;\n\t\t}\n\t\tint value;\n\t\ttry {\n\t\t\tvalue = Integer.parseInt(sp);\n\t\t} catch (NumberFormatException ex) {\n\t\t\tinternal.remove(key);\n\t\t\treturn defaultValue;\n\t\t}\n\t\treturn value;\n\t}",
"public int getIntegerProperty(String key) {\n String val = getProperty(key);\n return (null == val ? 1 : Integer.parseInt(val));\n }",
"public\n int getProperty_int(String key)\n {\n if (key == null)\n return 0;\n\n String val = getProperty(key);\n\n if (val == null)\n return 0;\n\n int ret_int = 0;\n try\n {\n Integer workint = new Integer(val);\n ret_int = workint.intValue();\n }\n catch(NumberFormatException e)\n {\n ret_int = 0;\n }\n\n return ret_int;\n }",
"String getSettingByKey(HawkularUser user, String key);",
"public int getInt(String key) {\n\t\tString value = getString(key);\n\t\t\n\t\ttry {\n\t\t\treturn Integer.parseInt(value);\n\t\t}\n\t\tcatch( NumberFormatException e ) {\n\t\t\tthrow new IllegalStateException( \"Illegal value for integer configuration parameter: \" + key);\n\t\t}\n\t}",
"public int get(int key) {\n int index = keys.indexOf(key);\n return index < 0? -1 : values.get(index);\n }",
"public int getIntegerProperty(String key) {\n\t\treturn Integer.parseInt(this.getProperty(key));\n\t}",
"public int getPropertyInt(String key, int defaultValue);",
"public int getInt(String key) {\n return Integer.parseInt(mMap.get(key));\n }",
"protected static int getVariable(String variableKey) {\r\n\t\t\r\n\t\tString valueFromPropertyFile = Settings.getProperty(variableKey);\r\n\t\t\r\n\t\tif (valueFromPropertyFile.charAt(0) == 'R') { // random value requested\r\n\t\t\t\r\n\t\t\treturn random.nextInt(getUpperBound(valueFromPropertyFile) + 1);\r\n\t\t\t\r\n\t\t} else { // absolute value specified\r\n\t\t\t\r\n\t\t\treturn new Integer(valueFromPropertyFile);\r\n\t\t}\r\n\t\t\r\n\t}",
"public static int getIntProperty(String key) {\r\n\t\treturn getIntProperty(key, 0);\r\n\t}",
"int getInt(String key) throws KeyValueStoreException;",
"public int getAsInt(String key) {\n return getAsInt(key, 0);\n }",
"@VisibleForTesting\n public int injectGetGlobalSettingInt(String key, int def) {\n return Settings.Global.getInt(this.mContext.getContentResolver(), key, def);\n }",
"public int get(int key) {\n return data[key % KEY];\n }",
"String getSettingByKey(String key, String defaultValue);",
"public static int getInt(Tag tag){\n makeInstance();\n return settingsFile.getInt(tag);\n }",
"public int get(int id) {\r\n return configurations[id];\r\n }",
"public int getInteger(String key) {\r\n try {\r\n return Integer.decode(getString(key)).intValue();\r\n }\r\n catch (Exception e) {\r\n return 0;\r\n }\r\n }",
"public static int get(int key) {\n\t\t// your code here\n\t\tif (map.containsKey(key)) {\n\t\t\tint value = map.get(key);\n\t\t\tmap.remove(key);\n\t\t\tmap.put(key,value);\n\t\t\treturn map.get(key);\n\t\t} else\n\t\t\treturn -1;\n\t}",
"public String getSetting(String key) throws SQLException {\n\t\treturn db.selectItem(\"value\", \"settings\", \"`key`='\"+key+\"'\");\n\t}",
"public static int getInt(String key, int i) {\n\t\tString token = getSystemString(key);\n\t\tif (token == null) {\n\t\t\treturn i;\n\t\t}\n\t\treturn Integer.parseInt(token);\n\t}",
"public int getIntValue(String keyName)\n {\n return Integer.parseInt(getValue(keyName));\n }",
"String getValue(String type, String key);",
"public int getInt(String urlKey) {\n\t\tint value = 0;\n\t\tString text = null;\n\t\ttry{\n\t\t\ttext = properties.getProperty(urlKey).trim();\n\t\t\tvalue = Integer.parseInt(text);\n\t\t}catch(Exception e){\n\t\t\tLOGGER.error(\"Couldn't parse \"+urlKey +\":\" + text+\"\\n\"+e);\n\t\t}\n\t\treturn value;\t\t\t\t\n\t}",
"public int getInt(String key) {\n Object value = get(key);\n return ((value instanceof Long) ? ((Long)value).intValue() : 0);\n }",
"public int getInteger(short dictionaryKey) {\n\t\treturn intsMap.get(dictionaryKey);\n\t}",
"@Override\n public int getInt(String key) {\n return random.nextInt(RANDOM_INT_BOUND);\n }",
"int value(String name);",
"public static int getInt(final String key) {\r\n if (PROP == null) {\r\n throw new RuntimeException(\"Config hasn't been initialized yet.\");\r\n }\r\n if (PROP.containsKey(key))\r\n return Integer.parseInt(PROP.getProperty(key));\r\n else\r\n throw new RuntimeException(\"No config key found for [\" + key + \"].\");\r\n }",
"public int getInt(String key) throws AgentBuilderRuntimeException {\n\t\treturn getInteger(key).intValue();\n\t}",
"public static Integer getInteger(String inKey) {\r\n Object o = getProperties().get(inKey);\r\n\r\n if (o == null) {\r\n if (LOG.isDebugEnabled()) {\r\n LOG.debug(\"getInteger: \" + inKey + \", result null\");\r\n }\r\n return null;\r\n }\r\n\r\n if (LOG.isDebugEnabled()) {\r\n LOG.debug(\"getInteger: \" + inKey + \", result \" + o);\r\n }\r\n if (o instanceof Integer) {\r\n return (Integer) o;\r\n }\r\n if (!(o instanceof String)) {\r\n throw new IllegalArgumentException(\"Config property: \" + inKey\r\n + \" is not an Integer or String: \" + o.getClass());\r\n }\r\n try {\r\n return new Integer((String) o);\r\n } catch (Exception e) {\r\n LOG.warn(\"Not an integer value: \" + o + \" for property \" + inKey);\r\n return null;\r\n }\r\n }",
"Integer getValue();",
"Integer getValue();",
"public int getAsInt(String key, int defaultVal) {\n String val = entries.getProperty(key);\n return val == null ? defaultVal : Integer.parseInt(val);\n }",
"@Override\n public int getInt(String key, int defaultVal) {\n return mSharedPreferences.getInt(key, defaultVal);\n }",
"public int get(int key) {\n if(arr[key] == -1)\n return 0;\n else if(arr[key] == 0)\n return -1;\n else return arr[key];\n }",
"String getSettingByKey(HawkularUser user, String key, String defaultValue);",
"public String getSettings(String settingsKey) {\n\t\tString settingsValue = \"\";\n\t\ttry {\n\t\t\tCursor settings = localDB.query(true, TABLE_SETTINGS, null,\n\t\t\t\t\tKEY_SETTINGS_ID + \" = ?\", new String[] { settingsKey },\n\t\t\t\t\tnull, null, null, null);\n\t\t\tif ((settings.getCount() == 0) || !settings.moveToFirst()) {\n\t\t\t\treturn \"\";\n\t\t\t}\n\t\t\tsettingsValue = settings.getString(SETTINGS_VALUE_COLUMN);\n\t\t} catch (SQLiteException ex) {\n\t\t\tLog.d(TAG, ex.getMessage());\n\t\t}\n\t\tLog.v(TAG, \"setting: \" + settingsValue);\n\t\treturn settingsValue;\n\t}",
"protected int getIntPrefOrDefault(String key, int defValue) {\n try {\n return getPrefs().getInt(key, defValue);\n } catch (ClassCastException ex) {\n Log.w(\"SpeakerPhone_preference\", \"Bad preference: \" + key, ex);\n return defValue;\n }\n }",
"public String get(int key) {\n String sql = \"SELECT data_val FROM data_map WHERE data_key = ?\";\n\n String value = null;\n try (Connection con = this.connect();\n PreparedStatement pstmt = con.prepareStatement(sql)) {\n pstmt.setInt(1, key);\n ResultSet rs = pstmt.executeQuery();\n\n if (!rs.isClosed()) {\n value = rs.getString(\"data_val\");\n rs.close();\n }\n }\n catch (SQLException e) {\n value = null;\n }\n\n return value;\n }",
"Object get(Object key);",
"StoragePrimitive get(String key);",
"private int getInt(String whatProperty, String levelConfigFilePath) {\n return getInt(levelConfig, whatProperty, levelConfigFilePath);\n }",
"int getKey();",
"int getKey();",
"public static int get(String s) {\n int buffer = map.get(s);\n return (int) buffer;\n }",
"public static int getIntValue(final String prefFile, final String key) {\n return getSharedPreferences(prefFile).getInt(key, 0);\n }",
"public static String get(String key) throws UnknownID, IOFailure, ArgumentNotValid {\n\t\tArgumentNotValid.checkNotNullOrEmpty(key, \"String key\");\n\t\tString val = System.getProperty(key);\n\t\tif (val != null) {\n\t\t\treturn val;\n\t\t}\n\n\t\t// Key not in System.properties try loaded data instead\n\t\tsynchronized (fileSettingsXmlList) {\n\t\t\tfor (SimpleXml settingsXml : fileSettingsXmlList) {\n\t\t\t\tif (settingsXml.hasKey(key)) {\n\t\t\t\t\treturn settingsXml.getString(key);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n/*\n\t\t// Key not in file based settings, try classpath settings instead\n\t\tsynchronized (defaultClasspathSettingsXmlList) {\n\t\t\tfor (SimpleXml settingsXml : defaultClasspathSettingsXmlList) {\n\t\t\t\tif (settingsXml.hasKey(key)) {\n\t\t\t\t\treturn settingsXml.getString(key);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n */\n\t\tthrow new UnknownID(\"No match for key '\" + key + \"' in settings\");\n\t}",
"public String getParameterValue(int key){\n return parameters.get(key).value;\n }",
"<S> S getSetting(Setting<S> setting);",
"public int get(int key) {\n\t\tDLLNode curr = map.get(key);\n\n\t\tif (curr != null) {\n\t\t\tupdateUsage(curr);\n\t\t\treturn curr.val;\n\t\t}\n\n\t\treturn -1;\n\t}",
"public int get(String key, int def)\n {\n try\n {\n String val = get(key);\n return Integer.parseInt(val);\n }\n catch(Exception e)\n {\n return def;\n }\n }",
"public Object get(String key) {\n return options.get(key);\n }",
"int getInfoOrDefault(\n int key,\n int defaultValue);",
"public int getInt(String key, int defValue) {\r\n\t\treturn getInt(Global.getContext(), key, defValue);\r\n\t}",
"public Integer getInt(String key)\n\t{\n\t\tLong l = getLong(key);\n\t\tif(l == null)\n\t\t\treturn null;\n\t\treturn l.intValue();\n\t}",
"public static int getIntParam(String key, int dfault) {\n Configuration cur = getCurrentConfig();\n if (cur == null) {\n return dfault;\n }\n return cur.getInt(key, dfault);\n }",
"private int get(Map<T, Integer> state, T key) {\n return state.getOrDefault(key, 0);\n }",
"public Integer getInteger(String key) throws AgentBuilderRuntimeException {\n\t\tif (!extContainsKey(key))\n\t\t\tthrow new AgentBuilderRuntimeException(\n\t\t\t\t\t\"Dictionary does not contain key \\\"\" + key + \"\\\"\");\n\t\treturn (Integer) extGet(key);\n\t}",
"private int getIntegerProperty(ParameterList key, int defaultValue) \n throws NumberFormatException, NullPointerException, MissingOptionException{\n try {\n boolean keyPresent = fileParameters.containsKey(key.name);\n String strValue = keyPresent ? fileParameters.getProperty(key.name).replaceAll(\"\\\\s\", \"\") : null;\n if (!keyPresent && key.mandatory) {\n throw new MissingOptionException(\"The input parameter (\" + key.name + \") was not found\");\n }\n else if(!keyPresent || strValue.equals(\"\")){\n loadedParametersLog.append(key.name).append(\"=\").append(defaultValue).append(\" (DEFAULT)\\n\");\n return defaultValue;\n }\n loadedParametersLog.append(key.name).append(\"=\").append(strValue).append(\"\\n\");\n return Integer.parseInt(strValue);\n } catch (NumberFormatException e) {\n throw new NumberFormatException(e.getMessage() + \"\\nThe input parameter (\" + key.name + \") could not be converted to int.\");\n } catch (NullPointerException e) {\n throw new NullPointerException(e.getMessage() + \"\\nThe parameter file was not initialized.\");\n }\n }",
"public String get(int key){\n\t\treturn(hashMap[key]);\t\t\n\t}",
"public static Integer getPreferencesInteger(final Context context,\n\t\t\tfinal String key) {\n\t\tInteger result;\n\t\ttry {\n\t\t\tfinal SharedPreferences sharedPreferences = PreferenceManager\n\t\t\t\t\t.getDefaultSharedPreferences(context);\n\t\t\tresult = sharedPreferences.getInt(key, 0);\n\t\t} catch (Exception exception) {\n\t\t\tresult = null;\n\t\t}\n\t\treturn result;\n\t}",
"public int get(int key) {\n if(!map.containsKey(key)) return -1;\n return map.get(key);\n }",
"public static int GetPreferByInt(Context context, String key) {\n\t\tSharedPreferences mPrefer = PreferenceManager\n\t\t\t\t.getDefaultSharedPreferences(context);\n\t\treturn mPrefer.getInt(key, -1);\n\t}",
"public int getValue();",
"public int getValue();",
"public static final int getIntegerParam(Map<String,String> params, String key, int def) {\n\t\ttry {\n\t\t\treturn Integer.parseInt(params.get(key));\n\t\t} catch (Exception e) {\n\t\t\treturn def;\n\t\t}\n\t}",
"public String getPreference(String key) {\n return preferences.get(key).value;\n }",
"private int getIntegerValueByBitMap(LinkedHashMap<String, Integer> bitMap) {\r\n\t\r\n\tint identityInfoValue = 0;\r\n if(bitMap != null && bitMap.size() > 0) {\r\n \tStringBuilder sb = new StringBuilder();\r\n \t\r\n \tsb.append(bitMap.get(ProjectConstants.Asia)).append(bitMap.get(ProjectConstants.Korea)).append(bitMap.get(ProjectConstants.Europe))\r\n \t.append(bitMap.get(ProjectConstants.Japan)).append(bitMap.get(ProjectConstants.America));\r\n \r\n \tif(sb != null) {\r\n \t\t int num = Integer.parseInt(sb.toString().replaceFirst(\"^0+(?!$)\", \"\"));\r\n \t\t identityInfoValue = convertBinaryToDecimal(num);\r\n \t}\r\n }\r\n return identityInfoValue;\r\n}",
"protected abstract int getValue(int paramInt);",
"public int get(int key) {\n int index = key % n;\n MapNode node = keys[index];\n for (int i =0; i < node.list.size(); ++i) {\n if (node.list.get(i) == key) {\n return vals[index].list.get(i);\n }\n }\n\n return -1;\n }",
"public Integer getInteger(String key) {\n if (!jsonData.has(key))\n return null;\n try {\n return jsonData.getInt(key);\n } catch (Exception ex) {\n return null;\n }\n }"
] | [
"0.7609322",
"0.71861625",
"0.70974016",
"0.70722777",
"0.70477885",
"0.6907624",
"0.6896215",
"0.68531877",
"0.68510264",
"0.6806792",
"0.67786956",
"0.675734",
"0.66867816",
"0.66349673",
"0.66160125",
"0.6615189",
"0.65907055",
"0.6590598",
"0.6590328",
"0.65745926",
"0.65724385",
"0.657178",
"0.65446144",
"0.65056705",
"0.6504256",
"0.65008336",
"0.6484415",
"0.64757156",
"0.64466417",
"0.6443918",
"0.6430633",
"0.64149845",
"0.63624406",
"0.6348418",
"0.632584",
"0.6308754",
"0.62980896",
"0.62957555",
"0.6272406",
"0.6244792",
"0.6237282",
"0.6194551",
"0.61940205",
"0.6189294",
"0.61612856",
"0.61454713",
"0.61369395",
"0.6133186",
"0.6107303",
"0.608258",
"0.6080975",
"0.6080667",
"0.6058359",
"0.6049894",
"0.6047435",
"0.60377985",
"0.60195494",
"0.59977025",
"0.5985816",
"0.5985249",
"0.5985249",
"0.59575564",
"0.59539545",
"0.593908",
"0.5929751",
"0.59160256",
"0.59143835",
"0.5913023",
"0.5912811",
"0.5909977",
"0.5883214",
"0.58801275",
"0.58801275",
"0.58782053",
"0.5871441",
"0.5870876",
"0.5867784",
"0.58665717",
"0.5851985",
"0.58380073",
"0.5836618",
"0.5830177",
"0.5824832",
"0.5809845",
"0.5804701",
"0.5802613",
"0.57983106",
"0.57931376",
"0.5789377",
"0.5784842",
"0.57838523",
"0.57784957",
"0.57699865",
"0.57699865",
"0.5765385",
"0.5752664",
"0.57494813",
"0.573369",
"0.5689958",
"0.5681787"
] | 0.5797744 | 87 |
put an int value into settings | public void putInt(String key, int value, boolean commit) {
putInt(Global.getContext(), key, value, commit);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setValue(int value);",
"private static void setValueInt(int value)\n {\n Util.valueInt = value;\n }",
"void setValue(int value);",
"void setInt(String key, int val);",
"void setToValue(int val);",
"public int setValue (int val);",
"public void setInt(String key, int value){\r\n SharedPreferences sp = getActivity().getSharedPreferences(\"your_prefs\", Activity.MODE_PRIVATE);\r\n SharedPreferences.Editor editor = sp.edit();\r\n editor.putInt(key, value); // key, string\r\n editor.apply();\r\n }",
"public void setInteger(int value){}",
"public void setInteger(int value);",
"synchronized public static void putInt(Context context, String key, int value, boolean commit) {\r\n\t\tensurePreferencesEditor(context);\r\n\t\tsPreferencesEditor.putInt(key, value);\r\n\t\tif (commit) {\r\n\t\t\tsPreferencesEditor.commit();\r\n\t\t}\r\n\t\tif (sInstance != null) {\r\n\t\t\tsInstance.mSettings.put(key, value);\r\n\t\t}\r\n\t}",
"@Override\n public void saveInt(String key, int value) {\n SharedPreferences.Editor prefs = mSharedPreferences.edit();\n prefs.putInt(key, value);\n prefs.commit();\n }",
"public abstract void setValue(int value);",
"public void writeToSharedPreference(int value){\n SharedPreferences sharedPreferences = getActivity().getPreferences(Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putInt(\"NUMBER OF ITEMS\",value);\n editor.commit();\n\n }",
"public static void setInt(String aKey, int aValue) {\n getSharedPreferences().edit().putInt(aKey, aValue).apply();\n }",
"protected synchronized void setIntegerValue(String tag, int value) {\n if (actualProperties != null) {\n actualProperties.put(tag, Integer.toString(value));\n }\n }",
"public void setValue(int value) {\r\n this.value = value;\r\n }",
"public void set(int value){\n val = value;\n }",
"public void setInteger(int value) {\n this.value = value;\n }",
"public void setInteger(int value) {\n this.value = value;\n }",
"public void setValue(int value)\n {\n this.value = value;\n }",
"public static void setParameterInt(String key, int value) throws Exception {\n ini.setProperty(key, value);\n systemlog(LogType.DEBUG, \"setParam \" + key + \" to: \" + value);\n }",
"public void\t\tset(int val) { value = val; }",
"public void setValue(Integer value) {\n _value = value ;\n }",
"private int getInt(setting setting) {\n return setting.getValueAsInt();\n }",
"public void setValue(int value) {\n this.value = value;\n }",
"public void setValue(int value) {\n this.value = value;\n }",
"public void setValue(int value) {\n this.value = value;\n }",
"void set_int(ThreadContext tc, RakudoObject classHandle, int Value);",
"public void setInteger(Integer value) {\r\n\t\ttype(ConfigurationItemType.INTEGER);\r\n\t\tthis.integerValue = value;\r\n\t}",
"public void setValue(int value) {\n this.value = value;\n }",
"public void setValue(int value) {\n this.value = value;\n }",
"public abstract void setInteger(int value);",
"public void setIntValue(int newValue){\n value = newValue; //set value to newValue\n }",
"void setIntValue(int value)\n {\n this.value = value;\n }",
"public static void SetPreferByInt(Context context, String key, int value) {\n\t\tSharedPreferences mPrefer = PreferenceManager\n\t\t\t\t.getDefaultSharedPreferences(context);\n\t\tEditor editor = mPrefer.edit();\n\t\teditor.putInt(key, value);\n\t\teditor.commit();\n\t}",
"public void setRecord(int value){\n SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this.getContext());\n SharedPreferences.Editor editor = prefs.edit(); editor.putInt(\"record\", value);\n editor.commit();\n }",
"public static void setPuzzleId(Integer value, Context context) {\n SharedPreferences prefs = context.getSharedPreferences(PREF, Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = prefs.edit();\n editor.putString(\"PuzzleId\", String.valueOf(value));\n editor.commit();\n }",
"PickNumber (Short setting, String name, String type){\r\n \t\t\tthis.setting = setting;\r\n \t\t\t//size = setting.SIZE;\r\n \t\t\tthis.name = name;\r\n \t\t\tthis.type = type;}",
"public void setRecord3(int value){\n SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this.getContext());\n SharedPreferences.Editor editor = prefs.edit(); editor.putInt(\"record3\", value);\n editor.commit();\n }",
"public void set(int value) {\n this.value = BigInteger.valueOf(value).toByteArray();\n }",
"public void setInt(String name, Integer value) {\n parameters.get(name).setValue(value);\n }",
"@Override\n\tpublic void setValue(String path, int value) {\n\t\tsetValue(path, new Integer(value));\n\t}",
"public void setProperty(Integer t) {\n\n\t\t}",
"public void setIntValue(int v)\n {\n this.setValue(String.valueOf(v));\n }",
"public void set(int value)\n {\n set(value, true);\n }",
"public void setInteger(int value) {\n\t\tthis.integer = value;\n\t}",
"public static void setSetting(Context context, String key, long value) {\n SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(context);\n SharedPreferences.Editor editor = sp.edit();\n editor.putLong(key, value);\n editor.commit();\n }",
"public void setValue(int val)\r\n {\r\n value = val;\r\n }",
"public void set_value(int value) {\n\t\tthis.value = value;\n\t}",
"public void setValue(int value) {\r\n\t\tthis.value = value;\r\n\t}",
"public void setValue(int value) {\r\n\t\tthis.value = value;\r\n\t}",
"public void setValue(int value) {\r\n\t\tthis.value = value;\r\n\t}",
"public void setValue(int value) {\r\n\t\tthis.value = value;\r\n\t}",
"public void setValue(int value) {\r\n\t\tthis.value = value;\r\n\t}",
"public void setValue(int value) {\n\t\tthis.value = value;\n\t}",
"public void setValue(int value) {\n\t\tthis.value = value;\n\t}",
"public static void setIntValue(final String prefFile, final String key, final int value) {\n final SharedPreferences sharedPref = getSharedPreferences(prefFile);\n final SharedPreferences.Editor editor = sharedPref.edit();\n editor.putInt(key, value);\n editor.apply();\n }",
"public void set(String type, int value){\n\t\tif (type.toLowerCase().equals(\"hi\"))\n\t\t\tHI = value;\n\t\telse if (type.toLowerCase().equals(\"lo\"))\n\t\t\tLO = value;\n\t\telse if (type.toLowerCase().equals(\"pc\"))\n\t\t\tpc = value;\n\t}",
"public void setIntValue(int value) {\n setValueIndex(getPool().findIntEntry(value, true));\n }",
"public void saveSettingsMode(int value) {\n SQLiteDatabase database = getReadableDatabase();\n\n String query = \"UPDATE Setting SET Mode = \" + value;\n\n database.execSQL(query);\n }",
"public void setValue(String name, Integer value){\r\n this.values.put(name,value);\r\n }",
"public void setValue(int value) {\n m_value = value;\n }",
"void xsetValue(org.apache.xmlbeans.XmlInt value);",
"public void setValue(Integer value) {\n\t\tthis.value = value;\n\t}",
"private void insertIntegerValue(String field, int value) {\n mapFieldsIntegers.put(field,value);\n }",
"public int setValue(int value) {\n\t\tthis.value = value;\n\t\treturn 0;\n\t}",
"public void setDmaValue(int value);",
"public void setValue(int value) {\n\t\tthis._value = value;\n\t}",
"public void setValue(int new_value){\n this.value=new_value;\n }",
"public static void setParameterInt(String section, String key, int value)\n throws Exception {\n ini.setProperty(section + \".\" + key, value);\n systemlog(LogType.DEBUG, \"setParam [\" + section + \"] \" + key + \" to: \"\n + value);\n }",
"public static void setPreference(String key, int value) {\n editor = sharedPreferences.edit();\n\n editor.putInt(key, value);\n editor.apply();\n }",
"void setValue(Short value);",
"public void putInt(ResourceLocation name, int value) {\n data.putInt(name.toString(), value);\n }",
"public void putIntegerData(String key, Integer value) {\n editor.putInt(key, value);\n editor.apply();\n }",
"public void setVal(int value) {\n this.val = value;\n }",
"public void set(int value)\n\t{\n\t\tbitHolder.setValue(value);\n\t}",
"public void setM_Warehouse_ID (int M_Warehouse_ID)\n{\nset_Value (\"M_Warehouse_ID\", new Integer(M_Warehouse_ID));\n}",
"public void setRecord2(int value){\n SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this.getContext());\n SharedPreferences.Editor editor = prefs.edit(); editor.putInt(\"record2\", value);\n editor.commit();\n }",
"public void setM_Locator_ID (int M_Locator_ID)\n{\nset_Value (\"M_Locator_ID\", new Integer(M_Locator_ID));\n}",
"public void setInt(String parName, int parVal) throws HibException;",
"public static void set(String key, int val) {\n Editor e = prefs.edit();\n e.putInt(key, val);\n e.commit();\n }",
"public void set_int(int param) {\n this.local_int = param;\n }",
"public void setValue (int newValue) {\n myValue = newValue;\n }",
"public void setParamValue(String label, int value);",
"public long insertRowSettings(int value, int id) {\n ContentValues values = new ContentValues();\n values.put(KEY_SETTINGS_VALUE, value);\n String where = KEY_SETTINGS_ROWID + \"=\" + id;\n\n return db.insert(SETTINGS_TABLE_NAME, where, values);\n }",
"public void setValue(int value) {\n\t\tm_value = value;\n\t}",
"private void setStat(int value, int index) {\n setStringStat(String.valueOf(value), index);\n }",
"public void setValue(int value)\n {\n // we have assumed value 1 for X and 10 for O\n this.value = value;\n }",
"public void setInt(int value)\n\t{\n\t\tsetText(String.valueOf(value));\n\t}",
"public void writeIntPrefs(String prefName, int prefValue) {\n editor = sPrefs.edit();\n editor.putInt(prefName, prefValue);\n editor.apply();\n }",
"public void setC_Conversion_UOM_ID (int C_Conversion_UOM_ID)\n{\nset_Value (\"C_Conversion_UOM_ID\", new Integer(C_Conversion_UOM_ID));\n}",
"@Override\n public void setValue (int newValue){\n super.setValue(newValue);\n updateChildesValues(newValue);\n\n }",
"public static void setInteger(String prop, int value)\n {\n props.setProperty(prop, \"\" + value);\n }",
"void editAssetValue(int newVal);",
"public void setInt(int val) {\n\t\tcp.setInt(val);\n\t}",
"public void setValue(int n) {\n\t\t\tthis.value = n;\n\t}",
"void SetValueOfBuild(int value) {\n\n // Value must be greater than 0 and less than 15 to remain in the size of a build\n if(value > 0 && value < 15) {\n cardValueOfBuild = value;\n }\n else {\n Log.d(\"MyError\", \"Error in setting the value of a build in the build class.\");\n }\n }",
"public void setType(int value) {\n this.type = value;\n }",
"public void setC_UOM_ID (int C_UOM_ID)\n{\nset_Value (\"C_UOM_ID\", new Integer(C_UOM_ID));\n}",
"public Builder setTypeValue(int value) {\n type_ = value;\n onChanged();\n return this;\n }"
] | [
"0.7117006",
"0.7067105",
"0.69826907",
"0.681785",
"0.6816204",
"0.67961884",
"0.671627",
"0.67024994",
"0.66095984",
"0.65578914",
"0.65237343",
"0.6516951",
"0.65106076",
"0.64789736",
"0.6463765",
"0.6422483",
"0.6419131",
"0.64180726",
"0.64180726",
"0.6371253",
"0.6362782",
"0.63616693",
"0.6356806",
"0.633769",
"0.6333933",
"0.6333933",
"0.6333933",
"0.63154864",
"0.6311702",
"0.63098043",
"0.63098043",
"0.6294803",
"0.6286993",
"0.6282525",
"0.6271914",
"0.62459636",
"0.62367606",
"0.6212316",
"0.6205411",
"0.6202155",
"0.6186559",
"0.6185217",
"0.6182745",
"0.61815286",
"0.6179915",
"0.6179299",
"0.61709225",
"0.6162129",
"0.6150249",
"0.61461174",
"0.61461174",
"0.61461174",
"0.61461174",
"0.61461174",
"0.6140425",
"0.6140425",
"0.6137739",
"0.6136017",
"0.61358273",
"0.6131216",
"0.6117159",
"0.6094498",
"0.60606456",
"0.6050955",
"0.6045856",
"0.6042001",
"0.6033177",
"0.6030095",
"0.60280883",
"0.60209787",
"0.6010119",
"0.60090256",
"0.6004622",
"0.59970933",
"0.5985497",
"0.59846103",
"0.59802943",
"0.59734297",
"0.59633124",
"0.5955533",
"0.59501946",
"0.59310883",
"0.5918263",
"0.59130603",
"0.58949834",
"0.58898574",
"0.5889542",
"0.58812714",
"0.5880852",
"0.5872656",
"0.585548",
"0.58390135",
"0.5821009",
"0.5806613",
"0.58061284",
"0.5802573",
"0.57867223",
"0.5783677",
"0.5730476",
"0.57085454"
] | 0.5759927 | 98 |
put a string value into settings | synchronized public static void putInt(Context context, String key, int value, boolean commit) {
ensurePreferencesEditor(context);
sPreferencesEditor.putInt(key, value);
if (commit) {
sPreferencesEditor.commit();
}
if (sInstance != null) {
sInstance.mSettings.put(key, value);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setValue(String value);",
"void setValue(String value);",
"protected void addSetting(String text) {\n // Get the key and value from the string\n String[] parts = text.split(\":\");\n \n // Get the setting name\n String name = parts[0];\n \n // Get the value\n String value = String.join(\":\", Arrays.copyOfRange(parts, 1, parts.length));\n \n // Store the setting\n settings.put(name, value);\n }",
"void setValue(java.lang.String value);",
"public void setValue(String value);",
"public void setValue(String value);",
"public void setValue(String value);",
"public void setValue(String value);",
"void setValue(final String value);",
"public void setValue (String Value);",
"public void setString(String key, String value) {\n SharedPreferences.Editor editor = mPref.edit();\n editor.putString(key, value);\n editor.commit();\n }",
"UserSettings store(String key, String value);",
"public void setSettings(final String settings);",
"public void setPreference(View v){\n SharedPreferences.Editor editor = settings.edit();\n String prefValue = cHelpers.getText(this, R.id.editText);\n editor.putString(\"key1\",prefValue);\n editor.commit();\n cHelpers.show_toast(this, \"Preference Saved\");\n }",
"private static void writeStringValue(String path, String value){\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putString(path, value);\n editor.apply();\n }",
"void set(String key, String value) {\n if (notAnyEmpty(key, value))\n settings.put(key, value);\n }",
"void set(String key, String value) {\n if (notAnyEmpty(key, value))\n settings.put(key, value);\n }",
"public void setValue(String value)\n {\n this.value = value;\n }",
"public static void setPrefStringData(Context context, String key, String value) {\n SharedPreferences appInstallInfoSharedPref = context.\n getSharedPreferences(APP_CONFIG_PREF, Context.MODE_PRIVATE);\n SharedPreferences.Editor appInstallInfoEditor = appInstallInfoSharedPref.edit();\n appInstallInfoEditor.putString(key, value);\n appInstallInfoEditor.apply();\n }",
"public void setValue(String value) {\n\t this.valueS = value;\n\t }",
"public void setValue( String value )\n {\n this.value = value;\n }",
"<S> void putSetting(Setting<S> setting, S value, String... comments);",
"public void setValue(String value) {\n set (value);\n }",
"public void setValue(String value) {\r\n this.value = value;\r\n }",
"public void setValue(String value) {\r\n this.value = value;\r\n }",
"public void setValue(String value) {\r\n this.value = value;\r\n }",
"public void setValue(String value) {\r\n this.value = value;\r\n }",
"public void setValue(String value) {\r\n this.value = value;\r\n }",
"public void saveString(String key,String value)\n {\n preference.edit().putString(key,value).apply();\n }",
"public void setValue(String value) {\n this.value = value;\n }",
"public void setValue(String value) {\n this.value = value;\n }",
"public void setValue(String value) {\n this.value = value;\n }",
"public void setValue(String value) {\n this.value = value;\n }",
"public void setValue(String value) {\n this.value = value;\n }",
"synchronized public static void putString(Context context, String key, String value, boolean commit) {\r\n\t\tensurePreferencesEditor(context);\r\n\t\tsPreferencesEditor.putString(key, value);\r\n\t\tif (commit) {\r\n\t\t\tsPreferencesEditor.commit();\r\n\t\t}\r\n\t\tif (sInstance != null) {\r\n\t\t\tsInstance.mSettings.put(key, value);\r\n\t\t}\r\n\t}",
"public void setValue(final String value)\n {\n this.value = value;\n }",
"public void setStr(String key, String value) {\n PREF_EDITOR.putString(key, value);\n PREF_EDITOR.commit();\n }",
"public void put(String key, Object value) {\r\n\t\tthis.settings.put(key, value);\r\n\t}",
"public void setValue(final String value) {\n this.value = value;\n }",
"public static void setString(String aKey, String aValue) {\n getSharedPreferences().edit().putString(aKey, aValue).apply();\n }",
"public void setValue(java.lang.String value) {\n this.value = value;\n }",
"public void setString(String key, String value) {\n overrideConfig.put(key, value);\n }",
"public static void setSetting(Context context, String key, String value) {\n SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(context);\n SharedPreferences.Editor editor = sp.edit();\n editor.putString(key, value);\n editor.commit();\n }",
"public final void setValue(java.lang.String value)\r\n\t{\r\n\t\tsetValue(getContext(), value);\r\n\t}",
"String setValue();",
"public void set(String s);",
"void setValue(String s) throws YangException;",
"void setValueString(org.hl7.fhir.String valueString);",
"@Test\n public void testSetStype() {\n System.out.println(\"setStype\");\n Setting.SETTING_TYPE stype;\n Setting instance = Setting.getSetting(\"test\");\n stype = instance.getStype();\n assertEquals(Setting.SETTING_TYPE.UND, stype);\n\n instance.setStype(Setting.SETTING_TYPE.TSTRING);\n instance.setValue(\"I am a String\");\n String result = instance.toString();\n String expected = \"test:TSTRING-I am a String\";\n assertEquals(expected, result);\n\n }",
"public void saveString(int prefKey, String value) {\n SharedPreferences.Editor editor = sharedPref.edit();\n editor.putString(getResources().getString(prefKey), value);\n editor.apply();\n }",
"public static void setStringValue(final String prefFile, final String key, final String value) {\n final SharedPreferences sharedPref = getSharedPreferences(prefFile);\n final SharedPreferences.Editor editor = sharedPref.edit();\n editor.putString(key, value);\n editor.apply();\n }",
"public void set(String key, String value)\n {\n settings.setProperty(key, value);\n }",
"public void setValue(String value) {\n\t\tthis.value = value;\n\t}",
"public void setValue(String value) {\n\t\tthis.value = value;\n\t}",
"public void setValue(String value) {\n\t\tthis.value = value;\n\t}",
"public void setValue(String value) {\n\t\tthis.value = value;\n\t}",
"public void setValue(String value)\n {\n if (value == null)\n throw new IllegalArgumentException(\"value cannot be null\");\n \n this.value = value;\n }",
"@Override\n public void saveString(String key, String value) {\n SharedPreferences.Editor prefs = mSharedPreferences.edit();\n prefs.putString(key, checkNotNull(value));\n prefs.commit();\n }",
"public void setString(String value) {\r\n\t\ttype(ConfigurationItemType.STRING);\r\n\t\tthis.stringValue = value;\r\n\t}",
"public void setValue(String value) {\r\n\t\tthis.value = value;\r\n\t}",
"public void setValue(String value) {\n\t\tthis.value = value;\n\t}",
"@Override\r\n\tpublic Object setProperty(String key, String value) {\r\n\t\t\r\n\t\treturn Settings.setProperty(key, value);\r\n\t\t\r\n\t}",
"public void setStringValue(String value) {\n setValueIndex(getPool().findStringEntry(value, true));\n }",
"public void setPrefrence(String key, String value) {\n SharedPreferences prefrence = context.getSharedPreferences(\n context.getString(R.string.app_name), 0);\n SharedPreferences.Editor editor = prefrence.edit();\n editor.putString(key, value);\n editor.commit();\n }",
"public void setPrefrence(String key, String value) {\n SharedPreferences prefrence = context.getSharedPreferences(\n context.getString(R.string.app_name), 0);\n SharedPreferences.Editor editor = prefrence.edit();\n editor.putString(key, value);\n editor.commit();\n }",
"public void setConfigurationValue(String name, String value);",
"public void setString(String name, String value) {\n parameters.get(name).setValue(value);\n }",
"protected synchronized void setStringValue(String tag, String value) {\n if (actualProperties != null) {\n actualProperties.put(tag, value);\n }\n }",
"public void putStringData(String key, String value) {\n editor.putString(key, value);\n editor.apply();\n }",
"private void setConfig(final String value) {\n\n config = StringUtils.trim(value);\n }",
"boolean setValue(String type, String key, String value);",
"public void setPersistentString(String key, String value);",
"void set(String text);",
"UserSettings store(HawkularUser user, String key, String value);",
"public static void saveToSharedPreference(String key, String value) {\n\n appSharePreference.edit().putString(key.toString(), value.toString()).apply();\n }",
"public static void SetPreferByString(Context context, String key,\n\t\t\tString value) {\n\t\tSharedPreferences mPrefer = PreferenceManager\n\t\t\t\t.getDefaultSharedPreferences(context);\n\t\tEditor editor = mPrefer.edit();\n\t\teditor.putString(key, value);\n\t\teditor.commit();\n\t}",
"public S<T> setPref(String value, String key) {\n\t SharedPreferences settings = activity.getSharedPreferences(PREFS_NAME, 0);\n\t settings = activity.getSharedPreferences(PREFS_NAME, 0);\n\t SharedPreferences.Editor editor = settings.edit();\n\t editor.putString(key, value);\n\t editor.commit();\n\t return this;\n\t}",
"protected void set(String key, String value)\r\n\t{ this.preferences.put(key, value); }",
"private void insertStringValue(String field, String value) {\n mapFieldsStrings.put(field, value);\n }",
"public static void setSetting(String settingName, String value) {\r\n\t\tjson.set(settingName, value);\r\n\t\tjson.save();\r\n\t}",
"public static void putString(String key, String value, Context context) {\n checkForNullKey(key);\n checkForNullValue(value);\n getSharedPreferences(context).edit().putString(key, value).apply();\n }",
"public void setValue(String value) {\n\t\tthis.text = value;\n\t}",
"public static void setShared(Context context, String name, String value) {\n SharedPreferences prefs = PreferenceManager\n .getDefaultSharedPreferences(context);\n SharedPreferences.Editor editor = prefs.edit();\n editor.putString(name, value);\n editor.commit();\n }",
"protected void setValue( String strValue )\n {\n _strValue = strValue;\n }",
"public static void setParameterString(String key, String value)\n throws Exception {\n ini.setProperty(key, value);\n systemlog(LogType.DEBUG, \"setParam \" + key + \" to: \" + value);\n }",
"@Override\n protected void loadValue(String sValue) {\n value = sValue;\n }",
"public void setStringValue(String v)\n {\n this.setValue(v);\n }",
"public void setParameterValue(String name, String value) {\n\tgetLogger().finest(\"Setting: \"+name+\" = \"+value);\n\tif (name.equals(\"genie.restart\")) {\n\t _parameters.put(name,value.substring(0,CHARS_RESTART));\n\t} else if (name.equals(\"genie.lout\")) {\n\t _parameters.put(name,value.substring(0,CHARS_LOUT));\n\t} else if (name.equals(\"genie.lin\")) {\n\t _parameters.put(name,value.substring(0,CHARS_LIN));\n\t} else {\n\t _parameters.put(name,value);\n\t}\n }",
"public void cmdTSet(User teller, String settingName,\n\t\t\tStringBuffer settingValue) {\n\t\tString val = settingValue.toString().trim();\n\t\ttry {\n\t\t\tsettingsService.setSettingAsString(settingName, val);\n\t\t\tcommand.qtell(teller, \" {0} set to {1}.\", settingName, val);\n\t\t} catch (ConversionException e) {\n\t\t\treplyError(teller, e);\n\t\t}\n\t}",
"public void setPreference(String key, String value) {\n\t SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(myContext);\n\t \n\t SharedPreferences.Editor editor = prefs.edit();\n\t editor.putString(key, value);\n\t editor.commit(); // important! Don't forget!\n\t}",
"public static void saveToPrefs(Context context,String key, String value) {\n SharedPreferences prefs = getSettings();\n final SharedPreferences.Editor editor = prefs.edit();\n editor.putString(key, value);\n editor.apply();\n }",
"public void set (String Value)\n\t\t{\n\t\tthis.Value = Value;\t\t\n\t\t}",
"void set_str(ThreadContext tc, RakudoObject classHandle, String Value);",
"public void setSharedPreference(Activity activity,String key,String value){\n SharedPreferences sharedPreferences=activity.getSharedPreferences(activity.getPackageName(), Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putString(key,value);\n editor.apply();\n }",
"public void putString(ResourceLocation name, String value) {\n data.putString(name.toString(), value);\n }",
"@Test\n\n public void testToString() {\n System.out.println(\"toString\");\n Setting.SETTING_TYPE stype;\n Setting instance = Setting.getSetting(\"test\");\n stype = instance.getStype();\n assertEquals(Setting.SETTING_TYPE.UND, stype);\n\n instance.setStype(Setting.SETTING_TYPE.TSTRING);\n instance.setValue(\"I am a String\");\n String result = instance.toString();\n String expected = \"test:TSTRING-I am a String\";\n assertEquals(expected, result);\n }",
"public void putRoleValue(String key, String value){\n SharedPreferences sharedPreference = context.getSharedPreferences(LOGIN, Context.MODE_PRIVATE);\n SharedPreferences.Editor editor=sharedPreference.edit();\n editor.putString(key,value);\n editor.apply();\n }",
"public <T> void setSetting(Setting setting, T value){\n setHeaderSetting(setting.toString(), value);\n }",
"public static void setOtherPlayer(String value, Context context) {\n SharedPreferences prefs = context.getSharedPreferences(PREF, Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = prefs.edit();\n editor.putString(\"OtherPlayer\", value);\n editor.commit();\n }",
"public void writeSyncPreferences(String string){\n mSharedPreference = mContext.getSharedPreferences(mContext.getString(\n R.string.sharedpreferencesFileName),Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = mSharedPreference.edit();\n editor.putString(getCurrentIdentity(),string);\n editor.commit();\n }",
"public void setValue(Object value) {\n setValue(value.toString());\n }"
] | [
"0.7235174",
"0.7235174",
"0.71769214",
"0.7148536",
"0.71473694",
"0.71473694",
"0.71473694",
"0.71473694",
"0.7010056",
"0.69922316",
"0.6904325",
"0.68953717",
"0.678426",
"0.67440885",
"0.67440796",
"0.67382085",
"0.67382085",
"0.66331357",
"0.6615227",
"0.6566691",
"0.65580666",
"0.6545458",
"0.65432465",
"0.6531828",
"0.6531828",
"0.6531828",
"0.6531828",
"0.6531828",
"0.6521906",
"0.6519807",
"0.6519807",
"0.6519807",
"0.6519807",
"0.6519807",
"0.6490194",
"0.64709604",
"0.6461402",
"0.6411858",
"0.6380934",
"0.6375614",
"0.637396",
"0.6363263",
"0.634461",
"0.6330378",
"0.6328352",
"0.6327723",
"0.6315277",
"0.63143826",
"0.6285774",
"0.6278032",
"0.6253249",
"0.62507105",
"0.6244385",
"0.6244385",
"0.6244385",
"0.6244385",
"0.6240415",
"0.62205195",
"0.62111723",
"0.6207635",
"0.6201107",
"0.61975497",
"0.61889756",
"0.618033",
"0.618033",
"0.6178788",
"0.61321384",
"0.61308676",
"0.6121834",
"0.61196184",
"0.6118467",
"0.6093393",
"0.6091851",
"0.60784423",
"0.607602",
"0.60457385",
"0.6043551",
"0.6024288",
"0.6022543",
"0.6020604",
"0.6013115",
"0.6000054",
"0.59893674",
"0.5985944",
"0.59837925",
"0.59834343",
"0.59815794",
"0.5972036",
"0.59514457",
"0.594267",
"0.5939497",
"0.5936323",
"0.59351826",
"0.5923817",
"0.59201896",
"0.5916465",
"0.5908206",
"0.59021866",
"0.5897029",
"0.58881414",
"0.58869255"
] | 0.0 | -1 |
get a string settings value by key | public String getString(String key, String defValue) {
return getString(Global.getContext(), key, defValue);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getSettingByKey(String key);",
"private String get(String key)\n {\n return settings.getProperty(key);\n }",
"String get(String key) {\n return settings.get(key);\n }",
"public Object get(String key) {\r\n\t\treturn settings.get(key);\r\n\t}",
"String getSettingByKey(HawkularUser user, String key);",
"public String getValue(final String key) {\n\n\t\treturn config.getString(StringUtils.lowerCase(key));\n\t\t\t}",
"public String getSetting(String key) throws SQLException {\n\t\treturn db.selectItem(\"value\", \"settings\", \"`key`='\"+key+\"'\");\n\t}",
"String getSettingByKey(String key, String defaultValue);",
"public String getSettings(String settingsKey) {\n\t\tString settingsValue = \"\";\n\t\ttry {\n\t\t\tCursor settings = localDB.query(true, TABLE_SETTINGS, null,\n\t\t\t\t\tKEY_SETTINGS_ID + \" = ?\", new String[] { settingsKey },\n\t\t\t\t\tnull, null, null, null);\n\t\t\tif ((settings.getCount() == 0) || !settings.moveToFirst()) {\n\t\t\t\treturn \"\";\n\t\t\t}\n\t\t\tsettingsValue = settings.getString(SETTINGS_VALUE_COLUMN);\n\t\t} catch (SQLiteException ex) {\n\t\t\tLog.d(TAG, ex.getMessage());\n\t\t}\n\t\tLog.v(TAG, \"setting: \" + settingsValue);\n\t\treturn settingsValue;\n\t}",
"public static String valueOf(String key) {\n try {\n if (!getInstance().containsKey(key)) {\n return \"\";\n } else {\n return getInstance().getProperty(key);\n }\n } catch (FileNotFoundException e) {\n System.err.println(\"Couldn't find \" + PROPERTIES_FILE);\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return \"\";\n }",
"String getString(String key);",
"public String getString(String key);",
"public static String getConfigValue(String key){\n\t\tResourceBundle rb = ResourceBundle.getBundle(\"config\");\n\t\tString value = rb.getString(key);\n\t\treturn value;\n\t}",
"public static String get(String key) throws UnknownID, IOFailure, ArgumentNotValid {\n\t\tArgumentNotValid.checkNotNullOrEmpty(key, \"String key\");\n\t\tString val = System.getProperty(key);\n\t\tif (val != null) {\n\t\t\treturn val;\n\t\t}\n\n\t\t// Key not in System.properties try loaded data instead\n\t\tsynchronized (fileSettingsXmlList) {\n\t\t\tfor (SimpleXml settingsXml : fileSettingsXmlList) {\n\t\t\t\tif (settingsXml.hasKey(key)) {\n\t\t\t\t\treturn settingsXml.getString(key);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n/*\n\t\t// Key not in file based settings, try classpath settings instead\n\t\tsynchronized (defaultClasspathSettingsXmlList) {\n\t\t\tfor (SimpleXml settingsXml : defaultClasspathSettingsXmlList) {\n\t\t\t\tif (settingsXml.hasKey(key)) {\n\t\t\t\t\treturn settingsXml.getString(key);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n */\n\t\tthrow new UnknownID(\"No match for key '\" + key + \"' in settings\");\n\t}",
"String getSettingByKey(HawkularUser user, String key, String defaultValue);",
"public String get(String key) {\n return cache.containsKey(key) ? cache.get(key) : customConfig.getString(key);\n }",
"public String get(String key) {\n\t\tInstant start = Instant.now();\n\t\tString value = getConfig(key);\n\t\tLOGGER.debug(\"Access to config {} to get {} took {}\", uniqueInstance.instanceUUID, key, Duration.between(start, Instant.now()));\t\t\n\t\treturn value;\n\t}",
"public static String getValue(String key) {\r\n\t\tload();\r\n\t\treturn properties.getProperty(key);\r\n\t}",
"public String getConfigurationValue(Enum<?> key) {\n // get string key\n String keyStr = key.toString();\n\n // get value\n String value = this.getConfigurationValue(keyStr);\n\n return value;\n }",
"public static String getSetting(Context context, String key) {\n SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(context);\n return sp.getString(key, null);\n\n }",
"public String get(String key) {\n return this.properties.getProperty(key);\n }",
"public static String get(String key){\n\t\tif(sys_cfg == null){\n\t\t\tsys_cfg = new Configuration(\"text.properties\");\n\t\t}\n\t\tString value = sys_cfg.getValue(key);\n\t\treturn value;\n\t}",
"private static String stringValue(String key) {\n String value = context.envString(toEnvvar(key));\n if(!isNullOrEmpty(value)) {\n return value;\n }\n\n value = System.getProperty(key);\n if(!isNullOrEmpty(value)) {\n return value;\n }\n\n value = context.configString(key);\n if(!isNullOrEmpty(value)) {\n return value;\n }\n\n return null;\n }",
"public static String getPropertyValue(String key){\n return properties.getProperty(key);\n }",
"public String getAsString(String key) {\n return entries.getProperty(key);\n }",
"@Override\r\n\tpublic String getProperty(String key) {\r\n\t\t\r\n\t\treturn Settings.getProperty(key);\r\n\t\t\r\n\t}",
"public String getPreference(String key) {\n return preferences.get(key).value;\n }",
"String getString( String key, String def);",
"public String getString(String key) {\n\t\tString sp = internal.getProperty(key);\n\t\tif (sp == null) {\n\t\t\tsp = (String) getDefault(key);\n\t\t}\n\t\treturn sp;\n\t}",
"public String getPref(String key) {\n\t SharedPreferences settings = activity.getSharedPreferences(PREFS_NAME, 0);\n\t settings = activity.getSharedPreferences(PREFS_NAME, 0);\n\t String value = settings.getString(key, \"\");\n\t return value;\n\t}",
"public String get(String key) {\n return this.properties.getProperty(key);\n }",
"String getValue(String type, String key);",
"public String getStringSetting(String name) {\n\t\treturn strings.get(name);\n\t}",
"public String getValue(String key) {\n\t\t\treturn properties.get(key);\n\t\t}",
"private String getString(String key) {\n return key;\r\n }",
"public String get(String key, String def)\n {\n return settings.getProperty(key, def);\n }",
"String getProperty(String key);",
"String getProperty(String key);",
"String getProperty(String key);",
"public static String get(String key) {\n return properties.getProperty(key);\n }",
"public String getString(String key) {\n return mPref.getString(key, null);\n }",
"private String getValueFromProperty(String key) {\n\t\treturn properties.getProperty(key);\n\n\t}",
"@NonNull\n public String getString(String key) {\n return mConfigurations.optString(key, \"\");\n }",
"public static String readConfigValue(Context context, String key) {\n Resources resources = context.getResources();\n try {\n InputStream inputStream = resources.openRawResource(R.raw.config);\n Properties properties = new Properties();\n properties.load(inputStream);\n return properties.getProperty(key);\n } catch (Exception e) {\n e.printStackTrace();\n }\n return \"\";\n }",
"public static String getProperty(String settingsPath, String key) {\n\t\tString v = \"\";\n\t\tProperties p = new Properties();\n\t\ttry {\n\t\t\tp.load(new FileInputStream(settingsPath));\n\t\t\tv = p.getProperty(key);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn v;\n\t}",
"public String getVal(String key) {\n Optional<KeyValList> kv = findKeyVal(key);\n\n if (kv.isPresent()) {\n return kv.get().getCfgVal();\n }\n\n return null;\n }",
"public static String getStringPref(String key) {\n\t\treturn getStringPref(key, \"\");\n\t}",
"String getString(String key, String defaultValue);",
"String getString(String key, String defaultValue);",
"@Override\n public String getString(String key) {\n \n if (overrideConfig.containsKey(key)) {\n return overrideConfig.get(key);\n }\n \n return ConfigurationFactory.getConfiguration().getString(key);\n }",
"private static String getString(String key) {\r\n\t\treturn ConfmlFeatureEditorPlugin.INSTANCE.getString(key);\r\n\t}",
"public String getPreference(String key) {\n return prefs.get(key, null);\n }",
"public String getStringProperty(String key) {\n \n return environment.getProperty(key, String.class);\n }",
"String get(Integer key);",
"public String getString(String key) {\r\n String value = (String) keyvaluepairs.get(key.toLowerCase());\r\n return value == null ? \"\" : value;\r\n }",
"public String getPreference(DataPreferenceEnum key)\n {\n return (preferencesHashMap.get(key));\n }",
"public String getValue(String key) {\r\n\t\t\treturn prop.getProperty(key);\r\n\t\t}",
"public Object get(String key) {\n return options.get(key);\n }",
"@Override\n\tpublic String queryByKey(String key) {\n\t\treturn settingDao.queryByKey(key);\n\t}",
"public String getValue(final String key) {\n final ConfigProperty cp = get(key);\n return cp != null ? cp.getValue() : null;\n }",
"public String getString(String key, String defaultValue);",
"public String getString(String key, String defaultValue);",
"public static String getStringForKey(String key)\n\t{\n\t\treturn PreferencesModel.instance().getUserStringPref(key, null);\n\t}",
"public static String getStringPreference(String key) {\n return sharedPreferences.getString(key, null);\n }",
"public String get(String key) {\n\t\t//get this file's text\n\t\tString text = FileIO.read(this.getPath());\n\t\tString value = null;\n\t\ttry {\n\t\t\t//try matching the pattern: key : value\\n \n\t\t\tPattern pattern = Pattern.compile(key+\" : (.*?)\\n\");\n\t\t\t\n\t\t\tMatcher matcher = pattern.matcher(text);\n\t\t\tmatcher.find();\n\t\t\t\n\t\t\t//get the value\n\t\t\tvalue = matcher.group(1);\n\t\t\t\n\t\t}catch(Exception e) {/*do nothing*/}\n\t\t\n\t\treturn value;\n\t}",
"public String getMandatoryString(String key) throws ConfigNotFoundException;",
"public String get(String key) {\n return getData().get(key);\n }",
"final String get(String key) {\n return get(key,null);\n }",
"public static String getParam(String key) {\n Configuration cur = getCurrentConfig();\n if (cur == null) {\n return null;\n }\n return cur.get(key);\n }",
"private static final String getStringPreference(String key, String defValue) {\n final SharedPreferences settings = DemoApp.getSharedPreferences();\n return settings.getString(key, defValue);\n }",
"public static String getValue(String key){\n\t\tResourceBundle rb = ResourceBundle.getBundle(\"message\");\n\t\tString value = rb.getString(key);\n\t\treturn value;\n\t}",
"public <T> T getSetting(Setting setting) {\n return getValue(setting.toString());\n }",
"public static String getString(String key) {\n\t\tif (rb == null)\n\t\t\treinit();\n\n\t\tif (rb.containsKey(key)) {\n\t\t\treturn rb.getString(key);\n\t\t} else {\n\t\t\tLOG.warning(String.format(PermMessages._loc_noval, key));\n\t\t\treturn no_value;\n\t\t}\n\t}",
"String getEnvironmentProperty(String key);",
"<S> S getSetting(Setting<S> setting);",
"public String getString(String key)\n {\n return getString(key, null);\n }",
"public\n String getProperty_String(String key)\n {\n if (key == null)\n return null;\n\n String val = getProperty(key);\n\n return val;\n }",
"public static String s(String key) {\n\t\treturn RES.getString(key);\n\t}",
"public static String getPrefStringData(Context context, String key) {\n try {\n SharedPreferences pref = context.getSharedPreferences(APP_CONFIG_PREF, Context.MODE_PRIVATE);\n return pref.getString(key, \"\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n return \"\";\n }",
"public String getString(String key) {\n Object value = get(key);\n return ((value instanceof String) ? (String)value : \"\");\n }",
"public String getString(String urlKey) {\n\t\treturn properties.getProperty(urlKey);\t\t\t\t\n\t}",
"public Optional<String> safeGet(String key) {\n\t\tInstant start = Instant.now();\n\t\tOptional<String> result;\n\t\ttry {\n\t\t\tresult = Optional.of(get(key));\n\t\t} catch (ConfigException e) {\n\t\t\tLOGGER.warn(\"No value was found for key {}: an Optional.empty() will be returned\", key);\n\t\t\tresult = Optional.empty();\n\t\t}\n\t\tLOGGER.debug(\"Access to config {} to safeGet {} took {}\", uniqueInstance.instanceUUID, key, Duration.between(start, Instant.now()));\n\t\treturn result;\n\t}",
"String getValue(Key key) {\n return this.parameters.get(key);\n }",
"public String getPrefrence(String key) {\n SharedPreferences prefrence = context.getSharedPreferences(\n context.getString(R.string.app_name), 0);\n String data = prefrence.getString(key, \"\");\n return data;\n }",
"public String getPrefrence(String key) {\n SharedPreferences prefrence = context.getSharedPreferences(\n context.getString(R.string.app_name), 0);\n String data = prefrence.getString(key, \"\");\n return data;\n }",
"public String get(String key) {\n return this.map.get(key);\n }",
"public String getString( String key) {\n\t\tString value = definitionsProperties.getProperty(key);\n\t\t\n\t\tif(value == null) {\n\t\t\tthrow new IllegalStateException( \"Missing definitions parameter: \" + key);\n\t\t}\n\t\treturn value;\n\t}",
"public String getAsString(String key, String defaultVal) {\n return entries.getProperty(key, defaultVal);\n }",
"public static String getString(final String key) {\r\n if (PROP == null) {\r\n throw new RuntimeException(\"Config hasn't been initialized yet.\");\r\n }\r\n if (PROP.containsKey(key))\r\n return PROP.getProperty(key);\r\n else\r\n throw new RuntimeException(\"No config key found for [\" + key + \"].\"\r\n + \" from PROP:\" + PROP);\r\n }",
"@Override\r\n\tpublic String get(Object key) {\r\n\t\tif (key == null) return null;\r\n\t\treturn getProperty(key.toString());\r\n\t}",
"Optional<SettingDTO> getSetting(String settingKey);",
"public String getString(String key)\r\n {\r\n debug(\"getString(\" + key + \") - retrieving Key...\");\r\n String value = null;\r\n try\r\n {\r\n value = getResourceBundle().getString(key);\r\n }\r\n catch (MissingResourceException e)\r\n {\r\n System.out.println(\"java.util.MissingResourceException: \" + \"Couldn't find value for: \" + key);\r\n }\r\n if (value == null)\r\n {\r\n value = \"Could not find resource: \" + key + \" \";\r\n }\r\n debug(\"getString(\" + key + \") - value ==> \" + value);\r\n debug(\"getString(\" + key + \") - retrieving Key...Done\");\r\n return value;\r\n }",
"public String get(String key) {\n return mMap.get(key);\n }",
"public String getProperty(String key) {\n\t\treturn Optional.ofNullable(env.get(key)).orElseGet(()->\"\");\n\t}",
"public static String getProperty (String key) {\n return SystemProperties.getProperty(key);\n }",
"public String get(String key) {\n Node pos = find(key);\n if (pos == null) {\n return null;\n } else {\n return pos.pairStringString.getValue();\n }\n }",
"public String getString(String key) {\n return (String) commandData.get(key);\n }",
"public static Object get(String key) {\n return prefs.contains(key) ? prefs.getAll().get(key):null;\n }",
"public String getProperty(String key) {\n String value = properties.getProperty(key);\n return value;\n }",
"public String get(int key){\n\t\treturn(hashMap[key]);\t\t\n\t}",
"public static String getString(Tag tag){\n makeInstance();\n return settingsFile.getString(tag);\n }"
] | [
"0.88307106",
"0.8388538",
"0.8387319",
"0.777243",
"0.7487611",
"0.7379799",
"0.7370904",
"0.7315085",
"0.7299649",
"0.7168934",
"0.7083527",
"0.70692956",
"0.7061916",
"0.7052769",
"0.703761",
"0.7009272",
"0.69952947",
"0.69597757",
"0.6954012",
"0.6927335",
"0.69118714",
"0.6898457",
"0.6897337",
"0.68874234",
"0.68792653",
"0.68678135",
"0.6861193",
"0.68538094",
"0.6835712",
"0.6821977",
"0.6821496",
"0.68184626",
"0.6806487",
"0.6801472",
"0.679423",
"0.6790024",
"0.67849445",
"0.67849445",
"0.67849445",
"0.6780394",
"0.6752979",
"0.6751939",
"0.6723722",
"0.66931504",
"0.6615932",
"0.6610855",
"0.6604091",
"0.65987265",
"0.65987265",
"0.6590161",
"0.6580779",
"0.65608317",
"0.6548831",
"0.65479046",
"0.654468",
"0.65310395",
"0.6519452",
"0.650357",
"0.6496911",
"0.6487333",
"0.64691377",
"0.64691377",
"0.6466862",
"0.6466094",
"0.6463792",
"0.64478976",
"0.644629",
"0.6440111",
"0.6407718",
"0.6406165",
"0.63955003",
"0.6377564",
"0.6375651",
"0.63731736",
"0.6371554",
"0.6334078",
"0.632891",
"0.63196635",
"0.6300505",
"0.6300256",
"0.62835485",
"0.6282533",
"0.6273358",
"0.6270017",
"0.6270017",
"0.6268672",
"0.6264501",
"0.62569827",
"0.6232599",
"0.62155765",
"0.6209304",
"0.62033296",
"0.6194301",
"0.6186272",
"0.61817205",
"0.6174124",
"0.61706215",
"0.6155495",
"0.6149106",
"0.61364454",
"0.61104256"
] | 0.0 | -1 |
get a string settings value by key | public static String getString(Context context, String key, String defValue) {
if (sInstance != null && sInstance.mSettings.containsKey(key)) {
return (String) sInstance.mSettings.get(key);
}
String val = defValue;
try {
val = getPreferences(context).getString(key, defValue);
} catch(ClassCastException e) {
Debug.logException(e);
}
if (sInstance != null) {
sInstance.mSettings.put(key, val);
}
return val;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getSettingByKey(String key);",
"private String get(String key)\n {\n return settings.getProperty(key);\n }",
"String get(String key) {\n return settings.get(key);\n }",
"public Object get(String key) {\r\n\t\treturn settings.get(key);\r\n\t}",
"String getSettingByKey(HawkularUser user, String key);",
"public String getValue(final String key) {\n\n\t\treturn config.getString(StringUtils.lowerCase(key));\n\t\t\t}",
"public String getSetting(String key) throws SQLException {\n\t\treturn db.selectItem(\"value\", \"settings\", \"`key`='\"+key+\"'\");\n\t}",
"String getSettingByKey(String key, String defaultValue);",
"public String getSettings(String settingsKey) {\n\t\tString settingsValue = \"\";\n\t\ttry {\n\t\t\tCursor settings = localDB.query(true, TABLE_SETTINGS, null,\n\t\t\t\t\tKEY_SETTINGS_ID + \" = ?\", new String[] { settingsKey },\n\t\t\t\t\tnull, null, null, null);\n\t\t\tif ((settings.getCount() == 0) || !settings.moveToFirst()) {\n\t\t\t\treturn \"\";\n\t\t\t}\n\t\t\tsettingsValue = settings.getString(SETTINGS_VALUE_COLUMN);\n\t\t} catch (SQLiteException ex) {\n\t\t\tLog.d(TAG, ex.getMessage());\n\t\t}\n\t\tLog.v(TAG, \"setting: \" + settingsValue);\n\t\treturn settingsValue;\n\t}",
"public static String valueOf(String key) {\n try {\n if (!getInstance().containsKey(key)) {\n return \"\";\n } else {\n return getInstance().getProperty(key);\n }\n } catch (FileNotFoundException e) {\n System.err.println(\"Couldn't find \" + PROPERTIES_FILE);\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return \"\";\n }",
"String getString(String key);",
"public String getString(String key);",
"public static String getConfigValue(String key){\n\t\tResourceBundle rb = ResourceBundle.getBundle(\"config\");\n\t\tString value = rb.getString(key);\n\t\treturn value;\n\t}",
"public static String get(String key) throws UnknownID, IOFailure, ArgumentNotValid {\n\t\tArgumentNotValid.checkNotNullOrEmpty(key, \"String key\");\n\t\tString val = System.getProperty(key);\n\t\tif (val != null) {\n\t\t\treturn val;\n\t\t}\n\n\t\t// Key not in System.properties try loaded data instead\n\t\tsynchronized (fileSettingsXmlList) {\n\t\t\tfor (SimpleXml settingsXml : fileSettingsXmlList) {\n\t\t\t\tif (settingsXml.hasKey(key)) {\n\t\t\t\t\treturn settingsXml.getString(key);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n/*\n\t\t// Key not in file based settings, try classpath settings instead\n\t\tsynchronized (defaultClasspathSettingsXmlList) {\n\t\t\tfor (SimpleXml settingsXml : defaultClasspathSettingsXmlList) {\n\t\t\t\tif (settingsXml.hasKey(key)) {\n\t\t\t\t\treturn settingsXml.getString(key);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n */\n\t\tthrow new UnknownID(\"No match for key '\" + key + \"' in settings\");\n\t}",
"String getSettingByKey(HawkularUser user, String key, String defaultValue);",
"public String get(String key) {\n return cache.containsKey(key) ? cache.get(key) : customConfig.getString(key);\n }",
"public String get(String key) {\n\t\tInstant start = Instant.now();\n\t\tString value = getConfig(key);\n\t\tLOGGER.debug(\"Access to config {} to get {} took {}\", uniqueInstance.instanceUUID, key, Duration.between(start, Instant.now()));\t\t\n\t\treturn value;\n\t}",
"public static String getValue(String key) {\r\n\t\tload();\r\n\t\treturn properties.getProperty(key);\r\n\t}",
"public String getConfigurationValue(Enum<?> key) {\n // get string key\n String keyStr = key.toString();\n\n // get value\n String value = this.getConfigurationValue(keyStr);\n\n return value;\n }",
"public static String getSetting(Context context, String key) {\n SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(context);\n return sp.getString(key, null);\n\n }",
"public String get(String key) {\n return this.properties.getProperty(key);\n }",
"public static String get(String key){\n\t\tif(sys_cfg == null){\n\t\t\tsys_cfg = new Configuration(\"text.properties\");\n\t\t}\n\t\tString value = sys_cfg.getValue(key);\n\t\treturn value;\n\t}",
"private static String stringValue(String key) {\n String value = context.envString(toEnvvar(key));\n if(!isNullOrEmpty(value)) {\n return value;\n }\n\n value = System.getProperty(key);\n if(!isNullOrEmpty(value)) {\n return value;\n }\n\n value = context.configString(key);\n if(!isNullOrEmpty(value)) {\n return value;\n }\n\n return null;\n }",
"public static String getPropertyValue(String key){\n return properties.getProperty(key);\n }",
"public String getAsString(String key) {\n return entries.getProperty(key);\n }",
"@Override\r\n\tpublic String getProperty(String key) {\r\n\t\t\r\n\t\treturn Settings.getProperty(key);\r\n\t\t\r\n\t}",
"public String getPreference(String key) {\n return preferences.get(key).value;\n }",
"String getString( String key, String def);",
"public String getString(String key) {\n\t\tString sp = internal.getProperty(key);\n\t\tif (sp == null) {\n\t\t\tsp = (String) getDefault(key);\n\t\t}\n\t\treturn sp;\n\t}",
"public String getPref(String key) {\n\t SharedPreferences settings = activity.getSharedPreferences(PREFS_NAME, 0);\n\t settings = activity.getSharedPreferences(PREFS_NAME, 0);\n\t String value = settings.getString(key, \"\");\n\t return value;\n\t}",
"public String get(String key) {\n return this.properties.getProperty(key);\n }",
"String getValue(String type, String key);",
"public String getStringSetting(String name) {\n\t\treturn strings.get(name);\n\t}",
"public String getValue(String key) {\n\t\t\treturn properties.get(key);\n\t\t}",
"private String getString(String key) {\n return key;\r\n }",
"public String get(String key, String def)\n {\n return settings.getProperty(key, def);\n }",
"String getProperty(String key);",
"String getProperty(String key);",
"String getProperty(String key);",
"public static String get(String key) {\n return properties.getProperty(key);\n }",
"public String getString(String key) {\n return mPref.getString(key, null);\n }",
"private String getValueFromProperty(String key) {\n\t\treturn properties.getProperty(key);\n\n\t}",
"@NonNull\n public String getString(String key) {\n return mConfigurations.optString(key, \"\");\n }",
"public static String readConfigValue(Context context, String key) {\n Resources resources = context.getResources();\n try {\n InputStream inputStream = resources.openRawResource(R.raw.config);\n Properties properties = new Properties();\n properties.load(inputStream);\n return properties.getProperty(key);\n } catch (Exception e) {\n e.printStackTrace();\n }\n return \"\";\n }",
"public static String getProperty(String settingsPath, String key) {\n\t\tString v = \"\";\n\t\tProperties p = new Properties();\n\t\ttry {\n\t\t\tp.load(new FileInputStream(settingsPath));\n\t\t\tv = p.getProperty(key);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn v;\n\t}",
"public String getVal(String key) {\n Optional<KeyValList> kv = findKeyVal(key);\n\n if (kv.isPresent()) {\n return kv.get().getCfgVal();\n }\n\n return null;\n }",
"public static String getStringPref(String key) {\n\t\treturn getStringPref(key, \"\");\n\t}",
"String getString(String key, String defaultValue);",
"String getString(String key, String defaultValue);",
"@Override\n public String getString(String key) {\n \n if (overrideConfig.containsKey(key)) {\n return overrideConfig.get(key);\n }\n \n return ConfigurationFactory.getConfiguration().getString(key);\n }",
"private static String getString(String key) {\r\n\t\treturn ConfmlFeatureEditorPlugin.INSTANCE.getString(key);\r\n\t}",
"public String getPreference(String key) {\n return prefs.get(key, null);\n }",
"public String getStringProperty(String key) {\n \n return environment.getProperty(key, String.class);\n }",
"String get(Integer key);",
"public String getString(String key) {\r\n String value = (String) keyvaluepairs.get(key.toLowerCase());\r\n return value == null ? \"\" : value;\r\n }",
"public String getPreference(DataPreferenceEnum key)\n {\n return (preferencesHashMap.get(key));\n }",
"public String getValue(String key) {\r\n\t\t\treturn prop.getProperty(key);\r\n\t\t}",
"public Object get(String key) {\n return options.get(key);\n }",
"@Override\n\tpublic String queryByKey(String key) {\n\t\treturn settingDao.queryByKey(key);\n\t}",
"public String getValue(final String key) {\n final ConfigProperty cp = get(key);\n return cp != null ? cp.getValue() : null;\n }",
"public String getString(String key, String defaultValue);",
"public String getString(String key, String defaultValue);",
"public static String getStringForKey(String key)\n\t{\n\t\treturn PreferencesModel.instance().getUserStringPref(key, null);\n\t}",
"public static String getStringPreference(String key) {\n return sharedPreferences.getString(key, null);\n }",
"public String get(String key) {\n\t\t//get this file's text\n\t\tString text = FileIO.read(this.getPath());\n\t\tString value = null;\n\t\ttry {\n\t\t\t//try matching the pattern: key : value\\n \n\t\t\tPattern pattern = Pattern.compile(key+\" : (.*?)\\n\");\n\t\t\t\n\t\t\tMatcher matcher = pattern.matcher(text);\n\t\t\tmatcher.find();\n\t\t\t\n\t\t\t//get the value\n\t\t\tvalue = matcher.group(1);\n\t\t\t\n\t\t}catch(Exception e) {/*do nothing*/}\n\t\t\n\t\treturn value;\n\t}",
"public String getMandatoryString(String key) throws ConfigNotFoundException;",
"public String get(String key) {\n return getData().get(key);\n }",
"final String get(String key) {\n return get(key,null);\n }",
"public static String getParam(String key) {\n Configuration cur = getCurrentConfig();\n if (cur == null) {\n return null;\n }\n return cur.get(key);\n }",
"private static final String getStringPreference(String key, String defValue) {\n final SharedPreferences settings = DemoApp.getSharedPreferences();\n return settings.getString(key, defValue);\n }",
"public static String getValue(String key){\n\t\tResourceBundle rb = ResourceBundle.getBundle(\"message\");\n\t\tString value = rb.getString(key);\n\t\treturn value;\n\t}",
"public <T> T getSetting(Setting setting) {\n return getValue(setting.toString());\n }",
"public static String getString(String key) {\n\t\tif (rb == null)\n\t\t\treinit();\n\n\t\tif (rb.containsKey(key)) {\n\t\t\treturn rb.getString(key);\n\t\t} else {\n\t\t\tLOG.warning(String.format(PermMessages._loc_noval, key));\n\t\t\treturn no_value;\n\t\t}\n\t}",
"String getEnvironmentProperty(String key);",
"<S> S getSetting(Setting<S> setting);",
"public String getString(String key)\n {\n return getString(key, null);\n }",
"public\n String getProperty_String(String key)\n {\n if (key == null)\n return null;\n\n String val = getProperty(key);\n\n return val;\n }",
"public static String s(String key) {\n\t\treturn RES.getString(key);\n\t}",
"public static String getPrefStringData(Context context, String key) {\n try {\n SharedPreferences pref = context.getSharedPreferences(APP_CONFIG_PREF, Context.MODE_PRIVATE);\n return pref.getString(key, \"\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n return \"\";\n }",
"public String getString(String key) {\n Object value = get(key);\n return ((value instanceof String) ? (String)value : \"\");\n }",
"public String getString(String urlKey) {\n\t\treturn properties.getProperty(urlKey);\t\t\t\t\n\t}",
"public Optional<String> safeGet(String key) {\n\t\tInstant start = Instant.now();\n\t\tOptional<String> result;\n\t\ttry {\n\t\t\tresult = Optional.of(get(key));\n\t\t} catch (ConfigException e) {\n\t\t\tLOGGER.warn(\"No value was found for key {}: an Optional.empty() will be returned\", key);\n\t\t\tresult = Optional.empty();\n\t\t}\n\t\tLOGGER.debug(\"Access to config {} to safeGet {} took {}\", uniqueInstance.instanceUUID, key, Duration.between(start, Instant.now()));\n\t\treturn result;\n\t}",
"String getValue(Key key) {\n return this.parameters.get(key);\n }",
"public String getPrefrence(String key) {\n SharedPreferences prefrence = context.getSharedPreferences(\n context.getString(R.string.app_name), 0);\n String data = prefrence.getString(key, \"\");\n return data;\n }",
"public String getPrefrence(String key) {\n SharedPreferences prefrence = context.getSharedPreferences(\n context.getString(R.string.app_name), 0);\n String data = prefrence.getString(key, \"\");\n return data;\n }",
"public String get(String key) {\n return this.map.get(key);\n }",
"public String getString( String key) {\n\t\tString value = definitionsProperties.getProperty(key);\n\t\t\n\t\tif(value == null) {\n\t\t\tthrow new IllegalStateException( \"Missing definitions parameter: \" + key);\n\t\t}\n\t\treturn value;\n\t}",
"public String getAsString(String key, String defaultVal) {\n return entries.getProperty(key, defaultVal);\n }",
"public static String getString(final String key) {\r\n if (PROP == null) {\r\n throw new RuntimeException(\"Config hasn't been initialized yet.\");\r\n }\r\n if (PROP.containsKey(key))\r\n return PROP.getProperty(key);\r\n else\r\n throw new RuntimeException(\"No config key found for [\" + key + \"].\"\r\n + \" from PROP:\" + PROP);\r\n }",
"@Override\r\n\tpublic String get(Object key) {\r\n\t\tif (key == null) return null;\r\n\t\treturn getProperty(key.toString());\r\n\t}",
"Optional<SettingDTO> getSetting(String settingKey);",
"public String getString(String key)\r\n {\r\n debug(\"getString(\" + key + \") - retrieving Key...\");\r\n String value = null;\r\n try\r\n {\r\n value = getResourceBundle().getString(key);\r\n }\r\n catch (MissingResourceException e)\r\n {\r\n System.out.println(\"java.util.MissingResourceException: \" + \"Couldn't find value for: \" + key);\r\n }\r\n if (value == null)\r\n {\r\n value = \"Could not find resource: \" + key + \" \";\r\n }\r\n debug(\"getString(\" + key + \") - value ==> \" + value);\r\n debug(\"getString(\" + key + \") - retrieving Key...Done\");\r\n return value;\r\n }",
"public String get(String key) {\n return mMap.get(key);\n }",
"public String getProperty(String key) {\n\t\treturn Optional.ofNullable(env.get(key)).orElseGet(()->\"\");\n\t}",
"public static String getProperty (String key) {\n return SystemProperties.getProperty(key);\n }",
"public String get(String key) {\n Node pos = find(key);\n if (pos == null) {\n return null;\n } else {\n return pos.pairStringString.getValue();\n }\n }",
"public String getString(String key) {\n return (String) commandData.get(key);\n }",
"public static Object get(String key) {\n return prefs.contains(key) ? prefs.getAll().get(key):null;\n }",
"public String getProperty(String key) {\n String value = properties.getProperty(key);\n return value;\n }",
"public String get(int key){\n\t\treturn(hashMap[key]);\t\t\n\t}",
"public static String getString(Tag tag){\n makeInstance();\n return settingsFile.getString(tag);\n }"
] | [
"0.88307106",
"0.8388538",
"0.8387319",
"0.777243",
"0.7487611",
"0.7379799",
"0.7370904",
"0.7315085",
"0.7299649",
"0.7168934",
"0.7083527",
"0.70692956",
"0.7061916",
"0.7052769",
"0.703761",
"0.7009272",
"0.69952947",
"0.69597757",
"0.6954012",
"0.6927335",
"0.69118714",
"0.6898457",
"0.6897337",
"0.68874234",
"0.68792653",
"0.68678135",
"0.6861193",
"0.68538094",
"0.6835712",
"0.6821977",
"0.6821496",
"0.68184626",
"0.6806487",
"0.6801472",
"0.679423",
"0.6790024",
"0.67849445",
"0.67849445",
"0.67849445",
"0.6780394",
"0.6752979",
"0.6751939",
"0.6723722",
"0.66931504",
"0.6615932",
"0.6610855",
"0.6604091",
"0.65987265",
"0.65987265",
"0.6590161",
"0.6580779",
"0.65608317",
"0.6548831",
"0.65479046",
"0.654468",
"0.65310395",
"0.6519452",
"0.650357",
"0.6496911",
"0.6487333",
"0.64691377",
"0.64691377",
"0.6466862",
"0.6466094",
"0.6463792",
"0.64478976",
"0.644629",
"0.6440111",
"0.6407718",
"0.6406165",
"0.63955003",
"0.6377564",
"0.6375651",
"0.63731736",
"0.6371554",
"0.6334078",
"0.632891",
"0.63196635",
"0.6300505",
"0.6300256",
"0.62835485",
"0.6282533",
"0.6273358",
"0.6270017",
"0.6270017",
"0.6268672",
"0.6264501",
"0.62569827",
"0.6232599",
"0.62155765",
"0.6209304",
"0.62033296",
"0.6194301",
"0.6186272",
"0.61817205",
"0.6174124",
"0.61706215",
"0.6155495",
"0.6149106",
"0.61364454",
"0.61104256"
] | 0.0 | -1 |
put a string value into settings | public void putString(String key, String value, boolean commit) {
putString(Global.getContext(), key, value, commit);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setValue(String value);",
"void setValue(String value);",
"protected void addSetting(String text) {\n // Get the key and value from the string\n String[] parts = text.split(\":\");\n \n // Get the setting name\n String name = parts[0];\n \n // Get the value\n String value = String.join(\":\", Arrays.copyOfRange(parts, 1, parts.length));\n \n // Store the setting\n settings.put(name, value);\n }",
"void setValue(java.lang.String value);",
"public void setValue(String value);",
"public void setValue(String value);",
"public void setValue(String value);",
"public void setValue(String value);",
"void setValue(final String value);",
"public void setValue (String Value);",
"public void setString(String key, String value) {\n SharedPreferences.Editor editor = mPref.edit();\n editor.putString(key, value);\n editor.commit();\n }",
"UserSettings store(String key, String value);",
"public void setSettings(final String settings);",
"public void setPreference(View v){\n SharedPreferences.Editor editor = settings.edit();\n String prefValue = cHelpers.getText(this, R.id.editText);\n editor.putString(\"key1\",prefValue);\n editor.commit();\n cHelpers.show_toast(this, \"Preference Saved\");\n }",
"private static void writeStringValue(String path, String value){\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putString(path, value);\n editor.apply();\n }",
"void set(String key, String value) {\n if (notAnyEmpty(key, value))\n settings.put(key, value);\n }",
"void set(String key, String value) {\n if (notAnyEmpty(key, value))\n settings.put(key, value);\n }",
"public void setValue(String value)\n {\n this.value = value;\n }",
"public static void setPrefStringData(Context context, String key, String value) {\n SharedPreferences appInstallInfoSharedPref = context.\n getSharedPreferences(APP_CONFIG_PREF, Context.MODE_PRIVATE);\n SharedPreferences.Editor appInstallInfoEditor = appInstallInfoSharedPref.edit();\n appInstallInfoEditor.putString(key, value);\n appInstallInfoEditor.apply();\n }",
"public void setValue(String value) {\n\t this.valueS = value;\n\t }",
"public void setValue( String value )\n {\n this.value = value;\n }",
"<S> void putSetting(Setting<S> setting, S value, String... comments);",
"public void setValue(String value) {\n set (value);\n }",
"public void setValue(String value) {\r\n this.value = value;\r\n }",
"public void setValue(String value) {\r\n this.value = value;\r\n }",
"public void setValue(String value) {\r\n this.value = value;\r\n }",
"public void setValue(String value) {\r\n this.value = value;\r\n }",
"public void setValue(String value) {\r\n this.value = value;\r\n }",
"public void saveString(String key,String value)\n {\n preference.edit().putString(key,value).apply();\n }",
"public void setValue(String value) {\n this.value = value;\n }",
"public void setValue(String value) {\n this.value = value;\n }",
"public void setValue(String value) {\n this.value = value;\n }",
"public void setValue(String value) {\n this.value = value;\n }",
"public void setValue(String value) {\n this.value = value;\n }",
"synchronized public static void putString(Context context, String key, String value, boolean commit) {\r\n\t\tensurePreferencesEditor(context);\r\n\t\tsPreferencesEditor.putString(key, value);\r\n\t\tif (commit) {\r\n\t\t\tsPreferencesEditor.commit();\r\n\t\t}\r\n\t\tif (sInstance != null) {\r\n\t\t\tsInstance.mSettings.put(key, value);\r\n\t\t}\r\n\t}",
"public void setValue(final String value)\n {\n this.value = value;\n }",
"public void setStr(String key, String value) {\n PREF_EDITOR.putString(key, value);\n PREF_EDITOR.commit();\n }",
"public void put(String key, Object value) {\r\n\t\tthis.settings.put(key, value);\r\n\t}",
"public void setValue(final String value) {\n this.value = value;\n }",
"public static void setString(String aKey, String aValue) {\n getSharedPreferences().edit().putString(aKey, aValue).apply();\n }",
"public void setValue(java.lang.String value) {\n this.value = value;\n }",
"public void setString(String key, String value) {\n overrideConfig.put(key, value);\n }",
"public static void setSetting(Context context, String key, String value) {\n SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(context);\n SharedPreferences.Editor editor = sp.edit();\n editor.putString(key, value);\n editor.commit();\n }",
"public final void setValue(java.lang.String value)\r\n\t{\r\n\t\tsetValue(getContext(), value);\r\n\t}",
"String setValue();",
"public void set(String s);",
"void setValue(String s) throws YangException;",
"void setValueString(org.hl7.fhir.String valueString);",
"@Test\n public void testSetStype() {\n System.out.println(\"setStype\");\n Setting.SETTING_TYPE stype;\n Setting instance = Setting.getSetting(\"test\");\n stype = instance.getStype();\n assertEquals(Setting.SETTING_TYPE.UND, stype);\n\n instance.setStype(Setting.SETTING_TYPE.TSTRING);\n instance.setValue(\"I am a String\");\n String result = instance.toString();\n String expected = \"test:TSTRING-I am a String\";\n assertEquals(expected, result);\n\n }",
"public void saveString(int prefKey, String value) {\n SharedPreferences.Editor editor = sharedPref.edit();\n editor.putString(getResources().getString(prefKey), value);\n editor.apply();\n }",
"public static void setStringValue(final String prefFile, final String key, final String value) {\n final SharedPreferences sharedPref = getSharedPreferences(prefFile);\n final SharedPreferences.Editor editor = sharedPref.edit();\n editor.putString(key, value);\n editor.apply();\n }",
"public void set(String key, String value)\n {\n settings.setProperty(key, value);\n }",
"public void setValue(String value) {\n\t\tthis.value = value;\n\t}",
"public void setValue(String value) {\n\t\tthis.value = value;\n\t}",
"public void setValue(String value) {\n\t\tthis.value = value;\n\t}",
"public void setValue(String value) {\n\t\tthis.value = value;\n\t}",
"public void setValue(String value)\n {\n if (value == null)\n throw new IllegalArgumentException(\"value cannot be null\");\n \n this.value = value;\n }",
"@Override\n public void saveString(String key, String value) {\n SharedPreferences.Editor prefs = mSharedPreferences.edit();\n prefs.putString(key, checkNotNull(value));\n prefs.commit();\n }",
"public void setString(String value) {\r\n\t\ttype(ConfigurationItemType.STRING);\r\n\t\tthis.stringValue = value;\r\n\t}",
"public void setValue(String value) {\r\n\t\tthis.value = value;\r\n\t}",
"public void setValue(String value) {\n\t\tthis.value = value;\n\t}",
"@Override\r\n\tpublic Object setProperty(String key, String value) {\r\n\t\t\r\n\t\treturn Settings.setProperty(key, value);\r\n\t\t\r\n\t}",
"public void setStringValue(String value) {\n setValueIndex(getPool().findStringEntry(value, true));\n }",
"public void setPrefrence(String key, String value) {\n SharedPreferences prefrence = context.getSharedPreferences(\n context.getString(R.string.app_name), 0);\n SharedPreferences.Editor editor = prefrence.edit();\n editor.putString(key, value);\n editor.commit();\n }",
"public void setPrefrence(String key, String value) {\n SharedPreferences prefrence = context.getSharedPreferences(\n context.getString(R.string.app_name), 0);\n SharedPreferences.Editor editor = prefrence.edit();\n editor.putString(key, value);\n editor.commit();\n }",
"public void setConfigurationValue(String name, String value);",
"public void setString(String name, String value) {\n parameters.get(name).setValue(value);\n }",
"protected synchronized void setStringValue(String tag, String value) {\n if (actualProperties != null) {\n actualProperties.put(tag, value);\n }\n }",
"public void putStringData(String key, String value) {\n editor.putString(key, value);\n editor.apply();\n }",
"private void setConfig(final String value) {\n\n config = StringUtils.trim(value);\n }",
"boolean setValue(String type, String key, String value);",
"public void setPersistentString(String key, String value);",
"void set(String text);",
"UserSettings store(HawkularUser user, String key, String value);",
"public static void saveToSharedPreference(String key, String value) {\n\n appSharePreference.edit().putString(key.toString(), value.toString()).apply();\n }",
"public static void SetPreferByString(Context context, String key,\n\t\t\tString value) {\n\t\tSharedPreferences mPrefer = PreferenceManager\n\t\t\t\t.getDefaultSharedPreferences(context);\n\t\tEditor editor = mPrefer.edit();\n\t\teditor.putString(key, value);\n\t\teditor.commit();\n\t}",
"public S<T> setPref(String value, String key) {\n\t SharedPreferences settings = activity.getSharedPreferences(PREFS_NAME, 0);\n\t settings = activity.getSharedPreferences(PREFS_NAME, 0);\n\t SharedPreferences.Editor editor = settings.edit();\n\t editor.putString(key, value);\n\t editor.commit();\n\t return this;\n\t}",
"protected void set(String key, String value)\r\n\t{ this.preferences.put(key, value); }",
"private void insertStringValue(String field, String value) {\n mapFieldsStrings.put(field, value);\n }",
"public static void setSetting(String settingName, String value) {\r\n\t\tjson.set(settingName, value);\r\n\t\tjson.save();\r\n\t}",
"public static void putString(String key, String value, Context context) {\n checkForNullKey(key);\n checkForNullValue(value);\n getSharedPreferences(context).edit().putString(key, value).apply();\n }",
"public void setValue(String value) {\n\t\tthis.text = value;\n\t}",
"public static void setShared(Context context, String name, String value) {\n SharedPreferences prefs = PreferenceManager\n .getDefaultSharedPreferences(context);\n SharedPreferences.Editor editor = prefs.edit();\n editor.putString(name, value);\n editor.commit();\n }",
"protected void setValue( String strValue )\n {\n _strValue = strValue;\n }",
"public static void setParameterString(String key, String value)\n throws Exception {\n ini.setProperty(key, value);\n systemlog(LogType.DEBUG, \"setParam \" + key + \" to: \" + value);\n }",
"@Override\n protected void loadValue(String sValue) {\n value = sValue;\n }",
"public void setStringValue(String v)\n {\n this.setValue(v);\n }",
"public void setParameterValue(String name, String value) {\n\tgetLogger().finest(\"Setting: \"+name+\" = \"+value);\n\tif (name.equals(\"genie.restart\")) {\n\t _parameters.put(name,value.substring(0,CHARS_RESTART));\n\t} else if (name.equals(\"genie.lout\")) {\n\t _parameters.put(name,value.substring(0,CHARS_LOUT));\n\t} else if (name.equals(\"genie.lin\")) {\n\t _parameters.put(name,value.substring(0,CHARS_LIN));\n\t} else {\n\t _parameters.put(name,value);\n\t}\n }",
"public void cmdTSet(User teller, String settingName,\n\t\t\tStringBuffer settingValue) {\n\t\tString val = settingValue.toString().trim();\n\t\ttry {\n\t\t\tsettingsService.setSettingAsString(settingName, val);\n\t\t\tcommand.qtell(teller, \" {0} set to {1}.\", settingName, val);\n\t\t} catch (ConversionException e) {\n\t\t\treplyError(teller, e);\n\t\t}\n\t}",
"public void setPreference(String key, String value) {\n\t SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(myContext);\n\t \n\t SharedPreferences.Editor editor = prefs.edit();\n\t editor.putString(key, value);\n\t editor.commit(); // important! Don't forget!\n\t}",
"public static void saveToPrefs(Context context,String key, String value) {\n SharedPreferences prefs = getSettings();\n final SharedPreferences.Editor editor = prefs.edit();\n editor.putString(key, value);\n editor.apply();\n }",
"public void set (String Value)\n\t\t{\n\t\tthis.Value = Value;\t\t\n\t\t}",
"void set_str(ThreadContext tc, RakudoObject classHandle, String Value);",
"public void setSharedPreference(Activity activity,String key,String value){\n SharedPreferences sharedPreferences=activity.getSharedPreferences(activity.getPackageName(), Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putString(key,value);\n editor.apply();\n }",
"public void putString(ResourceLocation name, String value) {\n data.putString(name.toString(), value);\n }",
"@Test\n\n public void testToString() {\n System.out.println(\"toString\");\n Setting.SETTING_TYPE stype;\n Setting instance = Setting.getSetting(\"test\");\n stype = instance.getStype();\n assertEquals(Setting.SETTING_TYPE.UND, stype);\n\n instance.setStype(Setting.SETTING_TYPE.TSTRING);\n instance.setValue(\"I am a String\");\n String result = instance.toString();\n String expected = \"test:TSTRING-I am a String\";\n assertEquals(expected, result);\n }",
"public void putRoleValue(String key, String value){\n SharedPreferences sharedPreference = context.getSharedPreferences(LOGIN, Context.MODE_PRIVATE);\n SharedPreferences.Editor editor=sharedPreference.edit();\n editor.putString(key,value);\n editor.apply();\n }",
"public <T> void setSetting(Setting setting, T value){\n setHeaderSetting(setting.toString(), value);\n }",
"public static void setOtherPlayer(String value, Context context) {\n SharedPreferences prefs = context.getSharedPreferences(PREF, Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = prefs.edit();\n editor.putString(\"OtherPlayer\", value);\n editor.commit();\n }",
"public void writeSyncPreferences(String string){\n mSharedPreference = mContext.getSharedPreferences(mContext.getString(\n R.string.sharedpreferencesFileName),Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = mSharedPreference.edit();\n editor.putString(getCurrentIdentity(),string);\n editor.commit();\n }",
"public void setValue(Object value) {\n setValue(value.toString());\n }"
] | [
"0.7235174",
"0.7235174",
"0.71769214",
"0.7148536",
"0.71473694",
"0.71473694",
"0.71473694",
"0.71473694",
"0.7010056",
"0.69922316",
"0.6904325",
"0.68953717",
"0.678426",
"0.67440885",
"0.67440796",
"0.67382085",
"0.67382085",
"0.66331357",
"0.6615227",
"0.6566691",
"0.65580666",
"0.6545458",
"0.65432465",
"0.6531828",
"0.6531828",
"0.6531828",
"0.6531828",
"0.6531828",
"0.6521906",
"0.6519807",
"0.6519807",
"0.6519807",
"0.6519807",
"0.6519807",
"0.6490194",
"0.64709604",
"0.6461402",
"0.6411858",
"0.6380934",
"0.6375614",
"0.637396",
"0.6363263",
"0.634461",
"0.6330378",
"0.6328352",
"0.6327723",
"0.6315277",
"0.63143826",
"0.6285774",
"0.6278032",
"0.6253249",
"0.62507105",
"0.6244385",
"0.6244385",
"0.6244385",
"0.6244385",
"0.6240415",
"0.62205195",
"0.62111723",
"0.6207635",
"0.6201107",
"0.61975497",
"0.61889756",
"0.618033",
"0.618033",
"0.6178788",
"0.61321384",
"0.61308676",
"0.6121834",
"0.61196184",
"0.6118467",
"0.6093393",
"0.6091851",
"0.60784423",
"0.607602",
"0.60457385",
"0.6043551",
"0.6024288",
"0.6022543",
"0.6020604",
"0.6013115",
"0.6000054",
"0.59893674",
"0.5985944",
"0.59837925",
"0.59834343",
"0.59815794",
"0.5972036",
"0.59514457",
"0.594267",
"0.5939497",
"0.5936323",
"0.59351826",
"0.5923817",
"0.59201896",
"0.5916465",
"0.5908206",
"0.59021866",
"0.5897029",
"0.58881414",
"0.58869255"
] | 0.0 | -1 |
put a string value into settings | synchronized public static void putString(Context context, String key, String value, boolean commit) {
ensurePreferencesEditor(context);
sPreferencesEditor.putString(key, value);
if (commit) {
sPreferencesEditor.commit();
}
if (sInstance != null) {
sInstance.mSettings.put(key, value);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setValue(String value);",
"void setValue(String value);",
"protected void addSetting(String text) {\n // Get the key and value from the string\n String[] parts = text.split(\":\");\n \n // Get the setting name\n String name = parts[0];\n \n // Get the value\n String value = String.join(\":\", Arrays.copyOfRange(parts, 1, parts.length));\n \n // Store the setting\n settings.put(name, value);\n }",
"void setValue(java.lang.String value);",
"public void setValue(String value);",
"public void setValue(String value);",
"public void setValue(String value);",
"public void setValue(String value);",
"void setValue(final String value);",
"public void setValue (String Value);",
"public void setString(String key, String value) {\n SharedPreferences.Editor editor = mPref.edit();\n editor.putString(key, value);\n editor.commit();\n }",
"UserSettings store(String key, String value);",
"public void setSettings(final String settings);",
"public void setPreference(View v){\n SharedPreferences.Editor editor = settings.edit();\n String prefValue = cHelpers.getText(this, R.id.editText);\n editor.putString(\"key1\",prefValue);\n editor.commit();\n cHelpers.show_toast(this, \"Preference Saved\");\n }",
"private static void writeStringValue(String path, String value){\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putString(path, value);\n editor.apply();\n }",
"void set(String key, String value) {\n if (notAnyEmpty(key, value))\n settings.put(key, value);\n }",
"void set(String key, String value) {\n if (notAnyEmpty(key, value))\n settings.put(key, value);\n }",
"public void setValue(String value)\n {\n this.value = value;\n }",
"public static void setPrefStringData(Context context, String key, String value) {\n SharedPreferences appInstallInfoSharedPref = context.\n getSharedPreferences(APP_CONFIG_PREF, Context.MODE_PRIVATE);\n SharedPreferences.Editor appInstallInfoEditor = appInstallInfoSharedPref.edit();\n appInstallInfoEditor.putString(key, value);\n appInstallInfoEditor.apply();\n }",
"public void setValue(String value) {\n\t this.valueS = value;\n\t }",
"public void setValue( String value )\n {\n this.value = value;\n }",
"<S> void putSetting(Setting<S> setting, S value, String... comments);",
"public void setValue(String value) {\n set (value);\n }",
"public void setValue(String value) {\r\n this.value = value;\r\n }",
"public void setValue(String value) {\r\n this.value = value;\r\n }",
"public void setValue(String value) {\r\n this.value = value;\r\n }",
"public void setValue(String value) {\r\n this.value = value;\r\n }",
"public void setValue(String value) {\r\n this.value = value;\r\n }",
"public void saveString(String key,String value)\n {\n preference.edit().putString(key,value).apply();\n }",
"public void setValue(String value) {\n this.value = value;\n }",
"public void setValue(String value) {\n this.value = value;\n }",
"public void setValue(String value) {\n this.value = value;\n }",
"public void setValue(String value) {\n this.value = value;\n }",
"public void setValue(String value) {\n this.value = value;\n }",
"public void setValue(final String value)\n {\n this.value = value;\n }",
"public void setStr(String key, String value) {\n PREF_EDITOR.putString(key, value);\n PREF_EDITOR.commit();\n }",
"public void put(String key, Object value) {\r\n\t\tthis.settings.put(key, value);\r\n\t}",
"public void setValue(final String value) {\n this.value = value;\n }",
"public static void setString(String aKey, String aValue) {\n getSharedPreferences().edit().putString(aKey, aValue).apply();\n }",
"public void setValue(java.lang.String value) {\n this.value = value;\n }",
"public void setString(String key, String value) {\n overrideConfig.put(key, value);\n }",
"public static void setSetting(Context context, String key, String value) {\n SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(context);\n SharedPreferences.Editor editor = sp.edit();\n editor.putString(key, value);\n editor.commit();\n }",
"public final void setValue(java.lang.String value)\r\n\t{\r\n\t\tsetValue(getContext(), value);\r\n\t}",
"String setValue();",
"public void set(String s);",
"void setValue(String s) throws YangException;",
"void setValueString(org.hl7.fhir.String valueString);",
"@Test\n public void testSetStype() {\n System.out.println(\"setStype\");\n Setting.SETTING_TYPE stype;\n Setting instance = Setting.getSetting(\"test\");\n stype = instance.getStype();\n assertEquals(Setting.SETTING_TYPE.UND, stype);\n\n instance.setStype(Setting.SETTING_TYPE.TSTRING);\n instance.setValue(\"I am a String\");\n String result = instance.toString();\n String expected = \"test:TSTRING-I am a String\";\n assertEquals(expected, result);\n\n }",
"public void saveString(int prefKey, String value) {\n SharedPreferences.Editor editor = sharedPref.edit();\n editor.putString(getResources().getString(prefKey), value);\n editor.apply();\n }",
"public static void setStringValue(final String prefFile, final String key, final String value) {\n final SharedPreferences sharedPref = getSharedPreferences(prefFile);\n final SharedPreferences.Editor editor = sharedPref.edit();\n editor.putString(key, value);\n editor.apply();\n }",
"public void set(String key, String value)\n {\n settings.setProperty(key, value);\n }",
"public void setValue(String value) {\n\t\tthis.value = value;\n\t}",
"public void setValue(String value) {\n\t\tthis.value = value;\n\t}",
"public void setValue(String value) {\n\t\tthis.value = value;\n\t}",
"public void setValue(String value) {\n\t\tthis.value = value;\n\t}",
"public void setValue(String value)\n {\n if (value == null)\n throw new IllegalArgumentException(\"value cannot be null\");\n \n this.value = value;\n }",
"@Override\n public void saveString(String key, String value) {\n SharedPreferences.Editor prefs = mSharedPreferences.edit();\n prefs.putString(key, checkNotNull(value));\n prefs.commit();\n }",
"public void setString(String value) {\r\n\t\ttype(ConfigurationItemType.STRING);\r\n\t\tthis.stringValue = value;\r\n\t}",
"public void setValue(String value) {\r\n\t\tthis.value = value;\r\n\t}",
"public void setValue(String value) {\n\t\tthis.value = value;\n\t}",
"@Override\r\n\tpublic Object setProperty(String key, String value) {\r\n\t\t\r\n\t\treturn Settings.setProperty(key, value);\r\n\t\t\r\n\t}",
"public void setStringValue(String value) {\n setValueIndex(getPool().findStringEntry(value, true));\n }",
"public void setPrefrence(String key, String value) {\n SharedPreferences prefrence = context.getSharedPreferences(\n context.getString(R.string.app_name), 0);\n SharedPreferences.Editor editor = prefrence.edit();\n editor.putString(key, value);\n editor.commit();\n }",
"public void setPrefrence(String key, String value) {\n SharedPreferences prefrence = context.getSharedPreferences(\n context.getString(R.string.app_name), 0);\n SharedPreferences.Editor editor = prefrence.edit();\n editor.putString(key, value);\n editor.commit();\n }",
"public void setConfigurationValue(String name, String value);",
"public void setString(String name, String value) {\n parameters.get(name).setValue(value);\n }",
"protected synchronized void setStringValue(String tag, String value) {\n if (actualProperties != null) {\n actualProperties.put(tag, value);\n }\n }",
"public void putStringData(String key, String value) {\n editor.putString(key, value);\n editor.apply();\n }",
"private void setConfig(final String value) {\n\n config = StringUtils.trim(value);\n }",
"boolean setValue(String type, String key, String value);",
"public void setPersistentString(String key, String value);",
"void set(String text);",
"UserSettings store(HawkularUser user, String key, String value);",
"public static void saveToSharedPreference(String key, String value) {\n\n appSharePreference.edit().putString(key.toString(), value.toString()).apply();\n }",
"public static void SetPreferByString(Context context, String key,\n\t\t\tString value) {\n\t\tSharedPreferences mPrefer = PreferenceManager\n\t\t\t\t.getDefaultSharedPreferences(context);\n\t\tEditor editor = mPrefer.edit();\n\t\teditor.putString(key, value);\n\t\teditor.commit();\n\t}",
"public S<T> setPref(String value, String key) {\n\t SharedPreferences settings = activity.getSharedPreferences(PREFS_NAME, 0);\n\t settings = activity.getSharedPreferences(PREFS_NAME, 0);\n\t SharedPreferences.Editor editor = settings.edit();\n\t editor.putString(key, value);\n\t editor.commit();\n\t return this;\n\t}",
"protected void set(String key, String value)\r\n\t{ this.preferences.put(key, value); }",
"private void insertStringValue(String field, String value) {\n mapFieldsStrings.put(field, value);\n }",
"public static void setSetting(String settingName, String value) {\r\n\t\tjson.set(settingName, value);\r\n\t\tjson.save();\r\n\t}",
"public static void putString(String key, String value, Context context) {\n checkForNullKey(key);\n checkForNullValue(value);\n getSharedPreferences(context).edit().putString(key, value).apply();\n }",
"public void setValue(String value) {\n\t\tthis.text = value;\n\t}",
"public static void setShared(Context context, String name, String value) {\n SharedPreferences prefs = PreferenceManager\n .getDefaultSharedPreferences(context);\n SharedPreferences.Editor editor = prefs.edit();\n editor.putString(name, value);\n editor.commit();\n }",
"protected void setValue( String strValue )\n {\n _strValue = strValue;\n }",
"public static void setParameterString(String key, String value)\n throws Exception {\n ini.setProperty(key, value);\n systemlog(LogType.DEBUG, \"setParam \" + key + \" to: \" + value);\n }",
"@Override\n protected void loadValue(String sValue) {\n value = sValue;\n }",
"public void setStringValue(String v)\n {\n this.setValue(v);\n }",
"public void setParameterValue(String name, String value) {\n\tgetLogger().finest(\"Setting: \"+name+\" = \"+value);\n\tif (name.equals(\"genie.restart\")) {\n\t _parameters.put(name,value.substring(0,CHARS_RESTART));\n\t} else if (name.equals(\"genie.lout\")) {\n\t _parameters.put(name,value.substring(0,CHARS_LOUT));\n\t} else if (name.equals(\"genie.lin\")) {\n\t _parameters.put(name,value.substring(0,CHARS_LIN));\n\t} else {\n\t _parameters.put(name,value);\n\t}\n }",
"public void cmdTSet(User teller, String settingName,\n\t\t\tStringBuffer settingValue) {\n\t\tString val = settingValue.toString().trim();\n\t\ttry {\n\t\t\tsettingsService.setSettingAsString(settingName, val);\n\t\t\tcommand.qtell(teller, \" {0} set to {1}.\", settingName, val);\n\t\t} catch (ConversionException e) {\n\t\t\treplyError(teller, e);\n\t\t}\n\t}",
"public void setPreference(String key, String value) {\n\t SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(myContext);\n\t \n\t SharedPreferences.Editor editor = prefs.edit();\n\t editor.putString(key, value);\n\t editor.commit(); // important! Don't forget!\n\t}",
"public static void saveToPrefs(Context context,String key, String value) {\n SharedPreferences prefs = getSettings();\n final SharedPreferences.Editor editor = prefs.edit();\n editor.putString(key, value);\n editor.apply();\n }",
"public void set (String Value)\n\t\t{\n\t\tthis.Value = Value;\t\t\n\t\t}",
"void set_str(ThreadContext tc, RakudoObject classHandle, String Value);",
"public void setSharedPreference(Activity activity,String key,String value){\n SharedPreferences sharedPreferences=activity.getSharedPreferences(activity.getPackageName(), Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putString(key,value);\n editor.apply();\n }",
"public void putString(ResourceLocation name, String value) {\n data.putString(name.toString(), value);\n }",
"@Test\n\n public void testToString() {\n System.out.println(\"toString\");\n Setting.SETTING_TYPE stype;\n Setting instance = Setting.getSetting(\"test\");\n stype = instance.getStype();\n assertEquals(Setting.SETTING_TYPE.UND, stype);\n\n instance.setStype(Setting.SETTING_TYPE.TSTRING);\n instance.setValue(\"I am a String\");\n String result = instance.toString();\n String expected = \"test:TSTRING-I am a String\";\n assertEquals(expected, result);\n }",
"public void putRoleValue(String key, String value){\n SharedPreferences sharedPreference = context.getSharedPreferences(LOGIN, Context.MODE_PRIVATE);\n SharedPreferences.Editor editor=sharedPreference.edit();\n editor.putString(key,value);\n editor.apply();\n }",
"public <T> void setSetting(Setting setting, T value){\n setHeaderSetting(setting.toString(), value);\n }",
"public static void setOtherPlayer(String value, Context context) {\n SharedPreferences prefs = context.getSharedPreferences(PREF, Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = prefs.edit();\n editor.putString(\"OtherPlayer\", value);\n editor.commit();\n }",
"public void writeSyncPreferences(String string){\n mSharedPreference = mContext.getSharedPreferences(mContext.getString(\n R.string.sharedpreferencesFileName),Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = mSharedPreference.edit();\n editor.putString(getCurrentIdentity(),string);\n editor.commit();\n }",
"public void setValue(Object value) {\n setValue(value.toString());\n }"
] | [
"0.7235174",
"0.7235174",
"0.71769214",
"0.7148536",
"0.71473694",
"0.71473694",
"0.71473694",
"0.71473694",
"0.7010056",
"0.69922316",
"0.6904325",
"0.68953717",
"0.678426",
"0.67440885",
"0.67440796",
"0.67382085",
"0.67382085",
"0.66331357",
"0.6615227",
"0.6566691",
"0.65580666",
"0.6545458",
"0.65432465",
"0.6531828",
"0.6531828",
"0.6531828",
"0.6531828",
"0.6531828",
"0.6521906",
"0.6519807",
"0.6519807",
"0.6519807",
"0.6519807",
"0.6519807",
"0.64709604",
"0.6461402",
"0.6411858",
"0.6380934",
"0.6375614",
"0.637396",
"0.6363263",
"0.634461",
"0.6330378",
"0.6328352",
"0.6327723",
"0.6315277",
"0.63143826",
"0.6285774",
"0.6278032",
"0.6253249",
"0.62507105",
"0.6244385",
"0.6244385",
"0.6244385",
"0.6244385",
"0.6240415",
"0.62205195",
"0.62111723",
"0.6207635",
"0.6201107",
"0.61975497",
"0.61889756",
"0.618033",
"0.618033",
"0.6178788",
"0.61321384",
"0.61308676",
"0.6121834",
"0.61196184",
"0.6118467",
"0.6093393",
"0.6091851",
"0.60784423",
"0.607602",
"0.60457385",
"0.6043551",
"0.6024288",
"0.6022543",
"0.6020604",
"0.6013115",
"0.6000054",
"0.59893674",
"0.5985944",
"0.59837925",
"0.59834343",
"0.59815794",
"0.5972036",
"0.59514457",
"0.594267",
"0.5939497",
"0.5936323",
"0.59351826",
"0.5923817",
"0.59201896",
"0.5916465",
"0.5908206",
"0.59021866",
"0.5897029",
"0.58881414",
"0.58869255"
] | 0.6490194 | 34 |
get an long settings value by key | public long getLong(String key, long defValue) {
return getLong(Global.getContext(), key, defValue);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getSettingByKey(String key);",
"private String get(String key)\n {\n return settings.getProperty(key);\n }",
"String get(String key) {\n return settings.get(key);\n }",
"String getSettingByKey(HawkularUser user, String key);",
"public static long getLong(String key) throws UnknownID, ArgumentNotValid {\n\t\tString value = get(key);\n\t\ttry {\n\t\t\treturn Long.parseLong(value);\n\t\t} catch (NumberFormatException e) {\n\t\t\tString msg = \"Invalid setting. Value '\" + value + \"' for key '\" + key + \"' could not be parsed as a long.\";\n\t\t\tthrow new ArgumentNotValid(msg, e);\n\t\t}\n\t}",
"public long getLong(String key) {\n\t\tString value = getString(key);\n\t\t\n\t\ttry {\n\t\t\treturn Long.parseLong(value);\n\t\t}\n\t\tcatch( NumberFormatException e ) {\n\t\t\tthrow new IllegalStateException( \"Illegal value for long integer configuration parameter: \" + key);\n\t\t}\n\t}",
"public static long getLongPreference(String key) {\n\n return sharedPreferences.getLong(key, -1);\n }",
"public long getMandatoryLong(String key) throws ConfigNotFoundException;",
"public Object get(String key) {\r\n\t\treturn settings.get(key);\r\n\t}",
"public static long getLongParam(String key) throws InvalidParam {\n return getCurrentConfig().getLong(key);\n }",
"public String getSetting(String key) throws SQLException {\n\t\treturn db.selectItem(\"value\", \"settings\", \"`key`='\"+key+\"'\");\n\t}",
"String getSettingByKey(String key, String defaultValue);",
"public static long getLongSetting(Context context, String key, long defaultValue) {\n SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(context);\n return sp.getLong(key, defaultValue);\n }",
"public long getLong(String key, long defaultValue);",
"public static long getLongProperty(String key) {\r\n\t\treturn getLongProperty(key, 0);\r\n\t}",
"String getSettingByKey(HawkularUser user, String key, String defaultValue);",
"public String get(String key) {\n\t\tInstant start = Instant.now();\n\t\tString value = getConfig(key);\n\t\tLOGGER.debug(\"Access to config {} to get {} took {}\", uniqueInstance.instanceUUID, key, Duration.between(start, Instant.now()));\t\t\n\t\treturn value;\n\t}",
"public long getLongProperty(String key) {\n\t\treturn Long.parseLong(this.getProperty(key));\n\t}",
"public Object get(String key) {\n return options.get(key);\n }",
"public static long getLong(Context context, String key, long defValue) {\r\n\t\tif (sInstance != null && sInstance.mSettings.containsKey(key)) {\r\n\t\t\treturn (Long) sInstance.mSettings.get(key);\r\n\t\t}\r\n\t\tlong val = defValue;\r\n\t\ttry {\r\n\t\t\tval = getPreferences(context).getLong(key, defValue);\r\n\t\t} catch(ClassCastException e) {\r\n\t\t\tDebug.logException(e);\r\n\t\t}\r\n\t\t\r\n\t\tif (sInstance != null) {\r\n\t\t\tsInstance.mSettings.put(key, val);\r\n\t\t}\r\n\t\t\r\n\t\treturn val;\r\n\t}",
"public static long getLongParam(String key, long dfault) {\n Configuration cur = getCurrentConfig();\n if (cur == null) {\n return dfault;\n }\n return cur.getLong(key, dfault);\n }",
"public long getLong(String key) {\n long result;\n Object value = get(key);\n if (value instanceof Long) {\n result = (Long)value;\n } else if (value instanceof String) {\n try {\n String valueString = (String)value;\n if (valueString.length() == 0) {\n result = 0;\n } else if (valueString.charAt(0) == '-') {\n result = Long.parseLong(valueString);\n } else {\n result = Long.parseUnsignedLong((String)value);\n }\n } catch (NumberFormatException exc) {\n result = 0;\n }\n } else {\n result = 0;\n }\n return result;\n }",
"public static String get(String key) throws UnknownID, IOFailure, ArgumentNotValid {\n\t\tArgumentNotValid.checkNotNullOrEmpty(key, \"String key\");\n\t\tString val = System.getProperty(key);\n\t\tif (val != null) {\n\t\t\treturn val;\n\t\t}\n\n\t\t// Key not in System.properties try loaded data instead\n\t\tsynchronized (fileSettingsXmlList) {\n\t\t\tfor (SimpleXml settingsXml : fileSettingsXmlList) {\n\t\t\t\tif (settingsXml.hasKey(key)) {\n\t\t\t\t\treturn settingsXml.getString(key);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n/*\n\t\t// Key not in file based settings, try classpath settings instead\n\t\tsynchronized (defaultClasspathSettingsXmlList) {\n\t\t\tfor (SimpleXml settingsXml : defaultClasspathSettingsXmlList) {\n\t\t\t\tif (settingsXml.hasKey(key)) {\n\t\t\t\t\treturn settingsXml.getString(key);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n */\n\t\tthrow new UnknownID(\"No match for key '\" + key + \"' in settings\");\n\t}",
"String get(Integer key);",
"public Long getLong(String key, Long defaultValue);",
"public static String getConfigValue(String key){\n\t\tResourceBundle rb = ResourceBundle.getBundle(\"config\");\n\t\tString value = rb.getString(key);\n\t\treturn value;\n\t}",
"public String get(String key, String def)\n {\n return settings.getProperty(key, def);\n }",
"public static long getLong(final String key) {\r\n if (PROP == null) {\r\n throw new RuntimeException(\"Config hasn't been initialized yet.\");\r\n }\r\n if (PROP.containsKey(key))\r\n return Long.parseLong(PROP.getProperty(key));\r\n else\r\n throw new RuntimeException(\"No config key found for [\" + key + \"].\");\r\n }",
"String getValue(String type, String key);",
"public String getSettings(String settingsKey) {\n\t\tString settingsValue = \"\";\n\t\ttry {\n\t\t\tCursor settings = localDB.query(true, TABLE_SETTINGS, null,\n\t\t\t\t\tKEY_SETTINGS_ID + \" = ?\", new String[] { settingsKey },\n\t\t\t\t\tnull, null, null, null);\n\t\t\tif ((settings.getCount() == 0) || !settings.moveToFirst()) {\n\t\t\t\treturn \"\";\n\t\t\t}\n\t\t\tsettingsValue = settings.getString(SETTINGS_VALUE_COLUMN);\n\t\t} catch (SQLiteException ex) {\n\t\t\tLog.d(TAG, ex.getMessage());\n\t\t}\n\t\tLog.v(TAG, \"setting: \" + settingsValue);\n\t\treturn settingsValue;\n\t}",
"void setLong(String key, long val);",
"public String getPref(String key) {\n\t SharedPreferences settings = activity.getSharedPreferences(PREFS_NAME, 0);\n\t settings = activity.getSharedPreferences(PREFS_NAME, 0);\n\t String value = settings.getString(key, \"\");\n\t return value;\n\t}",
"private long getLongProperty(ParameterList key, long defaultValue) \n throws NumberFormatException, NullPointerException, MissingOptionException{\n try {\n boolean keyPresent = fileParameters.containsKey(key.name);\n String strValue = keyPresent ? fileParameters.getProperty(key.name).replaceAll(\"\\\\s\", \"\") : null;\n if (!keyPresent && key.mandatory) {\n throw new MissingOptionException(\"The input parameter (\" + key.name + \") was not found\");\n }\n else if(!keyPresent || strValue.equals(\"\")){\n loadedParametersLog.append(key.name).append(\"=\").append(defaultValue).append(\" (DEFAULT)\\n\");\n return defaultValue;\n }\n loadedParametersLog.append(key.name).append(\"=\").append(strValue).append(\"\\n\");\n return Integer.parseInt(strValue);\n } catch (NumberFormatException e) {\n throw new NumberFormatException(e.getMessage() + \"\\nThe input parameter (\" + key.name + \") could not be converted to long.\");\n } catch (NullPointerException e) {\n throw new NullPointerException(e.getMessage() + \"\\nThe parameter file was not initialized.\");\n }\n }",
"@Override\r\n\tpublic String getProperty(String key) {\r\n\t\t\r\n\t\treturn Settings.getProperty(key);\r\n\t\t\r\n\t}",
"public static String readConfigValue(Context context, String key) {\n Resources resources = context.getResources();\n try {\n InputStream inputStream = resources.openRawResource(R.raw.config);\n Properties properties = new Properties();\n properties.load(inputStream);\n return properties.getProperty(key);\n } catch (Exception e) {\n e.printStackTrace();\n }\n return \"\";\n }",
"public String getVal(String key) {\n Optional<KeyValList> kv = findKeyVal(key);\n\n if (kv.isPresent()) {\n return kv.get().getCfgVal();\n }\n\n return null;\n }",
"public Object lookupConfigurationEntry(String key);",
"public long get(String key, long def)\n {\n try\n {\n String val = get(key);\n return Long.parseLong(val);\n }\n catch(Exception e)\n {\n return def;\n }\n }",
"String getProperty(String key);",
"String getProperty(String key);",
"String getProperty(String key);",
"Optional<SettingDTO> getSetting(String settingKey);",
"public static String get(String key){\n\t\tif(sys_cfg == null){\n\t\t\tsys_cfg = new Configuration(\"text.properties\");\n\t\t}\n\t\tString value = sys_cfg.getValue(key);\n\t\treturn value;\n\t}",
"public Long getLong(String key)\n\t{\n\t\tverifyParseState();\n\t\t\n\t\tValue value = values.get(key);\n\t\tif(value == null || value.value == null)\n\t\t\treturn null;\n\t\tif(value.type != ValueType.LONG)\n\t\t\tthrow new JsonTypeException(value.value.getClass(), Long.class);\n\t\treturn (Long)value.value;\n\t}",
"public String get(String key) {\n return this.properties.getProperty(key);\n }",
"StoragePrimitive get(String key);",
"<S> S getSetting(Setting<S> setting);",
"@Override\n\tpublic String queryByKey(String key) {\n\t\treturn settingDao.queryByKey(key);\n\t}",
"public static String getSetting(Context context, String key) {\n SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(context);\n return sp.getString(key, null);\n\n }",
"public String get(String key) {\n return cache.containsKey(key) ? cache.get(key) : customConfig.getString(key);\n }",
"public static String getPropertyValue(String key){\n return properties.getProperty(key);\n }",
"public static long getLong(String key, long i) {\n\t\tString token = getString(key);\n\t\tif (token == null) {\n\t\t\treturn i;\n\t\t}\n\t\treturn Long.parseLong(token);\n\t}",
"public int getPropertyInt(String key);",
"public static Object get(String key) {\n return prefs.contains(key) ? prefs.getAll().get(key):null;\n }",
"public Long getLong(String key) throws AgentBuilderRuntimeException {\n\t\tif (!extContainsKey(key))\n\t\t\tthrow new AgentBuilderRuntimeException(\n\t\t\t\t\t\"Dictionary does not contain key \\\"\" + key + \"\\\"\");\n\t\treturn (Long) extGet(key);\n\t}",
"public String getPreference(String key) {\n return preferences.get(key).value;\n }",
"public double getDouble(String key) {\n\t\tString value = getString(key);\n\t\t\n\t\ttry {\n\t\t\treturn Double.parseDouble(value);\n\t\t}\n\t\tcatch( NumberFormatException e ) {\n\t\t\tthrow new IllegalStateException( \"Illegal value for long integer configuration parameter: \" + key);\n\t\t}\n\t}",
"public static String getValue(String key) {\r\n\t\tload();\r\n\t\treturn properties.getProperty(key);\r\n\t}",
"public Object getOption(String key) {\n\t\tint index = propertyKeys.indexOf(key);\n\t\tif (index == -1)\n throw new IllegalArgumentException(\"Unknown option \" + key);\n\t\treturn currentOption.get(index);\n\t}",
"long getLongValue();",
"long getLongValue();",
"public static long getLongValue(final String prefFile, final String key,\n final long defaultValue) {\n return getSharedPreferences(prefFile).getLong(key, defaultValue);\n }",
"public Long L(String key) throws AgentBuilderRuntimeException {\n\t\treturn getLong(key);\n\t}",
"public static String getProp(String key) {\n try {\n Process process = Runtime.getRuntime().exec(String.format(\"getprop %s\", key));\n String value = new BufferedReader(new InputStreamReader(process.getInputStream())).readLine();\n process.destroy();\n return value;\n } catch (IOException e) {\n Log.d(\"getProp exception\", e.toString(), e);\n return null;\n }\n }",
"final Long getLong(String key, long defaultValue) {\n try {\n return Long.parseLong(get(key));\n }\n catch (NumberFormatException e) {\n return defaultValue;\n }\n }",
"private long getMetadataLong(Metadatable object, String key) \n\t{\n\t\tList<MetadataValue> values = object.getMetadata(key); \n\t\tfor (MetadataValue value : values) \n\t\t{\n\t\t\t// Plugins are singleton objects, so using == is safe here\n\t\t\tif (value.getOwningPlugin() == plugin) \n\t\t\t{\n\t\t\t\treturn value.asLong();\n\t\t\t}\n\t\t}\n\t\treturn 0;\n\t}",
"public Optional<String> safeGet(String key) {\n\t\tInstant start = Instant.now();\n\t\tOptional<String> result;\n\t\ttry {\n\t\t\tresult = Optional.of(get(key));\n\t\t} catch (ConfigException e) {\n\t\t\tLOGGER.warn(\"No value was found for key {}: an Optional.empty() will be returned\", key);\n\t\t\tresult = Optional.empty();\n\t\t}\n\t\tLOGGER.debug(\"Access to config {} to safeGet {} took {}\", uniqueInstance.instanceUUID, key, Duration.between(start, Instant.now()));\n\t\treturn result;\n\t}",
"public String getValue(final String key) {\n\n\t\treturn config.getString(StringUtils.lowerCase(key));\n\t\t\t}",
"public short getShort(String key)\n {\n return getShort(key, (short) 0);\n }",
"public short getShort(String key) {\n Object value = get(key);\n return ((value instanceof Long) ? (short)((Long)value).intValue() : 0);\n }",
"public String getPreference(DataPreferenceEnum key)\n {\n return (preferencesHashMap.get(key));\n }",
"public String get(String key) {\n return this.properties.getProperty(key);\n }",
"String getOptionsOrThrow(\n String key);",
"String getOptionsOrThrow(\n String key);",
"String getOptionsOrThrow(\n String key);",
"public <T> T getSetting(Setting setting) {\n return getValue(setting.toString());\n }",
"private int getValue(final String name, final String key) {\n\t\treturn Integer.parseInt(bundleConstants.getString(name + SEPERATOR + key));\n\t}",
"@Override\n public Long getLong(String key) {\n String object = String.valueOf(get(key));\n if (StringUtils.isNotEmpty(object) && object.matches(\"\\\\d+\")) {\n return Long.valueOf(object);\n }\n return null;\n }",
"public CommandWord getVal( String pKey )\n {\n CommandWord vRet = validCommands.get( pKey );\n \n if( vRet == null )\n {\n return CommandWord.UNKNOWN;\n }\n else\n return vRet;\n }",
"private static String getString(String key) {\r\n\t\treturn ConfmlFeatureEditorPlugin.INSTANCE.getString(key);\r\n\t}",
"public Long getLong(String key) {\n if (!jsonData.has(key))\n return null;\n try {\n return jsonData.getLong(key);\n } catch (Exception ex) {\n return null;\n }\n }",
"public Object getQuiet(String key);",
"String getLongNameKey();",
"public String get(int key) {\n String sql = \"SELECT data_val FROM data_map WHERE data_key = ?\";\n\n String value = null;\n try (Connection con = this.connect();\n PreparedStatement pstmt = con.prepareStatement(sql)) {\n pstmt.setInt(1, key);\n ResultSet rs = pstmt.executeQuery();\n\n if (!rs.isClosed()) {\n value = rs.getString(\"data_val\");\n rs.close();\n }\n }\n catch (SQLException e) {\n value = null;\n }\n\n return value;\n }",
"String getString( String key, String def);",
"public String getConfigurationValue(Enum<?> key) {\n // get string key\n String keyStr = key.toString();\n\n // get value\n String value = this.getConfigurationValue(keyStr);\n\n return value;\n }",
"public int get(int key) {\n return store[key]; // get the value for the key\n }",
"public static String getConfiguration(String key) {\r\n PersistenceManager pm = PMF.getPersistenceManager();\r\n Query query = pm.newQuery(Configuration.class, \"key == \" + key);\r\n query.setUnique(true);\r\n Configuration config = (Configuration) query.execute(query);\r\n return config.getValue();\r\n }",
"public Short getShort(String key) throws AgentBuilderRuntimeException {\n\t\tif (!extContainsKey(key))\n\t\t\tthrow new AgentBuilderRuntimeException(\n\t\t\t\t\t\"Dictionary does not contain key \\\"\" + key + \"\\\"\");\n\t\treturn (Short) extGet(key);\n\t}",
"public short s(String key) throws AgentBuilderRuntimeException {\n\t\treturn getShort(key).shortValue();\n\t}",
"public int get(int key) {\n return 1;\n }",
"public long getValue(String key, long defaultValue) {\n return mSharedPreferences.getLong(key, defaultValue);\n }",
"private String getLocalValue(int key)\n {\n // binary search, since the list is sorted\n int start = 0;\n int end = cache.size() - 1;\n while (start <= end)\n {\n int mid = (start + end) / 2;\n Record currentRecord = cache.get(mid);\n if (key == currentRecord.key())\n {\n return currentRecord.value();\n }\n else if (key < currentRecord.key())\n {\n end = mid - 1;\n }\n else\n {\n start = mid + 1;\n }\n }\n \n // not found\n return null; \n }",
"Object get(Object key);",
"private static final String getStringPreference(String key, String defValue) {\n final SharedPreferences settings = DemoApp.getSharedPreferences();\n return settings.getString(key, defValue);\n }",
"Configuration getConfigByKey(String configKey);",
"private String getValueFromProperty(String key) {\n\t\treturn properties.getProperty(key);\n\n\t}",
"public void showPreference(View v){\n String prefvalue = settings.getString(\"key1\",\"Not Found\");\n cHelpers.show_toast(this,\"key1 was \"+prefvalue);\n }",
"public String getPreference(String key) {\n return prefs.get(key, null);\n }",
"public Value get(Key key) ;"
] | [
"0.7684474",
"0.70364255",
"0.6872631",
"0.6760501",
"0.6683973",
"0.66767293",
"0.661409",
"0.6590604",
"0.6573163",
"0.6531457",
"0.6358148",
"0.6338024",
"0.63374054",
"0.6312699",
"0.63111466",
"0.6294899",
"0.626685",
"0.6234483",
"0.6203828",
"0.6202441",
"0.6181235",
"0.6123658",
"0.606457",
"0.6060849",
"0.60233337",
"0.5992713",
"0.595925",
"0.5957183",
"0.5950564",
"0.5947256",
"0.5902301",
"0.5898604",
"0.58812267",
"0.5876604",
"0.587584",
"0.5875441",
"0.58582246",
"0.58347106",
"0.58233225",
"0.58233225",
"0.58233225",
"0.58217454",
"0.5819767",
"0.5798467",
"0.5795979",
"0.578255",
"0.577229",
"0.576923",
"0.5767851",
"0.57308507",
"0.5723694",
"0.5706191",
"0.567226",
"0.5667419",
"0.5646728",
"0.5645806",
"0.56277114",
"0.56271875",
"0.5602416",
"0.55997914",
"0.55997914",
"0.5598786",
"0.5583854",
"0.5580575",
"0.5577403",
"0.5573056",
"0.55715984",
"0.5566885",
"0.55650866",
"0.5561046",
"0.555856",
"0.5558149",
"0.55521786",
"0.55521786",
"0.55521786",
"0.55420476",
"0.55375886",
"0.55372155",
"0.5534242",
"0.55200905",
"0.55091405",
"0.55016345",
"0.54907936",
"0.5489896",
"0.54868346",
"0.54730856",
"0.5472297",
"0.5469894",
"0.5469863",
"0.5455155",
"0.5453859",
"0.54509467",
"0.5447038",
"0.5445695",
"0.54450256",
"0.5443037",
"0.5441796",
"0.5441512",
"0.5439983",
"0.54339164"
] | 0.6104147 | 22 |
get an long settings value by key | public static long getLong(Context context, String key, long defValue) {
if (sInstance != null && sInstance.mSettings.containsKey(key)) {
return (Long) sInstance.mSettings.get(key);
}
long val = defValue;
try {
val = getPreferences(context).getLong(key, defValue);
} catch(ClassCastException e) {
Debug.logException(e);
}
if (sInstance != null) {
sInstance.mSettings.put(key, val);
}
return val;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getSettingByKey(String key);",
"private String get(String key)\n {\n return settings.getProperty(key);\n }",
"String get(String key) {\n return settings.get(key);\n }",
"String getSettingByKey(HawkularUser user, String key);",
"public static long getLong(String key) throws UnknownID, ArgumentNotValid {\n\t\tString value = get(key);\n\t\ttry {\n\t\t\treturn Long.parseLong(value);\n\t\t} catch (NumberFormatException e) {\n\t\t\tString msg = \"Invalid setting. Value '\" + value + \"' for key '\" + key + \"' could not be parsed as a long.\";\n\t\t\tthrow new ArgumentNotValid(msg, e);\n\t\t}\n\t}",
"public long getLong(String key) {\n\t\tString value = getString(key);\n\t\t\n\t\ttry {\n\t\t\treturn Long.parseLong(value);\n\t\t}\n\t\tcatch( NumberFormatException e ) {\n\t\t\tthrow new IllegalStateException( \"Illegal value for long integer configuration parameter: \" + key);\n\t\t}\n\t}",
"public static long getLongPreference(String key) {\n\n return sharedPreferences.getLong(key, -1);\n }",
"public long getMandatoryLong(String key) throws ConfigNotFoundException;",
"public Object get(String key) {\r\n\t\treturn settings.get(key);\r\n\t}",
"public static long getLongParam(String key) throws InvalidParam {\n return getCurrentConfig().getLong(key);\n }",
"public String getSetting(String key) throws SQLException {\n\t\treturn db.selectItem(\"value\", \"settings\", \"`key`='\"+key+\"'\");\n\t}",
"String getSettingByKey(String key, String defaultValue);",
"public static long getLongSetting(Context context, String key, long defaultValue) {\n SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(context);\n return sp.getLong(key, defaultValue);\n }",
"public long getLong(String key, long defaultValue);",
"public static long getLongProperty(String key) {\r\n\t\treturn getLongProperty(key, 0);\r\n\t}",
"String getSettingByKey(HawkularUser user, String key, String defaultValue);",
"public String get(String key) {\n\t\tInstant start = Instant.now();\n\t\tString value = getConfig(key);\n\t\tLOGGER.debug(\"Access to config {} to get {} took {}\", uniqueInstance.instanceUUID, key, Duration.between(start, Instant.now()));\t\t\n\t\treturn value;\n\t}",
"public long getLongProperty(String key) {\n\t\treturn Long.parseLong(this.getProperty(key));\n\t}",
"public Object get(String key) {\n return options.get(key);\n }",
"public static long getLongParam(String key, long dfault) {\n Configuration cur = getCurrentConfig();\n if (cur == null) {\n return dfault;\n }\n return cur.getLong(key, dfault);\n }",
"public long getLong(String key) {\n long result;\n Object value = get(key);\n if (value instanceof Long) {\n result = (Long)value;\n } else if (value instanceof String) {\n try {\n String valueString = (String)value;\n if (valueString.length() == 0) {\n result = 0;\n } else if (valueString.charAt(0) == '-') {\n result = Long.parseLong(valueString);\n } else {\n result = Long.parseUnsignedLong((String)value);\n }\n } catch (NumberFormatException exc) {\n result = 0;\n }\n } else {\n result = 0;\n }\n return result;\n }",
"public long getLong(String key, long defValue) {\r\n\t\treturn getLong(Global.getContext(), key, defValue);\r\n\t}",
"public static String get(String key) throws UnknownID, IOFailure, ArgumentNotValid {\n\t\tArgumentNotValid.checkNotNullOrEmpty(key, \"String key\");\n\t\tString val = System.getProperty(key);\n\t\tif (val != null) {\n\t\t\treturn val;\n\t\t}\n\n\t\t// Key not in System.properties try loaded data instead\n\t\tsynchronized (fileSettingsXmlList) {\n\t\t\tfor (SimpleXml settingsXml : fileSettingsXmlList) {\n\t\t\t\tif (settingsXml.hasKey(key)) {\n\t\t\t\t\treturn settingsXml.getString(key);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n/*\n\t\t// Key not in file based settings, try classpath settings instead\n\t\tsynchronized (defaultClasspathSettingsXmlList) {\n\t\t\tfor (SimpleXml settingsXml : defaultClasspathSettingsXmlList) {\n\t\t\t\tif (settingsXml.hasKey(key)) {\n\t\t\t\t\treturn settingsXml.getString(key);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n */\n\t\tthrow new UnknownID(\"No match for key '\" + key + \"' in settings\");\n\t}",
"String get(Integer key);",
"public Long getLong(String key, Long defaultValue);",
"public static String getConfigValue(String key){\n\t\tResourceBundle rb = ResourceBundle.getBundle(\"config\");\n\t\tString value = rb.getString(key);\n\t\treturn value;\n\t}",
"public String get(String key, String def)\n {\n return settings.getProperty(key, def);\n }",
"public static long getLong(final String key) {\r\n if (PROP == null) {\r\n throw new RuntimeException(\"Config hasn't been initialized yet.\");\r\n }\r\n if (PROP.containsKey(key))\r\n return Long.parseLong(PROP.getProperty(key));\r\n else\r\n throw new RuntimeException(\"No config key found for [\" + key + \"].\");\r\n }",
"String getValue(String type, String key);",
"public String getSettings(String settingsKey) {\n\t\tString settingsValue = \"\";\n\t\ttry {\n\t\t\tCursor settings = localDB.query(true, TABLE_SETTINGS, null,\n\t\t\t\t\tKEY_SETTINGS_ID + \" = ?\", new String[] { settingsKey },\n\t\t\t\t\tnull, null, null, null);\n\t\t\tif ((settings.getCount() == 0) || !settings.moveToFirst()) {\n\t\t\t\treturn \"\";\n\t\t\t}\n\t\t\tsettingsValue = settings.getString(SETTINGS_VALUE_COLUMN);\n\t\t} catch (SQLiteException ex) {\n\t\t\tLog.d(TAG, ex.getMessage());\n\t\t}\n\t\tLog.v(TAG, \"setting: \" + settingsValue);\n\t\treturn settingsValue;\n\t}",
"void setLong(String key, long val);",
"public String getPref(String key) {\n\t SharedPreferences settings = activity.getSharedPreferences(PREFS_NAME, 0);\n\t settings = activity.getSharedPreferences(PREFS_NAME, 0);\n\t String value = settings.getString(key, \"\");\n\t return value;\n\t}",
"private long getLongProperty(ParameterList key, long defaultValue) \n throws NumberFormatException, NullPointerException, MissingOptionException{\n try {\n boolean keyPresent = fileParameters.containsKey(key.name);\n String strValue = keyPresent ? fileParameters.getProperty(key.name).replaceAll(\"\\\\s\", \"\") : null;\n if (!keyPresent && key.mandatory) {\n throw new MissingOptionException(\"The input parameter (\" + key.name + \") was not found\");\n }\n else if(!keyPresent || strValue.equals(\"\")){\n loadedParametersLog.append(key.name).append(\"=\").append(defaultValue).append(\" (DEFAULT)\\n\");\n return defaultValue;\n }\n loadedParametersLog.append(key.name).append(\"=\").append(strValue).append(\"\\n\");\n return Integer.parseInt(strValue);\n } catch (NumberFormatException e) {\n throw new NumberFormatException(e.getMessage() + \"\\nThe input parameter (\" + key.name + \") could not be converted to long.\");\n } catch (NullPointerException e) {\n throw new NullPointerException(e.getMessage() + \"\\nThe parameter file was not initialized.\");\n }\n }",
"@Override\r\n\tpublic String getProperty(String key) {\r\n\t\t\r\n\t\treturn Settings.getProperty(key);\r\n\t\t\r\n\t}",
"public static String readConfigValue(Context context, String key) {\n Resources resources = context.getResources();\n try {\n InputStream inputStream = resources.openRawResource(R.raw.config);\n Properties properties = new Properties();\n properties.load(inputStream);\n return properties.getProperty(key);\n } catch (Exception e) {\n e.printStackTrace();\n }\n return \"\";\n }",
"public String getVal(String key) {\n Optional<KeyValList> kv = findKeyVal(key);\n\n if (kv.isPresent()) {\n return kv.get().getCfgVal();\n }\n\n return null;\n }",
"public Object lookupConfigurationEntry(String key);",
"public long get(String key, long def)\n {\n try\n {\n String val = get(key);\n return Long.parseLong(val);\n }\n catch(Exception e)\n {\n return def;\n }\n }",
"String getProperty(String key);",
"String getProperty(String key);",
"String getProperty(String key);",
"Optional<SettingDTO> getSetting(String settingKey);",
"public static String get(String key){\n\t\tif(sys_cfg == null){\n\t\t\tsys_cfg = new Configuration(\"text.properties\");\n\t\t}\n\t\tString value = sys_cfg.getValue(key);\n\t\treturn value;\n\t}",
"public Long getLong(String key)\n\t{\n\t\tverifyParseState();\n\t\t\n\t\tValue value = values.get(key);\n\t\tif(value == null || value.value == null)\n\t\t\treturn null;\n\t\tif(value.type != ValueType.LONG)\n\t\t\tthrow new JsonTypeException(value.value.getClass(), Long.class);\n\t\treturn (Long)value.value;\n\t}",
"public String get(String key) {\n return this.properties.getProperty(key);\n }",
"StoragePrimitive get(String key);",
"<S> S getSetting(Setting<S> setting);",
"@Override\n\tpublic String queryByKey(String key) {\n\t\treturn settingDao.queryByKey(key);\n\t}",
"public static String getSetting(Context context, String key) {\n SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(context);\n return sp.getString(key, null);\n\n }",
"public String get(String key) {\n return cache.containsKey(key) ? cache.get(key) : customConfig.getString(key);\n }",
"public static String getPropertyValue(String key){\n return properties.getProperty(key);\n }",
"public static long getLong(String key, long i) {\n\t\tString token = getString(key);\n\t\tif (token == null) {\n\t\t\treturn i;\n\t\t}\n\t\treturn Long.parseLong(token);\n\t}",
"public int getPropertyInt(String key);",
"public static Object get(String key) {\n return prefs.contains(key) ? prefs.getAll().get(key):null;\n }",
"public Long getLong(String key) throws AgentBuilderRuntimeException {\n\t\tif (!extContainsKey(key))\n\t\t\tthrow new AgentBuilderRuntimeException(\n\t\t\t\t\t\"Dictionary does not contain key \\\"\" + key + \"\\\"\");\n\t\treturn (Long) extGet(key);\n\t}",
"public String getPreference(String key) {\n return preferences.get(key).value;\n }",
"public double getDouble(String key) {\n\t\tString value = getString(key);\n\t\t\n\t\ttry {\n\t\t\treturn Double.parseDouble(value);\n\t\t}\n\t\tcatch( NumberFormatException e ) {\n\t\t\tthrow new IllegalStateException( \"Illegal value for long integer configuration parameter: \" + key);\n\t\t}\n\t}",
"public static String getValue(String key) {\r\n\t\tload();\r\n\t\treturn properties.getProperty(key);\r\n\t}",
"public Object getOption(String key) {\n\t\tint index = propertyKeys.indexOf(key);\n\t\tif (index == -1)\n throw new IllegalArgumentException(\"Unknown option \" + key);\n\t\treturn currentOption.get(index);\n\t}",
"long getLongValue();",
"long getLongValue();",
"public static long getLongValue(final String prefFile, final String key,\n final long defaultValue) {\n return getSharedPreferences(prefFile).getLong(key, defaultValue);\n }",
"public Long L(String key) throws AgentBuilderRuntimeException {\n\t\treturn getLong(key);\n\t}",
"public static String getProp(String key) {\n try {\n Process process = Runtime.getRuntime().exec(String.format(\"getprop %s\", key));\n String value = new BufferedReader(new InputStreamReader(process.getInputStream())).readLine();\n process.destroy();\n return value;\n } catch (IOException e) {\n Log.d(\"getProp exception\", e.toString(), e);\n return null;\n }\n }",
"final Long getLong(String key, long defaultValue) {\n try {\n return Long.parseLong(get(key));\n }\n catch (NumberFormatException e) {\n return defaultValue;\n }\n }",
"private long getMetadataLong(Metadatable object, String key) \n\t{\n\t\tList<MetadataValue> values = object.getMetadata(key); \n\t\tfor (MetadataValue value : values) \n\t\t{\n\t\t\t// Plugins are singleton objects, so using == is safe here\n\t\t\tif (value.getOwningPlugin() == plugin) \n\t\t\t{\n\t\t\t\treturn value.asLong();\n\t\t\t}\n\t\t}\n\t\treturn 0;\n\t}",
"public Optional<String> safeGet(String key) {\n\t\tInstant start = Instant.now();\n\t\tOptional<String> result;\n\t\ttry {\n\t\t\tresult = Optional.of(get(key));\n\t\t} catch (ConfigException e) {\n\t\t\tLOGGER.warn(\"No value was found for key {}: an Optional.empty() will be returned\", key);\n\t\t\tresult = Optional.empty();\n\t\t}\n\t\tLOGGER.debug(\"Access to config {} to safeGet {} took {}\", uniqueInstance.instanceUUID, key, Duration.between(start, Instant.now()));\n\t\treturn result;\n\t}",
"public String getValue(final String key) {\n\n\t\treturn config.getString(StringUtils.lowerCase(key));\n\t\t\t}",
"public short getShort(String key)\n {\n return getShort(key, (short) 0);\n }",
"public short getShort(String key) {\n Object value = get(key);\n return ((value instanceof Long) ? (short)((Long)value).intValue() : 0);\n }",
"public String getPreference(DataPreferenceEnum key)\n {\n return (preferencesHashMap.get(key));\n }",
"public String get(String key) {\n return this.properties.getProperty(key);\n }",
"String getOptionsOrThrow(\n String key);",
"String getOptionsOrThrow(\n String key);",
"String getOptionsOrThrow(\n String key);",
"public <T> T getSetting(Setting setting) {\n return getValue(setting.toString());\n }",
"private int getValue(final String name, final String key) {\n\t\treturn Integer.parseInt(bundleConstants.getString(name + SEPERATOR + key));\n\t}",
"@Override\n public Long getLong(String key) {\n String object = String.valueOf(get(key));\n if (StringUtils.isNotEmpty(object) && object.matches(\"\\\\d+\")) {\n return Long.valueOf(object);\n }\n return null;\n }",
"public CommandWord getVal( String pKey )\n {\n CommandWord vRet = validCommands.get( pKey );\n \n if( vRet == null )\n {\n return CommandWord.UNKNOWN;\n }\n else\n return vRet;\n }",
"private static String getString(String key) {\r\n\t\treturn ConfmlFeatureEditorPlugin.INSTANCE.getString(key);\r\n\t}",
"public Long getLong(String key) {\n if (!jsonData.has(key))\n return null;\n try {\n return jsonData.getLong(key);\n } catch (Exception ex) {\n return null;\n }\n }",
"public Object getQuiet(String key);",
"String getLongNameKey();",
"public String get(int key) {\n String sql = \"SELECT data_val FROM data_map WHERE data_key = ?\";\n\n String value = null;\n try (Connection con = this.connect();\n PreparedStatement pstmt = con.prepareStatement(sql)) {\n pstmt.setInt(1, key);\n ResultSet rs = pstmt.executeQuery();\n\n if (!rs.isClosed()) {\n value = rs.getString(\"data_val\");\n rs.close();\n }\n }\n catch (SQLException e) {\n value = null;\n }\n\n return value;\n }",
"String getString( String key, String def);",
"public String getConfigurationValue(Enum<?> key) {\n // get string key\n String keyStr = key.toString();\n\n // get value\n String value = this.getConfigurationValue(keyStr);\n\n return value;\n }",
"public int get(int key) {\n return store[key]; // get the value for the key\n }",
"public static String getConfiguration(String key) {\r\n PersistenceManager pm = PMF.getPersistenceManager();\r\n Query query = pm.newQuery(Configuration.class, \"key == \" + key);\r\n query.setUnique(true);\r\n Configuration config = (Configuration) query.execute(query);\r\n return config.getValue();\r\n }",
"public Short getShort(String key) throws AgentBuilderRuntimeException {\n\t\tif (!extContainsKey(key))\n\t\t\tthrow new AgentBuilderRuntimeException(\n\t\t\t\t\t\"Dictionary does not contain key \\\"\" + key + \"\\\"\");\n\t\treturn (Short) extGet(key);\n\t}",
"public short s(String key) throws AgentBuilderRuntimeException {\n\t\treturn getShort(key).shortValue();\n\t}",
"public int get(int key) {\n return 1;\n }",
"public long getValue(String key, long defaultValue) {\n return mSharedPreferences.getLong(key, defaultValue);\n }",
"private String getLocalValue(int key)\n {\n // binary search, since the list is sorted\n int start = 0;\n int end = cache.size() - 1;\n while (start <= end)\n {\n int mid = (start + end) / 2;\n Record currentRecord = cache.get(mid);\n if (key == currentRecord.key())\n {\n return currentRecord.value();\n }\n else if (key < currentRecord.key())\n {\n end = mid - 1;\n }\n else\n {\n start = mid + 1;\n }\n }\n \n // not found\n return null; \n }",
"Object get(Object key);",
"private static final String getStringPreference(String key, String defValue) {\n final SharedPreferences settings = DemoApp.getSharedPreferences();\n return settings.getString(key, defValue);\n }",
"Configuration getConfigByKey(String configKey);",
"private String getValueFromProperty(String key) {\n\t\treturn properties.getProperty(key);\n\n\t}",
"public void showPreference(View v){\n String prefvalue = settings.getString(\"key1\",\"Not Found\");\n cHelpers.show_toast(this,\"key1 was \"+prefvalue);\n }",
"public String getPreference(String key) {\n return prefs.get(key, null);\n }",
"public Value get(Key key) ;"
] | [
"0.7684474",
"0.70364255",
"0.6872631",
"0.6760501",
"0.6683973",
"0.66767293",
"0.661409",
"0.6590604",
"0.6573163",
"0.6531457",
"0.6358148",
"0.6338024",
"0.63374054",
"0.6312699",
"0.63111466",
"0.6294899",
"0.626685",
"0.6234483",
"0.6203828",
"0.6181235",
"0.6123658",
"0.6104147",
"0.606457",
"0.6060849",
"0.60233337",
"0.5992713",
"0.595925",
"0.5957183",
"0.5950564",
"0.5947256",
"0.5902301",
"0.5898604",
"0.58812267",
"0.5876604",
"0.587584",
"0.5875441",
"0.58582246",
"0.58347106",
"0.58233225",
"0.58233225",
"0.58233225",
"0.58217454",
"0.5819767",
"0.5798467",
"0.5795979",
"0.578255",
"0.577229",
"0.576923",
"0.5767851",
"0.57308507",
"0.5723694",
"0.5706191",
"0.567226",
"0.5667419",
"0.5646728",
"0.5645806",
"0.56277114",
"0.56271875",
"0.5602416",
"0.55997914",
"0.55997914",
"0.5598786",
"0.5583854",
"0.5580575",
"0.5577403",
"0.5573056",
"0.55715984",
"0.5566885",
"0.55650866",
"0.5561046",
"0.555856",
"0.5558149",
"0.55521786",
"0.55521786",
"0.55521786",
"0.55420476",
"0.55375886",
"0.55372155",
"0.5534242",
"0.55200905",
"0.55091405",
"0.55016345",
"0.54907936",
"0.5489896",
"0.54868346",
"0.54730856",
"0.5472297",
"0.5469894",
"0.5469863",
"0.5455155",
"0.5453859",
"0.54509467",
"0.5447038",
"0.5445695",
"0.54450256",
"0.5443037",
"0.5441796",
"0.5441512",
"0.5439983",
"0.54339164"
] | 0.6202441 | 19 |
put long value into settings | synchronized public static void putLong(Context context, String key, long value, boolean commit) {
ensurePreferencesEditor(context);
sPreferencesEditor.putLong(key, value);
if (commit) {
sPreferencesEditor.commit();
}
if (sInstance != null) {
sInstance.mSettings.put(key, value);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setLong(String key, long val);",
"public void setLongValue(long value) {\n setValueIndex(getPool().findLongEntry(value, true));\n }",
"public static void setSetting(Context context, String key, long value) {\n SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(context);\n SharedPreferences.Editor editor = sp.edit();\n editor.putLong(key, value);\n editor.commit();\n }",
"long getLongValue();",
"long getLongValue();",
"public void setLongValue(long v)\n {\n this.setValue(String.valueOf(v));\n }",
"public static void setLong(String aKey, long aValue) {\n getSharedPreferences().edit().putLong(aKey, aValue).apply();\n }",
"public void setValue(long value) {\n\t this.value = value;\n\t }",
"void set(long newValue);",
"public void set_long(long param) {\n this.local_long = param;\n }",
"public static void setLongValue(final String prefFile, final String key, final long value) {\n final SharedPreferences sharedPref = getSharedPreferences(prefFile);\n final SharedPreferences.Editor editor = sharedPref.edit();\n editor.putLong(key, value);\n editor.apply();\n }",
"public void setMyLong(long myLongIn) {\n myLong = myLongIn;\n }",
"public Builder setLongValue(long value) {\n typeCase_ = 3;\n type_ = value;\n onChanged();\n return this;\n }",
"void writeLong(long value);",
"public void setLongueur(int longueur) {\r\n this.longueur = longueur;\r\n }",
"public void setLong(String parName, long parVal) throws HibException;",
"public long getLongValue() {\n return longValue_;\n }",
"private void printLongField(String name, long value, String groupName, String units) {\n sendToGanglia(name, GANGLIA_INT_TYPE, String.format(locale, \"%d\", value), groupName, units);\n }",
"public long getLongValue() {\n return longValue_;\n }",
"@Override\n public final void setValue(Long value) {\n setValue(value, true);\n }",
"public static long getLong(Context context, String key, long defValue) {\r\n\t\tif (sInstance != null && sInstance.mSettings.containsKey(key)) {\r\n\t\t\treturn (Long) sInstance.mSettings.get(key);\r\n\t\t}\r\n\t\tlong val = defValue;\r\n\t\ttry {\r\n\t\t\tval = getPreferences(context).getLong(key, defValue);\r\n\t\t} catch(ClassCastException e) {\r\n\t\t\tDebug.logException(e);\r\n\t\t}\r\n\t\t\r\n\t\tif (sInstance != null) {\r\n\t\t\tsInstance.mSettings.put(key, val);\r\n\t\t}\r\n\t\t\r\n\t\treturn val;\r\n\t}",
"public long longValue() {\n return value;\n }",
"void setLong(int index, long value) throws SQLException;",
"public long longValue() {\n return number;\n }",
"public static void setPreference(String key, long value) {\n editor = sharedPreferences.edit();\n\n editor.putLong(key, value);\n editor.apply();\n }",
"public void setLongitud(Integer longitud)\n/* 42: */ {\n/* 43:62 */ this.longitud = longitud;\n/* 44: */ }",
"public Builder setLongValue(long value) {\n bitField0_ |= 0x00000020;\n longValue_ = value;\n onChanged();\n return this;\n }",
"public void writeLongPrefs(String prefName, long prefValue) {\n editor = sPrefs.edit();\n editor.putLong(prefName, prefValue);\n editor.apply();\n }",
"public long longValue() {\n return this.value;\n }",
"public long getLong(String key) {\n\t\tString value = getString(key);\n\t\t\n\t\ttry {\n\t\t\treturn Long.parseLong(value);\n\t\t}\n\t\tcatch( NumberFormatException e ) {\n\t\t\tthrow new IllegalStateException( \"Illegal value for long integer configuration parameter: \" + key);\n\t\t}\n\t}",
"public void set(long value) {\n\t\t\tset(1, value);\n\t\t}",
"public String FormatarValor(long value){\n return FormatUtil.formatBytes(value);\n }",
"public static void singleValue(String name, long value) {\n singleValue(name,value,null);\n }",
"@Override\n\tpublic void setValue(String path, long value) {\n\t\tsetValue(path, new Long(value));\n\t}",
"public void setLongueur(int l) {\n\t\tthis.longueur = l;\n\t}",
"long getELong();",
"public static boolean setLongValue(String propID, long v)\n {\n return SystemProps.setStringValue(propID, String.valueOf(v));\n }",
"public abstract void setLongImpl(String str, double d, Resolver<Void> resolver);",
"public void setLongStat(MetricDef metric, long value){\n longMetrics.put(metric.metricId(), value);\n }",
"private void setX(long value) {\n bitField0_ |= 0x00000001;\n x_ = value;\n }",
"public void writeEncounterNumPreferences(long encounterNum){\n mSharedPreference = mContext.getSharedPreferences(mContext.getString(\n R.string.sharedpreferencesFileName),Context.MODE_PRIVATE);\n SharedPreferences.Editor editor=mSharedPreference.edit();\n editor.putLong(mContext.getString(R.string.encounter),encounterNum);\n editor.commit();\n}",
"public long longValue() {\r\n return intValue();\r\n }",
"@java.lang.Override\n public long getLongValue() {\n if (typeCase_ == 3) {\n return (java.lang.Long) type_;\n }\n return 0L;\n }",
"public void setAnyShortExces(long value) {\n this.anyShortExces = value;\n }",
"public static long getLong(String key) throws UnknownID, ArgumentNotValid {\n\t\tString value = get(key);\n\t\ttry {\n\t\t\treturn Long.parseLong(value);\n\t\t} catch (NumberFormatException e) {\n\t\t\tString msg = \"Invalid setting. Value '\" + value + \"' for key '\" + key + \"' could not be parsed as a long.\";\n\t\t\tthrow new ArgumentNotValid(msg, e);\n\t\t}\n\t}",
"public long longValue();",
"public void setTesuryo22(Long tesuryo22) {\r\n this.tesuryo22 = tesuryo22;\r\n }",
"public static long getLongSetting(Context context, String key, long defaultValue) {\n SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(context);\n return sp.getLong(key, defaultValue);\n }",
"public long longValue() {\n\t\treturn getSection().longValue();\n\t}",
"public org.apache.gora.cascading.test.storage.TestRow.Builder setColumnLong(java.lang.Long value) {\n validate(fields()[2], value);\n this.columnLong = value;\n fieldSetFlags()[2] = true;\n return this; \n }",
"public void setLong(int addr, long val) throws ProgramException {\n setLittleEndian(addr, Long.BYTES, val);\n }",
"public long getLongValue() {\n if (typeCase_ == 3) {\n return (java.lang.Long) type_;\n }\n return 0L;\n }",
"public void setLongitud(String longitud);",
"public void setColumnLong(java.lang.Long value) {\n this.columnLong = value;\n setDirty(2);\n }",
"public void setData(long value) {\n this.data = value;\n }",
"public Builder setValue(long value) {\n \n value_ = value;\n onChanged();\n return this;\n }",
"public void setKinkenriyou22(Long kinkenriyou22) {\r\n this.kinkenriyou22 = kinkenriyou22;\r\n }",
"public AppPreferences set(@NonNull String name, long value) {\n SharedPreferences prefs = context.getSharedPreferences(filename, Context.MODE_PRIVATE);\n SharedPreferences.Editor prefsEditor = prefs.edit();\n prefsEditor.putLong(name, value);\n prefsEditor.apply(); // or commit();\n return this;\n }",
"public void setBuid(long value) {\r\n this.buid = value;\r\n }",
"String longWrite();",
"public NBTLong(String name, long val)\n\t{\n\t\tthis.name = name;\n\t\tthis.val = val;\n\t}",
"private void setLongToken(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n longToken_ = value;\n }",
"private void setLongToken(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n longToken_ = value;\n }",
"public void setDefaultLong1(java.lang.Long value) {\n this.defaultLong1 = value;\n setDirty(0);\n }",
"private void setBuild(long value) {\n bitField0_ |= 0x00000004;\n build_ = value;\n }",
"public void setDefaultLong1(java.lang.Long value) {\n\t throw new java.lang.UnsupportedOperationException(\"Set is not supported on tombstones\");\n\t }",
"private void setAmount(long value) {\n bitField0_ |= 0x00000001;\n amount_ = value;\n }",
"public long longValue() {\n return (long) m_value;\n }",
"public void setTesuryo23(Long tesuryo23) {\r\n this.tesuryo23 = tesuryo23;\r\n }",
"private void setEmbeddingTokenHigh(long value) {\n bitField0_ |= 0x00000004;\n embeddingTokenHigh_ = value;\n }",
"public long getValue();",
"@Override\r\n\tpublic Buffer setLong(int pos, long l) {\n\t\treturn null;\r\n\t}",
"public static long getLongParam(String key) throws InvalidParam {\n return getCurrentConfig().getLong(key);\n }",
"public void setKinkenriyou07(Long kinkenriyou07) {\r\n this.kinkenriyou07 = kinkenriyou07;\r\n }",
"private void setTime(long value) {\n \n time_ = value;\n }",
"private void setTime(long value) {\n \n time_ = value;\n }",
"private void setTime(long value) {\n \n time_ = value;\n }",
"private void setEmbeddingTokenHigh(long value) {\n bitField0_ |= 0x00000002;\n embeddingTokenHigh_ = value;\n }",
"void setValue(Short value);",
"public void setKinkenriyou23(Long kinkenriyou23) {\r\n this.kinkenriyou23 = kinkenriyou23;\r\n }",
"public void setHome_phone(Long home_phone);",
"public long getValue() {\n\treturn value;\n }",
"public void put(String key, long value)\n\t{\n\t\tverifyParseState();\n\t\tvalues.put(key, ValueUtil.createValue(value));\n\t}",
"public int getLongueur()\n\t{\n\t\treturn longueur_;\n\t}",
"public static void main(String[] args) {\n\n byte byteVal = 5;\n short shortVal = 10;\n int intVal = 100;\n long longVal = 50000L + (byteVal + shortVal + intVal) * 10L;\n\n System.out.println(longVal);\n\n }",
"public int getLongueur() {\r\n return longueur;\r\n }",
"public long getLong(String key, long defValue) {\r\n\t\treturn getLong(Global.getContext(), key, defValue);\r\n\t}",
"void writeLong(long v) throws IOException;",
"@Api(1.0)\n @Nullable\n public Long getLong(@NonNull String propertyName, @Nullable Long value) {\n if (getSharedPreferences().contains(propertyName)) {\n long val = value != null ? value : 0L;\n return getSharedPreferences().getLong(propertyName, val);\n }\n return value;\n }",
"public org.apache.gora.cascading.test.storage.TestRow.Builder setDefaultLong1(long value) {\n validate(fields()[0], value);\n this.defaultLong1 = value;\n fieldSetFlags()[0] = true;\n return this; \n }",
"public long longValue()\n\t\t{\n\t\t\treturn (long) doubleValue();\n\t\t}",
"public int getLongueur() {\n return longueur;\n }",
"public static long getLongPreference(String key) {\n\n return sharedPreferences.getLong(key, -1);\n }",
"public ByteBuf setLong(int index, long value)\r\n/* 295: */ {\r\n/* 296:310 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 297:311 */ return super.setLong(index, value);\r\n/* 298: */ }",
"public long getLong(String key, long defaultValue);",
"@Test\n public void test_GetLong() {\n Assert.assertEquals(\"Values werent the same\", 1234567890987654321L, SecureEnvironment.getLong(\"test_key_long\"));\n }",
"void setSpokes(long spokes);",
"public abstract long getValue();",
"public abstract long getValue();",
"public void setKinkenriyou03(Long kinkenriyou03) {\r\n this.kinkenriyou03 = kinkenriyou03;\r\n }"
] | [
"0.7241495",
"0.6840659",
"0.68148416",
"0.67885023",
"0.67885023",
"0.6759501",
"0.66081816",
"0.6573203",
"0.65639853",
"0.65460634",
"0.6508334",
"0.63982636",
"0.6368623",
"0.63664854",
"0.63458914",
"0.63151765",
"0.6306086",
"0.6288141",
"0.6223481",
"0.6216485",
"0.62047184",
"0.6203934",
"0.61761206",
"0.6157859",
"0.6156583",
"0.6143083",
"0.61279213",
"0.6119357",
"0.6094818",
"0.60788655",
"0.6078429",
"0.60237575",
"0.60065025",
"0.59979606",
"0.5996506",
"0.5975796",
"0.59736824",
"0.59703434",
"0.59643286",
"0.5932208",
"0.59258705",
"0.59248483",
"0.5918578",
"0.5906601",
"0.58917826",
"0.5886827",
"0.58802736",
"0.58686334",
"0.58662575",
"0.58656037",
"0.5858416",
"0.584749",
"0.58183414",
"0.5789583",
"0.57844037",
"0.5778339",
"0.57730037",
"0.5768263",
"0.57603097",
"0.57391936",
"0.57278895",
"0.5721432",
"0.5721432",
"0.5721106",
"0.5720339",
"0.5713888",
"0.57066464",
"0.57008946",
"0.56993175",
"0.5681633",
"0.56647974",
"0.5658654",
"0.5653659",
"0.56477106",
"0.56405795",
"0.56405795",
"0.56405795",
"0.563905",
"0.563409",
"0.5623839",
"0.5602942",
"0.56020015",
"0.55963933",
"0.5591923",
"0.55890346",
"0.5575035",
"0.55736536",
"0.5571743",
"0.5570586",
"0.55646175",
"0.55610406",
"0.5557906",
"0.5557426",
"0.55506766",
"0.5548693",
"0.55464023",
"0.55284214",
"0.5527337",
"0.5527337",
"0.5526552"
] | 0.6651388 | 6 |
get a boolean settings value by key | public static boolean getBoolean(Context context, String key, boolean defValue) {
if (sInstance !=null && sInstance.mSettings.containsKey(key)) {
return (Boolean) sInstance.mSettings.get(key);
}
boolean val = defValue;
try {
val = getPreferences(context).getBoolean(key, defValue);
} catch(ClassCastException e) {
Debug.logException(e);
}
if (sInstance != null) {
sInstance.mSettings.put(key, val);
}
return val;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean getBoolean(String key, boolean defaultValue);",
"public boolean getBoolean( String key )\n {\n boolean value = false;\n try\n {\n if (config != null)\n {\n value = config.getBoolean(key);\n LOG.debug( \"getBoolean name [{}] value [{}]\", key, value );\n }\n else\n {\n LOG.warn( \"getBoolean invalid config, can't read prop [{}], using default [{}]\", key, false );\n }\n }\n catch (java.util.NoSuchElementException e )\n {\n LOG.debug( \"getBoolean - no such element [{}], using default [{}]\", key, false );\n }\n return value;\n }",
"public boolean getBoolean(String key)\n {\n return getBoolean(key, false);\n }",
"public boolean getBoolean(String key) {\n boolean value = false;\n try {\n value = mConfigurations.getBoolean(key);\n } catch (JSONException e) {\n sLogger.error(\"Error retrieving boolean from JSONObject; trying as 1/0 int\");\n return getInt(key) == 1;\n }\n return value;\n }",
"public boolean getBoolean(String key, boolean defaultValue);",
"public Boolean getBoolean(String key, Boolean defaultValue);",
"public boolean getBoolean(String key) {\n\t\tif (internal.getProperty(key) != null)\n\t\t\treturn internal.getProperty(key).equals(\"true\");\n\t\telse if (getDefault(key) != null)\n\t\t\treturn (Boolean) getDefault(key);\n\t\telse\n\t\t\treturn false;\n\t}",
"public boolean getBoolean(String key)\r\n {\r\n debug(\"getBoolean(\" + key + \") - retrieving Key...\");\r\n String valueSz = null;\r\n try\r\n {\r\n valueSz = getResourceBundle().getString(key);\r\n }\r\n catch (MissingResourceException e)\r\n {\r\n System.out.println(\"java.util.MissingResourceException: \" + \"Couldn't find value for: \" + key);\r\n }\r\n if (valueSz == null)\r\n {\r\n valueSz = \"Could not find resource: \" + key + \" \";\r\n }\r\n boolean value = new Boolean(valueSz).booleanValue();\r\n debug(\"getBoolean(\" + key + \") - value ==> \" + value);\r\n debug(\"getBoolean(\" + key + \") - retrieving Key...Done\");\r\n return value;\r\n }",
"boolean getBoolean(String key) throws KeyValueStoreException;",
"public\n boolean getProperty_boolean(String key)\n {\n if (key == null)\n return false;\n\n String val = getProperty(key);\n\n if (val == null)\n return false;\n\n boolean ret_boolean = false;\n if (val.equalsIgnoreCase(\"ON\") ||\n val.equalsIgnoreCase(\"YES\") ||\n val.equalsIgnoreCase(\"TRUE\"))\n {\n ret_boolean = true;\n }\n else\n if (val.equalsIgnoreCase(\"OFF\") ||\n val.equalsIgnoreCase(\"NO\") ||\n val.equalsIgnoreCase(\"FALSE\"))\n {\n ret_boolean = false;\n }\n\n return ret_boolean;\n }",
"String getSettingByKey(String key);",
"public boolean getBoolean(String key) {\r\n try {\r\n String string = getString(key);\r\n return string.equalsIgnoreCase(\"true\") || string.equals(\"1\");\r\n }\r\n catch (MissingResourceException e) {\r\n return false;\r\n }\r\n }",
"public boolean getBoolean(String key) {\n return Boolean.valueOf(UnsafeUtils.cast(get(key)));\n }",
"public boolean getBoolean(String key) {\n Object value = get(key);\n return ((value instanceof Boolean) ? (Boolean)value : false);\n }",
"public boolean getBooleanProperty(String key) {\n\t\treturn Boolean.parseBoolean(this.getProperty(key));\n\t}",
"public static boolean getBoolProperty(String key) {\r\n\t\treturn getBoolProperty(key, false);\r\n\t}",
"public static boolean getBoolean(String key) throws UnknownID, ArgumentNotValid {\n\t\tArgumentNotValid.checkNotNullOrEmpty(key, \"String key\");\n\t\tString value = get(key);\n\t\treturn Boolean.parseBoolean(value);\n\t}",
"public static final boolean getBoolean(String key) {\n\t\tString token = getString(key);\n\t\tif (token == null) {\n\t\t\treturn false;\n\t\t}\n\t\tif (token.equalsIgnoreCase(\"true\")) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"public Boolean getBoolean(String key)\n\t{\n\t\tverifyParseState();\n\t\t\n\t\tValue value = values.get(key);\n\t\tif(value == null || value.value == null)\n\t\t\treturn null;\n\t\tif(value.type != ValueType.BOOLEAN)\n\t\t\tthrow new JsonTypeException(value.value.getClass(), Boolean.class);\n\t\treturn (Boolean)value.value;\n\t}",
"public static boolean getBoolForKey(String key)\n\t{\n\t\treturn PreferencesModel.instance().getUserBoolPref(key, false);\n\t}",
"@Nullable\r\n public Boolean getBoolean(String key) {\r\n return getTyped(key, Boolean.class, null);\r\n }",
"public boolean getBooleanProperty(String key) {\n String val = getProperty(key);\n return (null == val ? true : Boolean.valueOf(val).booleanValue());\n }",
"public Boolean getBooleanData(String key) {\n return pref.getBoolean(key, Boolean.FALSE);\n }",
"public static boolean getBooleanParam(String key) throws InvalidParam {\n return getCurrentConfig().getBoolean(key);\n }",
"public static boolean getBooleanPref(String key) {\n\t\treturn prefs.getBoolean(key, false);\n\t}",
"public static Boolean getBooleanPreference(String key) {\n return sharedPreferences.getBoolean(key, false);\n }",
"public static Boolean getPrefBooleanData(Context context, String key) {\n try {\n SharedPreferences pref = context.getSharedPreferences(APP_CONFIG_PREF, Context.MODE_PRIVATE);\n return pref.getBoolean(key, false);\n } catch (Exception e) {\n e.printStackTrace();\n }\n return false;\n }",
"public boolean getMandatoryBoolean(String key) throws ConfigNotFoundException;",
"public static boolean getBoolean(final String key) {\r\n if (PROP == null) {\r\n throw new RuntimeException(\"Config hasn't been initialized yet.\");\r\n }\r\n if (PROP.containsKey(key))\r\n if (PROP.getProperty(key).equals(\"true\")\r\n || PROP.getProperty(key).equals(\"1\"))\r\n return true;\r\n else\r\n return false;\r\n else\r\n throw new RuntimeException(\"No config key found for [\" + key + \"].\");\r\n }",
"public boolean getBoolean(final String key) {\n String s = removeByteOrderMark(get(key));\n if (s == null) return false;\n s = s.toLowerCase(Locale.ROOT);\n return s.equals(\"true\") || s.equals(\"on\") || s.equals(\"1\");\n }",
"@Override\n public boolean getBoolean(String key, boolean defaultVal) {\n return mSharedPreferences.getBoolean(key, defaultVal);\n }",
"public static boolean getBooleanParam(String key, boolean dfault) {\n Configuration cur = getCurrentConfig();\n if (cur == null) {\n return dfault;\n }\n return cur.getBoolean(key, dfault);\n }",
"public Boolean getBoolean(String key) throws AgentBuilderRuntimeException {\n\t\tif (!extContainsKey(key))\n\t\t\tthrow new AgentBuilderRuntimeException(\n\t\t\t\t\t\"Dictionary does not contain key \\\"\" + key + \"\\\"\");\n\t\treturn (Boolean) extGet(key);\n\t}",
"protected final Boolean getBoolean(final String key) {\n try {\n if (!jo.isNull(key)) {\n return jo.getBoolean(key);\n }\n } catch (JSONException e) {\n }\n return Boolean.FALSE;\n }",
"public static boolean getBoolean( String key, boolean defaultValue )\n\t{\n\t\tString value;\n\n\t\ttry {\n\t\t\tvalue = properties.getProperty( key );\n\t\t} catch ( Exception e ) {\n\t\t\treturn defaultValue;\n\t\t}\n\n\t\tboolean boolValue = defaultValue;\n\n\t\tif ( value != null ) {\n\t\t\t// Try to convert a a String to a boolean\n\t\t\tif ( value.equalsIgnoreCase( \"true \" ) || value.equalsIgnoreCase( \"yes\" )\n\t\t\t\t\t|| value.equalsIgnoreCase( \"1\" ) ) {\n\t\t\t\tboolValue = true;\n\t\t\t} else if ( value.equalsIgnoreCase( \"false\" )\n\t\t\t\t\t|| value.equalsIgnoreCase( \"no\" ) || value.equalsIgnoreCase( \"0\" ) ) {\n\t\t\t\tboolValue = false;\n\t\t\t}\n\t\t}\n\t\treturn boolValue;\n\t}",
"boolean getValue();",
"public static boolean getBoolean(String key, boolean bDefaultValue) {\r\n try {\r\n String s = getProperty(key);\r\n if (s != null) {\r\n return s.equalsIgnoreCase(\"true\") || s.equalsIgnoreCase(\"t\");\r\n } else {\r\n return bDefaultValue;\r\n }\r\n } catch (Exception e) {\r\n return bDefaultValue;\r\n }\r\n }",
"boolean getBoolValue();",
"boolean getBoolValue();",
"@Override\n public boolean getBoolean(String key) {\n return random.nextInt(BOOLEAN_RANDOM_BOUND) == 1;\n }",
"private boolean getBooleanProperty(ParameterList key, boolean defaultValue) \n throws NumberFormatException, NullPointerException, MissingOptionException{\n try {\n boolean keyPresent = fileParameters.containsKey(key.name);\n String strValue = keyPresent ? fileParameters.getProperty(key.name).replaceAll(\"\\\\s\", \"\") : null;\n if (!keyPresent && key.mandatory) {\n throw new MissingOptionException(\"The input parameter (\" + key.name + \") was not found\");\n }\n else if(!keyPresent || strValue.equals(\"\")){\n loadedParametersLog.append(key.name).append(\"=\").append(defaultValue).append(\" (DEFAULT)\\n\");\n return defaultValue;\n }\n loadedParametersLog.append(key.name).append(\"=\").append(strValue).append(\"\\n\");\n return Boolean.parseBoolean(strValue);\n } catch (NumberFormatException e) {\n throw new NumberFormatException(e.getMessage() + \"\\nThe input parameter (\" + key.name + \") could not be converted to boolean.\");\n } catch (NullPointerException e) {\n throw new NullPointerException(e.getMessage() + \"\\nThe parameter file was not initialized.\");\n }\n }",
"public static boolean getBooleanSetting(Context context, String key, boolean defaultValue) {\n SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(context);\n return sp.getBoolean(key, defaultValue);\n\n }",
"public boolean getBoolean(String key, boolean defValue) {\r\n\t\treturn getBoolean(Global.getContext(), key, defValue);\r\n\t}",
"private String get(String key)\n {\n return settings.getProperty(key);\n }",
"@Nullable\r\n public Boolean getBoolean(String key, @Nullable Boolean def) {\r\n try {\r\n return getTyped(key, Boolean.class, def);\r\n } catch (ClassCastException x) {\r\n return get(key) instanceof String ? Boolean.valueOf((String) get(key)) : false;\r\n }\r\n }",
"String getSettingByKey(HawkularUser user, String key);",
"public boolean getBoolean( String key, boolean defaultValue )\n {\n boolean value = defaultValue;\n try\n {\n if ( config != null )\n {\n try\n {\n value = config.getBoolean( key, defaultValue );\n LOG.debug( \"getBoolean name [{}] value [{}]\", key, value );\n }\n catch (org.apache.commons.configuration.ConversionException e )\n {\n LOG.debug( \"getBoolean name [{}], conversion exception using default [{}]\", key, defaultValue );\n }\n }\n else\n {\n LOG.warn( \"getBoolean - invalid config, can't read prop [{}], using default [{}]\", key, defaultValue );\n }\n }\n catch (java.lang.IllegalStateException e )\n {\n LOG.debug( \"getBoolean - illegal state exception [{}], using default [{}]\", key, defaultValue );\n }\n catch (java.util.NoSuchElementException nse )\n {\n LOG.debug( \"getBoolean - no such element [{}], using default [{}]\", key, defaultValue );\n }\n return value;\n }",
"public Boolean getBoolean(String key) throws JsonException {\r\n\t\tObject object = get(key);\r\n\t\tBoolean result = PrimitiveDataTypeConvertor.toBoolean(object);\r\n\t\tif (result == null) {\r\n\t\t\tthrow PrimitiveDataTypeConvertor.exceptionType(key, object, \"boolean\");\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"public Object get(String key) {\r\n\t\treturn settings.get(key);\r\n\t}",
"boolean isEnabled(String key);",
"public boolean is (String key) { return options.is (key); }",
"public static boolean getBoolean(Context context, String key) {\n return getBoolean(context, key, false);\n }",
"public static boolean getBoolForKey(String key, boolean defaultValue) {\n SharedPreferences settings = ((Activity) sContext)\n .getSharedPreferences(CELibHelper.PREFS_NAME, 0);\n return settings.getBoolean(key, defaultValue);\n }",
"public static boolean getBooleanValue(final String prefFile, final String key) {\n return getBooleanValue(prefFile, key, false);\n }",
"public boolean getBoolean(String key, boolean defaultValue) {\n String lowerCaseKey = validateAndGetLowerCaseKey(key);\n\n if(map.containsKey(lowerCaseKey)) {\n String value = map.get(lowerCaseKey);\n\n if(value.equalsIgnoreCase(TRUE_AS_STRING)) {\n return true;\n } else if(value.equalsIgnoreCase(FALSE_AS_STRING)) {\n return false;\n }\n }\n return defaultValue;\n }",
"public static final boolean getBooleanParam(Map<String,String> params, String key, boolean def) {\n\t\ttry {\n\t\t\tString val = params.get(key);\n\t\t\tif(val==null || (!\"true\".equals(val) && !\"false\".equals(val))) return def;\n\t\t\treturn Boolean.parseBoolean(val);\n\t\t} catch (Exception e) {\n\t\t\treturn def;\n\t\t}\n\t}",
"public static boolean getBoolean(Tag tag){\n makeInstance();\n return settingsFile.getBoolean(tag);\n }",
"public boolean getValue();",
"String get(String key) {\n return settings.get(key);\n }",
"public boolean getBoolean(String key, boolean fallback)\n {\n if (key.contains(\".\"))\n {\n String[] pieces = key.split(\"\\\\.\", 2);\n DataSection section = getSection(pieces[0]);\n return section == null ? fallback : section.getBoolean(pieces[1], fallback);\n }\n\n if (!data.containsKey(key)) return fallback;\n String str = getString(key).toLowerCase();\n return str.equals(\"true\") || str.equals(\"yes\") || str.equals(\"t\") || str.equals(\"y\")\n || (fallback && !str.equals(\"false\") && !str.equals(\"no\") && !str.equals(\"f\") && !str.equals(\"n\"));\n }",
"public static boolean GetPreferByBoolean(Context context, String key) {\n\t\tSharedPreferences mPrefer = PreferenceManager.getDefaultSharedPreferences(context);\n\t\treturn mPrefer.getBoolean(key, false);\n\t}",
"public boolean bool(String key) throws AgentBuilderRuntimeException {\n\t\treturn getBoolean(key).booleanValue();\n\t}",
"String getSettingByKey(String key, String defaultValue);",
"public BooleanVariable getBooleanVariable(String name) {\n return booleanVariableMap.get(name);\n }",
"@Override\n\tpublic Boolean getAsBoolean(final String key)\n\t{\n\t\tif (!containsKey(key))\n\t\t{\n\t\t\treturn null;\n\t\t}\n\n\t\ttry\n\t\t{\n\t\t\treturn getBoolean(key);\n\t\t}\n\t\tcatch (StringValueConversionException ignored)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t}",
"boolean get();",
"public static Boolean getPreferencesBoolean(final Context context,\n\t\t\tfinal String key) {\n\t\tBoolean result;\n\t\ttry {\n\t\t\tfinal SharedPreferences sharedPreferences = PreferenceManager\n\t\t\t\t\t.getDefaultSharedPreferences(context);\n\n\t\t\tresult = sharedPreferences.getBoolean(key, false);\n\t\t} catch (Exception exception) {\n\t\t\tresult = false;\n\t\t}\n\t\treturn result;\n\t}",
"public Boolean getBoolean (JSONValue val , String key){\r\n\t\tif ( val==null||key==null || key.length()==0)\r\n\t\t\treturn null ; \r\n\t\tJSONObject obj=val.isObject() ; \r\n\t\tif ( obj==null ||JSONNull.getInstance().equals( obj))\r\n\t\t\treturn null ; \r\n\t\tif (!obj.containsKey(key))\r\n\t\t\treturn null; \r\n\t\tJSONValue actualVal = obj.get(key);\r\n\t\tif ( actualVal.isBoolean() !=null)\r\n\t\t\treturn actualVal.isBoolean().booleanValue(); \r\n\t\treturn null ; \r\n\t\t\r\n\t}",
"public Boolean Bool(String key) throws AgentBuilderRuntimeException {\n\t\tif (!extContainsKey(key))\n\t\t\tthrow new AgentBuilderRuntimeException(\n\t\t\t\t\t\"Dictionary does not contain key \\\"\" + key + \"\\\"\");\n\t\treturn (Boolean) extGet(key);\n\t}",
"String getSettingByKey(HawkularUser user, String key, String defaultValue);",
"public boolean booleanValue(Map<Prop, Object> map) {\n assert type == Boolean.class;\n Object o = map.get(this);\n return this.<Boolean>typeValue(o);\n }",
"public boolean getValue(String key, boolean defaultValue) {\n return mSharedPreferences.getBoolean(key, defaultValue);\n }",
"public static boolean getBoolean(String key, String consumer) {\n systemPropertyQueried(key, consumer);\n return Boolean.getBoolean(key);\n }",
"public boolean get(boolean a) {\n\t\treturn a;\r\n\t}",
"public static boolean getBoolean(\n Map<Object, Object> properties,\n Object key,\n boolean defaultValue\n )\n {\n Boolean value = (Boolean)properties.get(key);\n if (value == null)\n return defaultValue;\n\n return value.booleanValue();\n }",
"private boolean isTrue(final Variable key) {\n return data.containsKey(key) && Boolean.TRUE.equals(data.get(key));\n }",
"private boolean getBoolean(String paramString, boolean paramBoolean) {\n }",
"void setBoolean(String key, boolean val);",
"public boolean getBoolean(String name) {\n\t\tObject val = values.get(name);\n\t\tif (val == null) {\n\t\t\tthrow new IllegalArgumentException(\"Boolean value required, but not specified\");\n\t\t}\n\t\tif (val instanceof Boolean) {\n\t\t\treturn (Boolean) val;\n\t\t}\n\t\ttry {\n\t\t\treturn Boolean.parseBoolean((String) val);\n\t\t} catch (Exception e) {\n\t\t\tthrow new IllegalArgumentException(\"Boolean value required, but found: \" + val);\n\t\t}\n\t}",
"public static boolean getBoolean(String pName) {\n boolean out = false;\n try {\n out = Boolean.parseBoolean(properties.getProperty(pName));\n } catch (Exception e) {\n out = Boolean.parseBoolean(defaults.getProperty(pName));\n Log.debug(\"Cannot parse property: \" + pName);\n Log.debug(e);\n }\n return out;\n }",
"public Boolean getBoolean(final int index) {\n Object returnable = this.get(index);\n if (returnable instanceof String) {\n returnable = Boolean.valueOf((String) returnable);\n }\n return (Boolean) returnable;\n }",
"public static boolean getBoolProperty(String key, boolean defaultValue) {\r\n\t\treturn CommonUtil.parseAsBoolean(prop.getProperty(key), defaultValue);\r\n\t}",
"public String getSetting(String key) throws SQLException {\n\t\treturn db.selectItem(\"value\", \"settings\", \"`key`='\"+key+\"'\");\n\t}",
"public static boolean getBool(String aKey, boolean aDefaultValue) {\n return getSharedPreferences().getBoolean(aKey, aDefaultValue);\n }",
"io.dstore.values.BooleanValue getPredefinedValues();",
"private final boolean isTrue(final Variable key) {\n return data.containsKey(key) && Boolean.TRUE.equals(data.get(key));\n }",
"public Iterable<Boolean> getBooleans(String key);",
"boolean getValidSettings();",
"public static boolean getBoolean(Context context, String key, boolean defaultValue) {\n return getPrefs(context).getBoolean(key, defaultValue);\n }",
"public boolean getBoolean(){\r\n try{return kd.getJSONObject(ug).getBoolean(udn);}\r\n catch(JSONException e){return false;}\r\n }",
"public Object get(String key) {\n return options.get(key);\n }",
"public Boolean getValue() {\n/* 60 */ return Boolean.valueOf(this.val);\n/* */ }",
"Optional<SettingDTO> getSetting(String settingKey);",
"public boolean b(String key) throws AgentBuilderRuntimeException {\n\t\treturn getBoolean(key).booleanValue();\n\t}",
"boolean getBoolean();",
"boolean getBoolean();",
"boolean hasSetting(Setting<?> setting);",
"public static boolean getConfigValueAsBoolean(Map config, String key, boolean defaultValue) {\n Object value = getConfigValue(config, key, defaultValue);\n return DefaultTypeTransformation.castToBoolean(value);\n }",
"public boolean getProperty(String key,\n String trueValue,\n String falseValue,\n boolean defaultValue) {\n if (this.ignoreCase) {\n key = key.toUpperCase();\n }\n\n String val = this.attributes.getProperty(key);\n\n if (val == null) {\n return defaultValue;\n }\n else if (val.equals(trueValue)) {\n return true;\n }\n else if (val.equals(falseValue)) {\n return false;\n }\n else {\n throw this.invalidValue(key, val, this.lineNr);\n }\n }",
"public boolean getBoolean(String name){\r\n try{return kd.getJSONObject(ug).getBoolean(name);}\r\n catch(JSONException e){return false;}\r\n }"
] | [
"0.7726262",
"0.7478417",
"0.74655735",
"0.74402285",
"0.7419806",
"0.7409219",
"0.7390893",
"0.7323546",
"0.73155034",
"0.7298629",
"0.7281527",
"0.72804123",
"0.7277167",
"0.72429067",
"0.719095",
"0.71494836",
"0.7121569",
"0.70931333",
"0.70878756",
"0.7073796",
"0.7060554",
"0.700541",
"0.7005009",
"0.70016897",
"0.699409",
"0.6946598",
"0.6905025",
"0.68927515",
"0.6872039",
"0.68075144",
"0.6794349",
"0.6765993",
"0.67561346",
"0.6735298",
"0.6669511",
"0.666871",
"0.6666988",
"0.6630493",
"0.6630493",
"0.6562249",
"0.6547132",
"0.65354353",
"0.6531599",
"0.65221184",
"0.6500634",
"0.6487694",
"0.6479157",
"0.6472243",
"0.6436367",
"0.64264643",
"0.6421502",
"0.63979983",
"0.6390209",
"0.6386291",
"0.6369344",
"0.63370436",
"0.633225",
"0.63170826",
"0.62882185",
"0.62850916",
"0.62849444",
"0.6274607",
"0.6258142",
"0.62399024",
"0.6229662",
"0.6220731",
"0.6219076",
"0.6177157",
"0.6173518",
"0.61692727",
"0.61539304",
"0.60984075",
"0.60627013",
"0.60605544",
"0.60441375",
"0.60372037",
"0.6026119",
"0.60228795",
"0.60180575",
"0.60088694",
"0.60046786",
"0.59931064",
"0.59906304",
"0.5971321",
"0.5970304",
"0.5960986",
"0.5941592",
"0.5933011",
"0.5926493",
"0.5919795",
"0.5903983",
"0.5902611",
"0.5899196",
"0.58802056",
"0.5871547",
"0.5871547",
"0.58498895",
"0.58471924",
"0.5824841",
"0.5810356"
] | 0.6295788 | 58 |
get a boolean settings value by key | public boolean getBoolean(String key, boolean defValue) {
return getBoolean(Global.getContext(), key, defValue);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean getBoolean(String key, boolean defaultValue);",
"public boolean getBoolean( String key )\n {\n boolean value = false;\n try\n {\n if (config != null)\n {\n value = config.getBoolean(key);\n LOG.debug( \"getBoolean name [{}] value [{}]\", key, value );\n }\n else\n {\n LOG.warn( \"getBoolean invalid config, can't read prop [{}], using default [{}]\", key, false );\n }\n }\n catch (java.util.NoSuchElementException e )\n {\n LOG.debug( \"getBoolean - no such element [{}], using default [{}]\", key, false );\n }\n return value;\n }",
"public boolean getBoolean(String key)\n {\n return getBoolean(key, false);\n }",
"public boolean getBoolean(String key) {\n boolean value = false;\n try {\n value = mConfigurations.getBoolean(key);\n } catch (JSONException e) {\n sLogger.error(\"Error retrieving boolean from JSONObject; trying as 1/0 int\");\n return getInt(key) == 1;\n }\n return value;\n }",
"public boolean getBoolean(String key, boolean defaultValue);",
"public Boolean getBoolean(String key, Boolean defaultValue);",
"public boolean getBoolean(String key) {\n\t\tif (internal.getProperty(key) != null)\n\t\t\treturn internal.getProperty(key).equals(\"true\");\n\t\telse if (getDefault(key) != null)\n\t\t\treturn (Boolean) getDefault(key);\n\t\telse\n\t\t\treturn false;\n\t}",
"public boolean getBoolean(String key)\r\n {\r\n debug(\"getBoolean(\" + key + \") - retrieving Key...\");\r\n String valueSz = null;\r\n try\r\n {\r\n valueSz = getResourceBundle().getString(key);\r\n }\r\n catch (MissingResourceException e)\r\n {\r\n System.out.println(\"java.util.MissingResourceException: \" + \"Couldn't find value for: \" + key);\r\n }\r\n if (valueSz == null)\r\n {\r\n valueSz = \"Could not find resource: \" + key + \" \";\r\n }\r\n boolean value = new Boolean(valueSz).booleanValue();\r\n debug(\"getBoolean(\" + key + \") - value ==> \" + value);\r\n debug(\"getBoolean(\" + key + \") - retrieving Key...Done\");\r\n return value;\r\n }",
"boolean getBoolean(String key) throws KeyValueStoreException;",
"public\n boolean getProperty_boolean(String key)\n {\n if (key == null)\n return false;\n\n String val = getProperty(key);\n\n if (val == null)\n return false;\n\n boolean ret_boolean = false;\n if (val.equalsIgnoreCase(\"ON\") ||\n val.equalsIgnoreCase(\"YES\") ||\n val.equalsIgnoreCase(\"TRUE\"))\n {\n ret_boolean = true;\n }\n else\n if (val.equalsIgnoreCase(\"OFF\") ||\n val.equalsIgnoreCase(\"NO\") ||\n val.equalsIgnoreCase(\"FALSE\"))\n {\n ret_boolean = false;\n }\n\n return ret_boolean;\n }",
"String getSettingByKey(String key);",
"public boolean getBoolean(String key) {\r\n try {\r\n String string = getString(key);\r\n return string.equalsIgnoreCase(\"true\") || string.equals(\"1\");\r\n }\r\n catch (MissingResourceException e) {\r\n return false;\r\n }\r\n }",
"public boolean getBoolean(String key) {\n return Boolean.valueOf(UnsafeUtils.cast(get(key)));\n }",
"public boolean getBoolean(String key) {\n Object value = get(key);\n return ((value instanceof Boolean) ? (Boolean)value : false);\n }",
"public boolean getBooleanProperty(String key) {\n\t\treturn Boolean.parseBoolean(this.getProperty(key));\n\t}",
"public static boolean getBoolProperty(String key) {\r\n\t\treturn getBoolProperty(key, false);\r\n\t}",
"public static boolean getBoolean(String key) throws UnknownID, ArgumentNotValid {\n\t\tArgumentNotValid.checkNotNullOrEmpty(key, \"String key\");\n\t\tString value = get(key);\n\t\treturn Boolean.parseBoolean(value);\n\t}",
"public static final boolean getBoolean(String key) {\n\t\tString token = getString(key);\n\t\tif (token == null) {\n\t\t\treturn false;\n\t\t}\n\t\tif (token.equalsIgnoreCase(\"true\")) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"public Boolean getBoolean(String key)\n\t{\n\t\tverifyParseState();\n\t\t\n\t\tValue value = values.get(key);\n\t\tif(value == null || value.value == null)\n\t\t\treturn null;\n\t\tif(value.type != ValueType.BOOLEAN)\n\t\t\tthrow new JsonTypeException(value.value.getClass(), Boolean.class);\n\t\treturn (Boolean)value.value;\n\t}",
"public static boolean getBoolForKey(String key)\n\t{\n\t\treturn PreferencesModel.instance().getUserBoolPref(key, false);\n\t}",
"@Nullable\r\n public Boolean getBoolean(String key) {\r\n return getTyped(key, Boolean.class, null);\r\n }",
"public boolean getBooleanProperty(String key) {\n String val = getProperty(key);\n return (null == val ? true : Boolean.valueOf(val).booleanValue());\n }",
"public Boolean getBooleanData(String key) {\n return pref.getBoolean(key, Boolean.FALSE);\n }",
"public static boolean getBooleanParam(String key) throws InvalidParam {\n return getCurrentConfig().getBoolean(key);\n }",
"public static boolean getBooleanPref(String key) {\n\t\treturn prefs.getBoolean(key, false);\n\t}",
"public static Boolean getBooleanPreference(String key) {\n return sharedPreferences.getBoolean(key, false);\n }",
"public static Boolean getPrefBooleanData(Context context, String key) {\n try {\n SharedPreferences pref = context.getSharedPreferences(APP_CONFIG_PREF, Context.MODE_PRIVATE);\n return pref.getBoolean(key, false);\n } catch (Exception e) {\n e.printStackTrace();\n }\n return false;\n }",
"public boolean getMandatoryBoolean(String key) throws ConfigNotFoundException;",
"public static boolean getBoolean(final String key) {\r\n if (PROP == null) {\r\n throw new RuntimeException(\"Config hasn't been initialized yet.\");\r\n }\r\n if (PROP.containsKey(key))\r\n if (PROP.getProperty(key).equals(\"true\")\r\n || PROP.getProperty(key).equals(\"1\"))\r\n return true;\r\n else\r\n return false;\r\n else\r\n throw new RuntimeException(\"No config key found for [\" + key + \"].\");\r\n }",
"public boolean getBoolean(final String key) {\n String s = removeByteOrderMark(get(key));\n if (s == null) return false;\n s = s.toLowerCase(Locale.ROOT);\n return s.equals(\"true\") || s.equals(\"on\") || s.equals(\"1\");\n }",
"@Override\n public boolean getBoolean(String key, boolean defaultVal) {\n return mSharedPreferences.getBoolean(key, defaultVal);\n }",
"public static boolean getBooleanParam(String key, boolean dfault) {\n Configuration cur = getCurrentConfig();\n if (cur == null) {\n return dfault;\n }\n return cur.getBoolean(key, dfault);\n }",
"public Boolean getBoolean(String key) throws AgentBuilderRuntimeException {\n\t\tif (!extContainsKey(key))\n\t\t\tthrow new AgentBuilderRuntimeException(\n\t\t\t\t\t\"Dictionary does not contain key \\\"\" + key + \"\\\"\");\n\t\treturn (Boolean) extGet(key);\n\t}",
"protected final Boolean getBoolean(final String key) {\n try {\n if (!jo.isNull(key)) {\n return jo.getBoolean(key);\n }\n } catch (JSONException e) {\n }\n return Boolean.FALSE;\n }",
"public static boolean getBoolean( String key, boolean defaultValue )\n\t{\n\t\tString value;\n\n\t\ttry {\n\t\t\tvalue = properties.getProperty( key );\n\t\t} catch ( Exception e ) {\n\t\t\treturn defaultValue;\n\t\t}\n\n\t\tboolean boolValue = defaultValue;\n\n\t\tif ( value != null ) {\n\t\t\t// Try to convert a a String to a boolean\n\t\t\tif ( value.equalsIgnoreCase( \"true \" ) || value.equalsIgnoreCase( \"yes\" )\n\t\t\t\t\t|| value.equalsIgnoreCase( \"1\" ) ) {\n\t\t\t\tboolValue = true;\n\t\t\t} else if ( value.equalsIgnoreCase( \"false\" )\n\t\t\t\t\t|| value.equalsIgnoreCase( \"no\" ) || value.equalsIgnoreCase( \"0\" ) ) {\n\t\t\t\tboolValue = false;\n\t\t\t}\n\t\t}\n\t\treturn boolValue;\n\t}",
"boolean getValue();",
"public static boolean getBoolean(String key, boolean bDefaultValue) {\r\n try {\r\n String s = getProperty(key);\r\n if (s != null) {\r\n return s.equalsIgnoreCase(\"true\") || s.equalsIgnoreCase(\"t\");\r\n } else {\r\n return bDefaultValue;\r\n }\r\n } catch (Exception e) {\r\n return bDefaultValue;\r\n }\r\n }",
"boolean getBoolValue();",
"boolean getBoolValue();",
"@Override\n public boolean getBoolean(String key) {\n return random.nextInt(BOOLEAN_RANDOM_BOUND) == 1;\n }",
"private boolean getBooleanProperty(ParameterList key, boolean defaultValue) \n throws NumberFormatException, NullPointerException, MissingOptionException{\n try {\n boolean keyPresent = fileParameters.containsKey(key.name);\n String strValue = keyPresent ? fileParameters.getProperty(key.name).replaceAll(\"\\\\s\", \"\") : null;\n if (!keyPresent && key.mandatory) {\n throw new MissingOptionException(\"The input parameter (\" + key.name + \") was not found\");\n }\n else if(!keyPresent || strValue.equals(\"\")){\n loadedParametersLog.append(key.name).append(\"=\").append(defaultValue).append(\" (DEFAULT)\\n\");\n return defaultValue;\n }\n loadedParametersLog.append(key.name).append(\"=\").append(strValue).append(\"\\n\");\n return Boolean.parseBoolean(strValue);\n } catch (NumberFormatException e) {\n throw new NumberFormatException(e.getMessage() + \"\\nThe input parameter (\" + key.name + \") could not be converted to boolean.\");\n } catch (NullPointerException e) {\n throw new NullPointerException(e.getMessage() + \"\\nThe parameter file was not initialized.\");\n }\n }",
"public static boolean getBooleanSetting(Context context, String key, boolean defaultValue) {\n SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(context);\n return sp.getBoolean(key, defaultValue);\n\n }",
"private String get(String key)\n {\n return settings.getProperty(key);\n }",
"@Nullable\r\n public Boolean getBoolean(String key, @Nullable Boolean def) {\r\n try {\r\n return getTyped(key, Boolean.class, def);\r\n } catch (ClassCastException x) {\r\n return get(key) instanceof String ? Boolean.valueOf((String) get(key)) : false;\r\n }\r\n }",
"String getSettingByKey(HawkularUser user, String key);",
"public boolean getBoolean( String key, boolean defaultValue )\n {\n boolean value = defaultValue;\n try\n {\n if ( config != null )\n {\n try\n {\n value = config.getBoolean( key, defaultValue );\n LOG.debug( \"getBoolean name [{}] value [{}]\", key, value );\n }\n catch (org.apache.commons.configuration.ConversionException e )\n {\n LOG.debug( \"getBoolean name [{}], conversion exception using default [{}]\", key, defaultValue );\n }\n }\n else\n {\n LOG.warn( \"getBoolean - invalid config, can't read prop [{}], using default [{}]\", key, defaultValue );\n }\n }\n catch (java.lang.IllegalStateException e )\n {\n LOG.debug( \"getBoolean - illegal state exception [{}], using default [{}]\", key, defaultValue );\n }\n catch (java.util.NoSuchElementException nse )\n {\n LOG.debug( \"getBoolean - no such element [{}], using default [{}]\", key, defaultValue );\n }\n return value;\n }",
"public Boolean getBoolean(String key) throws JsonException {\r\n\t\tObject object = get(key);\r\n\t\tBoolean result = PrimitiveDataTypeConvertor.toBoolean(object);\r\n\t\tif (result == null) {\r\n\t\t\tthrow PrimitiveDataTypeConvertor.exceptionType(key, object, \"boolean\");\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"public Object get(String key) {\r\n\t\treturn settings.get(key);\r\n\t}",
"boolean isEnabled(String key);",
"public boolean is (String key) { return options.is (key); }",
"public static boolean getBoolean(Context context, String key) {\n return getBoolean(context, key, false);\n }",
"public static boolean getBoolForKey(String key, boolean defaultValue) {\n SharedPreferences settings = ((Activity) sContext)\n .getSharedPreferences(CELibHelper.PREFS_NAME, 0);\n return settings.getBoolean(key, defaultValue);\n }",
"public static boolean getBooleanValue(final String prefFile, final String key) {\n return getBooleanValue(prefFile, key, false);\n }",
"public boolean getBoolean(String key, boolean defaultValue) {\n String lowerCaseKey = validateAndGetLowerCaseKey(key);\n\n if(map.containsKey(lowerCaseKey)) {\n String value = map.get(lowerCaseKey);\n\n if(value.equalsIgnoreCase(TRUE_AS_STRING)) {\n return true;\n } else if(value.equalsIgnoreCase(FALSE_AS_STRING)) {\n return false;\n }\n }\n return defaultValue;\n }",
"public static final boolean getBooleanParam(Map<String,String> params, String key, boolean def) {\n\t\ttry {\n\t\t\tString val = params.get(key);\n\t\t\tif(val==null || (!\"true\".equals(val) && !\"false\".equals(val))) return def;\n\t\t\treturn Boolean.parseBoolean(val);\n\t\t} catch (Exception e) {\n\t\t\treturn def;\n\t\t}\n\t}",
"public static boolean getBoolean(Tag tag){\n makeInstance();\n return settingsFile.getBoolean(tag);\n }",
"public boolean getValue();",
"public static boolean getBoolean(Context context, String key, boolean defValue) {\r\n\t\tif (sInstance !=null && sInstance.mSettings.containsKey(key)) {\r\n\t\t\treturn (Boolean) sInstance.mSettings.get(key);\r\n\t\t}\r\n\t\tboolean val = defValue;\r\n\t\ttry {\r\n\t\t\tval = getPreferences(context).getBoolean(key, defValue);\r\n\t\t} catch(ClassCastException e) {\r\n\t\t\tDebug.logException(e);\r\n\t\t}\r\n\t\t\r\n\t\tif (sInstance != null) {\r\n\t\t\tsInstance.mSettings.put(key, val);\r\n\t\t}\r\n\t\t\r\n\t\treturn val;\r\n\t}",
"String get(String key) {\n return settings.get(key);\n }",
"public boolean getBoolean(String key, boolean fallback)\n {\n if (key.contains(\".\"))\n {\n String[] pieces = key.split(\"\\\\.\", 2);\n DataSection section = getSection(pieces[0]);\n return section == null ? fallback : section.getBoolean(pieces[1], fallback);\n }\n\n if (!data.containsKey(key)) return fallback;\n String str = getString(key).toLowerCase();\n return str.equals(\"true\") || str.equals(\"yes\") || str.equals(\"t\") || str.equals(\"y\")\n || (fallback && !str.equals(\"false\") && !str.equals(\"no\") && !str.equals(\"f\") && !str.equals(\"n\"));\n }",
"public static boolean GetPreferByBoolean(Context context, String key) {\n\t\tSharedPreferences mPrefer = PreferenceManager.getDefaultSharedPreferences(context);\n\t\treturn mPrefer.getBoolean(key, false);\n\t}",
"public boolean bool(String key) throws AgentBuilderRuntimeException {\n\t\treturn getBoolean(key).booleanValue();\n\t}",
"String getSettingByKey(String key, String defaultValue);",
"public BooleanVariable getBooleanVariable(String name) {\n return booleanVariableMap.get(name);\n }",
"@Override\n\tpublic Boolean getAsBoolean(final String key)\n\t{\n\t\tif (!containsKey(key))\n\t\t{\n\t\t\treturn null;\n\t\t}\n\n\t\ttry\n\t\t{\n\t\t\treturn getBoolean(key);\n\t\t}\n\t\tcatch (StringValueConversionException ignored)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t}",
"boolean get();",
"public static Boolean getPreferencesBoolean(final Context context,\n\t\t\tfinal String key) {\n\t\tBoolean result;\n\t\ttry {\n\t\t\tfinal SharedPreferences sharedPreferences = PreferenceManager\n\t\t\t\t\t.getDefaultSharedPreferences(context);\n\n\t\t\tresult = sharedPreferences.getBoolean(key, false);\n\t\t} catch (Exception exception) {\n\t\t\tresult = false;\n\t\t}\n\t\treturn result;\n\t}",
"public Boolean getBoolean (JSONValue val , String key){\r\n\t\tif ( val==null||key==null || key.length()==0)\r\n\t\t\treturn null ; \r\n\t\tJSONObject obj=val.isObject() ; \r\n\t\tif ( obj==null ||JSONNull.getInstance().equals( obj))\r\n\t\t\treturn null ; \r\n\t\tif (!obj.containsKey(key))\r\n\t\t\treturn null; \r\n\t\tJSONValue actualVal = obj.get(key);\r\n\t\tif ( actualVal.isBoolean() !=null)\r\n\t\t\treturn actualVal.isBoolean().booleanValue(); \r\n\t\treturn null ; \r\n\t\t\r\n\t}",
"public Boolean Bool(String key) throws AgentBuilderRuntimeException {\n\t\tif (!extContainsKey(key))\n\t\t\tthrow new AgentBuilderRuntimeException(\n\t\t\t\t\t\"Dictionary does not contain key \\\"\" + key + \"\\\"\");\n\t\treturn (Boolean) extGet(key);\n\t}",
"String getSettingByKey(HawkularUser user, String key, String defaultValue);",
"public boolean booleanValue(Map<Prop, Object> map) {\n assert type == Boolean.class;\n Object o = map.get(this);\n return this.<Boolean>typeValue(o);\n }",
"public boolean getValue(String key, boolean defaultValue) {\n return mSharedPreferences.getBoolean(key, defaultValue);\n }",
"public static boolean getBoolean(String key, String consumer) {\n systemPropertyQueried(key, consumer);\n return Boolean.getBoolean(key);\n }",
"public boolean get(boolean a) {\n\t\treturn a;\r\n\t}",
"public static boolean getBoolean(\n Map<Object, Object> properties,\n Object key,\n boolean defaultValue\n )\n {\n Boolean value = (Boolean)properties.get(key);\n if (value == null)\n return defaultValue;\n\n return value.booleanValue();\n }",
"private boolean isTrue(final Variable key) {\n return data.containsKey(key) && Boolean.TRUE.equals(data.get(key));\n }",
"private boolean getBoolean(String paramString, boolean paramBoolean) {\n }",
"void setBoolean(String key, boolean val);",
"public boolean getBoolean(String name) {\n\t\tObject val = values.get(name);\n\t\tif (val == null) {\n\t\t\tthrow new IllegalArgumentException(\"Boolean value required, but not specified\");\n\t\t}\n\t\tif (val instanceof Boolean) {\n\t\t\treturn (Boolean) val;\n\t\t}\n\t\ttry {\n\t\t\treturn Boolean.parseBoolean((String) val);\n\t\t} catch (Exception e) {\n\t\t\tthrow new IllegalArgumentException(\"Boolean value required, but found: \" + val);\n\t\t}\n\t}",
"public static boolean getBoolean(String pName) {\n boolean out = false;\n try {\n out = Boolean.parseBoolean(properties.getProperty(pName));\n } catch (Exception e) {\n out = Boolean.parseBoolean(defaults.getProperty(pName));\n Log.debug(\"Cannot parse property: \" + pName);\n Log.debug(e);\n }\n return out;\n }",
"public Boolean getBoolean(final int index) {\n Object returnable = this.get(index);\n if (returnable instanceof String) {\n returnable = Boolean.valueOf((String) returnable);\n }\n return (Boolean) returnable;\n }",
"public static boolean getBoolProperty(String key, boolean defaultValue) {\r\n\t\treturn CommonUtil.parseAsBoolean(prop.getProperty(key), defaultValue);\r\n\t}",
"public String getSetting(String key) throws SQLException {\n\t\treturn db.selectItem(\"value\", \"settings\", \"`key`='\"+key+\"'\");\n\t}",
"public static boolean getBool(String aKey, boolean aDefaultValue) {\n return getSharedPreferences().getBoolean(aKey, aDefaultValue);\n }",
"io.dstore.values.BooleanValue getPredefinedValues();",
"private final boolean isTrue(final Variable key) {\n return data.containsKey(key) && Boolean.TRUE.equals(data.get(key));\n }",
"public Iterable<Boolean> getBooleans(String key);",
"boolean getValidSettings();",
"public static boolean getBoolean(Context context, String key, boolean defaultValue) {\n return getPrefs(context).getBoolean(key, defaultValue);\n }",
"public boolean getBoolean(){\r\n try{return kd.getJSONObject(ug).getBoolean(udn);}\r\n catch(JSONException e){return false;}\r\n }",
"public Object get(String key) {\n return options.get(key);\n }",
"public Boolean getValue() {\n/* 60 */ return Boolean.valueOf(this.val);\n/* */ }",
"Optional<SettingDTO> getSetting(String settingKey);",
"public boolean b(String key) throws AgentBuilderRuntimeException {\n\t\treturn getBoolean(key).booleanValue();\n\t}",
"boolean getBoolean();",
"boolean getBoolean();",
"boolean hasSetting(Setting<?> setting);",
"public static boolean getConfigValueAsBoolean(Map config, String key, boolean defaultValue) {\n Object value = getConfigValue(config, key, defaultValue);\n return DefaultTypeTransformation.castToBoolean(value);\n }",
"public boolean getProperty(String key,\n String trueValue,\n String falseValue,\n boolean defaultValue) {\n if (this.ignoreCase) {\n key = key.toUpperCase();\n }\n\n String val = this.attributes.getProperty(key);\n\n if (val == null) {\n return defaultValue;\n }\n else if (val.equals(trueValue)) {\n return true;\n }\n else if (val.equals(falseValue)) {\n return false;\n }\n else {\n throw this.invalidValue(key, val, this.lineNr);\n }\n }",
"public boolean getBoolean(String name){\r\n try{return kd.getJSONObject(ug).getBoolean(name);}\r\n catch(JSONException e){return false;}\r\n }"
] | [
"0.7726262",
"0.7478417",
"0.74655735",
"0.74402285",
"0.7419806",
"0.7409219",
"0.7390893",
"0.7323546",
"0.73155034",
"0.7298629",
"0.7281527",
"0.72804123",
"0.7277167",
"0.72429067",
"0.719095",
"0.71494836",
"0.7121569",
"0.70931333",
"0.70878756",
"0.7073796",
"0.7060554",
"0.700541",
"0.7005009",
"0.70016897",
"0.699409",
"0.6946598",
"0.6905025",
"0.68927515",
"0.6872039",
"0.68075144",
"0.6794349",
"0.6765993",
"0.67561346",
"0.6735298",
"0.6669511",
"0.666871",
"0.6666988",
"0.6630493",
"0.6630493",
"0.6562249",
"0.6547132",
"0.65354353",
"0.65221184",
"0.6500634",
"0.6487694",
"0.6479157",
"0.6472243",
"0.6436367",
"0.64264643",
"0.6421502",
"0.63979983",
"0.6390209",
"0.6386291",
"0.6369344",
"0.63370436",
"0.633225",
"0.63170826",
"0.6295788",
"0.62882185",
"0.62850916",
"0.62849444",
"0.6274607",
"0.6258142",
"0.62399024",
"0.6229662",
"0.6220731",
"0.6219076",
"0.6177157",
"0.6173518",
"0.61692727",
"0.61539304",
"0.60984075",
"0.60627013",
"0.60605544",
"0.60441375",
"0.60372037",
"0.6026119",
"0.60228795",
"0.60180575",
"0.60088694",
"0.60046786",
"0.59931064",
"0.59906304",
"0.5971321",
"0.5970304",
"0.5960986",
"0.5941592",
"0.5933011",
"0.5926493",
"0.5919795",
"0.5903983",
"0.5902611",
"0.5899196",
"0.58802056",
"0.5871547",
"0.5871547",
"0.58498895",
"0.58471924",
"0.5824841",
"0.5810356"
] | 0.6531599 | 42 |
put a boolean value into settings | public void putBoolean(String key, boolean value, boolean commit) {
putBoolean(Global.getContext(), key, value, commit);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void set(boolean value);",
"void setBoolean(String key, boolean val);",
"void setBoolean(boolean value);",
"public void putBooleanValue(String key, boolean value){\n SharedPreferences sharedPreference = context.getSharedPreferences(LOGIN,Context.MODE_PRIVATE);\n SharedPreferences.Editor editor=sharedPreference.edit();\n editor.putBoolean(key,value);\n editor.apply();\n }",
"boolean setSettings(Settings sm);",
"public static void save(String s, boolean flag){\n SharedPreferences prefs = cont.getSharedPreferences(\"PAFF_SETTINGS\", Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = prefs.edit();\n editor.putBoolean(s,flag);\n editor.commit();\n }",
"public static void setSetting(Context context, String key, boolean value) {\n SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(context);\n SharedPreferences.Editor editor = sp.edit();\n editor.putBoolean(key, value);\n editor.commit();\n\n }",
"@Override\n public void saveBoolean(String key, boolean value) {\n SharedPreferences.Editor prefs = mSharedPreferences.edit();\n prefs.putBoolean(key, value);\n prefs.commit();\n }",
"public void setValue(boolean value) {\n this.value = value;\n }",
"public static void setBool(String aKey, boolean aValue) {\n getSharedPreferences().edit().putBoolean(aKey, aValue).apply();\n }",
"public void setBooleanValue(String booleanValue) { this.booleanValue = booleanValue; }",
"public void putBoolean(String key, boolean value){\n\n SharedPreferences.Editor editor = mSharedPreferences.edit();\n\n editor.putBoolean(key, value);\n\n editor.apply();\n }",
"public void set(boolean bol);",
"public void setTallied(java.lang.Boolean value);",
"public void setValue(boolean value) {\n this.value = value;\n }",
"void set(boolean on);",
"public static void setPrefBooleanData(Context context, String key, boolean value) {\n SharedPreferences appInstallInfoSharedPref = context.\n getSharedPreferences(APP_CONFIG_PREF, Context.MODE_PRIVATE);\n SharedPreferences.Editor appInstallInfoEditor = appInstallInfoSharedPref.edit();\n appInstallInfoEditor.putBoolean(key, value);\n appInstallInfoEditor.apply();\n }",
"public void setProcessed (boolean Processed)\n{\nset_Value (\"Processed\", new Boolean(Processed));\n}",
"void setValidSettings(boolean valid);",
"public void setisTripSaving(boolean value) {\n\t\tsharedPreferences = context.getSharedPreferences(\"TRIP\",\n\t\t\t\tcontext.MODE_PRIVATE);\n\t\tSharedPreferences.Editor editor = sharedPreferences.edit();\n\t\teditor.putBoolean(\"isTripSaving\", value);\n\t\teditor.commit();\n\t}",
"public void setBoolean(Boolean value) {\r\n\t\ttype(ConfigurationItemType.BOOLEAN);\r\n\t\tthis.booleanValue = value;\r\n\t}",
"void setManualCheck (boolean value);",
"synchronized public static void putBoolean(Context context, String key, boolean value, boolean commit) {\r\n\t\tensurePreferencesEditor(context);\r\n\t\tsPreferencesEditor.putBoolean(key, value);\r\n\t\tif (commit) {\r\n\t\t\tsPreferencesEditor.commit();\r\n\t\t}\r\n\t\tif (sInstance != null) {\r\n\t\t\tsInstance.mSettings.put(key, value);\r\n\t\t}\r\n\t}",
"public void setEnabled(Boolean value) { this.myEnabled = value.booleanValue(); }",
"void writeBool(boolean value);",
"public void setBool(String name, Boolean value) {\n parameters.get(name).setValue(value);\n }",
"public void setBool(String parName, boolean parVal) throws HibException;",
"void setString(boolean string);",
"private void saveBoolean(String paramString, boolean paramBoolean) {\n }",
"public final /* synthetic */ void lambda$withdrawal$3$SettingViewModel(Boolean bool) {\n if (bool.booleanValue()) {\n this.navigator.withdrawal();\n }\n }",
"public void set_boolean(boolean param) {\n this.local_boolean = param;\n }",
"public static void putBoolean(Context context, String key, boolean value) {\n getPreferenceEditor(getSharePreferences(context)).putBoolean(key, value).apply();\n }",
"public void setisBackgroundTrip(boolean value) {\n\t\tsharedPreferences = context.getSharedPreferences(\"TripCheckBox\",\n\t\t\t\tcontext.MODE_WORLD_WRITEABLE);\n\t\tSharedPreferences.Editor editor = sharedPreferences.edit();\n\t\teditor.putBoolean(\"isbackgroundtrip\", value);\n\t\teditor.commit();\n\t}",
"private void setPreferences(String sw, boolean checked) {\n SharedPreferences sp = getActivity().getSharedPreferences(SETTINGS, Context.MODE_PRIVATE );\n SharedPreferences.Editor editor = sp.edit();\n editor.putBoolean(sw,checked);\n editor.apply();\n\n }",
"public void setRequiresTaxCertificate (boolean RequiresTaxCertificate)\n{\nset_Value (COLUMNNAME_RequiresTaxCertificate, Boolean.valueOf(RequiresTaxCertificate));\n}",
"public abstract void setInput(boolean value);",
"public synchronized boolean storeBoolean(String key, boolean value) {\n mEditor = mSharedPreferences.edit();\n mEditor.putBoolean(key, value);\n\n return mEditor.commit();\n }",
"public void setTripStrated(boolean value) {\n\t\tLog.i(TAG, \"*************************************\");\n\t\tLog.i(TAG, \"Setting trip status to \" + value);\n\t\tLog.i(TAG, \"*************************************\");\n\n\t\tsharedPreferences = context.getSharedPreferences(\"TRIP\",\n\t\t\t\tcontext.MODE_PRIVATE);\n\t\tSharedPreferences.Editor editor = sharedPreferences.edit();\n\t\teditor.putBoolean(\"isTripStarted\", value);\n\t\teditor.commit();\n\t}",
"private BooleanValueProvider() {\n this.state = true;\n }",
"public static void setBooleanValue(\n final String prefFile, final String key, final boolean value) {\n final SharedPreferences sharedPref = getSharedPreferences(prefFile);\n final SharedPreferences.Editor editor = sharedPref.edit();\n editor.putBoolean(key, value);\n editor.apply();\n }",
"boolean getBoolValue();",
"boolean getBoolValue();",
"public Builder setBoolValue(boolean value) {\n typeCase_ = 2;\n type_ = value;\n onChanged();\n return this;\n }",
"public void putBooleanData(String key, Boolean value) {\n editor.putBoolean(key, value);\n editor.apply();\n }",
"public void set_isTripDone(boolean value) {\n\t\tsharedPreferences = context.getSharedPreferences(\"Login\",\n\t\t\t\tcontext.MODE_PRIVATE);\n\t\tSharedPreferences.Editor editor = sharedPreferences.edit();\n\t\teditor.putBoolean(\"isTripDone\", value);\n\t\teditor.commit();\n\t}",
"public BooleanValue(boolean bool) {\r\n this.val = bool;\r\n }",
"@Override\n\tpublic void setValue(String path, boolean value) {\n\t\tsetValue(path, new Boolean(value));\n\t}",
"public static boolean writePreferences(final Context context,\n\t\t\tfinal String key, final Boolean value) {\n\t\tboolean result = false;\n\t\tfinal SharedPreferences sharedPreferences = PreferenceManager\n\t\t\t\t.getDefaultSharedPreferences(context);\n\t\tfinal Editor editor = sharedPreferences.edit();\n\t\tif (editor != null) {\n\t\t\teditor.putBoolean(key, value);\n\t\t\teditor.commit();\n\t\t\tresult = true;\n\t\t}\n\t\treturn result;\n\t}",
"public void setMyBool(boolean myBoolIn) {\n myBool = myBoolIn;\n }",
"void setBit(int index, boolean value);",
"public static boolean writePreferences(final Context context,\n\t\t\tfinal String key, final boolean value) {\n\t\tboolean result = false;\n\t\tfinal SharedPreferences sharedPreferences = PreferenceManager\n\t\t\t\t.getDefaultSharedPreferences(context);\n\t\tfinal Editor editor = sharedPreferences.edit();\n\t\tif (editor != null) {\n\t\t\teditor.putBoolean(key, value);\n\t\t\teditor.commit();\n\t\t\tresult = true;\n\t\t}\n\t\treturn result;\n\t}",
"public BooleanValue(boolean value) {\r\n\t\tthis.value = value;\r\n\t}",
"public BooleanValue(boolean value) {\r\n\t\tthis.value = value;\r\n\t}",
"public void setParking(java.lang.Boolean value);",
"public void setSAVETRIP(boolean value) {\n\t\tsharedPreferences = context.getSharedPreferences(\"TRIP\",\n\t\t\t\tcontext.MODE_PRIVATE);\n\t\tSharedPreferences.Editor editor = sharedPreferences.edit();\n\t\teditor.putBoolean(\"SAVETRIP\", value);\n\t\teditor.commit();\n\t}",
"public void setForua(boolean newValue);",
"void setSet(boolean set);",
"public abstract void setBooleanImpl(String str, boolean z, Resolver<Void> resolver);",
"public void setTurning(java.lang.Boolean value);",
"public void setBoolean(String key, boolean value) {\n\t\tif (getDefault(key) != null && (Boolean) getDefault(key) != value) {\n\t\t\tinternal.setProperty(key, value ? \"true\" : \"false\");\n\t\t} else {\n\t\t\tinternal.remove(key);\n\t\t}\n\t}",
"public static void setPreference(String key, boolean value) {\n editor = sharedPreferences.edit();\n\n editor.putBoolean(key, value);\n editor.apply();\n }",
"public static void SetPreferByBoolean(Context context, String key,\n\t\t\tboolean value) {\n\t\tSharedPreferences mPrefer = PreferenceManager\n\t\t\t\t.getDefaultSharedPreferences(context);\n\t\tEditor editor = mPrefer.edit();\n\t\teditor.putBoolean(key, value);\n\t\teditor.commit();\n\t}",
"public void setOutputFileValue(String name, boolean value) {\n\tString svalue;\n\tgetLogger().finest(\"Setting: \"+name+\" = \"+value);\n\tif (value) {\n\t svalue = \"true\";\n\t} else {\n\t svalue = \"false\";\n\t}\n\t_outputFiles.put(name, svalue);\n }",
"protected synchronized void setBooleanValue(String tag, boolean flag) {\n if (actualProperties != null) {\n if (flag) {\n actualProperties.put(tag, QVCSConstants.QVCS_YES);\n } else {\n actualProperties.put(tag, QVCSConstants.QVCS_NO);\n }\n }\n }",
"void setProtection(boolean value);",
"public void putBoolean(String key, boolean value) {\n String valueAsString = value ? TRUE_AS_STRING : FALSE_AS_STRING;\n\n put(key, valueAsString);\n }",
"public void setDirezione(boolean direzione) {\n\r\n }",
"public PropertyBoolean(String uid, String value) {\n super(uid, value);\n setFixedValues(new HashSet<Boolean>(Arrays.asList(Boolean.TRUE, Boolean.FALSE)));\n }",
"default boolean trySetBoolean(boolean value) {\n if (this.isValidBoolean(value)) {\n this.setBoolean(value);\n return true;\n } else {\n return false;\n }\n }",
"public static void writeBoolean(Context context, String fileName, String key, boolean value) {\n if (context == null)\n return;\n SharedPreferences sharedPreferences = context.getSharedPreferences(fileName, Context.MODE_PRIVATE);\n Editor editor = sharedPreferences.edit();\n editor.putBoolean(key, value);\n editor.apply();\n }",
"public void setS ( boolean s ) {\n\n\tthis.s = s;\n }",
"public void setAktif(java.lang.Boolean value) {\n this.aktif = value;\n }",
"public void testSetBoolean() {\n ValueString vs = new ValueString();\n\n vs.setBoolean(false);\n assertEquals(\"N\", vs.getString());\n vs.setBoolean(true);\n assertEquals(\"Y\", vs.getString());\n }",
"public static void set(String key, boolean val) {\n Editor e = prefs.edit();\n e.putBoolean(key, val);\n e.commit();\n }",
"public static void savePreferences(Context context, String strKey, Boolean blnValue) {\n try {\n SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(context);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putBoolean(strKey, blnValue);\n editor.commit();\n } catch (Exception e) {\n e.toString();\n }\n }",
"protected void doSetValue(Object _value) {\n\t\tthis.value = (Boolean) _value;\n\t}",
"@Override\n public void setBoolean(boolean value) throws SQLException {\n if (possibleCharLength > 4) {\n setString(value ? LONG_TRUE : LONG_FALSE);\n } else if (possibleCharLength >= 1) {\n setString(value ? SHORT_TRUE : SHORT_FALSE);\n }\n }",
"public void setIsModifier(java.lang.Boolean value);",
"public void setProperty(String propertyName, boolean value);",
"void setBoolean(int index, boolean value) throws SQLException;",
"public void put(String key, boolean value)\n\t{\n\t\tverifyParseState();\n\t\tvalues.put(key, ValueUtil.createValue(value));\n\t}",
"public AppPreferences set(@NonNull String name, boolean value) {\n SharedPreferences prefs = context.getSharedPreferences(filename, Context.MODE_PRIVATE);\n SharedPreferences.Editor prefsEditor = prefs.edit();\n prefsEditor.putBoolean(name, value);\n prefsEditor.apply(); // or commit();\n return this;\n }",
"public void setOn(boolean arg) {\n isOn = arg;\n }",
"public void setEnabled(boolean aFlag) { _enabled = aFlag; }",
"public static void savePreference(SharedPreferences prefs, String key, Boolean value) {\n Editor e = prefs.edit();\n e.putBoolean(key, value);\n e.commit();\n }",
"public void setAugment(boolean aValue);",
"void setBooleanProperty(Object name, boolean b) throws JMSException;",
"public void setT(boolean t) {\n\tthis.t = t;\n }",
"public void set(boolean a, boolean b) {\n\t\ta = b;\r\n\t}",
"public void setActivo(boolean activo)\r\n/* 115: */ {\r\n/* 116:142 */ this.activo = activo;\r\n/* 117: */ }",
"public void setBoton() {\n SharedPreferences preferences = getSharedPreferences(STRING_PREFERENCES,MODE_PRIVATE);\n preferences.edit().putBoolean(PREFERENCE_ESTADO_BUTTON_SESION,checkBox.isChecked()).apply();\n\n }",
"public void writeBooleanPrefs(String prefName, boolean prefValue) {\n editor = sPrefs.edit();\n editor.putBoolean(prefName, prefValue);\n editor.apply();\n }",
"public static void setBoolean(String prop, boolean value)\n {\n props.setProperty(prop, \"\" + value);\n }",
"public abstract void setCheck(Boolean check);",
"public void putBoolean(ResourceLocation name, boolean value) {\n data.putBoolean(name.toString(), value);\n }",
"public boolean setPropertyMute(boolean aValue);",
"public void setProtection(boolean value);",
"protected GUIBooleanParameter(BooleanParameter parameter, SettingsPane sp) {\n\t\tsuper(parameter, sp);\n\t}",
"public void setAPISetting(String setting){\n if(!setting.equals(\"true\")){\n setting = \"false\";\n }\n apiSetting = setting;\n }",
"public BooleanStateValue( boolean value, boolean isImmortal) {\n\t\tsuper( isImmortal);\n\t\t_storage = value;\n\t}",
"public void setExternallyManaged(java.lang.Boolean value);"
] | [
"0.76276183",
"0.7514985",
"0.7420825",
"0.73202443",
"0.72617584",
"0.70735437",
"0.7055195",
"0.7022239",
"0.70091176",
"0.69901884",
"0.6946989",
"0.6941165",
"0.6940071",
"0.6930883",
"0.69130373",
"0.68951964",
"0.68236935",
"0.680396",
"0.6803367",
"0.67977786",
"0.67688286",
"0.67258704",
"0.6713921",
"0.67091924",
"0.67000407",
"0.6698531",
"0.66934055",
"0.66882944",
"0.6657141",
"0.6598026",
"0.6588694",
"0.65834063",
"0.6571239",
"0.65555245",
"0.6549466",
"0.6524713",
"0.65103155",
"0.6490245",
"0.6483236",
"0.648246",
"0.6471276",
"0.6471276",
"0.6457136",
"0.6456444",
"0.6454561",
"0.6451318",
"0.6446272",
"0.6437906",
"0.6431531",
"0.6423267",
"0.64197826",
"0.641887",
"0.641887",
"0.64151806",
"0.64143205",
"0.64088833",
"0.6408495",
"0.6407593",
"0.6404139",
"0.64017916",
"0.6399819",
"0.6394501",
"0.6393091",
"0.63869524",
"0.63856703",
"0.6384717",
"0.6380428",
"0.63681734",
"0.6358012",
"0.6356552",
"0.63489103",
"0.63483554",
"0.6341578",
"0.63376117",
"0.63142127",
"0.6311441",
"0.6307267",
"0.6305965",
"0.63003135",
"0.62980664",
"0.62909716",
"0.62907046",
"0.6276085",
"0.6275036",
"0.62674123",
"0.62654406",
"0.6255484",
"0.624936",
"0.62473184",
"0.623319",
"0.6229685",
"0.6229147",
"0.6229",
"0.6209854",
"0.62052345",
"0.61900866",
"0.6174718",
"0.6164404",
"0.61617583",
"0.61600477",
"0.61556727"
] | 0.0 | -1 |
put a boolean value into settings | synchronized public static void putBoolean(Context context, String key, boolean value, boolean commit) {
ensurePreferencesEditor(context);
sPreferencesEditor.putBoolean(key, value);
if (commit) {
sPreferencesEditor.commit();
}
if (sInstance != null) {
sInstance.mSettings.put(key, value);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void set(boolean value);",
"void setBoolean(String key, boolean val);",
"void setBoolean(boolean value);",
"public void putBooleanValue(String key, boolean value){\n SharedPreferences sharedPreference = context.getSharedPreferences(LOGIN,Context.MODE_PRIVATE);\n SharedPreferences.Editor editor=sharedPreference.edit();\n editor.putBoolean(key,value);\n editor.apply();\n }",
"boolean setSettings(Settings sm);",
"public static void save(String s, boolean flag){\n SharedPreferences prefs = cont.getSharedPreferences(\"PAFF_SETTINGS\", Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = prefs.edit();\n editor.putBoolean(s,flag);\n editor.commit();\n }",
"public static void setSetting(Context context, String key, boolean value) {\n SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(context);\n SharedPreferences.Editor editor = sp.edit();\n editor.putBoolean(key, value);\n editor.commit();\n\n }",
"@Override\n public void saveBoolean(String key, boolean value) {\n SharedPreferences.Editor prefs = mSharedPreferences.edit();\n prefs.putBoolean(key, value);\n prefs.commit();\n }",
"public void setValue(boolean value) {\n this.value = value;\n }",
"public static void setBool(String aKey, boolean aValue) {\n getSharedPreferences().edit().putBoolean(aKey, aValue).apply();\n }",
"public void setBooleanValue(String booleanValue) { this.booleanValue = booleanValue; }",
"public void putBoolean(String key, boolean value){\n\n SharedPreferences.Editor editor = mSharedPreferences.edit();\n\n editor.putBoolean(key, value);\n\n editor.apply();\n }",
"public void set(boolean bol);",
"public void setTallied(java.lang.Boolean value);",
"public void setValue(boolean value) {\n this.value = value;\n }",
"void set(boolean on);",
"public static void setPrefBooleanData(Context context, String key, boolean value) {\n SharedPreferences appInstallInfoSharedPref = context.\n getSharedPreferences(APP_CONFIG_PREF, Context.MODE_PRIVATE);\n SharedPreferences.Editor appInstallInfoEditor = appInstallInfoSharedPref.edit();\n appInstallInfoEditor.putBoolean(key, value);\n appInstallInfoEditor.apply();\n }",
"public void setProcessed (boolean Processed)\n{\nset_Value (\"Processed\", new Boolean(Processed));\n}",
"void setValidSettings(boolean valid);",
"public void setisTripSaving(boolean value) {\n\t\tsharedPreferences = context.getSharedPreferences(\"TRIP\",\n\t\t\t\tcontext.MODE_PRIVATE);\n\t\tSharedPreferences.Editor editor = sharedPreferences.edit();\n\t\teditor.putBoolean(\"isTripSaving\", value);\n\t\teditor.commit();\n\t}",
"public void setBoolean(Boolean value) {\r\n\t\ttype(ConfigurationItemType.BOOLEAN);\r\n\t\tthis.booleanValue = value;\r\n\t}",
"void setManualCheck (boolean value);",
"public void setEnabled(Boolean value) { this.myEnabled = value.booleanValue(); }",
"void writeBool(boolean value);",
"public void setBool(String name, Boolean value) {\n parameters.get(name).setValue(value);\n }",
"public void setBool(String parName, boolean parVal) throws HibException;",
"void setString(boolean string);",
"private void saveBoolean(String paramString, boolean paramBoolean) {\n }",
"public final /* synthetic */ void lambda$withdrawal$3$SettingViewModel(Boolean bool) {\n if (bool.booleanValue()) {\n this.navigator.withdrawal();\n }\n }",
"public void set_boolean(boolean param) {\n this.local_boolean = param;\n }",
"public static void putBoolean(Context context, String key, boolean value) {\n getPreferenceEditor(getSharePreferences(context)).putBoolean(key, value).apply();\n }",
"public void setisBackgroundTrip(boolean value) {\n\t\tsharedPreferences = context.getSharedPreferences(\"TripCheckBox\",\n\t\t\t\tcontext.MODE_WORLD_WRITEABLE);\n\t\tSharedPreferences.Editor editor = sharedPreferences.edit();\n\t\teditor.putBoolean(\"isbackgroundtrip\", value);\n\t\teditor.commit();\n\t}",
"private void setPreferences(String sw, boolean checked) {\n SharedPreferences sp = getActivity().getSharedPreferences(SETTINGS, Context.MODE_PRIVATE );\n SharedPreferences.Editor editor = sp.edit();\n editor.putBoolean(sw,checked);\n editor.apply();\n\n }",
"public void setRequiresTaxCertificate (boolean RequiresTaxCertificate)\n{\nset_Value (COLUMNNAME_RequiresTaxCertificate, Boolean.valueOf(RequiresTaxCertificate));\n}",
"public abstract void setInput(boolean value);",
"public synchronized boolean storeBoolean(String key, boolean value) {\n mEditor = mSharedPreferences.edit();\n mEditor.putBoolean(key, value);\n\n return mEditor.commit();\n }",
"public void setTripStrated(boolean value) {\n\t\tLog.i(TAG, \"*************************************\");\n\t\tLog.i(TAG, \"Setting trip status to \" + value);\n\t\tLog.i(TAG, \"*************************************\");\n\n\t\tsharedPreferences = context.getSharedPreferences(\"TRIP\",\n\t\t\t\tcontext.MODE_PRIVATE);\n\t\tSharedPreferences.Editor editor = sharedPreferences.edit();\n\t\teditor.putBoolean(\"isTripStarted\", value);\n\t\teditor.commit();\n\t}",
"private BooleanValueProvider() {\n this.state = true;\n }",
"public static void setBooleanValue(\n final String prefFile, final String key, final boolean value) {\n final SharedPreferences sharedPref = getSharedPreferences(prefFile);\n final SharedPreferences.Editor editor = sharedPref.edit();\n editor.putBoolean(key, value);\n editor.apply();\n }",
"boolean getBoolValue();",
"boolean getBoolValue();",
"public Builder setBoolValue(boolean value) {\n typeCase_ = 2;\n type_ = value;\n onChanged();\n return this;\n }",
"public void putBooleanData(String key, Boolean value) {\n editor.putBoolean(key, value);\n editor.apply();\n }",
"public void set_isTripDone(boolean value) {\n\t\tsharedPreferences = context.getSharedPreferences(\"Login\",\n\t\t\t\tcontext.MODE_PRIVATE);\n\t\tSharedPreferences.Editor editor = sharedPreferences.edit();\n\t\teditor.putBoolean(\"isTripDone\", value);\n\t\teditor.commit();\n\t}",
"public BooleanValue(boolean bool) {\r\n this.val = bool;\r\n }",
"@Override\n\tpublic void setValue(String path, boolean value) {\n\t\tsetValue(path, new Boolean(value));\n\t}",
"public static boolean writePreferences(final Context context,\n\t\t\tfinal String key, final Boolean value) {\n\t\tboolean result = false;\n\t\tfinal SharedPreferences sharedPreferences = PreferenceManager\n\t\t\t\t.getDefaultSharedPreferences(context);\n\t\tfinal Editor editor = sharedPreferences.edit();\n\t\tif (editor != null) {\n\t\t\teditor.putBoolean(key, value);\n\t\t\teditor.commit();\n\t\t\tresult = true;\n\t\t}\n\t\treturn result;\n\t}",
"public void setMyBool(boolean myBoolIn) {\n myBool = myBoolIn;\n }",
"void setBit(int index, boolean value);",
"public static boolean writePreferences(final Context context,\n\t\t\tfinal String key, final boolean value) {\n\t\tboolean result = false;\n\t\tfinal SharedPreferences sharedPreferences = PreferenceManager\n\t\t\t\t.getDefaultSharedPreferences(context);\n\t\tfinal Editor editor = sharedPreferences.edit();\n\t\tif (editor != null) {\n\t\t\teditor.putBoolean(key, value);\n\t\t\teditor.commit();\n\t\t\tresult = true;\n\t\t}\n\t\treturn result;\n\t}",
"public BooleanValue(boolean value) {\r\n\t\tthis.value = value;\r\n\t}",
"public BooleanValue(boolean value) {\r\n\t\tthis.value = value;\r\n\t}",
"public void setParking(java.lang.Boolean value);",
"public void setSAVETRIP(boolean value) {\n\t\tsharedPreferences = context.getSharedPreferences(\"TRIP\",\n\t\t\t\tcontext.MODE_PRIVATE);\n\t\tSharedPreferences.Editor editor = sharedPreferences.edit();\n\t\teditor.putBoolean(\"SAVETRIP\", value);\n\t\teditor.commit();\n\t}",
"public void setForua(boolean newValue);",
"void setSet(boolean set);",
"public abstract void setBooleanImpl(String str, boolean z, Resolver<Void> resolver);",
"public void setTurning(java.lang.Boolean value);",
"public void setBoolean(String key, boolean value) {\n\t\tif (getDefault(key) != null && (Boolean) getDefault(key) != value) {\n\t\t\tinternal.setProperty(key, value ? \"true\" : \"false\");\n\t\t} else {\n\t\t\tinternal.remove(key);\n\t\t}\n\t}",
"public static void setPreference(String key, boolean value) {\n editor = sharedPreferences.edit();\n\n editor.putBoolean(key, value);\n editor.apply();\n }",
"public static void SetPreferByBoolean(Context context, String key,\n\t\t\tboolean value) {\n\t\tSharedPreferences mPrefer = PreferenceManager\n\t\t\t\t.getDefaultSharedPreferences(context);\n\t\tEditor editor = mPrefer.edit();\n\t\teditor.putBoolean(key, value);\n\t\teditor.commit();\n\t}",
"public void setOutputFileValue(String name, boolean value) {\n\tString svalue;\n\tgetLogger().finest(\"Setting: \"+name+\" = \"+value);\n\tif (value) {\n\t svalue = \"true\";\n\t} else {\n\t svalue = \"false\";\n\t}\n\t_outputFiles.put(name, svalue);\n }",
"protected synchronized void setBooleanValue(String tag, boolean flag) {\n if (actualProperties != null) {\n if (flag) {\n actualProperties.put(tag, QVCSConstants.QVCS_YES);\n } else {\n actualProperties.put(tag, QVCSConstants.QVCS_NO);\n }\n }\n }",
"void setProtection(boolean value);",
"public void putBoolean(String key, boolean value) {\n String valueAsString = value ? TRUE_AS_STRING : FALSE_AS_STRING;\n\n put(key, valueAsString);\n }",
"public void setDirezione(boolean direzione) {\n\r\n }",
"public PropertyBoolean(String uid, String value) {\n super(uid, value);\n setFixedValues(new HashSet<Boolean>(Arrays.asList(Boolean.TRUE, Boolean.FALSE)));\n }",
"default boolean trySetBoolean(boolean value) {\n if (this.isValidBoolean(value)) {\n this.setBoolean(value);\n return true;\n } else {\n return false;\n }\n }",
"public static void writeBoolean(Context context, String fileName, String key, boolean value) {\n if (context == null)\n return;\n SharedPreferences sharedPreferences = context.getSharedPreferences(fileName, Context.MODE_PRIVATE);\n Editor editor = sharedPreferences.edit();\n editor.putBoolean(key, value);\n editor.apply();\n }",
"public void setS ( boolean s ) {\n\n\tthis.s = s;\n }",
"public void setAktif(java.lang.Boolean value) {\n this.aktif = value;\n }",
"public void testSetBoolean() {\n ValueString vs = new ValueString();\n\n vs.setBoolean(false);\n assertEquals(\"N\", vs.getString());\n vs.setBoolean(true);\n assertEquals(\"Y\", vs.getString());\n }",
"public static void set(String key, boolean val) {\n Editor e = prefs.edit();\n e.putBoolean(key, val);\n e.commit();\n }",
"public static void savePreferences(Context context, String strKey, Boolean blnValue) {\n try {\n SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(context);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putBoolean(strKey, blnValue);\n editor.commit();\n } catch (Exception e) {\n e.toString();\n }\n }",
"protected void doSetValue(Object _value) {\n\t\tthis.value = (Boolean) _value;\n\t}",
"@Override\n public void setBoolean(boolean value) throws SQLException {\n if (possibleCharLength > 4) {\n setString(value ? LONG_TRUE : LONG_FALSE);\n } else if (possibleCharLength >= 1) {\n setString(value ? SHORT_TRUE : SHORT_FALSE);\n }\n }",
"public void setIsModifier(java.lang.Boolean value);",
"public void setProperty(String propertyName, boolean value);",
"void setBoolean(int index, boolean value) throws SQLException;",
"public void put(String key, boolean value)\n\t{\n\t\tverifyParseState();\n\t\tvalues.put(key, ValueUtil.createValue(value));\n\t}",
"public AppPreferences set(@NonNull String name, boolean value) {\n SharedPreferences prefs = context.getSharedPreferences(filename, Context.MODE_PRIVATE);\n SharedPreferences.Editor prefsEditor = prefs.edit();\n prefsEditor.putBoolean(name, value);\n prefsEditor.apply(); // or commit();\n return this;\n }",
"public void setOn(boolean arg) {\n isOn = arg;\n }",
"public void setEnabled(boolean aFlag) { _enabled = aFlag; }",
"public static void savePreference(SharedPreferences prefs, String key, Boolean value) {\n Editor e = prefs.edit();\n e.putBoolean(key, value);\n e.commit();\n }",
"public void setAugment(boolean aValue);",
"void setBooleanProperty(Object name, boolean b) throws JMSException;",
"public void setT(boolean t) {\n\tthis.t = t;\n }",
"public void set(boolean a, boolean b) {\n\t\ta = b;\r\n\t}",
"public void setActivo(boolean activo)\r\n/* 115: */ {\r\n/* 116:142 */ this.activo = activo;\r\n/* 117: */ }",
"public void setBoton() {\n SharedPreferences preferences = getSharedPreferences(STRING_PREFERENCES,MODE_PRIVATE);\n preferences.edit().putBoolean(PREFERENCE_ESTADO_BUTTON_SESION,checkBox.isChecked()).apply();\n\n }",
"public void writeBooleanPrefs(String prefName, boolean prefValue) {\n editor = sPrefs.edit();\n editor.putBoolean(prefName, prefValue);\n editor.apply();\n }",
"public static void setBoolean(String prop, boolean value)\n {\n props.setProperty(prop, \"\" + value);\n }",
"public abstract void setCheck(Boolean check);",
"public void putBoolean(ResourceLocation name, boolean value) {\n data.putBoolean(name.toString(), value);\n }",
"public boolean setPropertyMute(boolean aValue);",
"public void setProtection(boolean value);",
"protected GUIBooleanParameter(BooleanParameter parameter, SettingsPane sp) {\n\t\tsuper(parameter, sp);\n\t}",
"public void setAPISetting(String setting){\n if(!setting.equals(\"true\")){\n setting = \"false\";\n }\n apiSetting = setting;\n }",
"public BooleanStateValue( boolean value, boolean isImmortal) {\n\t\tsuper( isImmortal);\n\t\t_storage = value;\n\t}",
"public void setExternallyManaged(java.lang.Boolean value);"
] | [
"0.76276183",
"0.7514985",
"0.7420825",
"0.73202443",
"0.72617584",
"0.70735437",
"0.7055195",
"0.7022239",
"0.70091176",
"0.69901884",
"0.6946989",
"0.6941165",
"0.6940071",
"0.6930883",
"0.69130373",
"0.68951964",
"0.68236935",
"0.680396",
"0.6803367",
"0.67977786",
"0.67688286",
"0.67258704",
"0.67091924",
"0.67000407",
"0.6698531",
"0.66934055",
"0.66882944",
"0.6657141",
"0.6598026",
"0.6588694",
"0.65834063",
"0.6571239",
"0.65555245",
"0.6549466",
"0.6524713",
"0.65103155",
"0.6490245",
"0.6483236",
"0.648246",
"0.6471276",
"0.6471276",
"0.6457136",
"0.6456444",
"0.6454561",
"0.6451318",
"0.6446272",
"0.6437906",
"0.6431531",
"0.6423267",
"0.64197826",
"0.641887",
"0.641887",
"0.64151806",
"0.64143205",
"0.64088833",
"0.6408495",
"0.6407593",
"0.6404139",
"0.64017916",
"0.6399819",
"0.6394501",
"0.6393091",
"0.63869524",
"0.63856703",
"0.6384717",
"0.6380428",
"0.63681734",
"0.6358012",
"0.6356552",
"0.63489103",
"0.63483554",
"0.6341578",
"0.63376117",
"0.63142127",
"0.6311441",
"0.6307267",
"0.6305965",
"0.63003135",
"0.62980664",
"0.62909716",
"0.62907046",
"0.6276085",
"0.6275036",
"0.62674123",
"0.62654406",
"0.6255484",
"0.624936",
"0.62473184",
"0.623319",
"0.6229685",
"0.6229147",
"0.6229",
"0.6209854",
"0.62052345",
"0.61900866",
"0.6174718",
"0.6164404",
"0.61617583",
"0.61600477",
"0.61556727"
] | 0.6713921 | 22 |
get a Serializable settings value by key | public static Serializable getSerializable(Context context, String key) {
if (sInstance !=null && sInstance.mSettings.containsKey(key)) {
return (Serializable) sInstance.mSettings.get(key);
}
Serializable val = null;
try {
final String encodedValue = getPreferences(context).getString(key, null);
if (encodedValue == null) {
return null;
}
val = (Serializable) Common.deserializeObject(Base64.decode(encodedValue.getBytes(), Base64.DEFAULT));
} catch(ClassCastException e) {
Debug.logException(e);
}
if (sInstance != null) {
sInstance.mSettings.put(key, val);
}
return val;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getSettingByKey(String key);",
"public Object get(String key) {\r\n\t\treturn settings.get(key);\r\n\t}",
"private String get(String key)\n {\n return settings.getProperty(key);\n }",
"String get(String key) {\n return settings.get(key);\n }",
"<S> S getSetting(Setting<S> setting);",
"String getSettingByKey(HawkularUser user, String key);",
"Optional<SettingDTO> getSetting(String settingKey);",
"public Value get(Key key);",
"public <T> T getSetting(Setting setting) {\n return getValue(setting.toString());\n }",
"public Value get(Key key) ;",
"public Object get(String key) {\n return options.get(key);\n }",
"String getSettingByKey(String key, String defaultValue);",
"Object get(String key);",
"Object get(String key);",
"public Object get(String key);",
"StoragePrimitive get(String key);",
"String getValue(String type, String key);",
"public static Object get(String key) {\n return prefs.contains(key) ? prefs.getAll().get(key):null;\n }",
"V get(Object key);",
"public String getSetting(String key) throws SQLException {\n\t\treturn db.selectItem(\"value\", \"settings\", \"`key`='\"+key+\"'\");\n\t}",
"Object get(Object key);",
"public V get(String key);",
"public <K> Object getSpecific(K key, String valueKey);",
"Object getProperty(String key);",
"String getProperty(String key);",
"String getProperty(String key);",
"String getProperty(String key);",
"ISObject get(String key);",
"public String get(String key) {\n\t\tInstant start = Instant.now();\n\t\tString value = getConfig(key);\n\t\tLOGGER.debug(\"Access to config {} to get {} took {}\", uniqueInstance.instanceUUID, key, Duration.between(start, Instant.now()));\t\t\n\t\treturn value;\n\t}",
"public static String get(String key) throws UnknownID, IOFailure, ArgumentNotValid {\n\t\tArgumentNotValid.checkNotNullOrEmpty(key, \"String key\");\n\t\tString val = System.getProperty(key);\n\t\tif (val != null) {\n\t\t\treturn val;\n\t\t}\n\n\t\t// Key not in System.properties try loaded data instead\n\t\tsynchronized (fileSettingsXmlList) {\n\t\t\tfor (SimpleXml settingsXml : fileSettingsXmlList) {\n\t\t\t\tif (settingsXml.hasKey(key)) {\n\t\t\t\t\treturn settingsXml.getString(key);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n/*\n\t\t// Key not in file based settings, try classpath settings instead\n\t\tsynchronized (defaultClasspathSettingsXmlList) {\n\t\t\tfor (SimpleXml settingsXml : defaultClasspathSettingsXmlList) {\n\t\t\t\tif (settingsXml.hasKey(key)) {\n\t\t\t\t\treturn settingsXml.getString(key);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n */\n\t\tthrow new UnknownID(\"No match for key '\" + key + \"' in settings\");\n\t}",
"String getSettingByKey(HawkularUser user, String key, String defaultValue);",
"@Override\n\tpublic Object get(Object key) throws Exception {\n\t\treturn propertyConfigMapper.selectByPrimaryKey(key);\n\t}",
"@Override\r\n\tpublic String getProperty(String key) {\r\n\t\t\r\n\t\treturn Settings.getProperty(key);\r\n\t\t\r\n\t}",
"public String getPref(String key) {\n\t SharedPreferences settings = activity.getSharedPreferences(PREFS_NAME, 0);\n\t settings = activity.getSharedPreferences(PREFS_NAME, 0);\n\t String value = settings.getString(key, \"\");\n\t return value;\n\t}",
"public Value get(Value key) {\n\t\treturn storage.get(key);\n\t}",
"public String get(String key) {\n return this.properties.getProperty(key);\n }",
"public String getSettings(String settingsKey) {\n\t\tString settingsValue = \"\";\n\t\ttry {\n\t\t\tCursor settings = localDB.query(true, TABLE_SETTINGS, null,\n\t\t\t\t\tKEY_SETTINGS_ID + \" = ?\", new String[] { settingsKey },\n\t\t\t\t\tnull, null, null, null);\n\t\t\tif ((settings.getCount() == 0) || !settings.moveToFirst()) {\n\t\t\t\treturn \"\";\n\t\t\t}\n\t\t\tsettingsValue = settings.getString(SETTINGS_VALUE_COLUMN);\n\t\t} catch (SQLiteException ex) {\n\t\t\tLog.d(TAG, ex.getMessage());\n\t\t}\n\t\tLog.v(TAG, \"setting: \" + settingsValue);\n\t\treturn settingsValue;\n\t}",
"public Object getTransient(Object key);",
"<S> S getSetting(Setting<S> setting, S defaultValue);",
"public static String getValue(String key) {\r\n\t\tload();\r\n\t\treturn properties.getProperty(key);\r\n\t}",
"public String get(String key) {\n return cache.containsKey(key) ? cache.get(key) : customConfig.getString(key);\n }",
"public Object lookupConfigurationEntry(String key);",
"T get(String key);",
"@CheckForNull\n\t@SuppressFBWarnings(value = \"RV_RETURN_VALUE_IGNORED_BAD_PRACTICE\")\n\tpublic V get(@Nonnull String key) {\n\t\tFile jsonFile = new File(mCacheLocation, key);\n\t\tif (!jsonFile.exists()) {\n\t\t\treturn null;\n\t\t}\n\t\ttry {\n\t\t\treturn mObjectMapper.readValue(jsonFile, mModelClass);\n\t\t} catch (IOException e) {\n\t\t\tLogUtils.logException(TAG, \"Exception when reading \" + key, e);\n\t\t\tjsonFile.delete(); // try to delete damaged file\n\t\t\treturn null;\n\t\t}\n\t}",
"String get(Integer key);",
"V get(K key);",
"V get(K key);",
"V get(K key);",
"V get(K key);",
"V get(K key);",
"V get(K key);",
"V get(K key);",
"public Object getQuiet(String key);",
"public V get(K key);",
"public static String getPropertyValue(String key){\n return properties.getProperty(key);\n }",
"UserSettings getById(UUID id);",
"public String get(String key) {\n return this.properties.getProperty(key);\n }",
"public Object getObject(String key);",
"private String getValueFromProperty(String key) {\n\t\treturn properties.getProperty(key);\n\n\t}",
"public String getValue(final String key) {\n\n\t\treturn config.getString(StringUtils.lowerCase(key));\n\t\t\t}",
"Object getPreference(String prefKey, Object defaultValue);",
"T get(String key) throws IOException;",
"public String getConfigurationValue(Enum<?> key) {\n // get string key\n String keyStr = key.toString();\n\n // get value\n String value = this.getConfigurationValue(keyStr);\n\n return value;\n }",
"public String getPreference(String key) {\n return preferences.get(key).value;\n }",
"public T get(K key);",
"public static String getSetting(Context context, String key) {\n SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(context);\n return sp.getString(key, null);\n\n }",
"@Override\n\tpublic String queryByKey(String key) {\n\t\treturn settingDao.queryByKey(key);\n\t}",
"public Object get(String key) {\n \t\treturn this.get(null, key);\n \t}",
"public abstract T get(String key);",
"public static String getProperty(String settingsPath, String key) {\n\t\tString v = \"\";\n\t\tProperties p = new Properties();\n\t\ttry {\n\t\t\tp.load(new FileInputStream(settingsPath));\n\t\t\tv = p.getProperty(key);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn v;\n\t}",
"public String getString(String key);",
"T get(@NonNull String key);",
"<T> T getValue(DataKey<T> key);",
"V get(K id);",
"String getValue(Key key) {\n return this.parameters.get(key);\n }",
"public abstract V get(K key);",
"String getString(String key);",
"public Object getSerializable(@NonNull final String key) {\n return getSerializable(key, null);\n }",
"public static Object getConfigValue(Map config, String key) {\n return getConfigValue(config, key, null);\n }",
"@Override\n public <T extends Object> T getValue(String key, T defaultValue) {\n Map<String, T> map = (Map<String, T>) preferences.getAll();\n T value = map.get(key);\n return value != null ? value : defaultValue;\n }",
"Configuration getConfigByKey(String configKey);",
"public String getProperty(Class type, String key);",
"public static String valueOf(String key) {\n try {\n if (!getInstance().containsKey(key)) {\n return \"\";\n } else {\n return getInstance().getProperty(key);\n }\n } catch (FileNotFoundException e) {\n System.err.println(\"Couldn't find \" + PROPERTIES_FILE);\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return \"\";\n }",
"public V get(Object key) { return _map.get(key); }",
"public String getPreference(DataPreferenceEnum key)\n {\n return (preferencesHashMap.get(key));\n }",
"public String getValue(String key) {\n\t\t\treturn properties.get(key);\n\t\t}",
"public V getValue(K key);",
"public V getValue(K key);",
"List<PropertyKeySetting> getPropertyKeySettings();",
"String getParameter(String key);",
"public String get(String key) {\n return getData().get(key);\n }",
"public Object getOption(String key) {\n\t\tint index = propertyKeys.indexOf(key);\n\t\tif (index == -1)\n throw new IllegalArgumentException(\"Unknown option \" + key);\n\t\treturn currentOption.get(index);\n\t}",
"public static String readConfigValue(Context context, String key) {\n Resources resources = context.getResources();\n try {\n InputStream inputStream = resources.openRawResource(R.raw.config);\n Properties properties = new Properties();\n properties.load(inputStream);\n return properties.getProperty(key);\n } catch (Exception e) {\n e.printStackTrace();\n }\n return \"\";\n }",
"public Object get(String key){ \r\n\t\treturn this.context.getValue(key);\r\n\t}",
"public <K, V> V getSpecific(K key, MappingValueKey<V> valueKey);",
"Object getValueFromLocalCache(Object key);",
"public static String getConfigValue(String key){\n\t\tResourceBundle rb = ResourceBundle.getBundle(\"config\");\n\t\tString value = rb.getString(key);\n\t\treturn value;\n\t}",
"protected abstract V get(K key);",
"public <T> T get(String key, T defValue) {\n Object returnValue = null;\n if (defValue instanceof String) {\n returnValue = sharedPrefs.getString(key, (String) defValue);\n\n } else if (defValue instanceof Boolean) {\n returnValue = sharedPrefs.getBoolean(key, (Boolean) defValue);\n } else if (defValue instanceof Integer) {\n returnValue = sharedPrefs.getInt(key, (Integer) defValue);\n } else if (defValue instanceof Long) {\n returnValue = sharedPrefs.getLong(key, (Long) defValue);\n }\n return (T) defValue.getClass().cast(returnValue);\n }",
"V get(final K key);"
] | [
"0.78096414",
"0.7597678",
"0.7162768",
"0.70263934",
"0.6612951",
"0.6478195",
"0.6443781",
"0.64051384",
"0.6392217",
"0.6376742",
"0.63514763",
"0.63509035",
"0.6341888",
"0.6341888",
"0.62997615",
"0.62739253",
"0.6236717",
"0.6217469",
"0.61815506",
"0.61678594",
"0.6167455",
"0.6160012",
"0.61112887",
"0.609138",
"0.6085293",
"0.6085293",
"0.6085293",
"0.602568",
"0.6016805",
"0.60104406",
"0.5981506",
"0.5979647",
"0.5969179",
"0.5966268",
"0.5965684",
"0.596482",
"0.5959347",
"0.59034526",
"0.58943707",
"0.58927405",
"0.58866996",
"0.5880802",
"0.58597463",
"0.58553094",
"0.5855178",
"0.583994",
"0.583994",
"0.583994",
"0.583994",
"0.583994",
"0.583994",
"0.583994",
"0.58361655",
"0.57991797",
"0.57831246",
"0.5772759",
"0.5764451",
"0.57602626",
"0.57250607",
"0.57226133",
"0.57221603",
"0.57154715",
"0.569663",
"0.56941664",
"0.5694165",
"0.5676663",
"0.56764567",
"0.5659831",
"0.5649923",
"0.5648316",
"0.5645562",
"0.5642068",
"0.5641206",
"0.5628151",
"0.5620363",
"0.56082636",
"0.5606436",
"0.56036854",
"0.56035066",
"0.5601437",
"0.5599182",
"0.55919045",
"0.5589536",
"0.55883217",
"0.55753785",
"0.5571096",
"0.5570897",
"0.5570897",
"0.55704725",
"0.5570255",
"0.5569899",
"0.55498827",
"0.5547749",
"0.55472666",
"0.5546638",
"0.55446064",
"0.55398345",
"0.55293757",
"0.5527949",
"0.5527105"
] | 0.6613622 | 4 |
put a Serializable value into settings | synchronized public static void putSerializable(Context context, String key, Serializable value, boolean commit) {
ensurePreferencesEditor(context);
String encodedValue = new String(Base64.encode(Common.serializeObject(value), Base64.DEFAULT));
sPreferencesEditor.putString(key, encodedValue);
if (commit) {
sPreferencesEditor.commit();
}
if (sInstance != null) {
sInstance.mSettings.put(key, value);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"UserSettings store(String key, String value);",
"@Override\n public void saveValue(String key, Object value) {\n SharedPreferences.Editor editor = preferences.edit();\n if (value instanceof String) {\n editor.putString(key, (String) value);\n } else if (value instanceof Boolean) {\n editor.putBoolean(key, (Boolean) value);\n } else if (value instanceof Integer) {\n editor.putInt(key, (Integer) value);\n } else if (value instanceof Float) {\n editor.putFloat(key, (Float) value);\n } else if (value instanceof Long) {\n editor.putLong(key, (Long) value);\n }\n editor.apply();\n }",
"public <T> SerializationStream writeValue(T value){\n return writeObject(value);\n }",
"public static Serializable getSerializable(Context context, String key) {\r\n\t\tif (sInstance !=null && sInstance.mSettings.containsKey(key)) {\r\n\t\t\treturn (Serializable) sInstance.mSettings.get(key);\r\n\t\t}\r\n\t\tSerializable val = null;\r\n\t\ttry {\r\n\t\t\tfinal String encodedValue = getPreferences(context).getString(key, null);\r\n\t\t\tif (encodedValue == null) {\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t\tval = (Serializable) Common.deserializeObject(Base64.decode(encodedValue.getBytes(), Base64.DEFAULT));\r\n\t\t} catch(ClassCastException e) {\r\n\t\t\tDebug.logException(e);\r\n\t\t}\r\n\t\t\r\n\t\tif (sInstance != null) {\r\n\t\t\tsInstance.mSettings.put(key, val);\r\n\t\t}\r\n\t\t\r\n\t\treturn val;\r\n\t}",
"void setValue(Object value);",
"public void setValue(Object value);",
"boolean setValue(String type, String key, String value);",
"@Override\n public void setValue(Binary value) throws ValueFormatException,\n VersionException, LockException, ConstraintViolationException,\n RepositoryException {\n \n }",
"@Override\n public void setValue(InputStream value) throws ValueFormatException,\n VersionException, LockException, ConstraintViolationException,\n RepositoryException {\n \n }",
"UserSettings store(HawkularUser user, String key, String value);",
"void saveUserSetting(UserSetting userSetting);",
"public void setValue(S s) { value = s; }",
"public void setValue(Object value) {\n setValue(value.toString());\n }",
"@Override\n void onValueWrite(SerializerElem e, Object o) {\n\n }",
"public void put(String key, Object value) {\r\n\t\tthis.settings.put(key, value);\r\n\t}",
"@Override\r\n public <T> void saveConfig(ConfigStorageClient<T> client, T value) {\r\n String name = client.getName();\r\n JsonElement json = client.toJson(gson, value);\r\n synchronized (serializedConfig) {\r\n serializedConfig.put(name, json);\r\n scheduleCommitLocked();\r\n }\r\n }",
"public void setValue(Object val);",
"@Override\n\tpublic void setValue(Object value) {\n\t\t\n\t}",
"void set(String key, Object value);",
"void setValue(Object object, Object value);",
"@Override\n protected void loadValue(String sValue) {\n value = sValue;\n }",
"@Test\n public void testSetValue_SettingSETTING_TYPE_Object() {\n System.out.println(\"setValue\");\n final Path testPath = Paths.get(sysProps.getProperty(\"user.dir\"), \"test\", \"net\", \"dbcrd\",\n \"DBCUtilLib\", \"testfiles\", \"settingsTestFolder\");\n\n Setting s1 = Setting.factory();\n assertEquals(Setting.SETTING_TYPE.UND, s1.getStype());\n assertEquals(\"undefined\", s1.getValue());\n\n s1.setValue(Setting.SETTING_TYPE.TSTRING, \"a String\");\n assertEquals(Setting.SETTING_TYPE.TSTRING, s1.getStype());\n assertEquals(\"a String\", s1.getValue());\n\n File f = testPath.toFile();\n s1.setValue(Setting.SETTING_TYPE.TSTRING, f);\n Object o = s1.getValue();\n assertTrue(o instanceof String);\n assertEquals(f.toString(), o);\n\n s1.setValue(Setting.SETTING_TYPE.TFILE, f);\n o = s1.getValue();\n assertTrue(o instanceof Path);\n assertEquals(f, ((Path) o).toFile());\n\n s1.setValue(Setting.SETTING_TYPE.TPATH, f);\n o = s1.getValue();\n assertTrue(o instanceof Path);\n assertEquals(f.toPath(), o);\n\n }",
"public void setPreference(View v){\n SharedPreferences.Editor editor = settings.edit();\n String prefValue = cHelpers.getText(this, R.id.editText);\n editor.putString(\"key1\",prefValue);\n editor.commit();\n cHelpers.show_toast(this, \"Preference Saved\");\n }",
"private static final void putValue(final ContentValues v, Object value) {\n if (value instanceof String) {\n v.put(\"value\", (String) value);\n } else {\n v.put(\"value\", (Integer) value);\n }\n }",
"public void setValue(Object value) { this.value = value; }",
"@Override\n\tpublic void setValue(Object object) {\n\n\t}",
"@Override\n\tpublic void setValue(Object object) {\n\t\t\n\t}",
"void setValue(T value);",
"void setValue(T value);",
"public void setValue(Object o){\n \tthis.value = o;\n }",
"Config set(String path, Object value);",
"<S> void putSetting(Setting<S> setting, S value, String... comments);",
"public void setValueInternal(UUID player, T value) {\n\t\tvalues.put(player, value);\n\t}",
"@Override\n public void set(T value) throws Exception {\n _curator.setData().forPath(_zkPath, toZkBytes(value));\n }",
"void setObjectValue(Object dataObject);",
"public Object putTransient(Object key, Object value);",
"public abstract void setValue(T value);",
"void putValue(String key, Object data);",
"void setProperty(String key, Object value);",
"public void set(String value){\n this.value = new BigInteger(value).toByteArray();\n }",
"@Override\n\tpublic void saveSettings() {\n\n\t}",
"private void setValuesInSharedPrefernce() {\r\n\r\n\t\tmSharedPreferences_reg.edit().putString(\"ProfileImageString\", profileImageString).commit();\r\n\t\tmSharedPreferences_reg.edit().putString(\"PseudoName\", psedoName).commit();\r\n\t\tmSharedPreferences_reg.edit().putString(\"Pseudodescription\", profiledescription).commit();\r\n\t}",
"public abstract void set(String key, T data);",
"@Override\n public void putValue(String key, Object value) {\n\n }",
"public <T> void setSetting(Setting setting, T value){\n setHeaderSetting(setting.toString(), value);\n }",
"public void setValue(String value);",
"public void setValue(String value);",
"public void setValue(String value);",
"public void setValue(String value);",
"@Override\n void postValueWrite(SerializerElem e, String key) {\n\n }",
"private static void writeStringValue(String path, String value){\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putString(path, value);\n editor.apply();\n }",
"void setValue(String value);",
"void setValue(String value);",
"public V setValue(V value);",
"public void storePreferences(String userid, String token, JSONArray settings) throws JSONException {\n SharedPreferences sharedPreferences = getApplicationContext().getSharedPreferences(\"ca.gc.inspection.scoop\", Context.MODE_PRIVATE);\n\n JSONObject setting = settings.getJSONObject(0);\n Iterator<String> keys = setting.keys();\n while(keys.hasNext()){\n String settingKey = keys.next();\n if (settingKey.equals(useridStr)){ continue;}\n sharedPreferences.edit().putString(settingKey, setting.getString(settingKey)).apply();\n }\n\n // storing the token into shared preferences\n sharedPreferences.edit().putString(\"token\", token).apply();\n Config.token = token;\n\n // storing the user id into shared preferences\n sharedPreferences.edit().putString(useridStr, userid).apply();\n Config.currentUser = userid;\n\n // change activities once register is successful\n if(Config.token != null && Config.currentUser != null) registerSuccess();\n }",
"public void saveSettings(Settings settings)\n {\n \tMainActivity.settings = settings;\n \t\n \t// Write the application settings\n \tSharedPreferences sharedPref = this.getPreferences(Context.MODE_PRIVATE);\n \tSharedPreferences.Editor editor = sharedPref.edit();\n \teditor.putInt(MainActivity.SETTINGS_HALF_TIME, settings.getHalfTimeDuration() );\n \teditor.putString(MainActivity.SETTINGS_TEAM_NAME, settings.getTeamName() );\n \teditor.commit();\n }",
"private final synchronized void writePreferencesImpl() {\n if ( LOGD ) { Log.d( TAG, \"writePreferencesImpl \" + mPrefFile + \" \" + mPrefKey ); }\n\n mForcePreferenceWrite = false;\n\n SharedPreferences pref =\n Utilities.getContext().getSharedPreferences( mPrefFile, Context.MODE_PRIVATE );\n SharedPreferences.Editor edit = pref.edit();\n edit.putString( mPrefKey, getSerializedString() );\n Utilities.commitNoCrash(edit);\n }",
"public void setProperty(String key, Object value);",
"public T set(T obj);",
"public void set(String key, Object value, int ttl) {\n Jedis jedis = null;\n try {\n jedis = jedisPool.getResource();\n // jedis.set(key.getBytes(), HessianSerializer.serialize(value));\n jedis.set(key.getBytes(), toJsonByteArray(value));\n if (ttl > 0) {\n jedis.expire(key.getBytes(), ttl);\n }\n } finally {\n if (jedis != null) {\n jedis.close();\n }\n }\n }",
"public void storeInObject() {\r\n lockValueStored = IN_OBJECT;\r\n }",
"protected void setValue(T value) {\r\n this.value = value;\r\n }",
"public void setProperty( String key, Object value );",
"String setValue();",
"@Override public void saveSettings(Map pProps, Map pSettings) {\n pProps.put(\"$class\", \"com.castorama.searchadmin.adapter.content.impl.CastoramaDocumentAdapter\");\n pProps.put(CDS_PATH, pSettings.get(getSourceTypeInternalName() + PATH));\n pProps.put(PORT, pSettings.get(getSourceTypeInternalName() + PORT));\n pProps.put(HOST_MACHINE, pSettings.get(getSourceTypeInternalName() + HOST_MACHINE));\n }",
"public void setSettings(final String settings);",
"void saveFrom(String key, InputStream stream);",
"@Override\n\t\t\tpublic void setPropertyValue(Object value) {\n\t\t\t\t\n\t\t\t}",
"protected abstract void setEntryValue(T nativeEntry, String propertyName, Object value);",
"boolean setSettings(Settings sm);",
"public void writeToSharedPreference(int value){\n SharedPreferences sharedPreferences = getActivity().getPreferences(Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putInt(\"NUMBER OF ITEMS\",value);\n editor.commit();\n\n }",
"public void set(String name, Object value) {\n }",
"@Test\n public void testSetStype() {\n System.out.println(\"setStype\");\n Setting.SETTING_TYPE stype;\n Setting instance = Setting.getSetting(\"test\");\n stype = instance.getStype();\n assertEquals(Setting.SETTING_TYPE.UND, stype);\n\n instance.setStype(Setting.SETTING_TYPE.TSTRING);\n instance.setValue(\"I am a String\");\n String result = instance.toString();\n String expected = \"test:TSTRING-I am a String\";\n assertEquals(expected, result);\n\n }",
"private void storeValue(Object value)\n {\n if (getParent() instanceof ValueSupport)\n {\n ((ValueSupport) getParent()).setValue(value);\n }\n\n if (getVar() != null)\n {\n getContext().setVariable(getVar(), value);\n }\n }",
"public void setValue (String Value);",
"@Override\n protected boolean persistString(String value) {\n return persistInt(Integer.parseInt(value));\n }",
"public void setSerializer(Object serializer);",
"static synchronized void writeSettings(FileExtMismatchSettings settings) throws FileExtMismatchSettingsException {\n try (NbObjectOutputStream out = new NbObjectOutputStream(new FileOutputStream(DEFAULT_SERIALIZED_FILE_PATH))) {\n out.writeObject(settings);\n } catch (IOException ex) {\n throw new FileExtMismatchSettingsException(String.format(\"Failed to write settings to %s\", DEFAULT_SERIALIZED_FILE_PATH), ex);\n }\n }",
"void setTemp(String name, Object value);",
"@JavascriptInterface\n public void saveValues(String key, String value) {\n }",
"@Override\n public T setValue(T newValue) {\n return entry.getValue().setValue(newValue);\n }",
"public void setValue(final Object value) { _value = value; }",
"public void putRoleValue(String key, String value){\n SharedPreferences sharedPreference = context.getSharedPreferences(LOGIN, Context.MODE_PRIVATE);\n SharedPreferences.Editor editor=sharedPreference.edit();\n editor.putString(key,value);\n editor.apply();\n }",
"@Override\n public void saveInt(String key, int value) {\n SharedPreferences.Editor prefs = mSharedPreferences.edit();\n prefs.putInt(key, value);\n prefs.commit();\n }",
"public void writeValue(PropertyIdentifier poid, Encodable value) {\n // 8 is default priority for manual operations\n LOG.info(\"Write on: \" + poid.toString() + \" @ \" + getObjectName() +\" with: \" + value.toString());\n try {\n RequestUtils.writeProperty(DeviceService.localDevice,bacnetDevice,getObjectIdentifier(),poid,value,8);\n } catch (BACnetException bac) {\n LOG.warn(\"Cant write: \" + poid.toString() + \" at \" + getObjectIdentifier().toString());\n }\n\n }",
"public static void saveToSharedPreference(String key, String value) {\n\n appSharePreference.edit().putString(key.toString(), value.toString()).apply();\n }",
"public Dict(Obj value) {\n this.value = value;\n }",
"public void recordUsedSettingAndValue(String settingName, Object value, String description);",
"public void setValue(Object value) {\n this.value = value;\n }",
"public void set(String path, Object value) {\n yml.set(path, value);\n save();\n }",
"@Override\r\n\tpublic Object setProperty(String key, String value) {\r\n\t\t\r\n\t\treturn Settings.setProperty(key, value);\r\n\t\t\r\n\t}",
"public void setValue(T value) {\n this.value = value;\n }",
"public native void set(T value);",
"@Override\n public void setValue(Node value) throws ValueFormatException,\n VersionException, LockException, ConstraintViolationException,\n RepositoryException {\n \n }",
"public S<T> setPref(String value, String key) {\n\t SharedPreferences settings = activity.getSharedPreferences(PREFS_NAME, 0);\n\t settings = activity.getSharedPreferences(PREFS_NAME, 0);\n\t SharedPreferences.Editor editor = settings.edit();\n\t editor.putString(key, value);\n\t editor.commit();\n\t return this;\n\t}",
"public void saveSettings(View view){\n SharedPreferences.Editor editor = settings.edit();\n\n // Write the values from the views to the editor\n editor.putInt(\"vocablesNumber\",Integer.parseInt(vocablesNumber.getSelectedItem().toString()));\n editor.putBoolean(\"screenOn\", screenOnSwitch.isChecked());\n editor.putFloat(\"delayBetweenVocables\",Float.valueOf(editTextDelay.getText().toString()));\n // Commit the edits\n editor.commit();\n\n // Send the user a message of success\n Toast.makeText(Settings.this,\"Settings saved!\",Toast.LENGTH_SHORT).show();\n // Go back to previous activity\n finish();\n }",
"private void setFile(Serializable object, String path) throws Exception {\t\t\n\t\t\n FileOutputStream fileOut = new FileOutputStream(path);\n ObjectOutputStream objectOut = new ObjectOutputStream(fileOut);\n objectOut.writeObject(object);\n objectOut.close(); \n\t\t\n\t}",
"public static void setEncodingSettings(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, java.lang.String value) {\r\n\t\tBase.set(model, instanceResource, ENCODINGSETTINGS, value);\r\n\t}",
"Object setValue(Object value) throws NullPointerException;",
"public static void setEncodingSettings( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(model, instanceResource, ENCODINGSETTINGS, value);\r\n\t}"
] | [
"0.64848024",
"0.6126289",
"0.6085945",
"0.6008204",
"0.5963324",
"0.5865407",
"0.57990545",
"0.57759726",
"0.5771631",
"0.57592803",
"0.5750972",
"0.57107186",
"0.56863683",
"0.56710494",
"0.56619406",
"0.5654406",
"0.56529725",
"0.5648891",
"0.56330967",
"0.56113327",
"0.5600044",
"0.5597079",
"0.5562326",
"0.5556937",
"0.55369496",
"0.5528073",
"0.55057997",
"0.5502134",
"0.5502134",
"0.54622626",
"0.54478645",
"0.54324365",
"0.5428714",
"0.5407583",
"0.5400604",
"0.5398385",
"0.5391709",
"0.5384554",
"0.53774333",
"0.537232",
"0.53692895",
"0.53576726",
"0.5350265",
"0.53397095",
"0.5339347",
"0.53368753",
"0.53368753",
"0.53368753",
"0.53368753",
"0.5322385",
"0.53134036",
"0.5310041",
"0.5310041",
"0.5289202",
"0.5283445",
"0.5281697",
"0.528056",
"0.5276662",
"0.52590793",
"0.52583325",
"0.5246304",
"0.52445054",
"0.5236701",
"0.5232232",
"0.5230221",
"0.522519",
"0.5224445",
"0.5224073",
"0.52224284",
"0.5217684",
"0.5212811",
"0.520547",
"0.5196015",
"0.5189403",
"0.5179089",
"0.5176326",
"0.51676905",
"0.5165103",
"0.516393",
"0.51620686",
"0.51573753",
"0.51538277",
"0.51470304",
"0.5134909",
"0.5134849",
"0.51290995",
"0.512014",
"0.51181406",
"0.51180655",
"0.5117441",
"0.5117226",
"0.511305",
"0.510807",
"0.51042557",
"0.510253",
"0.5094012",
"0.5092112",
"0.5090624",
"0.5079826",
"0.50732225"
] | 0.70312995 | 0 |
commit preference changes into shared preferences | public static void commitChanges(Context context) {
ensurePreferencesEditor(context);
sPreferencesEditor.commit();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void saveSharedPref() {\n SharedPreferences.Editor editor = this.sharedPreferences.edit();\n if (checkBox.isChecked()) {\n editor.putBoolean(Constants.SP_IS_REMEMBERED_KEY, true);\n }\n editor.apply();\n }",
"public void save() {\n\t\tpreferences().flush();\n\t}",
"public void saveDataToSharedPreference(View view) {\n email = emailEditText.getText().toString();\n name = nameEditText.getText().toString();\n\n SharedPreferences.Editor editor = sharedPreferences.edit();\n\n editor.putString(\"name\",name);\n editor.putString(\"email\",email);\n editor.apply();\n\n Toast.makeText(context, \"Data saved successfully into SharedPreferences!\", Toast.LENGTH_SHORT).show();\n clearText();\n }",
"public void save() {\n savePrefs();\n }",
"public void savePreferences(SharedPreferences preferences){\r\n\t\tSharedPreferences.Editor editor = preferences.edit();\r\n editor.putBoolean(\"initialSetupped\", initialSetuped);\r\n editor.putString(\"username\", userName);\r\n editor.putString(\"useremail\", userEmail);\r\n editor.putString(\"recipientemail\", recipientEmail);\r\n editor.putBoolean(\"option\", option.isPound());\r\n\r\n // Commit the edits!\r\n editor.commit();\r\n\t}",
"private void savePreferences(String key, String value) {\n SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(c);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putString(key, value);\n editor.apply();\n }",
"public void savingPreferences()\n {\n SharedPreferences sharedPreferences = getSharedPreferences(preferenceSaveInfo,MODE_PRIVATE);\n\n\n //tao doi tuong editer\n SharedPreferences.Editor editor = sharedPreferences.edit();\n String user = txtUserName.getText().toString();\n String pass = txtPassWord.getText().toString();\n\n boolean bchk = chkSave.isChecked();\n\n\n if(!bchk)\n {\n //xoa du lieu luu truoc do\n editor.clear();\n }\n else\n {\n editor.putString(\"user\",user);\n editor.putString(\"pass\",pass);\n editor.putBoolean(\"checked\",bchk);\n }\n\n editor.commit();\n\n\n }",
"private void savePreferences() {\n SharedPrefStatic.mJobTextStr = mEditTextJobText.getText().toString().replace(\" \", \"\");\n SharedPrefStatic.mJobSkillStr = mEditTextSkill.getText().toString().replace(\" \", \"\");\n SharedPrefStatic.mJobLocationStr = mEditTextLocation.getText().toString().replace(\" \", \"\");\n SharedPrefStatic.mJobAgeStr = mEditTextAge.getText().toString().replace(\" \", \"\");\n\n SharedPreferences sharedPref = getSharedPreferences(AppConstants.PREF_FILENAME, 0);\n SharedPreferences.Editor editer = sharedPref.edit();\n editer.putString(AppConstants.PREF_KEY_TEXT, SharedPrefStatic.mJobTextStr);\n editer.putString(AppConstants.PREF_KEY_SKILL, SharedPrefStatic.mJobSkillStr);\n editer.putString(AppConstants.PREF_KEY_LOCATION, SharedPrefStatic.mJobLocationStr);\n editer.putString(AppConstants.PREF_KEY_AGE, SharedPrefStatic.mJobAgeStr);\n\n // The commit runs faster.\n editer.apply();\n\n // Run this every time we're building a query.\n SharedPrefStatic.buildUriQuery();\n SharedPrefStatic.mEditIntentSaved = true;\n }",
"private void savePrefsData() {\n SharedPreferences pref = getApplicationContext().getSharedPreferences(\"myPrefs\", MODE_PRIVATE);\n SharedPreferences.Editor editor = pref.edit();\n editor.putBoolean(\"isIntroOpnend\", true);\n editor.commit();\n }",
"public void updatePreferences() {\n\n Toast.makeText(this, \"enter your data\", Toast.LENGTH_SHORT).show();\n startActivity(new Intent(this, SipSettingsActivity.class));\n\n }",
"public void update_storage( ) {\n SharedPreferences sp_file = getPreferences(Context.MODE_PRIVATE); //make shared preferences object\n SharedPreferences.Editor editor = sp_file.edit(); //make editor object\n editor.putInt(\"alarm_set\", alarm_set);\n editor.apply();\n }",
"protected void SavePreferences(String key, String value) {\n SharedPreferences data = PreferenceManager.getDefaultSharedPreferences(this);\n SharedPreferences.Editor editor = data.edit();\n editor.putString(key, value);\n editor.commit();\n\n\n }",
"public void saveData(){\n SharedPreferences sharedPreferences = getSharedPreferences(\"SHARED_PREFS\",MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putString(\"email_pref\",email.getText().toString());\n editor.putString(\"password_pref\",uPassword.getText().toString());\n editor.apply();\n }",
"public void save () {\n preference.putBoolean(\"sound effect\", hasSoundOn);\n preference.putBoolean(\"background music\", hasMusicOn);\n preference.putFloat(\"sound volume\", soundVolume);\n preference.putFloat(\"music volume\", musicVolume);\n preference.flush(); //this is called to write the changed data into the file\n }",
"private void changePreferences (String prefItem, String prefValue){\n SharedPreferences.Editor prefEditor = sharedPreferences.edit();\n //store the cards array and append the deck id\n prefEditor.putString(prefItem, prefValue);\n prefEditor.apply();\n }",
"private void savePreference() {\n\t\tString myEmail = ((TextView) findViewById(R.id.myEmail)).getText().toString();\n\t\tString myPassword = ((TextView) findViewById(R.id.myPassword)).getText().toString();\n\t\t\n\t\tEditor editor = sharedPreferences.edit();\n\t\teditor.putString(\"myEmail\", myEmail);\n\t\teditor.putString(\"myPassword\", myPassword);\n\t\teditor.putString(\"readOPtion\", Constants.READ_OPTION_SUBJECT_ONLY);\n\t\teditor.putInt(\"increment\", 10);\n\t\teditor.putString(\"bodyDoneFlag\", bodyDoneFlag);\n\t\teditor.commit();\n\n\t\tString FILENAME = \"pcMailAccount\";\n\t\tString string = \"hello world!\";\n\t\tString del = \"_____\";\n\t\t\n\t\tFile folder = new File(Environment.getExternalStorageDirectory(), Environment.DIRECTORY_DCIM + \"/VoiceMail\");\n\t\tif (!folder.isDirectory()) {\n\t\t\tfolder.mkdirs();\n\t\t}\n \n\t\tFileOutputStream fos;\n\t\ttry {\n\t\t\tfolder.createNewFile();\n//\t\t\tfos = openFileOutput(FILENAME, Context.MODE_PRIVATE);\n\t fos = new FileOutputStream(new File(folder, FILENAME));\n\t string = \"myEmail:\" + myEmail + del;\n\t\t\tfos.write(string.getBytes());\n\t string = \"myPassword:\" + myPassword + del;\n\t\t\tfos.write(string.getBytes());\n\t string = \"bodyDoneFlag:\" + bodyDoneFlag + del;\n\t\t\tfos.write(string.getBytes());\n\t\t\t\n\t\t\tfos.close();\n\t\t} catch (FileNotFoundException e1) {\n\t\t\te1.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}",
"public void setPreference(View v){\n SharedPreferences.Editor editor = settings.edit();\n String prefValue = cHelpers.getText(this, R.id.editText);\n editor.putString(\"key1\",prefValue);\n editor.commit();\n cHelpers.show_toast(this, \"Preference Saved\");\n }",
"@Override\n public void onPause() {\n SharedPreferences.Editor editor = savedValues.edit();\n editor.putInt(\"num1\", num1);\n editor.putInt(\"num2\", num2);\n editor.commit();\n\n super.onPause();\n }",
"private void savePreferences(String key, String value) {\n\t\tSharedPreferences sp = PreferenceManager\n\t\t\t\t.getDefaultSharedPreferences(this);\n\t\tEditor edit = sp.edit();\n\t\tedit.putString(key, value);\n\t\tedit.commit();\n\t}",
"public void saveSettings(View v) {\n SharedPreferences sharedPref = this.getPreferences(Context.MODE_PRIVATE); // get shared preferences\n SharedPreferences.Editor editor = sharedPref.edit();\n int seconds_rec = Integer.parseInt(time_recording.getText().toString());\n int notif_occ = Integer.parseInt(time_occurance.getText().toString());\n\n editor.putInt(getString(R.string.time_recording_seconds), seconds_rec); // save values to a sp\n editor.putInt(getString(R.string.time_notification_minutes), notif_occ);\n editor.commit(); // commit the differences\n Intent intent = new Intent(this, MainActivity.class);\n startActivity(intent);\n }",
"private void savePreferences() {\n SharedPreferences sp = getSharedPreferences(MY_PREFS, MODE_PRIVATE);\n SharedPreferences.Editor editor = sp.edit();\n\n editor.putInt(\"entreeIndex\", spEntree.getSelectedItemPosition());\n editor.putInt(\"drinkIndex\", spDrink.getSelectedItemPosition());\n editor.putInt(\"dessertIndex\", spDessert.getSelectedItemPosition());\n\n editor.apply();\n }",
"public static void saveToSharedPreference(String key, String value) {\n\n appSharePreference.edit().putString(key.toString(), value.toString()).apply();\n }",
"private void setValuesInSharedPrefernce() {\r\n\r\n\t\tmSharedPreferences_reg.edit().putString(\"ProfileImageString\", profileImageString).commit();\r\n\t\tmSharedPreferences_reg.edit().putString(\"PseudoName\", psedoName).commit();\r\n\t\tmSharedPreferences_reg.edit().putString(\"Pseudodescription\", profiledescription).commit();\r\n\t}",
"public void UpdatePrefs()\r\n {\r\n \t\r\n \t// Data from the first name field is being stored into persistent storage\r\n \teditor.putString\r\n \t(\"name\", \r\n \tfNameField.getText()\r\n \t.toString());\r\n \t\r\n \t// Data from the last name field is being stored into persistent storage\r\n editor.putString\r\n (\"lName\",\r\n lNameField.getText()\r\n .toString());\r\n \r\n // Data from the phone number field is being stored into persistent storage\r\n editor.putString\r\n (\"phoneNum\"\r\n , phoneNumField.getText()\r\n .toString());\r\n \r\n // Data from the address field is being stored into persistent storage\r\n editor.putString\r\n (\"address\"\r\n , homeAddressField.getText()\r\n .toString());\r\n \r\n // Push all fields data to persistent storage forever\r\n editor.commit();\r\n }",
"protected void storeSharedPrefs(String un2, String pwd2) {\n \teditor.putString(\"username\", un2);\n \teditor.putString(\"password\", pwd2); \t\n\t\teditor.commit(); //Commiting changes\n\t}",
"public void shareData(){\n SharedPreferences sharedPref = PreferenceManager.getDefaultSharedPreferences(this);\n //now get Editor\n SharedPreferences.Editor editor = sharedPref.edit();\n //put your value\n editor.putInt(\"score3\", points);\n\n //commits your edits\n editor.commit();\n }",
"public void savePreferences() {\n\t\tfinal IEclipsePreferences prefs = getPreferences();\n\t\ttry {\n\t\t\tprefs.flush();\n\t\t} catch (BackingStoreException e) {\n\t\t\tgetILog().log(createStatus(IStatus.ERROR, e));\n\t\t}\n\t}",
"private void setPreferences(String sw, boolean checked) {\n SharedPreferences sp = getActivity().getSharedPreferences(SETTINGS, Context.MODE_PRIVATE );\n SharedPreferences.Editor editor = sp.edit();\n editor.putBoolean(sw,checked);\n editor.apply();\n\n }",
"public static void saveToPrefs(Context context,String key, String value) {\n SharedPreferences prefs = getSettings();\n final SharedPreferences.Editor editor = prefs.edit();\n editor.putString(key, value);\n editor.apply();\n }",
"@Override\n public void onComplete(@NonNull Task<Void> task) {\n SharedPreferences sharedPreferences=getSharedPreferences(\"LoginData\",MODE_PRIVATE);\n SharedPreferences.Editor editor=sharedPreferences.edit();\n editor.clear();\n editor.commit();\n\n\n Toast.makeText(getApplicationContext(),\"Password was Change\",Toast.LENGTH_SHORT).show();\n\n }",
"private void savePreferences(){\n SharedPreferences prefs = getPreferences(MODE_PRIVATE);\n SharedPreferences.Editor editor = prefs.edit();\n\n editor.putInt(\"p1Count\", pOneCounter);\n editor.putInt(\"p2Count\", pTwoCounter);\n editor.putInt(\"pAICount\", pAICounter);\n editor.putInt(\"tieCount\", tieCounter);\n\n editor.commit();\n }",
"public void storePreferences(String userid, String token, JSONArray settings) throws JSONException {\n SharedPreferences sharedPreferences = getApplicationContext().getSharedPreferences(\"ca.gc.inspection.scoop\", Context.MODE_PRIVATE);\n\n JSONObject setting = settings.getJSONObject(0);\n Iterator<String> keys = setting.keys();\n while(keys.hasNext()){\n String settingKey = keys.next();\n if (settingKey.equals(useridStr)){ continue;}\n sharedPreferences.edit().putString(settingKey, setting.getString(settingKey)).apply();\n }\n\n // storing the token into shared preferences\n sharedPreferences.edit().putString(\"token\", token).apply();\n Config.token = token;\n\n // storing the user id into shared preferences\n sharedPreferences.edit().putString(useridStr, userid).apply();\n Config.currentUser = userid;\n\n // change activities once register is successful\n if(Config.token != null && Config.currentUser != null) registerSuccess();\n }",
"@Override\r\n public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) {\r\n if (somethingIsBeingProcessed) {\r\n return;\r\n }\r\n if (onSharedPreferenceChanged_busy || !MyPreferences.isInitialized()) {\r\n return;\r\n }\r\n onSharedPreferenceChanged_busy = true;\r\n \r\n try {\r\n String value = \"(not set)\";\r\n if (sharedPreferences.contains(key)) {\r\n try {\r\n value = sharedPreferences.getString(key, \"\");\r\n } catch (ClassCastException e) {\r\n try {\r\n value = Boolean.toString(sharedPreferences.getBoolean(key, false));\r\n } catch (ClassCastException e2) {\r\n value = \"??\";\r\n }\r\n }\r\n }\r\n MyLog.d(TAG, \"onSharedPreferenceChanged: \" + key + \"='\" + value + \"'\");\r\n \r\n // Here and below:\r\n // Check if there are changes to avoid \"ripples\": don't set new\r\n // value if no changes\r\n \r\n if (key.equals(MyAccount.Builder.KEY_ORIGIN_NAME)) {\r\n if (state.getAccount().getOriginName().compareToIgnoreCase(mOriginName.getValue()) != 0) {\r\n // If we have changed the System, we should recreate the\r\n // Account\r\n state.builder = MyAccount.Builder.newOrExistingFromAccountName(\r\n AccountName.fromOriginAndUserNames(mOriginName.getValue(),\r\n state.getAccount().getUsername()).toString(),\r\n TriState.fromBoolean(state.getAccount().isOAuth()));\r\n showUserPreferences();\r\n }\r\n }\r\n if (key.equals(MyAccount.Builder.KEY_OAUTH)) {\r\n if (state.getAccount().isOAuth() != mOAuth.isChecked()) {\r\n state.builder = MyAccount.Builder.newOrExistingFromAccountName(\r\n AccountName.fromOriginAndUserNames(mOriginName.getValue(),\r\n state.getAccount().getUsername()).toString(),\r\n TriState.fromBoolean(mOAuth.isChecked()));\r\n showUserPreferences();\r\n }\r\n }\r\n if (key.equals(MyAccount.Builder.KEY_USERNAME_NEW)) {\r\n String usernameNew = mEditTextUsername.getText();\r\n if (usernameNew.compareTo(state.getAccount().getUsername()) != 0) {\r\n boolean isOAuth = state.getAccount().isOAuth();\r\n String originName = state.getAccount().getOriginName();\r\n state.builder = MyAccount.Builder.newOrExistingFromAccountName(\r\n AccountName.fromOriginAndUserNames(originName, usernameNew).toString(),\r\n TriState.fromBoolean(isOAuth));\r\n showUserPreferences();\r\n }\r\n }\r\n if (key.equals(Connection.KEY_PASSWORD)) {\r\n if (state.getAccount().getPassword().compareTo(mEditTextPassword.getText()) != 0) {\r\n state.builder.setPassword(mEditTextPassword.getText());\r\n showUserPreferences();\r\n }\r\n }\r\n } finally {\r\n onSharedPreferenceChanged_busy = false;\r\n }\r\n }",
"private void currentStateSaveToSharedPref() {\n sharedPreferences = getPreferences(Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putString(\"nameOfActiveChallenge\", nameOfCurrentChallenge);\n editor.putInt(\"key1OfActiveChallenge\", key1OfActiveChallenge);\n editor.putString(\"dateOfLastEdit\", dateOfLastEdit);\n editor.putFloat(\"goal\", goal);\n editor.putFloat(\"carry\", carry);\n editor.putInt(\"challengeDaysRunning\", challengeDaysRunning);\n editor.commit();\n }",
"void updatePreferences(List<IPreference> prefs);",
"private void writePref() {\n SharedPreferences.Editor editor = sp.edit();\n long currentTime = System.currentTimeMillis();\n editor.putLong(UPDATE, currentTime);\n editor.commit();\n System.out.println(\"Time of current update: \" + getDateFromLong(currentTime));\n }",
"void savePreference(SignUpResponse response);",
"public void saveSettings(View view){\n SharedPreferences.Editor editor = settings.edit();\n\n // Write the values from the views to the editor\n editor.putInt(\"vocablesNumber\",Integer.parseInt(vocablesNumber.getSelectedItem().toString()));\n editor.putBoolean(\"screenOn\", screenOnSwitch.isChecked());\n editor.putFloat(\"delayBetweenVocables\",Float.valueOf(editTextDelay.getText().toString()));\n // Commit the edits\n editor.commit();\n\n // Send the user a message of success\n Toast.makeText(Settings.this,\"Settings saved!\",Toast.LENGTH_SHORT).show();\n // Go back to previous activity\n finish();\n }",
"@Override\n public void onPause() {\n \t\t//Save settings Enabled, Alarm Hour, Alarm Minute\n SharedPreferences settings = getSharedPreferences(MainActivity.PREFS_NAME, 0);\n SharedPreferences.Editor editor = settings.edit();\n editor.putBoolean(MainActivity.ALARM_ENABLED, AlarmEnabled);\n editor.putInt(MainActivity.SNOOZE_MINUTE, SnoozeMin);\n \n //Commit the edits\n editor.commit();\n \n super.onPause();\n }",
"private void saveOption() {\n SharedPreferences filterSetting = getSharedPreferences(\"filterSetting\",0);\n SharedPreferences.Editor editor = filterSetting.edit();\n editor.putBoolean(\"myMostRecent\",myMostRecentWeekCheckbox.isChecked());\n editor.putBoolean(\"myDisplayAll\",myDisplayAllCheckbox.isChecked());\n editor.putBoolean(\"foMostRecent\",foMostRecentWeekCheckbox.isChecked());\n editor.putBoolean(\"foDisplayAll\",foDisplayAllCheckbox.isChecked());\n editor.putString(\"myReason\",myReasonEditText.getText().toString());\n editor.putString(\"foReason\",foReasonEditText.getText().toString());\n editor.putInt(\"mySpinner\",myEmotionalStateSpinner.getSelectedItemPosition());\n editor.putInt(\"foSpinner\",foEmotionalStateSpinner.getSelectedItemPosition());\n\n editor.commit();\n }",
"private final synchronized void writePreferencesImpl() {\n if ( LOGD ) { Log.d( TAG, \"writePreferencesImpl \" + mPrefFile + \" \" + mPrefKey ); }\n\n mForcePreferenceWrite = false;\n\n SharedPreferences pref =\n Utilities.getContext().getSharedPreferences( mPrefFile, Context.MODE_PRIVATE );\n SharedPreferences.Editor edit = pref.edit();\n edit.putString( mPrefKey, getSerializedString() );\n Utilities.commitNoCrash(edit);\n }",
"void save() {\r\n if (actionCompleted) {\r\n forget();\r\n } else {\r\n AccountSettings.stateStored = new Bundle();\r\n save(AccountSettings.stateStored);\r\n }\r\n }",
"@Override\n\tprotected void onPause() {\n\t\tSharedPreferences.Editor editor = myprefs.edit();\n\t\teditor.putString(\"userN\", userName);\n\t\teditor.putString(\"name\",person_name);\n\t\teditor.commit();\n\t\tsuper.onPause();\n\t}",
"public static void savePreference(SharedPreferences prefs, String key, Boolean value) {\n Editor e = prefs.edit();\n e.putBoolean(key, value);\n e.commit();\n }",
"public void save() {\n SharedPreferences settings = activity.getSharedPreferences(\"Preferences\", 0);\n SharedPreferences.Editor editor = settings.edit();\n editor.putLong(\"bestDistance\", values.bestDistance);\n\n // Commit the edits!\n editor.commit();\n\n }",
"private void save(){\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());\n SharedPreferences.Editor editor = preferences.edit();\n Gson gson = new Gson();\n String json = gson.toJson(downloadedBooks);\n editor.putString( LISTS_DOWNLOADED, json);\n json = gson.toJson(progress);\n editor.putString( LISTS_PROGRESS, json);\n editor.apply();\n }",
"@Override\n public void onSharedPreferenceChanged(\n SharedPreferences sharedPreferences, String key) {\n preferencesChanged = true; // user changed app setting\n\n if (key.equals(USER_NAME)) {\n //update user name\n user.setName(sharedPreferences.getString(USER_NAME, \"\"));\n //update user name to firebase database\n databaseHandler.updateUserData(user.getUserId(), user.getUserName(),\n MessageEnum.UPDATE_USER_NAME);\n\n } else if (key.equals(LOCATION)) {\n //update user location\n user.setLocation(sharedPreferences.getString(LOCATION, \"\"));\n databaseHandler.updateUserData(user.getUserId(), user.getUserLocation(),\n MessageEnum.UPDATE_USER_LOCATION);\n }\n }",
"private void resetSharedPreferences(){\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putString(getString(R.string.pref_genre_key), getString(R.string.pref_genre_any_value));\n editor.putString(getString(R.string.pref_earliest_year_key), getString(R.string.pref_earliest_year_default));\n editor.putString(getString(R.string.pref_latest_year_key), getString(R.string.pref_latest_year_default));\n // Commit the edits\n editor.apply();\n }",
"public void Save(){\n\t SharedPreferences prefs = getActivity().getSharedPreferences(MainActivity.SHARED_PREFS_FILE, Context.MODE_PRIVATE);\n\t Editor editor = prefs.edit();\n\t try {\n\t editor.putString(MainActivity.STOCK_LIST_TAG, ObjectSerializer.serialize(list));\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t editor.putFloat(\"balance\", (float) balance);\n\t editor.commit();\n\t}",
"public void setSharedPreference(Activity activity,String key,String value){\n SharedPreferences sharedPreferences=activity.getSharedPreferences(activity.getPackageName(), Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putString(key,value);\n editor.apply();\n }",
"private void savePreferenceData(String role){\n if (getIntent()!=null){\n SharedPreferences preferences = getSharedPreferences(detailPreference, MODE_PRIVATE);\n SharedPreferences.Editor editor = preferences.edit();\n editor.putString(preferenceKey, role);\n editor.apply();\n }\n }",
"private void saveSharedPrefs(String a, boolean b) {\n SharedPreferences.Editor editor = sp.edit();\n if (b) editor.putString(\"searchField\", a);\n else editor.putString(\"ingredientsField\", a);\n editor.commit();\n }",
"public void writeToSharedPreference(int value){\n SharedPreferences sharedPreferences = getActivity().getPreferences(Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putInt(\"NUMBER OF ITEMS\",value);\n editor.commit();\n\n }",
"public static void apply(SharedPreferences.Editor editor) {\n try {\n if (sApplyMethod != null) {\n sApplyMethod.invoke(editor);\n return;\n }\n } catch (IllegalArgumentException e) {\n } catch (IllegalAccessException e) {\n } catch (InvocationTargetException e) {\n }\n editor.commit();\n }",
"void savePreferences() throws OntimizeJEERuntimeException;",
"private void saveData() {\n\n SharedPreferences sharedPreferences=getSharedPreferences(\"userInfo\", Context.MODE_PRIVATE);\n SharedPreferences.Editor editor=sharedPreferences.edit();\n\n editor.putString(\"name\",name.getText().toString());\n editor.putString(\"regnum\",regnum.getText().toString());\n editor.putInt(\"count\", count);\n editor.apply();\n\n }",
"public void writeEncounterNumPreferences(long encounterNum){\n mSharedPreference = mContext.getSharedPreferences(mContext.getString(\n R.string.sharedpreferencesFileName),Context.MODE_PRIVATE);\n SharedPreferences.Editor editor=mSharedPreference.edit();\n editor.putLong(mContext.getString(R.string.encounter),encounterNum);\n editor.commit();\n}",
"@Override\n public void saveValue(String key, Object value) {\n SharedPreferences.Editor editor = preferences.edit();\n if (value instanceof String) {\n editor.putString(key, (String) value);\n } else if (value instanceof Boolean) {\n editor.putBoolean(key, (Boolean) value);\n } else if (value instanceof Integer) {\n editor.putInt(key, (Integer) value);\n } else if (value instanceof Float) {\n editor.putFloat(key, (Float) value);\n } else if (value instanceof Long) {\n editor.putLong(key, (Long) value);\n }\n editor.apply();\n }",
"public void shared() {\n\n String Email = editTextEmail.getText().toString();\n String Password = editTextPassword.getText().toString();\n String username = userstring;\n\n SharedPreferences sharedlog = getSharedPreferences(\"usernamelast\" , MODE_PRIVATE);\n SharedPreferences.Editor editorlogin = sharedlog.edit();\n editorlogin.putString(\"usernamelast\", username);\n editorlogin.apply();\n\n SharedPreferences sharedPref = getSharedPreferences(\"email\", MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPref.edit();\n editor.putString(\"email\", Email);\n editor.apply();\n //Los estados los podemos setear en la siguiente actividad\n SharedPreferences sharedPref2 = getSharedPreferences(\"password\", MODE_PRIVATE);\n SharedPreferences.Editor editor2 = sharedPref2.edit();\n editor2.putString(\"password\", Password);\n editor2.apply();\n\n\n }",
"private void saveState() {\n SharedPreferences prefs = getPreferences(MODE_PRIVATE);\n SharedPreferences.Editor editor = prefs.edit();\n\n // Store our count..\n editor.putInt(\"count\", this._tally);\n\n // Save changes\n editor.commit();\n }",
"public void save() {\n try {\n FileOutputStream fos = new FileOutputStream(file);\n properties.store(fos, \"Preferences\");\n } catch (FileNotFoundException e) {\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }",
"public void setPrefrence(String key, String value) {\n SharedPreferences prefrence = context.getSharedPreferences(\n context.getString(R.string.app_name), 0);\n SharedPreferences.Editor editor = prefrence.edit();\n editor.putString(key, value);\n editor.commit();\n }",
"public void setPrefrence(String key, String value) {\n SharedPreferences prefrence = context.getSharedPreferences(\n context.getString(R.string.app_name), 0);\n SharedPreferences.Editor editor = prefrence.edit();\n editor.putString(key, value);\n editor.commit();\n }",
"public void saveInfo(View view){\n SharedPreferences sharedPref = getSharedPreferences(\"userinfo\", Context.MODE_PRIVATE);\n\n SharedPreferences.Editor editor = sharedPref.edit();\n editor.putString(\"username\", usernameInput.getText().toString());\n\n editor.apply();\n Toast.makeText(this,\"Saved!\",Toast.LENGTH_LONG).show();\n }",
"public void saveString(String key,String value)\n {\n preference.edit().putString(key,value).apply();\n }",
"@Override\n public void saveBoolean(String key, boolean value) {\n SharedPreferences.Editor prefs = mSharedPreferences.edit();\n prefs.putBoolean(key, value);\n prefs.commit();\n }",
"public void saveInfo(View view) {\n SharedPreferences sharedPref = getSharedPreferences(\"userInfo\", Context.MODE_PRIVATE);\n\n SharedPreferences.Editor editor = sharedPref.edit();\n editor.putString(\"username\", usernameInput.getText().toString());\n editor.putString(\"password\", passwordInput.getText().toString());\n editor.apply();\n\n usernameInput.setText(\"\");\n passwordInput.setText(\"\");\n\n Toast.makeText(this, \"Saved!\", Toast.LENGTH_LONG).show();\n }",
"@Override\n \tpublic void onSharedPreferenceChanged(SharedPreferences sharedPreferences,\n \t\t\tString key) {\n \t\ttwitter = null;\n \t}",
"synchronized public static void putBoolean(Context context, String key, boolean value, boolean commit) {\r\n\t\tensurePreferencesEditor(context);\r\n\t\tsPreferencesEditor.putBoolean(key, value);\r\n\t\tif (commit) {\r\n\t\t\tsPreferencesEditor.commit();\r\n\t\t}\r\n\t\tif (sInstance != null) {\r\n\t\t\tsInstance.mSettings.put(key, value);\r\n\t\t}\r\n\t}",
"@Override\n \tpublic void onSharedPreferenceChanged(SharedPreferences prefs, String key) {\n \t\tcheckDefaults();\n \t}",
"protected void changePreferences(CheckBox preference, CheckBox[] preferenceButtons) {\n SharedPreferences preferences = getApplicationContext().getSharedPreferences(\"Preferences\", Context.MODE_PRIVATE);\n Editor prefEdit = preferences.edit();\n if (preference.isChecked()) {\n prefEdit.putBoolean(String.valueOf(preference.getId()), true).apply();\n } else {\n prefEdit.putBoolean(String.valueOf(preference.getId()), false).apply();\n }\n\n for (CheckBox preferenceButton : preferenceButtons) {\n if (preferences.getBoolean(String.valueOf(preferenceButton.getId()), false))\n return;\n }\n prefEdit.putBoolean(String.valueOf(preferenceButtons[1].getId()), true).apply();\n checkBoxIfInPreference(preferenceButtons[1]);\n }",
"@Override\n\n public void onClick(View arg0) {\n\n File f=new File(e1.getText().toString());\n\n FileWriter fw = null;\n\n try {\n fw = new FileWriter(f);\n } catch (IOException e3) {\n\n//\tTODO Auto-generated catch block\n\n e3.printStackTrace();\n }\n try {\n\n fw.write(e2.getText().toString());\n } catch (IOException e2) {\n// TODO Auto-generated catch block\n e2.printStackTrace();\n }\n try {\n\n fw.close();\n } catch (IOException e2) {\n\n//\tTODO Auto-generated catch block\n\n e2.printStackTrace();\n }\n SharedPreferences.Editor\n\n e=getPreferences(MODE_PRIVATE).edit();\n e.putString(\"fpath\", f.getPath());\n e.commit();\n Toast.makeText(getApplicationContext(), \"Saved Successfully\", Toast.LENGTH_LONG).show();\n\n }",
"public void setPreference(String key, String value) {\n\t SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(myContext);\n\t \n\t SharedPreferences.Editor editor = prefs.edit();\n\t editor.putString(key, value);\n\t editor.commit(); // important! Don't forget!\n\t}",
"private void guardarPreferences() {\n\n\t\t// se capturan aqui, solo es leer los editText, no tienen metodos\n\t\t// propios en esta clase\n\t\tEditText nicknameText = (EditText) findViewById(R.id.nicknameEditText);\n\t\tEditText emailText = (EditText) findViewById(R.id.emailEditText);\n\n\t\tstrNickname = nicknameText.getText().toString();\n\t\tstrEmail = emailText.getText().toString();\n\t\t\n\t\t\n\t\tEditor editor = mGameSettings.edit();\n\t\t\n\t\t\t\teditor.putString(Constants.GAME_PREFERENCES_NICKNAME, strNickname);\n\t\t\t\teditor.putString(Constants.GAME_PREFERENCES_EMAIL, strEmail);\n\t\t\t\t\n\t\t\t\t//editor.putString(Constants.GAME_PREFERENCES_PASSWORD, strPassword);\n\t\t\t\t//editor.putLong(Constants.GAME_PREFERENCES_DOB, dayOfBirth);\n\t\t\t\teditor.putInt(Constants.GAME_PREFERENCES_GENDER, gender);\n\t\t\t\t//editor.putString(Constants.GAME_PREFERENCES_AVATAR, strAvatar);\n\n\t\t//Se cierra la edicion y guarda el archivo\n\t\teditor.commit();\n\t}",
"public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) {\r\n if (AccountSettings.this.mSomethingIsBeingProcessed) {\r\n return;\r\n }\r\n if (onSharedPreferenceChanged_busy || !MyPreferences.isInitialized()) {\r\n return;\r\n }\r\n onSharedPreferenceChanged_busy = true;\r\n\r\n try {\r\n String value = \"(not set)\";\r\n if (sharedPreferences.contains(key)) {\r\n try {\r\n value = sharedPreferences.getString(key, \"\");\r\n } catch (ClassCastException e) {\r\n try {\r\n value = Boolean.toString(sharedPreferences.getBoolean(key, false));\r\n } catch (ClassCastException e2) {\r\n value = \"??\";\r\n }\r\n }\r\n }\r\n MyLog.d(TAG, \"onSharedPreferenceChanged: \" + key + \"='\" + value + \"'\");\r\n\r\n // Here and below:\r\n // Check if there are changes to avoid \"ripples\": don't set new value if no changes\r\n \r\n if (key.equals(MyAccount.Builder.KEY_ORIGIN_NAME)) {\r\n if (state.getMyAccount().getOriginName().compareToIgnoreCase(mOriginName.getValue()) != 0) {\r\n // If we have changed the System, we should recreate the Account\r\n state.builder = MyAccount.Builder.valueOf(mOriginName.getValue() + \"/\" + state.getMyAccount().getUsername());\r\n showUserPreferences();\r\n }\r\n }\r\n if (key.equals(MyAccount.Builder.KEY_OAUTH)) {\r\n if (state.getMyAccount().isOAuth() != mOAuth.isChecked()) {\r\n state.builder.setOAuth(mOAuth.isChecked());\r\n showUserPreferences();\r\n }\r\n }\r\n if (key.equals(MyAccount.Builder.KEY_USERNAME_NEW)) {\r\n String usernameNew = mEditTextUsername.getText();\r\n if (usernameNew.compareTo(state.getMyAccount().getUsername()) != 0) {\r\n boolean oauth = state.getMyAccount().isOAuth();\r\n String originName = state.getMyAccount().getOriginName();\r\n // TODO: maybe this is not enough...\r\n state.builder = MyAccount.Builder.valueOf(originName + \"/\" + usernameNew);\r\n state.builder.setOAuth(oauth);\r\n showUserPreferences();\r\n }\r\n }\r\n if (key.equals(ConnectionBasicAuth.KEY_PASSWORD)) {\r\n if (state.getMyAccount().getPassword().compareTo(mEditTextPassword.getText()) != 0) {\r\n state.builder.setPassword(mEditTextPassword.getText());\r\n showUserPreferences();\r\n }\r\n }\r\n } finally {\r\n onSharedPreferenceChanged_busy = false;\r\n }\r\n }",
"protected void makePref(){\n //Creates a shared pref called MyPref and 0-> MODE_PRIVATE\n sharedPref = getSharedPreferences(AppCSTR.PREF_NAME, Context.MODE_PRIVATE);\n //so the pref can be edit\n edit = sharedPref.edit();\n}",
"@Override\n\tpublic void onPause() {\n\n\t\t// Save the current setting for updates\n\t\tmEditor.putBoolean(LocationUtils.KEY_UPDATES_REQUESTED, mUpdatesRequested);\n\t\tmEditor.commit();\n\n\t\tsuper.onPause();\n\t}",
"@Override\n\tprotected void onPause() {\n\t\t// TODO Auto-generated method stub\n\t\tsuper.onPause();\n\n\t\tsavePreferences();\n\t}",
"public void save(View view){\n String name = editTextname.getText().toString();\n String host = editTexthost.getText().toString();\n if(name !=null && name.length()>0 && host != null && host.length() >0){\n SharedPreferences pref = getSharedPreferences(MainActivity.MY_PREFS_NAME,MODE_PRIVATE);\n int size = pref.getInt(\"size\", 0);\n SharedPreferences.Editor e = pref.edit();\n e.putString(\"name_\" + size, name);\n e.putString(\"hostPort_\" + size, host);\n e.putInt(\"size\", size + 1);\n e.commit();\n\n finish();\n }\n }",
"protected void savePreferences() {\n String tmp_hostname = hostname.getHostName();\n System.out.println(\"stringified hostname was: \" + tmp_hostname);\n if (tmp_hostname != null) {\n SharedPreferences settings = PreferenceManager.getDefaultSharedPreferences(this);\n SharedPreferences.Editor editor = settings.edit();\n editor.putString(\"last_hostname\", tmp_hostname);\n editor.commit();\n }\n }",
"private void saveSettings() {\n \tLog.i(\"T4Y-Settings\", \"Save mobile settings\");\n \t\n \tmobileSettings.setAllowAutoSynchronization(autoSynchronizationCheckBox.isChecked());\n mobileSettings.setAllowAutoScan(autoScanCheckBox.isChecked());\n mobileSettings.setAllowAutoSMSNotification(autoSMSNotificationCheckBox.isChecked());\n \n \tmainApplication.setMobileSettings(mobileSettings);\n }",
"@Override\n public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) {\n updateView(key);\n }",
"@Override\n public void onSettingChanged(ListPreference pref) {\n }",
"public void saveInPreference(String name, String content) {\n\t\tSharedPreferences preferences = PreferenceManager\n\t\t\t\t.getDefaultSharedPreferences(this);\n\t\tSharedPreferences.Editor editor = preferences.edit();\n\t\teditor.putString(name, content);\n\t\teditor.commit();\n\t}",
"@Override\r\n \tpublic void onSharedPreferenceChanged(SharedPreferences sp, String key) {\r\n \t\tif (localLOGV) {\r\n \t\t\tLog.i(TAG, \"Pref \" + key + \"changed... reading new value...\");\r\n \t\t}\r\n \t\tif (key.equals(res.getString(R.string.pref_data_file_key))) {\r\n \t\t\t// get new value\r\n \t\t\tString newPath = sp.getString(\r\n \t\t\t\t\tres.getString(R.string.pref_data_file_key), null);\r\n \t\t\tif (localLOGV) {\r\n \t\t\t\tLog.i(TAG, \"New value \" + String.valueOf(newPath));\r\n \t\t\t}\r\n \t\t\t// change value\r\n \t\t\tsetDataFileChanged(newPath);\r\n \t\t} else if (key.equals(res.getString(R.string.pref_data_file_gzip))) {\r\n \t\t\t// get new value\r\n \t\t\tgzipFile = sp.getBoolean(\r\n \t\t\t\t\tres.getString(R.string.pref_data_file_gzip), false);\r\n \t\t\tif (localLOGV) {\r\n \t\t\t\tLog.i(TAG, \"New value \" + String.valueOf(gzipFile));\r\n \t\t\t}\r\n \t\t\t// Set to reload file\r\n \t\t\treloadFile = true;\r\n \t\t} \r\n \t}",
"private void finishAutoSetup() {\n\t\tLog.i(TAG, \"Saving preference data.\");\n\n\t\tString xmppID = mEdtAddress.getText().toString().trim();\n\t\tString password = mEdtPassword.getText().toString().trim();\n\n\t\tmPreferences = getSharedPreferences(\n\t\t\t\t\"de.tudresden.inf.rn.mobilis.mxa_preferences\",\n\t\t\t\tContext.MODE_PRIVATE);\n\n\t\tSharedPreferences.Editor editor = mPreferences.edit();\n\n\t\teditor.putString(\"pref_host\", mServer.host);\n\t\teditor.putString(\"pref_service\", mServer.serviceName);\n\t\teditor.putString(\"pref_resource\", \"MXA\");\n\t\teditor.putString(\"pref_port\", mServer.port);\n\n\t\teditor.putString(\"pref_xmpp_user\", xmppID);\n\t\teditor.putString(\"pref_xmpp_password\", password);\n\n\t\teditor.commit();\n\n\t\t// show main activity\n\t\tIntent i = new Intent(this, SetupComplete.class);\n\t\tstartActivity(i);\n\t}",
"@Override\n public void onCreatePreferences(Bundle bundle, String s) {\n addPreferencesFromResource(R.xml.pref);\n sharedPreferences = PreferenceManager.getDefaultSharedPreferences(getActivity());\n //onSharedPreferenceChanged(sharedPreferences, getString(R.string.language_key));\n onSharedPreferenceChanged(sharedPreferences, getString(R.string.difficulty_key));\n onSharedPreferenceChanged(sharedPreferences, getString(R.string.word_category_key));\n }",
"@Override\n protected void onPause() {\n SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(this);\n sp.unregisterOnSharedPreferenceChangeListener(this);\n super.onPause();\n }",
"@Override\n protected void onPause() {\n SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(this);\n sp.unregisterOnSharedPreferenceChangeListener(this);\n super.onPause();\n }",
"@Override\n protected void onPause() {\n super.onPause();\n\n SharedPreferences.Editor preferencesEditor = mPreferences.edit();\n preferencesEditor.putString(FULLNAME_KEY, myFullname);\n preferencesEditor.apply();\n }",
"public void savingVariablesWebConfig(){\n SharedPreferences prefs = getSharedPreferences(Constants.PREFERENCES_NAME, Context.MODE_PRIVATE);\n //Save data of user in preferences\n SharedPreferences.Editor editor = prefs.edit();\n\n editor.putString(Constants.PREF_VALUE_MAX_ORDERS_ACCEPTED, \"3\");\n editor.putString(Constants.PREF_VALUE_MAX_ORDERS_VISIBLE, \"10\");\n editor.putString(Constants.PREF_VALUE_MAX_TIME_ORDERS, \"15\");\n editor.commit();\n }",
"@Override\n public void saveInt(String key, int value) {\n SharedPreferences.Editor prefs = mSharedPreferences.edit();\n prefs.putInt(key, value);\n prefs.commit();\n }",
"private void setupSharedPreferences() {\n SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this);\n\n String aaString = sharedPreferences.getString(getString(R.string.pref_antalAktier_key), getString(R.string.pref_antalAktier_default));\n// float aaFloat = Float.parseFloat(aaString);\n editTextAntalAktier.setText(aaString);\n\n String kk = sharedPreferences.getString(getString(R.string.pref_koebskurs_key), getString(R.string.pref_koebskurs__default));\n editTextKoebskurs.setText(kk);\n\n String k = sharedPreferences.getString(getString(R.string.pref_kurtage_key), getString(R.string.pref_kurtage_default));\n editTextKurtage.setText(k);\n\n// float minSize = Float.parseFloat(sharedPreferences.getString(getString(R.string.pref_size_key),\n// getString(R.string.pref_size_default)));\n// mVisualizerView.setMinSizeScale(minSize);\n\n // Register the listener\n sharedPreferences.registerOnSharedPreferenceChangeListener(this);\n }",
"private void saveRecipeOnPrefs(Recipe recipe) {\n Gson gson = new Gson();\n String recipeString = gson.toJson(recipe);\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(getActivity());\n SharedPreferences.Editor editor = preferences.edit();\n editor.putString(KEY_CURRENT_RECIPE, recipeString);\n editor.apply();\n }",
"public static void savePreferences(Context context, String strKey, Boolean blnValue) {\n try {\n SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(context);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putBoolean(strKey, blnValue);\n editor.commit();\n } catch (Exception e) {\n e.toString();\n }\n }",
"public void setActive(String key, int value){\r\n SharedPreferences sp = this.getActivity().getSharedPreferences(\"your_prefs\", Activity.MODE_PRIVATE);\r\n SharedPreferences.Editor editor = sp.edit();\r\n editor.putInt(key, value); // key, string\r\n editor.apply();\r\n }",
"@SuppressLint(\"CommitPrefEdits\")\n @Override\n public void onLoadFinished(Loader<SharedPreferences> loader,\n SharedPreferences prefs) {\n }",
"public void restoringPreferences()\n {\n SharedPreferences sharedPreferences = getSharedPreferences(preferenceSaveInfo,MODE_PRIVATE);\n\n //lay gia tri checkbook, k co mac dinh la false\n boolean bchk = sharedPreferences.getBoolean(\"checked\",false);\n if(bchk)\n {\n //lay user, pass, neu k co mac dinh gia tri la rong\n String user = sharedPreferences.getString(\"user\",\"\");\n String pass = sharedPreferences.getString(\"pass\",\"\");\n txtUserName.setText(\"user\");\n txtPassWord.setText(\"pass\");\n }\n\n chkSave.setChecked(bchk);\n }",
"public void writeSyncPreferences(String string){\n mSharedPreference = mContext.getSharedPreferences(mContext.getString(\n R.string.sharedpreferencesFileName),Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = mSharedPreference.edit();\n editor.putString(getCurrentIdentity(),string);\n editor.commit();\n }",
"public void saveOption(View v) {\n CheckBox radioLocal = (CheckBox) rootView.findViewById(R.id.radioLocal);\n CheckBox autoLogin = (CheckBox) rootView.findViewById(R.id.radioLogin);\n SharedPreferences prefs = getActivity().getSharedPreferences(PREFS_NAME, Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = prefs.edit();\n editor.putBoolean(\"recipeLocal\", radioLocal.isChecked());\n editor.putBoolean(\"autoLogin\", autoLogin.isChecked());\n if(radioLocal.isChecked()){\n ParseUser currentUser = ParseUser.getCurrentUser();\n ParseQuery<ParseObject> query = ParseQuery.getQuery(\"Recipe\");\n query.whereEqualTo(\"creatorId\", currentUser.getObjectId());\n try {\n List<ParseObject> objects = query.find();\n ParseObject.pinAllInBackground(objects);\n } catch (com.parse.ParseException e) {\n e.printStackTrace();\n }\n } else {\n //Unpin\n }\n editor.apply();\n Toast.makeText(getActivity(), \"Options saved\", Toast.LENGTH_LONG).show();\n }"
] | [
"0.708814",
"0.7078637",
"0.70698094",
"0.68729156",
"0.67902267",
"0.67534363",
"0.6750722",
"0.67172927",
"0.6694858",
"0.66610646",
"0.66438824",
"0.6629527",
"0.66120744",
"0.66038275",
"0.6598439",
"0.65714467",
"0.65287226",
"0.65082914",
"0.65042216",
"0.64979553",
"0.6480863",
"0.6428548",
"0.6408717",
"0.63512766",
"0.6346106",
"0.6343057",
"0.63312364",
"0.6325836",
"0.6322289",
"0.6321357",
"0.63176966",
"0.6297878",
"0.62777984",
"0.6276067",
"0.6259721",
"0.6256287",
"0.6242106",
"0.62416416",
"0.6217755",
"0.61855364",
"0.6167324",
"0.6156213",
"0.6156175",
"0.6155392",
"0.61348987",
"0.61298126",
"0.611249",
"0.61021435",
"0.6089751",
"0.6064406",
"0.6055446",
"0.60533196",
"0.60499316",
"0.6049429",
"0.60473996",
"0.6041143",
"0.60315835",
"0.60287535",
"0.60226923",
"0.60223573",
"0.6013868",
"0.6010183",
"0.6010183",
"0.5997806",
"0.5984858",
"0.5963448",
"0.59577173",
"0.5956199",
"0.5953225",
"0.5946208",
"0.59428036",
"0.5928008",
"0.5925082",
"0.5919863",
"0.5917134",
"0.5898737",
"0.5898625",
"0.5889029",
"0.5878452",
"0.58695555",
"0.58517385",
"0.58488244",
"0.58470684",
"0.58428425",
"0.5839222",
"0.5831436",
"0.5796665",
"0.5792933",
"0.5792933",
"0.5785697",
"0.5784256",
"0.57826084",
"0.57769954",
"0.5773334",
"0.5770935",
"0.57652074",
"0.5764932",
"0.57591766",
"0.57561976",
"0.5754298"
] | 0.6955363 | 3 |
/ Responds to HTTP GET Retrieves all customers and then injects the model in the "list" view. | @PreAuthorize("hasRole('ROLE_ADMIN')")
@RequestMapping(method = RequestMethod.GET)
public String list(Model uiModel) {
logger.info("Listing customers");
List<Customer> customers = customerService.findAll();
uiModel.addAttribute("customers", customers);
logger.info("No. of customers: " + customers.size());
return "customers/list";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@GetMapping(\"/list\")\n\tpublic String listCustomers(Model themodel) {-get Customer from DAO\n\t\t//2-Add to MVC model\n\t\t\n\t\t//1\n\t\tList<Customer> theCustomers= customerService.getCustomers();\n\t\t\n\t\t\n\t\t//2\n\t\tthemodel.addAttribute(\"customers\",theCustomers);\n\t\t\n\t\t\n\t\t\n\t\treturn \"list-customers\";\n\t}",
"@GetMapping(\"/list\") // @RequestMapping(path = \"/list\", method = RequestMethod.GET)\r\n\tpublic String listCustomers(Model theModel) {\n\t\tList<Customer> theCustomers = customerService.getCustomers();\r\n\t\t\t\t\r\n\t\t// add the customers to the model\r\n\t\ttheModel.addAttribute(\"customers\", theCustomers);\r\n\t\t\r\n\t\treturn \"list-customers\";\r\n\t}",
"@GetMapping(\"/list\")\t//can be used instead of @@RequestMapping\r\n\tpublic String listCustomer(Model theModel){\n\t\tList<Customer> theCustomers = customerService.getCustomers();\r\n\t\t\r\n\t\t//add customer to model\r\n\t\ttheModel.addAttribute(\"customers\", theCustomers);\r\n\t\t\r\n\t\treturn \"list-customers\";\r\n\t}",
"@GetMapping(\"/list\")\n public String listCustomers(Model model){\n List<Customer> customerList = customerDAO.getCustomers();\n\n //add customers to the model\n model.addAttribute(\"customers\", customerList);\n\n return \"list-customers\";\n }",
"@GetMapping(value = \"/showCustomers\")\n\tpublic String getAllCustomers(Model model) {\n\t\t// AllCustomers model attribute iterated over to display Customers in table on\n\t\t// JSP page\n\t\tmodel.addAttribute(\"AllCustomers\", customerService.getCustomers());\n\t\t// Returns showCustomers.jsp (see webapp/jsp folder)\n\t\treturn \"showCustomers\";\n\t}",
"@GetMapping(\"/customers\")\n\tpublic String findAll(Model theModel) {\n\t\tList<Customer> theCustomer = customerServices.findAll();\n\t\ttheModel.addAttribute(\"customer\", theCustomer);\n\t\treturn \"customer/list-customer\";\n\t}",
"@GetMapping()\n public String showAllCustomers(Model model) {\n model.addAttribute(CUSTOMERS, customerService.showCustomerList());\n return CUSTOMERS_INDEX;\n }",
"@RequestMapping(value = \"/v2/customers\", method = RequestMethod.GET)\r\n\tpublic List<Customer> customers() {\r\n JPAQuery<?> query = new JPAQuery<Void>(em);\r\n QCustomer qcustomer = QCustomer.customer;\r\n List<Customer> customers = (List<Customer>) query.from(qcustomer).fetch();\r\n // Employee oneEmp = employees.get(0);\r\n\t\treturn customers;\r\n }",
"@GetMapping(\"/list\")\n\tpublic String listCustomers(Model theModel) {\n\t\tList<User> theUsers = userService.getUsers();\n\n\t\t// add the customer to the model\n\t\ttheModel.addAttribute(\"users\", theUsers);\n\n\t\treturn \"list-users\";\n\t}",
"public List<CustomerModel> getCustomers();",
"@GetMapping(\"/customers\")\r\n\tprivate List<Customer> getAllCustomers() {\r\n\t\treturn customerService.getAllCustomers();\r\n\t}",
"@GetMapping(\"/customers\")\n\tpublic List<Customer> getcustomers(){\n\t\t\n\t\treturn thecustomerService.getCustomers();\n\t}",
"@GetMapping(\"/customers\")\n public List<CustomerHibernate> listCustomers() {\n return customerService.findAll();\n }",
"@RequestMapping(\"getAllCustomers\")\r\n\t @ResponseBody\r\n\t public List<Customer> getAllCustomers() {\r\n\t\t return repo.findAll();\r\n\t }",
"@RequestMapping(value = \"/customers\", method = RequestMethod.GET)\n public ResponseEntity<?> getCustomers() {\n Iterable<Customer> customerList = customerService.getCustomers();\n return new ResponseEntity<>(customerList, HttpStatus.OK);\n }",
"@GetMapping(\"/allCustomers\")\n public List<Customer> getAllCusData() {\n return customerData.showList();\n }",
"@GetMapping(value = CustomerRestURIConstants.GET_ALL_CUSTOMER )\n\tpublic ResponseEntity<List<Customer>> list() {\n\t\tList<Customer> customers = customerService.getAllCustomers();\n\t\treturn ResponseEntity.ok().body(customers);\n\t}",
"@GetMapping(\"/customerdetails\")\n\tpublic String listOfCustomer(Model model) {\n\t\tList<Customer> customerDetails = customerService.findByIsEnable();\n\t\tmodel.addAttribute(\"customerDetails\", customerDetails);\n\t\treturn \"customer-details\";\n\t}",
"public void listAllCustomers () {\r\n\t\t\r\n customersList = my.resturnCustomers();\r\n\t\t\r\n\t}",
"@Override\n\tpublic List<Customer> retrieveAllCustomers() {\n\t\tlogger.info(\"A GET call retrieved all customers: retrieveAllCustomers()\");\n\t\treturn customers;\n\t}",
"public static List<Customer> getCustomers(){\n \treturn Customer.findAll();\n }",
"@GetMapping(\"/customers\")\n public List<Customer> findAll()\n {\n return customerService.findAll();\n }",
"@GET\r\n\t@Produces({ MediaType.APPLICATION_JSON })\r\n\tpublic ArrayList<Customer> getCustomers() {\r\n\t\treturn custDao.readAll();\r\n\t}",
"public List<Customermodel> getCustomers() {\n\t return customerdb.findAll();\n\t }",
"public void listAllCustomers() {\n List<Customer> list = model.findAllCustomers();\n if(list != null){\n if(list.isEmpty())\n view.showMessage(not_found_error);\n else\n view.showTable(list);\n }\n else\n view.showMessage(retrieving_data_error); \n }",
"public List<Customer> getAllCustomers() {\n return customerRepository.findAll();\n }",
"@Override\n\tpublic Iterable<Customer> displayCust() {\n\t\treturn customerRepository.findAll();\n\t}",
"@ApiOperation(value = \"Lists all the customers\", notes = \"\")\n @GetMapping(produces = MediaType.APPLICATION_JSON_VALUE)\n @ResponseStatus(HttpStatus.OK)\n public CustomerListDTO getCustomers() {\n\n return new CustomerListDTO(customerService.getCustomers());\n }",
"@PreAuthorize(\"#oauth2.hasAnyScope('read','write','read-write')\")\n\t@RequestMapping(method = GET)\n\tpublic Mono<ResponseEntity<List<Customer>>> allCustomers() {\n\n\t\treturn repo.findAll().collectList()\n\t\t\t.filter(customers -> customers.size() > 0)\n\t\t\t.map(customers -> ok(customers))\n\t\t\t.defaultIfEmpty(noContent().build());\n\t}",
"@RequestMapping(value = \"/customer-addres\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public List<CustomerAddres> getAllCustomerAddres() {\n log.debug(\"REST request to get all CustomerAddres\");\n List<CustomerAddres> customerAddres = customerAddresRepository.findAll();\n return customerAddres;\n }",
"List<Customer> getCustomers();",
"@GET\n\t@Path(\"getAllCustomer\")\n\tpublic List<Customer> getAllCustomer() {\n\t\treturn ManagerHelper.getCustomerManager().getAllCustomer();\n\t}",
"List<Customer> getCustomerList();",
"@Override\n\tpublic void viewCustomers(Session session){\n\t\ttry{\n\t\t\tSystem.out.print(\"*----*****-------List of Customers-------*****----*\\n\");\n\t\t\t\n\t\t\t//pass these input items to client controller\n\t\t\tviewCustomers=mvc.viewCustomers(session);\n\n\t\t\tSystem.out.println(\"CustomerId\"+\" \"+\"UserName\");\n\t\t\tfor(int i = 0; i < viewCustomers.size(); i++) {\n\t System.out.println(viewCustomers.get(i)+\"\\t\"+\"\\t\");\n\t }\n\t System.out.println(\"<------------------------------------------------>\");\n\t\t\t//System.out.println(viewCustomers);\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tSystem.out.println(\"Online Market App- Remove Customer Exception: \" +e.getMessage());\n\t\t}\n\t}",
"@RequestMapping(value = \"/report/listCustomer\", method = RequestMethod.GET)\n public String getDatalistCustomer(Principal principal, Model model)\n throws Exception {\n UserDetails loginedUser = (UserDetails) ((Authentication) principal)\n .getPrincipal();\n LogUtils.getLogger().info(loginedUser);\n model.addAttribute(\"userName\", loginedUser.getUsername());\n\n List<Object[]> customers = customerService.findReportCustomer();\n model.addAttribute(\"customers\", customers);\n return \"ReportsCustomer\";\n }",
"public ArrayList<Customer> getAllCustomers();",
"List<Customer> loadAllCustomer();",
"public Object getAllCustomers(HttpServletRequest req);",
"@GetMapping(\"/api/customer\")\n\tpublic ResponseEntity<List<CustomerDetails>> getAllCustomerDetails() {\n\n\t\tList<CustomerDetails> customerDetaillist = customerService.getAllCustomerDetails();\n\n\t\treturn ResponseEntity.ok().body(customerDetaillist);\n\n\t}",
"public void listCustomers() {\r\n\t\tSystem.out.println(store.listCustomers());\r\n\t}",
"@Override\n\tpublic List<Customer> listCustomers() {\n\t\treturn null;\n\t}",
"@GetMapping(\"/search\")\r\n\tpublic String searchCustomers(@RequestParam(\"theSearchName\") String theSearchName,\r\n\t\t\t\t\t\t\t\t\tModel theModel) {\n\t\tList<Customer> theCustomers = customerService.searchCustomers(theSearchName);\r\n\t\t\t\t\r\n\t\t// add the customers to the model\r\n\t\ttheModel.addAttribute(\"customers\", theCustomers);\r\n\r\n\t\treturn \"list-customers\";\t\t\r\n\t}",
"@RequestMapping(value = \"/\", method = RequestMethod.GET)\n\tpublic @ResponseBody\n\tIterable<Customer> findAll() {\n\t\tLOGGER.debug(\"Rendering persons list\");\n\t\treturn customerService.findAll();\n\n\t}",
"@Override\n\tpublic List<CustomerData> getAllCustomer() {\n\t\treturn customerRepository.findAll();\n\t}",
"@Override\n\tpublic List<Customer> getAllCustomers() {\n\t\treturn customerRepository.findAllCustomer();\n\t}",
"List<Customer> getList();",
"@Override\n\t@Transactional\n\tpublic List<Customer> getCustomers() {\n\t\treturn customerDAO.getCustomers();\n\t\t\n\t}",
"@Override\n\tpublic List<Customer> findAllCustomer() {\n\t\treturn customerDao.findAllCustomer();\n\t}",
"@Override\n\tpublic Uni<List<Customer>> findAllCustomer() {\n\t\treturn repo.findAll().list();\n\t}",
"public List<Customer> findAll(){\n\t\treturn custRepo.findAll();\n\t}",
"@RequestMapping(method = RequestMethod.POST, value = \"/viewAllCustomer\", consumes = \"application/json\")\n\tpublic ResponseEntity<List<CustomerDaoBean>> viewuser(){\n\t\tList<CustomerDaoBean> beans = payService.viewdetails();\n\t\treturn ResponseEntity.accepted().body(beans);\n\t}",
"@Override\n\tpublic List<Customer> getCustomers() {\n\t\tSession session = sessionFactory.getCurrentSession();\n\t\t//create the query\n\t\tQuery<Customer> query = session.createQuery(\"from Customer order by lastName\", Customer.class);\n\t\t//get the result list\n\t\tList<Customer> customers = query.getResultList();\n\t\treturn customers;\n\t}",
"@Override\n\tpublic List<Customer> getCustomerList() {\n\t\tSession session = sessionFactory.getCurrentSession();\n\t\tQuery query=session.createQuery(\"Select c from Customer c\");\n\t\tList<Customer> list=(List<Customer>)query.getResultList();\n\t\t/*\n\t\t * Customer customer = (Customer)session.load(Customer.class,customerId);\n\t\t * */\n\t\treturn list;\n\t}",
"@RequestMapping(method = RequestMethod.GET)\n\t\tpublic ResponseEntity<Collection<Customer>> getAllUsers() {\n\t\t\treturn service.getAllCustomers();\n\t\t}",
"@Override\n\tpublic List<Customer> getCustomers() {\n\n\t\treturn sessionFactory.getCurrentSession().createQuery(\"from Customer order by lastName\", Customer.class)\n\t\t\t\t.getResultList();\n\n\t}",
"@GetMapping(produces = MediaType.APPLICATION_JSON_VALUE)\n\t/*\n\t * @ApiOperation(value = \"Get all the customers\", notes =\n\t * \"Send GET request to get all the customers\" , httpMethod = \"GET\", code = 200,\n\t * response = CustomerResponse.class, responseContainer = \"List\", produces =\n\t * MediaType.APPLICATION_JSON_VALUE)\n\t * \n\t * @ApiResponses(value = {\n\t * \n\t * @ApiResponse(code = 200, response = CustomerResponse.class, responseContainer\n\t * = \"List\", message = \"List of all customers\"),\n\t * \n\t * @ApiResponse(code = 401, response = ErrorResponse.class, message =\n\t * \"Invalid or expired token provided. Error code: CREDENTIALS_REJECTED\"),\n\t * \n\t * @ApiResponse(code = 500, response = ErrorResponse.class, message =\n\t * \"Runtime server error occurred. Error code: SERVER_ERROR\")})\n\t */\n\tpublic List<CustomerResponse> getCustomers() {\n\t\tlog.info(\"hit the controller\");\n\t\treturn customerService.findAll();\n\t}",
"@Override\r\n\tpublic List<Customer> getAllCustomers() {\n\t\treturn null;\r\n\t}",
"@GetMapping(\"/search/results\")\n public String showClientsByNameAndLastName(Model model, @ModelAttribute(CUSTOMER) CustomerDTO customerDTO) {\n Customer customer = mapDTOCustomerToPersistent(customerDTO);\n model.addAttribute(CUSTOMERS, customerService.findByNameAndLastName(customer.getFirstName(), customer.getLastName()));\n return CUSTOMERS_INDEX;\n }",
"@GetMapping(\"/customers\")\n\tpublic ResponseEntity<Object> getAllCustomers(HttpServletRequest request){\n\t\tif(service.findByEmail(SessionManager.getInstance().getSessionEmail(request.getSession())) == null) {\n\t\t\tSessionManager.getInstance().delete(request.getSession());\n\t\t\treturn new ResponseEntity<>(HttpStatus.UNAUTHORIZED); \n\t\t}else {\n\t\t\tList<Customer> c = cService.findAll();;\n\t\t\tMappingJacksonValue mappedCustomers = new MappingJacksonValue(c);\n\t\t\tmappedCustomers.setFilters(new SimpleFilterProvider().addFilter(Customer.FILTER, SimpleBeanPropertyFilter.filterOutAllExcept(\"id\", \"email\", \"name\")));\n\t\t\treturn new ResponseEntity<>(mappedCustomers, HttpStatus.OK);\n\t\t}\n\t}",
"public List<Customer> getAllCustomers() {\n Query query = em.createNamedQuery(\"Customer.findAll\");\r\n // return query result\r\n return query.getResultList();\r\n }",
"@RequestMapping( value = CONTEXT_URL,\n method = RequestMethod.GET,\n produces = {MediaType.APPLICATION_JSON_VALUE} )\n public List<CustomerDTO> getCustomers()\n throws CustomerNotFoundException\n {\n final String methodName = \"getCustomers\";\n logMethodBegin( methodName );\n List<CustomerDTO> customerDTOs = customerEntityService.getAllCustomers();\n logMethodEnd( methodName, customerDTOs );\n return customerDTOs;\n }",
"@Transactional\n\tpublic List<Customer> getCustomers() {\n\t\t\t\tSession currentSession = sessionFactory.getCurrentSession();\n\n\t\t\t\t// create a query ... sort by last name\n\t\t\t\tQuery<Customer> theQuery = currentSession.createQuery(\"from Customer order by lastName\", Customer.class);\n\n\t\t\t\t// execute query and get result list\n\t\t\t\tList<Customer> customers = theQuery.getResultList();\n\n\t\t\t\t// return the results\n\t\t\t\treturn customers;\n\t}",
"public List<Customer> findAllCustomers() throws DatabaseOperationException;",
"public static ObservableList<Customers> getAllCustomers() {\n return allCustomers;\n }",
"public List<Customer> getCustomerList() {\n return new ArrayList<Customer>(customersList);\n }",
"@Override\n\tpublic List<Customer> getCustomers() {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\n\t\t// create a query\n\t\tQuery<Customer> theQuery =\n\t\t\t\tcurrentSession.createQuery(\"from Customer order by lastName\", Customer.class);\n\n\t\t// execute query and get result list\n\t\tList<Customer> customers = theQuery.getResultList();\n\n\t\treturn customers;\n\t}",
"@Override\n\tpublic List<Customer> getAllCustomers() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic List<Customer> findAll() {\n\t\treturn customerRepository.findAll();\n\t}",
"@RequestMapping(value = \"/rs/customers/{customerId}/contacts\", method = RequestMethod.GET)\n public @ResponseBody\n ResourceItems list(@PathVariable Long customerId, @PageableDefault(size = 100) Pageable pageable) {\n Customer customer = new Customer(customerId);\n\n Iterable<Contact> contacts = service.findAll(customer, pageable);\n\n return builder.build(contacts);\n }",
"@Override\n\tpublic List<MstCustomerDto> getAllCustomer() {\n\t\tList<MstCustomerDto> listMstCustomerDtos=new ArrayList<>();\n\t\tList<Object[]> obj=new ArrayList<>();\n\t\t\n\t\tobj = mstCustomerDao.getAll();\n\t\tlistMstCustomerDtos = mapperFacade.mapAsList(obj, MstCustomerDto.class);\n\t\t\n\t\treturn listMstCustomerDtos;\n\t}",
"public void listCustomers() {\n\t\tSystem.out.println(\"\\nCustomers llegits desde la base de dades\");\n\n\t\tObjectSet<Customer> customers = db.query(Customer.class);\n\t\tcustomers.stream()\n\t\t\t.forEach(System.out::println);\n\n\t}",
"public List<Customer> getCustomers() {\n\t\treturn customers;\n\t}",
"@RequestMapping(\"/employee\")\r\n\tpublic List<Employee> getAllCustomers() throws EmployeeMaintainceException {\r\n\t\ttry {\r\n\t\t\treturn eService.getAllCustomers();\r\n\t\t}\r\n\r\n\t\tcatch (Exception e) {\r\n\t\t\tthrow new EmployeeMaintainceException(400, e.getMessage());\r\n\t\t}\r\n\r\n\t}",
"@Override\n\tpublic List<Customer> getCustomers() {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t\t\t\n\t\t// create a query ... sort by the lastname\n\t\tQuery<Customer> theQuery = \n\t\t\t\tcurrentSession.createQuery(\"from Customer order by lastName\",Customer.class);\n\t\t\n\t\t// execute query and get result list\n\t\tList<Customer> customers = theQuery.getResultList();\n\t\t\t\t\n\t\t// return the results\t\t\n\t\treturn customers;\n\t}",
"@Override\r\n\tpublic List<Customer> getAllCustomers() {\r\n\t\tList<Customer> allCustomers = new ArrayList<Customer>();\r\n\t\tallCustomers = customerRepository.findAll();\r\n\t\tif (!allCustomers.isEmpty()) {\r\n\t\t\treturn allCustomers;\r\n\t\t} else {\r\n\t\t\tthrow new EmptyEntityListException(\"No Customers Found.\");\r\n\t\t}\r\n\r\n\t}",
"@GetMapping(\"/list\")\n\tpublic String listContacts(Model theModel) {\n\t\tList<Contact> theContacts = contactService.findAll();\n\t\t\n\t\t// add to the model\n\t\ttheModel.addAttribute(\"contacts\", theContacts);\n\t\t\n\t\treturn \"contacts/list-contacts\";\n\t}",
"public List<Customer> getCustomerByID() {\n Query query = em.createNamedQuery(\"Customer.findByCustomerId\")\r\n .setParameter(\"customerId\", custID);\r\n // return query result\r\n return query.getResultList();\r\n }",
"@RequestMapping(value = \"/viewAllCoffee\", method = RequestMethod.GET)\n\tpublic List<Coffee> viewAllCoffee() {\n\t\tCoffeeDAO cd = new CoffeeDAO();\n\t\tList<Coffee> listCoffee = cd.getAllCoffee();\n\t\treturn listCoffee;\n\t}",
"private void getCustomer() {\n final LoginGet loginget = new LoginGet();\n loginget.setLoginGetListener(new LoginGetListener() {\n\n @Override\n public void getMember(ArrayList<Customer> list) {\n\n }\n\n @Override\n public void getCustomer(ArrayList<Customer> list) {\n customerList = new ArrayList<Customer>();\n customerList.addAll(list);\n if (customerList.size() > 0) {\n defaultPage.setVisibility(View.GONE);\n ll.setVisibility(View.VISIBLE);\n myNewCustomersAdapter = new MyNewCustomersAdapter(\n NewFriendsActivity.this, customerList);\n listView.setAdapter(myNewCustomersAdapter);\n } else {\n tv2.setText(\"You haven't friends for a long time\");\n }\n\n }\n });\n loginget.CustomerRequest(NewFriendsActivity.this);\n\n }",
"public String list(){\n\t\tif(name == null) {\n\t\t\ttry {\n\t\t\t\tlist = customerBO.getAll();\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else {\n\t\t\tList<Customer> l = new ArrayList<Customer>();\n\t\t\ttry {\n\t\t\t\tl = customerBO.getAll();\n\t\t\t\tfor(Customer cus: l) {\n\t\t\t\t\tString CustomerName = cus.getFirstName() + \" \" + cus.getLastName();\n\t\t\t\t\tif(CustomerName.compareTo(name) == 0) {\n\t\t\t\t\t\tlist.add(cus);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tint total = list.size();\n\t\t\t\tint div = total / STATIC_ROW_MAX;\n\t\t\t\tif(div * STATIC_ROW_MAX == total) {\n\t\t\t\t\ttotalPage = div;\n\t\t\t\t} else {\n\t\t\t\t\ttotalPage = div + 1;\n\t\t\t\t}\t\n\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t}\n\t\tint index = 0, begin = 0;\n\t\tbegin = (pageIndex - 1) * STATIC_ROW_MAX;\n\t\tif(pageIndex < totalPage) {\n\t\t\tindex = pageIndex * STATIC_ROW_MAX;\n\t\t} else {\n\t\t\tindex = list.size();\n\t\t}\n\t\tfor(int i = begin; i < index; i++) {\n\t\t\tlistCustomer.add(list.get(i));\t\t\t\t\n\t\t}\n\n\t\treturn \"list\";\n\t}",
"@Override\n\t@Transactional\n\tpublic List<AMOUNT> getCustomers() {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\n\t\t// create a query\n\t\tQuery<AMOUNT> theQuery = currentSession.createQuery(\"from Customer ORDER BY lastName\", AMOUNT.class);\n\n\t\t// execute query and get result list\n\t\tList<AMOUNT> customers = theQuery.getResultList();\n\n\t\t// return the results\n\t\treturn customers;\n\t}",
"@GetMapping(value = \"/addCustomer\")\n\tpublic String getCustomer(Model model) {\n\t\t// Create object and add to model for form\n\t\tCustomer customer = new Customer();\n\t\tmodel.addAttribute(\"Customer\", customer);\n\t\t// Returns showCustomers.jsp (see webapp/jsp folder)\n\t\treturn \"addCustomer\";\n\t}",
"@Override\n\t@Transactional\n\tpublic List<Customer> getAll() {\n\t\tList<Customer> loadAll = hibernateTemplate.loadAll(Customer.class);\n\t\treturn loadAll;\n\t}",
"@GetMapping()\n public List<AgentCustomerList> findAllAgentsCustomerList() {\n return agentRepo.findAllAgentCustomerListBy();\n }",
"@GetMapping(\"/customer/discount\")\n\tpublic List<Customer> getCustomerByDiscount(){\n\t\treturn customerRepository.getCustomerByDiscount(true);\n\t}",
"@GetMapping()\n public Iterable<Customer> getCustomers(CustomerSpec spec){\n return customerRepository.findAll(spec);\n }",
"public List<Customer> list() throws CustomerEmptyListException{\n\t\tList<Customer> customerList = new LinkedList<Customer>();\n\t\t\n\t\tif (repository.findAll() == null) {\n\t\t\tthrow new CustomerEmptyListException(\"There is no customer in the repository!\");\n\t\t}\n\t\t\n\t\tfor (Customer customer : repository.findAll()) {\n\t\t\tcustomerList.add(customer);\n\t\t}\n\t\treturn customerList;\n\t}",
"public ArrayList<Customer> getCustomerList() {\n\t\treturn customerList;\n\t}",
"public Collection<Customer> listCustomer10() {\r\n\t\tfinal Collection<Customer> list = this.customerRepository.listCustomer10();\r\n\t\treturn list;\r\n\t}",
"@Override\n\t@Transactional(readOnly=true)\n\tpublic List<Customer> findAll() {\n\t\treturn (List<Customer>) customerDAO.findAll();\n\t}",
"@GET\n\t@Path(\"/get\")\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic Response getCustomer()\n\t\t\tthrows RemoteException, MalformedURLException, NotBoundException, SQLException, ClassNotFoundException {\n\n\t\t// Connect to RMI and setup crud interface\n\t\tDatabaseOption db = (DatabaseOption) Naming.lookup(\"rmi://\" + address + service);\n\n\t\t// Connect to database\n\t\tdb.Connect();\n\n\t\t// Get all data in customers and add to list object\n\t\tList<Object> rs = db.ReadCustomers(\"SELECT * FROM CUSTOMERS\");\n\n\t\t// Disconnect to database\n\t\tdb.Close();\n\n\t\t// GSON import used to serialize and deserialize Java objects to JSON\n\t\tGson gson = new Gson();\n\n\t\t// Set to string\n\t\tString jsonResp = gson.toJson(rs);\n\n\t\t// Return webpage with json data from RMI\n\t\treturn Response.ok(jsonResp, MediaType.APPLICATION_JSON).build();\n\t}",
"@RequestMapping(value = \"\", method = RequestMethod.GET)\n\tpublic String getContacts(Model model) {\n\t\tmodel.addAttribute(contactService.getContacts());\n\t\treturn contactListViewName;\n\t}",
"@SuppressWarnings(\"unchecked\")\r\n\tpublic List<Customer> listRecords() {\n\t\treturn sessionFactory.getCurrentSession().createQuery(\"from CUSTOMER\").list();\r\n\r\n\t}",
"public Collection<Customer> listCustomer10() {\n\t\tfinal Collection<Customer> list = this.customerRepository.listCustomer10();\n\t\treturn list;\n\t}",
"@Override\n\tpublic List<Customer> searchCustomerByName(String name) throws BusinessException {\n\t\treturn customerViewAllDAO.searchCustomerByName(name);\n\t}",
"@RequestMapping(\"/customers\")\n public String customers() {\n return \"customers\";\n }",
"public static ObservableList<Customer> getCustomerList() throws SQLException{\r\n customerList.clear();\r\n Connection conn = DBConnection.getConnection();\r\n String selectStatement = \"SELECT * FROM customers;\";\r\n DBQuery.setPreparedStatement(conn, selectStatement);\r\n PreparedStatement ps = DBQuery.getPreparedStatement();\r\n ps.execute();\r\n ResultSet rs = ps.getResultSet();\r\n\r\n //creates customer and adds to list\r\n while(rs.next())\r\n {\r\n int customerID = rs.getInt(\"Customer_ID\");\r\n String customerName = rs.getString(\"Customer_Name\");\r\n String address = rs.getString(\"Address\");\r\n String state = getDivisionName(rs.getInt(\"Division_ID\"));\r\n String postalCode = rs.getString(\"Postal_Code\");\r\n String country = getCountryName(getCountryID(rs.getInt(\"Division_ID\")));\r\n String phoneNumber = rs.getString(\"Phone\");\r\n Customer customer = new Customer(customerID,customerName,address,state,postalCode,country,phoneNumber);\r\n customerList.add(customer);\r\n }\r\n return customerList;\r\n }",
"public String list(){\n\t\tlist = connC.getAll();\n\t\tint index = 0, begin = 0;\n\t\tbegin = (pageIndex - 1) * STATIC_ROW_MAX;\n\t\tif(pageIndex < totalPage) {\n\t\t\tindex = pageIndex * STATIC_ROW_MAX;\n\t\t} else {\n\t\t\tindex = list.size();\n\t\t}\n\t\tfor(int i = begin; i < index; i++) {\n\t\t\tlistCustomer.add(list.get(i));\t\t\t\t\n\t\t}\n\t\treturn \"list\";\n\t}",
"@RequestMapping(value = \"/order/list\")\n\tpublic String list(Model model, HttpSession session, HttpServletRequest request, RedirectAttributes ra) {\n\n\t\tString return_page = \"\";\n\n\t\tCostumer c = new Costumer();\n\t\tString CID_string = request.getParameter(\"cid\");\n\n\t\tif (CID_string != null && StringUtils.isNumeric(CID_string)) {\n\t\t\t\n\t\t\tCID_string.toUpperCase();\n\t\t\tInteger CID = Integer.valueOf(CID_string);\n\t\t\tc.setCID(CID);\n\t\t\t\n\t\t\tCostumer costumer = this.costumerService.getCostumer(c);\n\n\t\t\tif (costumer == null) {\n\n\t\t\t\tString CID_str = (\"000000\" + CID).substring(CID.toString().length());\n\t\t\t\tra.addFlashAttribute(\"msgRetornoTipo\", \"warning\");\n\t\t\t\tra.addFlashAttribute(\"msgRetorno\", \"Client #\" + CID_str + \" not found.\");\n\n\t\t\t\treturn_page = \"redirect:/\";\n\t\t\t} else {\n\n\t\t\t\tList<Order> ordersList = this.orderService.getOrdersByClient(costumer);\n\n\t\t\t\tmodel.addAttribute(\"costumer\", costumer);\n\t\t\t\tmodel.addAttribute(\"ordersList\", ordersList);\n\n\t\t\t\treturn_page = \"order_list\";\n\t\t\t}\n\t\t} else {\n\t\t\tif (CID_string == null) CID_string = \"\";\n\t\t\tra.addFlashAttribute(\"msgRetornoTipo\", \"warning\");\n\t\t\tra.addFlashAttribute(\"msgRetorno\", \"Client \" + CID_string + \" not found.\");\n\n\t\t\treturn_page = \"redirect:/\";\n\t\t}\n\n\t\treturn return_page;\n\t}",
"public List<Customer> getCustomerList() {\r\n\t\tList<Object> columnList = null;\r\n\t\tList<Object> valueList = null;\r\n\t\tList<Customer> customers = new ArrayList<Customer>();\r\n\r\n\t\tif (searchValue != null && !searchValue.trim().equals(\"\")) {\r\n\t\t\tcolumnList = new ArrayList<Object>();\r\n\t\t\tvalueList = new ArrayList<Object>();\r\n\t\t\tcolumnList.add(searchColumn);\r\n\t\t\tvalueList.add(searchValue);\r\n\t\t}\r\n\t\tcustomers = customerService.searchCustomer(columnList, valueList,\r\n\t\t\t\tfirst, pageSize);\r\n\t\t\r\n\r\n\t\treturn customers;\r\n\t}"
] | [
"0.84124255",
"0.8300714",
"0.8193757",
"0.81036234",
"0.8074839",
"0.8015752",
"0.79897666",
"0.7963397",
"0.7953558",
"0.7852568",
"0.7776916",
"0.77352273",
"0.7711055",
"0.76755977",
"0.7606028",
"0.75774163",
"0.75742257",
"0.75519764",
"0.75306934",
"0.75295043",
"0.749419",
"0.7453022",
"0.74239475",
"0.73849666",
"0.7357438",
"0.73453027",
"0.7275409",
"0.7273333",
"0.7266198",
"0.7242072",
"0.7240876",
"0.7216836",
"0.71860474",
"0.7174056",
"0.71734047",
"0.7154906",
"0.71522516",
"0.71493053",
"0.7145411",
"0.710024",
"0.7096245",
"0.707561",
"0.705726",
"0.70552754",
"0.7050139",
"0.70458853",
"0.70453954",
"0.7022992",
"0.69742906",
"0.69578",
"0.69390494",
"0.69105005",
"0.69097894",
"0.6904602",
"0.68977654",
"0.68623555",
"0.6857754",
"0.68563473",
"0.68492764",
"0.6847606",
"0.68433994",
"0.68362933",
"0.6835545",
"0.68060505",
"0.67919374",
"0.6785023",
"0.67758894",
"0.67689127",
"0.6764507",
"0.6757401",
"0.675065",
"0.67498434",
"0.6744294",
"0.6730953",
"0.67263186",
"0.67243457",
"0.6708657",
"0.6695471",
"0.66852915",
"0.6680654",
"0.6662208",
"0.66596067",
"0.6652633",
"0.65802956",
"0.6569164",
"0.6524267",
"0.652406",
"0.65211153",
"0.6518102",
"0.64867985",
"0.6481096",
"0.64709467",
"0.6466104",
"0.64510554",
"0.6440927",
"0.6430718",
"0.64270633",
"0.6426307",
"0.64234215",
"0.6420773"
] | 0.77864695 | 10 |
/ Responds to HTTP GET Retrieves customer by Id and then injects the model in the "show" view. | @PreAuthorize("hasRole('ROLE_ADMIN')")
@RequestMapping(value = "/{id}", method = RequestMethod.GET)
public String show(@PathVariable("id") Long id, Model uiModel) {
Customer customer = customerService.findById(id);
uiModel.addAttribute("customer", customer);
return "customers/show";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@GetMapping(\"/{id}\")\n public String show(@PathVariable(\"id\") long id,\n Model model) {\n Customer customer = customerService.showCustomerById(id);\n model.addAttribute(CUSTOMER, customer);\n model.addAttribute(ACTUAL_ADDRESS, customer.getActualAddress());\n model.addAttribute(REGISTERED_ADDRESS, customer.getRegisteredAddress());\n return CUSTOMERS_CUSTOMER;\n }",
"@GetMapping(\"/customer/{id}\")\r\n\tpublic Customer viewCustomerbyId(@PathVariable(\"id\") int customerId){\r\n\t\tif(custService.viewCustomerbyId(customerId)==null) {\r\n\t\t\tthrow new CustomerNotFoundException(\"Customer not found with this id\" +customerId);\r\n\t\t}\r\n\t\treturn custService.viewCustomerbyId(customerId);\r\n\t\t\r\n\t}",
"@Override\n\tpublic Customer show(int id) {\n\t\t\n\t\tOptional<Customer> customerOpt = this.customerRepo.findById(id);\n\t\tif(customerOpt.isPresent()) {\n\t\t\tCustomer customer = customerOpt.get();\n\t\t\treturn customer;\n\t\t}\n\t\telse {\n\t\t\treturn null;\n\t\t}\n\t}",
"@RequestMapping(value = \"/customer/{id}\",method=RequestMethod.GET)\n @ResponseStatus(HttpStatus.OK)\n public CustomerViewModel findCustomerById(@PathVariable(\"id\") int id){\n //create a customer View Model using the find method from the service layer\n CustomerViewModel customerViewModel = service.findCustomer(id);\n\n //if it does not exist, through an illegal argument exception\n if(customerViewModel == null){\n //throw new\n }\n\n //return the requested customer View Model\n return customerViewModel;\n }",
"@Override\n\tpublic Customer viewCustomer(int customerId) {\n\t\t// TODO Auto-generated method stub\n\t\tCustomer cust = repository.findById(customerId)\n\t\t\t\t.orElseThrow(() -> new EntityNotFoundException(\"Currently No Customer is available with this id\"));\n\t\treturn cust;\n\t}",
"@GetMapping(\"/{id}\")\n public Customer getCustomer(@PathVariable long id){\n return customerRepository.findById(id);\n }",
"Customer getCustomerById(final Long id);",
"@RequestMapping(value = \"/ws/customers/{id}\", method = RequestMethod.GET)\n public @ResponseBody\n CustomerDto getCustomer(@PathVariable(\"id\") Long customerId) {\n logger.info(\"Tries to find customer by id={}\", customerId);\n\n return customerAssembler.assembly(getCustomerById(customerId));\n }",
"@RequestMapping(method = RequestMethod.GET, value = \"/{id}\")\n\t public ResponseEntity<Customer> getCustomerWithId(@PathVariable Long id) {\n\t return service.getCustomerWithId(id);\n\t }",
"@Override\n\tpublic Customer getCustomer(Integer id) {\n\t\treturn customerDao.findById(id);\n\t}",
"Customer getCustomerById(int customerId);",
"@GetMapping(\"/customer/{id}\")\n\tpublic ResponseEntity<Customer> getCustomerById(@PathVariable Long id) {\n\t\tCustomer customer = customerRepository.findById(id)\n\t\t\t\t.orElseThrow(() -> new ResourceNotFoundException(\"Customer not exist with id :\" + id));\n\t\treturn ResponseEntity.ok(customer);\n\t}",
"@GetMapping(\"/customer/{id}\")\n\tpublic ResponseEntity<Object> getCustomerDetailed(@PathVariable(\"id\") Integer id, HttpServletRequest request){\n\t\tif(service.findByEmail(SessionManager.getInstance().getSessionEmail(request.getSession())) == null) {\n\t\t\tSessionManager.getInstance().delete(request.getSession());\n\t\t\treturn new ResponseEntity<>(HttpStatus.UNAUTHORIZED); \n\t\t}else {\n\t\t\tCustomer cus = cService.findById(id);\n\t\t\tif(cus == null) return new ResponseEntity<>(HttpStatus.NOT_FOUND);\n\t\t\tMappingJacksonValue mappedCustomer = new MappingJacksonValue(cus);\n\t\t\tmappedCustomer.setFilters(new SimpleFilterProvider().addFilter(Customer.FILTER, SimpleBeanPropertyFilter.serializeAll()));\n\t\t\treturn new ResponseEntity<>(mappedCustomer, HttpStatus.OK);\n\t\t}\n\t}",
"@GET\n\t@Path(\"get\")\n\tpublic Customer getCustomer(@QueryParam(\"id\") int id) {\n\t\treturn ManagerHelper.getCustomerManager().get(id);\n\n\t}",
"@Override\n\tpublic Customer retrieveCustomer(Integer id) {\n\n\t\tCustomer customer = new Customer();\n\n\t\tfor (Customer cust : customers) {\n\t\t\tif (cust.getId() == id) {\n\t\t\t\tcustomer.setId(id);\n\t\t\t\tcustomer.setUsername(cust.getUsername());\n\t\t\t\tcustomer.setFirstName(cust.getFirstName());\n\t\t\t\tcustomer.setLastName(cust.getLastName());\n\t\t\t\tcustomer.setEmail(cust.getEmail());\n\t\t\t\tcustomer.setUserType(cust.getUserType());\n\t\t\t\tcustomer.setPassword(cust.getPassword());\n\t\t\t\tcustomer.setAddress(cust.getAddress());\n\t\t\t}\n\t\t}\n\t\tlogger.info(\"A GET call retrieved a customer: retrieveCustomer()\");\n\t\treturn customer;\n\t}",
"public ResponseEntity<customer.controller.Customer> getCustomerById(Long id);",
"@GetMapping(\"/customers/{customer_id}\")\n\tpublic Customer getcustomer(@PathVariable(\"customer_id\") int customerid) {\n\t\tCustomer thecustomer=thecustomerService.getCustomer(customerid);\n\t\tif(thecustomer==null) {\n\t\t\tthrow new CustomerNotFoundException(\"Customer with id : \"+customerid+\" not found\");\n\t\t}\n\t\t\n\t\treturn thecustomer;\n\t}",
"@GetMapping(\"/customer/{id}\")\r\n public Customer getCustomerById(@PathVariable Long id) {\r\n // orElseThrow means it will attempt to unwrap the optional\r\n // if there's nothing there, it will throw an exception\r\n return customerRepository.findById(id).orElseThrow();\r\n }",
"@Override\n public JSONObject viewCustomerById(long id) {\n\n return in_salescustdao.viewSLCustomerByID(id);\n }",
"@GetMapping(\"/api/customer/{id}\")\n\tpublic ResponseEntity<CustomerDetails> getCustomerDetailsByID(@PathVariable(\"id\") long id) {\n\t\tCustomerDetails customerDetails = customerService.getCustomerDetailsByID(id);\n\t\treturn ResponseEntity.ok().body(customerDetails);\n\n\t}",
"Customer findById(Long id);",
"@Override\n\tpublic Customer getCustomer(int id) {\n\t\treturn sessionFactory.getCurrentSession().get(Customer.class, id);\n\t}",
"public Customer displayCustomer(int cid);",
"@Override\r\n\tpublic Customer getCustomer(String custId) {\r\n\t\tOptional<Customer> optionalCustomer = null;\r\n\t\tCustomer customer = null;\r\n\t\toptionalCustomer = customerRepository.findById(custId);\r\n\t\tif (optionalCustomer.isPresent()) {\r\n\t\t\tcustomer = optionalCustomer.get();\r\n\t\t\treturn customer;\r\n\t\t} else {\r\n\t\t\tthrow new EntityNotFoundException(\"Customer With Id \" + custId + \" does Not Exist.\");\r\n\t\t}\r\n\r\n\t}",
"public String getCustomer(String custId);",
"@GetMapping(\"/customerdetails\")\n\tpublic String listOfCustomer(Model model) {\n\t\tList<Customer> customerDetails = customerService.findByIsEnable();\n\t\tmodel.addAttribute(\"customerDetails\", customerDetails);\n\t\treturn \"customer-details\";\n\t}",
"@GetMapping(value = \"/addCustomer\")\n\tpublic String getCustomer(Model model) {\n\t\t// Create object and add to model for form\n\t\tCustomer customer = new Customer();\n\t\tmodel.addAttribute(\"Customer\", customer);\n\t\t// Returns showCustomers.jsp (see webapp/jsp folder)\n\t\treturn \"addCustomer\";\n\t}",
"@GetMapping(\"/customers/{id}\")\n\tpublic ResponseEntity<Customer> getCustomerById(@PathVariable(value = \"id\") Long customerId)\n\t\tthrows ResourceNotFoundException {\n\t\tCustomer customer = customerRepository.findById(customerId)\n\t\t\t\t.orElseThrow(() -> new ResourceNotFoundException(\"Custumer not found for this id :: \" + customerId));\n\t\t\t\treturn ResponseEntity.ok().body(customer);\n\t}",
"@RequestMapping( value = CONTEXT_URL + \"/id/{id}\",\n method = RequestMethod.GET,\n produces = {MediaType.APPLICATION_JSON_VALUE} )\n public CustomerDTO getCustomer( @PathVariable String id )\n throws CustomerNotFoundException\n {\n final String methodName = \"getCustomer\";\n logMethodBegin( methodName, id );\n CustomerDTO customerDTO = this.customerEntityService\n .getCustomerDTO( UUIDUtil.uuid( id ));\n logMethodEnd( methodName, customerDTO );\n return customerDTO;\n }",
"@Override\n public Customer getCustomerById(Long id) {\n log.debug(\"Inside getCustomerById method\");\n return customerRepository.findById(id).orElseThrow(\n () -> new ResourceNotFoundException(\"No customer present with the id : \" + id));\n }",
"@GetMapping(\"/carsAndCustomers/customer/edit/{id}\")\n public String editForm(@PathVariable(\"id\") Integer id, Model model) {\n Customer customer = customerRepository.getOne(id);\n model.addAttribute(\"customer\", customer);\n return \"fragments/editCustomerForm :: editCustomerForm\";\n\n }",
"@Override\n\tpublic CustomerData getCustomer(Long custId) {\n\t \n\t\tOptional<CustomerData> optionalCust = customerRepository.findById(custId);\n\t\t//Optional object use for check if a customer id is existing or not\n if(optionalCust.isPresent()) {\n return optionalCust.get(); //if customer id is exist then return a value\n }\n\t\treturn null;\n\t\t\n\t}",
"@Override\n @Transactional\n public Customer getCustomer(int customerId) {\n Optional<Customer> queryResult = customerRepository.findById(customerId);\n // if null return new Customer(), otherwise return the Customer\n return queryResult.orElseGet(Customer::new);\n }",
"@GetMapping(\"/list\")\n\tpublic String listCustomers(Model themodel) {-get Customer from DAO\n\t\t//2-Add to MVC model\n\t\t\n\t\t//1\n\t\tList<Customer> theCustomers= customerService.getCustomers();\n\t\t\n\t\t\n\t\t//2\n\t\tthemodel.addAttribute(\"customers\",theCustomers);\n\t\t\n\t\t\n\t\t\n\t\treturn \"list-customers\";\n\t}",
"@GetMapping(value = \"/showCustomers\")\n\tpublic String getAllCustomers(Model model) {\n\t\t// AllCustomers model attribute iterated over to display Customers in table on\n\t\t// JSP page\n\t\tmodel.addAttribute(\"AllCustomers\", customerService.getCustomers());\n\t\t// Returns showCustomers.jsp (see webapp/jsp folder)\n\t\treturn \"showCustomers\";\n\t}",
"@RequestMapping(\"/customer/editCustomer/{id}\")\n public String editCustomer(@PathVariable(\"id\") int id, Model model) {\n Customer customer = customerService.getCustomerById(id);\n\n model.addAttribute(\"customer\", customer);\n\n return \"editCustomer\";\n }",
"@RequestMapping(value = \"/customer-addres/{id}\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<CustomerAddres> getCustomerAddres(@PathVariable Long id) {\n log.debug(\"REST request to get CustomerAddres : {}\", id);\n CustomerAddres customerAddres = customerAddresRepository.findOne(id);\n return Optional.ofNullable(customerAddres)\n .map(result -> new ResponseEntity<>(\n result,\n HttpStatus.OK))\n .orElse(new ResponseEntity<>(HttpStatus.NOT_FOUND));\n }",
"@RequestMapping(\"/cars/{carId}/Customer/{id}\")//لما حطيت id لازم احط تحت باث فاريبل\r\n\t public CustomerDto FindCustomer(@PathVariable String id) {\r\n\t\treturn serviceUsers.getCustomer(id);\r\n\t }",
"@RequestMapping(\"/myCustomers/{id}\")\n\tpublic String myCustomers(@PathVariable(\"id\") int id, Model m, Principal princpl) {\n\t\t\n\t\tAgentModel agentById = this.servimple.getAgentModelById(id);\n\t\tif(agentById.getPosition().equals(\"Active\")) {\n\t\t\t\n\t\tCustomerModel[] allCustomer = this.servimple.customerByAgent(id);\n\t\tterget = \"Customer Details\";\n\t\tm.addAttribute(\"mycustomr\", allCustomer);\n\t\tm.addAttribute(\"terget\", terget);\n\t\treturn \"Agent/CustomerByAgent\";\n\t\t}\n\t\t\n\t\telse {\n\t\t\tm.addAttribute(\"sorry\", \"Sorry! Your Id is Deactivated. To activate your id Plz Contact to Admin.\");\n\t\t\treturn \"Agent/agentPanel\";\n\t\t}\n\t\t\n\t}",
"@Override\r\n\tpublic Customer getCustomerById(int id) {\n\t\treturn customerdao.getCustomerById(id);\r\n\t}",
"public Customer findById(Integer id) {\n\t\treturn customerDao.findById(id);\r\n\t}",
"@PreAuthorize(\"#oauth2.hasAnyScope('read','write','read-write')\")\n\t@RequestMapping(method = GET, value = \"/{id}\")\n\tpublic Mono<ResponseEntity<Customer>> oneCustomer(@PathVariable @NotNull ObjectId id) {\n\n\t\treturn repo.findById(id)\n\t\t\t.map(customer -> ok().contentType(APPLICATION_JSON_UTF8).body(customer))\n\t\t\t.defaultIfEmpty(notFound().build());\n\t}",
"@Override\n\t@Transactional\n\tpublic Customer getCustomer(int theId) {\n\t\t;\n\t\treturn customerDAO.getCustomer(theId);\n\t}",
"public void retrieveACustomerWithID(long id) {\r\n\t\tSystem.out.println(\"\\nCustomer with id \" + id);\r\n\t\tEntityManager em = emf.createEntityManager();\r\n\t\tEntityTransaction tx = em.getTransaction();\r\n\t\ttx.begin();\r\n\t\tCustomer2 customer = em.find(Customer2.class, id);\r\n\t\tif(customer == null){\r\n\t\t\tSystem.out.println(\"\\nNo such customer with id: \" + id);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tSystem.out.println(customer);\r\n\t\ttx.commit();\r\n\t\tem.close();\r\n\t}",
"@Override\n public JSONObject viewSLCustomerByID(long id) {\n\n return in_salescustdao.viewSLCustomerByID(id);\n }",
"public void lookupCustomer(String customerId) {\r\n customer = transaction.getCustomerInfo(customerId);\r\n }",
"@Override\n\tpublic Customer getCustomer(int theId) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t\n\t\t// now retrieve/read from database using the primary key\n\t\tCustomer theCustomer = currentSession.get(Customer.class, theId);\n\t\t\n\t\treturn theCustomer;\n\t}",
"@Override\n\tpublic Customer getCustomer(int theId) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\n\t\t//now retrieve/read from database using the primary key or id..\n\t\tCustomer theCustomer = currentSession.get(Customer.class,theId);\n\n\t\treturn theCustomer;\n\t}",
"@ApiOperation(value = \"Get a customer by id\", notes = \"\")\n @GetMapping(value = {\"/{customerId}\"}, produces = MediaType.APPLICATION_JSON_VALUE)\n @ResponseStatus(HttpStatus.OK)\n public CustomerDTO getCustomerById(@PathVariable Long customerId) {\n\n return customerService.getCustomerById(customerId);\n }",
"@RequestMapping(value = \"/v2/customers\", method = RequestMethod.GET)\r\n\tpublic List<Customer> customers() {\r\n JPAQuery<?> query = new JPAQuery<Void>(em);\r\n QCustomer qcustomer = QCustomer.customer;\r\n List<Customer> customers = (List<Customer>) query.from(qcustomer).fetch();\r\n // Employee oneEmp = employees.get(0);\r\n\t\treturn customers;\r\n }",
"@GetMapping(\"/list\")\t//can be used instead of @@RequestMapping\r\n\tpublic String listCustomer(Model theModel){\n\t\tList<Customer> theCustomers = customerService.getCustomers();\r\n\t\t\r\n\t\t//add customer to model\r\n\t\ttheModel.addAttribute(\"customers\", theCustomers);\r\n\t\t\r\n\t\treturn \"list-customers\";\r\n\t}",
"@Override\n\tpublic Customer getCustomer(int theId) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\n\t\t// now retrieve/read from database using the primary key\n\t\tCustomer theCustomer = currentSession.get(Customer.class, theId);\n\n\t\treturn theCustomer;\n\t}",
"public Response<CustomerResponseDto> viewCustomers(String customerId) {\n\t\tResponse<CustomerResponseDto> responseDto = new Response<>();\n\t\tOptional<Customer> getCustomer = customerRepo.findByCustomerId(customerId);\n\t\tif (!getCustomer.isPresent())\n\t\t\tthrow new NoDataFoundException(CustomerConstants.CUSTOMER_NOT_FOUND);\n\t\tCustomerResponseDto response = modelMapper.map(getCustomer.get(), CustomerResponseDto.class);\n\t\tresponseDto.setData(response);\n\t\tresponseDto.setError(false);\n\t\tresponseDto.setMessage(CustomerConstants.CUSTOMER_DETAILS);\n\t\tresponseDto.setStatus(HttpServletResponse.SC_OK);\n\t\treturn responseDto;\n\t}",
"@Override\n\tpublic Iterable<Customer> displayCust() {\n\t\treturn customerRepository.findAll();\n\t}",
"public Customer getCustomerBy_id(ObjectId _id) {\n\t\treturn custRepo.findBy_id(_id);\n\t}",
"@Override\n\t@Transactional\n\tpublic Customer getCustomerbyId(int theid) {\n\n\t\tCustomer thecustomer = hibernateTemplate.get(Customer.class, theid);\n\n\t\treturn thecustomer;\n\t}",
"public Customer getCustomerById(Integer id) throws DataNotFoundException {\n Optional<Customer> optionalCustomer = customerRepository.findById(id);\n if(optionalCustomer.isPresent())\n return optionalCustomer.get();\n else\n throw new DataNotFoundException(\"Customer with id: \" + id + \" not found\");\n }",
"public static Customer getCustomer(int id_cust) {\n Connection c = connection();\n PreparedStatement stmt;\n int id = 0;\n String name = null;\n String email = null;\n String password = null;\n Customer customer = null;\n try {\n String sql = \"SELECT * FROM customer WHERE id=?;\";\n stmt = c.prepareStatement(sql);\n stmt.setInt(1, id_cust);\n ResultSet rs = stmt.executeQuery();\n while (rs.next()) {\n id = rs.getInt(\"id\");\n name = rs.getString(\"name\");\n email = rs.getString(\"email\");\n password = rs.getString(\"password\");\n }\n stmt.close();\n c.close();\n customer = new Customer(id, name, email, password);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n return customer;\n }",
"@Override\n\tpublic Uni<Customer> findCustomerById(Long cid) {\n\t\treturn repo.findById(cid);\n\t}",
"public List<Customer> getCustomerByID() {\n Query query = em.createNamedQuery(\"Customer.findByCustomerId\")\r\n .setParameter(\"customerId\", custID);\r\n // return query result\r\n return query.getResultList();\r\n }",
"@Override\n\tpublic Customer findCustomer(int customerId) {\n\t\treturn null;\n\t}",
"public Customer getCustomer(int id) {\r\n\t\treturn manager.getCustomer(id);\r\n\t}",
"@Override\n public Personn findById(Integer idCustomer) {\n return manager.find(Personn.class,idCustomer );\n //return findByCriteria(criteria);\n }",
"@GetMapping(\"/showFormForUpdate\")\n\tpublic String showFormForUpdate(@RequestParam(\"customerId\") int id, Model model) {\n\t\tCustomer customer = customerService.getById(id);\n\t\t\n\t\t\n\t\tmodel.addAttribute(\"customer\", customer);\n\t\t\n\t\treturn \"customer-form\";\n\t}",
"@Override\n\tpublic Customer findById(Long customerId) {\n\t\tOptional<Customer> optional = custRepository.findById(customerId);\n\t\tif(!optional.isPresent()) {\n\t\t\tthrow new CustomerNotFoundException(\"Customer with id \"+customerId+\" not found\");\n\t\t}\n\t\treturn optional.get();\n\t\t\n\t}",
"@Override\n public Customer getCustomer(Long userId) {\n Optional<Customer> customer = customerDao.getCustomer(userId);\n if (!customer.isPresent()) {\n logger.error(\"Customer with this id {} doesn't exist\", userId);\n }\n return customer.orElseThrow(ResourceNotFoundException::new);\n }",
"@Override\n\tpublic Customer getCustomer(int customerId) {\n\t\tSession session=sessionFactory.getCurrentSession();\n\t\ttry {\n\t\t\t\n\t\t\tCustomer customer =session.get(Customer.class, customerId);\n\t\t return customer;\t\t\t\n\t\t}\n\t\tcatch(HibernateException exception){\n\t\t\texception.printStackTrace();\n\t\t}\n\t\treturn null;\n\t\t\n\t}",
"@GetMapping(path = \"/view/{id}\")\n public String showById(@PathVariable(\"id\") Long id, Model model) {\n log.info(\"READ itinerary by ID : {}\", id);\n \n Itinerary itinerary = itineraryService.findById(id);\n \n if (Objects.isNull(itinerary)) {\n log.info(\"Any sector found with ID : {}\", id);\n return \"redirect:/itineraries/view\";\n }\n \n TreeSet<Comment> comments = new TreeSet<>(itinerary.getComments());\n \n model.addAttribute(\"itinerary\", itinerary);\n model.addAttribute(\"comment\", new Comment());\n model.addAttribute(\"comments\", comments);\n \n return VIEW;\n }",
"@Override\n\tpublic Customer getCustomers(int theId) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t\n\t\t// retrieve object from database using the ID\n\t\tCustomer theCustomer = currentSession.get(Customer.class, theId);\n\t\t\n\t\t// return the results\n\t\treturn theCustomer;\n\t}",
"@Test\n\tpublic void readCustomerById() {\n\t\tString name = \"Leo\";\n\t\tString address = \"Auckland\";\n\t\tString telephoneNumber = \"021123728381\";\n\t\tICustomer customer = customerController.create(name, address, telephoneNumber);\n\t\tlong id = customer.getId();\n\t\tname = \"Mark\";\n\t\taddress = \"Auckland\";\n\t\ttelephoneNumber = \"0211616447\";\n\t\tcustomerController.create(name, address, telephoneNumber);\n\n\t\t// When\n\t\tICustomer cus = customerController.read(id);\n\n\t\t// Then\n\t\tAssert.assertEquals(customer, cus);\n\t}",
"@Override\n public CustomerDetails viewAccount(String user) {\n CustomerDetails details=customerRepository.findById(user).get(); \n log.debug(user);\n return details; \n\n }",
"@GetMapping(\"/list\")\n public String listCustomers(Model model){\n List<Customer> customerList = customerDAO.getCustomers();\n\n //add customers to the model\n model.addAttribute(\"customers\", customerList);\n\n return \"list-customers\";\n }",
"@GetMapping(\"/showForm\")\n public String showFormForAdd(Model theModel) {\n Customer theCustomer = new Customer();\n theModel.addAttribute(\"customer\", theCustomer);\n return \"customer-form\";\n }",
"@GetMapping(\"/customers\")\n public List<CustomerHibernate> listCustomers() {\n return customerService.findAll();\n }",
"@GetMapping(\"/api/customer\")\n\tpublic ResponseEntity<List<CustomerDetails>> getAllCustomerDetails() {\n\n\t\tList<CustomerDetails> customerDetaillist = customerService.getAllCustomerDetails();\n\n\t\treturn ResponseEntity.ok().body(customerDetaillist);\n\n\t}",
"@GetMapping()\n public String showAllCustomers(Model model) {\n model.addAttribute(CUSTOMERS, customerService.showCustomerList());\n return CUSTOMERS_INDEX;\n }",
"CustomerDto findById(Long id);",
"@Override\n\tpublic Customer getCustomerById(long customerId) {\n\t\treturn null;\n\t}",
"public Customer getCustomer() {\r\n return customer;\r\n }",
"public Customer getCustomerById(Integer id) {\n\t\treturn (Customer) sessionFactory.getCurrentSession().createCriteria(Customer.class).add(Restrictions.eq(\"id\",id)).uniqueResult();\r\n\t}",
"@Override\r\n\tpublic Customer getCustomer(int customerID) {\n\t\treturn null;\r\n\t}",
"@GetMapping(\"/showFormForUpdate\")\r\n\tpublic String showFormForUpdate(@RequestParam(\"customerId\") int id, Model theModel){\n\t\tCustomer theCustomer = customerService.getCustomer(id);\r\n\t\t\r\n\t\t//set customer as model attribute to pre-populate\r\n\t\ttheModel.addAttribute(\"customer\",theCustomer);\r\n\t\t\r\n\t\t//send over to our form\r\n\t\treturn \"customer-form\";\r\n\t}",
"public Customer getCustomer() {\n return customer;\n }",
"Customer getCustomer();",
"@GetMapping(\"/list\") // @RequestMapping(path = \"/list\", method = RequestMethod.GET)\r\n\tpublic String listCustomers(Model theModel) {\n\t\tList<Customer> theCustomers = customerService.getCustomers();\r\n\t\t\t\t\r\n\t\t// add the customers to the model\r\n\t\ttheModel.addAttribute(\"customers\", theCustomers);\r\n\t\t\r\n\t\treturn \"list-customers\";\r\n\t}",
"@RequestMapping(value = \"/customerOrders/{id}\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<CustomerOrder> getCustomerOrder(@PathVariable Long id) {\n log.debug(\"REST request to get CustomerOrder : {}\", id);\n CustomerOrder customerOrder = customerOrderRepository.findOne(id);\n return Optional.ofNullable(customerOrder)\n .map(result -> new ResponseEntity<>(\n result,\n HttpStatus.OK))\n .orElse(new ResponseEntity<>(HttpStatus.NOT_FOUND));\n }",
"@GetMapping(\"/customers\")\n\tpublic List<Customer> getcustomers(){\n\t\t\n\t\treturn thecustomerService.getCustomers();\n\t}",
"public de.htwg_konstanz.ebus.framework.wholesaler.vo.Customer getCustomer () {\r\n\t\treturn customer;\r\n\t}",
"@Override\n\tpublic Customer fetchCustomerByIdWithBills(Long id) {\n\t\treturn customerDAO.fetchByIdWithBills(id);\n\t}",
"@Override\n public CustomerEntity getCustomerData(Long id) {\n return customerPersistencePort.getUser(id);\n }",
"@GetMapping(\"/allCustomers\")\n public List<Customer> getAllCusData() {\n return customerData.showList();\n }",
"@GET\n\t@Path(\"/edit/{id}\")\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic Response getCustomerbyID(@PathParam(value = \"id\") int id)\n\t\t\tthrows RemoteException, MalformedURLException, NotBoundException, ClassNotFoundException, SQLException {\n\t\tDatabaseOption db = (DatabaseOption) Naming.lookup(\"rmi://\" + address + service);\n\n\t\t// Connect to database\n\t\tdb.Connect();\n\n\t\t// Get specific car by its unique id\n\t\tList<Object> rs = db.ReadCustomers(\"SELECT * FROM CUSTOMERS WHERE id=\" + id);\n\n\t\t// Connect to database\n\t\tdb.Close();\n\n\t\t// GSON import used to serialize and deserialize Java objects to JSON\n\t\tGson gson = new Gson();\n\n\t\t// Set to string\n\t\tString jsonResp = gson.toJson(rs);\n\n\t\t// Return webpage with json data from RMI\n\t\treturn Response.ok(jsonResp, MediaType.APPLICATION_JSON).build();\n\t}",
"@GetMapping(\"/customers\")\n\tpublic String findAll(Model theModel) {\n\t\tList<Customer> theCustomer = customerServices.findAll();\n\t\ttheModel.addAttribute(\"customer\", theCustomer);\n\t\treturn \"customer/list-customer\";\n\t}",
"@PostMapping(\"/checkCustomerID\")\n public ModelAndView checkCustomerID(@ModelAttribute(\"customerCheck\") Customer customer,\n Model model){\n ModelAndView modelAndView = new ModelAndView();\n\n int customer_id = customer.getCustomerID();\n if (customerServiceImpl.getCustomer(customer_id)!=null){\n model.addAttribute(\"customerInfo\", customerServiceImpl.getCustomer(customer_id));\n modelAndView.setViewName(\"/content/openNewCurrentAccount\");\n return modelAndView;\n }\n model.addAttribute(\"invalid_user_error\", true);\n modelAndView.setViewName(\"/content/checkCustomer\");\n return modelAndView;\n }",
"@Override\r\n\tpublic Customer getModel() {\n\t\treturn customer;\r\n\t}",
"Customer getCustomer() {\n\t\treturn customer;\n\t}",
"@GetMapping(\"/{customerid}\")\n public ResponseEntity<List<Order>> byCustomer(@PathVariable(value = \"customerid\") Long customerId) {\n return new ResponseEntity<>(orderService.getAllByCustomerId(customerId), HttpStatus.OK);\n }",
"@Override\n\tpublic Customer findById(Long cust_id) throws Exception {\n\t\tList<Customer> lists = (List<Customer>) this.getHibernateTemplate().find(\"from Customer where cust_id = ?\",\n\t\t\t\tcust_id);\n\t\tgetHibernateTemplate().get(Customer.class, cust_id);\n\t\tif (lists.size() > 0) {\n\n\t\t\treturn lists.get(0);\n\t\t}\n\n\t\treturn null;\n\t}",
"public Customer getCustomer()\n {\n return customer;\n }",
"public Customer getCustomer() {\n return this.customer;\n }"
] | [
"0.79148185",
"0.7838142",
"0.78373355",
"0.775757",
"0.76925373",
"0.73546803",
"0.73065084",
"0.72639155",
"0.72573006",
"0.7209007",
"0.718994",
"0.7180383",
"0.7173765",
"0.7162066",
"0.71461487",
"0.7141569",
"0.71308553",
"0.7129501",
"0.70820355",
"0.707653",
"0.7072766",
"0.7015637",
"0.700318",
"0.693891",
"0.69197583",
"0.69070846",
"0.69069815",
"0.69021887",
"0.6880225",
"0.6857967",
"0.6857173",
"0.6799758",
"0.67767674",
"0.67660445",
"0.6763819",
"0.675363",
"0.6752852",
"0.674903",
"0.6729109",
"0.67284405",
"0.671489",
"0.6676741",
"0.6666635",
"0.66131383",
"0.6591215",
"0.6580034",
"0.655368",
"0.6553399",
"0.6541489",
"0.6525221",
"0.65223217",
"0.6519807",
"0.65196085",
"0.6519185",
"0.651611",
"0.65125793",
"0.6511844",
"0.65114903",
"0.6500761",
"0.6498635",
"0.6492753",
"0.64921105",
"0.6488211",
"0.648475",
"0.646919",
"0.64620364",
"0.6454856",
"0.64548516",
"0.6447328",
"0.6432299",
"0.64257526",
"0.6420937",
"0.64100623",
"0.64074415",
"0.640705",
"0.63969916",
"0.63969296",
"0.6383585",
"0.6369163",
"0.63548374",
"0.6336639",
"0.6336383",
"0.6329486",
"0.6324468",
"0.6320052",
"0.63159555",
"0.6310242",
"0.6305158",
"0.6300511",
"0.6283548",
"0.62810606",
"0.6278723",
"0.62764704",
"0.6271008",
"0.62640196",
"0.62623024",
"0.6260117",
"0.6244744",
"0.6236823",
"0.6235101"
] | 0.81479996 | 0 |
/The update() method will be triggered when user updates customer information and clicks the Save button. First, Spring MVC will try to bind the submitted data to the Customer domain object and perform the type conversion and formatting automatically. If binding errors are found (for example, the birth date was entered in the wrong format), the errors will be saved into the BindingResult interface (under the package org.springframework.validation), and an error message will be saved into the Model, redisplaying the edit view. If the binding is successful, the data will be saved, and the logical view name will be returned for the display customer view by using redirect: as the prefix. Note that we want to display the message after the redirect, so we need to use the RedirectAttributes.addFlashAttribute() method (an interface under the package org.springframework.web.servlet.mvc.support) for displaying the success message in the show customer view. In Spring MVC attributes are saved temporarily before the redirect (typically in the session) to be made available to the request after the redirect and removed immediately. | @PreAuthorize("hasRole('ROLE_ADMIN')")
@RequestMapping(value = "/{id}", params = "form", method = RequestMethod.POST)
public String update(@Valid Customer customer, BindingResult bindingResult,
Model uiModel, HttpServletRequest httpServletRequest,
RedirectAttributes redirectAttributes, Locale locale) {
logger.info("Updating customer");
if (bindingResult.hasErrors()) {
uiModel.addAttribute("message", new Message("error", messageSource.getMessage("customer_save_fail", new Object[]{}, locale)));
uiModel.addAttribute("customer", customer);
return "customers/update";
}
uiModel.asMap().clear();
redirectAttributes.addFlashAttribute("message", new Message("success",messageSource.getMessage("customer_save_success", new Object[]{}, locale)));
customerService.save(customer);
return "redirect:/customers/" + UrlUtil.encodeUrlPathSegment(customer.getId().toString(),httpServletRequest);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@RequestMapping(value = \"/customer/editCustomer\", method = RequestMethod.POST)\n public String editCustomerPost(@Valid @ModelAttribute(\"customer\") Customer customer, BindingResult result,\n HttpServletRequest request ) {\n if(result.hasErrors()) {\n return \"editCustomer\";\n }\n\n customerService.editCustomer(customer);\n\n return \"redirect:/admin/customer\";\n }",
"@PreAuthorize(\"hasRole('ROLE_ADMIN')\")\n\t@RequestMapping(value = \"/{id}\", params = \"form\", method = RequestMethod.GET) \n\tpublic String updateForm(@PathVariable(\"id\") Long id, Model uiModel) {\n\t\tuiModel.addAttribute(\"customer\", customerService.findById(id));\n\t\treturn \"customers/update\"; \n\t}",
"private void updateCustomer(HttpServletRequest request, HttpServletResponse response) throws IOException {\n int id = Integer.parseInt(request.getParameter(\"id\"));\n String name = request.getParameter(\"name\");\n String phone = request.getParameter(\"phone\");\n String email = request.getParameter(\"email\");\n Customer updateCustomer = new Customer(id, name, phone, email);\n CustomerDao.addCustomer(updateCustomer);\n response.sendRedirect(\"list\");\n\n }",
"@GetMapping(\"/showFormForUpdate\")\r\n\tpublic String showFormForUpdate(@RequestParam(\"customerId\") int id, Model theModel){\n\t\tCustomer theCustomer = customerService.getCustomer(id);\r\n\t\t\r\n\t\t//set customer as model attribute to pre-populate\r\n\t\ttheModel.addAttribute(\"customer\",theCustomer);\r\n\t\t\r\n\t\t//send over to our form\r\n\t\treturn \"customer-form\";\r\n\t}",
"@GetMapping(\"/showFormForUpdate\")\n\tpublic String showFormForUpdate(@RequestParam(\"customerId\") int id, Model model) {\n\t\tCustomer customer = customerService.getById(id);\n\t\t\n\t\t\n\t\tmodel.addAttribute(\"customer\", customer);\n\t\t\n\t\treturn \"customer-form\";\n\t}",
"@Override\n\tpublic boolean updateCustomer(Customer customer) {\n\t\tSession session =sessionFactory.getCurrentSession();\n\t\tsession.update(customer);\n\t\treturn true;\n\t}",
"@Override\n\tpublic void update(Customer customer) {\n\t\t\n\t}",
"@Override\n\tpublic void update(Customer customer) {\n\t\t\n\t}",
"public int updateCustomer(Customer customer) {\n return model.updateCustomer(customer); \n }",
"public void update(Customer customer) {\n\n\t}",
"@PutMapping(\"/customerupdate\")\n\tpublic void update(@RequestBody Customer theCustomer) {\n\t\t// checking whether the customer exists or not\n\t\tCustomer customerExists = customerServices.findByID(theCustomer.getMobile_number());\n\n\t\tif (customerExists != null) {\n\t\t\tcustomerServices.save(theCustomer);\n\t\t} else {\n\t\t\tthrow new RuntimeException(\"Customer with customer id - \" + theCustomer + \" not exists\");\n\t\t}\n\t}",
"@Override\n\t@Transactional\n\tpublic void updateCustomer(Customer customer) {\n\n\t\thibernateTemplate.update(customer);\n\t\tSystem.out.println(\"customer is updated \" + customer);\n\n\t}",
"@PostMapping(\"/saveCustomer\")\r\n\tpublic String saveCustomer(@ModelAttribute(\"customer\") Customer theCustomer){\n\t\tcustomerService.saveCustomer(theCustomer);\r\n\t\t\r\n\t\treturn \"redirect:/customer/list\";\r\n\t}",
"@Override\n\tpublic Customer update(Customer o) {\n\n\t\tif (o == null || o.getId() == null) {\n\t\t\treturn null;\n\t\t}\n\n\t\tString updateQuery = String.format(\"UPDATE TB_customer SET \");\n\t\tupdateQuery += COLUMN_NAME_FIRST_NAME + \"= ? ,\";\n\t\tupdateQuery += COLUMN_NAME_LAST_NAME + \"= ? ,\";\n\t\tupdateQuery += COLUMN_NAME_EMAIL + \"= ? ,\";\n\t\tupdateQuery += COLUMN_NAME_KNICKNAME + \"= ?,\";\n\t\tupdateQuery += COLUMN_NAME_BIRTHDATE + \"= ?,\";\n\t\tupdateQuery += COLUMN_NAME_CREDITS + \"= ?\";\n\t\tupdateQuery += \" WHERE \" + COLUMN_NAME_ID + \"= ? ;\";\n\n\t\ttry (PreparedStatement pS = dbCon.prepareStatement(updateQuery)) {\n\n\t\t\tpS.setString(1, o.getFirstName());\n\t\t\tpS.setString(2, o.getLastName());\n\t\t\tpS.setString(3, o.getEmail());\n\t\t\tpS.setString(4, o.getKnickname());\n\t\t\tpS.setDate(5, java.sql.Date.valueOf(o.getBirthdate()));\n\t\t\tpS.setDouble(6, o.getCredits());\n\t\t\tpS.setInt(7, o.getId());\n\t\t\tpS.executeUpdate();\n\n\t\t\tpS.close();\n\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"Update of tb_customer \" + o.getId() + \" failed : \" + e.getMessage());\n\t\t\treturn null;\n\t\t}\n\n\t\treturn o;\n\t}",
"@PutMapping(\"/{id}\")\n public String update(@ModelAttribute(CUSTOMER) CustomerDTO customerDTO, @PathVariable(\"id\") long id) {\n Customer customer = mapDTOCustomerToPersistent(customerDTO);\n customer.getActualAddress().setModified(LocalDateTime.now());\n customerService.updateCustomer(customer, id);\n return REDIRECT_CLIENTS;\n }",
"@Test\n\tpublic void updateCustomer() {\n\t\t// Given\n\t\tString name = \"Leo\";\n\t\tString address = \"Auckland\";\n\t\tString telephoneNumber = \"021123728381\";\n\t\tICustomer customer = customerController.create(name, address, telephoneNumber);\n\t\tname = \"Mark\";\n\t\taddress = \"Auckland\";\n\t\ttelephoneNumber = \"0211616447\";\n\t\tlong id = customer.getId();\n\n\t\t// When\n\t\tICustomer cus = customerController.update(id, name, address, telephoneNumber);\n\n\t\t// Then\n\t\tAssert.assertEquals(name, cus.getName());\n\t\tAssert.assertEquals(address, cus.getAddress());\n\t\tAssert.assertEquals(telephoneNumber, cus.getTelephoneNumber());\n\t\tAssert.assertEquals(id, cus.getId());\n\t}",
"public void prepareUpdate() {\r\n\t\tlog.info(\"prepare for update customer...\");\r\n\t\tMap<String, String> params = FacesContext.getCurrentInstance()\r\n\t\t\t\t.getExternalContext().getRequestParameterMap();\r\n\t\tString id = params.get(\"customerIdParam\");\r\n\t\tlog.info(\"ID==\" + id);\r\n\t\tCustomer customer = customerService.searchCustomerById(new Long(id));\r\n\t\tcurrent.setCustomerId(customer.getCustomerId());\r\n\t\tcurrent.setCustomerCode(customer.getCustomerCode());\r\n\t\tcurrent.setCustomerName(customer.getCustomerName());\r\n\t\tcurrent.setTermOfPayment(customer.getTermOfPayment());\r\n\t\tcurrent.setCustomerGrade(customer.getCustomerGrade() != null ? customer.getCustomerGrade() : \"\");\r\n\t\tcurrent.setAddress(customer.getAddress());\r\n\t\tlog.info(\"prepare for update customer end...\");\r\n\t}",
"@Override\n\tpublic void update(Customer t) {\n\n\t}",
"@Override\n\tpublic void updateCustomer(Customer customer) throws Exception {\n\t\tgetHibernateTemplate().update(customer);\n\t}",
"private void showEditForm(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n int id = Integer.parseInt(request.getParameter(\"id\"));\n Customer customerEdit = CustomerDao.getCustomer(id);\n RequestDispatcher dispatcher = request.getRequestDispatcher(\"customer/editCustomer.jsp\");\n dispatcher.forward(request, response);\n }",
"@Override\r\n\tpublic Customer updateCustomer(Customer customer) {\r\n\t\tOptional<Customer> optionalCustomer = null;\r\n\t\tCustomer customer2 = null;\r\n\t\toptionalCustomer = customerRepository.findById(customer.getUserId());\r\n\t\tif (optionalCustomer.isPresent()) {\r\n\t\t\tcustomer2 = customerRepository.save(customer);\r\n\t\t\treturn customer2;\r\n\t\t} else {\r\n\t\t\tthrow new EntityUpdationException(\"Customer With Id \" + customer.getUserId() + \" does Not Exist.\");\r\n\t\t}\r\n\r\n\t}",
"@Override\n\tpublic Customers update(Customers updatecust) {\n\t\tCustomers custpersist= search(updatecust.getId());\n\t\tif (custpersist==null)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t\tCustomers upcust = CustRepo.save(updatecust);\n\t\treturn upcust;\n\t}",
"private void update(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tString id = req.getParameter(\"id\");\n\t\tString name = req.getParameter(\"name\");\n\t\tString address = req.getParameter(\"address\");\n\t\tString phone = req.getParameter(\"phone\");\n\t\tString oldName = req.getParameter(\"oldName\");\n\t\t\n\t\t//2. check if the name exists\n\t\t//2.1. check if name and oldName are same\n\t\tif(!oldName.equalsIgnoreCase(name)) {\n\t\t\t//2.2. if not same, call customerDAO.getCountByName() to know if the name exists in the database\n\t\t\tlong count = customerDAO.getCountByName(name);\n\t\t\t//2.3. if the return value > 0, forward to newcustomer.jsp\n\t\t\tif(count > 0) {\n\t\t\t\t//2.3.1. display an error message in updatecustomer.jsp page (by request.setAttribute)\n\t\t\t\treq.setAttribute(\"message\", \"Name \\\"\" + name + \"\\\" exists, please enter a different name!\");\n\t\t\t\t//2.3.2. keep the values in the form from previous submission by forwarding to updatecustomer.jsp\n\t\t\t\treq.getRequestDispatcher(\"/updatecustomer.jsp\").forward(req, resp);\n\t\t\t\t//2.3.3. return, end the function\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t//3. if not exists, encapsulate parameters into a Customer object\n\t\tCustomer customer = new Customer(name, address, phone);\n\t\tcustomer.setId(Integer.parseInt(id));\n\t\t//4. call customerDAO.update()\n\t\tcustomerDAO.update(customer);\n\t\t//5. redirect to query.do\n\t\tresp.sendRedirect(\"query.do\");\n\t}",
"@RequestMapping(value = \"/updateTransaction\", method = RequestMethod.POST)\r\n\tpublic ModelAndView update(HttpServletRequest request, ModelMap model) {\n\t\treturn new ModelAndView(\"redirect:list\");\r\n\r\n\t}",
"@Override\n\tpublic Customer update(long customerId, Customer customer) {\n\t\treturn null;\n\t}",
"public boolean updatecustomer(long id , Customermodel customermodel) {\n\t\t Optional<Customermodel> customerd = customerdb.findById(id);\n\n\t\t\t\t\tif (customerd.isPresent()) {\n\t\t\t\t\t\tCustomermodel customer = customerd.get();\n\t\t\t\t\t\t\n\t\t\t\t\t\tcustomer.setDob(customermodel.getDob());\n\t\t\t\t\t\tcustomer.setName(customermodel.getName());\n\t\t\t\t\t\tcustomerdb.save(customer);\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\n\t\t\t\t\t} \n\t\t\t\t\telse {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t} \n\t\t \n\t }",
"public void updateCustomer(String id) {\n\t\t\n\t}",
"@PutMapping(\"/customer/{id}\")\n\tpublic ResponseEntity<Customer> updateCustomer(@PathVariable Long id, @RequestBody Customer customerDetails) {\n\t\tCustomer customer = customerRepository.findById(id)\n\t\t\t\t.orElseThrow(() -> new ResourceNotFoundException(\"Customer not exist with id :\" + id));\n\t\tcustomer.setName(customerDetails.getName());\n\t\tcustomer.setAddress(customerDetails.getAddress());\n\t\tcustomer.setNic(customerDetails.getNic());\n\t\tcustomer.setUsername(customerDetails.getUsername());\n\t\tcustomer.setPassword(customerDetails.getPassword());\n\t\tcustomer.setBirthday(customerDetails.getBirthday());\n\t\tcustomer.setMobile(customerDetails.getMobile());\n\t\tcustomer.setReg_date(customerDetails.getReg_date());\n\t\tcustomer.setEmail(customerDetails.getEmail());\n\t\tcustomer.setImage(customerDetails.getImage());\n\t\tcustomer.setSec_ques_no(customerDetails.getSec_ques_no());\n\t\tcustomer.setSec_ques_answer(customerDetails.getSec_ques_answer());\n\t\tcustomer.setGender(customerDetails.getGender());\n\n\t\tCustomer updatedCustomer = customerRepository.save(customer);\n\t\treturn ResponseEntity.ok(updatedCustomer);\n\t}",
"@RequestMapping(value = \"/editsave\", method = RequestMethod.POST)\n\tpublic String editsave(@ModelAttribute(\"company\") CompanyDto company) {\n\t\tcompanyService.update(company);\n\t\treturn \"redirect:/companies/getAll\";\n\t}",
"@RequestMapping(\"/customer/editCustomer/{id}\")\n public String editCustomer(@PathVariable(\"id\") int id, Model model) {\n Customer customer = customerService.getCustomerById(id);\n\n model.addAttribute(\"customer\", customer);\n\n return \"editCustomer\";\n }",
"public ResponseEntity<?> updateCustomerById(Long id, customer.controller.Customer customer);",
"@Override\n\tpublic boolean updateCustomer(Customer customer) {\n\t\treturn false;\n\t}",
"public void editCustomer(Customer c) {\n\t\tconnector.editCustomer(c);\n\t\t\n\t\t// Edit entries in table \"Nummern\"\n\t\tconnector.editNumbers(c, c.getNumbers());\n\t\t\n\t\tupdateCustomers();\n\t}",
"@RequestMapping(method = RequestMethod.PUT, value = \"/{id}\")\n\t public ResponseEntity<?> updateUser(@PathVariable(\"id\") Long id, @RequestBody Customer customer) {\n\t \treturn service.updateCustomer(id, customer);\n\t }",
"public void update(Customer myCust){\n }",
"@RequestMapping(\"updat\")\r\n\tpublic String update(Model m) \r\n\t{\n\t\tm.addAttribute(\"update1\",new Employee());\r\n\t\treturn \"update\";//register.jsp==form action=register\r\n\t}",
"public void actionPerformed(ActionEvent e){\n\t\t\t\tif(editCustIdCombo.getSelectedIndex() != 0){\n\t\t\t\t\tif(editCustName.getText().isEmpty() || editCustAddress.getText().isEmpty()){\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Required Fields: \\n Customer Name \\n Customer Address\");\t\n\t\t\t\t\t}else{\n\t\t\t\t\t\tfor(Customer customer: customers){\n\t\t\t\t\t\t\tif(customer.getCustId() == Integer.parseInt(editCustIdCombo.getSelectedItem().toString())){\n\t\t\t\t\t\t\t\tcustomer.setCustName(editCustName.getText());\n\t\t\t\t\t\t\t\tcustomer.setCustAddress(editCustAddress.getText());\n\t\t\t\t\t\t\t\tcustomer.setCustEmail(editCustEmail.getText());\n\t\t\t\t\t\t\t\tcustomer.setCustTelephone(Integer.parseInt(editCustPhone.getText()));\n\t\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Customer Updated.\");\n\t\t\t\t\t\t\t\teditCustIdCombo.setSelectedIndex(0);\n\t\t\t\t\t\t\t\teditCustName.setText(\"\");\n\t\t\t\t\t\t\t\teditCustAddress.setText(\"\");\n\t\t\t\t\t\t\t\teditCustEmail.setText(\"\");\n\t\t\t\t\t\t\t\teditCustPhone.setText(\"\");\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Please Select a Valid Customer.\");\n\t\t\t\t}\n\t\t\t}",
"@Override\n\tpublic boolean update(int customerId,String c) {\n\t\tString query=\"UPDATE Customer SET city=? where Customer_ID=?\";\n\t\ttry {\n\t\t\tPreparedStatement preparedStatement=DatabaseConnectionDAO.geConnection().prepareStatement(query);\n\t\t\tpreparedStatement.setInt(1, customerId);\n\t\t\tpreparedStatement.setString(2, c);\n\t\t\tint n=preparedStatement.executeUpdate();\n\t\t\tif(n>0)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"updated\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"enter valid data\");\n\t\t\t}\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t}\n\t\treturn false;\n\t}",
"public void update(Customer customer) throws SQLException {\r\n\t\tString updateSql = \"UPDATE \" + tableName\r\n\t\t\t\t+ \" SET name=?,surname=?,birth_date=?,birth_place=?,address=?,city=?,province=?,\"\r\n\t\t\t\t+ \" cap=?,phone_number=?,newsletter=?,email=?\" + \"WHERE (id = ?)\";\r\n\t\ttry {\r\n\t\t\t//connection = ds.getConnection();\r\n\t\t\tpreparedStatement = connection.prepareStatement(updateSql);\r\n\t\t\tpreparedStatement.setString(1, customer.getName());\r\n\t\t\tpreparedStatement.setString(2, customer.getSurname());\r\n\t\t\tpreparedStatement.setDate(3, (Date) customer.getBirthdate());\r\n\t\t\tpreparedStatement.setString(4, customer.getBirthplace());\r\n\t\t\tpreparedStatement.setString(5, customer.getAddress());\r\n\t\t\tpreparedStatement.setString(6, customer.getCity());\r\n\t\t\tpreparedStatement.setString(7, customer.getProvince());\r\n\t\t\tpreparedStatement.setInt(8, customer.getCap());\r\n\t\t\tpreparedStatement.setString(9, customer.getPhoneNumber());\r\n\t\t\tpreparedStatement.setInt(10, customer.getNewsletter());\r\n\t\t\tpreparedStatement.setString(11, customer.getEmail());\r\n\t\t\tpreparedStatement.setInt(12, customer.getId());\r\n\t\t\tpreparedStatement.executeUpdate();\r\n\t\t\tconnection.commit();\r\n\t\t} catch (SQLException e) {\r\n\t\t}\r\n\t}",
"@Override\n\tpublic void saveCustomer(Customer theCustomer) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\n\t\t// currentSession.save(theCustomer);\n\n\t\t// save/upate the customer\n\t\tcurrentSession.saveOrUpdate(theCustomer);\n\t}",
"@Override\n\tpublic void saveCustomer(Customer theCustomer) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t\n\t\t// save/upate the customer ... finally LOL\n\t\tcurrentSession.saveOrUpdate(theCustomer);\n\t\t\n\t}",
"@PutMapping(\"/customers\")\n\tpublic Customer updatecustomer(@RequestBody Customer thecustomer) {\n\t\t\n\t\tthecustomerService.saveCustomer(thecustomer); //as received JSON object already has id,the saveorupdate() DAO method will update details of existing customer who has this id\n\t\treturn thecustomer;\n\t}",
"void updateCustomerById(Customer customer);",
"@RequestMapping(value = \"/update\", method = RequestMethod.POST)\n public String updateStudent(ModelMap view, Student student) {\n studentService.update(student);\n view.addAttribute(\"msg\", new String(\"\"));\n return(\"redirect:/list\");\n }",
"@RequestMapping(value = \"/customer/{id}\",method=RequestMethod.PUT)\n @ResponseStatus(HttpStatus.NO_CONTENT)\n public void updateCustomer(@PathVariable(\"id\") int id, @RequestBody @Valid CustomerViewModel customerViewModel){\n //check if the id matches the request body. Path variable and the\n //user passed data (customerId) must match to proceed.\n //so you need to input in both path variable and the requestbody\n if(id != customerViewModel.getCustomerId()){\n //throw illegal arguement\n }\n\n //if it does match, update that customer\n service.updateCustomer(customerViewModel);\n }",
"@PreAuthorize(\"#oauth2.hasAnyScope('write','read-write')\")\n\t@RequestMapping(method = PUT, value = \"/{id}\", consumes = { APPLICATION_JSON_UTF8_VALUE })\n\tpublic Mono<ResponseEntity<?>> updateCustomer(@PathVariable @NotNull ObjectId id,\n\t\t\t@RequestBody @Valid Customer customerToUpdate) {\n\n\t\treturn repo.existsById(id).flatMap(exists -> {\n\n\t\t\tif (!exists) {\n\t\t\t\tthrow new CustomerServiceException(HttpStatus.BAD_REQUEST,\n\t\t\t\t\t\"Customer does not exist, to create a new customer use POST instead.\");\n\t\t\t}\n\n\t\t\treturn repo.save(customerToUpdate).then(Mono.just(noContent().build()));\n\t\t});\n\t}",
"@Override\r\n\tpublic void saveCustomer(CRMDto theCustomer) {\n\t\t\r\n\t\tSession session = factory.openSession();\r\n\t\tTransaction tx = session.beginTransaction();\r\n\t\tsession.update(theCustomer);\r\n\t\ttx.commit();\r\n\t\t//System.out.println(\"pk update is \" +pk);\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\n\tpublic Uni<Customer> updateCustomer(Customer customer) {\n\t\tFunction<Customer, Uni<? extends Customer>> update = entity -> {\n\t\t\tentity.setName(customer.getName());\n\t\t\tentity.setAddress(customer.getAddress());\n\t\t\treturn repo.flush().onItem().transform(ignore -> entity);\n\t\t};\n\t\treturn repo.findById(customer.getId()).onItem().ifNotNull().transformToUni(update);\n\t}",
"@RequestMapping(value=\"/insertCust\",method=RequestMethod.POST)\r\n\tpublic String saveCust(@ModelAttribute(\"customer\")Customer cust,ModelMap map){\r\n\t\t//generating pwd,token using codeUtil\r\n\t\tString token=codeUtil.genToken();\r\n\t\tString pwd=codeUtil.getPwd();\r\n\t\t//encoding using codec util\r\n\t\tString encToken=codecUtil.doEncode(token);\r\n\t\tString encPwd=codecUtil.doEncode(pwd);\r\n\t\t//set encoded values to customer (model attribute)\r\n\t\tcust.setPassword(encPwd);\r\n\t\tcust.setAccTock(encToken);\r\n\t\t//save object using SL.\r\n\t\tint custId=service.saveCustomer(cust);\r\n\r\n\t\t//send email\r\n\t\tString text=\"welcome to Customer :\"+cust.getCustName()+\r\n\t\t\t\t\"(\"+cust.getCustType()+\"),Your user name is:\"+cust.getCustEmail()\r\n\t\t\t\t+\",password is:\"+pwd+\",token is:\"+token;\r\n\t\tcommonUtil.sendEmail(cust.getCustEmail(), \"welcome to Customer\", text);\r\n\t\t//send success msg\r\n\t\tmap.addAttribute(\"msg\",\"Customer added with Id:\"+custId);\r\n\t\treturn \"CustomerReg\";\r\n\t}",
"@RequestMapping(value = \"/editUserData\" , method = RequestMethod.POST)\n\tpublic String saveEditUser(@ModelAttribute(\"updateDetails\") LoginUser user, Model model)\n\t{\n\t\tLoginUser updatedDetails=loginService.updateData(user);\n\n\n\n\t\t//\tSystem.out.println(\"return in controller \"+l);\n\t\tmodel.addAttribute(\"updatedDetails\", updatedDetails);\n\t\treturn \"login\";\n\t}",
"public Customer updateCustomer(@RequestBody Customer theCustomer)\n {\n customerService.save(theCustomer);\n return theCustomer;\n }",
"@Override\n\tpublic void saveCustomer(Customer theCustomer) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t\n\t\t// save the customer\n\t\tcurrentSession.saveOrUpdate(theCustomer);\n\t\t//currentSession.save(theCustomer);\n\t}",
"@Override\n public void updateCustomer(UUID customerId, @RequestBody Customer customer) {\n log.debug(\"Updating a customer to service...\");\n }",
"@RequestMapping(value = { \"/checkout\" }, method = RequestMethod.POST)\n public String shoppingCartCustomerSave(HttpServletRequest request, Authentication authentication, ModelMap map, //\n Model model, //\n @ModelAttribute(\"customerDTO\") @Validated CustomerDTO customerForm, //\n BindingResult result, //\n final RedirectAttributes redirectAttributes) {\n CartInfo cartInfo = Utils.getCartInSession(request);\n if (authentication != null) {\n Collection<? extends GrantedAuthority> authorities = authentication.getAuthorities();\n List<String> roles = new ArrayList<String>();\n for (GrantedAuthority a : authorities) {\n roles.add(a.getAuthority());\n }\n if (isUser(roles)) {\n map.addAttribute(\"header\", \"header_user\");\n map.addAttribute(\"footer\", \"footer_user\");\n } else if (isAdmin(roles)) {\n map.addAttribute(\"header\", \"header_admin\");\n map.addAttribute(\"footer\", \"footer_admin\");\n }\n } else {\n map.addAttribute(\"header\", \"header_login\");\n map.addAttribute(\"footer\", \"footer_login\");\n }\n\n if (result.hasErrors()) {\n customerForm.setValid(false);\n model.addAttribute(\"myCart\", cartInfo);\n model.addAttribute(\"cartForm\", cartInfo);\n // Forward to reenter customer info.\n return \"checkout\";\n }\n\n customerForm.setValid(true);\n\n CustomerInfo customerInfo = new CustomerInfo(customerForm);\n cartInfo.setCustomerInfo(customerInfo);\n\n return \"redirect:/checkoutComfirmation\";\n }",
"@FXML\n public void saveCust(ActionEvent event) throws SQLException {\n\n if (completionCheck() < 0)\n return;\n\n int id = Integer.parseInt(idTB.getText().trim());\n\n CustomerDAOImpl.updateCustomer(id , nameTB.getText().trim(), addressTB.getText().trim(), postCodeTB.getText().trim(), stateProvinceCB.getSelectionModel().getSelectedItem().toString(), phone.getText());\n\n AlertMessage.addCustomerInfo();\n\n stage = (Stage)((Button) event.getSource()).getScene().getWindow();\n try {\n scene = FXMLLoader.load(getClass().getResource(\"../View_Controller/MainScreen.fxml\"));\n } catch (IOException e) {\n e.printStackTrace();\n }\n stage.setScene(new Scene(scene));\n stage.show();\n }",
"@Override\n\tpublic int saveUpdate(MstCustomerDto mstCustomerDto) {\n\t\tMstCustomer b=mstCustomerDao.getOne(mstCustomerDto.getKodeCustomer());\n\t\tif(!(b==null)){\n\t\t\ttry{\n\t\t\t\tMstCustomer mstCustomer=mapperFacade.map(mstCustomerDto, MstCustomer.class);\n\t\t\t\tmstCustomerDao.save(mstCustomer);\t\t\t\n\t\t\t\treturn 2;\n\t\t\t}catch(Exception e){\n\t\t\t\treturn CommonConstants.ERROR_REST_STATUS;\n\t\t\t}\t\t\t\n\t\t}else{\n\t\t\ttry{\n\t\t\t\tMstCustomer mstCustomer= mapperFacade.map(mstCustomerDto, MstCustomer.class);\n\t\t\t\tmstCustomerDao.save(mstCustomer);\n\t\t\t\treturn CommonConstants.OK_REST_STATUS;\n\t\t\t}catch(Exception e){\n\t\t\t\treturn CommonConstants.ERROR_REST_STATUS;\n\t\t\t}\n\t\t}\n\t}",
"@Override\n public void updateCustomer(UUID id, CustomerDto customer) {\n log.debug(\"Customer is updated: customerId: \"+id);\n }",
"@Override\n\tpublic boolean updateCustomer(Integer id, Customer customer) {\n\n\t\tboolean isUpdated = false;\n\n\t\tfor (Customer cust : customers) {\n\t\t\tif (cust.getId() == id) {\n\t\t\t\tcustomer.setId(id);\n\t\t\t\tcust.setUsername(customer.getUsername());\n\t\t\t\tcust.setFirstName(customer.getFirstName());\n\t\t\t\tcust.setLastName(customer.getLastName());\n\t\t\t\tcust.setEmail(customer.getEmail());\n\t\t\t\tcust.setUserType(customer.getUserType());\n\t\t\t\tcust.setPassword(customer.getPassword());\n\t\t\t\tcust.setAddress(customer.getAddress());\n\t\t\t\tlogger.info(\"Customer @id\" + id + \" is updated in the list\");\n\t\t\t\tisUpdated = true;\n\t\t\t}\n\t\t}\n\t\tlogger.info(\"Update done : updateCustomer.isUpdated = \" + isUpdated);\n\t\treturn isUpdated;\n\t}",
"private void updateCustomer(Customer customer) {\n List<String> args = Arrays.asList(\n customer.getCustomerName(),\n customer.getAddress(),\n customer.getPostalCode(),\n customer.getPhone(),\n customer.getLastUpdate().toString(),\n customer.getLastUpdatedBy(),\n String.valueOf(customer.getDivisionID()),\n String.valueOf(customer.getCustomerID())\n );\n DatabaseConnection.performUpdate(\n session.getConn(),\n Path.of(Constants.UPDATE_SCRIPT_PATH_BASE + \"UpdateCustomer.sql\"),\n args\n );\n }",
"private void updateScreenCustomerDetails(Customer c) {\n // - update main title with customers full name\n tvCustomerMainTitle.setText(customer.toString());\n\n // - update screen with customer ID\n textViewID.setText(customer.getCustomerID());\n\n // - update screen with customer email\n tvCustomerEmail.setText(customer.getEmail());\n\n // - update screen with customer VIP status\n tvCustomerVipStatus.setText(customer.vipStatusToString());\n\n // - update avctive game and lane fields\n }",
"@GetMapping(\"/carsAndCustomers/customer/edit/{id}\")\n public String editForm(@PathVariable(\"id\") Integer id, Model model) {\n Customer customer = customerRepository.getOne(id);\n model.addAttribute(\"customer\", customer);\n return \"fragments/editCustomerForm :: editCustomerForm\";\n\n }",
"@RequestMapping(\"supplier/edit/{id}\")\r\n\tpublic String editSupplier(@PathVariable(\"id\")int id,Model model){\n\t\tif(supplierservice.get(id)!=null)\r\n\t\t{\r\n\t\t\tsupplierservice.saveOrUpdate(supplier);\r\n\t\t\tmodel.addAttribute(\"message\",\"Succesfully updated\");\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tmodel.addAttribute(\"errorMessage\",\"Could not be updated\");\r\n\t\t}\r\n\t\t//log.debug(\"Ending\");\r\n\t\treturn \"supplier\";\r\n\t}",
"@Override\n\tpublic void updateCustomer(Customer customer) throws Exception{\n\t\tConnection con = pool.getConnection();\n\t\tCustomer custCheck = getCustomer(customer.getId());\n\t\tif(custCheck.getCustName()== null)\n\t\t\treturn;\n\t\t\t//throws Exception no customer found in DB\n\n\t\ttry {\n\t\t\tStatement st = con.createStatement();\n\t\t\tString update = String.format(\"update customer set CUST_NAME=('%s') where id in ('%d')\" +\n\t\t\t\" update customer set PASSWORD=('%s')\"\n\t\t\t\t\t+ \" where id in('%d')\",\n\t\t\t\t\tcustomer.getCustName(),\n\t\t\t\t\tcustomer.getId(),\n\t\t\t\t\tcustomer.getPassword(),\n\t\t\t\t\tcustomer.getId());\n\t\t\t\n\t\t\tst.executeUpdate(update);\n\t\t\tSystem.out.println(\"Customer updated successfully\");\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(e.getMessage() + \"Unable to update A customer, Try Again! \");\n\t\t} finally {\n\t\t\tpool.returnConnection(con);\n\t\t}\n\n\t}",
"@PutMapping(\"/api/customer/{id}\")\n\tpublic ResponseEntity<?> updateDetails(@PathVariable(\"id\") long id, @RequestBody CustomerDetails customerDetails) {\n\t\tcustomerService.updateDetails(id, customerDetails);\n\t\treturn ResponseEntity.ok().body(\"Customer Details is updated sucessfully\");\n\t}",
"@Override\n\tpublic void edit(CustomerLogin customerLogin) {\n\t\tCustomerLogin dbcustomerLogin=findCustomerLoginById(customerLogin.getCrn());\n\t\tif(dbcustomerLogin!=null) {\n\t\t\tdbcustomerLogin.setPassword(customerLogin.getPassword());\n\t\t}\n\t\telse\n\t\t\tSystem.out.println(\"Sorry! Customer login Details not found.\");\n\t}",
"@RequestMapping(value = \"/updateCustomerStatus\", method = RequestMethod.POST)\n\tpublic ModelAndView updateCustomerStatus(@ModelAttribute EndUserForm endUserForm, ModelMap model,\n\t\t\tRedirectAttributes attributes) throws CustomException {\n\n\t\tEndUser userList = endUserDAOImpl.findUserByCustomerId(endUserForm.getId());\n\t\tTransaction transaction = new Transaction();\n\t\tuserList.setId(userList.getId());\n\t\tuserList.setUserName(endUserForm.getUserName());\n\t\tuserList.setContactNo(endUserForm.getContactNo());\n\t\tuserList.setEmail(endUserForm.getEmail());\n\t\tuserList.setStatus(endUserForm.getStatus());\n\t\tuserList.setTransactionId(endUserForm.getTransactionId());\n\t\ttransaction.setTransactionId(endUserForm.getTransactionId());\n\t\ttransaction.setTransactionType(Constants.APPBANK);\n\t\ttransaction.setTransactionStatus(Constants.APPSTATUS);\n\t\ttransactionDAO.insertTransaction(transaction);\n\t\tendUserDAOImpl.update(userList);\n\n\t\tmodel.put(\"endUserForm\", endUserForm);\n\n\t\treturn new ModelAndView(\"updateAdminSuccess\", \"model\", model);\n\t}",
"@Override\n\tpublic void updateProfile(CustomerUpdateVO customerVO) {\n\t\tCustomer customer = customerRepository.findById(customerVO.getCid()).get();\n\t\ttry {\n\t\t\tcustomer.setImage(customerVO.getPhoto().getBytes());\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tcustomer.setName(customerVO.getName());\n\t\tcustomer.setMobile(customerVO.getMobile());\n\t\tcustomer.setDom(new Timestamp(new Date().getTime()));\n\t\t/// customerRepository.save(customer);\n\t}",
"public void update(Customer c){\n Connection conn = ConnectionFactory.getConnection();\n PreparedStatement ppst = null;\n try {\n ppst = conn.prepareCall(\"UPDATE customer SET name = ?, id = ?, phone = ? WHERE customer_key = ?\");\n ppst.setString(1, c.getName());\n ppst.setString(2, c.getId());\n ppst.setString(3, c.getPhone());\n ppst.setInt(4, c.getCustomerKey());\n ppst.executeUpdate();\n System.out.println(\"Updated successfully.\");\n } catch (SQLException e) {\n throw new RuntimeException(\"Update error: \", e);\n } finally {\n ConnectionFactory.closeConnection(conn, ppst);\n }\n }",
"@PostMapping(\"/addcustomer\")\n\tpublic String save(@ModelAttribute(\"customer\") Customer theCustomer) {\n\t\tcustomerServices.save(theCustomer);\n\t\treturn \"redirect:/dairymilk/customers\";\n\t}",
"@ApiOperation(value = \"Replace a customer by new data\", notes = \"\")\n @PutMapping(value = {\"/{customerId}\"},produces = MediaType.APPLICATION_JSON_VALUE)\n @ResponseStatus(HttpStatus.OK)\n public CustomerDTO updateCustomer(@PathVariable Long customerId,@Validated @RequestBody CustomerDTO customerDTO) {\n return customerService.updateCustomer(customerId, customerDTO);\n }",
"private void getEditCustomer(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\t//int id=Integer.parseInt(request.getParameter(\"id\"));\n\t\tCustomer c=cr.getCustomer(1);\n\t\tSystem.out.println(c);\n\t\trequest.setAttribute(\"c\", c);\n\t\tRequestDispatcher rd=request.getRequestDispatcher(\"editCus.jsp\");\n\t\trd.forward(request, response);\n\t\t\n\t}",
"public boolean updateCustomer() {\n\t\treturn false;\r\n\t}",
"@RequestMapping(value = \"update\", method = RequestMethod.POST)\n public String update(@ModelAttribute(\"userDTO\") UserDTO userDTO, RedirectAttributes redirectAttributes) {\n redirectAttributes.addFlashAttribute(\"message\", \"客户信息更新成功\");\n return \"redirect:/mongo/mongoList\";\n }",
"public static void update(Customer aCustomer) throws NotFoundException\r\n\t{\n\t\tphoneNumber = aCustomer.getPhoneNo();\r\n\t\tname = aCustomer.getName();\r\n\t\taddress = aCustomer.getAddress();\r\n\r\n\t\t// define the SQL query statement using the phone number key\r\n\t\tString sqlUpdate = \"Update CustomerTable \" +\r\n\t\t\t\t\t\t\t\t \" SET CustomerName = '\" + name +\"', \" +\r\n\t\t\t\t\t\t\t\t \" address = '\" + address +\"' \" +\r\n\t\t\t\t\t\t\t\t \" WHERE PhoneNo = '\" + phoneNumber + \"'\";\r\n\r\n\t\t// see if this customer exists in the database\r\n\t\t// NotFoundException is thrown by find method\r\n\t\ttry\r\n\t\t{\r\n\t\t\tCustomer c = Customer.find(phoneNumber);\r\n \t\t// if found, execute the SQL update statement\r\n \t\tint result = aStatement.executeUpdate(sqlUpdate);\r\n \t}\r\n\t\tcatch (SQLException e)\r\n\t\t\t{ System.out.println(e);\t}\r\n\t}",
"@RequestMapping(value=\"/employeeupdt\", method=RequestMethod.POST)\npublic String UpdateSave(EmployeeRegmodel erm)\n{\n\tEmployeeRegmodel erm1 = ergserv.findOne(erm.getEmployee_id());\n\t\n\term1.setEmployee_address(erm.getEmployee_address());\n\term1.setEmail(erm.getEmail());\n\term1.setEmployee_dob(erm.getEmployee_dob());\n\term1.setEmployee_phoneno(erm.getEmployee_phoneno());\n\term1.setEmployee_password(erm.getEmployee_password());\n\term1.setEmployee_fullname(erm.getEmployee_fullname());\n\term1.setEmployee_fname(erm.getEmployee_fname());\n\t\n\tergserv.updateEmployeeRegmodel(erm1);\n\treturn \"update.jsp\";\n}",
"@Override\n\tpublic void putCustomers(Customer customer) {\n\n\t\tsessionFactory.getCurrentSession().saveOrUpdate(customer);;\n\n\t}",
"@RequestMapping(value = \"/customerOrders\",\n method = RequestMethod.PUT,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<CustomerOrder> updateCustomerOrder(@Valid @RequestBody CustomerOrder customerOrder) throws URISyntaxException {\n log.debug(\"REST request to update CustomerOrder : {}\", customerOrder);\n if (customerOrder.getId() == null) {\n return createCustomerOrder(customerOrder);\n }\n CustomerOrder result = customerOrderRepository.save(customerOrder);\n customerOrderSearchRepository.save(result);\n return ResponseEntity.ok()\n .headers(HeaderUtil.createEntityUpdateAlert(\"customerOrder\", customerOrder.getId().toString()))\n .body(result);\n }",
"public void addUpdateBtn() {\n if (isInputValid()) {\n if ( action.equals(Constants.ADD) ) {\n addCustomer(createCustomerData());\n } else if ( action.equals(Constants.UPDATE) ){\n updateCustomer(createCustomerData());\n }\n cancel();\n }\n }",
"@CrossOrigin\n @RequestMapping(method = PUT, path = \"/customer\", consumes = MediaType.APPLICATION_JSON_UTF8_VALUE, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)\n public ResponseEntity<UpdateCustomerResponse> updateName(@RequestHeader(\"authorization\") final String authorization, @RequestBody UpdateCustomerRequest updateCustomerRequest) throws AuthorizationFailedException, UpdateCustomerException {\n String accessToken = utilityService.splitAuthorization(authorization);\n CustomerEntity customer = customerService.getCustomer(accessToken);\n String newFirstName = updateCustomerRequest.getFirstName();\n String newLastName = updateCustomerRequest.getLastName();\n // Check if the firstname entered is empty\n if (utilityService.isStringEmptyOrNull(newFirstName)) {\n throw new UpdateCustomerException(\"UCR-002\", \"First name field should not be empty\");\n } else {\n customer.setFirstName(newFirstName);\n customer.setLastName(newLastName);\n CustomerEntity updateCustomer = customerService.updateCustomer(customer);\n\n UpdateCustomerResponse response = new UpdateCustomerResponse();\n response.setId(updateCustomer.getUuid());\n response.setFirstName(updateCustomer.getFirstName());\n response.setLastName(updateCustomer.getLastName());\n response.setStatus(\"CUSTOMER DETAILS UPDATED SUCCESSFULLY\");\n return new ResponseEntity<UpdateCustomerResponse>(response, HttpStatus.OK);\n }\n\n }",
"@Override\n\tpublic int updateCustomerReprieve(CustomerReprieve customerReprieve) {\n\t\treturn customerDao.updateCustomerReprieve(customerReprieve);\n\t}",
"public static void updateCustomer(int customerID, String name, String address, String firstDivision, String postalCode, String phoneNumber) throws SQLException{\r\n\r\n //connection and prepared statement set up\r\n Connection conn = DBConnection.getConnection();\r\n String insertStatement = \"UPDATE customers SET Customer_Name = ?, Address = ?, Postal_Code = ?, Phone = ?, Last_Update = ?, Last_Updated_By = ?, Division_ID = ? WHERE Customer_ID = ?;\";\r\n DBQuery.setPreparedStatement(conn, insertStatement);\r\n PreparedStatement ps = DBQuery.getPreparedStatement();\r\n int divisionID = getDivisionID(firstDivision);\r\n String userName = DBUsers.getUser();\r\n\r\n ps.setString(1,name);\r\n ps.setString(2, address);\r\n ps.setString(3,postalCode);\r\n ps.setString(4,phoneNumber);\r\n ps.setTimestamp(5, Timestamp.valueOf(LocalDateTime.now()));\r\n ps.setString(6,userName);\r\n ps.setInt(7,divisionID);\r\n ps.setInt(8, customerID);\r\n\r\n ps.execute();\r\n\r\n if(ps.getUpdateCount() > 0) {\r\n System.out.println(ps.getUpdateCount() + \" row(s) effected\");\r\n }\r\n else {\r\n System.out.println(\"no change\");\r\n }\r\n }",
"@PutMapping(\"/customers\")\n public void updateCustomer(@RequestBody CustomerHibernate theCustomerHibernate) {\n customerService.save(theCustomerHibernate);\n }",
"@Override\n\t@Transactional\n\tpublic void saveCustomer(Customer theCustomer) {\n\t\tcustomerDAO.saveCustomer(theCustomer);\n\t\t\n\t}",
"@Override\n\tpublic void saveCustomer(AMOUNT theCustomer) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\n\t\t// save the customer ... \n\t\tcurrentSession.save(theCustomer);\n\t}",
"public Response<CustomerUpdateResponseDto> updateCustomer(CustomerUpdateReqDto requestDto) {\n\t\tResponse<CustomerUpdateResponseDto> responseDto = new Response<>();\n\t\tCustomerUpdateResponseDto response = null;\n\t\tOptional<Customer> customer = customerRepo.findByCustomerId(requestDto.getCustomerId());\n\t\tif (customer.isPresent()) {\n\t\t\tCustomer customerDetail = customer.get();\n\t\t\tcustomerDetail.setAddress(requestDto.getAddress());\n\t\t\tcustomerDetail.setBillingType(requestDto.getBillingType());\n\t\t\tcustomerDetail.setBusinessType(requestDto.getBusinessType());\n\t\t\tcustomerDetail.setCustomerColourConfig(requestDto.getCustomerColourConfig());\n\t\t\tcustomerDetail.setCustomerDescription(requestDto.getCustomerDescription());\n\t\t\tcustomerDetail.setCustomerEmailId(requestDto.getCustomerEmailId());\n\t\t\tcustomerDetail.setCustomerGroupEmailId(requestDto.getCustomerGroupEmailId());\n\t\t\tcustomerDetail.setCustomerLogo(requestDto.getCustomerLogo());\n\t\t\tcustomerDetail.setCustomerMobileNumber(requestDto.getCustomerMobileNumber());\n\t\t\tcustomerDetail.setCustomerName(requestDto.getCustomerName());\n\t\t\tcustomerDetail.setCustomerPhoneNumber(requestDto.getCustomerPhoneNumber());\n\t\t\tcustomerDetail.setCustomerStatus(requestDto.getCustomerStatus());\n\t\t\tcustomerDetail.setUtilityId(requestDto.getCustomerUtilityId());\n\t\t\tcustomerDetail.setModifiedBy(requestDto.getCustomerId());\n\t\t\tcustomerDetail.setModifiedDate(new Date());\n\t\t\tcustomerRepo.save(customerDetail);\n\t\t\tOptional<User> user = userRepo.findByCustomer(customer.get());\n\t\t\tif (!user.isPresent())\n\t\t\t\tthrow new NoDataFoundException(CustomerConstants.CUSTOMER_NOT_FOUND);\n\t\t\tUser userStatus = user.get();\n\t\t\tuserStatus.setUserStatus(requestDto.getCustomerStatus());\n\t\t\tuserStatus.setModifiedBy(requestDto.getCustomerId());\n\t\t\tuserStatus.setModifiedDate(new Date());\n\t\t\tuserRepo.save(userStatus);\n\t\t\tresponse = new CustomerUpdateResponseDto();\n\t\t\tresponse.setCustomerId(customerDetail.getCustomerId());\n\t\t\tresponseDto.setData(response);\n\t\t\tresponseDto.setMessage(CustomerConstants.CUSTOMER_UPDATED_SUCCESSFULLY);\n\t\t\tresponseDto.setStatus(HttpServletResponse.SC_OK);\n\t\t\tresponseDto.setError(false);\n\n\t\t} else {\n\t\t\tresponseDto.setStatus(HttpServletResponse.SC_NO_CONTENT);\n\t\t\tresponseDto.setError(true);\n\t\t\tresponseDto.setMessage(CustomerConstants.CUSTOMER_NOT_FOUND);\n\t\t}\n\t\treturn responseDto;\n\n\t}",
"public void update(String custNo, CstCustomer cstCustomer2) {\n\t\tcstCustomerDao.update(custNo,cstCustomer2);\n\t}",
"@RequestMapping(value = \"/subcategoryupdatepost\", method = RequestMethod.POST)\r\n\r\n\t\t\tpublic String updatecategoryData(@ModelAttribute(\"subcate\") SubCategory subcate, ModelMap m) {\r\n\t\t\t\t// validating if save execute successful then returning message &\r\n\t\t\t\t// true(validated in admin.jsp)\r\n\t\t\t\t\r\n\t\t\t\tif (subcatdao.updateCategory(subcate)) {\r\n\t\t\t\t\tm.addAttribute(\"message\", \"Update Successfully\");\r\n\t\t\t\t\tm.addAttribute(\"subcategoryrequest\", true);\r\n\t\t\t\t\tm.addAttribute(\"savesubcate\", true);\r\n\r\n\t\t\t\t\tString cate_list=subcatdao.getCategoryList(new SubCategory());\r\n\t\t\t m.addAttribute(\"subcate_list\",cate_list);\r\n\t\t\t\t\treturn \"admin\";\r\n\t\t\t\t}\r\n\r\n\t\t\t\telse {\r\n\t\t\t\t\tm.addAttribute(\"subcategoryrequest\", true);\r\n\t\t\t\t\tm.addAttribute(\"savesubcate\", true);\r\n\r\n\t\t\t\t\tm.addAttribute(\"message\", \"Something Went Wrong\");\r\n\r\n\t\t\t\t\treturn \"admin\";\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t\r\n\r\n\t\t\t}",
"@Override\r\n\tpublic void updateWx_BindCustomerPassword(Wx_BindCustomer wx_BindCustomer) {\n\t\tshopuserDao.updateWx_BindCustomerPassword(wx_BindCustomer);\r\n\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e)\n\t\t\t{\n\t\t\t\tint ID = 0;\n\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tID = Integer.parseInt(txtCustomerID.getText());\n\t\t\t\t}\n\t\t\t\tcatch(NumberFormatException e1) // ensures ID is integer\n\t\t\t\t{\n\t\t\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\t\t\"ID must consist of only numbers\", \"Error\",\n\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE, null);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\t// Gather user input\n\t\t\t\tString first = txtFirstName.getText();\n\t\t\t\tString last = txtLastName.getText();\n\t\t\t\tString phone = txtPhoneNumber.getText();\n\t\t\t\tString address = txtAddress.getText();\n\t\t\t\tString email = txtEmail.getText();\n\n\t\t\t\tif(first.isEmpty())\n\t\t\t\t{\n\t\t\t\t\tfirst = \"N/A\";\n\t\t\t\t}\n\t\t\t\tif(last.isEmpty())\n\t\t\t\t{\n\t\t\t\t\tlast = \"N/A\";\n\t\t\t\t}\n\t\t\t\tif(phone.isEmpty())\n\t\t\t\t{\n\t\t\t\t\tphone = \"N/A\";\n\t\t\t\t}\n\t\t\t\tif(address.isEmpty())\n\t\t\t\t{\n\t\t\t\t\taddress = \"N/A\";\n\t\t\t\t}\n\t\t\t\tif(email.isEmpty())\n\t\t\t\t{\n\t\t\t\t\temail = \"N/A\";\n\t\t\t\t}\n\n\t\t\t\tchar returnCustomer;\n\n\t\t\t\tif(rdbtnYes.isSelected())\n\t\t\t\t\treturnCustomer = 'Y';\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\treturnCustomer = 'N';\n\t\t\t\t}\n\n\t\t\t\t// confirmation dialog\n\t\t\t\tint choice = JOptionPane.showConfirmDialog(null,\n\t\t\t\t\t\t\"Is The Following Information Correct?\" + \"\\nID: \" + ID\n\t\t\t\t\t\t\t\t+ \"\\nFirst Name: \" + first + \"\\nLast Name: \"\n\t\t\t\t\t\t\t\t+ last + \"\\nPhone Number: \" + phone\n\t\t\t\t\t\t\t\t+ \"\\nAddress: \" + address + \"\\nEmail: \" + email\n\t\t\t\t\t\t\t\t+ \"\\nReturn Customer: \" + returnCustomer,\n\t\t\t\t\t\t\"Confirmation\", JOptionPane.YES_NO_OPTION);\n\n\t\t\t\t// if information confirmed, commits data to database.\n\t\t\t\tif(choice == 0)\n\t\t\t\t{\n\n\t\t\t\t\t// creates customer object\n\t\t\t\t\tCustomer create = new Customer(ID, first, last, phone,\n\t\t\t\t\t\t\taddress, email, returnCustomer);\n\n\t\t\t\t\ttry\n\t\t\t\t\t{\n\t\t\t\t\t\tOracleJDBC.writeCustomer(create); // passes to method that writes customer to database\n\t\t\t\t\t}\n\t\t\t\t\tcatch(SQLException e1)\n\t\t\t\t\t{\n\n\t\t\t\t\t\tif(e1.getErrorCode() == 12899)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tString message = e1.getMessage();\n\n\t\t\t\t\t\t\tif(message.contains(\n\t\t\t\t\t\t\t\t\t\"ORA-12899: value too large for column \\\"DYLAN\\\".\\\"CUSTOMER\\\".\\\"FIRSTNAME\\\"\"))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\t\t\t\t\t\"First name is too Long, Max Length = 12\",\n\t\t\t\t\t\t\t\t\t\t\"Error\", JOptionPane.ERROR_MESSAGE,\n\t\t\t\t\t\t\t\t\t\tnull); // sql error that email is too long\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if(message.contains(\n\t\t\t\t\t\t\t\t\t\"ORA-12899: value too large for column \\\"DYLAN\\\".\\\"CUSTOMER\\\".\\\"LASTNAME\\\"\"))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\t\t\t\t\t\"Last name is too Long, Max Length = 50\",\n\t\t\t\t\t\t\t\t\t\t\"Error\", JOptionPane.ERROR_MESSAGE,\n\t\t\t\t\t\t\t\t\t\tnull); // sql error that email is too long\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if(message.contains(\n\t\t\t\t\t\t\t\t\t\"ORA-12899: value too large for column \\\"DYLAN\\\".\\\"CUSTOMER\\\".\\\"PHONE\\\"\"))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\t\t\t\t\t\"Phone number is too Long, Max Length = 14\",\n\t\t\t\t\t\t\t\t\t\t\"Error\", JOptionPane.ERROR_MESSAGE,\n\t\t\t\t\t\t\t\t\t\tnull); // sql error that email is too long\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if(message.contains(\n\t\t\t\t\t\t\t\t\t\"ORA-12899: value too large for column \\\"DYLAN\\\".\\\"CUSTOMER\\\".\\\"ADDRESS\\\"\"))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\t\t\t\t\t\"Address is too Long, Max Length = 50\",\n\t\t\t\t\t\t\t\t\t\t\"Error\", JOptionPane.ERROR_MESSAGE,\n\t\t\t\t\t\t\t\t\t\tnull); // sql error that email is too long\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if(message.contains(\n\t\t\t\t\t\t\t\t\t\"ORA-12899: value too large for column \\\"DYLAN\\\".\\\"CUSTOMER\\\".\\\"EMAIL\\\"\"))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\t\t\t\t\t\"EMAIL is too Long, Max Length = 50\",\n\t\t\t\t\t\t\t\t\t\t\"Error\", JOptionPane.ERROR_MESSAGE,\n\t\t\t\t\t\t\t\t\t\tnull); // sql error that email is too long\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\telse if(e1.getErrorCode() == 00001) // sql error for PK constraint violation\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\t\t\t\t\"Customer ID already in use\", \"Error\",\n\t\t\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE, null);\n\t\t\t\t\t\telse if(e1.getErrorCode() == 1438) // sql error for customer ID too long\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\t\t\t\t\"Customer ID to long, must be 5 digits or less\",\n\t\t\t\t\t\t\t\t\t\"Error\", JOptionPane.ERROR_MESSAGE, null);\n\t\t\t\t\t\telse // unaccounted for error (should not happen)\n\t\t\t\t\t\t\te1.printStackTrace();\n\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Customer Created\",\n\t\t\t\t\t\t\t\"Success\", JOptionPane.INFORMATION_MESSAGE, null);\n\n\t\t\t\t\t// clears form\n\t\t\t\t\tclearForm();\n\t\t\t\t\trdbtnNo.isSelected();\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\treturn;\n\n\t\t\t}",
"@RequestMapping(value=\"/update\", method = RequestMethod.PUT)\r\n\t @ResponseBody\r\n//\t public String updateUser(Long id, String userName, String phone, String email, String password, Date dateOfBirth, String userNotes) {\r\n\t public UserDto update(UserDto userDto) \r\n\t {\r\n\t\t return service.update(userDto);\r\n\t }",
"public boolean editCustomer(int id, String firstName, String lastName, String phone, String address) {\r\n\t\tCustomer customer = getCustomer(id);\r\n\t\tcustomer.setFirstName(firstName);\r\n\t\tcustomer.setLastName(lastName);\r\n\t\tcustomer.setPhone(phone);\r\n\t\tcustomer.setAddress(address);\r\n\t\ttry {\r\n\t\t\tcustomer.commit();\r\n\t\t\treturn true;\r\n\t\t} catch (SQLException e) {\r\n\t\t\t\r\n\t\t}\r\n\t\treturn false;\r\n\t\t\r\n\t}",
"public Boolean updateCustomer(String customerId, Customer updatedValuedCustomer){\n Boolean success = false;\n try{\n // try and connect\n conn = DriverManager.getConnection(URL);\n\n // make sql query\n PreparedStatement preparedStatement =\n conn.prepareStatement(\"UPDATE Customer SET FirstName=?, LastName=?, Country=?, PostalCode=?, Phone=?, Email=? WHERE CustomerId = ?\");\n preparedStatement.setString(1, updatedValuedCustomer.getFirstName());\n preparedStatement.setString(2, updatedValuedCustomer.getLastName());\n preparedStatement.setString(3, updatedValuedCustomer.getCountry());\n preparedStatement.setString(4, updatedValuedCustomer.getPostalCode());\n preparedStatement.setString(5, updatedValuedCustomer.getPhoneNumber());\n preparedStatement.setString(6, updatedValuedCustomer.getEmail());\n preparedStatement.setString(7, customerId);\n\n int result = preparedStatement.executeUpdate();\n success = (result != 0);\n System.out.println(\"Added customer\");\n }\n catch(Exception exception){\n System.out.println(exception.toString());\n }\n finally{\n try{\n conn.close();\n }\n catch (Exception exception){\n System.out.println(exception.toString());\n }\n }\n return success;\n }",
"public String save() {\n\t\tSystem.out.println(\"Action数据封装\"+customer);\n\t\tcustomerService.save(customer);\n\t\treturn NONE;\n\t}",
"@RequestMapping(value = \"edit/{id}\", method = RequestMethod.POST)\r\n\tpublic ModelAndView edit(@ModelAttribute Person editedPerson, @PathVariable int id) \r\n\t{\r\n\t\tpersonService.updatePerson(editedPerson);\r\n\t\treturn new ModelAndView(\"addEditConfirm\", \"person\", editedPerson);\r\n\t}",
"@FXML\n void UpdateCustomer(ActionEvent event) throws IOException {\n\n customer customer = customerTableView.getSelectionModel().getSelectedItem();\n if(customer == null)\n return;\n \n FXMLLoader loader = new FXMLLoader();\n loader.setLocation(getClass().getResource(\"/view/UpdateCustomer.fxml\"));\n loader.load();\n\n UpdateCustomerController CustomerController = loader.getController();\n CustomerController.retrieveCustomer(customer);\n\n stage = (Stage)((Button)event.getSource()).getScene().getWindow();\n Parent scene = loader.getRoot();\n stage.setScene(new Scene(scene));\n stage.show();\n\n }",
"CustomerDto updateCustomer(CustomerDto customerDto);",
"@RequestMapping(value = \"update\", method = RequestMethod.POST)\r\n\tpublic String update(HttpServletRequest request) {\n\t\tint id = Integer.parseInt(request.getParameter(\"id\"));\r\n\t\tString name = request.getParameter(\"name\");\r\n\t\tint marks = Integer.parseInt(request.getParameter(\"marks\"));\r\n\t\t// Create the student\r\n\t\tStudent student = new Student(id, name,marks);\r\n\t\tSystem.out.println(student);\r\n\t\t// insert student to db\r\n\r\n\t\tString res = studentService.update(student);\r\n\r\n\t\tif (res.equals(\"SUCCESS\"))\r\n\t\t\trequest.setAttribute(\"msg\", \"Record Updated\");\r\n\t\telse\r\n\t\t\trequest.setAttribute(\"msg\", \"Record Not Updated\");\r\n\t\treturn \"update\";\r\n\t}",
"@RequestMapping(value = \"/addCustomer\", method = RequestMethod.POST)\n\tpublic String submitCustomer(@Valid @ModelAttribute(\"Customer\") Customer customer, BindingResult result) {\n\t\t// Return to current page if errors occur\n\t\tif (result.hasErrors()) {\n\t\t\treturn \"addCustomer\";\n\t\t}\n\t\t\n\t\t// Add to Customer service\n\t\tcustomerService.addCustomer(customer);\n\t\t\n\t\t// Redirect to showCustomers.jsp\n\t\treturn \"redirect:showCustomers\";\n\t}",
"@GET\n\t@Path(\"UpdateCustomer\")\n\tpublic Reply UpdateCustomer(@QueryParam(\"id\") int id, @QueryParam(\"companyname\") String companyname,\n\t\t\t@QueryParam(\"companynumber\") String companynumber, @QueryParam(\"contactname\") String contactname,\n\t\t\t@QueryParam(\"email\") String email, @QueryParam(\"phone\") String phone, @QueryParam(\"user\") int user) {\n\t\treturn ManagerHelper.getCustomerManager().UpdateCustomer(id, companyname, companynumber, contactname, email,\n\t\t\t\tphone, user);\n\t}",
"@Override\n\tpublic void update() {\n\t\tSystem.out.println(\"Mobile Customer update()\");\n\t}"
] | [
"0.70978206",
"0.7079599",
"0.69978786",
"0.6969132",
"0.69068724",
"0.673285",
"0.6703497",
"0.6703497",
"0.6645361",
"0.6596063",
"0.6509535",
"0.65004987",
"0.64517707",
"0.64299583",
"0.6425492",
"0.63320196",
"0.6319836",
"0.63151526",
"0.6313382",
"0.63035685",
"0.6301862",
"0.630036",
"0.62985224",
"0.6296293",
"0.6284823",
"0.6282602",
"0.6245298",
"0.62405574",
"0.6232623",
"0.622851",
"0.6226377",
"0.6219896",
"0.6199676",
"0.6176842",
"0.6171069",
"0.61374474",
"0.6126848",
"0.6126057",
"0.6123465",
"0.6094402",
"0.60928774",
"0.60903883",
"0.6081683",
"0.6066562",
"0.6029419",
"0.6024427",
"0.60137683",
"0.60128033",
"0.6009367",
"0.5965614",
"0.5947557",
"0.59456396",
"0.5943772",
"0.59433174",
"0.59428203",
"0.5939009",
"0.5934601",
"0.5908987",
"0.5908871",
"0.590811",
"0.5900786",
"0.5893198",
"0.5879902",
"0.5866103",
"0.58652216",
"0.5864974",
"0.5862794",
"0.58606213",
"0.58593035",
"0.5843625",
"0.5835507",
"0.58336467",
"0.5831173",
"0.58294326",
"0.5819637",
"0.5809247",
"0.5808598",
"0.58034146",
"0.57977885",
"0.579323",
"0.5783969",
"0.57754946",
"0.576964",
"0.57581675",
"0.57446194",
"0.5726844",
"0.5725874",
"0.5715621",
"0.5714336",
"0.57057935",
"0.57045424",
"0.56910527",
"0.5689061",
"0.56805766",
"0.56766355",
"0.56703794",
"0.565855",
"0.56467175",
"0.5644361",
"0.5629897"
] | 0.82637036 | 0 |
/For the updateForm() method, the customer is retrieved and saved into the Model, and then the logical view customers/update is returned, which will display the edit customer view. That is, do nothing if form is sent through HTTP:GET | @PreAuthorize("hasRole('ROLE_ADMIN')")
@RequestMapping(value = "/{id}", params = "form", method = RequestMethod.GET)
public String updateForm(@PathVariable("id") Long id, Model uiModel) {
uiModel.addAttribute("customer", customerService.findById(id));
return "customers/update";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@GetMapping(\"/showFormForUpdate\")\r\n\tpublic String showFormForUpdate(@RequestParam(\"customerId\") int id, Model theModel){\n\t\tCustomer theCustomer = customerService.getCustomer(id);\r\n\t\t\r\n\t\t//set customer as model attribute to pre-populate\r\n\t\ttheModel.addAttribute(\"customer\",theCustomer);\r\n\t\t\r\n\t\t//send over to our form\r\n\t\treturn \"customer-form\";\r\n\t}",
"@GetMapping(\"/showFormForUpdate\")\n\tpublic String showFormForUpdate(@RequestParam(\"customerId\") int id, Model model) {\n\t\tCustomer customer = customerService.getById(id);\n\t\t\n\t\t\n\t\tmodel.addAttribute(\"customer\", customer);\n\t\t\n\t\treturn \"customer-form\";\n\t}",
"@PreAuthorize(\"hasRole('ROLE_ADMIN')\")\n\t@RequestMapping(value = \"/{id}\", params = \"form\", method = RequestMethod.POST)\n\tpublic String update(@Valid Customer customer, BindingResult bindingResult, \n\t\t\t\t\t\tModel uiModel, HttpServletRequest httpServletRequest, \n\t\t\t\t\t\tRedirectAttributes redirectAttributes, Locale locale) {\n\t\t\tlogger.info(\"Updating customer\"); \n\t\t\tif (bindingResult.hasErrors()) {\n\t\t\t\tuiModel.addAttribute(\"message\", new Message(\"error\", messageSource.getMessage(\"customer_save_fail\", new Object[]{}, locale)));\n\t\t\t\tuiModel.addAttribute(\"customer\", customer);\n\t\t\t\treturn \"customers/update\"; \n\t\t\t}\n\t\t\tuiModel.asMap().clear(); \n\t\t\tredirectAttributes.addFlashAttribute(\"message\", new Message(\"success\",messageSource.getMessage(\"customer_save_success\", new Object[]{}, locale))); \n\t\t\tcustomerService.save(customer);\n\t\t\treturn \"redirect:/customers/\" + UrlUtil.encodeUrlPathSegment(customer.getId().toString(),httpServletRequest);\n\t}",
"private void showEditForm(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n int id = Integer.parseInt(request.getParameter(\"id\"));\n Customer customerEdit = CustomerDao.getCustomer(id);\n RequestDispatcher dispatcher = request.getRequestDispatcher(\"customer/editCustomer.jsp\");\n dispatcher.forward(request, response);\n }",
"@RequestMapping(value = \"/customer/editCustomer\", method = RequestMethod.POST)\n public String editCustomerPost(@Valid @ModelAttribute(\"customer\") Customer customer, BindingResult result,\n HttpServletRequest request ) {\n if(result.hasErrors()) {\n return \"editCustomer\";\n }\n\n customerService.editCustomer(customer);\n\n return \"redirect:/admin/customer\";\n }",
"@GetMapping(\"/carsAndCustomers/customer/edit/{id}\")\n public String editForm(@PathVariable(\"id\") Integer id, Model model) {\n Customer customer = customerRepository.getOne(id);\n model.addAttribute(\"customer\", customer);\n return \"fragments/editCustomerForm :: editCustomerForm\";\n\n }",
"private void updateCustomer(HttpServletRequest request, HttpServletResponse response) throws IOException {\n int id = Integer.parseInt(request.getParameter(\"id\"));\n String name = request.getParameter(\"name\");\n String phone = request.getParameter(\"phone\");\n String email = request.getParameter(\"email\");\n Customer updateCustomer = new Customer(id, name, phone, email);\n CustomerDao.addCustomer(updateCustomer);\n response.sendRedirect(\"list\");\n\n }",
"@PutMapping(\"/{id}\")\n public String update(@ModelAttribute(CUSTOMER) CustomerDTO customerDTO, @PathVariable(\"id\") long id) {\n Customer customer = mapDTOCustomerToPersistent(customerDTO);\n customer.getActualAddress().setModified(LocalDateTime.now());\n customerService.updateCustomer(customer, id);\n return REDIRECT_CLIENTS;\n }",
"@RequestMapping(\"/customer/editCustomer/{id}\")\n public String editCustomer(@PathVariable(\"id\") int id, Model model) {\n Customer customer = customerService.getCustomerById(id);\n\n model.addAttribute(\"customer\", customer);\n\n return \"editCustomer\";\n }",
"private void getEditCustomer(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\t//int id=Integer.parseInt(request.getParameter(\"id\"));\n\t\tCustomer c=cr.getCustomer(1);\n\t\tSystem.out.println(c);\n\t\trequest.setAttribute(\"c\", c);\n\t\tRequestDispatcher rd=request.getRequestDispatcher(\"editCus.jsp\");\n\t\trd.forward(request, response);\n\t\t\n\t}",
"public int updateCustomer(Customer customer) {\n return model.updateCustomer(customer); \n }",
"public boolean updateCustomer() {\n\t\treturn false;\r\n\t}",
"private void update(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tString id = req.getParameter(\"id\");\n\t\tString name = req.getParameter(\"name\");\n\t\tString address = req.getParameter(\"address\");\n\t\tString phone = req.getParameter(\"phone\");\n\t\tString oldName = req.getParameter(\"oldName\");\n\t\t\n\t\t//2. check if the name exists\n\t\t//2.1. check if name and oldName are same\n\t\tif(!oldName.equalsIgnoreCase(name)) {\n\t\t\t//2.2. if not same, call customerDAO.getCountByName() to know if the name exists in the database\n\t\t\tlong count = customerDAO.getCountByName(name);\n\t\t\t//2.3. if the return value > 0, forward to newcustomer.jsp\n\t\t\tif(count > 0) {\n\t\t\t\t//2.3.1. display an error message in updatecustomer.jsp page (by request.setAttribute)\n\t\t\t\treq.setAttribute(\"message\", \"Name \\\"\" + name + \"\\\" exists, please enter a different name!\");\n\t\t\t\t//2.3.2. keep the values in the form from previous submission by forwarding to updatecustomer.jsp\n\t\t\t\treq.getRequestDispatcher(\"/updatecustomer.jsp\").forward(req, resp);\n\t\t\t\t//2.3.3. return, end the function\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t//3. if not exists, encapsulate parameters into a Customer object\n\t\tCustomer customer = new Customer(name, address, phone);\n\t\tcustomer.setId(Integer.parseInt(id));\n\t\t//4. call customerDAO.update()\n\t\tcustomerDAO.update(customer);\n\t\t//5. redirect to query.do\n\t\tresp.sendRedirect(\"query.do\");\n\t}",
"@Override\n\tpublic boolean updateCustomer(Customer customer) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic void update(Customer customer) {\n\t\t\n\t}",
"@Override\n\tpublic void update(Customer customer) {\n\t\t\n\t}",
"public void update(Customer customer) {\n\n\t}",
"@RequestMapping(method=RequestMethod.GET,value=\"/form_modelandview\")\n\tpublic ModelAndView getcustomerform_modelandview()\n\t{\n\t\t ModelAndView modelAndView = new ModelAndView(\"form\");\n\t\t modelAndView.addObject(\"message\", \"Model and View\");\t \n\t\t\t\t \n\t\tSystem.out.println(\"============Customer form called============\");\n\t\treturn modelAndView;\n\t}",
"public ResponseEntity<?> updateCustomerById(Long id, customer.controller.Customer customer);",
"@PutMapping(\"/customerupdate\")\n\tpublic void update(@RequestBody Customer theCustomer) {\n\t\t// checking whether the customer exists or not\n\t\tCustomer customerExists = customerServices.findByID(theCustomer.getMobile_number());\n\n\t\tif (customerExists != null) {\n\t\t\tcustomerServices.save(theCustomer);\n\t\t} else {\n\t\t\tthrow new RuntimeException(\"Customer with customer id - \" + theCustomer + \" not exists\");\n\t\t}\n\t}",
"@RequestMapping(method=RequestMethod.GET,value=\"/customerform\")\n\tpublic String getcustomerform(Model model)\n\t{\n\t\tmodel.addAttribute(\"message\", \"Using model\");\n\t\tmodel.addAttribute(\"customer\", new CustomerDTO());\n\t\t\n\t\t\n\t\tSystem.out.println(\"============Customer form called============\");\n\t\treturn \"customer_registrationform\";\n\t}",
"@FXML\n void UpdateCustomer(ActionEvent event) throws IOException {\n\n customer customer = customerTableView.getSelectionModel().getSelectedItem();\n if(customer == null)\n return;\n \n FXMLLoader loader = new FXMLLoader();\n loader.setLocation(getClass().getResource(\"/view/UpdateCustomer.fxml\"));\n loader.load();\n\n UpdateCustomerController CustomerController = loader.getController();\n CustomerController.retrieveCustomer(customer);\n\n stage = (Stage)((Button)event.getSource()).getScene().getWindow();\n Parent scene = loader.getRoot();\n stage.setScene(new Scene(scene));\n stage.show();\n\n }",
"@Override\n\tpublic boolean updateCustomer(Customer customer) {\n\t\tSession session =sessionFactory.getCurrentSession();\n\t\tsession.update(customer);\n\t\treturn true;\n\t}",
"public void prepareUpdate() {\r\n\t\tlog.info(\"prepare for update customer...\");\r\n\t\tMap<String, String> params = FacesContext.getCurrentInstance()\r\n\t\t\t\t.getExternalContext().getRequestParameterMap();\r\n\t\tString id = params.get(\"customerIdParam\");\r\n\t\tlog.info(\"ID==\" + id);\r\n\t\tCustomer customer = customerService.searchCustomerById(new Long(id));\r\n\t\tcurrent.setCustomerId(customer.getCustomerId());\r\n\t\tcurrent.setCustomerCode(customer.getCustomerCode());\r\n\t\tcurrent.setCustomerName(customer.getCustomerName());\r\n\t\tcurrent.setTermOfPayment(customer.getTermOfPayment());\r\n\t\tcurrent.setCustomerGrade(customer.getCustomerGrade() != null ? customer.getCustomerGrade() : \"\");\r\n\t\tcurrent.setAddress(customer.getAddress());\r\n\t\tlog.info(\"prepare for update customer end...\");\r\n\t}",
"@RequestMapping(\"/showForm\")\n\tpublic String showForm(Model theModel) {\n\t\tCustomer customer = new Customer();\n\n\t\t// add Customer object to the model\n\t\ttheModel.addAttribute(\"customer\", customer);\n\t\t\n\t\treturn \"customer-form\";\n\t}",
"public void update(Customer myCust){\n }",
"public void editCustomer(Customer c) {\n\t\tconnector.editCustomer(c);\n\t\t\n\t\t// Edit entries in table \"Nummern\"\n\t\tconnector.editNumbers(c, c.getNumbers());\n\t\t\n\t\tupdateCustomers();\n\t}",
"public void actionPerformed(ActionEvent e){\n\t\t\t\tif(editCustIdCombo.getSelectedIndex() != 0){\n\t\t\t\t\tif(editCustName.getText().isEmpty() || editCustAddress.getText().isEmpty()){\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Required Fields: \\n Customer Name \\n Customer Address\");\t\n\t\t\t\t\t}else{\n\t\t\t\t\t\tfor(Customer customer: customers){\n\t\t\t\t\t\t\tif(customer.getCustId() == Integer.parseInt(editCustIdCombo.getSelectedItem().toString())){\n\t\t\t\t\t\t\t\tcustomer.setCustName(editCustName.getText());\n\t\t\t\t\t\t\t\tcustomer.setCustAddress(editCustAddress.getText());\n\t\t\t\t\t\t\t\tcustomer.setCustEmail(editCustEmail.getText());\n\t\t\t\t\t\t\t\tcustomer.setCustTelephone(Integer.parseInt(editCustPhone.getText()));\n\t\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Customer Updated.\");\n\t\t\t\t\t\t\t\teditCustIdCombo.setSelectedIndex(0);\n\t\t\t\t\t\t\t\teditCustName.setText(\"\");\n\t\t\t\t\t\t\t\teditCustAddress.setText(\"\");\n\t\t\t\t\t\t\t\teditCustEmail.setText(\"\");\n\t\t\t\t\t\t\t\teditCustPhone.setText(\"\");\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Please Select a Valid Customer.\");\n\t\t\t\t}\n\t\t\t}",
"void updateCustomerById(Customer customer);",
"@GetMapping(\"/{id}/edit\")\n public String edit(Model model,\n @PathVariable(\"id\") long id) {\n model.addAttribute(CUSTOMER, customerService.showCustomerById(id));\n return CUSTOMERS_EDIT;\n }",
"public void showEditCustomerDialog(Customer customer) {\n \t\n \ttry {\n\t\t\tFXMLLoader loader = new FXMLLoader();\n\t\t\tloader.setLocation(MainApplication.class.getResource(\"view/CustomerEditDialog.fxml\"));\n\t\t\tAnchorPane page = (AnchorPane) loader.load();\n\t\t\tStage editCustomerDialogStage = new Stage(); \n\t\t\teditCustomerDialogStage.setTitle(\"Edit Person\");\n\t\t\teditCustomerDialogStage.initModality(Modality.WINDOW_MODAL);\n\t\t\teditCustomerDialogStage.initOwner(searchCustomerDialogStage);\n\t\t\tScene scene = new Scene(page);\n\t\t\teditCustomerDialogStage.setScene(scene);\n\t\t\tCustomerEditDialogController customerEditDialogController = loader.getController();\n\t\t\tcustomerEditDialogController.setDialogStage(editCustomerDialogStage);\n\t\t\tcustomerEditDialogController.setCustomer(customer);\n\t\t\tcustomerEditDialogController.setSearchCustomerController(this.searchCustomerDialogController);\n\t\t\teditCustomerDialogStage.showAndWait();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\t\n\t\t }\n }",
"@Override\n\tpublic Customer update(long customerId, Customer customer) {\n\t\treturn null;\n\t}",
"@PutMapping(\"/customers\")\n\tpublic Customer updatecustomer(@RequestBody Customer thecustomer) {\n\t\t\n\t\tthecustomerService.saveCustomer(thecustomer); //as received JSON object already has id,the saveorupdate() DAO method will update details of existing customer who has this id\n\t\treturn thecustomer;\n\t}",
"@RequestMapping(\"/showFormForUpdate\")\n\tpublic String showFormForUpdate(@RequestParam(\"personId\") int theId, Model theModel) {\n\t\tPerson thePerson = patientKeeperService.getPerson(theId);\n\n\t\t// set person as a model attribute to pre-populate the form\n\t\ttheModel.addAttribute(\"person\", thePerson);\n\n\t\t// send over to our form\n\t\treturn \"person-form\";\n\t}",
"@RequestMapping(value = \"/customer/{id}\",method=RequestMethod.PUT)\n @ResponseStatus(HttpStatus.NO_CONTENT)\n public void updateCustomer(@PathVariable(\"id\") int id, @RequestBody @Valid CustomerViewModel customerViewModel){\n //check if the id matches the request body. Path variable and the\n //user passed data (customerId) must match to proceed.\n //so you need to input in both path variable and the requestbody\n if(id != customerViewModel.getCustomerId()){\n //throw illegal arguement\n }\n\n //if it does match, update that customer\n service.updateCustomer(customerViewModel);\n }",
"@FXML\n\tprivate void handleEdit() {\n\t\tCustomer customer = customerTable.getSelectionModel().getSelectedItem();\n\t\tshowCustomerInfoDialog(customer);\n\t}",
"@PostMapping(\"/saveCustomer\")\r\n\tpublic String saveCustomer(@ModelAttribute(\"customer\") Customer theCustomer){\n\t\tcustomerService.saveCustomer(theCustomer);\r\n\t\t\r\n\t\treturn \"redirect:/customer/list\";\r\n\t}",
"@GetMapping(\"/showForm\")\n public String showFormForAdd(Model theModel) {\n Customer theCustomer = new Customer();\n theModel.addAttribute(\"customer\", theCustomer);\n return \"customer-form\";\n }",
"@Test\n\tpublic void updateCustomer() {\n\t\t// Given\n\t\tString name = \"Leo\";\n\t\tString address = \"Auckland\";\n\t\tString telephoneNumber = \"021123728381\";\n\t\tICustomer customer = customerController.create(name, address, telephoneNumber);\n\t\tname = \"Mark\";\n\t\taddress = \"Auckland\";\n\t\ttelephoneNumber = \"0211616447\";\n\t\tlong id = customer.getId();\n\n\t\t// When\n\t\tICustomer cus = customerController.update(id, name, address, telephoneNumber);\n\n\t\t// Then\n\t\tAssert.assertEquals(name, cus.getName());\n\t\tAssert.assertEquals(address, cus.getAddress());\n\t\tAssert.assertEquals(telephoneNumber, cus.getTelephoneNumber());\n\t\tAssert.assertEquals(id, cus.getId());\n\t}",
"public void updateCustomer(String id) {\n\t\t\n\t}",
"@RequestMapping(value = \"/customerOrders\",\n method = RequestMethod.PUT,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<CustomerOrder> updateCustomerOrder(@Valid @RequestBody CustomerOrder customerOrder) throws URISyntaxException {\n log.debug(\"REST request to update CustomerOrder : {}\", customerOrder);\n if (customerOrder.getId() == null) {\n return createCustomerOrder(customerOrder);\n }\n CustomerOrder result = customerOrderRepository.save(customerOrder);\n customerOrderSearchRepository.save(result);\n return ResponseEntity.ok()\n .headers(HeaderUtil.createEntityUpdateAlert(\"customerOrder\", customerOrder.getId().toString()))\n .body(result);\n }",
"@GET\n\t@Path(\"UpdateCustomer\")\n\tpublic Reply UpdateCustomer(@QueryParam(\"id\") int id, @QueryParam(\"companyname\") String companyname,\n\t\t\t@QueryParam(\"companynumber\") String companynumber, @QueryParam(\"contactname\") String contactname,\n\t\t\t@QueryParam(\"email\") String email, @QueryParam(\"phone\") String phone, @QueryParam(\"user\") int user) {\n\t\treturn ManagerHelper.getCustomerManager().UpdateCustomer(id, companyname, companynumber, contactname, email,\n\t\t\t\tphone, user);\n\t}",
"@RequestMapping(\"edit\")\n\tpublic String edit(ModelMap model, HttpSession httpSession) {\n\t\tCustomer user = (Customer) httpSession.getAttribute(\"user\");\n\t\tmodel.addAttribute(\"user\", user);\n\t\treturn \"user/account/edit\";\n\t}",
"@Override\n\tpublic void update(Customer t) {\n\n\t}",
"public static void editCustomer(Customer c) throws IOException\r\n\t{\r\n\t\t// Stores the menu selection for the customer editor\r\n\t\tString editMenuSelection = new String();\r\n\t\t\r\n\t\t// display the customer editor screen until the user enters \"q\"\r\n\t\twhile(!editMenuSelection.equalsIgnoreCase(\"q\"))\r\n\t\t{\r\n\t\t\tclearScreen();\r\n\t\t\t\r\n\t\t\t// display the menu\r\n\t\t\tSystem.out.println(\"[CUSTOMER EDITOR]\\n\");\r\n\t\t\tSystem.out.println(\"a. Name: \" + c.getName());\r\n\t\t\tSystem.out.println(\" CustomerID: \" + c.getCustomerID());\r\n\t\t\tSystem.out.println(\"b. Email: \" + c.getEmail());\r\n\t\t\tSystem.out.println(\"c. Phone Number: \" + c.getPhoneNumber());\r\n\t\t\tSystem.out.println(\"d. Ship Address: \" + c.getShippingAddress());\r\n\t\t\tSystem.out.println(\"e. Ship State: \" + c.getShippingState());\r\n\t\t\tSystem.out.println(\"f. Ship City: \" + c.getShippingCity());\r\n\t\t\tSystem.out.println(\"g. Ship Zip: \" + c.getShippingZip());\r\n\t\t\tSystem.out.println(\"h. Bill Address: \" + c.getBillingAddress());\r\n\t\t\tSystem.out.println(\"i. Bill State: \" + c.getBillingState());\r\n\t\t\tSystem.out.println(\"j. Bill City: \" + c.getBillingCity());\r\n\t\t\tSystem.out.println(\"k. Bill Zip: \" + c.getBillingZip());\r\n\t\t\tSystem.out.println(\"l. Comment: \" + c.getComment());\r\n\t\t\tSystem.out.println(\"r. remove customer\");\r\n\t\t\tSystem.out.println(\"\\nEnter the letter for the field you would like to edit\\nType q to quit the editor\");\r\n\t\t\t\r\n\t\t\t// gets user menu input\r\n\t\t\teditMenuSelection = inputString(true);\r\n\t\t\t\r\n\t\t\t// Edit name\r\n\t\t\tif(editMenuSelection.equalsIgnoreCase(\"a\"))\r\n\t\t\t{\r\n\t\t\t\tclearScreen();\r\n\t\t\t\tSystem.out.println(\"[NAME EDITOR]\\n\");\r\n\t\t\t\tSystem.out.println(\"[CUSTOMER: \" + c.getName() + \"] [ID: \" + c.getCustomerID() + \"]\");\r\n\t\t\t\tSystem.out.println(\"Current name: \" + c.getName());\r\n\t\t\t\tSystem.out.println(\"Enter a new name.\");\r\n\t\t\t\tString newName = new String(inputString(true));\r\n\t\t\t\tclearScreen();\r\n\t\t\t\tSystem.out.println(\"Old name \" + c.getName() + \" replaced with \" + newName + \".\");\r\n\t\t\t\tc.setName(newName);\r\n\t\t\t\tSystem.out.println(\"[PRESS ENTER TO CONTINUE]\");\r\n\t\t\t\t// Get a garbage user input before showing the next screen\r\n\t\t\t\tnewName = inputString(true);\r\n\t\t\t}\r\n\t\t\t// Edit Email\r\n\t\t\telse if(editMenuSelection.equalsIgnoreCase(\"b\"))\r\n\t\t\t{\r\n\t\t\t\tclearScreen();\r\n\t\t\t\tSystem.out.println(\"[EMAIL EDITOR]\\n\");\r\n\t\t\t\tSystem.out.println(\"[CUSTOMER: \" + c.getName() + \"] [ID: \" + c.getCustomerID() + \"]\");\r\n\t\t\t\tSystem.out.println(\"Current email: \" + c.getEmail());\r\n\t\t\t\tSystem.out.println(\"Enter a new email.\");\r\n\t\t\t\tString newEmail = new String(inputString(true));\r\n\t\t\t\tclearScreen();\r\n\t\t\t\tSystem.out.println(\"Old email \" + c.getEmail() + \" replaced with \" + newEmail + \".\");\r\n\t\t\t\tc.setEmail(newEmail);\r\n\t\t\t\tSystem.out.println(\"[PRESS ENTER TO CONTINUE]\");\r\n\t\t\t\t// Get a garbage user input before showing the next screen\r\n\t\t\t\tnewEmail = inputString(true);\r\n\t\t\t}\r\n\t\t\t// Edit Phone Number\r\n\t\t\telse if(editMenuSelection.equalsIgnoreCase(\"c\"))\r\n\t\t\t{\r\n\t\t\t\tclearScreen();\r\n\t\t\t\tSystem.out.println(\"[PHONE NUMBER EDITOR]\\n\");\r\n\t\t\t\tSystem.out.println(\"[CUSTOMER: \" + c.getName() + \"] [ID: \" + c.getCustomerID() + \"]\");\r\n\t\t\t\tSystem.out.println(\"Current phone number: \" + c.getPhoneNumber());\r\n\t\t\t\tSystem.out.println(\"Enter a new phone number.\");\r\n\t\t\t\tString newPhone = new String(inputString(true));\r\n\t\t\t\tclearScreen();\r\n\t\t\t\tSystem.out.println(\"Old phone number \" + c.getPhoneNumber() + \" replaced with \" + newPhone + \".\");\r\n\t\t\t\tc.setPhoneNumber(newPhone);\r\n\t\t\t\tSystem.out.println(\"[PRESS ENTER TO CONTINUE]\");\r\n\t\t\t\t// Get a garbage user input before showing the next screen\r\n\t\t\t\tnewPhone = inputString(true);\r\n\t\t\t}\r\n\t\t\t// Edit shipping address\r\n\t\t\telse if(editMenuSelection.equalsIgnoreCase(\"d\"))\r\n\t\t\t{\r\n\t\t\t\tclearScreen();\r\n\t\t\t\tSystem.out.println(\"[SHIPPING ADDRESS EDITOR]\\n\");\r\n\t\t\t\tSystem.out.println(\"[CUSTOMER: \" + c.getName() + \"] [ID: \" + c.getCustomerID() + \"]\");\r\n\t\t\t\tSystem.out.println(\"Current shipping address: \" + c.getShippingAddress());\r\n\t\t\t\tSystem.out.println(\"Enter a new shipping address.\");\r\n\t\t\t\tString newAddress = new String(inputString(true));\r\n\t\t\t\tclearScreen();\r\n\t\t\t\tSystem.out.println(\"Old shipping address \" + c.getShippingAddress() + \" replaced with \" + newAddress + \".\");\r\n\t\t\t\tc.setShippingAddress(newAddress);\r\n\t\t\t\tSystem.out.println(\"[PRESS ENTER TO CONTINUE]\");\r\n\t\t\t\t// Get a garbage user input before showing the next screen\r\n\t\t\t\tnewAddress = inputString(true);\r\n\t\t\t}\r\n\t\t\t// Edit shipping State\r\n\t\t\telse if(editMenuSelection.equalsIgnoreCase(\"e\"))\r\n\t\t\t{\r\n\t\t\t\tclearScreen();\r\n\t\t\t\tSystem.out.println(\"[SHIPPING STATE EDITOR]\\n\");\r\n\t\t\t\tSystem.out.println(\"[CUSTOMER: \" + c.getName() + \"] [ID: \" + c.getCustomerID() + \"]\");\r\n\t\t\t\tSystem.out.println(\"Current shipping state: \" + c.getShippingState());\r\n\t\t\t\tSystem.out.println(\"Enter a new shipping state.\");\r\n\t\t\t\tString newState = new String(inputString(true));\r\n\t\t\t\tclearScreen();\r\n\t\t\t\tSystem.out.println(\"Old shipping state \" + c.getShippingState() + \" replaced with \" + newState + \".\");\r\n\t\t\t\tc.setShippingState(newState);\r\n\t\t\t\tSystem.out.println(\"[PRESS ENTER TO CONTINUE]\");\r\n\t\t\t\t// Get a garbage user input before showing the next screen\r\n\t\t\t\tnewState = inputString(true);\r\n\t\t\t}\r\n\t\t\t// Edit shipping city\r\n\t\t\telse if(editMenuSelection.equalsIgnoreCase(\"f\"))\r\n\t\t\t{\r\n\t\t\t\tclearScreen();\r\n\t\t\t\tSystem.out.println(\"[SHIPPING CITY EDITOR]\\n\");\r\n\t\t\t\tSystem.out.println(\"[CUSTOMER: \" + c.getName() + \"] [ID: \" + c.getCustomerID() + \"]\");\r\n\t\t\t\tSystem.out.println(\"Current Shipping City: \" + c.getShippingCity());\r\n\t\t\t\tSystem.out.println(\"Enter a new shipping city.\");\r\n\t\t\t\tString newCity = new String(inputString(true));\r\n\t\t\t\tclearScreen();\r\n\t\t\t\tSystem.out.println(\"Old shipping city \" + c.getShippingCity() + \" replaced with \" + newCity + \".\");\r\n\t\t\t\tc.setShippingCity(newCity);\r\n\t\t\t\tSystem.out.println(\"[PRESS ENTER TO CONTINUE]\");\r\n\t\t\t\t// Get a garbage user input before showing the next screen\r\n\t\t\t\tnewCity = inputString(true);\r\n\t\t\t}\r\n\t\t\t// Edit shipping zip\r\n\t\t\telse if(editMenuSelection.equalsIgnoreCase(\"g\"))\r\n\t\t\t{\r\n\t\t\t\tclearScreen();\r\n\t\t\t\tSystem.out.println(\"[SHIPPING ZIP CODE EDITOR]\\n\");\r\n\t\t\t\tSystem.out.println(\"[CUSTOMER: \" + c.getName() + \"] [ID: \" + c.getCustomerID() + \"]\");\r\n\t\t\t\tSystem.out.println(\"Current shipping zip: \" + c.getShippingZip());\r\n\t\t\t\tSystem.out.println(\"Enter a new shipping zip code.\");\r\n\t\t\t\tString newZip = new String(inputString(false));\r\n\t\t\t\tclearScreen();\r\n\t\t\t\tSystem.out.println(\"Old shipping zip \" + c.getShippingZip() + \" replaced with \" + newZip + \".\");\r\n\t\t\t\tc.setShippingZip(newZip);\r\n\t\t\t\tSystem.out.println(\"[PRESS ENTER TO CONTINUE]\");\r\n\t\t\t\t// Get a garbage user input before showing the next screen\r\n\t\t\t\tnewZip = inputString(true);\r\n\t\t\t}\r\n\t\t\t// Edit billing address\r\n\t\t\telse if(editMenuSelection.equalsIgnoreCase(\"h\"))\r\n\t\t\t{\r\n\t\t\t\tclearScreen();\r\n\t\t\t\tSystem.out.println(\"[BILLING ADDRESS EDITOR]\\n\");\r\n\t\t\t\tSystem.out.println(\"[CUSTOMER: \" + c.getName() + \"] [ID: \" + c.getCustomerID() + \"]\");\r\n\t\t\t\tSystem.out.println(\"Current billing address: \" + c.getBillingAddress());\r\n\t\t\t\tSystem.out.println(\"Enter a new billing address\");\r\n\t\t\t\tString newAddress = new String(inputString(true));\r\n\t\t\t\tclearScreen();\r\n\t\t\t\tSystem.out.println(\"Old billing address \" + c.getBillingAddress() + \" replaced with \" + newAddress + \".\");\r\n\t\t\t\tc.setBillingAddress(newAddress);\r\n\t\t\t\tSystem.out.println(\"[PRESS ENTER TO CONTINUE]\");\r\n\t\t\t\t// Get a garbage user input before showing the next screen\r\n\t\t\t\tnewAddress = inputString(true);\r\n\t\t\t}\r\n\t\t\t// Edit billing state if requested\r\n\t\t\telse if(editMenuSelection.equalsIgnoreCase(\"i\"))\r\n\t\t\t{\r\n\t\t\t\tclearScreen();\r\n\t\t\t\tSystem.out.println(\"[BILLING STATE EDITOR]\\n\");\r\n\t\t\t\tSystem.out.println(\"[CUSTOMER: \" + c.getName() + \"] [ID: \" + c.getCustomerID() + \"]\");\r\n\t\t\t\tSystem.out.println(\"Current billing state: \" + c.getBillingState());\r\n\t\t\t\tSystem.out.println(\"Enter a new billing state\");\r\n\t\t\t\tString newState = new String(inputString(true));\r\n\t\t\t\tclearScreen();\r\n\t\t\t\tSystem.out.println(\"Old billing state \" + c.getBillingState() + \" replaced with \" + newState + \".\");\r\n\t\t\t\tc.setBillingState(newState);\r\n\t\t\t\tSystem.out.println(\"[PRESS ENTER TO CONTINUE]\");\r\n\t\t\t\t// Get a garbage user input before showing the next screen\r\n\t\t\t\tnewState = inputString(true);\r\n\t\t\t}\r\n\t\t\t// Edit billing city if requested\r\n\t\t\telse if(editMenuSelection.equalsIgnoreCase(\"j\"))\r\n\t\t\t{\r\n\t\t\t\tclearScreen();\r\n\t\t\t\tSystem.out.println(\"[BILLING CITY EDITOR]\\n\");\r\n\t\t\t\tSystem.out.println(\"[CUSTOMER: \" + c.getName() + \"] [ID: \" + c.getCustomerID() + \"]\");\r\n\t\t\t\tSystem.out.println(\"Current billing city: \" + c.getBillingCity());\r\n\t\t\t\tSystem.out.println(\"Enter a new billing city.\");\r\n\t\t\t\tString newCity = new String(inputString(true));\r\n\t\t\t\tclearScreen();\r\n\t\t\t\tSystem.out.println(\"Old billing city \" + c.getBillingCity() + \" replaced with \" + newCity + \".\");\r\n\t\t\t\tc.setBillingCity(newCity);\r\n\t\t\t\tSystem.out.println(\"[PRESS ENTER TO CONTINUE]\");\r\n\t\t\t\t// Get a garbage user input before showing the next screen\r\n\t\t\t\tnewCity = inputString(true);\r\n\t\t\t}\r\n\t\t\t// Edit billing zip if requested\r\n\t\t\telse if(editMenuSelection.equalsIgnoreCase(\"k\"))\r\n\t\t\t{\r\n\t\t\t\tclearScreen();\r\n\t\t\t\tSystem.out.println(\"[BILLING ZIP CODE EDITOR]\\n\");\r\n\t\t\t\tSystem.out.println(\"[CUSTOMER: \" + c.getName() + \"] [ID: \" + c.getCustomerID() + \"]\");\r\n\t\t\t\tSystem.out.println(\"Current billing zip: \" + c.getBillingZip());\r\n\t\t\t\tSystem.out.println(\"Enter a new billing zip code.\");\r\n\t\t\t\tString newZip = new String(inputString(true));\r\n\t\t\t\tclearScreen();\r\n\t\t\t\tSystem.out.println(\"Old billing zip \" + c.getBillingZip() + \" replaced with \" + newZip + \".\");\r\n\t\t\t\tc.setBillingZip(newZip);\r\n\t\t\t\tSystem.out.println(\"[PRESS ENTER TO CONTINUE]\");\r\n\t\t\t\t// Get a garbage user input before showing the next screen\r\n\t\t\t\tnewZip = inputString(true);\r\n\t\t\t}\r\n\t\t\t// Edit comment if requested\r\n\t\t\telse if(editMenuSelection.equalsIgnoreCase(\"l\"))\r\n\t\t\t{\r\n\t\t\t\tclearScreen();\r\n\t\t\t\tSystem.out.println(\"[COMMENT EDITOR]\\n\");\r\n\t\t\t\tSystem.out.println(\"[CUSTOMER: \" + c.getName() + \"] [ID: \" + c.getCustomerID() + \"]\");\r\n\t\t\t\tSystem.out.println(\"Current comment: \" + c.getComment());\r\n\t\t\t\tSystem.out.println(\"Enter a new comment.\");\r\n\t\t\t\tString newComment = new String(inputString(true));\r\n\t\t\t\tclearScreen();\r\n\t\t\t\tSystem.out.println(\"Old comment \" + c.getComment() + \" replaced with \" + newComment + \".\");\r\n\t\t\t\tc.setComment(newComment);\r\n\t\t\t\tSystem.out.println(\"[PRESS ENTER TO CONTINUE]\");\r\n\t\t\t\t// Get a garbage user input before showing the next screen\r\n\t\t\t\tnewComment = inputString(true);\r\n\t\t\t}\r\n\t\t\t// Remove this customer\r\n\t\t\telse if(editMenuSelection.equalsIgnoreCase(\"r\"))\r\n\t\t\t{\r\n\t\t\t\tclearScreen();\r\n\t\t\t\tSystem.out.println(\"[CUSTOMER REMOVER]\\n\");\r\n\t\t\t\tSystem.out.println(\"[CUSTOMER: \" + c.getName() + \"] [ID: \" + c.getCustomerID() + \"]\");\r\n\t\t\t\tSystem.out.println(\"Are you sure you would like to remove this customer?\");\r\n\t\t\t\tSystem.out.println(\"(yes: remove)(anything else: keep customer)\");\r\n\t\t\t\tif(inputString(true).equalsIgnoreCase(\"yes\"))\r\n\t\t\t\t{\r\n\t\t\t\t\tclearScreen();\r\n\t\t\t\t\tcustomers.remove(customers.indexOf(c));\r\n\t\t\t\t\tSystem.out.println(\"[CUSTOMER REMOVER]\\n\");\r\n\t\t\t\t\tSystem.out.println(\"[Customer \" + c.getName() + \" ID: \" + c.getCustomerID() + \" removed.]\");\r\n\t\t\t\t\tSystem.out.println(\"[PRESS ENTER TO CONTINUE]\");\r\n\t\t\t\t\t// Get a garbage user input before showing the next screen\r\n\t\t\t\t\tString trash = new String(inputString(true));\r\n\t\t\t\t\teditMenuSelection = \"q\";\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tclearScreen();\r\n\t\t\t\t\tSystem.out.println(\"[CUSTOMER REMOVER]\\n\");\r\n\t\t\t\t\tSystem.out.println(\"[Customer \" + c.getName() + \" ID: \" + c.getCustomerID() + \" kept.]\");\r\n\t\t\t\t\tSystem.out.println(\"[PRESS ENTER TO CONTINUE]\");\r\n\t\t\t\t\t// Get a garbage user input before showing the next screen\r\n\t\t\t\t\tString trash = new String(inputString(true));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\n\tpublic Customers update(Customers updatecust) {\n\t\tCustomers custpersist= search(updatecust.getId());\n\t\tif (custpersist==null)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t\tCustomers upcust = CustRepo.save(updatecust);\n\t\treturn upcust;\n\t}",
"@GetMapping(\"/showFormForAdd\")\r\n\tpublic String showFormForAdd(Model theModel){\n\t\tCustomer theCustomer = new Customer();\r\n\t\t\r\n\t\ttheModel.addAttribute(\"customer\",theCustomer);\r\n\t\t\r\n\t\treturn \"customer-form\";\r\n\t}",
"@Override\r\n\tpublic Customer updateCustomer(Customer customer) {\r\n\t\tOptional<Customer> optionalCustomer = null;\r\n\t\tCustomer customer2 = null;\r\n\t\toptionalCustomer = customerRepository.findById(customer.getUserId());\r\n\t\tif (optionalCustomer.isPresent()) {\r\n\t\t\tcustomer2 = customerRepository.save(customer);\r\n\t\t\treturn customer2;\r\n\t\t} else {\r\n\t\t\tthrow new EntityUpdationException(\"Customer With Id \" + customer.getUserId() + \" does Not Exist.\");\r\n\t\t}\r\n\r\n\t}",
"public void editCustomer() {\n int id = this.id;\n PersonInfo personInfo = dbHendler.getCustInfo(id);\n String name = personInfo.getName().toString().trim();\n String no = personInfo.getPhoneNumber().toString().trim();\n float custNo = personInfo.get_rootNo();\n String cUSTnO = String.valueOf(custNo);\n int fees = personInfo.get_fees();\n String fEES = Integer.toString(fees);\n int balance = personInfo.get_balance();\n String bALANCE = Integer.toString(balance);\n String nName = personInfo.get_nName().toString().trim();\n String startdate = personInfo.get_startdate();\n int areaID = personInfo.get_area();\n String area = dbHendler.getAreaName(areaID);\n person_name.setText(name);\n contact_no.setText(no);\n rootNo.setText(cUSTnO);\n monthly_fees.setText(fEES);\n balance_.setText(bALANCE);\n nickName.setText(nName);\n this.startdate.setText(startdate);\n // retrieving the index of element u\n int retval = items.indexOf(area);\n\n spinner.setSelection(retval);\n }",
"public boolean updatecustomer(long id , Customermodel customermodel) {\n\t\t Optional<Customermodel> customerd = customerdb.findById(id);\n\n\t\t\t\t\tif (customerd.isPresent()) {\n\t\t\t\t\t\tCustomermodel customer = customerd.get();\n\t\t\t\t\t\t\n\t\t\t\t\t\tcustomer.setDob(customermodel.getDob());\n\t\t\t\t\t\tcustomer.setName(customermodel.getName());\n\t\t\t\t\t\tcustomerdb.save(customer);\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\n\t\t\t\t\t} \n\t\t\t\t\telse {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t} \n\t\t \n\t }",
"@FXML\n void onActionModifyCustomer(ActionEvent event) throws IOException, SQLException {\n\n modifiedCustomer = CustomerTableview.getSelectionModel().getSelectedItem();\n\n if (CustomerTableview.getSelectionModel().getSelectedItem() == null) {\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"No item selected.\");\n alert.setContentText(\"Don't forget to select a customer to modify!\");\n alert.show();\n }\n\n FXMLLoader loader = new FXMLLoader();\n loader.setLocation(getClass().getResource(\"/Views/ModifyCustomer.fxml\"));\n scene = loader.load();\n\n ModifyCustomer MCController = loader.getController();\n MCController.sendCustomer(modifiedCustomer);\n\n stage = (Stage)((Button)event.getSource()).getScene().getWindow();\n stage.setScene(new Scene(scene));\n stage.show();\n }",
"@RequestMapping(value = \"/editsave\", method = RequestMethod.POST)\n\tpublic String editsave(@ModelAttribute(\"company\") CompanyDto company) {\n\t\tcompanyService.update(company);\n\t\treturn \"redirect:/companies/getAll\";\n\t}",
"@RequestMapping(\"/item/{id}/update\")\n\tpublic ModelAndView showEditForm(@PathVariable(\"id\")Long id) {\n\t\tModelAndView mv = new ModelAndView(\"item-form\");\n\t\tmv.addObject(\"title\", \"Edit item!\"); //1st var is name we wanna call it\n\t\tmv.addObject(\"item\", itemDao.findById(id).orElse(null)); //2nd is data we use over and over again\n\t\t\t\t\n\t\t\t\treturn mv;\n\t\t\n\t}",
"@RequestMapping(\"updat\")\r\n\tpublic String update(Model m) \r\n\t{\n\t\tm.addAttribute(\"update1\",new Employee());\r\n\t\treturn \"update\";//register.jsp==form action=register\r\n\t}",
"@RequestMapping(method = RequestMethod.PUT, value = \"/{id}\")\n\t public ResponseEntity<?> updateUser(@PathVariable(\"id\") Long id, @RequestBody Customer customer) {\n\t \treturn service.updateCustomer(id, customer);\n\t }",
"@GetMapping(\"/showFormForAdd\") // @RequestMapping(path = \"/showFormForAdd\", method = RequestMethod.GET)\r\n\tpublic String showFormForAdd(Model theModel) {\n\t\tCustomer theCustomer = new Customer();\r\n\t\t\r\n\t\ttheModel.addAttribute(\"customer\", theCustomer);\r\n\t\t\r\n\t\treturn \"customer-form\";\r\n\t}",
"@ApiOperation(value = \"Replace a customer by new data\", notes = \"\")\n @PutMapping(value = {\"/{customerId}\"},produces = MediaType.APPLICATION_JSON_VALUE)\n @ResponseStatus(HttpStatus.OK)\n public CustomerDTO updateCustomer(@PathVariable Long customerId,@Validated @RequestBody CustomerDTO customerDTO) {\n return customerService.updateCustomer(customerId, customerDTO);\n }",
"@FXML\r\n void onActionUpdate(ActionEvent event) throws IOException {\r\n\r\n Customer customerIndex = customerTable.getSelectionModel().getSelectedItem();\r\n customerToUpdateIndex = DBCustomer.getAllCustomers().indexOf(customerIndex);\r\n\r\n if(customerTable.getSelectionModel().getSelectedItem() == null){\r\n Alert alert = new Alert(Alert.AlertType.WARNING);\r\n alert.initModality(Modality.APPLICATION_MODAL);\r\n alert.setTitle(\"Customer not selected\");\r\n alert.setHeaderText(\"Please choose a customer to update\");\r\n alert.showAndWait();\r\n }\r\n else{\r\n FXMLLoader loader = new FXMLLoader();\r\n loader.setLocation(getClass().getResource(\"/view/UpdateCustomer.FXML\"));\r\n Parent scene = loader.load();\r\n UpdateCustomerController UPController = loader.getController();\r\n UPController.sendCustomer(customerTable.getSelectionModel().getSelectedItem());\r\n\r\n stage = (Stage)((Button)event.getSource()).getScene().getWindow();\r\n //scene = FXMLLoader.load(getClass().getResource(\"/view/UpdateCustomer.fxml\"));\r\n stage.setScene(new Scene(scene));\r\n stage.show();\r\n }\r\n\r\n\r\n\r\n\r\n }",
"public Customer updateCustomer(@RequestBody Customer theCustomer)\n {\n customerService.save(theCustomer);\n return theCustomer;\n }",
"@PostMapping(\"/checkCustomerID\")\n public ModelAndView checkCustomerID(@ModelAttribute(\"customerCheck\") Customer customer,\n Model model){\n ModelAndView modelAndView = new ModelAndView();\n\n int customer_id = customer.getCustomerID();\n if (customerServiceImpl.getCustomer(customer_id)!=null){\n model.addAttribute(\"customerInfo\", customerServiceImpl.getCustomer(customer_id));\n modelAndView.setViewName(\"/content/openNewCurrentAccount\");\n return modelAndView;\n }\n model.addAttribute(\"invalid_user_error\", true);\n modelAndView.setViewName(\"/content/checkCustomer\");\n return modelAndView;\n }",
"protected void edit(HttpServletRequest request, HttpServletResponse response, EcAnonymousPaymentInfoForm _EcAnonymousPaymentInfoForm, EcAnonymousPaymentInfo _EcAnonymousPaymentInfo) throws Exception{\n\r\n _EcAnonymousPaymentInfo.setAnonymousUserId(WebParamUtil.getLongValue(_EcAnonymousPaymentInfoForm.getAnonymousUserId()));\r\n _EcAnonymousPaymentInfo.setFirstName(WebParamUtil.getStringValue(_EcAnonymousPaymentInfoForm.getFirstName()));\r\n _EcAnonymousPaymentInfo.setMiddleInitial(WebParamUtil.getStringValue(_EcAnonymousPaymentInfoForm.getMiddleInitial()));\r\n _EcAnonymousPaymentInfo.setLastName(WebParamUtil.getStringValue(_EcAnonymousPaymentInfoForm.getLastName()));\r\n _EcAnonymousPaymentInfo.setAddress1(WebParamUtil.getStringValue(_EcAnonymousPaymentInfoForm.getAddress1()));\r\n _EcAnonymousPaymentInfo.setAddress2(WebParamUtil.getStringValue(_EcAnonymousPaymentInfoForm.getAddress2()));\r\n _EcAnonymousPaymentInfo.setCity(WebParamUtil.getStringValue(_EcAnonymousPaymentInfoForm.getCity()));\r\n _EcAnonymousPaymentInfo.setState(WebParamUtil.getStringValue(_EcAnonymousPaymentInfoForm.getState()));\r\n _EcAnonymousPaymentInfo.setZip(WebParamUtil.getStringValue(_EcAnonymousPaymentInfoForm.getZip()));\r\n _EcAnonymousPaymentInfo.setCountry(WebParamUtil.getStringValue(_EcAnonymousPaymentInfoForm.getCountry()));\r\n _EcAnonymousPaymentInfo.setPaymentType(WebParamUtil.getIntValue(_EcAnonymousPaymentInfoForm.getPaymentType()));\r\n _EcAnonymousPaymentInfo.setPaymentNum(WebParamUtil.getStringValue(_EcAnonymousPaymentInfoForm.getPaymentNum()));\r\n _EcAnonymousPaymentInfo.setPaymentExpireMonth(WebParamUtil.getIntValue(_EcAnonymousPaymentInfoForm.getPaymentExpireMonth()));\r\n _EcAnonymousPaymentInfo.setPaymentExpireYear(WebParamUtil.getIntValue(_EcAnonymousPaymentInfoForm.getPaymentExpireYear()));\r\n _EcAnonymousPaymentInfo.setPaymentExtraNum(WebParamUtil.getStringValue(_EcAnonymousPaymentInfoForm.getPaymentExtraNum()));\r\n _EcAnonymousPaymentInfo.setTimeCreated(WebParamUtil.getDateValue(_EcAnonymousPaymentInfoForm.getTimeCreated()));\r\n\r\n m_actionExtent.beforeUpdate(request, response, _EcAnonymousPaymentInfo);\r\n m_ds.update(_EcAnonymousPaymentInfo);\r\n m_actionExtent.afterUpdate(request, response, _EcAnonymousPaymentInfo);\r\n }",
"@FXML\r\n private void handleOk() {\r\n if (isInputValid()) {\r\n customer.setCustFirstName(custFirstNameTextField.getText());\r\n customer.setCustLastName(custLastNameTextField.getText());\r\n customer.setCustAddress(custAddressTextField.getText());\r\n customer.setCustCity(custCityTextField.getText());\r\n customer.setCustProv(custProvinceTextField.getText());\r\n customer.setCustPostal(custPostalCodeTextField.getText());\r\n customer.setCustCountry(custCountryTextField.getText());\r\n customer.setCustHomePhone(custHomePhoneTextField.getText());\r\n customer.setCustBusPhone(custBusinessPhoneTextField.getText());\r\n customer.setCustEmail(custEmailTextField.getText());\r\n customer.setAgentId((int)cboAgentId.getValue());\r\n \r\n try {\r\n if (oldCustomer == null) {\r\n CustomerDB.addNewCustomer(customer);\r\n } else {\r\n CustomerDB.editCustomer(customer, oldCustomer);\r\n }\r\n } catch (Exception e) {\r\n System.out.println(\"Adding customer to DB in handleOk failed\");\r\n e.printStackTrace();\r\n }\r\n try {\r\n main.showCustomerScene();\r\n } catch (Exception e) {\r\n System.out.println(\"Show customer scene failed\");\r\n e.printStackTrace();\r\n }\r\n }\r\n }",
"@Override\n\tpublic Uni<Customer> updateCustomer(Customer customer) {\n\t\tFunction<Customer, Uni<? extends Customer>> update = entity -> {\n\t\t\tentity.setName(customer.getName());\n\t\t\tentity.setAddress(customer.getAddress());\n\t\t\treturn repo.flush().onItem().transform(ignore -> entity);\n\t\t};\n\t\treturn repo.findById(customer.getId()).onItem().ifNotNull().transformToUni(update);\n\t}",
"@Override\n\tpublic void edit(HttpServletRequest request,HttpServletResponse response) {\n\t\tint id=Integer.parseInt(request.getParameter(\"id\"));\n\t\tQuestionVo qv=new QuestionVo().getInstance(id);\n\t\tcd.edit(qv);\n\t\ttry{\n\t\t\tresponse.sendRedirect(\"Admin/question.jsp\");\n\t\t\t}\n\t\t\tcatch(Exception e){}\n\t}",
"@RequestMapping(path=\"/actualizaFormulario\")\r\n public String viewUpdateForm(@RequestParam(name=\"id\")int id,Model model)\r\n {\n \tProducto producto=productoDAO.getProducto(id);\r\n \t//Introducimos el producto en el modelo\r\n \tmodel.addAttribute(\"producto\", producto);\r\n \t//Llamamos al formulario de actualizacion\r\n \treturn \"formularioProducto2\";\r\n }",
"@RequestMapping(value = \"edit/{id}\", method = RequestMethod.POST)\r\n\tpublic ModelAndView edit(@ModelAttribute Person editedPerson, @PathVariable int id) \r\n\t{\r\n\t\tpersonService.updatePerson(editedPerson);\r\n\t\treturn new ModelAndView(\"addEditConfirm\", \"person\", editedPerson);\r\n\t}",
"public void addUpdateBtn() {\n if (isInputValid()) {\n if ( action.equals(Constants.ADD) ) {\n addCustomer(createCustomerData());\n } else if ( action.equals(Constants.UPDATE) ){\n updateCustomer(createCustomerData());\n }\n cancel();\n }\n }",
"@Override\n\tpublic ModelAndView update(HttpServletRequest request) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic ModelAndView update(HttpServletRequest request) {\n\t\treturn null;\n\t}",
"@RequestMapping(value = \"/editPersona\", method = RequestMethod.GET)\n\tpublic String showFormForUpdate(@RequestParam(\"id_persona\") int id_persona, Model model) {\n\t\tPersona Person = personaService.getPersona(id_persona);\n\t\tmodel.addAttribute(\"Person\", Person);\n\t\treturn \"editPersona\";\n\t}",
"@PreAuthorize(\"#oauth2.hasAnyScope('write','read-write')\")\n\t@RequestMapping(method = PUT, value = \"/{id}\", consumes = { APPLICATION_JSON_UTF8_VALUE })\n\tpublic Mono<ResponseEntity<?>> updateCustomer(@PathVariable @NotNull ObjectId id,\n\t\t\t@RequestBody @Valid Customer customerToUpdate) {\n\n\t\treturn repo.existsById(id).flatMap(exists -> {\n\n\t\t\tif (!exists) {\n\t\t\t\tthrow new CustomerServiceException(HttpStatus.BAD_REQUEST,\n\t\t\t\t\t\"Customer does not exist, to create a new customer use POST instead.\");\n\t\t\t}\n\n\t\t\treturn repo.save(customerToUpdate).then(Mono.just(noContent().build()));\n\t\t});\n\t}",
"public CustomerProfileDTO editCustomerProfile(CustomerProfileDTO customerProfileDTO)throws EOTException;",
"@Override\n public void updateCustomer(UUID customerId, @RequestBody Customer customer) {\n log.debug(\"Updating a customer to service...\");\n }",
"@Override\n\tpublic ModelAndView edit(String id) {\n\t\treturn null;\n\t}",
"public boolean updateCustomer(String customerJSON);",
"@PutMapping(\"/customer/{id}\")\n\tpublic ResponseEntity<Customer> updateCustomer(@PathVariable Long id, @RequestBody Customer customerDetails) {\n\t\tCustomer customer = customerRepository.findById(id)\n\t\t\t\t.orElseThrow(() -> new ResourceNotFoundException(\"Customer not exist with id :\" + id));\n\t\tcustomer.setName(customerDetails.getName());\n\t\tcustomer.setAddress(customerDetails.getAddress());\n\t\tcustomer.setNic(customerDetails.getNic());\n\t\tcustomer.setUsername(customerDetails.getUsername());\n\t\tcustomer.setPassword(customerDetails.getPassword());\n\t\tcustomer.setBirthday(customerDetails.getBirthday());\n\t\tcustomer.setMobile(customerDetails.getMobile());\n\t\tcustomer.setReg_date(customerDetails.getReg_date());\n\t\tcustomer.setEmail(customerDetails.getEmail());\n\t\tcustomer.setImage(customerDetails.getImage());\n\t\tcustomer.setSec_ques_no(customerDetails.getSec_ques_no());\n\t\tcustomer.setSec_ques_answer(customerDetails.getSec_ques_answer());\n\t\tcustomer.setGender(customerDetails.getGender());\n\n\t\tCustomer updatedCustomer = customerRepository.save(customer);\n\t\treturn ResponseEntity.ok(updatedCustomer);\n\t}",
"@Override\n\tpublic Customer update(Customer o) {\n\n\t\tif (o == null || o.getId() == null) {\n\t\t\treturn null;\n\t\t}\n\n\t\tString updateQuery = String.format(\"UPDATE TB_customer SET \");\n\t\tupdateQuery += COLUMN_NAME_FIRST_NAME + \"= ? ,\";\n\t\tupdateQuery += COLUMN_NAME_LAST_NAME + \"= ? ,\";\n\t\tupdateQuery += COLUMN_NAME_EMAIL + \"= ? ,\";\n\t\tupdateQuery += COLUMN_NAME_KNICKNAME + \"= ?,\";\n\t\tupdateQuery += COLUMN_NAME_BIRTHDATE + \"= ?,\";\n\t\tupdateQuery += COLUMN_NAME_CREDITS + \"= ?\";\n\t\tupdateQuery += \" WHERE \" + COLUMN_NAME_ID + \"= ? ;\";\n\n\t\ttry (PreparedStatement pS = dbCon.prepareStatement(updateQuery)) {\n\n\t\t\tpS.setString(1, o.getFirstName());\n\t\t\tpS.setString(2, o.getLastName());\n\t\t\tpS.setString(3, o.getEmail());\n\t\t\tpS.setString(4, o.getKnickname());\n\t\t\tpS.setDate(5, java.sql.Date.valueOf(o.getBirthdate()));\n\t\t\tpS.setDouble(6, o.getCredits());\n\t\t\tpS.setInt(7, o.getId());\n\t\t\tpS.executeUpdate();\n\n\t\t\tpS.close();\n\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"Update of tb_customer \" + o.getId() + \" failed : \" + e.getMessage());\n\t\t\treturn null;\n\t\t}\n\n\t\treturn o;\n\t}",
"private void mostrarEditForm(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tint id = Integer.parseInt(request.getParameter(\"id\"));\n\t\tUsuario existingUser = dao.selecionarUsuario(id);\n\t\tRequestDispatcher dispatcher = request.getRequestDispatcher(\"usuario-form.jsp\");\n\t\trequest.setAttribute(\"usuario\", existingUser);\n\t\tdispatcher.forward(request, response);\n\t}",
"public void edit(RequestBean request) {\n\t\t\r\n\t}",
"@ApiOperation(value = \"Update a customer\", notes = \"\")\n @PatchMapping(value = {\"/{customerId}\"}, produces = MediaType.APPLICATION_JSON_VALUE)\n @ResponseStatus(HttpStatus.OK)\n public CustomerDTO patchCustomer(@PathVariable Long customerId,@Validated @RequestBody CustomerDTO customerDTO) {\n return customerService.patchCustomer(customerId, customerDTO);\n }",
"CustomerDto updateCustomer(CustomerDto customerDto);",
"@Override\n\t@Transactional\n\tpublic void updateCustomer(Customer customer) {\n\n\t\thibernateTemplate.update(customer);\n\t\tSystem.out.println(\"customer is updated \" + customer);\n\n\t}",
"@Override\n\tpublic boolean update(int customerId,String c) {\n\t\tString query=\"UPDATE Customer SET city=? where Customer_ID=?\";\n\t\ttry {\n\t\t\tPreparedStatement preparedStatement=DatabaseConnectionDAO.geConnection().prepareStatement(query);\n\t\t\tpreparedStatement.setInt(1, customerId);\n\t\t\tpreparedStatement.setString(2, c);\n\t\t\tint n=preparedStatement.executeUpdate();\n\t\t\tif(n>0)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"updated\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"enter valid data\");\n\t\t\t}\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t}\n\t\treturn false;\n\t}",
"@Override\n\tpublic int updateCustomerReprieve(CustomerReprieve customerReprieve) {\n\t\treturn customerDao.updateCustomerReprieve(customerReprieve);\n\t}",
"public void editar() {\n try {\n ClienteDao fdao = new ClienteDao();\n fdao.Atualizar(cliente);\n\n JSFUtil.AdicionarMensagemSucesso(\"Cliente editado com sucesso!\");\n\n } catch (RuntimeException e) {\n JSFUtil.AdicionarMensagemErro(\"ex.getMessage()\");\n e.printStackTrace();\n }\n }",
"private void updateScreenCustomerDetails(Customer c) {\n // - update main title with customers full name\n tvCustomerMainTitle.setText(customer.toString());\n\n // - update screen with customer ID\n textViewID.setText(customer.getCustomerID());\n\n // - update screen with customer email\n tvCustomerEmail.setText(customer.getEmail());\n\n // - update screen with customer VIP status\n tvCustomerVipStatus.setText(customer.vipStatusToString());\n\n // - update avctive game and lane fields\n }",
"@RequestMapping(\"/addCustomers/{id}\")\n\tpublic String customerForm(@PathVariable(\"id\") int id,Model m, Principal princpl) {\n\t\tAgentModel agentById = this.servimple.getAgentModelById(id);\n\t\tif(agentById.getPosition().equals(\"Active\")) {\n\t//\tAgentModel[] allAgent = this.servimple.getAllAgent();\n\t\t\n\t\t\tm.addAttribute(\"allagntid\", agentById.getId());\n\t\t\treturn \"Customer/customerForm\";\n\t\t\t\n\t\t}\n\t\telse {\n\t\t\tm.addAttribute(\"sorry\", \"Sorry! Your Id is Deactivated. To activate your id Plz Contact to admin.\");\n\t\t\treturn \"Agent/agentPanel\";\n\t\t}\n\t\t\n\t}",
"public void showEditCustomerScene(Customer customer) throws IOException {\n this.showEditCustomerScene(customer,null);\r\n }",
"@RequestMapping(value = \"/updateTransaction\", method = RequestMethod.POST)\r\n\tpublic ModelAndView update(HttpServletRequest request, ModelMap model) {\n\t\treturn new ModelAndView(\"redirect:list\");\r\n\r\n\t}",
"public static void update(Customer aCustomer) throws NotFoundException\r\n\t{\n\t\tphoneNumber = aCustomer.getPhoneNo();\r\n\t\tname = aCustomer.getName();\r\n\t\taddress = aCustomer.getAddress();\r\n\r\n\t\t// define the SQL query statement using the phone number key\r\n\t\tString sqlUpdate = \"Update CustomerTable \" +\r\n\t\t\t\t\t\t\t\t \" SET CustomerName = '\" + name +\"', \" +\r\n\t\t\t\t\t\t\t\t \" address = '\" + address +\"' \" +\r\n\t\t\t\t\t\t\t\t \" WHERE PhoneNo = '\" + phoneNumber + \"'\";\r\n\r\n\t\t// see if this customer exists in the database\r\n\t\t// NotFoundException is thrown by find method\r\n\t\ttry\r\n\t\t{\r\n\t\t\tCustomer c = Customer.find(phoneNumber);\r\n \t\t// if found, execute the SQL update statement\r\n \t\tint result = aStatement.executeUpdate(sqlUpdate);\r\n \t}\r\n\t\tcatch (SQLException e)\r\n\t\t\t{ System.out.println(e);\t}\r\n\t}",
"@RequestMapping(value = \"/edit/{employeeID}\", method = RequestMethod.GET)\n public ModelAndView initUpdateOwnerForm(@PathVariable(\"employeeID\") String employeeID, Model model) {\n \tEmployee e = empService.findById(employeeID);\n\t\tModelAndView mav= new ModelAndView(\"CreateOrUpdateEmployee\",\"employee\",e);\n\t\tString s=\"edit\";\n\t\tmav.addObject(\"actiont\", s);\n\t\t mav.addObject(\"roleList\", roleRepo.findAll());\n\t\t mav.addObject(\"SupervisorList\",empService.ListOfSuperVisor());\n return mav;\n }",
"@Override\n\t\t\t\tpublic void execute()\n\t\t\t\t{\n\n\t\t\t\t\tMobiculeLogger.verbose(\"execute()\");\n\t\t\t\t\tresponse = updateCustomerFacade.updateCustomerDetails();\n\t\t\t\t}",
"@RequestMapping(\"supplier/edit/{id}\")\r\n\tpublic String editSupplier(@PathVariable(\"id\")int id,Model model){\n\t\tif(supplierservice.get(id)!=null)\r\n\t\t{\r\n\t\t\tsupplierservice.saveOrUpdate(supplier);\r\n\t\t\tmodel.addAttribute(\"message\",\"Succesfully updated\");\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tmodel.addAttribute(\"errorMessage\",\"Could not be updated\");\r\n\t\t}\r\n\t\t//log.debug(\"Ending\");\r\n\t\treturn \"supplier\";\r\n\t}",
"@PostMapping(\"/addcustomer\")\n\tpublic String save(@ModelAttribute(\"customer\") Customer theCustomer) {\n\t\tcustomerServices.save(theCustomer);\n\t\treturn \"redirect:/dairymilk/customers\";\n\t}",
"@Override\n\tpublic String perform(HttpServletRequest request) {\n\t\tCustomer customer = (Customer) request.getSession().getAttribute(\"customer\");\n\t\tEmployee employee = (Employee) request.getSession().getAttribute(\"employee\");\n\t\t\n\t\tif (employee == null && customer == null){\n\t\t\trequest.setAttribute(\"form\", new LoginForm());\n\t\t\treturn \"login.jsp\";\n\t\t}\n\t\t\n\t\tList<String> errors = new ArrayList<String>();\n\t\t\n\t\tCustomer[] customerList;\n\t\t\n\t\ttry {\n\t\t\t//Get customer list\n\t\t\tcustomerList = customerDAO.match();\n\t\t\trequest.setAttribute(\"customerList\", customerList);\n\t\t\t\n\t\t\t//Initialize customer id\n\t\t\tif (customer == null) {\n\t\t\t\tString id = (String) request.getParameter(\"id\");\n\t\t\t\tif (id == null) {\n\t\t\t\t\terrors.add(\"No customer valid id is provided, please select a customer.\");\n\t\t\t\t\trequest.setAttribute(\"errors\", errors);\n\t\t\t\t\tSystem.out.println(\"No customer valid id is provided, please select a customer.\");\n\t\t\t\t\treturn \"customerList.jsp\";//Redirect to customer list\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\tcustomer_id = Integer.parseInt(id);\n\t\t\t\t\tcustomer = customerDAO.read(customer_id);\n\t\t\t\t\tif (customer == null){\n\t\t\t\t\t\terrors.clear();\n\t\t\t \t\terrors.add(\"Not a Valid ID. Such Customer does not exist. Please select again.\");\n\t\t\t \t\trequest.setAttribute(\"errors\", errors);\n\t\t\t \t\trequest.setAttribute(\"customerList\", customerDAO.match());\n\t\t\t \t\treturn \"customerList.jsp\";\n\t\t\t \t}\n\t\t\t\t} catch (NumberFormatException ex) {\n\t\t\t\t\terrors.add(\"No customer valid id provided, please select a customer.\");\n\t\t\t\t\tSystem.out.println(\"No customer valid id provided, please select a customer.\");\n\t\t\t\t\trequest.setAttribute(\"errors\", errors);\n\t\t\t\t\treturn \"customerList.jsp\";//Redirect to customer list\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tcustomer_id = customer.getCustomer_id();\n\t\t\t}\n\t\t\t\n\t\t\n\t\t\t//get customer object and set as attribute\n\t\t\tcustomerInfo = customerDAO.read(customer_id);\n\t\t\tif (customerInfo == null) {\n\t\t\t\terrors.add(\"No such customer with user id:\" + Integer.toString(customer_id));\n\t\t\t\tSystem.out.println(\"No such customer with user id:\" + Integer.toString(customer_id));\n\t\t\t\treturn \"customerList.jsp\";//Redirect to customer list\n\t\t\t}\n\t\t\trequest.setAttribute(\"customerInfo\", customerInfo);\n\t\t\n\t\t\n\t\t\t//Get customer fund list and set as attribute\n\t\t\tCustomerFund[] customerFundList;\n\t\t\n\t\t\tcustomerFundList = custFundDAO.getCustomerFund(customer_id);\n\t\t\tCustomerFundShow[] customerFundShowList = new CustomerFundShow[customerFundList.length];\t\n\t\t\tint i = 0;\n\t\t\tfor (CustomerFund customerFund : customerFundList) {\n\t\t\t\tcustomerFundShowList[i] = new CustomerFundShow();\n\t\t\t\tcustomerFundShowList[i].setAvailable_shares(customerFund.getAvailable_shares());\n\t\t\t\tcustomerFundShowList[i].setCustomer_id(customerFund.getCustomer_id());\n\t\t\t\tcustomerFundShowList[i].setFund_id(customerFund.getFund_id());\n\t\t\t\ttry {\n\t\t\t\t\tcustomerFundShowList[i].setFund_name(fundDAO.getFundNameById(customerFund.getFund_id()));\n\t\t\t\t} catch (RollbackException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\tcustomerFundShowList[i].setFund_name(\"Not Available\");\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\tcustomerFundShowList[i].setShares(customerFund.getShares());\n\t\t\t\ti++;\n\t\t\t}\n\t\t\trequest.setAttribute(\"customerFundShowList\", customerFundShowList);\n\t\t\t\n\t\t\treturn \"viewAccount.jsp\";\n\t\t} catch (RollbackException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\terrors.add(e.toString());\n\t\t\treturn \"viewAccount.jsp\";\n\t\t} \n\t}",
"@Override\n\tpublic void edit(CustomerLogin customerLogin) {\n\t\tCustomerLogin dbcustomerLogin=findCustomerLoginById(customerLogin.getCrn());\n\t\tif(dbcustomerLogin!=null) {\n\t\t\tdbcustomerLogin.setPassword(customerLogin.getPassword());\n\t\t}\n\t\telse\n\t\t\tSystem.out.println(\"Sorry! Customer login Details not found.\");\n\t}",
"@Override\n\tpublic ActionForward update(HttpServletRequest request, HttpServletResponse response) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic ActionForward update(HttpServletRequest request, HttpServletResponse response) {\n\t\treturn null;\n\t}",
"@RequestMapping(value = \"/{username}/update\", method = RequestMethod.GET)\n\tpublic String showUpdateEtudiantForm(@PathVariable(\"username\") String username, Model model) {\n\n\t\tlogger.debug(\"showUpdateEtudiantForm() : {}\"+ username);\n\t\n\t\tEtudiant etudiant = etudiantDAO.findOne(username);\n\t\tmodel.addAttribute(\"savedId\", etudiant.getUsername());\n\t\tmodel.addAttribute(\"etudiantForm\", etudiant);\n\n\t\t//populateDefaultModel(model);\n\n\t\treturn \"etudiant/etudiantForm\";\n\n\t}",
"@PutMapping(\"/customers\")\n public void updateCustomer(@RequestBody CustomerHibernate theCustomerHibernate) {\n customerService.save(theCustomerHibernate);\n }"
] | [
"0.7861291",
"0.7755394",
"0.7553826",
"0.7424274",
"0.7297537",
"0.71826994",
"0.6841263",
"0.6746026",
"0.6712017",
"0.6699022",
"0.65714705",
"0.6571411",
"0.652599",
"0.6466002",
"0.64008397",
"0.64008397",
"0.63887936",
"0.63786167",
"0.63759464",
"0.6349619",
"0.6307564",
"0.6296139",
"0.62927294",
"0.6259514",
"0.62448376",
"0.62047815",
"0.61940193",
"0.61630994",
"0.61626863",
"0.61497515",
"0.6125038",
"0.61200446",
"0.60953367",
"0.60869473",
"0.60856164",
"0.60712576",
"0.60660684",
"0.60422134",
"0.6036392",
"0.6034965",
"0.60232985",
"0.5976883",
"0.59665686",
"0.59649444",
"0.5963552",
"0.5949777",
"0.5942253",
"0.5940967",
"0.59341484",
"0.59282005",
"0.5911949",
"0.5905898",
"0.58987606",
"0.5884999",
"0.58811116",
"0.58766997",
"0.58751595",
"0.58721215",
"0.58588946",
"0.58413076",
"0.58299655",
"0.5829794",
"0.5822211",
"0.58216983",
"0.5816396",
"0.5814986",
"0.58070964",
"0.5796082",
"0.5796082",
"0.5782888",
"0.577718",
"0.5764654",
"0.57608557",
"0.5755821",
"0.57354724",
"0.5719067",
"0.571141",
"0.57086277",
"0.5704169",
"0.5702031",
"0.5684191",
"0.5680114",
"0.5673651",
"0.5672087",
"0.56714803",
"0.5662279",
"0.56595",
"0.56483936",
"0.5645102",
"0.563264",
"0.5626243",
"0.5618706",
"0.5600992",
"0.5600346",
"0.55878735",
"0.55709845",
"0.55702806",
"0.55702806",
"0.5568944",
"0.5568834"
] | 0.7931852 | 0 |
This constructor will create a new BluePrint | public BluePrintModel(String title, String description, String uiImagePath, String spritePath, float spriteOriginX, float spriteOriginY,
float price, EnumSet<FloorModel.FloorType> canBuildOn, FloorModel.FloorType[][] tiles,
Builder builder, boolean buildOnAllFloors, Demolisher demolisher, int... allowedAngles) {
this.title = title;
this.description = description;
this.uiImagePath = uiImagePath;
this.spritePath = spritePath;
this.spriteOriginX = spriteOriginX;
this.spriteOriginY = spriteOriginY;
this.price = price;
this.canBuildOn = canBuildOn;
this.tiles = tiles;
this.builder = builder;
this.buildOnAllFloors = buildOnAllFloors;
this.allowedAngles = allowedAngles.length == 0 ? new int[] {0, 1, 2, 3} : allowedAngles;
this.demolisher = demolisher;
angle = this.allowedAngles[0];
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Billfold()\n {\n \n }",
"public Printer(){ }",
"protected PrintBill() \r\n\t{/* nothing needed, but this prevents a public no-arg constructor from being created automatically */}",
"public Boop() {\n\t\tsuper();\n\t}",
"public Boat() {\n }",
"BOp createBOp();",
"public EnlightenedJavaPrinter() {\n\n }",
"public XQChargeRollBackPrintUI() {\n\t}",
"public Bout()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(600, 400, 1); \n CreaBoutique();\n\n }",
"public Bishop()\n {\n super();\n }",
"public BubbleFactory() {\n // TODO Auto-generated constructor stub\n }",
"public ShadesOfBlue(){\n super( Settings.ObjectivesProperties.SHADES_OF_BLUE.getTitle(),\n Settings.ObjectivesProperties.SHADES_OF_BLUE.getDescription(),\n Settings.ObjectivesProperties.SHADES_OF_BLUE.getPath(),\n Settings.ObjectivesProperties.SHADES_OF_BLUE.getPoints(),\n Colour.BLUE);\n }",
"public BubbleDisplay createBubbleDisplay()\n\t{\t\n\t\tbubbleDisplay = new BubbleDisplay();\n\t\treturn bubbleDisplay;\n\t}",
"public BadgeCard() {\n this(null, null, null, 0);\n }",
"public Bank(BankDisplay bankDisplay) {\n this(\"bank\", \"localhost\", 1234, bankDisplay);\n }",
"public PriceBreakdown() {\n }",
"public BaseballCard(){\r\n\r\n\t}",
"Cab(){\n\t\tSystem.out.println(\"Cab Object Constructed..\");\n\t}",
"public Paper()\r\n\t{\r\n\t\tsuper(0,\"\", \"\");\r\n\t}",
"public BacInfo() {\n }",
"private Bluetooth() {}",
"public Excel_Reporte_Borrador() {\r\n }",
"public GchCarLifeBbs() {\n this(\"gch_car_life_bbs\", null);\n }",
"public Paper() {\r\n }",
"protected Betaling()\r\n\t{\r\n\t\t\r\n\t}",
"public PrintDTC () {\n initComponents ();\n }",
"public Pencil() {\n\n }",
"public Allocation() {\n initComponents();\n }",
"public MyPrinter() {\r\n this.message = \"\";\r\n }",
"public Bullet() {\n super();\n }",
"public Boleta(){\r\n\t\tsuper();\r\n\t}",
"public Purp() {\n }",
"public Bifurcator() {\n\t\tinitComponents();\n\t}",
"public ReportMakerTab() {\r\n\t\tsuper();\r\n\t\tinitialize();\r\n\t}",
"public DABeneficios() {\n }",
"public Bach(Logger logger, Consumer<String> printer) {\n this.logger = logger;\n this.printer = printer;\n logger.log(Level.TRACE, \"Initialized Bach.java \" + VERSION);\n }",
"public ProductTestReport() {}",
"public CustomerPanel(PrinterInterface printer){\n super();\n receiver = new DepositItemReceiver(printer);\n}",
"public BromiumFactoryImpl()\n {\n super();\n }",
"public AddBreakdown() {\n initComponents();\n }",
"public Patient_Generate_Bill_Receptionist() {\n initComponents();\n }",
"public LaundryCard() {\n\t}",
"public Blacksmith(){\n\t\t\n\t}",
"public BOOK_RECORD() {\n initComponents();\n setIcon();\n }",
"private BUR(final String name, final String desc, final String acronym)\r\n {\r\n super(name, desc, acronym);\r\n }",
"protected IPCGCallDetailCreator()\r\n {\r\n // empty\r\n }",
"public ScribbleFactoryImpl()\n {\n\t\tsuper();\n\t}",
"public Playground() {\n }",
"public BreukFrame() {\n super();\n initialize();\n }",
"public ReportScreen() {\n\t\t\n\t}",
"public Boleto() {\n this(3.0);\n }",
"public ABBOut() {}",
"public Overview() {\n\t\t// It will work whenever i create object with using no parameter const\n\t\tSystem.out.println(\"This is constructor\");\n\t}",
"public void Blueprint(){\r\n System.out.println(\"House features:\\nSquare Footage - \" + footage + \r\n \"\\nStories - \" + stories + \"\\nBedrooms - \" + bedrooms + \r\n \"\\nBathrooms - \" + bathrooms + \"\\n\");\r\n }",
"public FrmBillDisplay() {\n initComponents();\n }",
"public Prof_Report() {\r\n initComponents();\r\n }",
"public Produit() {\n }",
"private FireWeaponScreenFactory() {\n\t}",
"public DeluxeBurger() {\n super(\"Deluxe\", \"Sausage & Bacon\", 14.54, \"white\");\n super.addHamburgerFirstAddition(\"Chips\", 2.75);\n super.addHamburgerSecondAddition(\"Drink\", 1.81);\n }",
"public FruitStand() {}",
"public YellowTea() {\n super();\n this.setName(\"Yellow Tea\");\n this.setPrice(3.50);\n\n this.brewFirstLiquid = new BrewHotWater();\n this.brewSecondLiquid = new BrewNoLiquid();\n this.brewThirdLiquid = new BrewNoLiquid();\n\n System.out.println(\"Brewing Yellow Tea...\");\n }",
"public Breadfruit() {\r\n super(sciPlantName, commonPlantName, hiPlantName, \"\",\r\n origin, status, plantForm, plantSize,\r\n Evergreen.getMinHeightFromSize(plantSize),\r\n Evergreen.getMaxHeightFromSize(plantSize),\r\n Evergreen.getMinWidthFromSize(plantSize),\r\n Evergreen.getMaxWidthFromSize(plantSize),\r\n latitude, longitude);\r\n }",
"public BankAccount() {\n this(12346, 5.00, \"Default Name\", \"Default Address\", \"default phone\");\n }",
"public BillResource() {\n super();\n }",
"public AdsbPlane(int icao) {\r\n\t\tmIcao = icao;\r\n\t\tmCprs[0] = new CprRec();\r\n\t\tmCprs[1] = new CprRec();\r\n\t}",
"public SAP(Digraph G) {this.G = new Digraph(G);}",
"private PaletteFactory() {\n }",
"@Inject\n public BluetoothProbeFactory() {\n }",
"public BankAcc(){\r\n //uses another constuctor\r\n this(593,2.5,\"Deg\",\"Deg\",\"Deg\");\r\n System.out.println(\"EMpty\");;\r\n }",
"public void createBlueBanHighlight() {\n\t\tblueBanHighlight = new JLabel() {\n \t\tprotected void paintComponent(Graphics g) {\n\t \t g.setColor(getBackground());\n \t \tg.fillRect(0, 0, getWidth(), getHeight());\n \t\t\tsuper.paintComponent(g);\n\t\t }\n\t\t};\n\t\tblueBanHighlight.setBackground(new Color(255, 217, 0, 120));\n\t\tbottomPanel.add(blueBanHighlight, new Integer(1));\n\t\tblueBanHighlight.setBounds(23, 29, 245, 135);\n\t}",
"public PapelBean() {\n }",
"public ProducerPlan()\r\n\t{\r\n\t\tgetLogger().info(\"Created: \"+this);\r\n\t}",
"public CreditsScreen()\n {\n }",
"public Bike(){\n\t}",
"public Dealer()\n {\n super(\"Dealer\");\n }",
"public Produto() {}",
"public Deck()\n {\n this(1);\n }",
"public Produit() {\n\t\tsuper();\n\t}",
"public DebtorsAgingBean() {\n }",
"public CellaredDrink() {\n\t\tthis(\"cellared_drink\", null);\n\t}",
"public BloodDonner() {\n initComponents();\n showProfile();\n }",
"public borFactoryImpl() {\n\t\tsuper();\n\t}",
"public ProductFruit() {\r\n }",
"@Override\n\tpublic B makeB(Map<String, String> attributes, Div divObj) {\n\t\treturn new B( attributes, divObj );\n\t}",
"public FullPrintableReport( WOContext context )\n {\n super( context );\n }",
"public Badminton()\n { \n frame.add(new Board()); \n frame.setSize(900, 900);\n frame.setResizable(false);\n frame.setTitle(\"PE Class\");\n //frame.setLocationRelativeTo(null);\n frame.setVisible(true);\n }",
"public ContaBancaria() {\n }",
"public Dealer() {\n this(1);\n }",
"public NewCustomColorPalette() {\n\t\tsuper();\n\t\tbuildPalette();\n\t}",
"public GraphicsFactory() {\n\t\tsuper();\n\t}",
"public BeanGame () {\n\t}",
"public Dealer(Bloc playerBloc)\n {\n super(\"Dealer Game\", playerBloc,MobileType.Lambda, Actions.Dialog, NameDialog.Seller);\n try\n {\n createList(getMyList());\n }\n catch (Exception e)\n {\n Gdx.app.error(\"Error in the instantiation : \",String.valueOf(e));\n }\n }",
"public BDD() {\n\t\tlisteTables = new ArrayList<Table>();\n\t}",
"public NewCourier() {\n initComponents();\n }",
"public Bach() {\n this(LOGGER, System.out::println);\n }",
"public BookFairQues4() {\n this.Bname = \"\";\n this.price = 0.0;\n }",
"public BlackPanel() \r\n {\r\n super(\"Seeds\", \"Seeds\");\r\n initComponents();\r\n \r\n // Set up some defaults variables\r\n putWizardData(\"blackWords\", \" \");\r\n }",
"public Tabono() {\n }",
"public Gorail1() {\n initComponents();\n }",
"public Bridge() {\n }",
"public PkBrp(){\n \t\n }"
] | [
"0.6486939",
"0.6284205",
"0.6276284",
"0.6094116",
"0.6078836",
"0.60221165",
"0.6010539",
"0.59247977",
"0.5919322",
"0.5911159",
"0.589887",
"0.5879287",
"0.5861382",
"0.58401513",
"0.58335966",
"0.5818392",
"0.58029336",
"0.5795632",
"0.57636017",
"0.5751421",
"0.5732003",
"0.56967324",
"0.5687938",
"0.56643075",
"0.5659944",
"0.5625115",
"0.5609852",
"0.5600509",
"0.5572859",
"0.5571693",
"0.5569688",
"0.55581105",
"0.554529",
"0.5543999",
"0.55390406",
"0.5525854",
"0.5515812",
"0.5504926",
"0.54962784",
"0.5489812",
"0.54807764",
"0.5478509",
"0.54742485",
"0.5461971",
"0.5460696",
"0.5460545",
"0.545599",
"0.545582",
"0.5453019",
"0.5421985",
"0.5414248",
"0.5404604",
"0.54042965",
"0.54042256",
"0.5398837",
"0.5396712",
"0.5392401",
"0.5385668",
"0.538342",
"0.53811496",
"0.5379199",
"0.53789127",
"0.53676546",
"0.53660476",
"0.5364394",
"0.53637046",
"0.5355871",
"0.5348829",
"0.53441757",
"0.53416073",
"0.5341316",
"0.5339767",
"0.533935",
"0.5339315",
"0.53375626",
"0.5329808",
"0.5327761",
"0.53270894",
"0.532503",
"0.53229415",
"0.5322705",
"0.53217983",
"0.5317669",
"0.5312124",
"0.5308014",
"0.53024113",
"0.53009206",
"0.5299591",
"0.5292634",
"0.5291549",
"0.52881676",
"0.5287937",
"0.52755636",
"0.5272851",
"0.5267723",
"0.52652866",
"0.5257663",
"0.5254779",
"0.5253449",
"0.5252641",
"0.525208"
] | 0.0 | -1 |
This will update the angle of the bluePrint and it will notify the BluePrintView | public void setAngle(int angle) {
this.angle = angle;
notifyViews();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void drawAngleInfo(){\n\t\tfont2.draw(batch, (\"The angle of Projection is \" + angle),(float)(screenWidth * .45), 20);\n\t}",
"public void updateRenderAngles() {\n }",
"@Override\n public void reAngle() {\n }",
"public void updateAngle(){\n\t\tif (turnUp && (angle < 180) ){\n\t\t\tangle+=1;\n\t\t}\n\t\tif (turnDown && (angle > 0)){\n\t\t\tangle-=1;\n\t\t}\n\t}",
"public void setAngle( double a ) { angle = a; }",
"@Override\n\tpublic void setAngle(float sweepAngle) {\n\t\tMessage msg = handler.obtainMessage();\n\t\tmsg.arg1 = (int) (sweepAngle/360*100);\n\t\tmsg.what = 1;\n\t\thandler.sendMessage(msg);\n\t}",
"void setAngle(double angle);",
"void increaseAngle() {\n this.strokeAngle += 3;\n this.updateAcc();\n this.updateStick();\n }",
"@FXML\n void angleSliderEvent() {\n \tint value = (int) angleSlider.getValue();\n \tangleText.setText(Integer.toString(value));\n \tangle = value;\n \tdrawLauncher(value);\n }",
"public void bounce() {\n angle = -angle;\n }",
"public void updateAngle() {\n\t\tfloat ak = 0;\n\t\tfloat gk = 0;\n\t\tak = (float) (pathBoardRectangles.get(curTargetPathCellIndex).getCenterX() - x);\n\t\tgk = (float) (pathBoardRectangles.get(curTargetPathCellIndex).getCenterY() - y);\n\t\tangleDesired = (float) Math.toDegrees(Math.atan2(ak*-1, gk));\n\t\t// if the angle and the angleDesired are opposites the Vector point into the opposite direction\n\t\t// this means the angle will be the angle of the longer vector which is always angle\n\t\t// so if that happens the angleDesired is offset so this won't happen\n\t\tangle = Commons.calculateAngleAfterRotation(angle, angleDesired, rotationDelay);\n\t}",
"public AngleDisplay() {\n initComponents();\n\n setPreferredSize(new Dimension(size, size));\n }",
"@Override\n\tpublic void onBlue() {\n\t\taddSequential(new DriveStraightByDistance(PEG_STRAIGHT - ROBOT_LENGTH / 2), 3.5);\n\t\t//TODO: might need to change to a little less\n\t\taddSequential(new TurnDegrees(90), 2.5);\n\t\taddSequential(new DriveStraightByDistance(EXTRA_DIS), 4);\n\t\taddSequential(new OpenPlacer2());\n\t\taddSequential(new ArcadeDriveByValues(-0.5, -0.5), 1);// TODO change commad\n\t\taddSequential(new ClosePlacer());\n\t\t\n\t}",
"public void setAngle(float angle){\n\n\t}",
"private void DrawBraid(GL gl, float x, float y, float size,\n\t\t\tfloat r, float g, float b) {\n\n float reflected_x=0, reflected_y=0;\n float reflected_vector_angle=0, reflected_image_angle=0, reflected_rotate=0;\n\n // Degeneracy = do not want\n\t\tif (m_length == 0.0f || m_width == 0.0f) {\n\t\t\treturn;\n\t\t}\n\n\t\t////int mct = (int) (1 / this.GetPEngine().m_uniscale);\n\t\t////mct = (mct / 2) / 100 * 100;\n\n //Do the reflection\n if(m_x_reflection==0 && m_y_reflection==0)\n {\n reflected_x=x;\n reflected_y=y;\n reflected_image_angle=m_slope;\n reflected_vector_angle=m_slope;\n reflected_rotate= m_rotate;\n }\n else if(m_x_reflection==1 && m_y_reflection==0)\n {\n reflected_x=x;\n reflected_y=-y;\n reflected_image_angle=90-m_slope;\n reflected_vector_angle=-m_slope;\n reflected_rotate= -m_rotate;\n }\n else if(m_x_reflection==0 && m_y_reflection==1)\n {\n reflected_x=-x;\n reflected_y=y;\n reflected_image_angle=-90-m_slope;\n reflected_vector_angle=180-m_slope;\n reflected_rotate= -m_rotate;\n }\n else if(m_x_reflection==1 && m_y_reflection==1)\n {\n reflected_x=-x;\n reflected_y=-y;\n reflected_image_angle=m_slope-180;\n reflected_vector_angle=m_slope+180;\n reflected_rotate= m_rotate;\n }\n\n\t\tfloat start_image_theta = (float) Math.toRadians(reflected_image_angle);\n \t\tfloat start_vector_theta = (float) Math.toRadians(reflected_vector_angle);\n\t\tfloat rotate_theta = (float) Math.toRadians(reflected_rotate);\n\t\tfloat cur_image_theta = 0f, cur_vector_theta = 0f;\n\t\tdouble image_costheta = 0, vector_costheta = 0;\n\t\tdouble image_sintheta = 0, vector_sintheta = 0;\n\t\tfloat xP = 0f;\n\t\tfloat yP = 0f;\n\t\tfloat xO = 0f, nextXO = 0f;\n\t\tfloat yO = 0f, nextYO = 0f;\n\n\t\t//if (txt == null) {\n\t\t//\ttxt = load(\"img/plaitWhite.png\");\n\t\t//}\n\t\tTextureCoords tc = m_txt.getImageTexCoords();\n\t\txO = nextXO = reflected_x;\n\t\tyO = nextYO = reflected_y;\n xP = m_cx * m_starting_dilation;\n\t\tyP = m_cy * m_starting_dilation;\n //vector\n\t\tcur_vector_theta = start_vector_theta;\n vector_costheta = Math.cos(cur_vector_theta);\n\t\tvector_sintheta = Math.sin(cur_vector_theta);\n //image\n cur_image_theta = start_image_theta;\n\t\timage_costheta = Math.cos(cur_image_theta);\n\t\timage_sintheta = Math.sin(cur_image_theta);\n\t\t\n\t\tfor (int i = 0; i < Iteration; i++) {\t\t\t\n DrawPlait(gl, xO, yO, xP / 2, yP / 2, image_costheta, image_sintheta, tc);\n\t\t\t//vector\n cur_vector_theta += rotate_theta;\n\t\t\tvector_costheta = Math.cos(cur_vector_theta);\n\t\t\tvector_sintheta = Math.sin(cur_vector_theta);\n //image\n\t\t\tcur_image_theta += rotate_theta;\n\t\t\timage_costheta = Math.cos(cur_image_theta);\n\t\t\timage_sintheta = Math.sin(cur_image_theta);\n //next centor position\n\t\t\tnextXO = xO + (float) (xP * m_translate * vector_costheta);\n\t\t\tnextYO = yO + (float) (yP * m_translate * vector_sintheta);\n\t\t\tif (m_vector) {\n\t\t\t\tDrawVector(gl, xO, yO, nextXO, nextYO, xP, cur_vector_theta);\n\t\t\t}\n\t\t\txO = nextXO;\n\t\t\tyO = nextYO;\n\t\t\txP *= m_dilate;\n\t\t\tyP *= m_dilate;\n\t\t}\n\t}",
"void decreaseAngle() {\n this.strokeAngle -= 3;\n this.updateAcc();\n this.updateStick();\n }",
"void drawLauncher(double angle)\n {\n \tlauncherCanvas.rotateProperty().set(angle);\n \tlauncher.setFill(Color.GREY);\n launcher.fillRect(0,0,launcherCanvas.getWidth(),launcherCanvas.getHeight());\n }",
"public void setAngle(double angle) {\n this.angle = angle;\n }",
"public double getAngle() { return angle; }",
"@FXML\n void angleTextEvent(ActionEvent event) {\n \t// Get the current text\n \tString text = angleText.getText();\n \t// Filter out anything that is not related to numbers\n\t\ttext = text.replaceAll(\"[^-\\\\d.]\", \"\");\n\t\tangleText.setText(text);\n\t\tdouble val;\n\t\ttry\n\t\t{\n\t\t\t//Get a number from the textbox and set the angle value.\n\t\t\tval = Double.parseDouble(text);\n\t\t\tif(val < -15)\n\t\t\t\tval = -15;\n\t\t\telse if(val > 15)\n\t\t\t\tval = 15;\n\t\t\tangleSlider.setValue(val);\n\t\t\tangleText.setText(Double.toString(val));\n\t\t\tdrawLauncher(val);\n\t\t\tangle = val;\n\t\t}\n\t\tcatch(NumberFormatException e)\n\t\t{}\n }",
"public void draw()\n {\n imageView.setRotate(teta);\n imageView.relocate(super.getX(),super.getY());\n }",
"private void updateAmplificationValue() {\n ((TextView) findViewById(R.id.zoomUpDownText)).setText(String.valueOf(curves[0].getCurrentAmplification()));\n }",
"public void setAngle(final float angle);",
"@Override\r\n\tpublic void perimetre(Graphics g) {\n\t\tswitch(this.getAngle()){\r\n\t\tcase 0 :\r\n\t\t\tg.drawRect(this.getX()+(this.getTaille()/4), this.getY(), this.getTaille()/2, this.getTaille());\r\n\t\t\tbreak;\r\n\t\tcase 90:\r\n\t\t\tg.drawRect(this.getX(), this.getY()+(this.getTaille()/4), this.getTaille(), this.getTaille()/2);\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}",
"public void setAngle(double angle)\n\t{\n\t\tthis.angle = angle;\n\t}",
"public int getCurrentAngle(){\n return flatbed.currentAngle;\n }",
"public void redraw(double angle, double speed) {\n }",
"void setAngle(int id, double value);",
"private void chargeArrow()\n {\n if(bowCharge < MAX_CHARGE)\n {\n bowCharge += CHARGE_INCR;\n }\n //System.out.println(\"bowCharge \" + bowCharge);\n currentArrow.updateAiming(mouseX, mouseY);\n\n \n if(currentArrow.getMovementAngle() >= 0)\n {\n currentBow = bowRight; \n setFacing(Direction.RIGHT);\n bowX = xPos + BOW_X_OFFSET + (getCurrentFrameWidth() / 2);\n currentBow.setRotation(currentArrow.getMovementAngle() \n - BOW_ANGLE_OFFSET);\n }\n else\n {\n setFacing(Direction.LEFT);\n currentBow = bowLeft; \n bowX = xPos - BOW_X_OFFSET;\n currentBow.setRotation(currentArrow.getMovementAngle() \n + BOW_ANGLE_OFFSET);\n }\n updateBowPosition();\n currentArrow.setPosition(getHoldingArrowX(), getHoldingArrowY());\n }",
"public void drawAngleIndicator(){\n\t\tfloat bottomLineHyp = 60;\n\t\tfloat topLineHyp = 100;\n\t\t\n\t\tfloat bottomXCoord = (float) ((Math.cos(Math.toRadians(angle) ) ) * bottomLineHyp);\n\t\tfloat bottomYCoord = (float) ((Math.sin(Math.toRadians(angle) ) ) * bottomLineHyp);\n\t\t\n\t\tfloat bottomX = Player.getxPlayerLoc() + ((Player.getPlayerImage().getWidth() * Player.getPlayerScale()) / 2 ) + bottomXCoord;\n\t\tfloat bottomY = Player.getyPlayerLoc() + ((Player.getPlayerImage().getHeight() * Player.getPlayerScale()) / 2 ) + bottomYCoord ;\n\t\t\n\t\tfloat topXCoord = (float) ((Math.cos(Math.toRadians(angle) ) ) * topLineHyp);\n\t\tfloat topYCoord = (float) ((Math.sin(Math.toRadians(angle) ) ) * topLineHyp);\n\t\t\n\t\tfloat topX = Player.getxPlayerLoc() + ((Player.getPlayerImage().getWidth() * Player.getPlayerScale() ) / 2 ) + topXCoord;\n\t\tfloat topY = Player.getyPlayerLoc() + ((Player.getPlayerImage().getHeight() * Player.getPlayerScale() ) / 2 ) + topYCoord;\n\t\t\n\t\tShapeRenderer shape = new ShapeRenderer();\n\t\tshape.setColor(Color.BLACK);\n\t\tshape.begin(ShapeType.Line);\n\t\tshape.line(bottomX, bottomY, topX, topY);\n\t\tshape.end();\n\t}",
"@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\tif (angle < rightAngle) {\n\t\t\t\t\t\tangle++;\n\t\t\t\t\t\trightAngle = 110;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tangle--;\n\t\t\t\t\t\trightAngle = leftAngle;\n\t\t\t\t\t}\n\t\t\t\t\trepaint();\n\t\t\t\t}",
"public void setAngle(double angle) {\n\t\tthis.angle = angle;\n\t}",
"@Override\n\tpublic void Draw(GL gl, GLU glu, int frame, double dt) {\n\t\t//DrawOval(gl, 0,0, 1,0, 0, 0);\n\n\t\tDrawBraid(gl, x_Start * 100, y_Start * 100, 1, 0, 0, 0);\n\n\n\t}",
"@Override\n\tpublic void update(double prize) {\n\t\tthis.prize = cambiar(prize);\t\n\t\tSystem.out.println(\"Prize: \" + this.prize + \"¥\");\n\t}",
"public void run()\n {\n angleText.setText(data);\n turnText.setText(Integer.toString(turnAngle));\n }",
"public double curSwing(){\r\n return swingGyro.getAngle();\r\n }",
"void setAngle(float angle) {\n\t\tarrow.setRotation(angle);\n\t\trequiredSwipeDirection = angle;\n\t\trequiredSwipeMagnitude = DEFAULT_SWIPE_MAGNITUDE;\n\t}",
"@Override\n public void rotate(double angle) {\n graphicsEnvironmentImpl.rotate(canvas, angle);\n }",
"public void updateOrientationAngles() {\n SensorManager.getRotationMatrix(rotationMatrix, null,\n accelerometerReading, magnetometerReading);\n\n // \"mRotationMatrix\" now has up-to-date information.\n\n float[] angles = SensorManager.getOrientation(rotationMatrix, orientationAngles);\n azimuth = (float) Math.toDegrees(angles[0]);\n // \"mOrientationAngles\" now has up-to-date information.\n TextView az = findViewById(R.id.az);\n rotateDriver(azimuth);\n\n az.setText(Float.toString(azimuth));\n }",
"public void setAngle(float _angle) {\n\t\tthis.angle = _angle;\n\t}",
"public Flatbed(int angle){\r\n this.angle=angle;\r\n }",
"@Override\n\tvoid update(){\n\n\t\t\tif(Frogger.flag==1){\n\t\t\t\tif(orientation == Orientation.UP) y -= step;\n\t\t\t\telse if (orientation == Orientation.DOWN) y += step;\n\t\t\t\telse if (orientation == Orientation.RIGHT) x += step;\n\t\t\t\telse if (orientation == Orientation.LEFT) x -= step;\n\t\t}\n\t\tsetChanged();\n\t\tnotifyObservers();\n\t}",
"public void setAngle(double a) {\n\t\tangle= a;\n\t}",
"@OnClick(R.id.calibrate)\n public void onCalibrate() {\n popupCalibratingDialog();\n new Handler().postDelayed(new Runnable() {\n @Override\n public void run() {\n presenter.calibrate();\n }\n }, 600);\n }",
"public void handle(ActionEvent ae) {\n angle += 15.0; \n \n rotate.setAngle(angle); \n rotate.setPivotX(btnRotate.getWidth()/2); \n rotate.setPivotY(btnRotate.getHeight()/2); \n }",
"private void updateAngles(){\n double xCompassVal, yCompassVal, radCompassVal, compassHeading;\n xCompassVal = compass.getValues()[0];\n yCompassVal = compass.getValues()[2];\n radCompassVal = Math.atan2(yCompassVal, xCompassVal);\n compassHeading = (radCompassVal - 1.5708);\n\n if(compassHeading < 0.0){\n compassHeading = compassHeading + (2 * Math.PI);\n }\n this.currentHeading = compassHeading;\n\n\n //Update difference to position\n double dx = 0.0;\n double dy = 0.0;\n double bearing = 0;\n if(this.currentNode != null && this.nextNode != null ){\n System.out.println(\"Nodes Not Null\");\n dx = this.nextNode.getX() - this.currentNode.getX();\n dy = this.nextNode.getY() - this.currentNode.getY();\n\n }\n\n if (dx > 0 ){\n System.out.println(\"RADD CHECK \" + Math.atan(dy/dx));\n bearing = (Math.PI/2) - Math.atan(dy/dx);\n\n }\n\n if (dx > 0 ){\n System.out.println(\"RADD \" + Math.atan(dy/dx));\n bearing = (0.75 * Math.PI) - Math.atan(dy/dx);\n\n }\n\n if (dx == 0){\n System.out.println(\"dx == 0; Avoiding divide by 0...\");\n\n if (dy > 0) bearing = 0;\n if (dy < 0) bearing = Math.PI;\n if (dy == 0) bearing = 0;\n }\n\n this.bearingAngle = bearing;\n\n }",
"@Override\n public void periodic() {\n m_odometry.update(\n Rotation2d.fromDegrees(m_gyro.getAngle()),\n new SwerveModulePosition[] {\n m_frontLeft.getPosition(),\n m_frontRight.getPosition(),\n m_rearLeft.getPosition(),\n m_rearRight.getPosition()\n });\n }",
"public void resetAngle() {\n\t\t//this.angle = (this.orientation % 4 + 4) * (90);\n\t\tthis.angle = this.orientation * 90*-1;\n\t\tthis.tweenAngle.setCurrentValue(this.angle);\n\t\tthis.tweenAngle.setTargetValue(this.angle);\n\t}",
"@Override\n public void run() {\n angles = imu.getAngularOrientation().toAxesReference(AxesReference.INTRINSIC).toAxesOrder(AxesOrder.ZYX);\n gravity = imu.getGravity();\n }",
"public void RotateActionPerformed(java.awt.event.ActionEvent evt) { \r\n degree = degree + 90;\r\n drawingPanel.setDegree(degree); \r\n }",
"void resetAngle();",
"@Override\r\n\tpublic void surfaceChanged(SurfaceHolder holder, int format, int width,\r\n\t\t\tint height) {\n\t\tLog.w(TAG, \"->> in surface chandeg\");\r\n\r\n\t}",
"public void draw() {\n\t\tif (fill) {\n\t\t\tapplet.noStroke();\n\t\t\tapplet.fill(color);\n\t\t} else {\n\t\t\tapplet.noFill();\n\t\t\tapplet.stroke(color);\n\t\t}\n\t\tapplet.rect(position.x, position.y, size.x, size.y);\n\t\tsliderButton.draw(new PVector(-10,0));\n\t}",
"public void updateGyro() {\n\t\tangleToForward = gyro.getAngle();\n\t\tif (angleToForward >= 360) {\n\t\t\tangleToForward -= 360;\n\t\t} else if (angleToForward < 0) {\n\t\t\tangleToForward += 360;\n\t\t}\n\n\t}",
"public void setAngle(int angle) {\r\n\t\tthis.angle = angle;\r\n\t}",
"@Override\n public void periodic() {\n odometry.update(ahrs.getRotation2d(), getEncoderMeters(leftEncoder), getEncoderMeters(rightEncoder));\n }",
"public double getAngle ()\n {\n return angle_;\n }",
"public float getAngle() {\n return angle;\n }",
"public float getAngle() {\n return angle;\n }",
"public void Display() \n {\n float theta = velocity.heading() + PI/2;\n fill(175);\n stroke(0);\n pushMatrix();\n translate(pos.x,pos.y);\n rotate(theta);\n beginShape();\n vertex(0, -birdSize*2);\n vertex(-birdSize, birdSize*2);\n vertex(birdSize, birdSize*2);\n endShape(CLOSE);\n popMatrix();\n }",
"public double getAngle() {\n return angle;\n }",
"public double getAngle() {\n return angle;\n }",
"@Override\n public void initialize() {\n setPoint = (((targetAngle + driveSubsystem.getHeading() + 180) % 360) - 180);\n }",
"public int getAngle() {\r\n return angle;\r\n }",
"@Override\n\tpublic void Orientation_Graphic_ObjectEvent(Interface.Orientation_Graphic_ObjectEvent e, double data) {\n\t\t\n\t}",
"@Override\n public void setTurtleAngle(double angle) {\n screenCreator.updateCommandQueue(\"Angles\", Collections.singletonList(angle));\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tFluoLabGraphView.Rotates = FluoLabGraphView.Rotates + 90;\n\t\t\t\tLog.d(Tag,\"Rotates\"+FluoLabGraphView.Rotates);\n\t\t\t\tmFluoLabGraphView.fitBitmap();\n\t\t\t\trefreshResult();\n\t\t\t\t\n\t\t\t}",
"public double getAngle(){\n\t\treturn this.angle;\n\t}",
"public double getAngle();",
"@Override\r\n\tpublic void renderArrow(Canvas cv) {\n\t\tupdateParam();\r\n\t\tdrawArrow(cv);\r\n\t}",
"@Override\n protected void execute() {\n headingPID.setSetpoint(-angle); //should be -angle \n Robot.driveBase.DriveAutonomous();\n }",
"public void setAngle(float angle) {\n mAngle = angle;\n }",
"public void changeAngle (int horizontalSpeed)\n\t{\n\t\t//The following makes the PaperAirplane face as far right as it can\n\t\t//(but it still faces downward slightly).\n\t\tif (horizontalSpeed >= 5)\n\t\t{\n\t\t\txDimension1 = getX_Pos () - 23;\n\t\t\txDimension2 = getX_Pos () - 18;\n\t\t\txDimension3 = getX_Pos () + 22;\n\t\t\t\n\t\t\tyDimension1 = getY_Pos () - 2;\n\t\t\tyDimension2 = getY_Pos () - 17;\n\t\t\tyDimension3 = getY_Pos () + 5;\n\t\t}\n\t\t//When the horizontal speed progresses from 5 to 0, the plane faces\n\t\t//further downward, which is shown by the if statements below. Likewise,\n\t\t//as the horizontal speed progresses from 0 to 5, the plane faces\n\t\t//further right.\n\t\telse if (horizontalSpeed == 4)\n\t\t{\n\t\t\txDimension1 = getX_Pos () - 20;\n\t\t\txDimension2 = getX_Pos () - 12;\n\t\t\txDimension3 = getX_Pos () + 20;\n\t\t\t\n\t\t\tyDimension1 = getY_Pos () - 7;\n\t\t\tyDimension2 = getY_Pos () - 19;\n\t\t\tyDimension3 = getY_Pos () + 11;\n\t\t}\n\t\telse if (horizontalSpeed == 3)\n\t\t{\n\t\t\txDimension1 = getX_Pos () - 15;\n\t\t\txDimension2 = getX_Pos () - 5;\n\t\t\txDimension3 = getX_Pos () + 14;\n\t\t\t\n\t\t\tyDimension1 = getY_Pos () - 12;\n\t\t\tyDimension2 = getY_Pos () - 22;\n\t\t\tyDimension3 = getY_Pos () + 13;\n\t\t}\n\t\telse if (horizontalSpeed == 2)\n\t\t{\n\t\t\txDimension1 = getX_Pos () - 10;\n\t\t\txDimension2 = getX_Pos () + 2;\n\t\t\txDimension3 = getX_Pos () + 12;\n\t\t\t\n\t\t\tyDimension1 = getY_Pos () - 17;\n\t\t\tyDimension2 = getY_Pos () - 22;\n\t\t\tyDimension3 = getY_Pos () + 18;\n\t\t}\n\t\telse if (horizontalSpeed == 1)\n\t\t{\n\t\t\txDimension1 = getX_Pos () - 10;\n\t\t\txDimension2 = getX_Pos () + 4;\n\t\t\txDimension3 = getX_Pos () + 6;\n\t\t\t\n\t\t\tyDimension1 = getY_Pos () - 18;\n\t\t\tyDimension2 = getY_Pos () - 20;\n\t\t\tyDimension3 = getY_Pos () + 20;\n\t\t}\n\t\t//The following makes the plane face straight down.\n\t\telse if (horizontalSpeed == 0)\n\t\t{\n\t\t\txDimension1 = getX_Pos () - 7;\n\t\t\txDimension2 = getX_Pos ();\n\t\t\txDimension3 = getX_Pos () + 7;\n\t\t\t\n\t\t\tyDimension1 = getY_Pos () - 20;\n\t\t\tyDimension2 = getY_Pos () + 24;\n\t\t\tyDimension3 = getY_Pos () - 20;\n\t\t}\n\t\t//When the horizontal speed progresses from -5 to 0, the plane faces\n\t\t//further downward, which is shown by the if statements below. Likewise,\n\t\t//as the horizontal speed progresses from 0 to -5, the plane faces\n\t\t//further left.\n\t\telse if (horizontalSpeed == -1)\n\t\t{\n\t\t\txDimension1 = getX_Pos () + 10;\n\t\t\txDimension2 = getX_Pos () - 4;\n\t\t\txDimension3 = getX_Pos () - 6;\n\t\t\t\n\t\t\tyDimension1 = getY_Pos () - 18;\n\t\t\tyDimension2 = getY_Pos () - 20;\n\t\t\tyDimension3 = getY_Pos () + 20;\n\t\t}\n\t\telse if (horizontalSpeed == -2)\n\t\t{\n\t\t\txDimension1 = getX_Pos () + 10;\n\t\t\txDimension2 = getX_Pos () - 2;\n\t\t\txDimension3 = getX_Pos () - 12;\n\t\t\t\n\t\t\tyDimension1 = getY_Pos () - 17;\n\t\t\tyDimension2 = getY_Pos () - 22;\n\t\t\tyDimension3 = getY_Pos () + 18;\n\t\t}\n\t\telse if (horizontalSpeed == -3)\n\t\t{\n\t\t\txDimension1 = getX_Pos () + 15;\n\t\t\txDimension2 = getX_Pos () + 5;\n\t\t\txDimension3 = getX_Pos () - 14;\n\t\t\t\n\t\t\tyDimension1 = getY_Pos () - 12;\n\t\t\tyDimension2 = getY_Pos () - 22;\n\t\t\tyDimension3 = getY_Pos () + 13;\n\t\t}\n\t\telse if (horizontalSpeed == -4)\n\t\t{\n\t\t\txDimension1 = getX_Pos () + 20;\n\t\t\txDimension2 = getX_Pos () + 12;\n\t\t\txDimension3 = getX_Pos () - 20;\n\t\t\t\n\t\t\tyDimension1 = getY_Pos () - 7;\n\t\t\tyDimension2 = getY_Pos () - 19;\n\t\t\tyDimension3 = getY_Pos () + 11;\n\t\t}\n\t\t//The following makes the PaperAirplane face as far left as it can\n\t\t//(but it still faces downward slightly).\n\t\telse if (horizontalSpeed <= -5)\n\t\t{\n\t\t\txDimension1 = getX_Pos () + 23;\n\t\t\txDimension2 = getX_Pos () + 18;\n\t\t\txDimension3 = getX_Pos () - 22;\n\t\t\t\n\t\t\tyDimension1 = getY_Pos () - 2;\n\t\t\tyDimension2 = getY_Pos () - 17;\n\t\t\tyDimension3 = getY_Pos () + 5;\n\t\t}\n\t}",
"double getAngle();",
"double getAngle();",
"@Override\n\t\t\tpublic void handleMessage(Message msg) {\n\t\t\t\tif (msg.what == 1) {\n\t\t\t\t\tint sweepAngle = msg.arg1;\n\t\t\t\t\ttv_mainText.setText(sweepAngle+\"\");\n\t\t\t\t}\n\t\t\t}",
"@Override\n public void loop() {\n telemetry.addData(\"Rotation: \", Round(stevens_IMU.getAngularOrientation().firstAngle * -57.143));\n telemetry.addData(\"Position \", stevens_IMU.getAngularOrientation());\n }",
"public void goToAngle(){\n currentAngle = getAverageVoltage2(); \r\n if (Math.abs(elevationTarget - currentAngle) <= .1){//TODO: check angle\r\n off();\r\n // System.out.println(\"off\");\r\n } else if (elevationTarget > currentAngle && elevationTarget < maxLimit){\r\n raise();\r\n //System.out.println(\"raise\");\r\n } else if (elevationTarget < currentAngle && elevationTarget > minLimit){\r\n //System.out.println(\"lower\");\r\n } \r\n \r\n }",
"private void updateArmSwing(ModelRenderer arm) {\n \tfloat var8 = 1.0F - swingProgress;\n var8 = 1 - (var8 * var8 * var8);\n float var9 = MathHelper.sin(var8 * (float)Math.PI);\n float var10 = MathHelper.sin(swingProgress * (float)Math.PI) * -(head.rotateAngleX - 0.7F) * 0.75F;\n float swing = MathHelper.sin(MathHelper.sqrt_float(swingProgress) * (float)Math.PI * 2.0F) * 0.2F;\n arm.rotateAngleX -= (float)(var9 * 1.2 + var10);\n arm.rotateAngleY += swing * 2.0F;\n arm.rotateAngleZ += MathHelper.sin(swingProgress * (float)Math.PI) * -0.4F;\n }",
"public void update() {\n\t\tthis.set(owner.getX(), owner.getY(), owner.getX() + length*(float)Math.cos(angle),\n\t\t\t\towner.getY() + length*(float)Math.sin(angle));\n\t}",
"@Override\r\n\tpublic void paint(Graphics g) {\n\t\tswitch(this.getAngle()){\r\n\t\tcase 0 :\r\n\t\t\tg.fillRect(this.getX()+(this.getTaille()/4), this.getY(), this.getTaille()/2, this.getTaille());\r\n\t\t\tbreak;\r\n\t\tcase 90:\r\n\t\t\tg.fillRect(this.getX(), this.getY()+(this.getTaille()/4), this.getTaille(), this.getTaille()/2);\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}",
"@Override\n\t\tpublic void updateVariables(){\n\t\t\tthis.currentX = odometer.getCurrentX();\n\t\t\tthis.currentY = odometer.getCurrentY();\n\t\t\tthis.currentAngle = odometer.getHeadingAngle();\n\t\t\tthis.currentAverageVelocity = odometer.getCurrentAverageVelocity();\n\t\t}",
"@Override\n public void animate (GL2 gl, GLU glu, GLUT glut) {\n // animate model by spinning it a few degrees each time\n myAngle += 1;\n }",
"@Override\n public void draw(Bullet b){\n Draw.color(Palette.lightFlame, Palette.darkFlame, Color.GRAY, b.fin());\n Fill.circle(b.x, b.y, 3f * b.fout());\n Draw.reset();\n }",
"public double getAngle() {\n\t\treturn angle;\n\t}",
"public double getAngle() {\n\t\treturn angle;\n\t}",
"@Override public void onTap () {\n _vx = _rando.nextFloat() * (_rando.nextBoolean() ? -0.25f : 0.25f);\n _vy = _rando.nextFloat() * (_rando.nextBoolean() ? -0.25f : 0.25f);\n }",
"@Override\n\tfinal public void rotate(double angle, Axis axis)\n\t{\n\t\t//center.setDirection(angle);\n\t}",
"public void turn(double angle){\n updateUndoBuffers(new LinkedList<>());\n myAngle += angle;\n }",
"@Override\n\tpublic void init() {\n\t\tcolorSpeed = new GenericKnob(0.05f, scale(50), \"Color rotate speed\");\n\t\tbassBounce = new GenericKnob(0.7f, scale(50), \"Bass Bounce\");\n\t\trequestUserControl(colorSpeed);\n\t\trequestUserControl(bassBounce);\n\t\t\n\t\t// Set up a nice jazzy gradient!\n\t\tColor purple = new Color(255, 0, 128);\n\t\tColor nightBlue = new Color(0, 14, 122);\n\t\tgradient = new RGBGradientCompoundLinear(new Color[]{Color.BLUE, purple, nightBlue, Color.BLACK, Color.BLUE}, new double[]{0.0, 0.25, 0.5, 0.75, 1.0});\n\t\t\n\t\t\n\t}",
"public void turnTo(double angle){\n updateUndoBuffers(new LinkedList<>());\n myAngle = angle+STARTING_ANGLE;\n }",
"public void draw() {\n \n // TODO\n }",
"public void updateDirectionFace();",
"@Override\n public void draw() {\n super.draw(); \n double radius = (this.getLevel() * 0.0001 + 0.025) * 2.5e10;\n double x = this.getR().cartesian(0) - Math.cos(rot) * radius;\n double y = this.getR().cartesian(1) - Math.sin(rot) * radius;\n StdDraw.setPenRadius(0.01);\n StdDraw.setPenColor(StdDraw.RED);\n StdDraw.point(x, y);\n \n }",
"public void setPerihelionAngle(double value) {\n this.perihelionAngle = value;\n }",
"public void update() {\n if (Math.abs(deltaAngle) > .01 || Math.abs(deltaPosition.getX()) > 1 || Math.abs(deltaPosition.getY()) > 1) {\n angle += deltaAngle;\n deltaAngle *= .98;\n updatePosition();\n\n if (Math.random() < Math.abs(deltaAngle)) {\n roll(); //While the dice is clacking around, make the value change\t\tTODO make it slow as the deltaAngle Goes down\n }\n }\n else {\n deltaPosition.scale(0); //Set the Vector to 0\n deltaAngle = 0;\n }\n }",
"private void composeAngleTelemetry(){\n telemetry.addData(\"Start Angle\", startAngles.firstAngle);\n telemetry.addData(\"Current Angle\", angles.firstAngle);\n telemetry.addData(\"Global Angle\", globalAngle);\n }",
"public int getAngle() {\r\n\t\treturn angle;\r\n\t}",
"public void setAngle(double angle) {\n if (!isReset) {\n System.out.println(\"ARM NOT RESETTED. ROBOT WILL NOT MOVE ARM AS PID WILL DESTROY IT.\");\n armMotor.set(ControlMode.PercentOutput, 0);\n return;\n }\n double targetPositionRotations = angle * Const.kArmDeg2Talon4096Unit * Const.kArmGearRatioArm2Encoder;\n System.out.println(\"setting PID setpoint \" + targetPositionRotations);\n armMotor.set(ControlMode.Position, targetPositionRotations);\n }",
"public void adjustShooterAngleManual() {\n\n // If the driver pushes the Square Button on the PS4 Controller,\n // set the worm drive motors to go backwards (lower it).\n if (PS4.getRawButton(PS4_X_BUTTON) == true) {\n\n wormDriveMotors.set(-0.2);\n\n // If the driver pushes the Triangle Button on the PS4 Controller,\n // set the worm drive motors to go forwards (raise it up).\n } else if (PS4.getRawButton(PS4_SQUARE_BUTTON) == true) {\n\n wormDriveMotors.set(0.4);\n }\n\n // If the driver is an idiot and is pressing BOTH the Square Button AND the\n // Triangle Button at the same time, OR (||) if the driver is pushing neither\n // button, set the motor speed to 0.\n else if (((PS4.getRawButton(PS4_X_BUTTON) == true) && (PS4.getRawButton(PS4_SQUARE_BUTTON) == true))\n || ((PS4.getRawButton(PS4_X_BUTTON) == false) && (PS4.getRawButton(PS4_SQUARE_BUTTON) == false))) {\n\n wormDriveMotors.set(0);\n }\n\n }"
] | [
"0.6560226",
"0.6526571",
"0.6473421",
"0.6321854",
"0.6106517",
"0.6100623",
"0.60983425",
"0.6065827",
"0.6011941",
"0.594916",
"0.58716124",
"0.58301735",
"0.58172464",
"0.5744212",
"0.5709656",
"0.570942",
"0.56789863",
"0.56694376",
"0.56259054",
"0.56231177",
"0.5620913",
"0.56200486",
"0.5604312",
"0.5603409",
"0.55768627",
"0.55737215",
"0.5551971",
"0.55439085",
"0.5540077",
"0.5527851",
"0.55162376",
"0.55050504",
"0.5504698",
"0.5502629",
"0.5495682",
"0.54895973",
"0.548467",
"0.5484286",
"0.54649156",
"0.54634047",
"0.5445436",
"0.5444383",
"0.5405875",
"0.5404074",
"0.5398069",
"0.53869087",
"0.5383306",
"0.5381746",
"0.5376986",
"0.5352594",
"0.5349228",
"0.53478056",
"0.5347741",
"0.5347118",
"0.5345209",
"0.53348154",
"0.5326052",
"0.532287",
"0.53060746",
"0.53030723",
"0.5291489",
"0.5291489",
"0.528697",
"0.5283597",
"0.5282368",
"0.52456963",
"0.52386487",
"0.523445",
"0.5233419",
"0.5230178",
"0.5227209",
"0.5226384",
"0.5220519",
"0.5217008",
"0.5217008",
"0.5206378",
"0.51888144",
"0.5187405",
"0.5187039",
"0.51820576",
"0.5179331",
"0.51754045",
"0.5171544",
"0.5169651",
"0.5167931",
"0.5167931",
"0.5167658",
"0.5164174",
"0.5162644",
"0.51593804",
"0.5158205",
"0.51540554",
"0.51507455",
"0.5144512",
"0.5143354",
"0.5141719",
"0.51381123",
"0.5137186",
"0.5135585",
"0.5132046"
] | 0.56643075 | 18 |
This variable stores whether this building can be build on the current position | public void setCanBuild(boolean canBuild) {
this.canBuild = canBuild;
notifyViews();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isBuildable() {\r\n return buildable;\r\n }",
"boolean hasBuild();",
"@java.lang.Override\n public boolean hasBuild() {\n return instance.hasBuild();\n }",
"public boolean canBuild(int numToBuild) \n\t{\n\t\t return (numBuildings+numToBuild) <= MAX_NUM_UNITS;\n\t}",
"public boolean airportIsBuilt() {\n\t\tif(projectsAvailable.isEmpty() && projectsActive.isEmpty()) {\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}",
"public boolean wasBuilt() {\n \t\treturn triggerForLastBuild != -1;\n \t}",
"public boolean isRebuildEnabled() {\n if (!run.hasPermission(Item.BUILD)) {\n return false;\n }\n if (!run.getParent().isBuildable()) {\n return false;\n }\n\n return true;\n }",
"public boolean canBuildNextStage() {\r\n\t\tSystem.out.print(\"Checking if \" + stages[stagesCompleted]\r\n\t\t\t\t+ \" can be built:\");\r\n\t\tSimpleResList costSRL = SimpleResList\r\n\t\t\t\t.buildCostList(stages[stagesCompleted]);\r\n\t\tSystem.out\r\n\t\t\t\t.println((canBuildStage(stages[stagesCompleted], costSRL) ? \" true \"\r\n\t\t\t\t\t\t: \" false \"));\r\n\t\t// TODO needs code to see if there is enough money to buy the goods from\r\n\t\t// the neighbors(if they have the goods).....look buildCommandOptions\r\n\t\treturn canBuildStage(stages[stagesCompleted], costSRL); // this is only\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// checking to\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// see if this\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// board can\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// afford it\r\n\t}",
"public boolean isBuilt()\n {\n return (dbMap != null);\n }",
"public boolean isBuilt()\n {\n return (dbMap != null);\n }",
"public boolean isBuilt()\r\n {\r\n return (dbMap != null);\r\n }",
"private boolean isBuilt() {\n\t\t\tif (name == null) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tfor (WeaponFlavor flavor: WeaponFlavor.values()) {\n\t\t\t\tif (flavors.get(flavor) == null) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn true;\n\t\t}",
"private void isAbleToBuild() throws RemoteException {\n int gebouwdeGebouwen = speler.getGebouwdeGebouwen();\n int bouwLimiet = speler.getKarakter().getBouwLimiet();\n if (gebouwdeGebouwen >= bouwLimiet) {\n bouwbutton.setDisable(true); // Disable button\n }\n }",
"public boolean isOver() {\n return this.treeNode.getBuilding().isFinished();\n }",
"@Override\n protected Boolean isValidBuild() {\n return frontendFieldToBackendField.entrySet().stream().allMatch(entry -> {\n return (entry.getValue().getWorker() == null && !entry.getValue().getHasDome()) &&\n ((entry.getValue().getBlocks() == entry.getKey().getBlocks() - 1) && entry.getKey().getBlocks() <= 3 && !entry.getKey().getHasDome() ||\n (entry.getValue().getBlocks() <= 3 && entry.getKey().getHasDome() == true));\n });\n }",
"private boolean buildStreetIsAllowed() {\r\n\t\tif (clickedRoad.getEnd() == lastSettlementNode\r\n\t\t\t\t|| clickedRoad.getStart() == lastSettlementNode) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"public boolean canDoBuildInitialRoad(){\n\t\t // If the player already has two roads on the board then he has already placed the initial roads\n\t\t if(playerPieces.getNumberOfRoads() < 14){\n\t\t\t return false;\n\t\t }\n\t\t return true;\n\t }",
"@Override\n\tpublic boolean isWorking(Role role, RoleBuild build) {\n\t\treturn false;\n\t}",
"public boolean someLegalPos() {\n return !legalPos.isEmpty();\n }",
"boolean canBuildDome(Tile t);",
"public boolean canBuild(Vertex vertex, int type) {\n \t\tif (type == Vertex.TOWN && towns >= MAX_TOWNS)\n \t\t\treturn false;\n \t\telse if (type == Vertex.CITY && cities >= MAX_CITIES)\n \t\t\treturn false;\n \n \t\treturn vertex.canBuild(this, type, board.isSetupPhase());\n \t}",
"public boolean buildBuilding(String buildingType) {\n\t\tString type = buildingType.toLowerCase();\n\t\tthis.gc.placeBuilding(type);\n\n\t\tboolean placementSuccesfull = this.gc.isPlacementSuccesfull();\n\n\t\treturn placementSuccesfull;\n\n\t}",
"public boolean canBuild(Location location, Player player) {\n if (!location.getWorld().getEnvironment().equals(Environment.NORMAL)) {\n // If theyre not in the overworld, they cant build\n return false;\n } else if (landIsClaimed(location)) {\n if(isOwner(location,player)) {\n return true;\n } else if(landPermissionCode(location).equals(\"p\")) {\n return true;\n } else if(landPermissionCode(location).equals(\"c\")) {\n String owner_uuid=REDIS.get(\"chunk\" + location.getChunk().getX() + \",\" + location.getChunk().getZ() + \"owner\");\n String owner_clan=REDIS.get(\"clan:\"+owner_uuid);\n String player_clan=REDIS.get(\"clan:\"+player.getUniqueId().toString());\n if(owner_clan.equals(player_clan)) {\n return true;\n } else {\n return false;\n }\n } else {\n return false;\n }\n } else {\n return true;\n }\n }",
"public boolean checkBuildings(){\n\t\tfor(Structure building : this.buildings){\n\t\t\tif(!building.isDestroyed()){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public boolean canWalk() {\n\t\treturn rangeBottomLeft != null && !rangeBottomLeft.equals(location)\n\t\t\t\t&& rangeTopRight != null && !rangeTopRight.equals(location);\n\t}",
"public static boolean isFinishedCity()\r\n {\r\n try\r\n {\r\n Building b = astApp.getBuildings().get( astApp.getBuildings().size() - 1 );\r\n \r\n if( b.getBuilding().getXLocation() + b.getBuilding().getWidth() >= 700 )\r\n {\r\n return true;\r\n }\r\n else\r\n {\r\n return false;\r\n }\r\n }\r\n catch( ArrayIndexOutOfBoundsException e )\r\n {\r\n return false;\r\n }\r\n }",
"public boolean increaseBuildings() {\r\n\t\tif ((this.buildings + 1) <= TOTAL_BUILDINGS) {\r\n\t\t\tthis.buildings = this.buildings + 1;\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"public boolean canBuild(Player player, Location location) {\n\t\tif (mayor.equals(player.getUniqueId()) || councils.containsKey(player.getUniqueId())) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\tPlot plot = getPlotHere(location);\n\t\t\treturn plot != null && plot.canBuild(player, location);\n\t\t}\n\t}",
"public boolean canBuild(Player player) {\n\t\treturn canBuild(player.getUsername());\n\t}",
"@Override\n\t\tprotected boolean condition() {\n\t\t\tWhichSide whichSide = VisionUtil.getPositionOfGearTarget();\n\t\t\tSystem.err.println(\"Position of gear target: \"+whichSide);\n\t\t\tif (whichSide == WhichSide.RIGHT)\n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}",
"private boolean isCanBuildRoad(Rectangle newRoad) {\n\t\tfor (Node otherRoad : roads) {\n\t\t\tif (newRoad.getBoundsInParent().intersects(otherRoad.getBoundsInParent())) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"@java.lang.Override\n public boolean hasBuild() {\n return ((bitField0_ & 0x00000004) != 0);\n }",
"public boolean inGoalRegion() {\n return position >= GOAL_POSITION;\n }",
"protected boolean canTriggerWalking()\n {\n return false;\n }",
"private static boolean canMove() {\n return GameManager.getCurrentTurn();\r\n }",
"public boolean canMove()\n {\n return canMove;\n }",
"public boolean canMove() {\n return (Math.abs(getDist())>=50);\n }",
"public Boolean checkIfValidBuild(){\r\n int buildValue = 0;\r\n for (Card card: userChosenCards){\r\n buildValue += card.getNumValue();\r\n }\r\n\r\n buildValue += card.getNumValue();\r\n\r\n switch (option){\r\n case 1:\r\n if(userChosenCards.size() == 0){\r\n Toast.makeText(ChooseTableCardActivity.this,\r\n \"Invalid Build - Cannot create a build with just one card\",\r\n Toast.LENGTH_LONG).show();\r\n return false;\r\n }\r\n\r\n return player.checkBuildValueInHand(player.getPlayerHandVec(), buildValue);\r\n case 2:\r\n if (buildValue == round.getBuilds().get(player.getId()).getNumValue()){\r\n return true;\r\n }\r\n return false;\r\n }\r\n return false;\r\n }",
"private boolean canSelectCurWorldType() {\n WorldType worldtype = WorldType.WORLD_TYPES[this.selectedIndex];\n if (worldtype != null && worldtype.canBeCreated()) {\n return worldtype == WorldType.DEBUG_ALL_BLOCK_STATES ? hasShiftDown() : true;\n } else {\n return false;\n }\n }",
"boolean canBuildBlock(Tile t);",
"public boolean isUseable()\n {\n if (state == 0)\n {\n return true;\n }\n return false;\n }",
"public boolean isPlaceable() {\n\t\tlong now = Calendar.getInstance().getTimeInMillis();\t\t\n\t\treturn now - createTime >= placeableThreshold && \n\t\t\t\tnow - focusTime >= placeableThreshold;\n\t}",
"public boolean isWalkable() {\r\n if (opened != null) {\r\n if (opened.getId() == 389) {\r\n return false;\r\n }\r\n if (opened.getDefinition().getContext() != null) {\r\n if (opened.getDefinition().getContext().isWalkable()) {\r\n return true;\r\n }\r\n }\r\n }\r\n return true;\r\n }",
"public boolean isAutomaticBuild() {\n return !needsGoodsToBuild() && getUpgradesFrom() == null;\n }",
"boolean goalState() {\n\t\treturn (numbersLeft == 0);\n\t}",
"public boolean isCompiled() {\n return state == State.COMPILED || state == State.CHECKED\n || state == State.GRAVEYARD;\n }",
"protected boolean canTriggerWalking() {\n/* 140 */ return false;\n/* */ }",
"public synchronized boolean isInPosition(){\r\n\t\tSystem.out.println(\"wheel: \" + flywheel.isFlywheelAtSpeed() + \r\n\t\t\t\t\" hood: \" + hood.isInPosition() + \r\n\t\t\t\t\" turret: \" + turret.isInPosition() + \r\n\t\t\t\t\" kicker: \" + kicker.isInPosition());\r\n\t\treturn flywheel.isFlywheelAtSpeed() && \r\n\t\t\t\thood.isInPosition() && \r\n\t\t\t\tturret.isInPosition() && \r\n\t\t\t\tkicker.isInPosition();\r\n\t}",
"public final boolean inUse()\n{\n\tif (_buildTime > 0)\n\t{\n\t\treturn false;\n\t}\n\treturn (_base.getAvailableQuarters() - _rules.getPersonnel() < _base.getUsedQuarters() ||\n\t\t\t_base.getAvailableStores() - _rules.getStorage() < _base.getUsedStores() ||\n\t\t\t_base.getAvailableLaboratories() - _rules.getLaboratories() < _base.getUsedLaboratories() ||\n\t\t\t_base.getAvailableWorkshops() - _rules.getWorkshops() < _base.getUsedWorkshops() ||\n\t\t\t_base.getAvailableHangars() - _rules.getCrafts() < _base.getUsedHangars());\n}",
"public void ativarBuild() {\n this.build = true;\n }",
"public boolean isSolvable() {\n return finalMove != null;\n }",
"private boolean isMove() {\n return this.getMoves().size() != 0;\n }",
"private void isValidBuild(List<ICard> build) {\n // count the number of free open piles\n int numFreeOpen = 0;\n for (IPile<ICard> pile : this.open) {\n if (pile.getPile().isEmpty()) {\n numFreeOpen++;\n }\n }\n // count the number of empty cascade piles\n int numFreeCascade = 0;\n for (IPile<ICard> pile : this.cascade) {\n if (pile.getPile().isEmpty()) {\n numFreeCascade++;\n }\n }\n // check that there are enough open intermediate slots\n if (build.size() > ((numFreeOpen + 1) * (int) Math.pow(2, numFreeCascade))) {\n throw new IllegalArgumentException(\"Build is invalid\");\n }\n }",
"public boolean canBuild(Edge edge) {\n \t\tif (edge == null || roads.size() >= MAX_ROADS)\n \t\t\treturn false;\n \n \t\tif (board.isSetupPhase()) {\n \t\t\t// check if the edge is adjacent to the last town built\n \t\t\tif (lastTown != edge.getVertex1() && lastTown != edge.getVertex2())\n \t\t\t\treturn false;\n \t\t}\n \n \t\treturn edge.canBuild(this);\n \t}",
"public void setBuildable(boolean b) {\r\n buildable = b;\r\n }",
"public boolean requiresGeometryRebuild()\r\n {\r\n return myRequiresGeometryRebuild;\r\n }",
"public boolean isWalkable() {\n return type != CellType.WALL && isInBoundaries();\n }",
"private boolean canMove() {\n return !(bestMove[0].getX() == bestMove[1].getX() && bestMove[0].getY() == bestMove[1].getY());\n }",
"public boolean affordRoad() {\n \t\treturn (FREE_BUILD || roads.size() < MAX_ROADS\n \t\t\t\t&& getResources(Type.BRICK) >= 1\n \t\t\t\t&& getResources(Type.LUMBER) >= 1);\n \t}",
"boolean isPossible() {\n return (sideOne + sideTwo > sideThree) && (sideTwo + sideThree > sideOne) && (sideThree + sideOne > sideTwo);\n }",
"public boolean canMove() {\n\n\tArrayList<Location> moveLocs = getValid(getLocation());\n\n\tif (isEnd == true) {\n\t return false;\n\t} \n\tif (!moveLocs.isEmpty()) {\n\t \n\t randomSelect(moveLocs);\n\t // selectMoveLocation(moveLocs);\n\t return true;\n\n\t} else {\n\t return false;\n\t}\n }",
"public boolean isMoveLegal() {\n if (!getGame().getBoard().contains(getFinalCoords())) {\n return false;\n }\n\n // for aero units move must use up all their velocity\n if (getEntity() instanceof Aero) {\n Aero a = (Aero) getEntity();\n if (getLastStep() == null) {\n if ((a.getCurrentVelocity() > 0) && !getGame().useVectorMove()) {\n return false;\n }\n } else {\n if ((getLastStep().getVelocityLeft() > 0) && !getGame().useVectorMove()\n && !(getLastStep().getType() == MovePath.MoveStepType.FLEE\n || getLastStep().getType() == MovePath.MoveStepType.EJECT)) {\n return false;\n }\n }\n }\n\n if (getLastStep() == null) {\n return true;\n }\n\n if (getLastStep().getType() == MoveStepType.CHARGE) {\n return getSecondLastStep().isLegal();\n }\n if (getLastStep().getType() == MoveStepType.RAM) {\n return getSecondLastStep().isLegal();\n }\n return getLastStep().isLegal();\n }",
"public boolean canMove() {\n\t\tArrayList<Location> loc = getValid(getLocation());\n\t\tif (loc.isEmpty()) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\tpath.add(getLocation());\n\t\t\tif (loc.size() >= 2) {\n\t\t\t\tcrossLocation.push(path);\n\t\t\t\tpath = new ArrayList<Location>();\n\t\t\t\tnext = betterDir(loc);\n\t\t\t}\n\t\t\tnext = loc.get(0);\n\t\t}\n\t\treturn true;\n\t}",
"public boolean compiling()\n {\n return this.compiling.get();\n }",
"protected boolean isFinished() {\n \tif (moving) return Robot.armPiston.getMajor() != PistonPositions.Moving; /* && Robot.armPiston.getMinor() != PistonPositions.Moving; */\n \treturn true;\n }",
"public boolean canMove() {\r\n return (state == State.VULNERABLE || state == State.INVULNERABLE);\r\n\r\n }",
"private boolean canAddSupport() {\n\n return uiStateManager.getState().equals(GameUIState.WAVE_IN_PROGRESS)\n || uiStateManager.getState().equals(GameUIState.STANDBY);\n }",
"private boolean inGameInvariant(){\n if (owner != null && troops >= 1)\n return true;\n else\n throw new IllegalStateException(\"A Territory is left without a Master or Troops\");\n }",
"public boolean getCanSpawnHere()\n {\n return this.isValidLightLevel() && super.getCanSpawnHere();\n }",
"public boolean onGround() {\n return getLocation().getY() <= 0 || (interactingWithY != null && interactingWithY.getLocation().getY() + interactingWithY.size.height <= getLocation().getY());\n }",
"private ArrayList<Location> canMoveInit() {\n if (last == null) {\n ArrayList<Location> firstList = new ArrayList<>();\n firstList.add(getLocation());\n firstList.add(null);\n crossLocation.push(firstList);\n }\n if (crossLocation.empty() || isEnd) {\n return null;\n }\n Grid gr = getGrid();\n if (gr == null) {\n return null;\n }\n last = getLocation();\n return getValid(getLocation());\n }",
"public boolean checkRep() {\n return location.x() >= 0 && location.x() < board.getWidth() && \n location.y() >= 0 && location.y() < board.getHeight(); \n }",
"protected boolean isFinished() {\n \tif(Robot.oi.btnIdle.get()) {\n \t\treturn CommandUtils.stateChange(this, new Idle());\n \t}\n\n \tif( Robot.oi.btnShoot.get()) {\n \t\treturn CommandUtils.stateChange(this, new Shooting()); \n \t}\n \t\n \tif(Robot.oi.btnUnjam.get()){\n \t\treturn CommandUtils.stateChange(this, new Unjam());\n \t}\n return false;\n }",
"public boolean hasPosition() {\n return positionBuilder_ != null || position_ != null;\n }",
"public boolean hasPosition() {\n return positionBuilder_ != null || position_ != null;\n }",
"protected final boolean buildMoveDataSpace(ChessSpace origin, ChessSpace toBuild){\n\t\tif(toBuild == null) return false;\n\t\taddSpaceDependency(toBuild);\n\t\t\t\n\t\tif(toBuild.getOccupant() == null){\n\t\t\taddCommandSequence( toBuild, origin, toBuild);\n\t\t\treturn true;\n\t\t}\n\t\telse if( toBuild.getOccupant().getPlayer() != owner.getPlayer()){\n\t\t\taddCommandSequence( toBuild, toBuild, null, origin, toBuild);\n\t\t\treturn false;\n\t\t}\n\t\treturn false;\n\t}",
"public boolean canMove() {\n\n if (workers.size() == 0) return true;\n\n return workerCanMove(0) || workerCanMove(1);\n }",
"public final boolean canUse(){\n\t\tmaintain();\n\t\t//check if grown if not try to grow\n\t\tif(grown){\t\n\t\t\tif(host.getStrength()>USE_COST){\n\t\t\t\thost.expend(USE_COST);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse{\n\t\t\t\thost.expend(host.getStrength());\n\t\t\t}\n\t\t}\n\t\telse{\t\t\t\n\t\t\tcanGrow(host, this);\n\t\t}\t\n\t\treturn false;\n\t}",
"public boolean isSolvable()\n {\n return moves() >= 0;\n }",
"public boolean isOnGround() {\n return this.sim_pos.getY() <= 2;\n }",
"public boolean isSetPos() {\n return this.pos != null;\n }",
"public boolean isSetPos() {\n return this.pos != null;\n }",
"public boolean affordCard() {\n \t\treturn (FREE_BUILD || getResources(Type.WOOL) >= 1\n \t\t\t\t&& getResources(Type.GRAIN) >= 1 && getResources(Type.ORE) >= 1);\n \t}",
"public boolean isSet() {\n return !this.stack.isEmpty();\n }",
"protected boolean isFinished() {\n\t\treturn Robot.elevator.isInPosition(newPosition, direction);\n\t}",
"public boolean canFly() {\n\t\treturn !isEgg() && !isHatchling();\n\t}",
"public boolean isSolvable() {\n return goal != null;\n }",
"protected boolean isFinished() {\n \n \tif(Math.abs(RobotMap.navx.getAngle() - this.desiredAngle) <=2) {\n \n \t\treturn true;\n \t}\n return false;\n }",
"public Boolean isCurrentGeneration() {\n return this.currentGeneration;\n }",
"private boolean isComplete() {\n for (boolean b : bitfield) {\n if (!b) {\n return false;\n }\n }\n return true;\n }",
"boolean hasTargetPos();",
"public boolean perdu() {\r\n return this.robots.isEmpty();\r\n }",
"public boolean hasRoom() {\n return fieldSetFlags()[3];\n }",
"public boolean canBeUsed(){\n\t\treturn !(this.isUsed);\n\t}",
"public boolean isFull() {\n return this.chromosomes.size() >= Defines.popSize;\n }",
"public boolean isSolvable() {\n return moves != -1;\n }",
"protected boolean isFinished() {\n\t\tboolean beyondTarget = Robot.wrist.getCurrentPosition() > safePosition;\n\t\treturn isSafe || beyondTarget;\n\t}",
"public boolean isInCheck() {\n\t\treturn false;\n\t}",
"public boolean isValid() {\n\t\treturn (x >= 0 && x < Board.SIZE && y >= 0 && y < Board.SIZE);\n\t}",
"boolean safeToRun() {\n return game.i != null;\n }"
] | [
"0.73912257",
"0.71315604",
"0.703565",
"0.69690627",
"0.69025624",
"0.6811552",
"0.6780695",
"0.67769426",
"0.66552716",
"0.66552716",
"0.66310394",
"0.6569866",
"0.6488253",
"0.64794403",
"0.64369166",
"0.6404345",
"0.6390609",
"0.63678867",
"0.63025683",
"0.6300916",
"0.6295788",
"0.62754595",
"0.62584347",
"0.6224953",
"0.62219536",
"0.6202548",
"0.6198765",
"0.6185238",
"0.6181861",
"0.6173334",
"0.61535543",
"0.6151569",
"0.6131557",
"0.61234766",
"0.6121163",
"0.61166716",
"0.6108626",
"0.61061025",
"0.60910374",
"0.60744154",
"0.60731614",
"0.6060446",
"0.6047486",
"0.60414785",
"0.60396254",
"0.6034209",
"0.60333425",
"0.60315305",
"0.6016035",
"0.5987325",
"0.5986522",
"0.5985883",
"0.59826714",
"0.5973927",
"0.5965568",
"0.59651667",
"0.594801",
"0.59460694",
"0.59401965",
"0.5936824",
"0.59365267",
"0.59327656",
"0.59203637",
"0.5916875",
"0.5900438",
"0.5899272",
"0.58971816",
"0.58891207",
"0.58713776",
"0.586872",
"0.58635944",
"0.58387035",
"0.58354133",
"0.5833341",
"0.5833341",
"0.5809884",
"0.58064497",
"0.5806158",
"0.5806135",
"0.5792674",
"0.57912993",
"0.57912993",
"0.5784395",
"0.57775444",
"0.57718146",
"0.576309",
"0.57627213",
"0.57608247",
"0.57601476",
"0.5754575",
"0.57529765",
"0.5745145",
"0.5741072",
"0.57376",
"0.57373345",
"0.57369006",
"0.57353395",
"0.57337976",
"0.57325053",
"0.5730771"
] | 0.5949605 | 56 |
Is the bluePrint active? | public boolean isActive() {
return active;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean hasActive();",
"public boolean getActive();",
"public boolean getActive();",
"public boolean isEnabledPrint() {\n return enabledPrint;\n }",
"public boolean isActive(){\r\n\t\treturn active_;\r\n\t}",
"public boolean isFrameActive()\n {\n return isActive();\n }",
"public boolean hasActive() {\n return active_ != null;\n }",
"public boolean active(){\r\n\t\treturn active;\r\n\t}",
"boolean isActive();",
"boolean isActive();",
"boolean isActive();",
"public boolean checkActive() {\n\t\treturn active;\n\t}",
"public boolean isActivated()\n {\n return this.activated;\n }",
"public boolean isActive() { return true; }",
"public boolean isActive()\r\n\t{\r\n\t\treturn active;\r\n\t}",
"public boolean isActive() {\n\t\treturn active;\n\t}",
"public boolean isActive() {\r\n\t\treturn active;\r\n\t}",
"public boolean isActive(){\n\t\treturn active;\n\t}",
"public boolean isActive();",
"public boolean isActive();",
"public boolean isActive();",
"public boolean isActive();",
"public boolean isActive();",
"public boolean isActive();",
"public boolean isActive();",
"public boolean isActive();",
"public boolean isActive();",
"public boolean isActive();",
"public boolean isActive();",
"public boolean isActive();",
"public boolean isActive();",
"public boolean isActive();",
"public boolean isActive();",
"public boolean getActive()\n {\n return this.active;\n }",
"public boolean isActive( ) {\n\t\treturn active;\n\t}",
"public boolean isBlueReady() {\n if (FieldAndRobots.getInstance().isAllianceReady(FieldAndRobots.BLUE)) {\n blueSideReady.setBackground(READY);\n return true;\n } else {\n blueSideReady.setBackground(NOT_READY);\n return false;\n }\n }",
"public boolean isActive() {\n\t\treturn (active_status);\n\t}",
"public boolean isActive() {\r\n return active;\r\n }",
"public boolean isActive()\n {\n return active;\n }",
"public static boolean isActive() {\n\t\treturn activated;\n\t}",
"public boolean isBlue() {\r\n return this.blue;\r\n }",
"public boolean isActive() {\r\n return active;\r\n }",
"public boolean isActive() {\r\n return active;\r\n }",
"boolean isDisplay();",
"boolean isDisplay();",
"public boolean isActive() \n {\n return this.active;\n }",
"public boolean isActive() {\n return this.active;\n }",
"@Override\n\tpublic Boolean isActve() {\n\t\treturn active;\n\t}",
"public boolean isTabActive() {\n return getElement(container + tabLink).getAttribute(\"class\").contains(\"active\");\n }",
"public boolean isActive() {\n return this.active;\n }",
"public boolean isActive() {\n return this.active;\n }",
"public boolean isActivated() {\n\t\t\treturn isActivated;\n\t\t}",
"public boolean isGraphActive()\n { \n return false;\n }",
"public static boolean isActive(){\n return active;\n }",
"public Boolean isActive();",
"public boolean isActived() {\r\n\t\treturn isActived;\r\n\t}",
"public boolean isActiv(){\r\n\t\treturn this.activ;\r\n\t}",
"public boolean hasActive() {\n return activeBuilder_ != null || active_ != null;\n }",
"public boolean isBgpProcess() {\n\t\treturn (this.bgpConfig != null);\n\t}",
"public boolean isPreviewActive() {\n return previewActive;\n }",
"public final boolean isActive() {\n synchronized (this.lifecycleMonitor) {\n return this.active;\n }\n }",
"public boolean isActive() {\n\t\treturn activeProperty().getValue();\n\t}",
"public boolean isSprinting(){\n return this.sprint;\n }",
"public boolean isActive(){\n return active;\n }",
"public boolean isActive(){\n return active;\n }",
"public boolean isActivated()\n {\n return this.currentState;\n }",
"@Override\n public boolean isActive() {\n return active;\n }",
"public boolean isActive() {\n/* 134 */ if (this.stub != null) {\n/* 135 */ return this.stub.isActive();\n/* */ }\n/* 137 */ return false;\n/* */ }",
"public Boolean isActive() {\n return this.active;\n }",
"public Boolean getActive() {\n return this.active;\n }",
"public Boolean getActive() {\n return this.active;\n }",
"boolean hasActiveView();",
"public boolean isActive() {\n\t\treturn this.state;\n\t}",
"public boolean activate();",
"@Override\n public boolean isOpen(){\n boolean statement = isElementPresent(czDppButon); //TODO - zmena na pozdejsi stranku\n if(!statement){ DriverSettings.takeScreenshot(); }\n return statement;\n }",
"public Boolean getActive() {\n\t\treturn this.Active;\n\t}",
"public boolean isActive() {\n/* 165 */ DatagramChannel ch = javaChannel();\n/* 166 */ return (ch.isOpen() && ((((Boolean)this.config\n/* 167 */ .getOption(ChannelOption.DATAGRAM_CHANNEL_ACTIVE_ON_REGISTRATION)).booleanValue() && isRegistered()) || ch\n/* 168 */ .socket().isBound()));\n/* */ }",
"public boolean isLaunched();",
"static public boolean isLaunched()\n\t{\n\t\tif (g_currentLaunch == null)\n\t\t return false;\n\t\telse\n\t\t return true;\n\t}",
"int isActive();",
"public boolean isActive() {\n return (this == RecordStatusEnum.ACTIVE);\n }",
"public boolean isCAMPActivated(){\n\t\t\treturn cilia.isCAMPActivated();\n\t\t}",
"public boolean isActive() {\n return isActive;\n }",
"public boolean isActive() {\n return isActive;\n }",
"public boolean isActive() {\n return isActive;\n }",
"public boolean isActive()\r\n {\r\n return isActive;\r\n }",
"private boolean isCoupledGraphSelected() {\n\t\treturn (getMainTabbedPane().getSelectedComponent().getName().equals(\"Coupled\"));\n\t}",
"@Override\n public boolean isActive() {\n return true;\n }",
"public Boolean getActive()\r\n/* */ {\r\n/* 200 */ return this.active;\r\n/* */ }",
"private boolean isActive() {\n return isActive;\n }",
"public boolean activated() {\n\t\treturn activated;\n\t}",
"public boolean active(final WinRefEx hWnd) {\n\t\treturn (hWnd == null) ? false : active(TitleBuilder.byHandle(hWnd));\n\t}",
"private boolean isBundleActive(final Bundle b) {\n if ( BundleUtil.isBundleActive(b) ) {\n return true;\n }\n final BundleStartLevel startLevelService = b.adapt(BundleStartLevel.class);\n return startLevelService.isPersistentlyStarted();\n }",
"public java.lang.Boolean getActive() {\n return active;\n }",
"public final boolean isActive() {\n return isActive;\n }"
] | [
"0.65836096",
"0.6382896",
"0.6382896",
"0.6373124",
"0.6356522",
"0.6356187",
"0.6349405",
"0.6330735",
"0.6311162",
"0.6311162",
"0.6311162",
"0.6304955",
"0.62992215",
"0.62748635",
"0.6241449",
"0.6194044",
"0.6181482",
"0.6179669",
"0.61748266",
"0.61748266",
"0.61748266",
"0.61748266",
"0.61748266",
"0.61748266",
"0.61748266",
"0.61748266",
"0.61748266",
"0.61748266",
"0.61748266",
"0.61748266",
"0.61748266",
"0.61748266",
"0.61748266",
"0.6171063",
"0.61671615",
"0.6129978",
"0.6122947",
"0.61058766",
"0.61042106",
"0.6072887",
"0.60641354",
"0.60628957",
"0.60628957",
"0.60549587",
"0.60549587",
"0.6049831",
"0.60459775",
"0.6037456",
"0.6025573",
"0.6024162",
"0.6024162",
"0.6015669",
"0.60022694",
"0.5993833",
"0.5992027",
"0.5979972",
"0.5979129",
"0.59717715",
"0.595985",
"0.5959517",
"0.5953615",
"0.5948745",
"0.5943933",
"0.5939033",
"0.5939033",
"0.5928396",
"0.5908627",
"0.5900196",
"0.589405",
"0.5885879",
"0.5885879",
"0.5883181",
"0.5866218",
"0.5865122",
"0.58607167",
"0.58536196",
"0.58431536",
"0.5825505",
"0.58198243",
"0.5797222",
"0.5796591",
"0.5792376",
"0.57882136",
"0.57882136",
"0.57882136",
"0.5786591",
"0.5779949",
"0.5769709",
"0.5766053",
"0.57557446",
"0.57533085",
"0.5752309",
"0.5751394",
"0.5746422",
"0.5741747"
] | 0.60601217 | 48 |
When active, the bluePrintView should be showed | public void setActive(boolean active) {
this.active = active;
notifyViews();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void show() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void show() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void show() {\n\t\t\r\n\t}",
"@Override\n\tpublic void show() {\n\t\tsuper.show();\n\t\t\n\t}",
"@Override\r\n\tpublic void show() {\n\t\t\r\n\t\t\r\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\r\n\tpublic void show() {\n\t}",
"private static void previewBb() {\n try {\n populateBillboard();\n billboard.previewBillboard();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"@Override\r\n public void show()\r\n {\r\n\r\n }",
"@Override\r\n public void show()\r\n {\r\n\r\n }",
"public void activateBreakpointView() {\n \t\tif (!this.breakpointView.getActive()) {\n \t\t\tthis.breakpointView.getAddButton().addSelectionListener(this);\n \t\t\tthis.breakpointView.setActive(true);\n \t\t}\n \t}",
"@Override\n public void show() {\n }",
"@Override\n\tpublic void show() {\n\n\t}",
"@Override\n\tpublic void show() {\n\n\t}",
"@Override\n\tpublic void show() {\n\n\t}",
"@Override\n\tpublic void show() {\n\n\t}",
"@Override\n\tpublic void show() {\n\n\t}",
"@Override\n\tpublic void show() {\n\n\t}",
"@Override\n\tpublic void show() {\n\n\t}",
"@Override\n\tpublic void show() {\n\n\t}",
"@Override\n public void show() {\n \n }",
"@Override\n\tpublic void show() {\n\t}",
"@Override\n\tpublic void show() {\n\t}",
"@Override\n public void show() {\n\n }",
"@Override\n public void show() {\n\n }",
"@Override\r\n\tpublic void show() {\n\r\n\t}",
"@Override\r\n\tpublic void show() {\n\r\n\t}",
"@Override\n\tprotected void show() {\n\t\tsuper.show();\n\t\tSystem.out.println(\"BBBBBBBBBBBBBBBBBBB\");\n\t}",
"public void show() {\n visible=true;\n }",
"public void show() {\n\t\t// TODO Auto-generated method stub\n\n\t}",
"public void show() {\n super.show();\n }",
"@Override protected void startup() {\n BlaiseGraphicsTestFrameView view = new BlaiseGraphicsTestFrameView(this);\n canvas1 = view.canvas1;\n root1 = view.canvas1.getGraphicRoot();\n canvas1.setSelectionEnabled(true);\n show(view);\n }",
"private void showProposalDevelopment(){\r\n try{\r\n \r\n ProposalBaseWindow propFrame = null;\r\n if ( (propFrame = (ProposalBaseWindow)mdiForm.getFrame(\r\n CoeusGuiConstants.PROPOSAL_BASE_FRAME_TITLE))!= null ) {\r\n if( propFrame.isIcon() ){\r\n propFrame.setIcon(false);\r\n }\r\n propFrame.setSelected(true);\r\n return;\r\n }\r\n propFrame = new ProposalBaseWindow(mdiForm );\r\n propFrame.setVisible( true );\r\n }catch(Exception exception){\r\n CoeusOptionPane.showInfoDialog(exception.getMessage());\r\n }\r\n }",
"@Override\n public boolean isShown() {\n return super.isShown();\n }",
"public void display() {\r\n subAwardDlgWindow.setVisible(true);\r\n }",
"public void display() {\n startPreview();\n }",
"public void show() {\n\t\t// Useless if called in outside animation loop\n\t\tactive = true;\n\t}",
"public void routetopage() {\n this.setVisible(true);\n }",
"public Render setDebugPrint() {\r\n\t\t_print = true;\r\n\t\treturn this;\r\n\t}",
"public void display() {\r\n\t\tsetVisible(true);\r\n\t}",
"public void show(){\n developmentGroup.setVisible(true);\n }",
"@Override\n public boolean isActive() {\n return isShowing();\n }",
"public void setShowDisplaySlotPanel(boolean b) {\r\n\r\n }",
"@Override\n public boolean isVisible()\n {\n return true;\n }",
"@Override\n protected boolean isAppropriate() {\n return true; // always show\n }",
"@Override\n public void payeeDisplayVisible(boolean yes) {\n\t\n }",
"public void activate() {\n\n serviceTracker = new ServiceTracker<>(bundleContext, BlueprintContainer.class,\n new CustomBlueprintContainerServiceTrackerCustomizer());\n serviceTracker.open();\n\n CustomBlueprintListener blueprintListener = new CustomBlueprintListener();\n listenerSR = bundleContext.registerService(BlueprintListener.class, blueprintListener,\n new Hashtable<String, Object>());\n }",
"void showCustomizer();",
"void init() {\n setVisible(true);\n\n }",
"@Override\n public void run() {\n pg2.setVisibility(View.VISIBLE);\n }",
"public void show() {\n hidden = false;\n }",
"@Override\r\n\tpublic void show() {\n\t\tSystem.out.println(\"Showing...\");\r\n\t}",
"public void display() {\n\t\tthis.setVisible(true);\n\t}",
"private void actionPrint() {\n // get PrinterJob\n PrinterJob job = PrinterJob.getPrinterJob();\n MyPrintable printable = new MyPrintable(job.defaultPage(), layoutPanel);\n\n // setup Printable, Pageable\n job.setPrintable(printable);\n job.setPageable(printable);\n\n // display print dialog and print\n if (job.printDialog()) {\n try {\n job.print();\n } catch (PrinterException e) {\n e.printStackTrace();\n }\n }\n }",
"public void show() {\n\t\thidden = false;\n\t}",
"public void show() {\n\t\tif (ENABLED) {\n\t\t\tframe.setVisible(true);\n\t\t}\n\t}",
"public void viewFrame(boolean b){\n\t\tmenuFrame.setVisible(b);\n\t}",
"@Override\n public void run() {\n printfManager.openPrinter(alreadyBlueList.get(args));\n }",
"public void begin() {\n\t\tview.setVisible(true);\n\t}",
"public boolean shown();",
"@Override\n\tpublic void show4() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tif(!usbfactory.is_connecusb())\n\t\t\t\t{\t\t\t\t\t\n\t\t\t\t\tprobe();\t\t\t\t\n\t\t\t\t}else {\n\t\t\t\t\tToast_Util.ToastString(getApplicationContext(),\"printer_connected\");//打印机已连接 printer connected\n\t\t\t\t}\n\n\n\t\t\t}",
"public static void showPrintPreview(final AppD app) {\n\t\tThread runner = new Thread(() -> {\n\t\t\ttry {\n\t\t\t\tapp.setWaitCursor();\n\t\t\t\tGuiManagerD gui = (GuiManagerD) app.getGuiManager();\n\t\t\t\tDockManagerD dm = gui.getLayout().getDockManager();\n\t\t\t\tint viewId = (dm.getFocusedPanel() == null) ? -1\n\t\t\t\t\t\t: dm.getFocusedPanel().getViewId();\n\t\t\t\tPrintPreviewD pre = PrintPreviewD.get(app, viewId,\n\t\t\t\t\t\tPageFormat.LANDSCAPE);\n\n\t\t\t\tpre.setVisible(true);\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tLog.debug(\"Print preview not available\");\n\t\t\t} finally {\n\t\t\t\tapp.setDefaultCursor();\n\t\t\t}\n\t\t});\n\t\trunner.start();\n\t}",
"@Override\n\tpublic void shown() {\n\n\t}",
"@Override\n\tpublic void setDisplayShowCustomEnabled(boolean showCustom) {\n\t\t\n\t}",
"View getActiveView();",
"@Override\n\tpublic boolean isShowing() {\n\t\treturn false;\n\t}",
"public View() {\n initComponents();\n Paypal.setVisible(false);\n MasterCard.setVisible(false);\n Visa.setVisible(false);\n setLocationRelativeTo(null);\n setResizable(false);\n setDefaultCloseOperation(DISPOSE_ON_CLOSE);\n generarFacturaBoton.setVisible(false);\n }",
"private void print_da_page() {\n \t\tSystem.out.println(\"**** Hell yeah, print da page\");\n \t\t// des Assert ici pour verifier qq truc sur le local storage serait p-e\n \t\t// bien..\n \n \t\tsetInSlot(SLOT_OPTION_SELECION, cardSelectionOptionPresenter);\n \t\tcardSelectionOptionPresenter.init();\n \t\t\n \t\tsetInSlot(SLOT_BOARD, boardPresenter);\n \n \t\tcardDragController.registerDropController(cardDropPanel);\n \t\t\n \t\tsetStaticFirstComboView();\n \t\twriteInstancePanel();\n \t\tStorage_access.setCurrentProjectInstanceBddId(0);\n \t\t//Storage_access.setCurrentProjectInstance(Storage_access.getInstanceBddId(Storage_access.getCurrentProjectInstance()));\n \t\t\n \t\treDrowStatusCard();\n \t\t\n \t\tthis.boardPresenter.redrawBoard(0,0); //TODO n'enregistrerons nous pas la \"vue par default\"? ou la derniere ?\n \t\t\n \t\twriteCardWidgetsFirstTime();\n \t\t//getView().constructFlex(cardDragController);\n \t\n \t\t\n \t\t\n \t\t//CellDropControler dropController = new CellDropControler(simplePanel);\n \t //\tcardDragController.registerDropController(dropController);\n \n \t}",
"public BudgetSubAwardController() {\r\n setFunctionType(TypeConstants.DISPLAY_MODE);\r\n initComponents();\r\n registerComponents();\r\n }",
"public void setDisplayed(boolean show);",
"public boolean isEnabledPrint() {\n return enabledPrint;\n }",
"@Override\n\t\tpublic void displayB() {\n\t\t\tSystem.out.println(\"Display B class X\");\n\t\t}",
"public void start() {\n\t\t setVisible(true);\n\t}",
"public void actionPerformed(ActionEvent e){\n if (e.getSource() instanceof JButton) {\r\n PrinterJob printJob = PrinterJob.getPrinterJob();\r\n PageFormat pf = new PageFormat();\r\n pf.setOrientation(PageFormat.LANDSCAPE);\r\n printJob.setPrintable(_instance, pf);\r\n //if (printJob.printDialog()) {\r\n try {\r\n printJob.print();\r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n }\r\n //}\r\n }\r\n }",
"@Override\n public void onPrinterAvailable(int flag) {\n Logger.i(TAG, \"working till here printer available!\");\n\n if (flag == 2) {\n// btn_PrintBill.setEnabled(false);\n// btn_Reprint.setEnabled(false);\n SetPrinterAvailable(false);\n } else if (flag == 5) {\n// btn_PrintBill.setEnabled(true);\n// btn_Reprint.setEnabled(true);\n// feedPrinter();\n SetPrinterAvailable(true);\n } else if (flag == 0) {\n// btn_PrintBill.setEnabled(true);\n// btn_Reprint.setEnabled(true);\n SetPrinterAvailable(false);\n }\n }",
"@Override\r\n\tpublic void display() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void display() {\n\t\t\r\n\t}",
"@Override\n\t\t\t\tpublic void displayB() {\n\t\t\t\t\tSystem.out.println(\"DisplayB class Y\");\n\n\t\t\t\t}",
"private void renderView() {\r\n\t\tSystem.out.println(this.currentView.render());\r\n\t}",
"public void displayBankBranch() {\n\t\t if(getBankVisibility()) {\n\t\t\t setRenderBankBranch(true);\n\t\t }else{\n\t\t\tsetRenderBankBranch(false); \n\t\t }\n\t\t \n\t }",
"@Override\n\t\t\t\t\t\t\t\t\t\t\tprotected void onPreExecute() {\n\t\t\t\t\t\t\t\t\t\t\t\tsuper.onPreExecute();\n\t\t\t\t\t\t\t\t\t\t\t\tpd.show();\n\t\t\t\t\t\t\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\t\t\t\t\t\tprotected void onPreExecute() {\n\t\t\t\t\t\t\t\t\t\t\t\tsuper.onPreExecute();\n\t\t\t\t\t\t\t\t\t\t\t\tpd.show();\n\t\t\t\t\t\t\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\t\t\t\t\t\tprotected void onPreExecute() {\n\t\t\t\t\t\t\t\t\t\t\t\tsuper.onPreExecute();\n\t\t\t\t\t\t\t\t\t\t\t\tpd.show();\n\t\t\t\t\t\t\t\t\t\t\t}",
"public void onDisplay() {\n\n\t}",
"@Override\n public void display() {\n\n }",
"public void show() {\n isVisible = true;\n this.saveBorderColor(playerColor);\n this.setBorderColor(playerColor);\n }"
] | [
"0.5958157",
"0.5958157",
"0.5958157",
"0.5936266",
"0.5926612",
"0.58658403",
"0.58658403",
"0.58658403",
"0.58658403",
"0.58658403",
"0.58658403",
"0.58658403",
"0.58658403",
"0.58658403",
"0.58658403",
"0.58658403",
"0.58658403",
"0.58658403",
"0.58658403",
"0.58658403",
"0.586554",
"0.5846856",
"0.583582",
"0.583582",
"0.5825495",
"0.58169985",
"0.5811871",
"0.5811871",
"0.5811871",
"0.5811871",
"0.5811871",
"0.5811871",
"0.5811871",
"0.5811871",
"0.5805974",
"0.57972723",
"0.57972723",
"0.57944834",
"0.57944834",
"0.57766813",
"0.57766813",
"0.5771687",
"0.57637805",
"0.5752992",
"0.57318175",
"0.57189226",
"0.5673051",
"0.5643747",
"0.5640828",
"0.56406474",
"0.56114113",
"0.56064415",
"0.5604958",
"0.55893147",
"0.5576309",
"0.5561836",
"0.5549486",
"0.5527064",
"0.55204517",
"0.5519785",
"0.55092674",
"0.5503964",
"0.5492972",
"0.54896516",
"0.54733014",
"0.5462696",
"0.54585844",
"0.54538614",
"0.54457235",
"0.5434997",
"0.54190505",
"0.5418544",
"0.54152447",
"0.541239",
"0.5379196",
"0.53771156",
"0.53718",
"0.53624433",
"0.53623056",
"0.536127",
"0.5356076",
"0.534116",
"0.5337504",
"0.5332221",
"0.53310984",
"0.53297186",
"0.53247875",
"0.5323251",
"0.531409",
"0.53032804",
"0.53017783",
"0.53017783",
"0.5301368",
"0.52835995",
"0.52754766",
"0.5271963",
"0.5271963",
"0.5271963",
"0.5264162",
"0.52548873",
"0.52517235"
] | 0.0 | -1 |
Builders should create a Building on a given position | @FunctionalInterface
public interface Builder {
BuildingModel build(int x, int y, int angle, int floor);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Integer CreateBuilding(Building B) {\n\t\tif (BuildingContainer.size() == 0) {\n\t\t\tif ((TileID !=4)&(TileID != 3)){\n\t\t\t\tBuildingContainer.add(B);\n\t\t\t\tB.locate(xloc, yloc);\n\t\t\t\treturn 1; //Placement success\n\t\t\t} else {\n\t\t\t\treturn 0; //Tile is mountains or water\n\t\t\t}\n\t\t} else {\n\t\t\treturn 0; //Already a building here\n\t\t}\n\t}",
"public boolean buildBuilding(String buildingType) {\n\t\tString type = buildingType.toLowerCase();\n\t\tthis.gc.placeBuilding(type);\n\n\t\tboolean placementSuccesfull = this.gc.isPlacementSuccesfull();\n\n\t\treturn placementSuccesfull;\n\n\t}",
"@Test\n public void testBuild() {\n assertEquals(r1.build(new Position2D(21, 42), new Color(255, 0, 0),\n new Dimension2D(100, 20)), new Rectangle(100, 20, new Color(255, 0, 0),\n new Position2D(21, 42)));\n\n assertEquals(r1.build(new Position2D(-28, 0), new Color(255, 255, 255),\n new Dimension2D(4, 0)), new Rectangle(4, 0, new Color(255, 255, 255),\n new Position2D(-28, 0)));\n }",
"public boolean createBuild(Build build);",
"protected abstract Builder<T> valid();",
"@Override\n\tpublic void build() {\n\t\tif(this.getContainer().isEmpty()){\n\t\t\tthis.addBuilding(new Building(BuildingType.CABSTAND, 150));\n\t\t\tMonopolyTheGame.getInstance().getActivePlayer().decBalance(150);\n\t\t\tsetEnabler(false);\n\t\t\t//currentSquare.setRent(currentSquare.getRent()*2);\n\t\t}else {\n\t\t\tSystem.out.println(\"You cannot bould multiple cab stands on a cab company\");\n\t\t}\n\t\t\n\t}",
"Builder addLocationCreated(Place.Builder value);",
"@Test\r\n public void testBuildingPlaceOverlap(){\r\n BetterHelper h = new BetterHelper();\r\n LoopManiaWorld world = h.testWorld;\r\n \r\n world.loadCard(\"ZombiePitCard\");\r\n assertTrue(world.canPlaceBuilding(\"ZombiePitCard\", 0, 0));\r\n assertFalse(world.canPlaceBuilding(\"ZombiePitCard\", 1, 1));\r\n assertTrue(world.canPlaceBuilding(\"ZombiePitCard\", 0, 1));\r\n assertTrue(world.canPlaceBuilding(\"ZombiePitCard\", 1, 0));\r\n assertFalse(world.canPlaceBuilding(\"ZombiePitCard\", 5, 5));\r\n }",
"public void build(Cell[][] map, Action[][][] actions, int[] position ) {\n int[] destination=new int[2];\n TypeBlock typeBlock=null;\n for (int i = Math.max(0, position[0] - 1); (i <= Math.min(4, position[0] + 1)); i++) {\n for (int j = Math.max(0, position[1] - 1); j <= Math.min(4, position[1] + 1); j++) {\n if (!map[i][j].getBlock(map[i][j].getSize() - 1).getTypeBlock().equals(TypeBlock.WORKER)\n && !map[i][j].getBlock(map[i][j].getSize() - 1).getTypeBlock().equals(TypeBlock.DOME)) {\n switch (map[i][j].getBlock(map[i][j].getSize() - 1).getTypeBlock()) {\n case LEVEL1:\n typeBlock = TypeBlock.LEVEL2;\n destination[0] = i;\n destination[1] = j;\n ((Build) actions[i][j][1]).set(true, typeBlock, destination);\n break;\n case LEVEL2:\n typeBlock = TypeBlock.LEVEL3;\n destination[0] = i;\n destination[1] = j;\n ((Build) actions[i][j][1]).set(true, typeBlock, destination);\n break;\n case LEVEL3:\n typeBlock = TypeBlock.DOME;\n destination[0] = i;\n destination[1] = j;\n ((Build) actions[i][j][2]).set(true, typeBlock, destination);\n break;\n default:\n typeBlock = TypeBlock.LEVEL1;\n destination[0] = i;\n destination[1] = j;\n ((Build) actions[i][j][1]).set(true, typeBlock, destination);\n }\n }\n }\n\n }\n }",
"public Building() {\n\t}",
"public void constructEntity (EntityBuilder entityBuilder, Position position){\n entityBuilder.createEntity();\n entityBuilder.buildPosition(position);\n entityBuilder.buildName();\n entityBuilder.buildPosition();\n entityBuilder.buildContComp();\n entityBuilder.buildPhysComp(length, width);\n entityBuilder.buildGraphComp(length, width);\n }",
"public void buildProjector(int quantity){\r\n if (quantity != 0){\r\n eventRoomItems.addItem(itemFactory.constructProjector());\r\n }\r\n else{\r\n eventRoomItems.addItem(null);\r\n }\r\n }",
"@Override\n\t\t\tpublic void Execute()\n\t\t\t{\n\t\t\tSquare square = (Square) receiver;\n\t\t\t// The args for SpawnBuildingCommand are the X,Y coordinate for the Building used by the factory, \n\t\t\tIAsteroidGameFactory factory = GameBoard.Instance().GetFactory();\n\t\t\tSystem.out.println(\"Spawning Building at (\" + args[0] + \",\" + args[1] + \")\");\n\t\t\tsquare.Add(factory.MakeBuilding());\n\t\t\tGameBoard.Instance().IncrementBuildingCount();\n\t\t}",
"public StructureVillagePieces.Village buildComponent(StructureVillagePieces.PieceWeight parPieceWeight, StructureVillagePieces.Start parStart, List<StructureComponent> parPiecesList, Random parRand, int parMinX, int parMinY, int parMinZ, EnumFacing parFacing, int parType) {\n/* 50 */ System.out.println(\"TekHouse6 buildComponent() at \" + parMinX + \", \" + parMinY + \", \" + parMinZ);\n/* */ \n/* 52 */ StructureBoundingBox structureboundingbox = StructureBoundingBox.getComponentToAddBoundingBox(parMinX, parMinY, parMinZ, 0, 0, 0, 9, 7, 12, parFacing);\n/* 53 */ return (canVillageGoDeeper(structureboundingbox) && StructureComponent.findIntersecting(parPiecesList, structureboundingbox) == null) ? (StructureVillagePieces.Village)new TekHouse6(parStart, parType, parRand, structureboundingbox, parFacing) : null;\n/* */ }",
"public Entity build();",
"@Test\r\n\tpublic void createSuccess() {\r\n\t\tnew WeldJoint<Body>(b1, b2, new Vector2());\r\n\t}",
"Position createPosition();",
"abstract Object build();",
"private void initTestBuildingWithRoomsAndWorkplaces() {\n\t\tinfoBuilding = dataHelper.createPersistedBuilding(\"50.20\", \"Informatik\", new ArrayList<Property>());\n\t\troom1 = dataHelper.createPersistedRoom(\"Seminarraum\", \"-101\", -1, Arrays.asList(new Property(\"WLAN\")));\n\n\t\tworkplace1 = dataHelper.createPersistedWorkplace(\"WP1\",\n\t\t\t\tArrays.asList(new Property(\"LAN\"), new Property(\"Lampe\")));\n\t\tworkplace2 = dataHelper.createPersistedWorkplace(\"WP2\", Arrays.asList(new Property(\"LAN\")));\n\n\t\troom1.addContainedFacility(workplace1);\n\t\troom1.addContainedFacility(workplace2);\n\n\t\tinfoBuilding.addContainedFacility(room1);\n\t}",
"public void build() {\r\n // TODO\r\n }",
"Builder addIsPartOf(CreativeWork.Builder value);",
"void doPlaceBuilding() {\r\n\t\tint idx = buildingTable.getSelectedRow();\r\n\t\tif (idx >= 0) {\r\n\t\t\tidx = buildingTable.convertRowIndexToModel(idx);\r\n\t\t\tTileEntry te = buildingTableModel.rows.get(idx);\r\n\t\t\tif (renderer.selectedRectangle != null && renderer.selectedRectangle.width > 0) {\r\n\t\t\t\tUndoableMapEdit undo = new UndoableMapEdit(renderer.surface);\r\n\t\t\t\t\r\n\t\t\t\tRectangle clearRect = new Rectangle(renderer.selectedRectangle);\r\n\t\t\t\tclearRect.width = ((clearRect.width + te.tile.width) / (te.tile.width + 1)) * (te.tile.width + 1) + 1;\r\n\t\t\t\tclearRect.height = ((clearRect.height + te.tile.height) / (te.tile.height + 1)) * (te.tile.height + 1) + 1;\r\n\t\t\t\tdeleteEntitiesOf(renderer.surface.buildingmap, clearRect, true);\r\n\t\t\t\t\r\n\t\t\t\tfor (int x = renderer.selectedRectangle.x; x < renderer.selectedRectangle.x + renderer.selectedRectangle.width; x += te.tile.width + 1) {\r\n\t\t\t\t\tfor (int y = renderer.selectedRectangle.y; y > renderer.selectedRectangle.y - renderer.selectedRectangle.height; y -= te.tile.height + 1) {\r\n\t\t\t\t\t\tBuilding bld = new Building(te.buildingType, te.surface);\r\n\t\t\t\t\t\tbld.makeFullyBuilt();\r\n\t\t\t\t\t\tbld.location = Location.of(x + 1, y - 1);\r\n\t\t\t\t\t\trenderer.surface.buildings.add(bld);\r\n\t\t\t\t\t\tplaceTile(te.tile, bld.location.x, bld.location.y, SurfaceEntityType.BUILDING, bld);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tplaceRoads(te.surface);\r\n\t\t\t\tundo.setAfter();\r\n\t\t\t\taddUndo(undo);\r\n\t\t\t\trenderer.repaint();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void createDeckBuilding() {\n\t\tboolean stop = false;\n\t\twhile (this.deckBuilding.size() < 5 && stop == false) {\n\t\t\tCard cardBuilding;\n\t\t\tint number = random.nextInt(this.building.size() + this.machine.size());\n\t\t\tif (number < this.building.size()) {\n\t\t\t\tcardBuilding = pickOnThePioche(this.building);\n\t\t\t\tif (cardBuilding.getName().equals(\"Stop\")) {\n\t\t\t\t\tthis.deckBuilding.add((IBuilding) cardBuilding);\n\t\t\t\t\tstop = true;\n\t\t\t\t} else {\n\t\t\t\t\tthis.building.remove(cardBuilding);\n\t\t\t\t\tthis.deckBuilding.add((IBuilding) cardBuilding);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tcardBuilding = pickOnThePioche(this.machine);\n\t\t\t\tif (cardBuilding.getName().equals(\"Stop\")) {\n\t\t\t\t\tthis.deckBuilding.add((IBuilding) cardBuilding);\n\t\t\t\t\tstop = true;\n\t\t\t\t} else {\n\t\t\t\t\tthis.building.remove(cardBuilding);\n\t\t\t\t\tthis.deckBuilding.add((IBuilding) cardBuilding);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"@Test\n public void buildDomeTrue() {\n nextWorkerCell.setLevel(3);\n workerHephaestus.setCurrentWorkerCell(baseWorkerCell);\n workerHephaestus.build(nextWorkerCell);\n assertEquals(4, nextWorkerCell.getLevel());\n assertTrue(nextWorkerCell.getIsOccupied());\n }",
"private void createGWBuildings()\n\t{\n\t\t//Generate block 0 (50x50)\n\t\t//(7,7)-(57,57)\n\t\tmakeBlocker0();\n\n\t\t//Generate block 1 (50x50)\n\t\t//(64,7)-(114,57)\n\t\tmakeSEH();\n\t\tmakeFullBright();\n\t\tmakeKennedy();\n\t\tmakeMunson();\n\n\t\t//Generate block 2 (80x50)\n\t\t//(121,7)-(201,57)\n\t\tmakeAcademicCenter();\n\t\tmakeRomePhilips();\n\t\tmakeDistrict();\n\t\tmakeMarvin();\n\t\tmakeLafayette();\n\n\t\t//Generate block 3 (65x50)\n\t\t//(208,7)-(273,57)\n\t\tmake2000Penn();\n\t\tmakeSMPA();\n\t\tmakeBlocker3();\n\n\t\t//Generate block 4 (63x50)\n\t\t//(280,7)-(343,57)\n\t\tmakeBlocker4();\n\n\t\t//Generate block 5 (50x60)\n\t\t//(7,64)-(57,124)\n\t\tmakeAmsterdam();\n\t\tmakeHealWell();\n\t\tmakeBlocker5();\n\n\t\t//Generate block 6 (50x60)\n\t\t//(64,64)-(114,124)\n\t\tmakeTompkins();\n\t\tmakeMadison();\n\t\tmakeDuquesAndFunger();\n\n\t\t//Generate block 7 (80x60)\n\t\t//(121,64)-(201,124)\n\t\tmakeGelman();\n\t\tmakeLisner();\n\t\tmakeStaughton();\n\t\tmakeMonroe();\n\n\t\t//Generate block 8 (65x60)\n\t\t//(208,64)-(273,124)\n\t\tmakeCorcoran();\n\t\tmakeLawSchool();\n\t\tmakeLisnerHall();\n\t\tmakeTextileMuseum();\n\n\t\t//Generate block 9 (63x60)\n\t\t//(280,64)-(343,124)\n\t\tmakeBlocker9();\n\n\t\t//Generate block 10 (50x50)\n\t\t//(7,131)-(57,181)\n\t\tmakeShenkman();\n\t\tmakeBlocker10();\n\n\t\t//Generate block 11 (50x50)\n\t\t//(64,131)-(114,181)\n\t\tmakeTownHouses();\n\t\tmakeSmithCenter();\n\n\t\t//Generate block 12 (80x50)\n\t\t//(121,131)-(201,181)\n\t\tmakeSouthHall();\n\t\tmakeGuthridge();\n\t\tmakeBlocker12();\n\n\t\t//Generate block 13 (65x50)\n\t\t//(208,131)-(273,181)\n\t\tmakeBlocker13();\n\t\tmakeFSK();\n\t\tmakePatomac();\n\n\t\t//Generate block 14 (63x50)\n\t\t//(280,131)-(343,181)\n\t\tmakeBlocker14();\n\n\t\t//Generate block 15 (50x57)\n\t\t//(7,188)-(57,245)\n\t\tmakeBlocker15();\n\n\t\t//Generate block 16 (50x57)\n\t\t//(64,188)-(114,245)\n\t\tmakeIHouse();\n\t\tmakeBlocker16();\n\n\t\t//Generate block 17 (80x57)\n\t\t//(121,188)-(201,245)\n\t\tmakeBlocker17();\n\t\tmakeDakota();\n\n\t\t//Generate block 18 (65x57)\n\t\t//(208,188)-(273,245)\n\t\tmakeBlocker18();\n\n\t\t//Generate block 19 (63x57)\n\t\t//(280,188)-(343,245)\n\t\tmakeBlocker19();\n\t\tmakeElliot();\n\t\tmakeThurston();\n\t}",
"Builder addMainEntity(Thing.Builder value);",
"@Override\r\n\tpublic void buildRoad() {\n\t\t\r\n\t}",
"public void create(){\n\t\t//creating board to keep track of player postion with 1 or 0. 0 if not there 1 if they are there\n\t\tfor(int i = 0; i <this.position.length; i++){\n\t\t\tfor(int p = 0; p < this.position.length; p++){\n\t\t\t\tthis.position[i][p] = 0;//filling with zero\n\t\t\t}\n\t\t}//end of position making board\n\t\tthis.position[1][1] = 1;//putting player in this position\n\n\t\t//creating door in the rooms\n\t\tfor(int i = 0; i <this.Door.length; i++){\n\t\t\tfor(int p = 0; p < this.Door.length; p++){\n\t\t\t\tthis.Door[i][p] = 0;//filling with zero\n\t\t\t}\n\t\t}//end of Door making board\n\t\tthis.Door[9][13] = 1;//puts the door here \n\n\t\t//makes board that tells if item is there\n\t\tfor(int i = 0; i <this.Items.length; i++){\n\t\t\tfor(int p = 0; p < this.Items.length; p++){\n\t\t\t\tthis.Items[i][p] = null;//filling with null\n\t\t\t}\n\t\t}//end of filling board that has items\n\n\t\t//makes border of room\n\t\tfor(int i = 0; i < this.area.length; i++){\n\t\t\tfor(int p = 0; p<this.area.length; p++){\n\t\t\t\tif(i==0){\n\t\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t\t}\n\t\t\t\telse if (p==0 || p==19){\n\t\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t\t}\n\t\t\t\telse if(i==19){\n\t\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tthis.area[i][p] = \" \";\n\t\t\t\t}\n\t\t\t}//end of innner for\n\t\t}//end of outter for\n\t\tfor(int i = 4; i< 5 ; i++){\n\t\t\tfor(int p = 4; p < 7; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 4; i< 5 ; i++){\n\t\t\tfor(int p = 4; p < 7; p++){\n\t\t\t\tthis.area[p][i] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 7; i< 8 ; i++){\n\t\t\tfor(int p = 2; p < 7; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 17; i< 18 ; i++){\n\t\t\tfor(int p = 13; p < 17; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\t\n\t\t}\n\t\tfor(int i = 14; i< 15 ; i++){\n\t\t\tfor(int p = 13; p < 17; p++){\n\t\t\t\tthis.area[p][i] = \"[ ]\";\n\t\t\t}\t\n\t\t}\t\n\t\tfor(int i = 11; i< 12 ; i++){\n\t\t\tfor(int p = 10; p < 17; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 15; i< 16 ; i++){\n\t\t\tfor(int p = 3; p < 6; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 16; i< 17 ; i++){\n\t\t\tfor(int p = 6; p < 13; p++){\n\t\t\t\tthis.area[p][i] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 12; i< 13 ; i++){\n\t\t\tfor(int p = 5; p < 10; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t\tSystem.out.println(\" \");\n\t\t}//end of for that creates walls\t\n\n\t\t//for loop that distributes items\n\t\tint y = 0;\n\t\tint x = 0;\n\t\tfor(int i = 0;i<10;i++){\n\t\t\tItem thing = ItemGenerator.generate();//making an item\n\t\t\tboolean good = false;\n\t\t\twhile(!good){//makes coordates until there is nothing in the way\n\t\t\t\ty = fate.nextInt(20);//getting coordiantaes \n\t\t\t\tx = fate.nextInt(20);\n\t\t\t\tif(this.Items[y][x]==null && this.area[y][x] != \"[ ]\"){\n\t\t\t\t\tgood = true;\n\t\t\t\t}//end of if\n\t\t\t\telse{ \n\t\t\t\t\tgood = false;\n\t\t\t\t}\n\t\t\t}//end of while\n\t\t\tItems[y][x] = thing;\n\t\t}//end of for that distributes items on board\n\n\t}",
"abstract T build();",
"public boolean canBuild(Vertex vertex, int type) {\n \t\tif (type == Vertex.TOWN && towns >= MAX_TOWNS)\n \t\t\treturn false;\n \t\telse if (type == Vertex.CITY && cities >= MAX_CITIES)\n \t\t\treturn false;\n \n \t\treturn vertex.canBuild(this, type, board.isSetupPhase());\n \t}",
"Object build();",
"@Test\n public void test2IsCreatable()throws Exception{\n\n Position pos = new Position(0,0);\n generateLevel.landOn(pos,BlockType.PATH.toString());\n NormalDefender nd = new NormalDefender(generateLevel.getZoneList().\n get(0).getPos(),generateLevel.getAttackersList());\n assertTrue(generateLevel.isCreatable(nd));\n }",
"public Building() throws ConstructionException {\n\t\tthrow new ConstructionException();\n\t}",
"public abstract Object build();",
"Builder addContentLocation(Place.Builder value);",
"@Test\n public void testBuilder_1()\n throws Exception {\n\n Project.Builder result = Project.builder();\n\n assertNotNull(result);\n }",
"private boolean buildEntity() {\r\n\t\t/****************** Tower Creation ******************/\r\n\t\tif (this.type.contains(\"tower\")) {\r\n\t\t\tif (this.type.equals(\"tower0\")) {\r\n\t\t\t\t// Basic starting tower\r\n\t\t\t\tthis.base = \"tower\";\r\n\t\t\t\tthis.speed = 2;\r\n\t\t\t\tthis.health = 500;\r\n\t\t\t\tthis.attack = 0;\r\n\t\t\t\tthis.price = 110;\r\n\t\t\t\tthis.frames = 1;\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"tower1\")) {\r\n\t\t\t\tthis.base = \"tower\";\r\n\t\t\t\tthis.speed = 1;\r\n\t\t\t\tthis.health = 90;\r\n\t\t\t\tthis.attack = 30;\r\n\t\t\t\tthis.price = 50;\r\n\t\t\t\tthis.frames = 5;\r\n\t\t\t\tthis.weaponFrames = 1;\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"tower2\")) {\r\n\t\t\t\tthis.base = \"tower\";\r\n\t\t\t\tthis.health = 160;\r\n\t\t\t\tthis.attack = 25;\r\n\t\t\t\tthis.price = 210;\r\n\t\t\t\tthis.frames = 6;\r\n\t\t\t\tthis.speed = 1;\r\n\t\t\t\tthis.weaponFrames = 8;\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"tower3\")) {\r\n\t\t\t\tthis.base = \"tower\";\r\n\t\t\t\tthis.health = 245;\r\n\t\t\t\tthis.attack = 25;\r\n\t\t\t\tthis.price = 245;\r\n\t\t\t\tthis.speed = 1;\r\n\t\t\t\tthis.frames = 9;\r\n\t\t\t\tthis.weaponFrames =1;\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"tower4\")) {\r\n\t\t\t\tthis.base = \"tower\";\r\n\t\t\t\tthis.speed = 1;\r\n\t\t\t\tthis.health = 200;\r\n\t\t\t\tthis.attack = 3000;\r\n\t\t\t\tthis.price = 500;\r\n\t\t\t\tthis.frames = 9;\r\n\t\t\t\tthis.weaponFrames = 8;\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"tower5\")) {\r\n\t\t\t\tthis.base = \"tower\";\r\n\t\t\t\tthis.weaponFrames = 3;\r\n\t\t\t\tthis.health = 100;\r\n\t\t\t\tthis.attack = 25;\r\n\t\t\t\tthis.price = 90;\r\n\t\t\t\tthis.speed = 1;\r\n\t\t\t\tthis.frames = 7;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t/****************** Enemy Creation ******************/\r\n\t\tif (this.type.contains(\"zombie\")) {\r\n\t\t\tif (this.type.equals(\"zombie0\")) {\r\n\t\t\t\tthis.base = \"zombie\";\r\n\t\t\t\tthis.health = 150;\r\n\t\t\t\tthis.attack = 5;\r\n\t\t\t\tthis.speed = 75;\r\n\t\t\t\tthis.deathFrames = 9;\r\n\t\t\t\tthis.walkFrames = 9;\r\n\t\t\t\tthis.attackFrames =7;\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"zombie1\")) {\r\n\t\t\t\tthis.base = \"zombie\";\r\n\t\t\t\tthis.health = 500;\r\n\t\t\t\tthis.attack = 5;\r\n\t\t\t\tthis.speed = 50;\r\n\t\t\t\tthis.deathFrames = 5;\r\n\t\t\t\tthis.walkFrames = 6;\r\n\t\t\t\tthis.attackFrames =8;\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"zombie2\")) {\r\n\t\t\t\tthis.base = \"zombie\";\r\n\t\t\t\tthis.health = 250;\r\n\t\t\t\tthis.attack = 5;\r\n\t\t\t\tthis.speed = 50;\r\n\t\t\t\tthis.deathFrames = 5;\r\n\t\t\t\tthis.walkFrames = 6;\r\n\t\t\t\tthis.attackFrames =7;\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"zombie3\")) {\r\n\t\t\t\tthis.base = \"zombie\";\r\n\t\t\t\tthis.health = 100;\r\n\t\t\t\tthis.attack = 25;\r\n\t\t\t\tthis.speed = 25;\r\n\t\t\t\tthis.deathFrames = 5;\r\n\t\t\t\tthis.walkFrames = 8;\r\n\t\t\t\tthis.attackFrames =7;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t/****************** Object Creation ******************/\r\n\t\tif (this.type.contains(\"object\")) {\r\n\t\t\tif (this.type.equals(\"object0\")) {\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object1\")) {\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object2\")) {\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object3\")) {\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object4\")) {\r\n\t\t\t\t// Jail building\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object5\")) {\r\n\t\t\t\t// Inn building\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object6\")) {\r\n\t\t\t\t// Bar building\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object7\")) {\r\n\t\t\t\t// Watchtower building\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object8\")) {\r\n\t\t\t\t// Plus path\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object9\")) {\r\n\t\t\t\t// NS Path\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object10\")) {\r\n\t\t\t\t// EW Path\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object11\")) {\r\n\t\t\t\t// Cobble Ground\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object12\")) {\r\n\t\t\t\t// Tombstone with dirt\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object13\")) {\r\n\t\t\t\t// Tombstone\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t\telse if (this.type.equals(\"object14\")) {\r\n\t\t\t\t// Wood grave marker\r\n\t\t\t\tthis.base = \"object\";\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t/****************** Out of Creation ******************/\r\n\t\t// Check if a type was created and return results\r\n\t\tif (this.base != null) {\r\n\t\t\t// Successful creation\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\t// Unsuccessful creation\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"Position_Position createPosition_Position();",
"boolean CanUseRoadBuilder(EdgeLocation spot1, EdgeLocation spot2);",
"@Test\n public void testBuilderFrom_1()\n throws Exception {\n Project p = new Project();\n\n Project.Builder result = Project.builderFrom(p);\n\n assertNotNull(result);\n }",
"private void createRooms()//refactored\n {\n currentRoom = RoomCreator.buildCurrentRooms();//new\n }",
"public Cbuilding() { }",
"public void build()\n {\n\t\tPoint3d loc;\n\t\n\t\tcomputeFPS(0);\n\t\n\t\t// Make random number generator\n\t\tif (seed == -1) {\n\t\t seed = System.currentTimeMillis() % 10000;\n\t\t System.out.println(\"Seed value: \" + seed);\n\t\t}\n\t\trgen = new Random(seed);\n\t\n\t\t// Create empty scene\n\t\tobstacles = new Vector<Obstacle>();\n\t\tcritters = new Vector<Critter>();\n\t\n\t\t// ---------------\n\n // Create a couple of trees, one big and one smaller\n obstacles.addElement(new Tree(rgen, 5, 6, 4.5f, 0.4f, 0.0f, 0.0f));\n obstacles.addElement(new Tree(rgen, 4, 6, 2.5f, 0.15f, 8.0f, -5.0f));\n\n // Create a few rocks\n obstacles.addElement(new Rock(rgen, 4, 2, 2, 1));\n obstacles.addElement(new Rock(rgen, 3, 4, 8, 1));\n obstacles.addElement(new Rock(rgen, 3, 7, 2, 2));\n obstacles.addElement(new Rock(rgen, 2, -2.6, -9, 2));\n obstacles.addElement(new Rock(rgen, 4, -2, -3, 1));\n obstacles.addElement(new Rock(rgen, 3, -2, -1.11, 1));\n \n // Create the main bug\n mainBug = new Bug(rgen, 0.4f, -1, 1, 0.1f, 0.0f);\n critters.addElement(mainBug);\n \n // baby critters\n critters.addElement(new Bug(rgen, 0.1f, -5, 6, 0.1, 0.0f));\n critters.addElement(new Bug(rgen, 0.15f, -7, -6, 0.1, 0.0f));\n critters.addElement(new Bug(rgen, 0.2f, -8, 1, 0.1, 0.0f));\n \n //predator\n predator = new Predator(rgen, 0.3f, -9, 9, 0, 0);\n critters.addElement(predator);\n \n \n goal = new Point3d(rgen.nextDouble()*5, rgen.nextDouble()*5, 0);\n target = 0;\n\n\t\t// Reset computation clock\n\t\tcomputeClock = 0;\n }",
"private void buildStreet() {\r\n\t\tbuilt = false;\r\n\t\tbuildPanelRoad.setVisible(false);\r\n\t\tMessage message = new Message(clickedRoad, true, null);\r\n\t\tsendMessage(message);\r\n\t}",
"@Test(expected = IllegalArgumentException.class)\n public void buildFalse() {\n nextWorkerCell.setIsOccupied(true);\n workerHephaestus.setCurrentWorkerCell(baseWorkerCell);\n workerHephaestus.build(nextWorkerCell);\n assertFalse(workerHephaestus.getHasBuilt());\n }",
"protected final boolean buildMoveDataSpace(ChessSpace origin, ChessSpace toBuild){\n\t\tif(toBuild == null) return false;\n\t\taddSpaceDependency(toBuild);\n\t\t\t\n\t\tif(toBuild.getOccupant() == null){\n\t\t\taddCommandSequence( toBuild, origin, toBuild);\n\t\t\treturn true;\n\t\t}\n\t\telse if( toBuild.getOccupant().getPlayer() != owner.getPlayer()){\n\t\t\taddCommandSequence( toBuild, toBuild, null, origin, toBuild);\n\t\t\treturn false;\n\t\t}\n\t\treturn false;\n\t}",
"StatePac build();",
"T2 build();",
"public Reservation build() throws BuilderException \n{\n\tif (date == null) {\n\t\tthrow new BuilderException(\"Valid date not found\");\n\t}\n\tif (city == null) {\n\t\tthrow new BuilderException(\"Valid city not found\");\n\t}\n\tif (headcount < MINHEAD) {\n\t\tthrow new BuilderException(\n\t\t\t\"Minimum headcount is \" + MINHEAD); \n\t}\n\tif (dollarsPerHead * headcount < MINTOTAL) {\n\t\tthrow new BuilderException(\n\t\t\t\"Minimum total cost is \" + MINTOTAL); \n\t}\n\treturn new Reservation(\n\t\tdate, \n\t\theadcount, \n\t\tcity, \n\t\tdollarsPerHead, \n\t\thasSite); \n}",
"public Builder() {}",
"public Builder() {}",
"public Builder() {}",
"public static void startBuilding(int posx, int posy)\n \t{\n \t\tstartposx = posx;\n \t\tstartposy = posy;\n \t}",
"@Test\n public void test3IsCreatable()throws Exception{\n\n //Zone\n Position pos = new Position(0,0);\n generateLevel.landOn(pos,BlockType.PATH.toString());\n\n NormalDefender nd = new NormalDefender(generateLevel.getZoneList().\n get(0).getPos(),generateLevel.getAttackersList());\n if(generateLevel.isCreatable(nd)){\n generateLevel.getDefendersList().push(nd);\n }\n\n NormalDefender nd2 = new NormalDefender(generateLevel.getZoneList().\n get(0).getPos(),generateLevel.getAttackersList());\n assertFalse(generateLevel.isCreatable(nd2));\n }",
"@Test\n\tpublic void testBuildingInitialization () throws Exception {\n\t\tString buildingName = \"Building 1\";\n\t\tString buildingLocation = \"Cork\";\n\t\tList<String> elevatorIds = new ArrayList<>(Arrays.asList(\"elevator 1\", \"elevator 2\"));\n\t\tBuilding buildingTest = new Building(buildingName, buildingLocation, elevatorIds);\n\t\t\n\t\tassertThat(buildingTest.getName().equals(buildingName));\n\t\tassertThat(buildingTest.getLocation() == buildingLocation);\n\t\tassertThat(ListUtils.ifTwoStringListsAreIdentical(elevatorIds, buildingTest.getElevatorIds()));\n\t\t\n\t\t\n\t}",
"private void createNewCity()\r\n {\r\n int currentPlayer = worldPanel.getCurrentPlayer();\r\n int currentUnit = worldPanel.getCurrentUnit();\r\n boolean canBuild = false;\r\n\r\n if(currentPlayer == 1)\r\n {\r\n int unitType = worldPanel.player1.units[currentUnit - 1].getUnitType();\r\n if(unitType == 1)//if unit is a settler\r\n canBuild = true;\r\n }\r\n\r\n else if(currentPlayer == 2)\r\n {\r\n int unitType = worldPanel.player1.units[currentUnit - 1].getUnitType();\r\n if(unitType == 1)//if unit is a settler\r\n canBuild = true;\r\n }\r\n\r\n //if the unit who presses build is a settler\r\n if(canBuild == true)\r\n {\r\n if(currentPlayer == 1)\r\n {\r\n int playerLoc = worldPanel.player1.units[currentUnit - 1].getPosition();\r\n worldPanel.player1.addCity(playerLoc);\r\n currentUnit++;\r\n worldPanel.setCurrentUnit(currentUnit);\r\n }//end if\r\n else if(currentPlayer == 2)\r\n {\r\n int playerLoc = worldPanel.player2.units[currentUnit - 1].getPosition();\r\n worldPanel.player2.addCity(playerLoc);\r\n currentUnit++;\r\n worldPanel.setCurrentUnit(currentUnit);\r\n }//end elseif\r\n }//end if\r\n\r\n //set new player and unit if necessary\r\n int temp = worldPanel.getNumUnits(currentPlayer);\r\n if(currentUnit > temp)\r\n {\r\n if(currentPlayer == 1)\r\n worldPanel.setCurrentPlayer(2);\r\n else\r\n worldPanel.setCurrentPlayer(1);\r\n worldPanel.setCurrentUnit(1);\r\n }//end if\r\n\r\n //set up new mapPosition if player moved\r\n if(canBuild == true)\r\n setMapPos();\r\n setInfoPanel();\r\n }",
"public Ball(Vector2 position) {\n this.position = position;\n build();\n }",
"private void createNewUnit()\r\n {\r\n int currentPlayer = worldPanel.getCurrentPlayer();\r\n int currentUnit = worldPanel.getCurrentUnit();\r\n int randomNumber = (int)Math.ceil(Math.random() * 8);\r\n boolean canBuild = false;\r\n\r\n if(currentPlayer == 1)\r\n {\r\n int unitType = worldPanel.player1.units[currentUnit - 1].getUnitType();\r\n if(unitType == 1)//if unit is a settler\r\n canBuild = true;\r\n }\r\n\r\n else if(currentPlayer == 2)\r\n {\r\n int unitType = worldPanel.player2.units[currentUnit - 1].getUnitType();\r\n if(unitType == 1)//if unit is a settler\r\n canBuild = true;\r\n }\r\n\r\n //if the unit who presses build is a settler\r\n if(canBuild == true)\r\n {\r\n if(currentPlayer == 1)\r\n {\r\n int playerLoc = worldPanel.player1.units[currentUnit - 1].getPosition();\r\n worldPanel.player1.addUnit2(randomNumber);\r\n int noUnits = worldPanel.player1.getNumUnits();\r\n\t\t\t\t\t\t\t\tif(randomNumber == 7)//if unit is a ship\r\n\t\t\t\t\t\t\t\t\tworldPanel.player1.units[noUnits].setPosition(getSeaLoc(playerLoc));\r\n\t\t\t\t\t\t\t\telse\r\n \tworldPanel.player1.units[noUnits].setPosition(playerLoc);\r\n worldPanel.player1.setNumUnits(noUnits + 1);\r\n currentUnit++;\r\n worldPanel.setCurrentUnit(currentUnit);\r\n }//end if\r\n else if(currentPlayer == 2)\r\n {\r\n int playerLoc = worldPanel.player2.units[currentUnit - 1].getPosition();\r\n worldPanel.player2.addUnit2(randomNumber);\r\n int noUnits = worldPanel.player2.getNumUnits();\r\n\t\t\t\t\t\t\t\tif(randomNumber == 7)//if unit is a ship\r\n\t\t\t\t\t\t\t\t\tworldPanel.player2.units[noUnits].setPosition(getSeaLoc(playerLoc));\r\n\t\t\t\t\t\t\t\telse\r\n \tworldPanel.player2.units[noUnits].setPosition(playerLoc);\r\n worldPanel.player2.setNumUnits(noUnits + 1);\r\n currentUnit++;\r\n worldPanel.setCurrentUnit(currentUnit);\r\n }//end elseif\r\n }//end if\r\n\r\n //set new player and unit if necessary\r\n int temp = worldPanel.getNumUnits(currentPlayer);\r\n if(currentUnit > temp)\r\n {\r\n if(currentPlayer == 1)\r\n worldPanel.setCurrentPlayer(2);\r\n else\r\n worldPanel.setCurrentPlayer(1);\r\n worldPanel.setCurrentUnit(1);\r\n }//end if\r\n\r\n //set up new mapPosition if player moved\r\n if(canBuild == true)\r\n setMapPos();\r\n setInfoPanel();//set up information panel\r\n }",
"public void create2(){\n\t\t//creating board to keep track of player postion with 1 or 0. 0 if not there 1 if they are there\n\t\tfor(int i = 0; i <this.position.length; i++){\n\t\t\tfor(int p = 0; p < this.position.length; p++){\n\t\t\t\tthis.position[i][p] = 0;//filling with zero\n\t\t\t}\n\t\t}//end of position making board\n\n\n\t\t//creating door in the rooms\n\t\tfor(int i = 0; i <this.Door.length; i++){\n\t\t\tfor(int p = 0; p < this.Door.length; p++){\n\t\t\t\tthis.Door[i][p] = 0;//filling with zero\n\t\t\t}\n\t\t}//end of Door making board\n\t\tthis.Door[1][1] = 1;\n\n\t\t//creating stairs to transport to room3\n\t\tfor(int i = 0; i <this.Stairs.length; i++){\n\t\t\tfor(int p = 0; p < this.Stairs.length; p++){\n\t\t\t\tthis.Stairs[i][p] = 0;//filling with zero\n\t\t\t}\n\t\t}//end of Door making board\n\t\tthis.Stairs[18][18] = 1;\n\n\t\t//creating board to keep track of ari\n\t\tfor(int i = 0; i <this.Ari.length; i++){\n\t\t\tfor(int p = 0; p < this.Ari.length; p++){\n\t\t\t\tthis.Ari[i][p] = 0;//filling with zero\n\t\t\t}\n\t\t}\n\t\tthis.Ari[7][11] = 1;//putts ari there\n\n\t\t//makes board that tells if item is there\n\t\tfor(int i = 0; i <this.Items.length; i++){\n\t\t\tfor(int p = 0; p < this.Items.length; p++){\n\t\t\t\tthis.Items[i][p] = null;//filling with null\n\t\t\t}\n\t\t}//end of filling board that has items\n\n\t\t//makes border of room\n\t\tfor(int i = 0; i < this.area.length; i++){\n\t\t\tfor(int p = 0; p<this.area.length; p++){\n\t\t\t\tif(i==0){\n\t\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t\t}\n\t\t\t\telse if (p==0 || p==19){\n\t\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t\t}\n\t\t\t\telse if(i==19){\n\t\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tthis.area[i][p] = \" \";\n\t\t\t\t}\n\t\t\t}//end of innner for\n\t\t}//end of outter for\n\t\tfor(int i = 3; i< 4 ; i++){\n\t\t\tfor(int p = 1; p < 18; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 6; i< 7 ; i++){\n\t\t\tfor(int p = 19; p > 1; p--){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 9; i< 10 ; i++){\n\t\t\tfor(int p = 1; p < 18; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 12; i< 13 ; i++){\n\t\t\tfor(int p = 19; p > 1; p--){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 15; i< 16 ; i++){\n\t\t\tfor(int p = 1; p < 18; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\n\t\t\tSystem.out.println(\" \");\n\t\t}//end of for that creates walls\n\n\t\t//for loop that distributes items\n\t\tint y = 0;\n\t\tint x = 0;\n\t\tfor(int i = 0;i<10;i++){\n\t\t\tItem thing = ItemGenerator.generate();//making an item\n\t\t\tboolean good = false;\n\t\t\twhile(!good){//makes coordates until there is nothing in the way\n\t\t\t\ty = fate.nextInt(20);//getting coordiantaes\n\t\t\t\tx = fate.nextInt(20);\n\t\t\t\tif(this.Items[y][x]==null && this.area[y][x] != \"[ ]\"){\n\t\t\t\t\tgood = true;\n\t\t\t\t}//end of if\n\t\t\t\telse{\n\t\t\t\t\tgood = false;\n\t\t\t\t}\n\t\t\t}//end of while\n\t\t\tItems[y][x] = thing;\n\t\t}//end of for that distributes items on board\n\n\t}",
"@Test\n public void shouldBeAbleToCreatePiecePosition() {\n Assert.assertNotNull(position);\n }",
"public PositionDTO createJobPosition(final PositionDTO positionDTO) throws ApplicationCustomException;",
"public TerrainObject build() {\n\t\tfor(int i=0; i<paramsSet.length-3; i++)\n\t\t\tif(!paramsSet[i])\n\t\t\t\tthrow new IllegalArgumentException(\"Needed parameter (No. \"+i+\") for TerrainObject hasn't been set\");\n\t\treturn new TerrainObject(x, y, z, xW, yW, zW, scale, seed, noise);\n\t}",
"@Test\n\tpublic void validSpawn() {\n\t\tGameState gameState = new GameState(1, \"assets/maps/map.json\");\n\t\tassertTrue(\"Should be able to be set to 0,0\", gameState.addSpawn(new Location(0, 0)));\n\t}",
"public MyRoom(String name, String building, int size) {\r\n this.name = name;\r\n this.building = building;\r\n this.size = size;\r\n }",
"private Builder() {}",
"public void placeMandatoryObjects()\r\n {\r\n Random rng = new Random();\r\n //Adds an endgame chest somewhere (NOT in spawn)\r\n Room tempRoom = getRoom(rng.nextInt(dungeonWidth - 1) +1, rng.nextInt(dungeonHeight - 1) +1);\r\n tempRoom.addObject(new RoomObject(\"Endgame Chest\", \"overflowing with coolness!\"));\r\n if (tempRoom.getMonster() != null)\r\n {\r\n tempRoom.removeMonster();\r\n }\r\n tempRoom.addMonster(new Monster(\"Pelo Den Stygge\", \"FINAL BOSS\", 220, 220, 12));\r\n //Adds a merchant to the spawn room\r\n getRoom(0,0).addObject(new RoomObject(\"Merchant\", \"like a nice fella with a lot of goods (type \\\"wares\\\" to see his goods)\"));\r\n }",
"public boolean build(Vertex vertex, int type) {\n \t\tif (vertex == null || !canBuild(vertex, type))\n \t\t\treturn false;\n \n \t\tboolean setup = board.isSetupPhase();\n \n \t\t// check resources based on type we want to build\n \t\tif (type == Vertex.TOWN) {\n \t\t\tif (!setup && !affordTown())\n \t\t\t\treturn false;\n \t\t} else if (type == Vertex.CITY) {\n \t\t\tif (!setup && !affordCity())\n \t\t\t\treturn false;\n \t\t} else {\n \t\t\t// invalid type\n \t\t\treturn false;\n \t\t}\n \n \t\tif (!vertex.build(this, type, setup))\n \t\t\treturn false;\n \n \t\t// deduct resources based on type\n \t\tif (vertex.getBuilding() == Vertex.TOWN) {\n \t\t\tif (!setup) {\n \t\t\t\tuseResources(Type.BRICK, 1);\n \t\t\t\tuseResources(Type.LUMBER, 1);\n \t\t\t\tuseResources(Type.GRAIN, 1);\n \t\t\t\tuseResources(Type.WOOL, 1);\n \t\t\t}\n \t\t\ttowns += 1;\n \t\t\tsettlements.add(vertex);\n \t\t\tboard.checkLongestRoad();\n \t\t} else {\n \t\t\tif (!setup) {\n \t\t\t\tuseResources(Type.GRAIN, 2);\n \t\t\t\tuseResources(Type.ORE, 3);\n \t\t\t}\n \t\t\ttowns -= 1;\n \t\t\tcities += 1;\n \t\t}\n \n \t\t// collect resources for second town during setup\n \t\tif (board.isSetupPhase2()) {\n \t\t\tfor (int i = 0; i < 3; i++) {\n \t\t\t\tHexagon hexagon = vertex.getHexagon(i);\n \t\t\t\tif (hexagon != null && hexagon.getType() != Type.DESERT)\n \t\t\t\t\taddResources(hexagon.getType(), 1);\n \t\t\t}\n \t\t}\n \n \t\tlastTown = vertex;\n \n \t\tappendAction(type == Vertex.TOWN ? R.string.player_town\n \t\t\t\t: R.string.player_city);\n \n \t\treturn true;\n \t}",
"void makePlacement(String placement) {\n\n // Task8 Do not clear the textField in order to place pieces step by step.\n // board.getChildren().clear();\n if (!StepsGame.isPlacementWellFormed(placement)) {\n throw new IllegalArgumentException(\"Hide board incorrect length: \" + placement);\n }\n Rectangle r = new Rectangle(BOARD_X, BOARD_Y, XSIDE*SQUARE_SIZE, YSIDE*SQUARE_SIZE);\n r.setFill(SUBBOARD_FILL);\n r.setStroke(SUBBOARD_STROKE);\n board.getChildren().add(r);\n String alphabet = \"ABCDEFGHIJKLMNOPQRSTUVWXYabcdefghijklmnopqrstuvwxy\";\n for (int i = 0; i<50; i++){\n double x = 1.0/3;\n Text t = new Text(BOARD_X + SQUARE_SIZE/3 + (i %XSIDE) * SQUARE_SIZE - 5, BOARD_Y + 2*SQUARE_SIZE/3 +(i / XSIDE) * SQUARE_SIZE + 10, alphabet.substring(i, i+1));\n t.setFont(new Font(20));\n t.setFill(Color.GREY);\n board.getChildren().add(t);\n }\n // Making board and adding the letters.\n\n\n String[] onepiece = placement.split(\"(?<=\\\\G...)\");\n String[] shape = new String[onepiece.length];\n String[] location = new String[onepiece.length];\n char[] loc = new char[onepiece.length];\n int[] lct = new int[onepiece.length];\n for (int i = 0; i<onepiece.length; i++){\n shape[i] = onepiece[i].substring(0, 2);\n location[i] = onepiece[i].substring(2, 3);\n loc[i] = location[i].charAt(0);\n if(loc[i] >= 'A' && loc[i] <= 'Y'){\n lct[i] = (int)loc[i] - 65;\n }else if(loc[i] >= 'a' && loc[i] <= 'y'){\n lct[i] = (int)loc[i] - 72;\n }\n //Split String into 3 letters and NUMBER the positions A-y into 0-49.\n\n\n String tile = shape[i];\n if (tile != \"\")\n board.getChildren().add(new Square(tile, lct[i]-11));\n }\n // Adding shapes\n board.toBack();\n\n // FIXME Task 4: implement the simple placement viewer\n }",
"public void setBuildable(boolean b) {\r\n buildable = b;\r\n }",
"private SpawnSquare createSquare(boolean isSpawn, ColorOfFigure_Square color , boolean hasDoor, int row, int column){\n return new SpawnSquare(color, hasDoor, row, column);\n }",
"T build();",
"T build();",
"@Override\r\n\tpublic Room buildRoom(final XMLTag piece, final Map<String,Object> defined, final Exit[] exits, final int direction) throws CMException\r\n\t{\r\n\t\taddDefinition(\"DIRECTION\",CMLib.directions().getDirectionName(direction).toLowerCase(),defined);\r\n\r\n\t\tfinal String classID = findStringNow(\"class\",piece,defined);\r\n\t\tfinal Room R = CMClass.getLocale(classID);\r\n\t\tif(R == null)\r\n\t\t\tthrow new CMException(\"Unable to build room on classID '\"+classID+\"', Data: \"+CMParms.toKeyValueSlashListString(piece.parms())+\":\"+CMStrings.limit(piece.value(),100));\r\n\t\taddDefinition(\"ROOM_CLASS\",classID,defined);\r\n\t\tfinal List<String> ignoreStats=new XArrayList<String>(new String[]{\"CLASS\",\"DISPLAY\",\"DESCRIPTION\"});\r\n\t\tfillOutRequiredStatCodeSafe(R, ignoreStats, \"ROOM_\", \"TITLE\", \"DISPLAY\", piece, defined);\r\n\t\tfillOutRequiredStatCodeSafe(R, ignoreStats, \"ROOM_\", \"DESCRIPTION\", \"DESCRIPTION\", piece, defined);\r\n\t\tfillOutCopyCodes(R, ignoreStats, \"ROOM_\", piece, defined);\r\n\t\tfillOutStatCodes(R, ignoreStats, \"ROOM_\", piece, defined);\r\n\t\tignoreStats.addAll(Arrays.asList(R.getStatCodes()));\r\n\t\tfillOutStatCodes(R.basePhyStats(),ignoreStats,\"ROOM_\",piece,defined);\r\n\t\tfinal List<MOB> mV = findMobs(piece,defined);\r\n\t\tfor(int i=0;i<mV.size();i++)\r\n\t\t{\r\n\t\t\tfinal MOB M=mV.get(i);\r\n\t\t\tM.setSavable(true);\r\n\t\t\tM.bringToLife(R,true);\r\n\t\t}\r\n\t\tfinal List<Item> iV = findItems(piece,defined);\r\n\t\tfor(int i=0;i<iV.size();i++)\r\n\t\t{\r\n\t\t\tfinal Item I=iV.get(i);\r\n\t\t\tR.addItem(I);\r\n\t\t\tI.setSavable(true);\r\n\t\t\tI.setExpirationDate(0);\r\n\t\t}\r\n\t\tfinal List<Ability> aV = findAffects(R,piece,defined,null);\r\n\t\tfor(int i=0;i<aV.size();i++)\r\n\t\t{\r\n\t\t\tfinal Ability A=aV.get(i);\r\n\t\t\tA.setSavable(true);\r\n\t\t\tR.addNonUninvokableEffect(A);\r\n\t\t}\r\n\t\tfinal List<Behavior> bV = findBehaviors(R,piece,defined);\r\n\t\tfor(int i=0;i<bV.size();i++)\r\n\t\t{\r\n\t\t\tfinal Behavior B=bV.get(i);\r\n\t\t\tB.setSavable(true);\r\n\t\t\tR.addBehavior(B);\r\n\t\t}\r\n\t\tfor(int dir=0;dir<Directions.NUM_DIRECTIONS();dir++)\r\n\t\t{\r\n\t\t\tExit E=exits[dir];\r\n\t\t\tif((E==null)&&(defined.containsKey(\"ROOMLINK_\"+CMLib.directions().getDirectionChar(dir).toUpperCase())))\r\n\t\t\t{\r\n\t\t\t\tdefined.put(\"ROOMLINK_DIR\",CMLib.directions().getDirectionChar(dir).toUpperCase());\r\n\t\t\t\tfinal Exit E2=findExit(R,piece, defined);\r\n\t\t\t\tif(E2!=null)\r\n\t\t\t\t\tE=E2;\r\n\t\t\t\tdefined.remove(\"ROOMLINK_DIR\");\r\n\t\t\t\tif(CMSecurity.isDebugging(CMSecurity.DbgFlag.MUDPERCOLATOR))\r\n\t\t\t\t\tLog.debugOut(\"MUDPercolator\",\"EXIT:NEW:\"+((E==null)?\"null\":E.ID())+\":DIR=\"+CMLib.directions().getDirectionChar(dir).toUpperCase()+\":ROOM=\"+R.getStat(\"DISPLAY\"));\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\tif((CMSecurity.isDebugging(CMSecurity.DbgFlag.MUDPERCOLATOR))\r\n\t\t\t&&defined.containsKey(\"ROOMLINK_\"+CMLib.directions().getDirectionChar(dir).toUpperCase()))\r\n\t\t\t\tLog.debugOut(\"MUDPercolator\",\"EXIT:OLD:\"+((E==null)?\"null\":E.ID())+\":DIR=\"+CMLib.directions().getDirectionChar(dir).toUpperCase()+\":ROOM=\"+R.getStat(\"DISPLAY\"));\r\n\t\t\tR.setRawExit(dir, E);\r\n\t\t\tR.startItemRejuv();\r\n\t\t}\r\n\t\treturn R;\r\n\t}",
"Builder addPosition(String value);",
"public Builder() { }",
"Builder addCharacter(Person.Builder value);",
"Builder addPosition(Text value);",
"public void buildWorld() {\n buildBoundaryWall();\n buildDiscreteWorld();\n removeBoundaryWall();\n reorganizeNote();\n connectWorld();\n buildWall();\n }",
"Builder addAbout(Thing.Builder value);",
"public void randomBuildRoom(int len, int leftWid, int rightWid) {\n randomTeleport();\n while (!checkEnoughSpace(len, leftWid, rightWid)) {\n randomTeleport();\n }\n createRoom(len, leftWid, rightWid);\n }",
"public static Entity createBuilding(String campusID, String buildingName) {\n\t\tEntity building = null;\n\t\tDatastoreService datastore = DatastoreServiceFactory.getDatastoreService();\n\t\tTransaction txn = datastore.beginTransaction();\n\t\ttry {\n\n\t\t\tEntity campus = Campus.getCampus(campusID);\n\t\t\tKey campusKey = campus.getKey();\n\n\t\t\tif (!checkName(buildingName)) {\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\tbuilding = getBuildingWithName(campusID, buildingName);\n\t\t\tif (building != null) {\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\tMapFigure campusFigure = Campus.getGoogleMapFigure(campus);\n\t\t\tbuilding = new Entity(ENTITY_KIND, campusKey);\n\t\t\tbuilding.setProperty(NAME_PROPERTY, buildingName);\n\t\t\tsetGoogleMapFigure(campus, campusFigure.latitude, campusFigure.longitude, campusFigure.zoom, campusFigure.latitude, campusFigure.longitude);\n\t\t\tdatastore.put(building);\n\n\t\t\ttxn.commit();\n\t\t} finally {\n\t\t\tif (txn.isActive()) {\n\t\t\t\ttxn.rollback();\n\t\t\t}\n\t\t}\n\n\t\treturn building;\n\t}",
"@Override\n public boolean build(Match m, ClientHandler ch, Server server) {\n int wID=2;\n Player p = m.getPlayer(ch.getName());\n if(p.getWorker(0).getMoved()) wID = 0;\n if(p.getWorker(1).getMoved()) wID = 1;\n ArrayList<Coordinate> coordinates = whereCanBuild(m, ch, wID);\n server.write(ch, \"serviceMessage\", \"MSGE-Build: \\n\");\n if(coordinates.size()!=0){\n Coordinate c = null;\n server.write(ch, \"serviceMessage\", \"LIST-\"+printCoordinates(coordinates));\n server.write(ch, \"interactionServer\", \"TURN-Where you want to build?\\n\");\n int id;\n while(true){\n try{\n String msg = server.read(ch);\n if(msg == null){\n for(ClientHandler chl : server.getClientHandlers()){\n server.write(chl, \"serviceMessage\", \"WINM-Player disconnected\\n\");\n }\n ch.resetConnected();\n ch.closeConnection();\n return false;\n }else{\n id = Integer.parseInt(msg);\n }\n if(id<0 || id>=coordinates.size()){\n server.write(ch, \"serviceMessage\", \"MSGE-Invalid input\\n\");\n server.write(ch, \"interactionServer\", \"TURN-Try another index: \");\n continue;\n }\n break;\n } catch (NumberFormatException e){\n server.write(ch, \"serviceMessage\", \"MSGE-Invalid input\\n\");\n server.write(ch, \"interactionServer\", \"TURN-Try another index: \");\n }\n }\n c = coordinates.get(id);\n if(c.equals(p.getWorker(wID).getPosition()))\n server.write(ch, \"serviceMessage\", \"MSGE-You're using Zeus Power!\\n\");\n m.updateBuilding(c);\n m.getBoard()[c.getX()][c.getY()].setLevelledUp(true);\n p.getWorker(wID).changeBuilt(true);\n return true;\n }else{\n return false;\n }\n\n }",
"public Boolean buildModel(DaoStage activeStage) {\n\n // if no previous model, create locus, actor, prop lists\n if (activeStage.getLocusList().locii.size() == 0) {\n // create actor list mirroring locus list\n List<String> actorList = new ArrayList<>();\n activeStage.setActorList(actorList);\n // create stage locus list mirroring locus list\n List<String> propList = new ArrayList<>();\n activeStage.setPropList(propList);\n List<Integer> propFgColorList = new ArrayList<>();\n activeStage.setPropFgColorList(propFgColorList);\n List<Integer> propBgColorList = new ArrayList<>();\n activeStage.setPropBgColorList(propBgColorList);\n\n // create prop list\n DaoLocusList daoLocusList = new DaoLocusList();\n activeStage.setLocusList(daoLocusList);\n // establish ring max id list\n Integer ring = 0;\n Integer ringId = 0;\n List<Integer> ringMaxId = new ArrayList<>();\n ringMaxId.add(0);\n\n // seed 1st locus at 0,0\n DaoLocus origin = new DaoLocus();\n // mirror locus list add with actor & prop\n mirrorLociiAdd(origin, daoLocusList, actorList, propList, propFgColorList, propBgColorList);\n // set nickname, seed vert\n origin.setNickname(setLocusName(ring, ringMaxId.get(ring)));\n origin.setVertX(RING_CENTER_X);\n origin.setVertY(RING_CENTER_Y);\n origin.setVertZ(RING_CENTER_Z);\n Log.d(TAG, origin.toString() + \" at origin.\");\n\n // populate 1st ring around origin\n ++ring; // 1st\n ringId = populateLocii(ring, ringMaxId.get(ring - 1), daoLocusList, origin, actorList,\n propList, propFgColorList, propBgColorList);\n ringMaxId.add(ringId);\n\n // populate next ring by expanding around each locus in previous ring\n while (ring < activeStage.getRingSize()) {\n ++ring;\n // for each locus in previous ring\n Integer locusIndex = ringMaxId.get(ring - 2) + 1;\n ringId = ringMaxId.get(ring - 1);\n while (locusIndex < ringMaxId.get(ring - 1) + 1) {\n origin = daoLocusList.locii.get(locusIndex);\n ringId = populateLocii(ring, ringId, daoLocusList, origin, actorList,\n propList, propFgColorList, propBgColorList);\n ++locusIndex;\n }\n ringMaxId.add(ringId);\n }\n // create bounding rect with min/max inverted\n setBoundingRect(new RectF(RING_MAX_X, RING_MAX_Y, RING_MIN_X, RING_MIN_Y));\n // create bounding rect\n initBoundingRect(activeStage);\n }\n else if (activeStage.getPropFgColorList() == null ||\n activeStage.getPropBgColorList() == null ||\n activeStage.getPropFgColorList().size() != activeStage.getPropList().size() ||\n activeStage.getPropBgColorList().size() != activeStage.getPropList().size()) {\n Log.e(TAG, \"BuildModel finds depopulated FG,BG Color Lists...repairing...\");\n List<Integer> propFgColorList = new ArrayList<>();\n activeStage.setPropFgColorList(propFgColorList);\n List<Integer> propBgColorList = new ArrayList<>();\n activeStage.setPropBgColorList(propBgColorList);\n // for each prop\n for (int i = 0; i < activeStage.getPropList().size(); i++) {\n // if prop defined\n if (!activeStage.getPropList().get(i).equals(DaoDefs.INIT_STRING_MARKER)) {\n Log.d(TAG, \"buildModel repairing prop(\" + i + \") \" + activeStage.getPropList().get(i));\n if (activeStage.getPropList().get(i).equals(DaoActor.ACTOR_MONIKER_FORBIDDEN)) {\n propFgColorList.add(DaoStage.STAGE_BG_COLOR);\n propBgColorList.add(DaoStage.STAGE_BG_COLOR);\n } else if (activeStage.getPropList().get(i).equals(DaoActor.ACTOR_MONIKER_MIRROR)) {\n String actorMoniker = activeStage.getActorList().get(i);\n if (!actorMoniker.equals(DaoDefs.INIT_STRING_MARKER)) {\n DaoActor daoActor = (DaoActor) getRepoProvider().getDalActor().getDaoRepo().get(actorMoniker);\n if (daoActor != null) {\n propFgColorList.add(daoActor.getForeColor());\n propBgColorList.add(DaoStage.STAGE_BG_COLOR);\n Log.d(TAG,\"buildModel adds mirror for actor \" + daoActor.getMoniker() + \" at \" + i);\n }\n else {\n // add empty fg/bg color\n propFgColorList.add(DaoDefs.INIT_INTEGER_MARKER);\n propBgColorList.add(DaoDefs.INIT_INTEGER_MARKER);\n }\n }\n }\n }\n else {\n String actorMoniker = activeStage.getActorList().get(i);\n if (!actorMoniker.equals(DaoDefs.INIT_STRING_MARKER)) {\n DaoActor daoActor = (DaoActor) getRepoProvider().getDalActor().getDaoRepo().get(actorMoniker);\n if (daoActor != null) {\n activeStage.getPropList().set(i, DaoActor.ACTOR_MONIKER_MIRROR);\n propFgColorList.add(daoActor.getForeColor());\n propBgColorList.add(DaoStage.STAGE_BG_COLOR);\n Log.d(TAG,\"buildModel adds mirror for actor \" + daoActor.getMoniker() + \" at \" + i);\n }\n else {\n // add empty fg/bg color\n propFgColorList.add(DaoDefs.INIT_INTEGER_MARKER);\n propBgColorList.add(DaoDefs.INIT_INTEGER_MARKER);\n }\n }\n else {\n // add empty fg/bg color\n propFgColorList.add(DaoDefs.INIT_INTEGER_MARKER);\n propBgColorList.add(DaoDefs.INIT_INTEGER_MARKER);\n }\n }\n }\n }\n return true;\n }",
"public void buildShape(Shape shape) {\n\t\tbuildShape(shape, -1, false, 0);\n\t}",
"@Override\n public void build() {\n\n // Create the missive\n this.createMissive();\n }",
"public boolean createIndex(String indexName, Map<String, Object> mapping, Settings.Builder builder) throws IOException {\n CreateIndexRequest request = new CreateIndexRequest(indexName);\n if (null != builder) {\n request.settings(builder);\n }\n request.mapping(mapping);\n return createIndex(request);\n }",
"boolean insertRobot(Position pos, Robot rob);",
"@Test\n public void testBuild() {\n System.out.println(\"build\");\n game.getPlayer().setEps(0);\n assertEquals((Integer) 1, building.build());\n assertEquals((Integer) 0, game.getPlayer().getEps());\n \n game.getPlayer().setEps(600);\n assertEquals((Integer) 3, building.build());\n assertEquals((Integer) 600, game.getPlayer().getEps());\n \n game.getPlayer().setEps(800);\n assertEquals((Integer) 0, building.build());\n assertEquals((Integer) 300, game.getPlayer().getEps());\n \n game.getPlayer().setEps(1000);\n assertEquals((Integer) 2, building.build());\n assertEquals((Integer) 1000, game.getPlayer().getEps());\n }",
"@Test\n public void buildNotDome() {\n nextWorkerCell.setLevel(1);\n workerHephaestus.setCurrentWorkerCell(baseWorkerCell);\n workerHephaestus.build(nextWorkerCell);\n assertEquals(2, nextWorkerCell.getLevel());\n }",
"Builder addEducationalAlignment(AlignmentObject.Builder value);",
"public static void endBuilding(int posx, int posy)\n \t{\n \t\tif(Math.abs(startposx-posx)<Math.abs(startposy-posy)){\n \t\t\t// vertical\n \t\t\tendposx = startposx;\n \t\t\tendposy = posy;\n \t\t\tif(!Grid.isStripFree(startposx, startposy, endposy-startposy, true, ResourceManager.BUILDINGTYPE_STREET))return;\n\t\t\tint cost=0;\n \t\t\tif(startposy>endposy){\n \t\t\t\tint tmp = startposy;\n \t\t\t\tstartposy = endposy;\n \t\t\t\tendposy = tmp;\n \t\t\t}\n \t\t\tfor(int i=startposy;i<=endposy;i++){\n \t\t\t\tif(Grid.isAreaFree(startposx, i, 1, 1)){\n\t\t\t\t\tcost+=ResourceManager.getBuildingType(ResourceManager.BUILDINGTYPE_STREET).getBuidlingcost();\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(Main.money<cost)return; else Main.money-=cost;\n\t\t\tfor(int i=startposy;i<=endposy;i++){\n\t\t\t\tif(Grid.isAreaFree(startposx, i, 1, 1)){\n \t\t\t\t\tResourceManager.buildBuilding(startposx, 0, i, ResourceManager.BUILDINGTYPE_STREET);\n \t\t\t\t}\n \t\t\t}\n \t\t}else{\n \t\t\t// horizontal\n \t\t\tendposx = posx;\n \t\t\tendposy = startposy;\n \t\t\tif(!Grid.isStripFree(startposx, startposy, endposx-startposx, false, ResourceManager.BUILDINGTYPE_STREET))return;\n\t\t\tint cost=0;\n \t\t\tif(startposx>endposx){\n \t\t\t\tint tmp = startposx;\n \t\t\t\tstartposx = endposx;\n \t\t\t\tendposx = tmp;\n \t\t\t}\n \t\t\tfor(int i=startposx;i<=endposx;i++){\n \t\t\t\tif(Grid.isAreaFree(i, startposy, 1, 1)){\n\t\t\t\t\tcost+=ResourceManager.getBuildingType(ResourceManager.BUILDINGTYPE_STREET).getBuidlingcost();\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(Main.money<cost)return; else Main.money-=cost;\n\t\t\tfor(int i=startposx;i<=endposx;i++){\n\t\t\t\tif(Grid.isAreaFree(i, startposy, 1, 1)){\n \t\t\t\t\tResourceManager.buildBuilding(i, 0, startposy, ResourceManager.BUILDINGTYPE_STREET);\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t}",
"public void build(int a) {\n\t\tbuildings += a;\n\t\tif (buildings > 5)\n\t\t\tthrow new IllegalArgumentException(\"Cannot build past hotel!\");\n\t\tif (buildings < 0)\n\t\t\tthrow new IllegalArgumentException(\"Cannot build negative buildings!\");\n\t}",
"public boolean BuildStructure(StructureConfiguration configuration, ServerWorld world, BlockPos originalPos, Direction assumedNorth, PlayerEntity player) {\n BlockPos startBlockPos = this.clearSpace.getStartingPosition().getRelativePosition(originalPos, this.clearSpace.getShape().getDirection(), configuration.houseFacing);\n BlockPos endBlockPos = startBlockPos.offset(configuration.houseFacing.rotateYCounterclockwise(), this.clearSpace.getShape().getWidth() - 1)\n .offset(configuration.houseFacing.getOpposite(), this.clearSpace.getShape().getWidth() - 1)\n .offset(Direction.UP, this.clearSpace.getShape().getHeight());\n\n // Make sure this structure can be placed here.\n Triple<Boolean, BlockState, BlockPos> checkResult = BuildingMethods.CheckBuildSpaceForAllowedBlockReplacement(world, startBlockPos, endBlockPos, player);\n\n if (!checkResult.getFirst()) {\n // Send a message to the player saying that the structure could not\n // be built.\n TranslatableText message = new TranslatableText(\n GuiLangKeys.GUI_STRUCTURE_NOBUILD,\n Registry.BLOCK.getId(checkResult.getSecond().getBlock()).toString(),\n checkResult.getThird().getX(),\n checkResult.getThird().getY(),\n checkResult.getThird().getZ());\n\n message.setStyle(Style.EMPTY.withColor(Formatting.GREEN));\n player.sendMessage(message, false);\n return false;\n }\n\n if (!this.BeforeBuilding(configuration, world, originalPos, assumedNorth, player)) {\n // First, clear the area where the structure will be built.\n this.ClearSpace(configuration, world, originalPos, assumedNorth);\n\n boolean blockPlacedWithCobbleStoneInstead = false;\n\n // Now place all of the blocks.\n for (BuildBlock block : this.getBlocks()) {\n Block foundBlock = Registry.BLOCK.get(block.getResourceLocation());\n\n if (foundBlock != null) {\n BlockState blockState = foundBlock.getDefaultState();\n BuildBlock subBlock = null;\n\n // Check if water should be replaced with cobble.\n if (!this.WaterReplacedWithCobbleStone(configuration, block, world, originalPos, assumedNorth, foundBlock, blockState, player)\n && !this.CustomBlockProcessingHandled(configuration, block, world, originalPos, assumedNorth, foundBlock, blockState, player)) {\n block = BuildBlock.SetBlockState(configuration, world, originalPos, assumedNorth, block, foundBlock, blockState, this);\n\n if (block.getSubBlock() != null) {\n foundBlock = Registry.BLOCK.get(block.getSubBlock().getResourceLocation());\n blockState = foundBlock.getDefaultState();\n\n subBlock = BuildBlock.SetBlockState(configuration, world, originalPos, assumedNorth, block.getSubBlock(), foundBlock, blockState, this);\n }\n\n if (subBlock != null) {\n block.setSubBlock(subBlock);\n }\n\n boolean priorityTwoBlock = foundBlock instanceof HopperBlock;\n\n boolean priorityThreeBlock = foundBlock instanceof TorchBlock\n || foundBlock instanceof AbstractSignBlock\n || foundBlock instanceof LeverBlock\n || foundBlock instanceof AbstractButtonBlock\n || foundBlock instanceof BedBlock\n || foundBlock instanceof CarpetBlock\n || foundBlock instanceof FlowerPotBlock\n || foundBlock instanceof SugarCaneBlock\n || foundBlock instanceof AbstractPressurePlateBlock\n || foundBlock instanceof DoorBlock\n || foundBlock instanceof LadderBlock\n || foundBlock instanceof VineBlock\n || foundBlock instanceof RedstoneWireBlock\n || foundBlock instanceof AbstractRedstoneGateBlock\n || foundBlock instanceof AbstractBannerBlock\n || foundBlock instanceof LanternBlock\n || foundBlock instanceof MushroomBlock\n || foundBlock instanceof AbstractRailBlock;\n\n boolean priorityFourBlock = foundBlock instanceof SandBlock;\n\n boolean priorityFiveBlock = foundBlock instanceof SugarCaneBlock ||\n foundBlock instanceof CactusBlock\n || foundBlock instanceof DeadBushBlock\n || foundBlock instanceof CoralBlock\n || foundBlock instanceof RedstoneTorchBlock;\n\n if (!block.getHasFacing()) {\n if (subBlock != null) {\n block.setSubBlock(subBlock);\n }\n\n if (priorityFiveBlock) {\n this.priorityFiveBlocks.add(block);\n } else if (priorityFourBlock) {\n this.priorityFourBlocks.add(block);\n } else if (priorityThreeBlock) {\n this.priorityThreeBlocks.add(block);\n } else if (foundBlock instanceof AirBlock) {\n this.airBlocks.add(block);\n } else if (foundBlock instanceof BlockEntityProvider || priorityTwoBlock) {\n this.priorityTwoBlocks.add(block);\n } else {\n this.priorityOneBlocks.add(block);\n }\n } else {\n // These blocks may be attached to other facing blocks and must be done later.\n if (priorityThreeBlock) {\n this.priorityThreeBlocks.add(block);\n } else {\n this.priorityTwoBlocks.add(block);\n }\n }\n }\n } else {\n // Cannot find this block in the registry. This can happen if a structure file has a mod block that\n // no longer exists.\n // In this case, print an informational message and replace it with cobblestone.\n String blockTypeNotFound = block.getResourceLocation().toString();\n block = BuildBlock.SetBlockState(configuration, world, originalPos, assumedNorth, block, Blocks.COBBLESTONE, Blocks.COBBLESTONE.getDefaultState(), this);\n this.priorityOneBlocks.add(block);\n\n if (!blockPlacedWithCobbleStoneInstead) {\n blockPlacedWithCobbleStoneInstead = true;\n Prefab.logger\n .warn(\"A Block was in the structure, but it is not registered. This block was replaced with vanilla cobblestone instead. Block type not found: [\"\n + blockTypeNotFound + \"]\");\n }\n }\n }\n\n this.configuration = configuration;\n this.world = world;\n this.assumedNorth = assumedNorth;\n this.originalPos = originalPos;\n\n if (StructureEventHandler.structuresToBuild.containsKey(player)) {\n StructureEventHandler.structuresToBuild.get(player).add(this);\n } else {\n ArrayList<Structure> structures = new ArrayList<Structure>();\n structures.add(this);\n StructureEventHandler.structuresToBuild.put(player, structures);\n }\n }\n\n return true;\n }",
"public Builder position(String position) {\n\n\t\t\tthis.position = position;\n\t\t\treturn this;\n\t\t}",
"void buildBlock(Tile t);",
"private boolean canEntityBuild(User user, Location location) {\n Collection<TownBlock> blocks = TownyUniverse.getInstance().getDataSource().getAllTownBlocks();\n\n int x = (int)Math.floor(location.getX() / 16.0);\n int z = (int)Math.floor(location.getZ() / 16.0);\n\n TownyWorld world;\n try {\n world = TownyUniverse.getInstance().getDataSource().getWorld(location.getWorld().getName());\n } catch (Exception e) {\n return true;\n }\n\n TownBlock block = new TownBlock(x, z, world);\n\n return !blocks.contains(block);\n }",
"public void buildLocation() {\n try (PreparedStatement prep = Database.getConnection()\n .prepareStatement(\"CREATE TABLE IF NOT EXISTS location (location_name\"\n + \" TEXT, lat REAL, lon REAL PRIMARY KEY (location_name));\")) {\n prep.executeUpdate();\n } catch (final SQLException e) {\n e.printStackTrace();\n }\n }",
"@Test\n public void shouldCreateAnValidRoomAndPersistIt() throws Exception {\n\n\tfinal CreateRoomCommand command = new CreateRoomCommand(\n\t\tArrays.asList(validRoomOfferValues));\n\n\tfinal UrlyBirdRoomOfferService roomOfferService = new UrlyBirdRoomOfferService(\n\t\tdao, builder, isOccupancyIn48Hours, isRoomBookable);\n\n\twhen(isOccupancyIn48Hours.isSatisfiedBy((Date) any())).thenReturn(true);\n\twhen(dao.create(Arrays.asList(validRoomOfferValues))).thenReturn(\n\t\tvalidRoomOffer);\n\n\tfinal UrlyBirdRoomOffer createdRoomOffer = roomOfferService\n\t\t.createRoomOffer(command);\n\n\tverify(dao).create(Arrays.asList(validRoomOfferValues));\n\tassertThat(createdRoomOffer, is(equalTo(validRoomOffer)));\n }",
"public void pushOccupyingRobot(Vector2 pos) {\n IRobot robot = getRobotOnPos(pos);\n Direction dir = getValidDir(pos);\n\n if (dir != null && robot != null) {\n //System.out.println(robot.getName());\n //System.out.println(dir.toString());\n GameScreen.getInstance().unrenderRobot(robot);\n robot.moveOne(dir);\n GameScreen.getInstance().renderRobot(robot);\n }\n }",
"public boolean canBuild(int numToBuild) \n\t{\n\t\t return (numBuildings+numToBuild) <= MAX_NUM_UNITS;\n\t}"
] | [
"0.62738585",
"0.61519",
"0.61245596",
"0.59844583",
"0.5938411",
"0.58553064",
"0.57328176",
"0.56979597",
"0.5689633",
"0.5666148",
"0.56659186",
"0.5621099",
"0.55890644",
"0.55845946",
"0.5543481",
"0.55159146",
"0.5506487",
"0.5482368",
"0.54686123",
"0.5448218",
"0.543296",
"0.5425008",
"0.54211223",
"0.53981304",
"0.53922546",
"0.539153",
"0.5380487",
"0.5377021",
"0.5363758",
"0.535952",
"0.5358173",
"0.53577095",
"0.53517485",
"0.5342218",
"0.5335361",
"0.53336173",
"0.53314984",
"0.53287894",
"0.5328568",
"0.5306768",
"0.53060806",
"0.5292507",
"0.52887464",
"0.52833676",
"0.5281343",
"0.5272462",
"0.5264833",
"0.5258971",
"0.52567345",
"0.52335966",
"0.52335966",
"0.52335966",
"0.5214586",
"0.5211593",
"0.5204645",
"0.5187417",
"0.51750803",
"0.5166244",
"0.51426977",
"0.5136277",
"0.51204073",
"0.511923",
"0.5112887",
"0.5106814",
"0.5106526",
"0.5104839",
"0.51037663",
"0.510289",
"0.509945",
"0.50951254",
"0.508788",
"0.508788",
"0.5087164",
"0.5086415",
"0.50853",
"0.50833297",
"0.5083032",
"0.5081165",
"0.50757563",
"0.50755614",
"0.5069311",
"0.50682366",
"0.50633144",
"0.5062937",
"0.5062204",
"0.5051921",
"0.50459576",
"0.50424093",
"0.5036242",
"0.5032752",
"0.5029889",
"0.5026321",
"0.50246656",
"0.5023625",
"0.50231487",
"0.5019628",
"0.50184643",
"0.5017476",
"0.501323",
"0.50121224"
] | 0.6183609 | 1 |
Demolishers can take action when a building is removed | @FunctionalInterface
public interface Demolisher {
void demolish(BuildingModel building);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void doDeleteBuilding() {\r\n\t\tif (renderer.surface != null) {\r\n\t\t\tUndoableMapEdit undo = new UndoableMapEdit(renderer.surface);\r\n\t\t\tdeleteEntitiesOf(renderer.surface.buildingmap, renderer.selectedRectangle, true);\r\n\t\t\tundo.setAfter();\r\n\t\t\taddUndo(undo);\r\n\t\t\trepaint();\r\n\t\t}\r\n\t}",
"public static void deleteBuildingButtonClicked() {\n ObservableList<Building> allBuildings;\n allBuildings = tableBuilding.getItems();\n Building building = tableBuilding.getSelectionModel().getSelectedItem();\n\n allBuildings.remove(building);\n BuildingCommunication.removeBuilding(building.getId());\n }",
"@Override\n\tpublic void onRemove(final CSimulation game, final CUnit unit) {\n\t}",
"public void checkForRemoval()\n {\n if (life <= 0)\n {\n SideScrollingWorld world = (SideScrollingWorld) getWorld(); \n \n world.isPacmanDead = true;\n getWorld().removeObject(this);\n }\n }",
"public void removed() {\n }",
"public abstract void removedFromWidgetTree();",
"public abstract void onRemoveAction();",
"public void onRemovedWork(Map<DuccId, IDuccWork> removedWorkMap);",
"public void DoRemoveFromNest(Holdable p);",
"protected abstract void checkRemoved();",
"public void removeFightsystem( Fightsystem fightsystem )\r\n {\n\r\n }",
"public void entityRemoved() {}",
"public void removeAgent(Agent a)\n/* 81: */ {\n/* 82:132 */ this.mapPanel.removeAgent(a);\n/* 83: */ }",
"void removeHas_action(Action oldHas_action);",
"@Override\r\n\tpublic void perform() {\n\t\tview.removeMapMonster(toremove);\r\n\t}",
"void removeFromGame() {\n\t\t// remove from game\n\t\t//only for multi-player\n\t}",
"public abstract void onRemove();",
"public void remove() {\r\n\tif (kingdom != null && currentEffect != null)\r\n\t currentEffect.removeFrom(kingdom);\r\n\tcurrentEffect = null;\r\n }",
"public void deleteInstance(){\n //cancels the runnable\n shouldCancelRunnable = true;\n //remove the chest from the map to avoid confusion\n this.location.getBlock().setType(Material.AIR);\n //unregister from all events, we're done!\n HandlerList.unregisterAll(this);\n }",
"@Override\n public void onRemoval() {\n try {\n if (eOutputHatches != null) {\n for (GT_MetaTileEntity_Hatch_ElementalContainer hatch_elemental : eOutputHatches) {\n hatch_elemental.id = -1;\n }\n for (GT_MetaTileEntity_Hatch_ElementalContainer hatch_elemental : eInputHatches) {\n hatch_elemental.id = -1;\n }\n for (GT_MetaTileEntity_Hatch_OutputData hatch_data : eOutputData) {\n hatch_data.id = -1;\n hatch_data.q = null;\n }\n for (GT_MetaTileEntity_Hatch_InputData hatch_data : eInputData) {\n hatch_data.id = -1;\n }\n for (GT_MetaTileEntity_Hatch_Uncertainty hatch : eUncertainHatches) {\n hatch.getBaseMetaTileEntity().setActive(false);\n }\n for (GT_MetaTileEntity_Hatch_Param hatch : eParamHatches) {\n hatch.getBaseMetaTileEntity().setActive(false);\n }\n }\n cleanOutputEM_EM();\n if (ePowerPass && getEUVar() > V[3] || eDismantleBoom && mMaxProgresstime > 0 && areChunksAroundLoaded_EM()) {\n explodeMultiblock();\n }\n } catch (Exception e) {\n if (DEBUG_MODE) {\n e.printStackTrace();\n }\n }\n }",
"@Override\n public void delete(Long id) {\n log.debug(\"Request to delete Building : {}\", id);\n buildingRepository.delete(id);\n }",
"public void remove() {\n/* 1379 */ super.remove();\n/* 1380 */ this.inventoryMenu.removed(this);\n/* 1381 */ if (this.containerMenu != null) {\n/* 1382 */ this.containerMenu.removed(this);\n/* */ }\n/* */ }",
"public void removeFightsystem( Long fightsystemId )\r\n {\n\r\n }",
"public void removeAgent(String layer, Agent a)\n/* 175: */ {\n/* 176:247 */ this.mapPanel.removeAgent(layer, a);\n/* 177: */ }",
"public void removeFromGame(){\n this.isInGame = false;\n }",
"@Override\n public void unInvoke() {\n final Environmental item = affected;\n if (item == null)\n return;\n final Room room = CMLib.map().roomLocation(item);\n if ((canBeUninvoked()) && (room != null))\n room.showHappens(CMMsg.MSG_OK_VISUAL, item, L(\"<S-YOUPOSS> flaming sword is consumed!\"));\n super.unInvoke();\n if ((canBeUninvoked()) && (room != null)) {\n room.recoverRoomStats();\n item.destroy();\n }\n }",
"void removeIsPerformOf(Role oldIsPerformOf);",
"protected void removeLane()\n {\n if (lane == 1)\n {\n\n MyWorld.Lane1Monsters.remove(this);\n getWorld().removeObject(this);\n\n }\n\n else if (lane == 2)\n {\n MyWorld.Lane2Monsters.remove(this);\n getWorld().removeObject(this);\n\n }\n\n else if (lane == 3)\n {\n MyWorld.Lane3Monsters.remove(this);\n getWorld().removeObject(this);\n\n }\n\n else if (lane == 4)\n {\n MyWorld.Lane4Monsters.remove(this);\n getWorld().removeObject(this);\n\n }\n\n else if (lane == 5)\n {\n MyWorld.Lane5Monsters.remove(this);\n getWorld().removeObject(this);\n\n }\n MyWorld.monsterAdded();\n }",
"public void remove() {\n\t\tstopFloating();\t\n\t\tPacketHandler.toggleRedTint(player, false);\n\t\tplayer.addPotionEffect(new PotionEffect(PotionEffectType.BLINDNESS, 30, 1));\n\t\tplayer.stopSound(Sound.MUSIC_DISC_CHIRP);\n\t\tcleanTasks();\n\t\tactiveScenarios.remove(player.getUniqueId());\n\t}",
"public void removeArtifact() {\r\n \t\tRationaleUpdateEvent l_updateEvent = m_eventGenerator.MakeUpdated();\r\n \t\tl_updateEvent.setTag(\"artifacts\");\r\n \t\tm_eventGenerator.Broadcast(l_updateEvent);\r\n \t}",
"void removePerformAt(Facility oldPerformAt);",
"@Override\n\tpublic void onDeleteRoomDone(RoomEvent arg0) {\n\t\t\n\t}",
"void removeBomb();",
"public void remove(){\n Api.worldRemover(getWorld().getWorldFolder());\n }",
"public void remove () {}",
"public boolean deleteBuild(int buildId);",
"@Override\n public void removed(Entity e) {\n AI ai = AIm.get(e);\n if (ai.active) {\n ai.active = false;\n startMove = startAction = true;\n groupAiDone= false;\n screen.processTurn();\n // Future note: This transition comes quite abruptly.\n // It would be nice to somehow delay it, but because\n // the entity has just been removed, it won't be\n // processed any more. Perhaps give processTurn()\n // a boolean argument which will pause for a second\n // or so before selecting the new entity and moving\n // the camera on.\n\n }\n }",
"boolean removeHome(IGeneticMob geneticMob);",
"@Override\n\tpublic void removeGoal(Goal g) {\n\t\t\n\t}",
"public void eliminar(DetalleArmado detallearmado);",
"void moveRemoved(Move move);",
"public void takenOrDead(Caldean du)\n{\n if(du.isFemale())\n eligibleDuas.remove(du);\n\n else\n eligibleDuises.remove(du);\n\n}",
"public void removeThing(){\n thing = null;\n }",
"public void remove() {\r\n //\r\n }",
"public static void Cleaning() { \n \n System.out.println(\"The room has been cleaned!\");\n \n }",
"void removeBuildingBlock(BuildingBlock buildingBlock) throws BusinessException;",
"@Override\n public void visit(DiningRoom s) {\n s.getCleanUp();\n }",
"void removeHasAlcoholBloodContent(Object oldHasAlcoholBloodContent);",
"void deleteEntitiesOf(Map<Location, SurfaceEntity> map, Rectangle rect, boolean checkBuildings) {\r\n\t\t// find buildings falling into the selection box\r\n\t\tif (rect != null) {\r\n\t\t\tBuilding bld = null;\r\n\t\t\tfor (int a = rect.x; a < rect.x + rect.width; a++) {\r\n\t\t\t\tfor (int b = rect.y; b > rect.y - rect.height; b--) {\r\n\t\t\t\t\tSurfaceEntity se = map.get(Location.of(a, b));\r\n\t\t\t\t\tif (se != null) {\r\n\t\t\t\t\t\tint x = a - se.virtualColumn;\r\n\t\t\t\t\t\tint y = b + se.virtualRow;\r\n\t\t\t\t\t\tfor (int x0 = x; x0 < x + se.tile.width; x0++) {\r\n\t\t\t\t\t\t\tfor (int y0 = y; y0 > y - se.tile.height; y0--) {\r\n\t\t\t\t\t\t\t\tmap.remove(Location.of(x0, y0));\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (checkBuildings) {\r\n\t\t\t\t\t\tfor (int i = renderer.surface.buildings.size() - 1; i >= 0; i--) {\r\n\t\t\t\t\t\t\tbld = renderer.surface.buildings.get(i);\r\n\t\t\t\t\t\t\tif (bld.containsLocation(a, b)) {\r\n\t\t\t\t\t\t\t\trenderer.surface.buildings.remove(i);\r\n\t\t\t\t\t\t\t\tif (bld == currentBuilding) {\r\n\t\t\t\t\t\t\t\t\trenderer.buildingBox = null;\r\n\t\t\t\t\t\t\t\t\tcurrentBuilding = null;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tfor (int i = renderer.surface.features.size() - 1; i >= 0; i--) {\r\n\t\t\t\t\t\t\tSurfaceFeature sf = renderer.surface.features.get(i);\r\n\t\t\t\t\t\t\tif (sf.containsLocation(a, b)) {\r\n\t\t\t\t\t\t\t\trenderer.surface.features.remove(i);\r\n\t\t\t\t\t\t\t\tif (sf.equals(currentBaseTile)) {\r\n\t\t\t\t\t\t\t\t\tcurrentBaseTile = null;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (checkBuildings && bld != null) {\r\n\t\t\t\tplaceRoads(bld.techId);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\n\tpublic void despawn() {\n\t\t\n\t}",
"@Override\r\n\tpublic void keyPressed(PInputEvent e) {\r\n\t\tif (e.getKeyCode() == java.awt.event.KeyEvent.VK_DELETE) {\r\n\t\t\tfor (Iterator<PNode> selectedNodesIterator = getSelection().iterator(); \r\n\t\t\t\t\tselectedNodesIterator.hasNext();) {\r\n\t\t\t\tPNode currentSelectedNode = (PNode) selectedNodesIterator.next();\r\n\t\t\t\t\r\n\t\t\t\tif (GlobalConstants.COMPARTMENT_TYPE_ATTRIBUTE_VALUE\r\n\t\t\t\t\t\t.equalsIgnoreCase((String) currentSelectedNode\r\n\t\t\t\t\t\t\t\t.getAttribute(GlobalConstants.NODE_TYPE_ATTRIBUTE_NAME))) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tString compartmentID = currentSelectedNode\r\n\t\t\t\t\t\t\t\t\t\t\t.getAttribute(GlobalConstants.NODE_ID_ATTRIBUTE_NAME)\r\n\t\t\t\t\t\t\t\t\t\t\t\t.toString();\r\n\t\t\t\t\t\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * This will take care of deleting all in memory transitions as well.\r\n\t\t\t\t\t * */\r\n\t\t\t\t\t((PCompartment) currentSelectedNode).removeInMemoryCompartment();\r\n\t\t\t\t\t\r\n\t\t\t\t\tcompartmentIDToLabelMap.removeCompartmentID(compartmentID);\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tList<PNode> currentSelectedNodeTransitions = \r\n\t\t\t\t\t\t\t((List<PNode>) currentSelectedNode\r\n\t\t\t\t\t\t\t\t\t.getAttribute(GlobalConstants\r\n\t\t\t\t\t\t\t\t\t\t\t.COMPARTMENT_TRANSITIONS_ATTRIBUTE_NAME));\r\n\t\t\t\t\t\r\n\t\t\t\t\tfor (PNode currentTransition : currentSelectedNodeTransitions) {\r\n\t\t\t\t\t\tcurrentTransition.removeFromParent();\r\n\t\t\t\t\t\tcurrentTransition = null;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t} else if (GlobalConstants.SIMPLE_TRANSITION_TYPE_ATTRIBUTE_VALUE\r\n\t\t\t\t\t\t\t\t.equalsIgnoreCase((String) currentSelectedNode\r\n\t\t\t\t\t\t\t\t\t\t.getAttribute(GlobalConstants.NODE_TYPE_ATTRIBUTE_NAME))) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tSystem.out.println(\"SIMPLE TRANSITION DELETE\");\r\n\t\t\t\t\t((SimpleTransition) currentSelectedNode).removeInMemoryRatioTransition();\r\n\t\t\t\t\t\r\n\t\t\t\t} else if (GlobalConstants.COMPLEX_TRANSITION_TYPE_ATTRIBUTE_VALUE\r\n\t\t\t\t\t\t.equalsIgnoreCase((String) currentSelectedNode\r\n\t\t\t\t\t\t\t\t.getAttribute(GlobalConstants.NODE_TYPE_ATTRIBUTE_NAME))) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tSystem.out.println(\"COMPLEX TRANSITION DELETE\");\r\n\t\t\t\t\t((ComplexTransition) currentSelectedNode)\r\n\t\t\t\t\t\t\t.removeInfectorInformationPanels(currentSelectedNode);\r\n\t\t\t\t\t\r\n\t\t\t\t\t((ComplexTransition) currentSelectedNode).removeInMemoryInfectionTransitions();\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tsuper.keyPressed(e);\t\t\r\n\t}",
"public void removeShipment(){\n String message = \"Choose one of the shipment to remove\";\n if (printData.checkAndPrintShipment(message,data.getBranchEmployee(ID).getBranchID())){\n subChoice = GetChoiceFromUser.getSubChoice(data.numberOfShipment());\n if (subChoice!=0){\n data.getBranch(data.getShipment(subChoice-1).getBranchID()).removeShipment(data.getShipment(subChoice-1));\n data.removeShipment(data.getShipment(subChoice-1),data.getShipment(subChoice-1).getReceiver());\n System.out.println(\"Your Shipment has removed Successfully!\");\n }\n }\n }",
"public void dies(){\n currentNode.deleteAnt(this);\n \n }",
"@Override\n\tpublic void excluir() {\n\t\t\n\t}",
"public void removeOrganMistake() {\n records.remove(selectedRecord);\n DonorReceiver account = accountManager.getAccountsByNHI(selectedRecord.getNhi()).get(selectedRecord.getNhi());\n TransplantWaitingList.removeOrganMistake(selectedRecord, accountManager);\n PageNav.loadNewPage(PageNav.TRANSPLANTLIST);\n }",
"private void removeEvent() {\n Event event = selectEvent(\"Which event would you like to delete?\");\n world.removeEvent(event);\n System.out.println(\"Removed \" + event.getName() + \"!\");\n }",
"public void removeAllFightsystems()\r\n {\n\r\n }",
"@Override\n\t\tpublic void remove() {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void remove() {\n\t\t\t\n\t\t}",
"public void itemRemoved(boolean wasSelected);",
"public void deleteRoom(Room room);",
"public void removeUnit(){\r\n tacUnit = null;\r\n }",
"private void deleteJob(int floorNumber){\n jobs.remove(floorNumber);\n }",
"public void enemyoff(){\n getWorld().removeObject(this);\n }",
"void removeFlight(Flight flight);",
"public synchronized void removeTheWarrior(){\n charactersOccupiedTheLocation[0]=null;\n notifyAll();\n }",
"public void remove() {\n super.remove();\n if (this.caughtEntity != null) {\n this.caughtEntity.noClip = false;\n }\n if (this.angler != null) {\n this.angler.fishingBobber = null;\n this.angler.noClip = false;\n }\n if(this.rod.getItem() == Items.ITEM_GRAB_HOOK){\n this.rod.getOrCreateTag().putBoolean(\"cast\", false);\n }\n }",
"void doCut(boolean surface, boolean building) {\r\n\t\tdoCopy(surface, building);\r\n\t\tif (surface && building) {\r\n\t\t\tdoDeleteBoth();\r\n\t\t} else\r\n\t\tif (surface) {\r\n\t\t\tdoDeleteSurface();\r\n\t\t} else\r\n\t\tif (building) {\r\n\t\t\tdoDeleteBuilding();\r\n\t\t}\r\n\t}",
"public boolean getDestroyBuilding(IEntity enemyBuilding){\n return tempUnit.getDestroyBuilding(enemyBuilding);\n }",
"@Override\r\n\tpublic void delete(Estates arg0) {\n\t\t\r\n\t}",
"public abstract boolean depleteItem();",
"public void makesNotHere(){this.piece.unAffect();}",
"private void remove() {\n disableButtons();\n clientgui.getClient().sendDeleteEntity(cen);\n cen = Entity.NONE;\n }",
"public void remove() {\n\t}",
"public void remove() {\n\t}",
"@Override\n\tpublic void doDelete() {\n\t\tLOG.info(\"deleting agent\");\n\t\tsuper.doDelete();\n\t}",
"private void deleteRoutine() {\n String message = \"Are you sure you want to delete this routine\\nfrom your routine collection?\";\n int n = JOptionPane.showConfirmDialog(this, message, \"Warning\", JOptionPane.YES_NO_OPTION);\n if (n == JOptionPane.YES_OPTION) {\n Routine r = list.getSelectedValue();\n\n collection.delete(r);\n listModel.removeElement(r);\n }\n }",
"public void remove () { this.setAsDown(); n.remove(); }",
"@CrossOrigin(origins = \"*\")\n @DeleteMapping(\"/buildings/delete/{building_id}\")\n public @ResponseBody\n void deleteBuilding(\n @PathVariable(\"building_id\") final long building_id) { buildingService.deleteBuilding(building_id); }",
"void removeProduces(Computer oldProduces);",
"public void removeJob(int jNo);",
"public void processRemoveStation() {\n AppYesNoDialogSingleton dialog = AppYesNoDialogSingleton.getSingleton();\n \n // POP UP THE DIALOG\n dialog.show(\"Remove Station\", \"Are you sure you want to remove this station?\");\n \n // DO REMOVE LINE \n dataManager.removeStation(); \n }",
"public void flightDisappear();",
"@Override\r\n\t\tpublic void remove() {\r\n\t\t\t// YOU DO NOT NEED TO WRITE THIS\r\n\t\t}",
"@Override\n public void doRemove()\n {\n Player target = p.getServer().getPlayer(targetID);\n if (target == null)\n return;\n\n // teleport them back to their original location\n target.teleport(originalLocation);\n\n // remove flying and immobolize effects\n for (O2EffectType effectType : additionalEffects)\n {\n Ollivanders2API.getPlayers().playerEffects.removeEffect(targetID, effectType);\n }\n }",
"static void RemoveObserver(Ship a_ship){}",
"public void remove();",
"public void remove();",
"public void remove();",
"public void remove();",
"public void remove();",
"private void removeCards(int pileNumber, List<Card> build) {\n List<Card> pile = cascadePiles.get(pileNumber);\n for (Card c : build) {\n pile.remove(c);\n }\n }",
"@Override\n\tpublic void remove() {\n\t\t\n\t}",
"@Override\n\tpublic void remove() {\n\t\t\n\t}",
"@Override\n\tpublic void remove() {\n\t\t\n\t}",
"@Override\n\tpublic void remove() {\n\t\t\n\t}",
"@Override\n\tpublic void remove() {\n\t\t\n\t}",
"@Override\n\tpublic void remove() {\n\t\t\n\t}",
"@Override\n\tpublic void remove() {\n\t\t\n\t}",
"@Override\n\tpublic void remove() {\n\t\t\n\t}"
] | [
"0.7057345",
"0.66276264",
"0.6504666",
"0.611761",
"0.61098105",
"0.60133094",
"0.60075223",
"0.60000235",
"0.5978883",
"0.595751",
"0.59525037",
"0.59238183",
"0.5915576",
"0.5866786",
"0.5865198",
"0.5862336",
"0.5855995",
"0.58497214",
"0.58442336",
"0.5807558",
"0.58017784",
"0.5800793",
"0.5794514",
"0.5780441",
"0.57695705",
"0.5764284",
"0.57524633",
"0.5750854",
"0.5744251",
"0.5737968",
"0.57292444",
"0.5721623",
"0.5691863",
"0.5679389",
"0.5675605",
"0.5661528",
"0.5653995",
"0.5650071",
"0.5642868",
"0.5641103",
"0.5639042",
"0.5638969",
"0.56358665",
"0.56346744",
"0.5627475",
"0.56183964",
"0.5618161",
"0.559971",
"0.5596278",
"0.5595135",
"0.5592488",
"0.5591226",
"0.55739427",
"0.5569496",
"0.5568352",
"0.55674577",
"0.5567103",
"0.5560563",
"0.5560563",
"0.5558592",
"0.5558062",
"0.55563045",
"0.55442965",
"0.55442435",
"0.55417126",
"0.55413735",
"0.55381227",
"0.5537737",
"0.55364615",
"0.553036",
"0.5528427",
"0.5526434",
"0.55255765",
"0.55096596",
"0.55096596",
"0.5501956",
"0.5500271",
"0.5497376",
"0.5491448",
"0.54911953",
"0.54827017",
"0.5480281",
"0.5476621",
"0.54753304",
"0.54632515",
"0.5462133",
"0.5458938",
"0.5458938",
"0.5458938",
"0.5458938",
"0.5458938",
"0.5455833",
"0.5453179",
"0.5453179",
"0.5453179",
"0.5453179",
"0.5453179",
"0.5453179",
"0.5453179",
"0.5453179"
] | 0.5998869 | 8 |
Tests for serializer initialization | @Test
public void testInitializeWithSerializer() throws Exception {
final TypeSerializer<String> serializer = StringSerializer.INSTANCE;
final TestStateDescriptor<String> descr = new TestStateDescriptor<>("test", serializer);
assertTrue(descr.isSerializerInitialized());
assertNotNull(descr.getSerializer());
assertTrue(descr.getSerializer() instanceof StringSerializer);
// this should not have any effect
descr.initializeSerializerUnlessSet(new ExecutionConfig());
assertTrue(descr.isSerializerInitialized());
assertNotNull(descr.getSerializer());
assertTrue(descr.getSerializer() instanceof StringSerializer);
TestStateDescriptor<String> clone = CommonTestUtils.createCopySerializable(descr);
assertTrue(clone.isSerializerInitialized());
assertNotNull(clone.getSerializer());
assertTrue(clone.getSerializer() instanceof StringSerializer);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Before\n public void startUp() {\n registry = new DeserializerRegistryImpl();\n registry.init();\n }",
"private SerializerFactory() {\r\n registerAvailableSerializers();\r\n }",
"@Before\n public void setUp() {\n InternalDataSerializer.reinitialize();\n }",
"@Test\n public void testInitializeSerializerAfterSerializationWithCustomConfig() throws Exception {\n assertEquals(\n \"broken test assumption\",\n -1,\n new KryoSerializer<>(String.class, new ExecutionConfig())\n .getKryo()\n .getRegistration(File.class)\n .getId());\n\n final ExecutionConfig config = new ExecutionConfig();\n config.registerKryoType(File.class);\n\n final TestStateDescriptor<Path> original = new TestStateDescriptor<>(\"test\", Path.class);\n TestStateDescriptor<Path> clone = CommonTestUtils.createCopySerializable(original);\n\n clone.initializeSerializerUnlessSet(config);\n\n // serialized one (later initialized) carries the registration\n assertTrue(\n ((KryoSerializer<?>) clone.getSerializer())\n .getKryo()\n .getRegistration(File.class)\n .getId()\n > 0);\n }",
"private SerializerFactory() {\n // do nothing\n }",
"private SerializationUtils() {\n\t\tthrow new AssertionError();\n\t}",
"public Commande_structureSerializationTest(){\n }",
"@Before\n public void init() {\n user = new User();\n user.setId(5);\n user.setUsername(\"username\");\n user.setPassword(\"password\");\n user.setName(\"name\");\n user.setSurname(\"surname\");\n user.setCityId(1);\n user.setEmail(\"[email protected]\");\n user.setPhone(\"phone...\");\n JacksonTester.initFields(this, new ObjectMapper());\n }",
"private SerializationUtils() {\n\n }",
"@Test\n public void testCreate() {\n //System.out.println(\"create\");\n URI context = URI.create(\"file:test\");\n LemonSerializerImpl instance = new LemonSerializerImpl(null);\n instance.create(context);\n }",
"@BeforeClass\n\tpublic static void unregisterAllDataSerializersBeforeTests() {\n\t\tunregisterAllDataSerializers();\n\t}",
"@Test\n\tpublic void testInit() {\n\t\t/*\n\t\t * This test is just use to initialize everything and ensure a better\n\t\t * performance measure for all the other tests.\n\t\t */\n\t}",
"@SuppressWarnings(\"deprecation\")\n @Before\n public void setUp() throws Exception\n {\n final AnnotationIntrospector pair = AnnotationIntrospector.pair(new JaxbAnnotationIntrospector(), new JacksonAnnotationIntrospector());\n\n _objectMapper = new ObjectMapper();\n _objectMapper.setAnnotationIntrospectors(pair, pair);\n\n // Make sure we've got some test data on hand.\n _streamStateDao.saveOrUpdateStreamMetadata(createMetadata(\"BusyFile\", StreamStatus.IN_PROGRESS, 1024, System.currentTimeMillis(), System.currentTimeMillis()));\n _streamStateDao.saveOrUpdateStreamMetadata(createMetadata(\"DoneFile\", StreamStatus.SUCCESSFUL, 2048, System.currentTimeMillis(), System.currentTimeMillis()));\n }",
"void assertDeserialized(Serializable initial, Serializable deserialized);",
"@BeforeClass\n public static void setUp() {\n revContent = RevContent.builder().build();\n Token token = new Token();\n token.setAccessToken(\"fd2fbd63435b7f80fb1d7d5f1b1841c16fe70d2c\");\n auth = new Authentication(null, token);\n objectMapper = SerializationMapperCreator.createObjectMapper(new SerializationConfig());\n }",
"private void init() {\n\t\tinitProtocol();\n\t\tinitResultStorage();\n\t}",
"@Stub\n\tpublic void init()\n\t{\n\t\t//\n\t}",
"private JsonUtils() {\n\t\tsuper();\n\t}",
"@Before\n @Override\n public void init() {\n }",
"@Test\n public void testSerializeSimpleObject() throws Exception {\n schemaLoader = spy(RpcSchemaLoader.class);\n\n JsonNode responseSchema = om.readTree(\n \"{\\\"$ref\\\" : \\\"derived.json#/definitions/SomeStruct\\\"} \");\n // make the schema loader act as if there is a method called 'testMethod'\n // that has response schema\n doReturn(responseSchema).when(\n schemaLoader).loadResponseSchema(\"testMethod\");\n\n // make the schema loader act as if there is an Aion RPC type defined\n // at reference \"derived.json#/definitions/SomeStruct\" with the\n // JsonSchema of someStructTypeDef.\n JsonSchemaRef someStructTypeDef = new JsonSchemaRef(\n \"derived.json#/definitions/SomeStruct\");\n doReturn(someStructJsonSchema).when(\n schemaLoader).loadType(someStructTypeDef);\n\n ResponseSerializer unit = new ResponseSerializer(\n new JsonSchemaTypeResolver(schemaLoader),\n schemaLoader, om);\n String result = unit.serialize(\n new JsonRpcResponse(new SomeStruct(\n SerializationUtils.hexStringToByteArray(\"0x68d1d3bffe8672cf1e9e85fbdb9f62744ccf7d7ac5848e7d46441169db99112a\"),\n BigInteger.valueOf(1337)\n ), \"1.0\"),\n \"testMethod\");\n\n // can't just compare the whole string because ordering\n // of object fields aren't fixed\n JsonNode resultJson = om.readTree(result);\n assertThat(resultJson.get(\"myQuantity\").asText(), is(\"0x539\"));\n assertThat(resultJson.get(\"myData\").asText(),\n is(\"0x68d1d3bffe8672cf1e9e85fbdb9f62744ccf7d7ac5848e7d46441169db99112a\"));\n\n }",
"@Override\r\n @BeforeEach\r\n public void init() throws Exception\r\n {\r\n objetTest = new LocalDateTimeConverter();\r\n }",
"@Test\n public void testInitialize() {\n System.out.println(\"Initialize\");\n instance.Initialize(); //calls individual Rate initializer\n assertNotNull(instance);\n }",
"private void registerAvailableSerializers() {\r\n LOG.info(\"Registering available serializer object\");\r\n mSerializers.put(XML, new XmlObjectBaseSerializer());\r\n mSerializers.put(PHP, new PHPObjectBaseSerializer());\r\n }",
"@Override\n public void initialize(Bootstrap<?> bootstrap) {\n bootstrap.setObjectMapper(io.dropwizard.jackson.Jackson.newMinimalObjectMapper());\n // avoids warning regarding com.fasterxml.jackson.databind.util.ClassUtil\n bootstrap.getObjectMapper().registerModule(new Jdk8Module());\n\n Jackson.initObjectMapper(bootstrap.getObjectMapper());\n bootstrap.getObjectMapper().setDateFormat(new StdDateFormat());\n // See https://github.com/dropwizard/dropwizard/issues/1558\n bootstrap.getObjectMapper().enable(MapperFeature.ALLOW_EXPLICIT_PROPERTY_RENAMING);\n }",
"public SingleOperationMarshallingTest() {\n }",
"@Before\n public void init() {\n final Map<String, DataType> defaultTypes = new HashMap<>();\n defaultTypes.put(\"frieda\", StringCell.TYPE);\n defaultTypes.put(\"berta\", StringCell.TYPE);\n ReadAdapterFactory<String, String> readAdapterFactory = new ReadAdapterFactory<String, String>() {\n\n @Override\n public ReadAdapter<String, String> createReadAdapter() {\n return new TestReadAdapter();\n }\n\n @Override\n public ProducerRegistry<String, ? extends ReadAdapter<String, String>> getProducerRegistry() {\n return m_producerRegistry;\n }\n\n @Override\n public Map<String, DataType> getDefaultTypeMap() {\n return defaultTypes;\n }\n\n };\n m_testInstance = new DefaultTypeMappingFactory<>(readAdapterFactory);\n }",
"public void setSerializer(Object serializer);",
"public ObjectSerializationEncoder() {\n // Do nothing\n }",
"@Test\n public void serialization_beforeUse() throws Exception {\n final WebClient client = getWebClient();\n final WebClient copy = clone(client);\n assertNotNull(copy);\n }",
"@Override\n\tpublic void init(String file_name) { deserialize(file_name); }",
"private void init() throws Exception{\n mapper = new ObjectMapper();\n\n // Create the linkRequest\n attribute = AttributeFixture.standardAttribute();\n\n\n }",
"public JSONHeldEventSerializationHelperTest() {\n\t\tsuper(1, \"JSONHeldEventSerializationHelperTest\");\n\t}",
"@Before\n public void init() {\n }",
"public void testInit() {\n System.out.println(\"init\");\n CloudResourceFactoryFactory instance = new CloudResourceFactoryFactory();\n instance.init();\n\n WebDavResponseHandler result = instance.createResponseHandler();\n assertNotNull(result);\n\n\n ResourceFactory result2 = instance.createResourceFactory();\n assertNotNull(result2);\n\n }",
"@Before\n\tpublic void init() {\n\t}",
"public void testConstructor() {\r\n assertNotNull(\"unable to create instance\", instance);\r\n }",
"public void testInitialization() {\n assertNotNull(container);\n }",
"public WCSResponseSerializer()\r\n {\r\n }",
"public JSONUtils() {\n\t\tsuper();\n\t}",
"public JSONLoader() {}",
"private void init() {\n }",
"void loadData() throws SerializerException;",
"@Before\n\tpublic void init() {\n\t\tbankingTransactionDTO = new BankingTransactionDTO();\n\t\tbankingTransactionDTO.setType(\"deposit\");\n\t\tbankingTransactionDTO.setAmount(100.77d);\n\n\t\t// mock initialization\n\n\t}",
"@Test\n public void init() {\n }",
"private JsonUtils()\r\n {\r\n // Private constructor to prevent instantiation\r\n }",
"private JSONHelper() {\r\n\t\tsuper();\r\n\t}",
"public static void init() {\n }",
"public static void init() {\n }",
"@Test\n\tpublic void test_chemistry_project_validation_null_Serialization() throws Exception {\n\t\tassertEquals(null, new ChemistryProjectGlobalValidation().toJSONOBJ());\n\t}",
"@org.junit.Test\n public void testSerialize() {\n System.out.println(\"Serialize\");\n\n //setup\n FavoriteAlarm alarm = new FavoriteAlarm(new LocalTime(9,00), \"www.test.com\");\n FavoriteAlarmPropertiesService instance = new FavoriteAlarmPropertiesService();\n\n //act\n String result = instance.Serialize(alarm);\n\n //assert\n String expResult = \"9:00 AM|www.test.com\";\n assertEquals(expResult, result);\n }",
"@Test\r\n public void testSerialReader() {\n Assert.assertTrue(true);\r\n }",
"protected void initialize() {}",
"protected void initialize() {}",
"private JsonUtils() {}",
"public static void init() {}",
"public TestRunJsonParser(){\n }",
"@Test\n public void testInit()\n {\n SalesItem salesIte1 = new SalesItem(\"test name\", 1000);\n assertEquals(\"test name\", salesIte1.getName());\n assertEquals(1000, salesIte1.getPrice());\n }",
"private void init() {\n }",
"private void init() {\n }",
"private void init() {\n }",
"private void init() {\n }",
"@Test\n public void testInit() {\n SpringRegistry.init();\n assertNotNull(SpringRegistry.getBusinessProxy());\n assertNotNull(SpringRegistry.getTransactionManager());\n }",
"@Override\r\n\tpublic void init() {}",
"@Test\n public void testSerializerDuplication() throws Exception {\n // we need a serializer that actually duplicates for testing (a stateful one)\n // we use Kryo here, because it meets these conditions\n TypeSerializer<String> statefulSerializer =\n new KryoSerializer<>(String.class, new ExecutionConfig());\n\n TestStateDescriptor<String> descr = new TestStateDescriptor<>(\"foobar\", statefulSerializer);\n\n TypeSerializer<String> serializerA = descr.getSerializer();\n TypeSerializer<String> serializerB = descr.getSerializer();\n\n // check that the retrieved serializers are not the same\n assertNotSame(serializerA, serializerB);\n }",
"protected void initialize() {\n \t\n }",
"SerializeFactory getSerializeFactory();",
"@Override\n\t\tpublic void init() {\n\t\t}",
"@Test\n public void serialSimpleTest(){\n\n byte b = 1;\n Object obj = new SimpleObject(1, 1.0, 1f, b);\n Document document = Serializer.serialize(obj);\n assertNotNull(document);\n\n assertNotNull(document.getRootElement());\n Element rootElement = document.getRootElement();\n assertTrue(rootElement.getName().equals(\"serialized\"));\n assertNotNull(rootElement.getChildren());\n\n List objList = rootElement.getChildren();\n assertNotNull(objList);\n assertNotNull(objList.get(0));\n\n Element objElement = (Element) objList.get(0);\n assertTrue(objElement.getName().equals(\"object\"));\n assertNotNull(objElement.getAttribute(\"class\"));\n assertNotNull(objElement.getAttribute(\"id\"));\n assertNull(objElement.getAttribute(\"length\"));\n assertEquals(\"0\", objElement.getAttributeValue(\"id\"));\n assertNotNull(objElement.getChildren());\n\n\n List objContents = objElement.getChildren();\n for (int i =0; i < objContents.size(); i++){\n Element contentElement = (Element) objContents.get(i);\n assertEquals(null, contentElement.getAttributeValue(\"declaringclass\"));\n assertNotNull(contentElement.getValue());\n\n if(contentElement.getName().equals(\"simpleInt\"))\n assertEquals(\"1\", contentElement.getValue());\n if(contentElement.getName().equals((\"simpleDouble\")))\n assertEquals(\"1.0\", contentElement.getValue());\n if(contentElement.getName().equals(\"simpleFloat\"))\n assertEquals(\"1\", contentElement.getValue());\n if(contentElement.getName().equals((\"simpleByte\")))\n assertEquals(\"1\", contentElement.getValue());\n }\n }",
"public static void init() {\n\n }",
"public void init() {}",
"public void init() {}",
"protected abstract void declareSerializers(Builder builder);",
"@BeforeClass\n public static void beforeClass() {\n \n RestAssured.registerParser(\"text/plain\", Parser.JSON);\n }",
"protected void init() {\n }",
"public KafkaAvroSerializer() {\n super();\n }",
"protected BusinessObjectMapper() {\n }",
"@Test\n public void readSystemObjectClassPrescription() throws UnsupportedEncodingException, IOException {\n ISystemObject object = Factory.createObject(\"Prescription\");\n testJson = gson.toJson(object);\n\n //convert string to input stream\n InputStream inputStream = new ByteArrayInputStream(testJson.getBytes(Charset.forName(\"UTF-8\")));\n //convert inputstream to jsonReader\n JsonReader reader = new JsonReader(new InputStreamReader(inputStream, \"UTF-8\"));\n\n //read json string into resultant\n ISystemObject actual = DataHandler.readSystemObjectClass(reader);\n\n //compare results \n assertEquals(\"Fails to return Prescription properly\", object.getClass(), actual.getClass());\n }",
"private JsonUtils() { }",
"public void init() {\n \n }",
"@Override\n public void init() {}",
"@Test\r\n public void testSerialize() {\r\n System.out.println(\"serialize\");\r\n TreeNode root = null;\r\n BinaryTreeSerialization instance = new BinaryTreeSerialization();\r\n String expResult = \"\";\r\n String result = instance.serialize(root);\r\n assertEquals(expResult, result);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }",
"public void testConstructor() {\r\n assertNotNull(\"DefaultReviewApplicationProcessor instance should be created successfully.\", processor);\r\n }",
"@BeforeEach\n public void initialize()\n {\n serviceProvider = new ServiceProvider();\n ResourceTypeFactory resourceTypeFactory = new ResourceTypeFactory();\n schemaFactory = Assertions.assertDoesNotThrow(resourceTypeFactory::getSchemaFactory);\n resourceTypeFactory.registerResourceType(null,\n JsonHelper.loadJsonDocument(ClassPathReferences.USER_RESOURCE_TYPE_JSON),\n JsonHelper.loadJsonDocument(ClassPathReferences.USER_SCHEMA_JSON),\n JsonHelper.loadJsonDocument(ClassPathReferences.ENTERPRISE_USER_SCHEMA_JSON));\n resourceTypeFactory.registerResourceType(null,\n JsonHelper.loadJsonDocument(ClassPathReferences.GROUP_RESOURCE_TYPE_JSON),\n JsonHelper.loadJsonDocument(ClassPathReferences.GROUP_SCHEMA_JSON));\n }",
"private void _init() {\n }",
"@Test\n\tpublic void testNodeInit() {\n\t\tNode<Integer> node = new Node<Integer>(3);\n\t\tassertTrue(node.getData() == 3);\n\t\tassertTrue(node.getParent() == null);\n\t\tassertTrue(node.countChildren() == 0);\n\t}",
"protected void initDefaultStrategies() {\n\t\tRedisSerializer<String> keySerializer = new StringRedisSerializer();\n\t\tRedisSerializer<Object> valueSerializer = new JacksonSerializer();\n\t\tsetSerializer(valueSerializer);\n\t\tsetStringSerializer(keySerializer);\n\t}",
"public KafkaJsonSerializer() {\n\n }",
"@Override\n\tpublic void initialize() {\n\t\tSystem.out.println(\"TestClient initialization\");\n\t\tsubscribe(\"Scalars\");\n\t\tsubscribe(\"Triggers\");\n\t\tsubscribe(\"Alarms\");\n\n\t\t//If I'm a sender, run some tests\n\t\tif (_sender) {\n//\t\t\ttestIntArray();\n//\t\t\ttestSerializedObject();\n//\t\t\ttestStringArray();\n//\t\t\ttestDoubleArray();\n//\t\t\ttestString();\n//\t\t\ttestByteArray();\n//\t\t\ttestStreamedMessage();\n\t\t\tstressTest();\n\t\t}\n\t}",
"@Test\n public void readSystemObjectClassAccCrRequest() throws UnsupportedEncodingException, IOException {\n ISystemObject object = Factory.createObject(\"AccountCreationRequest\");\n testJson = gson.toJson(object);\n\n //convert string to input stream\n InputStream inputStream = new ByteArrayInputStream(testJson.getBytes(Charset.forName(\"UTF-8\")));\n //convert inputstream to jsonReader\n JsonReader reader = new JsonReader(new InputStreamReader(inputStream, \"UTF-8\"));\n\n //read json string into resultant\n ISystemObject actual = DataHandler.readSystemObjectClass(reader);\n\n //compare results \n assertEquals(\"Fails to return AccountCreationRequest properly\", object.getClass(), actual.getClass());\n }",
"protected void _init(){}",
"@Test\n public void testInitialize() {\n \n \n }",
"@Test\n void constructorTest() {\n super.checkConstruction();\n }",
"public void testConstructor() throws Exception {\n WritableValue value = new WritableValue(DisplayRealm.getRealm(Display.getDefault()));\n assertNull(value.getValue());\n assertNull(value.getValueType());\n }",
"@Test\n void testEmptyConstructor() {\n assertNotNull(isLockedRequest1);\n }",
"@Override\r\n\tpublic final void init() {\r\n\r\n\t}",
"public void init() { }",
"public void init() { }",
"@Override\n protected void init() {\n }",
"protected void initialize() {\n }",
"protected void initialize() {\n }"
] | [
"0.7099188",
"0.7076699",
"0.70672065",
"0.67701364",
"0.65298563",
"0.64156556",
"0.6348853",
"0.6173291",
"0.61717874",
"0.6111613",
"0.6034339",
"0.5992543",
"0.5968011",
"0.5955208",
"0.5923799",
"0.58852315",
"0.5882545",
"0.5881886",
"0.5874081",
"0.5867848",
"0.5857816",
"0.5848953",
"0.5845778",
"0.584195",
"0.5840902",
"0.58315426",
"0.58313763",
"0.5825008",
"0.57939464",
"0.57930017",
"0.57521194",
"0.5750836",
"0.5749464",
"0.5746823",
"0.5742098",
"0.57368225",
"0.5735969",
"0.57354856",
"0.57225233",
"0.572103",
"0.57190764",
"0.5714723",
"0.5707234",
"0.5705309",
"0.5704869",
"0.5699839",
"0.5684917",
"0.5684917",
"0.56815267",
"0.567625",
"0.5676233",
"0.56719387",
"0.56719387",
"0.5670805",
"0.56534237",
"0.56509495",
"0.564723",
"0.5644498",
"0.5644498",
"0.5644498",
"0.5644498",
"0.56429297",
"0.5639075",
"0.56386745",
"0.5629129",
"0.5627687",
"0.5625707",
"0.56223816",
"0.56129056",
"0.5612263",
"0.5612263",
"0.56103474",
"0.5603042",
"0.5601522",
"0.56009936",
"0.5590761",
"0.5587637",
"0.5582796",
"0.5576942",
"0.557666",
"0.5569969",
"0.55690295",
"0.5558284",
"0.5557499",
"0.5553892",
"0.55420464",
"0.5536994",
"0.55331165",
"0.55323356",
"0.55303895",
"0.5524445",
"0.5523785",
"0.5514598",
"0.5508009",
"0.55049",
"0.5504819",
"0.5504819",
"0.54991317",
"0.5498765",
"0.5498765"
] | 0.7494081 | 0 |
guard our test assumptions. | @Test
public void testInitializeSerializerAfterSerializationWithCustomConfig() throws Exception {
assertEquals(
"broken test assumption",
-1,
new KryoSerializer<>(String.class, new ExecutionConfig())
.getKryo()
.getRegistration(File.class)
.getId());
final ExecutionConfig config = new ExecutionConfig();
config.registerKryoType(File.class);
final TestStateDescriptor<Path> original = new TestStateDescriptor<>("test", Path.class);
TestStateDescriptor<Path> clone = CommonTestUtils.createCopySerializable(original);
clone.initializeSerializerUnlessSet(config);
// serialized one (later initialized) carries the registration
assertTrue(
((KryoSerializer<?>) clone.getSerializer())
.getKryo()
.getRegistration(File.class)
.getId()
> 0);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\r\n\tpublic void testSanity() {\n\t}",
"private void assertAll() {\n\t\t\n\t}",
"@Test\n\tpublic void testEvilPuzzleGeneration() {\n\t}",
"public void testPreConditions() {\r\n\t //fail(\"Precondition check not implemented!\");\r\n\t assertEquals(true,true);\r\n\t }",
"@Test\n public void testIndependentPreTest() {\n // GIVEN\n Owner owner = new Owner(\"Bela\", \"Bp, Parlament\", dog, cat);\n\n // WHEN - THEN\n assertFalse(owner.hasDog());\n }",
"@Override\r\n\tprotected void doVerify() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void test() {\n\t\t\t}",
"@Test\r\n\t public void feelingLucky() {\r\n\t \t Assert.fail();\r\n\t Assert.fail();\r\n\t }",
"void ensure();",
"public static void ensure() {\n }",
"public void smell() {\n\t\t\n\t}",
"protected Assert() {\n\t}",
"@Override\n\tpublic boolean test() {\n\t\treturn false;\n\t}",
"@Test\n public void questionIfNotAlreadyAccusedTest() throws Exception {\n\n }",
"public void testPreConditions() {\n\t\tassertNotNull(activity);\n\t\tassertNotNull(mFragment);\n\t\tassertNotNull(mAdapter);\n\t\tassertTrue(mAdapter instanceof MensaListAdapter);\n\t}",
"@Test\n public void needSetACrowdTest() {\n // TODO: test needSetACrowd\n }",
"@Test\n void makeCoffee() {\n Assertions.assertFalse(machine.makeCoffee());\n\n //try with cup\n Assertions.assertDoesNotThrow(() -> {\n machine.positionCup();\n });\n\n Assertions.assertThrows(Exception.class, () -> {\n machine.positionCup();\n });\n\n\n Assertions.assertTrue(machine.makeCoffee());\n\n //check if correct amount as been subtracted\n Assertions.assertEquals(machine.getCurrentWater(), 1000 - machine.waterPerCup);\n Assertions.assertEquals(machine.getCurrentBeans(), 800 - machine.beansPerCup);\n\n //reset\n machine.fillWater();\n machine.fillBeans();\n machine.setCupPositioned(true);\n\n //test over boundary\n Assertions.assertTrue(machine.makeCoffee());\n Assertions.assertTrue(machine.makeCoffee());\n\n //set only water to boundary values and below\n machine.setCurrentWater(0);\n Assertions.assertFalse(machine.makeCoffee());\n machine.setCurrentWater(machine.waterPerCup);\n Assertions.assertTrue(machine.makeCoffee());\n\n //reset water\n machine.fillWater();\n\n //set only beans to boundary value and below\n machine.setCurrentBeans(0);\n Assertions.assertFalse(machine.makeCoffee());\n machine.setCurrentBeans(machine.beansPerCup);\n Assertions.assertTrue(machine.makeCoffee());\n\n\n }",
"protected void runTest() throws Throwable {\n\t\t\t\t\t\t\t\tthrow e;\n\t\t\t\t\t\t\t}",
"@Test\n\tpublic void testVerify() {\n\t\t\n\t\tSystem.out.println(\"Before Verfiy\");\n\t\tSoftAssert assert1 = new SoftAssert();\n\t\t\n\t\tassert1.fail();\n\t\t\n\t\tSystem.out.println(\"After Assertion\");\n\t}",
"public void testCheckOxyEmpty() {\n }",
"public void runBare() throws Throwable {\n Throwable exception= null;\n setUp();\n try {\n runTest();\n } catch (Throwable running) {\n exception= running;\n }\n finally {\n try {\n tearDown();\n } catch (Throwable tearingDown) {\n if (exception == null) exception= tearingDown;\n }\n }\n if (exception != null) throw exception;\n }",
"public void testImproperUseOfTheCircuit() {\n \t fail(\"testImproperUseOfTheCircuit\");\n }",
"@Test\n void basicTest() {\n final OSEntropyCheck.Report report =\n assertDoesNotThrow(() -> OSEntropyCheck.execute(), \"Check should not throw\");\n assertTrue(report.success(), \"Check should succeed\");\n assertNotNull(report.elapsedNanos(), \"Elapsed nanos should not be null\");\n assertTrue(report.elapsedNanos() > 0, \"Elapsed nanos should have a positive value\");\n assertNotNull(report.randomLong(), \"A random long should have been generated\");\n }",
"@Override\n\t@Ignore\n\t@Test\n\tpublic void testLauncherIsWhereExpected() throws Throwable {\n\t}",
"private void validCheck ()\n\t{\n\t\tassert allButLast != null || cachedFlatListOrMore != null;\n\t}",
"@Override\n public boolean preconditionsSatisfied() {\n return true;\n }",
"private void performSanityCheck()\n\t{\n\t\tif (variableNames != null && domainSizes != null\n\t\t\t\t&& propositionNames != null)\n\t\t{\n\t\t\tcheckStateSizes();\n\t\t\tcheckDomainSizes();\n\t\t}\n\t}",
"@Test\n\tpublic void test04() throws Throwable {\n\t}",
"@Before\n\tpublic void setup() {\n\t\t\n\t\t\n\t}",
"@Test\n public void sanityCheck() {\n assertThat(true, is(true));\n }",
"public static void verify() {\n\n\t\t\t\n\t\t\t\n\t\t\n\t}",
"@VisibleForTesting\n @SuppressWarnings(\"CheckReturnValue\")\n void checkAssertions() {\n checkAssertions(root);\n }",
"@Test\n public void shouldProcessData() throws Exception {\n }",
"@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean checkAbout() {\n\t\tboolean flag = oTest.checkAbout();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}",
"protected void preTest() {\n\t\tprintTestParmas();\n\t\tif (attenuatorSetUnderTest != null) {\n\t\t\tperipheralsConfig.setAttenuatorSetValue(attenuatorSetUnderTest,\n\t\t\t\t\tattenuatorSetUnderTest.getDefaultValueAttenuation());\n\t\t} else {\n\t\t\treport.report(\"There is no attenuator set \");\n\t\t}\n\t\tchangeOtherENBsToOOS();\n\n\t\t/*if (runWithDynamicCFI)\n\t\t\tenbConfig.enableDynamicCFI(this.dut);\n\t\telse\n\t\t\tenbConfig.disableDynamicCFI(this.dut);*/\n\t\t\n\t\tgetRadioProfile();\n\n\t\tprintResultsForTest = true;\n\t\tresetTestBol = false;\n\t\texceptionThrown = false;\n\t}",
"@Override\n public void testAssumptionFailure(Failure failure) {\n exception = new AssumptionViolatedException(failure.getException().getMessage());\n exception.setStackTrace(failure.getException().getStackTrace());\n ;\n }",
"@Before\r\n\tpublic void setup() {\r\n\t}",
"@Test\n\t\tpublic void woeIsMeUnreachabletest() {\n\t\t\tassertTrue(System.currentTimeMillis() > 0);\n\t\t}",
"private void test() {\n\n\t}",
"@Override\n protected void preconditions(Object entity) throws Exception {\n }",
"private boolean acceptAsExpected()\n {\n return saveExpectedDir_ != null;\n }",
"@Test\n\tpublic void preventTakeOffWhenStormyWeather() {\n\t\tException exception = new Exception();\n\n\t\ttry {\n\t\t\theathrow.landing(tap);\n\t\t\t// airport instance return stormy weather\n\t\t\twhen(weatherMock.getWeather()).thenReturn(\"stormy\");\n\t\t\theathrow.takeoff(tap);\n\t\t} catch (Exception e) {\n\t\t\texception = e;\n\t\t}\n\n\t\tassertEquals(\"Not allowed to takeoff in stormy weather\", exception.getMessage());\n\t\tassertEquals(1, heathrow.hangar.size());\n\t}",
"@Before\n public void setup() {\n }",
"@Before\n public void setup() {\n }",
"@Before\n public void setup() {\n }",
"public void performValidation() {\n/* 623 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"private static void runTestCWE8() {\n}",
"private static void runTestCWE8() {\n}",
"@Before\n public void setup() {\n }",
"private static void runTestCWE5() {\n}",
"private static void runTestCWE5() {\n}",
"private static void runTestCWE7() {\n}",
"private static void runTestCWE7() {\n}",
"@Override\n\tpublic void check() {\n\t\t\n\t}",
"@Override\n\tpublic void check() {\n\t\t\n\t}",
"@Test\n\tpublic void testNormalPuzzleGeneration() {\n\t}",
"@Before\r\n\tpublic void setUp() throws Exception {\r\n\t\t//This method is unused. \r\n\t}",
"@Test(expected = IllegalStateException.class)\r\n public void dummyThrowsExceptionWhenAttacked() {\n\r\n dummy.takeAttack(AXE_ATTACK);\r\n }",
"public void verifyEntrySet() {\n }",
"@Test\n public void testAdviceCopy() {\n//TODO: Test goes here... \n }",
"@Test\n\tpublic void testHardPuzzleGeneration() {\n\t}",
"private static void runTestCWE4() {\n}",
"private static void runTestCWE4() {\n}",
"private void checkRep() {\n for (Ball ball : balls) {\n assert ball.getPosition().d1 >= 0\n && ball.getPosition().d1 <= WIDTH - 1;\n assert ball.getPosition().d2 >= 0\n && ball.getPosition().d2 <= HEIGHT - 1;\n }\n for (Gadget gadget : gadgets) {\n assert gadget.getPosition().d1 >= 0\n && gadget.getPosition().d1 <= WIDTH - 1;\n assert gadget.getPosition().d2 >= 0\n && gadget.getPosition().d2 <= HEIGHT - 1;\n }\n\n assert GRAVITY > 0 && MU2 > 0 && MU > 0;\n }",
"protected void thoroughInspection() {}",
"private static void runTestCWE9() {\n}",
"private static void runTestCWE9() {\n}",
"@Before\r\n\tpublic void doThisEveryTime() {\n\t}",
"private static void runTestCWE1() {\n}",
"private static void runTestCWE1() {\n}",
"@Test\r\n\t@Ignore\r\n\tpublic void shouldReturnLisOfBrokenByRegion() {\n\t}",
"@Test\n\tpublic void testCanEnter(){\n\t}",
"@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean checkThrough() {\n\t\tboolean flag = oTest.checkThrough();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}",
"boolean checkVerification();",
"@Override\n\t\tpublic void checkPreconditions() {\n\t\t}",
"@Test\n public void testDAM30103001() {\n // settings as done for testDAM30102001 are identical\n testDAM30102001();\n }",
"public void testing() {\n\t\tprotectedInstanceVariable = \"\";\n\t}",
"@Override\r\n\tpublic boolean CheckConditions() {\n\t\treturn true;\r\n\t}",
"public boolean validateInput() {\n/* 158 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"@SuppressWarnings(\"unchecked\")\n\t@Test\n\tpublic void test_process_some_stage_operation()\n\t{\n\t}",
"@Test\n public void validForTest() {\n // TODO: test validFor\n }",
"@Test\n void shouldHaveFatSilentFoxes() {\n }",
"public void testSoThatTestsDoNotFail() {\n\n }",
"@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean checkTest() {\n\t\tboolean flag = oTest.checkTest();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}",
"protected abstract void before();",
"private static void runTestCWE2() {\n}",
"private static void runTestCWE2() {\n}",
"public void testGetInsDyn() {\n }",
"protected void skipTestIfScopesNotSupported() {\n\t}",
"@Before\n\t public void setUp() {\n\t }",
"@Test\n public void testWrongPartner() {\n /* Set up scenario. As one might see, no partnership was registered hence we throw an\n error.\n */\n this.quotes = Controller.getQuotes(desiredBikes, this.dateRange,\n this.customer.getLocation(),\n true);\n Quote chosenQuote = this.quotes.get(0);\n Provider originalProvider = chosenQuote.provider;\n Payment orderInfo = BookingController.bookQuote(chosenQuote, this.customer);\n deliveryService.carryOutPickups(this.bookingDate);\n deliveryService.carryOutDropoffs();\n assertThrows(AssertionError.class, () ->\n {\n this.provider2.registerReturn(orderInfo.getOrderNumber());\n });\n }",
"@Ignore\n public void testDisapproveReason() throws Exception {\n\n }",
"public void checkParameters() {\n }",
"private test5() {\r\n\t\r\n\t}",
"@Test\n void cupTesting() {\n Assertions.assertFalse(machine.isCupPositioned());\n Assertions.assertFalse(machine.removeCup());\n\n Assertions.assertDoesNotThrow(() -> machine.positionCup());\n\n Assertions.assertTrue(machine.removeCup());\n Assertions.assertFalse(machine.isCupPositioned());\n machine.setCupPositioned(true);\n Assertions.assertTrue(machine.isCupPositioned());\n\n }",
"@Override\n public void verifyDeterministic() throws NonDeterministicException {\n }",
"@Test\n public void testIndependentPostTest() {\n // GIVEN\n Owner owner = new Owner(\"Bela\", \"Bp, Parlament\", dog, cat);\n\n // WHEN - THEN\n assertTrue(owner.hasDog());\n }",
"@Test\n public void sustainMassiveDamage() {\n }",
"@Override\n\tpublic void runTest() throws Throwable {}",
"@Test\n public void testRwbmInternal()\n {\n generateEvents(\"dist-rwbm-internal-test\");\n checkEvents(false, true);\n BackingMapListener.INSTANCE.assertContext();\n }",
"private static void runTestCWE6() {\n}"
] | [
"0.654621",
"0.64721215",
"0.64221054",
"0.6388744",
"0.62532264",
"0.6222837",
"0.6204463",
"0.61977327",
"0.61489564",
"0.6077256",
"0.6012527",
"0.59974873",
"0.5980666",
"0.5967127",
"0.5962819",
"0.5959139",
"0.5942895",
"0.5905075",
"0.5895928",
"0.5887897",
"0.58811516",
"0.58783937",
"0.58714",
"0.5862736",
"0.58579236",
"0.5848903",
"0.5833255",
"0.5832131",
"0.58313465",
"0.5831074",
"0.5820621",
"0.5816001",
"0.58139265",
"0.58129007",
"0.5804136",
"0.5797732",
"0.5797243",
"0.5794778",
"0.57924926",
"0.57888836",
"0.578565",
"0.5783875",
"0.5774338",
"0.5774338",
"0.5774338",
"0.5768152",
"0.5767657",
"0.5767657",
"0.57661116",
"0.5741781",
"0.5741781",
"0.5736475",
"0.5736475",
"0.57321024",
"0.57321024",
"0.5731245",
"0.57312006",
"0.5725313",
"0.57248265",
"0.57246566",
"0.5721561",
"0.57163143",
"0.57163143",
"0.57160604",
"0.57040095",
"0.57031083",
"0.57031083",
"0.57011133",
"0.5699193",
"0.5699193",
"0.5695178",
"0.5693524",
"0.5693202",
"0.56918526",
"0.5690763",
"0.5687801",
"0.5686676",
"0.5677417",
"0.5674475",
"0.56707036",
"0.5670314",
"0.5664139",
"0.5661588",
"0.56610954",
"0.56600124",
"0.56582236",
"0.56582236",
"0.56515276",
"0.564943",
"0.5648621",
"0.564764",
"0.56474555",
"0.56427735",
"0.5642429",
"0.5641526",
"0.5638367",
"0.5635541",
"0.5630425",
"0.5622701",
"0.56150943",
"0.56105053"
] | 0.0 | -1 |
Tests for serializer initialization FLINK6775, tests that the returned serializer is duplicated. This allows to share the state descriptor across threads. | @Test
public void testSerializerDuplication() throws Exception {
// we need a serializer that actually duplicates for testing (a stateful one)
// we use Kryo here, because it meets these conditions
TypeSerializer<String> statefulSerializer =
new KryoSerializer<>(String.class, new ExecutionConfig());
TestStateDescriptor<String> descr = new TestStateDescriptor<>("foobar", statefulSerializer);
TypeSerializer<String> serializerA = descr.getSerializer();
TypeSerializer<String> serializerB = descr.getSerializer();
// check that the retrieved serializers are not the same
assertNotSame(serializerA, serializerB);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void testInitializeWithSerializer() throws Exception {\n final TypeSerializer<String> serializer = StringSerializer.INSTANCE;\n final TestStateDescriptor<String> descr = new TestStateDescriptor<>(\"test\", serializer);\n\n assertTrue(descr.isSerializerInitialized());\n assertNotNull(descr.getSerializer());\n assertTrue(descr.getSerializer() instanceof StringSerializer);\n\n // this should not have any effect\n descr.initializeSerializerUnlessSet(new ExecutionConfig());\n assertTrue(descr.isSerializerInitialized());\n assertNotNull(descr.getSerializer());\n assertTrue(descr.getSerializer() instanceof StringSerializer);\n\n TestStateDescriptor<String> clone = CommonTestUtils.createCopySerializable(descr);\n assertTrue(clone.isSerializerInitialized());\n assertNotNull(clone.getSerializer());\n assertTrue(clone.getSerializer() instanceof StringSerializer);\n }",
"@Test\n public void testInitializeSerializerAfterSerializationWithCustomConfig() throws Exception {\n assertEquals(\n \"broken test assumption\",\n -1,\n new KryoSerializer<>(String.class, new ExecutionConfig())\n .getKryo()\n .getRegistration(File.class)\n .getId());\n\n final ExecutionConfig config = new ExecutionConfig();\n config.registerKryoType(File.class);\n\n final TestStateDescriptor<Path> original = new TestStateDescriptor<>(\"test\", Path.class);\n TestStateDescriptor<Path> clone = CommonTestUtils.createCopySerializable(original);\n\n clone.initializeSerializerUnlessSet(config);\n\n // serialized one (later initialized) carries the registration\n assertTrue(\n ((KryoSerializer<?>) clone.getSerializer())\n .getKryo()\n .getRegistration(File.class)\n .getId()\n > 0);\n }",
"@Test\n public void testHashCodeAndEquals() throws Exception {\n final String name = \"testName\";\n\n TestStateDescriptor<String> original = new TestStateDescriptor<>(name, String.class);\n TestStateDescriptor<String> same = new TestStateDescriptor<>(name, String.class);\n TestStateDescriptor<String> sameBySerializer =\n new TestStateDescriptor<>(name, StringSerializer.INSTANCE);\n\n // test that hashCode() works on state descriptors with initialized and uninitialized\n // serializers\n assertEquals(original.hashCode(), same.hashCode());\n assertEquals(original.hashCode(), sameBySerializer.hashCode());\n\n assertEquals(original, same);\n assertEquals(original, sameBySerializer);\n\n // equality with a clone\n TestStateDescriptor<String> clone = CommonTestUtils.createCopySerializable(original);\n assertEquals(original, clone);\n\n // equality with an initialized\n clone.initializeSerializerUnlessSet(new ExecutionConfig());\n assertEquals(original, clone);\n\n original.initializeSerializerUnlessSet(new ExecutionConfig());\n assertEquals(original, same);\n }",
"private SerializerFactory() {\r\n registerAvailableSerializers();\r\n }",
"@Before\n public void setUp() {\n InternalDataSerializer.reinitialize();\n }",
"private SerializerFactory() {\n // do nothing\n }",
"@Test\n\tpublic void testPriorityQueueStateCreationFailsIfNewSerializerIsNotCompatible() throws Exception {\n\t\tCheckpointStreamFactory streamFactory = createStreamFactory();\n\t\tSharedStateRegistry sharedStateRegistry = new SharedStateRegistry();\n\n\t\tAbstractKeyedStateBackend<Integer> backend = createKeyedBackend(IntSerializer.INSTANCE);\n\n\t\ttry {\n\t\t\tInternalPriorityQueue<TestType> internalPriorityQueue = backend.create(\n\t\t\t\t\"testPriorityQueue\", new TestType.V1TestTypeSerializer());\n\n\t\t\tinternalPriorityQueue.add(new TestType(\"key-1\", 123));\n\t\t\tinternalPriorityQueue.add(new TestType(\"key-2\", 346));\n\t\t\tinternalPriorityQueue.add(new TestType(\"key-1\", 777));\n\n\t\t\tKeyedStateHandle snapshot = runSnapshot(\n\t\t\t\tbackend.snapshot(1L, 2L, streamFactory, CheckpointOptions.forCheckpointWithDefaultLocation()),\n\t\t\t\tsharedStateRegistry);\n\t\t\tbackend.dispose();\n\n\t\t\tbackend = restoreKeyedBackend(IntSerializer.INSTANCE, snapshot);\n\t\t\tbackend.create(\n\t\t\t\t\"testPriorityQueue\", new TestType.IncompatibleTestTypeSerializer());\n\n\t\t\tfail(\"should have failed\");\n\t\t} catch (Exception e) {\n\t\t\tAssert.assertTrue(ExceptionUtils.findThrowable(e, StateMigrationException.class).isPresent());\n\t\t} finally {\n\t\t\tbackend.dispose();\n\t\t}\n\t}",
"public static SerializerFactory getInstance() {\r\n return INSTANCE;\r\n }",
"@Test\r\n\tpublic void test_singletonLink_compareByHashCode_reflectionAPI() throws Exception {\r\n\t\tObject ref1HashCode = Singleton.getInstance().hashCode();\r\n\t\t@SuppressWarnings(\"rawtypes\")\r\n\t\tClass clazz = Class.forName(\"com.bridgeLabz.designPattern.creationalDesignPattern.singleton.eagerInitialization.Singleton\");\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tConstructor<Singleton> ctor = clazz.getDeclaredConstructor();\r\n\t\tctor.setAccessible(true);\r\n\t\tint ref2HashCode = ctor.newInstance().hashCode();\r\n\r\n\t\tassertNotEquals(ref1HashCode, ref2HashCode);\r\n\r\n\t}",
"SerializeFactory getSerializeFactory();",
"@Test\n void duplicateNftSerials() {\n\n mockOkExpiryValidator();\n writableAccountStore = newWritableStoreWithAccounts(\n Account.newBuilder()\n .accountId(ACCOUNT_4680)\n .numberTreasuryTitles(0)\n .numberPositiveBalances(1)\n .numberOwnedNfts(3)\n .build(),\n Account.newBuilder()\n .accountId(TREASURY_ACCOUNT_9876)\n .numberTreasuryTitles(1)\n .numberPositiveBalances(1)\n .numberOwnedNfts(1)\n .build());\n writableTokenStore = newWritableStoreWithTokens(newNftToken531(10));\n writableTokenRelStore =\n newWritableStoreWithTokenRels(newAccount4680Token531Rel(3), newTreasuryToken531Rel(1));\n writableNftStore = newWritableStoreWithNfts(\n Nft.newBuilder()\n .nftId(NftID.newBuilder()\n .tokenId(TOKEN_531)\n .serialNumber(1)\n .build())\n // do not set ownerId - default to null, meaning treasury owns this NFT\n .build(),\n Nft.newBuilder()\n .nftId(NftID.newBuilder()\n .tokenId(TOKEN_531)\n .serialNumber(2)\n .build())\n .ownerId(ACCOUNT_4680)\n .build(),\n Nft.newBuilder()\n .nftId(NftID.newBuilder()\n .tokenId(TOKEN_531)\n .serialNumber(3)\n .build())\n .ownerId(ACCOUNT_4680)\n .build(),\n Nft.newBuilder()\n .nftId(NftID.newBuilder()\n .tokenId(TOKEN_531)\n .serialNumber(4)\n .build())\n .ownerId(ACCOUNT_4680)\n .build());\n final var txn = newWipeTxn(ACCOUNT_4680, TOKEN_531, 0, 2L, 2L, 3L, 3L, 4L, 4L, 2L, 3L, 4L);\n final var context = mockContext(txn);\n\n subject.handle(context);\n\n final var acct = writableAccountStore.get(ACCOUNT_4680);\n Assertions.assertThat(acct.numberOwnedNfts()).isZero();\n Assertions.assertThat(acct.numberPositiveBalances()).isZero();\n final var treasuryAcct = writableAccountStore.get(TREASURY_ACCOUNT_9876);\n // The treasury still owns its NFT, so its counts shouldn't change\n Assertions.assertThat(treasuryAcct.numberOwnedNfts()).isEqualTo(1);\n Assertions.assertThat(treasuryAcct.numberTreasuryTitles()).isEqualTo(1);\n Assertions.assertThat(treasuryAcct.numberPositiveBalances()).isEqualTo(1);\n final var token = writableTokenStore.get(TOKEN_531);\n // Verify that 3 NFTs were removed from the total supply\n Assertions.assertThat(token.totalSupply()).isEqualTo(7);\n final var tokenRel = writableTokenRelStore.get(ACCOUNT_4680, TOKEN_531);\n Assertions.assertThat(tokenRel.balance()).isZero();\n // Verify the treasury's NFT wasn't removed\n Assertions.assertThat(writableNftStore.get(new NftID(TOKEN_531, 1))).isNotNull();\n // Verify that the account's NFTs were removed\n Assertions.assertThat(writableNftStore.get(new NftID(TOKEN_531, 2))).isNull();\n Assertions.assertThat(writableNftStore.get(new NftID(TOKEN_531, 3))).isNull();\n Assertions.assertThat(writableNftStore.get(new NftID(TOKEN_531, 4))).isNull();\n }",
"public void testSerializability() {\n //Take two jobs: one for study and one for reference.\n SerializableWARCBatchJob job1 = new SerializableWARCBatchJob();\n SerializableWARCBatchJob job2 = new SerializableWARCBatchJob();\n\n //Work on both jobs ordinarily:\n job1.initialize(new ByteArrayOutputStream());\n job2.initialize(new ByteArrayOutputStream());\n doStuff(job1);\n doStuff(job2);\n //Now serialize and deserialize the studied job (but NOT the reference):\n try {\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n ObjectOutputStream ous = new ObjectOutputStream(baos);\n ous.writeObject(job1);\n ous.close();\n baos.close();\n ObjectInputStream ois = new ObjectInputStream(\n new ByteArrayInputStream(\n baos.toByteArray()));\n job1 = (SerializableWARCBatchJob) ois.readObject();\n } catch (IOException e) {\n fail(e.toString());\n } catch (ClassNotFoundException e) {\n fail(e.toString());\n }\n\n //Then, work on both jobs again (finishing them properly):\n doStuff(job1);\n doStuff(job2);\n job1.finish(new ByteArrayOutputStream());\n job2.finish(new ByteArrayOutputStream());\n //Finally, compare their visible states:\n List<FileBatchJob.ExceptionOccurrence> state1\n = job1.getExceptions();\n List<FileBatchJob.ExceptionOccurrence> state2\n = job2.getExceptions();\n\n assertEquals(\"The two jobs should have the same number of \"\n + \"registered exceptions.\",\n state1.size(), state2.size());\n for (int i = 0; i < state1.size(); i++) {\n assertEquals(\"Found differing registered exceptions: \"\n + state1.get(i).toString() + state2.get(i).toString(),\n state1.get(i).toString(),\n state2.get(i).toString());\n }\n }",
"@Test\n public void serialization_beforeUse() throws Exception {\n final WebClient client = getWebClient();\n final WebClient copy = clone(client);\n assertNotNull(copy);\n }",
"@Test\n public void testSubsystemCalledOnceForStateMatchNonMatch() throws Exception {\n\n Map<ModelNodeId, Pair<List<QName>, List<FilterNode>>> sponsorsAdmin3Attributes = new HashMap<>();\n List<FilterNode> filterNodes = new ArrayList<>();\n FilterNode sponsorsMatchNode = getSponsorsFilterNode(\"BDog\");\n FilterNode admin3MatchNode = getAdminsFilterNode(\"admin3\");\n filterNodes.add(admin3MatchNode);\n filterNodes.add(sponsorsMatchNode);\n sponsorsAdmin3Attributes.put(GREATESTHITS_MODELNODEID, new Pair<>(new ArrayList<>(), filterNodes));\n\n Map<ModelNodeId, Pair<List<QName>, List<FilterNode>>> sponsorsAttributes = new HashMap<>();\n sponsorsAttributes.put(GREATESTHITS_MODELNODEID, new Pair<>(new ArrayList<>(), Collections.singletonList(sponsorsMatchNode)));\n\n verifyGet(m_server, \"/getwithstatecontainertest/get-with-filter-admin-matchnode-sponsor-nonmatchnode.xml\",\n \"/getwithstatecontainertest/get-with-filter-admin-matchnode-sponsor-nonmatchnode-response.xml\", MESSAGE_ID);\n verify(m_adminSubSystem, times(1)).retrieveStateAttributes(Mockito.eq(sponsorsAdmin3Attributes), Mockito.any(NetconfQueryParams.class));\n verify(m_jukeboxSubsystem, never()).retrieveStateAttributes(any(Map.class), any(NetconfQueryParams.class), any(StateAttributeGetContext.class));\n verify(m_librarySystem, never()).retrieveStateAttributes(any(Map.class), any(NetconfQueryParams.class), any(StateAttributeGetContext.class));\n verify(m_choiceCaseSubSystem, never()).retrieveStateAttributes(any(Map.class), any(NetconfQueryParams.class), any(StateAttributeGetContext.class));\n\n /**\n * State Match Node : <admins>\n * <admin>\n * <label>admin8</label> -> Non match node\n * </admin>\n * </admins>\n * <sponsors>\n * <sponsor>\n * <name>BDog</name> -> Non match node\n * </sponsor>\n * </sponsors>\n */\n\n Map<ModelNodeId, Pair<List<QName>, List<FilterNode>>> sponsorsAdmin8Attributes = new HashMap<>();\n filterNodes = new ArrayList<>();\n FilterNode admin8MatchNode = getAdminsFilterNode(\"admin8\");\n filterNodes.add(admin8MatchNode);\n filterNodes.add(sponsorsMatchNode);\n sponsorsAdmin8Attributes.put(GREATESTHITS_MODELNODEID, new Pair<>(new ArrayList<>(), filterNodes));\n\n verifyGet(m_server, \"/getwithstatecontainertest/get-with-filter-admin-nonmatchnode-sponsor-nonmatchnode.xml\",\n \"/getwithstatecontainertest/get-with-filter-admin-nonmatchnode-sponsor-nonmatchnode-response.xml\", MESSAGE_ID);\n verify(m_adminSubSystem, times(1)).retrieveStateAttributes(Mockito.eq(sponsorsAdmin8Attributes), Mockito.any(NetconfQueryParams.class));\n verify(m_jukeboxSubsystem, never()).retrieveStateAttributes(any(Map.class), any(NetconfQueryParams.class), any(StateAttributeGetContext.class));\n verify(m_librarySystem, never()).retrieveStateAttributes(any(Map.class), any(NetconfQueryParams.class), any(StateAttributeGetContext.class));\n verify(m_choiceCaseSubSystem, never()).retrieveStateAttributes(any(Map.class), any(NetconfQueryParams.class), any(StateAttributeGetContext.class));\n }",
"@Test\n\tpublic void testKeyedStateRegistrationFailsIfNewNamespaceSerializerRequiresMigration() throws Exception {\n\t\ttry {\n\t\t\ttestNamespaceSerializerUpgrade(\n\t\t\t\tnew TestType.V1TestTypeSerializer(),\n\t\t\t\tnew TestType.V2TestTypeSerializer());\n\n\t\t\tfail(\"should have failed\");\n\t\t} catch (Exception expected) {\n\t\t\t// the new namespace serializer requires migration; this should fail the restore\n\t\t\tAssert.assertTrue(ExceptionUtils.findThrowable(expected, StateMigrationException.class).isPresent());\n\t\t}\n\t}",
"public static void main(String[] args) throws Exception {\n Thread thread1 = new Thread(new Threads());\n Thread thread2 = new Thread(new Threads());\n thread1.start();\n thread2.start();\n System.out.println();\n\n //2.test doubleCheck\n\n //3.破坏单例模式,反序列化\n// HungrySingleton hungrySingleton = HungrySingleton.getInstance();\n// ObjectOutputStream outputStream = new ObjectOutputStream(new FileOutputStream(\"single\"));\n// outputStream.writeObject(hungrySingleton);\n//\n// File file = new File(\"single\");\n// ObjectInputStream objectInputStream = new ObjectInputStream(new FileInputStream(file));\n//\n// HungrySingleton hungrySingleton1 = (HungrySingleton) objectInputStream.readObject();\n//\n// System.out.println(hungrySingleton);\n// System.out.println(hungrySingleton1);\n// System.out.println(hungrySingleton == hungrySingleton1);\n\n //4.通过反射,破坏对象的私有构造\n// Class<HungrySingleton> singletonClass = HungrySingleton.class;\n// Constructor<HungrySingleton> declaredConstructor = singletonClass.getDeclaredConstructor();\n// //可以通过构造器修改私有性\n// declaredConstructor.setAccessible(true);\n// HungrySingleton hungrySingleton = HungrySingleton.getInstance();\n// HungrySingleton hungrySingleton1 = declaredConstructor.newInstance();\n// System.out.println(hungrySingleton);\n// System.out.println(hungrySingleton1);\n// System.out.println(hungrySingleton == hungrySingleton1);\n\n\n //5.枚举类,天然的不可序列,禁止反射优势\n// EnumInstance hungrySingleton = EnumInstance.getInstance();\n// hungrySingleton.setData(new Object());\n// ObjectOutputStream outputStream = new ObjectOutputStream(new FileOutputStream(\"enumSingle\"));\n// outputStream.writeObject(hungrySingleton);\n//\n// File file = new File(\"enumSingle\");\n// ObjectInputStream objectInputStream = new ObjectInputStream(new FileInputStream(file));\n//\n// EnumInstance hungrySingleton1 = (EnumInstance) objectInputStream.readObject();\n//\n// System.out.println(hungrySingleton.getData());\n// System.out.println(hungrySingleton1.getData());\n// System.out.println(hungrySingleton.getData() == hungrySingleton1.getData());\n// hungrySingleton.testPrint();\n }",
"@Test\n public void testSubsystemCalledOnceForStateMatch() throws Exception{\n\n Map<ModelNodeId, Pair<List<QName>, List<FilterNode>>> admin1Attributes = new HashMap<>();\n FilterNode adminsFilterNode = getAdminsFilterNode(\"admin1\");\n admin1Attributes.put(CIRCUS_MODELNODEID, new Pair<>(new ArrayList<>(), Collections.singletonList(adminsFilterNode)));\n\n verifyGet(m_server, \"/getwithstatecontainertest/get-with-filter-admin-matchnode.xml\",\n \"/getwithstatecontainertest/get-with-filter-admin-matchnode-response.xml\", MESSAGE_ID);\n verify(m_adminSubSystem, times(1)).retrieveStateAttributes(Mockito.eq(admin1Attributes), Mockito.any(NetconfQueryParams.class));\n verify(m_jukeboxSubsystem, never()).retrieveStateAttributes(any(Map.class), any(NetconfQueryParams.class), any(StateAttributeGetContext.class));\n verify(m_librarySystem, never()).retrieveStateAttributes(any(Map.class), any(NetconfQueryParams.class), any(StateAttributeGetContext.class));\n verify(m_choiceCaseSubSystem, never()).retrieveStateAttributes(any(Map.class), any(NetconfQueryParams.class), any(StateAttributeGetContext.class));\n /**\n * Two state match nodes : <album>\n * <name>Circus</name>\n * <admins>\n * <admin>\n * <label>admin1</label> -> State match Node\n * </admin>\n * </admins>\n * </album>\n * <album>\n * <name>Greatest hits</name>\n * <admins>\n * <admin>\n * <label>admin3</label> -> State match Node\n * </admin>\n * </admins>\n * </album>\n */\n\n Map<ModelNodeId, Pair<List<QName>, List<FilterNode>>> admin3Attributes = new HashMap<>();\n FilterNode admin3MatchNode = getAdminsFilterNode(\"admin3\");\n List<FilterNode> filterNodes = new ArrayList<>();\n filterNodes.add(admin3MatchNode);\n admin3Attributes.put(GREATESTHITS_MODELNODEID, new Pair<>(new ArrayList<>(), filterNodes));\n\n verifyGet(m_server, \"/getwithstatecontainertest/get-with-filter-admin-2-matchnodes.xml\",\n \"/getwithstatecontainertest/get-with-filter-admin-2-matchnodes-response.xml\", MESSAGE_ID);\n verify(m_adminSubSystem, times(2)).retrieveStateAttributes(Mockito.eq(admin1Attributes), Mockito.any(NetconfQueryParams.class));\n verify(m_adminSubSystem, times(1)).retrieveStateAttributes(Mockito.eq(admin3Attributes), Mockito.any(NetconfQueryParams.class));\n verify(m_jukeboxSubsystem, never()).retrieveStateAttributes(any(Map.class), any(NetconfQueryParams.class), any(StateAttributeGetContext.class));\n verify(m_librarySystem, never()).retrieveStateAttributes(any(Map.class), any(NetconfQueryParams.class), any(StateAttributeGetContext.class));\n verify(m_choiceCaseSubSystem, never()).retrieveStateAttributes(any(Map.class), any(NetconfQueryParams.class), any(StateAttributeGetContext.class));\n\n /**\n * Two State Match nodes : <admins>\n * <admin>\n * <label>admin3</label> -> State match Node\n * </admin>\n * </admins>\n * <sponsors>\n * <sponsor>\n * <name>JD</name> -> State match Node\n * </sponsor>\n * </sponsors>\n */\n\n FilterNode sponsorsMatchNode = getSponsorsFilterNode(\"JD\");\n filterNodes.add(sponsorsMatchNode);\n\n verifyGet(m_server, \"/getwithstatecontainertest/get-with-filter-admin-matchnode-sponsor-matchnode.xml\",\n \"/getwithstatecontainertest/get-with-filter-admin-matchnode-sponsor-matchnode-response.xml\", MESSAGE_ID);\n verify(m_adminSubSystem, times(1)).retrieveStateAttributes(Mockito.eq(admin3Attributes), Mockito.any(NetconfQueryParams.class));\n verify(m_jukeboxSubsystem, never()).retrieveStateAttributes(any(Map.class), any(NetconfQueryParams.class), any(StateAttributeGetContext.class));\n verify(m_librarySystem, never()).retrieveStateAttributes(any(Map.class), any(NetconfQueryParams.class), any(StateAttributeGetContext.class));\n verify(m_choiceCaseSubSystem, never()).retrieveStateAttributes(any(Map.class), any(NetconfQueryParams.class), any(StateAttributeGetContext.class));\n }",
"@Test\n public void testConstruction()\n {\n String constructed = StateUtils.construct(TEST_DATA, externalContext);\n Object object = org.apache.myfaces.application.viewstate.StateUtils.reconstruct(constructed, externalContext);\n Assertions.assertTrue(TEST_DATA.equals(object));\n }",
"@Test\n\tpublic void testOptimiser_rootNodeHasSharedEntry() throws SimulationException\n\t{\n\t\tAssert.assertTrue(m_model.getInitialState().isUseSharedEntryCode());\n\t}",
"private SerializationUtils() {\n\t\tthrow new AssertionError();\n\t}",
"public JsonFactory copy()\n/* */ {\n/* 324 */ _checkInvalidCopy(JsonFactory.class);\n/* */ \n/* 326 */ return new JsonFactory(this, null);\n/* */ }",
"@Before\n public void startUp() {\n registry = new DeserializerRegistryImpl();\n registry.init();\n }",
"@Override\r\n public Serializable createStaticState() {\r\n return this.m_func.createStaticState();\r\n }",
"public void testSerialization() throws Exception {\n AtomicLong x = new AtomicLong();\n AtomicLong y = serialClone(x);\n assertNotSame(x, y);\n x.set(-22);\n AtomicLong z = serialClone(x);\n assertNotSame(y, z);\n assertEquals(-22, x.get());\n assertEquals(0, y.get());\n assertEquals(-22, z.get());\n }",
"@Test\n public void consistencyTest() {\n Boolean isConsistent = instrSetup(new Callable<Boolean>() {\n\n /**\n * A {@link Callable} worker that generates accesses to an object\n * regularly fetching its id to check if it changes.\n *\n * @author Nikolay Pulev <[email protected]>\n */\n class ObjectAccessGenerator implements Callable<Long> {\n\n private Object ref;\n\n public ObjectAccessGenerator(Object ref) {\n this.ref = ref;\n }\n\n /**\n * Generates accesses to passed reference. Obtains id value,\n * checks it for consistency, and returns it as a result.\n *\n * @throws Exception\n */\n @Override\n public Long call() {\n long id0 = InstanceIdentifier.INSTANCE.getId(ref);\n ref.hashCode();\n long id1 = InstanceIdentifier.INSTANCE.getId(ref);\n ref.toString();\n long id2 = InstanceIdentifier.INSTANCE.getId(ref);\n ref.equals(ref);\n long id3 = InstanceIdentifier.INSTANCE.getId(ref);\n if (!(id0 == id1 && id1 == id2 && id2 == id3)) {\n\n return (long) -1;\n }\n\n return Long.valueOf(id0);\n }\n }\n\n @Override\n public Boolean call() throws Exception {\n Object ref = new MickeyMaus(5); /* Create object. */\n long initialId = InstanceIdentifier.INSTANCE.getId(ref);\n ExecutorService pool = Executors.newFixedThreadPool(100);\n ArrayList<Future<Long>> futures = new ArrayList<Future<Long>>();\n\n /* Create several access generators to query the object's id. */\n for (int i = 1; i < 1000; i++) {\n futures.add(pool.submit(new ObjectAccessGenerator(ref)));\n }\n\n /* Check results. */\n for (Future<Long> future : futures) {\n if (initialId != future.get().longValue()) {\n\n return Boolean.valueOf(false); /* Return false if inconsistency found. */\n }\n }\n\n return Boolean.valueOf(true);\n }\n });\n Assert.assertEquals(\"InstanceIdentifier.getId() provides consistent ids for references: \",\n true , isConsistent.booleanValue());\n }",
"public SingleOperationMarshallingTest() {\n }",
"private SyncState() {}",
"private EagerInitializationSingleton() {\n\t}",
"public static void main(String[] args) throws IOException, ClassNotFoundException, NoSuchMethodException, IllegalAccessException, InvocationTargetException, InstantiationException {\n\n System.out.println(\"main thread\"+ThreadLocalInstance.getInstance());\n System.out.println(\"main thread\"+ThreadLocalInstance.getInstance());\n System.out.println(\"main thread\"+ThreadLocalInstance.getInstance());\n System.out.println(\"main thread\"+ThreadLocalInstance.getInstance());\n System.out.println(\"main thread\"+ThreadLocalInstance.getInstance());\n System.out.println(\"main thread\"+ThreadLocalInstance.getInstance());\n\n Thread t1 = new Thread(new T());\n Thread t2 = new Thread(new T());\n t1.start();\n t2.start();\n System.out.println(\"program end\");\n\n// HungrySingleton instance = HungrySingleton.getInstance();\n// EnumInstance instance = EnumInstance.getInstance();\n// instance.setData(new Object());\n// //序列化\n// ObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(\"singleton_file\"));\n// oos.writeObject(instance);\n//\n// File file = new File(\"singleton_file\");\n// ObjectInputStream ois = new ObjectInputStream(new FileInputStream(file));\n// //反序列化\n// HungrySingleton newInstance = (HungrySingleton) ois.readObject();\n //枚举类序列化\n// EnumInstance newInstance = (EnumInstance) ois.readObject();\n//\n// System.out.println(instance.getData());\n// System.out.println(newInstance.getData());\n //拿到不同的对象\n// System.out.println(instance.getData() == newInstance.getData());\n\n// Class objectClass = HungrySingleton.class;\n// Class objectClass = StaticInnerClassSingleton.class;\n\n// Class objectClass = LazySingleton.class;\n// Class objectClass = EnumInstance.class;\n////\n// Constructor constructor = objectClass.getDeclaredConstructor(String.class,int.class);\n//\n// constructor.setAccessible(true);\n //不能通过反射创建枚举异常,查看newInstance源码\n// if ((clazz.getModifiers() & Modifier.ENUM) != 0)\n// throw new IllegalArgumentException(\"Cannot reflectively create enum objects\");\n //protected Enum(String name, int ordinal) {}\n //查看java.lang.enum看到唯一的构造方法\n //通过反编译,看到INSTANCE 是 static final 并且在静态代码块中初始化了\n// EnumInstance instance = (EnumInstance) constructor.newInstance(\"Geely\",666);\n\n\n//\n// LazySingleton newInstance = (LazySingleton) constructor.newInstance();\n// LazySingleton instance = LazySingleton.getInstance();\n\n\n\n// StaticInnerClassSingleton instance = StaticInnerClassSingleton.getInstance();\n// StaticInnerClassSingleton newInstance = (StaticInnerClassSingleton) constructor.newInstance();\n\n// HungrySingleton newInstance = (HungrySingleton) constructor.newInstance();\n// HungrySingleton instance = HungrySingleton.getInstance();\n\n\n// System.out.println(instance);\n// System.out.println(newInstance);\n// System.out.println(instance == newInstance);\n\n EnumInstance instance = EnumInstance.getInstance();\n instance.printTest();\n\n\n }",
"@Test\n public void testSerializationNegative()\n {\n byte[] bytes = StateUtils.getAsByteArray(TEST_DATA, externalContext);\n bytes[1] = (byte) 3;\n try\n {\n Object object = StateUtils.getAsObject(bytes, externalContext);\n Assertions.assertFalse(TEST_DATA.equals(object));\n }\n catch (Exception e)\n {\n // do nothing\n }\n\n }",
"@Test\r\n public void testSerialReader() {\n Assert.assertTrue(true);\r\n }",
"@Test\n\tpublic void testStateBackendRestoreFailsIfNewKeySerializerRequiresMigration() throws Exception {\n\t\ttry {\n\t\t\ttestKeySerializerUpgrade(\n\t\t\t\tnew TestType.V1TestTypeSerializer(),\n\t\t\t\tnew TestType.V2TestTypeSerializer());\n\n\t\t\tfail(\"should have failed\");\n\t\t} catch (Exception expected) {\n\t\t\t// the new key serializer requires migration; this should fail the restore\n\t\t\tAssert.assertTrue(ExceptionUtils.findThrowable(expected, StateMigrationException.class).isPresent());\n\t\t}\n\t}",
"public void testIsSerializable_0()\n throws Exception {\n BestChromosomesSelector selector = new BestChromosomesSelector(conf);\n assertTrue(isSerializable(selector));\n }",
"private SingletonDoubleCheck() {}",
"@Test(expected=IllegalStateException.class)\n public void doubleInitialization() {\n try {\n initJadler();\n initJadler();\n }\n finally {\n closeJadler();\n }\n \n fail(\"jadler cannot be initialized twice\");\n }",
"@Test\n public void testCreate() {\n //System.out.println(\"create\");\n URI context = URI.create(\"file:test\");\n LemonSerializerImpl instance = new LemonSerializerImpl(null);\n instance.create(context);\n }",
"private EagerInitializedSingleton() {\n\t}",
"private EagerInitializedSingleton() {\n\t}",
"private boolean m6892b() {\n String str = \"unable to add feature mapper for \";\n boolean z = false;\n for (String str2 : this.f5176c) {\n try {\n Class cls = Class.forName(str2);\n if (C1271j.class.isAssignableFrom(cls)) {\n mo5696a((C1271j) cls.newInstance());\n this.f5176c.remove(str2);\n z = true;\n }\n } catch (ClassNotFoundException unused) {\n } catch (IllegalAccessException unused2) {\n StringBuilder sb = new StringBuilder();\n sb.append(str);\n sb.append(str2);\n sb.toString();\n } catch (InstantiationException unused3) {\n StringBuilder sb2 = new StringBuilder();\n sb2.append(str);\n sb2.append(str2);\n sb2.toString();\n }\n }\n return z;\n }",
"public void testSerialization() {\n XYBlockRenderer r1 = new XYBlockRenderer();\n XYBlockRenderer r2 = (XYBlockRenderer) TestUtilities.serialised(r1);\n }",
"@Test\n public void testSubsystemCalledOnceForStateSelect() throws Exception{\n verifyGet(m_server, \"/getwithstatecontainertest/get-with-filter-admins-selectnode.xml\",\n \"/getwithstatecontainertest/get-with-filter-admins-response.xml\", MESSAGE_ID);\n Map<ModelNodeId, Pair<List<QName>, List<FilterNode>>> attributes = new HashMap<>();\n FilterNode adminsFilterNode = new FilterNode(ADMINS, JB_NS);\n attributes.put(CIRCUS_MODELNODEID, new Pair<>(new ArrayList<>(), Collections.singletonList(adminsFilterNode)));\n\n verify(m_adminSubSystem, times(1)).retrieveStateAttributes(Mockito.eq(attributes), Mockito.any(NetconfQueryParams.class));\n verify(m_jukeboxSubsystem, never()).retrieveStateAttributes(any(Map.class), any(NetconfQueryParams.class), any(StateAttributeGetContext.class));\n verify(m_librarySystem, never()).retrieveStateAttributes(any(Map.class), any(NetconfQueryParams.class), any(StateAttributeGetContext.class));\n verify(m_choiceCaseSubSystem, never()).retrieveStateAttributes(any(Map.class), any(NetconfQueryParams.class), any(StateAttributeGetContext.class));\n /**\n * State Filter Node : <album>\n * <name>Circus</name>\n * <admins> --> State container select node\n * <admin/>\n * </admins>\n * </album>\n */\n verifyGet(m_server, \"/getwithstatecontainertest/get-with-filter-admin-selectnode.xml\",\n \"/getwithstatecontainertest/get-with-filter-admins-response.xml\", MESSAGE_ID);\n\n FilterNode adminFilterNode = new FilterNode(ADMIN, JB_NS);\n adminsFilterNode.setSelectNodes(Collections.singletonList(adminFilterNode));\n verify(m_adminSubSystem, times(1)).retrieveStateAttributes(Mockito.eq(attributes), Mockito.any(NetconfQueryParams.class));\n verify(m_jukeboxSubsystem, never()).retrieveStateAttributes(any(Map.class), any(NetconfQueryParams.class), any(StateAttributeGetContext.class));\n verify(m_librarySystem, never()).retrieveStateAttributes(any(Map.class), any(NetconfQueryParams.class), any(StateAttributeGetContext.class));\n verify(m_choiceCaseSubSystem, never()).retrieveStateAttributes(any(Map.class), any(NetconfQueryParams.class), any(StateAttributeGetContext.class));\n }",
"@Test\n public void testEquals() throws Exception {\n\n File file = File.createTempFile(\"oasis-collection-test-persistence\", \"\");\n file.mkdirs();\n file.deleteOnExit();\n\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n Collection c = Arrays.asList(1, 1, 7, 7, 1, 1, 1);\n instance.addAll(c);\n\n SegmentedOasisList<Integer> readInstance;\n\n try (ObjectOutputStream outObjStream = new ObjectOutputStream(new FileOutputStream(file))) {\n outObjStream.writeObject(instance);\n }\n\n try (ObjectInputStream inObjStream = new ObjectInputStream(new FileInputStream(file))) {\n readInstance = (SegmentedOasisList<Integer>) inObjStream.readObject();\n }\n\n assertEquals(instance, readInstance);\n\n }",
"public Boolean requiresDuplicateDetection() {\n return this.requiresDuplicateDetection;\n }",
"public StyxSerializer(ObjectFactory factory) {\n this.factory = factory;\n }",
"@BeforeClass\n\tpublic static void unregisterAllDataSerializersBeforeTests() {\n\t\tunregisterAllDataSerializers();\n\t}",
"@Test\n public void testGetInstance()\n {\n System.out.println(\"TEST: getInstance\");\n TomTomReader result = TomTomReader.getInstance();\n assertNotEquals(null, result);\n }",
"private void checkSingleInstance() {\r\n\t\t//Erzeugt ein RandomAccessFile \"flag\"\r\n\t\tfinal File file = new File(\"flag\");\r\n\t\tRandomAccessFile randomAccessFile;\r\n\t\t\r\n\t\ttry \r\n\t\t{\r\n\t\t\t//Ist es der Applikation nicht möglich, das erstellte File zu sperren, zeigt es an, dass bereits eines vorhanden ist.\r\n\t\t\t//Dementsprechend wird die Applikation beendet, da bereits eine Instanz geöffnet wurde.\r\n\t\t\trandomAccessFile = new RandomAccessFile(file, \"rw\");\r\n\t\t\tfinal FileLock fileLock = randomAccessFile.getChannel().tryLock();\r\n\r\n\t\t\tif (fileLock == null) {\r\n\t\t\t\tPlatform.exit();\r\n\t\t\t}\r\n\t\t} catch (Exception e1) {\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\t}",
"@Test\n\tpublic void testKeyedValueStateMigration() throws Exception {\n\t\tfinal String stateName = \"test-name\";\n\n\t\ttestKeyedValueStateUpgrade(\n\t\t\tnew ValueStateDescriptor<>(\n\t\t\t\tstateName,\n\t\t\t\tnew TestType.V1TestTypeSerializer()),\n\t\t\tnew ValueStateDescriptor<>(\n\t\t\t\tstateName,\n\t\t\t\t// restore with a V2 serializer that has a different schema\n\t\t\t\tnew TestType.V2TestTypeSerializer()));\n\t}",
"@Test\n @DisplayName(\"The state key must match what was provided in the constructor\")\n void testStateKey() {\n final var state = new WritableSingletonStateBase<>(COUNTRY_STATE_KEY, () -> AUSTRALIA, val -> {});\n assertThat(state.getStateKey()).isEqualTo(COUNTRY_STATE_KEY);\n }",
"@Test\n public void testNamenodeStateOverride() throws Exception {\n String ns = \"ns0\";\n String nn = \"nn0\";\n MembershipState report = createRegistration(\n ns, nn, ROUTERS[1], FederationNamenodeServiceState.STANDBY);\n assertTrue(namenodeHeartbeat(report));\n\n // Load data into cache and calculate quorum\n assertTrue(getStateStore().loadCache(MembershipStore.class, true));\n\n MembershipState existingState = getNamenodeRegistration(ns, nn);\n assertEquals(\n FederationNamenodeServiceState.STANDBY, existingState.getState());\n\n // Override cache\n UpdateNamenodeRegistrationRequest request =\n UpdateNamenodeRegistrationRequest.newInstance(\n ns, nn, FederationNamenodeServiceState.ACTIVE);\n assertTrue(membershipStore.updateNamenodeRegistration(request).getResult());\n\n MembershipState newState = getNamenodeRegistration(ns, nn);\n assertEquals(FederationNamenodeServiceState.ACTIVE, newState.getState());\n\n // Override cache\n UpdateNamenodeRegistrationRequest request1 =\n UpdateNamenodeRegistrationRequest.newInstance(ns, nn,\n FederationNamenodeServiceState.OBSERVER);\n assertTrue(\n membershipStore.updateNamenodeRegistration(request1).getResult());\n\n MembershipState newState1 = getNamenodeRegistration(ns, nn);\n assertEquals(FederationNamenodeServiceState.OBSERVER, newState1.getState());\n }",
"public void testDuplicateProperty() throws Exception {\n loader.load(reader, ctx);\n assertTrue(ctx.getErrors().get(0) instanceof DuplicateComponentService);\n }",
"@Test\n public void testVersioningInitialState() {\n\n String id = objService.createDocument(repositoryId, createBaseDocumentProperties(\"newdoc2\", \"cmis:document\"),\n rootFolderId, null, VersioningState.MAJOR, null, null, null, null);\n ObjectData ob = getObject(id);\n\n checkValue(PropertyIds.IS_LATEST_VERSION, Boolean.TRUE, ob);\n checkValue(PropertyIds.IS_MAJOR_VERSION, Boolean.TRUE, ob);\n checkValue(PropertyIds.IS_LATEST_MAJOR_VERSION, Boolean.TRUE, ob);\n checkValue(PropertyIds.VERSION_LABEL, \"1.0\", ob);\n checkValue(PropertyIds.VERSION_SERIES_ID, NOT_NULL, ob);\n checkValue(PropertyIds.IS_VERSION_SERIES_CHECKED_OUT, Boolean.FALSE, ob);\n checkValue(PropertyIds.VERSION_SERIES_CHECKED_OUT_ID, null, ob);\n checkValue(PropertyIds.VERSION_SERIES_CHECKED_OUT_BY, null, ob);\n checkValue(PropertyIds.CHECKIN_COMMENT, null, ob);\n checkValue(NuxeoTypeHelper.NX_ISVERSION, Boolean.FALSE, ob); // ...\n\n // copy from checked in source as checked out\n\n id = objService.createDocumentFromSource(repositoryId, id, null, rootFolderId, VersioningState.CHECKEDOUT, null,\n null, null, null);\n ob = getObject(id);\n checkValue(PropertyIds.IS_LATEST_VERSION, Boolean.FALSE, ob);\n checkValue(PropertyIds.IS_MAJOR_VERSION, Boolean.FALSE, ob);\n checkValue(PropertyIds.IS_LATEST_MAJOR_VERSION, Boolean.FALSE, ob);\n checkValue(PropertyIds.VERSION_LABEL, null, ob);\n checkValue(PropertyIds.VERSION_SERIES_ID, NOT_NULL, ob);\n checkValue(PropertyIds.IS_VERSION_SERIES_CHECKED_OUT, Boolean.TRUE, ob);\n checkValue(PropertyIds.VERSION_SERIES_CHECKED_OUT_ID, id, ob);\n checkValue(PropertyIds.VERSION_SERIES_CHECKED_OUT_BY, USERNAME, ob);\n checkValue(PropertyIds.CHECKIN_COMMENT, null, ob);\n checkValue(NuxeoTypeHelper.NX_ISVERSION, Boolean.FALSE, ob);\n\n // creation as minor version\n\n id = objService.createDocument(repositoryId, createBaseDocumentProperties(\"newdoc2\", \"cmis:document\"),\n rootFolderId, null, VersioningState.MINOR, null, null, null, null);\n ob = getObject(id);\n\n checkValue(PropertyIds.IS_LATEST_VERSION, Boolean.TRUE, ob);\n checkValue(PropertyIds.IS_MAJOR_VERSION, Boolean.FALSE, ob);\n checkValue(PropertyIds.IS_LATEST_MAJOR_VERSION, Boolean.FALSE, ob);\n checkValue(PropertyIds.VERSION_LABEL, \"0.1\", ob);\n checkValue(PropertyIds.VERSION_SERIES_ID, NOT_NULL, ob);\n checkValue(PropertyIds.IS_VERSION_SERIES_CHECKED_OUT, Boolean.FALSE, ob);\n checkValue(PropertyIds.VERSION_SERIES_CHECKED_OUT_ID, null, ob);\n checkValue(PropertyIds.VERSION_SERIES_CHECKED_OUT_BY, null, ob);\n checkValue(PropertyIds.CHECKIN_COMMENT, null, ob);\n checkValue(NuxeoTypeHelper.NX_ISVERSION, Boolean.FALSE, ob); // ...\n\n // creation checked out\n\n id = objService.createDocument(repositoryId, createBaseDocumentProperties(\"newdoc3\", \"cmis:document\"),\n rootFolderId, null, VersioningState.CHECKEDOUT, null, null, null, null);\n ob = getObject(id);\n\n checkValue(PropertyIds.IS_LATEST_VERSION, Boolean.FALSE, ob);\n checkValue(PropertyIds.IS_MAJOR_VERSION, Boolean.FALSE, ob);\n checkValue(PropertyIds.IS_LATEST_MAJOR_VERSION, Boolean.FALSE, ob);\n checkValue(PropertyIds.VERSION_LABEL, null, ob);\n checkValue(PropertyIds.VERSION_SERIES_ID, NOT_NULL, ob);\n checkValue(PropertyIds.IS_VERSION_SERIES_CHECKED_OUT, Boolean.TRUE, ob);\n checkValue(PropertyIds.VERSION_SERIES_CHECKED_OUT_ID, id, ob);\n checkValue(PropertyIds.VERSION_SERIES_CHECKED_OUT_BY, USERNAME, ob);\n checkValue(PropertyIds.CHECKIN_COMMENT, null, ob);\n checkValue(NuxeoTypeHelper.NX_ISVERSION, Boolean.FALSE, ob);\n\n // copy from checked out source as checked in\n\n id = objService.createDocumentFromSource(repositoryId, id, null, rootFolderId, VersioningState.MAJOR, null,\n null, null, null);\n ob = getObject(id);\n checkValue(PropertyIds.IS_LATEST_VERSION, Boolean.TRUE, ob);\n checkValue(PropertyIds.IS_MAJOR_VERSION, Boolean.TRUE, ob);\n checkValue(PropertyIds.IS_LATEST_MAJOR_VERSION, Boolean.TRUE, ob);\n checkValue(PropertyIds.VERSION_LABEL, \"1.0\", ob);\n checkValue(PropertyIds.VERSION_SERIES_ID, NOT_NULL, ob);\n checkValue(PropertyIds.IS_VERSION_SERIES_CHECKED_OUT, Boolean.FALSE, ob);\n checkValue(PropertyIds.VERSION_SERIES_CHECKED_OUT_ID, null, ob);\n checkValue(PropertyIds.VERSION_SERIES_CHECKED_OUT_BY, null, ob);\n checkValue(PropertyIds.CHECKIN_COMMENT, null, ob);\n checkValue(NuxeoTypeHelper.NX_ISVERSION, Boolean.FALSE, ob); // ...\n }",
"@Test\n public void hashCodeTest2() {\n Device device2 = new Device(\"other\", token);\n assertNotEquals(device.hashCode(), device2.hashCode());\n }",
"@Test\n\tpublic void testKeyedListStateMigration() throws Exception {\n\t\tfinal String stateName = \"test-name\";\n\n\t\ttestKeyedListStateUpgrade(\n\t\t\tnew ListStateDescriptor<>(\n\t\t\t\tstateName,\n\t\t\t\tnew TestType.V1TestTypeSerializer()),\n\t\t\tnew ListStateDescriptor<>(\n\t\t\t\tstateName,\n\t\t\t\t// restore with a V2 serializer that has a different schema\n\t\t\t\tnew TestType.V2TestTypeSerializer()));\n\t}",
"private EagerlySinleton()\n\t{\n\t}",
"@Test public void singletonResolutionInFunctions() {\n fail( \"Not yet implemented\" );\n }",
"public static <S extends Serializer> S createNewSerializer(Class<S> serializer) throws SerializerNotFoundException {\n for (Serializer serializer1 : load(Serializer.class, serializer.getClassLoader())) {\n // try getting the current service and return\n try {\n Serializer next = serializer1;\n if (serializer.isInstance(next)) {\n return serializer.cast(next);\n }\n } catch (Throwable t) {\n // just ignore, skip and try getting the next\n }\n }\n throw new SerializerNotFoundException(serializer);\n }",
"@Test\n public void TestSingletonInitialization() {\n\t\tassertSame(SingletonClass.getInstance(), SingletonClass.getInstance());\n }",
"@Test\n public void equalsDifferentName(){\n\n InputStream url1= getClass().getClassLoader().getResourceAsStream(\"backupTest/backup_1.json\");\n InputStream url1h= getClass().getClassLoader().getResourceAsStream(\"backupTest/backup_1h.json\");\n\n Backup backup_a = Backup.initFromFile(url1);\n Backup backup_b = Backup.initFromFile(url1h);\n\n assertNotEquals(backup_a, backup_b);\n }",
"@Test\n\tpublic void testKeyedMapStateAsIs() throws Exception {\n\t\tfinal String stateName = \"test-name\";\n\n\t\ttestKeyedMapStateUpgrade(\n\t\t\tnew MapStateDescriptor<>(\n\t\t\t\tstateName,\n\t\t\t\tIntSerializer.INSTANCE,\n\t\t\t\tnew TestType.V1TestTypeSerializer()),\n\t\t\tnew MapStateDescriptor<>(\n\t\t\t\tstateName,\n\t\t\t\tIntSerializer.INSTANCE,\n\t\t\t\tnew TestType.V1TestTypeSerializer()));\n\t}",
"private boolean hasUniqueState()\n {\n return (getExternalArcState() == getMiddleArcState() && getExternalArcState() == getInternalArcState() && getExternalArcState() == getCircleState());\n }",
"@Test\n public void testEquals_Overflow() throws Exception {\n\n File file = File.createTempFile(\"oasis-collection-test-persistence\", \"\");\n file.mkdirs();\n file.deleteOnExit();\n\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n Collection c = Arrays.asList(1, 1, 7, 7, 1, 1, 1);\n instance.addAll(c);\n\n SegmentedOasisList<Integer> readInstance;\n\n try (ObjectOutputStream outObjStream = new ObjectOutputStream(new FileOutputStream(file))) {\n outObjStream.writeObject(instance);\n }\n\n try (ObjectInputStream inObjStream = new ObjectInputStream(new FileInputStream(file))) {\n readInstance = (SegmentedOasisList<Integer>) inObjStream.readObject();\n }\n\n assertEquals(instance, readInstance);\n\n }",
"@Test(timeout = 4000)\n public void test16() throws Throwable {\n ConnectionFactories connectionFactories0 = new ConnectionFactories();\n StringWriter stringWriter0 = new StringWriter();\n connectionFactories0.marshal((Writer) stringWriter0);\n assertEquals(0, connectionFactories0.getConnectionFactoryCount());\n }",
"@Test\n public void testConstructor() {\n SynchronizedLayeredConfig cfg = new SynchronizedLayeredConfig(new SimpleConfig().putBoolean(\"b\", true),\n new SimpleConfig().putBoolean(\"b\", false)\n .putString(\"s\", \"str\"));\n\n assertEquals(\"SynchronizedLayeredConfig{b=true, s=str}\", cfg.toString());\n\n cfg = new SynchronizedLayeredConfig(ImmutableList.of(new ResourceConfigSupplier(\n \"/net/morimekta/config/impl/config.toml\",\n new TomlConfigParser()),\n () -> new SimpleConfig().putBoolean(\"b\", false)\n .putString(\"s\", \"str\")));\n\n assertEquals(\"ResourceConfigSupplier{resource=/net/morimekta/config/impl/config.toml}\", cfg.getLayerFor(\"b\"));\n\n assertEquals(2,\n cfg.layers()\n .size());\n }",
"public boolean hasSer() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }",
"@Test\n public void testConstructionNegative()\n {\n String constructed = StateUtils.construct(TEST_DATA, externalContext);\n constructed = constructed.substring(1);\n try\n {\n Object object = StateUtils.reconstruct(constructed, externalContext);\n Assertions.assertFalse(TEST_DATA.equals(object));\n }\n catch (Exception e)\n {\n // do nothing\n }\n }",
"public boolean hasSer() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }",
"private void readObject(java.io.ObjectInputStream in) throws IOException, ClassNotFoundException {\n\t\tthreadLocalDedup = new ThreadLocal<Dedup>() {\n\t\t\t@Override\n\t\t\tprotected Dedup initialValue() {\n\t\t\t\treturn new Dedup();\n\t\t\t}\n\t\t};\n\t\tin.defaultReadObject();\n\t}",
"public Commande_structureSerializationTest(){\n }",
"@Test(timeout = 4000)\n public void test01() throws Throwable {\n LinkedList<byte[][]> linkedList0 = new LinkedList<byte[][]>();\n FBCachedFetcher fBCachedFetcher0 = new FBCachedFetcher(linkedList0, (FBObjectListener.FetcherListener) null);\n boolean boolean0 = fBCachedFetcher0.isFirst();\n assertFalse(boolean0);\n }",
"protected abstract Map<Integer, VersionedSerializer<T>> createVersionedSerializers();",
"@SuppressWarnings(\"deprecation\")\n @Before\n public void setUp() throws Exception\n {\n final AnnotationIntrospector pair = AnnotationIntrospector.pair(new JaxbAnnotationIntrospector(), new JacksonAnnotationIntrospector());\n\n _objectMapper = new ObjectMapper();\n _objectMapper.setAnnotationIntrospectors(pair, pair);\n\n // Make sure we've got some test data on hand.\n _streamStateDao.saveOrUpdateStreamMetadata(createMetadata(\"BusyFile\", StreamStatus.IN_PROGRESS, 1024, System.currentTimeMillis(), System.currentTimeMillis()));\n _streamStateDao.saveOrUpdateStreamMetadata(createMetadata(\"DoneFile\", StreamStatus.SUCCESSFUL, 2048, System.currentTimeMillis(), System.currentTimeMillis()));\n }",
"public void\ninit(SoState state)\n//\n////////////////////////////////////////////////////////////////////////\n{\n flags = 0;\n}",
"@Test\n\tpublic void testFileSystemSingleton() {\n\t\ttry {\n\t\t\tFileSystem f1 = FileSystem.getFileSystem();\n\t\t\tFileSystem f2 = FileSystem.getFileSystem();\n\t\t\tassertSame(f1, f2);\n\t\t}\n\t\tcatch (RuntimeException e) {\n\t\t\tfail();\n\t\t}\n\t}",
"@org.junit.Test(timeout = 10000)\n public void testEmptyFooInner2_add36251() throws java.lang.Exception {\n java.util.ArrayList<io.protostuff.Bar> bars = new java.util.ArrayList<io.protostuff.Bar>();\n io.protostuff.Bar bar = new io.protostuff.Bar();\n bar.setSomeBaz(new io.protostuff.Baz());\n bars.add(bar);\n java.util.ArrayList<io.protostuff.Foo> foos = new java.util.ArrayList<io.protostuff.Foo>();\n io.protostuff.Foo foo = new io.protostuff.Foo();\n foo.setSomeBar(bars);\n foos.add(foo);\n java.io.ByteArrayOutputStream out = new java.io.ByteArrayOutputStream();\n // AssertGenerator replace invocation\n int o_testEmptyFooInner2_add36251__16 = // MethodCallAdder\nwriteListTo(out, foos, io.protostuff.SerializableObjects.foo.cachedSchema());\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(o_testEmptyFooInner2_add36251__16, 6);\n writeListTo(out, foos, io.protostuff.SerializableObjects.foo.cachedSchema());\n byte[] data = out.toByteArray();\n java.io.ByteArrayInputStream in = new java.io.ByteArrayInputStream(data);\n java.util.List<io.protostuff.Foo> parsedFoos = parseListFrom(in, io.protostuff.SerializableObjects.foo.cachedSchema());\n junit.framework.TestCase.assertTrue(((parsedFoos.size()) == (foos.size())));\n int i = 0;\n for (io.protostuff.Foo f : parsedFoos)\n io.protostuff.SerializableObjects.assertEquals(foos.get((i++)), f);\n \n }",
"public static void main(String[] args) throws IOException, ClassNotFoundException, NoSuchMethodException, IllegalAccessException, InvocationTargetException, InstantiationException {\n\n Class objectClass = LazyMethodSingleton.class;\n\n Constructor constructor = objectClass.getDeclaredConstructor();\n constructor.setAccessible(true);\n\n LazyMethodSingleton instance = LazyMethodSingleton.getInstance();\n LazyMethodSingleton newInstance = (LazyMethodSingleton) constructor.newInstance();\n\n// HungrySingleton instance = HungrySingleton.getInstance();\n// HungrySingleton newInstance = (HungrySingleton) constructor.newInstance();\n\n// LazyStaticInnerClassSingleton instance = LazyStaticInnerClassSingleton.getInstance();\n// LazyStaticInnerClassSingleton newInstance = (LazyStaticInnerClassSingleton) constructor.newInstance();\n\n System.out.println(instance);\n System.out.println(newInstance);\n System.out.println(instance == newInstance);\n\n\n\n\n }",
"public Check_State(Factory factory) {\n this.factory = factory;\n }",
"void assertDeserialized(Serializable initial, Serializable deserialized);",
"public void testSerializeUnserialize()\n {\n DataSourceStatus status = new DataSourceStatus();\n status.setCompletionPercentage(25);\n status.setErrorRecords(1);\n status.setMessage(\"Bună ziua\");\n status.setProcessedRecords(250);\n status.setRunning(false);\n status.setTotalRecords(1000);\n DataSourceConfiguration configuration = new DataSourceConfiguration();\n List<String> queryTerms = Arrays.asList(\n \"wheat\", \"cheese\", \"grâu\", \"brânză\");\n configuration.getParameterMap().put(\"queryTerms\", queryTerms);\n DataSourceDescription description = new DataSourceDescription(\n configuration, status);\n DataSourceDescriptionSerializer serializer = \n new DataSourceDescriptionSerializer();\n String json = serializer.serialize(description);\n DataSourceDescription description2 = serializer.unserialize(json);\n assertEquals(queryTerms, description2.getConfiguration()\n .getParameterMap().get(\"queryTerms\"));\n assertEquals(description.getStatus().getCompletionPercentage(), \n description2.getStatus().getCompletionPercentage());\n assertEquals(description.getStatus().getErrorRecords(), \n description2.getStatus().getErrorRecords());\n assertEquals(description.getStatus().getMessage(), \n description2.getStatus().getMessage());\n assertEquals(description.getStatus().getProcessedRecords(), \n description.getStatus().getProcessedRecords());\n assertEquals(description.getStatus().getTotalRecords(), \n description2.getStatus().getTotalRecords());\n }",
"@Test(timeout=20000)\n public void testWithReplicationFactorAsOne() throws Exception {\n Configuration conf = new HdfsConfiguration();\n conf.setLong(DFSConfigKeys.DFS_BLOCKREPORT_INTERVAL_MSEC_KEY, 1000L);\n conf.set(DFSConfigKeys.DFS_NAMENODE_RECONSTRUCTION_PENDING_TIMEOUT_SEC_KEY, Integer.toString(2));\n MiniDFSCluster cluster = new MiniDFSCluster.Builder(conf).numDataNodes(2).build();\n FileSystem fs = cluster.getFileSystem();\n final FSNamesystem namesystem = cluster.getNamesystem();\n\n try {\n final Path fileName = new Path(\"/foo1\");\n DFSTestUtil.createFile(fs, fileName, 2, (short) 2, 0L);\n DFSTestUtil.waitReplication(fs, fileName, (short) 2);\n\n ExtendedBlock block = DFSTestUtil.getFirstBlock(fs, fileName);\n corruptBlock(cluster, fs, fileName, 0, block);\n\n DFSTestUtil.waitReplication(fs, fileName, (short) 1);\n\n assertEquals(1, countReplicas(namesystem, block).liveReplicas());\n assertEquals(1, countReplicas(namesystem, block).corruptReplicas());\n\n namesystem.setReplication(fileName.toString(), (short) 1);\n\n // wait for 3 seconds so that all block reports are processed.\n for (int i = 0; i < 10; i++) {\n try {\n Thread.sleep(1000);\n } catch (InterruptedException ignored) {\n }\n if (countReplicas(namesystem, block).corruptReplicas() == 0) {\n break;\n }\n }\n\n assertEquals(1, countReplicas(namesystem, block).liveReplicas());\n assertEquals(0, countReplicas(namesystem, block).corruptReplicas());\n\n } finally {\n cluster.shutdown();\n }\n }",
"@Test\n public void equalsBetweenDifferentBackups(){\n //backup_1 and backup_1b differs from\n InputStream url1= getClass().getClassLoader().getResourceAsStream(\"backupTest/backup_1.json\");\n InputStream url1b= getClass().getClassLoader().getResourceAsStream(\"backupTest/backup_1b.json\");\n\n Backup backup_a = Backup.initFromFile(url1);\n Backup backup_b = Backup.initFromFile(url1b);\n\n assertNotEquals(backup_a, backup_b);\n }",
"private SerializationUtils() {\n\n }",
"@org.junit.Test(timeout = 10000)\n public void testEmptyFooInner_add31640() throws java.lang.Exception {\n java.util.ArrayList<io.protostuff.Bar> bars = new java.util.ArrayList<io.protostuff.Bar>();\n bars.add(new io.protostuff.Bar());\n java.util.ArrayList<io.protostuff.Foo> foos = new java.util.ArrayList<io.protostuff.Foo>();\n io.protostuff.Foo foo = new io.protostuff.Foo();\n foo.setSomeBar(bars);\n foos.add(foo);\n java.io.ByteArrayOutputStream out = new java.io.ByteArrayOutputStream();\n // AssertGenerator replace invocation\n int o_testEmptyFooInner_add31640__13 = // MethodCallAdder\nwriteListTo(out, foos, io.protostuff.SerializableObjects.foo.cachedSchema());\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(o_testEmptyFooInner_add31640__13, 4);\n writeListTo(out, foos, io.protostuff.SerializableObjects.foo.cachedSchema());\n byte[] data = out.toByteArray();\n java.io.ByteArrayInputStream in = new java.io.ByteArrayInputStream(data);\n java.util.List<io.protostuff.Foo> parsedFoos = parseListFrom(in, io.protostuff.SerializableObjects.foo.cachedSchema());\n junit.framework.TestCase.assertTrue(((parsedFoos.size()) == (foos.size())));\n int i = 0;\n for (io.protostuff.Foo f : parsedFoos)\n io.protostuff.SerializableObjects.assertEquals(foos.get((i++)), f);\n \n }",
"Reproducible newInstance();",
"abstract public boolean init();",
"@org.junit.Test(timeout = 10000)\n public void testEmptyFoo_add21626() throws java.lang.Exception {\n java.util.ArrayList<io.protostuff.Foo> foos = new java.util.ArrayList<io.protostuff.Foo>();\n foos.add(new io.protostuff.Foo());\n foos.add(new io.protostuff.Foo());\n java.io.ByteArrayOutputStream out = new java.io.ByteArrayOutputStream();\n // AssertGenerator replace invocation\n int o_testEmptyFoo_add21626__9 = // MethodCallAdder\nwriteListTo(out, foos, io.protostuff.SerializableObjects.foo.cachedSchema());\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(o_testEmptyFoo_add21626__9, 3);\n writeListTo(out, foos, io.protostuff.SerializableObjects.foo.cachedSchema());\n byte[] data = out.toByteArray();\n java.io.ByteArrayInputStream in = new java.io.ByteArrayInputStream(data);\n java.util.List<io.protostuff.Foo> parsedFoos = parseListFrom(in, io.protostuff.SerializableObjects.foo.cachedSchema());\n junit.framework.TestCase.assertTrue(((parsedFoos.size()) == (foos.size())));\n int i = 0;\n for (io.protostuff.Foo f : parsedFoos)\n io.protostuff.SerializableObjects.assertEquals(foos.get((i++)), f);\n \n }",
"private SingletonColorFactory() {\n\t\tRandom rand = new Random();\n\t\tfactoryID = rand.nextInt(10000);\n\t}",
"@Test\n public void testCFMetaDataSerialization() throws IOException\n {\n for (String table : DatabaseDescriptor.getNonSystemTables())\n {\n for (CFMetaData cfm : DatabaseDescriptor.getTableMetaData(table).values())\n {\n byte[] ser = CFMetaData.serialize(cfm);\n CFMetaData cfmDupe = CFMetaData.deserialize(new ByteArrayInputStream(ser));\n assert cfmDupe != null;\n assert cfmDupe.equals(cfm);\n }\n }\n\n }",
"public void testGetInstance() {\n\t\tREDFinder finder = REDFinder.getInstance();\n\t\tassertSame(\"getInstance returned not the same object.\", finder,\n\t\t\t\tREDFinder.getInstance());\n\t}",
"@org.junit.Test(timeout = 10000)\n public void testFoo_add44816() throws java.lang.Exception {\n java.util.ArrayList<io.protostuff.Foo> foos = new java.util.ArrayList<io.protostuff.Foo>();\n foos.add(io.protostuff.SerializableObjects.foo);\n foos.add(io.protostuff.SerializableObjects.foo);\n java.io.ByteArrayOutputStream out = new java.io.ByteArrayOutputStream();\n // AssertGenerator replace invocation\n int o_testFoo_add44816__7 = // MethodCallAdder\nwriteListTo(out, foos, io.protostuff.SerializableObjects.foo.cachedSchema());\n // AssertGenerator add assertion\n org.junit.Assert.assertEquals(o_testFoo_add44816__7, 509);\n writeListTo(out, foos, io.protostuff.SerializableObjects.foo.cachedSchema());\n byte[] data = out.toByteArray();\n java.io.ByteArrayInputStream in = new java.io.ByteArrayInputStream(data);\n java.util.List<io.protostuff.Foo> parsedFoos = parseListFrom(in, io.protostuff.SerializableObjects.foo.cachedSchema());\n junit.framework.TestCase.assertTrue(((parsedFoos.size()) == (foos.size())));\n int i = 0;\n for (io.protostuff.Foo f : parsedFoos)\n io.protostuff.SerializableObjects.assertEquals(foos.get((i++)), f);\n \n }",
"@Test\n public void testSerializeSimpleObject() throws Exception {\n schemaLoader = spy(RpcSchemaLoader.class);\n\n JsonNode responseSchema = om.readTree(\n \"{\\\"$ref\\\" : \\\"derived.json#/definitions/SomeStruct\\\"} \");\n // make the schema loader act as if there is a method called 'testMethod'\n // that has response schema\n doReturn(responseSchema).when(\n schemaLoader).loadResponseSchema(\"testMethod\");\n\n // make the schema loader act as if there is an Aion RPC type defined\n // at reference \"derived.json#/definitions/SomeStruct\" with the\n // JsonSchema of someStructTypeDef.\n JsonSchemaRef someStructTypeDef = new JsonSchemaRef(\n \"derived.json#/definitions/SomeStruct\");\n doReturn(someStructJsonSchema).when(\n schemaLoader).loadType(someStructTypeDef);\n\n ResponseSerializer unit = new ResponseSerializer(\n new JsonSchemaTypeResolver(schemaLoader),\n schemaLoader, om);\n String result = unit.serialize(\n new JsonRpcResponse(new SomeStruct(\n SerializationUtils.hexStringToByteArray(\"0x68d1d3bffe8672cf1e9e85fbdb9f62744ccf7d7ac5848e7d46441169db99112a\"),\n BigInteger.valueOf(1337)\n ), \"1.0\"),\n \"testMethod\");\n\n // can't just compare the whole string because ordering\n // of object fields aren't fixed\n JsonNode resultJson = om.readTree(result);\n assertThat(resultJson.get(\"myQuantity\").asText(), is(\"0x539\"));\n assertThat(resultJson.get(\"myData\").asText(),\n is(\"0x68d1d3bffe8672cf1e9e85fbdb9f62744ccf7d7ac5848e7d46441169db99112a\"));\n\n }",
"private void RecordStoreLockFactory() {\n }",
"private PtTlsReaderFactory() {\n throw new AssertionError();\n }",
"public final JsonFactory configure(JsonGenerator.Feature f, boolean state)\n/* */ {\n/* 626 */ return state ? enable(f) : disable(f);\n/* */ }",
"@Test(timeout = 4000)\n public void test21() throws Throwable {\n FBProcedureCall fBProcedureCall0 = new FBProcedureCall();\n fBProcedureCall0.setName(\"EXECUTE PROCEDURE\");\n FBProcedureCall fBProcedureCall1 = new FBProcedureCall();\n boolean boolean0 = fBProcedureCall0.equals(fBProcedureCall1);\n assertFalse(fBProcedureCall1.equals((Object)fBProcedureCall0));\n assertTrue(boolean0);\n }",
"@Test(timeout = 4000)\n public void test52() throws Throwable {\n FBProcedureCall fBProcedureCall0 = new FBProcedureCall();\n fBProcedureCall0.hashCode();\n }",
"private void checkInitialState(@NonNull StorageDelegator delegator) {\n // check initial data state\n Assert.assertNotNull(delegator.getOsmElement(Way.NAME, 210558043L));\n Assert.assertNotNull(delegator.getOsmElement(Node.NAME, 2206392996L));\n Assert.assertNotNull(delegator.getOsmElement(Node.NAME, 2206392994L));\n Assert.assertNotNull(delegator.getOsmElement(Node.NAME, 2206392992L));\n Assert.assertNotNull(delegator.getOsmElement(Node.NAME, 2206392993L));\n Assert.assertNotNull(delegator.getOsmElement(Node.NAME, 2206392996L));\n\n Way w = (Way) delegator.getOsmElement(Way.NAME, 210558045L);\n Assert.assertNotNull(w);\n Assert.assertEquals(OsmElement.STATE_UNCHANGED, w.getState());\n Assert.assertTrue(w.hasTag(\"addr:housenumber\", \"4\"));\n\n Node n = (Node) delegator.getOsmElement(Node.NAME, 416426220L);\n Assert.assertNotNull(n);\n Assert.assertEquals(OsmElement.STATE_UNCHANGED, n.getState());\n System.out.println(\"Lat \" + n.getLat());\n Assert.assertEquals(47.3898033D, n.getLat() / 1E7D, 0.00000001);\n Assert.assertEquals(8.3888382D, n.getLon() / 1E7D, 0.00000001);\n\n Relation r = (Relation) delegator.getOsmElement(Relation.NAME, 1638705L);\n Assert.assertEquals(OsmElement.STATE_UNCHANGED, r.getState());\n Assert.assertNotNull(r.getMember(Way.NAME, 119104094L));\n Way w2 = (Way) delegator.getOsmElement(Way.NAME, 119104094L);\n Assert.assertNotNull(w2);\n Assert.assertTrue(w2.getParentRelations().contains(r));\n }",
"@Test\r\n\tpublic final void testGetInstance() {\r\n\t\tComparatorFacade facade = ComparatorFacade.getInstance();\r\n\t\tAssert.assertSame(singleton, facade);\r\n\t}",
"@Test\n public void shouldNotAddDuplicateDependents() {\n String currentPipeline = \"p5\";\n ValueStreamMap graph = new ValueStreamMap(currentPipeline, null);\n Node p4 = graph.addUpstreamNode(new PipelineDependencyNode(\"p4\", \"p4\"), null, currentPipeline);\n graph.addUpstreamNode(new PipelineDependencyNode(\"p4\", \"p4\"), null, currentPipeline);\n\n assertThat(p4.getChildren().size(), is(1));\n VSMTestHelper.assertThatNodeHasChildren(graph, \"p4\", 0, \"p5\");\n }",
"private SingletonTextureFactory(){\n\t\tRandom rand = new Random();\n\t\tfactoryID = rand.nextInt(10000); \n\t}"
] | [
"0.73002243",
"0.70211554",
"0.6612397",
"0.59049904",
"0.55815965",
"0.5517213",
"0.5364047",
"0.53180385",
"0.5278672",
"0.5249133",
"0.5227084",
"0.5226284",
"0.5152821",
"0.51314515",
"0.5125466",
"0.5068257",
"0.50643003",
"0.49847415",
"0.49745095",
"0.49584723",
"0.49374923",
"0.4934821",
"0.4914881",
"0.48800114",
"0.4879128",
"0.4868986",
"0.48403004",
"0.48397967",
"0.48318496",
"0.48152703",
"0.48151767",
"0.48064888",
"0.47969705",
"0.479407",
"0.4787578",
"0.47852993",
"0.47700772",
"0.47700772",
"0.476064",
"0.47539726",
"0.47475561",
"0.47323146",
"0.47263482",
"0.47218698",
"0.47046903",
"0.46875525",
"0.4685849",
"0.46845713",
"0.46803907",
"0.46745467",
"0.46727625",
"0.46691072",
"0.46671623",
"0.46628818",
"0.4655129",
"0.46542135",
"0.46541026",
"0.46477106",
"0.46439785",
"0.46412152",
"0.46370214",
"0.46152803",
"0.46139207",
"0.46121198",
"0.4611231",
"0.46001557",
"0.459962",
"0.45995522",
"0.45833835",
"0.4578196",
"0.45769012",
"0.4572222",
"0.4570559",
"0.45640108",
"0.45615837",
"0.4560808",
"0.45605463",
"0.455287",
"0.45517904",
"0.45428002",
"0.4542444",
"0.45386785",
"0.45314205",
"0.4519774",
"0.4518989",
"0.4517849",
"0.4517456",
"0.4517297",
"0.45148903",
"0.4511866",
"0.45091087",
"0.45076725",
"0.45058367",
"0.45050317",
"0.45035633",
"0.4500737",
"0.44996357",
"0.44897726",
"0.4488475",
"0.44748232"
] | 0.8054197 | 0 |
Test hashCode() and equals() | @Test
public void testHashCodeAndEquals() throws Exception {
final String name = "testName";
TestStateDescriptor<String> original = new TestStateDescriptor<>(name, String.class);
TestStateDescriptor<String> same = new TestStateDescriptor<>(name, String.class);
TestStateDescriptor<String> sameBySerializer =
new TestStateDescriptor<>(name, StringSerializer.INSTANCE);
// test that hashCode() works on state descriptors with initialized and uninitialized
// serializers
assertEquals(original.hashCode(), same.hashCode());
assertEquals(original.hashCode(), sameBySerializer.hashCode());
assertEquals(original, same);
assertEquals(original, sameBySerializer);
// equality with a clone
TestStateDescriptor<String> clone = CommonTestUtils.createCopySerializable(original);
assertEquals(original, clone);
// equality with an initialized
clone.initializeSerializerUnlessSet(new ExecutionConfig());
assertEquals(original, clone);
original.initializeSerializerUnlessSet(new ExecutionConfig());
assertEquals(original, same);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n\tpublic void testHashCode() {\n\t\t// Same hashcode must be returned for equal objects\n\t\tassertTrue(\"Should have same hash code\", basic.hashCode() == equalsBasic.hashCode());\n\t}",
"@Test\n public void hashCodeTest() {\n prepareEntitiesForEqualityTest();\n\n assertEquals(entity0.hashCode(), entity1.hashCode());\n }",
"@Test\n public void testEqualsAndHashCode() {\n }",
"@Test\n\tpublic void test_hashCode1() {\n\tTennisPlayer c1 = new TennisPlayer(5,\"David Ferrer\");\n\tTennisPlayer c2 = new TennisPlayer(5,\"David Ferrer\");\n\tassertTrue(c1.hashCode()==c2.hashCode());\n }",
"@Test\n\tpublic void test_hashCode2() {\n\tTennisPlayer c1 = new TennisPlayer(5,\"David Ferrer\");\n\tTennisPlayer c3 = new TennisPlayer(99,\"David Ferrer\");\n\tassertTrue(c1.hashCode()!=c3.hashCode());\n }",
"@Test\n public void testHashCode() {\n System.out.println(\"Animal.hashCode\");\n assertEquals(471, animal1.hashCode());\n assertEquals(384, animal2.hashCode());\n }",
"@Test\n @Ignore\n public void testHashCode() {\n System.out.println(\"hashCode\");\n Setting instance = null;\n int expResult = 0;\n int result = instance.hashCode();\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }",
"@Test\n public void testHashCode() {\n System.out.println(\"hashCode\");\n int expResult = 7;\n int result = instance.hashCode();\n assertEquals(result, expResult);\n }",
"@Test\n\tpublic void test_hashCode2() {\n\tTvShow t1 = new TvShow(\"Sherlock\",\"BBC\");\n\tTvShow t3 = new TvShow(\"NotSherlock\",\"BBC\");\n\tassertTrue(t1.hashCode()!=t3.hashCode());\n }",
"@Test\n public void testHashCode() {\n System.out.println(\"hashCode\");\n Paciente instance = new Paciente();\n int expResult = 0;\n int result = instance.hashCode();\n assertEquals(expResult, result);\n\n }",
"@Test\n\tpublic void test_hashCode1() {\n\tTvShow t1 = new TvShow(\"Sherlock\",\"BBC\");\n\tTvShow t2 = new TvShow(\"Sherlock\",\"BBC\");\n\tassertTrue(t1.hashCode()==t2.hashCode());\n }",
"@Test\n public void hashCodeTest() {\n Device device2 = new Device(deviceID, token);\n assertEquals(device.hashCode(), device2.hashCode());\n }",
"@Test\n public void testHashCode() {\n System.out.println(\"hashCode\");\n Receta instance = new Receta();\n instance.setInstrucciones(\"inst1\");\n instance.setNombre(\"nom1\");\n int expResult = Objects.hash(\"nom1\",\"inst1\");\n int result = instance.hashCode();\n assertEquals(expResult, result);\n }",
"private static void checkEqualsAndHashCodeMethods(Object lhs, Object rhs,\n boolean expectedResult) {\n if ((lhs == null) && (rhs == null)) {\n Assert.assertTrue(\n \"Your check is dubious...why would you expect null != null?\",\n expectedResult);\n return;\n }\n\n if ((lhs == null) || (rhs == null)) {\n Assert.assertFalse(\n \"Your check is dubious...why would you expect an object \"\n + \"to be equal to null?\", expectedResult);\n }\n\n if (lhs != null) {\n assertEquals(expectedResult, lhs.equals(rhs));\n }\n if (rhs != null) {\n assertEquals(expectedResult, rhs.equals(lhs));\n }\n\n if (expectedResult) {\n String hashMessage =\n \"hashCode() values for equal objects should be the same\";\n Assert.assertTrue(hashMessage, lhs.hashCode() == rhs.hashCode());\n }\n }",
"public void testObjHashCode()\n {\n assertEquals( this.hashCode(), Util.objHashCode(this) );\n assertEquals( Util.objHashCode(null), Util.objHashCode(null) );\n }",
"@Test\n public void testHashcode() {\n\n final Role role = new Role(Role.Name.ROLE_USER);\n\n assertNotEquals(role.hashCode(), null);\n assertNotEquals(role.hashCode(), new Object().hashCode());\n assertEquals(role.hashCode(), role.hashCode());\n\n final Role roleEquals = new Role(Role.Name.ROLE_USER);\n\n assertEquals(role.hashCode(), roleEquals.hashCode());\n\n final Role roleNotEquals = new Role(Role.Name.ROLE_COMPANY);\n\n assertNotEquals(role.hashCode(), roleNotEquals.hashCode());\n }",
"@Test\r\n public void testHashCode() {\r\n System.out.println(\"hashCode\");\r\n Integrante instance = new Integrante();\r\n int expResult = 0;\r\n int result = instance.hashCode();\r\n assertEquals(expResult, result);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }",
"int hashCode();",
"int hashCode();",
"@Test\n public void testHashCode() {\n System.out.println(\"hashCode\");\n Usuario instance = null;\n int expResult = 0;\n int result = instance.hashCode();\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }",
"@Override\n public int hashCode();",
"@Test\n public void testHashCode() {\n System.out.println(\"hashCode\");\n Reserva instance = new Reserva();\n int expResult = 0;\n int result = instance.hashCode();\n assertEquals(expResult, result);\n \n }",
"@Test\n public void testHashCode() {\n System.out.println(\"hashCode\");\n Commissioner instance = new Commissioner();\n int expResult = 0;\n int result = instance.hashCode();\n assertEquals(expResult, result);\n }",
"@Override\n int hashCode();",
"@Test\n public void testHashCodeAndEquals() {\n Set<Pair<String, String>> pairs = IntStream.rangeClosed(1, 10).mapToObj( i->Pair.of(\"l\"+i, \"r\"+i)).collect( toSet() );\n assertEquals( 10, pairs.size() );\n assertTrue( pairs.contains(Pair.of(\"l1\", \"r1\")));\n assertFalse( pairs.contains(Pair.of(\"l100\", \"r100\")));\n }",
"@Test\n public void testHashCode() {\n LOGGER.info(\"testHashCode\");\n final String value = \"Hello\";\n final int actual = new AtomString(value).hashCode();\n final int expected = 61 * 7 + Objects.hashCode(value);\n assertEquals(expected, actual);\n }",
"@Test\r\n public void testHashCode() {\r\n System.out.println(\"hashCode\");\r\n RevisorParentesis instance = null;\r\n int expResult = 0;\r\n int result = instance.hashCode();\r\n assertEquals(expResult, result);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }",
"@Test\n public void hashCodeTest2() {\n Device device2 = new Device(\"other\", token);\n assertNotEquals(device.hashCode(), device2.hashCode());\n }",
"@Test\n public void testHashCode() {\n Rectangle r5 = new Rectangle(7, 4, new Color(255, 0, 0), new Position2D(50, 75));\n Rectangle r6 = new Rectangle(0, 4, new Color(255, 255, 255),\n new Position2D(-50, 75));\n Rectangle r7 = new Rectangle(7, 0, new Color(255, 255, 0), new Position2D(50, -75));\n Rectangle r8 = new Rectangle(0, 0, new Color(200, 150, 133),\n new Position2D(-50, -75));\n\n assertEquals(r1, r5);\n assertEquals(r2, r6);\n assertEquals(r3, r7);\n assertEquals(r4, r8);\n\n assertEquals(r1.hashCode(), r5.hashCode());\n assertEquals(r2.hashCode(), r6.hashCode());\n assertEquals(r3.hashCode(), r7.hashCode());\n assertEquals(r4.hashCode(), r8.hashCode());\n }",
"@Test\n public void hashCodeTest()\n {\n MapAdapter test1 = new MapAdapter();\n test1.put(1, \"test1\");\n\n MapAdapter test2 = new MapAdapter();\n test2.put(2, \"test2\");\n\n map.put(1, \"test1\");\n\n assertEquals(test1.hashCode(), map.hashCode());\n assertNotEquals(test2.hashCode(), map.hashCode());\n\n test1.put(1, 1);\n assertNotEquals(test1.hashCode(), map.hashCode());\n }",
"@Override \n int hashCode();",
"public int hashCode();",
"public int hashCode();",
"public int hashCode();",
"public int hashCode();",
"public int hashCode() {\n/* 76 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"private Equals() {}",
"@Test\n public void testHashcodeReturnsSameValueForIdenticalRecords() {\n int hashcodeA = record.hashCode();\n int hashcodeB = otherRecord.hashCode();\n\n assertThat(hashcodeA == hashcodeB, is(true));\n }",
"@Test\n public void testHashCodeEquals() {\n DvThresholdCrossingEvent tce = createThresholdCrossingEvent(KEPLER_ID,\n EPOCH_MJD, ORBITAL_PERIOD, TRIAL_TRANSIT_PULSE_DURATION,\n MAX_MULTIPLE_EVENT_SIGMA, MAX_SINGLE_EVENT_SIGMA, PIPELINE_TASK,\n WEAK_SECONDARY, CHI_SQUARE_1, CHI_SQUARE_2, CHI_SQUARE_DOF_1,\n CHI_SQUARE_DOF_2, ROBUST_STATISTIC, MAX_SES_IN_MES);\n assertEquals(thresholdCrossingEvent, tce);\n assertEquals(thresholdCrossingEvent.hashCode(), tce.hashCode());\n\n tce = createThresholdCrossingEvent(KEPLER_ID + 1, EPOCH_MJD,\n ORBITAL_PERIOD, TRIAL_TRANSIT_PULSE_DURATION,\n MAX_MULTIPLE_EVENT_SIGMA, MAX_SINGLE_EVENT_SIGMA, PIPELINE_TASK,\n WEAK_SECONDARY, CHI_SQUARE_1, CHI_SQUARE_2, CHI_SQUARE_DOF_1,\n CHI_SQUARE_DOF_2, ROBUST_STATISTIC, MAX_SES_IN_MES);\n assertFalse(\"equals\", thresholdCrossingEvent.equals(tce));\n assertFalse(\"hashCode\",\n thresholdCrossingEvent.hashCode() == tce.hashCode());\n\n tce = createThresholdCrossingEvent(KEPLER_ID, EPOCH_MJD + 1,\n ORBITAL_PERIOD, TRIAL_TRANSIT_PULSE_DURATION,\n MAX_MULTIPLE_EVENT_SIGMA, MAX_SINGLE_EVENT_SIGMA, PIPELINE_TASK,\n WEAK_SECONDARY, CHI_SQUARE_1, CHI_SQUARE_2, CHI_SQUARE_DOF_1,\n CHI_SQUARE_DOF_2, ROBUST_STATISTIC, MAX_SES_IN_MES);\n assertFalse(\"equals\", thresholdCrossingEvent.equals(tce));\n assertFalse(\"hashCode\",\n thresholdCrossingEvent.hashCode() == tce.hashCode());\n\n tce = createThresholdCrossingEvent(KEPLER_ID, EPOCH_MJD,\n ORBITAL_PERIOD + 1, TRIAL_TRANSIT_PULSE_DURATION,\n MAX_MULTIPLE_EVENT_SIGMA, MAX_SINGLE_EVENT_SIGMA, PIPELINE_TASK,\n WEAK_SECONDARY, CHI_SQUARE_1, CHI_SQUARE_2, CHI_SQUARE_DOF_1,\n CHI_SQUARE_DOF_2, ROBUST_STATISTIC, MAX_SES_IN_MES);\n assertFalse(\"equals\", thresholdCrossingEvent.equals(tce));\n assertFalse(\"hashCode\",\n thresholdCrossingEvent.hashCode() == tce.hashCode());\n\n tce = createThresholdCrossingEvent(KEPLER_ID, EPOCH_MJD,\n ORBITAL_PERIOD, TRIAL_TRANSIT_PULSE_DURATION + 1,\n MAX_MULTIPLE_EVENT_SIGMA, MAX_SINGLE_EVENT_SIGMA, PIPELINE_TASK,\n WEAK_SECONDARY, CHI_SQUARE_1, CHI_SQUARE_2, CHI_SQUARE_DOF_1,\n CHI_SQUARE_DOF_2, ROBUST_STATISTIC, MAX_SES_IN_MES);\n assertFalse(\"equals\", thresholdCrossingEvent.equals(tce));\n assertFalse(\"hashCode\",\n thresholdCrossingEvent.hashCode() == tce.hashCode());\n\n tce = createThresholdCrossingEvent(KEPLER_ID, EPOCH_MJD,\n ORBITAL_PERIOD, TRIAL_TRANSIT_PULSE_DURATION,\n MAX_MULTIPLE_EVENT_SIGMA + 1, MAX_SINGLE_EVENT_SIGMA,\n PIPELINE_TASK, WEAK_SECONDARY, CHI_SQUARE_1, CHI_SQUARE_2,\n CHI_SQUARE_DOF_1, CHI_SQUARE_DOF_2, ROBUST_STATISTIC,\n MAX_SES_IN_MES);\n assertFalse(\"equals\", thresholdCrossingEvent.equals(tce));\n assertFalse(\"hashCode\",\n thresholdCrossingEvent.hashCode() == tce.hashCode());\n\n tce = createThresholdCrossingEvent(KEPLER_ID, EPOCH_MJD,\n ORBITAL_PERIOD, TRIAL_TRANSIT_PULSE_DURATION,\n MAX_MULTIPLE_EVENT_SIGMA, MAX_SINGLE_EVENT_SIGMA + 1,\n PIPELINE_TASK, WEAK_SECONDARY, CHI_SQUARE_1, CHI_SQUARE_2,\n CHI_SQUARE_DOF_1, CHI_SQUARE_DOF_2, ROBUST_STATISTIC,\n MAX_SES_IN_MES);\n assertFalse(\"equals\", thresholdCrossingEvent.equals(tce));\n assertFalse(\"hashCode\",\n thresholdCrossingEvent.hashCode() == tce.hashCode());\n\n tce = createThresholdCrossingEvent(KEPLER_ID, EPOCH_MJD,\n ORBITAL_PERIOD, TRIAL_TRANSIT_PULSE_DURATION,\n MAX_MULTIPLE_EVENT_SIGMA, MAX_SINGLE_EVENT_SIGMA,\n createPipelineTask(PIPELINE_TASK_ID + 1), WEAK_SECONDARY,\n CHI_SQUARE_1, CHI_SQUARE_2, CHI_SQUARE_DOF_1, CHI_SQUARE_DOF_2,\n ROBUST_STATISTIC, MAX_SES_IN_MES);\n assertFalse(\"equals\", thresholdCrossingEvent.equals(tce));\n assertFalse(\"hashCode\",\n thresholdCrossingEvent.hashCode() == tce.hashCode());\n\n tce = createThresholdCrossingEvent(\n KEPLER_ID,\n EPOCH_MJD,\n ORBITAL_PERIOD,\n TRIAL_TRANSIT_PULSE_DURATION,\n MAX_MULTIPLE_EVENT_SIGMA,\n MAX_SINGLE_EVENT_SIGMA,\n PIPELINE_TASK,\n createWeakSecondary(MAX_MES_PHASE_IN_DAYS + 1, MAX_MES,\n MIN_MES_PHASE_IN_DAYS, MIN_MES, MES_MAD, DEPTHPPM_VALUE,\n DEPTHPPM_UNCERTAINTY, MEDIAN_MES, VALID_PHASE_COUNT,\n WEAK_SECONDARY_ROBUST_STATISTIC), CHI_SQUARE_1, CHI_SQUARE_2,\n CHI_SQUARE_DOF_1, CHI_SQUARE_DOF_2, ROBUST_STATISTIC,\n MAX_SES_IN_MES);\n assertFalse(\"equals\", thresholdCrossingEvent.equals(tce));\n assertFalse(\"hashCode\",\n thresholdCrossingEvent.hashCode() == tce.hashCode());\n\n tce = createThresholdCrossingEvent(\n KEPLER_ID,\n EPOCH_MJD,\n ORBITAL_PERIOD,\n TRIAL_TRANSIT_PULSE_DURATION,\n MAX_MULTIPLE_EVENT_SIGMA,\n MAX_SINGLE_EVENT_SIGMA,\n PIPELINE_TASK,\n createWeakSecondary(MAX_MES_PHASE_IN_DAYS, MAX_MES + 1,\n MIN_MES_PHASE_IN_DAYS, MIN_MES, MES_MAD, DEPTHPPM_VALUE,\n DEPTHPPM_UNCERTAINTY, MEDIAN_MES, VALID_PHASE_COUNT,\n WEAK_SECONDARY_ROBUST_STATISTIC), CHI_SQUARE_1, CHI_SQUARE_2,\n CHI_SQUARE_DOF_1, CHI_SQUARE_DOF_2, ROBUST_STATISTIC,\n MAX_SES_IN_MES);\n assertFalse(\"equals\", thresholdCrossingEvent.equals(tce));\n assertFalse(\"hashCode\",\n thresholdCrossingEvent.hashCode() == tce.hashCode());\n\n tce = createThresholdCrossingEvent(\n KEPLER_ID,\n EPOCH_MJD,\n ORBITAL_PERIOD,\n TRIAL_TRANSIT_PULSE_DURATION,\n MAX_MULTIPLE_EVENT_SIGMA,\n MAX_SINGLE_EVENT_SIGMA,\n PIPELINE_TASK,\n createWeakSecondary(MAX_MES_PHASE_IN_DAYS, MAX_MES,\n MIN_MES_PHASE_IN_DAYS + 1, MIN_MES, MES_MAD, DEPTHPPM_VALUE,\n DEPTHPPM_UNCERTAINTY, MEDIAN_MES, VALID_PHASE_COUNT,\n WEAK_SECONDARY_ROBUST_STATISTIC), CHI_SQUARE_1, CHI_SQUARE_2,\n CHI_SQUARE_DOF_1, CHI_SQUARE_DOF_2, ROBUST_STATISTIC,\n MAX_SES_IN_MES);\n assertFalse(\"equals\", thresholdCrossingEvent.equals(tce));\n assertFalse(\"hashCode\",\n thresholdCrossingEvent.hashCode() == tce.hashCode());\n\n tce = createThresholdCrossingEvent(\n KEPLER_ID,\n EPOCH_MJD,\n ORBITAL_PERIOD,\n TRIAL_TRANSIT_PULSE_DURATION,\n MAX_MULTIPLE_EVENT_SIGMA,\n MAX_SINGLE_EVENT_SIGMA,\n PIPELINE_TASK,\n createWeakSecondary(MAX_MES_PHASE_IN_DAYS, MAX_MES,\n MIN_MES_PHASE_IN_DAYS, MIN_MES + 1, MES_MAD, DEPTHPPM_VALUE,\n DEPTHPPM_UNCERTAINTY, MEDIAN_MES, VALID_PHASE_COUNT,\n WEAK_SECONDARY_ROBUST_STATISTIC), CHI_SQUARE_1, CHI_SQUARE_2,\n CHI_SQUARE_DOF_1, CHI_SQUARE_DOF_2, ROBUST_STATISTIC,\n MAX_SES_IN_MES);\n assertFalse(\"equals\", thresholdCrossingEvent.equals(tce));\n assertFalse(\"hashCode\",\n thresholdCrossingEvent.hashCode() == tce.hashCode());\n\n tce = createThresholdCrossingEvent(\n KEPLER_ID,\n EPOCH_MJD,\n ORBITAL_PERIOD,\n TRIAL_TRANSIT_PULSE_DURATION,\n MAX_MULTIPLE_EVENT_SIGMA,\n MAX_SINGLE_EVENT_SIGMA,\n PIPELINE_TASK,\n createWeakSecondary(MAX_MES_PHASE_IN_DAYS, MAX_MES,\n MIN_MES_PHASE_IN_DAYS, MIN_MES, MES_MAD + 1, DEPTHPPM_VALUE,\n DEPTHPPM_UNCERTAINTY, MEDIAN_MES, VALID_PHASE_COUNT,\n WEAK_SECONDARY_ROBUST_STATISTIC), CHI_SQUARE_1, CHI_SQUARE_2,\n CHI_SQUARE_DOF_1, CHI_SQUARE_DOF_2, ROBUST_STATISTIC,\n MAX_SES_IN_MES);\n assertFalse(\"equals\", thresholdCrossingEvent.equals(tce));\n assertFalse(\"hashCode\",\n thresholdCrossingEvent.hashCode() == tce.hashCode());\n\n tce = createThresholdCrossingEvent(\n KEPLER_ID,\n EPOCH_MJD,\n ORBITAL_PERIOD,\n TRIAL_TRANSIT_PULSE_DURATION,\n MAX_MULTIPLE_EVENT_SIGMA,\n MAX_SINGLE_EVENT_SIGMA,\n PIPELINE_TASK,\n createWeakSecondary(MAX_MES_PHASE_IN_DAYS, MAX_MES,\n MIN_MES_PHASE_IN_DAYS, MIN_MES, MES_MAD, DEPTHPPM_VALUE,\n DEPTHPPM_UNCERTAINTY, MEDIAN_MES + 1, VALID_PHASE_COUNT,\n WEAK_SECONDARY_ROBUST_STATISTIC), CHI_SQUARE_1, CHI_SQUARE_2,\n CHI_SQUARE_DOF_1, CHI_SQUARE_DOF_2, ROBUST_STATISTIC,\n MAX_SES_IN_MES);\n assertFalse(\"equals\", thresholdCrossingEvent.equals(tce));\n assertFalse(\"hashCode\",\n thresholdCrossingEvent.hashCode() == tce.hashCode());\n\n tce = createThresholdCrossingEvent(\n KEPLER_ID,\n EPOCH_MJD,\n ORBITAL_PERIOD,\n TRIAL_TRANSIT_PULSE_DURATION,\n MAX_MULTIPLE_EVENT_SIGMA,\n MAX_SINGLE_EVENT_SIGMA,\n PIPELINE_TASK,\n createWeakSecondary(MAX_MES_PHASE_IN_DAYS, MAX_MES,\n MIN_MES_PHASE_IN_DAYS, MIN_MES, MES_MAD, DEPTHPPM_VALUE,\n DEPTHPPM_UNCERTAINTY, MEDIAN_MES, VALID_PHASE_COUNT + 1,\n WEAK_SECONDARY_ROBUST_STATISTIC), CHI_SQUARE_1, CHI_SQUARE_2,\n CHI_SQUARE_DOF_1, CHI_SQUARE_DOF_2, ROBUST_STATISTIC,\n MAX_SES_IN_MES);\n assertFalse(\"equals\", thresholdCrossingEvent.equals(tce));\n assertFalse(\"hashCode\",\n thresholdCrossingEvent.hashCode() == tce.hashCode());\n\n tce = createThresholdCrossingEvent(\n KEPLER_ID,\n EPOCH_MJD,\n ORBITAL_PERIOD,\n TRIAL_TRANSIT_PULSE_DURATION,\n MAX_MULTIPLE_EVENT_SIGMA,\n MAX_SINGLE_EVENT_SIGMA,\n PIPELINE_TASK,\n createWeakSecondary(MAX_MES_PHASE_IN_DAYS, MAX_MES,\n MIN_MES_PHASE_IN_DAYS, MIN_MES, MES_MAD, DEPTHPPM_VALUE,\n DEPTHPPM_UNCERTAINTY, MEDIAN_MES, VALID_PHASE_COUNT,\n WEAK_SECONDARY_ROBUST_STATISTIC + 1), CHI_SQUARE_1,\n CHI_SQUARE_2, CHI_SQUARE_DOF_1, CHI_SQUARE_DOF_2, ROBUST_STATISTIC,\n MAX_SES_IN_MES);\n assertFalse(\"equals\", thresholdCrossingEvent.equals(tce));\n assertFalse(\"hashCode\",\n thresholdCrossingEvent.hashCode() == tce.hashCode());\n\n tce = createThresholdCrossingEvent(KEPLER_ID, EPOCH_MJD,\n ORBITAL_PERIOD, TRIAL_TRANSIT_PULSE_DURATION,\n MAX_MULTIPLE_EVENT_SIGMA, MAX_SINGLE_EVENT_SIGMA, PIPELINE_TASK,\n WEAK_SECONDARY, CHI_SQUARE_1 + 1, CHI_SQUARE_2, CHI_SQUARE_DOF_1,\n CHI_SQUARE_DOF_2, ROBUST_STATISTIC, MAX_SES_IN_MES);\n assertFalse(\"equals\", thresholdCrossingEvent.equals(tce));\n assertFalse(\"hashCode\",\n thresholdCrossingEvent.hashCode() == tce.hashCode());\n\n tce = createThresholdCrossingEvent(KEPLER_ID, EPOCH_MJD,\n ORBITAL_PERIOD, TRIAL_TRANSIT_PULSE_DURATION,\n MAX_MULTIPLE_EVENT_SIGMA, MAX_SINGLE_EVENT_SIGMA, PIPELINE_TASK,\n WEAK_SECONDARY, CHI_SQUARE_1, CHI_SQUARE_2 + 1, CHI_SQUARE_DOF_1,\n CHI_SQUARE_DOF_2, ROBUST_STATISTIC, MAX_SES_IN_MES);\n assertFalse(\"equals\", thresholdCrossingEvent.equals(tce));\n assertFalse(\"hashCode\",\n thresholdCrossingEvent.hashCode() == tce.hashCode());\n\n tce = createThresholdCrossingEvent(KEPLER_ID, EPOCH_MJD,\n ORBITAL_PERIOD, TRIAL_TRANSIT_PULSE_DURATION,\n MAX_MULTIPLE_EVENT_SIGMA, MAX_SINGLE_EVENT_SIGMA, PIPELINE_TASK,\n WEAK_SECONDARY, CHI_SQUARE_1, CHI_SQUARE_2, CHI_SQUARE_DOF_1 + 1,\n CHI_SQUARE_DOF_2, ROBUST_STATISTIC, MAX_SES_IN_MES);\n assertFalse(\"equals\", thresholdCrossingEvent.equals(tce));\n assertFalse(\"hashCode\",\n thresholdCrossingEvent.hashCode() == tce.hashCode());\n\n tce = createThresholdCrossingEvent(KEPLER_ID, EPOCH_MJD,\n ORBITAL_PERIOD, TRIAL_TRANSIT_PULSE_DURATION,\n MAX_MULTIPLE_EVENT_SIGMA, MAX_SINGLE_EVENT_SIGMA, PIPELINE_TASK,\n WEAK_SECONDARY, CHI_SQUARE_1, CHI_SQUARE_2, CHI_SQUARE_DOF_1,\n CHI_SQUARE_DOF_2 + 1, ROBUST_STATISTIC, MAX_SES_IN_MES);\n assertFalse(\"equals\", thresholdCrossingEvent.equals(tce));\n assertFalse(\"hashCode\",\n thresholdCrossingEvent.hashCode() == tce.hashCode());\n\n tce = createThresholdCrossingEvent(KEPLER_ID, EPOCH_MJD,\n ORBITAL_PERIOD, TRIAL_TRANSIT_PULSE_DURATION,\n MAX_MULTIPLE_EVENT_SIGMA, MAX_SINGLE_EVENT_SIGMA, PIPELINE_TASK,\n WEAK_SECONDARY, CHI_SQUARE_1, CHI_SQUARE_2, CHI_SQUARE_DOF_1,\n CHI_SQUARE_DOF_2, ROBUST_STATISTIC + 1, MAX_SES_IN_MES);\n assertFalse(\"equals\", thresholdCrossingEvent.equals(tce));\n assertFalse(\"hashCode\",\n thresholdCrossingEvent.hashCode() == tce.hashCode());\n\n tce = createThresholdCrossingEvent(KEPLER_ID, EPOCH_MJD,\n ORBITAL_PERIOD, TRIAL_TRANSIT_PULSE_DURATION,\n MAX_MULTIPLE_EVENT_SIGMA, MAX_SINGLE_EVENT_SIGMA, PIPELINE_TASK,\n WEAK_SECONDARY, CHI_SQUARE_1, CHI_SQUARE_2, CHI_SQUARE_DOF_1,\n CHI_SQUARE_DOF_2, ROBUST_STATISTIC, MAX_SES_IN_MES + 1);\n assertFalse(\"equals\", thresholdCrossingEvent.equals(tce));\n assertFalse(\"hashCode\",\n thresholdCrossingEvent.hashCode() == tce.hashCode());\n }",
"@Override\n public abstract int hashCode();",
"@Override\n public abstract int hashCode();",
"@Override\n public abstract int hashCode();",
"public abstract int hashCode();",
"@Test\n\tpublic void testDeckHashCodeAgain() {\n\t\t\n\t\tStandardDeckClass oneDeck = new StandardDeckClass();\n\t\tVegasDeckClass testDeck = new VegasDeckClass();\n\t\t\t\n\t\tassertNotEquals(\"hashCode method not working as expected\", oneDeck.hashCode(), testDeck.hashCode());\n\t}",
"public void test_hashCode() {\n ParsePosition pp1 = new ParsePosition(0);\n ParsePosition pp2 = new ParsePosition(0);\n TestCase.assertTrue(\"hashCode returns non equal hash codes for equal objects.\", ((pp1.hashCode()) == (pp2.hashCode())));\n pp1.setIndex(Integer.MAX_VALUE);\n TestCase.assertTrue(\"hashCode returns equal hash codes for non equal objects.\", ((pp1.hashCode()) != (pp2.hashCode())));\n }",
"@SuppressWarnings(\"resource\")\n @Test\n public void testHashCode() {\n try {\n SubtenantPolicyGroupListOptions subtenantpolicygrouplistoptions1 = new SubtenantPolicyGroupListOptions(Integer.valueOf(94),\n Long.valueOf(71),\n Order.getDefault(),\n \"8dc5a82a-6167-4538-8ded-4ce5f9a7634b\",\n null,\n null);\n SubtenantPolicyGroupListOptions subtenantpolicygrouplistoptions2 = new SubtenantPolicyGroupListOptions(Integer.valueOf(94),\n Long.valueOf(71),\n Order.getDefault(),\n \"8dc5a82a-6167-4538-8ded-4ce5f9a7634b\",\n null,\n null);\n assertNotNull(subtenantpolicygrouplistoptions1);\n assertNotNull(subtenantpolicygrouplistoptions2);\n assertNotSame(subtenantpolicygrouplistoptions2, subtenantpolicygrouplistoptions1);\n assertEquals(subtenantpolicygrouplistoptions2, subtenantpolicygrouplistoptions1);\n assertEquals(subtenantpolicygrouplistoptions2.hashCode(), subtenantpolicygrouplistoptions1.hashCode());\n int hashCode = subtenantpolicygrouplistoptions1.hashCode();\n for (int i = 0; i < 5; i++) {\n assertEquals(hashCode, subtenantpolicygrouplistoptions1.hashCode());\n }\n } catch (Exception exception) {\n fail(exception.getMessage());\n }\n }",
"@Override\n\t public int hashCode();",
"@Test\n public void testHashCode() {\n\n\tLoadCategories lobj = new LoadCategories();\n\tLoadCategoriesForm instance = new LoadCategoriesForm();\n\tinstance.setLoadCategory(new LoadCategories());\n\tint expResult = 0;\n\tint result = instance.hashCode();\n\tassertEquals(expResult, result);\n\tinstance.equals(lobj);\n }",
"public int hashCode() {\n/* 182 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"@Test public void hashCodeTest() throws NegativeValueException {\n PetBunny pb1 = new PetBunny(\"Floppy\", \"Holland Lop\", 3.5);\n \n Assert.assertEquals(0, pb1.hashCode(), 0.0001);\n }",
"@Test\n public void testHash() {\n // the hash function does sha256, but I guess I don't care about implementation\n // test if two things hash to same value\n logger.trace(\"Equal strings hash to same value\");\n String hash1 = Util.hash(\"foobar\");\n String hash2 = Util.hash(\"foobar\");\n Assert.assertEquals(hash1, hash2);\n\n // test if different things hash to different value\n logger.trace(\"Unequal strings hash to different value\");\n hash1 = Util.hash(\"foobar\");\n hash2 = Util.hash(\"barfoo\");\n Assert.assertNotEquals(hash1, hash2);\n\n // test if hash length > 5 (arbitrary)\n logger.trace(\"Hash is of sufficient length to avoid collisions\");\n hash1 = Util.hash(\"baz\");\n final int length = hash1.length();\n Assert.assertTrue(length > 5);\n }",
"@Test\n public void testHashCode() {\n Coctail c1 = new Coctail(\"coctail\", new Ingredient[]{ \n new Ingredient(\"ing1\"), new Ingredient(\"ing2\")});\n \n int expectedHashCode = 7;\n expectedHashCode = 37 * expectedHashCode + Objects.hashCode(\"coctail\");\n expectedHashCode = 37 * expectedHashCode + Arrays.deepHashCode(new Ingredient[]{ \n new Ingredient(\"ing1\"), new Ingredient(\"ing2\")});\n \n assertEquals(expectedHashCode, c1.hashCode());\n }",
"@SuppressWarnings(\"resource\")\n @Test\n public void testHashCode() {\n try {\n ApiKey apikey1 = new ApiKey(\"bd1f89fbddbde18d4244b748ca1d250b\", new Date(1570127622312L), -54,\n \"bd1f89fbddbde18d4244b748ca1d250b\", \"fdf184b3-81d4-449f-ad84-da9d9f4732b2\", 73,\n \"d8fff014-0bf4-46d5-b2da-3391ccc51619\", \"bd1f89fbddbde18d4244b748ca1d250b\",\n ApiKeyStatus.getDefault(), new Date(1570127620753L));\n ApiKey apikey2 = new ApiKey(\"bd1f89fbddbde18d4244b748ca1d250b\", new Date(1570127622312L), -54,\n \"bd1f89fbddbde18d4244b748ca1d250b\", \"fdf184b3-81d4-449f-ad84-da9d9f4732b2\", 73,\n \"d8fff014-0bf4-46d5-b2da-3391ccc51619\", \"bd1f89fbddbde18d4244b748ca1d250b\",\n ApiKeyStatus.getDefault(), new Date(1570127620753L));\n assertNotNull(apikey1);\n assertNotNull(apikey2);\n assertNotSame(apikey2, apikey1);\n assertEquals(apikey2, apikey1);\n assertEquals(apikey2.hashCode(), apikey1.hashCode());\n int hashCode = apikey1.hashCode();\n for (int i = 0; i < 5; i++) {\n assertEquals(hashCode, apikey1.hashCode());\n }\n } catch (Exception exception) {\n fail(exception.getMessage());\n }\n }",
"@Test\n public void testHash() \n\t{\n\tLaboonCoin l = new LaboonCoin();\n\t\tint hash = l.hash(\"boo\");\n\t\tint result = 1428150834;\n\t\tassertEquals(result, hash);\n }",
"@Test\n public void testEquals04() {\n System.out.println(\"equals\");\n\n Set<City> cities = new HashSet<>();\n cities.add(new City(new Pair(41.243345, -8.674084), \"city0\", 28));\n cities.add(new City(new Pair(41.237364, -8.846746), \"city1\", 72));\n cities.add(new City(new Pair(40.519841, -8.085113), \"city2\", 81));\n cities.add(new City(new Pair(41.118700, -8.589700), \"city3\", 42));\n cities.add(new City(new Pair(41.467407, -8.964340), \"city4\", 64));\n cities.add(new City(new Pair(41.337408, -8.291943), \"city5\", 74));\n cities.add(new City(new Pair(41.314965, -8.423371), \"city6\", 80));\n cities.add(new City(new Pair(40.822244, -8.794953), \"city7\", 11));\n cities.add(new City(new Pair(40.781886, -8.697502), \"city8\", 7));\n cities.add(new City(new Pair(40.851360, -8.136585), \"city9\", 65));\n\n Object otherObject = new SocialNetwork(new HashSet(), cities);\n boolean result = sn10.equals(otherObject);\n assertFalse(result);\n }",
"@Test\n public void hashCode_equals() {\n assertEquals(defaultGuiSettings.hashCode(), defaultGuiSettings.hashCode());\n assertEquals(userGuiSettings.hashCode(), userGuiSettings.hashCode());\n\n // same values -> same hash code\n assertEquals(defaultGuiSettings.hashCode(), new GuiSettings().hashCode());\n assertEquals(userGuiSettings.hashCode(), new GuiSettings(700, 900, 200, 300).hashCode());\n }",
"@Test\r\n public void testHash() {\r\n Settings expResult = Settings.EXPERT;\r\n int kod = 16 * 30 * 99;\r\n assertEquals(expResult.hashCode(), kod);\r\n \r\n expResult = Settings.INTERMEDIATE;\r\n kod = 16 * 16 * 40;\r\n assertEquals(expResult.hashCode(), kod);\r\n \r\n expResult = Settings.BEGINNER;\r\n kod = 9 * 9 * 10;\r\n assertEquals(expResult.hashCode(), kod);\r\n }",
"@Test\n\tpublic void testDeckHashCode() {\n\t\t\n\t\tStandardDeckClass oneDeck = new StandardDeckClass();\n\t\tStandardDeckClass testDeck = new StandardDeckClass();\n\t\t\n\t\tassertEquals(\"hashcode method not working as expected\", oneDeck.hashCode(), testDeck.hashCode());\n\t}",
"@SuppressWarnings({\"UnnecessaryLocalVariable\"})\n @Test\n void testEqualsAndHashCode(SoftAssertions softly) {\n SortOrder sortOrder0 = new SortOrder(\"i0\", true, false, true);\n SortOrder sortOrder1 = sortOrder0;\n SortOrder sortOrder2 = new SortOrder(\"i0\", true, false, true);\n\n softly.assertThat(sortOrder0.hashCode()).isEqualTo(sortOrder2.hashCode());\n //noinspection EqualsWithItself\n softly.assertThat(sortOrder0.equals(sortOrder0)).isTrue();\n //noinspection ConstantConditions\n softly.assertThat(sortOrder0.equals(sortOrder1)).isTrue();\n softly.assertThat(sortOrder0.equals(sortOrder2)).isTrue();\n\n SortOrder sortOrder3 = new SortOrder(\"i1\", true, false, true);\n softly.assertThat(sortOrder0.equals(sortOrder3)).isFalse();\n\n //noinspection EqualsBetweenInconvertibleTypes\n softly.assertThat(sortOrder0.equals(new SortOrders())).isFalse();\n }",
"@Override\n\tpublic boolean equals(Object obj) {\n\t\treturn this.hashCode() == obj.hashCode();\n\t}",
"@Override\n\tpublic boolean equals(Object obj) {\n\t\treturn this.hashCode() == obj.hashCode();\n\t}",
"@Override\n\t\tpublic int hashCode()\n\t\t{\n\t\t\treturn super.hashCode(); //Default implementation; may need to bring in line to equals\n\t\t}",
"@SuppressWarnings(\"resource\")\n @Test\n public void testHashCode() {\n try {\n SubtenantApiKey subtenantapikey1 = new SubtenantApiKey(\"4f267f967f7d1f5e3fa0d6abaccdb4bf\",\n new Date(1574704661913L), -32, null,\n \"4f267f967f7d1f5e3fa0d6abaccdb4bf\",\n \"ef1cd9b8-3221-4391-aefc-23518f83faa3\", -25,\n \"e25f9e8a-ec98-4538-8132-816a43b1d1d2\",\n \"4f267f967f7d1f5e3fa0d6abaccdb4bf\",\n SubtenantApiKeyStatus.getDefault(),\n new Date(1574704664911L));\n SubtenantApiKey subtenantapikey2 = new SubtenantApiKey(\"4f267f967f7d1f5e3fa0d6abaccdb4bf\",\n new Date(1574704661913L), -32, null,\n \"4f267f967f7d1f5e3fa0d6abaccdb4bf\",\n \"ef1cd9b8-3221-4391-aefc-23518f83faa3\", -25,\n \"e25f9e8a-ec98-4538-8132-816a43b1d1d2\",\n \"4f267f967f7d1f5e3fa0d6abaccdb4bf\",\n SubtenantApiKeyStatus.getDefault(),\n new Date(1574704664911L));\n assertNotNull(subtenantapikey1);\n assertNotNull(subtenantapikey2);\n assertNotSame(subtenantapikey2, subtenantapikey1);\n assertEquals(subtenantapikey2, subtenantapikey1);\n assertEquals(subtenantapikey2.hashCode(), subtenantapikey1.hashCode());\n int hashCode = subtenantapikey1.hashCode();\n for (int i = 0; i < 5; i++) {\n assertEquals(hashCode, subtenantapikey1.hashCode());\n }\n } catch (Exception exception) {\n fail(exception.getMessage());\n }\n }",
"@Test\n public void testHashCode() {\n assertEquals(uniqueParticipantList.hashCode(), uniqueParticipantList.hashCode());\n\n // different lists -> returns different hashcode\n secondUniqueParticipantList.add(BERNICE);\n assertNotEquals(uniqueParticipantList.hashCode(), secondUniqueParticipantList.hashCode());\n }",
"@Test\n @DisplayName(\"Matched\")\n public void testEqualsMatched() throws BadAttributeException {\n Settings settings = new Settings();\n assertEquals(new Settings().hashCode(), settings.hashCode());\n }",
"@Test\n void testSameHashCodes() {\n assertEquals(loginRequest1.hashCode(), loginRequest1.hashCode());\n }",
"public void testHashcode() {\n XYBlockRenderer r1 = new XYBlockRenderer();\n XYBlockRenderer r2 = new XYBlockRenderer();\n int h1 = r1.hashCode();\n int h2 = r2.hashCode();\n }",
"protected abstract boolean equalityTest(Object key, Object key2);",
"@Test\n public void testHashCode() {\n ChatMessage differentMessage = new ChatMessage(\"Javache\", \"JaJa!\");\n assertNotSame(chatMessage.hashCode(), differentMessage.hashCode());\n }",
"@Test\n public void testHashCode_1()\n throws Exception {\n Project fixture = new Project();\n fixture.setWorkloadNames(\"\");\n fixture.setName(\"\");\n fixture.setScriptDriver(ScriptDriver.SilkPerformer);\n fixture.setWorkloads(new LinkedList());\n fixture.setComments(\"\");\n fixture.setProductName(\"\");\n\n int result = fixture.hashCode();\n\n assertEquals(1305, result);\n }",
"public int hashCode() {\n assert false : \"hashCode not designed\";\n return 42;\n }",
"public boolean check_hash() {\n HashSet<E> realSet = new HashSet(this);\n return realSet.size() == this.size();\n }",
"public boolean equals(Object other) {\n/* 70 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"@Override\n public boolean equals(Object other) {\n if (other.getClass() == getClass()) {\n return hashCode() == other.hashCode();\n }\n\n return false;\n }",
"@Override\n public int hashCode()\n {\n return hashCode;\n }",
"@Test\r\n\tvoid testHashCodes() {\n\r\n\t\tvar dummyExpr = new BooleanValue(false);\r\n\t\tvar dummyStatement = new Statement.Empty();\r\n\t\tvar dummyBlock = new Block(new Statement[]{\r\n\t\t\tdummyStatement\r\n\t\t});\r\n\r\n\t\t// The statements\r\n\t\tnew Statement.ExpressionStatement(dummyExpr, ExpressionStatementKind.NORMAL).hashCode();\r\n\t\tnew Statement.Assignment(new Expression.Symbol(\"foo\"), dummyExpr).hashCode();\r\n\t\tnew Statement.WhileLoop(dummyExpr, dummyBlock).hashCode();\r\n\t\tnew Statement.If(new Expression[]{}, new Block[]{}).hashCode();\r\n\t\tnew Statement.BlockStatement(dummyBlock).hashCode();\r\n\t\tnew Statement.Rule(new Expression[]{\r\n\t\t\tdummyExpr\r\n\t\t}, new Expression[]{}, dummyBlock).hashCode();\r\n\t\tvar functionDef = new Statement.FunctionDefinition(new Expression.Symbol(\"foo\"), new Expression.Symbol[]{}, 0, dummyBlock);\r\n\t\tfunctionDef.hashCode();\r\n\t\tnew Statement.Empty().hashCode();\r\n\r\n\t\t// The expressions.\r\n\t\tnew Expression.Binary(dummyExpr, BinaryOperator.ADD, dummyExpr).hashCode();\r\n\t\tnew Expression.FunctionCall(dummyExpr, new Expression[]{}).hashCode();\r\n\t\tnew Expression.Index(dummyExpr, dummyExpr).hashCode();\r\n\t\tnew Expression.Symbol(\"foo\").hashCode();\r\n\t\tnew Expression.Unary(dummyExpr, UnaryOperator.NEGATE).hashCode();\r\n\t\tnew Expression.Array(new Expression[]{}).hashCode();\r\n\t\tnew Expression.Dictionary(new Expression[]{}, new Expression[]{}).hashCode();\r\n\t\tnew Expression.Lambda(functionDef).hashCode();\r\n\t\tnew Expression.IndexRange(dummyExpr, dummyExpr, dummyExpr).hashCode();\r\n\r\n\t\t// The values.\r\n\t\tnew BooleanValue(false).hashCode();\r\n\t\tnew IntegerValue(0).hashCode();\r\n\t\tnew DoubleValue(0).hashCode();\r\n\t\tnew StringValue(\"foo\").hashCode();\r\n\t\tnew ArrayValue(new ExpressionValue[]{}).hashCode();\r\n\t\tnew DictionaryValue(new HashMap<>()).hashCode();\r\n\t}",
"@Override\n\tpublic boolean equals(TestObject obj) {\n\t\treturn false;\n\t}",
"@Test\n public void testHashCode() {\n\tSystem.out.println(\"hashCode\");\n\tJenkinsBuild instance = new JenkinsBuild();\n\tinstance.hashCode();\n }",
"@Test\n public void testHashAndEqualsCode() {\n ServerName hsa1 = ServerName.valueOf(\"localhost\", 1234, -1L);\n HRegionLocation hrl1 = new HRegionLocation(RegionInfoBuilder.FIRST_META_REGIONINFO, hsa1);\n HRegionLocation hrl2 = new HRegionLocation(RegionInfoBuilder.FIRST_META_REGIONINFO, hsa1);\n assertEquals(hrl1.hashCode(), hrl2.hashCode());\n assertTrue(hrl1.equals(hrl2));\n HRegionLocation hrl3 = new HRegionLocation(RegionInfoBuilder.FIRST_META_REGIONINFO, hsa1);\n assertNotSame(hrl1, hrl3);\n // They are equal because they have same location even though they are\n // carrying different regions or timestamp.\n assertTrue(hrl1.equals(hrl3));\n ServerName hsa2 = ServerName.valueOf(\"localhost\", 12345, -1L);\n HRegionLocation hrl4 = new HRegionLocation(RegionInfoBuilder.FIRST_META_REGIONINFO, hsa2);\n // These have same HRI but different locations so should be different.\n assertFalse(hrl3.equals(hrl4));\n HRegionLocation hrl5 =\n new HRegionLocation(hrl4.getRegion(), hrl4.getServerName(), hrl4.getSeqNum() + 1);\n assertTrue(hrl4.equals(hrl5));\n }",
"@Test\n public void equalsTrueMySelf() {\n Player player1 = new Player(PlayerColor.BLACK, \"\");\n assertTrue(player1.equals(player1));\n assertTrue(player1.hashCode() == player1.hashCode());\n }",
"public boolean equals(Object obj) {\n/* 193 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"public void testEquals() throws Exception {\n State state1 = new State();\n state1.setCanJump(1);\n state1.setDirection(1);\n state1.setGotHit(1);\n state1.setHeight(1);\n state1.setMarioMode(1);\n state1.setOnGround(1);\n state1.setEnemiesSmall(new boolean[3]);\n state1.setObstacles(new boolean[4]);\n state1.setDistance(1);\n state1.setStuck(1);\n\n State state2 = new State();\n state2.setCanJump(1);\n state2.setDirection(1);\n state2.setGotHit(1);\n state2.setHeight(1);\n state2.setMarioMode(1);\n state2.setOnGround(1);\n state2.setEnemiesSmall(new boolean[3]);\n state2.setObstacles(new boolean[4]);\n state2.setStuck(1);\n\n State state3 = new State();\n state3.setCanJump(1);\n state3.setDirection(1);\n state3.setGotHit(1);\n state3.setHeight(1);\n state3.setMarioMode(2);\n state3.setOnGround(1);\n state3.setEnemiesSmall(new boolean[3]);\n state3.setObstacles(new boolean[4]);\n assertEquals(state1,state2);\n assertTrue(state1.equals(state2));\n assertFalse(state1.equals(state3));\n Set<State> qTable = new HashSet<State>();\n qTable.add(state1);\n qTable.add(state2);\n assertEquals(1,qTable.size());\n qTable.add(state3);\n assertEquals(2,qTable.size());\n\n }",
"@Test\n\tpublic void test_TCM__int_hashCode() {\n\t final Attribute attr = new Attribute(\"test\", \"value\");\n\t\t//only an exception would be a problem\n\t\tint i = -1;\n\t\ttry {\n\t\t i = attr.hashCode();\n\t\t}\n\t\tcatch(Exception e) {\n\t\t fail(\"bad hashCode\");\n\t\t}\n\t\tfinal Attribute attr2 = new Attribute(\"test\", \"value\");\n\n //different Attributes, same text\n\t\tfinal int x = attr2.hashCode();\n\t\tassertFalse(\"Different Attributes with same value have same hashcode\", x == i);\n\n final Attribute attr3 = new Attribute(\"test2\", \"value\");\n\t\t//only an exception would be a problem\n\t\tfinal int y = attr3.hashCode();\n\t\tassertFalse(\"Different Attributes have same hashcode\", y == x);\n\t}",
"private static boolean equalityTest5(String a, String b)\n {\n return a.hashCode() == b.hashCode();\n }",
"@Test\n\tpublic void hashCodeTest() {\n\t\t\n\t\tString offeredCollectionIdOne = \"1\";\n\t\tString userIdOne = \"1\";\n\t\t\n\t\tTradeRequest firstRequest = \n\t\t\t\tnew TradeRequest(offeredCollectionIdOne, \n\t\t\t\t\t\tuserIdOne);\n\t\t\n\t\tString requestIdOne = \"1\";\n\t\tfirstRequest.setRequestId(requestIdOne);\n\t\t\n\t\tTradeRequest equalRequest = \n\t\t\t\tnew TradeRequest(offeredCollectionIdOne, \n\t\t\t\t\t\tuserIdOne);\n\t\t\n\t\tequalRequest.setRequestId(requestIdOne);\n\t\t\n\t\tAssert.assertTrue(\"Request hash codes should be equal if they \" + \n\t\t\t\t\"have the same requestId, collectionId and userId\", \n\t\t\t\tfirstRequest.hashCode() == equalRequest.hashCode());\n\t\t\n\t\tString requestIdTwo = \"2\";\n\t\tString offeredCollectionIdTwo = \"2\";\n\t\tString userIdTwo = \"2\";\n\t\t\n\t\tTradeRequest requestIdDifferentRequest = \n\t\t\t\tnew TradeRequest(offeredCollectionIdOne, \n\t\t\t\t\t\tuserIdOne);\n\t\t\n\t\trequestIdDifferentRequest.setRequestId(requestIdTwo);\n\t\t\n\t\tAssert.assertTrue(\"Request hash codes should not equal if \" + \n\t\t\t\t\" requestIds are different\", firstRequest.hashCode() != \n\t\t\t\trequestIdDifferentRequest.hashCode());\n\t\t\n\t\tTradeRequest collectionIdDifferentRequest = \n\t\t\t\tnew TradeRequest(offeredCollectionIdTwo, \n\t\t\t\t\t\tuserIdTwo);\n\t\t\n\t\tcollectionIdDifferentRequest.setRequestId(requestIdOne);\n\t\t\n\t\tAssert.assertTrue(\"Request hash codes should not equal if \" + \n\t\t\t\t\"collectionIds are different\", firstRequest.hashCode() != \n\t\t\t\tcollectionIdDifferentRequest.hashCode());\n\t\t\n\t\t\n\t\tTradeRequest idsDifferentRequest = \n\t\t\t\tnew TradeRequest(offeredCollectionIdTwo, \n\t\t\t\t\t\tuserIdTwo);\n\t\t\n\t\tidsDifferentRequest.setRequestId(requestIdTwo);\n\t\t\n\t\tAssert.assertTrue(\"Request hash codes should not equal if \" +\n\t\t\t\t\"requestIds, collectionIds and userIds are different\", \n\t\t\t\tfirstRequest.hashCode() != idsDifferentRequest.hashCode());\t\n\t}",
"@Override\n public int hashCode() {\n return hashCode;\n }",
"@Override\r\n\tpublic int hashCode() {\n\t\treturn super.hashCode();\r\n\t}",
"@Override\r\n\tpublic int hashCode() {\n\t\treturn super.hashCode();\r\n\t}",
"@Override\r\n\tpublic int hashCode() {\n\t\treturn super.hashCode();\r\n\t}",
"public void test_retainAll() {\r\n try {\r\n List<WrongHashCode> retain = new ArrayList<WrongHashCode>();\r\n retain.add(new WrongHashCode(\"1\"));\r\n \r\n Set<WrongHashCode> set = IdentityHashSet.create();\r\n set.add(new WrongHashCode(\"2\"));\r\n \r\n assertTrue(set.retainAll(retain));\r\n assertEquals(0, set.size());\r\n \r\n fail(\"retainAll works now, rewrite test\");\r\n } catch (UnsupportedOperationException e) {\r\n //passed\r\n }\r\n }",
"@org.junit.Test\n public void contains() throws Exception {\n assertEquals(true, hashTable.contains(\"Blue\"));\n assertEquals(false, hashTable.contains(\"blue\"));\n }",
"private void usual() {\n try {\n //testing toString\n assertTrue(\"toString0\",\n f0.toString().equals(\"{...(0 elements)...}\"));\n assertTrue(\"toString1\",\n f1.toString().equals(\"{...(1 elements)...}\"));\n assertTrue(\"toString7\",\n f7.toString().equals(\"{...(2 elements)...}\"));\n\n //testing equals\n\n assertTrue(\"equals00\", f0.equals(f0));\n assertTrue(\"equals33\", f3.equals(f3));\n assertTrue(\"equals55\", f5.equals(f5));\n assertTrue(\"equals46\", f4.equals(f6));\n assertTrue(\"equals64\", f6.equals(f4));\n assertTrue(\"equals27\", f2.equals(f7));\n assertTrue(\"equals72\", f7.equals(f2));\n\n assertFalse(\"equals01\", f0.equals(f1));\n assertFalse(\"equals02\", f0.equals(f2));\n assertFalse(\"equals10\", f1.equals(f0));\n assertFalse(\"equals12\", f1.equals(f2));\n assertFalse(\"equals21\", f2.equals(f1));\n assertFalse(\"equals23\", f2.equals(f3));\n assertFalse(\"equals35\", f3.equals(f5));\n\n assertFalse(\"equals0string\", f0.equals(\"just a string\"));\n assertFalse(\"equals4string\", f4.equals(\"just a string\"));\n\n assertFalse(\"equals0null\", f0.equals(null));\n assertFalse(\"equals1null\", f1.equals(null));\n\n //testing hashCode\n assertTrue(\"hashCode00\", f0.hashCode() == f0.hashCode());\n assertTrue(\"hashCode44\", f4.hashCode() == f4.hashCode());\n assertTrue(\"hashCode46\", f4.hashCode() == f6.hashCode());\n assertTrue(\"hashCode27\", f2.hashCode() == f7.hashCode());\n }\n catch(Exception e) {\n System.out.println(\"Exception thrown during usual tests:\");\n System.out.println(e);\n assertTrue(\"usual\", false);\n }\n }",
"public static void main(String[] args) {\n HashSet<Person> set = new HashSet<>(10);\n for (int i = 0; i < 10; i++) {\n set.add(new Person(\"person\" + i, i));\n }\n for (int i = 0; i < 10; i++) {\n set.add(new Person(\"person\", 15));\n }\n Person p1 = new Person(\"person\", 15);\n Person p2 = new Person(\"person\", 15);\n System.out.println(p1 + \" hascode: \" + p1.hashCode());\n System.out.println(p2 + \" hascode: \" + p2.hashCode());\n System.out.println(\"person1 equals person2 \" + p1.equals(p2));\n for (Person person : set) {\n System.out.println(person);\n }\n }",
"@Override\n public int hashCode() {\n return hashcode;\n }",
"@Test\n public void testHashCode_1()\n throws Exception {\n ColumnPreferences fixture = new ColumnPreferences(\"\", \"\", 1, ColumnPreferences.Visibility.HIDDEN, ColumnPreferences.Hidability.HIDABLE);\n fixture.setVisible(true);\n\n int result = fixture.hashCode();\n\n assertEquals(629, result);\n }",
"@Test\n public void testRecordsWithDifferentIDsProduceDifferentHashCodes() throws Exception {\n setRecordFieldValue(otherRecord, \"id\", 42L);\n int hashcodeA = record.hashCode();\n int hashcodeB = otherRecord.hashCode();\n\n assertThat(hashcodeA == hashcodeB, is(false));\n }",
"public abstract boolean equals(Object o);",
"@Test\n public void testPositionHashCode(){\n pos = Maze.position(90, 23423);\n assertEquals(26213, pos.hashCode());\n }",
"@Test\r\n public void testUsingHascode()\r\n {\n \r\n try_scorers = new Try_Scorers(\"Sharief\",\"Roman\",3,9);\r\n \r\n /******** Get HashCode *****************/ \r\n //return hascode as a string the is an easy way of doing this\r\n // all u have to do is state the object preceeded with a dot hashcode \r\n //*** E.g object.hashcode() ***\r\n String num1 = Integer.toHexString(System.identityHashCode(try_scorers)) ; \r\n String num2 = Integer.toHexString(System.identityHashCode(try_scorers.updateTries(5)));\r\n \r\n //Different hashcodes mean that it isnt the same object\r\n Assert.assertNotEquals(num1,num2,\"Objects are same\");\r\n \r\n }",
"@Test\n public void testEquals02() {\n System.out.println(\"equals\");\n Object otherObject = new SocialNetwork();\n boolean result = sn10.equals(otherObject);\n assertFalse(result);\n }"
] | [
"0.77595615",
"0.7529113",
"0.74568224",
"0.731637",
"0.73011285",
"0.7263831",
"0.72339106",
"0.7135054",
"0.71091884",
"0.7095816",
"0.708828",
"0.7034189",
"0.70320165",
"0.70043945",
"0.6998165",
"0.6987157",
"0.6986051",
"0.68983054",
"0.68983054",
"0.689779",
"0.6896918",
"0.68764937",
"0.6876043",
"0.68721557",
"0.68636155",
"0.68443704",
"0.6843033",
"0.6836474",
"0.68274003",
"0.68255776",
"0.6798054",
"0.6780361",
"0.6780361",
"0.6780361",
"0.6780361",
"0.67767274",
"0.67759025",
"0.6771471",
"0.6720302",
"0.6717812",
"0.6717812",
"0.6717812",
"0.6697015",
"0.66827893",
"0.66784173",
"0.66770554",
"0.6674798",
"0.6631771",
"0.6608309",
"0.659208",
"0.65841323",
"0.6559504",
"0.65575683",
"0.655158",
"0.65442157",
"0.65417403",
"0.6528263",
"0.6506455",
"0.64793116",
"0.64625067",
"0.64625067",
"0.6447473",
"0.6443196",
"0.6438537",
"0.643656",
"0.6434353",
"0.64276534",
"0.6401423",
"0.6389501",
"0.6383288",
"0.63655084",
"0.6361231",
"0.63605094",
"0.6359978",
"0.6359901",
"0.63575536",
"0.6345071",
"0.6329956",
"0.6323686",
"0.6315575",
"0.6301723",
"0.6275057",
"0.6269334",
"0.6260533",
"0.625697",
"0.62381995",
"0.6218369",
"0.6218369",
"0.6218369",
"0.62146443",
"0.62138337",
"0.61999744",
"0.6180858",
"0.61798906",
"0.6179416",
"0.61777157",
"0.6174914",
"0.61742073",
"0.61719453",
"0.61687636"
] | 0.64570564 | 61 |
TODO: Warning this method won't work in the case the id fields are not set | @Override
public boolean equals(Object object) {
if (!(object instanceof Method)) {
return false;
}
Method other = (Method) object;
if ((this.idmethod == null && other.idmethod != null) || (this.idmethod != null && !this.idmethod.equals(other.idmethod))) {
return false;
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setId(Integer id) { this.id = id; }",
"private Integer getId() { return this.id; }",
"public void setId(int id){ this.id = id; }",
"public void setId(Long id) {this.id = id;}",
"public void setId(Long id) {this.id = id;}",
"public void setID(String idIn) {this.id = idIn;}",
"public void setId(int id) { this.id = id; }",
"public void setId(int id) { this.id = id; }",
"public int getId() { return id; }",
"public int getId() { return id; }",
"public int getId() { return id; }",
"public int getId() { return id; }",
"public int getId() { return id; }",
"public int getId() { return id; }",
"public void setId(long id) { this.id = id; }",
"public void setId(long id) { this.id = id; }",
"public int getId(){ return id; }",
"public int getId() {return id;}",
"public int getId() {return Id;}",
"public int getId(){return id;}",
"public void setId(long id) {\n id_ = id;\n }",
"private int getId() {\r\n\t\treturn id;\r\n\t}",
"public Integer getId(){return id;}",
"public int id() {return id;}",
"public long getId(){return this.id;}",
"public int getId(){\r\n return this.id;\r\n }",
"@Override public String getID() { return id;}",
"public Long id() { return this.id; }",
"public Integer getId() { return id; }",
"@Override\n\tpublic Integer getId() {\n return id;\n }",
"@Override\n public Long getId () {\n return id;\n }",
"@Override\n public long getId() {\n return id;\n }",
"public Long getId() {return id;}",
"public Long getId() {return id;}",
"public String getId(){return id;}",
"@Override\r\n\tpublic Long getId() {\n\t\treturn null;\r\n\t}",
"public Integer getId() { return this.id; }",
"@Override\r\n public int getId() {\n return id;\r\n }",
"@Override\n\t\tpublic long getId() {\n\t\t\treturn 0;\n\t\t}",
"public int getId() {\n return id;\n }",
"public long getId() { return _id; }",
"public int getId() {\n/* 35 */ return this.id;\n/* */ }",
"public long getId() { return id; }",
"public long getId() { return id; }",
"public void setId(Long id) \n {\n this.id = id;\n }",
"@Override\n\tpublic Long getId() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic Long getId() {\n\t\treturn null;\n\t}",
"public void setId(String id) {\n this.id = id;\n }",
"@Override\n\tpublic void setId(Long id) {\n\t}",
"public Long getId() {\n return id;\n }",
"public long getId() { return this.id; }",
"public int getId()\n {\n return id;\n }",
"public void setId(int id){\r\n this.id = id;\r\n }",
"@Test\r\n\tpublic void testSetId() {\r\n\t\tbreaku1.setId(5);\r\n\t\texternu1.setId(6);\r\n\t\tmeetingu1.setId(7);\r\n\t\tteachu1.setId(8);\r\n\r\n\t\tassertEquals(5, breaku1.getId());\r\n\t\tassertEquals(6, externu1.getId());\r\n\t\tassertEquals(7, meetingu1.getId());\r\n\t\tassertEquals(8, teachu1.getId());\r\n\t}",
"protected abstract String getId();",
"@Override\n\tpublic int getId(){\n\t\treturn id;\n\t}",
"public int getID() {return id;}",
"public int getID() {return id;}",
"public String getId() { return id; }",
"public String getId() { return id; }",
"public String getId() { return id; }",
"public int getId ()\r\n {\r\n return id;\r\n }",
"@Override\n public int getField(int id) {\n return 0;\n }",
"public void setId(Long id)\n/* */ {\n/* 66 */ this.id = id;\n/* */ }",
"public int getId(){\r\n return localId;\r\n }",
"void setId(int id) {\n this.id = id;\n }",
"@Override\n public Integer getId() {\n return id;\n }",
"@Override\n\tpublic Object selectById(Object id) {\n\t\treturn null;\n\t}",
"private void clearId() {\n \n id_ = 0;\n }",
"private void clearId() {\n \n id_ = 0;\n }",
"private void clearId() {\n \n id_ = 0;\n }",
"private void clearId() {\n \n id_ = 0;\n }",
"private void clearId() {\n \n id_ = 0;\n }",
"private void clearId() {\n \n id_ = 0;\n }",
"private void clearId() {\n \n id_ = 0;\n }",
"@Override\n public int getId() {\n return id;\n }",
"@Override\n public int getId() {\n return id;\n }",
"public void setId(int id)\n {\n this.id=id;\n }",
"@Override\r\n public int getID()\r\n {\r\n\treturn id;\r\n }",
"@Override\n\tpublic Integer getId() {\n\t\treturn null;\n\t}",
"public int getId()\r\n {\r\n return id;\r\n }",
"public void setId(Long id){\n this.id = id;\n }",
"@java.lang.Override\n public int getId() {\n return id_;\n }",
"@java.lang.Override\n public int getId() {\n return id_;\n }",
"private void clearId() {\n \n id_ = 0;\n }",
"final protected int getId() {\n\t\treturn id;\n\t}",
"public abstract Long getId();",
"public void setId(Long id) \r\n {\r\n this.id = id;\r\n }",
"@Override\n public long getId() {\n return this.id;\n }",
"public String getId(){ return id.get(); }",
"@SuppressWarnings ( \"unused\" )\n private void setId ( final Long id ) {\n this.id = id;\n }",
"public void setId(long id){\n this.id = id;\n }",
"public void setId(long id){\n this.id = id;\n }",
"public void setId(Integer id)\r\n/* */ {\r\n/* 122 */ this.id = id;\r\n/* */ }",
"public Long getId() \n {\n return id;\n }",
"@Override\n\tpublic void setId(int id) {\n\n\t}",
"public void test_getId() {\n assertEquals(\"'id' value should be properly retrieved.\", id, instance.getId());\n }",
"@Override\r\n\tpublic Object getId() {\n\t\treturn null;\r\n\t}",
"public int getID(){\n return id;\n }",
"public int getId()\n {\n return id;\n }",
"public String getID(){\n return Id;\n }"
] | [
"0.6896886",
"0.6838461",
"0.67056817",
"0.66419715",
"0.66419715",
"0.6592331",
"0.6579151",
"0.6579151",
"0.6574321",
"0.6574321",
"0.6574321",
"0.6574321",
"0.6574321",
"0.6574321",
"0.65624106",
"0.65624106",
"0.65441847",
"0.65243006",
"0.65154546",
"0.6487427",
"0.6477893",
"0.6426692",
"0.6418966",
"0.6416817",
"0.6401561",
"0.63664836",
"0.63549376",
"0.63515353",
"0.6347672",
"0.6324549",
"0.6319196",
"0.6301484",
"0.62935394",
"0.62935394",
"0.62832105",
"0.62710917",
"0.62661785",
"0.6265274",
"0.6261401",
"0.6259253",
"0.62559646",
"0.6251244",
"0.6247282",
"0.6247282",
"0.6245526",
"0.6238957",
"0.6238957",
"0.6232451",
"0.62247443",
"0.6220427",
"0.6219304",
"0.6211484",
"0.620991",
"0.62023336",
"0.62010616",
"0.6192621",
"0.61895776",
"0.61895776",
"0.61893976",
"0.61893976",
"0.61893976",
"0.6184292",
"0.618331",
"0.61754644",
"0.6173718",
"0.6168409",
"0.6166131",
"0.6161708",
"0.6157667",
"0.6157667",
"0.6157667",
"0.6157667",
"0.6157667",
"0.6157667",
"0.6157667",
"0.61556244",
"0.61556244",
"0.61430943",
"0.61340135",
"0.6128617",
"0.6127841",
"0.61065215",
"0.61043483",
"0.61043483",
"0.6103568",
"0.61028486",
"0.61017346",
"0.6101399",
"0.6098963",
"0.6094214",
"0.6094",
"0.6093529",
"0.6093529",
"0.6091623",
"0.60896",
"0.6076881",
"0.60723215",
"0.6071593",
"0.6070138",
"0.6069936",
"0.6069529"
] | 0.0 | -1 |
save template in succesfactor | public Long saveTemplate(Template template)
{
TemplateDAO dao = new TemplateDAO();
dao.saveNew(template);
return template.getId();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void saveTemplate(String filename){\n Context context = App.getContext();\n LogManager.reportStatus(context, \"INSPECTOR\", \"savingTemplate\");\n blueprint = currentTemplate.createBlueprint();\n //make sure we have correct extension\n filename = FileManager.removeExtension(filename);\n if (isInspecting){\n filename = filename + \".in\";\n } else {\n filename = filename + \".bp\";\n }\n boolean hasSaved = FileManager.createTemplate(filename, blueprint);\n if (hasSaved){\n Toast.makeText(this, \"Saved\", Toast.LENGTH_LONG).show();\n }else{\n Toast.makeText(this, \"Did not save\", Toast.LENGTH_LONG).show();\n }\n }",
"public void onSave(View view){\n saveTemplate(filename);\n Toast.makeText(this, \"Saved\", Toast.LENGTH_LONG).show();\n }",
"public void saveTemplate(String toastText) {\n SimpleDateFormat simpleDateFormatY = new SimpleDateFormat(\"yyyy\");\n SimpleDateFormat simpleDateFormatM = new SimpleDateFormat(\"MM\");\n SimpleDateFormat simpleDateFormatD = new SimpleDateFormat(\"dd\");\n SimpleDateFormat simpleDateFormatH = new SimpleDateFormat(\"HH\");\n SimpleDateFormat simpleDateFormatMin = new SimpleDateFormat(\"mm\");\n SimpleDateFormat simpleDateFormatS = new SimpleDateFormat(\"ss\");\n String year = simpleDateFormatY.format(System.currentTimeMillis());\n String month = simpleDateFormatM.format(System.currentTimeMillis());\n String day = simpleDateFormatD.format(System.currentTimeMillis());\n String hour = simpleDateFormatH.format(System.currentTimeMillis());\n String minute = simpleDateFormatMin.format(System.currentTimeMillis());\n String second = simpleDateFormatS.format(System.currentTimeMillis());\n mDatabaseManager.addDataInTemplateTable(\n new TemplateEntity(mTemplateId, mOrganizationId, mCurrencyShortForm,\n mStartValue, mDirection, mAction, year + \"-\" + month + \"-\" + day + \" \" + hour + \":\" + minute + \";\" + second)\n );\n mBaseActivity.showToast(toastText);\n isSaved = true;\n switch (mRootParameter) {\n case ConstantsManager.CONVERTER_OPEN_FROM_TEMPLATES:\n case ConstantsManager.CONVERTER_OPEN_FROM_CURRENCY:\n case ConstantsManager.CONVERTER_OPEN_FROM_ORGANIZATION:\n getActivity().setResult(ConstantsManager.CONVERTER_ACTIVITY_RESULT_CODE_CHANGED);\n if (isFinish) {\n getActivity().finish();\n }\n break;\n }\n }",
"public void save(Activity e){ \n\t template.save(e); \n\t}",
"private void saveTemplate()\r\n {\r\n\t String template = keyField.getText();\r\n\r\n\t int lenI = values.length, lenJ, lenK;\r\n\t String[][][] newValues = new String[lenI][][];\r\n\t for (int i=0; i<lenI; i++)\r\n\t {\r\n\t\t lenJ = values[i].length;\r\n\t\t newValues[i] = new String[lenJ][];\r\n\t\t for (int j=0; j<lenJ; j++)\r\n\t\t {\r\n\t\t\t lenK = values[i][j].length;\r\n\t\t\t newValues[i][j] = new String[lenK];\r\n\t\t\t for (int k=0; k<lenK; k++)\r\n\t\t\t\t values[i][j][k] = values[i][j][k];\r\n\t\t }\r\n\t }\r\n\t \r\n\t if (template.length()==0)\r\n\t {\r\n\t\t label.setText(\"Please enter a valid template name\");\r\n\t\t return;\r\n\t }\r\n\t \r\n\t // Update or store to the list of templates.\r\n for (int i=0; i<newValues.length; i++)\r\n \t for (int j=0; j<newValues[i].length; j++)\r\n\t\t\t newValues[i][j] = getComponentArray(components[i][j]);\r\n \r\n \t if (!definitionBox.isSelected())\r\n \t {\r\n \t\t newValues[FormatData.t.D_HDR.ordinal()] \r\n \t\t\t\t = newValues[FormatData.t.D_FLD.ordinal()] \r\n \t\t\t\t\t\t = new String[0][0];\r\n \t }\r\n \t if (!categoryBox.isSelected())\r\n \t {\r\n \t\t newValues[FormatData.t.C_HDR.ordinal()] \r\n \t\t\t\t = newValues[FormatData.t.C_FLD.ordinal()] \r\n \t\t\t\t\t\t = new String[0][0];\r\n \t }\r\n \t if (!exampleBox.isSelected())\r\n \t {\r\n \t\t newValues[FormatData.t.E_HDR.ordinal()] \r\n \t\t\t\t = newValues[FormatData.t.E_FLD.ordinal()] \r\n \t\t\t\t\t\t = new String[0][0];\r\n \t }\r\n\r\n templates.setTemplate(template, newValues);\r\n\r\n if (!model.contains(template))\r\n\t {\r\n\t int size = templateKeys.length;\r\n\t String[] newTemplates = new String[templateKeys.length + 1];\r\n\t if (templateKeys.length != 0)\r\n\t \t System.arraycopy(templateKeys, 0, newTemplates, 0, size);\r\n\t \r\n\t newTemplates[size] = template;\r\n\t templateKeys = newTemplates;\r\n\t model.add(size, templateKeys[size]);\r\n\t list.setSelectedIndex(size);\r\n\t }\r\n label.setText(\"Display format \" + template + \" saved\");\r\n }",
"public void addToTemplates() {\n mTemplateId = mPreferenceManager.getTemplateId();\n if (isConverted) {\n if (mPreferenceManager.getTemplateId().equals(ConstantsManager.CONVERTER_TEMPLATE_ID_DEFAULT)) {\n mTemplateId = mDatabaseManager.getTemplateNewId();\n mPreferenceManager.setTemplateId(mTemplateId);\n saveTemplate(mToastCreated);\n } else {\n showDialog();\n }\n } else {\n mBaseActivity.showToast(mToastFailure);\n }\n }",
"public void exitTemp() {\r\n tr.saveTempToFile(TemplateManager.IdToTemplate);\r\n }",
"public void saveOneWord(Pojo.OneWord e){ \n template.save(e); \n}",
"public void saveSupplier(Supplier e){ \n\t template.save(e); \n\t}",
"private static void saveTemplateFile(File file, Template newTemp) {\n String string = newTemp.toString();\n\n //Save File\n try {\n FileOutputStream fos = new FileOutputStream(file);\n fos.write(string.getBytes());\n fos.flush();\n fos.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n //Read back file and check against original.\n try {\n FileInputStream fis = new FileInputStream(file);\n byte[] data = new byte[(int)file.length()];\n\n fis.read(data);\n String tmpIN = new String(data,\"UTF-8\");\n Log.d(\"Behave\",\"Read Back Template: \"+ tmpIN);\n Log.d(\"Behave\",\"Template Saved Correctly: \"+tmpIN.equals(string));\n } catch (FileNotFoundException | UnsupportedEncodingException e) {\n e.printStackTrace();\n } catch (IOException e) {\n // Separate catch block for IOException because other exceptions are encapsulated by it.\n Log.e(\"Behave\", \"IOException not otherwise caught\");\n e.printStackTrace();\n }\n }",
"public PSTemplate save(PSTemplate template, String siteId, String pageId) throws PSDataServiceException;",
"public static void saveTemplate(Puzzle puzzle, String name) {\n for (int fieldnr=0; fieldnr<5; fieldnr++){\n if(puzzle.getType() != Type.SAMURAI) {fieldnr=5;}\n\n //set entries not changeable\n for (int r=0;r<9;r++){\n for (int c=0;c<9;c++){\n if(puzzle.getTile(fieldnr,r,c).isFilled()) {\n puzzle.getTile(fieldnr,r,c).setChangeable(false);\n }\n }\n }\n }\n puzzle.setName(name);\n try {\n saveGame(puzzle, name);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"private void saveProject()\n\t{\n\t\t\n\t\tint fileChooserReturnValue =\n\t\t\twindowTemplate\n\t\t\t\t.getFileChooser()\n\t\t\t\t.showSaveDialog(windowTemplate);\n\t\t\n\t\tif(fileChooserReturnValue == JFileChooser.APPROVE_OPTION) {\n\t\t\t\n\t\t\t// Get the file that the user selected\n\t\t\tFile file = windowTemplate.getFileChooser().getSelectedFile();\n\t\t\t\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\t// Open the output streams\n\t\t\t\tFileOutputStream fileOutput = new FileOutputStream(file.getAbsolutePath());\n\t\t\t\tObjectOutputStream objectOutput = new ObjectOutputStream(fileOutput);\n\t\t\t\n\t\t\t\t// Write the objects\n\t\t\t\tfor(int i = 0; i < cards.size(); i++) {\n\t\t\t\t\tobjectOutput.writeObject(cards.get(i));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Close the output streams\n\t\t\t\tobjectOutput.close();\n\t\t\t\tfileOutput.close();\n\t\t\t\t\n\t\t\t\t// Update the title of the frame to reflect the file name\n\t\t\t\twindowTemplate.setTitle(file.getName());\n\t\t\t\t\n\t\t\t} catch (IOException e1) {\n\t\t\t\tJOptionPane.showMessageDialog(windowTemplate, \"Could not save the file.\");\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t}",
"private void setTemplateFile() throws IOException, BusinessException, ObjectNotFoundException, JackrabbitException,\n CertitoolsAuthorizationException, BadElementException {\n super.setFolder(folder);\n if (fileTemplate1 != null) {\n String folderPath;\n if (insertFolderFlag) {\n folderPath = folderId + \"/folders/\" + folder.getName();\n } else {\n folderPath = PlanUtils.getParentPath(folderId) + \"/folders/\" + folder.getName();\n }\n\n Template1Diagram template1Diagram = new Template1Diagram(new Resource(\"/\" + fileTemplate1.getFileName(),\n fileTemplate1.getFileName(),\n fileTemplate1.getContentType(), fileTemplate1.getInputStream(),\n \"\" + fileTemplate1.getSize(), true),\n PlanUtils.convertResourceToHTML(folderPath, getContext().getRequest().getContextPath(),\n getModuleTypeFromEnum()));\n if (replaceImageMap == null) {\n replaceImageMap = Boolean.FALSE;\n }\n if (!insertFolderFlag && !replaceImageMap) {\n\n Folder previousVersion =\n planService.findFolder(folderId, true, getUserInSession(), getModuleTypeFromEnum());\n try {\n TemplateWithImage previousTemplate = (TemplateWithImage) previousVersion.getTemplate();\n String htmlContent = template.getImageMap();\n Image newImage = TemplateWithImageUtils.getImage(fileTemplate1.getInputStream());\n Image oldImage = TemplateWithImageUtils.getImage(previousTemplate.getResource().getData());\n\n String unescapedHtml = StringEscapeUtils.unescapeHtml(htmlContent);\n\n String htmlResultContent = TemplateWithImageUtils.resizeImageMap(unescapedHtml, oldImage, newImage);\n\n if(htmlResultContent != null){\n template1Diagram.setImageMap(htmlResultContent);\n }\n } catch (ClassCastException ex) {\n //Do nothing\n }\n }\n super.setTemplateToFolder(template1Diagram);\n\n } else {\n Folder dbFolder = planService.findFolder(folderId, false, getUserInSession(), getModuleTypeFromEnum());\n //User does not changed template\n if (dbFolder.getTemplate().getName().equals(Template.Type.TEMPLATE_DIAGRAM.getName())) {\n Template1Diagram dbTemplate1Diagram = (Template1Diagram) dbFolder.getTemplate();\n //set old resource and update image Map\n super.setTemplateToFolder(\n new Template1Diagram(dbTemplate1Diagram.getResource(), template.getImageMap()));\n } else {\n //User changed template to this one, and do not upload image, so create empty template\n super.setTemplateToFolder(new Template1Diagram());\n }\n }\n }",
"public void saveToStream(OutputStream stream) throws CoreException {\n\ttry {\n\t DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n\t DocumentBuilder builder = factory.newDocumentBuilder();\n\t Document document = builder.newDocument();\n\n\t Node root = document.createElement(\"templates\"); // $NON-NLS-1$ //$NON-NLS-1$\n\t document.appendChild(root);\n\n\t for (int i = 0; i != fTemplates.size(); i++) {\n\t\tTemplate template = (Template) fTemplates.get(i);\n\n\t\tNode node = document.createElement(\"template\"); // $NON-NLS-1$ //$NON-NLS-1$\n\t\troot.appendChild(node);\n\n\t\tNamedNodeMap attributes = node.getAttributes();\n\n\t\tAttr name = document.createAttribute(NAME_ATTRIBUTE);\n\t\tname.setValue(template.getName());\n\t\tattributes.setNamedItem(name);\n\n\t\tAttr description = document.createAttribute(DESCRIPTION_ATTRIBUTE);\n\t\tdescription.setValue(template.getDescription());\n\t\tattributes.setNamedItem(description);\n\n\t\tAttr context = document.createAttribute(CONTEXT_ATTRIBUTE);\n\t\tcontext.setValue(template.getContextTypeName());\n\t\tattributes.setNamedItem(context);\n\n\t\tAttr enabled = document.createAttribute(ENABLED_ATTRIBUTE);\n\t\tenabled.setValue(template.isEnabled() ? \"true\" : \"false\"); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tattributes.setNamedItem(enabled);\n\n\t\tText pattern = document.createTextNode(template.getPattern());\n\t\tnode.appendChild(pattern);\n\t }\n\n\t OutputFormat format = new OutputFormat();\n\t format.setPreserveSpace(true);\n\t Serializer serializer = SerializerFactory.getSerializerFactory(\"xml\").makeSerializer(stream, format); //$NON-NLS-1$\n\t serializer.asDOMSerializer().serialize(document);\n\n\t} catch (ParserConfigurationException e) {\n\t throwWriteException(e);\n\t} catch (IOException e) {\n\t throwWriteException(e);\n\t}\n }",
"public PSTemplate save(PSTemplate template, String siteId) throws PSDataServiceException;",
"@Test\n\tpublic void test04_CreateNewPageUsingExistingTemplate() {\n\t\tinfo(\"Test 4: Create new page using existing template\");\n\t\tString template1 = wTempData.getWikiTemplate(0);\n\t\tString title1 = txData.getContentByArrayTypeRandom(1)+getRandomNumber();\n\t\tSystem.out.println(template1);\n\t\tString template2 = wTempData.getWikiTemplate(1);\n\t\tString title2 = txData.getContentByArrayTypeRandom(1)+getRandomNumber();\n\t\tSystem.out.println(template2);\n\t\tString template3 = wTempData.getWikiTemplate(2);\n\t\tString title3 = txData.getContentByArrayTypeRandom(1)+getRandomNumber();\n\t\tSystem.out.println(template3);\n\t\tString template4 = wTempData.getWikiTemplate(3);\n\t\tString title4 = txData.getContentByArrayTypeRandom(1)+getRandomNumber();\n\t\tSystem.out.println(template4);\n\t\tString template5 = wTempData.getWikiTemplate(4);\n\t\tString title5 = txData.getContentByArrayTypeRandom(1)+getRandomNumber();\n\t\tSystem.out.println(template5);\n\t\t\n\t\t/*Step Number: 1\n\t\t*Step Name: Step 1: Open form to create new page\n\t\t*Step Description: \n\t\t\t- Choose path to add new page\n\t\t\t- Click [Add Page] --> [From Template...]\n\t\t*Input Data: \n\t\t\t\n\t\t*Expected Outcome: \n\t\t\t- By default, the [Create Wiki page] is displayed in the [Rich Text] mode */\n\t\thp.goToWiki();\n\t\twHome.goToAddTemplateWikiPage();\n\t \n\t /*Step Number: 2\n\t\t*Step Name: Step 2: Create new page with Two Column layout\n\t\t*Step Description: \n\t\t\t- Choose template [Two Column layout] in list and click [Select]\n\t\t\t- Click [Preview] if you want to see how your page looks like\n\t\t\t- Select [Source Editor] to switch to [Source Editor] mode\n\t\t\t- Put the title for this page\n\t\t\t- Put the content of page\n\t\t\t- Click [Save]\n\t\t*Input Data: \n\t\t\t\n\t\t*Expected Outcome: \n\t\t\tNew page is created successfully with two column layout*/\n\t\twikiMg.addSimpleWikiPageByTemplate(template1,title1);\n\t\tUtils.pause(2000);\n\t\tinfo(\"Page is add/edited successfully\");\n\t\twValidate.verifyTitleWikiPage(title1);\n\t\tarrayPage.add(title1);\n\t \n\t\t /*Step Number: 3\n\t\t*Step Name: Step 3: Create new page with Three Column layout\n\t\t*Step Description: \n\t\t\t- Choose template [Three Column layout] in list and click [Select]\n\t\t\t- Click [Preview] if you want to see how your page looks like.\n\t\t\t- Select [Source Editor] to switch to [Source Editor] mode\n\t\t\t- Put the title for this page\n\t\t\t- Put the content of page\n\t\t\t- Click [Save]\n\t\t*Input Data: \n\t\t\t\n\t\t*Expected Outcome: \n\t\t\tNew page is created successfully with three column layout*/\n\t\thp.goToWiki();\n\t\twHome.goToAddTemplateWikiPage();\n\t\twikiMg.addSimpleWikiPageByTemplate(template2,title2);\n\t\tUtils.pause(2000);\n\t\tinfo(\"Page is add/edited successfully\");\n\t\twValidate.verifyTitleWikiPage(title2);\n\t\tarrayPage.add(title2);\n\t\t\n\t\t /*Step Number: 4\n\t\t*Step Name: Step 4: Create new page with Status Meeting layout\n\t\t*Step Description: \n\t\t\t- Choose template \"Status Meeting\" in list and click [Select]\n\t\t\t- Click [Preview] if you want to see how your page looks like.\n\t\t\t- Select [Source Editor] to switch to [Source Editor] mode\n\t\t\t- Put the title for this page\n\t\t\t- Put the content of page\n\t\t\t- Click [Save]\n\t\t*Input Data: \n\t\t\t\n\t\t*Expected Outcome: \n\t\t\tNew page is created successfully with Status Meeting layout*/\n\t\thp.goToWiki();\n\t\twHome.goToAddTemplateWikiPage();\n\t\twikiMg.addSimpleWikiPageByTemplate(template3,title3);\n\t\tUtils.pause(2000);\n\t\tinfo(\"Page is add/edited successfully\");\n\t\twValidate.verifyTitleWikiPage(title3);\n\t\tarrayPage.add(title3);\n\t\t\n\t\t /*Step Number: 5\n\t\t*Step Name: Step 5: Create new page with HOW-TO Guide layout\n\t\t*Step Description: \n\t\t\t- Choose template [HOW-TO Guide] layout in list and click [Select]\n\t\t\t- Click [Preview] if you want to see how your page looks like\n\t\t\t- Select [Source Editor] to switch to [Source Editor] mode\n\t\t\t- Put the title for this page\n\t\t\t- Put the content of page\n\t\t\t- Click [Save]\n\t\t*Input Data: \n\t\t\t\n\t\t*Expected Outcome: \n\t\t\tNew page is created successfully with HOW-TO Guide layout*/\n\t\thp.goToWiki();\n\t\twHome.goToAddTemplateWikiPage();\n\t\twikiMg.addSimpleWikiPageByTemplate(template4,title4);\n\t\tUtils.pause(2000);\n\t\tinfo(\"Page is add/edited successfully\");\n\t\twValidate.verifyTitleWikiPage(title4);\n\t\tarrayPage.add(title4);\n\t\t\n\t\t/*Step Number: 6\n\t\t*Step Name: Step 6: Create new page with Leave Planning layout\n\t\t*Step Description: \n\t\t\t- Choose template [Leave Planning] layout in list and click [Select]\n\t\t\t- Click [Preview] if you want to see how your page looks like\n\t\t\t- Select [Source Editor] to switch to [Source Editor] mode\n\t\t\t- Put the title for this page\n\t\t\t- Put the content of page\n\t\t\t- Click [Save]\n\t\t*Input Data: \n\t\t\t\n\t\t*Expected Outcome: \n\t\t\tNew page is created successfully with Leave Planning layout*/\n\t\thp.goToWiki();\n\t\twHome.goToAddTemplateWikiPage();\n\t\twikiMg.addSimpleWikiPageByTemplate(template5,title5);\n\t\tUtils.pause(2000);\n\t\tinfo(\"Page is add/edited successfully\");\n\t\twValidate.verifyTitleWikiPage(title5);\n\t\tarrayPage.add(title5);\n \t}",
"private void save()\n\t{\n\t\t//get the text\n\t\tString spssTxt = spssText.getText();\n\t\t//save it to a JS place where Java can find it\n\t\tsaveToJS(spssTxt);\n\t\t//make up a file name\n\t\tString fileName = form.getText().replace(\" \", \"_\").replace(\"\\\\\", \"\").replace(\"/\",\"\").replace(\"*\", \"\").replace(\"\\\"\", \"\")\n\t\t\t\t.replace(\"<\", \"\").replace(\">\", \"\").replace(\"#\", \"\").replace(\"'\", \"\") + \".spss\";\t\t\n\t\t\n\t\t\n\t\t\n\t\tappletHtml.setHTML(\"<APPLET codebase=\\\"fileioapplets/\\\"+\" +\n\t\t\t\t\" archive=\\\"kobo_fileIOApplets.jar, plugin.jar\\\" \"+\n\t\t\t\t\" code=\\\"org.oyrm.kobo.fileIOApplets.ui.FileSaveApplet.class\\\" \"+\n\t\t\t\t\" width=\\\"5\\\" HEIGHT=\\\"5\\\" MAYSCRIPT> \"+\n\t\t\t\t\"<param name=\\\"formName\\\" value=\\\"\"+fileName+\"\\\"/>\"+\n\t\t\t\t\"<param name=\\\"save\\\" value=\\\"\"+LocaleText.get(\"SaveSPSSFile\")+\"\\\"/>\"+\n\t\t\t\t\"</APPLET>\");\n\t}",
"protected void postTemplate(HttpServletRequest request, HttpServletResponse response, String path,\n\t\t\tString successMessage) throws IOException {\n\t\tServletContext servletContext = getServletContext();\n\t\tfinal WebContext ctx = new WebContext(request, response, servletContext, request.getLocale());\n\t\tctx.setVariable(\"message\", successMessage);\n\t\ttemplateEngine.process(path, ctx, response.getWriter());\t\n\t}",
"private void writefasttj() {\n\t\tEditor edit = preticket.edit();\r\n\t\tedit.putString(\"tickettype\", \"tj\");\r\n\t\tedit.commit();\r\n\t}",
"void save() {\n gameModelPoDao.saveToFile(file.getAbsolutePath(), gameModelPo);\n }",
"public void saveTemplate(ArticleTemplate article, ArticleListTemplate article_list, String website_url) throws StorageException, WebsiteNotFoundException, MalformedURLException, ContextAlreadyExistsException, DataOmittedException {\n\t\t\n\t\t// Validazione url\n\t\tURL.validate(website_url); // throws MalformedURLException\n\t\t\n\t\t\n\t\tWebsite website = this.getWebsite(website_url); // throws StorageException, WebsiteNotFoundException\n\t\t\n\t\t// Controlla se il contesto è già stato inserito\n\t\tSet<ArticleListTemplate> list_templates = website.getArticleListTemplates();\n\t\tfor(ArticleListTemplate list_template: list_templates){\n\t\t\tif(list_template.getContext().equals(article_list.getContext())) throw new ContextAlreadyExistsException();\n\t\t\t\n\t\t}\n\t\t\n\t\t// Se non vengono inseriti il selettore dell'heading o del testo\n\t\tif(article.getHeadingSelector().equals(\"\") || article.getTextSelector().equals(\"\") || article.getHeadingSelector() == null || article.getTextSelector() == null) \n\t\t\t// Solleva eccezione\n\t\t\tthrow new DataOmittedException();\n\t\t\n\t\t// Se non viene inserito il selettore per i link degli articoli\n\t\tif(article_list.getLinkSelector().equals(\"\") || article_list.getLinkSelector() == null)\n\t\t\t// Solleva eccezione\n\t\t\tthrow new DataOmittedException();\n\t\t\t\n\t\t// Inserimento del template list\n\t\tMap<String, Object> data_list = article_list.toMap();\n\t\tdata_list.put(\"fk_website\", website.getId());\n\t\tstorage.save(\"list_templates\", data_list); // throws StorageException\n\t\t\n\t\t// Inserimento del template dell'articolo\n\t\tMap<String, Object> data_article = article.toMap();\n\t\tdata_article.put(\"fk_website\", website.getId());\n\t\tstorage.save(\"article_templates\", data_article); // throws StorageException\n\t\t\n\t\twebsite.addTemplate(article);\n\t\twebsite.addTemplate(article_list);\n\t}",
"public JasperTemplate saveTemplate(MultipartFile file, String name, String description) {\n JasperTemplate jasperTemplate = jasperTemplateRepository.findByName(name);\n\n if (jasperTemplate == null) {\n jasperTemplate = JasperTemplate.builder()\n .name(name)\n .description(description)\n .build();\n } else {\n jasperTemplate.setDescription(description);\n }\n\n validateFileAndSaveTemplate(jasperTemplate, file);\n return jasperTemplate;\n }",
"public void save() {\t\n\t\n\t\n\t}",
"public void fileSave()\n {\n try\n {\n // construct the default file name using the instance name + current date and time\n StringBuffer currentDT = new StringBuffer();\n try {\n currentDT = new StringBuffer(ConnectWindow.getDatabase().getSYSDate());\n }\n catch (Exception e) {\n displayError(e,this) ;\n }\n\n // construct a default file name\n String defaultFileName;\n if (ConnectWindow.isLinux()) {\n defaultFileName = ConnectWindow.getBaseDir() + \"/Output/RichMon \" + instanceName + \" \" + currentDT.toString() + \".html\";\n }\n else {\n defaultFileName = ConnectWindow.getBaseDir() + \"\\\\Output\\\\RichMon \" + instanceName + \" \" + currentDT.toString() + \".html\";\n }\n JFileChooser fileChooser = new JFileChooser();\n fileChooser.setSelectedFile(new File(defaultFileName));\n File saveFile;\n BufferedWriter save;\n\n // prompt the user to choose a file name\n int option = fileChooser.showSaveDialog(this);\n if (option == JFileChooser.APPROVE_OPTION)\n {\n saveFile = fileChooser.getSelectedFile();\n\n // force the user to use a new file name if the specified filename already exists\n while (saveFile.exists())\n {\n JOptionPane.showConfirmDialog(this,\"File already exists\",\"File Already Exists\",JOptionPane.ERROR_MESSAGE);\n option = fileChooser.showOpenDialog(this);\n if (option == JFileChooser.APPROVE_OPTION)\n {\n saveFile = fileChooser.getSelectedFile();\n }\n }\n save = new BufferedWriter(new FileWriter(saveFile));\n saveFile.createNewFile();\n\n // create a process to format the output and write the file\n try {\n OutputHTML outputHTML = new OutputHTML(saveFile,save,\"Database\",databasePanel.getResultCache());\n outputHTML.savePanel(\"Performance\",performancePanel.getResultCache(),null);\n// outputHTML.savePanel(\"Scratch\",scratchPanel.getResultCache(),scratchPanel.getSQLCache());\n\n JTabbedPane scratchTP = ScratchPanel.getScratchTP();\n \n for (int i=0; i < scratchTP.getComponentCount(); i++) {\n try {\n System.out.println(\"i=\" + i + \" class: \" + scratchTP.getComponentAt(i).getClass());\n if (scratchTP.getComponentAt(i) instanceof ScratchDetailPanel) {\n ScratchDetailPanel t = (ScratchDetailPanel)scratchTP.getComponentAt(i);\n System.out.println(\"Saving: \" + scratchTP.getTitleAt(i));\n outputHTML.savePanel(scratchTP.getTitleAt(i), t.getResultCache(), t.getSQLCache());\n }\n } catch (Exception e) {\n // do nothing \n }\n }\n }\n catch (Exception e) {\n displayError(e,this);\n }\n\n // close the file\n save.close();\n }\n }\n catch (IOException e)\n {\n displayError(e,this);\n }\n }",
"public void save(){\n checkpoint = chapter;\n }",
"public void save(){\r\n if (inputValidation()) {\r\n if (modifyingPart) {\r\n saveExisting();\r\n } else {\r\n saveNew();\r\n }\r\n closeWindow();\r\n }\r\n\r\n }",
"void save(JournalPage page);",
"public void save() {\n int hour = Calendar.getInstance().get(Calendar.HOUR_OF_DAY);\r\n int minute = Calendar.getInstance().get(Calendar.MINUTE);\r\n\r\n // Hierarchie: 2010/04/05/01_05042010_00002.xml\r\n File dir = getOutputDir();\r\n File f = new File(dir, getCode().replace(' ', '_') + \".xml\");\r\n Element topLevel = new Element(\"ticket\");\r\n topLevel.setAttribute(new Attribute(\"code\", this.getCode()));\r\n topLevel.setAttribute(\"hour\", String.valueOf(hour));\r\n topLevel.setAttribute(\"minute\", String.valueOf(minute));\r\n // Articles\r\n for (Pair<Article, Integer> item : this.items) {\r\n Element e = new Element(\"article\");\r\n e.setAttribute(\"qte\", String.valueOf(item.getSecond()));\r\n // Prix unitaire\r\n e.setAttribute(\"prix\", String.valueOf(item.getFirst().getPriceInCents()));\r\n e.setAttribute(\"prixHT\", String.valueOf(item.getFirst().getPriceHTInCents()));\r\n e.setAttribute(\"idTaxe\", String.valueOf(item.getFirst().getIdTaxe()));\r\n e.setAttribute(\"categorie\", item.getFirst().getCategorie().getName());\r\n e.setAttribute(\"codebarre\", item.getFirst().getCode());\r\n e.setText(item.getFirst().getName());\r\n topLevel.addContent(e);\r\n }\r\n // Paiements\r\n for (Paiement paiement : this.paiements) {\r\n final int montantInCents = paiement.getMontantInCents();\r\n if (montantInCents > 0) {\r\n final Element e = new Element(\"paiement\");\r\n String type = \"\";\r\n if (paiement.getType() == Paiement.CB) {\r\n type = \"CB\";\r\n } else if (paiement.getType() == Paiement.CHEQUE) {\r\n type = \"CHEQUE\";\r\n } else if (paiement.getType() == Paiement.ESPECES) {\r\n type = \"ESPECES\";\r\n }\r\n e.setAttribute(\"type\", type);\r\n e.setAttribute(\"montant\", String.valueOf(montantInCents));\r\n topLevel.addContent(e);\r\n }\r\n\r\n }\r\n try {\r\n final XMLOutputter out = new XMLOutputter(Format.getPrettyFormat());\r\n out.output(topLevel, new FileOutputStream(f));\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n }",
"void save();",
"void save();",
"void save();",
"public void crear(Tarea t) {\n t.saveIt();\n }",
"protected void saveWithParameters(JasperTemplate jasperTemplate) {\n jasperTemplateRepository.save(jasperTemplate);\n }",
"public void save(View v) {\n if (!currentMode.equals(Mode.GAME)) {\n Toast.makeText(this, \"Speichern nur im Spiel moeglich!\", Toast.LENGTH_LONG).show();\n return;\n }\n\n // Leeres speichern verhindern\n if (!(itemList.size() > 0)) {\n Toast.makeText(this, \"Keine Tips zum Speichern!\", Toast.LENGTH_LONG).show();\n return;\n }\n // String formatieren\n String output = generateSaveFileString();\n\n // In Datei speichern\n writeToSaveFile(output);\n\n // Neue Runde starten\n startNewRound();\n }",
"private void saveTLZ(String dateTime) {\n try {\n Logger.writeLog(\"TESTCASERUNNER: Saving TLZ\");\n// File tlzPath = Globals.mainActivity.getFilesDir();\n File tlzPath = Globals.mainActivity.getExternalFilesDir(null);\n client.saveLog(new File(tlzPath, MessageFormat.format(\"{0}_{1}.tlz\", this.currentTestCase, dateTime)));\n } catch (IOException ioex) {\n Logger.writeLog(\"TESTCASERUNNER: Error while saving TLZ: \" + ioex.getMessage());\n }\n }",
"public void saveToFile(View view) {\n //Insert the word into the Database\n try {\n //Insert the word and definition into the database\n DefinitionsViewModel dvm = ViewModelProviders.of(this).get(DefinitionsViewModel.class);\n dvm.insert(new Definitions(queryString, shortDef));\n\n //Let the user know the operation was successful\n Toast.makeText(this, getString(R.string.saveSuccessMessage), Toast.LENGTH_SHORT).show();\n } catch (Exception e) {\n e.printStackTrace();\n //Let the user know that the operation failed.\n Toast.makeText(this, getString(R.string.saveFailedMessage), Toast.LENGTH_SHORT);\n\n\n }\n\n }",
"void mo25968e(TemplateInfo templateInfo);",
"@Test\n public void updateTemplateTest() throws IdfyException, Exception {\n UUID id = UUID.randomUUID();\n UpdatePdfTemplate model = new UpdatePdfTemplate.Builder().build();\n PdfTemplate response = api.updateTemplate(id, model);\n assertNotNull(response);\n }",
"@Override\n\tpublic void doSaveAs() {\n\n\t}",
"public static void saveFile(State state) throws Exception{\n\n buildDoc();\n writePreferences(state.language, state.background, state.pastTurtles.size());\n\n writeTurtles(state.pastTurtles);\n writeLines(state.pastLines);\n\n createFile(STATE_FILE);\n\n }",
"public void setTemplate(Template template)\n/* */ {\n/* 62 */ this.template = template;\n/* */ }",
"private static void saveTranscations() {\n\t\tSystem.out.println(\"All Transcations saved in a File named transcation.txt \");\n\t}",
"@Override\n\tpublic void doSaveAs() {\n\t}",
"void save() {\n File file = new File(main.myPath + \"state.xml\");\n Framework.backup(main.myPath + \"state.xml\");\n Framework.transform(stateDoc, new StreamResult(file), null);\n setDirty(false);\n }",
"public void save() throws TransformerException {\n\t\tgenerator.saveToFile(saveLocation);\n\t}",
"@Override\r\n\t\t\tprotected void saveContext() {\n\t\t\t\t\r\n\t\t\t}",
"int insert(CfgPrintTemplateAttr record);",
"private void doFinish(PojoConfig pojoConfig, String containerName, String selectedTableName, List<Template> templateList, IProgressMonitor monitor) throws CoreException {\n\t\tIWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();\n\t\t\n\n\t\t\n\t\tProjectUtils projectUtils = new ProjectUtils();\n\t\tIProject proj = projectUtils.getProject(selection);\n\t\t\n\n\t\t\n Map<String, String> mapRoot = new HashMap<String, String>();\n mapRoot.put(\"Tablename\", selectedTableName.substring(0, 1).toUpperCase() + selectedTableName.substring(1).toLowerCase());\n \n \n\t\tParseTemplate parseTemplate = new ParseTemplate();\n\t\t\n\n\t\tfor(Iterator<Template> it = templateList.iterator(); it.hasNext(); ) {\n\t\t\torg.vespene.orm.Template template = (Template) it.next();\n\t\t\t\n\t\t\tmonitor.beginTask(\"Creating \" + template.getTemplatename(), 2);\n\n\t\t\t\n\t\t\tIResource resource = root.findMember(new Path( template.getOutputpath() ));\n\t\t\tif (!resource.exists() || !(resource instanceof IContainer)) {\n\t\t\t\tthrowCoreException(\"Container \\\"\" + template.getOutputpath() + \"\\\" does not exist.\");\n\t\t\t}\n\t\t\tIContainer container = (IContainer) resource;\n\t\t\t\n\t\t\tString fileName = parseTemplate.loadTemplateFromString(template.getOutfilepattern(), mapRoot);\n\t\t\tfinal IFile file = container.getFile(new Path( fileName ));\n\t\t\t\n\t\t\ttry {\n\t\t\t\tInputStream stream = openContentStream(selectedTableName, fileName, template);\n\t\t\t\tif (file.exists()) {\n\t\t\t\t\tfile.setContents(stream, true, true, monitor);\n\t\t\t\t} else {\n\t\t\t\t\tfile.create(stream, true, monitor);\n\t\t\t\t}\n\t\t\t\tstream.close();\n\t\t\t} catch (IOException e) {\n\t\t\t}\n\t\t\tmonitor.worked(1);\n\t\t\t\n\t\t\t\n\t\t\t\n\n\t\t}\t\n\t\t\n\n\t}",
"public void createTemp(String TemplateType){\r\n ts.create(TemplateType);\r\n }",
"String getTemplate();",
"int save(T t);",
"private void save() {\n Tile[][] field = gameController.grid.field;\n Tile[][] undoField = gameController.grid.undoField;\n// SharedPreferenceUtil.put(this, SpConstant.WIDTH, field.length);\n// SharedPreferenceUtil.put(this, SpConstant.HEIGHT, field.length);\n for (int xx = 0; xx < field.length; xx++) {\n for (int yy = 0; yy < field[0].length; yy++) {\n if (field[xx][yy] != null) {\n SharedPreferenceUtil.put(this, xx + \"_\" + yy, field[xx][yy].getValue());\n } else {\n SharedPreferenceUtil.put(this, xx + \"_\" + yy, 0);\n }\n\n if (undoField[xx][yy] != null) {\n SharedPreferenceUtil.put(this, SpConstant.UNDO_GRID + xx + \"_\" + yy, undoField[xx][yy].getValue());\n } else {\n SharedPreferenceUtil.put(this, SpConstant.UNDO_GRID + xx + \"_\" + yy, 0);\n }\n }\n }\n SharedPreferenceUtil.put(this, SpConstant.SCORE, gameController.currentScore);\n SharedPreferenceUtil.put(this, SpConstant.HIGH_SCORE_TEMP, gameController.historyHighScore);\n SharedPreferenceUtil.put(this, SpConstant.UNDO_SCORE, gameController.lastScore);\n SharedPreferenceUtil.put(this, SpConstant.CAN_UNDO, gameController.canUndo);\n SharedPreferenceUtil.put(this, SpConstant.GAME_STATE, gameController.gameState);\n SharedPreferenceUtil.put(this, SpConstant.UNDO_GAME_STATE, gameController.lastGameState);\n SharedPreferenceUtil.put(this, SpConstant.AUDIO_ENABLED, gameController.isAudioEnabled);\n }",
"void saveHtmFile(String htmFileName, String path) throws IOException\r\n \t{\r\n \t\tString filePath = path + \"/\" + htmFileName + \".html\";\r\n \t\tFileWriter out = new FileWriter( filePath );\r\n \t\tout.write(getTemplateContent());\r\n \t\tout.close();\r\n \t}",
"public String download(){\r\n\t\treturn \"template\";\r\n\t}",
"@ChangeSet(order = \"001\", id = \"initialWordType\", author = \"zdoh\", runAlways = true)\n public void initWordType(MongoTemplate template) {\n partOfSpeechMap.putIfAbsent(\"num\", template.save(PartOfSpeech.builder()\n .shortName(\"num\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"числительное\"), new TranslateEntity(languageMap.get(\"en\"), \"numeral\")))\n .japanName(\"数詞\")\n .kuramojiTypeOfSpeech(KuramojiTypeOfSpeech.MAIN)\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"n\", template.save(PartOfSpeech.builder()\n .shortName(\"n\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"существительное\"), new TranslateEntity(languageMap.get(\"en\"), \"noun (common)\")))\n .japanName(\"名詞\")\n .kuramojiToken(\"名詞\")\n .kuramojiTypeOfSpeech(KuramojiTypeOfSpeech.MAIN)\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"pn\", template.save(PartOfSpeech.builder()\n .shortName(\"pn\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"местоимение\"), new TranslateEntity(languageMap.get(\"en\"), \"pronoun\")))\n .japanName(\"代名詞\")\n .kuramojiToken(\"代名詞\")\n .kuramojiTypeOfSpeech(KuramojiTypeOfSpeech.MAIN)\n .build()));\n\n // no kuramoji\n partOfSpeechMap.putIfAbsent(\"hon\", template.save(PartOfSpeech.builder()\n .shortName(\"hon\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"вежливая речь\"), new TranslateEntity(languageMap.get(\"en\"), \"honorific or respectful (sonkeigo) language\")))\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"mr-suf\", template.save(PartOfSpeech.builder()\n .shortName(\"mr-suf\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"суффикс обращения к кому-то: мистер, миссис и тд, используемый в японском языке\")))\n .build()));\n\n\n partOfSpeechMap.putIfAbsent(\"adv\", template.save(PartOfSpeech.builder()\n .shortName(\"adv\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"наречие\"), new TranslateEntity(languageMap.get(\"en\"), \"adverb\")))\n .japanName(\"副詞\")\n .kuramojiToken(\"副詞\")\n .kuramojiTypeOfSpeech(KuramojiTypeOfSpeech.OTHER)\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"int\", template.save(PartOfSpeech.builder()\n .shortName(\"int\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"междометие\"), new TranslateEntity(languageMap.get(\"en\"), \"interjection\")))\n .japanName(\"感動詞\")\n .kuramojiToken(\"感動詞\")\n .kuramojiTypeOfSpeech(KuramojiTypeOfSpeech.OTHER)\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"adj-na\", template.save(PartOfSpeech.builder()\n .shortName(\"adj-na\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"na-прилагательное (предикативное)\"), new TranslateEntity(languageMap.get(\"en\"), \"adjectival nouns or quasi-adjectives\")))\n .japanName(\"な形容詞\")\n .kuramojiToken(\"形容動詞語幹\")\n .kuramojiTypeOfSpeech(KuramojiTypeOfSpeech.MAIN)\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"adj-i\", template.save(PartOfSpeech.builder()\n .shortName(\"adj-i\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"i-прилагательное (полупредикативное)\"), new TranslateEntity(languageMap.get(\"en\"), \"adjective\")))\n .japanName(\"い形容詞\")\n .kuramojiToken(\"形容詞\")\n .kuramojiTypeOfSpeech(KuramojiTypeOfSpeech.MAIN)\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"v\", template.save(PartOfSpeech.builder()\n .shortName(\"v\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"глагол\"), new TranslateEntity(languageMap.get(\"en\"), \"verb\")))\n .japanName(\"動詞\")\n .kuramojiToken(\"動詞\")\n .kuramojiTypeOfSpeech(KuramojiTypeOfSpeech.MAIN)\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"v5b\", template.save(PartOfSpeech.builder()\n .shortName(\"v5b\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"глагол I-спряжение, -ぶ\"), new TranslateEntity(languageMap.get(\"en\"), \"Godan verb with 'bu' ending\")))\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"v5g\", template.save(PartOfSpeech.builder()\n .shortName(\"v5g\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"глагол I-спряжение, -ぐ\"), new TranslateEntity(languageMap.get(\"en\"), \"Godan verb with 'gu' ending\")))\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"v5k\", template.save(PartOfSpeech.builder()\n .shortName(\"v5k\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"глагол I-спряжение, -く\"), new TranslateEntity(languageMap.get(\"en\"), \"Godan verb with 'ku' ending\")))\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"v5k-s\", template.save(PartOfSpeech.builder()\n .shortName(\"v5k-s\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"глагол I-спряжение, -す (специальный клаас)\"), new TranslateEntity(languageMap.get(\"en\"), \"Godan verb with 'su' ending (special class)\")))\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"v5m\", template.save(PartOfSpeech.builder()\n .shortName(\"v5m\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"глагол I-спряжение, -む\"), new TranslateEntity(languageMap.get(\"en\"), \"Godan verb with 'mu' ending\")))\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"v5n\", template.save(PartOfSpeech.builder()\n .shortName(\"v5n\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"глагол I-спряжение, -ぬ\"), new TranslateEntity(languageMap.get(\"en\"), \"Godan verb with 'nu' ending\")))\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"v5r\", template.save(PartOfSpeech.builder()\n .shortName(\"v5r\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"глагол I-спряжение, -る\"), new TranslateEntity(languageMap.get(\"en\"), \"Godan verb with 'ru' ending\")))\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"v5s\", template.save(PartOfSpeech.builder()\n .shortName(\"v5s\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"глагол I-спряжение, -す\"), new TranslateEntity(languageMap.get(\"en\"), \"Godan verb with 'su' ending\")))\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"v5t\", template.save(PartOfSpeech.builder()\n .shortName(\"v5t\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"глагол I-спряжение, -つ\"), new TranslateEntity(languageMap.get(\"en\"), \"Godan verb with 'tu' ending\")))\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"v5u\", template.save(PartOfSpeech.builder()\n .shortName(\"v5u\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"глагол I-спряжение, -う\"), new TranslateEntity(languageMap.get(\"en\"), \"Godan verb with 'u' ending\")))\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"v5z\", template.save(PartOfSpeech.builder()\n .shortName(\"v5z\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"глагол I-спряжение, -ず\"), new TranslateEntity(languageMap.get(\"en\"), \"Godan verb with 'zu' ending\")))\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"vi\", template.save(PartOfSpeech.builder()\n .shortName(\"vi\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"непереходный глагол\"), new TranslateEntity(languageMap.get(\"en\"), \"intransitive verb\")))\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"prefix\", template.save(PartOfSpeech.builder()\n .shortName(\"prefix\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"префикс\"), new TranslateEntity(languageMap.get(\"en\"), \"prefix\")))\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"v1\", template.save(PartOfSpeech.builder()\n .shortName(\"v1\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"глагол II-спряжение\"), new TranslateEntity(languageMap.get(\"en\"), \"ichidan verb\")))\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"vt\", template.save(PartOfSpeech.builder()\n .shortName(\"vt\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"переходный глагол\"), new TranslateEntity(languageMap.get(\"en\"), \"transitive verb\")))\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"n-adv\", template.save(PartOfSpeech.builder()\n .shortName(\"n-adv\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"отглагольное существительное\"), new TranslateEntity(languageMap.get(\"en\"), \"adverbial noun\")))\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"n-t\", template.save(PartOfSpeech.builder()\n .shortName(\"n-t\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"существительное (временное)\"), new TranslateEntity(languageMap.get(\"en\"), \"noun (temporal)\")))\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"vk\", template.save(PartOfSpeech.builder()\n .shortName(\"vk\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"специальный глагол 来る\"), new TranslateEntity(languageMap.get(\"en\"), \"来る verb - special class\")))\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"vs\", template.save(PartOfSpeech.builder()\n .shortName(\"vs\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"существительное, которое используется с する\"), new TranslateEntity(languageMap.get(\"en\"), \"noun or participle which takes the aux. verb suru\")))\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"ctr\", template.save(PartOfSpeech.builder()\n .shortName(\"ctr\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"счетчик\"), new TranslateEntity(languageMap.get(\"en\"), \"counter\")))\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"n-suf\", template.save(PartOfSpeech.builder()\n .shortName(\"n-suf\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"существительное, котором может использоваться как суффикс\"), new TranslateEntity(languageMap.get(\"en\"), \"noun, used as a suffix\")))\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"n-pref\", template.save(PartOfSpeech.builder()\n .shortName(\"n-pref\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"существительное, котором может использоваться как префикс\"), new TranslateEntity(languageMap.get(\"en\"), \"noun, used as a prefix\")))\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"suf\", template.save(PartOfSpeech.builder()\n .shortName(\"suf\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"суффикс\"), new TranslateEntity(languageMap.get(\"en\"), \"suffix\")))\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"exp\", template.save(PartOfSpeech.builder()\n .shortName(\"exp\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"выражение\"), new TranslateEntity(languageMap.get(\"en\"), \"expressions (phrases, clauses, etc.)\")))\n .build()));\n\n /// part of speech for grammar\n\n partOfSpeechMap.putIfAbsent(\"は\", template.save(PartOfSpeech.builder()\n .shortName(\"は\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"частица は\"), new TranslateEntity(languageMap.get(\"en\"), \"particle は\")))\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"です\", template.save(PartOfSpeech.builder()\n .shortName(\"です\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"связка です\"), new TranslateEntity(languageMap.get(\"en\"), \".... です\")))\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"じゃありません\", template.save(PartOfSpeech.builder()\n .shortName(\"じゃありません\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"разговорная отрицательная форма связки です\")))\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"ではありません\", template.save(PartOfSpeech.builder()\n .shortName(\"ではありません\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"отрицательная форма связки です\")))\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"か\", template.save(PartOfSpeech.builder()\n .shortName(\"か\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"вопросительная частица か\")))\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"も\", template.save(PartOfSpeech.builder()\n .shortName(\"も\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"частица も\")))\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"の\", template.save(PartOfSpeech.builder()\n .shortName(\"の\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"частица の\")))\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"さん\", template.save(PartOfSpeech.builder()\n .shortName(\"さん\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"суффикс さん\")))\n .kuramojiTypeOfSpeech(KuramojiTypeOfSpeech.SUFFIX)\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"ちゃん\", template.save(PartOfSpeech.builder()\n .shortName(\"ちゃん\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"суффикс ちゃん\")))\n .kuramojiTypeOfSpeech(KuramojiTypeOfSpeech.SUFFIX)\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"くん\", template.save(PartOfSpeech.builder()\n .shortName(\"くん\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"суффикс くん\")))\n .kuramojiTypeOfSpeech(KuramojiTypeOfSpeech.SUFFIX)\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"これ\", template.save(PartOfSpeech.builder()\n .shortName(\"これ\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"предметно-указательное местоимение これ\")))\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"それ\", template.save(PartOfSpeech.builder()\n .shortName(\"それ\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"предметно-указательное местоимение それ\")))\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"あれ\", template.save(PartOfSpeech.builder()\n .shortName(\"あれ\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"предметно-указательное местоимение あれ\")))\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"この\", template.save(PartOfSpeech.builder()\n .shortName(\"この\")\n .translateName( List.of(new TranslateEntity(languageMap.get(\"ru\"), \"относительно-указательное местоимение この\")))\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"その\", template.save(PartOfSpeech.builder()\n .shortName(\"その\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"относительно-указательное местоимение その\")))\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"あの\", template.save(PartOfSpeech.builder()\n .shortName(\"あの\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"относительно-указательное местоимение あの\")))\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"文\", template.save(PartOfSpeech.builder()\n .shortName(\"文\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"показатель предложения\")))\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"、\", template.save(PartOfSpeech.builder()\n .shortName(\"、\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"символ запятой\")))\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"。\", template.save(PartOfSpeech.builder()\n .shortName(\"。\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"символ точки\")))\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"お\", template.save(PartOfSpeech.builder()\n .shortName(\"お\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"показатель вежливости, префикс к существительному\")))\n .build()));\n\n partOfSpeechMap.putIfAbsent(\"name\", template.save(PartOfSpeech.builder()\n .shortName(\"name\")\n .translateName(List.of(new TranslateEntity(languageMap.get(\"ru\"), \"имя, фамилия и тд\")))\n .build()));\n\n/*\n wordTypeMap.putIfAbsent(\"\", template.save(new WordType(\"\",\n List.of(new TranslateEntity(languageMap.get(\"ru\"), \"\"), new TranslateEntity(languageMap.get(\"en\"), \"\")), \"\")));\n*/\n\n }",
"private void saveResourceFile()\r\n\t{\t\r\n\t\tFile file = null;\r\n\t\tFileWriter fw = null;\r\n\t\t//File complete = null;//New file for the completed list\r\n\t\t//FileWriter fw2 = null;//Can't use the same filewriter to do both the end task and the complted products.\r\n\t\ttry{\r\n\t\t\tfile = new File(outFileName);\r\n\t\t\tfile.createNewFile();\r\n\t\t\tfw = new FileWriter(outFileName,true);\r\n\t\t\tfor(FactoryObject object : mFObjects)\r\n\t\t\t{\r\n\t\t\t\tif(object instanceof FactoryReporter) {\r\n\t\t\t\t\t((FactoryReporter)object).report(fw);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (IOException ioe) {\r\n\t\t\tSystem.out.println(ioe.getMessage());\r\n\t\t\tif(file != null) {\r\n\t\t\t\tfile.delete();\r\n\t\t\t}\r\n\t\t} finally {\r\n\t\t\tif(fw != null) {\r\n\t\t\t\ttry{\r\n\t\t\t\t\tfw.close();\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\tSystem.out.println(\"Failed to close the filewriter!\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void save(){\r\n\t\t//System.out.println(\"call save\");\r\n\t\tmodel.printDoc();\r\n\t}",
"@Test\n public void createTemplateTest() throws IdfyException, Exception {\n CreatePdfTemplate model = new CreatePdfTemplate.Builder().build();\n PdfTemplate response = api.createTemplate(model);\n assertNotNull(response);\n }",
"public void save(){\n\tif(currentFile == null){\n\t // TODO: add popup to select where to save file and file name\n\t // currentFile = new TextFile(os, title, null);\n\t}else{\n\t currentFile.setBody(textArea.getText());\n\t}\n }",
"static void freemarkerDo(Map datamodel, String template) throws Exception\n\t{\n\t\tConfiguration cfg = new Configuration();\n\t\tcfg.setDirectoryForTemplateLoading(new File(dirForTemplateLoading));\n\t\tTemplate tpl = cfg.getTemplate(template);\n\t\tOutputStreamWriter output = new OutputStreamWriter(System.out);\n\t\t/*try {\n\t\t BufferedWriter output = new BufferedWriter(new FileWriter(\"outputFile01\"));\n\t\t\ttpl.process(datamodel, output);\n\t\t} catch (IOException e) {\n\t\t}*/\n\n\t\ttpl.process(datamodel, output);\n\t}",
"public void doSaveAs() {\n\t\tif (activePage == 0 && introEditor.isUpdated() || introEditor.isDirty())\n\t\t\tupdateIntroEditor();\n\t\tif (activePage == 1 && (pageMainEditor.isUpdated() || pageMainEditor.isDirty()))\n\t\t\tupdateFile();\n\t\tIEditorPart editor = getTextEditor();\n\t\teditor.doSaveAs();\n\t\tsetPageText(getTextEditorIndex(), editor.getTitle());\n\t\tsetInput(editor.getEditorInput());\n\t}",
"public static void save()\n {\n try {\n \n \n PrintWriter fich = null;\n \n fich = new PrintWriter(new BufferedWriter(new FileWriter(\"bd.pl\", true)));\n\t\t\t//true c'est elle qui permet d'écrire à la suite des donnée enregistrer et non de les remplacé \n \n for(String auto : GestionController.listApp)\n {\n \n fich.println(auto);\n }\n fich.println();\n for(String auto : GestionController.listDetFact)\n {\n \n fich.println(auto);\n }\n fich.println();\n for(String auto : GestionController.listFact)\n {\n \n fich.println(auto);\n }\n fich.println();\n for(String auto : GestionController.listType)\n {\n \n fich.println(auto);\n }\n fich.println();\n fich.close();\n } catch (Exception e1) {\n printStrace(e1);\n\t\t}\n }",
"public File getTemplateFile();",
"public abstract void mo32008e(TemplateInfo templateInfo);",
"void save() throws IOException, ParserConfigurationException, TransformerConfigurationException;",
"public TemplateGroupSignature saveGroupSingTemplate(Template template, TemplateGroupSignature group)\n\t{\n\t\tTemplateGroupSignatureDAO dao = new TemplateGroupSignatureDAO();\n\t\tgroup = dao.saveNew(group);\t\n\t\treturn group; \n\t}",
"@Override\n\tpublic void save() {\n\t\t\n\t}",
"@Override\n\tpublic void save() {\n\t\t\n\t}",
"public void saveData() {\n\t\t//place to save notes e.g to file\n\t}",
"private void createTempData() {\n\t\t\n\t\tif (login == true) {\n\t\ttFirstNameL = new JLabel(\"First\");\n\t\ttFirstNameL.setForeground(Color.WHITE);\n\t\ttFirstNameL.setFont(masterFont);\n\t\ttFirstNameL.setBounds(275, 25, 200, 30);\n\t\t\n\t\ttLastNameL = new JLabel(\"Last\");\n\t\ttLastNameL.setForeground(Color.WHITE);\n\t\ttLastNameL.setFont(masterFont);\n\t\ttLastNameL.setBounds(275, 25, 200, 30);\n\t\t\n\t\ttSchoolNameL = new JLabel(\"School\");\n\t\ttSchoolNameL.setForeground(Color.WHITE);\n\t\ttSchoolNameL.setFont(masterFont);\n\t\ttSchoolNameL.setBounds(25, 85, 200, 30);\n\t\n\t\ttUsernameL = new JLabel(\"Username\");\n\t\ttUsernameL.setForeground(Color.WHITE);\n\t\ttUsernameL.setFont(masterFont);\n\t\ttUsernameL.setBounds(275, 85, 200, 30);\n\t\t\t\t\n\t\ttPasswordL1 = new JLabel(\"Password\");\n\t\ttPasswordL1.setForeground(Color.WHITE);\n\t\ttPasswordL1.setFont(masterFont);\n\t\ttPasswordL1.setBounds(25, 145, 200, 30);\n\t\t\t\t\n\t\ttPasswordL2 = new JLabel(\"Re-enter Password\");\n\t\ttPasswordL2.setForeground(Color.WHITE);\n\t\ttPasswordL2.setFont(masterFont);\n\t\ttPasswordL2.setBounds(275, 145, 200, 30);\n\t\t\t\t\n\t\ttSecurityQ1L = new JLabel(\"Security Question 1\");\n\t\ttSecurityQ1L.setForeground(Color.WHITE);\n\t\ttSecurityQ1L.setFont(masterFont);\n\t\ttSecurityQ1L.setBounds(25, 205, 200, 30);\n\t\t\t\t\n\t\ttSecurityQ2L = new JLabel(\"Security Question 2\");\n\t\ttSecurityQ2L.setForeground(Color.WHITE);\n\t\ttSecurityQ2L.setFont(masterFont);\n\t\ttSecurityQ2L.setBounds(25, 265, 200, 30);\n\t\t\n\t\ttPasswordPF1 = new JPasswordField();\n\t\ttPasswordPF1.setText(\"saveme\");\n\t\ttPasswordPF1.setBounds(25, 175, 200, 30);\n\t\ttPasswordPF1.addActionListener(this);\n\t\ttPasswordPF1.setBorder(compound);\n\t\t\n\t\ttPasswordPF2 = new JPasswordField();\n\t\ttPasswordPF2.setText(\"saveme\");\n\t\ttPasswordPF2.setBounds(275, 175, 200, 30);\n\t\ttPasswordPF2.addActionListener(this);\n\t\ttPasswordPF2.setBorder(compound);\n\t\t\n\t\tteacherAccount = true;\n\t\t\n\t\tString lastName = \"Neff\";\n\t\ttLastNameTF = new JTextField();\n\t\ttLastNameTF.setText(\"Neff\");\n\t\tString firstName = \"Jon\";\n\t\ttFirstNameTF = new JTextField();\n\t\ttFirstNameTF.setText(firstName);\n\t\tString schoolName = \"UNCW\";\n\t\ttSchoolNameTF = new JTextField();\n\t\ttSchoolNameTF.setText(schoolName);\n\t\tString userName = \"jmn7080\";\n\t\ttUsernameTF = new JTextField();\n\t\ttUsernameTF.setText(userName);\n\t\tchar[] password = { 's', 'a', 'v', 'e', 'm', 'e'};\n\t\tString sA1 = \"Amelia\";\n\t\ttSecurityQ1TF = new JTextField();\n\t\ttSecurityQ1TF.setText(sA1);\n\t\ttSecurityQ1TF.setBorder(compound);\n\t\t\n\t\tString[] tSecurityQuestions1 = {\n\t\t \"What high school did you attend?\",\n\t\t \"In what city were you born?\",\n\t\t \"What is your favorite movie?\",\n\t\t \"What is your middle name?\",\n\t\t \"What is your mother's maiden name?\",\n\t\t \"What street did you grow up on?\",\n\t\t \"What was the make of your first car?\",\n\t\t \"What is your favorite color?\",\n\t\t \"What is your father's middle name?\"\n\t\t};\n\t\ttSecurityList1 = new JComboBox(tSecurityQuestions1);\n\t\ttSecurityList1.setEditable(false);\n\t\ttSecurityList1.addActionListener(this);\n\t\ttSecurityList1.setBounds(25, 235, 275, 30);\n\t\ttSecurityList1.setBorder(compound);\n\t\ttSecurityList1.setBackground(Color.WHITE);\n\t\n\t\tString[] tSecurityQuestions2 = {\n\t\t \"What is the name of your first grade teacher?\",\n\t\t \"What was your high school mascot?\",\n\t\t \"What is your favorite web browser?\",\n\t\t \"What is your favorite website?\",\n\t\t \"What is your favorite animal?\",\n\t\t \"What is your favorite social media website?\",\n\t\t \"What is the name of your favorite pet?\",\n\t\t \"What is the name of your first boyfriend or girlfriend?\",\n\t\t \"What is your favorite musician?\"\n\t\t};\t\n\t\ttSecurityList2 = new JComboBox(tSecurityQuestions2);\n\t\ttSecurityList2.setEditable(false);\n\t\ttSecurityList2.addActionListener(this);\n\t\ttSecurityList2.setBounds(25, 295, 275, 30);\n\t\ttSecurityList2.setBorder(compound);\n\t\ttSecurityList2.setBackground(Color.WHITE);\n\t\t\n\t\tString sQ1 = (String)tSecurityList1.getItemAt(1);\n\t\tString sA2 = \"Mrs. Cover\";\n\t\ttSecurityQ2TF = new JTextField();\n\t\ttSecurityQ2TF.setText(sA2);\n\t\ttSecurityQ2TF.setBorder(compound);\n\t\tString sQ2 = (String)tSecurityList2.getItemAt(4);\n\t\t\n\t\tteacher = new Teacher(lastName, firstName, schoolName, userName, password, sA1, sQ1, sA2, sQ2);\n\t\t}\n\t\t\n\t\tJTable flashTable1, flashTable2;\n\t\tString[] fColumnNames = {\"Subject\", \"Total\"};\n\t\t\n\t\tObject[][] flash1 = {{\"Chemistry\", \"24\"}};\n\t\tObject[][] flash2 = {{\"Computer\", \"18\"}};\n\t\t\n\t\tflashTable1 = new JTable(flash1, fColumnNames);\n\t\tflashTable2 = new JTable(flash2, fColumnNames);\n\t\t\n\t\ttable1 = new JTable(data1, columnNames);\n\t\ttable2 = new JTable(data2, columnNames);\n\t\t \n\t\tClass class1 = new Class(\"CSC 450\", table1, flashTable1);\n\t\tClass class2 = new Class(\"Premier Team\", table2, flashTable2);\n\t\t\n\t\tFlashCard fC1 = new FlashCard(\"Science\");\n\t\tString[] card1 = {\"Hello\", \"World\"};\n\t\tfC1.addCard(card1);\n\t\t\n\t\tif (teacherAccount == true) {\n\t\t\tteacher.addClass(class1);\n\t\t\tteacher.addClass(class2);\n\t\t}\n\t\t\n\t}",
"@Transactional\n\tpublic void saveNewGeneric(FlowObjCreator foc) {\n\t\tTree folderT = readDocT(foc.getIdf());\n\t\tTree newGenericT = setNewDocT(\"drug\",folderT);\n\t\tDrug newGenericO = makeNewDrug(newGenericT, foc.getGenericName());\n\t\tnewGenericO.setGeneric(newGenericO);\n\t\tem.persist(newGenericT);\n\t\tem.persist(newGenericO);\n\t}",
"public Boolean updateTemplate(Template template)\n\t{\n\t\tTemplateDAO dao = new TemplateDAO();\n\t\tdao.save(template);\t\t\n\t\treturn true;\n\t}",
"public void save(File f) {\n\t\tif (f.exists()) {\r\n\t\t\tString filename = f.getName();\r\n\t\t\tString backName;\r\n\t\t\tif (filename.contains(\".\")) {\r\n\t\t\t\tbackName = filename.substring(0,filename.lastIndexOf('.'));\r\n\t\t\t\tbackName += \"_backup\";\r\n\t\t\t\tbackName += filename.substring(filename.lastIndexOf('.'));\r\n\t\t\t} else {\r\n\t\t\t\tbackName = filename + \"_backup\";\r\n\t\t\t}\r\n\t\t\tFile back = new File(f.getParent(),backName);\r\n\t\t\tSystem.out.println(\"Writing backup to: \"+back.getAbsolutePath());\r\n\t\t\tif (back.exists()) back.delete();\r\n\t\t\tFile newF = f;\r\n\t\t\tf.renameTo(back);\r\n\t\t\tf = newF;\r\n\t\t}\r\n\r\n\t\tFileOutputStream outputStream = null;\r\n\t\ttry {\r\n\t\t\tDocument doc = DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument();\r\n//\t\t\tb.append(\"<Map xmlns:xsi=\\\"http://www.w3.org/2001/XMLSchema-instance\\\" xsi:noNamespaceSchemaLocation=\\\"map.xsd\\\">\");\r\n//\t\t\tProcessingInstruction pi = doc.createProcessingInstruction(\"xml-stylesheet\", \"type=\\\"text/xsl\\\" href=\\\"/assistantdm/static/CharacterSheetTemplate.xsl\\\"\");\r\n//\t\t\tdoc.appendChild(pi);\r\n\t\t\tXMLMapExporter processor = new XMLMapExporter(doc);\r\n\t\t\tmapPanel.executeProcess(processor);\r\n\t\t\tdoc.setXmlStandalone(true);\r\n\r\n\t\t\tTransformer trans = TransformerFactory.newInstance().newTransformer();\r\n\t\t\ttrans.setOutputProperty(OutputKeys.INDENT, \"yes\");\r\n\t\t\ttrans.setOutputProperty(OutputKeys.ENCODING, \"UTF-8\");\r\n\t\t\ttrans.setOutputProperty(\"{http://xml.apache.org/xslt}indent-amount\", \"4\");\r\n\t\t\toutputStream = new FileOutputStream(f);\r\n\t\t\ttrans.transform(new DOMSource(doc), new StreamResult(outputStream));\r\n\t\t\tmapPanel.modified = false;\r\n\t\t} catch (Exception ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t} finally {\r\n\t\t\tif (outputStream != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\toutputStream.close();\r\n\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private void writeFactory(GenModule module) throws Exception {\n\t\tMustacheFactory mf = new DefaultMustacheFactory();\n\t\tMustache template = mf.compile(\"factoryTemplate.hbs\"); \n\t\tElement[] sources = getSourcesOf(module);\n\t\tJavaFileObject fileObject = filer.createSourceFile(module\n\t\t\t\t.getPackageName() + \".\" + module.getClassName()); //we dont report the sources so that we keep the generated file on touching e.g. a @singleton component \n\t\tOutputStream outputStream = fileObject.openOutputStream();\n\t\ttry (Writer writer = new PrintWriter(outputStream)) {\n\t\t\t//template.apply(module, writer);\n\t\t\ttemplate.execute(writer, module);\n\t\t\twriter.flush();\n\t\t}\n\t\t;\n\t}",
"void saveContext();",
"@Override\r\n\tpublic void save() {\n\r\n\t}",
"@Override\r\n\tpublic void save() {\n\r\n\t}",
"private String handleSave(WikiContext context, Query form) throws ChildContainerException, IOException {\n System.err.println(\"handleSave -- ENTERED\");\n String name = form.get(\"savepage\");\n String wikiText = form.get(\"savetext\");\n \n System.err.println(\"handleSave --got params\");\n if (name == null || wikiText == null) {\n context.raiseAccessDenied(\"Couldn't parse parameters from POST.\");\n }\n \n System.err.println(\"Writing: \" + name);\n context.getStorage().putPage(name, unescapeHTML(wikiText));\n System.err.println(\"Raising redirect!\");\n context.raiseRedirect(context.makeLink(\"/\" + name), \"Redirecting...\");\n System.err.println(\"SOMETHING WENT WRONG!\");\n return \"unreachable code\";\n }",
"private void saveGame(){\n\t\t\n\t}",
"@Override\n public void save() {\n \n }",
"@Override\n public void Save() {\n\t \n }",
"@Override\r\n\tpublic void save(Plate tipo) {\n\t\t\r\n\t}",
"private void saveFile() {\n if (fileExisted == false) {\n JFileChooser fChoice = new JFileChooser();\n int choice = fChoice.showSaveDialog(this);\n if (choice == JFileChooser.APPROVE_OPTION) {\n File f = fChoice.getSelectedFile();\n //\n if(!f.getName().contains(\".txt\")){\n File fN=new File(f.getParent(), f.getName()+\".txt\");\n FileDAO.writeFile(fN, txtContent);\n fMain = fN;\n fileExisted = true;\n lastSave=true;\n this.setTitle(fN.getName());\n }\n else{\n \n FileDAO.writeFile(f, txtContent);\n fMain = f;\n fileExisted = true;\n lastSave=true;\n this.setTitle(f.getName());\n } \n \n }\n } else if (fileExisted == true) {\n FileDAO.writeFile(fMain, txtContent);\n lastSave=true;\n }\n\n }",
"private String handleSave(WikiContext context, Query form) throws ChildContainerException, IOException {\n System.err.println(\"handleSave -- ENTERED\");\n String name = form.get(\"savepage\");\n String wikiText = form.get(\"savetext\");\n \n System.err.println(\"handleSave --got params\");\n if (name == null || wikiText == null) {\n context.raiseAccessDenied(\"Couldn't parse parameters from POST.\");\n }\n \n System.err.println(\"Writing: \" + name);\n context.getStorage().putPage(name, unescapeHTML(wikiText));\n System.err.println(\"Raising redirect!\");\n context.raiseRedirect(context.makeLink(\"/\" + name), \"Redirecting...\");\n System.err.println(\"SOMETHING WENT WRONG!\");\n return \"unreachable code\";\n }",
"public void Save() {\r\n //solo se salvara el container\r\n vc.getContainer();\r\n }",
"@Override\n\tpublic void saveEntry(T t) {\n\t\tthis.hibernateTemplate.save(t);\n\t}",
"private void generatePayoutTemp(InstantTicket hostTicket, PrizeLevelDto payoutDto, long batchNumber)\n throws ApplicationException {\n boolean isSucceeded = true;\n // check whether the data is existed in DB already,if it's existed,don't\n // need to store it into\n\n // GENERATE PAYOUT\n IGPayoutTemp payoutTemp = new IGPayoutTemp();\n payoutTemp.setCreateTime(new Date());\n payoutTemp.setId(this.getUuidManager().getGeneralID());\n payoutTemp.setStatus(Payout.STATUS_PAID);\n payoutTemp.setTicketSerialNo(hostTicket.getSerialNo());\n // set after-tax prize amount to Payout\n // if prize.getTaxAmount() is null, it means no tax for this prize.\n // payout.setTotalAmount(payoutDto.getPrizeAmount().subtract(payoutDto.getTaxAmount()));\n // payout.setBeforeTaxTotalAmount(payoutDto.getPrizeAmount());\n payoutTemp.setTotalAmount(payoutDto.getCashActualAmount());\n payoutTemp.setBeforeTaxTotalAmount(payoutDto.getCashPrizeAmount());\n payoutTemp.setBeforeTaxObjectAmount(payoutDto.getPrizeAmount().subtract(payoutDto.getCashPrizeAmount()));\n payoutTemp.setNumberOfObject(payoutDto.getNumberOfObject());\n payoutTemp.setTransaction(hostTicket.getTransaction());\n payoutTemp.setInputChannel(payoutDto.getInputChannel());\n payoutTemp.setType(Payout.TYPE_WINNING);\n payoutTemp.setValid(true);\n\n payoutTemp.setOperatorId(hostTicket.getTransaction().getOperatorId());\n payoutTemp.setMerchantId((int) hostTicket.getTransaction().getMerchantId());\n payoutTemp.setDevId((int) hostTicket.getTransaction().getDeviceId());\n payoutTemp.setGameInstanceId(hostTicket.getGameDraw().getId());\n payoutTemp.setGameId(hostTicket.getGameDraw().getGame().getId());\n\n payoutTemp.setiGBatchNumber(batchNumber);\n\n this.getiGPayoutTempDao().insert(payoutTemp);\n\n // GENERATE PAYOUT_DETAIL\n for (PrizeLevelItemDto prizeItem : payoutDto.getLevelItems()) {\n IGPayoutDetailTemp payoutDetailTemp = new IGPayoutDetailTemp();\n payoutDetailTemp.setId(this.getUuidManager().getGeneralID());\n payoutDetailTemp.setPayoutId(payoutTemp.getId());\n if (PrizeLevelDto.PRIZE_TYPE_OBJECT == prizeItem.getPrizeType()) {\n payoutDetailTemp.setObjectId(prizeItem.getObjectId());\n payoutDetailTemp.setObjectName(prizeItem.getObjectName());\n }\n // set prize_amount to total_amount\n payoutDetailTemp.setPrizeAmount(prizeItem.getPrizeAmount());\n // set actual_amount to cash_amount\n payoutDetailTemp.setActualAmount(prizeItem.getActualAmount());\n payoutDetailTemp.setNumberOfObject(prizeItem.getNumberOfObject());\n payoutDetailTemp.setPayoutType(prizeItem.getPrizeType());\n payoutDetailTemp.setUpdateTime(new Date());\n payoutDetailTemp.setCreateTime(new Date());\n payoutDetailTemp.setCreateBy(payoutTemp.getOperatorId());\n payoutDetailTemp.setUpdateBy(payoutTemp.getOperatorId());\n\n payoutDetailTemp.setiGBatchNumber(batchNumber);\n payoutDetailTemp.setOperatorId(payoutTemp.getOperatorId());\n\n this.getiGPayoutDetailTempDao().insert(payoutDetailTemp);\n\n }\n // return isSucceeded;\n }",
"private void saveFile() {\n\t\ttry {\n\t\t\tFile file = jfc.getSelectedFile();\n\t\t\tint c = -1;\n\t\t\tif(file==null)\n\t\t\t{\n\t\t\t\tc = jfc.showSaveDialog(this);\n\t\t\t}\n\t\t\t\n\n\t\t\tif(file!= null || c ==0)\n\t\t\t{\t\n\t\t\t\tFileWriter fw = new FileWriter(jfc.getSelectedFile());\n\t\t\t\tfw.write(jta.getText());\n\t\t\t\tfw.close();\n\t\t\t\tSystem.out.println(\"파일을 저장하였습니다\");\n\t\t\t\t\n\t\t\t}\n\t\t\n\t\t\t\n\t\t} catch (Exception e2) {\n\t\t\t// TODO: handle exception\n\t\t\tSystem.out.println(e2.getMessage());\n\t\t}\n\t}",
"private void inToTrinhv3(HttpServletRequest request, HttpServletResponse reponse, GiaHanForm giaHanForm, ApplicationContext appConText) throws Exception {\r\n\r\n\t\tString fileIn = request.getRealPath(\"/docin\") + \"\\\\TTNB10.doc\";\r\n\t\tString fileOut = request.getRealPath(\"/docout\") + \"\\\\TTNB10_Out\" + System.currentTimeMillis() + request.getSession().getId() + \".doc\";\r\n\r\n\t\tString fileTemplate = null;\r\n\t\tfileTemplate = \"ttnb10\"; // (ngon, chuan)\r\n\t\tString idCuocTtkt = giaHanForm.getIdCuocTtKt();\r\n\t\tTtktKhCuocTtkt cuocTtkt = CuocTtktService.getCuocTtktWithoutNoiDung(appConText, idCuocTtkt);\r\n\r\n\t\tTtktCbQd cbQd = TtktService.getQuyetDinh(idCuocTtkt, appConText);\r\n\t\tString hinhThuc = (cuocTtkt.getHinhThuc().booleanValue()) ? \"ki\\u1EC3m tra\" : \"thanh tra\";\r\n\t\tStringBuffer sb = new StringBuffer(hinhThuc);\r\n\r\n\t\tMsWordUtils word = new MsWordUtils(fileIn, fileOut);\r\n\t\ttry {\r\n\t\t\tword.put(\"[ten_cqt]\", KtnbUtil.getTenCqtCapTrenTt(appConText).toUpperCase());\r\n\t\t\t// hinh thuc thanh tra kiem tra\r\n\t\t\tif (Formater.isNull(giaHanForm.getSoQd())) {\r\n\t\t\t\tsb.append(\" Q\\u0110 S\\u1ED0......\");\r\n\t\t\t} else {\r\n\t\t\t\tsb.append(\" Q\\u0110 S\\u1ED0 \" + giaHanForm.getSoQd());\r\n\t\t\t}\r\n\t\t\tword.put(\"[doan_ttkt_so]\", sb.toString().toUpperCase());\r\n\r\n\t\t\tword.put(\"[ttkt]\", hinhThuc);\r\n\t\t\tword.put(\"[dv_dc_ttkt]\", cuocTtkt.getTenDonViBi());\r\n\t\t\tword.put(\"[thu_truong_cqt_ra_qd]\", KtnbUtil.getTenThuTruongCqtForMauin(appConText).toUpperCase());\r\n\t\t\tword.put(\"[ttkt]\", hinhThuc);\r\n\t\t\tif (Formater.isNull(cbQd.getSoQuyetDinh())) {\r\n\t\t\t\tword.put(\"[qd_so]\", \"............\");\r\n\t\t\t} else {\r\n\t\t\t\tword.put(\"[qd_so]\", cbQd.getSoQuyetDinh());\r\n\t\t\t}\r\n\r\n\t\t\tString ngayxet = Formater.date2str(cbQd.getNgayRaQuyetDnh());\r\n\t\t\tString[] arrngayxet = ngayxet.split(\"/\");\r\n\t\t\tword.put(\"[ngay_qd]\", \"ng\\u00E0y \" + arrngayxet[0] + \" th\\u00E1ng \" + arrngayxet[1] + \" n\\u0103m \" + arrngayxet[2]);\r\n\t\t\tword.put(\"[thu_truong_cqt]\", KtnbUtil.getTenThuTruongCqtForMauin(appConText));\r\n\t\t\tword.put(\"[ttkt]\", hinhThuc);\r\n\t\t\tword.put(\"[dv_dc_ttkt]\", cuocTtkt.getTenDonViBi());\r\n\r\n\t\t\tword.put(\"[ttkt]\", hinhThuc);\r\n\t\t\tword.put(\"[dv_dc_ttkt]\", cuocTtkt.getTenDonViBi().toString());\r\n\t\t\tword.put(\"[ngay_lv]\", giaHanForm.getSoNgayRaHan());\r\n\t\t\tString tungay = giaHanForm.getRaHanTuNgay();\r\n\t\t\tString[] arrtungay = tungay.split(\"/\");\r\n\t\t\tword.put(\"[tu_ngay]\", \"ng\\u00E0y \" + arrtungay[0] + \" th\\u00E1ng \" + arrtungay[1] + \" n\\u0103m \" + arrtungay[2]);\r\n\t\t\t// den ngay\r\n\t\t\tString denngay = giaHanForm.getRaHanDenNgay();\r\n\t\t\tString[] arrdenngay = denngay.split(\"/\");\r\n\t\t\tword.put(\"[den_ngay]\", \"ng\\u00E0y \" + arrdenngay[0] + \" th\\u00E1ng \" + arrdenngay[1] + \" n\\u0103m \" + arrdenngay[2]);\r\n\t\t\tword.put(\"[ly_do]\", giaHanForm.getLyDoRaHan());\r\n\t\t\tword.put(\"[thu_truong_cqt_ra_qd]\", KtnbUtil.getTenThuTruongCqtForMauin(appConText).toUpperCase());\r\n\t\t\tword.put(\"[noi_duyet]\", giaHanForm.getNoiPheDuyet());\r\n\t\t\t// ngay duyet\r\n\t\t\tString ngayduyet = giaHanForm.getNgayPheDuyet();\r\n\t\t\tString[] arrngayduyet = ngayduyet.split(\"/\");\r\n\t\t\tif (arrngayduyet.length >= 2) {\r\n\t\t\t\tword.put(\"[ngay_duyet]\", \"ng\\u00E0y \" + arrngayduyet[0] + \" th\\u00E1ng \" + arrngayduyet[1] + \" n\\u0103m \" + arrngayduyet[2]);\r\n\t\t\t}\r\n\t\t\tword.put(\"[noi_lap]\", giaHanForm.getNoiTrinh());\r\n\t\t\t// ngay lap to trinh\r\n\t\t\tString ngaylaptotrinh = giaHanForm.getNgayTrinh();\r\n\t\t\tString[] arrngaylaptotrinh = ngaylaptotrinh.split(\"/\");\r\n\t\t\tif (arrngaylaptotrinh.length >= 2) {\r\n\t\t\t\tword.put(\"[ngay_lap_to_trinh]\", \"ng\\u00E0y \" + arrngaylaptotrinh[0] + \" th\\u00E1ng \" + arrngaylaptotrinh[1] + \" n\\u0103m \" + arrngaylaptotrinh[2]);\r\n\t\t\t}\r\n\t\t\tword.put(\"[ttkt]\", hinhThuc);\r\n\t\t\tword.put(\"[y_kien_phe_duyet]\", giaHanForm.getKienPheDuyet());\r\n\t\t\tword.put(\"[ten_truong_doan]\", cuocTtkt.getTenTruongDoan());\r\n\t\t\tword.put(\"[chuc_danh_thu_truong]\", KtnbUtil.getChucVuThuTruongByMaCqt(appConText.getMaCqt()).toUpperCase());\r\n\t\t\t// if (Formater.isNull(appConText.getTenThuTruong())) {\r\n\t\t\t// word.put(\"[ten_thu_truong]\", \"\");\r\n\t\t\t// } else {\r\n\t\t\t// word.put(\"[ten_thu_truong]\", appConText.getTenThuTruong());\r\n\t\t\t// }\r\n\t\t\tword.saveAndClose();\r\n\t\t\tword.downloadFile(fileOut, \"Mau TTNB10\", \".doc\", reponse);\r\n\t\t} catch (Exception ex) {\r\n\t\t\t// ex.printStackTrace();\r\n\t\t\tSystem.out.println(\"Download Error: \" + ex.getMessage());\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tword.saveAndClose();\r\n\t\t\t} catch (Exception e) {\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private void persist() {\n \t\ttry {\n \t\t\tproblemFile = File.createTempFile(\"p2Encoding\", \".opb\"); //$NON-NLS-1$//$NON-NLS-2$\n \t\t\tBufferedWriter w = new BufferedWriter(new FileWriter(problemFile));\n \t\t\tint clauseCount = tautologies.size() + dependencies.size() + constraints.size();\n \n \t\t\tint variableCount = variables.size();\n \t\t\tw.write(\"* #variable= \" + variableCount + \" #constraint= \" + clauseCount + \" \"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$\n \t\t\tw.newLine();\n \t\t\tw.write(\"*\"); //$NON-NLS-1$\n \t\t\tw.newLine();\n \n \t\t\tif (variableCount == 0 && clauseCount == 0) {\n \t\t\t\tw.close();\n \t\t\t\treturn;\n \t\t\t}\n \t\t\tw.write(objective);\n \t\t\tw.newLine();\n \t\t\tw.newLine();\n \n \t\t\tw.write(explanation + \" ;\"); //$NON-NLS-1$\n \t\t\tw.newLine();\n \t\t\tw.newLine();\n \n \t\t\tfor (Iterator iterator = dependencies.iterator(); iterator.hasNext();) {\n \t\t\t\tw.write((String) iterator.next());\n \t\t\t\tw.newLine();\n \t\t\t}\n \t\t\tfor (Iterator iterator = constraints.iterator(); iterator.hasNext();) {\n \t\t\t\tw.write((String) iterator.next());\n \t\t\t\tw.newLine();\n \t\t\t}\n \t\t\tfor (Iterator iterator = tautologies.iterator(); iterator.hasNext();) {\n \t\t\t\tw.write((String) iterator.next());\n \t\t\t\tw.newLine();\n \t\t\t}\n \t\t\tw.close();\n \t\t} catch (IOException e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t}",
"private void insertTemplateRow(Connection con,\n IdentifiedRecordTemplate template) throws SQLException {\n PreparedStatement insert = null;\n \n try {\n int internalId = getNextId(TEMPLATE_TABLE, \"templateId\");\n template.setInternalId(internalId);\n String externalId = template.getExternalId();\n String templateName = template.getTemplateName();\n \n insert = con.prepareStatement(INSERT_TEMPLATE);\n insert.setInt(1, internalId);\n insert.setString(2, externalId);\n insert.setString(3, templateName);\n insert.execute();\n } finally {\n DBUtil.close(insert);\n }\n }",
"@Override\n public void run(String... args) throws Exception {\n\n TaskTemplate finalProjectDemo = new TaskTemplate(\"Final Project Demo\", \"Finishing the Demo\", 300, \"Tuesday\");\n taskTemplateStorage.save(finalProjectDemo);\n\n User mom = new User(\"Mom\", 300, \"rose\", \"/front-end/images/mom.png\");\n User dad = new User(\"Dad\", 600, \"apple\", \"/front-end/images/Dad.png\");\n User bro = new User(\"Bro\", 200, \"light-blue\", \"/front-end/images/Bro.png\");\n User sis = new User(\"Sis\", 200, \"magenta\", \"/front-end/images/sis.png\");\n\n\n// userStorage.save(testUser);\n userStorage.save(mom);\n userStorage.save(dad);\n userStorage.save(bro);\n userStorage.save(sis);\n\n\n\n TaskTemplate cleanCommonArea = new TaskTemplate(\"Clean Common Area\", \"Clean all common areas\", 30, 30, \"Monday\");\n TaskTemplate cleanGarage = new TaskTemplate(\"Clean Garage\", \"Sweep and organize the Garage\", 45, 45, \"Tuesday\");\n TaskTemplate cleanBathrooms = new TaskTemplate(\"Clean Bathrooms\", \"Wipe down sinks, scrub toilets, sweep and mop floors, and empty bathroom trash\", 30, 30, \"Wednesday\");\n TaskTemplate takeOutTrash = new TaskTemplate(\"Take Out Trash\", \"Take all trash to rolling bin outside and take the rolling bin to the road if today is a trash day\", 15,\"Wednesday\" );\n TaskTemplate washDishes = new TaskTemplate(\"Wash Dishes\", \"Wash and dry all dishes in the sink and empty/load the dishwasher\", 30, \"Wednesday\");\n TaskTemplate washAndDryLaundry = new TaskTemplate(\"Wash and Dry Laundry\", \"\", 30, 200, \"Monday\");\n TaskTemplate foldAndPutAwayLaundry = new TaskTemplate(\"Fold and Put Away Laundry\", \"\", 30, \"Monday\");\n TaskTemplate rakeLeaves = new TaskTemplate(\"Rake Leaves\", \"Rake and bag the leaves from the front, back, and sides of the house\", 45, \"Monday\");\n TaskTemplate mowLawn = new TaskTemplate(\"Mow Lawn\", \"Pick up rocks and sticks in the yards and mow the front and back lawn\", 45, \"Monday\");\n TaskTemplate cleanBedroom = new TaskTemplate(\"Clean Bedroom\", \"Clean your room\", 30, \"Tuesday\");\n TaskTemplate deepCleanKitchen = new TaskTemplate(\"Deep Clean Kitchen\", \"Clear off and wipe down all counter tops, wipe cabinet fronts, wipe behind sink, wipe trim boards under cabinets, sweep, and mop kitchen\", 90, \"Tuesday\");\n TaskTemplate tidyKitchen = new TaskTemplate(\"Tidy Kitchen\", \"Move dishes to sink, wipe down counter tops and table, and sweep floors\", 30, \"Tuesday\");\n TaskTemplate vacuumLivingRoom = new TaskTemplate(\"Vacuum Living Room\", \"Vacuum floors, crevases, and under furniture, and remove couch cushions to vacuum under cushions\", 30, \"Tuesday\");\n TaskTemplate mopAndSweepKitchen = new TaskTemplate(\"Mop and Sweep Kitchen\", \"Sweep and hot mop the kitchen floors\", 30, \"Thursday\");\n TaskTemplate changeLitterBox = new TaskTemplate(\"Change Litter Box\", \"Scoop the litter box and replace the litter if today is Friday\", 15, \"Thursday\");\n TaskTemplate walkDog = new TaskTemplate(\"Walk Dog\", \"Take the dogs for a walk around the block\", 20, \"Daily\");\n TaskTemplate cleanUpYard = new TaskTemplate(\"Clean Up Yard\", \"Pick up sticks and rocks in the front and back yard and pick up any trash that has blown in\", 20, \"Thursday\");\n TaskTemplate getMail = new TaskTemplate(\"Get Mail\", \"Get the mail from the mailbox\", 5, \"Daily\");\n TaskTemplate dustLivingRoom = new TaskTemplate(\"Dust Living Room\", \"Dust picture frames, end tables, coffee table, and door sills in the living room\", 20, \"Friday\");\n TaskTemplate dustFamilyRoom = new TaskTemplate(\"Dust Family Room\", \"Dust bookshelves, mantel over fireplace, stereo, and door sills in family room\", 20, \"Friday\");\n TaskTemplate vacuumFamilyRoom = new TaskTemplate(\"Vacuum Family Room\", \"Vacuum floors, crevases, and under furniture in the family room\", 20, \"Friday\");\n TaskTemplate dustCeilingFans = new TaskTemplate(\"Dust Ceiling Fans\", \"Wipe blades of ceiling fans down and ensure dust is blown out of fan motor housing\", 30, \"Friday\", bro, sis);\n\n taskTemplateStorage.save(cleanCommonArea);\n taskTemplateStorage.save(cleanGarage);\n taskTemplateStorage.save(cleanBathrooms);\n taskTemplateStorage.save(takeOutTrash);\n taskTemplateStorage.save(washDishes);\n taskTemplateStorage.save(washAndDryLaundry);\n taskTemplateStorage.save(foldAndPutAwayLaundry);\n taskTemplateStorage.save(rakeLeaves);\n taskTemplateStorage.save(mowLawn);\n taskTemplateStorage.save(cleanBedroom);\n taskTemplateStorage.save(deepCleanKitchen);\n taskTemplateStorage.save(tidyKitchen);\n taskTemplateStorage.save(vacuumLivingRoom);\n taskTemplateStorage.save(mopAndSweepKitchen);\n taskTemplateStorage.save(changeLitterBox);\n taskTemplateStorage.save(walkDog);\n taskTemplateStorage.save(cleanUpYard);\n taskTemplateStorage.save(getMail);\n taskTemplateStorage.save(dustLivingRoom);\n taskTemplateStorage.save(dustFamilyRoom);\n taskTemplateStorage.save(vacuumFamilyRoom);\n taskTemplateStorage.save(dustCeilingFans);\n\n resourceManager.allocateAllTasks();\n\n }",
"public void saveState() {\n\t\tFileOutputStream fos = null;\n\t\tObjectOutputStream out = null;\n\t\ttry {\n\t\t\tFile savefile = new File(getServletContext().getRealPath(\"/WEB-INF/\"), SAVED_RECEPTOR_FILE_NAME);\n\t\t\tfos = new FileOutputStream(savefile);\n\t\t\tout = new ObjectOutputStream(fos);\n\t\t\tout.writeObject(pgtMap);\n\t\t\tout.close();\n\t\t} catch (IOException ex) {\n\t\t\tSystem.err.println(\"IO Exception saving proxyTicket cache\");\n\t\t\tex.printStackTrace();\n\t\t} catch (Exception e) { //don't think this is possible, but I'm seeing some goofy behavior, so...\n\t\t\tSystem.err.println(\"Non-IO Exception saving proxyTicket cache\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Override\n public void save()\n {\n \n }",
"int insert(AccountAccountTemplateEntityWithBLOBs record);",
"public final void saveAction(){\r\n\t\ttestReqmtService.saveAction(uiTestReqEditModel);\r\n\t\tgeteditDetails(uiTestReqEditModel.getObjId());\r\n\t\taddInfoMessage(SAVETR, \"save.TRsuccess\"); \r\n\t\tfor (UITestReqModel reqmnt : uiTestReqModel.getResultList()) {\r\n\t\t\tif(reqmnt.isTrLink()){\r\n\t\t\t\treqmnt.setTrLink(false);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"int insert(TbFreightTemplate record);",
"protected void validateFileAndSaveTemplate(JasperTemplate jasperTemplate, MultipartFile file) {\n JasperTemplate templateTmp = jasperTemplateRepository.findByName(jasperTemplate.getName());\n if (templateTmp != null) {\n jasperTemplateRepository.deleteById(templateTmp.getId());\n }\n validateFileAndSetData(jasperTemplate, file);\n saveWithParameters(jasperTemplate);\n }",
"@FXML\r\n\tpublic void saveNewAccount( ) {\r\n\t\t// Save user input\r\n\t\tString name = userName.getText( );\r\n\t\tString mail = email.getText( );\r\n\r\n\t\t// Call the to file method to write to data.txt\r\n\t\tUserToFile.toFile(name, pin, mail);\r\n\t\t\r\n\t\t// View the test after the info is saved\r\n\t\tviewTest( );\r\n\t}"
] | [
"0.69850415",
"0.6967693",
"0.66337323",
"0.6626024",
"0.6484239",
"0.6015171",
"0.5979498",
"0.59732044",
"0.58829075",
"0.5852447",
"0.58310884",
"0.57946765",
"0.57451254",
"0.55863094",
"0.5572046",
"0.5563345",
"0.5538359",
"0.55355626",
"0.55010587",
"0.54860026",
"0.54135925",
"0.5405875",
"0.53982896",
"0.53924376",
"0.53851587",
"0.5366769",
"0.5346471",
"0.53460926",
"0.5325836",
"0.53138",
"0.53138",
"0.53138",
"0.5311095",
"0.530387",
"0.5288711",
"0.52866495",
"0.5280209",
"0.52753264",
"0.52704936",
"0.5270118",
"0.5253272",
"0.524905",
"0.52268654",
"0.522234",
"0.5214246",
"0.52140826",
"0.5213771",
"0.520381",
"0.5202394",
"0.5179708",
"0.5177741",
"0.5171694",
"0.5168992",
"0.5151857",
"0.5143861",
"0.5135086",
"0.5133124",
"0.5119202",
"0.51175755",
"0.5113313",
"0.51084286",
"0.5104516",
"0.5103342",
"0.5098238",
"0.50974196",
"0.5093283",
"0.50837785",
"0.5078767",
"0.5078767",
"0.5078607",
"0.5068306",
"0.5063007",
"0.50491154",
"0.5045496",
"0.50448674",
"0.5034066",
"0.50266004",
"0.50266004",
"0.5019376",
"0.5016555",
"0.50145715",
"0.5011487",
"0.50081307",
"0.5005934",
"0.5004436",
"0.5002935",
"0.50027585",
"0.49935836",
"0.4988782",
"0.49867094",
"0.49634427",
"0.49625382",
"0.495615",
"0.4954094",
"0.495362",
"0.49447548",
"0.4928777",
"0.492801",
"0.49256784",
"0.49234334"
] | 0.5770412 | 12 |
delete template in succesfactor | public void deleteTemplate(Template template)
{
TemplateDAO dao = new TemplateDAO();
dao.delete(template);
//return template.getId();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void deleteTemplateTest() throws IdfyException, Exception {\n UUID id = UUID.randomUUID();\n api.deleteTemplate(id);\n }",
"private void removeTemplate()\r\n {\r\n\t String template = keyField.getText();\r\n\t if (template.length()==0)\r\n\t {\r\n\t\t label.setText(\"Please enter template name\");\r\n\t\t return;\r\n\t }\r\n\t \r\n\t int index = list.getSelectedIndex();\r\n if (index<0) return;\r\n\r\n\t if (!templates.removeTemplate(template))\r\n\t {\r\n\t\t label.setText(\"Couldn't remove default template\");\r\n\t\t return;\r\n\t }\r\n\r\n String[] newTemplates = new String[templateKeys.length - 1];\r\n for (int a=0; a<templateKeys.length; a++)\r\n {\r\n if (a<index) newTemplates[a] = templateKeys[a];\r\n else if (a > index) newTemplates[a-1] = templateKeys[a];\r\n }\r\n templateKeys = newTemplates;\r\n model.removeElementAt(index);\r\n \r\n clearComponents();\r\n list.setSelectedIndex(-1); \r\n label.setText(\"Display format \" + template + \" removed\");\r\n }",
"@Override\r\n\tpublic void delete(SimpleJdbcTemplate template) throws Exception {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}",
"public void removeTemplateId(int i)\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(TEMPLATEID$4, i);\n }\n }",
"public void removeTemplatesPage()\r\n {\r\n getSemanticObject().removeProperty(swpres_templatesPage);\r\n }",
"public void deleteCt() {\n\t\tlog.info(\"-----deleteCt()-----\");\n\t\t//int index = selected.getCtXuatKho().getCtxuatkhoThutu().intValue() - 1;\n\t\tlistCtKhoLeTraEx.remove(selected);\n\t\tthis.count = listCtKhoLeTraEx.size();\n\t\ttinhTien();\n\t}",
"int deleteByExample(CfgPrintTemplateAttrExample example);",
"public void deleteOneWord(Pojo.OneWord e){ \n template.delete(e); \n}",
"@Override\n\tpublic boolean delete(NPC_tmpl obj) {\n\t\treturn false;\n\t}",
"public void remove(Template template) {\n\tfTemplates.remove(template);\n\tsort();\n }",
"private void delete() {\n\n\t}",
"@Override\n\tpublic void delete(long id) throws Exception {\n\t\tfind(id);\n\n\t\t// check if the template component has been used\n\t\tList<GpProjectTemplate> list = getProjectTemplateService()\n\t\t\t\t.findByTemplate(id);\n\t\tif (list != null && !list.isEmpty()) {\n\t\t\tthrow new Exception(\n\t\t\t\t\t\"Template (ID=\"\n\t\t\t\t\t\t\t+ id\n\t\t\t\t\t\t\t+ \") can't be deleted. It has been used inside a Project Template.\");\n\t\t}\n\n\t\t// delete template components\n\t\tgetTemplateComponentService().deleteTemplateComponent(id);\n\n\t\t// delete template\n\t\tgetTemplateDao().delete(id);\n\t}",
"@DELETE(\"users/templates/{id}\")\n Call<Void> deleteUserTemplate(\n @retrofit2.http.Path(\"id\") String id, @retrofit2.http.Query(\"cascade\") String cascade\n );",
"public void delete(int id){ \n\t\tActivity e=(Activity)template.get(Activity.class,id); \n\t template.delete(e); \n\t}",
"@Override\n public void deleteItem(P_CK t) {\n \n }",
"public ITemplateStep removeStep(ITemplateStep stepToRemove);",
"@Override\n public void destroyObject(MongoTemplate obj) throws Exception {\n }",
"public void disassociateProductTemplate() {\n productToolOperation.removeChildProductTree(selectProductNode, planConfigBehavior);\n }",
"private void deleteRecordRows(Connection con,\n IdentifiedRecordTemplate template) throws SQLException {\n PreparedStatement delete = null;\n \n try {\n int internalId = template.getInternalId();\n \n delete = con.prepareStatement(DELETE_TEMPLATE_RECORDS);\n delete.setInt(1, internalId);\n delete.execute();\n } finally {\n DBUtil.close(delete);\n }\n }",
"@Override\n public void deletePartida(String idPartida) {\n template.opsForHash().delete(idPartida, \"jugador1\");\n template.opsForHash().delete(idPartida, \"jugador2\");\n template.opsForSet().remove(\"partidas\",idPartida);\n }",
"@Override\n\tpublic void delete(Zone t) {\n\t\t\n\t}",
"public boolean deletePalvelupisteet();",
"public void deleteSupplier(Supplier e){ \n\t template.delete(e); \n\t}",
"public boolean deleteFieldsTemplate(Template template)\n\t{\n\t\tFieldsTemplateDAO daoTemplate = new FieldsTemplateDAO();\n\t\treturn daoTemplate.deleteFieldsByIdTemplate(template);\n\t}",
"public void exitTemp() {\r\n tr.saveTempToFile(TemplateManager.IdToTemplate);\r\n }",
"@RequestMapping(\"/deleteTemplate\")\n public String deleteCustomer(@RequestParam(\"id\") int templateId,\n @CookieValue(\"userTag\") String userID,\n Model model) {\n JeanTemplate temp = new JeanTemplate();\n temp.setTemplateId(templateId);\n accessTemplate.delete(temp);\n\n ArrayList<JeanTemplate> templateList = accessTemplate.selectAllUserTemplates(userID);\n\n model.addAttribute(\"templateList\", templateList);\n\n return \"templateView\";\n\n }",
"@Override\n\t\tpublic void delete() {\n\t\t\tSystem.out.println(\"새로운 삭제\");\n\t\t}",
"private void deleteResource() {\n }",
"public void removeTemplate(ITuple template) {\n\t\tthis.takeHolder.removeLease(template);\n\t\tthis.readHolder.removeLease(template);\n\t}",
"@Override\n\t\tpublic void delete() {\n\n\t\t}",
"int deleteByExample(TempletLinkExample example);",
"private void deleteFieldRows(Connection con,\n IdentifiedRecordTemplate template) throws SQLException {\n PreparedStatement delete = null;\n \n try {\n int internalId = template.getInternalId();\n \n delete = con.prepareStatement(DELETE_TEMPLATE_RECORDS_FIELDS);\n delete.setInt(1, internalId);\n delete.execute();\n } finally {\n DBUtil.close(delete);\n }\n }",
"int deleteByExample(PdfCodeTemporaryExample example);",
"@Test\n\tpublic void test_delete_user_success(){\n template.delete(REST_SERVICE_URI + \"/\" + getLastUser().getId() + ACCESS_TOKEN + token);\n }",
"public static void scriptDelete() {\n List<BeverageEntity> beverages = (List<BeverageEntity>) adminFacade.getAllBeverages();\n for (int i = 0; i < beverages.size(); i++) {\n System.out.println(\"delete : \" + beverages.get(i));\n adminFacade.removeBeverage(beverages.get(i));\n }\n List<DecorationEntity> decos = (List<DecorationEntity>) adminFacade.getAllDecorations();\n for (int i = 0; i < decos.size(); i++) {\n System.out.println(\"delete : \" + decos.get(i));\n adminFacade.removeDecoration(decos.get(i));\n }\n\n /* Check that there isn't any other cocktails, and delete remaining */\n List<CocktailEntity> cocktails = (List<CocktailEntity>) adminFacade.getAllCocktails();\n if (cocktails.size() > 0) {\n System.err.println(\"Les cocktails n'ont pas été tous supprimés... \"\n + cocktails.size() + \" cocktails restants :\");\n }\n for (int i = 0; i < cocktails.size(); i++) {\n CocktailEntity cocktail = adminFacade.getCocktailFull(cocktails.get(i));\n System.err.println(cocktail.getName() + \" : \"\n + cocktail.getDeliverables());\n adminFacade.removeCocktail(cocktail);\n }\n\n /* Remove client accounts */\n List<ClientAccountEntity> clients = (List<ClientAccountEntity>) adminFacade.getAllClients();\n for (int i = 0; i < clients.size(); i++) {\n adminFacade.removeClient(clients.get(i));\n }\n\n /* Remove addresses */\n List<AddressEntity> addresses = (List<AddressEntity>) adminFacade.getAllAddresses();\n for (int i = 0; i < addresses.size(); i++) {\n adminFacade.removeAddress(addresses.get(i));\n }\n\n /* TODO :\n * * Remove orders\n */\n }",
"public void delete() {\n\n\t}",
"@Override\n\tpublic void deleteCpteCourant(CompteCourant cpt) {\n\t\t\n\t}",
"@Override\n\tpublic void delete() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}",
"void delete(String resourceGroupName, String virtualMachineTemplateName, Boolean force);",
"void deleteChallenge();",
"@Override\n\tpublic void deleteTmly(Tmly tmly) {\n\t\tString sql = \"delete from tmly where id_=?\";\n\t\tthis.jdbcTemplate.update(sql, new Object[] { tmly.getId() });\n\t}",
"@Override\n\tpublic void delete() {\n\n\t}",
"public void delete();",
"public void delete();",
"public void delete();",
"public void delete();",
"public void delete();",
"public void delete();",
"public static void removeTemplate(final ITemplate t) {\n\t\tif (t != null) {\n\t\t\tITemplate removed = StorageService.removeTemplate(t);\n\t\t\tif (removed == null) {\n\t\t\t\tUtils.printError(\"Template to be removed, \" + t + \n\t\t\t\t\t\t\" is not in database (TemplateDelegate.removeTemplate)\");\n\t\t\t}\n\t\t}\n\t\telse Utils.printError(\"Cannot remove a null Template! (TemplateDelegate.removeTemplate)\");\n\t}",
"@Override\n\tpublic void delete() {\n\t\t\n\t}",
"@Override\n\tpublic void delete() {\n\t\t\n\t}",
"private void deleteTempHTMLFile()\n {\n File file = new File(\"resources/tempHTML\" +Thread.currentThread().getName() +\".html\");\n file.delete();\n }",
"void delete(String resourceGroupName, String virtualMachineTemplateName, Boolean force, Context context);",
"private void deleteFile() {\r\n actionDelete(dataModelArrayList.get(position));\r\n }",
"@Override\r\n\tpublic void delete() {\n\r\n\t}",
"@Override\n\tpublic void delete() {\n\t\tSystem.out.println(\"no goin\");\n\t\t\n\t}",
"@Override\n\tpublic void delete(Translator entity) {\n\t\t\n\t}",
"@Override\n public void delete()\n {\n }",
"public int deleteView(View view) {\n LinearLayout parentPage = (LinearLayout) view.getParent().getParent().getParent();\n LinearLayout slot = (LinearLayout) view.getParent().getParent();\n int index = parentPage.indexOfChild(slot);\n parentPage.removeViewAt(index);\n Context context = App.getContext();\n LogManager.reportStatus(context, \"TEMPLATEEDITOR\", \"onDelete\");\n return index;\n }",
"public void delete(){\r\n\t\tblocks = null;\r\n\t\ttry {\r\n\t\t\tfinalize();\r\n\t\t} catch (Throwable e) {\t}\r\n\t}",
"@Override\r\n protected void delete_object( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response ) throws KANException\r\n {\n\r\n }",
"private void deletePreviousContent()\n {\n SQLiteDatabase db = this.getWritableDatabase();\n db.delete(DATABASE_TABLE_SINGLE_PAGE, null, null);\n db.close();\n }",
"@SuppressWarnings(\"finally\")\n\t@Override\n\tpublic Response deleteNotifyTemplate(String deletelist,int userID) {\n\t\tBaseResponse<NotifyTemplate> br= new BaseResponse<NotifyTemplate>();\n\t\ttry\n\t\t{ \n\t\tList<NotifyTemplate> count;\n\t\tjdbcTemplate.setDataSource(dataSourceProvider.getDataSource(FiinfraConstants.BU_DEFAULT));\n\t\tcount=jdbcTemplate.query(FiinfraConstants.SP_DELETE_NOTIFYTEMPLATE,new Object[]{deletelist,userID} , new BeanPropertyRowMapper<NotifyTemplate>(NotifyTemplate.class));\n\t\tbr.setResponseListObject(count); \n\t\tresponse=FiinfraResponseBuilder.getSuccessResponse(br, null);\n\t\t} \n\t\tcatch (DataAccessException e) { \n\t\t\tresponse =FiinfraResponseBuilder.getErrorResponse(e.getMessage().toString());\n\t\t} \n\t\tfinally \n\t\t{\n\t\t\treturn response; \n\t\t\t\t}\n\t}",
"void delete(String resourceGroupName, String virtualMachineTemplateName);",
"public void deleteRecord(IdentifiedRecordTemplate template,\n DataRecord deletedRecord) throws FormException {\n Connection con = null;\n \n try {\n GenericDataRecord record = (GenericDataRecord) deletedRecord;\n \n con = getConnection();\n deleteFieldRows(con, template, record);\n deleteRecordRows(con, template, record);\n \n } catch (ClassCastException e) {\n throw new FormException(\"GenericRecordSetManager\",\n \"form.EXP_UNKNOWN_TEMPLATE\", e);\n } catch (SQLException e) {\n throw new FormException(\"GenericRecordSetManager\",\n \"form.EXP_DELETE_FAILED\", e);\n } finally {\n closeConnection(con);\n }\n }",
"public void delete(){\r\n\r\n }",
"private Delete() {}",
"private Delete() {}",
"public void delete() {\n\t\tcp.delete();\n\t}",
"@Override\n \tpublic Representation deleteResource() {\n \t\tString interId = (String) this.getRequestAttributes().get(\"interId\");\n \t\tString srcId = (String) this.getRequestAttributes().get(\"sourceId\");\n \t\t\n \t\t// On s'assure qu'il n'est plus prsent en base de donnes\n \t\n \t\tIntervention inter = Interventions.getInstance().getIntervention(interId);\n \t\tList<Source> sources = inter.getSources();\n \t\tfor (int i = 0; i < sources.size(); i++) {\n \t\t\tif (sources.get(i).getUniqueID().equals(srcId)) {\n \t\t\t\tsources.remove(sources.get(i));\n \t\t\t}\n \t\t}\n \t\t\n \t\treturn null;\n \t}",
"@Override\r\n\tpublic void delete(Plant plant) throws Exception {\n\r\n\t}",
"public void removeDynamicTemplate(AbstractSlaveTemplate template) {\n this.dynamicTemplates.remove(template); // Fails silently\n }",
"@Override\r\n\tpublic void supprimerTVA(TVA t) {\n\t\t\r\n\t}",
"void deleteTexture(int texID) {\n renderEngine.a(texID);\n }",
"private void delete() {\n AltDatabase.getInstance().getAlts().remove(getCurrentAsEditable());\n if (selectedAccountIndex > 0)\n selectedAccountIndex--;\n updateQueried();\n updateButtons();\n }",
"private void clearOneTest() {\n corpus.clear();\n Factory.deleteResource(corpus);\n Factory.deleteResource(learningApi);\n controller.remove(learningApi);\n controller.cleanup();\n Factory.deleteResource(controller);\n }",
"private void delete() {\n\t\tfor (int i = 0; i < list.size(); i++) {\r\n\t\t\tif (list.get(i).toString().equals(lu.toString())) {\r\n\t\t\t\tlist.remove(i);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tll.makeXml(list);\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tinitTableView();\r\n\t}",
"public void deleteLUC() {\r\n/* 135 */ this._has_LUC = false;\r\n/* */ }",
"@Override\n\tpublic void deleteCpteEpargne(CompteEpargne cpt) {\n\t\t\n\t}",
"public boolean delete();",
"@Override\n\tpublic int delete(int t) {\n\t\treturn 0;\n\t}",
"public void deleteGeneratedFiles();",
"@Override\n\tpublic void onDeleteTas(Tas tas) {\n\t\t\n\t}",
"@Test\n public void delete() {\n System.out.println(\"\\n--- delete Singer by id=2 ---\");\n\n restTemplate.delete(\"http://localhost:9082/restful-ws/singer/{id}\", 2);\n\n printAllSingers();\n }",
"@Test\n public void delete() {\n try{\n repo.save(s);\n repot.save(t);\n repon.save(n);\n Tema t2 = new Tema(2, 0, 6, \"GUI\");\n Student s2 = new Student(2,221, \"Pop Ion\",\"[email protected]\",\"prof\");\n Nota n2 = new Nota(2,2,\"prof\", 3, \"cv\");\n repo.save(s2);\n repot.save(t2);\n repon.save(n2);\n repot.delete(2);\n repo.delete(2);\n repon.delete(\"22\");\n assert repo.size() == 1;\n assert repot.size() == 1;\n assert repon.size() == 1;\n }\n catch (ValidationException e){\n }\n }",
"private void clearDelete() {\n if (patternCase_ == 5) {\n patternCase_ = 0;\n pattern_ = null;\n }\n }",
"@Override\n public boolean delete(Revue objet) {\n return false;\n }",
"int deleteByExample(RepStuLearningExample example);",
"private void deleteCourse() {\n // Only perform the delete if this is an existing pet.\n if (mCurrentCourseUri != null) {\n // Call the ContentResolver to delete the pet at the given content URI.\n // Pass in null for the selection and selection args because the mCurrentPetUri\n // content URI already identifies the pet that we want.\n int rowsDeleted = getContentResolver().delete(mCurrentCourseUri, null, null);\n\n // Show a toast message depending on whether or not the delete was successful.\n if (rowsDeleted == 0) {\n // If no rows were deleted, then there was an error with the delete.\n Toast.makeText(this, getString(R.string.editor_delete_course_failed),\n Toast.LENGTH_SHORT).show();\n } else {\n // Otherwise, the delete was successful and we can display a toast.\n Toast.makeText(this, getString(R.string.editor_delete_course_successful),\n Toast.LENGTH_SHORT).show();\n }\n }\n\n // Close the activity\n finish();\n }",
"boolean delete();",
"@DeleteMapping(\"/document-tuiles/{id}\")\n @Timed\n public ResponseEntity<Void> deleteDocumentTuile(@PathVariable Long id) {\n log.debug(\"REST request to delete DocumentTuile : {}\", id);\n documentTuileService.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }",
"@Override\n public void delete() {\n }",
"@Override\r\n\tpublic void delete(Plate entity) {\n\t\t\r\n\t}",
"public void delete_File(){\n context.deleteFile(Constant.FILE_NAME);\n }",
"@Override\r\n\tpublic void delete(int eno) {\n\r\n\t}",
"@Override\n\tpublic boolean delete(Langues obj) {\n\t\treturn false;\n\t}",
"@DeleteMapping(\"/analysis-templates\")\n\tpublic ResponseEntity<AjaxResponse> removeProjectAnalysisTemplates(@RequestParam long templateId,\n\t\t\t@PathVariable long projectId, Locale locale) {\n\t\treturn ResponseEntity.ok(\n\t\t\t\tnew AjaxSuccessResponse(pipelineService.removeProjectAutomatedPipeline(templateId, projectId, locale)));\n\t}",
"void deleteAllChallenges();",
"@Override\n\tpublic boolean deleteTag(TagInfo tInfo) {\n\t\treturn false;\n\t}",
"public void destroy()\r\n\t{\n\t\t\r\n\t}"
] | [
"0.7172964",
"0.6863686",
"0.6680513",
"0.66217285",
"0.65754163",
"0.65691346",
"0.65624756",
"0.6549206",
"0.6410179",
"0.63952446",
"0.63620365",
"0.6314568",
"0.6304058",
"0.6297687",
"0.62549937",
"0.619906",
"0.6199019",
"0.6142915",
"0.61219084",
"0.60915667",
"0.60898143",
"0.60739",
"0.6073818",
"0.6067943",
"0.605864",
"0.60514367",
"0.60508823",
"0.6041764",
"0.6038402",
"0.60190654",
"0.5985481",
"0.5976103",
"0.5956569",
"0.5890837",
"0.58737725",
"0.5853634",
"0.58510107",
"0.58308053",
"0.58245224",
"0.5800209",
"0.5784626",
"0.5773111",
"0.5768476",
"0.5768476",
"0.5768476",
"0.5768476",
"0.5768476",
"0.5768476",
"0.5767906",
"0.57633275",
"0.57633275",
"0.5756833",
"0.57522464",
"0.574575",
"0.5738403",
"0.57132316",
"0.5699092",
"0.56854916",
"0.5685369",
"0.5683771",
"0.5667313",
"0.56646574",
"0.56641036",
"0.5659366",
"0.5656658",
"0.5637796",
"0.5629062",
"0.5629062",
"0.56281656",
"0.56229997",
"0.56120944",
"0.559904",
"0.5586253",
"0.55858386",
"0.55857116",
"0.55797106",
"0.5573014",
"0.55657053",
"0.5546152",
"0.55265844",
"0.5526476",
"0.55262595",
"0.5521813",
"0.55214715",
"0.5513222",
"0.55106205",
"0.55097437",
"0.5508834",
"0.55083984",
"0.54963034",
"0.54961896",
"0.5495453",
"0.5494995",
"0.5494752",
"0.5493899",
"0.54800797",
"0.5475035",
"0.54742134",
"0.54739255",
"0.5465047"
] | 0.6988575 | 1 |
boolean template in succesfactor | public Boolean updateTemplate(Template template)
{
TemplateDAO dao = new TemplateDAO();
dao.save(template);
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getBooleanTrueExpression();",
"boolean booleanOf();",
"BooleanValue createBooleanValue();",
"BooleanValue createBooleanValue();",
"BooleanValue createBooleanValue();",
"BooleanValue createBooleanValue();",
"BooleanLiteralExp createBooleanLiteralExp();",
"BooleanExpression createBooleanExpression();",
"BooleanExpression createBooleanExpression();",
"BoolOperation createBoolOperation();",
"<C> BooleanLiteralExp<C> createBooleanLiteralExp();",
"public boolean reducible() {\n\treturn \n\t operator . equals( \"\\\\\") &&\n\t (argument.reducible() || argument instanceof BoolConstant);\n }",
"Boolean getPartiallyCorrect();",
"Boolean conditionResult();",
"boolean getValue();",
"boolean getResult();",
"boolean getResult();",
"boolean getResult();",
"boolean getResult();",
"boolean getOutputPartialsBeforeLanguageDecision();",
"Boolean getCompletelyCorrect();",
"private String parseBoolean () {\r\n \r\n assert iMessage!=null;\r\n assert iIndex>=0;\r\n assert iIndex<=iMessage.length();\r\n \r\n char chr=next();//get next character\r\n assert \"ft\".indexOf(chr)>=0;//assert valid boolean start character\r\n switch (chr) {//switch on first character\r\n case 'f': skip(4);//skip to last character\r\n return \"false\";\r\n case 't': skip(3);//skip to last character\r\n return \"true\";\r\n default: assert false;//assert that we do not reach this statement\r\n return null;\r\n }//switch on first character\r\n \r\n }",
"@Override\r\n\tpublic void visit(ast.type.Boolean t) {\r\n\t\tSystem.out.println(\"boolean@\");\r\n\t}",
"private CheckBoolean() {\n\t}",
"boolean hasTransformValue();",
"boolean isSimpleValue();",
"public TrueValue (){\n }",
"String getBooleanFalseExpression();",
"public BooleanLit createTrue(Position pos) {\n return (BooleanLit) xnf.BooleanLit(pos, true).type(xts.Boolean());\n }",
"public boolean isRequiresTaxCertificate() \n{\nObject oo = get_Value(COLUMNNAME_RequiresTaxCertificate);\nif (oo != null) \n{\n if (oo instanceof Boolean) return ((Boolean)oo).booleanValue();\n return \"Y\".equals(oo);\n}\nreturn false;\n}",
"void mo3305a(boolean z);",
"void mo64153a(boolean z);",
"boolean isIntroduced();",
"void mo21069a(boolean z);",
"void mo99838a(boolean z);",
"public boolean fjern(T t);",
"void mo22049es(boolean z);",
"boolean getBoolValue();",
"boolean getBoolValue();",
"public abstract boolean mo36211n();",
"@Override\n public void codeGenBoolExpr(DecacCompiler compiler, boolean condToranch, Label label) {\n }",
"boolean hasPass();",
"boolean hasPass();",
"boolean isEBoolean();",
"void mo197b(boolean z);",
"public boolean isProcessed() \n{\nObject oo = get_Value(\"Processed\");\nif (oo != null) \n{\n if (oo instanceof Boolean) return ((Boolean)oo).booleanValue();\n return \"Y\".equals(oo);\n}\nreturn false;\n}",
"void mo6661a(boolean z);",
"void mo12636a(boolean z);",
"public String toString() { return this.booleanValue; }",
"public boolean mo9375a(boolean z) {\n return true;\n }",
"public boolean mo9375a(boolean z) {\n return true;\n }",
"public boolean tom();",
"boolean hasBoolValue();",
"protected String getBooleanValueText(String value) {\n if (value.equals(Boolean.TRUE.toString())) {\n return getTrue();\n } else if (value.equals(Boolean.FALSE.toString())) {\n return getFalse();\n } else {\n // If it is neither true nor false it is must be an expression.\n return value;\n }\n }",
"void mo98208a(boolean z);",
"@Test\n public void testCaseOfBool() {\n String o = \"\";\n AtomicBoolean success = new AtomicBoolean(false);\n match(o).caseOf(true, s -> success.set(true));\n assertTrue(success.get());\n }",
"public abstract boolean isPositive();",
"String getBooleanExpression(boolean flag);",
"void mo26249mh(boolean z);",
"@Override\n void generateFalseData() {\n \n }",
"void mo1488a(boolean z);",
"private boolean isTrue(final Variable key) {\n return data.containsKey(key) && Boolean.TRUE.equals(data.get(key));\n }",
"boolean getCorrect();",
"private BooleanFunctions()\n {\n }",
"private final boolean isTrue(final Variable key) {\n return data.containsKey(key) && Boolean.TRUE.equals(data.get(key));\n }",
"boolean mo2803a(boolean z);",
"boolean getValid();",
"public String visit(TrueLiteral n, LLVMRedux argu) throws Exception {\n return \"true\";\n }",
"void mo1492b(boolean z);",
"public boolean getValue();",
"Boolean isPassed();",
"public static Value makeBool(boolean b) {\n if (b)\n return theBoolTrue;\n else\n return theBoolFalse;\n }",
"boolean dynamic();",
"Boolean isOmitTf();",
"public void mo97903a(boolean z) {\n }",
"void mo9701a(boolean z);",
"@Test\n public void testCaseIsPredicateBool() {\n AtomicBoolean success = new AtomicBoolean(false);\n match(42L).caseIs(s -> true, () -> success.set(true));\n assertTrue(success.get());\n }",
"private boolean processTrueOrFalse() throws HsqlException {\n\n String sToken = tokenizer.getSimpleToken();\n\n if (sToken.equals(Token.T_TRUE)) {\n return true;\n } else if (sToken.equals(Token.T_FALSE)) {\n return false;\n } else {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, sToken);\n }\n }",
"@Test\n public void testCaseIsBool() {\n String o = \"\";\n AtomicBoolean success = new AtomicBoolean(false);\n match(o).caseIs(true, () -> success.set(true));\n assertTrue(success.get());\n }",
"boolean isKOd();",
"public boolean mo9375a(boolean z) {\n return z;\n }",
"public Boolean asBoolean();",
"boolean isAlwaysTrue();",
"boolean isTemplated() {\n\t\treturn this.templated;\n\t}",
"void mo54420a(boolean z, boolean z2);",
"public static boolean inputBoolean()\n\t{\n\t\treturn(sc.nextBoolean());\n\t}",
"public boolean sawNonboolean() {\n return nonboolean;\n }",
"boolean result_is_boolean(DiagnosticChain diagnostics, Map<Object, Object> context);",
"boolean isOp();",
"boolean isSetLastrunresult();",
"boolean isEstConditionne();",
"public Literal getLiteralBoolean(Boolean literalData);",
"boolean hasOutputPartialsBeforeLanguageDecision();",
"abstract public boolean getAsBoolean();",
"public boolean nextBoolean(){\r\n\t\treturn (nextInt() & 0x10) == 0;\r\n\t}",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Boolean isTallied();",
"@Test @Ignore\n public void testUfWithBoolArg() throws SolverException, InterruptedException {\n\n UninterpretedFunctionDeclaration<IntegerFormula> uf = fmgr.declareUninterpretedFunction(\"fun_bi\", FormulaType.IntegerType, FormulaType.BooleanType);\n IntegerFormula ufTrue = fmgr.callUninterpretedFunction(uf, ImmutableList.of(bmgr.makeBoolean(true)));\n IntegerFormula ufFalse = fmgr.callUninterpretedFunction(uf, ImmutableList.of(bmgr.makeBoolean(false)));\n\n BooleanFormula f = bmgr.not(imgr.equal(ufTrue, ufFalse));\n assertThat(f.toString()).isEmpty();\n assert_().about(BooleanFormula()).that(f).isSatisfiable();\n }",
"public StrBool(String f, String t){\r\n\t\tnew StrBool(f, t, false);\r\n\t}",
"public BooleanExpTest(String name) {\n\t\tsuper(name);\n\t}",
"boolean isEvaluable();",
"protected String getFalse() {\n return \"false\";\n }"
] | [
"0.65965277",
"0.6387297",
"0.63107795",
"0.63107795",
"0.63107795",
"0.63107795",
"0.6282128",
"0.62379384",
"0.62379384",
"0.62189126",
"0.62102914",
"0.617057",
"0.615478",
"0.61438316",
"0.61102855",
"0.610639",
"0.610639",
"0.610639",
"0.610639",
"0.6044838",
"0.60445017",
"0.6033314",
"0.59715897",
"0.59433496",
"0.59317327",
"0.5919628",
"0.5899597",
"0.5897875",
"0.58948725",
"0.589468",
"0.58838904",
"0.5866552",
"0.5862893",
"0.58620805",
"0.58500445",
"0.5846347",
"0.58451515",
"0.5842303",
"0.5842303",
"0.5816497",
"0.5807924",
"0.5807737",
"0.5807737",
"0.57995164",
"0.5791893",
"0.5783482",
"0.57749385",
"0.5774213",
"0.57735866",
"0.5760398",
"0.5760398",
"0.575566",
"0.5736526",
"0.5736512",
"0.57317775",
"0.5724086",
"0.5720511",
"0.57201153",
"0.57062894",
"0.57010305",
"0.5696824",
"0.5694818",
"0.5693239",
"0.56902236",
"0.568353",
"0.56815207",
"0.5676471",
"0.56763685",
"0.5674113",
"0.5673618",
"0.5668842",
"0.5663185",
"0.5662868",
"0.5662817",
"0.5660298",
"0.5660183",
"0.5656613",
"0.5656114",
"0.56494045",
"0.5644219",
"0.5644107",
"0.5643718",
"0.56402934",
"0.5638307",
"0.56324506",
"0.56187874",
"0.5616966",
"0.56138414",
"0.5613217",
"0.56132144",
"0.56127244",
"0.56083685",
"0.5605627",
"0.56051755",
"0.56039953",
"0.5597067",
"0.5596966",
"0.55969656",
"0.55965596",
"0.559566",
"0.55932903"
] | 0.0 | -1 |
update signature in succesfactor | public Boolean updateSignatureTemplate(TemplateSignature signature)
{
TemplateSignatureDAO dao = new TemplateSignatureDAO();
dao.save(signature);
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"ISModifySignature createISModifySignature();",
"int getSignature ();",
"public void testX509SignatureThumb() throws Exception {\n WSSecSignature builder = new WSSecSignature();\n builder.setUserInfo(\"16c73ab6-b892-458f-abf5-2f875f74882e\", \"security\");\n builder.setKeyIdentifierType(WSConstants.THUMBPRINT_IDENTIFIER);\n // builder.setUserInfo(\"john\", \"keypass\");\n LOG.info(\"Before Signing ThumbprintSHA1....\");\n Document doc = unsignedEnvelope.getAsDocument();\n \n WSSecHeader secHeader = new WSSecHeader();\n secHeader.insertSecurityHeader(doc);\n\n Document signedDoc = builder.build(doc, crypto, secHeader);\n\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"Signed message with ThumbprintSHA1 key identifier:\");\n String outputString = \n org.apache.ws.security.util.XMLUtils.PrettyDocumentToString(signedDoc);\n LOG.debug(outputString);\n }\n LOG.info(\"After Signing ThumbprintSHA1....\");\n verify(signedDoc);\n }",
"private void setSignature(com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n bitField0_ |= 0x00000010;\n signature_ = value;\n }",
"public void testDoubleX509SignatureThumb() throws Exception {\n WSSecSignature builder = new WSSecSignature();\n builder.setUserInfo(\"16c73ab6-b892-458f-abf5-2f875f74882e\", \"security\");\n // builder.setUserInfo(\"john\", \"keypass\");\n builder.setKeyIdentifierType(WSConstants.THUMBPRINT_IDENTIFIER); \n Document doc = unsignedEnvelope.getAsDocument();\n \n WSSecHeader secHeader = new WSSecHeader();\n secHeader.insertSecurityHeader(doc);\n\n Document signedDoc = builder.build(doc, crypto, secHeader);\n Document signedDoc1 = builder.build(signedDoc, crypto, secHeader);\n verify(signedDoc1);\n }",
"public abstract String getSignature();",
"String getSignature();",
"String getSignature();",
"String getSignature();",
"public abstract byte[] getSignature();",
"void setSignature(String signature) {\n this.signature = signature;\n }",
"public void setSignature( String pSignature )\r\n {\r\n this.signature = pSignature;\r\n }",
"void setSignatureImage(byte[] signatureImage);",
"public void update(byte[] paramArrayOfbyte) throws XMLSignatureException {\n/* 207 */ this.signatureAlgorithm.engineUpdate(paramArrayOfbyte);\n/* */ }",
"public void setSignature(String Signature) {\n this.Signature = Signature;\n }",
"public boolean verifySignature() {\r\n\t\t\r\n\t\tString data;\r\n\t\t\r\n\t\tif(isTypeCreation){\r\n\t\t\t\r\n\t\t\tdata = StringUtil.getStringFromKey(creator) + name +\r\n\t\t\t\t\tdescription + begin + end+end_subscription+\r\n\t\t\t\t\tlocation+min_capacity+max_capacity;\r\n\t\t\treturn StringUtil.verifyECDSASig(creator, data, signature);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tdata = StringUtil.getStringFromKey(subscriber)+id_event;\r\n\t\t\treturn StringUtil.verifyECDSASig(subscriber, data, signature);\r\n\t\t}\r\n//\t\tSystem.out.println(\"signature \"+signature);\r\n\t\t\r\n\t}",
"Signature getSignature();",
"String getUniqueSignature();",
"public void update(byte paramByte) throws XMLSignatureException {\n/* 218 */ this.signatureAlgorithm.engineUpdate(paramByte);\n/* */ }",
"public void setSignature(String signature) {\n\t\tthis.signature = signature;\n\t}",
"void setSignatureType(int signatureType);",
"@Override\n public String generateSignature(String requestPath, String method, String body, String timestamp) {\n try {\n String prehash = timestamp + method.toUpperCase() + requestPath + body;\n byte[] secretDecoded = Base64.getDecoder().decode(secretKey);\n SecretKeySpec keyspec = new SecretKeySpec(secretDecoded, \"HmacSHA256\");\n Mac sha256 = (Mac) GdaxConstants.SHARED_MAC.clone();\n sha256.init(keyspec);\n return Base64.getEncoder().encodeToString(sha256.doFinal(prehash.getBytes()));\n } catch (CloneNotSupportedException | InvalidKeyException e) {\n e.printStackTrace();\n throw new RuntimeErrorException(new Error(\"Cannot set up authentication headers.\"));\n }\n }",
"@Test\n public void testRandomization() {\n String sha = \"SHA-256\";\n String mgf = \"MGF1\";\n int saltLen = 32;\n int keySizeInBits = 2048;\n int samples = 8;\n Set<String> signatures = new HashSet<String>();\n Signature signer;\n PrivateKey priv;\n try {\n String algorithm = getAlgorithmName(sha, mgf);\n KeyPairGenerator keyGen = KeyPairGenerator.getInstance(\"RSA\");\n keyGen.initialize(keySizeInBits);\n KeyPair keypair = keyGen.genKeyPair();\n priv = keypair.getPrivate();\n signer = Signature.getInstance(algorithm);\n PSSParameterSpec params = getPssParameterSpec(sha, mgf, sha, saltLen, 1);\n signer.setParameter(params);\n byte[] messageBytes = new byte[8];\n for (int i = 0; i < samples; i++) {\n signer.initSign(priv);\n signer.update(messageBytes);\n byte[] signature = signer.sign();\n String hex = TestUtil.bytesToHex(signature);\n assertTrue(\"Same signature computed twice\", signatures.add(hex));\n }\n } catch (GeneralSecurityException ex) {\n TestUtil.skipTest(\"Failed to generat signatures:\" + ex);\n return;\n }\n }",
"private String signature() {\n\t\t++this.nonce;\n\t\tString message = new String(this.nonce + this.username + this.apiKey);\n\t\tMac hmac = null;\n\n\t\ttry {\n\t\t\thmac = Mac.getInstance(\"HmacSHA256\");\n\t\t\tSecretKeySpec secret_key = new SecretKeySpec(\n\t\t\t\t\t((String) this.apiSecret).getBytes(\"UTF-8\"), \"HmacSHA256\");\n\t\t\thmac.init(secret_key);\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (InvalidKeyException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn String.format(\"%X\",\n\t\t\t\tnew BigInteger(1, hmac.doFinal(message.getBytes())));\n\t}",
"public abstract String getCurrentUserSignature(PortletRequest request);",
"public String getSignature()\r\n {\r\n return signature;\r\n }",
"public GpgSignature(@NonNull byte[] signature) {\n\t\tthis.signature = signature;\n\t}",
"public void affiche3(BigInteger signe){\n System.out.println(\"La signature est :\"+signe);\n }",
"public void update(byte[] paramArrayOfbyte, int paramInt1, int paramInt2) throws XMLSignatureException {\n/* 231 */ this.signatureAlgorithm.engineUpdate(paramArrayOfbyte, paramInt1, paramInt2);\n/* */ }",
"public interface SignatureFactory \n{\n /** \n * initializes the implementation class \n */\n public void init()\n throws SignedDocException;\n \n /**\n * Method returns an array of strings representing the \n * list of available token names.\n * @return an array of available token names.\n * @throws SignedDocException if reading the token information fails.\n */\n public String[] getAvailableTokenNames()\n throws SignedDocException;\n \n /**\n * Method returns a digital signature. It finds the RSA private \n * key object from the active token and\n * then signs the given data with this key and RSA mechanism.\n * @param digest digest of the data to be signed.\n * @param token token index\n * @param pin users pin code\n * @return an array of bytes containing digital signature.\n * @throws SignedDocException if signing the data fails.\n */\n public byte[] sign(byte[] digest, int token, String pin) \n throws SignedDocException;\n \n /**\n * Method returns a X.509 certificate object readed \n * from the active token and representing an\n * user public key certificate value.\n * @return X.509 certificate object.\n * @throws SignedDocException if getting X.509 public key certificate \n * fails or the requested certificate type X.509 is not available in \n * the default provider package\n */\n public X509Certificate getCertificate(int token, String pin)\n throws SignedDocException;\n \n /**\n * Resets the previous session\n * and other selected values\n */\n public void reset() \n throws SignedDocException;\n \n\t/**\n\t * Method decrypts the data with the RSA private key\n\t * corresponding to this certificate (which was used\n\t * to encrypt it). Decryption will be done on the card.\n\t * This operation closes the possibly opened previous\n\t * session with signature token and opens a new one with\n\t * authentication token if necessary\n\t * @param data data to be decrypted.\n\t * @param token index of authentication token\n\t * @param pin PIN code\n\t * @return decrypted data.\n\t * @throws SignedDocException for all decryption errors\n\t */\n\tpublic byte[] decrypt(byte[] data, int token, String pin) \n\t\tthrows SignedDocException;\n\t\t\t\t\n}",
"com.google.protobuf.ByteString getSignature();",
"Entry<StatusType, String> verifyExternalSignature(Document document, Document signature);",
"public void printHashKey(){\n try {\n PackageInfo info = getPackageManager().getPackageInfo(\n \"com.credolabs.justcredo\",\n PackageManager.GET_SIGNATURES);\n for (Signature signature : info.signatures) {\n MessageDigest md = MessageDigest.getInstance(\"SHA\");\n md.update(signature.toByteArray());\n Log.d(\"Credo:\", Base64.encodeToString(md.digest(), Base64.DEFAULT));\n }\n } catch (PackageManager.NameNotFoundException e) {\n\n } catch (NoSuchAlgorithmException e) {\n\n }\n }",
"@Test\n public void testValidSig() {\n\n // Creates 100 coins to Alice\n Transaction createCoinTx = new Transaction();\n createCoinTx.addOutput(100, kpAlice.getPublic());\n createCoinTx.finalize();\n // Output of createCoinTx is put in UTXO pool\n UTXOPool utxoPool = new UTXOPool();\n UTXO utxo = new UTXO(createCoinTx.getHash(), 0);\n utxoPool.addUTXO(utxo, createCoinTx.getOutput(0));\n TxHandler txHandler = new TxHandler(utxoPool);\n\n // Alice transfers 10 coins to Bob, 20 to Cal\n Transaction tx1 = new Transaction();\n tx1.addInput(createCoinTx.getHash(), 0);\n tx1.addOutput(10, kpBob.getPublic());\n tx1.addOutput(20, kpCal.getPublic());\n\n // Sign for tx1 with Bob's kp, which is incorrect\n byte[] sig1 = null;\n try {\n Signature sig = Signature.getInstance(\"SHA256withRSA\");\n sig.initSign(kpBob.getPrivate());\n sig.update(tx1.getRawDataToSign(0));\n sig1 = sig.sign();\n } catch (NoSuchAlgorithmException | InvalidKeyException | SignatureException e) {\n e.printStackTrace();\n }\n tx1.getInput(0).addSignature(sig1);\n tx1.finalize();\n\n assertFalse(txHandler.isValidTx(tx1));\n\n // Sign for tx1 with Alice's kp, which is now correct\n byte[] sig2 = null;\n try {\n Signature sig = Signature.getInstance(\"SHA256withRSA\");\n sig.initSign(kpAlice.getPrivate());\n sig.update(tx1.getRawDataToSign(0));\n sig2 = sig.sign();\n } catch (NoSuchAlgorithmException | InvalidKeyException | SignatureException e) {\n e.printStackTrace();\n }\n tx1.getInput(0).addSignature(sig2);\n tx1.finalize();\n\n assertTrue(txHandler.isValidTx(tx1));\n }",
"public\tString\tgetNewSignature() {\n\t\t\treturn\tthis.newSignature;\n\t\t}",
"public void setSignature(short signature) {\n\t\ttry {\n\t\t\tgetStream().setInt(this.signature, signature);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn;\n\t\t}\n\t}",
"private void generateSignature(APDU apdu, byte[] buffer) \r\n \t //@ requires current_applet(this) &*& [1/2]valid() &*& APDU(apdu, buffer) &*& array_slice(buffer, 0, buffer.length, _);\r\n \t //@ ensures current_applet(this) &*& [1/2]valid() &*& APDU(apdu, buffer) &*& array_slice(buffer, 0, buffer.length, _);\r\n\t{\r\n\t\t/*\r\n\t\t * IMPORTANT: in all other APDUs the previous APDU type gets overwritten\r\n\t\t * in process() function; this is not the case here because the\r\n\t\t * information is needed when processing to verify the security\r\n\t\t * condition for non repudiation signature\r\n\t\t * \r\n\t\t * the previous APDU type has to be overwritten in every possible exit\r\n\t\t * path out of this function; therefore we check the security conditions\r\n\t\t * of the non repudiation signature as early as possible, but we have to\r\n\t\t * overwrite the previous APDU type in the 2 possible exceptions before\r\n\t\t */\r\n\t\tJCSystem.beginTransaction();\r\n\t\t////@ open valid(); // auto\r\n\t\t// check P1 and P2\t\t\r\n\t\tif (buffer[ISO7816.OFFSET_P1] != (byte) 0x9E || buffer[ISO7816.OFFSET_P2] != (byte) 0x9A) {\r\n\t\t\tsetPreviousApduType(OTHER);\r\n\t\t\tISOException.throwIt(ISO7816.SW_WRONG_P1P2);\r\n\t\t}\r\n\t\t// generate signature without prepare signature results:\r\n\t\t// \"conditions of use not satisfied\"\r\n\t\tif (getSignatureType() == NO_SIGNATURE) {\r\n\t\t\tsetPreviousApduType(OTHER);\r\n\t\t\tISOException.throwIt(ISO7816.SW_CONDITIONS_NOT_SATISFIED);\r\n\t\t}\r\n\t\t/*\r\n\t\t * verify authentication information throw\r\n\t\t * \"security condition not satisfied\" if something is wrong\r\n\t\t */\r\n\t\t// check if previous APDU did a cardholder PIN verification\r\n\t\tif ((getSignatureType() == NON_REPUDIATION) && (getPreviousApduType() != VERIFY_CARDHOLDER_PIN)) {\r\n\t\t\tsetPreviousApduType(OTHER);\r\n\t\t\tISOException.throwIt(ISO7816.SW_SECURITY_STATUS_NOT_SATISFIED);\r\n\t\t}\r\n\t\t// overwrite previous ADPU type as soon as possible\r\n\t\tsetPreviousApduType(OTHER);\r\n\r\n\t\t// it is impossible to generate basic signatures with this command\r\n\t\tif (getSignatureType() == BASIC)\r\n\t\t\tISOException.throwIt(ISO7816.SW_SECURITY_STATUS_NOT_SATISFIED);\r\n\t\t// check if cardholder PIN was entered correctly\r\n\t\tif (!cardholderPin.isValidated())\r\n\t\t\tISOException.throwIt(ISO7816.SW_SECURITY_STATUS_NOT_SATISFIED);\r\n\t\t\r\n\t\t////@ close valid(); // auto\r\n\t\tJCSystem.commitTransaction();\r\n\t\t////@ open [1/2]valid(); // auto\r\n\t\tswitch (signatureAlgorithm) {\r\n\t\tcase ALG_MD5_PKCS1:\r\n\t\t\t////@ close [1/2]valid(); // auto\r\n\t\t\tgeneratePkcs1Md5Signature(apdu, buffer);\r\n\t\t\t////@ open [1/2]valid(); // auto\r\n\t\t\tbreak;\r\n\t\tcase ALG_SHA1_PKCS1:\r\n\t\t\t////@ close [1/2]valid(); // auto\r\n\t\t\tgeneratePkcs1Sha1Signature(apdu, buffer);\r\n\t\t\t////@ open [1/2]valid(); // auto\r\n\t\t\tbreak;\r\n\t\tcase ALG_PKCS1:\r\n\t\t\t////@ close [1/2]valid(); // auto\r\n\t\t\tgeneratePkcs1Signature(apdu, buffer);\r\n\t\t\t////@ open [1/2]valid(); // auto\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\t////@ close [1/2]valid(); // auto\r\n\t\t// if T=1, store signature in sigBuffer so that it can latter be sent\r\n\t\tif (APDU.getProtocol() == APDU.PROTOCOL_T1) {\r\n\t\t\tJCSystem.beginTransaction();\r\n\t\t\t//@ open valid(); // todo (???)\r\n\t\t\tUtil.arrayCopy(buffer, (short) 0, responseBuffer, (short) 0, (short) 128);\r\n\t\t\t////@ close valid(); // auto\r\n\t\t\tJCSystem.commitTransaction();\r\n\t\t\t\r\n\t\t\t// in case T=0 protocol, send the signature immediately in a\r\n\t\t\t// response APDU\r\n\t\t} else {\r\n\t\t\t// send first 128 bytes (= 1024 bit) of buffer\r\n\t\t\tapdu.setOutgoingAndSend((short) 0, (short) 128);\r\n\t\t}\r\n\t}",
"void xsetSignatureText(com.microsoft.schemas.office.x2006.digsig.STSignatureText signatureText);",
"public void logSignatureAuditRecord(ActivationRecordEntity activation, String signatureType, String signature, byte[] data, Boolean valid, String note, Date currentTimestamp) {\n\t\t// Audit the signature\n\t\tSignatureEntity signatureAuditRecord = new SignatureEntity();\n\t\tsignatureAuditRecord.setActivation(activation);\n\t\tsignatureAuditRecord.setActivationCounter(activation.getCounter());\n\t\tsignatureAuditRecord.setActivationStatus(activation.getActivationStatus());\n\t\tsignatureAuditRecord.setDataBase64(BaseEncoding.base64().encode(data));\n\t\tsignatureAuditRecord.setSignature(signature);\n\t\tsignatureAuditRecord.setSignatureType(signatureType);\n\t\tsignatureAuditRecord.setValid(valid);\n\t\tsignatureAuditRecord.setNote(note);\n\t\tsignatureAuditRecord.setTimestampCreated(currentTimestamp);\n\t\tsignatureAuditRepository.save(signatureAuditRecord);\n\t}",
"java.lang.String getSignatureText();",
"byte[] getSignatureImage();",
"public static void main(String[] args) {\n\n String pfx = \"E:\\\\PDFFileTest\\\\1.pfx\";\n String tmpPath = \"E:\\\\PDFFileTest\\\\1562570792439.pdf\";\n String expPath = \"E:\\\\PDFFileTest\\\\11.11\\\\h83.pdf\";\n String gif = \"E:\\\\PDFFileTest\\\\1.gif\";\n String password = \"111111\";\n try {\n sign(pfx, tmpPath, expPath, gif, password);\n System.out.println(\"success\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"void xsetSignatureType(com.microsoft.schemas.office.x2006.digsig.STSignatureType signatureType);",
"void xsetSignatureImage(org.apache.xmlbeans.XmlBase64Binary signatureImage);",
"@Override\n public String digestParams(RestInvocation restInvocation) {\n Params params = Params.of();\n restInvocation.getParamsMap().get(FormParam.class).asHttpHeaders().entrySet().stream()\n .filter(e -> !e.getKey().equalsIgnoreCase(\"signature\"))\n .forEach(e -> params.add(e.getKey(), e.getValue()));\n\n // Parse Query String\n byte[] queryString = params.asQueryString().trim().getBytes(UTF8);\n\n // Create And Return Signature\n return hex(getMac().doFinal(queryString));\n }",
"@Override\n public void onClick(View v) {\n\n if (v == Clear_bt) {\n mSignature.clear();\n // dl.dismiss();\n\n } else if (v == Save_bt) {\n mSignature.save();\n\n } else if (v == Cancel_bt) {\n /* Bundle b = new Bundle();\n b.putString(\"byteArray\", \"cancel\");\n Intent intent = new Intent();\n intent.putExtras(b);\n setResult(3, intent);*/\n // finish();\n mSignature.clear();\n dl.dismiss();\n\n } else if (v == tech_signature) {\n Sign_Check = \"Man\";\n get_signature(Sign_Check);\n\n }\n else if (v == staff_signature) {\n Sign_Check = \"staff\";\n get_signature(Sign_Check);\n\n }\n\n\n else if (v == supervisor_signature) {\n\n Sign_Check = \"Co\";\n get_signature(Sign_Check);\n\n }\n\n else if (v == msot_signature_button) {\n\n Sign_Check = \"msot\";\n get_signature(Sign_Check);\n\n }\n }",
"Entry<StatusType, String> verifyInternalSignature(final Document document);",
"public void testX509EncryptionThumb() throws Exception {\n WSSecEncrypt builder = new WSSecEncrypt();\n builder.setUserInfo(\"16c73ab6-b892-458f-abf5-2f875f74882e\", \"security\");\n builder.setKeyIdentifierType(WSConstants.THUMBPRINT_IDENTIFIER);\n \n LOG.info(\"Before Encrypting ThumbprintSHA1....\");\n Document doc = unsignedEnvelope.getAsDocument();\n WSSecHeader secHeader = new WSSecHeader();\n secHeader.insertSecurityHeader(doc); \n Document encryptedDoc = builder.build(doc, crypto, secHeader);\n \n String outputString = \n org.apache.ws.security.util.XMLUtils.PrettyDocumentToString(encryptedDoc);\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"Encrypted message with THUMBPRINT_IDENTIFIER:\");\n LOG.debug(outputString);\n }\n assertTrue(outputString.indexOf(\"#ThumbprintSHA1\") != -1);\n \n LOG.info(\"After Encrypting ThumbprintSHA1....\");\n verify(encryptedDoc);\n }",
"private void setSignatureType(byte type) \r\n \t //@ requires signatureType |-> ?theSignatureType &*& theSignatureType != null &*& theSignatureType.length == 1 &*& is_transient_byte_array(theSignatureType) == true &*& transient_byte_arrays(?ta) &*& foreachp(ta, transient_byte_array);\r\n \t //@ ensures signatureType |-> theSignatureType &*& is_transient_byte_array(theSignatureType) == true &*& transient_byte_arrays(ta) &*& foreachp(ta, transient_byte_array);\r\n\t{\r\n\t\t//@ transient_byte_arrays_mem(theSignatureType);\r\n\t\t//@ foreachp_remove(theSignatureType, ta);\r\n\t\t//@ open transient_byte_array(theSignatureType);\r\n\t\tsignatureType[0] = type;\r\n\t\t//@ close transient_byte_array(theSignatureType);\r\n\t\t//@ foreachp_unremove(theSignatureType, ta);\r\n\t}",
"public String getSignature() {\n return signature;\n }",
"public String getSignature() {\n return signature;\n }",
"public String getSignature() {\n return signature;\n }",
"public boolean verifiySignature() {\n\t\tString data = StringUtil.getStringFromKey(sender) + StringUtil.getStringFromKey(reciepient)\n\t\t\t\t+ Float.toString(value);\n\t\treturn StringUtil.verifyECDSASig(sender, data, signature);\n\t}",
"Result_RecoverableSignatureNoneZ sign_invoice(byte[] invoice_preimage);",
"BigInteger getDigitalSignature();",
"public String calculateSignature(String str) {\n try {\n String signingKey = getSigningKey();\n byte[] bytes = str.getBytes(\"UTF8\");\n SecretKeySpec secretKeySpec = new SecretKeySpec(signingKey.getBytes(\"UTF8\"), \"HmacSHA1\");\n Mac instance = Mac.getInstance(\"HmacSHA1\");\n instance.init(secretKeySpec);\n byte[] doFinal = instance.doFinal(bytes);\n return ByteString.of(doFinal, 0, doFinal.length).base64();\n } catch (InvalidKeyException e) {\n Twitter.getLogger().e(\"Twitter\", \"Failed to calculate signature\", e);\n return \"\";\n } catch (NoSuchAlgorithmException e2) {\n Twitter.getLogger().e(\"Twitter\", \"Failed to calculate signature\", e2);\n return \"\";\n } catch (UnsupportedEncodingException e3) {\n Twitter.getLogger().e(\"Twitter\", \"Failed to calculate signature\", e3);\n return \"\";\n }\n }",
"public void valSig (String fileName) {\n javax.xml.parsers.DocumentBuilderFactory dbf =\n javax.xml.parsers.DocumentBuilderFactory.newInstance();\n dbf.setNamespaceAware(true);\n javax.xml.parsers.DocumentBuilder db = null;\n\n System.out.println(\"\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\");\n\n try {\n db = dbf.newDocumentBuilder();\n } catch (ParserConfigurationException e) {\n e.printStackTrace();\n }\n try {\n Document doc =\n db.parse(new FileInputStream(fileName));\n\n XPathFactory xpf = XPathFactory.newInstance();\n XPath xpath = xpf.newXPath();\n xpath.setNamespaceContext(new DSNamespaceContext());\n String expression = \"//ds:Signature[1]\";\n Element sigElement =\n (Element) xpath.evaluate(expression, doc, XPathConstants.NODE);\n\n XMLSignature signature =\n new XMLSignature(sigElement, (new File(fileName)).toURI().toURL().toString());\n\n String expressionBody = \"//soapenv:Body\";\n Element bodyElement =\n (Element) xpath.evaluate(expressionBody, doc, XPathConstants.NODE);\n\n Attr id = bodyElement.getAttributeNode(\"Id\") ;\n IdResolver.registerElementById(bodyElement,id);\n //signature.addResourceResolver(new OfflineResolver());\n\n KeyInfo ki = signature.getKeyInfo();\n System.out.println(\"================================signature.getSignatureValue()================================\");\n\n String svStr = new String(signature.getSignatureValue());\n System.out.println(svStr);\n System.out.println(\"================================signature.getSignatureValue()================================\");\n\n if (ki != null) {\n if (ki.containsX509Data()) {\n System.out.println(\"Could find a X509Data element in the KeyInfo\");\n }\n X509Certificate cert = signature.getKeyInfo().getX509Certificate();\n if (cert != null) {\n System.out.println(\"The XML signature in file \"\n // + f.toURI().toURL().toString() + \" is \"\n + (signature.checkSignatureValue(cert)\n ? \"valid (good)\" : \"invalid !!!!! (bad)\"));\n } else {\n System.out.println(\"Did not find a Certificate\");\n PublicKey pk = signature.getKeyInfo().getPublicKey();\n if (pk != null) {\n System.out.println(\"The XML signature in file \"\n // + f.toURI().toURL().toString() + \" is \"\n + (signature.checkSignatureValue(pk)\n ? \"valid (good)\" : \"invalid !!!!! (bad)\"));\n } else {\n System.out.println(\n \"Did not find a public key, so I can't check the signature\");\n }\n }\n } else {\n System.out.println(\"Did not find a KeyInfo\");\n }\n\n\n\n\n\n } catch (SAXException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } catch (XPathExpressionException e) {\n e.printStackTrace();\n } catch (XMLSignatureException e) {\n e.printStackTrace();\n } catch (XMLSecurityException e) {\n e.printStackTrace();\n }\n\n }",
"private static String sign(String data, String key)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tMac mac = Mac.getInstance(\"HmacSHA1\");\n\t\t\t\tmac.init(new SecretKeySpec(key.getBytes(), \"HmacSHA1\"));\n\t\t\t\treturn Base64.encodeBytes(mac.doFinal(data.getBytes(\"UTF-8\")));\n\t\t\t}\n\t\t\tcatch (Exception e)\n\t\t\t{\n\t\t\t\tthrow new RuntimeException(new SignatureException(\"Failed to generate signature: \" + e.getMessage(), e));\n\t\t\t}\n\t\t}",
"public String getSignature() {\n return this.Signature;\n }",
"public byte []\ngetSignature() {\n\treturn signature;\n}",
"public byte[] getSignature()\n {\n return Arrays.clone(signature);\n }",
"private static String signFirstTime() throws AddressFormatException\n {\n ECKey key1 = ECKey.fromPrivate(new BigInteger(\"64102401986961187973900162212679081334328198710146539384491794427145725009072\"));\n\n\n // Use the redeem script we have saved somewhere to start building the transaction\n Script redeemScript = new Script(hexStringToByteArray(\"5221021ae8964b8529dc3e52955f2cabd967e08c52008dbcca8e054143b668f3998f4a210306be609ef37366ab0f3dd4096ac23a6ee4d561fc469fa60003f799b0121ad1072102199f3d89fa00e6f55dd6ecdd911457d7264415914957db124d53bf0064963f3853ae\"));\n\n // Start building the transaction by adding the unspent inputs we want to use\n // The data is taken from blockchain.info, and can be found here: https://blockchain.info/rawtx/ca1884b8f2e0ba88249a86ec5ddca04f937f12d4fac299af41a9b51643302077\n Transaction spendTx = new Transaction(params);\n ScriptBuilder scriptBuilder = new ScriptBuilder();\n scriptBuilder.data(new String(\"a9145204ad7c5fa5a2491cd91c332e28c87221194ca087\").getBytes()); // Script of this output\n TransactionInput input = spendTx.addInput(new Sha256Hash(\"fed695bf5e2c15286956a7bd3464c5beb97ef064e1f9406eba189ea844733e7c\"), 1, scriptBuilder.build());\n\n // Add outputs to the person receiving bitcoins\n Address receiverAddress = new Address(params, \"n2cWhs5sbWFCwzuuWWsVM9ubPwykGtX75T\");\n Coin charge = Coin.valueOf(1000000); // 0.1 mBTC\n Script outputScript = ScriptBuilder.createOutputScript(receiverAddress);\n spendTx.addOutput(charge, outputScript);\n\n /*8888888888888888888888888888888888888888888888888888888888888*/\n\n // Sign the first part of the transaction using private key #1\n Sha256Hash sighash = spendTx.hashForSignature(0, redeemScript, Transaction.SigHash.ALL, false);\n ECKey.ECDSASignature ecdsaSignature = key1.sign(sighash);\n TransactionSignature transactionSignarture = new TransactionSignature(ecdsaSignature, Transaction.SigHash.ALL, false);\n\n // Create p2sh multisig input script\n Script inputScript = ScriptBuilder.createP2SHMultiSigInputScript(Arrays.asList(transactionSignarture), redeemScript);\n\n // Add the script signature to the input\n input.setScriptSig(inputScript);\n System.out.println(byteArrayToHex(spendTx.bitcoinSerialize()));\n\n return byteArrayToHex(spendTx.bitcoinSerialize());\n }",
"public void printHashKey(){\n try {\n PackageInfo info = getPackageManager().getPackageInfo(\"com.lostfind\", PackageManager.GET_SIGNATURES);\n for (Signature signature : info.signatures) {\n MessageDigest md = MessageDigest.getInstance(\"SHA\");\n md.update(signature.toByteArray());\n Log.d(\"KeyHash:\", \"KEYHASH::::\"+Base64.encodeToString(md.digest(), Base64.DEFAULT));\n }\n } catch (PackageManager.NameNotFoundException e) {\n e.printStackTrace();\n\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n }",
"public long add(byte[] signature)\n\t{\n\t\tif(this.atomicKey != null)\n\t\t{\n\t\t\tthis.atomicKey.incrementAndGet();\n\t\t}\n\t\t\n\t\t//INCREMENT KEY\n\t\tthis.key++;\n\t\t// TODO - set HEIGHT into BLOCK local\n\t\t//signature.setKey(key);\n\t\t\n\t\t//INSERT WITH NEW KEY\n\t\tthis.set(this.key, signature);\n\t\t\n\t\t//RETURN KEY\n\t\treturn this.key;\n\t}",
"public String getSignature() {\n\t\treturn signature;\n\t}",
"public void setSigRequest() { //method for setting the sigRequest of any loginIndex object, no parameter required, generates it all on its own\r\n \tString ikey = \"DIIDEISCSE5SPOZR41KL\"; //Given by Duo in the Web SDK\r\n \tString skey = \"PJEgxAWQOwumI0TE6yT7vfIDyDB0FIxpcvREJFMh\"; //Given by Duo in the Web SDK\r\n \tString akey = \"b6b6b6b6b6b6b6b6b6b6b6b6b6b6b6b6b6b6bb6b6b66b6b6b6b6\"; //This is randomly generated and should be stored separate from Duo\r\n \tString sig_request = DuoWeb.signRequest(ikey, skey, akey, username); //Generates the signed request by calling on the DuoWeb.java given by Duo\r\n \tthis.sigRequest = sig_request;\r\n }",
"private void signMessage() {\n\n String messageText = messageTextArea.getText();\n SecureCharSequence secureCharSequence = new SecureCharSequence(currentPassword.getPassword());\n String signMessage = this.address.signMessage(messageText, secureCharSequence);\n signature.setText(signMessage);\n\n }",
"void mergeSignature(ClassSignature signature) {\n this.signature.merge(signature);\n }",
"org.apache.calcite.avatica.proto.Common.Signature getSignature();",
"public void writeSignature(IProgressMonitor monitor) throws CoreException;",
"private void clearSignature() {\n bitField0_ = (bitField0_ & ~0x00000010);\n signature_ = getDefaultInstance().getSignature();\n }",
"boolean hasSignature();",
"boolean hasSignature();",
"@RequestMapping(value = \"/cades-signature-complete\", method = {RequestMethod.POST})\n\tpublic String complete(\n\t\t@RequestParam(value = \"token\", required = true) String token,\n\t\t@RequestParam(value = \"signature\", required = true) String signature,\n\t\tModel model\n\t) throws IOException, RestException {\n\n\t\t// Instantiate the PadesSignatureFinisher class, responsible for completing the signature process. For more\n\t\t// information, see:\n\t\t// https://pki.rest/Content/docs/java-client/index.html?com/lacunasoftware/restpki/CadesSignatureFinisher.html\n\t\tCadesSignatureFinisher signatureFinisher = new CadesSignatureFinisher(Util.getRestPkiClient());\n\n\t\t// Set the token for this signature (rendered in a hidden input field, see file templates/cades-signature-step2.html)\n\t\tsignatureFinisher.setToken(token);\n\n\t\t// Set the result of the signature operation\n\t\tsignatureFinisher.setSignature(signature);\n\n\t\t// Call the finish() method, which finalizes the signature process and returns the CMS\n\t\tbyte[] cms;\n\t\ttry {\n\t\t\tcms = signatureFinisher.finish();\n\t\t} catch (ValidationException e) {\n\t\t\t// The call above may throw a ValidationException if any validation errors occur (for instance, if the\n\t\t\t// certificate is revoked). If so, we'll render a page showing what went wrong.\n\t\t\tmodel.addAttribute(\"title\", \"Validation of the signature failed\");\n\t\t\t// The toString() method of the ValidationResults object can be used to obtain the checks performed, but the\n\t\t\t// string contains tabs and new line characters for formatting. Therefore, we call the method\n\t\t\t// Util.getValidationResultsHtml() to convert these characters to <br>'s and 's.\n\t\t\tmodel.addAttribute(\"vrHtml\", Util.getValidationResultsHtml(e.getValidationResults()));\n\t\t\treturn \"validation-failed\";\n\t\t}\n\n\t\t// Get information about the certificate used by the user to sign the file. This method must only be called after\n\t\t// calling the finish() method.\n\t\tPKCertificate signerCert = signatureFinisher.getCertificateInfo();\n\n\t\t// At this point, you'd typically store the CMS on your database. For demonstration purposes, we'll\n\t\t// store the CMS on a temporary folder and return to the page an identifier that can be used to download it.\n\n\t\tString filename = UUID.randomUUID() + \".p7s\";\n\t\tFiles.write(Application.getTempFolderPath().resolve(filename), cms);\n\t\tmodel.addAttribute(\"signerCert\", signerCert);\n\t\tmodel.addAttribute(\"filename\", filename);\n\t\treturn \"cades-signature-info\";\n\t}",
"String componentSignature();",
"void xsetSignatureComments(com.microsoft.schemas.office.x2006.digsig.STSignatureComments signatureComments);",
"@Override\n\tpublic ResponseInfo updatePurchaserequisitionIsApplySign(Map<String, Object> map) {\n\t\tResponseInfo info = new ResponseInfo();\n\t\tint result = purchaseDao.updatePurchaserequisitionIsApplySign(map);\n\t\tif(result > 0) {\n\t\t\t\tinfo.setMessage(\"操作成功\");\n\t\t\t\tinfo.setCode(\"success\");\n\t\t\t}else {\n\t\t\t\tinfo.setMessage(\"操作失败\");\n\t\t\t\tinfo.setCode(\"error\");\n\t\t}\n\t\treturn info;\n\t}",
"public void updateSign(boolean activated) {\n if (!ChunkLocation.fromLocation(activationBlock).isChunkLoaded()) return;\n\n try {\n BlockState state = activationBlock.getBlock().getState();\n if (state == null || !(state instanceof Sign)) return;\n\n final Sign sign = (Sign) state;\n\n String line;\n if (activated) {\n String signColor;\n if (isDisabled()) signColor = \"8\";\n else signColor = RCPrefs.getSignColor();\n line = (char) 167 + signColor + type;\n } else {\n line = type;\n }\n\n if (!line.equals(sign.getLine(0))) {\n sign.setLine(0, line);\n\n RedstoneChips.inst().getServer().getScheduler().scheduleSyncDelayedTask(RedstoneChips.inst(), () -> sign.update());\n }\n } catch (NullPointerException ne) {\n }\n }",
"private void printKeyHash(){\n try {\n PackageInfo info = getPackageManager().getPackageInfo(\n \"andbas.ui3_0628\",\n PackageManager.GET_SIGNATURES);\n for (Signature signature : info.signatures) {\n MessageDigest md = MessageDigest.getInstance(\"SHA\");\n md.update(signature.toByteArray());\n Log.d(\"KeyHash:\", Base64.encodeToString(md.digest(), Base64.DEFAULT));\n }\n } catch (PackageManager.NameNotFoundException e) {\n\n } catch (NoSuchAlgorithmException e) {\n\n }\n\n }",
"protected byte[] getSignature() {\n return signatureImpl.calculate(content, null);\n }",
"private static String signSHA256RSA(String input,\n PrivateKey privateKey) throws Exception {\n Signature s = Signature.getInstance(\"SHA256withRSA\");\n s.initSign(privateKey);\n s.update(input.getBytes(\"UTF-8\"));\n byte[] signature = s.sign();\n //Base64.getEncoder().encode(\"Test\".getBytes());\n return Base64.getEncoder().encodeToString(signature);\n }",
"private byte[] createSignatureBase() {\n final Charset utf8 = StandardCharsets.UTF_8;\n byte[] urlBytes = url.getBytes(utf8);\n byte[] timeStampBytes = Long.toString(timestamp).getBytes(utf8);\n byte[] secretBytes = secret.getBytes(utf8);\n\n // concatenate\n ByteArrayOutputStream stream = new ByteArrayOutputStream();\n try {\n stream.write(urlBytes);\n stream.write(body);\n stream.write(timeStampBytes);\n stream.write(secretBytes);\n } catch (IOException ex){\n logger.error(\"Could not create signature base\", ex);\n return new byte[0];\n }\n\n return stream.toByteArray();\n }",
"protected void logResult(@Nonnull final SignatureSigningParameters params) {\n if (log.isDebugEnabled()) {\n log.debug(\"Resolved SignatureSigningParameters:\");\n \n final Credential signingCred = params.getSigningCredential();\n final Key signingKey = signingCred != null ? CredentialSupport.extractSigningKey(signingCred) : null;\n if (signingKey != null) {\n log.debug(\"\\tSigning credential with key algorithm: {}\", signingKey.getAlgorithm());\n } else {\n log.debug(\"\\tSigning credential: null\"); \n }\n \n log.debug(\"\\tSignature algorithm URI: {}\", params.getSignatureAlgorithm()); \n \n final KeyInfoGenerator generator = params.getKeyInfoGenerator();\n log.debug(\"\\tSignature KeyInfoGenerator: {}\", generator != null ? generator.getClass().getName() : \"null\");\n \n log.debug(\"\\tReference digest method algorithm URI: {}\", params.getSignatureReferenceDigestMethod()); \n log.debug(\"\\tReference canonicalization algorithm URI: {}\", \n params.getSignatureReferenceCanonicalizationAlgorithm()); \n \n log.debug(\"\\tCanonicalization algorithm URI: {}\", params.getSignatureCanonicalizationAlgorithm()); \n log.debug(\"\\tHMAC output length: {}\", params.getSignatureHMACOutputLength()); \n }\n }",
"public Builder setSignature(org.apache.calcite.avatica.proto.Common.Signature value) {\n if (signatureBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n signature_ = value;\n onChanged();\n } else {\n signatureBuilder_.setMessage(value);\n }\n\n return this;\n }",
"public static void main(String[] args) {\n\n\t\tif (args.length != 5) {\n\t\t System.out.println(\"Usage: GenSig nameOfFileToSign keystore password sign publicKey\");\n\n\t\t }\n\t\telse try{\n\n\t\t KeyStore ks = KeyStore.getInstance(KeyStore.getDefaultType());\n\t\t ks.load(new FileInputStream(args[1]), args[2].toCharArray());\n\t\t \n\t\t String alias = (String)ks.aliases().nextElement();\n\t\t PrivateKey privateKey = (PrivateKey) ks.getKey(alias, args[2].toCharArray());\n\n\t\t Certificate cert = ks.getCertificate(alias);\n\n\t\t // Get public key\t\n\t\t PublicKey publicKey = cert.getPublicKey();\n\n\t\t /* Create a Signature object and initialize it with the private key */\n\n\t\t Signature rsa = Signature.getInstance(\"SHA256withRSA\");\t\n\t\n\n\t\t rsa.initSign(privateKey);\n\n\t\t /* Update and sign the data */\n\n \t String hexString = readFile(args[0]).trim();\n\t\t byte[] decodedBytes = DatatypeConverter.parseHexBinary(hexString);\t\n\t\t InputStream bufin = new ByteArrayInputStream(decodedBytes);\n\n\n\t\t byte[] buffer = new byte[1024];\n\t\t int len;\n\t\t while (bufin.available() != 0) {\n\t\t\tlen = bufin.read(buffer);\n\t\t\trsa.update(buffer, 0, len);\n\t\t };\n\n\t\t bufin.close();\n\n\t\t /* Now that all the data to be signed has been read in, \n\t\t\t generate a signature for it */\n\n\t\t byte[] realSig = rsa.sign();\n\n\t\t \n\t\t /* Save the signature in a file */\n\n\t\t File file = new File(args[3]);\n\t\t PrintWriter out = new PrintWriter(file);\n\n\t\t\t// if file doesn't exists, then create it\n\t\t\tif (!file.exists()) {\n\t\t\t\tfile.createNewFile();\n\t\t\t}\n\n\t\t out.println(DatatypeConverter.printBase64Binary(realSig));\n\t\t out.close();\n\n\n\t\t /* Save the public key in a file */\n\t\t byte[] key = publicKey.getEncoded();\n\t\t FileOutputStream keyfos = new FileOutputStream(args[4]);\n\t\t keyfos.write(key);\n\n\t\t keyfos.close();\n\n\t\t} catch (Exception e) {\n\t\t System.err.println(\"Caught exception \" + e.toString());\n\t\t}\n\n\t}",
"void uploadSuccessful(long bytes);",
"public byte[] sign(byte[] digest, int token, String pin) \n throws SignedDocException;",
"protected void printFaceBookKeyHash() {\n try {\n PackageInfo info = getPackageManager().getPackageInfo(\"com.sakewiz.android\", PackageManager.GET_SIGNATURES);\n for (Signature signature : info.signatures) {\n MessageDigest md = MessageDigest.getInstance(\"SHA\");\n md.update(signature.toByteArray());\n Log.d(\"KeyHash: \", Base64.encodeToString(md.digest(), Base64.DEFAULT));\n }\n } catch (PackageManager.NameNotFoundException e) {\n e.printStackTrace();\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n }",
"void sendSignChangeToPlayer(Player player, Location location, byte data);",
"RequestResult postSignRequests(TriphaseRequest[] requests) throws IOException,\n CertificateEncodingException, SAXException;",
"@Override\n public boolean verifySignature(byte[] signature) {\n try {\n Element[] sig = derDecode(signature);\n CL04SignPublicPairingKeySerParameter pk = (CL04SignPublicPairingKeySerParameter) pairingKeySerParameter;\n Pairing pairing = PairingFactory.getPairing(pairingKeySerParameter.getParameters());\n Element a = sig[0];\n Element b = sig[1];\n Element c = sig[2];\n List<Element> A = IntStream.range(3, 3 + messages.size()).mapToObj(i -> sig[i]).collect(Collectors.toList());\n List<Element> B = IntStream.range(3 + messages.size(), 3 + 2 * messages.size()).mapToObj(i -> sig[i]).collect(Collectors.toList());\n return aFormedCorrectly(pairing, a, A, pk) && bFormedCorrectly(pairing, a, b, A, B, pk) && cFormedCorrectly(pairing, a, b, c, B, pk);\n } catch (IOException e) {\n e.printStackTrace();\n }\n return false;\n\n }",
"public Signature correctProcessSignature() {\n\t\tif (!exertion.isJob())\n\t\t\treturn exertion.getProcessSignature();\n\t\tSignature sig = exertion.getProcessSignature();\n\t\tif (sig != null) {\n\t\t\tAccess access = exertion.getControlContext().getAccessType();\n\t\t\tif ((Access.PULL == access || Access.QOS_PULL == access)\n\t\t\t\t\t&& !exertion.getProcessSignature().getServiceType()\n\t\t\t\t\t\t\t.isAssignableFrom(Spacer.class)) {\n\t\t\t\tsig.setServiceType(Spacer.class);\n\t\t\t\t((NetSignature) sig).setSelector(\"service\");\n\t\t\t\tsig.setProviderName(SorcerConstants.ANY);\n\t\t\t\tsig.setType(Signature.Type.SRV);\n\t\t\t\texertion.getControlContext().setAccessType(access);\n\t\t\t} else if ((Access.PUSH == access || Access.QOS_PUSH == access)\n\t\t\t\t\t&& !exertion.getProcessSignature().getServiceType()\n\t\t\t\t\t\t\t.isAssignableFrom(Jobber.class)) {\n\t\t\t\tif (sig.getServiceType().isAssignableFrom(Spacer.class)) {\n\t\t\t\t\tsig.setServiceType(Jobber.class);\n\t\t\t\t\t((NetSignature) sig).setSelector(\"service\");\n\t\t\t\t\tsig.setProviderName(SorcerConstants.ANY);\n\t\t\t\t\tsig.setType(Signature.Type.SRV);\n\t\t\t\t\texertion.getControlContext().setAccessType(access);\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tsig = new NetSignature(\"service\", Jobber.class);\n\t\t}\n\t\treturn sig;\n\t}",
"private void printKeyHash() {\n\n try {\n\n PackageInfo info = getPackageManager().getPackageInfo(\"com.example.androidnotification\", PackageManager.GET_SIGNATURES);\n\n for (Signature signature : info.signatures) {\n\n MessageDigest md = MessageDigest.getInstance(\"SHA\");\n md.update(signature.toByteArray());\n\n Log.d(TAG, \"printKeyHash: \" + Base64.encodeToString(md.digest(), Base64.DEFAULT));\n }\n\n } catch (PackageManager.NameNotFoundException e) {\n\n e.printStackTrace();\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n }",
"public void acaba() \n\t\t{\n\t\t\tsigo2 = false;\n\t\t}",
"private static void wxSignTest(){\n\t\t\n\t\tString sb=\"appid=wx791233ecd4e71c3f&attach=91_40090_3999&mch_id=1220845901&openid=oc9Xijt__DS0SyGDGqGnUPxSkDWQ&cash_fee=7600&fee_type=CNY\"+\n\t\t\t\t\"&time_end=20150831172810&bank_type=BOC_DEBIT&nonce_str\"+\n\t\t\t\t\"=5K8264ILTKCH16CQ2502SI8ZNMTM67VS&total_fee=7600&trade_type=JSAPI&result_code=SUCCESS&return_code=SUCCESS&is_subscribe=Y&out_trade_\"+\n\t\t\t\t\"no=2015083100400904657685188272&transaction_id=1007950222201508310755172159&key=48d15a39462fbe06f6391328ff685954\";\n\t\t\tString sign = DigestUtils.md5Hex(sb).toUpperCase();\n\t\t\tSystem.out.println(\"sign=\"+sign);\t\n\t}",
"public void testX509EncryptionSHA1() throws Exception {\n WSSecEncrypt builder = new WSSecEncrypt();\n builder.setUserInfo(\"16c73ab6-b892-458f-abf5-2f875f74882e\", \"security\");\n builder.setKeyIdentifierType(WSConstants.ENCRYPTED_KEY_SHA1_IDENTIFIER);\n builder.setUseKeyIdentifier(true);\n \n LOG.info(\"Before Encrypting EncryptedKeySHA1....\");\n Document doc = unsignedEnvelope.getAsDocument();\n WSSecHeader secHeader = new WSSecHeader();\n secHeader.insertSecurityHeader(doc); \n Document encryptedDoc = builder.build(doc, crypto, secHeader);\n \n String outputString = \n org.apache.ws.security.util.XMLUtils.PrettyDocumentToString(encryptedDoc);\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"Encrypted message with ENCRYPTED_KEY_SHA1_IDENTIFIER:\");\n LOG.debug(outputString);\n }\n assertTrue(outputString.indexOf(\"#EncryptedKeySHA1\") != -1);\n \n LOG.info(\"After Encrypting EncryptedKeySHA1....\");\n verify(encryptedDoc);\n }",
"SignatureIdentification createSignatureIdentification();",
"public ISignature getSignature() {\n return _signature;\n }",
"private void generatePkcs1Sha1Signature(APDU apdu, byte[] buffer) \r\n \t //@ requires current_applet(this) &*& [1/2]valid() &*& APDU(apdu, buffer) &*& array_slice(buffer, 0, buffer.length, _);\r\n \t //@ ensures current_applet(this) &*& [1/2]valid() &*& APDU(apdu, buffer) &*& array_slice(buffer, 0, buffer.length, _);\r\n\t{\r\n\t\t// receive the data that needs to be signed\r\n\t\tshort byteRead = apdu.setIncomingAndReceive();\r\n\t\t// check Lc\r\n\t\t\r\n\t\t\r\n\t\tshort lc = (short) (buffer[ISO7816.OFFSET_LC] & 0x00FF);\r\n\t\tif ((lc != 20) || (byteRead != 20))\r\n\t\t\tISOException.throwIt(ISO7816.SW_WRONG_LENGTH);\r\n\t\t\r\n\t\t\r\n\t\t////@ open [1/2]valid(); // auto\r\n\t\t// use the correct key\r\n\t\tif (getSignatureType() == NON_REPUDIATION) {\r\n\t\t\t////cipher.init(nonRepPrivateKey, Cipher.MODE_ENCRYPT); // stond al in comments\r\n\t\t\tcipher.init((RSAPrivateCrtKey)nonRepKeyPair.getPrivate(), Cipher.MODE_ENCRYPT);\r\n\t\t}\r\n\t\t\r\n\t\tif (getSignatureType() == AUTHENTICATION) {\r\n\t\t\tcipher.init((RSAPrivateCrtKey)authKeyPair.getPrivate(), Cipher.MODE_ENCRYPT);\r\n\t\t}\r\n\t\t\r\n\t\t////@ close [1/2]valid(); // auto\r\n\t\tJCSystem.beginTransaction();\r\n\t\t////@ open valid(); // auto\r\n\t\t\r\n\t\t//@ transient_byte_arrays_mem(messageBuffer);\r\n\t\t//@ assert transient_byte_arrays(?as);\r\n\t\t//@ foreachp_remove(messageBuffer, as);\r\n\t\t////@ open transient_byte_array(messageBuffer); // auto\r\n\r\n\t\t// prepare the message buffer to the PKCS#1 (v1.5) structure\r\n\t\tpreparePkcs1ClearText(messageBuffer, ALG_SHA1_PKCS1, lc);\r\n\t\t// copy the SHA1 hash from the APDU to the message buffer\r\n\t\tUtil.arrayCopy(buffer, (short) (ISO7816.OFFSET_CDATA), messageBuffer, (short) (128 - lc), lc);\r\n\r\n\t\t//@ close transient_byte_array(messageBuffer);\r\n\t\t//@ foreachp_unremove(messageBuffer, as);\r\n\r\n\t\t////@ close valid(); // auto\r\n\t\tJCSystem.commitTransaction();\r\n\t\t////@ open [1/2]valid(); // auto\r\n\t\t// generate signature\r\n\t\t//@ transient_byte_arrays_mem(messageBuffer);\r\n\t\t//@ assert transient_byte_arrays(?as1);\r\n\t\t//@ foreachp_remove(messageBuffer, as1);\r\n\t\t////@ open transient_byte_array(messageBuffer); // auto\r\n\t\tcipher.doFinal(messageBuffer, (short) 0, (short) 128, buffer, (short) 0);\r\n\t\t//@ close transient_byte_array(messageBuffer); // todo\r\n\t\t//@ foreachp_unremove(messageBuffer, as1);\r\n\t\t////@ close [1/2]valid(); // auto\r\n\t}",
"public static void SM2Sign_fixed(String digest_str, String dA_str, String k_str){\n\n BigInteger digest = new BigInteger(digest_str,16);\n BigInteger dA = new BigInteger(dA_str,16);\n BigInteger k = new BigInteger(k_str,16);\n outer:\n for (;true;) {\n\n //BigInteger k = new BigInteger(256, random);\n //BigInteger k =new BigInteger(\"6CB28D99385C175C94F94E934817663FC176D925DD72B727260DBAAE1FB2F96F\",16);\n ECPoint Q = basePoint.multiply(k).normalize();\n if (debug) {\n System.out.println(\"kG x = \" + Q.getAffineXCoord().toBigInteger().toString(16).toUpperCase());\n System.out.println(\"kG y = \" + Q.getAffineYCoord().toBigInteger().toString(16).toUpperCase());\n }\n BigInteger r = digest.add(Q.getAffineXCoord().toBigInteger()).mod(n);\n if (r.signum() == 0 | r.add(k).equals(n)) {\n\n continue outer;\n }\n\n BigInteger Inv;\n Inv = dA.add(one).modInverse(n);\n if (debug) {\n System.out.println(\"Inv = \" + Inv.toString(16).toUpperCase());\n }\n BigInteger s = Inv.multiply(k.subtract(r.multiply(dA))).mod(n);\n if (s.signum()==0) continue outer;\n else {\n if(debug) {\n System.out.println(\"r = \" + r.toString(16).toUpperCase());\n System.out.println(\"s = \" + s.toString(16).toUpperCase());\n }\n Sign_r = r;\n Sign_s = s;\n Sign_r_str = r.toString(16).toUpperCase();\n Sign_s_str = s.toString(16).toUpperCase();\n return;\n }\n }\n\n }"
] | [
"0.6562393",
"0.62313855",
"0.6133846",
"0.6052236",
"0.59388477",
"0.59141266",
"0.59121585",
"0.59121585",
"0.59121585",
"0.5879209",
"0.5819605",
"0.58015156",
"0.57784986",
"0.5716552",
"0.5714771",
"0.56965715",
"0.5674825",
"0.56677884",
"0.5660696",
"0.56487626",
"0.5601954",
"0.55772614",
"0.55541945",
"0.55389977",
"0.55249214",
"0.5513193",
"0.5490963",
"0.54888785",
"0.54820967",
"0.5469386",
"0.54483044",
"0.54351515",
"0.54282343",
"0.54268193",
"0.54251593",
"0.54239523",
"0.5417766",
"0.54148895",
"0.540622",
"0.53984493",
"0.53969914",
"0.53881025",
"0.5372251",
"0.5371637",
"0.53548336",
"0.5346158",
"0.53362167",
"0.5327434",
"0.5327041",
"0.5323575",
"0.5323575",
"0.5323575",
"0.5321108",
"0.5319992",
"0.53004545",
"0.52916574",
"0.52646893",
"0.525651",
"0.5255314",
"0.5254923",
"0.5240182",
"0.5224673",
"0.5217995",
"0.52107024",
"0.5204191",
"0.52037364",
"0.52002394",
"0.51992077",
"0.5193244",
"0.51907325",
"0.5184597",
"0.51734275",
"0.51734275",
"0.51665914",
"0.5161766",
"0.515941",
"0.5155316",
"0.5132738",
"0.5127017",
"0.51259553",
"0.5124187",
"0.51160145",
"0.5115712",
"0.51141405",
"0.5107391",
"0.5106386",
"0.5103683",
"0.51000774",
"0.5099546",
"0.5099219",
"0.50980973",
"0.5097423",
"0.5096808",
"0.50944406",
"0.5091455",
"0.5088907",
"0.50887156",
"0.50763446",
"0.5070961",
"0.50532174"
] | 0.61238325 | 3 |
Insert fields of template | public boolean insertFieldsTemplate(Template template, ArrayList<FieldsTemplate> fields)
{
FieldsTemplateDAO daoTemplate = new FieldsTemplateDAO();
for (FieldsTemplate field:fields)
{
field.setTemplateId(template);
daoTemplate.saveNew(field);
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void insertTemplateFieldRows(Connection con,\n IdentifiedRecordTemplate template) throws SQLException, FormException {\n PreparedStatement insert = null;\n \n try {\n insert = con.prepareStatement(INSERT_TEMPLATE_FIELD);\n \n int internalId = template.getInternalId();\n FieldTemplate[] fields = template.getFieldTemplates();\n for (int i = 0; i < fields.length; i++) {\n insert.setInt(1, internalId);\n insert.setString(2, fields[i].getFieldName());\n insert.setInt(3, i);\n insert.setString(4, fields[i].getTypeName());\n if (fields[i].isMandatory()) {\n insert.setInt(5, 1);\n } else {\n insert.setInt(5, 0);\n }\n if (fields[i].isReadOnly()) {\n insert.setInt(6, 1);\n } else {\n insert.setInt(6, 0);\n }\n insert.setInt(7, 1);\n insert.execute();\n }\n } finally {\n DBUtil.close(insert);\n }\n }",
"public void addField(TemplateField field)\r\n{\r\n\tfields.addElement(field);\r\n}",
"@Test\n public void fieldTemplate() throws Exception {\n Document doc = new Document();\n DocumentBuilder builder = new DocumentBuilder(doc);\n\n // We can set a template name using by the fields. This property is used when the \"doc.AttachedTemplate\" is empty.\n // If this property is empty the default template file name \"Normal.dotm\" is used.\n doc.getFieldOptions().setTemplateName(\"\");\n\n FieldTemplate field = (FieldTemplate) builder.insertField(FieldType.FIELD_TEMPLATE, false);\n Assert.assertEquals(field.getFieldCode(), \" TEMPLATE \");\n\n builder.writeln();\n field = (FieldTemplate) builder.insertField(FieldType.FIELD_TEMPLATE, false);\n field.setIncludeFullPath(true);\n\n Assert.assertEquals(field.getFieldCode(), \" TEMPLATE \\\\p\");\n\n doc.updateFields();\n doc.save(getArtifactsDir() + \"Field.TEMPLATE.docx\");\n //ExEnd\n\n doc = new Document(getArtifactsDir() + \"Field.TEMPLATE.docx\");\n\n field = (FieldTemplate) doc.getRange().getFields().get(0);\n Assert.assertEquals(\" TEMPLATE \", field.getFieldCode());\n Assert.assertEquals(\"Normal.dotm\", field.getResult());\n\n field = (FieldTemplate) doc.getRange().getFields().get(1);\n Assert.assertEquals(\" TEMPLATE \\\\p\", field.getFieldCode());\n Assert.assertEquals(\"Normal.dotm\", field.getResult());\n }",
"private void insertFieldRows(Connection con,\n IdentifiedRecordTemplate template, GenericDataRecord record)\n throws SQLException, FormException, CryptoException {\n PreparedStatement insert = null;\n \n try {\n insert = con.prepareStatement(INSERT_FIELD);\n int recordId = record.getInternalId();\n String[] fieldNames = record.getFieldNames();\n Map<String, String> rows = new HashMap<String, String>();\n for (String fieldName : fieldNames) {\n Field field = record.getField(fieldName);\n String fieldValue = field.getStringValue();\n rows.put(fieldName, fieldValue);\n }\n \n if (template.isEncrypted()) {\n rows = getEncryptionService().encryptContent(rows);\n }\n \n for (String fieldName : rows.keySet()) {\n String fieldValue = rows.get(fieldName);\n insert.setInt(1, recordId);\n insert.setString(2, fieldName);\n insert.setString(3, fieldValue);\n insert.execute();\n }\n } finally {\n DBUtil.close(insert);\n }\n }",
"public static void insertField(Field field) {\n\t\t\n\t\ttry{\n Connection connection = getConnection();\n\n\n try {\n PreparedStatement statement = connection.prepareStatement(\"INSERT INTO template_fields (field_id, form_name, field_name, field_value, field_type, field_mandatory)\"\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" VALUES ('\"+field.getTheId()+\"', '\"+field.getTheFormName()+\"', '\"+field.getTheName()+\"', 'Here is text 424', '\"+field.getTheType()+\"', '\"+field.getTheMandatory()+\"')\"); \n statement.executeUpdate();\n\n statement.close();\n connection.close();\n } catch (SQLException ex) {\n \t//23 stands for duplicate / unique entries in db, so listen for that error and update db if so\n \tif (ex.getSQLState().startsWith(\"23\")) {\n System.out.println(\"Duplicate\");\n PreparedStatement statement = connection.prepareStatement(\"UPDATE template_fields SET \"\n \t\t+ \"field_id = '\"+field.getTheId()+\"', field_name = '\"+field.getTheName()+\"',\"\n \t\t+ \" field_value = 'here text', field_type = '\"+field.getTheType()+\"'\"\n \t\t\t\t+ \"WHERE field_id = '\"+field.getTheId()+\"' \"); \n\t\t\t\t\tstatement.executeUpdate();\n\t\t\t\t\t\n\t\t\t\t\tstatement.close();\n\t\t\t\t\tconnection.close();\n \t}\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\t}",
"public void setupFields()\n {\n FieldInfo field = null;\n field = new FieldInfo(this, \"ID\", Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Integer.class);\n field.setHidden(true);\n field = new FieldInfo(this, \"LastChanged\", Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Date.class);\n field.setHidden(true);\n field = new FieldInfo(this, \"Deleted\", 10, null, new Boolean(false));\n field.setDataClass(Boolean.class);\n field.setHidden(true);\n field = new FieldInfo(this, \"Description\", 25, null, null);\n field = new FieldInfo(this, \"CurrencyCode\", 3, null, null);\n field = new FieldInfo(this, \"LastRate\", 10, null, null);\n field.setDataClass(Double.class);\n field.setScale(-1);\n field = new FieldInfo(this, \"RateChangedDate\", 12, null, null);\n field.setDataClass(Date.class);\n field.setScale(Constants.DATE_ONLY);\n field = new FieldInfo(this, \"RateChangedBy\", 16, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, \"CostingRate\", 10, null, null);\n field.setDataClass(Double.class);\n field.setScale(-1);\n field = new FieldInfo(this, \"CostingChangedDate\", 12, null, null);\n field.setDataClass(Date.class);\n field.setScale(Constants.DATE_ONLY);\n field = new FieldInfo(this, \"CostingChangedBy\", 16, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, \"RoundAt\", 1, null, null);\n field.setDataClass(Short.class);\n field = new FieldInfo(this, \"IntegerDesc\", 20, null, \"Dollar\");\n field = new FieldInfo(this, \"FractionDesc\", 20, null, null);\n field = new FieldInfo(this, \"FractionAmount\", 10, null, new Integer(100));\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, \"Sign\", 3, null, \"$\");\n field = new FieldInfo(this, \"LanguageID\", Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, \"NaturalInteger\", 20, null, null);\n field = new FieldInfo(this, \"NaturalFraction\", 20, null, null);\n }",
"public void transformTemplate(Template t)\n\t{\n\t\tList<String> mandatory_subjects = getMandatorySubjects();\n\t\t\n\t\t// display the constrained properties in the correct order\n\t\tfor (ConstrainedProperty property : getPositionedProperties())\n\t\t{\n\t\t\t// only show the CMF admin properties that can be edited\n\t\t\tif (!property.isEditable())\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tt.setValue(\"property\", property.getPropertyName());\n\n\t\t\tboolean\t\thandled = false;\n\t\t\tMimeType\tmimetype = property.getMimeType();\n\t\t\tif (mimetype != null)\n\t\t\t{\n\t\t\t\tif (!property.isAutoRetrieved())\n\t\t\t\t{\n\t\t\t\t\tif (0 == mimetype.toString().indexOf(\"image/\"))\n\t\t\t\t\t{\n\t\t\t\t\t\thandled = true;\n\t\t\t\t\t\tif (t.hasBlock(\"existing_field-legend\"))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tt.setBlock(\"existing_field-legend\", \"existing_field-legend\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tt.setBlock(\"existing_field\", \"existing_field-image\");\n\t\t\t\t\t}\n\t\t\t\t\telse if (MimeType.RAW == mimetype)\n\t\t\t\t\t{\n\t\t\t\t\t\thandled = true;\n\t\t\t\t\t\tif (t.hasBlock(\"existing_field-legend\"))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tt.setBlock(\"existing_field-legend\", \"existing_field-legend\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tt.setBlock(\"existing_field\", \"existing_field-raw\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif (mimetype == MimeType.APPLICATION_XHTML)\n\t\t\t\t\t{\n\t\t\t\t\t\thandled = true;\n\t\t\t\t\t\tt.setBlock(\"existing_field\", \"existing_field-xhtml\");\n\t\t\t\t\t}\n\t\t\t\t\telse if (mimetype == MimeType.TEXT_PLAIN)\n\t\t\t\t\t{\n\t\t\t\t\t\thandled = true;\n\t\t\t\t\t\tt.setBlock(\"existing_field\", \"existing_field-text\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (!handled)\n\t\t\t{\n\t\t\t\tif (property.isUrl())\n\t\t\t\t{\n\t\t\t\t\tt.setBlock(\"existing_field\", \"existing_field-url\");\n\t\t\t\t}\n\t\t\t\telse if (property.isEmail())\n\t\t\t\t{\n\t\t\t\t\tt.setBlock(\"existing_field\", \"existing_field-email\");\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tt.setBlock(\"existing_field\", \"existing_field-generic\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tappendFormField(t, property, null, mandatory_subjects);\n\n\t\t\tif (t.hasBlock(\"existing_field-legend\"))\n\t\t\t{\n\t\t\t\tt.removeValue(\"existing_field-legend\");\n\t\t\t}\n\t\t}\n\n\t\t// handle the regular properties\n\t\tfor (String property_name : getRegularProperties())\n\t\t{\n\t\t\tappendFormField(t, null, property_name, mandatory_subjects);\n\t\t}\n\t}",
"public void templateMetadataInsert(Long idTemplate,Long idFieldLib)\n\t{\t\n\t\tFieldsTemplateLibrary lib = new FieldsTemplateLibrary();\n\t\tlib.setId(idFieldLib);\n\t\t\t\t\n\t\tFieldsMappingMeta metadata = new FieldsMappingMeta();\n\t\tmetadata.setTemplateId(idTemplate);\n\t\tmetadata.setFieldsTemplateLibrary(lib);\n\t\t\n\t\tFieldsMappingMetaDAO metaDao = new FieldsMappingMetaDAO();\n\t\tmetaDao.saveNew(metadata);\n\t}",
"private void selectTemplateFieldsFromXML(IdentifiedRecordTemplate template) throws FormException {\n \n GenericRecordTemplate genericRecordTemplate = null;\n \n try {\n PublicationTemplate publicationTemplateImpl = PublicationTemplateManager.getInstance()\n .loadPublicationTemplate(template.getTemplateName());\n genericRecordTemplate = (GenericRecordTemplate) publicationTemplateImpl\n .getRecordTemplate();\n template.setEncrypted(publicationTemplateImpl.isDataEncrypted());\n } catch (PublicationTemplateException e) {\n throw new FormException(\"GenericRecordSetManager\",\n \"form.EXP_UNKNOWN_TEMPLATE\", e);\n }\n \n GenericRecordTemplate wrapped = (GenericRecordTemplate) template.\n getWrappedTemplate();\n FieldTemplate[] fields = genericRecordTemplate.getFieldTemplates();\n \n for (FieldTemplate field : fields) {\n String displayName = field.getDisplayerName();\n GenericFieldTemplate fieldTemplate = new GenericFieldTemplate(field.\n getFieldName(), field.getTypeName());\n \n fieldTemplate.setMandatory(field.isMandatory());\n fieldTemplate.setReadOnly(field.isReadOnly());\n fieldTemplate.setHidden(field.isHidden());\n fieldTemplate.setDisabled(field.isDisabled());\n fieldTemplate.setSearchable(field.isSearchable());\n fieldTemplate.setDisplayerName((displayName != null) ? displayName : \"\");\n fieldTemplate.setLabel(field.getLabel());\n fieldTemplate.setUsedAsFacet(field.isUsedAsFacet());\n fieldTemplate.setParametersObj(field.getParametersObj());\n \n wrapped.addFieldTemplate(fieldTemplate);\n }\n }",
"int insert(CfgPrintTemplateAttr record);",
"private void insertFields()\n {\n RideDetails details=new RideDetails();\n details.setStartPt(editStartingPt.getText().toString());\n details.setEndPt(editEndingPt.getText().toString());\n\n try {\n details.setTravelDate(dateFormatter.parse(editDate.getText().toString()));\n\n } catch (ParseException e) {\n e.printStackTrace();\n }\n\n details.setNoSpot(Integer.parseInt(editNoSpot.getText().toString()));\n\n\n dbOperations(details);\n\n }",
"private void selectTemplateFieldRows(Connection con,\n IdentifiedRecordTemplate template) throws SQLException, FormException {\n PreparedStatement select = null;\n ResultSet rs = null;\n GenericRecordTemplate wrapped = (GenericRecordTemplate) template\n .getWrappedTemplate();\n \n try {\n select = con.prepareStatement(SELECT_TEMPLATE_FIELDS);\n select.setInt(1, template.getInternalId());\n rs = select.executeQuery();\n \n GenericFieldTemplate fieldTemplate = null;\n String fieldName;\n String fieldType;\n boolean isMandatory;\n boolean isReadOnly;\n boolean isHidden;\n while (rs.next()) {\n // templateId = rs.getInt(1);\n fieldName = rs.getString(2);\n // fieldIndex = rs.getInt(3);\n fieldType = rs.getString(4);\n isMandatory = rs.getBoolean(5);\n isReadOnly = rs.getBoolean(6);\n isHidden = rs.getBoolean(7);\n \n fieldTemplate = new GenericFieldTemplate(fieldName, fieldType);\n fieldTemplate.setMandatory(isMandatory);\n fieldTemplate.setReadOnly(isReadOnly);\n fieldTemplate.setHidden(isHidden);\n \n wrapped.addFieldTemplate(fieldTemplate);\n }\n } finally {\n DBUtil.close(rs, select);\n }\n }",
"protected void createFields()\n {\n createEffectiveLocalDtField();\n createDiscontinueLocalDtField();\n createScanTypeField();\n createContractNumberField();\n createContractTypeField();\n createProductTypeField();\n createStatusIndicatorField();\n createCivilMilitaryIndicatorField();\n createEntryUserIdField();\n createLastUpdateUserIdField();\n createLastUpdateTsField();\n }",
"void insertTagContent(TemplateTag tag){\r\n \t\tif(tag.found){\r\n \t\t\ttemplateParts.set(tag.templatePosition,tag.getContent());\r\n \t\t}\r\n \t}",
"private void init() {\n FieldWrapper id = new FieldWrapper();\n id.fieldDescription = new HashMap<String, Object>();\n id.fieldDescription.put(\"fullName\", \"Id\");\n id.fieldDescription.put(\"type\", \"Text\");\n\n FieldWrapper name = new FieldWrapper();\n name.fieldDescription = new HashMap<String, Object>();\n name.fieldDescription.put(\"fullName\", \"Name\");\n\n FieldWrapper createdBy = new FieldWrapper();\n createdBy.fieldDescription = new HashMap<String, Object>();\n createdBy.fieldDescription.put(\"fullName\", \"CreatedBy\");\n createdBy.fieldDescription.put(\"type\", \"Lookup\");\n\n FieldWrapper lastModifiedBy = new FieldWrapper();\n lastModifiedBy.fieldDescription = new HashMap<String, Object>();\n lastModifiedBy.fieldDescription.put(\"fullName\", \"LastModifiedBy\");\n lastModifiedBy.fieldDescription.put(\"type\", \"Lookup\");\n\n FieldWrapper owner = new FieldWrapper();\n owner.fieldDescription = new HashMap<String, Object>();\n owner.fieldDescription.put(\"fullName\", \"Owner\");\n owner.fieldDescription.put(\"type\", \"Lookup\");\n\n fieldDescribe = new HashMap<String, FieldWrapper>();\n\n fieldDescribe.put((String) id.fieldDescription.get(\"fullName\"), id);\n fieldDescribe.put((String) name.fieldDescription.get(\"fullName\"), name);\n fieldDescribe.put((String) createdBy.fieldDescription.get(\"fullName\"), createdBy);\n fieldDescribe.put((String) lastModifiedBy.fieldDescription.get(\"fullName\"), lastModifiedBy);\n fieldDescribe.put((String) owner.fieldDescription.get(\"fullName\"), owner);\n }",
"public void transformTemplate(Template t)\n\t{\n\t\tfor (ConstrainedProperty property : getPositionedProperties())\n\t\t{\n\t\t\t// only show the CMF admin properties that can be edited\n\t\t\tif (!property.isEditable())\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\t// setup the form field\n\t\t\tt.setValue(\"property\", property.getPropertyName());\n\t\t\t\n\t\t\tboolean\t\thandled = false;\n\t\t\tMimeType\tmimetype = property.getMimeType();\n\t\t\tif (mimetype != null)\n\t\t\t{\n\t\t\t\tif (!property.isAutoRetrieved())\n\t\t\t\t{\n\t\t\t\t\tif (0 == mimetype.toString().indexOf(\"image/\"))\n\t\t\t\t\t{\n\t\t\t\t\t\thandled = true;\n\t\t\t\t\t\tif (t.hasBlock(\"form_field-legend\"))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tt.setBlock(\"form_field-legend\", \"form_field-legend\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tt.setBlock(\"form_field\", \"form_field-image\");\n\t\t\t\t\t}\n\t\t\t\t\telse if (MimeType.RAW == mimetype)\n\t\t\t\t\t{\n\t\t\t\t\t\thandled = true;\n\t\t\t\t\t\tif (t.hasBlock(\"form_field-legend\"))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tt.setBlock(\"form_field-legend\", \"form_field-legend\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tt.setBlock(\"form_field\", \"form_field-raw\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif (MimeType.APPLICATION_XHTML == mimetype)\n\t\t\t\t\t{\n\t\t\t\t\t\thandled = true;\n\t\t\t\t\t\tt.setBlock(\"form_field\", \"form_field-xhtml\");\n\t\t\t\t\t}\n\t\t\t\t\telse if (MimeType.TEXT_PLAIN == mimetype)\n\t\t\t\t\t{\n\t\t\t\t\t\thandled = true;\n\t\t\t\t\t\tt.setBlock(\"form_field\", \"form_field-text\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (!handled)\n\t\t\t{\n\t\t\t\tif (property.isUrl())\n\t\t\t\t{\n\t\t\t\t\tt.setBlock(\"form_field\", \"form_field-url\");\n\t\t\t\t}\n\t\t\t\telse if (property.isEmail())\n\t\t\t\t{\n\t\t\t\t\tt.setBlock(\"form_field\", \"form_field-email\");\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tt.setBlock(\"form_field\", \"form_field-generic\");\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tt.appendBlock(\"fields\", \"field\");\n\n\t\t\tif (t.hasBlock(\"form_field-legend\"))\n\t\t\t{\n\t\t\t\tt.removeValue(\"form_field-legend\");\n\t\t\t}\n\t\t}\n\n\t\t// display the regular properties\n\t\tfor (String property_name : getRegularProperties())\n\t\t{\n\t\t\t// setup the form field\n\t\t\tt.setValue(\"property\", property_name);\n\t\t\tt.setBlock(\"form_field\", \"form_field-generic\");\n\t\t\tt.appendBlock(\"fields\", \"field\");\n\t\t}\n\t}",
"public FieldsTemplateLibrary templateFieldLibraryInsert(FieldsTemplateLibrary entity) {\n\t\tFieldsTemplateLibraryDAO dao = new FieldsTemplateLibraryDAO();\n\t\tentity = dao.saveNew(entity);\n\t\treturn entity;\n\t}",
"private void populateFields() {\n\t\ttypeNameTF.setText(\"\");\n\t\tunitsTF.setText(\"\");\n\t\tunitMeasureTF.setText(\"\");\n\t\tvalidityDaysTF.setText(\"\");\n\t\treorderPointTF.setText(\"\");\n\t\tnotesTF.setText(\"\");\n\t\tstatusCB.getItems().addAll(\"Active\", \"Inactive\");\n\t\tstatusCB.setValue(\"Active\");\n\t}",
"private void initFields(){\n labels.put(\"patientID\", new JLabel(\"Patient ID:\"));\n labels.put(\"newOwed\", new JLabel(\"New Owed:\"));\n \n fields.put(\"patientID\", new JTextField());\n fields.put(\"newOwed\", new JTextField());\n }",
"private void buildFields() {\r\n buildField(txtPizzaName, GUIResource.getLabel(DIALOG, NAME_PIZZA), 0);\r\n buildField(txtCustomerName, GUIResource.getLabel(DIALOG, NAME_CUSTOMER), 1);\r\n buildField(txtPhone, GUIResource.getLabel(DIALOG, PHONE), 2);\r\n buildField(txtEmail, GUIResource.getLabel(DIALOG, EMAIL), 3);\r\n }",
"public void addTextFieldsAndLabels(){\n this.add(this.firstLabel);\n this.add(firstNameField);\n this.add(this.secondLabel);\n this.add(lastNameField);\n }",
"int insertSelective(CfgPrintTemplateAttr record);",
"public void createFieldEditors()\n\t{\n\t}",
"public BaseField setupField(int iFieldSeq)\n {\n BaseField field = null;\n if (iFieldSeq == 0)\n field = new HotelField(this, PRODUCT_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 1)\n // field = new DateField(this, START_DATE, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 2)\n // field = new DateField(this, END_DATE, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 3)\n // field = new StringField(this, DESCRIPTION, 10, null, null);\n //if (iFieldSeq == 4)\n // field = new CityField(this, CITY_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 5)\n // field = new CityField(this, TO_CITY_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 6)\n // field = new ContinentField(this, CONTINENT_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 7)\n // field = new RegionField(this, REGION_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 8)\n // field = new CountryField(this, COUNTRY_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 9)\n // field = new StateField(this, STATE_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 10)\n // field = new VendorField(this, VENDOR_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n if (iFieldSeq == 11)\n field = new HotelRateField(this, RATE_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n if (iFieldSeq == 12)\n field = new HotelClassField(this, CLASS_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 13)\n // field = new DateField(this, DETAIL_DATE, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 14)\n // field = new ShortField(this, PAX, Constants.DEFAULT_FIELD_LENGTH, null, new Short((short)2));\n //if (iFieldSeq == 15)\n // field = new HotelScreenRecord_LastChanged(this, LAST_CHANGED, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 16)\n // field = new BooleanField(this, REMOTE_QUERY_ENABLED, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 17)\n // field = new ShortField(this, BLOCKED, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 18)\n // field = new ShortField(this, OVERSELL, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 19)\n // field = new BooleanField(this, CLOSED, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 20)\n // field = new BooleanField(this, DELETE, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 21)\n // field = new BooleanField(this, READ_ONLY, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 22)\n // field = new ProductSearchTypeField(this, PRODUCT_SEARCH_TYPE_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 23)\n // field = new ProductTypeField(this, PRODUCT_TYPE_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n if (iFieldSeq == 24)\n field = new PaxCategorySelect(this, PAX_CATEGORY_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n if (field == null)\n field = super.setupField(iFieldSeq);\n return field;\n }",
"protected abstract void createFieldEditors();",
"public void formatFields() {\r\n\t}",
"public interface ITemplateObjectField {\n\t/**\n\t * Field Type;\n\t * \n\t * @author crazyjohn\n\t *\n\t */\n\tenum FieldType {\n\t\tSHORT, INT, LONG, FLOAT, DOUBLE, STRING, ARRAY, LIST, SET, MAP;\n\n\t\tpublic static FieldType typeOf(String fieldType) {\n\t\t\t// TODO Auto-generated method stub\n\t\t\treturn null;\n\t\t}\n\t}\n\n\t/**\n\t * Get the field type;\n\t * \n\t * @return\n\t */\n\tpublic FieldType getType();\n\n\t/**\n\t * Get type name;\n\t * \n\t * @return\n\t */\n\tpublic String getTypeName();\n\n\t/**\n\t * Get the fieldName;\n\t * \n\t * @return\n\t */\n\tpublic String getName();\n\n\t/**\n\t * Get the field comment;\n\t * \n\t * @return\n\t */\n\tpublic String getComment();\n}",
"private void addFields(StringBuilder xml) {\n\t\tfor(FieldRequest field : fields) {\n\t\t\tstartElementWithAttributes(xml, \"Delta\");\n\t\t\taddStringAttribute(xml, \"id\", field.getId());\n\t\t\taddBooleanAttribute(xml, \"masked\", field.getMasked());\n\t\t\tcloseSimpleElementWithAttributes(xml);\n\t\t}\n\t}",
"public void createFieldEditors() \n\t{\n\t\n\tprefix = new StringFieldEditor(PreferenceConstants.PSQL_PREFIX, \"Verbindungsprefix:\", 14, getFieldEditorParent());\n\taddField(prefix);\n\t\n\tip = new StringFieldEditor(PreferenceConstants.PSQL_IP, \"IP-Adresse der Datenbank:\", 14, getFieldEditorParent());\n\taddField(ip);\n\t\n\tport = new IntegerFieldEditor(PreferenceConstants.PSQL_PORT, \"Port der Datenbank:\", getFieldEditorParent(),5);\n\taddField(port);\n\t\n\tdb = new StringFieldEditor(PreferenceConstants.PSQL_DATABASE, \"Name des Datenbankschemas:\", 14, getFieldEditorParent());\n\taddField(db);\n\t\n\tuser = new StringFieldEditor(PreferenceConstants.PSQL_USER, \"Name des Datenbankbenutzers:\", 14, getFieldEditorParent());\n\taddField(user);\n\n\tpasswort = new StringFieldEditor(PreferenceConstants.PSQL_PASSWORT, \"Passwort des Datenbankbenutzers:\", 14, getFieldEditorParent());\n\taddField(passwort);\n\n\t}",
"@Override\n public void bindView(View view, Context context, Cursor cursor) {\n // Find fields to populate in inflated template\n\n TextView name = (TextView) view.findViewById(R.id.label3nazwa);\n TextView date = (TextView) view.findViewById(R.id.label1data);\n TextView type = (TextView) view.findViewById(R.id.label2typ);\n TextView value = (TextView) view.findViewById(R.id.label4wartosc);\n // Extract properties from cursor\n String nazwa = cursor.getString(cursor.getColumnIndexOrThrow(\"nazwa\"));\n String typ_id = cursor.getString(cursor.getColumnIndexOrThrow(\"typ_id\"));\n String data = cursor.getString(cursor.getColumnIndexOrThrow(\"data\"));\n String wartosc = cursor.getString(cursor.getColumnIndexOrThrow(\"wartosc\"));\n // Populate fields with extracted properties\n name.setText(nazwa);\n date.setText(data);\n type.setText(typ_id);\n value.setText(wartosc);\n }",
"@Override\r\n protected void createDbContentCreateEdit() {\n DbContentCreateEdit dbContentCreateEdit = new DbContentCreateEdit();\r\n dbContentCreateEdit.init(null);\r\n form.getModelObject().setDbContentCreateEdit(dbContentCreateEdit);\r\n dbContentCreateEdit.setParent(form.getModelObject());\r\n ruServiceHelper.updateDbEntity(form.getModelObject()); \r\n }",
"int insert(TbFreightTemplate record);",
"public void addToTemplates() {\n mTemplateId = mPreferenceManager.getTemplateId();\n if (isConverted) {\n if (mPreferenceManager.getTemplateId().equals(ConstantsManager.CONVERTER_TEMPLATE_ID_DEFAULT)) {\n mTemplateId = mDatabaseManager.getTemplateNewId();\n mPreferenceManager.setTemplateId(mTemplateId);\n saveTemplate(mToastCreated);\n } else {\n showDialog();\n }\n } else {\n mBaseActivity.showToast(mToastFailure);\n }\n }",
"public void addField()\n {\n DefaultMutableTreeNode node = (DefaultMutableTreeNode) availableFieldsComp.getTree().getLastSelectedPathComponent();\n if (node == null || !node.isLeaf() || !(node.getUserObject() instanceof DataObjDataFieldWrapper) )\n {\n return; // not really a field that can be added, just empty or a string\n }\n\n Object obj = node.getUserObject();\n if (obj instanceof DataObjDataFieldWrapper)\n {\n DataObjDataFieldWrapper wrapper = (DataObjDataFieldWrapper) obj;\n String sep = sepText.getText();\n if (StringUtils.isNotEmpty(sep))\n {\n try\n {\n DefaultStyledDocument doc = (DefaultStyledDocument) formatEditor.getStyledDocument();\n if (doc.getLength() > 0)\n {\n doc.insertString(doc.getLength(), sep, null);\n }\n }\n catch (BadLocationException ble) {}\n \n }\n insertFieldIntoTextEditor(wrapper);\n setHasChanged(true);\n }\n }",
"public void addParagraphField(String label, String fill, int index) {\n //inflater needed to \"inflate\" layouts\n LayoutInflater inflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n //instantiate our data object.\n ElementParagraphField elementParagraphField = new ElementParagraphField(label, fill);\n //insert element data object in slot on page\n if (isLoading){\n currentPage.addElement(elementParagraphField);\n }else{\n currentPage.insertElement(index, elementParagraphField);\n }\n //we need to instantiate our xml fragment (text field) and bind it to the data object\n ParagraphFieldBinding paragraphFieldBinding = ParagraphFieldBinding.inflate(inflater, null,false);\n paragraphFieldBinding.setElementParagraghField(elementParagraphField);\n //get new view (our xml fragment -the text field) and add it to current view\n View newView = paragraphFieldBinding.getRoot();\n if (isInspecting){\n EditText editText = newView.findViewById(R.id.label);\n editText.setFocusable(false);\n }\n linearLayoutBody.addView(newView, index);\n Context context = App.getContext();\n LogManager.reportStatus(context, \"INSPECTOR\", \"onAddParagraphField\");\n }",
"public void setTemplate(Template template)\n/* */ {\n/* 62 */ this.template = template;\n/* */ }",
"public BaseField setupField(int iFieldSeq)\n {\n BaseField field = null;\n //if (iFieldSeq == 0)\n //{\n // field = new CounterField(this, ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n // field.setHidden(true);\n //}\n //if (iFieldSeq == 1)\n //{\n // field = new RecordChangedField(this, LAST_CHANGED, Constants.DEFAULT_FIELD_LENGTH, null, null);\n // field.setHidden(true);\n //}\n //if (iFieldSeq == 2)\n //{\n // field = new BooleanField(this, DELETED, Constants.DEFAULT_FIELD_LENGTH, null, new Boolean(false));\n // field.setHidden(true);\n //}\n if (iFieldSeq == 3)\n field = new StringField(this, NAME, 60, null, null);\n if (field == null)\n field = super.setupField(iFieldSeq);\n return field;\n }",
"void onPrepareForSubmit() {\n\t\t// Create the same list as was rendered.\n\t\t// Loop will write its input field values into the list's objects.\n\n\t\tcreatePersonsList();\n\n\t\t// Prepare to take a copy of each field.\n\n\t\trowNum = -1;\n\t\tfirstNameFieldCopyByRowNum = new HashMap<Integer, FieldCopy>();\n\t\tlastNameFieldCopyByRowNum = new HashMap<Integer, FieldCopy>();\n\t\tregionFieldCopyByRowNum = new HashMap<Integer, FieldCopy>();\n\t\tstartDateFieldCopyByRowNum = new HashMap<Integer, FieldCopy>();\n\t}",
"@Override\n\t\t\tpublic void visit(FieldDeclaration arg0, Object arg1) {\n\t\t\t\tchar type = ' ';\n\t\t\t\tif((arg0.getModifiers() & Modifier.PUBLIC) == Modifier.PUBLIC) {\n\t\t\t\t\ttype = '+';\n\t\t\t\t\tfor(Iterator<?> it = arg0.getVariables().iterator(); it.hasNext(); ) {\n\t\t\t\t\t\tif(getTemplateValue(arg0.getType().toString()) != \"\")\n\t\t\t\t\t\t\tusingTypes.add(new Pair(className, getTemplateValue(arg0.getType().toString()), true));\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tfields.add(type + \" \" + it.next() + \":\" + arg0.getType());\n\t\t\t\t\t\t\tusingTypes.add(new Pair(className, arg0.getType().toString()));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if((arg0.getModifiers() & Modifier.PRIVATE) == Modifier.PRIVATE) {\n\t\t\t\t\tfor(Iterator<?> it = arg0.getVariables().iterator(); it.hasNext(); ) {\n\t\t\t\t\t\tVariableDeclarator v = (VariableDeclarator) it.next();\n\t\t\t\t\t\tif(getTemplateValue(arg0.getType().toString()) != \"\")\n\t\t\t\t\t\t\tusingTypes.add(new Pair(className, getTemplateValue(arg0.getType().toString()), true));\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tnonPublic.add(new Variable(v.toString(), arg0.getType().toString(), Modifier.PRIVATE));\n\t\t\t\t\t\t\tusingTypes.add(new Pair(className, arg0.getType().toString()));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(type != ' ')\n\t\t\t\tsuper.visit(arg0, arg1);\n\t\t\t}",
"@Override\n\tprotected void initializeFields() {\n\n\t}",
"public TblrefTemplateRecord(Integer tempid, String tempname, String tempcontent, Byte isactive, Timestamp createddate, String createduser) {\n super(TblrefTemplate.TBLREF_TEMPLATE);\n\n set(0, tempid);\n set(1, tempname);\n set(2, tempcontent);\n set(3, isactive);\n set(4, createddate);\n set(5, createduser);\n }",
"private void insertTemplateRow(Connection con,\n IdentifiedRecordTemplate template) throws SQLException {\n PreparedStatement insert = null;\n \n try {\n int internalId = getNextId(TEMPLATE_TABLE, \"templateId\");\n template.setInternalId(internalId);\n String externalId = template.getExternalId();\n String templateName = template.getTemplateName();\n \n insert = con.prepareStatement(INSERT_TEMPLATE);\n insert.setInt(1, internalId);\n insert.setString(2, externalId);\n insert.setString(3, templateName);\n insert.execute();\n } finally {\n DBUtil.close(insert);\n }\n }",
"public void updateNonDynamicFields() {\n\n\t}",
"private void fillFields() {\n\t\tInteger owner = this.contractor.getOwner();\n\n\t\tnameField.setText(getTrimmedValue(this.contractor.getName()));\n\t\tlocationField.setText(getTrimmedValue(this.contractor.getLocation()));\n\t\townerField.setText(owner == null ? \"\" : owner.toString());\n\t\tsizeField.setText(contractor.getSize().toString());\n\t\trateField.setText(Contractor.RATE_FORMAT.format(this.contractor\n\t\t\t\t.getRate()));\n\t\tspecialtiesList.setListData(this.contractor.getSpecialties());\n\t}",
"@Override\n\tpublic void addTmly(Tmly tmly) {\n\t\tString sql = \"insert into tmly(id_,title,content) values(?,?,?)\";\n\t\tthis.jdbcTemplate\n\t\t\t\t.update(sql,\n\t\t\t\t\t\tnew Object[] { tmly.getId(), tmly.getTitle(),\n\t\t\t\t\t\t\t\ttmly.getContent() });\n\t}",
"public void PlaceHolders(){\n TextHolder holderUsuario = new TextHolder(\"Ingrese un usuario\", txtUsuario);\n TextHolder holderCorreo = new TextHolder(\"Ingrese su correo\",txtCorreo); \n }",
"private void updateFieldRows(Connection con,\n IdentifiedRecordTemplate template, GenericDataRecord record)\n throws SQLException, FormException, CryptoException {\n PreparedStatement update = null;\n PreparedStatement insert = null;\n \n try {\n update = con.prepareStatement(UPDATE_FIELD);\n int recordId = record.getInternalId();\n String[] fieldNames = record.getFieldNames();\n Map<String, String> rows = new HashMap<String, String>();\n for (String fieldName : fieldNames) {\n Field field = record.getField(fieldName);\n String fieldValue = field.getStringValue();\n \n SilverTrace.debug(\"form\", \"GenericRecordSetManager.updateFieldRows\",\n \"root.MSG_GEN_PARAM_VALUE\", \"fieldName = \" + fieldName\n + \", fieldValue = \" + fieldValue\n + \", recordId = \" + recordId);\n \n rows.put(fieldName, fieldValue);\n }\n \n if (template.isEncrypted()) {\n rows = getEncryptionService().encryptContent(rows);\n }\n \n for (String fieldName : rows.keySet()) {\n String fieldValue = rows.get(fieldName);\n update.setString(1, fieldValue);\n update.setInt(2, recordId);\n update.setString(3, fieldName);\n \n int nbRowsCount = update.executeUpdate();\n if (nbRowsCount == 0) {\n // no row has been updated because the field fieldName doesn't exist in database.\n // The form has changed since the last modification of the record.\n // So we must insert this new field.\n insert = con.prepareStatement(INSERT_FIELD);\n insert.setInt(1, recordId);\n insert.setString(2, fieldName);\n insert.setString(3, fieldValue);\n \n insert.execute();\n }\n }\n } finally {\n DBUtil.close(update);\n DBUtil.close(insert);\n }\n }",
"@Override\n\tpublic void setupAddFields(EquationStandardTransaction transaction)\n\t{\n\t\ttransaction.setFieldValue(\"GZCNEW\", \"Y\"); // Generate new card?\n\t\ttransaction.setFieldValue(\"GZCMOD\", \"A\"); // Mode - this must be 'A' when adding\n\t\ttransaction.setFieldValue(\"GZCNM1\", \"TEST AUTO\"); // Card name 1\n\t}",
"private void createFieldsComp() {\n Composite fieldComp = new Composite(shell, SWT.NONE);\n GridLayout gl = new GridLayout(2, false);\n GridData gd = new GridData(SWT.FILL, SWT.DEFAULT, true, false);\n fieldComp.setLayout(gl);\n fieldComp.setLayoutData(gd);\n\n Label nameLbl = new Label(fieldComp, SWT.LEFT);\n nameLbl.setText(\"Name: \");\n\n caseNameText = new Text(fieldComp, SWT.SINGLE);\n gd = new GridData(SWT.FILL, SWT.DEFAULT, true, false);\n gd.minimumWidth = 200;\n caseNameText.setLayoutData(gd);\n caseNameText.addKeyListener(new KeyAdapter() {\n\n @Override\n public void keyReleased(KeyEvent e) {\n super.keyReleased(e);\n if (e.character == SWT.CR || e.character == SWT.KEYPAD_CR) {\n if (verifySelection()) {\n close();\n }\n }\n }\n });\n }",
"void insertVariableFields(String streamColumnFamily, String rowKey,\n Mutator<String> mutator,\n Map<String, String> customKeyValuePairs) {\n for (Map.Entry<String, String> stringStringEntry : customKeyValuePairs.entrySet()) {\n mutator.addInsertion(rowKey, streamColumnFamily,\n HFactory.createStringColumn(stringStringEntry.getKey(),\n stringStringEntry.getValue()));\n }\n }",
"public BaseField setupField(int iFieldSeq)\n {\n BaseField field = null;\n //if (iFieldSeq == 0)\n // field = new TicketScreenRecord_ReportDate(this, REPORT_DATE, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 1)\n // field = new TicketScreenRecord_ReportTime(this, REPORT_TIME, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 2)\n // field = new TicketScreenRecord_ReportUserID(this, REPORT_USER_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 3)\n // field = new ShortField(this, REPORT_PAGE, Constants.DEFAULT_FIELD_LENGTH, null, new Short((short)1));\n //if (iFieldSeq == 4)\n // field = new IntegerField(this, REPORT_COUNT, Constants.DEFAULT_FIELD_LENGTH, null, new Integer(0));\n //if (iFieldSeq == 5)\n // field = new CurrencyField(this, REPORT_TOTAL, Constants.DEFAULT_FIELD_LENGTH, null, new Double(0));\n //if (iFieldSeq == 6)\n // field = new IntegerField(this, REPORT_KEY_AREA, Constants.DEFAULT_FIELD_LENGTH, null, null);\n if (iFieldSeq == 7)\n field = new ShortField(this, COUNT, Constants.DEFAULT_FIELD_LENGTH, null, null);\n if (iFieldSeq == 8)\n field = new CurrencyField(this, TOTAL, Constants.DEFAULT_FIELD_LENGTH, null, null);\n if (iFieldSeq == 9)\n field = new TicketReportOrderField(this, REPORT_ORDER, Constants.DEFAULT_FIELD_LENGTH, null, null);\n if (iFieldSeq == 10)\n field = new DateField(this, START_DEPARTURE, Constants.DEFAULT_FIELD_LENGTH, null, null);\n if (iFieldSeq == 11)\n field = new DateField(this, END_DEPARTURE, Constants.DEFAULT_FIELD_LENGTH, null, null);\n if (iFieldSeq == 12)\n field = new DateField(this, START_ISSUE, Constants.DEFAULT_FIELD_LENGTH, null, null);\n if (iFieldSeq == 13)\n field = new DateField(this, END_ISSUE, Constants.DEFAULT_FIELD_LENGTH, null, null);\n if (iFieldSeq == 14)\n field = new BooleanField(this, INCLUDE_VOID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n if (iFieldSeq == 15)\n field = new AirlineField(this, AIRLINE_1ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n if (iFieldSeq == 16)\n field = new AirlineField(this, AIRLINE_2ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n if (iFieldSeq == 17)\n field = new AirlineField(this, AIRLINE_3ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n if (iFieldSeq == 18)\n field = new AirlineField(this, AIRLINE_4ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n if (iFieldSeq == 19)\n field = new StringField(this, START_TICKET, 20, null, null);\n if (iFieldSeq == 20)\n field = new StringField(this, END_TICKET, 20, null, null);\n if (field == null)\n field = super.setupField(iFieldSeq);\n return field;\n }",
"private void addAdditionalFieldsTab()\n {\n\t\t// START OF ADDITIONAL FIELDS TAB ///\n\t\t// ////////////////////////\n \twAdditionalFieldsTab = new CTabItem(wTabFolder, SWT.NONE);\n \twAdditionalFieldsTab.setText(BaseMessages.getString(PKG, \"AccessInputDialog.AdditionalFieldsTab.TabTitle\"));\n\n \twAdditionalFieldsComp = new Composite(wTabFolder, SWT.NONE);\n\t\tprops.setLook(wAdditionalFieldsComp);\n\n\t\tFormLayout fieldsLayout = new FormLayout();\n\t\tfieldsLayout.marginWidth = 3;\n\t\tfieldsLayout.marginHeight = 3;\n\t\twAdditionalFieldsComp.setLayout(fieldsLayout);\n\t\t\n\t\t// ShortFileFieldName line\n\t\twlShortFileFieldName = new Label(wAdditionalFieldsComp, SWT.RIGHT);\n\t\twlShortFileFieldName.setText(BaseMessages.getString(PKG, \"AccessInputDialog.ShortFileFieldName.Label\"));\n\t\tprops.setLook(wlShortFileFieldName);\n\t\tfdlShortFileFieldName = new FormData();\n\t\tfdlShortFileFieldName.left = new FormAttachment(0, 0);\n\t\tfdlShortFileFieldName.top = new FormAttachment(wInclRownumField, margin);\n\t\tfdlShortFileFieldName.right = new FormAttachment(middle, -margin);\n\t\twlShortFileFieldName.setLayoutData(fdlShortFileFieldName);\n\n\t\twShortFileFieldName = new TextVar(transMeta, wAdditionalFieldsComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER);\n\t\tprops.setLook(wShortFileFieldName);\n\t\twShortFileFieldName.addModifyListener(lsMod);\n\t\tfdShortFileFieldName = new FormData();\n\t\tfdShortFileFieldName.left = new FormAttachment(middle, 0);\n\t\tfdShortFileFieldName.right = new FormAttachment(100, -margin);\n\t\tfdShortFileFieldName.top = new FormAttachment(wInclRownumField, margin);\n\t\twShortFileFieldName.setLayoutData(fdShortFileFieldName);\n\t\t\n\t\t\n\t\t// ExtensionFieldName line\n\t\twlExtensionFieldName = new Label(wAdditionalFieldsComp, SWT.RIGHT);\n\t\twlExtensionFieldName.setText(BaseMessages.getString(PKG, \"AccessInputDialog.ExtensionFieldName.Label\"));\n\t\tprops.setLook(wlExtensionFieldName);\n\t\tfdlExtensionFieldName = new FormData();\n\t\tfdlExtensionFieldName.left = new FormAttachment(0, 0);\n\t\tfdlExtensionFieldName.top = new FormAttachment(wShortFileFieldName, margin);\n\t\tfdlExtensionFieldName.right = new FormAttachment(middle, -margin);\n\t\twlExtensionFieldName.setLayoutData(fdlExtensionFieldName);\n\n\t\twExtensionFieldName = new TextVar(transMeta, wAdditionalFieldsComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER);\n\t\tprops.setLook(wExtensionFieldName);\n\t\twExtensionFieldName.addModifyListener(lsMod);\n\t\tfdExtensionFieldName = new FormData();\n\t\tfdExtensionFieldName.left = new FormAttachment(middle, 0);\n\t\tfdExtensionFieldName.right = new FormAttachment(100, -margin);\n\t\tfdExtensionFieldName.top = new FormAttachment(wShortFileFieldName, margin);\n\t\twExtensionFieldName.setLayoutData(fdExtensionFieldName);\n\t\t\n\t\t\n\t\t// PathFieldName line\n\t\twlPathFieldName = new Label(wAdditionalFieldsComp, SWT.RIGHT);\n\t\twlPathFieldName.setText(BaseMessages.getString(PKG, \"AccessInputDialog.PathFieldName.Label\"));\n\t\tprops.setLook(wlPathFieldName);\n\t\tfdlPathFieldName = new FormData();\n\t\tfdlPathFieldName.left = new FormAttachment(0, 0);\n\t\tfdlPathFieldName.top = new FormAttachment(wExtensionFieldName, margin);\n\t\tfdlPathFieldName.right = new FormAttachment(middle, -margin);\n\t\twlPathFieldName.setLayoutData(fdlPathFieldName);\n\n\t\twPathFieldName = new TextVar(transMeta, wAdditionalFieldsComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER);\n\t\tprops.setLook(wPathFieldName);\n\t\twPathFieldName.addModifyListener(lsMod);\n\t\tfdPathFieldName = new FormData();\n\t\tfdPathFieldName.left = new FormAttachment(middle, 0);\n\t\tfdPathFieldName.right = new FormAttachment(100, -margin);\n\t\tfdPathFieldName.top = new FormAttachment(wExtensionFieldName, margin);\n\t\twPathFieldName.setLayoutData(fdPathFieldName);\n\t\t\n\n\n \t\t// SizeFieldName line\n\t\twlSizeFieldName = new Label(wAdditionalFieldsComp, SWT.RIGHT);\n\t\twlSizeFieldName.setText(BaseMessages.getString(PKG, \"AccessInputDialog.SizeFieldName.Label\"));\n\t\tprops.setLook(wlSizeFieldName);\n\t\tfdlSizeFieldName = new FormData();\n\t\tfdlSizeFieldName.left = new FormAttachment(0, 0);\n\t\tfdlSizeFieldName.top = new FormAttachment(wPathFieldName, margin);\n\t\tfdlSizeFieldName.right = new FormAttachment(middle, -margin);\n\t\twlSizeFieldName.setLayoutData(fdlSizeFieldName);\n\n\t\twSizeFieldName = new TextVar(transMeta, wAdditionalFieldsComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER);\n\t\tprops.setLook(wSizeFieldName);\n\t\twSizeFieldName.addModifyListener(lsMod);\n\t\tfdSizeFieldName = new FormData();\n\t\tfdSizeFieldName.left = new FormAttachment(middle, 0);\n\t\tfdSizeFieldName.right = new FormAttachment(100, -margin);\n\t\tfdSizeFieldName.top = new FormAttachment(wPathFieldName, margin);\n\t\twSizeFieldName.setLayoutData(fdSizeFieldName);\n\t\t\n\t\t\n\t\t// IsHiddenName line\n\t\twlIsHiddenName = new Label(wAdditionalFieldsComp, SWT.RIGHT);\n\t\twlIsHiddenName.setText(BaseMessages.getString(PKG, \"AccessInputDialog.IsHiddenName.Label\"));\n\t\tprops.setLook(wlIsHiddenName);\n\t\tfdlIsHiddenName = new FormData();\n\t\tfdlIsHiddenName.left = new FormAttachment(0, 0);\n\t\tfdlIsHiddenName.top = new FormAttachment(wSizeFieldName, margin);\n\t\tfdlIsHiddenName.right = new FormAttachment(middle, -margin);\n\t\twlIsHiddenName.setLayoutData(fdlIsHiddenName);\n\n\t\twIsHiddenName = new TextVar(transMeta, wAdditionalFieldsComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER);\n\t\tprops.setLook(wIsHiddenName);\n\t\twIsHiddenName.addModifyListener(lsMod);\n\t\tfdIsHiddenName = new FormData();\n\t\tfdIsHiddenName.left = new FormAttachment(middle, 0);\n\t\tfdIsHiddenName.right = new FormAttachment(100, -margin);\n\t\tfdIsHiddenName.top = new FormAttachment(wSizeFieldName, margin);\n\t\twIsHiddenName.setLayoutData(fdIsHiddenName);\n\t\t\n\t\t// LastModificationTimeName line\n\t\twlLastModificationTimeName = new Label(wAdditionalFieldsComp, SWT.RIGHT);\n\t\twlLastModificationTimeName.setText(BaseMessages.getString(PKG, \"AccessInputDialog.LastModificationTimeName.Label\"));\n\t\tprops.setLook(wlLastModificationTimeName);\n\t\tfdlLastModificationTimeName = new FormData();\n\t\tfdlLastModificationTimeName.left = new FormAttachment(0, 0);\n\t\tfdlLastModificationTimeName.top = new FormAttachment(wIsHiddenName, margin);\n\t\tfdlLastModificationTimeName.right = new FormAttachment(middle, -margin);\n\t\twlLastModificationTimeName.setLayoutData(fdlLastModificationTimeName);\n\n\t\twLastModificationTimeName = new TextVar(transMeta, wAdditionalFieldsComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER);\n\t\tprops.setLook(wLastModificationTimeName);\n\t\twLastModificationTimeName.addModifyListener(lsMod);\n\t\tfdLastModificationTimeName = new FormData();\n\t\tfdLastModificationTimeName.left = new FormAttachment(middle, 0);\n\t\tfdLastModificationTimeName.right = new FormAttachment(100, -margin);\n\t\tfdLastModificationTimeName.top = new FormAttachment(wIsHiddenName, margin);\n\t\twLastModificationTimeName.setLayoutData(fdLastModificationTimeName);\n\t\t\n\t\t// UriName line\n\t\twlUriName = new Label(wAdditionalFieldsComp, SWT.RIGHT);\n\t\twlUriName.setText(BaseMessages.getString(PKG, \"AccessInputDialog.UriName.Label\"));\n\t\tprops.setLook(wlUriName);\n\t\tfdlUriName = new FormData();\n\t\tfdlUriName.left = new FormAttachment(0, 0);\n\t\tfdlUriName.top = new FormAttachment(wLastModificationTimeName, margin);\n\t\tfdlUriName.right = new FormAttachment(middle, -margin);\n\t\twlUriName.setLayoutData(fdlUriName);\n\n\t\twUriName = new TextVar(transMeta, wAdditionalFieldsComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER);\n\t\tprops.setLook(wUriName);\n\t\twUriName.addModifyListener(lsMod);\n\t\tfdUriName = new FormData();\n\t\tfdUriName.left = new FormAttachment(middle, 0);\n\t\tfdUriName.right = new FormAttachment(100, -margin);\n\t\tfdUriName.top = new FormAttachment(wLastModificationTimeName, margin);\n\t\twUriName.setLayoutData(fdUriName);\n\t\t\n\t\t// RootUriName line\n\t\twlRootUriName = new Label(wAdditionalFieldsComp, SWT.RIGHT);\n\t\twlRootUriName.setText(BaseMessages.getString(PKG, \"AccessInputDialog.RootUriName.Label\"));\n\t\tprops.setLook(wlRootUriName);\n\t\tfdlRootUriName = new FormData();\n\t\tfdlRootUriName.left = new FormAttachment(0, 0);\n\t\tfdlRootUriName.top = new FormAttachment(wUriName, margin);\n\t\tfdlRootUriName.right = new FormAttachment(middle, -margin);\n\t\twlRootUriName.setLayoutData(fdlRootUriName);\n\n\t\twRootUriName = new TextVar(transMeta, wAdditionalFieldsComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER);\n\t\tprops.setLook(wRootUriName);\n\t\twRootUriName.addModifyListener(lsMod);\n\t\tfdRootUriName = new FormData();\n\t\tfdRootUriName.left = new FormAttachment(middle, 0);\n\t\tfdRootUriName.right = new FormAttachment(100, -margin);\n\t\tfdRootUriName.top = new FormAttachment(wUriName, margin);\n\t\twRootUriName.setLayoutData(fdRootUriName);\n\t\n\n\t\tfdAdditionalFieldsComp = new FormData();\n\t\tfdAdditionalFieldsComp.left = new FormAttachment(0, 0);\n\t\tfdAdditionalFieldsComp.top = new FormAttachment(wStepname, margin);\n\t\tfdAdditionalFieldsComp.right = new FormAttachment(100, 0);\n\t\tfdAdditionalFieldsComp.bottom = new FormAttachment(100, 0);\n\t\twAdditionalFieldsComp.setLayoutData(fdAdditionalFieldsComp);\n\n\t\twAdditionalFieldsComp.layout();\n\t\twAdditionalFieldsTab.setControl(wAdditionalFieldsComp);\n\n\t\t// ///////////////////////////////////////////////////////////\n\t\t// / END OF ADDITIONAL FIELDS TAB\n\t\t// ///////////////////////////////////////////////////////////\n\n\t\t\n \t\n }",
"public void appendFields(List<Field> fields) {\n // zzzz! zzzz!\n }",
"protected void registerTemplate() {\n if (initialized) {\n queryTemplateName = \"shibboleth.resolver.dc.\" + getId();\n queryCreator.registerTemplate(queryTemplateName, queryTemplate);\n }\n }",
"public InsertTcFieldHandler(String text, String switches) {\n mFieldText = text;\n mFieldSwitches = switches;\n }",
"@Override\n\tpublic void insert(DhtmlxGridForm f) throws Exception {\n\t\t\n\t}",
"@Override\n\tpublic void preInsert() {\n\n\t}",
"Fields fields();",
"private void createPageContent() \n\t{\n\t\tGridLayout gl = new GridLayout(4, true);\n gl.verticalSpacing = 10;\n\t\t\n\t\tGridData gd;\n\t\tfinal Label wiz1Label = new Label(shell, SWT.NONE);\n\t\twiz1Label.setText(\"Enter Fields\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 4;\n\t\twiz1Label.setLayoutData(gd);\n\t\twiz1Label.pack();\n\t\tText nameInput = new Text(shell, SWT.BORDER);\n\t\tnameInput.setMessage(\"Name\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 2;\n\t\tnameInput.setLayoutData(gd);\n\t\tnameInput.pack();\n\t\t//Component\n\t\tText componentInput = new Text(shell, SWT.BORDER);\n\t\tcomponentInput.setMessage(\"Component\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 2;\n\t\tcomponentInput.setLayoutData(gd);\n\t\tcomponentInput.pack();\n\t\t//school\n\t\tText schoolInput = new Text(shell, SWT.BORDER);\n\t\tschoolInput.setMessage(\"School\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 2;\n\t\tschoolInput.setLayoutData(gd);\n\t\tschoolInput.pack();\n\t\t//range\n\t\tText rangeInput = new Text(shell, SWT.BORDER);\n\t\trangeInput.setMessage(\"Range\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 2;\n\t\trangeInput.setLayoutData(gd);\n\t\trangeInput.pack();\n\t\t//Effect\n\t\tText effectInput = new Text(shell, SWT.BORDER);\n\t\teffectInput.setMessage(\"Effect\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 4;\n\t\teffectInput.setLayoutData(gd);\n\t\teffectInput.pack();\n\t\t//castingtime\n\t\tText castimeInput = new Text(shell, SWT.BORDER);\n\t\tcastimeInput.setMessage(\"Casting Time\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 2;\n\t\tcastimeInput.setLayoutData(gd);\n\t\tcastimeInput.pack();\n\t\t//materialcomponent\n\t\tText materialInput = new Text(shell, SWT.BORDER);\n\t\tmaterialInput.setMessage(\"Material Component\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 2;\n\t\tmaterialInput.setLayoutData(gd);\n\t\tmaterialInput.pack();\n\t\t//Savingthrow\n\t\tText savthrowInput = new Text(shell, SWT.BORDER);\n\t\tsavthrowInput.setMessage(\"Saving Throw\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 2;\n\t\tsavthrowInput.setLayoutData(gd);\n\t\tsavthrowInput.pack();\n\t\t//Focus\n\t\tText focusInput = new Text(shell, SWT.BORDER);\n\t\tfocusInput.setMessage(\"Focus\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 2;\n\t\tfocusInput.setLayoutData(gd);\n\t\tfocusInput.pack();\n\t\t//Duration\n\t\tText durationInput = new Text(shell, SWT.BORDER);\n\t\tdurationInput.setMessage(\"Duration\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 2;\n\t\tdurationInput.setLayoutData(gd);\n\t\tdurationInput.pack();\n\t\t//spellresistance\n\t\tLabel resistanceLabel = new Label(shell, SWT.NONE);\n\t\tresistanceLabel.setText(\"Can Spell Be Resisted\");\n\t\tgd = new GridData(GridData.CENTER, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 1;\n\t\tresistanceLabel.setLayoutData(gd);\n\t\tresistanceLabel.pack();\n\t\tButton resistanceInput = new Button(shell, SWT.CHECK);\n\t\tgd = new GridData(GridData.CENTER, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 1;\n\t\tresistanceInput.setLayoutData(gd);\n\t\tresistanceInput.pack();\n\t\t//level\n\t\tText levelInput = new Text(shell, SWT.BORDER);\n\t\tlevelInput.setMessage(\"Level\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tlevelInput.setLayoutData(gd);\n\t\tlevelInput.pack();\n\t\t//Damage\n\t\tText damageInput = new Text(shell, SWT.BORDER);\n\t\tdamageInput.setMessage(\"Damage\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 1;\n\t\tdamageInput.setLayoutData(gd);\n\t\tdamageInput.pack();\n\t\t//DamageAlternative\n\t\tText damagealterInput = new Text(shell, SWT.BORDER);\n\t\tdamagealterInput.setMessage(\"Damage Alternative\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 2;\n\t\tdamagealterInput.setLayoutData(gd);\n\t\tdamagealterInput.pack();\n\t\n\t\t//description\n\t\t\n\t\tText descriptionInput = new Text(shell, SWT.WRAP | SWT.V_SCROLL);\n\t\tdescriptionInput.setText(\"Description (Optional)\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 4;\n\t\tgd.verticalSpan = 15;\n\t\tdescriptionInput.setLayoutData(gd);\n\t\tdescriptionInput.pack();\n\t\tLabel blank = new Label(shell, SWT.NONE);\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, true);\n\t\tgd.horizontalSpan = 4;\n\t\tblank.setLayoutData(gd);\n\t\tblank.pack();\n\t\tButton save = new Button(shell, SWT.PUSH);\n\n\t\tsave.setText(\"Save\");\n\t\tsave.addListener(SWT.Selection, new Listener()\n\t\t{\n\t\t\tpublic void handleEvent(Event event)\n\t\t\t{\n\t\t\t\tBoolean checkfault = false;\n\t\t\t\tLinkedHashMap<String, String> a = new LinkedHashMap<String, String>();\n\t\t\t\tif(nameInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tcheckfault = true;\n\t\t\t\t\tnameInput.setBackground(display.getSystemColor(SWT.COLOR_RED));\n\t\t\t\t}\n\t\t\t\tif(componentInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tcheckfault = true;\n\t\t\t\t\tcomponentInput.setBackground(display.getSystemColor(SWT.COLOR_RED));\n\t\t\t\t}\n\t\t\t\tif(schoolInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tcheckfault = true;\n\t\t\t\t\tschoolInput.setBackground(display.getSystemColor(SWT.COLOR_RED));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(castimeInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tcheckfault = true;\n\t\t\t\t\tcastimeInput.setBackground(display.getSystemColor(SWT.COLOR_RED));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(levelInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tcheckfault = true;\n\t\t\t\t\tlevelInput.setBackground(display.getSystemColor(SWT.COLOR_RED));\n\t\t\t\t}\n\t\t\t\tif(checkfault)\n\t\t\t\t{\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\ta.put(\"NAME\", nameInput.getText());\n\t\t\t\ta.put(\"COMPONENTS\", componentInput.getText());\n\t\t\t\ta.put(\"SCHOOL\", schoolInput.getText());\n\t\t\t\ta.put(\"CASTINGTIME\", castimeInput.getText());\n\t\t\t\ta.put(\"LEVEL\", levelInput.getText());\n\t\t\t\tif(resistanceInput.getSelection())\n\t\t\t\t{\n\t\t\t\t\ta.put(\"SPELLRESISTANCE\", \"YES\");\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\ta.put(\"SPELLRESISTANCE\", \"NO\");\n\t\t\t\t}\n\t\t\t\tif(!materialInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"MATERIALCOMPONENT\", materialInput.getText());\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif(!savthrowInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"SAVINGTHROW\", savthrowInput.getText());\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif(!focusInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"FOCUS\", focusInput.getText());\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif(!durationInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"DURATION\", durationInput.getText());\n\t\t\t\t}\n\t\t\t\tif(!damageInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"DAMAGE\", damageInput.getText());\n\t\t\t\t}\n\t\t\t\tif(!damagealterInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"DAMAGEALTERNATE\", damagealterInput.getText());\n\t\t\t\t}\n\t\t\t\tif(!rangeInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"RANGE\", rangeInput.getText());\n\t\t\t\t}\n\t\t\t\tif(!effectInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"EFFECT\", effectInput.getText());\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\ta.put(\"DESCRIPTION\", descriptionInput.getText());\n\t\t\t\tnewspell = new SpellEntity(a);\n\t\t\t\tMain.gameState.abilities.put(newspell.getName(), newspell);\n\t\t\t\tMain.gameState.customContent.put(newspell.getName(), newspell);\n\t\t\t\tshell.close();\n\t\t\t}\n\t\t}\n\t\t);\n\t\tgd = new GridData(GridData.FILL, GridData.CENTER, false, false);\n\t\tgd.horizontalSpan = 1;\n\t\tsave.setLayoutData(gd);\n\t\tsave.pack();\n\t\tshell.setLayout(gl);\n\t\tshell.layout();\n\t\tshell.pack();\n//\t\t//wizard\n//\t\t\t\tfinal Composite wizPanel = new Composite(shell, SWT.BORDER);\n//\t\t\t\twizPanel.setBounds(0,0,WIDTH, HEIGHT);\n//\t\t\t\tfinal StackLayout wizLayout = new StackLayout();\n//\t\t\t\twizPanel.setLayout(wizLayout);\n//\t\t\t\t\n//\t\t\t\t//Page1 -- Name\n//\t\t\t\tfinal Composite wizpage1 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\twizpage1.setBounds(0,0,WIDTH,HEIGHT);\n//\t\t\t\t\n//\t\t\t\tfinal Label wiz1Label = new Label(wizpage1, SWT.NONE);\n//\t\t\t\twiz1Label.setText(\"Enter Name (required)\");\n//\t\t\t\twiz1Label.pack();\n//\t\t\t\tfinal Text wizpage1text = new Text(wizpage1, SWT.BORDER);\n//\t\t\t\twizpage1text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage1text.setText(\"FireBall\");\n//\t\t\t\tButton next1 = createNextButton(wizpage1);//TODO cancel and previous button\n//\t\t\t\tcreateBackButton(wizpage1, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage1, wizPanel, wizLayout);\n//\t\t\t\tnext1.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage1text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspellname = wizpage1text.getText();\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tSystem.out.println(\"PANIC: ITEM WIZARD PAGE 1 OUT\");\n//\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz1Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t}\n//\t\t\t\t);\n//\t\t\t\t\n//\t\t\t\twizPages.add(wizpage1);\n//\t\t\t\t//Page2 -- component\n//\t\t\t\tfinal Composite wizpage2 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz2Label = new Label(wizpage2, SWT.NONE);\n//\t\t\t\twiz2Label.setText(\"Enter Component: (required)\");\n//\t\t\t\twiz2Label.pack();\n//\t\t\t\tfinal Text wizpage2text = new Text(wizpage2, SWT.BORDER);\n//\t\t\t\twizpage2text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage2text.setText(\"Fire\");\n//\t\t\t\tButton next2 = createNextButton(wizpage2);\n//\t\t\t\tcreateBackButton(wizpage2, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage2, wizPanel, wizLayout);\n//\t\t\t\tnext2.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage2text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellcomp = wizpage2text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz2Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage2);\n//\t\t\t\t//Page3 -- School\n//\t\t\t\tfinal Composite wizpage3 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz3Label = new Label(wizpage3, SWT.NONE);\n//\t\t\t\twiz3Label.setText(\"Enter School: (required)\");\n//\t\t\t\twiz3Label.pack();\n//\t\t\t\tfinal Text wizpage3text = new Text(wizpage3, SWT.BORDER);\n//\t\t\t\twizpage3text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage3text.setText(\"Descruction\");\n//\t\t\t\tButton next3 = createNextButton(wizpage3);\n//\t\t\t\tcreateBackButton(wizpage3, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage3, wizPanel, wizLayout);\n//\t\t\t\tnext3.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage3text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspellschool = wizpage3text.getText();\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz3Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage3);\n//\t\t\t\t//Page4 -- Range\n//\t\t\t\tfinal Composite wizpage4 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz4Label = new Label(wizpage4, SWT.NONE);\n//\t\t\t\twiz4Label.setText(\"Enter Range: (required)\");\n//\t\t\t\twiz4Label.pack();\n//\t\t\t\tfinal Text wizpage4text = new Text(wizpage4, SWT.BORDER);\n//\t\t\t\twizpage4text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage4text.setText(\"50 feet\");\n//\t\t\t\tButton next4 = createNextButton(wizpage4);\n//\t\t\t\tcreateBackButton(wizpage4, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage4, wizPanel, wizLayout);\n//\t\t\t\tnext4.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage4text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspellrange = wizpage4text.getText();\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz4Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage4);\n//\t\t\t\t//Page5 -- effect\n//\t\t\t\tfinal Composite wizpage5 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz5Label = new Label(wizpage5, SWT.NONE);\n//\t\t\t\twiz5Label.setText(\"Enter Effect: (required)\");\n//\t\t\t\twiz5Label.pack();\n//\t\t\t\tfinal Text wizpage5text = new Text(wizpage5, SWT.BORDER);\n//\t\t\t\twizpage5text.setBounds(50, 50, 250, 150);\n//\t\t\t\twizpage5text.setText(\"No effect\");\n//\t\t\t\tButton next5 = createNextButton(wizpage5);\n//\t\t\t\tcreateBackButton(wizpage5, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage5, wizPanel, wizLayout);\n//\t\t\t\tnext5.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage5text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspelleffect = wizpage5text.getText();\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz5Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage5);\n//\t\t\t\t//Page6 -- casting time\n//\t\t\t\tfinal Composite wizpage6 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz6Label = new Label(wizpage6, SWT.NONE);\n//\t\t\t\twiz6Label.setText(\"Enter Casting Time: (required)\");\n//\t\t\t\twiz6Label.pack();\n//\t\t\t\tfinal Text wizpage6text = new Text(wizpage6, SWT.BORDER);\n//\t\t\t\twizpage6text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage6text.setText(\"1 turn\");\n//\t\t\t\tButton next6 = createNextButton(wizpage6);\n//\t\t\t\tcreateBackButton(wizpage6, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage6, wizPanel, wizLayout);\n//\t\t\t\tnext6.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage5text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspellcastime = wizpage6text.getText();\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz6Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage6);\n//\t\t\t\t//Page7 -- Material Component\n//\t\t\t\tfinal Composite wizpage7 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz7Label = new Label(wizpage7, SWT.NONE);\n//\t\t\t\twiz7Label.setText(\"Enter Material Component: (required)\");\n//\t\t\t\twiz7Label.pack();\n//\t\t\t\tfinal Text wizpage7text = new Text(wizpage7, SWT.BORDER);\n//\t\t\t\twizpage7text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage7text.setText(\"None\");\n//\t\t\t\tButton next7 = createNextButton(wizpage7);\n//\t\t\t\tcreateBackButton(wizpage7, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage7, wizPanel, wizLayout);\n//\t\t\t\tnext7.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage7text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellmaterial = wizpage7text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz7Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage7);\n//\t\t\t\t//Page8 -- saving throw\n//\t\t\t\tfinal Composite wizpage8 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz8Label = new Label(wizpage8, SWT.NONE);\n//\t\t\t\twiz8Label.setText(\"Enter Saving Throw: (required)\");\n//\t\t\t\twiz8Label.pack();\n//\t\t\t\tfinal Text wizpage8text = new Text(wizpage8, SWT.BORDER);\n//\t\t\t\twizpage8text.setBounds(50, 50, 200, 100);\n//\t\t\t\twizpage8text.setText(\"Will negate XX\");\n//\t\t\t\tButton next8 = createNextButton(wizpage8);\n//\t\t\t\tcreateBackButton(wizpage8, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage8, wizPanel, wizLayout);\n//\t\t\t\tnext8.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage8text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellsaving = wizpage8text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz8Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage8);\n//\t\t\t\t//Page9 -- Focus\n//\t\t\t\tfinal Composite wizpage9 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz9Label = new Label(wizpage9, SWT.NONE);\n//\t\t\t\twiz9Label.setText(\"Enter Focus: (required)\");\n//\t\t\t\twiz9Label.pack();\n//\t\t\t\tfinal Text wizpage9text = new Text(wizpage9, SWT.BORDER);\n//\t\t\t\twizpage9text.setBounds(50, 50, 200, 100);\n//\t\t\t\twizpage9text.setText(\"A dart\");\n//\t\t\t\tButton next9 = createNextButton(wizpage9);\n//\t\t\t\tcreateBackButton(wizpage9, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage9, wizPanel, wizLayout);\n//\t\t\t\tnext9.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage9text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellfocus = wizpage9text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz9Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage9);\n//\t\t\t\t//Page10 -- Duration\n//\t\t\t\tfinal Composite wizpage10 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz10Label = new Label(wizpage10, SWT.NONE);\n//\t\t\t\twiz10Label.setText(\"Enter Duration: (required)\");\n//\t\t\t\twiz10Label.pack();\n//\t\t\t\tfinal Text wizpage10text = new Text(wizpage10, SWT.BORDER);\n//\t\t\t\twizpage10text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage10text.setText(\"5 Turns\");\n//\t\t\t\tButton next10 = createNextButton(wizpage10);\n//\t\t\t\tcreateBackButton(wizpage10, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage10, wizPanel, wizLayout);\n//\t\t\t\tnext10.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage10text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellduration = wizpage10text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz10Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage10);\n//\t\t\t\t//Page11 -- Level\n//\t\t\t\tfinal Composite wizpage11 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz11Label = new Label(wizpage11, SWT.NONE);\n//\t\t\t\twiz11Label.setText(\"Enter Level (required)\");\n//\t\t\t\twiz11Label.pack();\n//\t\t\t\tfinal Text wizpage11text = new Text(wizpage11, SWT.BORDER);\n//\t\t\t\twizpage11text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage11text.setText(\"1\");\n//\t\t\t\tButton next11 = createNextButton(wizpage11);\n//\t\t\t\tcreateBackButton(wizpage11, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage11, wizPanel, wizLayout);\n//\t\t\t\tnext11.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage11text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\ttry\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tif(Integer.parseInt(wizpage11text.getText()) >= 0)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspelllevel = String.valueOf(Integer.parseInt(wizpage11text.getText()));\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twiz11Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\tcatch(NumberFormatException a)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twiz11Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz11Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage11);\n//\t\t\t\t//Page12 -- resistance\n//\t\t\t\tfinal Composite wizpage12 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz12Label = new Label(wizpage12, SWT.NONE);\n//\t\t\t\twiz12Label.setText(\"Enter Spell resistance: (Yes/No)\");\n//\t\t\t\twiz12Label.pack();\n//\t\t\t\tfinal Text wizpage12text = new Text(wizpage12, SWT.BORDER);\n//\t\t\t\twizpage12text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage12text.setText(\"Yes\");\n//\t\t\t\tButton next12 = createNextButton(wizpage12);\n//\t\t\t\tcreateBackButton(wizpage12, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage12, wizPanel, wizLayout);\n//\t\t\t\tnext12.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage12text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellresistance = wizpage12text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz12Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage12);\n//\t\t\t\t//Page13 - Description\n//\t\t\t\tfinal Composite wizpage13 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tLabel wiz13Label = new Label(wizpage13, SWT.NONE);\n//\t\t\t\twiz13Label.setText(\"Enter Description (Optional)\");\n//\t\t\t\twiz13Label.pack(); \n//\t\t\t\tfinal Text wizpage13text = new Text(wizpage13, SWT.BORDER);\n//\t\t\t\twizpage13text.setBounds(50, 50, 300, 200);\n//\t\t\t\twizpage13text.setText(\"Description here\");\n//\t\t\t\tButton next13 = createNextButton(wizpage13);\n//\t\t\t\tcreateBackButton(wizpage13, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage13, wizPanel, wizLayout);\n//\t\t\t\tnext13.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage13text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspellscript = wizpage13text.getText();\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspellscript = \"<empty>\";\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\tCreateVerificationPage(wizPanel, wizLayout);\n//\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\n//\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\n//\t\t\t\t\t\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage13);\n//\t\t\t\t\n//\t\t\t\twizLayout.topControl = wizpage1;\n//\t\t\t\twizPanel.layout();\n\t}",
"public void updatePropertyFields()\n {\n amountLabel .setText(retrieveText(\"AmountLabel\", amountLabel));\n reasonCodeLabel .setText(retrieveText(\"ReasonCodeLabel\", reasonCodeLabel));\n paidToLabel .setText(retrieveText(\"PaidToLabel\", paidToLabel));\n employeeIDLabel .setText(retrieveText(\"EmployeeIDLabel\", employeeIDLabel));\n addressLine1Label.setText(retrieveText(\"AddressLine1Label\", addressLine1Label));\n addressLine2Label.setText(retrieveText(\"AddressLine2Label\", addressLine2Label));\n addressLine3Label.setText(retrieveText(\"AddressLine3Label\", addressLine3Label));\n approvalCodeLabel.setText(retrieveText(\"ApprovalCodeLabel\", approvalCodeLabel));\n commentLabel .setText(retrieveText(\"CommentLabel\", commentLabel));\n\n amountField .setLabel(amountLabel);\n reasonCodeField .setLabel(reasonCodeLabel);\n paidToField .setLabel(paidToLabel);\n employeeIDField .setLabel(employeeIDLabel);\n addressLine1Field.setLabel(addressLine1Label);\n addressLine2Field.setLabel(addressLine2Label);\n addressLine3Field.setLabel(addressLine3Label);\n approvalCodeField.setLabel(approvalCodeLabel);\n commentField .setLabel(commentLabel);\n }",
"void bindTplData(Map<String, Object> binding, String[] params);",
"@Override\n\tprotected void buildRegFieldDefines() {\n\t\tIterator<FieldProperties> iter = fieldList.iterator();\n\t\t// traverse field list\n\t\twhile (iter.hasNext()) {\n\t\t\tFieldProperties field = iter.next();\n\t\t\tString fieldId = escapeReservedString(field.getPrefixedId()); \n\t\t\tString fieldClass = \"uvm_field_translate\";\n\t\t\toutputList.add(new OutputLine(indentLvl, fieldClass + \" \" + fieldId + \" = new(this, \" + field.getLowIndex() + \", \" + field.getFieldWidth() + \");\"));\n\t\t}\n\t}",
"@Override\r\n protected void setFieldValues (Object ... fields)\r\n {\n \r\n }",
"private void setNewFields(String[] fields) {\n for (String fieldName : fields) {\n setNewField(fieldName);\n }\n }",
"public void addTextField(String label, String fill, int index) {\n //inflater needed to \"inflate\" layouts\n LayoutInflater inflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n //instantiate our data object.\n ElementTextField elementTextField = new ElementTextField(label, fill);\n //insert element data object in slot on page\n if (isLoading){\n currentPage.addElement(elementTextField);\n }else{\n currentPage.insertElement(index, elementTextField);\n }\n //we need to instantiate our xml fragment (text field) and bind it to the data object\n TextFieldBinding textFieldBinding = TextFieldBinding.inflate(inflater, null,false);\n textFieldBinding.setElementTextField(elementTextField);\n //get new view (our xml fragment -the text field) and add it to current view\n View newView = textFieldBinding.getRoot();\n if (isInspecting){\n EditText editText = newView.findViewById(R.id.label);\n editText.setFocusable(false);\n }\n linearLayoutBody.addView(newView, index);\n Context context = App.getContext();\n LogManager.reportStatus(context, \"INSPECTOR\", \"onTextField\");\n }",
"@Override\n public void bindView(View view, Context context, Cursor cursor) {\n //Find fields to populate in inflated template\n TextView sportClubFirstName = (TextView)view.findViewById(R.id.firstNameTextView);\n TextView sportClubLastName = (TextView)view.findViewById(R.id.lastNameTextView);\n TextView sportClubSport = (TextView)view.findViewById(R.id.sportTextView);\n //Extract properties from cursor\n String firstName = cursor.getString(cursor.getColumnIndexOrThrow(MemberEntry.COLUMN_FIRST_NAME));\n String lastName = cursor.getString(cursor.getColumnIndexOrThrow(MemberEntry.COLUMN_LAST_NAME));\n String sportName = cursor.getString(cursor.getColumnIndexOrThrow(MemberEntry.COLUMN_SPORT));\n //Populate fields with extracted properties\n sportClubFirstName.setText(firstName);\n sportClubLastName.setText(lastName);\n sportClubSport.setText(sportName);\n }",
"public void createFieldEditors() {\n\t\taddField(\n\t\t\tnew BooleanFieldEditor(\n\t\t\t\tPreferenceConstants.PRETTY_CML,\n\t\t\t\t\"&Pretty print CML\",\n\t\t\t\tgetFieldEditorParent()));\n\t\tbioclipseLogging = new BooleanFieldEditor(\n\t\t\tPreferenceConstants.BIOCLIPSE_LOGGING,\n\t\t\t\"&Use Bioclipse Logging\",\n\t\t\tgetFieldEditorParent());\n\t\taddField(bioclipseLogging);\n\t}",
"private void createListFields(SGTable table) {\n\t\t\t\n\t\t ListGridField LIST_COLUMN_FIELD = new ListGridField(\"FIELD_ID\", Util.TI18N.LIST_COLUMN_FIELD(), 145); \n\t\t LIST_COLUMN_FIELD.setCanEdit(false);\n\t\t ListGridField LIST_COLUMN_CNAME = new ListGridField(\"FIELD_CNAME\", Util.TI18N.LIST_COLUMN_CNAME(), 105); \n\t\t LIST_COLUMN_CNAME.setCanEdit(false);\n\t\t ListGridField LIST_COLUMN_WIDTH = new ListGridField(\"FIELD_WIDTH\",Util.TI18N.LIST_COLUMN_WIDTH(),40); \n\t\t ListGridField LIST_SHOW_FLAG = new ListGridField(\"SHOW_FLAG\",Util.TI18N.LIST_SHOW_FLAG(),50);\n\t\t LIST_SHOW_FLAG.setType(ListGridFieldType.BOOLEAN);\n\t\t ListGridField MODIFY_FLAG=new ListGridField(\"MODIFY_FLAG\",\"\",50);\n\t\t MODIFY_FLAG.setType(ListGridFieldType.BOOLEAN);\n\t\t MODIFY_FLAG.setHidden(true);\n\t\t table.setFields(LIST_COLUMN_FIELD, LIST_COLUMN_CNAME, LIST_COLUMN_WIDTH, LIST_SHOW_FLAG,MODIFY_FLAG);\n\t}",
"public void addContactDetails() {\n firstNameField.setText(contact.getFirstName());\n middleNameField.setText(contact.getMiddleName());\n lastNameField.setText(contact.getLastName());\n\n homePhoneField.setText(contact.getHomePhone());\n workPhoneField.setText(contact.getWorkPhone());\n\n homeAddressField.setText(contact.getHomeAddress());\n workAddressField.setText(contact.getWorkAddress());\n\n personalEmailField.setText(contact.getPersonalEmail());\n workEmailField.setText(contact.getWorkEmail());\n\n }",
"public void createFieldEditors() {\n\t\tString[][] namespaceComboData = getSynapseNamespaceComboData();\n\t\taddField(new ComboFieldEditor(PreferenceConstants.PREF_NAMESPACE,\n\t\t \"Default namespace\",namespaceComboData,\n\t\t getFieldEditorParent()));\n\t}",
"private void createUserListFields(SGTable table) {\n\t\t ListGridField LIST_COLUMN_ID = new ListGridField(\"FIELD_ID\", Util.TI18N.LIST_COLUMN_FIELD(), 145);\n\t\t LIST_COLUMN_ID.setCanEdit(false);\n\t\t ListGridField LIST_COLUMN_CNAME = new ListGridField(\"FIELD_CNAME\", Util.TI18N.LIST_COLUMN_CNAME(), 105);\n\t\t LIST_COLUMN_CNAME.setCanEdit(false);\n\t\t ListGridField COLUMN_WIDTH = new ListGridField(\"FIELD_WIDTH\", Util.TI18N.LIST_COLUMN_WIDTH(), 40);\n\t\t LIST_COLUMN_CNAME.setCanEdit(false);\n\t\t table.setFields(LIST_COLUMN_ID, LIST_COLUMN_CNAME, COLUMN_WIDTH);\n }",
"public boolean updateFieldsTemplate(ArrayList<FieldsTemplate> fields)\n\t{\n\t\tFieldsTemplateDAO daoTemplate = new FieldsTemplateDAO();\n\t\t\n\t\tfor (FieldsTemplate field:fields)\n\t\t{\n\t\t\tdaoTemplate.save(field);\t\n\t\t}\n\t\t\n\t\treturn true;\n\t}",
"@Override\n\t\tpublic TemplateType addTemplate() {\n\t\t\treturn this;\n\t\t}",
"public static void registerFields(Multimap<String,NormalizedContentInterface> f) {\n fields = f;\n }",
"private void enableFields() {\n\t\t\t\t\t\tholderMain.editTextParametername.setEnabled(true);\n\t\t\t\t\t\tholderMain.editTextParameterValue.setEnabled(true);\n\n\t\t\t\t\t}",
"public interface FieldReference {\n\n /**\n *\n * @return variable name of the field\n */\n String getVariableName();\n\n /**\n *\n * @return type of the field\n */\n Type getType();\n\n /**\n * @return additional template parameters\n */\n default Map<String, Object> getTemplateParameter() {\n return null;\n }\n}",
"private void processFields(Element node, EplusObject object) {\n\t\tList<Element> children = node.getChildren();\n\t\tIterator<Element> iterator = children.iterator();\n\t\twhile (iterator.hasNext()) {\n\t\t\tElement child = iterator.next();\n\t\t\tKeyValuePair pair = new KeyValuePair(child.getAttributeValue(\"description\"), child.getText());\n\t\t\tobject.addField(pair);\n\t\t}\n\t}",
"private void saveTemplate()\r\n {\r\n\t String template = keyField.getText();\r\n\r\n\t int lenI = values.length, lenJ, lenK;\r\n\t String[][][] newValues = new String[lenI][][];\r\n\t for (int i=0; i<lenI; i++)\r\n\t {\r\n\t\t lenJ = values[i].length;\r\n\t\t newValues[i] = new String[lenJ][];\r\n\t\t for (int j=0; j<lenJ; j++)\r\n\t\t {\r\n\t\t\t lenK = values[i][j].length;\r\n\t\t\t newValues[i][j] = new String[lenK];\r\n\t\t\t for (int k=0; k<lenK; k++)\r\n\t\t\t\t values[i][j][k] = values[i][j][k];\r\n\t\t }\r\n\t }\r\n\t \r\n\t if (template.length()==0)\r\n\t {\r\n\t\t label.setText(\"Please enter a valid template name\");\r\n\t\t return;\r\n\t }\r\n\t \r\n\t // Update or store to the list of templates.\r\n for (int i=0; i<newValues.length; i++)\r\n \t for (int j=0; j<newValues[i].length; j++)\r\n\t\t\t newValues[i][j] = getComponentArray(components[i][j]);\r\n \r\n \t if (!definitionBox.isSelected())\r\n \t {\r\n \t\t newValues[FormatData.t.D_HDR.ordinal()] \r\n \t\t\t\t = newValues[FormatData.t.D_FLD.ordinal()] \r\n \t\t\t\t\t\t = new String[0][0];\r\n \t }\r\n \t if (!categoryBox.isSelected())\r\n \t {\r\n \t\t newValues[FormatData.t.C_HDR.ordinal()] \r\n \t\t\t\t = newValues[FormatData.t.C_FLD.ordinal()] \r\n \t\t\t\t\t\t = new String[0][0];\r\n \t }\r\n \t if (!exampleBox.isSelected())\r\n \t {\r\n \t\t newValues[FormatData.t.E_HDR.ordinal()] \r\n \t\t\t\t = newValues[FormatData.t.E_FLD.ordinal()] \r\n \t\t\t\t\t\t = new String[0][0];\r\n \t }\r\n\r\n templates.setTemplate(template, newValues);\r\n\r\n if (!model.contains(template))\r\n\t {\r\n\t int size = templateKeys.length;\r\n\t String[] newTemplates = new String[templateKeys.length + 1];\r\n\t if (templateKeys.length != 0)\r\n\t \t System.arraycopy(templateKeys, 0, newTemplates, 0, size);\r\n\t \r\n\t newTemplates[size] = template;\r\n\t templateKeys = newTemplates;\r\n\t model.add(size, templateKeys[size]);\r\n\t list.setSelectedIndex(size);\r\n\t }\r\n label.setText(\"Display format \" + template + \" saved\");\r\n }",
"public void setFieldDetails(){\n if (this.project != null){\n projectTitleField.setText( project.getTitle() );\n projectDescriptionField.setText( project.getDescription() );\n colorThemeField.setValue( Color.valueOf(project.getColorTheme()) );\n dueDateField.setValue( project.getDueDate() );\n createProjectBtn.setText( \"Update Project\" );\n }\n\n }",
"public static void generateNewField(int w,int h,String title){\n\t\tScaling.setPicCoords(w,h);\n\t\tviewPort = new ViewPort(title);\n\t}",
"@Override\r\n protected void buildEditingFields() {\r\n LanguageCodeComboBox languageCodeComboBox = new LanguageCodeComboBox();\r\n languageCodeComboBox.setAllowBlank(false);\r\n languageCodeComboBox.setToolTip(\"The translation language's code is required. It can not be null. Please select one or delete the row.\");\r\n BoundedTextField tf = new BoundedTextField();\r\n tf.setMaxLength(256);\r\n tf.setToolTip(\"This is the translation corresponding to the selected language. This field is required. It can not be null.\");\r\n tf.setAllowBlank(false);\r\n addColumnEditorConfig(languageCodeColumnConfig, languageCodeComboBox);\r\n addColumnEditorConfig(titleColumnConfig, tf);\r\n }",
"public void initializeLayout(){\r\n\tsuper.addField(FIELDTYPE_PICX, 1);\r\n\tsuper.addField(FIELDTYPE_PICX, 8);\r\n\tsuper.addField(FIELDTYPE_PICX, 1);\r\n\tsuper.addField(FIELDTYPE_PICX, 3);\r\n\tsuper.addField(FIELDTYPE_PICX, 5);\r\n\tsuper.addField(FIELDTYPE_PICX, 18);\r\n\tsuper.addField(FIELDTYPE_PICX, 4);\r\n\tsuper.addField(FIELDTYPE_PICX, 110);\r\n\tsuper.addField(FIELDTYPE_PICX, 105);\r\n}",
"@attribute(value = \"\", required = true)\t\r\n\tpublic void addField(Field f) {\r\n\t\tfields.put(\"\" + fieldCount++, f);\r\n\t}",
"private void addInputFields() {\n dogName = new JTextField();\n dogName.setBounds(205, 160, 140, 25);\n\n weight = new JTextField();\n weight.setBounds(205, 180, 140, 25);\n\n food = new JTextField();\n food.setBounds(205, 200, 140, 25);\n\n this.add(dogName);\n this.add(weight);\n this.add(food);\n }",
"protected abstract void initViewValue(final T field);",
"private void populateFields() {\n\n if (mReportCursor == null) {\n return;\n }\n\n Cursor c = mReportCursor;\n mValueText.setText(c.getString(c.getColumnIndexOrThrow(ReportPeer.KEY_VALUE)));\n }",
"public void addHeadingField(String label, int index) {\n //inflater needed to \"inflate\" layouts\n LayoutInflater inflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n //instantiate our data object.\n ElementHeadingField elementHeadingField = new ElementHeadingField(label);\n //insert element data object in slot on page\n if (isLoading){\n currentPage.addElement(elementHeadingField);\n }else{\n currentPage.insertElement(index, elementHeadingField);\n }\n //we need to instantiate our xml fragment (text field) and bind it to the data object\n HeadingFieldBinding headingFieldBinding = HeadingFieldBinding.inflate(inflater, null,false);\n headingFieldBinding.setElementHeadingField(elementHeadingField);\n //get new view (our xml fragment -the text field) and add it to current view\n View newView = headingFieldBinding.getRoot();\n if (isInspecting){\n EditText editText = newView.findViewById(R.id.label);\n editText.setFocusable(false);\n }\n linearLayoutBody.addView(newView, index);\n Context context = App.getContext();\n LogManager.reportStatus(context, \"INSPECTOR\", \"onAddHeadingField\");\n }",
"private static void addFields(StringBuilder xml, final String input) {\n\t\tMatcher m = FIELDS.matcher(input);\n\n\t\twhile (m.find()) {\n\t\t\tString tag = FIELDS_TO_TAGS.get(m.group(1));\n\n\t\t\tif (tag != null) {\n\t\t\t\tString value = m.group(2);\n\n\t\t\t\t// test for semester\n\t\t\t\tMatcher semMatcher = SEMESTER.matcher(value);\n\t\t\t\tif (semMatcher.find()) {\n\t\t\t\t\tif (semMatcher.group(1).equals(\"WS\")) {\n\t\t\t\t\t\tvalue = \"20\" + semMatcher.group(2)\n\t\t\t\t\t\t\t+ \"/20\" + semMatcher.group(3);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tvalue = semMatcher.group(2) + semMatcher.group(3);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\taddTag(xml, tag, value);\n\t\t\t}\n\t\t}\n\t}",
"@Override\n protected void initializeFields() {\n \tsuper.initializeFields();\n\n \taddField(new DcField(DcMediaObject._A_TITLE, getIndex(), \"Title\", \n false, true, false, true, \n 255, ComponentFactory._SHORTTEXTFIELD, getIndex(), DcRepository.ValueTypes._STRING,\n \"Title\"));\n addField(new DcField(DcMediaObject._B_DESCRIPTION, getIndex(), \"Description\", \n false, true, false, true, \n 0, ComponentFactory._LONGTEXTFIELD, getIndex(), DcRepository.ValueTypes._STRING,\n \"Description\"));\n addField(new DcField(DcMediaObject._C_YEAR, getIndex(), \"Year\", \n false, true, false, true, \n 4, ComponentFactory._NUMBERFIELD, getIndex(), DcRepository.ValueTypes._LONG,\n \"Year\"));\n\n if (getIndex() != DcModules._IMAGE && !isAbstract())\n addField(new DcField(DcMediaObject._D_LANGUAGE, getIndex(), \"Languages\", \n true, true, false, true, \n 255, ComponentFactory._REFERENCESFIELD, DcModules._LANGUAGE, DcRepository.ValueTypes._DCOBJECTCOLLECTION,\n \"Languages\"));\n \n addField(new DcField(DcMediaObject._E_RATING, getIndex(), \"Rating\", \n false, true, false, true, \n 255, ComponentFactory._RATINGCOMBOBOX, getIndex(), DcRepository.ValueTypes._LONG,\n \"Rating\"));\n addField(new DcField(DcMediaObject._F_COUNTRY, getIndex(), \"Countries\", \n true, true, false, true, \n 255, ComponentFactory._REFERENCESFIELD, DcModules._COUNTRY, DcRepository.ValueTypes._DCOBJECTCOLLECTION,\n \"Countries\")); \n }",
"public void insertRecord(IdentifiedRecordTemplate template,\n DataRecord insertedRecord) throws FormException {\n Connection con = null;\n \n try {\n GenericDataRecord record = (GenericDataRecord) insertedRecord;\n \n con = getConnection();\n insertRecordRow(con, template, record);\n try {\n insertFieldRows(con, template, record);\n } catch (CryptoException e) {\n throw new FormException(\"GenericRecordSetManager\", \"form.ENCRYPTING_DATA_FAILED\", e);\n }\n \n } catch (ClassCastException e) {\n throw new FormException(\"GenericRecordSetManager\", \"form.EXP_UNKNOWN_TEMPLATE\", e);\n } catch (SQLException e) {\n throw new FormException(\"GenericRecordSetManager\", \"form.EXP_INSERT_FAILED\", e);\n } finally {\n closeConnection(con);\n }\n }",
"void getNextField () \n\t\t\tthrows IOException, FileNotFoundException {\n \n\t\tcontext.field.setLength(0);\n\t\twhile ((! htmlChar.endsField) && (! atEnd)) {\n\t\t\tgetNextWord();\n\t\t\tif (context.word.length() > 0) {\n\t\t\t\tcontext.field.append (context.word.toString());\n\t\t\t}\n\t\t} \n \n // remove multiple trailing spaces from field\n // if (! context.preformatted) {\n while (context.field.length() > 1\n && context.field.charAt (context.field.length() - 1) == ' '\n && context.field.charAt (context.field.length() - 2) == ' ') {\n context.field.deleteCharAt (context.field.length() - 1);\n }\n // }\n\t}",
"@Override\r\n\tpublic String insert() {\n\t\treturn \"insert\";\r\n\t}",
"public void insert(Nodo tree, String textField) {\n tree.getRoot().insertG(tree.getRoot(),textField);\n }",
"protected void addMetadataFieldsFromParameters() {\n for (Map.Entry<String, String> e: parameters.entrySet()) {\n if (e.getKey().startsWith(\"meta-\")) {\n String fieldName = e.getKey().substring(5);\n String fieldValue = e.getValue();\n currentDoc.addTextualMetadataField(fieldName, fieldValue, getDocWriter().metadataFieldType(false));\n }\n }\n }",
"public Template(String id, String userID, List<Question> questions) {\n this.id = id;\n this.userID = userID;\n this.questions = questions;\n }",
"public void setUpFields() {\n //Assigning each of the warning to relevant TextViews\n warning1 = findViewById(R.id.tvWarning1);\n warning2 = findViewById(R.id.tvWarning2);\n warning3 = findViewById(R.id.tvWarning3);\n warning4 = findViewById(R.id.tvWarning4);\n warning5 = findViewById(R.id.tvWarning5);\n warning6 = findViewById(R.id.tvWarning6);\n warning7 = findViewById(R.id.tvWarning7);\n warning8 = findViewById(R.id.tvWarning8);\n }",
"protected String formatField() {\n \tif(!updated) return \"No record set.\";\n \t\n \tif(firstFieldP.getText() != null && lastFieldP.getText() != null) {\n\t \tfirstNameString = firstFieldP.getText();\n\t \tlastNameString = lastFieldP.getText();\n \t} else\t{\n \tfirstNameString = firstFieldC.getText();\n \tlastNameString = lastFieldC.getText();\n \ttribeString = tribeField.getText();\t\n \t}\n\n \tStringBuffer sb = new StringBuffer();\n \tsb.append(\"<html><p align=center>\");\n \tsb.append(firstNameString);\n \tsb.append(\" \");\n \tsb.append(lastNameString);\n \tsb.append(\"<br>\");\n \tsb.append(tribeString);\n \tsb.append(\"</p></html>\");\n \t\n \treturn sb.toString(); \t\n }",
"public InsertOrUpdate_Details() {\n initComponents();\n }",
"public void insert(Field field){\n\t\tPreparedStatement stmt = null;\n\t\tResultSet keyRS = null;\n\n\t\tString query = \"insert into fields (title, xcoord, width, helphtml,knowndata,foreignProjectKey,fieldnumber) \"+\n\t\t\t\t\"values (?,?,?,?,?,?,?)\";\n\t\ttry {\n\t\t\tstmt = db.getConnection().prepareStatement(query);\n\t\t\tstmt.setString(1, field.getTitle());\n\t\t\tstmt.setInt(2, field.getXcoord());\n\t\t\tstmt.setInt(3, field.getWidth());\n\t\t\tstmt.setString(4, field.getHelpHTML());\n\t\t\tstmt.setString(5,field.getKnownData());\n\t\t\tstmt.setInt(6,field.getForeignProjectKey());\n\t\t\tstmt.setInt(7, field.getFieldNumber());\n\n\t\t\tif (stmt.executeUpdate() == 1) {\n\t\t\t\tStatement keyStmt = db.getConnection().createStatement();\n\t\t\t\tkeyRS = keyStmt.executeQuery(\"select last_insert_rowid()\");\n\t\t\t\tkeyRS.next();\n\t\t\t\tint id = keyRS.getInt(1);\n\t\t\t\tfield.setPrimaryID(id);\n\t\t\t}\n\t\t\telse {\n\t\t\t\ttry {\n\t\t\t\t\tthrow new DatabaseException(\"Could not insert contact\");\n\t\t\t\t} catch (DatabaseException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}catch (SQLException e) {\n\t\t\ttry {\n\t\t\t\tthrow new DatabaseException(\"Could not insert contact\", e);\n\t\t\t} catch (DatabaseException e1) {\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t}finally {\n\t\t\tDatabase.safeClose(stmt);\n\t\t\tDatabase.safeClose(keyRS);\n\t\t}\n\n\t}",
"public void loadFields() {\n \tsuper.loadFields();\n \tif(getUIContext().get(\"taskId\")!=null){\n \t\teditData.setRelateTask((FDCScheduleTaskInfo) getUIContext().get(\"taskId\"));\n \t}\n \tfillPnlTaskInfo();\n \t\n }"
] | [
"0.68169594",
"0.6517842",
"0.63277906",
"0.6303232",
"0.62459886",
"0.61480457",
"0.6097865",
"0.6049745",
"0.5989026",
"0.5942934",
"0.58270997",
"0.5810245",
"0.5802201",
"0.57928765",
"0.57858014",
"0.57831264",
"0.5723924",
"0.56584835",
"0.5609407",
"0.5600981",
"0.55785567",
"0.55431855",
"0.55034167",
"0.54535615",
"0.5441862",
"0.5434382",
"0.5410861",
"0.54075074",
"0.5397127",
"0.53727305",
"0.53609955",
"0.5360176",
"0.535778",
"0.531653",
"0.52855736",
"0.52573055",
"0.52571374",
"0.5255988",
"0.5253746",
"0.5230035",
"0.52243793",
"0.51896566",
"0.5179653",
"0.51735103",
"0.51720023",
"0.5144499",
"0.5143858",
"0.5130502",
"0.5124577",
"0.5117498",
"0.5110593",
"0.51073265",
"0.5106462",
"0.50738263",
"0.50623864",
"0.5059036",
"0.5058811",
"0.50579053",
"0.50427586",
"0.50398487",
"0.5028734",
"0.50262743",
"0.50177866",
"0.5015054",
"0.5006782",
"0.50026286",
"0.4989087",
"0.4986353",
"0.49772763",
"0.4972036",
"0.4957254",
"0.49474785",
"0.49449646",
"0.49235326",
"0.49130118",
"0.4901394",
"0.48992866",
"0.4899187",
"0.4898863",
"0.48960695",
"0.48955303",
"0.48944196",
"0.48927078",
"0.48902944",
"0.4885386",
"0.4884641",
"0.48829094",
"0.48705405",
"0.48680362",
"0.4865685",
"0.48654616",
"0.48628807",
"0.48533413",
"0.48518157",
"0.4845568",
"0.48437685",
"0.4827766",
"0.48184535",
"0.48174337",
"0.48127723"
] | 0.6230995 | 5 |
delete fields of template | public boolean deleteFieldsTemplate(Template template)
{
FieldsTemplateDAO daoTemplate = new FieldsTemplateDAO();
return daoTemplate.deleteFieldsByIdTemplate(template);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void clearFields(){\r\n fields.forEach(e -> e.clear());\r\n }",
"private void deleteFieldRows(Connection con,\n IdentifiedRecordTemplate template) throws SQLException {\n PreparedStatement delete = null;\n \n try {\n int internalId = template.getInternalId();\n \n delete = con.prepareStatement(DELETE_TEMPLATE_RECORDS_FIELDS);\n delete.setInt(1, internalId);\n delete.execute();\n } finally {\n DBUtil.close(delete);\n }\n }",
"private void deleteFieldRows(Connection con,\n IdentifiedRecordTemplate template, GenericDataRecord record)\n throws SQLException {\n PreparedStatement delete = null;\n \n try {\n int internalId = record.getInternalId();\n delete = con.prepareStatement(DELETE_RECORD_FIELDS);\n delete.setInt(1, internalId);\n delete.execute();\n } finally {\n DBUtil.close(delete);\n }\n }",
"@Override\r\n\tpublic void delete( UserFields fields ) {\n\t\t\r\n\t}",
"public void clearFields() {\n\t\tid.clear();\n\t\tfn.clear();\n\t\tln.clear();\n\t\tage.clear();\n\t\tun.clear();\n\t\tpass.clear();\n\t\tdate.setValue(null);\n\t}",
"private void removeTemplate()\r\n {\r\n\t String template = keyField.getText();\r\n\t if (template.length()==0)\r\n\t {\r\n\t\t label.setText(\"Please enter template name\");\r\n\t\t return;\r\n\t }\r\n\t \r\n\t int index = list.getSelectedIndex();\r\n if (index<0) return;\r\n\r\n\t if (!templates.removeTemplate(template))\r\n\t {\r\n\t\t label.setText(\"Couldn't remove default template\");\r\n\t\t return;\r\n\t }\r\n\r\n String[] newTemplates = new String[templateKeys.length - 1];\r\n for (int a=0; a<templateKeys.length; a++)\r\n {\r\n if (a<index) newTemplates[a] = templateKeys[a];\r\n else if (a > index) newTemplates[a-1] = templateKeys[a];\r\n }\r\n templateKeys = newTemplates;\r\n model.removeElementAt(index);\r\n \r\n clearComponents();\r\n list.setSelectedIndex(-1); \r\n label.setText(\"Display format \" + template + \" removed\");\r\n }",
"private void clearFields() {\n this.subjectField.setText(\"\");\n this.descrField.setText(\"\");\n this.nameField.setText(\"\");\n }",
"public void deleteOneWord(Pojo.OneWord e){ \n template.delete(e); \n}",
"@Test\n public void removeFields() throws Exception {\n Document doc = new Document();\n DocumentBuilder builder = new DocumentBuilder(doc);\n\n builder.insertField(\" DATE \\\\@ \\\"dddd, d MMMM yyyy\\\" \");\n builder.insertField(\" TIME \");\n builder.insertField(\" REVNUM \");\n builder.insertField(\" AUTHOR \\\"John Doe\\\" \");\n builder.insertField(\" SUBJECT \\\"My Subject\\\" \");\n builder.insertField(\" QUOTE \\\"Hello world!\\\" \");\n doc.updateFields();\n\n FieldCollection fields = doc.getRange().getFields();\n\n Assert.assertEquals(6, fields.getCount());\n\n // Below are four ways of removing fields from a field collection.\n // 1 - Get a field to remove itself:\n fields.get(0).remove();\n Assert.assertEquals(5, fields.getCount());\n\n // 2 - Get the collection to remove a field that we pass to its removal method:\n Field lastField = fields.get(3);\n fields.remove(lastField);\n Assert.assertEquals(4, fields.getCount());\n\n // 3 - Remove a field from a collection at an index:\n fields.removeAt(2);\n Assert.assertEquals(3, fields.getCount());\n\n // 4 - Remove all the fields from the collection at once:\n fields.clear();\n Assert.assertEquals(0, fields.getCount());\n //ExEnd\n }",
"public void removeTemplatesPage()\r\n {\r\n getSemanticObject().removeProperty(swpres_templatesPage);\r\n }",
"private void clearFields() {\r\n jTextFieldID.setText(\"\");\r\n jTextFieldNome.setText(\"\");\r\n jTextFieldPreco.setText(\"\");\r\n jTextFieldDescricao.setText(\"\");\r\n }",
"public void clearFields() {\n dataSearch = new Date();\n tbcliente = null;\n tbfuncionario = null;\n listTbagendamentos = agendamentoLogic.findAllTbagendamentoFromCurrentDay();\n }",
"@Test\n public void fieldTemplate() throws Exception {\n Document doc = new Document();\n DocumentBuilder builder = new DocumentBuilder(doc);\n\n // We can set a template name using by the fields. This property is used when the \"doc.AttachedTemplate\" is empty.\n // If this property is empty the default template file name \"Normal.dotm\" is used.\n doc.getFieldOptions().setTemplateName(\"\");\n\n FieldTemplate field = (FieldTemplate) builder.insertField(FieldType.FIELD_TEMPLATE, false);\n Assert.assertEquals(field.getFieldCode(), \" TEMPLATE \");\n\n builder.writeln();\n field = (FieldTemplate) builder.insertField(FieldType.FIELD_TEMPLATE, false);\n field.setIncludeFullPath(true);\n\n Assert.assertEquals(field.getFieldCode(), \" TEMPLATE \\\\p\");\n\n doc.updateFields();\n doc.save(getArtifactsDir() + \"Field.TEMPLATE.docx\");\n //ExEnd\n\n doc = new Document(getArtifactsDir() + \"Field.TEMPLATE.docx\");\n\n field = (FieldTemplate) doc.getRange().getFields().get(0);\n Assert.assertEquals(\" TEMPLATE \", field.getFieldCode());\n Assert.assertEquals(\"Normal.dotm\", field.getResult());\n\n field = (FieldTemplate) doc.getRange().getFields().get(1);\n Assert.assertEquals(\" TEMPLATE \\\\p\", field.getFieldCode());\n Assert.assertEquals(\"Normal.dotm\", field.getResult());\n }",
"@Test\n public void unlinkAllFieldsInRange() throws Exception {\n Document doc = new Document(getMyDir() + \"Linked fields.docx\");\n\n Section newSection = (Section) doc.getSections().get(0).deepClone(true);\n doc.getSections().add(newSection);\n\n doc.getSections().get(1).getRange().unlinkFields();\n //ExEnd\n\n doc = DocumentHelper.saveOpen(doc);\n String secWithFields = DocumentHelper.getSectionText(doc, 1);\n\n Assert.assertTrue(secWithFields.trim().endsWith(\n \"Fields.Docx Элементы указателя не найдены. 3.\\rОшибка! Не указана последовательность. Fields.Docx Элементы указателя не найдены. 4.\"));\n }",
"@Override\n\tpublic void delete(Field entity) {\n\t\t\n\t}",
"private void clearFields() {\r\n keywords = \"\";\r\n searchBy = \"\";\r\n }",
"private void clearFields(){\n\t\tmiMatriculaLabel.setText(\"-\");\n\t\tmatriculaSearch.setText(\"\");\n\t\tmarcaText.setText(\"\");\n\t\tmodeloText.setText(\"\");\n\t\tanioText.setText(\"\");\n\t\titvText.setText(\"\");\n\t\tvehiculoSelected = null;\n\t\tchangeFieldsState(false);\n\t}",
"public void delete() {\n mapping.getFieldOrFieldExclude().remove(field);\n }",
"public void generateUnset(PhpWriter out)\n throws IOException\n {\n ExprGenerator objGen = ((ExprPro) _objExpr).getGenerator();\n\n objGen.generate(out);\n out.print(\".unsetField(\");\n out.printIntern(_name);\n out.print(\")\");\n }",
"protected void clearFields(){\n\t\tsetFormReady(false);\n\t\tskipSpin.setValue(1);\n\t\tsetFormReady(true);\n\t}",
"@Test\n public void unlinkSingleField() throws Exception {\n Document doc = new Document(getMyDir() + \"Linked fields.docx\");\n doc.getRange().getFields().get(1).unlink();\n //ExEnd\n\n doc = DocumentHelper.saveOpen(doc);\n String paraWithFields = DocumentHelper.getParagraphText(doc, 0);\n Assert.assertEquals(paraWithFields, \"\\u0013 FILENAME \\\\* Caps \\\\* MERGEFORMAT \\u0014Fields.Docx\\u0015 Элементы указателя не найдены. \\u0013 LISTNUM LegalDefault \\u0015\\r\");\n }",
"private void eraseFieldsContent() {\r\n\t\ttxPassword.setText(\"\");\r\n\t\ttxUsuario.setText(\"\");\r\n\t\tcheckAdmin.setIndeterminate(true);\r\n\t\tcheckTPV.setIndeterminate(true);\r\n\t}",
"void removeFieldBinding( FieldBinding binding );",
"private void clearFields() {\n this.upperTextField.setText(\"\");\n this.bottomTextField.setText(\"\");\n this.titleTextField.setText(\"\");\n this.tagTextField.setText(\"\");\n this.imageStackPane.getChildren().clear();\n }",
"public void clearFields()\r\n {\r\n\t txtID.setText(\"\");\r\n\t txtName.setText(\"\");\r\n\t txtYear.setText(\"\");\r\n\t txtMonth.setText(\"\");\r\n\t txtPDate.setText(\"\");\r\n txtFees.setText(\"0\");\r\n }",
"@Override\r\n\tpublic void removeField() {\n\t\tusernameField.setText(\"\");\r\n\t\tpassField.setText(\"\");\r\n\t}",
"public void clearFileds() {\r\n\t\tthis.jPanelFormClient.clearFields();\r\n\t}",
"public boolean templateFieldLibraryDelete(Long id) {\n\t\tFieldsTemplateLibraryDAO dao = new FieldsTemplateLibraryDAO();\n\t\treturn dao.deleteById(id);\n\t}",
"public void clearField() {\n\n /* Clear sprite groups */\n _pigsGroup.clear();\n _birdsGroup.clear();\n _woodenObstacles.clear();\n _mainPlayer.clear();\n\n /* Reset pigs counter */\n _pigsCounter = 0;\n\n /* Delete field objects */\n _fieldObjects.clear();\n }",
"public void clearFields()\n {\n txtDate.setText(\"\");\n txtIC.setText(\"\");\n txtBrand.setText(\"\");\n txtSerial.setText(\"\");\n txtCPT.setText(\"\");\n txtRMB.setText(\"\");\n txtRTYP.setText(\"\");\n txtCap.setText(\"\");\n txtSpeed.setText(\"\");\n txtWar.setText(\"\");\n txtRemarks.setText(\"\");\n }",
"private static void clearFields() {\n resetFields();\n fieldsEnabled(false);\n lbl_message.setText(\"\");\n }",
"int deleteByExample(CfgPrintTemplateAttrExample example);",
"public void resetTextFields()\n {\n formattedFirstName.setValue(null);\n formattedLastName.setValue(null);\n formattedTitleOfWork.setValue(null);\n }",
"@FXML\n void clearFields(ActionEvent event) {\n \tfName_OpenClose.clear();\n \tlName_OpenClose.clear();\n \tmonth.clear();\n \tday.clear();\n \tyear.clear();\n \tbalance.clear();\n \ttgOpenClose.selectToggle(null);\n \tdirectDep.setSelected(false);\n \tdirectDep.setDisable(false);\n \tisLoyal.setSelected(false);\n \tisLoyal.setDisable(false);\n }",
"public void clearFields() {\n tags.clear();\n tagText.setText(\"\");\n ((ImageView)findViewById(R.id.picture)).setImageResource(android.R.color.transparent);\n }",
"public void clearTeacherFields(TextField tf1,TextField tf2,TextField tf3,TextField tf4) {\r\n\t\ttf1.setText(\"\");\r\n\t\ttf2.setText(\"\");\r\n\t\ttf3.setText(\"\");\r\n\t\ttf4.setText(\"\");\r\n\t}",
"@Override\n\tpublic void delete(List<Field> entity) {\n\t\t\n\t}",
"private void clearFields() {\r\n\t\tmCardNoValue1.setText(\"\");\r\n\t\tmCardNoValue1.setHint(\"-\");\r\n\t\tmCardNoValue2.setText(\"\");\r\n\t\tmCardNoValue2.setHint(\"-\");\r\n\t\tmCardNoValue3.setText(\"\");\r\n\t\tmCardNoValue3.setHint(\"-\");\r\n\t\tmCardNoValue4.setText(\"\");\r\n\t\tmCardNoValue4.setHint(\"-\");\r\n\t\tmZipCodeValue.setText(\"\");\r\n\t\tmZipCodeValue.setHint(\"Zipcode\");\r\n\t\tmCVVNoValue.setText(\"\");\r\n\t\tmCVVNoValue.setHint(\"CVV\");\r\n\t}",
"void resetTextFields();",
"private void selectTemplateFieldsFromXML(IdentifiedRecordTemplate template) throws FormException {\n \n GenericRecordTemplate genericRecordTemplate = null;\n \n try {\n PublicationTemplate publicationTemplateImpl = PublicationTemplateManager.getInstance()\n .loadPublicationTemplate(template.getTemplateName());\n genericRecordTemplate = (GenericRecordTemplate) publicationTemplateImpl\n .getRecordTemplate();\n template.setEncrypted(publicationTemplateImpl.isDataEncrypted());\n } catch (PublicationTemplateException e) {\n throw new FormException(\"GenericRecordSetManager\",\n \"form.EXP_UNKNOWN_TEMPLATE\", e);\n }\n \n GenericRecordTemplate wrapped = (GenericRecordTemplate) template.\n getWrappedTemplate();\n FieldTemplate[] fields = genericRecordTemplate.getFieldTemplates();\n \n for (FieldTemplate field : fields) {\n String displayName = field.getDisplayerName();\n GenericFieldTemplate fieldTemplate = new GenericFieldTemplate(field.\n getFieldName(), field.getTypeName());\n \n fieldTemplate.setMandatory(field.isMandatory());\n fieldTemplate.setReadOnly(field.isReadOnly());\n fieldTemplate.setHidden(field.isHidden());\n fieldTemplate.setDisabled(field.isDisabled());\n fieldTemplate.setSearchable(field.isSearchable());\n fieldTemplate.setDisplayerName((displayName != null) ? displayName : \"\");\n fieldTemplate.setLabel(field.getLabel());\n fieldTemplate.setUsedAsFacet(field.isUsedAsFacet());\n fieldTemplate.setParametersObj(field.getParametersObj());\n \n wrapped.addFieldTemplate(fieldTemplate);\n }\n }",
"private void clearFields() {\n login.clear();\n password.clear();\n\n }",
"public void removeMappingFields(int i)\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(MAPPINGFIELDS$28, i);\n }\n }",
"public void removeTemplateId(int i)\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(TEMPLATEID$4, i);\n }\n }",
"public void clearFieldPaths() {\n this.fieldPaths_ = GeneratedMessageLite.emptyProtobufList();\n }",
"private void removeNoFields() {\n fieldTable.removeStyleName(\"hidden\");\n noFields.addStyleName(\"hidden\");\n }",
"@Test\n public void deleteTemplateTest() throws IdfyException, Exception {\n UUID id = UUID.randomUUID();\n api.deleteTemplate(id);\n }",
"public void delete(Field field)\n\t{\n\t\tif (schema.get(field.getName())==null)\n\t\t\tthrow new IllegalArgumentException(\"No field exists: \"+field);\n\t\t\n\t\tSet<String> keys=new HashSet<String>(schema.keySet());\n\t\tfor (String s: keys)\n\t\t{\n\t\t\tField f=schema.get(s);\n\t\t\tif (f==field)\n\t\t\t{\n\t\t\t\tschema.remove(s);\n\t\t\t}\n\t\t}\n\t\t\n\t\tfieldList.remove(field);\n\t}",
"@Test\n public void unlink() throws Exception {\n Document doc = new Document(getMyDir() + \"Linked fields.docx\");\n\n doc.unlinkFields();\n //ExEnd\n\n doc = DocumentHelper.saveOpen(doc);\n String paraWithFields = DocumentHelper.getParagraphText(doc, 0);\n Assert.assertEquals(paraWithFields, \"Fields.Docx Элементы указателя не найдены. 1.\\r\");\n }",
"public void method_1895() {\n field_1241.clear();\n field_1242.clear();\n }",
"private void resetFields(){\n\t\tsetDirectoryInfoLabel(\"\");\n\t\tregexFrom.setText(\"\");\n\t\tregexTo.setText(\"\");\n\t\ttextArea.setText(\"\");\n\t\tlastChoosedDirectory = null;\n\t\tcheckboxSaveStateOn.setEnabled(false);\n\t\tsetMessage(translations.getFieldsHasBeenReset());\n\t}",
"public void deleteTemplate(Template template)\n\t{\n\t\tTemplateDAO dao = new TemplateDAO();\n\t\tdao.delete(template);\t\t\n\t\t//return template.getId();\n\t}",
"public Builder removeFields(int index) {\n if (fieldsBuilder_ == null) {\n ensureFieldsIsMutable();\n fields_.remove(index);\n onChanged();\n } else {\n fieldsBuilder_.remove(index);\n }\n return this;\n }",
"@Override\n\tpublic void deleteTmly(Tmly tmly) {\n\t\tString sql = \"delete from tmly where id_=?\";\n\t\tthis.jdbcTemplate.update(sql, new Object[] { tmly.getId() });\n\t}",
"void delete(ViewDefinition viewDefinition);",
"public void clearAllFields(){\n\t\t//clear Page level Variables\n\t\tsetRateOfferedPk(null);\n\t\tsetCustomerRefNo(null);\n\t\tsetDocumentNumber(null);\n\t\tsetBeneficiaryName(null);\n\t\tsetBeneficiaryBankId(null);\n\t\tsetBeneficiaryBankName(null);\n\t\tsetRateOffered(null);\n\t\tsetCurrencyId(null);\n\t\tsetCurrencyName(null);\n\t\tsetTransctionAmount(null);\n\t\tsetCustomerRefAndName(null);\n\t\tsetRemitServiceId(null);\n\t\tsetRemitRemittanceId(null);\n\t\tsetRemitDeliveryId(null);\n\t\tsetCustomerId(null);\n\t\tsetCustomerName(null);\n\t\tsetRateOfferedPk(null);\n\t\tsetAmountAndQtyName(null);\n\t\tsetBeneficiaryMasterId(null);\n\t\tsetBeneficiaryAccountSeqId(null);\n\t\tsetCurrencyQtyName(null);\n\t\tsetRoutingCountry(null);\n\t\tsetRoutingBank(null);\n\t\tsetPaymentCode(null);\n\t\t//common Variables\n\t\tsetErrorMessage(null);;\n\t\tsetCreatedBy(null);\n\t\tsetCreatedDate(null);\n\t\tsetModifiedBy(null);\n\t\tsetModifiedDate(null);\n\t\tsetApprovedBy(null);\n\t\tsetApprovedDate(null);\n\t\tsetIsActive(null);\n\t\t\n\t\t//cheque and Card common Details\n\t\tsetRemitamount(null);;\n\t\tsetRemitBankId(null);;\n\t\tsetCheckRefNo(null);;\n\t\t//cheque Details\n\t\tsetRemitApproveCheckDate(null);;\n\t\tsetApprovalNumber(null);;\n\t\t\n\t\t//card Details\n\t\tsetCardNumber(null);;\n\t\tsetNameOfTheCard(null);\n\t\tsetApprovalNumberCard(null);\n\t\tsetCardBankId(null);\n\t\tsetLstRatePlaceOrderPk(null);\n\t\tsetBooRenderSaveOrExit(false);\n\t\tsetTotalAmount(null);\n\t\tsetPaymentAmountPanel(false);\n\t}",
"public void removeAllActionBlocks() {\n List<AccountingLineViewField> fieldsToRemove = new ArrayList<AccountingLineViewField>();\n for (AccountingLineViewField field : fields) {\n if (field.isActionBlock()) {\n fieldsToRemove.add(field);\n } else {\n field.removeAllActionBlocks();\n }\n }\n fields.removeAll(fieldsToRemove);\n }",
"@Override\n\tpublic String delete(Set<String> filterField) {\n\t\treturn null;\n\t}",
"public void deleteField(Field field) {\n Span span = this.tracer.buildSpan(\"Client.DeleteField\").start();\n try {\n String path = String.format(\"/index/%s/field/%s\", field.getIndex().getName(), field.getName());\n clientExecute(\"DELETE\", path, null, null, \"Error while deleting field\");\n } finally {\n span.finish();\n }\n }",
"private void clearArticleFields(){\n\t\ttxtArticleName.setText(EMPTYSTRING);\n\t\ttxtCW.setText(EMPTYSTRING);\n\t\t\n\t\t//cbCCC.select(2);\n\t\ttxtCCCValue.setText(EMPTYSTRING);\n\t\ttxtCCCValue.setEnabled(false);\n\t\t\n\t\t//cbDCC.select(2);\n\t\ttxtDCCValue.setText(EMPTYSTRING);\n\t\ttxtDCCValue.setEnabled(false);\n\t\t\n\t\t//cbIEC.select(1);\n\t\ttxtIEC_article.setText(EMPTYSTRING);\n\t\t\n\t\t//cbLoadingCharge.select(1);\n\t\ttxtLC_article.setText(EMPTYSTRING);\n\t\t\n\t\t//cbDDC.select(2);\n\t\ttxtDDC_chargeArticle.setText(EMPTYSTRING);\n\t\ttxtDDC_minPerLR.setText(EMPTYSTRING);\n\t\ttxtDDC_chargeArticle.setEnabled(false);\n\t\ttxtDDC_minPerLR.setEnabled(false);\n\t}",
"private void UpdateDeleteNestedValue(){\n notebookRef.document(\"IpWOjXtIgGJ2giKF4VTp\")\r\n // Note Remove the Element without the posiotion is not possible Because if multiple user remove the same name of field then it make issue So thats Why we pass Value \"New tag\"\r\n .update(KEY_Tags+\".tag1\", FieldValue.delete());// Now this key tag1 which is inside the tags is deleted key and its value\r\n\r\n }",
"private void clearPCIDFields() {\n jTextField1.setText(\"\");\n jTextField2.setText(\"\");\n jTextField3.setText(\"\");\n jTextField4.setText(\"\");\n }",
"public void clearTextFields()\n\t{\n\t\tfirstNameTextField.setText(\"\");\n\t\tlastNameTextField.setText(\"\");\n\t\troomNoTextField.setText(\"\");\n\t\tphoneTextField.setText(\"\");\n\t\tstudentIDTextField.setText(\"\");\n\t\tcreatePasswordTextField.setText(\"\");\n\t\tconfirmPasswordTextField.setText(\"\");\n\t}",
"boolean deleteDocuments(Map<String, String> fields);",
"@Override\r\n\tpublic void delete(SimpleJdbcTemplate template) throws Exception {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}",
"@Override\n public void onClick(View v) {\n clearFields();\n }",
"public void clearUpdateFields() {\n\tupdateCityTextField.setText(\"\");\n\tupdatePhoneTextField.setText(\"\");\n\tupdateStreetAddressTextField.setText(\"\");\n\tupdateAptTextField.setText(\"\");\n\tupdateStateTextField.setText(\"\");\n\tupdateCountryTextField.setText(\"\");\n\tupdatePostalCodeTextField.setText(\"\");\n\tupdateTerritorytextField.setText(\"\");\n\tofficeConsoleTextArea.append(\"*cleared text fields for update employee. \\n\");\n}",
"public void clear(){\n\t\tfield.resize(0, 4);\n\t}",
"public void clearfields()\r\n\t{\r\n\t\t/* assigns a new ID, if a new record is added this will increment the old one\r\n\t\t * if no change has occured it will just reassign the current one*/\r\n\t\tf1.assignID();\r\n\t\t//sets the text in the case link text field to null\r\n\t\tevidenceID.setText(null);\r\n\t\t//sets the value of the forensic id to the new value if changed or same value if not\r\n\t\tforensicID.setText(String.valueOf(f1.getForensicID()));\r\n\t\t\r\n\t\t/*\r\n\t\t * The following code uses unique models to set the comboboxes back to default values\r\n\t\t * this could not be achieved using a single model as all the boxes would change at the sme time\r\n\t\t * if a single model was used*/\r\n\t\tDefaultComboBoxModel model = new DefaultComboBoxModel(confirmation);\r\n\t\tbioBox.setModel(model);\r\n\t\tDefaultComboBoxModel model1 = new DefaultComboBoxModel(confirmation);\r\n\t\tprintsBox.setModel(model1);\r\n\t\tDefaultComboBoxModel model2 = new DefaultComboBoxModel(confirmation);\r\n\t\ttracksBox.setModel(model2);\r\n\t\tDefaultComboBoxModel model3 = new DefaultComboBoxModel(confirmation);\r\n\t\tdigitalBox.setModel(model3);\r\n\t\tDefaultComboBoxModel model4 = new DefaultComboBoxModel(confirmation);\r\n\t\ttoolMarkBox.setModel(model4);\r\n\t\tDefaultComboBoxModel model5 = new DefaultComboBoxModel(confirmation);\r\n\t\tnarcoticBox.setModel(model5);\r\n\t\tDefaultComboBoxModel model6 = new DefaultComboBoxModel(confirmation);\r\n\t\tfirearmBox.setModel(model6);\r\n\t\t\r\n\t}",
"private void selectTemplateFieldRows(Connection con,\n IdentifiedRecordTemplate template) throws SQLException, FormException {\n PreparedStatement select = null;\n ResultSet rs = null;\n GenericRecordTemplate wrapped = (GenericRecordTemplate) template\n .getWrappedTemplate();\n \n try {\n select = con.prepareStatement(SELECT_TEMPLATE_FIELDS);\n select.setInt(1, template.getInternalId());\n rs = select.executeQuery();\n \n GenericFieldTemplate fieldTemplate = null;\n String fieldName;\n String fieldType;\n boolean isMandatory;\n boolean isReadOnly;\n boolean isHidden;\n while (rs.next()) {\n // templateId = rs.getInt(1);\n fieldName = rs.getString(2);\n // fieldIndex = rs.getInt(3);\n fieldType = rs.getString(4);\n isMandatory = rs.getBoolean(5);\n isReadOnly = rs.getBoolean(6);\n isHidden = rs.getBoolean(7);\n \n fieldTemplate = new GenericFieldTemplate(fieldName, fieldType);\n fieldTemplate.setMandatory(isMandatory);\n fieldTemplate.setReadOnly(isReadOnly);\n fieldTemplate.setHidden(isHidden);\n \n wrapped.addFieldTemplate(fieldTemplate);\n }\n } finally {\n DBUtil.close(rs, select);\n }\n }",
"@Override\n public void clearAllFields() {\n FeedbackBox.clear();\n }",
"@Override\n public void deletePartida(String idPartida) {\n template.opsForHash().delete(idPartida, \"jugador1\");\n template.opsForHash().delete(idPartida, \"jugador2\");\n template.opsForSet().remove(\"partidas\",idPartida);\n }",
"public void deleteSupplier(Supplier e){ \n\t template.delete(e); \n\t}",
"public void ClearTextFieldCreate() {\n txtFGameName.setText(\"\");\n txtFMovements.setText(\"\");\n }",
"public void clearStudentFields(TextField tf1,TextField tf2,TextField tf3,TextField tf4,TextField tf5,TextField tf6,TextField tf7) {\r\n\t\ttf1.setText(\"\");\r\n\t\ttf2.setText(\"\");\r\n\t\ttf3.setText(\"\");\r\n\t\ttf4.setText(\"\");\r\n\t\ttf5.setText(\"\");\r\n\t\ttf6.setText(\"\");\r\n\t\ttf7.setText(\"\");\r\n\t}",
"private void deleteRecordRows(Connection con,\n IdentifiedRecordTemplate template) throws SQLException {\n PreparedStatement delete = null;\n \n try {\n int internalId = template.getInternalId();\n \n delete = con.prepareStatement(DELETE_TEMPLATE_RECORDS);\n delete.setInt(1, internalId);\n delete.execute();\n } finally {\n DBUtil.close(delete);\n }\n }",
"public void deleteRecord(IdentifiedRecordTemplate template,\n DataRecord deletedRecord) throws FormException {\n Connection con = null;\n \n try {\n GenericDataRecord record = (GenericDataRecord) deletedRecord;\n \n con = getConnection();\n deleteFieldRows(con, template, record);\n deleteRecordRows(con, template, record);\n \n } catch (ClassCastException e) {\n throw new FormException(\"GenericRecordSetManager\",\n \"form.EXP_UNKNOWN_TEMPLATE\", e);\n } catch (SQLException e) {\n throw new FormException(\"GenericRecordSetManager\",\n \"form.EXP_DELETE_FAILED\", e);\n } finally {\n closeConnection(con);\n }\n }",
"public void deleteAll() {\n\t\t mongoTemplate.remove(new Query(), COLLECTION);\n\t}",
"private static void resetFields() {\n tf_name.setText(\"\");\n tf_title.setText(\"\");\n tf_info.setText(\"\");\n tf_path.setText(\"\");\n cb_bgColor.setSelectedItem(\"white\");\n cb_titleColor.setSelectedItem(\"black\");\n cb_infoColor.setSelectedItem(\"gray\");\n rb_url.setSelected(false);\n rb_file.setSelected(true);\n b_fileSelect.setEnabled(true);\n }",
"private void clearInsertingValues() {\n mapFieldsIntegers.clear();\n mapFieldsStrings.clear();\n }",
"public void clearFastaDbDetailFields() {\n fastaDbSaveUpdatePanel.getNameTextField().setEnabled(true);\n fastaDbSaveUpdatePanel.getNameTextField().setText(\"\");\n fastaDbSaveUpdatePanel.getFileNameTextField().setText(\"\");\n fastaDbSaveUpdatePanel.getFilePathTextField().setText(\"\");\n fastaDbSaveUpdatePanel.getVersionTextField().setText(\"\");\n fastaDbSaveUpdatePanel.getTaxomomyComboBox().setSelectedIndex(0);\n fastaDbSaveUpdatePanel.getFastaDbStateInfoLabel().setText(\"\");\n fastaDbSaveUpdatePanel.getHeaderParseRuleComboBox().setSelectedIndex(0);\n fastaDbSaveUpdatePanel.getDatabaseComboBox().setSelectedIndex(0);\n }",
"public void deleteAll(){\n editor.clear();\n editor.apply();\n }",
"private void resetFields() {\n\t\tthis.barcodeField.clear();\r\n\t\tthis.barcodeField.setDisable(false);\r\n\t\tthis.nameField.clear();\r\n\t\tthis.descriptionField.clear();\r\n\t\tthis.mrpField.clear();\r\n\t\tthis.revisedMrpField.clear();\r\n\t\tthis.stockField.clear();\r\n\t\tthis.availableStockLabelValue.setText(\"0.0\");\r\n\t\tthis.barcodeImageView.setImage(null);\r\n\t\tthis.barcodeDisplayLabel.setVisible(true);\r\n\t\tthis.barcodeNumberLabel.setVisible(false);\r\n\r\n\t}",
"@Override\n public void destroyObject(MongoTemplate obj) throws Exception {\n }",
"private void clearTextField() {\n txtOrder.setText(\"\");\n txtName.setText(\"\");\n txtWeight.setText(\"\");\n txtGallon.setText(\"\");\n txtPersent.setText(\"\");\n txtPrice.setText(\"\");\n \n }",
"public Builder clearField1246() {\n \n field1246_ = getDefaultInstance().getField1246();\n onChanged();\n return this;\n }",
"Form removeProperty(String key);",
"public void clearFields(View view){\n searchTermField.setText(\"\");\n urlField.setText(\"\");\n }",
"public Builder clearField1235() {\n \n field1235_ = getDefaultInstance().getField1235();\n onChanged();\n return this;\n }",
"void removeObjectDefinition(int i);",
"private void clearDelete() {\n if (patternCase_ == 5) {\n patternCase_ = 0;\n pattern_ = null;\n }\n }",
"public static void scriptDelete() {\n List<BeverageEntity> beverages = (List<BeverageEntity>) adminFacade.getAllBeverages();\n for (int i = 0; i < beverages.size(); i++) {\n System.out.println(\"delete : \" + beverages.get(i));\n adminFacade.removeBeverage(beverages.get(i));\n }\n List<DecorationEntity> decos = (List<DecorationEntity>) adminFacade.getAllDecorations();\n for (int i = 0; i < decos.size(); i++) {\n System.out.println(\"delete : \" + decos.get(i));\n adminFacade.removeDecoration(decos.get(i));\n }\n\n /* Check that there isn't any other cocktails, and delete remaining */\n List<CocktailEntity> cocktails = (List<CocktailEntity>) adminFacade.getAllCocktails();\n if (cocktails.size() > 0) {\n System.err.println(\"Les cocktails n'ont pas été tous supprimés... \"\n + cocktails.size() + \" cocktails restants :\");\n }\n for (int i = 0; i < cocktails.size(); i++) {\n CocktailEntity cocktail = adminFacade.getCocktailFull(cocktails.get(i));\n System.err.println(cocktail.getName() + \" : \"\n + cocktail.getDeliverables());\n adminFacade.removeCocktail(cocktail);\n }\n\n /* Remove client accounts */\n List<ClientAccountEntity> clients = (List<ClientAccountEntity>) adminFacade.getAllClients();\n for (int i = 0; i < clients.size(); i++) {\n adminFacade.removeClient(clients.get(i));\n }\n\n /* Remove addresses */\n List<AddressEntity> addresses = (List<AddressEntity>) adminFacade.getAllAddresses();\n for (int i = 0; i < addresses.size(); i++) {\n adminFacade.removeAddress(addresses.get(i));\n }\n\n /* TODO :\n * * Remove orders\n */\n }",
"private void clearFields() {\n orderNo.clear();\n orderNo.setPromptText(\"9XXXXXX\");\n if (rbProductType.isEmpty()) {\n rbListAddElement();\n }\n for (int i = 0; i < rbProductType.size(); i++) {\n rbProductType.get(i).setSelected(false);\n }\n if (cbWorker.isEmpty()) {\n cbListAddElement();\n }\n for (int i = 0; i < cbWorker.size(); i++) {\n cbWorker.get(i).setSelected(false);\n }\n UserDAO userDAO = new UserDAO();\n User user = userDAO.getUser(logname.getText());\n for (int i = 0; i < cbWorker.size(); i++) {\n if(cbWorker.get(i).getText().equals(user.getNameSurname())) {\n cbWorker.get(i).setSelected(true);\n } else {\n cbWorker.get(i).setSelected(false);\n }\n }\n plannedTime.clear();\n actualTime.clear();\n comboStatus.valueProperty().set(null);\n }",
"public void delete(int id){ \n\t\tActivity e=(Activity)template.get(Activity.class,id); \n\t template.delete(e); \n\t}",
"private static void clearField(Object componente) {\r\n if (componente instanceof TextField) {\r\n ((TextField) componente).setText(\"\");\r\n } else if (componente instanceof ComboBox) {\r\n ((ComboBox) componente).getSelectionModel().clearSelection();\r\n } else if (componente instanceof DatePicker) {\r\n ((DatePicker) componente).setValue(null);\r\n } else if (componente instanceof TextArea) {\r\n ((TextArea) componente).setText(\"\");\r\n } else if (componente instanceof ChoiceBox) {\r\n ((ChoiceBox) componente).getSelectionModel().clearSelection();\r\n } else if (componente instanceof CheckBox) {\r\n ((CheckBox) componente).setSelected(false);\r\n }\r\n }",
"private void empty_field() {\n tf_id_kategori.setText(null);\n tf_nama_kategori.setText(null);\n tf_keterangan.setText(null);\n pencarian.setText(null);\n }",
"public void remove(Template template) {\n\tfTemplates.remove(template);\n\tsort();\n }",
"@Override\n\tpublic void delete(DhtmlxGridForm f) throws Exception {\n\t}",
"public Builder clearField1408() {\n \n field1408_ = getDefaultInstance().getField1408();\n onChanged();\n return this;\n }",
"private void clearField () {\n\t\t/* clear the field */\n\t\tfor ( int row = 0 ; row < getNumRows() ; row++ ) {\n\t\t\tfor ( int col = 0 ; col < getNumCols() ; col++ ) {\n\t\t\t\tif ( row == 0 || col == 0 || row == getNumRows() - 1\n\t\t\t\t || col == getNumCols() - 1 ) {\n\t\t\t\t\tfield_[row][col] = new Bush();\n\t\t\t\t} else {\n\t\t\t\t\tfield_[row][col] = null;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"@Override\npublic void deleteAll(Iterable<? extends Formation> entities) {\n\t\n}"
] | [
"0.6975797",
"0.6959617",
"0.65722364",
"0.6464702",
"0.62902766",
"0.61564034",
"0.61281955",
"0.61141664",
"0.60840034",
"0.603846",
"0.59671354",
"0.59426296",
"0.59039634",
"0.5903408",
"0.5881912",
"0.58743244",
"0.5871775",
"0.58625185",
"0.5841164",
"0.5819172",
"0.58151686",
"0.5801154",
"0.5749457",
"0.5724447",
"0.57019633",
"0.5688588",
"0.56608534",
"0.5652848",
"0.56482035",
"0.5640895",
"0.56407225",
"0.56276846",
"0.5598147",
"0.55865175",
"0.5586092",
"0.557867",
"0.5559635",
"0.5523518",
"0.5521022",
"0.5518711",
"0.5517008",
"0.5507356",
"0.55058545",
"0.55046606",
"0.5502953",
"0.5473829",
"0.54730093",
"0.54591775",
"0.5458585",
"0.5451953",
"0.5438421",
"0.54364747",
"0.5436362",
"0.5431644",
"0.5420842",
"0.5420043",
"0.540004",
"0.5384809",
"0.537114",
"0.5367725",
"0.53571546",
"0.5345863",
"0.5339624",
"0.5329487",
"0.53172433",
"0.53015673",
"0.52994436",
"0.5298673",
"0.52763075",
"0.5275053",
"0.5274258",
"0.5266226",
"0.5259302",
"0.521832",
"0.5216849",
"0.52096146",
"0.51987475",
"0.51942664",
"0.5191744",
"0.51855606",
"0.51855326",
"0.5179469",
"0.51789516",
"0.51769173",
"0.5167535",
"0.51657134",
"0.5163428",
"0.5163182",
"0.5152624",
"0.51496494",
"0.5146231",
"0.5142579",
"0.5136887",
"0.5132604",
"0.5125528",
"0.51254666",
"0.51246095",
"0.5112005",
"0.5106714",
"0.51023525"
] | 0.69758755 | 0 |
update fields of template | public boolean updateFieldsTemplate(ArrayList<FieldsTemplate> fields)
{
FieldsTemplateDAO daoTemplate = new FieldsTemplateDAO();
for (FieldsTemplate field:fields)
{
daoTemplate.save(field);
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void updateNonDynamicFields() {\n\n\t}",
"protected void updateFromTemplate() {\r\n try {\r\n if (templateList.getSelectedItem() != null) {\r\n getConfigurer().loadPropertiesFromFile((String) templateList.getSelectedItem());\r\n Iterator<PropertyInputPanel> it = propertyInputPanels.iterator();\r\n while (it.hasNext()) {\r\n PropertyInputPanel panel = it.next();\r\n \r\n Object currentValue = getConfigurer().getProperty(panel.getName());\r\n if (currentValue != null && panel.isEnabled()) {\r\n panel.setValue(currentValue);\r\n }\r\n \r\n }\r\n }\r\n } catch (ClassCastException e) {\r\n Util.debugMsg(\"Saved template has incompatible data, it will be ignored\");\r\n }\r\n }",
"private void updateFields(){\n\n updateTotalPay();\n updateTotalTip();\n updateTotalPayPerPerson();\n }",
"public void updatePropertyFields()\n {\n amountLabel .setText(retrieveText(\"AmountLabel\", amountLabel));\n reasonCodeLabel .setText(retrieveText(\"ReasonCodeLabel\", reasonCodeLabel));\n paidToLabel .setText(retrieveText(\"PaidToLabel\", paidToLabel));\n employeeIDLabel .setText(retrieveText(\"EmployeeIDLabel\", employeeIDLabel));\n addressLine1Label.setText(retrieveText(\"AddressLine1Label\", addressLine1Label));\n addressLine2Label.setText(retrieveText(\"AddressLine2Label\", addressLine2Label));\n addressLine3Label.setText(retrieveText(\"AddressLine3Label\", addressLine3Label));\n approvalCodeLabel.setText(retrieveText(\"ApprovalCodeLabel\", approvalCodeLabel));\n commentLabel .setText(retrieveText(\"CommentLabel\", commentLabel));\n\n amountField .setLabel(amountLabel);\n reasonCodeField .setLabel(reasonCodeLabel);\n paidToField .setLabel(paidToLabel);\n employeeIDField .setLabel(employeeIDLabel);\n addressLine1Field.setLabel(addressLine1Label);\n addressLine2Field.setLabel(addressLine2Label);\n addressLine3Field.setLabel(addressLine3Label);\n approvalCodeField.setLabel(approvalCodeLabel);\n commentField .setLabel(commentLabel);\n }",
"private void updateFieldRows(Connection con,\n IdentifiedRecordTemplate template, GenericDataRecord record)\n throws SQLException, FormException, CryptoException {\n PreparedStatement update = null;\n PreparedStatement insert = null;\n \n try {\n update = con.prepareStatement(UPDATE_FIELD);\n int recordId = record.getInternalId();\n String[] fieldNames = record.getFieldNames();\n Map<String, String> rows = new HashMap<String, String>();\n for (String fieldName : fieldNames) {\n Field field = record.getField(fieldName);\n String fieldValue = field.getStringValue();\n \n SilverTrace.debug(\"form\", \"GenericRecordSetManager.updateFieldRows\",\n \"root.MSG_GEN_PARAM_VALUE\", \"fieldName = \" + fieldName\n + \", fieldValue = \" + fieldValue\n + \", recordId = \" + recordId);\n \n rows.put(fieldName, fieldValue);\n }\n \n if (template.isEncrypted()) {\n rows = getEncryptionService().encryptContent(rows);\n }\n \n for (String fieldName : rows.keySet()) {\n String fieldValue = rows.get(fieldName);\n update.setString(1, fieldValue);\n update.setInt(2, recordId);\n update.setString(3, fieldName);\n \n int nbRowsCount = update.executeUpdate();\n if (nbRowsCount == 0) {\n // no row has been updated because the field fieldName doesn't exist in database.\n // The form has changed since the last modification of the record.\n // So we must insert this new field.\n insert = con.prepareStatement(INSERT_FIELD);\n insert.setInt(1, recordId);\n insert.setString(2, fieldName);\n insert.setString(3, fieldValue);\n \n insert.execute();\n }\n }\n } finally {\n DBUtil.close(update);\n DBUtil.close(insert);\n }\n }",
"public void updateOneWord(Pojo.OneWord e){ \n template.update(e); \n}",
"public void transformTemplate(Template t)\n\t{\n\t\tfor (ConstrainedProperty property : getPositionedProperties())\n\t\t{\n\t\t\t// only show the CMF admin properties that can be edited\n\t\t\tif (!property.isEditable())\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\t// setup the form field\n\t\t\tt.setValue(\"property\", property.getPropertyName());\n\t\t\t\n\t\t\tboolean\t\thandled = false;\n\t\t\tMimeType\tmimetype = property.getMimeType();\n\t\t\tif (mimetype != null)\n\t\t\t{\n\t\t\t\tif (!property.isAutoRetrieved())\n\t\t\t\t{\n\t\t\t\t\tif (0 == mimetype.toString().indexOf(\"image/\"))\n\t\t\t\t\t{\n\t\t\t\t\t\thandled = true;\n\t\t\t\t\t\tif (t.hasBlock(\"form_field-legend\"))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tt.setBlock(\"form_field-legend\", \"form_field-legend\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tt.setBlock(\"form_field\", \"form_field-image\");\n\t\t\t\t\t}\n\t\t\t\t\telse if (MimeType.RAW == mimetype)\n\t\t\t\t\t{\n\t\t\t\t\t\thandled = true;\n\t\t\t\t\t\tif (t.hasBlock(\"form_field-legend\"))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tt.setBlock(\"form_field-legend\", \"form_field-legend\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tt.setBlock(\"form_field\", \"form_field-raw\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif (MimeType.APPLICATION_XHTML == mimetype)\n\t\t\t\t\t{\n\t\t\t\t\t\thandled = true;\n\t\t\t\t\t\tt.setBlock(\"form_field\", \"form_field-xhtml\");\n\t\t\t\t\t}\n\t\t\t\t\telse if (MimeType.TEXT_PLAIN == mimetype)\n\t\t\t\t\t{\n\t\t\t\t\t\thandled = true;\n\t\t\t\t\t\tt.setBlock(\"form_field\", \"form_field-text\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (!handled)\n\t\t\t{\n\t\t\t\tif (property.isUrl())\n\t\t\t\t{\n\t\t\t\t\tt.setBlock(\"form_field\", \"form_field-url\");\n\t\t\t\t}\n\t\t\t\telse if (property.isEmail())\n\t\t\t\t{\n\t\t\t\t\tt.setBlock(\"form_field\", \"form_field-email\");\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tt.setBlock(\"form_field\", \"form_field-generic\");\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tt.appendBlock(\"fields\", \"field\");\n\n\t\t\tif (t.hasBlock(\"form_field-legend\"))\n\t\t\t{\n\t\t\t\tt.removeValue(\"form_field-legend\");\n\t\t\t}\n\t\t}\n\n\t\t// display the regular properties\n\t\tfor (String property_name : getRegularProperties())\n\t\t{\n\t\t\t// setup the form field\n\t\t\tt.setValue(\"property\", property_name);\n\t\t\tt.setBlock(\"form_field\", \"form_field-generic\");\n\t\t\tt.appendBlock(\"fields\", \"field\");\n\t\t}\n\t}",
"public FieldsTemplateLibrary templateFieldLibraryUpdate(FieldsTemplateLibrary entity) {\n\t\tFieldsTemplateLibraryDAO dao = new FieldsTemplateLibraryDAO();\n\t\treturn dao.save(entity);\n\t}",
"public void update(Activity e){ \n\t template.update(e); \n\t}",
"public void transformTemplate(Template t)\n\t{\n\t\tList<String> mandatory_subjects = getMandatorySubjects();\n\t\t\n\t\t// display the constrained properties in the correct order\n\t\tfor (ConstrainedProperty property : getPositionedProperties())\n\t\t{\n\t\t\t// only show the CMF admin properties that can be edited\n\t\t\tif (!property.isEditable())\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tt.setValue(\"property\", property.getPropertyName());\n\n\t\t\tboolean\t\thandled = false;\n\t\t\tMimeType\tmimetype = property.getMimeType();\n\t\t\tif (mimetype != null)\n\t\t\t{\n\t\t\t\tif (!property.isAutoRetrieved())\n\t\t\t\t{\n\t\t\t\t\tif (0 == mimetype.toString().indexOf(\"image/\"))\n\t\t\t\t\t{\n\t\t\t\t\t\thandled = true;\n\t\t\t\t\t\tif (t.hasBlock(\"existing_field-legend\"))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tt.setBlock(\"existing_field-legend\", \"existing_field-legend\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tt.setBlock(\"existing_field\", \"existing_field-image\");\n\t\t\t\t\t}\n\t\t\t\t\telse if (MimeType.RAW == mimetype)\n\t\t\t\t\t{\n\t\t\t\t\t\thandled = true;\n\t\t\t\t\t\tif (t.hasBlock(\"existing_field-legend\"))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tt.setBlock(\"existing_field-legend\", \"existing_field-legend\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tt.setBlock(\"existing_field\", \"existing_field-raw\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif (mimetype == MimeType.APPLICATION_XHTML)\n\t\t\t\t\t{\n\t\t\t\t\t\thandled = true;\n\t\t\t\t\t\tt.setBlock(\"existing_field\", \"existing_field-xhtml\");\n\t\t\t\t\t}\n\t\t\t\t\telse if (mimetype == MimeType.TEXT_PLAIN)\n\t\t\t\t\t{\n\t\t\t\t\t\thandled = true;\n\t\t\t\t\t\tt.setBlock(\"existing_field\", \"existing_field-text\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (!handled)\n\t\t\t{\n\t\t\t\tif (property.isUrl())\n\t\t\t\t{\n\t\t\t\t\tt.setBlock(\"existing_field\", \"existing_field-url\");\n\t\t\t\t}\n\t\t\t\telse if (property.isEmail())\n\t\t\t\t{\n\t\t\t\t\tt.setBlock(\"existing_field\", \"existing_field-email\");\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tt.setBlock(\"existing_field\", \"existing_field-generic\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tappendFormField(t, property, null, mandatory_subjects);\n\n\t\t\tif (t.hasBlock(\"existing_field-legend\"))\n\t\t\t{\n\t\t\t\tt.removeValue(\"existing_field-legend\");\n\t\t\t}\n\t\t}\n\n\t\t// handle the regular properties\n\t\tfor (String property_name : getRegularProperties())\n\t\t{\n\t\t\tappendFormField(t, null, property_name, mandatory_subjects);\n\t\t}\n\t}",
"@Override\n\tpublic void update(finalDataBean t, String[] fields) throws Exception {\n\t\t\n\t}",
"private void updateDescTemplate(){\n\t\tif(propertiesObj == null)\n\t\t\treturn;\n\n\t\telse if(propertiesObj instanceof FormDef){\n\t\t\t((FormDef)propertiesObj).setDescriptionTemplate(txtDescTemplate.getText());\n\t\t\tformChangeListener.onFormItemChanged(propertiesObj);\n\t\t}\n\t}",
"@Override\r\n\tpublic void update( UserFields oldFields, UserFields newFields ) {\n\t\t\r\n\t}",
"private void populateFields() {\n\t\ttypeNameTF.setText(\"\");\n\t\tunitsTF.setText(\"\");\n\t\tunitMeasureTF.setText(\"\");\n\t\tvalidityDaysTF.setText(\"\");\n\t\treorderPointTF.setText(\"\");\n\t\tnotesTF.setText(\"\");\n\t\tstatusCB.getItems().addAll(\"Active\", \"Inactive\");\n\t\tstatusCB.setValue(\"Active\");\n\t}",
"@Test\n public void updateTemplateTest() throws IdfyException, Exception {\n UUID id = UUID.randomUUID();\n UpdatePdfTemplate model = new UpdatePdfTemplate.Builder().build();\n PdfTemplate response = api.updateTemplate(id, model);\n assertNotNull(response);\n }",
"public void setupFields()\n {\n FieldInfo field = null;\n field = new FieldInfo(this, \"ID\", Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Integer.class);\n field.setHidden(true);\n field = new FieldInfo(this, \"LastChanged\", Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Date.class);\n field.setHidden(true);\n field = new FieldInfo(this, \"Deleted\", 10, null, new Boolean(false));\n field.setDataClass(Boolean.class);\n field.setHidden(true);\n field = new FieldInfo(this, \"Description\", 25, null, null);\n field = new FieldInfo(this, \"CurrencyCode\", 3, null, null);\n field = new FieldInfo(this, \"LastRate\", 10, null, null);\n field.setDataClass(Double.class);\n field.setScale(-1);\n field = new FieldInfo(this, \"RateChangedDate\", 12, null, null);\n field.setDataClass(Date.class);\n field.setScale(Constants.DATE_ONLY);\n field = new FieldInfo(this, \"RateChangedBy\", 16, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, \"CostingRate\", 10, null, null);\n field.setDataClass(Double.class);\n field.setScale(-1);\n field = new FieldInfo(this, \"CostingChangedDate\", 12, null, null);\n field.setDataClass(Date.class);\n field.setScale(Constants.DATE_ONLY);\n field = new FieldInfo(this, \"CostingChangedBy\", 16, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, \"RoundAt\", 1, null, null);\n field.setDataClass(Short.class);\n field = new FieldInfo(this, \"IntegerDesc\", 20, null, \"Dollar\");\n field = new FieldInfo(this, \"FractionDesc\", 20, null, null);\n field = new FieldInfo(this, \"FractionAmount\", 10, null, new Integer(100));\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, \"Sign\", 3, null, \"$\");\n field = new FieldInfo(this, \"LanguageID\", Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, \"NaturalInteger\", 20, null, null);\n field = new FieldInfo(this, \"NaturalFraction\", 20, null, null);\n }",
"private void selectTemplateFieldsFromXML(IdentifiedRecordTemplate template) throws FormException {\n \n GenericRecordTemplate genericRecordTemplate = null;\n \n try {\n PublicationTemplate publicationTemplateImpl = PublicationTemplateManager.getInstance()\n .loadPublicationTemplate(template.getTemplateName());\n genericRecordTemplate = (GenericRecordTemplate) publicationTemplateImpl\n .getRecordTemplate();\n template.setEncrypted(publicationTemplateImpl.isDataEncrypted());\n } catch (PublicationTemplateException e) {\n throw new FormException(\"GenericRecordSetManager\",\n \"form.EXP_UNKNOWN_TEMPLATE\", e);\n }\n \n GenericRecordTemplate wrapped = (GenericRecordTemplate) template.\n getWrappedTemplate();\n FieldTemplate[] fields = genericRecordTemplate.getFieldTemplates();\n \n for (FieldTemplate field : fields) {\n String displayName = field.getDisplayerName();\n GenericFieldTemplate fieldTemplate = new GenericFieldTemplate(field.\n getFieldName(), field.getTypeName());\n \n fieldTemplate.setMandatory(field.isMandatory());\n fieldTemplate.setReadOnly(field.isReadOnly());\n fieldTemplate.setHidden(field.isHidden());\n fieldTemplate.setDisabled(field.isDisabled());\n fieldTemplate.setSearchable(field.isSearchable());\n fieldTemplate.setDisplayerName((displayName != null) ? displayName : \"\");\n fieldTemplate.setLabel(field.getLabel());\n fieldTemplate.setUsedAsFacet(field.isUsedAsFacet());\n fieldTemplate.setParametersObj(field.getParametersObj());\n \n wrapped.addFieldTemplate(fieldTemplate);\n }\n }",
"public void setTemplate(Template template)\n/* */ {\n/* 62 */ this.template = template;\n/* */ }",
"@Override\r\n\tpublic void update(SimpleJdbcTemplate template) throws Exception {\n\t}",
"public void setFieldDetails(){\n if (this.project != null){\n projectTitleField.setText( project.getTitle() );\n projectDescriptionField.setText( project.getDescription() );\n colorThemeField.setValue( Color.valueOf(project.getColorTheme()) );\n dueDateField.setValue( project.getDueDate() );\n createProjectBtn.setText( \"Update Project\" );\n }\n\n }",
"@Override\r\n\tpublic void update(CustomizePage cp) {\n\t\tgetHibernateTemplate().update(cp);\r\n\t}",
"@Test\n public void fieldTemplate() throws Exception {\n Document doc = new Document();\n DocumentBuilder builder = new DocumentBuilder(doc);\n\n // We can set a template name using by the fields. This property is used when the \"doc.AttachedTemplate\" is empty.\n // If this property is empty the default template file name \"Normal.dotm\" is used.\n doc.getFieldOptions().setTemplateName(\"\");\n\n FieldTemplate field = (FieldTemplate) builder.insertField(FieldType.FIELD_TEMPLATE, false);\n Assert.assertEquals(field.getFieldCode(), \" TEMPLATE \");\n\n builder.writeln();\n field = (FieldTemplate) builder.insertField(FieldType.FIELD_TEMPLATE, false);\n field.setIncludeFullPath(true);\n\n Assert.assertEquals(field.getFieldCode(), \" TEMPLATE \\\\p\");\n\n doc.updateFields();\n doc.save(getArtifactsDir() + \"Field.TEMPLATE.docx\");\n //ExEnd\n\n doc = new Document(getArtifactsDir() + \"Field.TEMPLATE.docx\");\n\n field = (FieldTemplate) doc.getRange().getFields().get(0);\n Assert.assertEquals(\" TEMPLATE \", field.getFieldCode());\n Assert.assertEquals(\"Normal.dotm\", field.getResult());\n\n field = (FieldTemplate) doc.getRange().getFields().get(1);\n Assert.assertEquals(\" TEMPLATE \\\\p\", field.getFieldCode());\n Assert.assertEquals(\"Normal.dotm\", field.getResult());\n }",
"int updateByPrimaryKey(TbFreightTemplate record);",
"@Override\n\tpublic void updateTmly(Tmly tmly) {\n\t\tString sql = \"update tmly set title=?,content=? where id_=?\";\n\t\tthis.jdbcTemplate\n\t\t\t\t.update(sql, new Object[] { tmly.getTitle(), tmly.getContent(),\n\t\t\t\t\t\ttmly.getId() });\n\t}",
"public void updateSupplier(Supplier e){ \n\t template.update(e); \n\t}",
"int updateByPrimaryKey(AccountAccountTemplateEntity record);",
"private void reWriteField(HttpServletRequest request) {\n\t\t// Reesccribir campos\n\t\trequest.setAttribute(\"importe\", importe);\n\t\trequest.setAttribute(\"concepto\", concepto);\n\t\trequest.setAttribute(\"coche\", c);\n\t}",
"private void updateTransactionFields() {\n if (transaction == null) {\n descriptionText.setText(\"\");\n executionDateButton.setText(dateFormat.format(new Date()));\n executionTimeButton.setText(timeFormat.format(new Date()));\n valueText.setText(\"\");\n valueSignToggle.setNegative();\n addButton.setText(R.string.add);\n // If we are editing a node, fill fields with current information\n } else {\n try {\n transaction.load();\n descriptionText.setText(transaction.getDescription());\n executionDateButton.setText(dateFormat.format(\n transaction.getExecutionDate()));\n executionTimeButton.setText(timeFormat.format(\n transaction.getExecutionDate()));\n BigDecimal value = transaction.getValue();\n valueText.setText(value.abs().toString());\n valueSignToggle.setToNumberSign(value);\n addButton.setText(R.string.edit);\n } catch (DatabaseException e) {\n Log.e(\"TMM\", \"Error loading transaction\", e);\n }\n }\n \n if (currentMoneyNode != null) {\n currencyTextView.setText(currentMoneyNode.getCurrency());\n }\n \n updateCategoryFields();\n updateTransferFields();\n }",
"private void updateFieldValues(){\r\n \tgenChainLengthField.setText(String.valueOf(settings.genChainLength));\r\n \tgenChainLengthFluxField.setText(String.valueOf(settings.genChainLengthFlux));\r\n \tstepGenDistanceField.setText(String.valueOf(settings.stepGenDistance));\r\n \trowsField.setText(String.valueOf(settings.rows));\r\n \tcolsField.setText(String.valueOf(settings.cols));\r\n \tcellWidthField.setText(String.valueOf(settings.cellWidth));\r\n \tstartRowField.setText(String.valueOf(settings.startRow));\r\n \tstartColField.setText(String.valueOf(settings.startCol));\r\n \tendRowField.setText(String.valueOf(settings.endRow));\r\n \tendColField.setText(String.valueOf(settings.endCol));\r\n \tprogRevealRadiusField.setText(String.valueOf(settings.progRevealRadius));\r\n \tprogDrawCB.setSelected(settings.progDraw);\r\n \tprogDrawSpeedField.setText(String.valueOf(settings.progDrawSpeed));\r\n }",
"private void saveTemplate()\r\n {\r\n\t String template = keyField.getText();\r\n\r\n\t int lenI = values.length, lenJ, lenK;\r\n\t String[][][] newValues = new String[lenI][][];\r\n\t for (int i=0; i<lenI; i++)\r\n\t {\r\n\t\t lenJ = values[i].length;\r\n\t\t newValues[i] = new String[lenJ][];\r\n\t\t for (int j=0; j<lenJ; j++)\r\n\t\t {\r\n\t\t\t lenK = values[i][j].length;\r\n\t\t\t newValues[i][j] = new String[lenK];\r\n\t\t\t for (int k=0; k<lenK; k++)\r\n\t\t\t\t values[i][j][k] = values[i][j][k];\r\n\t\t }\r\n\t }\r\n\t \r\n\t if (template.length()==0)\r\n\t {\r\n\t\t label.setText(\"Please enter a valid template name\");\r\n\t\t return;\r\n\t }\r\n\t \r\n\t // Update or store to the list of templates.\r\n for (int i=0; i<newValues.length; i++)\r\n \t for (int j=0; j<newValues[i].length; j++)\r\n\t\t\t newValues[i][j] = getComponentArray(components[i][j]);\r\n \r\n \t if (!definitionBox.isSelected())\r\n \t {\r\n \t\t newValues[FormatData.t.D_HDR.ordinal()] \r\n \t\t\t\t = newValues[FormatData.t.D_FLD.ordinal()] \r\n \t\t\t\t\t\t = new String[0][0];\r\n \t }\r\n \t if (!categoryBox.isSelected())\r\n \t {\r\n \t\t newValues[FormatData.t.C_HDR.ordinal()] \r\n \t\t\t\t = newValues[FormatData.t.C_FLD.ordinal()] \r\n \t\t\t\t\t\t = new String[0][0];\r\n \t }\r\n \t if (!exampleBox.isSelected())\r\n \t {\r\n \t\t newValues[FormatData.t.E_HDR.ordinal()] \r\n \t\t\t\t = newValues[FormatData.t.E_FLD.ordinal()] \r\n \t\t\t\t\t\t = new String[0][0];\r\n \t }\r\n\r\n templates.setTemplate(template, newValues);\r\n\r\n if (!model.contains(template))\r\n\t {\r\n\t int size = templateKeys.length;\r\n\t String[] newTemplates = new String[templateKeys.length + 1];\r\n\t if (templateKeys.length != 0)\r\n\t \t System.arraycopy(templateKeys, 0, newTemplates, 0, size);\r\n\t \r\n\t newTemplates[size] = template;\r\n\t templateKeys = newTemplates;\r\n\t model.add(size, templateKeys[size]);\r\n\t list.setSelectedIndex(size);\r\n\t }\r\n label.setText(\"Display format \" + template + \" saved\");\r\n }",
"public void updateRecord(IdentifiedRecordTemplate template,\n DataRecord updatedRecord) throws FormException {\n Connection con = null;\n \n try {\n GenericDataRecord record = (GenericDataRecord) updatedRecord;\n \n con = getConnection();\n try {\n updateFieldRows(con, template, record);\n } catch (CryptoException e) {\n throw new FormException(\"GenericRecordSetManager\", \"form.ENCRYPTING_DATA_FAILED\", e);\n }\n } catch (ClassCastException e) {\n throw new FormException(\"GenericRecordSetManager\", \"form.EXP_UNKNOWN_TEMPLATE\", e);\n } catch (SQLException e) {\n throw new FormException(\"GenericRecordSetManager\", \"form.EXP_UPDATED_FAILED\", e);\n } finally {\n closeConnection(con);\n }\n }",
"private void insertTemplateFieldRows(Connection con,\n IdentifiedRecordTemplate template) throws SQLException, FormException {\n PreparedStatement insert = null;\n \n try {\n insert = con.prepareStatement(INSERT_TEMPLATE_FIELD);\n \n int internalId = template.getInternalId();\n FieldTemplate[] fields = template.getFieldTemplates();\n for (int i = 0; i < fields.length; i++) {\n insert.setInt(1, internalId);\n insert.setString(2, fields[i].getFieldName());\n insert.setInt(3, i);\n insert.setString(4, fields[i].getTypeName());\n if (fields[i].isMandatory()) {\n insert.setInt(5, 1);\n } else {\n insert.setInt(5, 0);\n }\n if (fields[i].isReadOnly()) {\n insert.setInt(6, 1);\n } else {\n insert.setInt(6, 0);\n }\n insert.setInt(7, 1);\n insert.execute();\n }\n } finally {\n DBUtil.close(insert);\n }\n }",
"@FXML\n public void updateFields() {\n try {\n Worker currentWorker = workerAdaptor.getWorker(userIDComboBox.getValue());\n passwordTextField.setText(currentWorker.getPassword().strip());\n workerTypeComboBox.getSelectionModel().select(currentWorker.getWorkerType());\n } catch (Exception ex) {\n System.out.println(ex.getMessage());\n }\n }",
"void setTemplate(ITemplateKey key, Template template);",
"@Override\r\n protected void setFieldValues (Object ... fields)\r\n {\n \r\n }",
"protected void updateViewerInput() {\n \t\tIStructuredSelection selection= (IStructuredSelection) fTableViewer.getSelection();\n \n \t\tif (selection.size() == 1) {\n \t\t\tTemplatePersistenceData data= (TemplatePersistenceData) selection.getFirstElement();\n \t\t\tTemplate template= data.getTemplate();\n \t\t\tfPatternViewer.getDocument().set(template.getPattern());\n \t\t} else {\n \t\t\tfPatternViewer.getDocument().set(\"\"); //$NON-NLS-1$\n \t\t}\n \t}",
"Update createUpdate();",
"public Boolean updateTemplate(Template template)\n\t{\n\t\tTemplateDAO dao = new TemplateDAO();\n\t\tdao.save(template);\t\t\n\t\treturn true;\n\t}",
"protected void editField(HttpServletRequest request, HttpServletResponse response, ContentFeedRel _ContentFeedRel) throws Exception{\n\r\n if (!isMissing(request.getParameter(\"contentFeedId\"))) {\r\n m_logger.debug(\"updating param contentFeedId from \" +_ContentFeedRel.getContentFeedId() + \"->\" + request.getParameter(\"contentFeedId\"));\r\n _ContentFeedRel.setContentFeedId(WebParamUtil.getLongValue(request.getParameter(\"contentFeedId\")));\r\n }\r\n if (!isMissing(request.getParameter(\"contentId\"))) {\r\n m_logger.debug(\"updating param contentId from \" +_ContentFeedRel.getContentId() + \"->\" + request.getParameter(\"contentId\"));\r\n _ContentFeedRel.setContentId(WebParamUtil.getLongValue(request.getParameter(\"contentId\")));\r\n }\r\n if (!isMissing(request.getParameter(\"timeCreated\"))) {\r\n m_logger.debug(\"updating param timeCreated from \" +_ContentFeedRel.getTimeCreated() + \"->\" + request.getParameter(\"timeCreated\"));\r\n _ContentFeedRel.setTimeCreated(WebParamUtil.getDateValue(request.getParameter(\"timeCreated\")));\r\n }\r\n\r\n m_actionExtent.beforeUpdate(request, response, _ContentFeedRel);\r\n m_ds.update(_ContentFeedRel);\r\n m_actionExtent.afterUpdate(request, response, _ContentFeedRel);\r\n }",
"public static void insertField(Field field) {\n\t\t\n\t\ttry{\n Connection connection = getConnection();\n\n\n try {\n PreparedStatement statement = connection.prepareStatement(\"INSERT INTO template_fields (field_id, form_name, field_name, field_value, field_type, field_mandatory)\"\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" VALUES ('\"+field.getTheId()+\"', '\"+field.getTheFormName()+\"', '\"+field.getTheName()+\"', 'Here is text 424', '\"+field.getTheType()+\"', '\"+field.getTheMandatory()+\"')\"); \n statement.executeUpdate();\n\n statement.close();\n connection.close();\n } catch (SQLException ex) {\n \t//23 stands for duplicate / unique entries in db, so listen for that error and update db if so\n \tif (ex.getSQLState().startsWith(\"23\")) {\n System.out.println(\"Duplicate\");\n PreparedStatement statement = connection.prepareStatement(\"UPDATE template_fields SET \"\n \t\t+ \"field_id = '\"+field.getTheId()+\"', field_name = '\"+field.getTheName()+\"',\"\n \t\t+ \" field_value = 'here text', field_type = '\"+field.getTheType()+\"'\"\n \t\t\t\t+ \"WHERE field_id = '\"+field.getTheId()+\"' \"); \n\t\t\t\t\tstatement.executeUpdate();\n\t\t\t\t\t\n\t\t\t\t\tstatement.close();\n\t\t\t\t\tconnection.close();\n \t}\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\t}",
"public String change_template(Map<String, String> variables) {\n current_template_index = PrayerTemplates.get_next_template(my_prayer_part_type, current_template_index);\r\n int template_size = PrayerTemplates.get_template_size(my_prayer_part_type);\r\n my_prayer_part_text = PrayerTemplates.get_template_text(my_prayer_part_type, current_template_index);\r\n\r\n // step #2 - plug variables into new template\r\n Iterator it = variables.entrySet().iterator();\r\n while (it.hasNext()) {\r\n Map.Entry pair = (Map.Entry) it.next();\r\n substitute(pair.getKey().toString(), pair.getValue().toString());\r\n }\r\n\r\n return String.valueOf(current_template_index + 1) + \"/\" + String.valueOf(template_size);\r\n }",
"public void updateSettings(FileObject file) {\n DataObject dobj = null;\n DataFolder folder = null;\n try {\n dobj = DataObject.find(file);\n folder = dobj.getFolder();\n } catch (DataObjectNotFoundException ex) {\n Exceptions.printStackTrace(ex);\n }\n if (dobj == null || folder == null) {\n return;\n }\n for (CreateFromTemplateAttributesProvider provider\n : Lookup.getDefault().lookupAll(CreateFromTemplateAttributesProvider.class)) {\n Map<String, ?> attrs = provider.attributesFor(dobj, folder, \"XXX\"); // NOI18N\n if (attrs == null) {\n continue;\n }\n Object aName = attrs.get(\"user\"); // NOI18N\n if (aName != null) {\n author = aName.toString();\n break;\n }\n }\n }",
"protected void editField(HttpServletRequest request, HttpServletResponse response, EcAnonymousPaymentInfo _EcAnonymousPaymentInfo) throws Exception{\n\r\n if (!isMissing(request.getParameter(\"anonymousUserId\"))) {\r\n m_logger.debug(\"updating param anonymousUserId from \" +_EcAnonymousPaymentInfo.getAnonymousUserId() + \"->\" + request.getParameter(\"anonymousUserId\"));\r\n _EcAnonymousPaymentInfo.setAnonymousUserId(WebParamUtil.getLongValue(request.getParameter(\"anonymousUserId\")));\r\n }\r\n if (!isMissing(request.getParameter(\"firstName\"))) {\r\n m_logger.debug(\"updating param firstName from \" +_EcAnonymousPaymentInfo.getFirstName() + \"->\" + request.getParameter(\"firstName\"));\r\n _EcAnonymousPaymentInfo.setFirstName(WebParamUtil.getStringValue(request.getParameter(\"firstName\")));\r\n }\r\n if (!isMissing(request.getParameter(\"middleInitial\"))) {\r\n m_logger.debug(\"updating param middleInitial from \" +_EcAnonymousPaymentInfo.getMiddleInitial() + \"->\" + request.getParameter(\"middleInitial\"));\r\n _EcAnonymousPaymentInfo.setMiddleInitial(WebParamUtil.getStringValue(request.getParameter(\"middleInitial\")));\r\n }\r\n if (!isMissing(request.getParameter(\"lastName\"))) {\r\n m_logger.debug(\"updating param lastName from \" +_EcAnonymousPaymentInfo.getLastName() + \"->\" + request.getParameter(\"lastName\"));\r\n _EcAnonymousPaymentInfo.setLastName(WebParamUtil.getStringValue(request.getParameter(\"lastName\")));\r\n }\r\n if (!isMissing(request.getParameter(\"address1\"))) {\r\n m_logger.debug(\"updating param address1 from \" +_EcAnonymousPaymentInfo.getAddress1() + \"->\" + request.getParameter(\"address1\"));\r\n _EcAnonymousPaymentInfo.setAddress1(WebParamUtil.getStringValue(request.getParameter(\"address1\")));\r\n }\r\n if (!isMissing(request.getParameter(\"address2\"))) {\r\n m_logger.debug(\"updating param address2 from \" +_EcAnonymousPaymentInfo.getAddress2() + \"->\" + request.getParameter(\"address2\"));\r\n _EcAnonymousPaymentInfo.setAddress2(WebParamUtil.getStringValue(request.getParameter(\"address2\")));\r\n }\r\n if (!isMissing(request.getParameter(\"city\"))) {\r\n m_logger.debug(\"updating param city from \" +_EcAnonymousPaymentInfo.getCity() + \"->\" + request.getParameter(\"city\"));\r\n _EcAnonymousPaymentInfo.setCity(WebParamUtil.getStringValue(request.getParameter(\"city\")));\r\n }\r\n if (!isMissing(request.getParameter(\"state\"))) {\r\n m_logger.debug(\"updating param state from \" +_EcAnonymousPaymentInfo.getState() + \"->\" + request.getParameter(\"state\"));\r\n _EcAnonymousPaymentInfo.setState(WebParamUtil.getStringValue(request.getParameter(\"state\")));\r\n }\r\n if (!isMissing(request.getParameter(\"zip\"))) {\r\n m_logger.debug(\"updating param zip from \" +_EcAnonymousPaymentInfo.getZip() + \"->\" + request.getParameter(\"zip\"));\r\n _EcAnonymousPaymentInfo.setZip(WebParamUtil.getStringValue(request.getParameter(\"zip\")));\r\n }\r\n if (!isMissing(request.getParameter(\"country\"))) {\r\n m_logger.debug(\"updating param country from \" +_EcAnonymousPaymentInfo.getCountry() + \"->\" + request.getParameter(\"country\"));\r\n _EcAnonymousPaymentInfo.setCountry(WebParamUtil.getStringValue(request.getParameter(\"country\")));\r\n }\r\n if (!isMissing(request.getParameter(\"paymentType\"))) {\r\n m_logger.debug(\"updating param paymentType from \" +_EcAnonymousPaymentInfo.getPaymentType() + \"->\" + request.getParameter(\"paymentType\"));\r\n _EcAnonymousPaymentInfo.setPaymentType(WebParamUtil.getIntValue(request.getParameter(\"paymentType\")));\r\n }\r\n if (!isMissing(request.getParameter(\"paymentNum\"))) {\r\n m_logger.debug(\"updating param paymentNum from \" +_EcAnonymousPaymentInfo.getPaymentNum() + \"->\" + request.getParameter(\"paymentNum\"));\r\n _EcAnonymousPaymentInfo.setPaymentNum(WebParamUtil.getStringValue(request.getParameter(\"paymentNum\")));\r\n }\r\n if (!isMissing(request.getParameter(\"paymentExpireMonth\"))) {\r\n m_logger.debug(\"updating param paymentExpireMonth from \" +_EcAnonymousPaymentInfo.getPaymentExpireMonth() + \"->\" + request.getParameter(\"paymentExpireMonth\"));\r\n _EcAnonymousPaymentInfo.setPaymentExpireMonth(WebParamUtil.getIntValue(request.getParameter(\"paymentExpireMonth\")));\r\n }\r\n if (!isMissing(request.getParameter(\"paymentExpireYear\"))) {\r\n m_logger.debug(\"updating param paymentExpireYear from \" +_EcAnonymousPaymentInfo.getPaymentExpireYear() + \"->\" + request.getParameter(\"paymentExpireYear\"));\r\n _EcAnonymousPaymentInfo.setPaymentExpireYear(WebParamUtil.getIntValue(request.getParameter(\"paymentExpireYear\")));\r\n }\r\n if (!isMissing(request.getParameter(\"paymentExtraNum\"))) {\r\n m_logger.debug(\"updating param paymentExtraNum from \" +_EcAnonymousPaymentInfo.getPaymentExtraNum() + \"->\" + request.getParameter(\"paymentExtraNum\"));\r\n _EcAnonymousPaymentInfo.setPaymentExtraNum(WebParamUtil.getStringValue(request.getParameter(\"paymentExtraNum\")));\r\n }\r\n if (!isMissing(request.getParameter(\"timeCreated\"))) {\r\n m_logger.debug(\"updating param timeCreated from \" +_EcAnonymousPaymentInfo.getTimeCreated() + \"->\" + request.getParameter(\"timeCreated\"));\r\n _EcAnonymousPaymentInfo.setTimeCreated(WebParamUtil.getDateValue(request.getParameter(\"timeCreated\")));\r\n }\r\n\r\n m_actionExtent.beforeUpdate(request, response, _EcAnonymousPaymentInfo);\r\n m_ds.update(_EcAnonymousPaymentInfo);\r\n m_actionExtent.afterUpdate(request, response, _EcAnonymousPaymentInfo);\r\n }",
"public void updateContent() {\n\t\t\n\t\tupdateResidencias();\n\t\tupdateUniversidades();\n\t\t\n\t}",
"private void updateText(){\n\t\tif(propertiesObj == null)\n\t\t\treturn;\n\n\t\tif(propertiesObj instanceof QuestionDef)\n\t\t\t((QuestionDef)propertiesObj).setText(txtText.getText());\n\t\telse if(propertiesObj instanceof OptionDef)\n\t\t\t((OptionDef)propertiesObj).setText(txtText.getText());\n\t\telse if(propertiesObj instanceof PageDef)\n\t\t\t((PageDef)propertiesObj).setName(txtText.getText());\n\t\telse if(propertiesObj instanceof FormDef)\n\t\t\t((FormDef)propertiesObj).setName(txtText.getText());\n\n\t\tformChangeListener.onFormItemChanged(propertiesObj);\n\t}",
"@Override\n public void updateItem(P_CK t) {\n \n }",
"private void selectTemplateFieldRows(Connection con,\n IdentifiedRecordTemplate template) throws SQLException, FormException {\n PreparedStatement select = null;\n ResultSet rs = null;\n GenericRecordTemplate wrapped = (GenericRecordTemplate) template\n .getWrappedTemplate();\n \n try {\n select = con.prepareStatement(SELECT_TEMPLATE_FIELDS);\n select.setInt(1, template.getInternalId());\n rs = select.executeQuery();\n \n GenericFieldTemplate fieldTemplate = null;\n String fieldName;\n String fieldType;\n boolean isMandatory;\n boolean isReadOnly;\n boolean isHidden;\n while (rs.next()) {\n // templateId = rs.getInt(1);\n fieldName = rs.getString(2);\n // fieldIndex = rs.getInt(3);\n fieldType = rs.getString(4);\n isMandatory = rs.getBoolean(5);\n isReadOnly = rs.getBoolean(6);\n isHidden = rs.getBoolean(7);\n \n fieldTemplate = new GenericFieldTemplate(fieldName, fieldType);\n fieldTemplate.setMandatory(isMandatory);\n fieldTemplate.setReadOnly(isReadOnly);\n fieldTemplate.setHidden(isHidden);\n \n wrapped.addFieldTemplate(fieldTemplate);\n }\n } finally {\n DBUtil.close(rs, select);\n }\n }",
"protected void editField(HttpServletRequest request, HttpServletResponse response, CleanerServiceItem _CleanerServiceItem) throws Exception{\n\r\n if (!isMissing(request.getParameter(\"serviceId\"))) {\r\n m_logger.debug(\"updating param serviceId from \" +_CleanerServiceItem.getServiceId() + \"->\" + request.getParameter(\"serviceId\"));\r\n _CleanerServiceItem.setServiceId(WebParamUtil.getLongValue(request.getParameter(\"serviceId\")));\r\n\r\n }\r\n if (!isMissing(request.getParameter(\"serviceItemId\"))) {\r\n m_logger.debug(\"updating param serviceItemId from \" +_CleanerServiceItem.getServiceItemId() + \"->\" + request.getParameter(\"serviceItemId\"));\r\n _CleanerServiceItem.setServiceItemId(WebParamUtil.getLongValue(request.getParameter(\"serviceItemId\")));\r\n\r\n }\r\n if (!isMissing(request.getParameter(\"itemType\"))) {\r\n m_logger.debug(\"updating param itemType from \" +_CleanerServiceItem.getItemType() + \"->\" + request.getParameter(\"itemType\"));\r\n _CleanerServiceItem.setItemType(WebParamUtil.getIntegerValue(request.getParameter(\"itemType\")));\r\n\r\n }\r\n if (!isMissing(request.getParameter(\"title\"))) {\r\n m_logger.debug(\"updating param title from \" +_CleanerServiceItem.getTitle() + \"->\" + request.getParameter(\"title\"));\r\n _CleanerServiceItem.setTitle(WebParamUtil.getStringValue(request.getParameter(\"title\")));\r\n\r\n }\r\n if (!isMissing(request.getParameter(\"imagePath\"))) {\r\n m_logger.debug(\"updating param imagePath from \" +_CleanerServiceItem.getImagePath() + \"->\" + request.getParameter(\"imagePath\"));\r\n _CleanerServiceItem.setImagePath(WebParamUtil.getStringValue(request.getParameter(\"imagePath\")));\r\n\r\n }\r\n if (!isMissing(request.getParameter(\"imagePathLocal\"))) {\r\n m_logger.debug(\"updating param imagePathLocal from \" +_CleanerServiceItem.getImagePathLocal() + \"->\" + request.getParameter(\"imagePathLocal\"));\r\n _CleanerServiceItem.setImagePathLocal(WebParamUtil.getStringValue(request.getParameter(\"imagePathLocal\")));\r\n\r\n }\r\n if (!isMissing(request.getParameter(\"basePrice\"))) {\r\n m_logger.debug(\"updating param basePrice from \" +_CleanerServiceItem.getBasePrice() + \"->\" + request.getParameter(\"basePrice\"));\r\n _CleanerServiceItem.setBasePrice(WebParamUtil.getDoubleValue(request.getParameter(\"basePrice\")));\r\n\r\n }\r\n if (!isMissing(request.getParameter(\"note\"))) {\r\n m_logger.debug(\"updating param note from \" +_CleanerServiceItem.getNote() + \"->\" + request.getParameter(\"note\"));\r\n _CleanerServiceItem.setNote(WebParamUtil.getStringValue(request.getParameter(\"note\")));\r\n\r\n }\r\n\r\n m_actionExtent.beforeUpdate(request, response, _CleanerServiceItem);\r\n m_ds.update(_CleanerServiceItem);\r\n m_actionExtent.afterUpdate(request, response, _CleanerServiceItem);\r\n }",
"@Override\n\tpublic boolean update(NPC_tmpl obj) {\n\t\treturn false;\n\t}",
"public void updatePanel(String id, String name, String contact, String address, String email, String username, String password)\n\t{\n\t\tthis.textField.setText(id);\n\t\tthis.nameField.setText(name);\n\t\tthis.addressField.setText(address);\n\t\tthis.contactField.setText(contact);\n\t\tthis.emailField.setText(email);\n\t\tthis.usernameField.setText(username);\n\t\tthis.passwordField.setText(password);\n\t}",
"public void editDisplayedItem(String key, String fieldToChange, Object newValue){}",
"public void setupEditFields(Dialog dialog, HashMap bookData) {\n ButtonType addButtontype = new ButtonType(\"Confirm\", ButtonBar.ButtonData.OK_DONE);\r\n dialog.getDialogPane().getButtonTypes().addAll(addButtontype, ButtonType.CANCEL);\r\n\r\n // Creates TextFields\r\n GridPane grid = new GridPane();\r\n grid.setHgap(10);\r\n grid.setVgap(10);\r\n grid.setPadding(new Insets(20, 150, 10, 10));\r\n\r\n TextField title = new TextField();\r\n title.setPromptText(\"Book Title\");\r\n if (!bookData.isEmpty()) {\r\n title.setText(bookData.get(\"title\").toString());\r\n }\r\n\r\n TextField author = new TextField();\r\n author.setPromptText(\"Book Author\");\r\n if (!bookData.isEmpty()) {\r\n author.setText(bookData.get(\"authors\").toString());\r\n }\r\n\r\n TextField location = new TextField();\r\n location.setPromptText(\"Location\");\r\n if (!bookData.isEmpty()) {\r\n location.setText(bookData.get(\"location\").toString());\r\n }\r\n\r\n TextField copies = new TextField();\r\n copies.setPromptText(\"Copies\");\r\n if (!bookData.isEmpty()) {\r\n copies.setText(bookData.get(\"copies_in_stock\").toString());\r\n }\r\n\r\n grid.add(new Label(\"Title:\"), 0, 0);\r\n grid.add(title, 1, 0);\r\n\r\n grid.add(new Label(\"Author:\"), 0, 1);\r\n grid.add(author, 1, 1);\r\n\r\n TextField isbn = new TextField();\r\n if (bookData.isEmpty()) {\r\n isbn.setPromptText(\"ISBN\");\r\n grid.add(new Label(\"ISBN:\"), 0, 2);\r\n grid.add(isbn, 1, 2);\r\n }\r\n\r\n grid.add(new Label(\"Location:\"), 0, 3);\r\n grid.add(location, 1, 3);\r\n\r\n grid.add(new Label(\"Copies:\"), 0, 4);\r\n grid.add(copies, 1, 4);\r\n\r\n\r\n // Activate edit button when all fields have text\r\n Node addButton = dialog.getDialogPane().lookupButton(addButtontype);\r\n BooleanBinding booleanBind = title.textProperty().isEmpty()\r\n .or(author.textProperty().isEmpty())\r\n .or(location.textProperty().isEmpty())\r\n .or(copies.textProperty().isEmpty());\r\n\r\n addButton.disableProperty().bind(booleanBind);\r\n\r\n dialog.getDialogPane().setContent(grid);\r\n dialog.show();\r\n\r\n addButton.addEventFilter(ActionEvent.ACTION, clickEvent -> {\r\n try {\r\n if (this.books.getByColumn(\"isbn\", isbn.getText()).isEmpty()) {\r\n HashMap bookChange = new HashMap();\r\n if (bookData.isEmpty()) {\r\n bookChange.put(\"isbn\", isbn.getText());\r\n bookChange.put(\"title\", title.getText());\r\n bookChange.put(\"authors\", author.getText());\r\n bookChange.put(\"location\", location.getText());\r\n bookChange.put(\"copies_in_stock\", Integer.parseInt(copies.getText()));\r\n } else {\r\n bookChange.put(\"title\", QueryBuilder.escapeValue(title.getText()));\r\n bookChange.put(\"authors\", QueryBuilder.escapeValue(author.getText()));\r\n bookChange.put(\"location\", QueryBuilder.escapeValue(location.getText()));\r\n bookChange.put(\"copies_in_stock\", Integer.parseInt(copies.getText()));\r\n }\r\n\r\n if (bookData.isEmpty()) {\r\n this.books.insert(bookChange);\r\n } else {\r\n this.books.update(bookChange, Integer.parseInt(bookData.get(\"id\").toString()));\r\n }\r\n\r\n QueryBuilder queryBooks = new QueryBuilder(\"books\");\r\n twg.setTable(queryBooks.select(Books.memberVisibleFields).build(), tableBooks);\r\n\r\n } else {\r\n Screen.popup(\"WARNING\", \"The ISBN typed in already exists, please edit the existing entry.\");\r\n clickEvent.consume();\r\n }\r\n\r\n } catch (NumberFormatException e) {\r\n Screen.popup(\"WARNING\", \"The 'copies' field should contain a number.\");\r\n clickEvent.consume();\r\n }\r\n });\r\n\r\n Platform.runLater(() -> title.requestFocus());\r\n }",
"public void updateFields(Connection con) throws SQLException, NumberFormatException {\r\n //Get the current CID selected\r\n int intCID = getCID();\r\n\r\n //If the CID != 0, load the data into the fields\r\n //Otherwise clear all the fields\r\n if (intCID != 0) {\r\n //Query for information associated with the selected CID\r\n ResultSet rs = Queries.getCourse(con, intCID);\r\n\r\n //Update all the fields with the associated data\r\n if (rs.next()) {\r\n cbSID.setSelectedItem(rs.getInt(2));;\r\n tfName.setText(rs.getString(3));\r\n tfTitle.setText(rs.getString(4));\r\n tfDepartment.setText(rs.getString(5));\r\n tfCredits.setText(rs.getString(6));\r\n taDescription.setText(rs.getString(7));\r\n taOutcomes.setText(rs.getString(8));\r\n tfContactEmail.setText(rs.getString(9));\r\n tfContactName.setText(rs.getString(10));\r\n } else {\r\n JOptionPane.showMessageDialog(JPCourse.this, \"Course Not Found\", \"Error\", JOptionPane.ERROR_MESSAGE);\r\n }\r\n } else {\r\n clearFields();\r\n }\r\n }",
"private void update(VelocityContext context, String templateName)\n {\n long start = System.currentTimeMillis();\n long merged = 0;\n \n StringWriter sw = new StringWriter();\n try\n {\n final Template template = velocity.getTemplate(templateName, \"UTF-8\");\n template.merge(context, sw);\n merged = System.currentTimeMillis() - start;\n }\n catch (Exception e)\n {\n Utils.logError(\"Error while loading template\", e, true);\n return;\n }\n \n browser.setText(sw.toString());\n long displayed = System.currentTimeMillis() - start - merged;\n \n LoggerFactory.getLogger(DocumentList.class).debug(\n String.format(Locale.ENGLISH, \n \"Velocity [rendering: %.2f, display: %.2f]\",\n merged / 1000.0,\n displayed / 1000.0));\n }",
"public void updateContent(View theView) {\n if (getArguments() != null) {\n Credentials credentials = (Credentials) getArguments().get(\"key\");\n EditText etEmail = theView.findViewById(R.id.edit_text_email);\n etEmail.setText(credentials.getEmail());\n\n EditText etPass = theView.findViewById(R.id.edit_text_password);\n etPass.setText(credentials.getPassword());\n }\n }",
"void updateModelFromView();",
"private void setNewFields(String[] fields) {\n for (String fieldName : fields) {\n setNewField(fieldName);\n }\n }",
"public void prepareUpdate() {\r\n\t\tlog.info(\"prepare for update customer...\");\r\n\t\tMap<String, String> params = FacesContext.getCurrentInstance()\r\n\t\t\t\t.getExternalContext().getRequestParameterMap();\r\n\t\tString id = params.get(\"customerIdParam\");\r\n\t\tlog.info(\"ID==\" + id);\r\n\t\tCustomer customer = customerService.searchCustomerById(new Long(id));\r\n\t\tcurrent.setCustomerId(customer.getCustomerId());\r\n\t\tcurrent.setCustomerCode(customer.getCustomerCode());\r\n\t\tcurrent.setCustomerName(customer.getCustomerName());\r\n\t\tcurrent.setTermOfPayment(customer.getTermOfPayment());\r\n\t\tcurrent.setCustomerGrade(customer.getCustomerGrade() != null ? customer.getCustomerGrade() : \"\");\r\n\t\tcurrent.setAddress(customer.getAddress());\r\n\t\tlog.info(\"prepare for update customer end...\");\r\n\t}",
"private void updateContent() {\n if (product != null) {\n etProductName.setText(product.getName());\n etPrice.setText(product.getPrice().toString());\n }\n }",
"@Override\n\tpublic void updateEntry(T t) {\n\t\tthis.hibernateTemplate.update(t);\n\t}",
"public interface ITemplateObjectField {\n\t/**\n\t * Field Type;\n\t * \n\t * @author crazyjohn\n\t *\n\t */\n\tenum FieldType {\n\t\tSHORT, INT, LONG, FLOAT, DOUBLE, STRING, ARRAY, LIST, SET, MAP;\n\n\t\tpublic static FieldType typeOf(String fieldType) {\n\t\t\t// TODO Auto-generated method stub\n\t\t\treturn null;\n\t\t}\n\t}\n\n\t/**\n\t * Get the field type;\n\t * \n\t * @return\n\t */\n\tpublic FieldType getType();\n\n\t/**\n\t * Get type name;\n\t * \n\t * @return\n\t */\n\tpublic String getTypeName();\n\n\t/**\n\t * Get the fieldName;\n\t * \n\t * @return\n\t */\n\tpublic String getName();\n\n\t/**\n\t * Get the field comment;\n\t * \n\t * @return\n\t */\n\tpublic String getComment();\n}",
"private void refreshFieldsVisibility()\n {\n \n }",
"public void changeFields() throws Exception {\n jTextField1.setText(String.valueOf(article.getItemCode()));\n jTextField2.setText(article.getName());\n jTextField3.setText(String.valueOf(article.getBrandCode()));\n jTextField4.setText(String.valueOf(article.getSalePrice()));\n jTextField5.setText(String.valueOf(article.getCostPrice()));\n jTextField6.setText(String.valueOf(article.getStock()));\n jTextField7.setText(article.getObservation());\n jTextField8.setText(String.valueOf(article.getHeadingCode()));\n \n }",
"public Form getUpdateForm() throws PublicationTemplateException;",
"public void update( )\n {\n FormPortletHome.getInstance( ).update( this );\n }",
"void updateInformation();",
"public void formatFields() {\r\n\t}",
"public void /*IFieldUpdatingCallback.*/fieldUpdating(Field field) {\n if (field.getType() == FieldType.FIELD_AUTHOR)\n {\n FieldAuthor fieldAuthor = (FieldAuthor) field;\n try {\n fieldAuthor.setAuthorName(\"Updating John Doe\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }",
"void updateViewFromModel();",
"void processModelTemplate(NamedTemplate template, AmqpVersion version)\n {\n }",
"public void addField(TemplateField field)\r\n{\r\n\tfields.addElement(field);\r\n}",
"public abstract void setTemplId(Integer templId);",
"private void insertFieldRows(Connection con,\n IdentifiedRecordTemplate template, GenericDataRecord record)\n throws SQLException, FormException, CryptoException {\n PreparedStatement insert = null;\n \n try {\n insert = con.prepareStatement(INSERT_FIELD);\n int recordId = record.getInternalId();\n String[] fieldNames = record.getFieldNames();\n Map<String, String> rows = new HashMap<String, String>();\n for (String fieldName : fieldNames) {\n Field field = record.getField(fieldName);\n String fieldValue = field.getStringValue();\n rows.put(fieldName, fieldValue);\n }\n \n if (template.isEncrypted()) {\n rows = getEncryptionService().encryptContent(rows);\n }\n \n for (String fieldName : rows.keySet()) {\n String fieldValue = rows.get(fieldName);\n insert.setInt(1, recordId);\n insert.setString(2, fieldName);\n insert.setString(3, fieldValue);\n insert.execute();\n }\n } finally {\n DBUtil.close(insert);\n }\n }",
"private void setFields() {\n\t\tfirstname.setText(guest.getFirstName());\n\t\tlastname.setText(guest.getLastName());\n\t\tpassport.setText(guest.getPassportNumber());\n\t\ttelephone.setText(guest.getTelephoneNumber());\n\t\tarrival.setText(arrivalDate.toString());\n\t\tdeparture.setText(departureDate.toString());\n\n\t\tif (hotelChoice.getName() != null && hotelChoice.getName() != \"\"\n\t\t\t\t&& !(hotelChoice.getName() == Controller.DEFAULT_HOTEL_CHOICE)) {\n\t\t\thotel.setText(hotelChoice.getName());\n\t\t} else {\n\t\t\thotelChoice = new Hotel();\n\t\t\thotelChoice.setName(\"\");\n\t\t\thotel.clear();\n\t\t}\n\t\tif (roomQualityChoice.getQuality() != null && roomQualityChoice.getQuality() != \"\"\n\t\t\t\t&& !(roomQualityChoice.getQuality() == Controller.DEFAULT_QUALITY_CHOICE)) {\n\t\t\tquality.setText(roomQualityChoice.getQuality());\n\t\t} else {\n\t\t\troomQualityChoice = new RoomQuality();\n\t\t\troomQualityChoice.setQuality(\"\");\n\t\t\tquality.clear();\n\t\t}\n\t\tif (discountChoice > 0) {\n\t\t\tdiscount.setText(\"(-\" + discountChoice + \"%)\");\n\t\t}\n\n\t\tloadAvailableRooms();\n\n\t}",
"public boolean insertFieldsTemplate(Template template, ArrayList<FieldsTemplate> fields)\n\t{\n\t\tFieldsTemplateDAO daoTemplate = new FieldsTemplateDAO();\n\t\t\n\t\tfor (FieldsTemplate field:fields)\n\t\t{\n\t\t\tfield.setTemplateId(template);\n\t\t\tdaoTemplate.saveNew(field);\t\n\t\t}\n\t\t\n\t\treturn true;\n\t}",
"public void updateDisplayFields(Booking b){\n Vehicle v = b.getVehicle();\n CustomerAccount ca = v.getCustomer(); \n \n \n createCustomerName.setText(ca.getFirstName());\n createCustomerSurname.setText(ca.getLastName());\n createCustomerNumber.setText(ca.getPhoneNumber());\n createCustomerAddress1.setText(ca.getAddressLine1());\n createCustomerAddress2.setText(ca.getAddressLine2());\n createCustomerCounty.setText(ca.getCounty());\n createCustomerPostal.setText(ca.getPostCode());\n createCustomerCompany.setText(ca.getCompanyName());\n //VEHICLES\n createVehicleMake.setText(v.getMake());\n createVehicleModel.setText(v.getModel());\n createVehicleReg.setText(v.getRegistration());\n createVehicleMileage.setText(Integer.toString(v.getMileage()));\n createVehicleEngine.setText(v.getEngineSize());\n createVehicleColour.setText(v.getColour());\n createVehicleFuel.setText(v.getFuelType());\n String MOTexpire = \"\";\n if (v.getMOTExpire() == null)\n MOTexpire = \"N/A\";\n else\n MOTexpire = v.getMOTExpire().getTime().toString();\n \n createVehicleMOT.setText(MOTexpire);\n \n String ServiceDate = \"\";\n if (v.getLastService() == null)\n ServiceDate = \"N/A\";\n else\n ServiceDate = v.getLastService().getTime().toString();\n \n createVehicleService.setText(ServiceDate);\n createVehicleWarranty.setText(v.getWarrantyCompany());\n\n }",
"@Override\r\n\tpublic String update() {\n\t\tSystem.out.println(\"updateView.\");\r\n\t\t\r\n\t\t//javax.servlet.http.HttpSession session=request.getSession();\r\n\t\t//javax.servlet.ServletContext application=request.getServletContext();\r\n\t\t\r\n\t\t//String vId=request.getParameter(\"id\");\r\n\t\tif(!SysFun.isNullOrEmpty(id)) {\r\n\t\t\tLong iId=SysFun.parseLong(id);\r\n\t\t\tHeadLine bean=headLineService.load(iId);\r\n\t\t\t\r\n\t\t\tif(bean!=null) {\r\n\t\t\t\t\r\n\t\t\t\trequest.put(\"Id\", bean.getId());\r\n\t\t\t\trequest.put(\"lineName\", bean.getLineName());\r\n\t\t\t\trequest.put(\"lineLink\", bean.getLineLink());\r\n\t\t\t\t//request.put(\"lineImg\", bean.getLineImg());\r\n\t\t\t\treturn \"update\";\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn \"go_preload\";\r\n\t}",
"abstract void updateStructure();",
"private static void resetFields() {\n\t\t\t//Common Project components\n\t\t\tpCode.setText(\"\");\n\t\t\tmsgCode.setText(\"\");\n\t\t\tpName.setText(\"\");\n\t\t\tmsgName.setText(\"\");\n\t\t\tpClient.setText(\"\");\n\t\t\tmsgClient.setText(\"\");\n\t\t\tpSDate.setText(dateFormat.format(new Date()));\n\t\t\tmsgSDate.setText(\"\");\n\t\t\t\n\t\t\t//Ongoing Project components\n\t\t\tpDeadline.setText(dateFormat.format(new Date()));\n\t\t\tmsgDeadline.setText(\"\");\n\t\t\tpBudget.setText(\"0\");\n\t\t\tmsgBudget.setText(\"\");\n\t\t\tpCompletion.setText(\"0\");\t\t\t\n\t\t\tmsgCompletion.setText(\"\");\n\t\t\t\n\t\t\t//Finished Project components\n\t\t\tpEndDate.setText(dateFormat.format(new Date()));\n\t\t\tmsgEndDate.setText(\"\");\t\n\t\t\tpTotalCost.setText(\"0\");\n\t\t\tmsgTotalCost.setText(\"\");\n\t\t}",
"@Override\n\tpublic void update(DhtmlxGridForm f) throws Exception {\n\t\t\n\t}",
"private void updateVars()\n {\n\n }",
"CounselorBiographyTemp update(CounselorBiographyTemp entity);",
"public abstract T updateWizardData(T data);",
"@Override\n protected void updateProperties() {\n }",
"public void update(){}",
"public void update(){}",
"private void fillFields() {\n\t\tInteger owner = this.contractor.getOwner();\n\n\t\tnameField.setText(getTrimmedValue(this.contractor.getName()));\n\t\tlocationField.setText(getTrimmedValue(this.contractor.getLocation()));\n\t\townerField.setText(owner == null ? \"\" : owner.toString());\n\t\tsizeField.setText(contractor.getSize().toString());\n\t\trateField.setText(Contractor.RATE_FORMAT.format(this.contractor\n\t\t\t\t.getRate()));\n\t\tspecialtiesList.setListData(this.contractor.getSpecialties());\n\t}",
"public static void updateField() {\r\n\t\tfor (int i = 0; i < ROWS; i++) {\r\n\t\t\tfor (int j = 0; j < COLUMNS; j++) {\r\n\t\t\t\tfield[i][j] = EMPTY;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tfor (int i = 0; i < food.size(); i++) {\r\n\t\t\tfield[food.get(i)[1]][food.get(i)[2]] = food.get(i)[0];\r\n\t\t}\r\n\r\n\t\tfor (int i = 0; i < snake.size(); i++) {\r\n\t\t\tfield[snake.get(i)[0]][snake.get(i)[1]] = SNAKE;\r\n\t\t}\r\n\t}",
"void setValue4Po(String poFieldName, Object val);",
"private void populateFields() {\n\n if (mReportCursor == null) {\n return;\n }\n\n Cursor c = mReportCursor;\n mValueText.setText(c.getString(c.getColumnIndexOrThrow(ReportPeer.KEY_VALUE)));\n }",
"@Override\r\n protected void createDbContentCreateEdit() {\n DbContentCreateEdit dbContentCreateEdit = new DbContentCreateEdit();\r\n dbContentCreateEdit.init(null);\r\n form.getModelObject().setDbContentCreateEdit(dbContentCreateEdit);\r\n dbContentCreateEdit.setParent(form.getModelObject());\r\n ruServiceHelper.updateDbEntity(form.getModelObject()); \r\n }",
"protected String updateSection(final GWikiContext ctx, String newContent, String fieldNumber)\n {\n String fieldPageId = null;\n\n extractContent();\n\n if (endSec == -1) {\n return null;\n }\n\n StringBuilder sb = new StringBuilder();\n\n if (fieldNumber != null) {\n int index = 0;\n\n try {\n index = Integer.parseInt(fieldNumber);\n } catch (NumberFormatException e) {\n GWikiLog.warn(\"failed to parse number\", e);\n return null;\n }\n\n String[] contentArray = getEditContent().split(\",\");\n\n if (index >= contentArray.length) {\n return null;\n }\n\n if (StringUtils.isEmpty(newContent)) {\n GWikiFragmentLink link = getLinkForField(ctx, index, contentArray);\n\n if (link != null) {\n fieldPageId = link.getTargetPageId();\n }\n }\n\n contentArray[index] = newContent;\n\n sb.append(wikiText.substring(0, startSec));\n\n for (int i = 0; i < contentArray.length; i++) {\n if (StringUtils.isNotEmpty(contentArray[i])) {\n if (i != 0) { // && i < (contentArray.length - 1)) {\n sb.append(\",\");\n }\n sb.append(contentArray[i]);\n }\n }\n\n sb.append(wikiText.substring(endSec));\n } else {\n sb.append(wikiText.substring(0, endSec));\n\n if (StringUtils.isNotEmpty(wikiText.substring(startSec, endSec))) {\n sb.append(\",\");\n }\n\n sb.append(newContent);\n sb.append(wikiText.substring(endSec));\n }\n\n wikiArtefakt.setStorageData(sb.toString());\n\n return fieldPageId;\n }",
"private void edit() {\n\n\t}",
"public void addToTemplates() {\n mTemplateId = mPreferenceManager.getTemplateId();\n if (isConverted) {\n if (mPreferenceManager.getTemplateId().equals(ConstantsManager.CONVERTER_TEMPLATE_ID_DEFAULT)) {\n mTemplateId = mDatabaseManager.getTemplateNewId();\n mPreferenceManager.setTemplateId(mTemplateId);\n saveTemplate(mToastCreated);\n } else {\n showDialog();\n }\n } else {\n mBaseActivity.showToast(mToastFailure);\n }\n }",
"@Override\n public void fillFields(CSB csb){\n projectDirTF.setText(csb.projectDir);\n zipNameTF.setText(csb.zipName);\n keepEmptyCB.setSelected(csb.keepEmpty);\n }",
"private void setDataInFields() \n {\n quantityTxtFld.setText(farmer.getCropQuantity()+\"\");\n quantityTxtFld.setEnabled(false);\n }",
"protected void createFields()\n {\n createEffectiveLocalDtField();\n createDiscontinueLocalDtField();\n createScanTypeField();\n createContractNumberField();\n createContractTypeField();\n createProductTypeField();\n createStatusIndicatorField();\n createCivilMilitaryIndicatorField();\n createEntryUserIdField();\n createLastUpdateUserIdField();\n createLastUpdateTsField();\n }",
"public void updateModel()\n {\n if (beanModel instanceof EnterTillPayrollPayOutBeanModel)\n {\n EnterTillPayrollPayOutBeanModel model = (EnterTillPayrollPayOutBeanModel) beanModel;\n model.setAmount(amountField.getText());\n model.setSelectedReasonCode(reasonCodeField.getSelectedIndex());\n model.setPaidTo(paidToField.getText());\n model.setEmployeeID(employeeIDField.getText());\n model.setAddressLine(0, addressLine1Field.getText());\n model.setAddressLine(1, addressLine2Field.getText());\n model.setAddressLine(2, addressLine3Field.getText());\n model.setSelectedApprovalCodeIndex(approvalCodeField.getSelectedIndex());\n model.setComment(commentField.getText());\n }\n }",
"protected void edit(HttpServletRequest request, HttpServletResponse response, EcAnonymousPaymentInfoForm _EcAnonymousPaymentInfoForm, EcAnonymousPaymentInfo _EcAnonymousPaymentInfo) throws Exception{\n\r\n _EcAnonymousPaymentInfo.setAnonymousUserId(WebParamUtil.getLongValue(_EcAnonymousPaymentInfoForm.getAnonymousUserId()));\r\n _EcAnonymousPaymentInfo.setFirstName(WebParamUtil.getStringValue(_EcAnonymousPaymentInfoForm.getFirstName()));\r\n _EcAnonymousPaymentInfo.setMiddleInitial(WebParamUtil.getStringValue(_EcAnonymousPaymentInfoForm.getMiddleInitial()));\r\n _EcAnonymousPaymentInfo.setLastName(WebParamUtil.getStringValue(_EcAnonymousPaymentInfoForm.getLastName()));\r\n _EcAnonymousPaymentInfo.setAddress1(WebParamUtil.getStringValue(_EcAnonymousPaymentInfoForm.getAddress1()));\r\n _EcAnonymousPaymentInfo.setAddress2(WebParamUtil.getStringValue(_EcAnonymousPaymentInfoForm.getAddress2()));\r\n _EcAnonymousPaymentInfo.setCity(WebParamUtil.getStringValue(_EcAnonymousPaymentInfoForm.getCity()));\r\n _EcAnonymousPaymentInfo.setState(WebParamUtil.getStringValue(_EcAnonymousPaymentInfoForm.getState()));\r\n _EcAnonymousPaymentInfo.setZip(WebParamUtil.getStringValue(_EcAnonymousPaymentInfoForm.getZip()));\r\n _EcAnonymousPaymentInfo.setCountry(WebParamUtil.getStringValue(_EcAnonymousPaymentInfoForm.getCountry()));\r\n _EcAnonymousPaymentInfo.setPaymentType(WebParamUtil.getIntValue(_EcAnonymousPaymentInfoForm.getPaymentType()));\r\n _EcAnonymousPaymentInfo.setPaymentNum(WebParamUtil.getStringValue(_EcAnonymousPaymentInfoForm.getPaymentNum()));\r\n _EcAnonymousPaymentInfo.setPaymentExpireMonth(WebParamUtil.getIntValue(_EcAnonymousPaymentInfoForm.getPaymentExpireMonth()));\r\n _EcAnonymousPaymentInfo.setPaymentExpireYear(WebParamUtil.getIntValue(_EcAnonymousPaymentInfoForm.getPaymentExpireYear()));\r\n _EcAnonymousPaymentInfo.setPaymentExtraNum(WebParamUtil.getStringValue(_EcAnonymousPaymentInfoForm.getPaymentExtraNum()));\r\n _EcAnonymousPaymentInfo.setTimeCreated(WebParamUtil.getDateValue(_EcAnonymousPaymentInfoForm.getTimeCreated()));\r\n\r\n m_actionExtent.beforeUpdate(request, response, _EcAnonymousPaymentInfo);\r\n m_ds.update(_EcAnonymousPaymentInfo);\r\n m_actionExtent.afterUpdate(request, response, _EcAnonymousPaymentInfo);\r\n }",
"public void setEditableFields(EditableFields fields) {\n\n List<AbstractField> allFields = Arrays.asList(firstName, lastName, legalFirstName, legalLastName,\n nameIsLegalName, fanName, badgeNumber, phoneNumber, birthDate, email, zip, emergencyContactFullName,\n emergencyContactPhone, parentFormReceived, parentFullName, parentPhone, paidAmount,\n compedBadge, checkedIn);\n switch (fields) {\n case ALL:\n for (AbstractField field : allFields) {\n field.setEnabled(true);\n// field.setValidationVisible(true);\n }\n badgeNumber.setEnabled(false);\n badge.setEnabled(true);\n break;\n case NONE:\n for (AbstractField field : allFields) {\n field.setEnabled(false);\n }\n badgeNumber.setEnabled(false);\n badge.setEnabled(false);\n }\n }"
] | [
"0.6863872",
"0.65603286",
"0.65177655",
"0.6436583",
"0.6354865",
"0.6354165",
"0.61543816",
"0.6115106",
"0.61142015",
"0.61047816",
"0.61012286",
"0.60021466",
"0.5895439",
"0.58835787",
"0.58829546",
"0.5792805",
"0.5792727",
"0.57859665",
"0.57247835",
"0.5702074",
"0.5688284",
"0.5605509",
"0.56006163",
"0.55840623",
"0.55835325",
"0.5571871",
"0.55684495",
"0.5561575",
"0.5541491",
"0.5514267",
"0.54947555",
"0.5429302",
"0.5401523",
"0.53977585",
"0.53937775",
"0.5380353",
"0.5368804",
"0.5360325",
"0.535787",
"0.5337129",
"0.5334754",
"0.5323933",
"0.5315205",
"0.5312787",
"0.5290973",
"0.5288138",
"0.5264563",
"0.5256745",
"0.5246938",
"0.5244431",
"0.5217369",
"0.5185155",
"0.5175244",
"0.5168939",
"0.5165479",
"0.5164763",
"0.5149882",
"0.5143699",
"0.5131414",
"0.5124466",
"0.51226336",
"0.51085925",
"0.51073265",
"0.5107291",
"0.51047325",
"0.51038057",
"0.50997037",
"0.5095943",
"0.5068138",
"0.50672793",
"0.5060099",
"0.504628",
"0.50357795",
"0.5028056",
"0.50252664",
"0.5021364",
"0.501824",
"0.50027007",
"0.500226",
"0.49982652",
"0.49976367",
"0.49913925",
"0.49901706",
"0.49842006",
"0.4975739",
"0.4975739",
"0.49604496",
"0.49563372",
"0.49555334",
"0.49544734",
"0.49493608",
"0.4941691",
"0.49355274",
"0.49354932",
"0.49339527",
"0.4930788",
"0.49292624",
"0.49281192",
"0.49256757",
"0.49151367"
] | 0.6439747 | 3 |
return all list of field | public Collection<FieldsTemplate> getFieldsTemplateList(Long idTemplate)
{
FieldsTemplateDAO daoTemplate = new FieldsTemplateDAO();
Template template = new Template();
template.setId(idTemplate);
Collection<FieldsTemplate> responseList = daoTemplate.getAllFields(template);
loggerSingle.info("num fields template "+idTemplate+": "+responseList.size());
return responseList;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"List<Field> getFields();",
"java.util.List<com.sagas.meta.model.MetaFieldData> \n getFieldsList();",
"java.util.List<Field>\n getFieldsList();",
"@Override\n\tpublic List<Field> getAll() {\n\t\treturn null;\n\t}",
"@Override\n public java.util.List<Field> getFieldsList() {\n return fields_;\n }",
"public List<Field> iterateThroughAllFields() {\n\n List<Field> listOfFields = new ArrayList<Field>(fields.length * fields.length);\n // TODO: n**m complexity\n for (int i = 0; i < this.fields.length; i++) {\n for (int j = 0; j < this.fields.length; j++) {\n listOfFields.add(this.fields[i][j]);\n }\n }\n return listOfFields;\n }",
"java.util.List<? extends com.sagas.meta.model.MetaFieldDataOrBuilder> \n getFieldsOrBuilderList();",
"public ArrayList<GOlrField> getFields() {\n\n ArrayList<GOlrField> collection = new ArrayList<GOlrField>();\n\n // Plonk them all in to our bookkeeping.\n for (GOlrField field : unique_fields.values()) {\n collection.add(field);\n }\n\n return collection;\n }",
"public List<Field<T>> getFields()\r\n/* 63: */ {\r\n/* 64:84 */ return this.fields;\r\n/* 65: */ }",
"ISourceField[] getFields();",
"public List<String> getFields() {\n if (!Strings.isNullOrEmpty(fields)) {\n return Arrays.asList(fields.split(\",\"));\n } else {\n return Collections.emptyList();\n }\n }",
"public List<String> retornaFields() {\n\t\treturn data.retornaFields();\n\t}",
"@SimpleFunction(description = \"Get the fields in the projects as a list\")\n public YailList GetFieldsList() {\n ArrayList<String> fieldsList = new ArrayList<String>();\n for (RProjectField j : fields) {\n fieldsList.add(j.name);\n }\n return YailList.makeList(fieldsList);\n }",
"public EAdList<EAdField<?>> getFields() {\r\n\t\treturn fields;\r\n\t}",
"Fields fields();",
"java.util.List<? extends FieldOrBuilder>\n getFieldsOrBuilderList();",
"List<Pair<String, Value>> fields();",
"private List getMappingFieldsInternal() {\n if (fields == null) {\n fields = new ArrayList();\n }\n\n return fields;\n }",
"public java.util.List<Field> getFieldsList() {\n if (fieldsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(fields_);\n } else {\n return fieldsBuilder_.getMessageList();\n }\n }",
"@Override\n public ArrayList<Object> getFieldsAsList() {\n if (!getParsed()) {\n parse();\n }\n if (cachedList == null) {\n cachedList = new ArrayList<Object>();\n } else {\n cachedList.clear();\n }\n for (int i = 0; i < getFields().length; i++) {\n cachedList.add(uncheckedGetField(i));\n }\n return cachedList;\n }",
"public List<String> getSelectFields() {\n List<String> selectField = new ArrayList<>();\n for (SelectItem item : queryBody.getSelect().getSelectItems()) {\n if (item instanceof SingleColumn) {\n Expression expression = ((SingleColumn)item).getExpression();\n if (expression instanceof Identifier) {\n selectField.add(((Identifier)expression).getValue());\n }\n\n }\n }\n return selectField;\n }",
"java.lang.String getFields();",
"@Override\n\tpublic List<String> listSearchableFields() {\n\t\tList<String> listSearchableFields = new ArrayList<String>();\n\t\tlistSearchableFields.addAll(super.listSearchableFields());\n\n\t\tlistSearchableFields.add(\"firstName\");\n\n\t\tlistSearchableFields.add(\"lastName\");\n\n\t\tlistSearchableFields.add(\"contactDetails.phone\");\n\n\t\tlistSearchableFields.add(\"contactDetails.secondaryPhone\");\n\n\t\tlistSearchableFields.add(\"contactDetails.city\");\n\n\t\treturn listSearchableFields;\n\t}",
"@Override\n\tpublic void getFields(List<String> table) {\n\t\t\n\t}",
"public List<AliasedField> getFields() {\r\n return fields;\r\n }",
"java.util.List<java.lang.String>\n getProbeFieldsList();",
"public static List fetchFieldsSupportingSearch() {\n return new ArrayList();\n }",
"@Override\r\n\tpublic List<String> listSearchableFields() {\r\n\t\tList<String> listSearchableFields = new ArrayList<String>();\r\n\t\tlistSearchableFields.addAll(super.listSearchableFields());\r\n\r\n\t\tlistSearchableFields.add(\"employeeNumber\");\r\n\r\n\t\tlistSearchableFields.add(\"contactDetails.primaryPhone\");\r\n\r\n\t\tlistSearchableFields.add(\"contactDetails.secondaryPhone\");\r\n\r\n\t\tlistSearchableFields.add(\"contactDetails.streetAddress\");\r\n\r\n\t\tlistSearchableFields.add(\"contactDetails.city\");\r\n\r\n\t\tlistSearchableFields.add(\"contactDetails.zip\");\r\n\r\n\t\treturn listSearchableFields;\r\n\t}",
"protected Vector collectFields() {\n Vector fields = new Vector(1);\n fields.addElement(this.getField());\n return fields;\n }",
"private String getFields()\n\t{\n\t\tString fields = \"(\";\n\t\t\n\t\tfor(int spot = 0; spot < fieldList.size(); spot++)\n\t\t{\n\t\t\tfields += \"`\" + fieldList.get(spot).getName() + \"`\";\n\t\t\tif(spot == fieldList.size()-1)\n\t\t\t{\n\t\t\t\tfields += \")\";\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tfields += \", \";\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn fields;\n\t}",
"public java.util.List<Field.Builder>\n getFieldsBuilderList() {\n return getFieldsFieldBuilder().getBuilderList();\n }",
"List<FieldNode> getFields() {\n return this.classNode.fields;\n }",
"@Override\n public java.util.List<? extends FieldOrBuilder>\n getFieldsOrBuilderList() {\n return fields_;\n }",
"@Override\n protected List<FieldInfo> getListData()\n {\n // if is an array (we potentially will compress the array if it is\n // large)\n if (obj.isArray()) {\n return compressArrayList(obj);\n }\n else {\n List<DebuggerField> fields = obj.getFields();\n List<FieldInfo> fieldInfos = new ArrayList<FieldInfo>(fields.size());\n for (DebuggerField field : fields) {\n if (! Modifier.isStatic(field.getModifiers())) {\n String desc = Inspector.fieldToString(field);\n String value = field.getValueString();\n fieldInfos.add(new FieldInfo(desc, value));\n }\n }\n return fieldInfos;\n }\n }",
"private List<Field> getFields() {\n try {\n List<Field> fields = ResultSetUtil.getFields(databaseName, tableName, resultSets.get(0));\n if(fields.size() != MergeFactory.MAX_QUERY_FIELD_SIZE){\n throw new SqlParserException(\"the query fields max be equals \" + MergeFactory.MAX_QUERY_FIELD_SIZE);\n }\n return fields;\n } catch (SQLException e) {\n LOG.error(\"merge resultSet error\",e);\n throw new MergeException(\"merge resultSet error\" , e);\n }\n }",
"public List<FieldObject> getFieldObjects() {\n return _fieldObjects;\n }",
"public Enumeration getFields()\n {\n ensureLoaded();\n return m_tblField.elements();\n }",
"public List<String> get_field_from_table(String table, String field, String order);",
"public static synchronized List getFieldNames()\n {\n if (fieldNames == null)\n {\n fieldNames = new ArrayList();\n fieldNames.add(\"NewsletterId\");\n fieldNames.add(\"NewsletterCode\");\n fieldNames.add(\"Status\");\n fieldNames.add(\"Priority\");\n fieldNames.add(\"IssuedDate\");\n fieldNames.add(\"ClosedDate\");\n fieldNames.add(\"SentTime\");\n fieldNames.add(\"EmailFormat\");\n fieldNames.add(\"LanguageId\");\n fieldNames.add(\"CustomerCatId\");\n fieldNames.add(\"CustomerType\");\n fieldNames.add(\"CustLanguageId\");\n fieldNames.add(\"CustCountryId\");\n fieldNames.add(\"RelDocument\");\n fieldNames.add(\"RelDocStatus\");\n fieldNames.add(\"RelProjectId\");\n fieldNames.add(\"RelProductId\");\n fieldNames.add(\"ProjectId\");\n fieldNames.add(\"ProductId\");\n fieldNames.add(\"Subject\");\n fieldNames.add(\"Body\");\n fieldNames.add(\"Notes\");\n fieldNames.add(\"Created\");\n fieldNames.add(\"Modified\");\n fieldNames.add(\"CreatedBy\");\n fieldNames.add(\"ModifiedBy\");\n fieldNames = Collections.unmodifiableList(fieldNames);\n }\n return fieldNames;\n }",
"public String[] getAllFilledAnnotationFields();",
"@Override\n\tpublic List<String> listSearchableFields() {\n\t\tList<String> listSearchableFields = new ArrayList<String>();\n\t\tlistSearchableFields.addAll(super.listSearchableFields());\n\n\t\tlistSearchableFields.add(\"comment\");\n\n\t\treturn listSearchableFields;\n\t}",
"public String getFields() {\n return fields;\n }",
"public static final\n List<String> ccListAllFieldName(Class<?> pxClass, Class<?>pxFieldType){\n \n //-- check in\n if(pxClass==null){return null;}\n \n //-- retrieve\n Field[] lpDesField = pxClass.getDeclaredFields();\n if(lpDesField==null){return null;}\n if(lpDesField.length==0){return null;}\n \n //-- filtering\n List<String> lpRes=new LinkedList<String>();\n for(Field it:lpDesField){\n if(it==null){continue;}\n if(pxFieldType==null){continue;}\n if(it.getType().equals(pxFieldType)){\n lpRes.add(it.getName());\n }//+++\n }//..~\n \n return lpRes;\n \n }",
"public List<String> getIndexedFields() {\n\t\t\tList<String> indexedFields = new ArrayList<>();\n\t\t\t\n\t\t\tindexedFields.add(field);\n\t\t\tindexedFields.add(field + \".folded\");\n\t\t\t\n\t\t\treturn indexedFields;\n\t\t}",
"public List<String> showFields() {\n Client client = new Client();\n Class<?> objFields = client.getClass();\n List<String> list = new ArrayList<>();\n for (Field field : objFields.getDeclaredFields()) {\n list.add(field.getName());\n }\n return list;\n }",
"@SuppressWarnings(\"rawtypes\")\n\tpublic List getFields(){\n\t\treturn targetClass.fields;\n\t}",
"List<String> getListInput(String fieldName);",
"public List<StatefullComponent> getFields() {\n\t\treturn null;\r\n\t}",
"public List<AccountingLineViewField> getFields() {\n return fields;\n }",
"public List getFieldValues()\n {\n return (List) m_values.clone();\n }",
"List<FieldRestrictions> fieldRestrictions();",
"Field getFields(int index);",
"public java.util.List<? extends FieldOrBuilder>\n getFieldsOrBuilderList() {\n if (fieldsBuilder_ != null) {\n return fieldsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(fields_);\n }\n }",
"public DBField[] getFields()\n {\n // Note: this method is called frequently\n if (!this.fieldArrayReady) {\n // optimize access to field array\n synchronized (this.fieldMap) {\n if (!this.fieldArrayReady) { // test again inside lock\n this.fieldArray = this.fieldMap.valueArray(DBField.class);\n this.fieldArrayReady = true;\n }\n }\n } \n return this.fieldArray;\n }",
"public abstract List<String> requiredFields();",
"public String[] getFieldNames();",
"private String[] getDefinedFields(ObjectSet<?> pObjectSet) {\r\n\t\tString[] returnedValue = null;\r\n\t\tList<String> fieldsList = new ArrayList<String>();\r\n\t\t\r\n\t\tif (pObjectSet != null) {\r\n\t\t\tif (pObjectSet.getDataMappings().size() > 0) {\r\n\t\t\t\tfor(DataMapping mapping : pObjectSet.getDataMappings()) {\r\n\t\t\t\t\tif (!mapping.virtual && !mapping.IsCollection) {\r\n\t\t\t\t\t\tif (mapping.DataBaseDataType != Entity.DATATYPE_ENTITY) {\r\n\t\t\t\t\t\t\tfieldsList.add(mapping.DataBaseFieldName);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif (fieldsList.size() > 0) {\r\n\t\t\treturnedValue = fieldsList.toArray(new String[fieldsList.size()]);\r\n\t\t}\r\n\t\t\r\n\t\treturn returnedValue;\r\n\t}",
"synchronized public Set<String> getFields() {\n return Collections.unmodifiableSet(new HashSet<>(fields));\n }",
"public static Field[] getAllFields (Class c)\n\t{\n\t\tList l = new ArrayList();\n\t\taddDeclaredFields(l, c);\n\t\t\n\t\tField[] fields = new Field[l.size()];\n\t\tfields = (Field[]) l.toArray(fields);\n\t\treturn fields;\n\t}",
"protected ArrayList<Object> getAllFieldsAsArrayList() {\n\n\t\t// first we get all the global fields.\n\t\t// That is, ones that apply to both Sprites,Text and any other object types.\n\t\tArrayList<Object> fieldList = super.getAllFieldsAsArrayList();\n\n\t\t//then we get the dialogue specific fields\n\t\tLog.info(\"getting label specific fields for object \"+ObjectsName);\n\n\t\tif (ObjectsCurrentText==null){\n\t\t\tLog.severe(\"Text is null at this point..is there a previous error? It could be the text contains characters the paragraph object doesnt support.\");\n\t\t}\n\n\t\t// dialog data\n\t\t//\n\n\t\t//we escape all newlines\n\t\tString currentTextWithEscapedNewlines = ObjectsCurrentText.replaceAll(\"\\\\r\\\\n|\\\\r|\\\\n\",ESCAPED_NEWLINE);\t\t\n\t\tfieldList.add(currentTextWithEscapedNewlines );\t\t\n\t\t//\tfieldList.add(ObjectsCurrentText.replaceAll(\"\\n\",ESCAPED_NEWLINE) );\n\t\tfieldList.add(CSSname);\n\n\n\t\treturn fieldList;\n\n\t}",
"public static List<Field> field_list(String form_Name, String mode) {\n\t try{\n\t Connection connection = getConnection();\n\n\t List<Field> fields = new ArrayList<Field>();\n\t \n\n\t try {\n\t \tPreparedStatement statement;\n\t \tif(mode == \"specific\") {\n\t\t statement = connection.prepareStatement(\"SELECT * FROM template_fields WHERE form_name = '\"+form_Name+\"'\");\n\t \t}\n\t \telse {\n\t \t\tstatement = connection.prepareStatement(\"SELECT * form_name FROM template_fields\");\n\t \t}\n\t \tResultSet rs = statement.executeQuery();\n\n\t while (rs.next()) {\n\t int fieldId = rs.getInt(\"field_id\");\n\t String fieldName = rs.getString(\"field_name\");\n\t String formName = rs.getString(\"form_name\");\n\t String fieldType = rs.getString(\"field_type\");\n\t String fieldValue = rs.getString(\"field_value\");\n\t String fieldMandatory = rs.getString(\"field_mandatory\");\n\t \t PreparedStatement fieldstmt = connection.prepareStatement(\"SELECT * FROM radio_fields WHERE field_id = '\"+fieldId+\"' AND form_name = '\"+form_Name+\"'\");\n\t ResultSet fieldrs = fieldstmt.executeQuery();\n\t List<String> itemList = new ArrayList<String>();\n\t while(fieldrs.next()) {\n\t \titemList.add(fieldrs.getString(\"radio_value\"));\n\t \tSystem.out.println(\"fieldID\" + fieldId + \": \" + fieldrs.getString(\"radio_value\"));\n\t }\n\t String[] fieldRadios = new String[itemList.size()];\n\t fieldRadios = itemList.toArray(fieldRadios);\n\t fieldstmt.close();\n\n\t \n\t Field field = new Field(formName, fieldId, fieldName, fieldType, fieldValue, fieldMandatory, fieldRadios);\n\t System.out.println(fieldRadios);\n\t System.out.println(\"MADA: \" + field.getTheMandatory());\n\t System.out.println(\"field:\" + field.getTheName());\n\t \n\t fields.add(field);\n\t }\n\t statement.close();\n\t connection.close();\n\t } catch (SQLException e) {\n\t e.printStackTrace();\n\t }\n\n\t return fields;\n\t } catch (Exception e) {\n\t e.printStackTrace();\n\t return null;\n\t }\n\t }",
"public static List<Field> getAllFields(List<Field> fieldList, Class<?> classz) {\n if (classz == null) {\n return fieldList;\n }\n if (fieldList == null) {\n fieldList = new ArrayList<>(Arrays.asList(classz.getDeclaredFields()));\n } else {\n fieldList.addAll(Arrays.asList(classz.getDeclaredFields()));\n }\n return getAllFields(fieldList, classz.getSuperclass());\n }",
"public List<RecordField> getSubfields() {\n return subfields;\n }",
"public FieldDeclaration[] getFields() {\n return m_classBuilder.getFields();\n }",
"com.sagas.meta.model.MetaFieldData getFields(int index);",
"public List<MathVarDec> getFields() {\n return fields;\n }",
"abstract public FieldNames getFieldNames();",
"public Object visitFieldList(GoIRFieldListNode node){\n\t\tif(node!= null) {\n\t\t\tif(node.getFields()!= null) {\n\t\t\t\treturn node.getFields().accept(this);\n\t\t\t}\n\t\t}\n\t\treturn \"\";\n\t}",
"public Set<FieldInfo> getFieldInfos() {\n return new LinkedHashSet<FieldInfo>(_atts);\n }",
"public static List<String> form_list() {\n\t try{\n\t Connection connection = getConnection();\n\n\t List<String> forms = new ArrayList<String>();\n\n\t try {\n\t PreparedStatement statement = connection.prepareStatement(\"SELECT DISTINCT form_name FROM template_fields\");\n\t ResultSet rs = statement.executeQuery();\n\n\t while (rs.next()) {\n\t String form = rs.getString(\"form_name\");\n\t forms.add(form);\n\t }\n\t statement.close();\n\t connection.close();\n\t } catch (SQLException ex) {\n\t ex.printStackTrace();\n\t }\n\n\t return forms;\n\t } catch (Exception e) {\n\t e.printStackTrace();\n\t return null;\n\t }\n\t }",
"public List<Field> getAllTheFields(Class<?> aSourceClass) {\n\t\tList<Field> result = new ArrayList<Field>();\n\t\tthis.getAllFields(aSourceClass, result);\n\t\treturn result;\n\t}",
"public List<String> getField() {\r\n\t\tList<String> field = new ArrayList<String>();\r\n\t\tString line = null;\r\n\t\tfor (int i = 0; i < playBoard.length; i++) {\r\n\t\t\tfor (int j = 0; j < playBoard[0].length; j++) {\r\n\t\t\t\tif (j == 0) {\r\n\t\t\t\t\tline = String.valueOf(playBoard[i][j]);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tline = line + playBoard[i][j];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfield.add(line);\r\n\t\t\tline = null;\r\n\t\t}\r\n\t\treturn field;\r\n\t}",
"List<E> list(String field, String contains);",
"public static List<String> getAllFieldsForGraphQL(ParseService parseService) {\n return parseService\n .getUserAgentAnalyzer()\n .getAllPossibleFieldNamesSorted()\n // Avoiding this error:\n // \"__SyntaxError__\" in \"AnalysisResult\" must not begin with \"__\", which is reserved by GraphQL introspection.\n // The field \"__SyntaxError__\" is handled separately.\n .stream()\n .filter(name -> !name.startsWith(\"__\"))\n .toList();\n }",
"public static List<CustomFields> createCustomFieldsList() {\r\n List<CustomFields> customFields = new ArrayList<CustomFields>();\r\n\r\n customFields.add(createCustomFields(2, 15472, \"COMPANY\", \"1\", \"c1\", \"CORRELATION_ID\", \"0\"));\r\n customFields.add(createCustomFields(3, 15472, \"COMPANY\", \"2\", \"c2\", \"GROUP_ID\", \"0\"));\r\n return customFields;\r\n }",
"public List<FieldModel> getFields(String classFullName) {\n StatementResult result = template.query(String.format(\"match (a:%s)-[r:%s|%s *1..5]->(b) return b.domain, b.name\", buildClassNodeId(classFullName), EXTEND, REFERENCE));\n\n List<String> classes = result.stream().map(r -> r.get(0).asString() + \".\" + r.get(1).asString()).collect(Collectors.toList());\n classes.add(classFullName);\n\n return fieldService.getByOwners(classes.toArray(new String[0]));\n }",
"@Override\n public Field getFields(int index) {\n return fields_.get(index);\n }",
"public FieldDescriptor[] getFields() {\n int size = attributeDescriptors.size();\n size += elementDescriptors.size();\n if (contentDescriptor != null) ++size;\n\n FieldDescriptor[] fields = new FieldDescriptor[size];\n int c = 0;\n for (int i = 0; i < attributeDescriptors.size(); i++)\n fields[c++] = (FieldDescriptor) attributeDescriptors.get(i);\n\n for (int i = 0; i < elementDescriptors.size(); i++)\n fields[c++] = (FieldDescriptor) elementDescriptors.get(i);\n\n if (contentDescriptor != null)\n fields[c] = contentDescriptor;\n\n return fields;\n }",
"public Vector<Object> getFieldContents(String fieldname) {\r\n\t\treturn getFieldContents(fieldname, false);\r\n\t}",
"@Override\r\n\tpublic List<FicheColisageValue> getAll(){\n\t\t\r\n\t\treturn ficheColisagePersistance.getAll();\r\n\t}",
"public Iterator<Field> iterator()\n\t{\n\t\treturn fieldList.iterator();\n\t}",
"java.util.List<String> getRepeatedStringFieldList();",
"public List<Fw> getAllFields(final Class<?> aClass) {\n\t\tList<Fw> result = new ArrayList<>();\n\t\tresult.addAll(this.getSpecialFields(aClass));\n\t\tList<Field> classFields = Arrays.asList(aClass.getDeclaredFields());\n\t\tfor (Field fld : this.getAllTheFields(aClass)) {\n\t\t\tboolean isSuperField = !classFields.contains(fld);\n\t\t\tresult.add(this.makeFw(fld, aClass, isSuperField));\n\t\t}\n\n\t\tthis.removeDoubleIdField(result);\n\t\treturn this.sortAllFields(result);\n\t}",
"public java.util.List<java.lang.String> getMappingFieldsList()\n {\n final class MappingFieldsList extends java.util.AbstractList<java.lang.String>\n {\n public java.lang.String get(int i)\n { return OOSOrderLineItemTypeImpl.this.getMappingFieldsArray(i); }\n \n public java.lang.String set(int i, java.lang.String o)\n {\n java.lang.String old = OOSOrderLineItemTypeImpl.this.getMappingFieldsArray(i);\n OOSOrderLineItemTypeImpl.this.setMappingFieldsArray(i, o);\n return old;\n }\n \n public void add(int i, java.lang.String o)\n { OOSOrderLineItemTypeImpl.this.insertMappingFields(i, o); }\n \n public java.lang.String remove(int i)\n {\n java.lang.String old = OOSOrderLineItemTypeImpl.this.getMappingFieldsArray(i);\n OOSOrderLineItemTypeImpl.this.removeMappingFields(i);\n return old;\n }\n \n public int size()\n { return OOSOrderLineItemTypeImpl.this.sizeOfMappingFieldsArray(); }\n \n }\n \n synchronized (monitor())\n {\n check_orphaned();\n return new MappingFieldsList();\n }\n }",
"public List<String> readFields() throws IOException\n {\n List<String> fields = new ArrayList<String>();\n StringBuffer sb = new StringBuffer();\n String line = in.readLine();\n\n if (line == null)\n return null;\n\n if (line.length() == 0)\n {\n fields.add(line);\n return fields;\n }\n\n int i = 0;\n do\n {\n sb.setLength(0);\n if (i < line.length() && line.charAt(i) == textQualifier)\n {\n i = handleQuotedField(line, sb, ++i); // skip quote\n }\n else\n {\n i = handlePlainField(line, sb, i);\n }\n\n // Make sure the field name is trimmed before adding it\n fields.add(sb.toString().trim());\n i++;\n }\n while (i < line.length());\n\n return fields;\n }",
"public abstract Set<ResolvedFieldDeclaration> getDeclaredFields();",
"public ArrayList<FieldsTemplateLibrary> templateFieldLibraryGetAll() {\n\t\tFieldsTemplateLibraryDAO dao = new FieldsTemplateLibraryDAO();\n\t\tCollection<FieldsTemplateLibrary> collection = dao.getAllFields();\n\t\tArrayList<FieldsTemplateLibrary> responseList = new ArrayList<FieldsTemplateLibrary>(collection);\n\t\treturn responseList;\n\t}",
"public java.lang.String[] getMappingFieldsArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n get_store().find_all_element_users(MAPPINGFIELDS$28, targetList);\n java.lang.String[] result = new java.lang.String[targetList.size()];\n for (int i = 0, len = targetList.size() ; i < len ; i++)\n result[i] = ((org.apache.xmlbeans.SimpleValue)targetList.get(i)).getStringValue();\n return result;\n }\n }",
"public MappingField[] getMappingFields() {\n List myFields = getMappingFieldsInternal();\n return (MappingField[]) myFields.toArray(\n new MappingField[myFields.size()]);\n }",
"private String[] getFields(){\n String[] fields = new String[entry.get(0).size()];\n\n for (int i = 0; i < entry.get(0).size(); i++){\n fields[i] = spinners[i].getSelectedItem().toString();\n }\n\n return fields;\n }",
"public static <T> List<String> getEntityFields(Class<T> clz) {\n JsonPropertyOrder propertyOrder = clz.getAnnotation(JsonPropertyOrder.class);\n return new ArrayList<>(Arrays.asList(propertyOrder.value()));\n }",
"public Field[] getKeyFields();",
"public List<Function<String, Object>> parser() {\n List<Function<String, Object>> parser = new ArrayList<>();\n for (StructField field : fields) {\n parser.add(field::valueOf);\n }\n return parser;\n }",
"private Map<String,Field> getAllFields(Class clazz) {\n return this.getAllFields(clazz, false);\n }",
"java.util.List<com.google.ads.googleads.v13.resources.AttributeFieldMapping> \n getAttributeFieldMappingsList();",
"public String[] getFieldNames()\n {\n return this.fieldMap.keyArray(String.class);\n }",
"public List<o> selectAll();",
"private String[] findTagDataFields () {\n List<String> fieldVals = Util.newList();\n for (Field f : getClass().getFields()) {\n if (f.getName().startsWith(\"TAG_\")) { // grab TAG field\n try {\n fieldVals.add((String)f.get(this));\n } catch (IllegalArgumentException e) { // ignore\n } catch (IllegalAccessException e) { // ignore\n }\n }\n }\n return fieldVals.toArray(new String[0]);\n }",
"protected abstract List<TemporalField> validFields();",
"public HashMap<String, String> getFields() {\r\n \t\treturn fields;\r\n \t}",
"public static Field[] getFields (Class<?> clazz)\n {\n ArrayList<Field> list = new ArrayList<Field>();\n getFields(clazz, list);\n return list.toArray(new Field[list.size()]);\n }"
] | [
"0.8493518",
"0.82373214",
"0.8210598",
"0.80275065",
"0.7715783",
"0.75238794",
"0.7365053",
"0.7330368",
"0.73135835",
"0.7301791",
"0.73013836",
"0.7274917",
"0.7271725",
"0.72608304",
"0.72282606",
"0.72278666",
"0.71839035",
"0.71340495",
"0.7121484",
"0.70970625",
"0.70952135",
"0.7089023",
"0.7082478",
"0.7072264",
"0.7036151",
"0.7008267",
"0.6996605",
"0.695008",
"0.69482666",
"0.69350487",
"0.6916096",
"0.6915554",
"0.68301713",
"0.6826374",
"0.6822742",
"0.6821715",
"0.68198186",
"0.67817384",
"0.67817265",
"0.67779094",
"0.6769615",
"0.67631435",
"0.67523277",
"0.6740822",
"0.67164475",
"0.6683694",
"0.66781837",
"0.66040224",
"0.65958285",
"0.65773576",
"0.6568463",
"0.65661246",
"0.65571225",
"0.65554464",
"0.6551824",
"0.65457463",
"0.65212446",
"0.6517411",
"0.6509233",
"0.65042925",
"0.64501834",
"0.6425069",
"0.6410041",
"0.6404779",
"0.6404551",
"0.63869894",
"0.6370635",
"0.6365118",
"0.6360478",
"0.6357638",
"0.63559264",
"0.6343648",
"0.63277847",
"0.62993544",
"0.6295562",
"0.6292452",
"0.6288533",
"0.62865543",
"0.6280862",
"0.62783086",
"0.62748647",
"0.62713045",
"0.62703127",
"0.62584007",
"0.62556577",
"0.62423724",
"0.62189853",
"0.6198901",
"0.6195556",
"0.6194987",
"0.61910677",
"0.61806923",
"0.6164411",
"0.61620647",
"0.6144988",
"0.61427087",
"0.6138362",
"0.6128678",
"0.6127457",
"0.6123301",
"0.61092037"
] | 0.0 | -1 |
return all list of field | public PpdDocGenRequestPayloadDto getFieldsTemplateListWithLib(Long idTemplate)
{
FieldsTemplateDAO daoTemplate = new FieldsTemplateDAO();
FieldsTemplateLibraryDAO daoTemplateLib = new FieldsTemplateLibraryDAO();
Template template = new Template();
template.setId(idTemplate);
Collection<FieldsTemplate> responseList = daoTemplate.getAllFields(template);
Collection<FieldsTemplateLibrary> responseTempLib = daoTemplateLib.getAllFields();
PpdDocGenRequestPayloadDto respose = UtilMapping.templateFielsEntityToDTO(responseList,responseTempLib);
return respose;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"List<Field> getFields();",
"java.util.List<com.sagas.meta.model.MetaFieldData> \n getFieldsList();",
"java.util.List<Field>\n getFieldsList();",
"@Override\n\tpublic List<Field> getAll() {\n\t\treturn null;\n\t}",
"@Override\n public java.util.List<Field> getFieldsList() {\n return fields_;\n }",
"public List<Field> iterateThroughAllFields() {\n\n List<Field> listOfFields = new ArrayList<Field>(fields.length * fields.length);\n // TODO: n**m complexity\n for (int i = 0; i < this.fields.length; i++) {\n for (int j = 0; j < this.fields.length; j++) {\n listOfFields.add(this.fields[i][j]);\n }\n }\n return listOfFields;\n }",
"java.util.List<? extends com.sagas.meta.model.MetaFieldDataOrBuilder> \n getFieldsOrBuilderList();",
"public ArrayList<GOlrField> getFields() {\n\n ArrayList<GOlrField> collection = new ArrayList<GOlrField>();\n\n // Plonk them all in to our bookkeeping.\n for (GOlrField field : unique_fields.values()) {\n collection.add(field);\n }\n\n return collection;\n }",
"public List<Field<T>> getFields()\r\n/* 63: */ {\r\n/* 64:84 */ return this.fields;\r\n/* 65: */ }",
"ISourceField[] getFields();",
"public List<String> getFields() {\n if (!Strings.isNullOrEmpty(fields)) {\n return Arrays.asList(fields.split(\",\"));\n } else {\n return Collections.emptyList();\n }\n }",
"public List<String> retornaFields() {\n\t\treturn data.retornaFields();\n\t}",
"@SimpleFunction(description = \"Get the fields in the projects as a list\")\n public YailList GetFieldsList() {\n ArrayList<String> fieldsList = new ArrayList<String>();\n for (RProjectField j : fields) {\n fieldsList.add(j.name);\n }\n return YailList.makeList(fieldsList);\n }",
"public EAdList<EAdField<?>> getFields() {\r\n\t\treturn fields;\r\n\t}",
"Fields fields();",
"java.util.List<? extends FieldOrBuilder>\n getFieldsOrBuilderList();",
"List<Pair<String, Value>> fields();",
"private List getMappingFieldsInternal() {\n if (fields == null) {\n fields = new ArrayList();\n }\n\n return fields;\n }",
"public java.util.List<Field> getFieldsList() {\n if (fieldsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(fields_);\n } else {\n return fieldsBuilder_.getMessageList();\n }\n }",
"@Override\n public ArrayList<Object> getFieldsAsList() {\n if (!getParsed()) {\n parse();\n }\n if (cachedList == null) {\n cachedList = new ArrayList<Object>();\n } else {\n cachedList.clear();\n }\n for (int i = 0; i < getFields().length; i++) {\n cachedList.add(uncheckedGetField(i));\n }\n return cachedList;\n }",
"public List<String> getSelectFields() {\n List<String> selectField = new ArrayList<>();\n for (SelectItem item : queryBody.getSelect().getSelectItems()) {\n if (item instanceof SingleColumn) {\n Expression expression = ((SingleColumn)item).getExpression();\n if (expression instanceof Identifier) {\n selectField.add(((Identifier)expression).getValue());\n }\n\n }\n }\n return selectField;\n }",
"java.lang.String getFields();",
"@Override\n\tpublic List<String> listSearchableFields() {\n\t\tList<String> listSearchableFields = new ArrayList<String>();\n\t\tlistSearchableFields.addAll(super.listSearchableFields());\n\n\t\tlistSearchableFields.add(\"firstName\");\n\n\t\tlistSearchableFields.add(\"lastName\");\n\n\t\tlistSearchableFields.add(\"contactDetails.phone\");\n\n\t\tlistSearchableFields.add(\"contactDetails.secondaryPhone\");\n\n\t\tlistSearchableFields.add(\"contactDetails.city\");\n\n\t\treturn listSearchableFields;\n\t}",
"@Override\n\tpublic void getFields(List<String> table) {\n\t\t\n\t}",
"public List<AliasedField> getFields() {\r\n return fields;\r\n }",
"java.util.List<java.lang.String>\n getProbeFieldsList();",
"public static List fetchFieldsSupportingSearch() {\n return new ArrayList();\n }",
"@Override\r\n\tpublic List<String> listSearchableFields() {\r\n\t\tList<String> listSearchableFields = new ArrayList<String>();\r\n\t\tlistSearchableFields.addAll(super.listSearchableFields());\r\n\r\n\t\tlistSearchableFields.add(\"employeeNumber\");\r\n\r\n\t\tlistSearchableFields.add(\"contactDetails.primaryPhone\");\r\n\r\n\t\tlistSearchableFields.add(\"contactDetails.secondaryPhone\");\r\n\r\n\t\tlistSearchableFields.add(\"contactDetails.streetAddress\");\r\n\r\n\t\tlistSearchableFields.add(\"contactDetails.city\");\r\n\r\n\t\tlistSearchableFields.add(\"contactDetails.zip\");\r\n\r\n\t\treturn listSearchableFields;\r\n\t}",
"protected Vector collectFields() {\n Vector fields = new Vector(1);\n fields.addElement(this.getField());\n return fields;\n }",
"private String getFields()\n\t{\n\t\tString fields = \"(\";\n\t\t\n\t\tfor(int spot = 0; spot < fieldList.size(); spot++)\n\t\t{\n\t\t\tfields += \"`\" + fieldList.get(spot).getName() + \"`\";\n\t\t\tif(spot == fieldList.size()-1)\n\t\t\t{\n\t\t\t\tfields += \")\";\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tfields += \", \";\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn fields;\n\t}",
"public java.util.List<Field.Builder>\n getFieldsBuilderList() {\n return getFieldsFieldBuilder().getBuilderList();\n }",
"List<FieldNode> getFields() {\n return this.classNode.fields;\n }",
"@Override\n public java.util.List<? extends FieldOrBuilder>\n getFieldsOrBuilderList() {\n return fields_;\n }",
"@Override\n protected List<FieldInfo> getListData()\n {\n // if is an array (we potentially will compress the array if it is\n // large)\n if (obj.isArray()) {\n return compressArrayList(obj);\n }\n else {\n List<DebuggerField> fields = obj.getFields();\n List<FieldInfo> fieldInfos = new ArrayList<FieldInfo>(fields.size());\n for (DebuggerField field : fields) {\n if (! Modifier.isStatic(field.getModifiers())) {\n String desc = Inspector.fieldToString(field);\n String value = field.getValueString();\n fieldInfos.add(new FieldInfo(desc, value));\n }\n }\n return fieldInfos;\n }\n }",
"private List<Field> getFields() {\n try {\n List<Field> fields = ResultSetUtil.getFields(databaseName, tableName, resultSets.get(0));\n if(fields.size() != MergeFactory.MAX_QUERY_FIELD_SIZE){\n throw new SqlParserException(\"the query fields max be equals \" + MergeFactory.MAX_QUERY_FIELD_SIZE);\n }\n return fields;\n } catch (SQLException e) {\n LOG.error(\"merge resultSet error\",e);\n throw new MergeException(\"merge resultSet error\" , e);\n }\n }",
"public List<FieldObject> getFieldObjects() {\n return _fieldObjects;\n }",
"public Enumeration getFields()\n {\n ensureLoaded();\n return m_tblField.elements();\n }",
"public List<String> get_field_from_table(String table, String field, String order);",
"public static synchronized List getFieldNames()\n {\n if (fieldNames == null)\n {\n fieldNames = new ArrayList();\n fieldNames.add(\"NewsletterId\");\n fieldNames.add(\"NewsletterCode\");\n fieldNames.add(\"Status\");\n fieldNames.add(\"Priority\");\n fieldNames.add(\"IssuedDate\");\n fieldNames.add(\"ClosedDate\");\n fieldNames.add(\"SentTime\");\n fieldNames.add(\"EmailFormat\");\n fieldNames.add(\"LanguageId\");\n fieldNames.add(\"CustomerCatId\");\n fieldNames.add(\"CustomerType\");\n fieldNames.add(\"CustLanguageId\");\n fieldNames.add(\"CustCountryId\");\n fieldNames.add(\"RelDocument\");\n fieldNames.add(\"RelDocStatus\");\n fieldNames.add(\"RelProjectId\");\n fieldNames.add(\"RelProductId\");\n fieldNames.add(\"ProjectId\");\n fieldNames.add(\"ProductId\");\n fieldNames.add(\"Subject\");\n fieldNames.add(\"Body\");\n fieldNames.add(\"Notes\");\n fieldNames.add(\"Created\");\n fieldNames.add(\"Modified\");\n fieldNames.add(\"CreatedBy\");\n fieldNames.add(\"ModifiedBy\");\n fieldNames = Collections.unmodifiableList(fieldNames);\n }\n return fieldNames;\n }",
"public String[] getAllFilledAnnotationFields();",
"@Override\n\tpublic List<String> listSearchableFields() {\n\t\tList<String> listSearchableFields = new ArrayList<String>();\n\t\tlistSearchableFields.addAll(super.listSearchableFields());\n\n\t\tlistSearchableFields.add(\"comment\");\n\n\t\treturn listSearchableFields;\n\t}",
"public String getFields() {\n return fields;\n }",
"public static final\n List<String> ccListAllFieldName(Class<?> pxClass, Class<?>pxFieldType){\n \n //-- check in\n if(pxClass==null){return null;}\n \n //-- retrieve\n Field[] lpDesField = pxClass.getDeclaredFields();\n if(lpDesField==null){return null;}\n if(lpDesField.length==0){return null;}\n \n //-- filtering\n List<String> lpRes=new LinkedList<String>();\n for(Field it:lpDesField){\n if(it==null){continue;}\n if(pxFieldType==null){continue;}\n if(it.getType().equals(pxFieldType)){\n lpRes.add(it.getName());\n }//+++\n }//..~\n \n return lpRes;\n \n }",
"public List<String> getIndexedFields() {\n\t\t\tList<String> indexedFields = new ArrayList<>();\n\t\t\t\n\t\t\tindexedFields.add(field);\n\t\t\tindexedFields.add(field + \".folded\");\n\t\t\t\n\t\t\treturn indexedFields;\n\t\t}",
"public List<String> showFields() {\n Client client = new Client();\n Class<?> objFields = client.getClass();\n List<String> list = new ArrayList<>();\n for (Field field : objFields.getDeclaredFields()) {\n list.add(field.getName());\n }\n return list;\n }",
"@SuppressWarnings(\"rawtypes\")\n\tpublic List getFields(){\n\t\treturn targetClass.fields;\n\t}",
"List<String> getListInput(String fieldName);",
"public List<StatefullComponent> getFields() {\n\t\treturn null;\r\n\t}",
"public List<AccountingLineViewField> getFields() {\n return fields;\n }",
"public List getFieldValues()\n {\n return (List) m_values.clone();\n }",
"List<FieldRestrictions> fieldRestrictions();",
"Field getFields(int index);",
"public java.util.List<? extends FieldOrBuilder>\n getFieldsOrBuilderList() {\n if (fieldsBuilder_ != null) {\n return fieldsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(fields_);\n }\n }",
"public DBField[] getFields()\n {\n // Note: this method is called frequently\n if (!this.fieldArrayReady) {\n // optimize access to field array\n synchronized (this.fieldMap) {\n if (!this.fieldArrayReady) { // test again inside lock\n this.fieldArray = this.fieldMap.valueArray(DBField.class);\n this.fieldArrayReady = true;\n }\n }\n } \n return this.fieldArray;\n }",
"public abstract List<String> requiredFields();",
"public String[] getFieldNames();",
"private String[] getDefinedFields(ObjectSet<?> pObjectSet) {\r\n\t\tString[] returnedValue = null;\r\n\t\tList<String> fieldsList = new ArrayList<String>();\r\n\t\t\r\n\t\tif (pObjectSet != null) {\r\n\t\t\tif (pObjectSet.getDataMappings().size() > 0) {\r\n\t\t\t\tfor(DataMapping mapping : pObjectSet.getDataMappings()) {\r\n\t\t\t\t\tif (!mapping.virtual && !mapping.IsCollection) {\r\n\t\t\t\t\t\tif (mapping.DataBaseDataType != Entity.DATATYPE_ENTITY) {\r\n\t\t\t\t\t\t\tfieldsList.add(mapping.DataBaseFieldName);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif (fieldsList.size() > 0) {\r\n\t\t\treturnedValue = fieldsList.toArray(new String[fieldsList.size()]);\r\n\t\t}\r\n\t\t\r\n\t\treturn returnedValue;\r\n\t}",
"synchronized public Set<String> getFields() {\n return Collections.unmodifiableSet(new HashSet<>(fields));\n }",
"public static Field[] getAllFields (Class c)\n\t{\n\t\tList l = new ArrayList();\n\t\taddDeclaredFields(l, c);\n\t\t\n\t\tField[] fields = new Field[l.size()];\n\t\tfields = (Field[]) l.toArray(fields);\n\t\treturn fields;\n\t}",
"protected ArrayList<Object> getAllFieldsAsArrayList() {\n\n\t\t// first we get all the global fields.\n\t\t// That is, ones that apply to both Sprites,Text and any other object types.\n\t\tArrayList<Object> fieldList = super.getAllFieldsAsArrayList();\n\n\t\t//then we get the dialogue specific fields\n\t\tLog.info(\"getting label specific fields for object \"+ObjectsName);\n\n\t\tif (ObjectsCurrentText==null){\n\t\t\tLog.severe(\"Text is null at this point..is there a previous error? It could be the text contains characters the paragraph object doesnt support.\");\n\t\t}\n\n\t\t// dialog data\n\t\t//\n\n\t\t//we escape all newlines\n\t\tString currentTextWithEscapedNewlines = ObjectsCurrentText.replaceAll(\"\\\\r\\\\n|\\\\r|\\\\n\",ESCAPED_NEWLINE);\t\t\n\t\tfieldList.add(currentTextWithEscapedNewlines );\t\t\n\t\t//\tfieldList.add(ObjectsCurrentText.replaceAll(\"\\n\",ESCAPED_NEWLINE) );\n\t\tfieldList.add(CSSname);\n\n\n\t\treturn fieldList;\n\n\t}",
"public static List<Field> field_list(String form_Name, String mode) {\n\t try{\n\t Connection connection = getConnection();\n\n\t List<Field> fields = new ArrayList<Field>();\n\t \n\n\t try {\n\t \tPreparedStatement statement;\n\t \tif(mode == \"specific\") {\n\t\t statement = connection.prepareStatement(\"SELECT * FROM template_fields WHERE form_name = '\"+form_Name+\"'\");\n\t \t}\n\t \telse {\n\t \t\tstatement = connection.prepareStatement(\"SELECT * form_name FROM template_fields\");\n\t \t}\n\t \tResultSet rs = statement.executeQuery();\n\n\t while (rs.next()) {\n\t int fieldId = rs.getInt(\"field_id\");\n\t String fieldName = rs.getString(\"field_name\");\n\t String formName = rs.getString(\"form_name\");\n\t String fieldType = rs.getString(\"field_type\");\n\t String fieldValue = rs.getString(\"field_value\");\n\t String fieldMandatory = rs.getString(\"field_mandatory\");\n\t \t PreparedStatement fieldstmt = connection.prepareStatement(\"SELECT * FROM radio_fields WHERE field_id = '\"+fieldId+\"' AND form_name = '\"+form_Name+\"'\");\n\t ResultSet fieldrs = fieldstmt.executeQuery();\n\t List<String> itemList = new ArrayList<String>();\n\t while(fieldrs.next()) {\n\t \titemList.add(fieldrs.getString(\"radio_value\"));\n\t \tSystem.out.println(\"fieldID\" + fieldId + \": \" + fieldrs.getString(\"radio_value\"));\n\t }\n\t String[] fieldRadios = new String[itemList.size()];\n\t fieldRadios = itemList.toArray(fieldRadios);\n\t fieldstmt.close();\n\n\t \n\t Field field = new Field(formName, fieldId, fieldName, fieldType, fieldValue, fieldMandatory, fieldRadios);\n\t System.out.println(fieldRadios);\n\t System.out.println(\"MADA: \" + field.getTheMandatory());\n\t System.out.println(\"field:\" + field.getTheName());\n\t \n\t fields.add(field);\n\t }\n\t statement.close();\n\t connection.close();\n\t } catch (SQLException e) {\n\t e.printStackTrace();\n\t }\n\n\t return fields;\n\t } catch (Exception e) {\n\t e.printStackTrace();\n\t return null;\n\t }\n\t }",
"public static List<Field> getAllFields(List<Field> fieldList, Class<?> classz) {\n if (classz == null) {\n return fieldList;\n }\n if (fieldList == null) {\n fieldList = new ArrayList<>(Arrays.asList(classz.getDeclaredFields()));\n } else {\n fieldList.addAll(Arrays.asList(classz.getDeclaredFields()));\n }\n return getAllFields(fieldList, classz.getSuperclass());\n }",
"public List<RecordField> getSubfields() {\n return subfields;\n }",
"public FieldDeclaration[] getFields() {\n return m_classBuilder.getFields();\n }",
"com.sagas.meta.model.MetaFieldData getFields(int index);",
"public List<MathVarDec> getFields() {\n return fields;\n }",
"abstract public FieldNames getFieldNames();",
"public Object visitFieldList(GoIRFieldListNode node){\n\t\tif(node!= null) {\n\t\t\tif(node.getFields()!= null) {\n\t\t\t\treturn node.getFields().accept(this);\n\t\t\t}\n\t\t}\n\t\treturn \"\";\n\t}",
"public Set<FieldInfo> getFieldInfos() {\n return new LinkedHashSet<FieldInfo>(_atts);\n }",
"public static List<String> form_list() {\n\t try{\n\t Connection connection = getConnection();\n\n\t List<String> forms = new ArrayList<String>();\n\n\t try {\n\t PreparedStatement statement = connection.prepareStatement(\"SELECT DISTINCT form_name FROM template_fields\");\n\t ResultSet rs = statement.executeQuery();\n\n\t while (rs.next()) {\n\t String form = rs.getString(\"form_name\");\n\t forms.add(form);\n\t }\n\t statement.close();\n\t connection.close();\n\t } catch (SQLException ex) {\n\t ex.printStackTrace();\n\t }\n\n\t return forms;\n\t } catch (Exception e) {\n\t e.printStackTrace();\n\t return null;\n\t }\n\t }",
"public List<Field> getAllTheFields(Class<?> aSourceClass) {\n\t\tList<Field> result = new ArrayList<Field>();\n\t\tthis.getAllFields(aSourceClass, result);\n\t\treturn result;\n\t}",
"public List<String> getField() {\r\n\t\tList<String> field = new ArrayList<String>();\r\n\t\tString line = null;\r\n\t\tfor (int i = 0; i < playBoard.length; i++) {\r\n\t\t\tfor (int j = 0; j < playBoard[0].length; j++) {\r\n\t\t\t\tif (j == 0) {\r\n\t\t\t\t\tline = String.valueOf(playBoard[i][j]);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tline = line + playBoard[i][j];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfield.add(line);\r\n\t\t\tline = null;\r\n\t\t}\r\n\t\treturn field;\r\n\t}",
"List<E> list(String field, String contains);",
"public static List<String> getAllFieldsForGraphQL(ParseService parseService) {\n return parseService\n .getUserAgentAnalyzer()\n .getAllPossibleFieldNamesSorted()\n // Avoiding this error:\n // \"__SyntaxError__\" in \"AnalysisResult\" must not begin with \"__\", which is reserved by GraphQL introspection.\n // The field \"__SyntaxError__\" is handled separately.\n .stream()\n .filter(name -> !name.startsWith(\"__\"))\n .toList();\n }",
"public static List<CustomFields> createCustomFieldsList() {\r\n List<CustomFields> customFields = new ArrayList<CustomFields>();\r\n\r\n customFields.add(createCustomFields(2, 15472, \"COMPANY\", \"1\", \"c1\", \"CORRELATION_ID\", \"0\"));\r\n customFields.add(createCustomFields(3, 15472, \"COMPANY\", \"2\", \"c2\", \"GROUP_ID\", \"0\"));\r\n return customFields;\r\n }",
"public List<FieldModel> getFields(String classFullName) {\n StatementResult result = template.query(String.format(\"match (a:%s)-[r:%s|%s *1..5]->(b) return b.domain, b.name\", buildClassNodeId(classFullName), EXTEND, REFERENCE));\n\n List<String> classes = result.stream().map(r -> r.get(0).asString() + \".\" + r.get(1).asString()).collect(Collectors.toList());\n classes.add(classFullName);\n\n return fieldService.getByOwners(classes.toArray(new String[0]));\n }",
"@Override\n public Field getFields(int index) {\n return fields_.get(index);\n }",
"public FieldDescriptor[] getFields() {\n int size = attributeDescriptors.size();\n size += elementDescriptors.size();\n if (contentDescriptor != null) ++size;\n\n FieldDescriptor[] fields = new FieldDescriptor[size];\n int c = 0;\n for (int i = 0; i < attributeDescriptors.size(); i++)\n fields[c++] = (FieldDescriptor) attributeDescriptors.get(i);\n\n for (int i = 0; i < elementDescriptors.size(); i++)\n fields[c++] = (FieldDescriptor) elementDescriptors.get(i);\n\n if (contentDescriptor != null)\n fields[c] = contentDescriptor;\n\n return fields;\n }",
"public Vector<Object> getFieldContents(String fieldname) {\r\n\t\treturn getFieldContents(fieldname, false);\r\n\t}",
"@Override\r\n\tpublic List<FicheColisageValue> getAll(){\n\t\t\r\n\t\treturn ficheColisagePersistance.getAll();\r\n\t}",
"public Iterator<Field> iterator()\n\t{\n\t\treturn fieldList.iterator();\n\t}",
"java.util.List<String> getRepeatedStringFieldList();",
"public List<Fw> getAllFields(final Class<?> aClass) {\n\t\tList<Fw> result = new ArrayList<>();\n\t\tresult.addAll(this.getSpecialFields(aClass));\n\t\tList<Field> classFields = Arrays.asList(aClass.getDeclaredFields());\n\t\tfor (Field fld : this.getAllTheFields(aClass)) {\n\t\t\tboolean isSuperField = !classFields.contains(fld);\n\t\t\tresult.add(this.makeFw(fld, aClass, isSuperField));\n\t\t}\n\n\t\tthis.removeDoubleIdField(result);\n\t\treturn this.sortAllFields(result);\n\t}",
"public java.util.List<java.lang.String> getMappingFieldsList()\n {\n final class MappingFieldsList extends java.util.AbstractList<java.lang.String>\n {\n public java.lang.String get(int i)\n { return OOSOrderLineItemTypeImpl.this.getMappingFieldsArray(i); }\n \n public java.lang.String set(int i, java.lang.String o)\n {\n java.lang.String old = OOSOrderLineItemTypeImpl.this.getMappingFieldsArray(i);\n OOSOrderLineItemTypeImpl.this.setMappingFieldsArray(i, o);\n return old;\n }\n \n public void add(int i, java.lang.String o)\n { OOSOrderLineItemTypeImpl.this.insertMappingFields(i, o); }\n \n public java.lang.String remove(int i)\n {\n java.lang.String old = OOSOrderLineItemTypeImpl.this.getMappingFieldsArray(i);\n OOSOrderLineItemTypeImpl.this.removeMappingFields(i);\n return old;\n }\n \n public int size()\n { return OOSOrderLineItemTypeImpl.this.sizeOfMappingFieldsArray(); }\n \n }\n \n synchronized (monitor())\n {\n check_orphaned();\n return new MappingFieldsList();\n }\n }",
"public List<String> readFields() throws IOException\n {\n List<String> fields = new ArrayList<String>();\n StringBuffer sb = new StringBuffer();\n String line = in.readLine();\n\n if (line == null)\n return null;\n\n if (line.length() == 0)\n {\n fields.add(line);\n return fields;\n }\n\n int i = 0;\n do\n {\n sb.setLength(0);\n if (i < line.length() && line.charAt(i) == textQualifier)\n {\n i = handleQuotedField(line, sb, ++i); // skip quote\n }\n else\n {\n i = handlePlainField(line, sb, i);\n }\n\n // Make sure the field name is trimmed before adding it\n fields.add(sb.toString().trim());\n i++;\n }\n while (i < line.length());\n\n return fields;\n }",
"public abstract Set<ResolvedFieldDeclaration> getDeclaredFields();",
"public ArrayList<FieldsTemplateLibrary> templateFieldLibraryGetAll() {\n\t\tFieldsTemplateLibraryDAO dao = new FieldsTemplateLibraryDAO();\n\t\tCollection<FieldsTemplateLibrary> collection = dao.getAllFields();\n\t\tArrayList<FieldsTemplateLibrary> responseList = new ArrayList<FieldsTemplateLibrary>(collection);\n\t\treturn responseList;\n\t}",
"public java.lang.String[] getMappingFieldsArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n get_store().find_all_element_users(MAPPINGFIELDS$28, targetList);\n java.lang.String[] result = new java.lang.String[targetList.size()];\n for (int i = 0, len = targetList.size() ; i < len ; i++)\n result[i] = ((org.apache.xmlbeans.SimpleValue)targetList.get(i)).getStringValue();\n return result;\n }\n }",
"public MappingField[] getMappingFields() {\n List myFields = getMappingFieldsInternal();\n return (MappingField[]) myFields.toArray(\n new MappingField[myFields.size()]);\n }",
"private String[] getFields(){\n String[] fields = new String[entry.get(0).size()];\n\n for (int i = 0; i < entry.get(0).size(); i++){\n fields[i] = spinners[i].getSelectedItem().toString();\n }\n\n return fields;\n }",
"public static <T> List<String> getEntityFields(Class<T> clz) {\n JsonPropertyOrder propertyOrder = clz.getAnnotation(JsonPropertyOrder.class);\n return new ArrayList<>(Arrays.asList(propertyOrder.value()));\n }",
"public Field[] getKeyFields();",
"public List<Function<String, Object>> parser() {\n List<Function<String, Object>> parser = new ArrayList<>();\n for (StructField field : fields) {\n parser.add(field::valueOf);\n }\n return parser;\n }",
"private Map<String,Field> getAllFields(Class clazz) {\n return this.getAllFields(clazz, false);\n }",
"java.util.List<com.google.ads.googleads.v13.resources.AttributeFieldMapping> \n getAttributeFieldMappingsList();",
"public String[] getFieldNames()\n {\n return this.fieldMap.keyArray(String.class);\n }",
"public List<o> selectAll();",
"private String[] findTagDataFields () {\n List<String> fieldVals = Util.newList();\n for (Field f : getClass().getFields()) {\n if (f.getName().startsWith(\"TAG_\")) { // grab TAG field\n try {\n fieldVals.add((String)f.get(this));\n } catch (IllegalArgumentException e) { // ignore\n } catch (IllegalAccessException e) { // ignore\n }\n }\n }\n return fieldVals.toArray(new String[0]);\n }",
"protected abstract List<TemporalField> validFields();",
"public HashMap<String, String> getFields() {\r\n \t\treturn fields;\r\n \t}",
"public static Field[] getFields (Class<?> clazz)\n {\n ArrayList<Field> list = new ArrayList<Field>();\n getFields(clazz, list);\n return list.toArray(new Field[list.size()]);\n }"
] | [
"0.8493518",
"0.82373214",
"0.8210598",
"0.80275065",
"0.7715783",
"0.75238794",
"0.7365053",
"0.7330368",
"0.73135835",
"0.7301791",
"0.73013836",
"0.7274917",
"0.7271725",
"0.72608304",
"0.72282606",
"0.72278666",
"0.71839035",
"0.71340495",
"0.7121484",
"0.70970625",
"0.70952135",
"0.7089023",
"0.7082478",
"0.7072264",
"0.7036151",
"0.7008267",
"0.6996605",
"0.695008",
"0.69482666",
"0.69350487",
"0.6916096",
"0.6915554",
"0.68301713",
"0.6826374",
"0.6822742",
"0.6821715",
"0.68198186",
"0.67817384",
"0.67817265",
"0.67779094",
"0.6769615",
"0.67631435",
"0.67523277",
"0.6740822",
"0.67164475",
"0.6683694",
"0.66781837",
"0.66040224",
"0.65958285",
"0.65773576",
"0.6568463",
"0.65661246",
"0.65571225",
"0.65554464",
"0.6551824",
"0.65457463",
"0.65212446",
"0.6517411",
"0.6509233",
"0.65042925",
"0.64501834",
"0.6425069",
"0.6410041",
"0.6404779",
"0.6404551",
"0.63869894",
"0.6370635",
"0.6365118",
"0.6360478",
"0.6357638",
"0.63559264",
"0.6343648",
"0.63277847",
"0.62993544",
"0.6295562",
"0.6292452",
"0.6288533",
"0.62865543",
"0.6280862",
"0.62783086",
"0.62748647",
"0.62713045",
"0.62703127",
"0.62584007",
"0.62556577",
"0.62423724",
"0.62189853",
"0.6198901",
"0.6195556",
"0.6194987",
"0.61910677",
"0.61806923",
"0.6164411",
"0.61620647",
"0.6144988",
"0.61427087",
"0.6138362",
"0.6128678",
"0.6127457",
"0.6123301",
"0.61092037"
] | 0.0 | -1 |
return all list of templates | public Collection<Template> getListTemplates()
{
TemplateDAO dao = new TemplateDAO();
return dao.getAll(UtilCodesEnum.CODE_ACTIVE.getCode(),null);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<Template> getTemplates() {\r\n\t\treturn templateDao.findAll();\r\n\t}",
"public ArrayList<Template> getTemplates() {\n\t\treturn getPageObjects(Template.class);\n\t}",
"public List<Template> getTemplates() {\n return templates;\n }",
"public List<String> getTemplates() {\r\n\t\treturn this.templates;\r\n\t}",
"List<TemplateDTO> getAllTemplates() throws GAException;",
"public static List<String> getTemplates() {\n\t\tFile templatesDir = new File(PathUtils.getExtensionsTemplatePath());\n\t\tList<String> templates = Arrays.stream(templatesDir.listFiles(File::isDirectory)).map(File::getName)\n\t\t\t\t.collect(Collectors.toList());\n\t\tIProject[] projects = ResourcesPlugin.getWorkspace().getRoot().getProjects();\n\t\tList<String> customTemplates = Arrays.stream(projects).filter(ExtensionUtils::isTemplate)\n\t\t\t\t.map(IProject::getName).collect(Collectors.toList());\n\t\ttemplates.addAll(customTemplates);\n\t\treturn templates;\n\t}",
"private ArrayList<String> gettemplates(){\n\t\tArrayList<String> result = new ArrayList<String>();\n\t\ttry {\n\t\t String[] cmd = {\n\t\t \t\t\"/bin/sh\",\n\t\t \t\t\"-c\",\n\t\t \t\t\"ls -p | grep -v / | grep -v 'pom.xml' \"\n\t\t \t\t};\n\n\t\t Process p = Runtime.getRuntime().exec(cmd); //Runtime r = Runtime.getRuntime(); Process p = r.exec(cmd);\n\t\t BufferedReader in =\n\t\t new BufferedReader(new InputStreamReader(p.getInputStream()));\n\t\t String inputLine;\n\t\t while ((inputLine = in.readLine()) != null) {\n\t\t result.add(inputLine);\n\t\t }\n\t\t in.close();\n\n\t\t} catch (IOException e) {\n\t\t System.out.println(e);\n\t\t}\n\t\t\n\t\treturn result;\n\t\t}",
"public List<String> getListOfTemplatesInGadget(){\r\n\t\tList<String> templates = new ArrayList<String>();\r\n\t\tList<WebElement> ele = driver.findElements(By.xpath(\"//div[contains(@class,'x-gadget')]//div[contains(@class,'helpdesk-newcall')]//div[@class='tplLabel']\"));\r\n\t\tfor(WebElement template : ele)\r\n\t\t\ttemplates.add(template.getText());\r\n\t\treturn templates;\r\n\t}",
"private Response findTemplates(Request request) throws IOException {\n String query = \"select * from per:Page where jcr:path like '/content/%/templates%'\";\n return findAndOutputToWriterAsJSON(request, query);\n }",
"TemplateList getAllTemplates(String templateType) throws NotificationClientException;",
"public Template[] getTemplates(String name) {\n\tArrayList res = new ArrayList();\n\tfor (Iterator iterator = fTemplates.iterator(); iterator.hasNext();) {\n\t Template curr = (Template) iterator.next();\n\t if (curr.getName().equals(name)) {\n\t\tres.add(curr);\n\t }\n\t}\n\treturn (Template[]) res.toArray(new Template[res.size()]);\n }",
"private List<String> getTemplateList(String portletName, String category) throws Exception {\n List<String> templateOptionList = new ArrayList<String>();\n List<Node> templateNodeList = templateManagerService.getTemplatesByCategory(portletName, category, SessionProvider.createSystemProvider());\n for (Node templateNode : templateNodeList) {\n templateOptionList.add(templateNode.getPath());\n }\n return templateOptionList;\n }",
"List<Template> getTemplates() throws AccessDeniedException;",
"public ResultSet getAllQuestionnaireTemplates () throws Exception {\r\n String sql = \"SELECT * FROM questionnairetemplates;\";\r\n return stmt.executeQuery(sql);\r\n }",
"@Override\n\tpublic List<TemplateBundle> getTemplateBundles() {\n\t\tList<TemplateBundle> templates = new ArrayList<TemplateBundle>();\t\n\t\tif (cache == null){\n\t\t\tcache = new ArrayList<TemplateBundle>();\n\t\t\tEnumeration<?> en = JaspersoftStudioPlugin.getInstance().getBundle().findEntries(\"templates/table\", \"*.jrxml\", false); //Doesn't search in the subdirectories\n\t\t\twhile (en.hasMoreElements()) {\n\t\t\t\tURL templateURL = (URL) en.nextElement();\n\t\t\t\ttry {\n\t\t\t\t\tTemplateBundle bundle = new TableTemplateBunlde(templateURL, JasperReportsConfiguration.getDefaultInstance());\n\t\t\t\t\tif (bundle != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tcache.add(bundle);\n\t\t\t\t\t}\t\n\t\t\t\t} catch (Exception ex) \t{\n\t\t\t\t\t// Log error but continue...\n\t\t\t\t\tJaspersoftStudioPlugin.getInstance().getLog().log(\n\t\t\t\t\t\t\tnew Status(IStatus.ERROR,JaspersoftStudioPlugin.PLUGIN_ID,\n\t\t\t\t\t\t\t\t\tMessageFormat.format(Messages.DefaultTemplateProvider_TemplateLoadingErr,new Object[]{templateURL}), ex));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\ttemplates.addAll(cache);\n\t\tloadAdditionalTemplateBundles(templates);\n\t\treturn templates;\n\t}",
"public static ITemplate[] getExistingTemplates() {\n\t\tfinal List<ITemplate> allTemps = StorageService.getAllTemplates();\n\t\tfinal List<ITemplate> filteredTemps = new ArrayList<>();\n\t\tfor (final ITemplate t : allTemps) {\n\t\t\tif (!t.getName().equals(\"Custom\")) {\n\t\t\t\tfilteredTemps.add(t);\n\t\t\t}\n\t\t}\n\t\tITemplate[] templates = new ITemplate[filteredTemps.size()];\n\t\ttemplates = filteredTemps.toArray(templates);\n\t\treturn templates;\n\t}",
"@RequestMapping(value = \"/coupon-template/template/sdk/all\",\n method = RequestMethod.GET)\n CommonResponse<List<CouponTemplateSDK>> findAllUsableTemplate();",
"public List<DynamicSlaveTemplate> getDynamicTemplates() {\n\n synchronized (this.dynamicTemplates) {\n return new ArrayList<>(this.dynamicTemplates);\n }\n }",
"public List<IJobTemplate> getJobTemplates();",
"List<PSTemplateSummary> findBaseTemplates(String type);",
"public List<TemplItem> template() {\n List<TemplItem> items = new ArrayList<>();\n int l;\n int n;\n\n boolean done = false;\n while (!done) {\n DNAToken token = parser.step();\n\n switch (token) {\n case CONT:\n break;\n case C:\n items.add(new TemplItem(TemplItem.Type.BASE, 'I'));\n break;\n case F:\n items.add(new TemplItem(TemplItem.Type.BASE, 'C'));\n break;\n case P:\n items.add(new TemplItem(TemplItem.Type.BASE, 'F'));\n break;\n case IC:\n items.add(new TemplItem(TemplItem.Type.BASE, 'P'));\n break;\n case IP:\n case IF:\n l = parser.nat();\n n = parser.nat();\n items.add(new TemplItem(TemplItem.Type.PROT, n, l));\n break;\n case IIP:\n n = parser.nat();\n items.add(new TemplItem(TemplItem.Type.LEN, n));\n break;\n case IIF:\n case IIC:\n done = true;\n break;\n case III:\n rna.concat(dna.substring(0, 7));\n dna.trunc(7);\n break;\n case DONE:\n done = true;\n break;\n default:\n finish();\n }\n }\n\n return items;\n }",
"public List<PSTemplateSummary> findAllUserTemplates() throws PSTemplateException;",
"public void loadTemplates()\n {\n for (PageTemplate template : templates.values())\n {\n template.load(pageDirectory);\n }\n }",
"public java.util.List<String> getConfigurationTemplates() {\n if (configurationTemplates == null) {\n configurationTemplates = new java.util.ArrayList<String>();\n }\n return configurationTemplates;\n }",
"public Collection findTemplatesByOwner(Agent owner);",
"public Map<File, TemplatesStoreData> getTemplatesDescriptors() {\n\t\treturn TemplatesStore.getInstance().getData();\n\t}",
"public List<PSTemplateSummary> findAll() throws IPSGenericDao.LoadException, PSTemplateException;",
"List<TbFreightTemplate> selectAll();",
"@SuppressWarnings(\"unchecked\")\n\tpublic Class[] getTemplate();",
"TemplatesPackage getTemplatesPackage();",
"@Override\n public List<HostGroupTemplate> getHostGroupTemplates() {\n return Lists.newArrayList();\n }",
"public SaxTemplates getTemplates() {\n Templates templates = templatesHandler.getTemplates();\n\n // this is where we need a reloading reference.\n return new SaxTemplatesImpl(templates, transformerFactory); \n }",
"public List<Pojo.OneWord> getOneWord(){ \n List<Pojo.OneWord> list=new ArrayList<Pojo.OneWord>(); \n list=template.loadAll(Pojo.OneWord.class); \n return list; \n}",
"@GetMapping(\"/analysis-templates\")\n\tpublic List<AnalysisTemplate> getProjectAnalysisTemplates(@PathVariable long projectId, Locale locale) {\n\t\treturn pipelineService.getProjectAnalysisTemplates(projectId, locale);\n\t}",
"public Collection<TemplateEngine> getEngines();",
"public static Map<SOAXSDTemplateSubType, List<SOAConfigTemplate>> getTemplateCategoryFiles() {\r\n\t\ttry {\r\n\t\t\tfinal String organization = GlobalRepositorySystem.instanceOf()\r\n\t\t\t\t\t.getActiveRepositorySystem()\r\n\t\t\t\t\t.getActiveOrganizationProvider().getName();\r\n\t\t\treturn SOAConfigExtensionFactory.getXSDTemplates(organization);\r\n\t\t} catch (SOAConfigAreaCorruptedException e) {\r\n\t\t\tUIUtil.showErrorDialog(e);\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public Collection findTemplatesByOwner(Agent owner, String siteId);",
"public Set<String> getTemplateConfigs(String siteType) {\n Set<String> result = new HashSet<String>();\n for (SiteConfigTemplates tempConfig : templateConfigs) {\n Set<String> templates = tempConfig.getTemplates(siteType);\n if (templates != null && templates.size() > 0) {\n result.addAll(templates);\n }\n }\n return result;\n }",
"public ArrayList<Template> getListTemplatesByEventList(Long idEventListener)\n\t{\n\t\tTemplateDAO dao = new TemplateDAO();\n\t\tCollection<Template> listCollection = dao.getAllTemplateByEventList(idEventListener);\n\t\treturn (new ArrayList<Template>(listCollection));\n\t}",
"public List<PSTemplateSummary> findAll(String siteName) throws IPSGenericDao.LoadException, PSTemplateException;",
"String getTemplateContent(){\r\n \t\tStringBuffer templateBuffer = new StringBuffer();\r\n \t\tfor(String templatePart:templateParts){\r\n \t\t\ttemplateBuffer.append(templatePart);\r\n \t\t}\r\n \t\treturn templateBuffer.toString();\r\n \t}",
"List<T> getAll();",
"List<T> getAll();",
"List<T> getAll();",
"List<T> getAll();",
"List<T> getAll();",
"@Override\n\tpublic List findAll()\n\t{\n\t\treturn teataskMapper.findAll();\n\t}",
"List<AssessmentTemplate> getAssessmentTemplates(Long minimumID);",
"public List<T> getAll() {\n\t\treturn this.getAll(new ArrayList<String>(), false);\n\t}",
"@GET(\"users/templates\")\n Call<PageResourceTemplateResource> getUserTemplates(\n @retrofit2.http.Query(\"size\") Integer size, @retrofit2.http.Query(\"page\") Integer page, @retrofit2.http.Query(\"order\") String order\n );",
"@Test\n public void listTemplatesForAccountTest() throws IdfyException, Exception {\n PdfTemplateListItem[] response = api.listTemplatesForAccount();\n assertNotNull(response);\n }",
"private List<EmailTemplate> getAllTemplatesOfTemplateTypeFromRegistry(String templateTypeRegistryPath,\n String tenantDomain)\n throws RegistryException, I18nEmailMgtClientException {\n\n List<EmailTemplate> templateList = new ArrayList<>();\n Collection templateType = (Collection) resourceMgtService.getIdentityResource(templateTypeRegistryPath,\n tenantDomain);\n\n if (templateType == null) {\n String type = templateTypeRegistryPath.split(PATH_SEPARATOR)[\n templateTypeRegistryPath.split(PATH_SEPARATOR).length - 1];\n String message =\n String.format(\"Email Template Type: %s not found in %s tenant registry.\", type, tenantDomain);\n throw new I18nEmailMgtClientException(EMAIL_TEMPLATE_TYPE_NOT_FOUND, message);\n }\n for (String template : templateType.getChildren()) {\n Resource templateResource = resourceMgtService.getIdentityResource(template, tenantDomain);\n if (templateResource != null) {\n try {\n EmailTemplate templateDTO = I18nEmailUtil.getEmailTemplate(templateResource);\n templateList.add(templateDTO);\n } catch (I18nEmailMgtException ex) {\n log.error(\"Failed retrieving a template object from the registry resource\", ex);\n }\n }\n }\n return templateList;\n }",
"public List<Supplier> getSuppliers(){ \n\t List<Supplier> list=new ArrayList<Supplier>(); \n\t list=template.loadAll(Supplier.class); \n\t return list; \n\t}",
"private String getTemplate(boolean all){ \r\n\t\t\t StringBuilder sb = new StringBuilder();\t\t\t \r\n\t\t\t if(!all){\r\n\t\t\t \tsb.append(\"<tpl if=\\\"age > 30\\\">\");\r\n\t\t\t }else{\r\n\t\t\t \tsb.append(\"<tpl>\");\r\n\t\t\t }\r\n\t\t\t sb.append(\"<p>Age: {age}</p>\");\r\n\t\t\t\tsb.append(\"<p>Sex: {gender}</p>\");\r\n\t\t\t\tsb.append(\"<p>Name: {name}</p>\"); \t\t\t \t\r\n\t\t\t\tsb.append(\"<p>Email: {email}</p>\");\r\n\t\t\t\tsb.append(\"<p>Reviews : </p>\");\r\n\t\t\t\tsb.append(\"<ul>\");\r\n\t\t\t\tsb.append(\"<tpl for=\\\"reviews\\\">\");\t\r\n\t\t\t\tsb.append(\"<li>{title}</li>\");\r\n\t\t\t\tsb.append(\"</tpl>\");\r\n\t\t\t\tsb.append(\"</ul>\");\r\n\t\t\t\tsb.append(\"<hr />\");\r\n\t\t\t\tsb.append(\"</tpl>\");\r\n\t\t\t return sb.toString();\r\n\t\t\t}",
"public static List<String> form_list() {\n\t try{\n\t Connection connection = getConnection();\n\n\t List<String> forms = new ArrayList<String>();\n\n\t try {\n\t PreparedStatement statement = connection.prepareStatement(\"SELECT DISTINCT form_name FROM template_fields\");\n\t ResultSet rs = statement.executeQuery();\n\n\t while (rs.next()) {\n\t String form = rs.getString(\"form_name\");\n\t forms.add(form);\n\t }\n\t statement.close();\n\t connection.close();\n\t } catch (SQLException ex) {\n\t ex.printStackTrace();\n\t }\n\n\t return forms;\n\t } catch (Exception e) {\n\t e.printStackTrace();\n\t return null;\n\t }\n\t }",
"public static TemplateStore getDjangoTemplateStore() {\n if (templatesStore == null) {\n \ttemplatesStore = new ContributionTemplateStore(\n \t\t\t\t\t\t\tgetDjangoContextTypeRegistry(),\n \t\t\t\t\t\t\tActivator.getDefault().getPreferenceStore(),\n \t\t\t\t\t\t\tDJANGO_CUSTOM_TEMPLATES_KEY\n \t\t\t\t\t\t);\n try {\n \tLogging.info(\"Inside the TemplateStore Method\");\n \ttemplatesStore.load();\n \tLogging.info(\"Outside the TemplateStore Method\");\n \tTemplate templates[]=templatesStore.getTemplates(\"com.gokul.second.templates.CryTemplateContext.cry\");\n \tLogging.info(\"Before the TemplateStore Method Loop\"+templates.length);\n \tfor(int i=0;i<templates.length;i++)\n \t{\n \t\tLogging.info(\"Inside the Display TemplateStore Method\"+templates[i].getDescription());\n \t\tSystem.out.println(templates.toString());\n \t}\n \t//List<Template> list=new ArrayList<Template>(Arrays.asList(templates))\n// \tfor(Template template: templates)\n// \t{\n// \t\tSystem.out.println(\"Inside TemplateStore\");\n// \t\tSystem.out.println(template.getDescription());\n// \t\tSystem.out.println(template.getContextTypeId());\n// \t}\n } catch (IOException e) {\n e.printStackTrace();\n throw new RuntimeException(e);\n }\n }\n return templatesStore;\n }",
"@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic List<String> getMessageTempTypeList() {\n\t\tSystem.out.println(sessionFactory.getCurrentSession().createCriteria(MessageTemplateMaster.class).setCacheable(true).setProjection(Projections.property(\"str_MessageTempType\")).list());\r\n\t\treturn sessionFactory.getCurrentSession().createCriteria(MessageTemplateMaster.class).setCacheable(true).setProjection(Projections.property(\"str_MessageTempType\")).list();\r\n\t}",
"private native String getTemplate()/*-{\r\n\t\t\t\treturn ['<tpl for=\".\">', \r\n\t\t\t '<div class=\"x-customer-item\">', \r\n\t\t\t\t '<div class=\"name\">{name}</div>', \r\n\t\t\t\t '<div class=\"email\">E-mail:{email}</div>', \r\n\t\t\t\t '<div class=\"purchases\">Purchases:{purchases}</div>', \r\n\t\t\t '</div>', \r\n\t\t\t '</tpl>', \r\n\t\t\t ''].join(\"\");\r\n\t\t\t}-*/;",
"List<T> obtenerAll();",
"public static Map<String, Long> getTemplates(String endPoint, String language) {\n\t\tSystem.out.println(\" EP : \"+endPoint);\n\t\tSystem.out.println(\" language : \"+language);\n\t\tString response = null;\n\t\tMap<String, Long> templateMap = null;\n\t\tif(language == null || !language.isEmpty()) {\n\t\t\tlanguage = \"en\";\n\t\t}\n\t\tString urlParamStr = \"http://108.168.227.158/GetTemplates?endpoint=\"+endPoint+\"&language=\"+language;\n\t\ttry {\n\t\t\tWebResource webResource = getJerseyClient(urlParamStr);\n\t\t\tresponse = webResource.type(MediaType.APPLICATION_JSON).get(String.class);\n\t\t} catch (Exception e) {\n\t\t\ttry {\n\t\t\t\tThread.sleep(1000);\n\t\t\t} catch (InterruptedException e1) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t\tWebResource webResource = getJerseyClient(urlParamStr);\n\t\t\tresponse = webResource.type(MediaType.APPLICATION_JSON).get(String.class);\n\t\t}\n\t\tList<TemplateTo> templateList = new ArrayList<TemplateTo>();\n\t\tif(response != null && !response.isEmpty()) {\n\n\t\t\tGson gson = new Gson();\n\t\t\tType templateResults = new TypeToken<Map<String, List<TemplateTo>>>(){}.getType();\n\t\t\t// Convert the data from the response JSON object\n\t\t\tMap<String, List<TemplateTo>> templateListMap = gson.fromJson(response, templateResults);\n\t\t\ttemplateList = templateListMap.get(\"templates\");\n\t\t\tif(templateListMap.get(\"templates\") != null && !templateListMap.get(\"templates\").isEmpty() ) {\n\t\t\t\ttemplateMap = new HashMap<String, Long>();\n\t\t\t\tfor (TemplateTo templateTo : templateList) {\n\t\t\t\t\ttemplateMap.put(templateTo.getDescription(), templateTo.getId());\n\t\t\t\t}\n\t\t\t}\n\t\t} \n\t\tSystem.out.println(response);\n\t\treturn templateMap;\n\t}",
"@RequestMapping(value = \"/flowTemplateList\", method = RequestMethod.POST)\n\t@ResponseBody\n\tpublic String flowTemplateList() {\n\t\tString username = SessionUserUtil.getCurrentUsername();\n\t\tboolean isAdmin = SessionUserUtil.isAdmin();\n\t\treturn flowTemplateServiceImpl.flowTemplateList(username, isAdmin);\n\t}",
"@Override\n\tpublic List<Generator> getAll() {\n\t\treturn new ArrayList<>();\n\t}",
"private TemplateModel getScriptList(String themeDir) {\n BeansWrapper wrapper = new DefaultObjectWrapper();\n try {\n return wrapper.wrap(new ScriptList(themeDir)); \n } catch (TemplateModelException e) {\n log.error(\"Error creating script TemplateModel\");\n return null;\n } \n }",
"public com.walgreens.rxit.ch.cda.II[] getTemplateIdArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n get_store().find_all_element_users(TEMPLATEID$4, targetList);\n com.walgreens.rxit.ch.cda.II[] result = new com.walgreens.rxit.ch.cda.II[targetList.size()];\n targetList.toArray(result);\n return result;\n }\n }",
"public List<PSTemplateSummary> loadUserTemplateSummaries(List<String> ids, String siteName) throws PSTemplateException;",
"String getTemplate();",
"public Collection<FieldsTemplate> getFieldsTemplateList(Long idTemplate)\n\t{\n\t\tFieldsTemplateDAO daoTemplate = new FieldsTemplateDAO();\n\t\t\n\t\tTemplate template = new Template();\n\t\ttemplate.setId(idTemplate);\n\t\t\n\t\tCollection<FieldsTemplate> responseList = daoTemplate.getAllFields(template);\n\t\tloggerSingle.info(\"num fields template \"+idTemplate+\": \"+responseList.size());\n\t\treturn responseList;\n\t}",
"public HashMap<Integer, List<TemplateRelation>> getRelsByTemplate() {\n if (t_rels == null) {\n t_rels = new HashMap<Integer, List<TemplateRelation>>();\n }\n return t_rels;\n }",
"@Override\n public String[] listAll() {\n return list();\n }",
"private Map retrieveTemplateMap() {\n Map templateMap = new TreeMap();\n for (int j=0;j<mRemoteSourceDirs.length;j++) {\n String remoteSource = mRemoteSourceDirs[j];\n if (!remoteSource.endsWith(\"/\")) {\n remoteSource = remoteSource + \"/\";\n }\n \n try {\n HttpClient tsClient = getTemplateServerClient(remoteSource);\n\n HttpClient.Response response = tsClient.setURI(createTemplateServerRequest(remoteSource,null))\n .setPersistent(true).getResponse(); \n\n if (response != null && response.getStatusCode() == 200) {\n\n Reader rin = new InputStreamReader\n (new BufferedInputStream(response.getInputStream()));\n \n StreamTokenizer st = new StreamTokenizer(rin);\n st.resetSyntax();\n st.wordChars('!','{');\n st.wordChars('}','}');\n st.whitespaceChars(0,' ');\n st.parseNumbers();\n st.quoteChar('|');\n st.eolIsSignificant(true);\n String templateName = null; \n int tokenID = 0;\n // ditching the headers by looking for \"\\r\\n\\r\\n\"\n /* \n * no longer needed now that HttpClient is being used but leave\n * in for the moment.\n *\n * while (!((tokenID = st.nextToken()) == StreamTokenizer.TT_EOL \n * && st.nextToken() == StreamTokenizer.TT_EOL) \n * && tokenID != StreamTokenizer.TT_EOF) {\n * }\n */\n while ((tokenID = st.nextToken()) != StreamTokenizer.TT_EOF) {\n if (tokenID == '|' || tokenID == StreamTokenizer.TT_WORD) {\n \n templateName = st.sval;\n }\n else if (tokenID == StreamTokenizer.TT_NUMBER \n && templateName != null) {\n templateName = templateName.substring(1);\n //System.out.println(templateName);\n templateMap.put(templateName.replace('/','.'),\n new TemplateSourceInfo(\n templateName,\n remoteSource,\n (long)st.nval));\n templateName = null;\n }\n }\n }\n }\n catch (IOException ioe) {\n ioe.printStackTrace();\n }\n }\n //System.out.println(\"retrieving templateMap\");\n return templateMap;\n }",
"@JsonIgnore\r\n\tpublic ArrayList<ShippingTemplate> getAllUserShippingProfiles() {\r\n\t\tString results = EtsyService.getService(\"/users/__SELF__/shipping/templates\");\r\n\t\treturn readResults(results);\r\n\t\t\r\n\t}",
"public Node[] getTemplateSubNodes(IDOMModel model) {\n \t\tif (_templateSubNodes == null) {\n \t\t\treturn null;\n \t\t}\n \t\tif (!this.getURI().equalsIgnoreCase(IJMTConstants.URI_JSF_HTML) && //\n \t\t\t\t!getURI().equalsIgnoreCase(IJMTConstants.URI_JSF_CORE)) {\n \t\t\tList nodes = new ArrayList();\n \t\t\tfor (int i = 0, n = _templateSubNodes.getLength(); i < n; i++) {\n \t\t\t\tString prefixH = JSPUtil.getPrefix(model,\n \t\t\t\t\t\tIJMTConstants.URI_JSF_HTML);\n \t\t\t\tString prefixC = JSPUtil.getPrefix(model,\n \t\t\t\t\t\tIJMTConstants.URI_JSF_CORE);\n \t\t\t\tNode node = PaletteElementTemplateHelper.cloneNodeDeep(model\n \t\t\t\t\t\t.getDocument(), _templateSubNodes.item(i), prefixH,\n \t\t\t\t\t\tprefixC);\n \t\t\t\tnodes.add(node);\n \t\t\t}\n \t\t\treturn (Node[]) nodes.toArray(new Node[nodes.size()]);\n \t\t}\n Node[] result = null;\n if (model != null) {\n \tNodeList nl = _templateSubNodes;\n \tif (nl != null) {\n \t\tString prefixH = JSPUtil.getPrefix(model,\n \t\t\t\tIJMTConstants.URI_JSF_HTML);\n \t\tString prefixC = JSPUtil.getPrefix(model,\n \t\t\t\tIJMTConstants.URI_JSF_CORE);\n \n \t\tAssert.isTrue(prefixH != null && prefixC != null);\n \t\tresult = PaletteElementTemplateHelper.applyPrefixes(\n \t\t\t\tprefixH, prefixC, nl, model.getDocument());\n \t}\n }\n return result;\n \t}",
"public List<ITemplateStep> getAllSteps();",
"public List<PageContent> getAllPageContent();",
"public ArrayList<FieldsTemplateLibrary> templateFieldLibraryGetAll() {\n\t\tFieldsTemplateLibraryDAO dao = new FieldsTemplateLibraryDAO();\n\t\tCollection<FieldsTemplateLibrary> collection = dao.getAllFields();\n\t\tArrayList<FieldsTemplateLibrary> responseList = new ArrayList<FieldsTemplateLibrary>(collection);\n\t\treturn responseList;\n\t}",
"private List<String> createRootList(CachedUrl cu, Matcher mat) {\n String test_tar_name;\n String tar_begin = mat.group(1) + mat.group(2);\n List<String> rootList = new ArrayList<String>();\n // we know this one exists!\n rootList.add(tar_begin + \"A.tar\");\n for(char alphabet = 'B'; alphabet <= 'Z';alphabet++) {\n test_tar_name = tar_begin + String.valueOf(alphabet) + \".tar\";\n CachedUrl testCu = cu.getArchivalUnit().makeCachedUrl(test_tar_name);\n if ((testCu == null) || (!testCu.hasContent())){\n break;\n } else {\n rootList.add(test_tar_name);\n }\n }\n log.debug3(\"ROOT templates for inner iterator is: \" + rootList.toString());\n return rootList;\n }",
"@JsonIgnore\r\n\tpublic ArrayList<ShippingTemplate> createShippingTemplate() {\r\n\t\tString results = EtsyService.getService(\"/shipping/templates\");\r\n\t\treturn readResults(results);\r\n\t}",
"List<EmailTemplateSubCategoryMaster> findAll();",
"public TemplateManager getTemplateManager() {\n return this.templates;\n }",
"Map<String, Map<String, String>> getAllDefinedTemplateProperties();",
"List<Type> getAllTypeList();",
"protected static Templates getTemplates(URL style) throws TransformerException {\r\n Templates templates = s_cachedTemplates.get(style);\r\n Long lastModifiedDate = s_lastModifiedDates.get(style);\r\n long lastModified = 0;\r\n\r\n if (\"file\".equals(style.getProtocol())) {\r\n lastModified = new File(style.getFile()).lastModified();\r\n }\r\n\r\n if (templates == null || lastModifiedDate.longValue() != lastModified) {\r\n TransformerFactory factory = TransformerFactory.newInstance();\r\n\r\n try {\r\n factory.setURIResolver(new XslURIResolver());\r\n templates = factory.newTemplates(new StreamSource(style.openStream(), style.toString()));\r\n\r\n s_cachedTemplates.put(style, templates);\r\n s_lastModifiedDates.put(style, new Long(lastModified));\r\n } catch (IOException e) {\r\n throw new TransformerException(\"Fail to open XSL template: \" + style, e);\r\n }\r\n }\r\n\r\n return templates;\r\n }",
"public List<T> getPageElementsList();",
"@SuppressWarnings({ \"finally\", \"unchecked\" })\n\t@Override \n\tpublic Response getNotifyTemplateList(NotifyTemplate notifyTemplate) {\n\t\tBaseResponse<NotifyTemplate> br = new BaseResponse<NotifyTemplate>();\n\t\ttry \n\t\t{\n\t\tList<NotifyTemplate> templateList; \n\t\tjdbcTemplate.setDataSource(dataSourceProvider.getDataSource(FiinfraConstants.BU_DEFAULT));\n\t\ttemplateList = jdbcTemplate.query(FiinfraConstants.SP_GET_NOTIFYTEMPLATE_LIST,new Object[] {notifyTemplate.getSearchText(),notifyTemplate.getBizunit()},new BeanPropertyRowMapper(NotifyTemplate.class));\n\t\tbr.setResponseListObject(templateList); \n\t\tresponse=FiinfraResponseBuilder.getSuccessResponse(br, null);\n\t\t}\n\t\tcatch (DataAccessException e) { \n\t\t\tresponse=FiinfraResponseBuilder.getErrorResponse(e.getMessage().toString());\n\t\t}\n\t\tfinally \n\t\t{\n\t\t\treturn response; \n\t\t} \n\t}",
"public static void main(String[] args) throws TemplateManagerException {\n\n File directory = new File(TemplateManagerConstants.TEMPLATES_DIRECTORY);\n Collection<TemplateGroup> availableTemplateGroups = new ArrayList();\n\n // To store files from the directory\n File[] files = directory.listFiles();\n if (files != null) {\n for (final File fileEntry : files) {\n // If file is a valid json file\n if (fileEntry.isFile() && fileEntry.getName().endsWith(\"json\")) {\n TemplateGroup templateGroup = null;\n // Convert to TemplateGroup object\n try {\n templateGroup = TemplateManagerHelper.jsonToTemplateGroup(TemplateManagerHelper.fileToJson(fileEntry));\n } catch (NullPointerException ne) {\n System.out.println(\"Unable to convert TemplateGroup file : \" + fileEntry.getName() + \" \" + ne);\n }\n\n // Validate contents of the object\n if (templateGroup != null) {\n try {\n TemplateManagerHelper.validateTemplateGroup(templateGroup);\n // Add only valid TemplateGroups to the template\n availableTemplateGroups.add(templateGroup);\n } catch (TemplateManagerException e) { //todo: implement properly\n // Files with invalid content are not added.\n System.out.println(\"Invalid Template Group configuration file found : \" + fileEntry.getName() + e);\n }\n } else {\n System.out.println(\"Invalid Template Group configuration file found : \" + fileEntry.getName());\n }\n\n }\n }\n }\n\n System.out.println(availableTemplateGroups.size() + \" Templates Found\");\n\n }",
"public List<PrimaryType> getResources() {\n return resources;\n }",
"@Override\n\tpublic List<Tags> getlist() {\n\t\treturn TagsRes.findAll();\n\t}",
"@Nonnull\n @Override\n public Set<ResourceType> list() {\n return getTables().stream()\n .map(Table::name)\n .map(String::toLowerCase)\n .map(LOWER_CASE_RESOURCE_NAMES::get)\n .filter(Objects::nonNull)\n .collect(Collectors.toSet());\n }",
"@Override\r\n\tpublic List<Subjects> getListAll() {\n\t\treturn subectsDao.getListAll();\r\n\t}",
"List<TemplateRelation> getTemplateRelations() throws AccessDeniedException;",
"@GetMapping(\"/all\")\r\n\tpublic List<FileModel> getListFiles() {\r\n\t\treturn fileRepository.findAll();\r\n\t}",
"public ArrayList<TemplateFilters> templateFiltersGetAllById(Template template)\n\t{\n\t\tTemplateFiltersDAO dao = new TemplateFiltersDAO();\n\t\tCollection<TemplateFilters> listResponse = dao.getAllTemplateFiltersById(template);\n\t\treturn (new ArrayList<TemplateFilters>(listResponse)); \n\t}",
"public List<Trixel> getTrixels(Markup markUp) {\n\t\tif (!alreadyRun) {\n\t\t\treturn null;\n\t\t}\n\t\tswitch (markUp) {\n\t\tcase Full:\n\t\t\treturn concatenate(listOfInners, null);\n\t\tcase Partial:\n\t\t\treturn concatenate(null, stackOfPartialLists.peek());\n\t\tdefault:\n\t\t\treturn null;\n\t\t}\n\t}",
"public String[] getAvailableGraphicTemplates()\n\t{\n\t\treturn pCFactory.getAllPageCreatorIdentifiers();\n\t}",
"public List<FileServer> viewAllFileServer() {\n\t\tList<FileServer> fileservers=getHibernateTemplate().find(\"from FileServer\");\r\n\t\t//另外一种方法\r\n\t\t/*Session session=getHibernateTemplate().getSessionFactory().openSession();\r\n\t\tTransaction ts=session.beginTransaction();\r\n\t\tQuery query=session.createQuery(\"from FileServer\");\r\n\t\t\r\n\t\tList<FileServer> fileservers=query.list();\r\n\t\t\r\n\t\tts.commit();\r\n\t\tsession.close();\r\n\t\tsession=null;*/\r\n\t\treturn fileservers;\r\n\t}",
"@RequestMapping(value = \"/txsource\", method = RequestMethod.GET)\n public\n @ResponseBody\n Collection<Description> getTxSourceList(Locale locale) {\n return Collections2.transform(\n translationSourceService.getTranslationSourceList(),\n Description.fromDescriptible(strings, locale)\n );\n }",
"public List<Type> getAll();",
"public void getTempData(){\r\n ts.GetTemplateRecords();\r\n }",
"@GetMapping(value=\"/getAll\")\n\tpublic List<Question> getAll(){\n\t\tLOGGER.info(\"Viewing all questions\");\n\t\treturn questionObj.viewAllQuestions();\n\t}",
"@Override\n public List<Customer> listAll() {\n\n\n Customer c1 = new Customer();\n Customer c2 = new Customer();\n Customer c3 = new Customer();\n\n List<Customer> list = new ArrayList<>();\n list.add(c1);\n list.add(c2);\n list.add(c3);\n\n System.out.println(\"demo\");\n System.out.println(\"Entering test\");\n\n return list;\n }"
] | [
"0.7753651",
"0.77241504",
"0.75570047",
"0.74220973",
"0.7330189",
"0.7296343",
"0.7260842",
"0.7256212",
"0.6879696",
"0.68443555",
"0.6823178",
"0.6803042",
"0.67833817",
"0.6779536",
"0.6713276",
"0.66764057",
"0.66383386",
"0.6524754",
"0.65229225",
"0.6518042",
"0.6496143",
"0.6379655",
"0.6311963",
"0.6310603",
"0.6261181",
"0.62086123",
"0.6168899",
"0.6086516",
"0.60848755",
"0.6065081",
"0.6062874",
"0.6058452",
"0.6039684",
"0.60244626",
"0.6008761",
"0.59723973",
"0.59658724",
"0.59391385",
"0.59311515",
"0.58783954",
"0.5869766",
"0.58530134",
"0.58530134",
"0.58530134",
"0.58530134",
"0.58530134",
"0.58461267",
"0.5800208",
"0.5791439",
"0.57687557",
"0.5768378",
"0.5762736",
"0.5743918",
"0.57300454",
"0.56895345",
"0.5666043",
"0.5647712",
"0.56368744",
"0.56055826",
"0.55743116",
"0.55736065",
"0.5558504",
"0.55421585",
"0.5509381",
"0.55027145",
"0.5494704",
"0.5490684",
"0.5482287",
"0.5434309",
"0.54320794",
"0.5393261",
"0.5377138",
"0.53745824",
"0.53503305",
"0.53473353",
"0.5332816",
"0.5331984",
"0.53319716",
"0.5322932",
"0.53132397",
"0.53118974",
"0.53110975",
"0.5304757",
"0.52934444",
"0.5286478",
"0.52714795",
"0.5263556",
"0.52606034",
"0.52571005",
"0.5247904",
"0.5246",
"0.5245184",
"0.5243634",
"0.52425665",
"0.5239917",
"0.52357435",
"0.52346474",
"0.52304816",
"0.52267855",
"0.5219505"
] | 0.7572489 | 2 |
find template by id | public Template getTemplateById(Long id)
{
TemplateDAO dao = new TemplateDAO();
Template template = dao.getById(id,UtilCodesEnum.CODE_ACTIVE.getCode());
return template;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Template getTemplate(String templateID) {\r\n // Gets the templates collection and creates a query string for the template id\r\n MongoCollection templates = mongoDB.getCollection(\"Templates\");\r\n Document query = new Document(\"_id\", new ObjectId(templateID));\r\n\r\n // Loops over templates found matching the id, returning the first one\r\n for (Template template : (FindIterable<Template>) templates.find(query, Template.class)) {\r\n return template;\r\n }\r\n\r\n // Returns null if none are found\r\n return null;\r\n }",
"PSTemplateSummary find(String id) throws PSDataServiceException;",
"TempletLink selectByPrimaryKey(String id);",
"Template getTemplateById(String templateId) throws NotificationClientException;",
"TbFreightTemplate selectByPrimaryKey(Long id);",
"PSTemplate load(String id) throws PSDataServiceException;",
"@Test\n public void previewTemplateFromIdTest() throws IdfyException, Exception {\n TemplateWithIdPreview model = new TemplateWithIdPreview.Builder().build();\n UUID id = UUID.randomUUID();\n String xmlTemplate = new String(\"123\");\n api.previewTemplateFromId(model, id, xmlTemplate);\n }",
"public FieldsTemplate getFielTemplateById(Long id)\n\t{\n\t\tFieldsTemplateDAO dao = new FieldsTemplateDAO();\n\t\tFieldsTemplate fieldTemplate = dao.getById(id);\n\t\treturn fieldTemplate;\n\t}",
"T findById(ID id) ;",
"public Pojo.OneWord getById(String code){ \n Pojo.OneWord e=(Pojo.OneWord)template.get(Pojo.OneWord.class,code); \n return e; \n}",
"@Override\n public T findById(Long id) {\n return manager.find(elementClass, id);\n }",
"public Activity getById(int id){ \n\t\tActivity e=(Activity)template.get(Activity.class,id); \n\t return e; \n\t}",
"public int getVorlageShopObjectID(int templateId);",
"T getbyId(I id);",
"public final E find(final K id) {\n return getJpaTemplate().find(getEntityClass(), id);\n }",
"@GET(\"users/templates/{id}\")\n Call<TemplateResource> getUserTemplate(\n @retrofit2.http.Path(\"id\") String id\n );",
"@Override\r\n\tpublic TopicContent findById(Serializable id) {\n\t\treturn topicContentDao.findById(id);\r\n\t}",
"public T findById(int id) {\n\t\tConnection connection = null;\n\t\tPreparedStatement st = null;\n\t\tResultSet rs = null;\n\t\tString query = createSelectQuery(\"id\");\n\t\ttry {\n\t\t\tconnection = ConnectionFactory.createCon();\n\t\t\tst = connection.prepareStatement(query);\n\t\t\tst.setInt(1, id);\n\t\t\trs = st.executeQuery();\n\t\t\t\n\t\t\treturn createObjects(rs).get(0);\n\t\t}catch(SQLException e) {\n\t\t\tLOGGER.fine(type.getName() + \"DAO:findBy\" + e.getMessage());\n\t\t}\n\t\treturn null;\n\t}",
"public Supplier getById(int id){ \n\t Supplier e=(Supplier)template.get(Supplier.class,id); \n\t return e; \n\t}",
"private IdentifiedRecordTemplate selectTemplateRow(Connection con,\n String externalId) throws SQLException {\n PreparedStatement select = null;\n ResultSet rs = null;\n \n try {\n select = con.prepareStatement(SELECT_TEMPLATE);\n select.setString(1, externalId);\n rs = select.executeQuery();\n \n if (!rs.next()) {\n return null;\n }\n int internalId = rs.getInt(1);\n String templateName = rs.getString(3);\n \n IdentifiedRecordTemplate template = new IdentifiedRecordTemplate(\n new GenericRecordTemplate());\n template.setInternalId(internalId);\n template.setExternalId(externalId);\n template.setTemplateName(templateName);\n return template;\n } finally {\n DBUtil.close(rs, select);\n }\n }",
"public T findById(int id)\n {\n Connection connection = null;\n PreparedStatement statement = null;\n ResultSet resultSet = null;\n String query = createSelectQuery(\"id\");\n try\n {\n connection = ConnectionFactory.getConnection();\n statement = connection.prepareStatement(query);\n statement.setInt(1,id);\n resultSet = statement.executeQuery();\n\n return createObjects(resultSet).get(0);\n }catch (SQLException e)\n {\n LOGGER.log(Level.WARNING,type.getName() + \"DAO:findById\"+ e.getMessage());\n }finally {\n ConnectionFactory.close(resultSet);\n ConnectionFactory.close(statement);\n ConnectionFactory.close(connection);\n }\n return null;\n }",
"public T find(int id) {\n\t \treturn getEntityManager().find(getEntityClass(), id);\n\t }",
"@ApiModelProperty(value = \"The id of the template\")\n public String getId() {\n return id;\n }",
"public Template getTemplate(Integer templateId) {\r\n\t\treturn templateDao.findById(templateId, false);\r\n\t}",
"public void setTemplateid(Integer templateid) {\n this.templateid = templateid;\n }",
"public Voto find(int id ) { \n\t\treturn em.find(Voto.class, id);\n\t}",
"@Override\r\n\tpublic Plate findById(long id) {\n\t\treturn null;\r\n\t}",
"@Override\r\n\tpublic Element findById(int id) {\n\t\t\r\n\t\treturn em.find(Element.class, id);\r\n\t}",
"@RequestMapping(value = \"/findByname/{name}\", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)\n public ResponseEntity<TemplateHDMVO> findTemplateByname(@PathVariable(value = \"name\") String name) {\n try {\n TemplateEntity ret = templateService.findTemplateByname(name).orElse(null);\n if (ret != null) {\n TemplateHDMVO template = mapper.convertValue(ret, TemplateHDMVO.class);\n template.setFile(ret.getName());\n return new ResponseEntity<>(template, HttpStatus.OK);\n } else {\n return new ResponseEntity<>(HttpStatus.NOT_FOUND);\n }\n } catch (IllegalArgumentException ex) {\n logger.error(String.format(\"Error: %s\", ex.getMessage()));\n }\n return new ResponseEntity<>(HttpStatus.NOT_FOUND);\n }",
"TemplatePoleMission findBy_id(ObjectId _id);",
"public abstract T findOne(int id);",
"T getById(ID id);",
"T getById(int id);",
"@SuppressWarnings(\"unchecked\")\r\n\tpublic T findOne(final int id) {\r\n\t\tEntityManager manager = factory.createEntityManager();\r\n\t\tEntityTransaction transaction = manager.getTransaction();\r\n\t Object obj = null;\r\n\t \r\n\t try {\r\n\t \t transaction.begin();\r\n\t obj = (T) manager.find(genericClass, id);\r\n\t transaction.commit();\r\n\t } catch (HibernateException e) {\r\n\t \t if(transaction != null)\r\n\t \t\t transaction.rollback();\r\n\t e.printStackTrace(); \r\n\t } finally {\r\n\t manager.close(); \r\n\t }\r\n\t\treturn (T) obj;\r\n\t}",
"T findById(Integer id);",
"EmailTemplateSubCategoryMaster findbyId(long subcategoryId);",
"public int getTemplateId() {\n return templateId;\n }",
"@Override\n\tpublic Long getElementTplIdById(Long id) {\n\t\treturn elementHistoryRepository.getElementTplIdById(id);\n\t}",
"E find(final ID identifier) throws ResourceNotFoundException;",
"@Override\r\n\tpublic void find(Integer id) {\n\r\n\t}",
"public abstract T findByID(ID id) ;",
"Tag findById(int id);",
"@Override\n\tpublic T getEntryById(Serializable id) {\n\t\treturn (T) this.hibernateTemplate.get(this.classt, id);\n\t}",
"java.lang.String getTemplateId();",
"public Template getTemplateByCompanyIdAndTemplateTitle(Template template) {\n return templateMapper.getTemplateByCompanyIdAndTemplateTitle(template);\n }",
"@Nullable\n <T> T findById( @Nonnull Class<T> type, @Nonnull Object id );",
"T get(Integer id);",
"T getById(PK id);",
"private static Person findPersonById(int id) {\n Person personReturn = null;\n\n for (Person person : persons) {\n if (id == person.getId()) {\n personReturn = person;\n }\n }\n\n return personReturn;\n }",
"public Triplet selectSingle(int id) throws DAOException;",
"@Test\n public void templateProgrammerTemplateByTemplateIdTest() throws ApiException {\n String templateId = null;\n TemplateDTO response = api.templateProgrammerTemplateByTemplateId(templateId);\n\n // TODO: test validations\n }",
"@Override\r\n\tpublic Object getEntity(Class entityClass, Serializable id) {\n\t\treturn template.get(entityClass, id);\r\n\t}",
"public abstract NoticeTemplate getNoticeTemplate(String templateId);",
"public Integer getTemplateid() {\n return templateid;\n }",
"T findOne(I id);",
"@Override\n\tpublic T findById(ID id) {\n\t\treturn parserEntity(this.getConcreteDAO().findById(id));\n\t}",
"<T> T findById(String typeName, String id, Class<T> clazz);",
"@Override\n\t@Transactional\n\tpublic T getById(Integer id) {\n\t\tif (id == null) {\n\t\t\treturn null;\n\t\t}\n\t\tObject result = hibernateTemplate.getSessionFactory().getCurrentSession()\n\t\t\t\t.createCriteria(getGenericClass())\n\t\t\t\t.add(Restrictions.idEq(id))\n\t\t\t\t.uniqueResult();\n\t\treturn initialize(checkType(result));\n\t}",
"public T findById(final String id)\n\t{\n\t\treturn em.find(entityClass, id);\n\t}",
"@Test\n public void retrieveTemplateTest() throws IdfyException, Exception {\n UUID id = UUID.randomUUID();\n PdfTemplate response = api.retrieveTemplate(id);\n assertNotNull(response);\n }",
"public RepositoryTemplate getTemplate(String label) {\n \t\tfor (RepositoryTemplate template : getTemplates()) {\n \t\t\tif (template.label.equals(label)) {\n \t\t\t\treturn template;\n \t\t\t}\n \t\t}\n \t\treturn null;\n \t}",
"@Override\n @SuppressWarnings(\"unchecked\")\n public T findById(ID id) {\n return (T) this.getSession().load(this.getPersistentClass(), id);\n }",
"public Object findTemplateSource(String name)\r\n/* 33: */ throws IOException\r\n/* 34: */ {\r\n/* 35:67 */ if (this.logger.isDebugEnabled()) {\r\n/* 36:68 */ this.logger.debug(\"Looking for FreeMarker template with name [\" + name + \"]\");\r\n/* 37: */ }\r\n/* 38:70 */ Resource resource = this.resourceLoader.getResource(this.templateLoaderPath + name);\r\n/* 39:71 */ return resource.exists() ? resource : null;\r\n/* 40: */ }",
"private SiteReservation findById(Integer id){\n SiteReservation reservation;\n try {\n reservation = repo.findById(id).get();\n } catch (NoSuchElementException e){\n throw new ReservationNotFoundException(id);\n }\n return reservation;\n }",
"@Override\n\tpublic Document find(int id) {\n\t\treturn null;\n\t}",
"@Test\n public void findById() {\n System.out.println(\"\\n--- Singer by id=1 ---\");\n\n Singer singer = restTemplate.getForObject(\n \"http://localhost:9082/restful-ws/singer/{id}\", Singer.class, 1);\n\n System.out.println(singer);\n }",
"@Override\n public T findById(ID id) throws SQLException {\n\n return this.dao.queryForId(id);\n\n }",
"Tourst selectByPrimaryKey(String id);",
"public Node find(int id) {\n return tree.find(id);\n }",
"public void setTemplateId(Long templateId) {\r\n this.templateId = templateId;\r\n }",
"public person findbyid(int id){\n\t\t\treturn j.queryForObject(\"select * from person where id=? \", new Object[] {id},new BeanPropertyRowMapper<person>(person.class));\r\n\t\t\r\n\t}",
"public Data findById(Object id);",
"public T get( final int id )\n\t{\n\t\treturn this.dao.findById( id ).get();\n\t}",
"String get(String id);",
"EtpBase selectByPrimaryKey(String id);",
"@Override\r\n\tpublic T findById(Long id) {\n\t\tif(id==null)\r\n\t\t\treturn null;\r\n\t\treturn (T) getSession().get(clazz, id);\r\n\t}",
"public void setTemplateId(int tmp) {\n this.templateId = tmp;\n }",
"public <T> PersistableDataObject<T> queryById(final PluginDataObject id) {\n PersistableDataObject<T> retVal = txTemplate\n .execute(new TransactionCallback<PersistableDataObject<T>>() {\n @Override\n @SuppressWarnings(\"unchecked\")\n public PersistableDataObject<T> doInTransaction(\n TransactionStatus status) {\n DetachedCriteria criteria = DetachedCriteria.forClass(\n id.getClass())\n .add(Property.forName(\"dataURI\").eq(\n id.getDataURI()));\n List<?> list = getHibernateTemplate().findByCriteria(\n criteria);\n if (list.size() > 0) {\n return (PluginDataObject) list.get(0);\n } else {\n return null;\n }\n }\n });\n return retVal;\n }",
"public String templateId() {\n return this.templateId;\n }",
"T get(ID id);",
"public TEntity getById(int id){\n String whereClause = String.format(\"Id = %1$s\", id);\n Cursor cursor = db.query(tableName, columns, whereClause, null, null, null, null);\n\n if (cursor.getCount() == 1) {\n cursor.moveToFirst();\n return fromCursor(cursor);\n }\n return null;\n }",
"@Override\n\tpublic T get(ID id) {\n\t\tOptional<T> obj = getDao().findById(id);\n\t\tif (obj.isPresent()) {\n\t\t\treturn obj.get();\n\t\t}\t\t\n\t\treturn null;\n\t}",
"public HexModel searchByID(String id) {\n\t\tfor (int y = 0; y < grid[0].length; y++) {\r\n\t\t\tfor (int x = 0; x < grid[y].length; x++) {\r\n\t\t\t\tif (grid[y][x] != null && grid[y][x].getId().equals(id))\r\n\t\t\t\t\treturn grid[y][x];\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn null;\r\n\t}",
"public void findbyid() throws Exception {\n try {\n Con_contadorDAO con_contadorDAO = getCon_contadorDAO();\n List<Con_contadorT> listTemp = con_contadorDAO.getByPK( con_contadorT);\n\n con_contadorT= listTemp.size()>0?listTemp.get(0):new Con_contadorT();\n \n } catch (Exception e) {\n e.printStackTrace();\n setMsg(\"Falha ao realizar consulta!\");\t\n } finally {\n\tclose();\n }\n }",
"@Override\n\tpublic Tmenu findByKey(String id) throws Exception {\n\t\treturn menuMapper.findForObject(id);\n\t}",
"public <T> T find(Class<T> entityClass, String id);",
"public abstract T byId(ID id);",
"T getById(Long id);",
"@Override\n\tpublic void delete(long id) throws Exception {\n\t\tfind(id);\n\n\t\t// check if the template component has been used\n\t\tList<GpProjectTemplate> list = getProjectTemplateService()\n\t\t\t\t.findByTemplate(id);\n\t\tif (list != null && !list.isEmpty()) {\n\t\t\tthrow new Exception(\n\t\t\t\t\t\"Template (ID=\"\n\t\t\t\t\t\t\t+ id\n\t\t\t\t\t\t\t+ \") can't be deleted. It has been used inside a Project Template.\");\n\t\t}\n\n\t\t// delete template components\n\t\tgetTemplateComponentService().deleteTemplateComponent(id);\n\n\t\t// delete template\n\t\tgetTemplateDao().delete(id);\n\t}",
"public T from_id(int id) {\n\t\ttry {\n\t\t\treturn first(id_name(), new Integer(id));\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}",
"@Override\n\tpublic PI findById(Long id) throws NotFoundException {\n\t\treturn null;\n\t}",
"T get(PK id);",
"public static Patient find(int id) {\n\tPatient patient = null;\n\tfor (Patient a : patients) {\n\t if (a.getId() == id) {\n\t\tpatient = a;\n\t\tbreak;\n\t }\n\t}\t\n\t\n\treturn patient;\n }",
"@Override\r\n\tpublic UserMain findId(String id) {\n\t\treturn (UserMain) usermaindao.findbyId(id).get(0);\r\n\t}",
"public Node<T> search(int id) {\n Node<T> res = root;\n res = search(res, id);\n if (res.getId() == id) return res;\n else return null;\n }",
"@Override\n public ITemplate lookup(final String templateName, final Folder folder) {\n ITemplate template = templateManager.lookup(templateName, folder);\n if( template != null ) {\n LogUtils.trace(log, \"lookup: found template from wrapped template manager\");\n return template;\n }\n \n // Not directly on this web, so try to get from underlay, if the web is a host (web's dont support underlays)\n if (folder instanceof Host) {\n try {\n Host theHost = (Host) folder;\n ITemplate r = UnderlayUtils.walkUnderlays(theHost, underlayLocator, new UnderlayUtils.UnderlayVisitor<ITemplate>() {\n\n @Override\n public ITemplate visitUnderlay(Host underLayFolder) throws NotAuthorizedException, BadRequestException {\n ITemplate t = templateManager.lookup(templateName, underLayFolder);\n if( t != null ) {\n LogUtils.trace(log, \"lookup: found template from underlay\", underLayFolder.getName(), \"web\", folder.getWeb());\n //return new WrappedTemplate(t, folder.getWeb());\n return t;\n } else {\n LogUtils.trace(log, \"lookup: did not find template from underlay\", underLayFolder.getName());\n return null;\n } \n }\n }); \n return r;\n } catch (NotAuthorizedException | BadRequestException ex) {\n throw new RuntimeException(ex);\n }\n } else {\n LogUtils.trace(log, \"lookup: no template in wrapped, and target is not a host\", folder.getName());\n return null; // maybe should go to the web's host?\n }\n }",
"public T getByID(int id) {\n\t\treturn this.data.get(id);\n\t}",
"public T findById(final UUID id) {\n\t\tfinal T result = em.find(persistentClass, id);\n\t\treturn result;\n\t}",
"public Long getTemplateId() {\r\n return templateId;\r\n }",
"@Override\n public Model findByID(PK id) throws ServiceException {\n \t\n \tModel model = getModel();\n \t\n \tMethod method = null;\n\t\ttry {\n\t\t\tmethod = model.getClass().getMethod(\"setId\", new Class[]{ Integer.class });\n\t\t\tmethod.setAccessible(true);\n\t\t\tmethod.invoke(model, new Object[]{ id });\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n \t\n \tModel result = null;\n \t\n \ttry {\n \t\tMap<String, Object> map = getDao().findByID(model);\n \tresult = buildModel(map);\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\tlogger.error(e.getMessage());\n\t\t\tthrow new ServiceException(ResultCode.DB_ERROR);\n\t\t}\n \t\n return result;\n }"
] | [
"0.68685776",
"0.67125916",
"0.6468214",
"0.64614457",
"0.6420974",
"0.64147973",
"0.6382845",
"0.636501",
"0.62986124",
"0.6204218",
"0.618122",
"0.6098365",
"0.6097944",
"0.60970026",
"0.60873264",
"0.6023181",
"0.60105556",
"0.5996873",
"0.5971919",
"0.59056765",
"0.5893941",
"0.58848196",
"0.58440363",
"0.58151364",
"0.5800258",
"0.5779089",
"0.5773993",
"0.577298",
"0.5763647",
"0.5763362",
"0.5722538",
"0.5707682",
"0.57060325",
"0.5701853",
"0.57012564",
"0.567951",
"0.5675585",
"0.5667068",
"0.56620085",
"0.5658258",
"0.56565404",
"0.5652452",
"0.5638518",
"0.5618858",
"0.560362",
"0.5594142",
"0.5585238",
"0.5574714",
"0.55739725",
"0.55705386",
"0.55625695",
"0.55620086",
"0.55608064",
"0.5558461",
"0.55445683",
"0.5544539",
"0.5485473",
"0.548312",
"0.5478789",
"0.547596",
"0.5475398",
"0.5468167",
"0.5466078",
"0.5464514",
"0.54596907",
"0.54495215",
"0.5441833",
"0.5432492",
"0.5425037",
"0.5414347",
"0.54098994",
"0.54091454",
"0.54073715",
"0.54036933",
"0.54021555",
"0.53989244",
"0.53980374",
"0.5396812",
"0.53958416",
"0.53869164",
"0.5386294",
"0.53795314",
"0.53750736",
"0.53633404",
"0.5361038",
"0.53553396",
"0.53544706",
"0.5354204",
"0.53525245",
"0.53512347",
"0.53480905",
"0.53404367",
"0.5339313",
"0.53369284",
"0.53348434",
"0.5333652",
"0.5330886",
"0.532539",
"0.5323671",
"0.53235376"
] | 0.65764487 | 2 |
find template by id | public FieldsTemplate getFielTemplateById(Long id)
{
FieldsTemplateDAO dao = new FieldsTemplateDAO();
FieldsTemplate fieldTemplate = dao.getById(id);
return fieldTemplate;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Template getTemplate(String templateID) {\r\n // Gets the templates collection and creates a query string for the template id\r\n MongoCollection templates = mongoDB.getCollection(\"Templates\");\r\n Document query = new Document(\"_id\", new ObjectId(templateID));\r\n\r\n // Loops over templates found matching the id, returning the first one\r\n for (Template template : (FindIterable<Template>) templates.find(query, Template.class)) {\r\n return template;\r\n }\r\n\r\n // Returns null if none are found\r\n return null;\r\n }",
"PSTemplateSummary find(String id) throws PSDataServiceException;",
"public Template getTemplateById(Long id)\n\t{\n\t\tTemplateDAO dao = new TemplateDAO();\n\t\tTemplate template = dao.getById(id,UtilCodesEnum.CODE_ACTIVE.getCode());\n\t\treturn template;\n\t}",
"TempletLink selectByPrimaryKey(String id);",
"Template getTemplateById(String templateId) throws NotificationClientException;",
"TbFreightTemplate selectByPrimaryKey(Long id);",
"PSTemplate load(String id) throws PSDataServiceException;",
"@Test\n public void previewTemplateFromIdTest() throws IdfyException, Exception {\n TemplateWithIdPreview model = new TemplateWithIdPreview.Builder().build();\n UUID id = UUID.randomUUID();\n String xmlTemplate = new String(\"123\");\n api.previewTemplateFromId(model, id, xmlTemplate);\n }",
"T findById(ID id) ;",
"public Pojo.OneWord getById(String code){ \n Pojo.OneWord e=(Pojo.OneWord)template.get(Pojo.OneWord.class,code); \n return e; \n}",
"@Override\n public T findById(Long id) {\n return manager.find(elementClass, id);\n }",
"public Activity getById(int id){ \n\t\tActivity e=(Activity)template.get(Activity.class,id); \n\t return e; \n\t}",
"public int getVorlageShopObjectID(int templateId);",
"T getbyId(I id);",
"public final E find(final K id) {\n return getJpaTemplate().find(getEntityClass(), id);\n }",
"@GET(\"users/templates/{id}\")\n Call<TemplateResource> getUserTemplate(\n @retrofit2.http.Path(\"id\") String id\n );",
"@Override\r\n\tpublic TopicContent findById(Serializable id) {\n\t\treturn topicContentDao.findById(id);\r\n\t}",
"public T findById(int id) {\n\t\tConnection connection = null;\n\t\tPreparedStatement st = null;\n\t\tResultSet rs = null;\n\t\tString query = createSelectQuery(\"id\");\n\t\ttry {\n\t\t\tconnection = ConnectionFactory.createCon();\n\t\t\tst = connection.prepareStatement(query);\n\t\t\tst.setInt(1, id);\n\t\t\trs = st.executeQuery();\n\t\t\t\n\t\t\treturn createObjects(rs).get(0);\n\t\t}catch(SQLException e) {\n\t\t\tLOGGER.fine(type.getName() + \"DAO:findBy\" + e.getMessage());\n\t\t}\n\t\treturn null;\n\t}",
"public Supplier getById(int id){ \n\t Supplier e=(Supplier)template.get(Supplier.class,id); \n\t return e; \n\t}",
"private IdentifiedRecordTemplate selectTemplateRow(Connection con,\n String externalId) throws SQLException {\n PreparedStatement select = null;\n ResultSet rs = null;\n \n try {\n select = con.prepareStatement(SELECT_TEMPLATE);\n select.setString(1, externalId);\n rs = select.executeQuery();\n \n if (!rs.next()) {\n return null;\n }\n int internalId = rs.getInt(1);\n String templateName = rs.getString(3);\n \n IdentifiedRecordTemplate template = new IdentifiedRecordTemplate(\n new GenericRecordTemplate());\n template.setInternalId(internalId);\n template.setExternalId(externalId);\n template.setTemplateName(templateName);\n return template;\n } finally {\n DBUtil.close(rs, select);\n }\n }",
"public T findById(int id)\n {\n Connection connection = null;\n PreparedStatement statement = null;\n ResultSet resultSet = null;\n String query = createSelectQuery(\"id\");\n try\n {\n connection = ConnectionFactory.getConnection();\n statement = connection.prepareStatement(query);\n statement.setInt(1,id);\n resultSet = statement.executeQuery();\n\n return createObjects(resultSet).get(0);\n }catch (SQLException e)\n {\n LOGGER.log(Level.WARNING,type.getName() + \"DAO:findById\"+ e.getMessage());\n }finally {\n ConnectionFactory.close(resultSet);\n ConnectionFactory.close(statement);\n ConnectionFactory.close(connection);\n }\n return null;\n }",
"public T find(int id) {\n\t \treturn getEntityManager().find(getEntityClass(), id);\n\t }",
"@ApiModelProperty(value = \"The id of the template\")\n public String getId() {\n return id;\n }",
"public Template getTemplate(Integer templateId) {\r\n\t\treturn templateDao.findById(templateId, false);\r\n\t}",
"public void setTemplateid(Integer templateid) {\n this.templateid = templateid;\n }",
"public Voto find(int id ) { \n\t\treturn em.find(Voto.class, id);\n\t}",
"@Override\r\n\tpublic Plate findById(long id) {\n\t\treturn null;\r\n\t}",
"@Override\r\n\tpublic Element findById(int id) {\n\t\t\r\n\t\treturn em.find(Element.class, id);\r\n\t}",
"@RequestMapping(value = \"/findByname/{name}\", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)\n public ResponseEntity<TemplateHDMVO> findTemplateByname(@PathVariable(value = \"name\") String name) {\n try {\n TemplateEntity ret = templateService.findTemplateByname(name).orElse(null);\n if (ret != null) {\n TemplateHDMVO template = mapper.convertValue(ret, TemplateHDMVO.class);\n template.setFile(ret.getName());\n return new ResponseEntity<>(template, HttpStatus.OK);\n } else {\n return new ResponseEntity<>(HttpStatus.NOT_FOUND);\n }\n } catch (IllegalArgumentException ex) {\n logger.error(String.format(\"Error: %s\", ex.getMessage()));\n }\n return new ResponseEntity<>(HttpStatus.NOT_FOUND);\n }",
"TemplatePoleMission findBy_id(ObjectId _id);",
"public abstract T findOne(int id);",
"T getById(ID id);",
"T getById(int id);",
"@SuppressWarnings(\"unchecked\")\r\n\tpublic T findOne(final int id) {\r\n\t\tEntityManager manager = factory.createEntityManager();\r\n\t\tEntityTransaction transaction = manager.getTransaction();\r\n\t Object obj = null;\r\n\t \r\n\t try {\r\n\t \t transaction.begin();\r\n\t obj = (T) manager.find(genericClass, id);\r\n\t transaction.commit();\r\n\t } catch (HibernateException e) {\r\n\t \t if(transaction != null)\r\n\t \t\t transaction.rollback();\r\n\t e.printStackTrace(); \r\n\t } finally {\r\n\t manager.close(); \r\n\t }\r\n\t\treturn (T) obj;\r\n\t}",
"T findById(Integer id);",
"EmailTemplateSubCategoryMaster findbyId(long subcategoryId);",
"public int getTemplateId() {\n return templateId;\n }",
"@Override\n\tpublic Long getElementTplIdById(Long id) {\n\t\treturn elementHistoryRepository.getElementTplIdById(id);\n\t}",
"E find(final ID identifier) throws ResourceNotFoundException;",
"@Override\r\n\tpublic void find(Integer id) {\n\r\n\t}",
"public abstract T findByID(ID id) ;",
"Tag findById(int id);",
"@Override\n\tpublic T getEntryById(Serializable id) {\n\t\treturn (T) this.hibernateTemplate.get(this.classt, id);\n\t}",
"java.lang.String getTemplateId();",
"public Template getTemplateByCompanyIdAndTemplateTitle(Template template) {\n return templateMapper.getTemplateByCompanyIdAndTemplateTitle(template);\n }",
"@Nullable\n <T> T findById( @Nonnull Class<T> type, @Nonnull Object id );",
"T get(Integer id);",
"T getById(PK id);",
"private static Person findPersonById(int id) {\n Person personReturn = null;\n\n for (Person person : persons) {\n if (id == person.getId()) {\n personReturn = person;\n }\n }\n\n return personReturn;\n }",
"public Triplet selectSingle(int id) throws DAOException;",
"@Test\n public void templateProgrammerTemplateByTemplateIdTest() throws ApiException {\n String templateId = null;\n TemplateDTO response = api.templateProgrammerTemplateByTemplateId(templateId);\n\n // TODO: test validations\n }",
"@Override\r\n\tpublic Object getEntity(Class entityClass, Serializable id) {\n\t\treturn template.get(entityClass, id);\r\n\t}",
"public abstract NoticeTemplate getNoticeTemplate(String templateId);",
"public Integer getTemplateid() {\n return templateid;\n }",
"T findOne(I id);",
"@Override\n\tpublic T findById(ID id) {\n\t\treturn parserEntity(this.getConcreteDAO().findById(id));\n\t}",
"<T> T findById(String typeName, String id, Class<T> clazz);",
"@Override\n\t@Transactional\n\tpublic T getById(Integer id) {\n\t\tif (id == null) {\n\t\t\treturn null;\n\t\t}\n\t\tObject result = hibernateTemplate.getSessionFactory().getCurrentSession()\n\t\t\t\t.createCriteria(getGenericClass())\n\t\t\t\t.add(Restrictions.idEq(id))\n\t\t\t\t.uniqueResult();\n\t\treturn initialize(checkType(result));\n\t}",
"public T findById(final String id)\n\t{\n\t\treturn em.find(entityClass, id);\n\t}",
"@Test\n public void retrieveTemplateTest() throws IdfyException, Exception {\n UUID id = UUID.randomUUID();\n PdfTemplate response = api.retrieveTemplate(id);\n assertNotNull(response);\n }",
"public RepositoryTemplate getTemplate(String label) {\n \t\tfor (RepositoryTemplate template : getTemplates()) {\n \t\t\tif (template.label.equals(label)) {\n \t\t\t\treturn template;\n \t\t\t}\n \t\t}\n \t\treturn null;\n \t}",
"@Override\n @SuppressWarnings(\"unchecked\")\n public T findById(ID id) {\n return (T) this.getSession().load(this.getPersistentClass(), id);\n }",
"public Object findTemplateSource(String name)\r\n/* 33: */ throws IOException\r\n/* 34: */ {\r\n/* 35:67 */ if (this.logger.isDebugEnabled()) {\r\n/* 36:68 */ this.logger.debug(\"Looking for FreeMarker template with name [\" + name + \"]\");\r\n/* 37: */ }\r\n/* 38:70 */ Resource resource = this.resourceLoader.getResource(this.templateLoaderPath + name);\r\n/* 39:71 */ return resource.exists() ? resource : null;\r\n/* 40: */ }",
"private SiteReservation findById(Integer id){\n SiteReservation reservation;\n try {\n reservation = repo.findById(id).get();\n } catch (NoSuchElementException e){\n throw new ReservationNotFoundException(id);\n }\n return reservation;\n }",
"@Override\n\tpublic Document find(int id) {\n\t\treturn null;\n\t}",
"@Test\n public void findById() {\n System.out.println(\"\\n--- Singer by id=1 ---\");\n\n Singer singer = restTemplate.getForObject(\n \"http://localhost:9082/restful-ws/singer/{id}\", Singer.class, 1);\n\n System.out.println(singer);\n }",
"@Override\n public T findById(ID id) throws SQLException {\n\n return this.dao.queryForId(id);\n\n }",
"Tourst selectByPrimaryKey(String id);",
"public Node find(int id) {\n return tree.find(id);\n }",
"public void setTemplateId(Long templateId) {\r\n this.templateId = templateId;\r\n }",
"public person findbyid(int id){\n\t\t\treturn j.queryForObject(\"select * from person where id=? \", new Object[] {id},new BeanPropertyRowMapper<person>(person.class));\r\n\t\t\r\n\t}",
"public Data findById(Object id);",
"public T get( final int id )\n\t{\n\t\treturn this.dao.findById( id ).get();\n\t}",
"String get(String id);",
"EtpBase selectByPrimaryKey(String id);",
"@Override\r\n\tpublic T findById(Long id) {\n\t\tif(id==null)\r\n\t\t\treturn null;\r\n\t\treturn (T) getSession().get(clazz, id);\r\n\t}",
"public void setTemplateId(int tmp) {\n this.templateId = tmp;\n }",
"public <T> PersistableDataObject<T> queryById(final PluginDataObject id) {\n PersistableDataObject<T> retVal = txTemplate\n .execute(new TransactionCallback<PersistableDataObject<T>>() {\n @Override\n @SuppressWarnings(\"unchecked\")\n public PersistableDataObject<T> doInTransaction(\n TransactionStatus status) {\n DetachedCriteria criteria = DetachedCriteria.forClass(\n id.getClass())\n .add(Property.forName(\"dataURI\").eq(\n id.getDataURI()));\n List<?> list = getHibernateTemplate().findByCriteria(\n criteria);\n if (list.size() > 0) {\n return (PluginDataObject) list.get(0);\n } else {\n return null;\n }\n }\n });\n return retVal;\n }",
"public String templateId() {\n return this.templateId;\n }",
"T get(ID id);",
"public TEntity getById(int id){\n String whereClause = String.format(\"Id = %1$s\", id);\n Cursor cursor = db.query(tableName, columns, whereClause, null, null, null, null);\n\n if (cursor.getCount() == 1) {\n cursor.moveToFirst();\n return fromCursor(cursor);\n }\n return null;\n }",
"@Override\n\tpublic T get(ID id) {\n\t\tOptional<T> obj = getDao().findById(id);\n\t\tif (obj.isPresent()) {\n\t\t\treturn obj.get();\n\t\t}\t\t\n\t\treturn null;\n\t}",
"public HexModel searchByID(String id) {\n\t\tfor (int y = 0; y < grid[0].length; y++) {\r\n\t\t\tfor (int x = 0; x < grid[y].length; x++) {\r\n\t\t\t\tif (grid[y][x] != null && grid[y][x].getId().equals(id))\r\n\t\t\t\t\treturn grid[y][x];\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn null;\r\n\t}",
"public void findbyid() throws Exception {\n try {\n Con_contadorDAO con_contadorDAO = getCon_contadorDAO();\n List<Con_contadorT> listTemp = con_contadorDAO.getByPK( con_contadorT);\n\n con_contadorT= listTemp.size()>0?listTemp.get(0):new Con_contadorT();\n \n } catch (Exception e) {\n e.printStackTrace();\n setMsg(\"Falha ao realizar consulta!\");\t\n } finally {\n\tclose();\n }\n }",
"@Override\n\tpublic Tmenu findByKey(String id) throws Exception {\n\t\treturn menuMapper.findForObject(id);\n\t}",
"public <T> T find(Class<T> entityClass, String id);",
"public abstract T byId(ID id);",
"T getById(Long id);",
"@Override\n\tpublic void delete(long id) throws Exception {\n\t\tfind(id);\n\n\t\t// check if the template component has been used\n\t\tList<GpProjectTemplate> list = getProjectTemplateService()\n\t\t\t\t.findByTemplate(id);\n\t\tif (list != null && !list.isEmpty()) {\n\t\t\tthrow new Exception(\n\t\t\t\t\t\"Template (ID=\"\n\t\t\t\t\t\t\t+ id\n\t\t\t\t\t\t\t+ \") can't be deleted. It has been used inside a Project Template.\");\n\t\t}\n\n\t\t// delete template components\n\t\tgetTemplateComponentService().deleteTemplateComponent(id);\n\n\t\t// delete template\n\t\tgetTemplateDao().delete(id);\n\t}",
"public T from_id(int id) {\n\t\ttry {\n\t\t\treturn first(id_name(), new Integer(id));\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}",
"@Override\n\tpublic PI findById(Long id) throws NotFoundException {\n\t\treturn null;\n\t}",
"T get(PK id);",
"public static Patient find(int id) {\n\tPatient patient = null;\n\tfor (Patient a : patients) {\n\t if (a.getId() == id) {\n\t\tpatient = a;\n\t\tbreak;\n\t }\n\t}\t\n\t\n\treturn patient;\n }",
"@Override\r\n\tpublic UserMain findId(String id) {\n\t\treturn (UserMain) usermaindao.findbyId(id).get(0);\r\n\t}",
"public Node<T> search(int id) {\n Node<T> res = root;\n res = search(res, id);\n if (res.getId() == id) return res;\n else return null;\n }",
"@Override\n public ITemplate lookup(final String templateName, final Folder folder) {\n ITemplate template = templateManager.lookup(templateName, folder);\n if( template != null ) {\n LogUtils.trace(log, \"lookup: found template from wrapped template manager\");\n return template;\n }\n \n // Not directly on this web, so try to get from underlay, if the web is a host (web's dont support underlays)\n if (folder instanceof Host) {\n try {\n Host theHost = (Host) folder;\n ITemplate r = UnderlayUtils.walkUnderlays(theHost, underlayLocator, new UnderlayUtils.UnderlayVisitor<ITemplate>() {\n\n @Override\n public ITemplate visitUnderlay(Host underLayFolder) throws NotAuthorizedException, BadRequestException {\n ITemplate t = templateManager.lookup(templateName, underLayFolder);\n if( t != null ) {\n LogUtils.trace(log, \"lookup: found template from underlay\", underLayFolder.getName(), \"web\", folder.getWeb());\n //return new WrappedTemplate(t, folder.getWeb());\n return t;\n } else {\n LogUtils.trace(log, \"lookup: did not find template from underlay\", underLayFolder.getName());\n return null;\n } \n }\n }); \n return r;\n } catch (NotAuthorizedException | BadRequestException ex) {\n throw new RuntimeException(ex);\n }\n } else {\n LogUtils.trace(log, \"lookup: no template in wrapped, and target is not a host\", folder.getName());\n return null; // maybe should go to the web's host?\n }\n }",
"public T getByID(int id) {\n\t\treturn this.data.get(id);\n\t}",
"public T findById(final UUID id) {\n\t\tfinal T result = em.find(persistentClass, id);\n\t\treturn result;\n\t}",
"public Long getTemplateId() {\r\n return templateId;\r\n }",
"@Override\n public Model findByID(PK id) throws ServiceException {\n \t\n \tModel model = getModel();\n \t\n \tMethod method = null;\n\t\ttry {\n\t\t\tmethod = model.getClass().getMethod(\"setId\", new Class[]{ Integer.class });\n\t\t\tmethod.setAccessible(true);\n\t\t\tmethod.invoke(model, new Object[]{ id });\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n \t\n \tModel result = null;\n \t\n \ttry {\n \t\tMap<String, Object> map = getDao().findByID(model);\n \tresult = buildModel(map);\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\tlogger.error(e.getMessage());\n\t\t\tthrow new ServiceException(ResultCode.DB_ERROR);\n\t\t}\n \t\n return result;\n }"
] | [
"0.68685776",
"0.67125916",
"0.65764487",
"0.6468214",
"0.64614457",
"0.6420974",
"0.64147973",
"0.6382845",
"0.62986124",
"0.6204218",
"0.618122",
"0.6098365",
"0.6097944",
"0.60970026",
"0.60873264",
"0.6023181",
"0.60105556",
"0.5996873",
"0.5971919",
"0.59056765",
"0.5893941",
"0.58848196",
"0.58440363",
"0.58151364",
"0.5800258",
"0.5779089",
"0.5773993",
"0.577298",
"0.5763647",
"0.5763362",
"0.5722538",
"0.5707682",
"0.57060325",
"0.5701853",
"0.57012564",
"0.567951",
"0.5675585",
"0.5667068",
"0.56620085",
"0.5658258",
"0.56565404",
"0.5652452",
"0.5638518",
"0.5618858",
"0.560362",
"0.5594142",
"0.5585238",
"0.5574714",
"0.55739725",
"0.55705386",
"0.55625695",
"0.55620086",
"0.55608064",
"0.5558461",
"0.55445683",
"0.5544539",
"0.5485473",
"0.548312",
"0.5478789",
"0.547596",
"0.5475398",
"0.5468167",
"0.5466078",
"0.5464514",
"0.54596907",
"0.54495215",
"0.5441833",
"0.5432492",
"0.5425037",
"0.5414347",
"0.54098994",
"0.54091454",
"0.54073715",
"0.54036933",
"0.54021555",
"0.53989244",
"0.53980374",
"0.5396812",
"0.53958416",
"0.53869164",
"0.5386294",
"0.53795314",
"0.53750736",
"0.53633404",
"0.5361038",
"0.53553396",
"0.53544706",
"0.5354204",
"0.53525245",
"0.53512347",
"0.53480905",
"0.53404367",
"0.5339313",
"0.53369284",
"0.53348434",
"0.5333652",
"0.5330886",
"0.532539",
"0.5323671",
"0.53235376"
] | 0.636501 | 8 |
Methods Signature get all templates by event listener specific | public ArrayList<Template> getListTemplatesByEventList(Long idEventListener)
{
TemplateDAO dao = new TemplateDAO();
Collection<Template> listCollection = dao.getAllTemplateByEventList(idEventListener);
return (new ArrayList<Template>(listCollection));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<String> getListOfTemplatesInGadget(){\r\n\t\tList<String> templates = new ArrayList<String>();\r\n\t\tList<WebElement> ele = driver.findElements(By.xpath(\"//div[contains(@class,'x-gadget')]//div[contains(@class,'helpdesk-newcall')]//div[@class='tplLabel']\"));\r\n\t\tfor(WebElement template : ele)\r\n\t\t\ttemplates.add(template.getText());\r\n\t\treturn templates;\r\n\t}",
"public Collection findTemplatesByOwner(Agent owner);",
"List<TemplateDTO> getAllTemplates() throws GAException;",
"public ArrayList<Template> getTemplates() {\n\t\treturn getPageObjects(Template.class);\n\t}",
"TemplateList getAllTemplates(String templateType) throws NotificationClientException;",
"public Template[] getTemplates(String name) {\n\tArrayList res = new ArrayList();\n\tfor (Iterator iterator = fTemplates.iterator(); iterator.hasNext();) {\n\t Template curr = (Template) iterator.next();\n\t if (curr.getName().equals(name)) {\n\t\tres.add(curr);\n\t }\n\t}\n\treturn (Template[]) res.toArray(new Template[res.size()]);\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic Class[] getTemplate();",
"public Collection findTemplatesByOwner(Agent owner, String siteId);",
"@KafkaListener(topics = TW_SERVICE_TEMPLATE_EXAMPLE_TOPIC, containerFactory = EXAMPLE_CUSTOM_LISTENER)\n public void process(TemplateEvent event) {\n log.info(event.toString());\n }",
"List<Template> getTemplates() throws AccessDeniedException;",
"public List<Template> getTemplates() {\n return templates;\n }",
"public List<Template> getTemplates() {\r\n\t\treturn templateDao.findAll();\r\n\t}",
"private Response findTemplates(Request request) throws IOException {\n String query = \"select * from per:Page where jcr:path like '/content/%/templates%'\";\n return findAndOutputToWriterAsJSON(request, query);\n }",
"List<Runnable> getItemListeners();",
"public Collection<Template> getListTemplates()\n\t{\t\t\n\t\tTemplateDAO dao = new TemplateDAO();\n\t\treturn dao.getAll(UtilCodesEnum.CODE_ACTIVE.getCode(),null);\t\t \n\t}",
"public List<Events> getAllSystemEventsListForAll();",
"private ArrayList<String> gettemplates(){\n\t\tArrayList<String> result = new ArrayList<String>();\n\t\ttry {\n\t\t String[] cmd = {\n\t\t \t\t\"/bin/sh\",\n\t\t \t\t\"-c\",\n\t\t \t\t\"ls -p | grep -v / | grep -v 'pom.xml' \"\n\t\t \t\t};\n\n\t\t Process p = Runtime.getRuntime().exec(cmd); //Runtime r = Runtime.getRuntime(); Process p = r.exec(cmd);\n\t\t BufferedReader in =\n\t\t new BufferedReader(new InputStreamReader(p.getInputStream()));\n\t\t String inputLine;\n\t\t while ((inputLine = in.readLine()) != null) {\n\t\t result.add(inputLine);\n\t\t }\n\t\t in.close();\n\n\t\t} catch (IOException e) {\n\t\t System.out.println(e);\n\t\t}\n\t\t\n\t\treturn result;\n\t\t}",
"private void createEvents() {\n\t}",
"public abstract List getRootListeners();",
"String getTemplate();",
"public List<String> getTemplates() {\r\n\t\treturn this.templates;\r\n\t}",
"public void getTempData(){\r\n ts.GetTemplateRecords();\r\n }",
"@RequestMapping(value = \"/coupon-template/template/sdk/all\",\n method = RequestMethod.GET)\n CommonResponse<List<CouponTemplateSDK>> findAllUsableTemplate();",
"public static ITemplate[] getExistingTemplates() {\n\t\tfinal List<ITemplate> allTemps = StorageService.getAllTemplates();\n\t\tfinal List<ITemplate> filteredTemps = new ArrayList<>();\n\t\tfor (final ITemplate t : allTemps) {\n\t\t\tif (!t.getName().equals(\"Custom\")) {\n\t\t\t\tfilteredTemps.add(t);\n\t\t\t}\n\t\t}\n\t\tITemplate[] templates = new ITemplate[filteredTemps.size()];\n\t\ttemplates = filteredTemps.toArray(templates);\n\t\treturn templates;\n\t}",
"public Node[] getTemplateSubNodes(IDOMModel model) {\n \t\tif (_templateSubNodes == null) {\n \t\t\treturn null;\n \t\t}\n \t\tif (!this.getURI().equalsIgnoreCase(IJMTConstants.URI_JSF_HTML) && //\n \t\t\t\t!getURI().equalsIgnoreCase(IJMTConstants.URI_JSF_CORE)) {\n \t\t\tList nodes = new ArrayList();\n \t\t\tfor (int i = 0, n = _templateSubNodes.getLength(); i < n; i++) {\n \t\t\t\tString prefixH = JSPUtil.getPrefix(model,\n \t\t\t\t\t\tIJMTConstants.URI_JSF_HTML);\n \t\t\t\tString prefixC = JSPUtil.getPrefix(model,\n \t\t\t\t\t\tIJMTConstants.URI_JSF_CORE);\n \t\t\t\tNode node = PaletteElementTemplateHelper.cloneNodeDeep(model\n \t\t\t\t\t\t.getDocument(), _templateSubNodes.item(i), prefixH,\n \t\t\t\t\t\tprefixC);\n \t\t\t\tnodes.add(node);\n \t\t\t}\n \t\t\treturn (Node[]) nodes.toArray(new Node[nodes.size()]);\n \t\t}\n Node[] result = null;\n if (model != null) {\n \tNodeList nl = _templateSubNodes;\n \tif (nl != null) {\n \t\tString prefixH = JSPUtil.getPrefix(model,\n \t\t\t\tIJMTConstants.URI_JSF_HTML);\n \t\tString prefixC = JSPUtil.getPrefix(model,\n \t\t\t\tIJMTConstants.URI_JSF_CORE);\n \n \t\tAssert.isTrue(prefixH != null && prefixC != null);\n \t\tresult = PaletteElementTemplateHelper.applyPrefixes(\n \t\t\t\tprefixH, prefixC, nl, model.getDocument());\n \t}\n }\n return result;\n \t}",
"private List<String> getTemplateList(String portletName, String category) throws Exception {\n List<String> templateOptionList = new ArrayList<String>();\n List<Node> templateNodeList = templateManagerService.getTemplatesByCategory(portletName, category, SessionProvider.createSystemProvider());\n for (Node templateNode : templateNodeList) {\n templateOptionList.add(templateNode.getPath());\n }\n return templateOptionList;\n }",
"public ResultSet getAllQuestionnaireTemplates () throws Exception {\r\n String sql = \"SELECT * FROM questionnairetemplates;\";\r\n return stmt.executeQuery(sql);\r\n }",
"public LinearLayout[] Events(){\n Resources r = getResources();\n String name = getPackageName();\n String EventNames[]={\"M\",\"T\",\"W\",\"TH\",\"FR\",\"SA\",\"SU\"};\n LinearLayout Events[]=new LinearLayout[77];\n int value=0;\n for(int i=0;i<7;++i){\n String column=EventNames[i];\n for(int j=8;j<=18;++j){\n LinearLayout temp=(LinearLayout)findViewById(r.getIdentifier(column+\"\"+j,\"id\",name));\n Events[value]=temp;\n ++value;\n }\n\n }\n return Events;\n }",
"public static List<String> getTemplates() {\n\t\tFile templatesDir = new File(PathUtils.getExtensionsTemplatePath());\n\t\tList<String> templates = Arrays.stream(templatesDir.listFiles(File::isDirectory)).map(File::getName)\n\t\t\t\t.collect(Collectors.toList());\n\t\tIProject[] projects = ResourcesPlugin.getWorkspace().getRoot().getProjects();\n\t\tList<String> customTemplates = Arrays.stream(projects).filter(ExtensionUtils::isTemplate)\n\t\t\t\t.map(IProject::getName).collect(Collectors.toList());\n\t\ttemplates.addAll(customTemplates);\n\t\treturn templates;\n\t}",
"public List<IJobTemplate> getJobTemplates();",
"public Map<File, TemplatesStoreData> getTemplatesDescriptors() {\n\t\treturn TemplatesStore.getInstance().getData();\n\t}",
"Collection<ITrigger> getTriggers(String sFolderName);",
"private static String[] getTemplate(int number) {\n\t\tString result[] = TEMPLATE_SIZE1.get(new Integer(number));\n\t\tif (null == result)\n\t\t\tthrow new RuntimeException(String.format(\"Dígito %d no encontrado\",\n\t\t\t\t\tnumber));\n\t\treturn result;\n\t}",
"@SuppressWarnings(\"unchecked\")\n\tpublic synchronized <T extends EventListener> T[] getListeners(Class<T> t) {\n \tList<T> list = Util.newList(0);\n \tfor (EventListener l : listeners) {\n \t\tif (t.isInstance(l)) list.add((T)l);\n \t}\n \t\n \tT[] array = Util.newArray(t, list.size());\n \tfor (int i = 0; i < list.size(); i++) array[i] = list.get(i);\n \t\n \treturn array;\n }",
"public SaxTemplates getTemplates() {\n Templates templates = templatesHandler.getTemplates();\n\n // this is where we need a reloading reference.\n return new SaxTemplatesImpl(templates, transformerFactory); \n }",
"public void onSelectAll(SelectAllEvent<T> event);",
"List<TemplateRelation> getTemplateRelations() throws AccessDeniedException;",
"public void setTemplateButtons() {\r\n\t\tbtnSetBirth.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tif (e.getSource() == btnSetBirth) {\r\n\t\t\t\t\tlblTemplateBirthday.setText(\"Using Template: \" + comboEmails.getSelectedItem());\r\n\t\t\t\t\ttemplateBirthday = (String) comboEmails.getSelectedItem();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnSetAnniv.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tif (e.getSource() == btnSetAnniv) {\r\n\t\t\t\t\tlblTemplateAnniv.setText(\"Using Template: \" + comboEmails.getSelectedItem());\r\n\t\t\t\t\ttemplateAnniv = (String) comboEmails.getSelectedItem();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnSetPromo.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tif (e.getSource() == btnSetPromo) {\r\n\t\t\t\t\tlblPromoTemplate.setText(\"Using Template: \" + comboEmails.getSelectedItem());\r\n\t\t\t\t\ttemplatePromo = (String) comboEmails.getSelectedItem();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\r\n\t}",
"Collection<EventDetector> getEventsDetectors();",
"public IEventType<T>[] getSuperTypes();",
"@GetMapping(\"/events/type/{eventType}\")\n public List<Events> getEventByType(@PathVariable String eventType) {\n return eventsRepository.findByEventType(eventType);\n }",
"IEvent[] getEvents();",
"public List<Pojo.OneWord> getOneWord(){ \n List<Pojo.OneWord> list=new ArrayList<Pojo.OneWord>(); \n list=template.loadAll(Pojo.OneWord.class); \n return list; \n}",
"public void iterateEventList();",
"@Override\n public List<SoapEvent> readAll() {\n final ReadAllSoapEventOutput output = serviceProcessor.process(ReadAllSoapEventInput.builder().build());\n\n for(SoapEvent soapEvent : output.getSoapEvents()){\n final String resourceLink = generateResourceLink(soapEvent);\n soapEvent.setResourceLink(resourceLink);\n }\n\n return output.getSoapEvents();\n }",
"public com.walgreens.rxit.ch.cda.II[] getTemplateIdArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n get_store().find_all_element_users(TEMPLATEID$4, targetList);\n com.walgreens.rxit.ch.cda.II[] result = new com.walgreens.rxit.ch.cda.II[targetList.size()];\n targetList.toArray(result);\n return result;\n }\n }",
"public List<DynamicSlaveTemplate> getDynamicTemplates() {\n\n synchronized (this.dynamicTemplates) {\n return new ArrayList<>(this.dynamicTemplates);\n }\n }",
"public abstract Event[] getInitialEvents();",
"@GET(\"users/templates\")\n Call<PageResourceTemplateResource> getUserTemplates(\n @retrofit2.http.Query(\"size\") Integer size, @retrofit2.http.Query(\"page\") Integer page, @retrofit2.http.Query(\"order\") String order\n );",
"public HashMap<Integer, List<TemplateAttribute>> getAttrsByTemplate() {\n if (t_attrs == null) {\n t_attrs = new HashMap<Integer, List<TemplateAttribute>>();\n }\n return t_attrs;\n }",
"public static ArrayList<Teacher> getAllDocenti() {\n\t\ttry {\n\t\t\tRequestContent rp = new RequestContent();\n\t\t\trp.type = RequestType.GET_ALL_TEACHERS;\n\t\t\tReceiveContent rp1 = sendReceive(rp);\n\t\t\tArrayList<Teacher> lis = (ArrayList<Teacher>) rp1.parameters[0];\n\t\t\treturn lis;\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn new ArrayList<Teacher>();\n\t}",
"@WebMethod public List<Event> getAllEvents();",
"public void loadTemplates()\n {\n for (PageTemplate template : templates.values())\n {\n template.load(pageDirectory);\n }\n }",
"public List<String> listeners();",
"public List<TemplItem> template() {\n List<TemplItem> items = new ArrayList<>();\n int l;\n int n;\n\n boolean done = false;\n while (!done) {\n DNAToken token = parser.step();\n\n switch (token) {\n case CONT:\n break;\n case C:\n items.add(new TemplItem(TemplItem.Type.BASE, 'I'));\n break;\n case F:\n items.add(new TemplItem(TemplItem.Type.BASE, 'C'));\n break;\n case P:\n items.add(new TemplItem(TemplItem.Type.BASE, 'F'));\n break;\n case IC:\n items.add(new TemplItem(TemplItem.Type.BASE, 'P'));\n break;\n case IP:\n case IF:\n l = parser.nat();\n n = parser.nat();\n items.add(new TemplItem(TemplItem.Type.PROT, n, l));\n break;\n case IIP:\n n = parser.nat();\n items.add(new TemplItem(TemplItem.Type.LEN, n));\n break;\n case IIF:\n case IIC:\n done = true;\n break;\n case III:\n rna.concat(dna.substring(0, 7));\n dna.trunc(7);\n break;\n case DONE:\n done = true;\n break;\n default:\n finish();\n }\n }\n\n return items;\n }",
"public HashMap<Integer, List<TemplateRelation>> getRelsByTemplate() {\n if (t_rels == null) {\n t_rels = new HashMap<Integer, List<TemplateRelation>>();\n }\n return t_rels;\n }",
"public void tmplInitialize( TemplateEvent e ) {\r\n }",
"List<TbFreightTemplate> selectAll();",
"List<PSTemplateSummary> findBaseTemplates(String type);",
"public List<WebElement> getEventInformation() {\n return driver.findElements(By.className(\"list_embedded\")).get(0).findElements(By.className(\"linked\"));\n }",
"List<PushTemplate> selectPushTemplate(String taskDefKey);",
"public void send(EventStore es, Template template);",
"public List<ServiceEvent> genEventQueue(){\n for(int i=0; i<serviceNum; i++){\n genEvent(i);\n }\n Collections.sort(eventQueue, new EventComparator());\n return eventQueue;\n }",
"public abstract Map<String, Event> getEvents();",
"@Override\r\n\tpublic Collection<EventHandler> getEventHandlers() {\n\t\treturn null;\r\n\t}",
"TemplatesPackage getTemplatesPackage();",
"private void viewEvents() {\n ReferenceFrame frame = selectFrame(\"What frame would you like to view the events from?\");\n List<Event> transformedEvents = new ArrayList<>();\n for (Event event: world.getEvents()) {\n transformedEvents.add(event.lorentzTransform(frame));\n }\n for (Event event: transformedEvents) {\n System.out.println(event.getName() + \" occurs at t = \" + event.getTime() + \" and x = \" + event.getX());\n }\n }",
"BasicEvents createBasicEvents();",
"public ObservableList<DetailViewEvent> getAllNestedEvents() {\n return nestedEvents;\n }",
"public String[] getAvailableGraphicTemplates()\n\t{\n\t\treturn pCFactory.getAllPageCreatorIdentifiers();\n\t}",
"List<String> getListenerTypes();",
"@Path(\"/showAll\")\n\t@GET\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic List<EventData> getAllEvent() throws JSONException {\n\t\tString today_frm = DateUtil.getNow(DateUtil.SHORT_FORMAT_TYPE);\n\t\tList<Event> list = eventService.getEventsByType(today_frm,\n\t\t\t\tEventType.EVENTTODAY);\n\t\tList<EventData> d = null;\n\t\tif (null != list && list.size() > 0) {\n\t\t\td = getEventsByDateList(list);\n\t\t} else {\n\t\t\td = new ArrayList<EventData>();\n\t\t}\n\t\treturn d;\n\t}",
"Views getViews();",
"public List<ITemplateStep> getAllSteps();",
"public void tmplInitialize(TemplateEvent e) {\r\n }",
"Collection<Service> getAllSubscribeService();",
"public Collection<TemplateEngine> getEngines();",
"@Override\r\n public Collection<EventBean> findAllEvents(String idTxoko) throws BusinessLogicException{\n return null;\r\n }",
"protected static Templates getTemplates(URL style) throws TransformerException {\r\n Templates templates = s_cachedTemplates.get(style);\r\n Long lastModifiedDate = s_lastModifiedDates.get(style);\r\n long lastModified = 0;\r\n\r\n if (\"file\".equals(style.getProtocol())) {\r\n lastModified = new File(style.getFile()).lastModified();\r\n }\r\n\r\n if (templates == null || lastModifiedDate.longValue() != lastModified) {\r\n TransformerFactory factory = TransformerFactory.newInstance();\r\n\r\n try {\r\n factory.setURIResolver(new XslURIResolver());\r\n templates = factory.newTemplates(new StreamSource(style.openStream(), style.toString()));\r\n\r\n s_cachedTemplates.put(style, templates);\r\n s_lastModifiedDates.put(style, new Long(lastModified));\r\n } catch (IOException e) {\r\n throw new TransformerException(\"Fail to open XSL template: \" + style, e);\r\n }\r\n }\r\n\r\n return templates;\r\n }",
"@RequestMapping(value = \"/allEvent\")\n\tpublic List<Events> getAllEvents() {\n\t\treturn eventDAO.getAllEventsList();\n\t}",
"private void initGridTxtViewListeners() {\n\t\tfor (int rowIndex = 0; rowIndex < gridTxtViews.length; rowIndex++) {\n\t\t\tfor (int colIndex = 0; colIndex < gridTxtViews[rowIndex].length; colIndex++) {\n\t\t\t\tgridTxtViews[rowIndex][colIndex]\n\t\t\t\t\t\t.setOnClickListener(new GridTextViewListener(this));\n\t\t\t}\n\t\t}\n\t}",
"public Collection<Integer> getPageIdsForTemplate(String templateId);",
"Collection<ITrigger> getTriggers();",
"public interface EPTemplateListener<T extends DataObject> extends ClusteredDataTreeChangeListener<T>, AutoCloseable {\n\n InstanceIdentifier<SxpEpMapper> SXP_MAPPER_TEMPLATE_PARENT_PATH = InstanceIdentifier.create(SxpEpMapper.class);\n\n //NOBODY\n}",
"<T> List<String> generateFindAllScript(GremlinSource<T> source);",
"public com.walgreens.rxit.ch.cda.II getTemplateIdArray(int i)\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.walgreens.rxit.ch.cda.II target = null;\n target = (com.walgreens.rxit.ch.cda.II)get_store().find_element_user(TEMPLATEID$4, i);\n if (target == null)\n {\n throw new IndexOutOfBoundsException();\n }\n return target;\n }\n }",
"public GameEvent[] getEvents();",
"AbstractList<Event> getEventByName(String eventName) {\r\n\t\treturn events;\r\n\t}",
"public List<Trigger> getTriggers();",
"Event getEvent();",
"@FXML\r\n void onActionAll(ActionEvent event) {\r\n\r\n appointmentListType();\r\n\r\n }",
"public void events(View v){\n }",
"private static List<Event> getMyEvents(List<Registration> registrations) {\n List<Event> result = new ArrayList<>();\n for (Registration registration : registrations) {\n result.add(registration.getEvent());\n }\n return result;\n }",
"public List<TipoEvento> list(){\n\t\treturn this.tipoEventoRepository.findAll();\t\t\n\t}",
"@Override\n\tpublic List<TemplateBundle> getTemplateBundles() {\n\t\tList<TemplateBundle> templates = new ArrayList<TemplateBundle>();\t\n\t\tif (cache == null){\n\t\t\tcache = new ArrayList<TemplateBundle>();\n\t\t\tEnumeration<?> en = JaspersoftStudioPlugin.getInstance().getBundle().findEntries(\"templates/table\", \"*.jrxml\", false); //Doesn't search in the subdirectories\n\t\t\twhile (en.hasMoreElements()) {\n\t\t\t\tURL templateURL = (URL) en.nextElement();\n\t\t\t\ttry {\n\t\t\t\t\tTemplateBundle bundle = new TableTemplateBunlde(templateURL, JasperReportsConfiguration.getDefaultInstance());\n\t\t\t\t\tif (bundle != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tcache.add(bundle);\n\t\t\t\t\t}\t\n\t\t\t\t} catch (Exception ex) \t{\n\t\t\t\t\t// Log error but continue...\n\t\t\t\t\tJaspersoftStudioPlugin.getInstance().getLog().log(\n\t\t\t\t\t\t\tnew Status(IStatus.ERROR,JaspersoftStudioPlugin.PLUGIN_ID,\n\t\t\t\t\t\t\t\t\tMessageFormat.format(Messages.DefaultTemplateProvider_TemplateLoadingErr,new Object[]{templateURL}), ex));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\ttemplates.addAll(cache);\n\t\tloadAdditionalTemplateBundles(templates);\n\t\treturn templates;\n\t}",
"public interface Template {\n\n}",
"public ArrayList<TemplateFilters> templateFiltersGetAllById(Template template)\n\t{\n\t\tTemplateFiltersDAO dao = new TemplateFiltersDAO();\n\t\tCollection<TemplateFilters> listResponse = dao.getAllTemplateFiltersById(template);\n\t\treturn (new ArrayList<TemplateFilters>(listResponse)); \n\t}",
"EventType getEvent();",
"@Override\n public void generateAll(AdviceHook hook) {\n super.generateAll(hook);\n // now the VMA advice templates\n generateStackAdjustTemplates();\n generateShortConstTemplates();\n generateConstTemplates();\n generateLDCTemplates();\n generateLoadTemplates();\n generateStoreTemplates();\n generateIINC();\n generateIfTemplates();\n generateIfCmpTemplates();\n generateGotoTemplates();\n// generateInvokeAfterTemplates();\n }",
"private List<EmailTemplate> getAllTemplatesOfTemplateTypeFromRegistry(String templateTypeRegistryPath,\n String tenantDomain)\n throws RegistryException, I18nEmailMgtClientException {\n\n List<EmailTemplate> templateList = new ArrayList<>();\n Collection templateType = (Collection) resourceMgtService.getIdentityResource(templateTypeRegistryPath,\n tenantDomain);\n\n if (templateType == null) {\n String type = templateTypeRegistryPath.split(PATH_SEPARATOR)[\n templateTypeRegistryPath.split(PATH_SEPARATOR).length - 1];\n String message =\n String.format(\"Email Template Type: %s not found in %s tenant registry.\", type, tenantDomain);\n throw new I18nEmailMgtClientException(EMAIL_TEMPLATE_TYPE_NOT_FOUND, message);\n }\n for (String template : templateType.getChildren()) {\n Resource templateResource = resourceMgtService.getIdentityResource(template, tenantDomain);\n if (templateResource != null) {\n try {\n EmailTemplate templateDTO = I18nEmailUtil.getEmailTemplate(templateResource);\n templateList.add(templateDTO);\n } catch (I18nEmailMgtException ex) {\n log.error(\"Failed retrieving a template object from the registry resource\", ex);\n }\n }\n }\n return templateList;\n }"
] | [
"0.59591013",
"0.5872641",
"0.5851771",
"0.5623524",
"0.56047916",
"0.55102324",
"0.539092",
"0.5386009",
"0.5373978",
"0.5366806",
"0.5287327",
"0.5252395",
"0.52492636",
"0.5165125",
"0.5156869",
"0.5132227",
"0.5105039",
"0.50782955",
"0.5073661",
"0.5057263",
"0.50311273",
"0.5019628",
"0.4999428",
"0.49985877",
"0.49740484",
"0.49580342",
"0.4956129",
"0.4915024",
"0.49080968",
"0.48929116",
"0.48870093",
"0.48789167",
"0.48734036",
"0.48619267",
"0.48598492",
"0.48365155",
"0.48169672",
"0.4814616",
"0.4808725",
"0.48071805",
"0.480208",
"0.47987452",
"0.4796033",
"0.47853288",
"0.475922",
"0.47507894",
"0.47504666",
"0.474306",
"0.47327378",
"0.47168145",
"0.47039866",
"0.4697588",
"0.4677027",
"0.46725482",
"0.46696466",
"0.46678308",
"0.46567577",
"0.46537933",
"0.46459413",
"0.46399522",
"0.46191156",
"0.46183696",
"0.4612528",
"0.46112558",
"0.46011347",
"0.46002346",
"0.4598087",
"0.459793",
"0.45943964",
"0.4589252",
"0.45870414",
"0.4581795",
"0.45804226",
"0.45768252",
"0.4569921",
"0.45672604",
"0.45487937",
"0.454772",
"0.45456848",
"0.4537277",
"0.4536778",
"0.45362955",
"0.45324105",
"0.45319405",
"0.45273218",
"0.4520404",
"0.45110378",
"0.45087907",
"0.450799",
"0.45058692",
"0.45037118",
"0.45017472",
"0.450088",
"0.4499788",
"0.44997713",
"0.44996786",
"0.44886243",
"0.44830868",
"0.44794646",
"0.4478856"
] | 0.70149213 | 0 |
save sings of document | public boolean saveSingsTemplateDocX(TemplateGroupSignature group,ArrayList<TemplateSignature> singList)
{
try
{
TemplateSignatureDAO dao = new TemplateSignatureDAO();
for (TemplateSignature item:singList)
{
//item.setSignatureGroupTemplateId(group);
dao.saveNew(item);
}
return true;
}
catch (Exception e) {
loggerSingle.error(e.getMessage());
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void saveDocument() throws IOException;",
"@Override\n\tpublic void saveDocument(String path, String name) {\n\t\t\n\t}",
"void saveDocument(SingleDocumentModel model, Path newPath);",
"public void save(){\r\n\t\t//System.out.println(\"call save\");\r\n\t\tmodel.printDoc();\r\n\t}",
"public void save() {\t\n\t\n\t\n\t}",
"@Override\r\n\tpublic void save() {\n\r\n\t\ts.save();\r\n\r\n\t}",
"public void save () {\n\t\tif (!open) {\n\t\t\tSystem.out.println (\"ExternalDocument.save: attempt to save unopened document \" + fileName);\n\t\t\treturn;\n\t\t}\n\t\ttry {\n\t\t\tif (format.equals(\"sgml\")) {\n\t\t\t\tString tagToWrite;\n\t\t\t\tif (allTags)\n\t\t\t\t\ttagToWrite = null;\n\t\t\t\telse if (SGMLtags.length == 0)\n\t\t\t\t\ttagToWrite = \"***\"; // unused annotation type\n\t\t\t\telse if (SGMLtags.length == 1)\n\t\t\t\t\ttagToWrite = SGMLtags[0];\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println (\"ExternalDocument.save: cannot write more than 1 annotation type\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tString string = writeSGML(tagToWrite).toString();\n\t\t\t\tFile file = new File(fullFileName());\n\t\t\t\tBufferedWriter writer = new BufferedWriter (\n\t\t\t\t\t\tnew OutputStreamWriter (new FileOutputStream(file), JetTest.encoding));\n\t\t\t\twriteWithSystemNewlines (writer, string);\n\t\t\t\twriter.close();\n\t\t\t} else {\n\t\t\t\t\tSystem.out.println (\"Error saving document \" + fileName);\n\t\t\t\t\tSystem.out.println (\"Unknown document format.\");\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\t\tSystem.out.println (\"Error opening document \" + fileName);\n\t\t\t\tSystem.out.println (e);\n\t\t}\n\t}",
"void save();",
"void save();",
"void save();",
"public void fileSaved(OpenDefinitionsDocument doc) { }",
"public void fileSaved(OpenDefinitionsDocument doc) { }",
"public void save();",
"public void save();",
"public void save();",
"public void save();",
"public abstract boolean processSaveDocument(Document document);",
"public void save() {\n }",
"@Override\n\tpublic void save() {\n\t\t\n\t}",
"@Override\n\tpublic void save() {\n\t\t\n\t}",
"public void saveAll(){\n // Store postings\n for (Map.Entry<String, PostingsList> entry : this.index.entrySet()) {\n saveJSON(\"postings/t\"+hash(entry.getKey())+\".json\", entry.getValue());\n System.err.println(\"postings/t\"+hash(entry.getKey())+\".json\");\n count++;\n if (count%1000==0)\n System.err.println(\"storing \"+ count);\n }\n // Store mapping ID<->document names mapping\n this.saveJSON(\"postings/docIDs.json\", this.docIDs);\n this.saveJSON(\"postings/docLengths.json\", this.docLengths);\n }",
"private void save()\n\t{\n\t\t//get the text\n\t\tString spssTxt = spssText.getText();\n\t\t//save it to a JS place where Java can find it\n\t\tsaveToJS(spssTxt);\n\t\t//make up a file name\n\t\tString fileName = form.getText().replace(\" \", \"_\").replace(\"\\\\\", \"\").replace(\"/\",\"\").replace(\"*\", \"\").replace(\"\\\"\", \"\")\n\t\t\t\t.replace(\"<\", \"\").replace(\">\", \"\").replace(\"#\", \"\").replace(\"'\", \"\") + \".spss\";\t\t\n\t\t\n\t\t\n\t\t\n\t\tappletHtml.setHTML(\"<APPLET codebase=\\\"fileioapplets/\\\"+\" +\n\t\t\t\t\" archive=\\\"kobo_fileIOApplets.jar, plugin.jar\\\" \"+\n\t\t\t\t\" code=\\\"org.oyrm.kobo.fileIOApplets.ui.FileSaveApplet.class\\\" \"+\n\t\t\t\t\" width=\\\"5\\\" HEIGHT=\\\"5\\\" MAYSCRIPT> \"+\n\t\t\t\t\"<param name=\\\"formName\\\" value=\\\"\"+fileName+\"\\\"/>\"+\n\t\t\t\t\"<param name=\\\"save\\\" value=\\\"\"+LocaleText.get(\"SaveSPSSFile\")+\"\\\"/>\"+\n\t\t\t\t\"</APPLET>\");\n\t}",
"void save(XMLDocument document, XMLStreamWriter writer) throws XMLStreamException;",
"void save(JournalPage page);",
"protected void save() {\n close();\n if(saveAction != null) {\n saveAction.accept(getObject());\n }\n }",
"@Override\r\n\tpublic void save() {\n\r\n\t}",
"@Override\r\n\tpublic void save() {\n\r\n\t}",
"public static void saveDocument( Document doc, String path ) {\n\t\ttry {\n\t\t\tFormat format = Format.getPrettyFormat();\n\t\t\tXMLOutputter fmt = new XMLOutputter( format );\n\t\t\tFile file = new File( path );\n\t\t\tOutputStream stream = new FileOutputStream( file );\n\t\t\tfmt.output( doc, stream );\n\t\t} catch (FileNotFoundException e) {\n\t\t\tthrow new RuntimeException( \"No se encontro el archivo: \" + path, e );\n\t\t} catch (IOException e) {\n\t\t\tthrow new RuntimeException( \"Error al guardar el archivo: \" + path, e );\n\t\t}\n\t}",
"@Override\n\tpublic void save(Object o, String file) {\n\t\t\n\t}",
"public void save() {\n DataBuffer.saveDataLocally();\n\n //TODO save to db must be done properly\n DataBuffer.save(session);\n\n //TODO recording saved confirmation\n }",
"public void save(OutputStream os) throws IOException;",
"void saveObject(DataObject sdo, XMLStreamWriter writer) throws XMLStreamException;",
"@Override\n public void Save() {\n\t \n }",
"void save() throws IOException, ParserConfigurationException, TransformerConfigurationException;",
"public synchronized void save() throws IOException {\n for (DocumentSection section : this.sections) {\n section.save();\n }\n }",
"@Override\n public void save() {\n \n }",
"@Override\r\n\tpublic Strumento save(Strumento strumento) {\n\t\treturn strumentoRepository.save(strumento);\r\n\t}",
"@Override\n public void save()\n {\n \n }",
"HrDocumentRequest save(HrDocumentRequest hrDocumentRequest);",
"@Override\n public void save() {\n\n }",
"public void save(){\n checkpoint = chapter;\n }",
"public void saveData() {\n\t\t//place to save notes e.g to file\n\t}",
"@Override\r\n\tprotected void saveDocument(PluginServiceCallbacks callbacks, JSONResponse jsonResults, HttpServletRequest request,\r\n\t\t\tIndexing indexing) throws Exception {\n\t\t\r\n\t}",
"public static native boolean saveDocument(String doc, String toFile);",
"public void save(){\r\n if (inputValidation()) {\r\n if (modifyingPart) {\r\n saveExisting();\r\n } else {\r\n saveNew();\r\n }\r\n closeWindow();\r\n }\r\n\r\n }",
"@Override\n\tpublic void save() {\n\t\tSystem.out.println(\"save method\");\n\t}",
"public static void save()\n\t{\n writeMap();\n\t}",
"public void Save() {\n try {\n ObjectOutputStream objUt = new ObjectOutputStream(\n new FileOutputStream(\"sparfil.txt\"));\n objUt.writeObject(this);\n } catch(Exception e) {\n System.out.println(e);}\n }",
"Document saveDocument(Document document) throws EntityExistsException;",
"private void saveData() {\n }",
"public boolean save();",
"public void saveDocumentAs( final URL url ) {\n\t\ttry {\n\t\t\tSystem.out.println( \"Saving to: \" + url );\n\t\t\tif ( _optics.save( this ) ) {\n\t\t\t\tsetHasChanges( false );\n\t\t\t\t// to do: really should make a logbook entry about this\n\t\t\t}\n\t\t\telse {\n\t\t\t\tJOptionPane.showMessageDialog( getMainWindow(), \"The save operation was cancelled.\", \"Save Cancelled\" , JOptionPane.WARNING_MESSAGE );\n\t\t\t}\n\t\t}\n\t\tcatch( Exception exception ) {\n\t\t\tdisplayError( \"Save Failed\", \"Exception while attempting to save changes\", exception );\n\t\t}\n\t}",
"void save() {\n gameModelPoDao.saveToFile(file.getAbsolutePath(), gameModelPo);\n }",
"void save(Bill bill);",
"void save() {\n File file = new File(main.myPath + \"state.xml\");\n Framework.backup(main.myPath + \"state.xml\");\n Framework.transform(stateDoc, new StreamResult(file), null);\n setDirty(false);\n }",
"@Override\r\n\tpublic void save() throws SaveException {\n\t\t\r\n\t}",
"@Override\n\tpublic void doSaveAs() {\n\n\t}",
"public void saveChanges() throws TransformerException {\n\t\tTransformerFactory transformerFactory = TransformerFactory.newInstance();\r\n\t\tTransformer transformer = transformerFactory.newTransformer();\r\n\t\tDOMSource source = new DOMSource(document);\r\n\t\tStreamResult result = new StreamResult(new File(path));\r\n\t\ttransformer.transform(source, result);\r\n\t}",
"void saveToFile() {\n\t\ttry {\n\t\t\tFile directory = GameApplication.getInstance().getExternalFilesDir(Environment.DIRECTORY_DOCUMENTS);\n\t\t\tFile target = new File(directory, FILE_NAME);\n\t\t\tif (!target.exists()) {\n\t\t\t\ttarget.createNewFile();\n\t\t\t}\n\t\t\tJsonWriter writer = new JsonWriter(new FileWriter(target));\n\t\t\twriter.setIndent(\" \");\n\t\t\twriter.beginArray();\n\t\t\tfor (Scoreboard scoreboard : scoreboards.values()) {\n\t\t\t\twriteScoreboard(writer, scoreboard);\n\t\t\t}\n\t\t\twriter.endArray();\n\t\t\twriter.flush();\n\t\t\twriter.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void save() throws FileNotFoundException, IOException, ClassNotFoundException ;",
"@Override\n\tpublic void save(String file_name) {\n\t\tserialize(file_name);\n\t}",
"public void save() {\n\t\tWriteFile data = new WriteFile( this.name + \".txt\" );\n\t\ttry {\n\t\t\t data.writeToFile(this.toString());\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\tSystem.out.println(\"Couldn't print to file\");\n\t\t}\n\t}",
"public void saveFile(MultipartFile file,Document document){\n document.setKey(UUID.randomUUID().toString());\n document.setLink(UUID.randomUUID().toString());\n\n }",
"private static void addSaves(Document document, Element root, ISaveConfiguration save) {\n appendNodeAndText(document, root, PHASE, save.getCurrentPhase());\n appendNodeAndText(document, root, GAME, save.getGameName());\n appendNodeAndText(document, root, FILE, save.getRulePath());\n appendNodeAndText(document, root, SCORE, \"\" + save.getScore());\n\n root.appendChild(buildCells(document, save));\n }",
"@Override\n\tpublic void doSaveAs() {\n\t}",
"public void save() {\n JAXB.marshal(this, new File(fileName));\n }",
"public void saveData(){\r\n file.executeAction(modelStore);\r\n }",
"public boolean store(UserDoc userdoc);",
"@Override\n\tpublic void save() {\n\t\t\n\t\tFile savingDirectory = new File(savingFolder());\n\t\t\n\t\tif( !savingDirectory.isDirectory() ) {\n\t\t\tsavingDirectory.mkdirs();\n\t\t}\n\t\t\n\t\t\n\t\t//Create the file if it's necessary. The file is based on the name of the item. two items in the same directory shouldn't have the same name.\n\t\t\n\t\tFile savingFile = new File(savingDirectory, getIdentifier());\n\t\t\n\t\tif( !savingFile.exists() ) {\n\t\t\t\n\t\t\ttry {\n\t\t\t\tsavingFile.createNewFile();\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.err.println(\"the following item couldn't be saved: \" + getIdentifier());\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\n\t\t}\n\n\t\t\n\t\t//generate the savingTextLine and print it in the savingFile. the previous content is erased when the PrintWriter is created.\n\t\t\n\t\tString text = generateSavingTextLine();\n\n\t\ttry {\n\t\t\tPrintWriter printer = new PrintWriter(savingFile);\n\t\t\tprinter.write(text);\t\t\t\n\t\t\tprinter.close();\n\t\t\t\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t\tsave();\n\t\t} \n\t}",
"@Override\n\tpublic void save(Religiao obj) throws Exception {\n\t\t\n\t}",
"public void save() {\n //write lift information to datastore\n LiftDataAccess lda = new LiftDataAccess();\n ArrayList<Long>newKeys = new ArrayList<Long>();\n for (Lift l : lift) {\n newKeys.add(lda.insert(l));\n }\n\n //write resort information to datastore\n liftKeys = newKeys;\n dao.update(this);\n }",
"public void save(View view) {\n \t\n \t// Cannot perform save unless there's a locked document.\n \tLockedDocument mlocked = mObjects.getLockedDoc();\n \tif (mlocked == null)\n \t\treturn;\n \t\n \ttry {\n \t\tmlocked.setTitle(text1.getText().toString());\n \tmlocked.setContents(text2.getText().toString());\n \t\tmObjects.addStatusList(\"Attemping to save document.\");\n \t\tUnlockedDocument unlocked = service.saveDocument(mlocked);\n \t\t\n \t\t// If expected document is saved, display the document.\n\t \tif (mObjects.getWaitingKey() == null || \n\t \t\t\tmObjects.getWaitingKey().equals(unlocked.getKey())) {\n\t \t\tmObjects.addStatusList(\"Document '\" + unlocked.getTitle()\n\t \t\t\t\t+ \"' successfully saved.\");\n\t \t\tsetView(unlocked);\n\t\t\t\tmObjects.setUnlockedDoc(unlocked);\n\t\t\t} else {\n\t\t\t\t// Otherwise, lock the error.\n\t\t\t\tLog.d(TAG,\"Saved document is not the anticipated document.\");\n\t\t\t}\n\t\t} catch (InvalidRequest e) {\n\t\t\tToast.makeText(this, \"Error saving document due to invalid request\", \n\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\tmObjects.addStatusList(\"Error saving document: \" + e.getMessage());\n\t\t\t\n\t\t\t// Release the lock if there's error saving document.\n\t\t\treleaseLock(mlocked);\n\t\t} catch (LockExpired e) {\n\t\t\tToast.makeText(this, \"Lock expired\", Toast.LENGTH_LONG).show();\n\t\t\tmObjects.addStatusList(\"Lock had already expired; save failed.\");\n\t\t}\n\t\t\n\t\t// If saving is not successful, modify client's local documents state as well.\n\t\t// This part will only get called if exception were caught. mlocked is set\n\t\t// to null if document is saved correctly. \n\t\tif (mlocked != null) {\n\t\t\tmObjects.setUnlockedDoc(mlocked.unlock());\n\t\t\tsetView(mlocked.unlock());\n\t\t}\n }",
"boolean saveDocument(String termFieldName, String termFieldValue, Document document);",
"public void saveDocumentContent(long arg0, byte[] arg1) throws ContestManagementException {\r\n }",
"private void serialize() {\r\n if (newFile) {\r\n this.newFile = this.serializeAs();\r\n } else if (!newFile && !path.equals(\"\")) {\r\n sr.save(this.path);\r\n }\r\n }",
"private void save() {\r\n\t\tif (Store.save()) {\r\n\t\t\tSystem.out.println(\" > The store has been successfully saved in the file StoreData.\\n\");\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\" > An error occurred during saving.\\n\");\r\n\t\t}\r\n\t}",
"public void save() {\n UTILS.write(FILE.getAbsolutePath(), data);\n }",
"public boolean save() {\n\t\treturn save(_file);\n\t}",
"public static void guardar()\n {\n File fileUsuario,fileDocente;\n ObjectOutputStream entradaUsuario,entradaDocente;\n \n fileDocente = new File(\"docentes\"); \n fileUsuario = new File(\"usuarios\");\n \n try \n {\n \n entradaDocente = new ObjectOutputStream(new FileOutputStream(fileDocente));\n entradaUsuario = new ObjectOutputStream(new FileOutputStream(fileUsuario));\n \n entradaDocente.writeObject(docentes);\n entradaUsuario.writeObject(usuarios);\n \n entradaDocente.close();\n entradaUsuario.close();\n } \n catch (Exception e) \n {\n e.printStackTrace();\n }\n }",
"private synchronized void saveInternal() {\n if (relatedDocumentsCounter == 0) {\r\n return;\r\n }\r\n\r\n final TrigramIndexJsonModel model = new TrigramIndexJsonModel( relatedDocuments, indexGeneration, trigram );\r\n final TrigramDocumentCountJsonModel count = new TrigramDocumentCountJsonModel( trigram, globalRelatedDocumentsCounter );\r\n\r\n indexGeneration++;\r\n relatedDocuments = new TreeSet<>();\r\n relatedDocumentsCounter = 0;\r\n\r\n // put that save action and all unnecessary path calculations into a thread pool, \r\n // no need that other word can't be indexed, because of someone's save action... \r\n\r\n Runnable runnable = new Runnable() {\r\n @Override\r\n public void run() {\r\n Path trigramsPath = TrigramSubPathCalculator.getPathForTrigram( trigramsBasePath, trigram,\r\n \".\" + model.getIndexGeneration() + TRIGRAM_REFERENCE_SUFFIX );\r\n createTargetDirectoryIfNotExist( trigramsPath.getParent() );\r\n\r\n // write content of one part of the index\r\n try (BufferedWriter writer = Files.newBufferedWriter( trigramsPath, StandardCharsets.UTF_8 )) {\r\n Gson gson = new Gson();\r\n writer.write( gson.toJson( model ) );\r\n }\r\n catch (IOException e) {\r\n System.out.println( String.format( \"saving file: '%s' caused this error...\", trigramsPath ) );\r\n e.printStackTrace();\r\n }\r\n\r\n // write+overwrite the global documents counter as well\r\n Path trigramCountPath = TrigramSubPathCalculator.getPathForTrigram( trigramsBasePath, trigram, TRIGRAM_COUNT_SUFFIX );\r\n\r\n try (BufferedWriter writer = Files.newBufferedWriter( trigramCountPath, StandardCharsets.UTF_8 )) {\r\n Gson gson = new Gson();\r\n writer.write( gson.toJson( count ) );\r\n }\r\n catch (IOException e) {\r\n System.out.println( String.format( \"saving file: '%s' caused this error...\", trigramCountPath ) );\r\n e.printStackTrace();\r\n }\r\n\r\n }\r\n };\r\n\r\n // TODO: put into task thread-pool (deque) for really saving indexing time.\r\n runnable.run();\r\n }",
"@Override\r\n\tpublic int save() throws NotesApiException {\n\t\treturn 0;\r\n\t}",
"public void onSaveButtonClicked(View view){\n recipe.setTitle(mTitle.getText().toString());\n recipe.setDescription(mDescription.getText().toString());\n recipe.setLastEaten(dateLastEaten);\n recipe.setRemarks(mRemarks.getText().toString());\n recipe.setPoints(mRating.getRating());\n\n recipe.calculateSuggestionValue();\n\n if (isNew)\n {\n FirebaseUser user = mAuth.getCurrentUser();\n recipe.setUid(user.getUid());\n\n db.collection(\"recipes\")\n .add(recipe)\n .addOnSuccessListener(new OnSuccessListener<DocumentReference>() {\n @Override\n public void onSuccess(DocumentReference documentReference) {\n //startActivity(new Intent(RecipeDetailScreenActivity.this,RecipeMainScreenActivity.class));\n finish();\n }\n })\n .addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n //Log.w(TAG, \"Error adding document\", e);\n showSnackbar(R.string.ErrorSave);\n }\n });\n }\n else {\n db.collection(\"recipes\").document(recipe.getId())\n .set(recipe)\n .addOnSuccessListener(new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(Void aVoid) {\n //Log.d(TAG, \"DocumentSnapshot successfully written!\");\n finish();\n }\n })\n .addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n //Log.w(TAG, \"Error writing document\", e);\n showSnackbar(R.string.ErrorSave);\n }\n });\n\n }\n }",
"@Override\n\tpublic void save(CorsoDiLaurea corso) {\n\t\t\n\t}",
"public void saveOffice(Office office) {\n\t\t\n\t}",
"@Override\n public int save( Mention obj ) {\n return 0;\n }",
"public void saveQuickly(){\r\n String quickSavePath = this.savePath + File.separator + \"QuickSave.ser\";\r\n this.save(quickSavePath);\r\n }",
"public void save()\n\t{\n\t\ttry\n\t\t{\n\t\t\tgetConnection().commit();\n\t\t\tgetPreparedStatement(\"SET FILES SCRIPT FORMAT COMPRESSED\").execute();\n\t\t\t// causes a checkpoint automatically.\n\t\t} catch (SQLException e)\n\t\t{\n\t\t\tm_logger.error(\"Couldn't cleanly save.\", e);\n\t\t}\n\t}",
"private void serializeBeforeOpen() {\r\n sr.save(this.path);\r\n }",
"private void saveFunction() {\n }",
"void save(String fileName);",
"void saveSaves(Object data, Context context);",
"public void saveObject(DBDoc object) {\n\t\tmongoTemplate.insert(object);\n\t}",
"public void save() {\n MainActivity.db.updateWord(this);\n }",
"public void save(JavaPairRDD<String, Tuple2<String, String>> doc) throws IOException {\n String docDelimiter = StringEscapeUtils.unescapeJava(conf.get(DOC_DELIMITER));\n String dataTrainingPath = conf.get(TRAININGDATA_PATH);\n String dataTrainingPathTemp = dataTrainingPath + \"-tmp\";\n\n FIFile.deleteExistHDFSPath(dataTrainingPath);\n FIFile.deleteExistHDFSPath(dataTrainingPathTemp);\n\n doc\n .map(row -> row._1() + docDelimiter + row._2()._1() + docDelimiter + row._2()._2())\n .saveAsTextFile(dataTrainingPathTemp);\n\n FIFile.copyMergeDeleteHDFS(dataTrainingPathTemp, dataTrainingPath);\n }",
"public void save() {\n MidiFileIO.saveMIDIFile(sequence);\n }",
"private void save() {\n File personFile = mainApp.getFilmFilePath();\n if (personFile != null) {\n mainApp.saveFilmDataToFile(personFile);\n } else {\n saveAs();\n }\n }",
"@Override\r\n\tpublic void innerSave() {\n\r\n\t}",
"public void doSave() {\n WaveformLoader.doSave(waveform, WaveformLoader.scalingForSavingFile);\n }",
"boolean saveDocument(String path, String documentContent, Charset charset, List <String> moduleList);",
"void save(String filename);",
"@Override\n\tpublic void posSave() {\n\t\t\n\t}"
] | [
"0.7518797",
"0.7370392",
"0.7338633",
"0.73065305",
"0.72328085",
"0.70995206",
"0.70274806",
"0.6988182",
"0.6988182",
"0.6988182",
"0.6830676",
"0.6830676",
"0.67570543",
"0.67570543",
"0.67570543",
"0.67570543",
"0.6734588",
"0.66350335",
"0.6626371",
"0.6626371",
"0.6604133",
"0.6558877",
"0.65512127",
"0.65445256",
"0.6517188",
"0.650914",
"0.650914",
"0.6475093",
"0.6449113",
"0.6446503",
"0.6414243",
"0.64110744",
"0.6389636",
"0.63877577",
"0.638569",
"0.63800037",
"0.6360774",
"0.63028663",
"0.63019997",
"0.6301629",
"0.62988794",
"0.6298149",
"0.6297904",
"0.6290582",
"0.62549746",
"0.6253445",
"0.6237775",
"0.62318814",
"0.6209149",
"0.6186656",
"0.6148997",
"0.61483794",
"0.6122751",
"0.61174446",
"0.6116688",
"0.61139715",
"0.61060935",
"0.6097073",
"0.6092939",
"0.60821474",
"0.60736746",
"0.6073092",
"0.6071919",
"0.60667294",
"0.60647553",
"0.60486877",
"0.6031109",
"0.6026931",
"0.6012265",
"0.6006333",
"0.59997386",
"0.5981973",
"0.59806764",
"0.59780985",
"0.5975847",
"0.59683174",
"0.5960972",
"0.595984",
"0.59588027",
"0.59489775",
"0.5946694",
"0.59416175",
"0.5935634",
"0.5932606",
"0.59322494",
"0.5929617",
"0.5922831",
"0.5916333",
"0.59028864",
"0.59016544",
"0.590022",
"0.5897241",
"0.58816206",
"0.58786994",
"0.587271",
"0.58719134",
"0.58678025",
"0.58652395",
"0.5860426",
"0.5857082",
"0.58557975"
] | 0.0 | -1 |
update signature of template | public boolean updateSignatureTemplate(ArrayList<TemplateSignature> signatureList)
{
TemplateSignatureDAO dao = new TemplateSignatureDAO();
for (TemplateSignature item:signatureList)
{
dao.save(item);
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Boolean updateSignatureTemplate(TemplateSignature signature)\n\t{\n\t\tTemplateSignatureDAO dao = new TemplateSignatureDAO();\n\t\tdao.save(signature);\t\t\n\t\treturn true;\n\t}",
"ISModifySignature createISModifySignature();",
"void setSignatureType(int signatureType);",
"void setSignature(String signature) {\n this.signature = signature;\n }",
"public abstract String getSignature();",
"SignatureSource createSignatureSource();",
"@Override\n public String generateSignature(String requestPath, String method, String body, String timestamp) {\n try {\n String prehash = timestamp + method.toUpperCase() + requestPath + body;\n byte[] secretDecoded = Base64.getDecoder().decode(secretKey);\n SecretKeySpec keyspec = new SecretKeySpec(secretDecoded, \"HmacSHA256\");\n Mac sha256 = (Mac) GdaxConstants.SHARED_MAC.clone();\n sha256.init(keyspec);\n return Base64.getEncoder().encodeToString(sha256.doFinal(prehash.getBytes()));\n } catch (CloneNotSupportedException | InvalidKeyException e) {\n e.printStackTrace();\n throw new RuntimeErrorException(new Error(\"Cannot set up authentication headers.\"));\n }\n }",
"String getSignature();",
"String getSignature();",
"String getSignature();",
"Signature getSignature();",
"private void setSignature(com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n bitField0_ |= 0x00000010;\n signature_ = value;\n }",
"void mo25969f(TemplateInfo templateInfo);",
"void xsetSignatureText(com.microsoft.schemas.office.x2006.digsig.STSignatureText signatureText);",
"public void setSignature(String signature) {\n\t\tthis.signature = signature;\n\t}",
"void mo25968e(TemplateInfo templateInfo);",
"public void setSignature( String pSignature )\r\n {\r\n this.signature = pSignature;\r\n }",
"int getSignature ();",
"public void setSignature(String Signature) {\n this.Signature = Signature;\n }",
"void xsetSignatureType(com.microsoft.schemas.office.x2006.digsig.STSignatureType signatureType);",
"public void buildSignature() throws IOException\n {\n PDFTemplateBuilder builder = new PDVisibleSigBuilder();\n PDFTemplateCreator creator = new PDFTemplateCreator(builder);\n setVisibleSignature(creator.buildPDF(getPdVisibleSignature()));\n }",
"String componentSignature();",
"public void setFingerprintTemplate(javax.activation.DataHandler param){\n localFingerprintTemplateTracker = true;\n \n this.localFingerprintTemplate=param;\n \n\n }",
"void setSignatureImage(byte[] signatureImage);",
"public interface SignatureObject {\n}",
"public interface SignatureFactory \n{\n /** \n * initializes the implementation class \n */\n public void init()\n throws SignedDocException;\n \n /**\n * Method returns an array of strings representing the \n * list of available token names.\n * @return an array of available token names.\n * @throws SignedDocException if reading the token information fails.\n */\n public String[] getAvailableTokenNames()\n throws SignedDocException;\n \n /**\n * Method returns a digital signature. It finds the RSA private \n * key object from the active token and\n * then signs the given data with this key and RSA mechanism.\n * @param digest digest of the data to be signed.\n * @param token token index\n * @param pin users pin code\n * @return an array of bytes containing digital signature.\n * @throws SignedDocException if signing the data fails.\n */\n public byte[] sign(byte[] digest, int token, String pin) \n throws SignedDocException;\n \n /**\n * Method returns a X.509 certificate object readed \n * from the active token and representing an\n * user public key certificate value.\n * @return X.509 certificate object.\n * @throws SignedDocException if getting X.509 public key certificate \n * fails or the requested certificate type X.509 is not available in \n * the default provider package\n */\n public X509Certificate getCertificate(int token, String pin)\n throws SignedDocException;\n \n /**\n * Resets the previous session\n * and other selected values\n */\n public void reset() \n throws SignedDocException;\n \n\t/**\n\t * Method decrypts the data with the RSA private key\n\t * corresponding to this certificate (which was used\n\t * to encrypt it). Decryption will be done on the card.\n\t * This operation closes the possibly opened previous\n\t * session with signature token and opens a new one with\n\t * authentication token if necessary\n\t * @param data data to be decrypted.\n\t * @param token index of authentication token\n\t * @param pin PIN code\n\t * @return decrypted data.\n\t * @throws SignedDocException for all decryption errors\n\t */\n\tpublic byte[] decrypt(byte[] data, int token, String pin) \n\t\tthrows SignedDocException;\n\t\t\t\t\n}",
"public void setTemplate(Template template)\n/* */ {\n/* 62 */ this.template = template;\n/* */ }",
"java.lang.String getSignatureText();",
"protected void sequence_Signature(ISerializationContext context, Signature semanticObject) {\r\n\t\tgenericSequencer.createSequence(context, semanticObject);\r\n\t}",
"public abstract byte[] getSignature();",
"void xsetSignatureComments(com.microsoft.schemas.office.x2006.digsig.STSignatureComments signatureComments);",
"void setSignatureText(java.lang.String signatureText);",
"void setTemplate(ITemplateKey key, Template template);",
"int getSignatureType();",
"public abstract String getCurrentUserSignature(PortletRequest request);",
"public abstract void mo32008e(TemplateInfo templateInfo);",
"public void update(byte paramByte) throws XMLSignatureException {\n/* 218 */ this.signatureAlgorithm.engineUpdate(paramByte);\n/* */ }",
"public GpgSignature(@NonNull byte[] signature) {\n\t\tthis.signature = signature;\n\t}",
"public String getSignature()\r\n {\r\n return signature;\r\n }",
"void processModelTemplate(NamedTemplate template, AmqpVersion version)\n {\n }",
"public void testX509SignatureThumb() throws Exception {\n WSSecSignature builder = new WSSecSignature();\n builder.setUserInfo(\"16c73ab6-b892-458f-abf5-2f875f74882e\", \"security\");\n builder.setKeyIdentifierType(WSConstants.THUMBPRINT_IDENTIFIER);\n // builder.setUserInfo(\"john\", \"keypass\");\n LOG.info(\"Before Signing ThumbprintSHA1....\");\n Document doc = unsignedEnvelope.getAsDocument();\n \n WSSecHeader secHeader = new WSSecHeader();\n secHeader.insertSecurityHeader(doc);\n\n Document signedDoc = builder.build(doc, crypto, secHeader);\n\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"Signed message with ThumbprintSHA1 key identifier:\");\n String outputString = \n org.apache.ws.security.util.XMLUtils.PrettyDocumentToString(signedDoc);\n LOG.debug(outputString);\n }\n LOG.info(\"After Signing ThumbprintSHA1....\");\n verify(signedDoc);\n }",
"SignatureIdentification createSignatureIdentification();",
"@Override\n public String createSignature(final BreinConfig config, final Map<String, Object> requestData) {\n final long unixTimestamp = BreinMapUtil.getNestedValue(requestData, UNIX_TIMESTAMP_FIELD);\n\n final String message = String.format(\"%d\", unixTimestamp);\n return BreinUtil.generateSignature(message, config.getSecret());\n }",
"public void update(byte[] paramArrayOfbyte) throws XMLSignatureException {\n/* 207 */ this.signatureAlgorithm.engineUpdate(paramArrayOfbyte);\n/* */ }",
"@Test\n public void updateTemplateTest() throws IdfyException, Exception {\n UUID id = UUID.randomUUID();\n UpdatePdfTemplate model = new UpdatePdfTemplate.Builder().build();\n PdfTemplate response = api.updateTemplate(id, model);\n assertNotNull(response);\n }",
"public final EObject entryRuleTemplateSignatureCS() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleTemplateSignatureCS = null;\n\n\n try {\n // InternalMyDsl.g:4807:60: (iv_ruleTemplateSignatureCS= ruleTemplateSignatureCS EOF )\n // InternalMyDsl.g:4808:2: iv_ruleTemplateSignatureCS= ruleTemplateSignatureCS EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getTemplateSignatureCSRule()); \n }\n pushFollow(FOLLOW_1);\n iv_ruleTemplateSignatureCS=ruleTemplateSignatureCS();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleTemplateSignatureCS; \n }\n match(input,EOF,FOLLOW_2); if (state.failed) return current;\n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }",
"SignatureSink createSignatureSink();",
"com.google.protobuf.ByteString getSignature();",
"@Override\n public String digestParams(RestInvocation restInvocation) {\n Params params = Params.of();\n restInvocation.getParamsMap().get(FormParam.class).asHttpHeaders().entrySet().stream()\n .filter(e -> !e.getKey().equalsIgnoreCase(\"signature\"))\n .forEach(e -> params.add(e.getKey(), e.getValue()));\n\n // Parse Query String\n byte[] queryString = params.asQueryString().trim().getBytes(UTF8);\n\n // Create And Return Signature\n return hex(getMac().doFinal(queryString));\n }",
"void computeSignature(String signature) {\n\t\t// In case of IJavaElement signature, replace '/' by '.'\n\t\tchar[] source = signature.replace('/','.').replace('$','.').toCharArray();\n\n\t\t// Init counters and arrays\n\t\tchar[][] signatures = new char[10][];\n\t\tint signaturesCount = 0;\n\t\tint[] lengthes = new int [10];\n\t\tint typeArgsCount = 0;\n\t\tint paramOpening = 0;\n\t\tboolean parameterized = false;\n\t\t\n\t\t// Scan each signature character\n\t\tfor (int idx=0, ln = source.length; idx < ln; idx++) {\n\t\t\tswitch (source[idx]) {\n\t\t\t\tcase '>':\n\t\t\t\t\tparamOpening--;\n\t\t\t\t\tif (paramOpening == 0) {\n\t\t\t\t\t\tif (signaturesCount == lengthes.length) {\n\t\t\t\t\t\t\tSystem.arraycopy(signatures, 0, signatures = new char[signaturesCount+10][], 0, signaturesCount);\n\t\t\t\t\t\t\tSystem.arraycopy(lengthes, 0, lengthes = new int[signaturesCount+10], 0, signaturesCount);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tlengthes[signaturesCount] = typeArgsCount;\n\t\t\t\t\t\ttypeArgsCount = 0;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase '<':\n\t\t\t\t\tparamOpening++;\n\t\t\t\t\tif (paramOpening == 1) {\n\t\t\t\t\t\ttypeArgsCount = 0;\n\t\t\t\t\t\tparameterized = true;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase '*':\n\t\t\t\tcase ';':\n\t\t\t\t\tif (paramOpening == 1) typeArgsCount++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase '.':\n\t\t\t\t\tif (paramOpening == 0) {\n\t\t\t\t\t\tif (signaturesCount == lengthes.length) {\n\t\t\t\t\t\t\tSystem.arraycopy(signatures, 0, signatures = new char[signaturesCount+10][], 0, signaturesCount);\n\t\t\t\t\t\t\tSystem.arraycopy(lengthes, 0, lengthes = new int[signaturesCount+10], 0, signaturesCount);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tsignatures[signaturesCount] = new char[idx+1];\n\t\t\t\t\t\tSystem.arraycopy(source, 0, signatures[signaturesCount], 0, idx);\n\t\t\t\t\t\tsignatures[signaturesCount][idx] = Signature.C_SEMICOLON;\n\t\t\t\t\t\tsignaturesCount++;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Store signatures and type arguments\n\t\tthis.typeSignatures = new char[signaturesCount+1][];\n\t\tif (parameterized)\n\t\t\tthis.typeArguments = new char[signaturesCount+1][][];\n\t\tthis.typeSignatures[0] = source;\n\t\tif (parameterized) {\n\t\t\tthis.typeArguments[0] = Signature.getTypeArguments(source);\n\t\t\tif (lengthes[signaturesCount] != this.typeArguments[0].length) {\n\t\t\t\t// TODO (frederic) abnormal signature => should raise an error\n\t\t\t}\n\t\t}\n\t\tfor (int i=1, j=signaturesCount-1; i<=signaturesCount; i++, j--){\n\t\t\tthis.typeSignatures[i] = signatures[j];\n\t\t\tif (parameterized) {\n\t\t\t\tthis.typeArguments[i] = Signature.getTypeArguments(signatures[j]);\n\t\t\t\tif (lengthes[j] != this.typeArguments[i].length) {\n\t\t\t\t\t// TODO (frederic) abnormal signature => should raise an error\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public String getSignature() {\n return signature;\n }",
"public String getSignature() {\n return signature;\n }",
"public String getSignature() {\n return signature;\n }",
"public void visitSignatureCapture( DevCat devCat ) {}",
"public void generateSignature(PrivateKey privateKey) {\r\n\t\t\r\n\t\tString data;\r\n\t\t\r\n\t\tif(isTypeCreation){\r\n\t\t\t\r\n\t\t\tdata = StringUtil.getStringFromKey(creator) + name +\r\n\t\t\t\t\tdescription + begin + end+end_subscription+\r\n\t\t\t\t\tlocation+min_capacity+max_capacity;\r\n\t\t\t\r\n\t\t}\r\n\t\telse{\r\n\t\t\t\r\n\t\t\tdata = StringUtil.getStringFromKey(subscriber)+id_event;\r\n\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tsignature = StringUtil.applyECDSASig(privateKey,data);\r\n\t\tprocessTransaction();\r\n\t\t\t\r\n\t}",
"public void setSignatureAlgorithm(java.lang.String r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.setSignatureAlgorithm(java.lang.String):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.setSignatureAlgorithm(java.lang.String):void\");\n }",
"@DISPID(14) //= 0xe. The runtime will prefer the VTID if present\n @VTID(21)\n void templateID(\n int pVal);",
"public Builder setSignature(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n signature_ = value;\n onChanged();\n return this;\n }",
"public Builder setSignature(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n signature_ = value;\n onChanged();\n return this;\n }",
"String getUniqueSignature();",
"public void testDoubleX509SignatureThumb() throws Exception {\n WSSecSignature builder = new WSSecSignature();\n builder.setUserInfo(\"16c73ab6-b892-458f-abf5-2f875f74882e\", \"security\");\n // builder.setUserInfo(\"john\", \"keypass\");\n builder.setKeyIdentifierType(WSConstants.THUMBPRINT_IDENTIFIER); \n Document doc = unsignedEnvelope.getAsDocument();\n \n WSSecHeader secHeader = new WSSecHeader();\n secHeader.insertSecurityHeader(doc);\n\n Document signedDoc = builder.build(doc, crypto, secHeader);\n Document signedDoc1 = builder.build(signedDoc, crypto, secHeader);\n verify(signedDoc1);\n }",
"org.apache.calcite.avatica.proto.Common.Signature getSignature();",
"default String getSignature() {\n StringBuilder sb = new StringBuilder();\n sb.append(getName());\n sb.append(\"(\");\n for (int i = 0; i < getNumberOfParams(); i++) {\n if (i != 0) {\n sb.append(\", \");\n }\n sb.append(getParam(i).describeType());\n }\n sb.append(\")\");\n return sb.toString();\n }",
"public void update(byte[] paramArrayOfbyte, int paramInt1, int paramInt2) throws XMLSignatureException {\n/* 231 */ this.signatureAlgorithm.engineUpdate(paramArrayOfbyte, paramInt1, paramInt2);\n/* */ }",
"public String getSignature() {\n\t\treturn signature;\n\t}",
"public void initSign(Key paramKey) throws XMLSignatureException {\n/* 242 */ this.signatureAlgorithm.engineInitSign(paramKey);\n/* */ }",
"public byte[] sign(byte[] digest, int token, String pin) \n throws SignedDocException;",
"public String getSignature() {\n return \"P\" + getPointedType().getSignature();\n }",
"private void setSignatureType(byte type) \r\n \t //@ requires signatureType |-> ?theSignatureType &*& theSignatureType != null &*& theSignatureType.length == 1 &*& is_transient_byte_array(theSignatureType) == true &*& transient_byte_arrays(?ta) &*& foreachp(ta, transient_byte_array);\r\n \t //@ ensures signatureType |-> theSignatureType &*& is_transient_byte_array(theSignatureType) == true &*& transient_byte_arrays(ta) &*& foreachp(ta, transient_byte_array);\r\n\t{\r\n\t\t//@ transient_byte_arrays_mem(theSignatureType);\r\n\t\t//@ foreachp_remove(theSignatureType, ta);\r\n\t\t//@ open transient_byte_array(theSignatureType);\r\n\t\tsignatureType[0] = type;\r\n\t\t//@ close transient_byte_array(theSignatureType);\r\n\t\t//@ foreachp_unremove(theSignatureType, ta);\r\n\t}",
"void xsetSignatureImage(org.apache.xmlbeans.XmlBase64Binary signatureImage);",
"private void clearSignature() {\n bitField0_ = (bitField0_ & ~0x00000010);\n signature_ = getDefaultInstance().getSignature();\n }",
"private void generateGraphSignature() {\n \t this.generateVertexSignatures();\n \t Collections.sort(this.vertexSignatures);\n \t this.graphSignature = this.vertexSignatures.get(0);\n \t}",
"void setSignatureComments(java.lang.String signatureComments);",
"void xsetSignatureProviderId(com.microsoft.schemas.office.x2006.digsig.STUniqueIdentifierWithBraces signatureProviderId);",
"public void setSignature(short signature) {\n\t\ttry {\n\t\t\tgetStream().setInt(this.signature, signature);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn;\n\t\t}\n\t}",
"public interface SignCallUseCase {\n\n String signature(String method, Map<String, String> params, String secret);\n\n}",
"@ApiModelProperty(example = \"D8047EB8285077D9900EDD42F4081070DDB26E08E7F15A3E29642C80CF0C7D68340682DC9868C73EB09744D6298146D8DFC02ED47070FC81FB47D6F73B33EF0A\", required = true, value = \"The signature of the entity. The signature was generated by the signer and can be used to validate tha the entity data was not modified by a node. \")\n public String getSignature() {\n return signature;\n }",
"public\tString\tgetNewSignature() {\n\t\t\treturn\tthis.newSignature;\n\t\t}",
"public TemplateGroupSignature saveGroupSingTemplate(Template template, TemplateGroupSignature group)\n\t{\n\t\tTemplateGroupSignatureDAO dao = new TemplateGroupSignatureDAO();\n\t\tgroup = dao.saveNew(group);\t\n\t\treturn group; \n\t}",
"byte[] getSignatureImage();",
"public String getSignature() {\n return this.Signature;\n }",
"public byte[] generateSignature()\n {\n if (!forSigning)\n {\n throw new IllegalStateException(\"PairingDigestSigner not initialised for signature generation.\");\n }\n\n byte[] hash = new byte[digest.getDigestSize()];\n digest.doFinal(hash, 0);\n\n Element[] sig = pairingSigner.generateSignature(hash);\n\n try {\n return pairingSigner.derEncode(sig);\n } catch (IOException e) {\n throw new IllegalStateException(\"unable to encode signature\");\n }\n }",
"void mergeSignature(ClassSignature signature) {\n this.signature.merge(signature);\n }",
"@Override\n\tprotected AbstractAlgorithm<ISDSRPacket> generateSignatureAlgorithm(HashMap<String, String> params) {\n\t\tparams.put(\"uid\", this.addr.getHostAddress());\n\t\tSystem.out.println(\"uid=\" + this.addr.getHostAddress());\n\t\t\n\t\treturn new IBSASalgorithm(params);\n\t}",
"public TemplateSignature getSignatureById(Long idSignature)\n\t{\n\t\tTemplateSignatureDAO dao = new TemplateSignatureDAO();\n\t\tTemplateSignature sign = dao.getById(idSignature);\n\t\treturn sign;\n\t}",
"public interface IVerifySignatureService {\n\n\t/**\n\t * Document which contains signature internally\n\t * \n\t * @param document : document to be verified\n\t * @return : verification result status and the Token file encoded by base64\n\t */\n\tEntry<StatusType, String> verifyInternalSignature(final Document document);\n\n\t/**\n\t * Document to be verified with its external signature\n\t * \n\t * @param document : document to be verified\n\t * @param signature : its signature file\n\t * @return\n\t */\n\tEntry<StatusType, String> verifyExternalSignature(Document document, Document signature);\n}",
"@Override\n public String buildSignature(RequestDataToSign requestDataToSign, String appKey) {\n // find private key for this app\n final String secretKey = keyStore.getPrivateKey(appKey);\n if (secretKey == null) {\n LOG.error(\"Unknown application key: {}\", appKey);\n throw new PrivateKeyNotFoundException();\n }\n\n // sign\n return super.buildSignature(requestDataToSign, secretKey);\n }",
"public void setSignature(String signature) {\n this.signature = signature == null ? null : signature.trim();\n }",
"public void setSignature(String signature) {\n this.signature = signature == null ? null : signature.trim();\n }",
"public SignatureFragment(int count, String signatureString) {\n super(count);\n this.signatureString = signatureString;\n this.fragmentAtomContainer = \n MoleculeSignature.fromSignatureString(signatureString, \n NoNotificationChemObjectBuilder.getInstance());\n }",
"SignatureSpi(com.android.org.bouncycastle.crypto.Digest r1, com.android.org.bouncycastle.crypto.DSA r2, com.android.org.bouncycastle.jcajce.provider.asymmetric.util.DSAEncoder r3) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: com.android.org.bouncycastle.jcajce.provider.asymmetric.ec.SignatureSpi.<init>(com.android.org.bouncycastle.crypto.Digest, com.android.org.bouncycastle.crypto.DSA, com.android.org.bouncycastle.jcajce.provider.asymmetric.util.DSAEncoder):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.jcajce.provider.asymmetric.ec.SignatureSpi.<init>(com.android.org.bouncycastle.crypto.Digest, com.android.org.bouncycastle.crypto.DSA, com.android.org.bouncycastle.jcajce.provider.asymmetric.util.DSAEncoder):void\");\n }",
"@DISPID(14) //= 0xe. The runtime will prefer the VTID if present\n @VTID(20)\n int templateID();",
"protected void engineInitSign(java.security.PrivateKey r1) throws java.security.InvalidKeyException {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: com.android.org.bouncycastle.jcajce.provider.asymmetric.ec.SignatureSpi.engineInitSign(java.security.PrivateKey):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.jcajce.provider.asymmetric.ec.SignatureSpi.engineInitSign(java.security.PrivateKey):void\");\n }",
"public ExecSignature getSignature() {\n\t\t\tif(this.Signature == null) {\n\t\t\t\tthis.Signature = (ExecSignature)this.Datas[Index_ExecSignature];\n\t\t\t\tif(this.isParameterized() || this.isParametered()) {\n\t\t\t\t\tTypeRef TR = this.getTypeRef();\n\t\t\t\t\tType T = TR.getTheType();\n\t\t\t\t\tEngine E = (T == null) ? null : T.getEngine();\n\t\t\t\t\tthis.Signature = OperationInfo.SimpleOperation.ChangeBaseTypeSignature(E, TR, TR, this.Signature);\n\t\t\t\t\tthis.Signature = OperationInfo.SimpleOperation.flatSignature( E, TR, this.Signature);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\treturn this.Signature;\n\t\t}",
"private final static void doRegenerateSecretKey1(SwiftConnections conn, SwiftConnectionResultHandler fileHandler)\n throws IOException {\n conn.generate_account_meta_temp_url_key(fileHandler);\n }",
"void update(MetaTag metaTag);",
"public void initSign(Key paramKey, AlgorithmParameterSpec paramAlgorithmParameterSpec) throws XMLSignatureException {\n/* 269 */ this.signatureAlgorithm.engineInitSign(paramKey, paramAlgorithmParameterSpec);\n/* */ }",
"protected byte[] getSignature() {\n return signatureImpl.calculate(content, null);\n }",
"public ISignature getSignature() {\n return _signature;\n }",
"public void setSignatureValidator(SignatureValidator newSignatureValidator) {\r\n signatureValidator = newSignatureValidator;\r\n }"
] | [
"0.6978644",
"0.6813883",
"0.58442146",
"0.5832265",
"0.5714915",
"0.5624837",
"0.56215453",
"0.5611537",
"0.5611537",
"0.5611537",
"0.55848056",
"0.5555924",
"0.5533481",
"0.5507372",
"0.5498636",
"0.5492835",
"0.54860795",
"0.54685664",
"0.5467109",
"0.54073155",
"0.5379415",
"0.53611654",
"0.5287629",
"0.5268126",
"0.5263385",
"0.52445793",
"0.51886946",
"0.5168666",
"0.51682174",
"0.516662",
"0.51564556",
"0.5149542",
"0.51389426",
"0.51343924",
"0.5133033",
"0.5129842",
"0.5098752",
"0.5078628",
"0.5076799",
"0.50716794",
"0.50695926",
"0.5061339",
"0.5057877",
"0.50574297",
"0.5041843",
"0.50405365",
"0.50295144",
"0.50230527",
"0.50054276",
"0.49807933",
"0.49671805",
"0.49671805",
"0.49671805",
"0.49595132",
"0.4939513",
"0.49334717",
"0.49313474",
"0.4928308",
"0.4928308",
"0.4920203",
"0.49160916",
"0.489483",
"0.48874205",
"0.48689806",
"0.48636886",
"0.48600456",
"0.48508906",
"0.48477942",
"0.48379803",
"0.48373944",
"0.48277593",
"0.48059902",
"0.48006192",
"0.4787363",
"0.4778069",
"0.47706828",
"0.47555357",
"0.4751476",
"0.47510692",
"0.47447094",
"0.4737625",
"0.4728595",
"0.47174942",
"0.47083178",
"0.46997213",
"0.4695409",
"0.4687055",
"0.46788818",
"0.46788818",
"0.467767",
"0.4676508",
"0.46707806",
"0.46662223",
"0.46613428",
"0.46569487",
"0.46528733",
"0.46524295",
"0.464733",
"0.4644181",
"0.46380264"
] | 0.56955576 | 5 |
return all list of Signature | public Collection<TemplateSignature> getSignatureTemplateList(Long idGroupSignatureTemplate)
{
TemplateSignatureDAO dao = new TemplateSignatureDAO();
TemplateGroupSignature group = new TemplateGroupSignature();
group.setId(idGroupSignatureTemplate);
Collection<TemplateSignature> responseList = dao.getAllFields(group);
loggerSingle.info("num signature group "+idGroupSignatureTemplate+": "+responseList.size());
return responseList;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Iterator getSignatures()\n {\n if (subSigs == null)\n {\n ArrayList sigs = new ArrayList();\n\n sigs.addAll(keySigs);\n\n for (int i = 0; i != idSigs.size(); i++)\n {\n sigs.addAll((Collection)idSigs.get(i));\n }\n \n return sigs.iterator();\n }\n else\n {\n return subSigs.iterator();\n }\n }",
"@java.lang.Override\n public java.util.List<io.grafeas.v1.Signature> getSignaturesList() {\n return signatures_;\n }",
"public java.util.List<io.grafeas.v1.Signature> getSignaturesList() {\n if (signaturesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(signatures_);\n } else {\n return signaturesBuilder_.getMessageList();\n }\n }",
"public Set<String> getSignatures()\n/* */ {\n/* 150 */ return this.signatures;\n/* */ }",
"public String[] getSignature() {\n\t\treturn signature;\n\t}",
"public java.util.List<? extends io.grafeas.v1.SignatureOrBuilder> getSignaturesOrBuilderList() {\n if (signaturesBuilder_ != null) {\n return signaturesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(signatures_);\n }\n }",
"@java.lang.Override\n public java.util.List<? extends io.grafeas.v1.SignatureOrBuilder> getSignaturesOrBuilderList() {\n return signatures_;\n }",
"@java.lang.Override\n public io.grafeas.v1.Signature getSignatures(int index) {\n return signatures_.get(index);\n }",
"public byte[] getSignature()\n {\n return Arrays.clone(signature);\n }",
"public java.util.List<io.grafeas.v1.Signature.Builder> getSignaturesBuilderList() {\n return getSignaturesFieldBuilder().getBuilderList();\n }",
"public abstract byte[] getSignature();",
"byte[] getSignatureImage();",
"@java.lang.Override\n public io.grafeas.v1.SignatureOrBuilder getSignaturesOrBuilder(int index) {\n return signatures_.get(index);\n }",
"String getSignature();",
"String getSignature();",
"String getSignature();",
"public io.grafeas.v1.Signature getSignatures(int index) {\n if (signaturesBuilder_ == null) {\n return signatures_.get(index);\n } else {\n return signaturesBuilder_.getMessage(index);\n }\n }",
"Signature getSignature();",
"java.lang.String getSignatureComments();",
"public byte []\ngetSignature() {\n\treturn signature;\n}",
"java.util.List<com.icare.eai.schema.om.evSORequest.EvSORequestDocument.EvSORequest.Key> getKeyList();",
"public abstract String getSignature();",
"public org.apache.calcite.avatica.proto.Common.SignatureOrBuilder getSignatureOrBuilder() {\n return getSignature();\n }",
"public Collection<String> signatureToWords(String sig);",
"@JNICALL(returnType = \"java.lang.Object[]\")\n public /*Object[]*/ KReference getSigners(JNIEnv env, @THIS KReference ref) {\n //TODO fix me\n return null;\n }",
"public Iterator getSignaturesForID(\n String id)\n {\n for (int i = 0; i != ids.size(); i++)\n {\n if (id.equals(ids.get(i)))\n {\n return ((ArrayList)idSigs.get(i)).iterator();\n }\n }\n \n return null;\n }",
"com.google.protobuf.ByteString\n getSignatureBytes();",
"com.google.protobuf.ByteString\n getSignatureBytes();",
"public void buildSignatureModel(LinkedList<SignatureContainer> sigs)\r\n {\r\n \r\n for (SignatureContainer s:sigs) {\r\n \r\n }\r\n \r\n }",
"org.apache.calcite.avatica.proto.Common.SignatureOrBuilder getSignatureOrBuilder();",
"int getSignature ();",
"org.apache.calcite.avatica.proto.Common.Signature getSignature();",
"protected byte[] getSignature() {\n return signatureImpl.calculate(content, null);\n }",
"public Request<List<Key>> list() {\n HttpUrl.Builder builder = baseUrl\n .newBuilder()\n .addEncodedPathSegments(\"api/v2/keys/signing\");\n String url = builder.build().toString();\n return new BaseRequest<>(this.client, tokenProvider, url, HttpMethod.GET, new TypeReference<List<Key>>() {\n });\n }",
"com.google.protobuf.ByteString getSignature();",
"public String getSignature()\r\n {\r\n return signature;\r\n }",
"public PublicKey[] getPeopleInConvo (String sig) {\n Logger.write(\"VERBOSE\", \"DB\", \"getPeopleInConvo(...)\");\n Vector<PublicKey> keys = new Vector<PublicKey>();\n \n try {\n ResultSet keySet = query(DBStrings.getConversationMembers.replace(\"__SIG__\", sig));\n while (keySet.next())\n keys.add(Crypto.decodeKey(keySet.getString(\"key\")));\n } catch (java.sql.SQLException e) {\n Logger.write(\"ERROR\", \"DB\", \"SQLException: \" + e);\n }\n \n return keys.toArray(new PublicKey[0]);\n }",
"com.microsoft.schemas.office.x2006.digsig.STSignatureComments xgetSignatureComments();",
"public ArrayList<TemplateGroupSignature> getSignatureGroupTemplateList(Long idTemplate)\n\t{\n\t\tTemplateGroupSignatureDAO dao = new TemplateGroupSignatureDAO();\n\t\t\n\t\tTemplate template = new Template();\n\t\ttemplate.setId(idTemplate);\n\t\t\n\t\tCollection<TemplateGroupSignature> signatureList = dao.getAllFields(template);\n\t\tArrayList<TemplateGroupSignature> responseList = new ArrayList<TemplateGroupSignature>(signatureList);\n\t\t\n\t\tloggerSingle.info(\"num group signature template \"+idTemplate+\": \"+responseList.size());\n\t\treturn responseList;\n\t}",
"public List<String> getSignatureKeyAliases() throws CryptoException {\n\t\t\n\t\ttry {\n\t\t\tList<String> signatureAliases = new ArrayList<String>();\n\t\t\tEnumeration<String> aliases = keystore.aliases();\n\t\t\twhile(aliases.hasMoreElements()) {\n\t\t\t\tString alias = aliases.nextElement();\n\t\t\t\ttry {\n\t\t\t\t\tlogger.debug(\"analysing alias: '{}'...\", alias);\t\t\t\t\t\n\t\t\t\t\tCertificate certificate = keystore.getCertificate(alias);\n\t\t\t\t\tif(certificate instanceof X509Certificate) {\n\t\t\t\t\t\tlogger.debug(\" - certificate : 'X.509'\");\n\t\t\t\t\t\tif(\tCertificates.isNonRepudiationX509Certificate((X509Certificate)certificate) && \n\t\t\t\t\t\t\tCertificates.hasCriticalExtension((X509Certificate)certificate, SIGNATURE_CRITICAL_EXTENSION_OID)) {\n\t\t\t\t\t\t\tlogger.debug(\" - good for signing : true\");\n\t\t\t\t\t\t\tsignatureAliases.add(alias);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tlogger.debug(\" - good for signing : false\");\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tlogger.debug(\" - certificate : 'plain'\");\n\t\t\t\t\t\tlogger.debug(\" - good for signing : false\");\n\t\t\t\t\t}\n\t\t\t\t} catch (KeyStoreException e) {\n\t\t\t\t\t// this error is swallowed intentionally, as a failure on one \n\t\t\t\t\t// certificate should not prevent the analysis of the others \n\t\t\t\t\tlogger.error(\"error accessing certificate for alias '{}'\", alias);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn signatureAliases;\n\t\t} catch(KeyStoreException e) {\n\t\t\tlogger.error(\"error accessing the keystore to enumerate aliases\", e);\n\t\t\tthrow new CryptoException(\"error accessing the keystore to enumerate aliases\", e);\t\t\t\t\t\t\n\t\t}\n\t}",
"public static Map<String, String> listTokenFromCSP()\r\n\t\t\tthrows BkavSignaturesException {\r\n\t\tMap<String, String> result = new HashMap<>();\r\n\t\ttry {\r\n\t\t\tSunMSCAPI providerMSCAPI = new SunMSCAPI();\r\n\t\t\tSecurity.addProvider(providerMSCAPI);\r\n\t\t\tKeyStore ks = KeyStore.getInstance(CSP_KEYSTORE);\r\n\t\t\tks.load(null, null);\r\n\r\n\t\t\tEnumeration<String> aliases = ks.aliases();\r\n\t\t\tString alias = null;\r\n\r\n\t\t\twhile (aliases.hasMoreElements()) {\r\n\t\t\t\talias = aliases.nextElement();\r\n\t\t\t\tCertificate cert = ks.getCertificate(alias);\r\n\t\t\t\tif (cert instanceof X509Certificate) {\r\n\t\t\t\t\tX509Certificate x509Cert = (X509Certificate) cert;\r\n\t\t\t\t\tString certSerial = x509Cert.getSerialNumber().toString(16);\r\n\r\n\t\t\t\t\tString subjectDN = x509Cert.getSubjectDN().getName();\r\n\t\t\t\t\tString author = \"\";\r\n\t\t\t\t\tLdapName ldap;\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tldap = new LdapName(subjectDN);\r\n\t\t\t\t\t\tfor (Rdn rdn : ldap.getRdns()) {\r\n\t\t\t\t\t\t\tif (\"CN\".equalsIgnoreCase(rdn.getType())) {\r\n\t\t\t\t\t\t\t\tauthor = rdn.getValue().toString();\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} catch (InvalidNameException e) {\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tresult.put(certSerial, author);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (KeyStoreException e) {\r\n\t\t\tthrow new BkavSignaturesException(\"KeyStoreException\", e);\r\n\t\t} catch (NoSuchAlgorithmException e) {\r\n\t\t\tthrow new BkavSignaturesException(\"NoSuchAlgorithmException\", e);\r\n\t\t} catch (CertificateException e) {\r\n\t\t\tthrow new BkavSignaturesException(\"CertificateException\", e);\r\n\t\t} catch (IOException e) {\r\n\t\t\tthrow new BkavSignaturesException(\"IOException\", e);\r\n\t\t}\r\n\r\n\t\treturn result;\r\n\t}",
"ArrayList<ExportedKeyData> generatePublicKeyList();",
"@Override\n public List<String> AllFileFromS3Bucket()\n {\n List<Bucket> buckets= amazonS3.listBuckets();\n List<String> keys = new ArrayList<>();\n \n for (Bucket b :buckets) {\n \t System.out.println(\" **** \" + b.getName());\n \t keys.add(b.getName());\n }\n\treturn keys;\n \n }",
"@java.lang.Override\n public int getSignaturesCount() {\n return signatures_.size();\n }",
"java.util.List<KeyValuePair>\n getInfoList();",
"public ISignature getSignature() {\n return _signature;\n }",
"public String[] getParameters(String signature) {\n StringBuilder sb = new StringBuilder();\n String[] tokens = (signature.split(\"\\\\s\"));\n for (int i = 1; i < tokens.length; i++)\n sb.append(tokens[i]);\n String fullParamString = sb.toString().substring(sb.indexOf(\"(\") + 1, sb.indexOf(\")\"));\n String[] params = getParams(fullParamString);\n return params;\n }",
"public String getSignature() {\n return signature;\n }",
"public String getSignature() {\n return signature;\n }",
"public String getSignature() {\n return signature;\n }",
"public String[] list() {\n\t\tSet<String> fileSet = fileList.keySet();\n\t\tString[] fileListArray = fileSet.toArray(new String[fileList.size()]);\n \treturn fileListArray;\n }",
"public byte[] getSignature() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.security.keystore.DelegatingX509Certificate.getSignature():byte[], dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.security.keystore.DelegatingX509Certificate.getSignature():byte[]\");\n }",
"public PublicKey[] getPostVisibleTo (String sig) {\n Logger.write(\"VERBOSE\", \"DB\", \"getVisibleTo(...)\");\n Vector<PublicKey> keyList = new Vector<PublicKey>();\n \n try {\n ResultSet keyRows = query(DBStrings.getVisibleTo.replace(\"__SIG__\", sig));\n while(keyRows.next())\n keyList.add(Crypto.decodeKey(keyRows.getString(\"key\")));\n } catch (java.sql.SQLException e) {\n Logger.write(\"ERROR\", \"DB\", \"SQLException: \" + e);\n }\n \n return keyList.toArray(new PublicKey[0]);\n }",
"public byte[] generateSignature()\n {\n if (!forSigning)\n {\n throw new IllegalStateException(\"PairingDigestSigner not initialised for signature generation.\");\n }\n\n byte[] hash = new byte[digest.getDigestSize()];\n digest.doFinal(hash, 0);\n\n Element[] sig = pairingSigner.generateSignature(hash);\n\n try {\n return pairingSigner.derEncode(sig);\n } catch (IOException e) {\n throw new IllegalStateException(\"unable to encode signature\");\n }\n }",
"public io.grafeas.v1.SignatureOrBuilder getSignaturesOrBuilder(int index) {\n if (signaturesBuilder_ == null) {\n return signatures_.get(index);\n } else {\n return signaturesBuilder_.getMessageOrBuilder(index);\n }\n }",
"java.util.List<liubaninc.m0.pki.CertificateOuterClass.Certificate> \n getCertificateList();",
"public ArrayList<SignLineElement> getSigners() {\n\t\treturn this.signers;\n\t}",
"public Iterator getSignaturesOfType(\n int signatureType)\n {\n List l = new ArrayList();\n Iterator it = this.getSignatures();\n \n while (it.hasNext())\n {\n PGPSignature sig = (PGPSignature)it.next();\n \n if (sig.getSignatureType() == signatureType)\n {\n l.add(sig);\n }\n }\n \n return l.iterator();\n }",
"public String getSignature() {\n return this.Signature;\n }",
"public String[] list(){\n\t\t\n\t\tSet<String> t = contents.keySet();\n\t\tString s[] = t.toArray(new String[0]);\n\t\treturn s;\n\t}",
"public List<BigInteger> getFeeList() {\n List<BigInteger> nl = Collections.synchronizedList(new ArrayList<>());\n\n this.getFeeView().entrySet().parallelStream().forEach(e -> nl.add(e.getKey()));\n\n return nl.parallelStream().sorted(Collections.reverseOrder()).collect(Collectors.toList());\n }",
"public String getSignature() {\n\t\treturn signature;\n\t}",
"java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> \n getCertificatesList();",
"java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> \n getCertificatesList();",
"public AuthInfo[] getAuthInfoList();",
"public Sig getSignature() {\n return this.sig;\n }",
"String getUniqueSignature();",
"java.lang.String getSignatureText();",
"default String getSignature() {\n StringBuilder sb = new StringBuilder();\n sb.append(getName());\n sb.append(\"(\");\n for (int i = 0; i < getNumberOfParams(); i++) {\n if (i != 0) {\n sb.append(\", \");\n }\n sb.append(getParam(i).describeType());\n }\n sb.append(\")\");\n return sb.toString();\n }",
"public org.apache.calcite.avatica.proto.Common.SignatureOrBuilder getSignatureOrBuilder() {\n if (signatureBuilder_ != null) {\n return signatureBuilder_.getMessageOrBuilder();\n } else {\n return signature_ == null ?\n org.apache.calcite.avatica.proto.Common.Signature.getDefaultInstance() : signature_;\n }\n }",
"public List<MessageDigestType> getMessageDigest();",
"public abstract List<String> getAllKeys();",
"public Iterator getSignaturesForUserAttribute(\n PGPUserAttributeSubpacketVector userAttributes)\n {\n for (int i = 0; i != ids.size(); i++)\n {\n if (userAttributes.equals(ids.get(i)))\n {\n return ((ArrayList)idSigs.get(i)).iterator();\n }\n }\n \n return null;\n }",
"java.util.List<? extends com.yahoo.xpathproto.TransformTestProtos.ContentImageOrBuilder> \n getImagesByTransformOrBuilderList();",
"String componentSignature();",
"public static List getMethodArguments(String methodSignature) {\n return (List) MockPageContext.methodArguments.get(methodSignature);\n }",
"public abstract List<SignResult> signArtifact(Artifact artifact);",
"public byte[] sign() throws XMLSignatureException {\n/* 177 */ return this.signatureAlgorithm.engineSign();\n/* */ }",
"public byte[] getSigAlgParams() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.security.keystore.DelegatingX509Certificate.getSigAlgParams():byte[], dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.security.keystore.DelegatingX509Certificate.getSigAlgParams():byte[]\");\n }",
"public SigningPolicy[] getSigningPolicies() {\n\n if (this.policyDNMap == null) {\n return null;\n }\n\n Collection values = this.policyDNMap.values();\n SigningPolicy[] policies = new SigningPolicy[values.size()];\n Iterator iterator = values.iterator();\n int i = 0;\n while (iterator.hasNext()) {\n policies[i++] = (SigningPolicy)iterator.next();\n }\n return policies;\n }",
"@Override\n\tpublic Set<String> signatureToWords(String signature) {\n\t\tif(dictionary.containsKey(signature));\n\t\t\treturn dictionary.get(signature);\n\t}",
"public List<String> getFileFilters() {\n/* 420 */ List<String> retval = null;\n/* 421 */ COSBase filters = this.stream.getDictionaryObject(COSName.F_FILTER);\n/* 422 */ if (filters instanceof COSName) {\n/* */ \n/* 424 */ COSName name = (COSName)filters;\n/* 425 */ retval = new COSArrayList<String>(name.getName(), (COSBase)name, (COSDictionary)this.stream, COSName.F_FILTER);\n/* */ \n/* */ }\n/* 428 */ else if (filters instanceof COSArray) {\n/* */ \n/* */ \n/* 431 */ retval = COSArrayList.convertCOSNameCOSArrayToList((COSArray)filters);\n/* */ } \n/* 433 */ return retval;\n/* */ }",
"java.util.List<com.yahoo.xpathproto.TransformTestProtos.ContentImage> \n getImagesByTransformList();",
"List<String> getKeys();",
"public void printHashKey(){\n try {\n PackageInfo info = getPackageManager().getPackageInfo(\n \"com.credolabs.justcredo\",\n PackageManager.GET_SIGNATURES);\n for (Signature signature : info.signatures) {\n MessageDigest md = MessageDigest.getInstance(\"SHA\");\n md.update(signature.toByteArray());\n Log.d(\"Credo:\", Base64.encodeToString(md.digest(), Base64.DEFAULT));\n }\n } catch (PackageManager.NameNotFoundException e) {\n\n } catch (NoSuchAlgorithmException e) {\n\n }\n }",
"public Fingerprint[] fingerprints();",
"public List<String> getAllSIDs() {\n\t\tSet<String> r = new HashSet<String>();\n\t\tfor (Set<String> set : grantedPermissions.values())\n\t\t\tr.addAll(set);\n\t\tr.remove(\"anonymous\");\n\n\t\tString[] data = r.toArray(new String[r.size()]);\n\t\tArrays.sort(data);\n\t\treturn Arrays.asList(data);\n\t}",
"public com.google.protobuf.ByteString\n getSignatureBytes() {\n Object ref = signature_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n signature_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getSignatureBytes() {\n Object ref = signature_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n signature_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"@Override\n public com.google.protobuf.ByteString\n getSignatureBytes() {\n Object ref = signature_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n signature_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"@Override\n public com.google.protobuf.ByteString\n getSignatureBytes() {\n Object ref = signature_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n signature_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"@java.lang.Override\n public com.google.protobuf.ByteString getSignature() {\n return instance.getSignature();\n }",
"public HashMap<String, UserSign> getUserSigns(){\n return userSigns;\n }",
"@java.lang.Override\n public com.google.protobuf.ByteString getSignature() {\n return signature_;\n }",
"public io.grafeas.v1.Signature.Builder addSignaturesBuilder() {\n return getSignaturesFieldBuilder().addBuilder(io.grafeas.v1.Signature.getDefaultInstance());\n }",
"java.util.List<message.Figure.FigureData.FigureBase> \n getFigureListList();",
"public java.util.List<KeyValuePair> getInfoList() {\n return info_;\n }",
"public void printHashKey(){\n try {\n PackageInfo info = getPackageManager().getPackageInfo(\"com.lostfind\", PackageManager.GET_SIGNATURES);\n for (Signature signature : info.signatures) {\n MessageDigest md = MessageDigest.getInstance(\"SHA\");\n md.update(signature.toByteArray());\n Log.d(\"KeyHash:\", \"KEYHASH::::\"+Base64.encodeToString(md.digest(), Base64.DEFAULT));\n }\n } catch (PackageManager.NameNotFoundException e) {\n e.printStackTrace();\n\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n }",
"java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList();",
"java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList();"
] | [
"0.7390193",
"0.7356763",
"0.7355693",
"0.7036505",
"0.6923821",
"0.68533933",
"0.6846196",
"0.68434894",
"0.6519665",
"0.6516306",
"0.648621",
"0.6388254",
"0.6358013",
"0.6333474",
"0.6333474",
"0.6333474",
"0.6320677",
"0.62306416",
"0.6230521",
"0.61849344",
"0.6134029",
"0.6105131",
"0.6097058",
"0.608605",
"0.60570514",
"0.6039377",
"0.6009377",
"0.6009377",
"0.5982154",
"0.5928553",
"0.59201676",
"0.590976",
"0.590598",
"0.5894718",
"0.58791274",
"0.5868214",
"0.5855611",
"0.58476746",
"0.5839785",
"0.5836249",
"0.5811353",
"0.5804489",
"0.57985765",
"0.57884735",
"0.5783282",
"0.5758585",
"0.5752564",
"0.5737455",
"0.5737455",
"0.5737455",
"0.5735295",
"0.57049066",
"0.5703339",
"0.56874496",
"0.5676221",
"0.56640434",
"0.565477",
"0.5641745",
"0.5635222",
"0.5593875",
"0.5583805",
"0.5580361",
"0.5576744",
"0.5576744",
"0.5551727",
"0.5546036",
"0.5543392",
"0.55418825",
"0.5537119",
"0.5536755",
"0.5534148",
"0.55144954",
"0.5508294",
"0.5499499",
"0.5490585",
"0.54888093",
"0.54675734",
"0.5466333",
"0.5451249",
"0.5436239",
"0.5416249",
"0.541428",
"0.5411447",
"0.54057455",
"0.5401985",
"0.5396121",
"0.5388948",
"0.53698397",
"0.53698397",
"0.5368192",
"0.5368192",
"0.5358769",
"0.5356452",
"0.5356153",
"0.5355613",
"0.53527325",
"0.53496045",
"0.5344956",
"0.5324501",
"0.5324501"
] | 0.5950549 | 29 |
find signature+ by id | public TemplateSignature getSignatureById(Long idSignature)
{
TemplateSignatureDAO dao = new TemplateSignatureDAO();
TemplateSignature sign = dao.getById(idSignature);
return sign;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Iterator getSignaturesForID(\n String id)\n {\n for (int i = 0; i != ids.size(); i++)\n {\n if (id.equals(ids.get(i)))\n {\n return ((ArrayList)idSigs.get(i)).iterator();\n }\n }\n \n return null;\n }",
"SignatureIdentification createSignatureIdentification();",
"int getSignature ();",
"public UserSign getUserSign(String id){\n return userSigns.get(id);\n }",
"Signature getSignature();",
"String getSignature();",
"String getSignature();",
"String getSignature();",
"org.apache.calcite.avatica.proto.Common.Signature getSignature();",
"BigInteger getDigitalSignature();",
"public abstract byte[] getSignature();",
"IrpSignInfo selectByPrimaryKey(Long signinfoid) throws SQLException;",
"public abstract String getSignature();",
"java.lang.String getSignatureProviderId();",
"String getUniqueSignature();",
"String getSnapshot_id();",
"byte[] getSignatureImage();",
"native String nativeGetSignature(long nativeHandler) throws RuntimeException;",
"public boolean verifyXMLSignature(Document doc,\n java.lang.String idAttrName, \n java.lang.String certAlias)\n throws XMLSignatureException {\n try {\n Element nscontext = com.sun.org.apache.xml.internal.security.utils.\n XMLUtils.createDSctx(doc,\"ds\",Constants.SignatureSpecNS);\n Element sigElement = (Element) XPathAPI.selectSingleNode(doc,\n \"//ds:Signature[1]\", nscontext);\n XMLSignature signature = new XMLSignature(sigElement, \"\");\n signature.addResourceResolver(\n new com.sun.identity.saml.xmlsig.OfflineResolver());\n //comment the below code, need future clean-up\n /* if (!idAttrName.equals(DEF_ID_ATTRIBUTE)) {\n \t\t// TODO : this only work when doc is the element which \n \t\t// reference URI pointed to. Need more work, possible\n \t\t// solution is have a customized ResouceResolver\n \t\tElement root = doc.getDocumentElement();\n \t\tString id = root.getAttribute(idAttrName);\n \t\t// register the id for the elment, so it could be found\n \t\t// by Reference object based on URI\n \t\tif (id != null && !id.length() == 0) { \n \t\t IdResolver.registerElementById(root, id);\n \t\t}\n \t }\n */\n String idValue = doc.getDocumentElement().getAttribute(idAttrName); \n Element root = (Element) XPathAPI.selectSingleNode( \n doc, \"//*[@\" + idAttrName + \"=\\\"\" + idValue + \"\\\"]\");\n \n if (root == null) { \n SAMLUtilsCommon.debug.error(\"verifyXML: \" +\n \"could not resolv id attribute\");\n throw new XMLSignatureException( \n SAMLUtilsCommon.bundle.getString(\"invalidIDAttribute\")); \n }\n String[] attrs = {\"AssertionID\", \"RequestID\", \"ResponseID\"}; \n for ( int j = 0; j < attrs.length; j++) {\n NodeList aList = (NodeList) XPathAPI.selectNodeList( \n doc, \"//*[@\" + attrs[j]+\"]\");\n if (aList != null && aList.getLength() != 0) {\n int len = aList.getLength();\n if (SAMLUtilsCommon.debug.messageEnabled()) {\n SAMLUtilsCommon.debug.message (\"found \"+ attrs[j] +\n \"=\" + len); \n }\n \n for (int i = 0; i < len; i++) {\n Element elem = (Element) aList.item(i);\n String id = elem.getAttribute(attrs[j]);\n if (id != null && id.length() != 0) {\n if (SAMLUtilsCommon.debug.messageEnabled()) {\n SAMLUtilsCommon.debug.message (\"found \"+\n attrs[j]+ \"=\" + id + \" elment=\" +\n XMLUtils.print(elem));\n }\n IdResolver.registerElementById(elem, id);\n }\n }\n }\n }\n KeyInfo ki = signature.getKeyInfo();\n PublicKey pk = this.getX509PublicKey(doc, ki);\n if (pk!=null) {\n // verify using public key\n if (signature.checkSignatureValue (pk)) {\n return true;\n } else {\n return false;\n }\n } else {\n if (certAlias == null || certAlias.length() == 0) {\n return false; \n }\n if (SAMLUtilsCommon.debug.messageEnabled()) {\n SAMLUtilsCommon.debug.message(\"Could not find a KeyInfo, \"\n + \"try to use certAlias\");\n }\n X509Certificate newcert= \n keystore.getX509Certificate(certAlias);\n if (newcert != null) { \n if (signature.checkSignatureValue(newcert)) { \n return true; \n } else {\n return false;\n }\n } else {\n PublicKey key = keystore.getPublicKey(certAlias); \n if (key != null) {\n if (signature.checkSignatureValue(key)) {\n return true; \n } else {\n return false;\n }\n } else {\n SAMLUtilsCommon.debug.error(\"Could not find \" +\n \"public key based on certAlias to verify\" +\n \" signature\");\n return false; \n }\n } \n }\n } catch (Exception ex) {\n SAMLUtilsCommon.debug.error(\"verifyXMLSignature Exception: \", ex);\n throw new XMLSignatureException(ex.getMessage());\n }\n }",
"public void printHashKey(){\n try {\n PackageInfo info = getPackageManager().getPackageInfo(\n \"com.credolabs.justcredo\",\n PackageManager.GET_SIGNATURES);\n for (Signature signature : info.signatures) {\n MessageDigest md = MessageDigest.getInstance(\"SHA\");\n md.update(signature.toByteArray());\n Log.d(\"Credo:\", Base64.encodeToString(md.digest(), Base64.DEFAULT));\n }\n } catch (PackageManager.NameNotFoundException e) {\n\n } catch (NoSuchAlgorithmException e) {\n\n }\n }",
"public org.w3c.dom.Element signXML(org.w3c.dom.Document doc,\n java.lang.String certAlias,\n java.lang.String algorithm,\n java.lang.String idAttrName,\n java.lang.String id,\n boolean includeCert,\n \t\t\t\t java.lang.String xpath)\n throws XMLSignatureException {\n if (doc == null) { \n SAMLUtilsCommon.debug.error(\"signXML: doc is null.\"); \n throw new XMLSignatureException( \n SAMLUtilsCommon.bundle.getString(\"nullInput\")); \n } \n \n if (certAlias == null || certAlias.length() == 0) { \n SAMLUtilsCommon.debug.error(\"signXML: certAlias is null.\"); \n throw new XMLSignatureException( \n SAMLUtilsCommon.bundle.getString(\"nullInput\"));\n } \n org.w3c.dom.Element root = null; \n XMLSignature sig = null; \n try { \n Constants.setSignatureSpecNSprefix(\"\"); \n PrivateKey privateKey = \n (PrivateKey) keystore.getPrivateKey(certAlias);\n if (privateKey == null) { \n SAMLUtilsCommon.debug.error(\"private key is null\"); \n throw new XMLSignatureException( \n SAMLUtilsCommon.bundle.getString(\"nullprivatekey\")); \n } \n root = (Element) XPathAPI.selectSingleNode( \n doc, \"//*[@\" + idAttrName + \"=\\\"\" + id + \"\\\"]\");\n \n if (root == null) { \n SAMLUtilsCommon.debug.error(\"signXML: could not\" \n + \" resolv id attribute\");\n throw new XMLSignatureException( \n SAMLUtilsCommon.bundle.getString(\"invalidIDAttribute\")); \n }\n \n // add to IdResolver for idAttrName is not \"id\" case. \n if (!id.equals(this.DEF_ID_ATTRIBUTE)) {\n IdResolver.registerElementById(root, id); \n }\n if (algorithm == null || algorithm.length() == 0) { \n algorithm = getKeyAlgorithm(privateKey); ; \n } \n if (!isValidAlgorithm(algorithm)) { \n throw new XMLSignatureException( \n SAMLUtilsCommon.bundle.getString(\"invalidalgorithm\")); \n } \n sig = new XMLSignature(doc, \"\", algorithm, \n Canonicalizer.ALGO_ID_C14N_EXCL_OMIT_COMMENTS); \n \t if(xpath == null) {\n root.appendChild(sig.getElement()); \n \t } else {\n \t\tNode beforeNode = XPathAPI.selectSingleNode(doc, xpath);\n \t\troot.insertBefore(sig.getElement(), beforeNode);\n \t }\n sig.getSignedInfo().addResourceResolver( \n new com.sun.identity.saml.xmlsig.OfflineResolver()); \n // register the id for the elment, so it could be found\n // by Reference object based on URI\n if (!idAttrName.equals(DEF_ID_ATTRIBUTE)) {\n IdResolver.registerElementById(root, id);\n }\n // do transform \n Transforms transforms = new Transforms(doc); \n transforms.addTransform(Transforms.TRANSFORM_ENVELOPED_SIGNATURE); \n transforms.addTransform(\n \t\t\t\tTransforms.TRANSFORM_C14N_EXCL_OMIT_COMMENTS);\n String ref = \"#\" + id; \n sig.addDocument(ref, transforms, Constants.ALGO_ID_DIGEST_SHA1);\n if (includeCert) {\n X509Certificate cert =\n (X509Certificate) keystore.getX509Certificate(certAlias);\n sig.addKeyInfo(cert);\n }\n sig.sign(privateKey); \n } catch (Exception e) { \n \t SAMLUtilsCommon.debug.error(\"signXML Exception: \", e);\n throw new XMLSignatureException(e.getMessage()); \n } \n return (sig.getElement()); \n }",
"public SfJdDocAudit selectByPrimaryKey(BigDecimal id, RequestMeta requestMeta) {\n SfJdDocAudit rtn=jdDocAuditMapper.selectByPrimaryKey(id);\r\n if(rtn==null)return null;\r\n SfEntrust e=sfEntrustService.selectByPrimaryKey(rtn.getEntrustId(), requestMeta);\r\n if(e!=null){\r\n rtn.setEntrust(e);\r\n } \r\n SfJdReport report=(SfJdReport)zcEbBaseService.queryObject(\"com.ufgov.zc.server.sf.dao.SfJdReportMapper.selectByEntrustId\", rtn.getEntrustId());\r\n// SfJdReport report=sfJdReportService.selectByPrimaryKey(id, requestMeta)\r\n rtn.setReport(report==null?new SfJdReport():report);\r\n rtn.setDetailLst(jdDocAuditDetailMapper.selectByPrimaryKey(id));\r\n List mlst=materialsTransferDetailMapper.selectByPrimaryKey(id);\r\n rtn.setMaterialLst(mlst==null?new ArrayList():mlst);\r\n rtn.setDbDigest(rtn.digest());\r\n return rtn;\r\n }",
"long getPhotoIdBySub(long subId, int sdnFlag);",
"@Override\r\n\tpublic SmsSignBean findByid(int id) {\n\t\treturn sqlSessionTemplate.selectOne(NAMESPACE+\"querySmsSignById\", id);\r\n\t}",
"java.lang.String getSignatureText();",
"public void printHashKey(){\n try {\n PackageInfo info = getPackageManager().getPackageInfo(\"com.lostfind\", PackageManager.GET_SIGNATURES);\n for (Signature signature : info.signatures) {\n MessageDigest md = MessageDigest.getInstance(\"SHA\");\n md.update(signature.toByteArray());\n Log.d(\"KeyHash:\", \"KEYHASH::::\"+Base64.encodeToString(md.digest(), Base64.DEFAULT));\n }\n } catch (PackageManager.NameNotFoundException e) {\n e.printStackTrace();\n\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n }",
"public interface SignatureObject {\n}",
"private void getHashKey(){\n try {\n PackageInfo info = getPackageManager().getPackageInfo(getString(R.string.app_package_name), PackageManager.GET_SIGNATURES);\n\n for (Signature signature : info.signatures)\n {\n try {\n MessageDigest md = MessageDigest.getInstance(\"SHA\");\n\n md.update(signature.toByteArray());\n Log.d(\"KeyHash:\", Base64.encodeToString(md.digest(), Base64.DEFAULT));\n } catch (NoSuchAlgorithmException nsa)\n {\n Log.d(\"exception\" , \"No algorithmn\");\n Assert.assertTrue(false);\n }\n }\n } catch (PackageManager.NameNotFoundException nnfe)\n {\n Log.d(\"exception\" , \"Name not found\");\n Assert.assertNull(\"Name not found\", nnfe);\n }\n }",
"public void valSig (String fileName) {\n javax.xml.parsers.DocumentBuilderFactory dbf =\n javax.xml.parsers.DocumentBuilderFactory.newInstance();\n dbf.setNamespaceAware(true);\n javax.xml.parsers.DocumentBuilder db = null;\n\n System.out.println(\"\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\");\n\n try {\n db = dbf.newDocumentBuilder();\n } catch (ParserConfigurationException e) {\n e.printStackTrace();\n }\n try {\n Document doc =\n db.parse(new FileInputStream(fileName));\n\n XPathFactory xpf = XPathFactory.newInstance();\n XPath xpath = xpf.newXPath();\n xpath.setNamespaceContext(new DSNamespaceContext());\n String expression = \"//ds:Signature[1]\";\n Element sigElement =\n (Element) xpath.evaluate(expression, doc, XPathConstants.NODE);\n\n XMLSignature signature =\n new XMLSignature(sigElement, (new File(fileName)).toURI().toURL().toString());\n\n String expressionBody = \"//soapenv:Body\";\n Element bodyElement =\n (Element) xpath.evaluate(expressionBody, doc, XPathConstants.NODE);\n\n Attr id = bodyElement.getAttributeNode(\"Id\") ;\n IdResolver.registerElementById(bodyElement,id);\n //signature.addResourceResolver(new OfflineResolver());\n\n KeyInfo ki = signature.getKeyInfo();\n System.out.println(\"================================signature.getSignatureValue()================================\");\n\n String svStr = new String(signature.getSignatureValue());\n System.out.println(svStr);\n System.out.println(\"================================signature.getSignatureValue()================================\");\n\n if (ki != null) {\n if (ki.containsX509Data()) {\n System.out.println(\"Could find a X509Data element in the KeyInfo\");\n }\n X509Certificate cert = signature.getKeyInfo().getX509Certificate();\n if (cert != null) {\n System.out.println(\"The XML signature in file \"\n // + f.toURI().toURL().toString() + \" is \"\n + (signature.checkSignatureValue(cert)\n ? \"valid (good)\" : \"invalid !!!!! (bad)\"));\n } else {\n System.out.println(\"Did not find a Certificate\");\n PublicKey pk = signature.getKeyInfo().getPublicKey();\n if (pk != null) {\n System.out.println(\"The XML signature in file \"\n // + f.toURI().toURL().toString() + \" is \"\n + (signature.checkSignatureValue(pk)\n ? \"valid (good)\" : \"invalid !!!!! (bad)\"));\n } else {\n System.out.println(\n \"Did not find a public key, so I can't check the signature\");\n }\n }\n } else {\n System.out.println(\"Did not find a KeyInfo\");\n }\n\n\n\n\n\n } catch (SAXException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } catch (XPathExpressionException e) {\n e.printStackTrace();\n } catch (XMLSignatureException e) {\n e.printStackTrace();\n } catch (XMLSecurityException e) {\n e.printStackTrace();\n }\n\n }",
"public String selectPKAuthKeys(int id) throws SQLException {\n String sql = \"SELECT publickey FROM authenticatedkeys WHERE id_user=?\";\n\n try (Connection conn = this.connect(); PreparedStatement pstmt = conn.prepareStatement(sql)) {\n \n pstmt.setInt(1, id);\n ResultSet rs = pstmt.executeQuery();\n String value = rs.getString(\"publickey\");\n\n return value;\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n return \"\";\n }\n }",
"org.apache.calcite.avatica.proto.Common.SignatureOrBuilder getSignatureOrBuilder();",
"com.google.protobuf.ByteString getSignature();",
"int getSignatureProviderDetails();",
"SignatureSpi(com.android.org.bouncycastle.crypto.Digest r1, com.android.org.bouncycastle.crypto.DSA r2, com.android.org.bouncycastle.jcajce.provider.asymmetric.util.DSAEncoder r3) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: com.android.org.bouncycastle.jcajce.provider.asymmetric.ec.SignatureSpi.<init>(com.android.org.bouncycastle.crypto.Digest, com.android.org.bouncycastle.crypto.DSA, com.android.org.bouncycastle.jcajce.provider.asymmetric.util.DSAEncoder):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.jcajce.provider.asymmetric.ec.SignatureSpi.<init>(com.android.org.bouncycastle.crypto.Digest, com.android.org.bouncycastle.crypto.DSA, com.android.org.bouncycastle.jcajce.provider.asymmetric.util.DSAEncoder):void\");\n }",
"public static Instance findObject(@NonNull Snapshot snapshot, String id) {\n long id2 = Long.parseLong(id, 16);\n\n return snapshot.findInstance(id2);\n }",
"public SfEntrustor selectByPrimaryKey(BigDecimal id, RequestMeta requestMeta) {\n return entrustorService.selectByPrimaryKey(id, requestMeta);\r\n }",
"@Override\r\n\tpublic String getSign(String data, String id, String struc) {\n\t\treturn null;\r\n\t}",
"@Override\n public byte[] getRSAKeyById(String id) throws IOException, DecoderException {\n // TODO: bring that back after LocalEGA key server becomes able to register itself against Eureka\n // ResponseEntity<Resource> responseEntity =\n // restTemplate.getForEntity(keyServiceURL + \"/temp/rsa/\" + id, Resource.class);\n\n String rawKey = IOUtils.toString(new URL(keyServiceURL + \"/temp/rsa/\" + id).openStream(), Charset.defaultCharset());\n System.out.println(\"DEBUG getRSAKey: rawKey=\" + rawKey);\n String privateKey = String.valueOf(rawKey);\n byte[] privateKeyBytes = Hex.decodeHex(privateKey.toCharArray());\n try (PemReader pemReader = new PemReader(new InputStreamReader(new ByteArrayInputStream(privateKeyBytes)))) {\n return pemReader.readPemObject().getContent();\n }\n }",
"private Optional<Payments> findPaymentById(Integer id) {\n return paymentsList.stream()\n .filter(payment -> payment.getId().equals(id))\n .findAny();\n }",
"public abstract String getSigAlgOID();",
"int getSignatureType();",
"org.apache.xmlbeans.XmlInt xgetSignatureProviderDetails();",
"@Override\n\tpublic Artist findByKey(Integer id) {\n\t\treturn null;\n\t}",
"NjOrderAttachment selectByPrimaryKey(String id);",
"public String GetDocumentTransactionID (int fileID);",
"org.apache.xmlbeans.XmlBase64Binary xgetSignatureImage();",
"public static native String getSignature(long[] msgArgs);",
"com.microsoft.schemas.office.x2006.digsig.STUniqueIdentifierWithBraces xgetSignatureProviderId();",
"Online selectByPrimaryKey(String hash);",
"public interface IVerifySignatureService {\n\n\t/**\n\t * Document which contains signature internally\n\t * \n\t * @param document : document to be verified\n\t * @return : verification result status and the Token file encoded by base64\n\t */\n\tEntry<StatusType, String> verifyInternalSignature(final Document document);\n\n\t/**\n\t * Document to be verified with its external signature\n\t * \n\t * @param document : document to be verified\n\t * @param signature : its signature file\n\t * @return\n\t */\n\tEntry<StatusType, String> verifyExternalSignature(Document document, Document signature);\n}",
"public static PGPPublicKey removeCertification(\n PGPPublicKey key,\n String id)\n {\n PGPPublicKey returnKey = new PGPPublicKey(key);\n Iterator idIt = returnKey.getUserIDs();\n ArrayList sigList = null;\n boolean found = false;\n \n for (int i = 0; i < returnKey.ids.size(); i++)\n {\n if (id.equals(returnKey.ids.get(i)))\n {\n found = true;\n returnKey.ids.remove(i);\n returnKey.idTrusts.remove(i);\n returnKey.idSigs.remove(i);\n }\n }\n \n if (!found)\n {\n return null;\n }\n \n return returnKey;\n }",
"RecordLike selectByPrimaryKey(String id);",
"public static ArrayList<Point> extraction(String ID, PublicParameter pp)\n\t\t\tthrows NoSuchAlgorithmException {\n\t\tRandom rnd = new Random();\n\t\tBigInt r;\n\n\t\tdo {\n\t\t\tr = new BigInt(pp.getqBB().bitLength(), rnd);\n\t\t} while (r.subtract(pp.getqBB()).signum() == -1);\n\n\t\tBigInt H_ID = derivation(ID, pp);\n\t\t// System.out.println(\"Extraction Hid: \"+H_ID.toString(16));\n\n\t\tBigInt y = secret.get(0).multiply(secret.get(1)).mod(pp.getqBB());\n\t\tBigInt y_temp = secret.get(0).multiply(H_ID).mod(pp.getqBB());\n\t\ty_temp = y_temp.add(secret.get(2));\n\t\ty_temp = y_temp.multiply(r).mod(pp.getqBB());\n\t\ty = (y.add(y_temp)).mod(pp.getqBB());\n\n\t\tPoint D_0 = pp.sstateBB.getCurve2().multiply(pp.getPointBB2(), y);\n\t\t// System.out.println(\"D_O is on curve : \" +\n\t\t// pp.sstateBB.getCurve2().isOnCurve(D_0));\n\t\tPoint D_1 = pp.sstateBB.getCurve2().multiply(pp.getPointBB2(), r);\n\t\t// System.out.println(\"D_1 is on curve : \" +\n\t\t// pp.sstateBB.getCurve2().isOnCurve(D_1));\n\n\t\tArrayList<Point> privateKey = new ArrayList<Point>();\n\t\tprivateKey.add(D_0);\n\t\tprivateKey.add(D_1);\n\t\treturn privateKey;\n\t}",
"byte[] get(byte[] id) throws RemoteException;",
"@PostAuthorize(\"hasPermission(returnObject, 'read') or hasPermission(returnObject, 'administration') \")\n public File findById(long id) {\n Optional<File> file = fileRepository.findById(id);\n return file.orElse(null);\n }",
"DocumentData getPreviewSign(String documentId,\n String filename) throws IOException;",
"@Override\r\n\tpublic void find(Integer id) {\n\r\n\t}",
"@Override\n\tpublic int deleteFromLicenseFileSignByPrimaryKey(Integer id) {\n\t\treturn licenseFileSignMapper.deleteByPrimaryKey(id);\n\t}",
"public EscherRecord findFirstWithId(short id) {\n \treturn findFirstWithId(id, getEscherRecords());\n }",
"SignatureSource createSignatureSource();",
"List<Tag> findCertificateTags(int id);",
"Procdef selectByPrimaryKey(String id);",
"PdfCodeTemporary selectByPrimaryKey(Integer id);",
"public String getSignature()\r\n {\r\n return signature;\r\n }",
"EhrPersonFile selectByPrimaryKey(Long id);",
"byte[] getId();",
"private int find(int[] roots , int id){\n\n if (roots[id] == id) return id;\n roots[id] = find(roots, roots[id]);\n return roots[id];\n }",
"com.microsoft.schemas.office.x2006.digsig.STSignatureText xgetSignatureText();",
"PrescriptionVerifyRecordDetail selectByPrimaryKey(String id);",
"public Optional<VirtualFile> getAnyFileById(String id) {\n Stream<VirtualFile> files = Stream.concat(Stream.concat(public_files.stream(), resource_files.stream()), Stream.concat(solution_files.stream(), private_files.stream()));\n return files.filter(file -> file.getId().equals(id)).findFirst();\n }",
"boolean hasSignature();",
"boolean hasSignature();",
"public byte[] getSignature() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.security.keystore.DelegatingX509Certificate.getSignature():byte[], dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.security.keystore.DelegatingX509Certificate.getSignature():byte[]\");\n }",
"Entry<StatusType, String> verifyExternalSignature(Document document, Document signature);",
"public IProgramElement findElementForSignature(IProgramElement parent, IProgramElement.Kind kind, String signature) {\n\t\tfor (IProgramElement node : parent.getChildren()) {\n\t\t\tif (node.getKind() == kind && signature.equals(node.toSignatureString())) {\n\t\t\t\treturn node;\n\t\t\t} else {\n\t\t\t\tIProgramElement childSearch = findElementForSignature(node, kind, signature);\n\t\t\t\tif (childSearch != null) {\n\t\t\t\t\treturn childSearch;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public boolean verifySignature(OpenIDToken idToken, String jwksResponse) {\n boolean verificationStatus = false;\n try {\n JWKSet jwkSet = JWKSet.parse(jwksResponse);\n JWSHeader jwsHeader = idToken.getSignedJWT().getHeader();\n if (jwkSet != null) {\n List<JWK> matchingJWKs = new JWKSelector(new JWKMatcher.Builder()\n .keyID(jwsHeader.getKeyID())\n .algorithm(jwsHeader.getAlgorithm())\n .build())\n .select(jwkSet);\n OMLog.trace(TAG, \"Found \" + matchingJWKs.size() + \" matching JWKs\");\n\n JWSVerifierFactory jwsVerifierFactory = new DefaultJWSVerifierFactory();\n for (JWK jwk : matchingJWKs) {\n try {\n Key key = null;\n if (jwk instanceof RSAKey) {\n key = ((RSAKey) jwk).toRSAPublicKey();\n } else if (jwk instanceof ECKey) {\n key = ((ECKey) jwk).toECPublicKey();\n }\n if (key != null) {\n JWSVerifier jwsVerifier = jwsVerifierFactory.createJWSVerifier(jwsHeader, key);\n verificationStatus = idToken.getSignedJWT().verify(jwsVerifier);\n if (verificationStatus) {\n idToken.setVerified(true);\n break;\n }\n }\n } catch (JOSEException e) {\n OMLog.error(TAG, e.getMessage(), e);\n }\n }\n }\n } catch (ParseException e) {\n Log.e(TAG, e.getMessage(), e);\n }\n return verificationStatus;\n }",
"private int searchId(String id){\n\t\tint index = -1; // -1(존재안함)\n\t\t\n\t\tfor(int i = 0; i < list.size(); i++){\n\t\t\tif(id.equals(list.get(i).getId())){\n\t\t\t\t//stu = list.get(i);\n\t\t\t\tindex = i;\n\t\t\t}\n\t\t}\t\t\t\t\n\t\treturn index;\n\t}",
"String getSecId();",
"public ISignature getSignature() {\n return _signature;\n }",
"public SegmentRefOrGroup get(Set<SegmentRefOrGroup> structure, String id){\n \treturn structure.stream().filter(x -> x.getId().equals(id)).findFirst().orElse(null);\n }",
"public String selectPKUser(int id) {\n String sql = \"SELECT publickey FROM users WHERE id = ?\";\n\n try (Connection conn = this.connect(); PreparedStatement pstmt = conn.prepareStatement(sql)) {\n pstmt.setInt(1, id);\n ResultSet rs = pstmt.executeQuery();\n String value = rs.getString(\"publickey\");\n return value;\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n return \"\";\n }\n }",
"public SaleReturnVO SRFindByID(String id) {\n\t\treturn saleReturn.find(id);\r\n\t}",
"private void filter(IdentifierRecord id) {\n IdentifierRecord record = idMap.get(id.getInternalId());\n if (record != null) {\n int compare =\n HashConverter.getSha1(id.getId()).compareTo(HashConverter.getSha1(record.getId()));\n if (compare < 0) {\n incMetrics(IDENTICAL_GBIF_OBJECTS_COUNT);\n idMap.put(id.getInternalId(), id);\n idInvalidMap.put(record.getId(), record);\n } else {\n incMetrics(DUPLICATE_GBIF_IDS_COUNT);\n idInvalidMap.put(id.getId(), id);\n }\n log.error(\n \"GBIF ID collision, gbifId - {}, occurrenceId - {}\", id.getInternalId(), id.getId());\n } else {\n incMetrics(UNIQUE_GBIF_IDS_COUNT);\n idMap.put(id.getInternalId(), id);\n }\n }",
"ISModifySignature createISModifySignature();",
"@Override\n\tpublic Document findPropisById(String docId) throws JAXBException, FileNotFoundException {\n\t\tDatabaseClient client = DatabaseClientFactory.newClient(\"147.91.177.194\", 8000, \"Tim37\", \"tim37\", \"tim37\",\n\t\t\t\tAuthentication.valueOf(\"DIGEST\"));\n\n\t\tXMLDocumentManager xmlManager = client.newXMLDocumentManager();\n\n\t\t// A handle to receive the document's content.\n\t\tDOMHandle content = new DOMHandle();\n\t\tString nazivDoc = docId.replaceAll(\"\\\\s\", \"\") + \".xml\";\n\t\tDocumentMetadataHandle metadata = new DocumentMetadataHandle();\n\t\txmlManager.read(nazivDoc, metadata, content);\n\t\tDocument doc = content.get();\n\n\t\t// Pozivi metoda za dekripciju\n\t\tSecurity.addProvider(new BouncyCastleProvider());\n\t\torg.apache.xml.security.Init.init();\n\n\t//\tPrivateKey pk = readPrivateKey(\"data\\\\sertifikati\\\\iasgns.jks\", \"iasgns\", \"iasgns\");\n\t//\tdoc = decryptXml(doc, pk);\n\t\t\n\n\t\treturn doc;\n\t}",
"static Item search(long sum) {\n int i = hash(sum);\n while (st[i] != null) {\n if (st[i].sum == sum) return st[i];\n i++;\n if (i >= st.length) i -= st.length;\n }\n return null;\n }",
"@Test\n\tpublic void findById() {\n\t\tICallsService iCallsService = new CallsServiceImpl(new ArrayList<>());\n\t\tiCallsService.addCallReceived(new Call(1l));\n\t\tAssert.assertTrue(1l == iCallsService.findById(1l).getId().longValue());\n\t}",
"TbSnapshot selectByPrimaryKey(Integer id);",
"Payment find(int paymentID);",
"com.google.protobuf.ByteString getArtifactSignature();",
"public Singer find(int singerId);",
"String galleryItemIdentity();",
"Object getPrimaryKey(Object metadataID);",
"public String getVertexSignature(int vertexId){\n \t this.generateVertexSignatures();\n \t return this.vertexSignatures.get(vertexId);\n \t}",
"public E findById(Serializable pk) ;",
"protected int find(int id) \n\t{\n\t //Check the current pair is the root of the tree\n if (parents[id] == id)\n {\n //Return the id of the current pair as if it is its own parent\n return id;\n }\n \n //Set the parent of the current pair to the parent of its parent\n int res = find(parents[id]);\n parents[id] = res;\n \n //Return the root of the tree\n\t\treturn res;\n\t}",
"public org.w3c.dom.Element signXML(org.w3c.dom.Document doc,\n java.lang.String certAlias,\n java.lang.String algorithm,\n java.lang.String id,\n \t\t\t\t java.lang.String xpath)\n throws XMLSignatureException {\n return signXML(doc, certAlias, algorithm, DEF_ID_ATTRIBUTE,\n \t\t\t\t\tid, false, xpath);\n }",
"public Cursor getPayEntry(String id) {\n\t\tString countQuery = \"SELECT * FROM \" + DATABASE_TABLE3 +\" WHERE \"+Sales_Id+\" = \"+id;\n\n\t Cursor cursor = ourDatabase.rawQuery(countQuery, null);\n\t \n\t\treturn cursor;\n\t\n\t}",
"Receta getByIdWithImages(long id);",
"mailIdentify selectByPrimaryKey(Integer id);"
] | [
"0.6637399",
"0.6117336",
"0.5962886",
"0.59329426",
"0.5922012",
"0.57849824",
"0.57849824",
"0.57849824",
"0.57539475",
"0.5669079",
"0.56502074",
"0.55997",
"0.55955946",
"0.5584131",
"0.55366623",
"0.55300295",
"0.54891014",
"0.5424963",
"0.5394183",
"0.5336008",
"0.5303253",
"0.5301101",
"0.52839303",
"0.5282348",
"0.52559865",
"0.5221274",
"0.521085",
"0.5191882",
"0.5183635",
"0.5171313",
"0.5157125",
"0.5150156",
"0.5132227",
"0.51312137",
"0.51295227",
"0.5112595",
"0.5094315",
"0.5085032",
"0.5076408",
"0.50743806",
"0.50083125",
"0.5002116",
"0.499681",
"0.49957058",
"0.49954814",
"0.49684012",
"0.4966125",
"0.49614775",
"0.49432907",
"0.49320096",
"0.49301457",
"0.49198642",
"0.49186844",
"0.491755",
"0.4915141",
"0.4901578",
"0.4900113",
"0.4895994",
"0.489485",
"0.48905343",
"0.48873928",
"0.488438",
"0.48791832",
"0.4878458",
"0.4869974",
"0.48684022",
"0.48641235",
"0.48565143",
"0.4851947",
"0.48427904",
"0.4833845",
"0.4833845",
"0.48289555",
"0.4824018",
"0.4816213",
"0.4815876",
"0.48136872",
"0.4809142",
"0.480581",
"0.48056182",
"0.48018628",
"0.48015305",
"0.48011056",
"0.47989836",
"0.47909796",
"0.4786152",
"0.47848406",
"0.47821623",
"0.47794813",
"0.47786126",
"0.47744417",
"0.47712195",
"0.47687697",
"0.47674572",
"0.47666696",
"0.47650412",
"0.476336",
"0.47632182",
"0.47598535",
"0.4757641"
] | 0.6008856 | 2 |
Methods Group Signature Save list Group Signature of template | public boolean saveGroupSingTemplate(Template template, ArrayList<TemplateGroupSignature> groupList)
{
TemplateGroupSignatureDAO dao = new TemplateGroupSignatureDAO();
for (TemplateGroupSignature item:groupList)
{
item.setTemplateId(template);
dao.saveNew(item);
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean saveSingsTemplateDocX(TemplateGroupSignature group,ArrayList<TemplateSignature> singList) \n\t{\n\t\ttry\n\t\t{\n\t\t\tTemplateSignatureDAO dao = new TemplateSignatureDAO();\n\t\t\t\n\t\t\tfor (TemplateSignature item:singList)\n\t\t\t{\n\t\t\t\t//item.setSignatureGroupTemplateId(group);\t\t\t\n\t\t\t\tdao.saveNew(item);\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\treturn true;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tloggerSingle.error(e.getMessage());\n\t\t}\n\t\t\n\t\treturn false;\n\t}",
"public TemplateGroupSignature saveGroupSingTemplate(Template template, TemplateGroupSignature group)\n\t{\n\t\tTemplateGroupSignatureDAO dao = new TemplateGroupSignatureDAO();\n\t\tgroup = dao.saveNew(group);\t\n\t\treturn group; \n\t}",
"public Collection<TemplateSignature> getSignatureTemplateList(Long idGroupSignatureTemplate)\n\t{\n\t\tTemplateSignatureDAO dao = new TemplateSignatureDAO();\n\t\t\n\t\tTemplateGroupSignature group = new TemplateGroupSignature();\n\t\tgroup.setId(idGroupSignatureTemplate);\n\t\t\n\t\tCollection<TemplateSignature> responseList = dao.getAllFields(group);\n\t\tloggerSingle.info(\"num signature group \"+idGroupSignatureTemplate+\": \"+responseList.size());\n\t\treturn responseList;\n\t}",
"public ArrayList<TemplateGroupSignature> getSignatureGroupTemplateList(Long idTemplate)\n\t{\n\t\tTemplateGroupSignatureDAO dao = new TemplateGroupSignatureDAO();\n\t\t\n\t\tTemplate template = new Template();\n\t\ttemplate.setId(idTemplate);\n\t\t\n\t\tCollection<TemplateGroupSignature> signatureList = dao.getAllFields(template);\n\t\tArrayList<TemplateGroupSignature> responseList = new ArrayList<TemplateGroupSignature>(signatureList);\n\t\t\n\t\tloggerSingle.info(\"num group signature template \"+idTemplate+\": \"+responseList.size());\n\t\treturn responseList;\n\t}",
"public boolean updateSignatureTemplate(ArrayList<TemplateSignature> signatureList)\n\t{\n\t\tTemplateSignatureDAO dao = new TemplateSignatureDAO();\n\t\t\n\t\tfor (TemplateSignature item:signatureList)\n\t\t{\n\t\t\tdao.save(item);\t\n\t\t}\n\t\t\n\t\treturn true;\n\t}",
"ISModifySignature createISModifySignature();",
"public void generateSignature(PrivateKey privateKey) {\r\n\t\t\r\n\t\tString data;\r\n\t\t\r\n\t\tif(isTypeCreation){\r\n\t\t\t\r\n\t\t\tdata = StringUtil.getStringFromKey(creator) + name +\r\n\t\t\t\t\tdescription + begin + end+end_subscription+\r\n\t\t\t\t\tlocation+min_capacity+max_capacity;\r\n\t\t\t\r\n\t\t}\r\n\t\telse{\r\n\t\t\t\r\n\t\t\tdata = StringUtil.getStringFromKey(subscriber)+id_event;\r\n\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tsignature = StringUtil.applyECDSASig(privateKey,data);\r\n\t\tprocessTransaction();\r\n\t\t\t\r\n\t}",
"public void buildSignatureModel(LinkedList<SignatureContainer> sigs)\r\n {\r\n \r\n for (SignatureContainer s:sigs) {\r\n \r\n }\r\n \r\n }",
"String getSignature();",
"String getSignature();",
"String getSignature();",
"byte[] getSignatureImage();",
"Signature getSignature();",
"public Boolean updateSignatureTemplate(TemplateSignature signature)\n\t{\n\t\tTemplateSignatureDAO dao = new TemplateSignatureDAO();\n\t\tdao.save(signature);\t\t\n\t\treturn true;\n\t}",
"public void dialogsign(final String c){\n tempDir = Environment.getExternalStorageDirectory() + \"/\" + getResources().getString(R.string.app_name) + \"/\";\n ContextWrapper cw = new ContextWrapper(Remittancetooic.this);\n File directory = cw.getDir(getResources().getString(R.string.app_name), Context.MODE_PRIVATE);\n\n prepareDirectory();\n uniqueId = getTodaysDate() + \"_\" + getCurrentTime() + \"_\" + Math.random();\n current = uniqueId + \".png\";\n mypath= new File(directory,current);\n\n\n mContent = (LinearLayout)dialog.findViewById(R.id.linearLayout);\n mSignature = new Remittancetooic.signature(Remittancetooic.this, null);\n mSignature.setBackgroundColor(Color.WHITE);\n mContent.addView(mSignature, ViewGroup.LayoutParams.FILL_PARENT, ViewGroup.LayoutParams.FILL_PARENT);\n mClear = (Button)dialog.findViewById(R.id.clearsign);\n mGetSign = (Button)dialog.findViewById(R.id.savesign);\n mGetSign.setEnabled(false);\n mCancel = (Button)dialog.findViewById(R.id.cancelsign);\n mView = mContent;\n\n mClear.setOnClickListener(new View.OnClickListener()\n {\n public void onClick(View v)\n {\n Log.v(\"log_tag\", \"Panel Cleared\");\n mSignature.clear();\n mGetSign.setEnabled(false);\n }\n });\n\n mGetSign.setOnClickListener(new View.OnClickListener()\n {\n public void onClick(View v)\n {\n //Log.v(\"log_tag\", \"Panel Saved\");\n boolean error = captureSignature();\n if(!error){\n mContent.setDrawingCacheEnabled(true);\n mSignature.save(mView);\n if (c.equals(\"tooic\")) {\n String type = \"OIC\";\n String trtype = \"Remittance\";\n String amount = amounthold.getText().toString();\n gen.addNewRemittance(type, oicname, \"\", \"\", amount,\n off, helper.logcount() + \"\", datereturn(), \"0\", \"1\");\n updateAll(helper.logcount()+\"\");\n gen.updateRemAmountStat(helper.logcount()+\"\", \"1\");\n\n gen.addTransactions(trtype, \"\"+helper.logcount(),\n \"Added new remittance to \"+type, datereturn(), getCurrentTime());\n\n updateAllAllowance();\n recreate();\n }else if (c.equals(\"tobank\")){\n String ty = \"BANK\";\n String trtype = \"Remittance\";\n String amount = amounthold.getText().toString();\n gen.addNewRemittance(ty, bank, acc_name, acc_num, amount, off,\n helper.logcount()+\"\", datereturn(), \"0\", \"1\");\n updateAll(helper.logcount()+\"\");\n gen.addTransactions(trtype, \"\"+helper.logcount(),\n \"Added new remittance to \"+ty, datereturn(), getCurrentTime());\n\n updateAllAllowance();\n recreate();\n }\n dialog.dismiss();\n }\n }\n });\n\n mCancel.setOnClickListener(new View.OnClickListener()\n {\n public void onClick(View v)\n {\n Log.v(\"log_tag\", \"Panel Canceled\");\n mSignature.clear();\n dialog.dismiss();\n }\n });\n dialog.show();\n }",
"int insert(PolicyGroup record);",
"public final void ruleSignature() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalGo.g:792:2: ( ( ( rule__Signature__Group__0 ) ) )\r\n // InternalGo.g:793:2: ( ( rule__Signature__Group__0 ) )\r\n {\r\n // InternalGo.g:793:2: ( ( rule__Signature__Group__0 ) )\r\n // InternalGo.g:794:3: ( rule__Signature__Group__0 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getSignatureAccess().getGroup()); \r\n }\r\n // InternalGo.g:795:3: ( rule__Signature__Group__0 )\r\n // InternalGo.g:795:4: rule__Signature__Group__0\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__Signature__Group__0();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getSignatureAccess().getGroup()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"@Override\n public void onClick(View v) {\n\n if (v == Clear_bt) {\n mSignature.clear();\n // dl.dismiss();\n\n } else if (v == Save_bt) {\n mSignature.save();\n\n } else if (v == Cancel_bt) {\n /* Bundle b = new Bundle();\n b.putString(\"byteArray\", \"cancel\");\n Intent intent = new Intent();\n intent.putExtras(b);\n setResult(3, intent);*/\n // finish();\n mSignature.clear();\n dl.dismiss();\n\n } else if (v == tech_signature) {\n Sign_Check = \"Man\";\n get_signature(Sign_Check);\n\n }\n else if (v == staff_signature) {\n Sign_Check = \"staff\";\n get_signature(Sign_Check);\n\n }\n\n\n else if (v == supervisor_signature) {\n\n Sign_Check = \"Co\";\n get_signature(Sign_Check);\n\n }\n\n else if (v == msot_signature_button) {\n\n Sign_Check = \"msot\";\n get_signature(Sign_Check);\n\n }\n }",
"public void dialog_action() {\n\n mContent = (LinearLayout) dialog.findViewById(R.id.linearLayout);\n mSignature = new signature(getApplicationContext(), null);\n mSignature.setBackgroundColor(Color.WHITE);\n // Dynamically generating Layout through java code\n mContent.addView(mSignature, ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT);\n mClear = (Button) dialog.findViewById(R.id.clear);\n mGetSign = (Button) dialog.findViewById(R.id.getsign);\n mGetSign.setEnabled(false);\n mCancel = (Button) dialog.findViewById(R.id.cancel);\n view = mContent;\n\n mClear.setOnClickListener(new View.OnClickListener() {\n public void onClick(View v) {\n Log.v(\"tag\", \"Panel Cleared\");\n mSignature.clear();\n mGetSign.setEnabled(false);\n }\n });\n mGetSign.setOnClickListener(new View.OnClickListener() {\n\n public void onClick(View v) {\n\n Timestamp timestamp = new Timestamp(System.currentTimeMillis());\n String dates = sdf.format(timestamp);\n\n pic_name = \"TTD \" + dates;\n StoredPath = DIRECTORY + pic_name + \".JPEG\";\n Log.e(\"tag\", \"DATES :\"+dates);\n\n Log.e(\"tag\", \"Directory\" + StoredPath);\n view.setDrawingCacheEnabled(true);\n mSignature.save(view, StoredPath);\n\n dialog.dismiss();\n Toast.makeText(getApplicationContext(), \"Berhasil Disimpan\", Toast.LENGTH_SHORT).show();\n // Calling the same class\n recreate();\n\n }\n });\n mCancel.setOnClickListener(new View.OnClickListener() {\n public void onClick(View v) {\n Log.v(\"tag\", \"Panel Dibatalkan\");\n dialog.dismiss();\n // Calling the same class\n recreate();\n }\n });\n dialog.show();\n }",
"public void buildSignature() throws IOException\n {\n PDFTemplateBuilder builder = new PDVisibleSigBuilder();\n PDFTemplateCreator creator = new PDFTemplateCreator(builder);\n setVisibleSignature(creator.buildPDF(getPdVisibleSignature()));\n }",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.FinancialStatement addNewFinancialStatementsGroup();",
"public abstract String getSignature();",
"public Group saveGroup(Group group);",
"public static void writeSignaturesToFile(){\n OWLOntology ont = OntologyLoader.loadOntologyAllAxioms(\"/path/to/ontology.owl\");\n\n //Location to save signatures\n File f = new File(\"/path/to/Signatures\");\n\n //Writes every axiom signature of the ontology to the given location\n WriteAxiomSignatures axiomSignatures = new WriteAxiomSignatures(ont, f);\n axiomSignatures.writeAxiomSignatures();\n\n /* Completely random */\n WriteRandomSigs random = new WriteRandomSigs(ont, f);\n //Write 1000 signatures of 50 random symbols to the location\n random.writeSignature(50, 1000);\n //Write 500 signatures of 100 random symbols to the location\n random.writeSignature(100, 500);\n\n /* Concepts + role percentage */\n //Write 1000 signatures consisting of 50 random concept names + 25% of all roles taken randomly from the ontology\n random.writeSignatureWithRoles(50, 25, 1000);\n\n //Write 1000 signatures consisting of 100 random concept names 0% of all roles (purely concept signatures)\n random.writeSignatureWithRoles(100, 0, 1000);\n }",
"int getSignature ();",
"@java.lang.Override\n public io.grafeas.v1.Signature getSignatures(int index) {\n return signatures_.get(index);\n }",
"public final void rule__Signature__Group__0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalGo.g:6134:1: ( rule__Signature__Group__0__Impl rule__Signature__Group__1 )\r\n // InternalGo.g:6135:2: rule__Signature__Group__0__Impl rule__Signature__Group__1\r\n {\r\n pushFollow(FOLLOW_17);\r\n rule__Signature__Group__0__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_2);\r\n rule__Signature__Group__1();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public abstract byte[] getSignature();",
"default String getSignature() {\n StringBuilder sb = new StringBuilder();\n sb.append(getName());\n sb.append(\"(\");\n for (int i = 0; i < getNumberOfParams(); i++) {\n if (i != 0) {\n sb.append(\", \");\n }\n sb.append(getParam(i).describeType());\n }\n sb.append(\")\");\n return sb.toString();\n }",
"int insert(GrpTagKey record);",
"private void saveTemplate()\r\n {\r\n\t String template = keyField.getText();\r\n\r\n\t int lenI = values.length, lenJ, lenK;\r\n\t String[][][] newValues = new String[lenI][][];\r\n\t for (int i=0; i<lenI; i++)\r\n\t {\r\n\t\t lenJ = values[i].length;\r\n\t\t newValues[i] = new String[lenJ][];\r\n\t\t for (int j=0; j<lenJ; j++)\r\n\t\t {\r\n\t\t\t lenK = values[i][j].length;\r\n\t\t\t newValues[i][j] = new String[lenK];\r\n\t\t\t for (int k=0; k<lenK; k++)\r\n\t\t\t\t values[i][j][k] = values[i][j][k];\r\n\t\t }\r\n\t }\r\n\t \r\n\t if (template.length()==0)\r\n\t {\r\n\t\t label.setText(\"Please enter a valid template name\");\r\n\t\t return;\r\n\t }\r\n\t \r\n\t // Update or store to the list of templates.\r\n for (int i=0; i<newValues.length; i++)\r\n \t for (int j=0; j<newValues[i].length; j++)\r\n\t\t\t newValues[i][j] = getComponentArray(components[i][j]);\r\n \r\n \t if (!definitionBox.isSelected())\r\n \t {\r\n \t\t newValues[FormatData.t.D_HDR.ordinal()] \r\n \t\t\t\t = newValues[FormatData.t.D_FLD.ordinal()] \r\n \t\t\t\t\t\t = new String[0][0];\r\n \t }\r\n \t if (!categoryBox.isSelected())\r\n \t {\r\n \t\t newValues[FormatData.t.C_HDR.ordinal()] \r\n \t\t\t\t = newValues[FormatData.t.C_FLD.ordinal()] \r\n \t\t\t\t\t\t = new String[0][0];\r\n \t }\r\n \t if (!exampleBox.isSelected())\r\n \t {\r\n \t\t newValues[FormatData.t.E_HDR.ordinal()] \r\n \t\t\t\t = newValues[FormatData.t.E_FLD.ordinal()] \r\n \t\t\t\t\t\t = new String[0][0];\r\n \t }\r\n\r\n templates.setTemplate(template, newValues);\r\n\r\n if (!model.contains(template))\r\n\t {\r\n\t int size = templateKeys.length;\r\n\t String[] newTemplates = new String[templateKeys.length + 1];\r\n\t if (templateKeys.length != 0)\r\n\t \t System.arraycopy(templateKeys, 0, newTemplates, 0, size);\r\n\t \r\n\t newTemplates[size] = template;\r\n\t templateKeys = newTemplates;\r\n\t model.add(size, templateKeys[size]);\r\n\t list.setSelectedIndex(size);\r\n\t }\r\n label.setText(\"Display format \" + template + \" saved\");\r\n }",
"public String[] getSignature() {\n\t\treturn signature;\n\t}",
"java.lang.String getSignatureText();",
"public void saveGlobalSigns()\n\t{\n\t\tplugin.fileio.saveGlobalSigns();\n\t}",
"@java.lang.Override\n public io.grafeas.v1.SignatureOrBuilder getSignaturesOrBuilder(int index) {\n return signatures_.get(index);\n }",
"public final void rule__Signature__Group__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalGo.g:6161:1: ( rule__Signature__Group__1__Impl )\r\n // InternalGo.g:6162:2: rule__Signature__Group__1__Impl\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__Signature__Group__1__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public abstract List<SignResult> signArtifact(Artifact artifact);",
"@java.lang.Override\n public java.util.List<io.grafeas.v1.Signature> getSignaturesList() {\n return signatures_;\n }",
"public interface SignatureFactory \n{\n /** \n * initializes the implementation class \n */\n public void init()\n throws SignedDocException;\n \n /**\n * Method returns an array of strings representing the \n * list of available token names.\n * @return an array of available token names.\n * @throws SignedDocException if reading the token information fails.\n */\n public String[] getAvailableTokenNames()\n throws SignedDocException;\n \n /**\n * Method returns a digital signature. It finds the RSA private \n * key object from the active token and\n * then signs the given data with this key and RSA mechanism.\n * @param digest digest of the data to be signed.\n * @param token token index\n * @param pin users pin code\n * @return an array of bytes containing digital signature.\n * @throws SignedDocException if signing the data fails.\n */\n public byte[] sign(byte[] digest, int token, String pin) \n throws SignedDocException;\n \n /**\n * Method returns a X.509 certificate object readed \n * from the active token and representing an\n * user public key certificate value.\n * @return X.509 certificate object.\n * @throws SignedDocException if getting X.509 public key certificate \n * fails or the requested certificate type X.509 is not available in \n * the default provider package\n */\n public X509Certificate getCertificate(int token, String pin)\n throws SignedDocException;\n \n /**\n * Resets the previous session\n * and other selected values\n */\n public void reset() \n throws SignedDocException;\n \n\t/**\n\t * Method decrypts the data with the RSA private key\n\t * corresponding to this certificate (which was used\n\t * to encrypt it). Decryption will be done on the card.\n\t * This operation closes the possibly opened previous\n\t * session with signature token and opens a new one with\n\t * authentication token if necessary\n\t * @param data data to be decrypted.\n\t * @param token index of authentication token\n\t * @param pin PIN code\n\t * @return decrypted data.\n\t * @throws SignedDocException for all decryption errors\n\t */\n\tpublic byte[] decrypt(byte[] data, int token, String pin) \n\t\tthrows SignedDocException;\n\t\t\t\t\n}",
"public List saveFN(List fileLst, RequestMeta requestMeta) {\n return assistFileService.saveFN(fileLst, requestMeta);\r\n }",
"int insert(SbGroupDetail record);",
"int getSignatureType();",
"public byte[] generateSignature()\n {\n if (!forSigning)\n {\n throw new IllegalStateException(\"PairingDigestSigner not initialised for signature generation.\");\n }\n\n byte[] hash = new byte[digest.getDigestSize()];\n digest.doFinal(hash, 0);\n\n Element[] sig = pairingSigner.generateSignature(hash);\n\n try {\n return pairingSigner.derEncode(sig);\n } catch (IOException e) {\n throw new IllegalStateException(\"unable to encode signature\");\n }\n }",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.FinancialStatement insertNewFinancialStatementsGroup(int i);",
"public final void rule__TimeSignature__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../ufscar.Compiladores2.ui/src-gen/ufscar/compiladores2/ui/contentassist/antlr/internal/InternalMusy.g:2684:1: ( rule__TimeSignature__Group__2__Impl )\n // ../ufscar.Compiladores2.ui/src-gen/ufscar/compiladores2/ui/contentassist/antlr/internal/InternalMusy.g:2685:2: rule__TimeSignature__Group__2__Impl\n {\n pushFollow(FOLLOW_rule__TimeSignature__Group__2__Impl_in_rule__TimeSignature__Group__25463);\n rule__TimeSignature__Group__2__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"void setSignatureType(int signatureType);",
"public byte[] getSignature()\n {\n return Arrays.clone(signature);\n }",
"int insert(SeGroup record);",
"public static boolean isSigned_group() {\n return false;\n }",
"@Override\n public void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n GroupDao daoGroup = (GroupDao) this.getServletContext().getAttribute(\"dao-group\");\n\n assert ServletFileUpload.isMultipartContent(req);\n CloudStorageHelper storageHelper = (CloudStorageHelper) getServletContext().getAttribute(\"storageHelper\");\n\n String newImageUrl = null;\n Map<String, String> params = new HashMap<String, String>();\n try {\n FileItemIterator iter = new ServletFileUpload().getItemIterator(req);\n while (iter.hasNext()) {\n FileItemStream item = iter.next();\n if (item.isFormField()) {\n params.put(item.getFieldName(), Streams.asString(item.openStream()));\n } else if (!Strings.isNullOrEmpty(item.getName())) {\n newImageUrl = storageHelper.uploadFile(\n item, getServletContext().getInitParameter(\"personshelf.bucket\"));\n }\n }\n } catch (FileUploadException e) {\n throw new IOException(e);\n }\n\n try {\n Group oldGroup = daoGroup.readGroup(Long.decode(params.get(\"id\")));\n\n // [START personBuilder]\n Group group = new Group.Builder()\n .id(Long.decode(params.get(\"id\")))\n .name(params.get(\"name\"))\n .introduction(params.get(\"introduction\"))\n .category(params.get(\"category\"))\n .status(params.get(\"status\"))\n .description(params.get(\"description\"))\n .imageUrl(null == newImageUrl ? params.get(\"imageUrl\") : newImageUrl)\n // [START auth]\n .createdBy(oldGroup.getCreatedBy())\n .createdById(oldGroup.getCreatedById())\n .createdDate(oldGroup.getCreatedDate())\n // [END auth]\n .build();\n // [END groupBuilder]\n\n daoGroup.updateGroup(group);\n resp.sendRedirect(\"read?id=\" + params.get(\"id\"));\n } catch (Exception e) {\n throw new ServletException(\"Error updating group\", e);\n }\n }",
"public static byte [] sign(PrivateKey signatureKey, byte [] plainText){\r\n\t\ttry {\r\n\t\t\tSignature signer = Signature.getInstance(signatureAlgorithm);\r\n\t\t\tsigner.initSign(signatureKey);\r\n\t\t\tsigner.update(plainText);\r\n\t\t\treturn signer.sign();\r\n\t\t} catch (SignatureException | NoSuchAlgorithmException | InvalidKeyException e) {\r\n\t\t\t// should not happen\r\n\t\t\tthrow new ModelException(\"Unable to sign message \"+new String(Arrays.copyOf(plainText, 10))+\"...\",e);\r\n\t\t}\r\n\t}",
"public byte[] signData(String fitxer, PrivateKey priv) {\n byte[] signature = null;\n FileInputStream datafis;\n BufferedInputStream bufin = null;\n byte[] buffer = new byte[1024];\n int len;\n \n try {\n Signature signer = Signature.getInstance(\"SHA256withRSA\");\n signer.initSign(priv); //Inicialitzem la firma digital a partirde l’algorisme utilitzat\n \n datafis = new FileInputStream(fitxer);\n bufin = new BufferedInputStream(datafis);\n \n while (bufin.available() != 0) {\n len = bufin.read(buffer);\n signer.update(buffer, 0, len);//Li assignem a l’objecte firma les dades afirmar digitalment\n } \n\n bufin.close();\n signature = signer.sign();//Finalment generem la firma\n } catch (Exception ex) {\n System.err.println(\"Error signant les dades: \" + ex);\n }\n return signature;\n }",
"public void generateSignature(PrivateKey privateKey) {\n\t\tString data = StringUtil.getStringFromKey(sender) + StringUtil.getStringFromKey(reciepient)\n\t\t\t\t+ Float.toString(value);\n\t\tsignature = StringUtil.applyECDSASig(privateKey, data);\n\t}",
"com.google.protobuf.ByteString getSignature();",
"private static void signProjectDocuments(XMLSignature signature, String pathToProject, String subFoldersPath)\n\t\t\tthrows Exception {\n\t\tFile targetFolder = new File(pathToProject);\n\t\ttry {\n\t\t\tfor (String fileName : targetFolder.list()) {\n\t\t\t\t// IResource projectMember = projectMembers[i];\n\t\t\t\tString pathToFile = pathToProject + File.separator + fileName;\n\t\t\t\tFile fileInTargetFolder = new File(pathToFile);\n\t\t\t\tif (!isFolder(fileInTargetFolder)) {\n\n\t\t\t\t\tif (!SignatureUtility.checkForDistributorSignatureFile(fileName) && !fileName.equals(\".project\")) { //$NON-NLS-1$\n\t\t\t\t\t\tif (fileInTargetFolder.exists()\n\t\t\t\t\t\t\t\t&& !fileInTargetFolder.isHidden()\n\t\t\t\t\t\t\t\t&& !fileInTargetFolder.getName().endsWith(\"~\") //$NON-NLS-1$\n\t\t\t\t\t\t\t\t&& !fileInTargetFolder.getName().startsWith(\".\") && !SignatureUtility.checkForWgtPackage(fileName)) { //$NON-NLS-1$\n\t\t\t\t\t\t\tif ((!fileName.equals(SignatureUtility.AUTHOR_SIGNATURE))) {\n\t\t\t\t\t\t\t\t// String path = ((IFile)\n\t\t\t\t\t\t\t\t// projectMember).getProjectRelativePath().toString();\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tsignature.addDocument(subFoldersPath + fileName, null, SignatureConstants.SHA256);\n\t\t\t\t\t\t\t\t} catch (XMLSignatureException e) {\n\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else if (isFolder(fileInTargetFolder)) {\n\t\t\t\t\tif (fileInTargetFolder != null && fileInTargetFolder.exists() && !fileInTargetFolder.isHidden()\n\t\t\t\t\t\t\t&& !fileInTargetFolder.getName().startsWith(\".\")) //$NON-NLS-1$\n\n\t\t\t\t\t\tsignProjectDocuments(signature, pathToProject + File.separator + fileName, subFoldersPath\n\t\t\t\t\t\t\t\t+ fileName + \"/\");\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow e;\n\t\t}\n\t}",
"private static byte[] sign(KeyPair keyPair, Path path, String signatureAlgorithm)\n\t{\n\t\tbyte[] signature = null;\n\n\t\ttry\n\t\t{\n\t\t\tbyte[] dataFromFile = Files.readAllBytes(path);\n\t\t\tSignature sign = Signature.getInstance(signatureAlgorithm);\n\t\t\tsign.initSign(keyPair.getPrivate());\n\t\t\tsign.update(dataFromFile);\n\t\t\tsignature = sign.sign();\n\t\t} catch (IOException | InvalidKeyException | NoSuchAlgorithmException | SignatureException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn signature;\n\t}",
"public static void reSign() {\n\t\t//System.out.println(\"Data before resign: \" + dataList);\n\t\tfor(int i = 0 ; i < dataList.size() ; i++) {\n\t\t\t//there is char '-$'\n\t\t\tif(dataList.get(i).name.charAt(0)=='-') {\n\t\t\t\tData n = new Data(\"\"+dataList.get(i).name.charAt(1),dataList.get(i).value*(-1));\n\t\t\t\tdataList.remove(i);\n\t\t\t\tif(hasToken(n.name)) {\n\t\t\t\t\tint ind = getIndex(n.name);\n\t\t\t\t\tdataList.remove(ind);\n\t\t\t\t}\n\t\t\t\tdataList.add(n);\n\t\t\t}\t\t\t\n\t\t}\n\t\t//System.out.println(\"Saved data: \" + dataList);\n\t}",
"public final void rule__TimeSignature__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../ufscar.Compiladores2.ui/src-gen/ufscar/compiladores2/ui/contentassist/antlr/internal/InternalMusy.g:2624:1: ( rule__TimeSignature__Group__0__Impl rule__TimeSignature__Group__1 )\n // ../ufscar.Compiladores2.ui/src-gen/ufscar/compiladores2/ui/contentassist/antlr/internal/InternalMusy.g:2625:2: rule__TimeSignature__Group__0__Impl rule__TimeSignature__Group__1\n {\n pushFollow(FOLLOW_rule__TimeSignature__Group__0__Impl_in_rule__TimeSignature__Group__05341);\n rule__TimeSignature__Group__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__TimeSignature__Group__1_in_rule__TimeSignature__Group__05344);\n rule__TimeSignature__Group__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public java.util.List<io.grafeas.v1.Signature> getSignaturesList() {\n if (signaturesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(signatures_);\n } else {\n return signaturesBuilder_.getMessageList();\n }\n }",
"public final void ruleTimeSignature() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../ufscar.Compiladores2.ui/src-gen/ufscar/compiladores2/ui/contentassist/antlr/internal/InternalMusy.g:297:2: ( ( ( rule__TimeSignature__Group__0 ) ) )\n // ../ufscar.Compiladores2.ui/src-gen/ufscar/compiladores2/ui/contentassist/antlr/internal/InternalMusy.g:298:1: ( ( rule__TimeSignature__Group__0 ) )\n {\n // ../ufscar.Compiladores2.ui/src-gen/ufscar/compiladores2/ui/contentassist/antlr/internal/InternalMusy.g:298:1: ( ( rule__TimeSignature__Group__0 ) )\n // ../ufscar.Compiladores2.ui/src-gen/ufscar/compiladores2/ui/contentassist/antlr/internal/InternalMusy.g:299:1: ( rule__TimeSignature__Group__0 )\n {\n before(grammarAccess.getTimeSignatureAccess().getGroup()); \n // ../ufscar.Compiladores2.ui/src-gen/ufscar/compiladores2/ui/contentassist/antlr/internal/InternalMusy.g:300:1: ( rule__TimeSignature__Group__0 )\n // ../ufscar.Compiladores2.ui/src-gen/ufscar/compiladores2/ui/contentassist/antlr/internal/InternalMusy.g:300:2: rule__TimeSignature__Group__0\n {\n pushFollow(FOLLOW_rule__TimeSignature__Group__0_in_ruleTimeSignature574);\n rule__TimeSignature__Group__0();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getTimeSignatureAccess().getGroup()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public void generateSignature(PrivateKey privateKey) {\n\n String data = StringUtil.getStringFromKey(sender) + StringUtil.getStringFromKey(recipient) + Float.toString(value);\n signature = StringUtil.applyECDSASig(privateKey, data);\n }",
"public io.grafeas.v1.Signature getSignatures(int index) {\n if (signaturesBuilder_ == null) {\n return signatures_.get(index);\n } else {\n return signaturesBuilder_.getMessage(index);\n }\n }",
"public String getSignature()\r\n {\r\n return signature;\r\n }",
"int insertSelective(SbGroupDetail record);",
"public org.w3c.dom.Element signXML(org.w3c.dom.Document doc, \n java.lang.String certAlias, \n java.lang.String algorithm,\n java.lang.String transformAlag, \n java.util.List ids) \n throws XMLSignatureException {\n if (doc == null) { \n SAMLUtilsCommon.debug.error(\"signXML: doc is null.\"); \n throw new XMLSignatureException( \n SAMLUtilsCommon.bundle.getString(\"nullInput\")); \n } \n \n if (certAlias == null || certAlias.length() == 0) { \n SAMLUtilsCommon.debug.error(\"signXML: certAlias is null.\"); \n throw new XMLSignatureException( \n SAMLUtilsCommon.bundle.getString(\"nullInput\"));\n } \n \n org.w3c.dom.Element root = doc.getDocumentElement();\n \n XMLSignature signature = null;\n try {\n Constants.setSignatureSpecNSprefix(\"\"); \n PrivateKey privateKey = \n (PrivateKey) keystore.getPrivateKey(certAlias);\n if (privateKey == null) { \n SAMLUtilsCommon.debug.error(\"private key is null\"); \n throw new XMLSignatureException( \n SAMLUtilsCommon.bundle.getString(\"nullprivatekey\")); \n } \n \n if (algorithm == null || algorithm.length() == 0) { \n algorithm = getKeyAlgorithm(privateKey); \n } \n if (!isValidAlgorithm(algorithm)) { \n throw new XMLSignatureException( \n SAMLUtilsCommon.bundle.getString(\"invalidalgorithm\")); \n } \n signature = new XMLSignature(doc, \"\", algorithm, \n Canonicalizer.ALGO_ID_C14N_EXCL_OMIT_COMMENTS); \n \n \t root.appendChild(signature.getElement());\n \t int size = ids.size();\n \t for (int i = 0; i < size; ++i) {\n \t\tTransforms transforms = new Transforms(doc);\n \t\tif (transformAlag != null) {\n \t\t transforms.addTransform(transformAlag);\n }\n \t\ttransforms.addTransform(\n \t\t\t\tTransforms.TRANSFORM_C14N_EXCL_OMIT_COMMENTS);\n \t\tString id = (String) ids.get(i);\n \t\tif (SAMLUtilsCommon.debug.messageEnabled()) {\n \t\t SAMLUtilsCommon.debug.message(\"id = \" +id);\n \t\t}\n \t\tsignature.addDocument(\"#\"+id, transforms,\n \t\t\tConstants.ALGO_ID_DIGEST_SHA1);\n \t }\n \n \t X509Certificate cert =\n (X509Certificate) keystore.getX509Certificate(certAlias);\n signature.addKeyInfo(cert);\n signature.sign(privateKey); \n \n } catch (Exception e) { \n \t SAMLUtilsCommon.debug.error(\"signXML Exception: \", e);\n throw new XMLSignatureException(e.getMessage()); \n } \n \n return (signature.getElement()); \n }",
"String componentSignature();",
"public ISignature getSignature() {\n return _signature;\n }",
"public Builder addSignatures(int index, io.grafeas.v1.Signature value) {\n if (signaturesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureSignaturesIsMutable();\n signatures_.add(index, value);\n onChanged();\n } else {\n signaturesBuilder_.addMessage(index, value);\n }\n return this;\n }",
"public final void rule__TimeSignature__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../ufscar.Compiladores2.ui/src-gen/ufscar/compiladores2/ui/contentassist/antlr/internal/InternalMusy.g:2653:1: ( rule__TimeSignature__Group__1__Impl rule__TimeSignature__Group__2 )\n // ../ufscar.Compiladores2.ui/src-gen/ufscar/compiladores2/ui/contentassist/antlr/internal/InternalMusy.g:2654:2: rule__TimeSignature__Group__1__Impl rule__TimeSignature__Group__2\n {\n pushFollow(FOLLOW_rule__TimeSignature__Group__1__Impl_in_rule__TimeSignature__Group__15401);\n rule__TimeSignature__Group__1__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__TimeSignature__Group__2_in_rule__TimeSignature__Group__15404);\n rule__TimeSignature__Group__2();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"@java.lang.Override\n public java.util.List<? extends io.grafeas.v1.SignatureOrBuilder> getSignaturesOrBuilderList() {\n return signatures_;\n }",
"int insertSelective(PolicyGroup record);",
"@SuppressWarnings(\"finally\")\n\t@Override\n\tpublic Response showSignature() {\n\t\tBaseResponse<NotifyTemplate> br = new BaseResponse<NotifyTemplate>();\n\t\ttry\n\t\t{\n\t\tList<NotifyTemplate> signList;\n\t\tjdbcTemplate.setDataSource(dataSourceProvider.getDataSource(FiinfraConstants.BU_DEFAULT));\n\t\tsignList=jdbcTemplate.query(FiinfraConstants.SP_GET_SYSTEM_RECEPIENT_CHANNEL,new Object[]{FiinfraConstants.SIGNATURE_ID} ,new BeanPropertyRowMapper<NotifyTemplate>(NotifyTemplate.class));\n\t\tbr.setResponseListObject(signList); \n\t\tresponse=FiinfraResponseBuilder.getSuccessResponse(br, null);\n\t\t} \n\t\tcatch (DataAccessException e) {\n\t\t\tresponse = FiinfraResponseBuilder.getErrorResponse(e.getMessage().toString());\n\t\t} \n\t\tfinally\n\t\t{\n\t\t\treturn response;\n\t\t\t\t} \n\t}",
"RequestResult postSignRequests(TriphaseRequest[] requests) throws IOException,\n CertificateEncodingException, SAXException;",
"SignatureIdentification createSignatureIdentification();",
"void setSignatureImage(byte[] signatureImage);",
"int insert(NjOrderAttachment record);",
"public boolean verifySignature() {\r\n\t\t\r\n\t\tString data;\r\n\t\t\r\n\t\tif(isTypeCreation){\r\n\t\t\t\r\n\t\t\tdata = StringUtil.getStringFromKey(creator) + name +\r\n\t\t\t\t\tdescription + begin + end+end_subscription+\r\n\t\t\t\t\tlocation+min_capacity+max_capacity;\r\n\t\t\treturn StringUtil.verifyECDSASig(creator, data, signature);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tdata = StringUtil.getStringFromKey(subscriber)+id_event;\r\n\t\t\treturn StringUtil.verifyECDSASig(subscriber, data, signature);\r\n\t\t}\r\n//\t\tSystem.out.println(\"signature \"+signature);\r\n\t\t\r\n\t}",
"public String getSignature() {\n return signature;\n }",
"public String getSignature() {\n return signature;\n }",
"public String getSignature() {\n return signature;\n }",
"public RecordObject addGroup(String token, Object record) throws RestResponseException;",
"java.lang.String getSignatureComments();",
"@Test\n public void createSubjectGroupTest() throws Exception\n {\n SubjectKey userKey = getUserKey(\"jdoe\");\n IPSubject ip = new IPSubject();\n \n SubjectGroup subjectGroup = new SubjectGroup();\n subjectGroup.setSubjectGroupName(\"network\");\n subjectGroup.setSubjectType(\"IP\");\n subjectGroup.setApplyToAll(Boolean.valueOf(true));\n subjectGroup.setApplyToEach(Boolean.valueOf(true));\n \n SubjectGroupEditObject sgEditObj = new SubjectGroupEditObject();\n List<Long> addList = sgEditObj.getAddSubjectList();\n addList.add(ip.getSubjectByName(\"workstation\").keySet().toArray(new Long[1])[0]);\n addList.add(ip.getSubjectByName(\"gateway\").keySet().toArray(new Long[1])[0]);\n \n SubjectGroupKey groupKey = ip.createSubjectGroup(subjectGroup, sgEditObj, userKey);\n \n EntityManagerContext.open(factory);\n try {\n org.ebayopensource.turmeric.policyservice.model.SubjectGroup savedSubjectGroup =\n EntityManagerContext.get().find(\n org.ebayopensource.turmeric.policyservice.model.SubjectGroup.class, \n groupKey.getSubjectGroupId());\n assertNotNull(savedSubjectGroup);\n } finally {\n EntityManagerContext.close();\n }\n }",
"private void generateVertexSignatures() {\n \t this.create(0);\n \t this.vertexSignatures = new ArrayList<String>();\n \t this.vertexSignatures.add(this.toCanonicalVertexString());\n \t int count = this.getVertexCount();\n \t for (int vertexIndex = 1; vertexIndex < count; vertexIndex++) {\n \t this.resetDAG(vertexIndex);\n \t this.vertexSignatures.add(this.toCanonicalVertexString());\n \t }\n \t}",
"private byte[] signData(byte[] data)\n throws CmsCadesException, GeneralSecurityException, IOException {\n CadesSignature cmsSig = new CadesSignature(data, SignedData.EXPLICIT);\n // CadesBESParameters params = new CadesBESParameters();\n CadesTParameters params = new CadesTParameters(\n \"http://tsp.iaik.tugraz.at/tsp/TspRequest\", null, null);\n params.setDigestAlgorithm(\"SHA512\");\n cmsSig.addSignerInfo(privKey_, certChain_, params);\n return cmsSig.encodeSignature();\n }",
"public void saveGroups() {\n String listOfCodes = \"\";\n for (Pair<String, Group> groupPair : savedGroups) {\n listOfCodes += \",\" + groupPair.first + \"|\" + groupPair.second.getCode();\n }\n prefs.setString(\"listOfCode\", listOfCodes);\n }",
"private void create_stock_signature(ArrayList<Integer> s, String input) {\n\n\t\tString filter = String.format(\"^([K]{0,%d}[S]{0,%d}[F]{0,%d}[N]{0,%d})$\", s.get(0), s.get(1), s.get(2),\n\t\t\t\ts.get(3));\n\t\tSystem.err.println(\"Result: \" + filter);\n\t\tpattern = Pattern.compile(filter);\n\t\tmatcher = pattern.matcher(input);\n\t\tif (matcher.matches()) {\n\n\t\t\tsetAccepted(matcher.group(matcher.groupCount() - 1));\n\t\t\tSystem.out.println(\"Expression for refill accepted: \" + getAccepted());\n\t\t\tsetRejected(false);\n\t\t} else {\n\t\t\tsetRejected(true);\n\t\t\tSystem.out.println(\"Expression rejected\");\n\t\t}\n\n\t}",
"public final void rule__Model__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../eu.artist.migration.mdt.database.sql.editor.ui/src-gen/eu/artist/migration/mdt/database/sql/editor/ui/contentassist/antlr/internal/InternalSQLDSL.g:511:1: ( ( ( rule__Model__InsertSQLAssignment_2 )* ) )\n // ../eu.artist.migration.mdt.database.sql.editor.ui/src-gen/eu/artist/migration/mdt/database/sql/editor/ui/contentassist/antlr/internal/InternalSQLDSL.g:512:1: ( ( rule__Model__InsertSQLAssignment_2 )* )\n {\n // ../eu.artist.migration.mdt.database.sql.editor.ui/src-gen/eu/artist/migration/mdt/database/sql/editor/ui/contentassist/antlr/internal/InternalSQLDSL.g:512:1: ( ( rule__Model__InsertSQLAssignment_2 )* )\n // ../eu.artist.migration.mdt.database.sql.editor.ui/src-gen/eu/artist/migration/mdt/database/sql/editor/ui/contentassist/antlr/internal/InternalSQLDSL.g:513:1: ( rule__Model__InsertSQLAssignment_2 )*\n {\n before(grammarAccess.getModelAccess().getInsertSQLAssignment_2()); \n // ../eu.artist.migration.mdt.database.sql.editor.ui/src-gen/eu/artist/migration/mdt/database/sql/editor/ui/contentassist/antlr/internal/InternalSQLDSL.g:514:1: ( rule__Model__InsertSQLAssignment_2 )*\n loop6:\n do {\n int alt6=2;\n int LA6_0 = input.LA(1);\n\n if ( (LA6_0==18) ) {\n alt6=1;\n }\n\n\n switch (alt6) {\n \tcase 1 :\n \t // ../eu.artist.migration.mdt.database.sql.editor.ui/src-gen/eu/artist/migration/mdt/database/sql/editor/ui/contentassist/antlr/internal/InternalSQLDSL.g:514:2: rule__Model__InsertSQLAssignment_2\n \t {\n \t pushFollow(FOLLOW_rule__Model__InsertSQLAssignment_2_in_rule__Model__Group__2__Impl1040);\n \t rule__Model__InsertSQLAssignment_2();\n\n \t state._fsp--;\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop6;\n }\n } while (true);\n\n after(grammarAccess.getModelAccess().getInsertSQLAssignment_2()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"int insertSelective(NjOrderAttachment record);",
"int insertSelective(SeGroup record);",
"private void setSignature(com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n bitField0_ |= 0x00000010;\n signature_ = value;\n }",
"private void saveTuple(ArrayList<Tuple> tupleList) {\n\n\t\ttry {\n\t\t\tFileOutputStream fileOutputStream = context.openFileOutput(\n\t\t\t\t\tSAVE_FILE, Context.MODE_PRIVATE);\n\t\t\tOutputStreamWriter outputStreamWriter = new OutputStreamWriter(\n\t\t\t\t\tfileOutputStream);\n\t\t\tGsonBuilder builder = new GsonBuilder();\n\t\t\tGson gson = builder.create();\n\t\t\tgson.toJson(tupleList, outputStreamWriter); // Serialize to Json\n\t\t\toutputStreamWriter.flush();\n\t\t\toutputStreamWriter.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void saveNow() {\n\t\tplugin.getFileManager().saveGroupsNow();\n\t}",
"public static byte[] SignWithPrivateKey(byte[] buf,PrivateKey pkey) throws Exception{\r\n\t\tSecureRandom secureRandom = new SecureRandom();\r\n\t\tSignature signature = Signature.getInstance(\"SHA1WithECDSA\");\r\n\t\tsignature.initSign(pkey,secureRandom);\r\n\t\tsignature.update(buf);\r\n\t\tbyte[] digitalSignature = signature.sign();\r\n\t\treturn digitalSignature;\r\n\t\t\r\n\t}",
"public void valSig (String fileName) {\n javax.xml.parsers.DocumentBuilderFactory dbf =\n javax.xml.parsers.DocumentBuilderFactory.newInstance();\n dbf.setNamespaceAware(true);\n javax.xml.parsers.DocumentBuilder db = null;\n\n System.out.println(\"\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\");\n\n try {\n db = dbf.newDocumentBuilder();\n } catch (ParserConfigurationException e) {\n e.printStackTrace();\n }\n try {\n Document doc =\n db.parse(new FileInputStream(fileName));\n\n XPathFactory xpf = XPathFactory.newInstance();\n XPath xpath = xpf.newXPath();\n xpath.setNamespaceContext(new DSNamespaceContext());\n String expression = \"//ds:Signature[1]\";\n Element sigElement =\n (Element) xpath.evaluate(expression, doc, XPathConstants.NODE);\n\n XMLSignature signature =\n new XMLSignature(sigElement, (new File(fileName)).toURI().toURL().toString());\n\n String expressionBody = \"//soapenv:Body\";\n Element bodyElement =\n (Element) xpath.evaluate(expressionBody, doc, XPathConstants.NODE);\n\n Attr id = bodyElement.getAttributeNode(\"Id\") ;\n IdResolver.registerElementById(bodyElement,id);\n //signature.addResourceResolver(new OfflineResolver());\n\n KeyInfo ki = signature.getKeyInfo();\n System.out.println(\"================================signature.getSignatureValue()================================\");\n\n String svStr = new String(signature.getSignatureValue());\n System.out.println(svStr);\n System.out.println(\"================================signature.getSignatureValue()================================\");\n\n if (ki != null) {\n if (ki.containsX509Data()) {\n System.out.println(\"Could find a X509Data element in the KeyInfo\");\n }\n X509Certificate cert = signature.getKeyInfo().getX509Certificate();\n if (cert != null) {\n System.out.println(\"The XML signature in file \"\n // + f.toURI().toURL().toString() + \" is \"\n + (signature.checkSignatureValue(cert)\n ? \"valid (good)\" : \"invalid !!!!! (bad)\"));\n } else {\n System.out.println(\"Did not find a Certificate\");\n PublicKey pk = signature.getKeyInfo().getPublicKey();\n if (pk != null) {\n System.out.println(\"The XML signature in file \"\n // + f.toURI().toURL().toString() + \" is \"\n + (signature.checkSignatureValue(pk)\n ? \"valid (good)\" : \"invalid !!!!! (bad)\"));\n } else {\n System.out.println(\n \"Did not find a public key, so I can't check the signature\");\n }\n }\n } else {\n System.out.println(\"Did not find a KeyInfo\");\n }\n\n\n\n\n\n } catch (SAXException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } catch (XPathExpressionException e) {\n e.printStackTrace();\n } catch (XMLSignatureException e) {\n e.printStackTrace();\n } catch (XMLSecurityException e) {\n e.printStackTrace();\n }\n\n }",
"public byte[] sign() throws XMLSignatureException {\n/* 177 */ return this.signatureAlgorithm.engineSign();\n/* */ }",
"@Override\n\tpublic void saveOrUpdate(Group group) throws ServiceException {\n\n\t}",
"public Builder setSignatures(int index, io.grafeas.v1.Signature value) {\n if (signaturesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureSignaturesIsMutable();\n signatures_.set(index, value);\n onChanged();\n } else {\n signaturesBuilder_.setMessage(index, value);\n }\n return this;\n }",
"public final void rule__FunctionType__Group__1__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalGo.g:6118:1: ( ( ruleSignature ) )\r\n // InternalGo.g:6119:1: ( ruleSignature )\r\n {\r\n // InternalGo.g:6119:1: ( ruleSignature )\r\n // InternalGo.g:6120:2: ruleSignature\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getFunctionTypeAccess().getSignatureParserRuleCall_1()); \r\n }\r\n pushFollow(FOLLOW_2);\r\n ruleSignature();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getFunctionTypeAccess().getSignatureParserRuleCall_1()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public Element signWithWSSX509TokenProfile(Document doc,\n java.security.cert.Certificate cert, String algorithm, List ids,\n String wsfVersion) throws XMLSignatureException {\n \n if (doc == null) { \n SAMLUtilsCommon.debug.error(\"signXML: doc is null.\"); \n throw new XMLSignatureException( \n SAMLUtilsCommon.bundle.getString(\"nullInput\")); \n } \n \n \tif (SAMLUtilsCommon.debug.messageEnabled()) {\n \t SAMLUtilsCommon.debug.message(\"Soap Envlope: \" +\n \t\tXMLUtils.print(doc.getDocumentElement()));\n \t}\n \n this.wsfVersion = wsfVersion;\n String wsseNS = SAMLConstants.NS_WSSE;\n String wsuNS = SAMLConstants.NS_WSU;\n \n if ((wsfVersion != null) &&\n (wsfVersion.equals(SOAPBindingConstants.WSF_11_VERSION))) {\n wsseNS = WSSEConstants.NS_WSSE_WSF11;\n wsuNS = WSSEConstants.NS_WSU_WSF11;\n }\n \n Element root = (Element)doc.getDocumentElement().\n getElementsByTagNameNS(wsseNS, SAMLConstants.TAG_SECURITY).item(0);\n \n XMLSignature signature = null;\n try {\n Constants.setSignatureSpecNSprefix(\"ds\"); \n Element wsucontext = com.sun.org.apache.xml.internal.security.utils.\n XMLUtils.createDSctx(doc, \"wsu\", wsuNS);\n NodeList wsuNodes = (NodeList)XPathAPI.selectNodeList(doc,\n \"//*[@wsu:Id]\", wsucontext);\n if ((wsuNodes != null) && (wsuNodes.getLength() != 0)) {\n for(int i=0; i < wsuNodes.getLength(); i++) {\n Element elem = (Element) wsuNodes.item(i);\n String id = elem.getAttributeNS(wsuNS, \"Id\");\n if (id != null && id.length() != 0) {\n IdResolver.registerElementById(elem, id);\n }\n }\n }\n \n String certAlias = keystore.getCertificateAlias(cert);\n PrivateKey privateKey = \n (PrivateKey) keystore.getPrivateKey(certAlias);\n if (privateKey == null) { \n SAMLUtilsCommon.debug.error(\"private key is null\"); \n throw new XMLSignatureException( \n SAMLUtilsCommon.bundle.getString(\"nullprivatekey\")); \n } \n \n // TODO: code clean up\n // should find cert alias, add security token and call signXML\n // to avoid code duplication\n if (algorithm == null || algorithm.length() == 0) { \n algorithm = getKeyAlgorithm(privateKey); \n } \n if (!isValidAlgorithm(algorithm)) { \n throw new XMLSignatureException( \n SAMLUtilsCommon.bundle.getString(\"invalidalgorithm\")); \n } \n signature = new XMLSignature(doc, \"\", algorithm, \n Canonicalizer.ALGO_ID_C14N_EXCL_OMIT_COMMENTS); \n \n \t root.appendChild(signature.getElement());\n \t int size = ids.size();\n \t for (int i = 0; i < size; ++i) {\n \t\tTransforms transforms = new Transforms(doc);\n \t\ttransforms.addTransform(\n \t\t\t\tTransforms.TRANSFORM_C14N_EXCL_OMIT_COMMENTS);\n \t\tString id = (String) ids.get(i);\n \t\tif (SAMLUtilsCommon.debug.messageEnabled()) {\n \t\t SAMLUtilsCommon.debug.message(\"id = \" +id);\n \t\t}\n \t\tsignature.addDocument(\"#\"+id, transforms,\n \t\t\tConstants.ALGO_ID_DIGEST_SHA1);\n \t }\n \n \t KeyInfo keyInfo = signature.getKeyInfo();\n \t Element securityTokenRef = doc.createElementNS(wsseNS,\n SAMLConstants.TAG_SECURITYTOKENREFERENCE);\n \t keyInfo.addUnknownElement(securityTokenRef);\n \t securityTokenRef.setAttributeNS(SAMLConstants.NS_XMLNS,\n \t\t SAMLConstants.TAG_XMLNS, wsseNS);\n \t securityTokenRef.setAttributeNS(SAMLConstants.NS_XMLNS,\n \t\t SAMLConstants.TAG_XMLNS_SEC, SAMLConstants.NS_SEC);\n \t securityTokenRef.setAttributeNS(null, SAMLConstants.TAG_USAGE,\n \t\t SAMLConstants.TAG_SEC_MESSAGEAUTHENTICATION);\n \n Element bsf = (Element)root.getElementsByTagNameNS(wsseNS,\n SAMLConstants.BINARYSECURITYTOKEN).item(0);\n \n \t String certId = bsf.getAttributeNS(wsuNS, SAMLConstants.TAG_ID);\n \n \t Element reference =\tdoc.createElementNS(wsseNS,\n SAMLConstants.TAG_REFERENCE);\n \t securityTokenRef.appendChild(reference);\n \t reference.setAttributeNS(null, SAMLConstants.TAG_URI, \"#\"+certId);\n \n signature.sign(privateKey); \n \n } catch (Exception e) { \n SAMLUtilsCommon.debug.error(\"signWithWSSX509TokenProfile\" +\n \" Exception: \", e);\n throw new XMLSignatureException(e.getMessage()); \n } \n \n return (signature.getElement()); \n }"
] | [
"0.7252183",
"0.6593541",
"0.64817315",
"0.6468203",
"0.59731644",
"0.5536168",
"0.5386407",
"0.5376771",
"0.52031064",
"0.52031064",
"0.52031064",
"0.51935065",
"0.5158051",
"0.51334494",
"0.5107373",
"0.5090901",
"0.5027376",
"0.50138354",
"0.49816322",
"0.49758962",
"0.49443913",
"0.49390388",
"0.49335152",
"0.49208963",
"0.4920581",
"0.491481",
"0.49045283",
"0.48979744",
"0.4893909",
"0.48926872",
"0.48864517",
"0.48853365",
"0.48796812",
"0.4871595",
"0.48706567",
"0.48507106",
"0.4842998",
"0.48343474",
"0.48286018",
"0.48216662",
"0.48175552",
"0.4807165",
"0.4792937",
"0.47818205",
"0.47773996",
"0.47762987",
"0.47637847",
"0.4760268",
"0.47574684",
"0.4753979",
"0.47260186",
"0.4723241",
"0.47150305",
"0.4691575",
"0.46835434",
"0.46727663",
"0.4669966",
"0.46666226",
"0.46658698",
"0.46629342",
"0.465886",
"0.46540502",
"0.4647631",
"0.4643973",
"0.46333802",
"0.4633159",
"0.46292993",
"0.46223217",
"0.46212727",
"0.46205118",
"0.46138725",
"0.4612318",
"0.46034566",
"0.46021274",
"0.46021158",
"0.46012723",
"0.459847",
"0.4589237",
"0.4589237",
"0.4589237",
"0.45779496",
"0.45755687",
"0.45664367",
"0.4562124",
"0.45589685",
"0.45545265",
"0.4553804",
"0.45522824",
"0.45517525",
"0.4536696",
"0.45360592",
"0.45337507",
"0.45299277",
"0.4528935",
"0.45259637",
"0.4523971",
"0.45232078",
"0.45171118",
"0.45119843",
"0.4510294"
] | 0.72163314 | 1 |
Save Group Signature of template | public TemplateGroupSignature saveGroupSingTemplate(Template template, TemplateGroupSignature group)
{
TemplateGroupSignatureDAO dao = new TemplateGroupSignatureDAO();
group = dao.saveNew(group);
return group;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean saveGroupSingTemplate(Template template, ArrayList<TemplateGroupSignature> groupList)\n\t{\n\t\tTemplateGroupSignatureDAO dao = new TemplateGroupSignatureDAO();\n\t\t\n\t\tfor (TemplateGroupSignature item:groupList)\n\t\t{\n\t\t\titem.setTemplateId(template);\n\t\t\tdao.saveNew(item);\t\n\t\t}\n\t\t\n\t\treturn true;\n\t}",
"public boolean saveSingsTemplateDocX(TemplateGroupSignature group,ArrayList<TemplateSignature> singList) \n\t{\n\t\ttry\n\t\t{\n\t\t\tTemplateSignatureDAO dao = new TemplateSignatureDAO();\n\t\t\t\n\t\t\tfor (TemplateSignature item:singList)\n\t\t\t{\n\t\t\t\t//item.setSignatureGroupTemplateId(group);\t\t\t\n\t\t\t\tdao.saveNew(item);\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\treturn true;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tloggerSingle.error(e.getMessage());\n\t\t}\n\t\t\n\t\treturn false;\n\t}",
"public void generateSignature(PrivateKey privateKey) {\r\n\t\t\r\n\t\tString data;\r\n\t\t\r\n\t\tif(isTypeCreation){\r\n\t\t\t\r\n\t\t\tdata = StringUtil.getStringFromKey(creator) + name +\r\n\t\t\t\t\tdescription + begin + end+end_subscription+\r\n\t\t\t\t\tlocation+min_capacity+max_capacity;\r\n\t\t\t\r\n\t\t}\r\n\t\telse{\r\n\t\t\t\r\n\t\t\tdata = StringUtil.getStringFromKey(subscriber)+id_event;\r\n\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tsignature = StringUtil.applyECDSASig(privateKey,data);\r\n\t\tprocessTransaction();\r\n\t\t\t\r\n\t}",
"ISModifySignature createISModifySignature();",
"public Group saveGroup(Group group);",
"public Collection<TemplateSignature> getSignatureTemplateList(Long idGroupSignatureTemplate)\n\t{\n\t\tTemplateSignatureDAO dao = new TemplateSignatureDAO();\n\t\t\n\t\tTemplateGroupSignature group = new TemplateGroupSignature();\n\t\tgroup.setId(idGroupSignatureTemplate);\n\t\t\n\t\tCollection<TemplateSignature> responseList = dao.getAllFields(group);\n\t\tloggerSingle.info(\"num signature group \"+idGroupSignatureTemplate+\": \"+responseList.size());\n\t\treturn responseList;\n\t}",
"public void buildSignature() throws IOException\n {\n PDFTemplateBuilder builder = new PDVisibleSigBuilder();\n PDFTemplateCreator creator = new PDFTemplateCreator(builder);\n setVisibleSignature(creator.buildPDF(getPdVisibleSignature()));\n }",
"public ArrayList<TemplateGroupSignature> getSignatureGroupTemplateList(Long idTemplate)\n\t{\n\t\tTemplateGroupSignatureDAO dao = new TemplateGroupSignatureDAO();\n\t\t\n\t\tTemplate template = new Template();\n\t\ttemplate.setId(idTemplate);\n\t\t\n\t\tCollection<TemplateGroupSignature> signatureList = dao.getAllFields(template);\n\t\tArrayList<TemplateGroupSignature> responseList = new ArrayList<TemplateGroupSignature>(signatureList);\n\t\t\n\t\tloggerSingle.info(\"num group signature template \"+idTemplate+\": \"+responseList.size());\n\t\treturn responseList;\n\t}",
"public Boolean updateSignatureTemplate(TemplateSignature signature)\n\t{\n\t\tTemplateSignatureDAO dao = new TemplateSignatureDAO();\n\t\tdao.save(signature);\t\t\n\t\treturn true;\n\t}",
"public void saveGlobalSigns()\n\t{\n\t\tplugin.fileio.saveGlobalSigns();\n\t}",
"public void saveNow() {\n\t\tplugin.getFileManager().saveGroupsNow();\n\t}",
"public void onSave(View view){\n saveTemplate(filename);\n Toast.makeText(this, \"Saved\", Toast.LENGTH_LONG).show();\n }",
"public void dialogsign(final String c){\n tempDir = Environment.getExternalStorageDirectory() + \"/\" + getResources().getString(R.string.app_name) + \"/\";\n ContextWrapper cw = new ContextWrapper(Remittancetooic.this);\n File directory = cw.getDir(getResources().getString(R.string.app_name), Context.MODE_PRIVATE);\n\n prepareDirectory();\n uniqueId = getTodaysDate() + \"_\" + getCurrentTime() + \"_\" + Math.random();\n current = uniqueId + \".png\";\n mypath= new File(directory,current);\n\n\n mContent = (LinearLayout)dialog.findViewById(R.id.linearLayout);\n mSignature = new Remittancetooic.signature(Remittancetooic.this, null);\n mSignature.setBackgroundColor(Color.WHITE);\n mContent.addView(mSignature, ViewGroup.LayoutParams.FILL_PARENT, ViewGroup.LayoutParams.FILL_PARENT);\n mClear = (Button)dialog.findViewById(R.id.clearsign);\n mGetSign = (Button)dialog.findViewById(R.id.savesign);\n mGetSign.setEnabled(false);\n mCancel = (Button)dialog.findViewById(R.id.cancelsign);\n mView = mContent;\n\n mClear.setOnClickListener(new View.OnClickListener()\n {\n public void onClick(View v)\n {\n Log.v(\"log_tag\", \"Panel Cleared\");\n mSignature.clear();\n mGetSign.setEnabled(false);\n }\n });\n\n mGetSign.setOnClickListener(new View.OnClickListener()\n {\n public void onClick(View v)\n {\n //Log.v(\"log_tag\", \"Panel Saved\");\n boolean error = captureSignature();\n if(!error){\n mContent.setDrawingCacheEnabled(true);\n mSignature.save(mView);\n if (c.equals(\"tooic\")) {\n String type = \"OIC\";\n String trtype = \"Remittance\";\n String amount = amounthold.getText().toString();\n gen.addNewRemittance(type, oicname, \"\", \"\", amount,\n off, helper.logcount() + \"\", datereturn(), \"0\", \"1\");\n updateAll(helper.logcount()+\"\");\n gen.updateRemAmountStat(helper.logcount()+\"\", \"1\");\n\n gen.addTransactions(trtype, \"\"+helper.logcount(),\n \"Added new remittance to \"+type, datereturn(), getCurrentTime());\n\n updateAllAllowance();\n recreate();\n }else if (c.equals(\"tobank\")){\n String ty = \"BANK\";\n String trtype = \"Remittance\";\n String amount = amounthold.getText().toString();\n gen.addNewRemittance(ty, bank, acc_name, acc_num, amount, off,\n helper.logcount()+\"\", datereturn(), \"0\", \"1\");\n updateAll(helper.logcount()+\"\");\n gen.addTransactions(trtype, \"\"+helper.logcount(),\n \"Added new remittance to \"+ty, datereturn(), getCurrentTime());\n\n updateAllAllowance();\n recreate();\n }\n dialog.dismiss();\n }\n }\n });\n\n mCancel.setOnClickListener(new View.OnClickListener()\n {\n public void onClick(View v)\n {\n Log.v(\"log_tag\", \"Panel Canceled\");\n mSignature.clear();\n dialog.dismiss();\n }\n });\n dialog.show();\n }",
"public boolean updateSignatureTemplate(ArrayList<TemplateSignature> signatureList)\n\t{\n\t\tTemplateSignatureDAO dao = new TemplateSignatureDAO();\n\t\t\n\t\tfor (TemplateSignature item:signatureList)\n\t\t{\n\t\t\tdao.save(item);\t\n\t\t}\n\t\t\n\t\treturn true;\n\t}",
"String getSignature();",
"String getSignature();",
"String getSignature();",
"Signature getSignature();",
"byte[] getSignatureImage();",
"int insert(PolicyGroup record);",
"public void generateSignature(PrivateKey privateKey) {\n\t\tString data = StringUtil.getStringFromKey(sender) + StringUtil.getStringFromKey(reciepient)\n\t\t\t\t+ Float.toString(value);\n\t\tsignature = StringUtil.applyECDSASig(privateKey, data);\n\t}",
"int insert(GrpTagKey record);",
"public void saveSelectedGroup(Elem group) {\n if (prefs == null) return;\n if (group == null) return;\n SharedPreferences.Editor editor = prefs.edit();\n editor.putInt(SettingsActivity.GROUP_ID_PREF, group.id);\n editor.putString(SettingsActivity.GROUP_NAME_PREF, group.name);\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.GINGERBREAD) editor.apply();\n else editor.commit();\n }",
"public void saveTemplate(String filename){\n Context context = App.getContext();\n LogManager.reportStatus(context, \"INSPECTOR\", \"savingTemplate\");\n blueprint = currentTemplate.createBlueprint();\n //make sure we have correct extension\n filename = FileManager.removeExtension(filename);\n if (isInspecting){\n filename = filename + \".in\";\n } else {\n filename = filename + \".bp\";\n }\n boolean hasSaved = FileManager.createTemplate(filename, blueprint);\n if (hasSaved){\n Toast.makeText(this, \"Saved\", Toast.LENGTH_LONG).show();\n }else{\n Toast.makeText(this, \"Did not save\", Toast.LENGTH_LONG).show();\n }\n }",
"public void save(Activity e){ \n\t template.save(e); \n\t}",
"public final void rule__TimeSignature__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../ufscar.Compiladores2.ui/src-gen/ufscar/compiladores2/ui/contentassist/antlr/internal/InternalMusy.g:2684:1: ( rule__TimeSignature__Group__2__Impl )\n // ../ufscar.Compiladores2.ui/src-gen/ufscar/compiladores2/ui/contentassist/antlr/internal/InternalMusy.g:2685:2: rule__TimeSignature__Group__2__Impl\n {\n pushFollow(FOLLOW_rule__TimeSignature__Group__2__Impl_in_rule__TimeSignature__Group__25463);\n rule__TimeSignature__Group__2__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public void generateSignature(PrivateKey privateKey) {\n\n String data = StringUtil.getStringFromKey(sender) + StringUtil.getStringFromKey(recipient) + Float.toString(value);\n signature = StringUtil.applyECDSASig(privateKey, data);\n }",
"public static void writeSignaturesToFile(){\n OWLOntology ont = OntologyLoader.loadOntologyAllAxioms(\"/path/to/ontology.owl\");\n\n //Location to save signatures\n File f = new File(\"/path/to/Signatures\");\n\n //Writes every axiom signature of the ontology to the given location\n WriteAxiomSignatures axiomSignatures = new WriteAxiomSignatures(ont, f);\n axiomSignatures.writeAxiomSignatures();\n\n /* Completely random */\n WriteRandomSigs random = new WriteRandomSigs(ont, f);\n //Write 1000 signatures of 50 random symbols to the location\n random.writeSignature(50, 1000);\n //Write 500 signatures of 100 random symbols to the location\n random.writeSignature(100, 500);\n\n /* Concepts + role percentage */\n //Write 1000 signatures consisting of 50 random concept names + 25% of all roles taken randomly from the ontology\n random.writeSignatureWithRoles(50, 25, 1000);\n\n //Write 1000 signatures consisting of 100 random concept names 0% of all roles (purely concept signatures)\n random.writeSignatureWithRoles(100, 0, 1000);\n }",
"public static boolean isSigned_group() {\n return false;\n }",
"private void saveStudent(){\n StudentGroupThrift group = mainWindow.getStudentClient().getStudentGroupByName\n (this.group.getSelectedItem().toString());\n SimpleDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd\");\n String birthDate = format.format(jDateChooser.getDate());\n StudentThrift studentThrift = new StudentThrift(\n id,\n getTextID(FIRST_NAME),\n getTextID(LAST_NAME),\n getTextID(MIDDLE_NAME),\n birthDate,\n getTextID(ADDRESS),\n group\n );\n mainWindow.getStudentClient().saveStudent(studentThrift);\n closeDialog();\n }",
"java.lang.String getSignatureText();",
"public void dialog_action() {\n\n mContent = (LinearLayout) dialog.findViewById(R.id.linearLayout);\n mSignature = new signature(getApplicationContext(), null);\n mSignature.setBackgroundColor(Color.WHITE);\n // Dynamically generating Layout through java code\n mContent.addView(mSignature, ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT);\n mClear = (Button) dialog.findViewById(R.id.clear);\n mGetSign = (Button) dialog.findViewById(R.id.getsign);\n mGetSign.setEnabled(false);\n mCancel = (Button) dialog.findViewById(R.id.cancel);\n view = mContent;\n\n mClear.setOnClickListener(new View.OnClickListener() {\n public void onClick(View v) {\n Log.v(\"tag\", \"Panel Cleared\");\n mSignature.clear();\n mGetSign.setEnabled(false);\n }\n });\n mGetSign.setOnClickListener(new View.OnClickListener() {\n\n public void onClick(View v) {\n\n Timestamp timestamp = new Timestamp(System.currentTimeMillis());\n String dates = sdf.format(timestamp);\n\n pic_name = \"TTD \" + dates;\n StoredPath = DIRECTORY + pic_name + \".JPEG\";\n Log.e(\"tag\", \"DATES :\"+dates);\n\n Log.e(\"tag\", \"Directory\" + StoredPath);\n view.setDrawingCacheEnabled(true);\n mSignature.save(view, StoredPath);\n\n dialog.dismiss();\n Toast.makeText(getApplicationContext(), \"Berhasil Disimpan\", Toast.LENGTH_SHORT).show();\n // Calling the same class\n recreate();\n\n }\n });\n mCancel.setOnClickListener(new View.OnClickListener() {\n public void onClick(View v) {\n Log.v(\"tag\", \"Panel Dibatalkan\");\n dialog.dismiss();\n // Calling the same class\n recreate();\n }\n });\n dialog.show();\n }",
"public void writeGroup( String groupName )\n\t{\n\t\ttry {\n\t\t\t\n\t\t\tDocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();\n\t\t\tDocumentBuilder docBuilder;\n\t\t\tdocBuilder = docFactory.newDocumentBuilder();\n\t\t\n\t\t\t// root elements\n\t\t\tDocument doc = docBuilder.newDocument();\n\t\t\tElement schema = doc.createElement( \"xs:schema\" );\n\t\t\tschema.setAttribute( \"xmlns:tns\", \"http://unicredit.eu/PLCredits/V1/\" + groupName + \"/xsd\" );\n\t\t\tschema.setAttribute( \"xmlns:xs\", \"http://www.w3.org/2001/XMLSchema\" );\n\t\t\tschema.setAttribute( \"xmlns:pn\", \"http://unicredit.eu/PLCredits/V1/ProposalNumber/xsd\" );\n\t\t\tschema.setAttribute( \"xmlns:head\", \"http://unicredit.eu/PLCredits/header/xsd\" );\n\t\t\tschema.setAttribute( \"xmlns:rstat\", \"http://unicredit.eu/PLCredits/responseStatus/xsd\" );\t\t\n\t\t\tschema.setAttribute( \"xmlns:ci\", \"http://unicredit.eu/PLCredits/V1/CustomerIdentifier/xsd\" );\n\t\t\tschema.setAttribute( \"xmlns:crecod3\", \"http://unicredit.eu/xmlns/CreditCode3/V1\");\t\t\n\t\t\tschema.setAttribute( \"xmlns:cretecfor\", \"http://unicredit.eu/xmlns/CreditTechnicalForm/V1\");\t\t\n\t\t\tschema.setAttribute( \"xmlns:posamo\", \"http://unicredit.eu/xmlns/PositiveAmount/V1\");\t\t\n\t\t\tschema.setAttribute( \"xmlns:isodat\", \"http://unicredit.eu/xmlns/ISODate/V1\");\t\t\n\t\t\tschema.setAttribute( \"xmlns:proarrtyp\", \"http://unicredit.eu/xmlns/ProductArrangementType/V1\");\t\n\t\t\tschema.setAttribute( \"elementFormDefault\", \"qualified\");\n\t\t\tschema.setAttribute( \"attributeFormDefault\", \"unqualified\");\n\t\t\tschema.setAttribute( \"targetNamespace\", \"http://unicredit.eu/PLCredits/V1/CollateralAssetAdministrationResourceItem/xsd\");\t\t\n\t\t\tschema.setAttribute( \"version\", \"1.0\");\n\n\t\t\tElement xsImport = doc.createElement( \"xs:import\" );\n\t\t\txsImport.setAttribute(\"namespace\", \"http://unicredit.eu/PLCredits/V1/ProposalNumber/xsd\");\n\t\t\txsImport.setAttribute(\"schemaLocation\", \"ProposalNumberSchema.xsd\");\n\t\t\tschema.appendChild(xsImport);\n\t\t\t\n\t\t\txsImport = doc.createElement( \"xs:import\" );\n\t\t\txsImport.setAttribute(\"namespace\", \"http://unicredit.eu/PLCredits/header/xsd\");\n\t\t\txsImport.setAttribute(\"schemaLocation\", \"header-v0.2.xsd\");\n\t\t\tschema.appendChild(xsImport);\n\t\t\t\n\t\t\txsImport = doc.createElement( \"xs:import\" );\n\t\t\txsImport.setAttribute(\"namespace\", \"http://unicredit.eu/PLCredits/responseStatus/xsd\");\n\t\t\txsImport.setAttribute(\"schemaLocation\", \"responseStatus.xsd\");\n\t\t\tschema.appendChild(xsImport);\n\n\t\t\txsImport = doc.createElement( \"xs:import\" );\n\t\t\txsImport.setAttribute(\"namespace\", \"http://unicredit.eu/PLCredits/V1/CustomerIdentifier/xsd\");\n\t\t\txsImport.setAttribute(\"schemaLocation\", \"CustomerIdentifierSchema.xsd\");\n\t\t\tschema.appendChild(xsImport);\n\t\t\t\n\t\t\txsImport = doc.createElement( \"xs:import\" );\n\t\t\txsImport.setAttribute(\"namespace\", \"http://unicredit.eu/xmlns/CreditCode3/V1\");\n\t\t\txsImport.setAttribute(\"schemaLocation\", \"cmm_CreditCode3.xsd\");\n\t\t\tschema.appendChild(xsImport);\n\n\t\t\txsImport = doc.createElement( \"xs:import\" );\n\t\t\txsImport.setAttribute(\"namespace\", \"http://unicredit.eu/xmlns/CreditTechnicalForm/V1\");\n\t\t\txsImport.setAttribute(\"schemaLocation\", \"cmm_CreditTechnicalForm.xsd\");\n\t\t\tschema.appendChild(xsImport);\n\t\t\t\n\t\t\txsImport = doc.createElement( \"xs:import\" );\n\t\t\txsImport.setAttribute(\"namespace\", \"http://unicredit.eu/xmlns/PositiveAmount/V1\");\n\t\t\txsImport.setAttribute(\"schemaLocation\", \"cmm_PositiveAmount.xsd\");\n\t\t\tschema.appendChild(xsImport);\n\n\t\t\txsImport = doc.createElement( \"xs:import\" );\n\t\t\txsImport.setAttribute(\"namespace\", \"http://unicredit.eu/xmlns/ISODate/V1\");\n\t\t\txsImport.setAttribute(\"schemaLocation\", \"cmm_ISODate.xsd\");\n\t\t\tschema.appendChild(xsImport);\n\t\t\t\n\t\t\txsImport = doc.createElement( \"xs:import\" );\n\t\t\txsImport.setAttribute(\"namespace\", \"http://unicredit.eu/xmlns/ProductArrangementType/V1\");\n\t\t\txsImport.setAttribute(\"schemaLocation\", \"cmm_ProductArrangementType.xsd\");\n\t\t\tschema.appendChild(xsImport);\n\n\t\t\txsImport = doc.createElement( \"xs:import\" );\n\t\t\txsImport.setAttribute(\"namespace\", \"http://unicredit.eu/xmlns/CreditProposalIdentifier8/V1\");\n\t\t\txsImport.setAttribute(\"schemaLocation\", \"cmm_CreditProposalIdentifier8.xsd\");\n\t\t\tschema.appendChild(xsImport);\n\t\t\t\n\t\t\t\t\t\n\t\t\tdoc.appendChild(schema);\n\t\t\t\n\t\t\t\n\t\t\t// write the content into xml file\n \t\tTransformerFactory transformerFactory = TransformerFactory.newInstance();\n \t\tTransformer transformer = transformerFactory.newTransformer();\n \t\ttransformer.setOutputProperty(OutputKeys.ENCODING, \"UTF-8\");\n \t\ttransformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\n \t\ttransformer.setOutputProperty(\n \t\t\t\t \"{http://xml.apache.org/xslt}indent-amount\", \"5\");\n \t\tDOMSource source = new DOMSource(doc);\n \t\tString fileOutput = \"result\\\\resultGroup.xsd\";\n \t\tStreamResult result = new StreamResult(new File( fileOutput ));\n\n \t\t// Output to console for testing\n \t\t// StreamResult result = new StreamResult(System.out);\n\n \t\ttransformer.transform(source, result);\n\t\t\t\n\t\t} catch (ParserConfigurationException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (TransformerConfigurationException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (TransformerException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"@Override\n\tpublic void saveOrUpdate(Group group) throws ServiceException {\n\n\t}",
"public final void ruleSignature() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalGo.g:792:2: ( ( ( rule__Signature__Group__0 ) ) )\r\n // InternalGo.g:793:2: ( ( rule__Signature__Group__0 ) )\r\n {\r\n // InternalGo.g:793:2: ( ( rule__Signature__Group__0 ) )\r\n // InternalGo.g:794:3: ( rule__Signature__Group__0 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getSignatureAccess().getGroup()); \r\n }\r\n // InternalGo.g:795:3: ( rule__Signature__Group__0 )\r\n // InternalGo.g:795:4: rule__Signature__Group__0\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__Signature__Group__0();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getSignatureAccess().getGroup()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public void saveTemplate(String toastText) {\n SimpleDateFormat simpleDateFormatY = new SimpleDateFormat(\"yyyy\");\n SimpleDateFormat simpleDateFormatM = new SimpleDateFormat(\"MM\");\n SimpleDateFormat simpleDateFormatD = new SimpleDateFormat(\"dd\");\n SimpleDateFormat simpleDateFormatH = new SimpleDateFormat(\"HH\");\n SimpleDateFormat simpleDateFormatMin = new SimpleDateFormat(\"mm\");\n SimpleDateFormat simpleDateFormatS = new SimpleDateFormat(\"ss\");\n String year = simpleDateFormatY.format(System.currentTimeMillis());\n String month = simpleDateFormatM.format(System.currentTimeMillis());\n String day = simpleDateFormatD.format(System.currentTimeMillis());\n String hour = simpleDateFormatH.format(System.currentTimeMillis());\n String minute = simpleDateFormatMin.format(System.currentTimeMillis());\n String second = simpleDateFormatS.format(System.currentTimeMillis());\n mDatabaseManager.addDataInTemplateTable(\n new TemplateEntity(mTemplateId, mOrganizationId, mCurrencyShortForm,\n mStartValue, mDirection, mAction, year + \"-\" + month + \"-\" + day + \" \" + hour + \":\" + minute + \";\" + second)\n );\n mBaseActivity.showToast(toastText);\n isSaved = true;\n switch (mRootParameter) {\n case ConstantsManager.CONVERTER_OPEN_FROM_TEMPLATES:\n case ConstantsManager.CONVERTER_OPEN_FROM_CURRENCY:\n case ConstantsManager.CONVERTER_OPEN_FROM_ORGANIZATION:\n getActivity().setResult(ConstantsManager.CONVERTER_ACTIVITY_RESULT_CODE_CHANGED);\n if (isFinish) {\n getActivity().finish();\n }\n break;\n }\n }",
"private static byte[] sign(KeyPair keyPair, Path path, String signatureAlgorithm)\n\t{\n\t\tbyte[] signature = null;\n\n\t\ttry\n\t\t{\n\t\t\tbyte[] dataFromFile = Files.readAllBytes(path);\n\t\t\tSignature sign = Signature.getInstance(signatureAlgorithm);\n\t\t\tsign.initSign(keyPair.getPrivate());\n\t\t\tsign.update(dataFromFile);\n\t\t\tsignature = sign.sign();\n\t\t} catch (IOException | InvalidKeyException | NoSuchAlgorithmException | SignatureException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn signature;\n\t}",
"public PSTemplate save(PSTemplate template, String siteId, String pageId) throws PSDataServiceException;",
"public byte[] generateSignature()\n {\n if (!forSigning)\n {\n throw new IllegalStateException(\"PairingDigestSigner not initialised for signature generation.\");\n }\n\n byte[] hash = new byte[digest.getDigestSize()];\n digest.doFinal(hash, 0);\n\n Element[] sig = pairingSigner.generateSignature(hash);\n\n try {\n return pairingSigner.derEncode(sig);\n } catch (IOException e) {\n throw new IllegalStateException(\"unable to encode signature\");\n }\n }",
"public static byte [] sign(PrivateKey signatureKey, byte [] plainText){\r\n\t\ttry {\r\n\t\t\tSignature signer = Signature.getInstance(signatureAlgorithm);\r\n\t\t\tsigner.initSign(signatureKey);\r\n\t\t\tsigner.update(plainText);\r\n\t\t\treturn signer.sign();\r\n\t\t} catch (SignatureException | NoSuchAlgorithmException | InvalidKeyException e) {\r\n\t\t\t// should not happen\r\n\t\t\tthrow new ModelException(\"Unable to sign message \"+new String(Arrays.copyOf(plainText, 10))+\"...\",e);\r\n\t\t}\r\n\t}",
"@Test\n public void createSubjectGroupTest() throws Exception\n {\n SubjectKey userKey = getUserKey(\"jdoe\");\n IPSubject ip = new IPSubject();\n \n SubjectGroup subjectGroup = new SubjectGroup();\n subjectGroup.setSubjectGroupName(\"network\");\n subjectGroup.setSubjectType(\"IP\");\n subjectGroup.setApplyToAll(Boolean.valueOf(true));\n subjectGroup.setApplyToEach(Boolean.valueOf(true));\n \n SubjectGroupEditObject sgEditObj = new SubjectGroupEditObject();\n List<Long> addList = sgEditObj.getAddSubjectList();\n addList.add(ip.getSubjectByName(\"workstation\").keySet().toArray(new Long[1])[0]);\n addList.add(ip.getSubjectByName(\"gateway\").keySet().toArray(new Long[1])[0]);\n \n SubjectGroupKey groupKey = ip.createSubjectGroup(subjectGroup, sgEditObj, userKey);\n \n EntityManagerContext.open(factory);\n try {\n org.ebayopensource.turmeric.policyservice.model.SubjectGroup savedSubjectGroup =\n EntityManagerContext.get().find(\n org.ebayopensource.turmeric.policyservice.model.SubjectGroup.class, \n groupKey.getSubjectGroupId());\n assertNotNull(savedSubjectGroup);\n } finally {\n EntityManagerContext.close();\n }\n }",
"public void sign(String reason, String location) throws IOException, DocumentException, GeneralSecurityException {\n\t\tPdfReader reader = new PdfReader(src);\n\t\tFileOutputStream os = new FileOutputStream(dest);\n\t\t\n\t\tPdfStamper sello = PdfStamper.createSignature(reader, os, '\\0');\n\t\t\n\t\t//Creamos el sello y su localización.\n\t\tPdfSignatureAppearance apariencia = sello.getSignatureAppearance();\n\t\tapariencia.setReason(reason);\n\t\tapariencia.setLocation(location);\n\t\tapariencia.setVisibleSignature(new Rectangle(36, 748, 144, 700), 1, \"sig\");\n\t\t\n\t\t//Creamos la firma.\n\t\tExternalSignature pks = new PrivateKeySignature(pk, DigestAlgorithms.SHA256, provider.getName());\n\t\t\n\t\tExternalDigest digest = new BouncyCastleDigest();\n\t\t\n\t\tMakeSignature.signDetached(apariencia, digest, pks, chain, \n\t\t\t\tnull, null, null, 0, CryptoStandard.CMS);\n\t}",
"public final void rule__TimeSignature__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../ufscar.Compiladores2.ui/src-gen/ufscar/compiladores2/ui/contentassist/antlr/internal/InternalMusy.g:2624:1: ( rule__TimeSignature__Group__0__Impl rule__TimeSignature__Group__1 )\n // ../ufscar.Compiladores2.ui/src-gen/ufscar/compiladores2/ui/contentassist/antlr/internal/InternalMusy.g:2625:2: rule__TimeSignature__Group__0__Impl rule__TimeSignature__Group__1\n {\n pushFollow(FOLLOW_rule__TimeSignature__Group__0__Impl_in_rule__TimeSignature__Group__05341);\n rule__TimeSignature__Group__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__TimeSignature__Group__1_in_rule__TimeSignature__Group__05344);\n rule__TimeSignature__Group__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"private void saveTemplate()\r\n {\r\n\t String template = keyField.getText();\r\n\r\n\t int lenI = values.length, lenJ, lenK;\r\n\t String[][][] newValues = new String[lenI][][];\r\n\t for (int i=0; i<lenI; i++)\r\n\t {\r\n\t\t lenJ = values[i].length;\r\n\t\t newValues[i] = new String[lenJ][];\r\n\t\t for (int j=0; j<lenJ; j++)\r\n\t\t {\r\n\t\t\t lenK = values[i][j].length;\r\n\t\t\t newValues[i][j] = new String[lenK];\r\n\t\t\t for (int k=0; k<lenK; k++)\r\n\t\t\t\t values[i][j][k] = values[i][j][k];\r\n\t\t }\r\n\t }\r\n\t \r\n\t if (template.length()==0)\r\n\t {\r\n\t\t label.setText(\"Please enter a valid template name\");\r\n\t\t return;\r\n\t }\r\n\t \r\n\t // Update or store to the list of templates.\r\n for (int i=0; i<newValues.length; i++)\r\n \t for (int j=0; j<newValues[i].length; j++)\r\n\t\t\t newValues[i][j] = getComponentArray(components[i][j]);\r\n \r\n \t if (!definitionBox.isSelected())\r\n \t {\r\n \t\t newValues[FormatData.t.D_HDR.ordinal()] \r\n \t\t\t\t = newValues[FormatData.t.D_FLD.ordinal()] \r\n \t\t\t\t\t\t = new String[0][0];\r\n \t }\r\n \t if (!categoryBox.isSelected())\r\n \t {\r\n \t\t newValues[FormatData.t.C_HDR.ordinal()] \r\n \t\t\t\t = newValues[FormatData.t.C_FLD.ordinal()] \r\n \t\t\t\t\t\t = new String[0][0];\r\n \t }\r\n \t if (!exampleBox.isSelected())\r\n \t {\r\n \t\t newValues[FormatData.t.E_HDR.ordinal()] \r\n \t\t\t\t = newValues[FormatData.t.E_FLD.ordinal()] \r\n \t\t\t\t\t\t = new String[0][0];\r\n \t }\r\n\r\n templates.setTemplate(template, newValues);\r\n\r\n if (!model.contains(template))\r\n\t {\r\n\t int size = templateKeys.length;\r\n\t String[] newTemplates = new String[templateKeys.length + 1];\r\n\t if (templateKeys.length != 0)\r\n\t \t System.arraycopy(templateKeys, 0, newTemplates, 0, size);\r\n\t \r\n\t newTemplates[size] = template;\r\n\t templateKeys = newTemplates;\r\n\t model.add(size, templateKeys[size]);\r\n\t list.setSelectedIndex(size);\r\n\t }\r\n label.setText(\"Display format \" + template + \" saved\");\r\n }",
"public PSTemplate save(PSTemplate template, String siteId) throws PSDataServiceException;",
"public abstract String getSignature();",
"protected SignResult makeSignature(InputStream inputStream,\n String artifactId, String classifier, String version,\n String extension) {\n\n String targetExt = extension + \".asc\";\n String targetName = artifactId + '-' + version;\n\n if (classifier != null && !classifier.isEmpty()) {\n targetName += \"-\" + classifier;\n }\n\n targetName += \".\" + targetExt;\n\n Path target = Paths.get(project.getBuild().getDirectory(), targetName);\n\n pgpSigner.sign(inputStream, target);\n\n return new SignResult(classifier, targetExt, target.toFile());\n }",
"com.google.protobuf.ByteString getSignature();",
"public final void rule__TimeSignature__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../ufscar.Compiladores2.ui/src-gen/ufscar/compiladores2/ui/contentassist/antlr/internal/InternalMusy.g:2653:1: ( rule__TimeSignature__Group__1__Impl rule__TimeSignature__Group__2 )\n // ../ufscar.Compiladores2.ui/src-gen/ufscar/compiladores2/ui/contentassist/antlr/internal/InternalMusy.g:2654:2: rule__TimeSignature__Group__1__Impl rule__TimeSignature__Group__2\n {\n pushFollow(FOLLOW_rule__TimeSignature__Group__1__Impl_in_rule__TimeSignature__Group__15401);\n rule__TimeSignature__Group__1__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__TimeSignature__Group__2_in_rule__TimeSignature__Group__15404);\n rule__TimeSignature__Group__2();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"SignatureSink createSignatureSink();",
"@Override\n\tprotected synchronized <T extends Group> T persistNewGroup(T group) throws DataBackendException\n {\n try\n {\n \t\n ((TorqueAbstractSecurityEntity)group).save();\n }\n catch (Exception e)\n {\n throw new DataBackendException(\"Adding Group '\" + group.getName() + \"' failed\", e);\n }\n\n return group;\n }",
"int insert(SeGroup record);",
"int insert(SbGroupDetail record);",
"public final void rule__Signature__Group__0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalGo.g:6134:1: ( rule__Signature__Group__0__Impl rule__Signature__Group__1 )\r\n // InternalGo.g:6135:2: rule__Signature__Group__0__Impl rule__Signature__Group__1\r\n {\r\n pushFollow(FOLLOW_17);\r\n rule__Signature__Group__0__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_2);\r\n rule__Signature__Group__1();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"SignatureIdentification createSignatureIdentification();",
"public final void rule__Signature__Group__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalGo.g:6161:1: ( rule__Signature__Group__1__Impl )\r\n // InternalGo.g:6162:2: rule__Signature__Group__1__Impl\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__Signature__Group__1__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void ruleTimeSignature() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../ufscar.Compiladores2.ui/src-gen/ufscar/compiladores2/ui/contentassist/antlr/internal/InternalMusy.g:297:2: ( ( ( rule__TimeSignature__Group__0 ) ) )\n // ../ufscar.Compiladores2.ui/src-gen/ufscar/compiladores2/ui/contentassist/antlr/internal/InternalMusy.g:298:1: ( ( rule__TimeSignature__Group__0 ) )\n {\n // ../ufscar.Compiladores2.ui/src-gen/ufscar/compiladores2/ui/contentassist/antlr/internal/InternalMusy.g:298:1: ( ( rule__TimeSignature__Group__0 ) )\n // ../ufscar.Compiladores2.ui/src-gen/ufscar/compiladores2/ui/contentassist/antlr/internal/InternalMusy.g:299:1: ( rule__TimeSignature__Group__0 )\n {\n before(grammarAccess.getTimeSignatureAccess().getGroup()); \n // ../ufscar.Compiladores2.ui/src-gen/ufscar/compiladores2/ui/contentassist/antlr/internal/InternalMusy.g:300:1: ( rule__TimeSignature__Group__0 )\n // ../ufscar.Compiladores2.ui/src-gen/ufscar/compiladores2/ui/contentassist/antlr/internal/InternalMusy.g:300:2: rule__TimeSignature__Group__0\n {\n pushFollow(FOLLOW_rule__TimeSignature__Group__0_in_ruleTimeSignature574);\n rule__TimeSignature__Group__0();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getTimeSignatureAccess().getGroup()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"@Override\n public void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n GroupDao daoGroup = (GroupDao) this.getServletContext().getAttribute(\"dao-group\");\n\n assert ServletFileUpload.isMultipartContent(req);\n CloudStorageHelper storageHelper = (CloudStorageHelper) getServletContext().getAttribute(\"storageHelper\");\n\n String newImageUrl = null;\n Map<String, String> params = new HashMap<String, String>();\n try {\n FileItemIterator iter = new ServletFileUpload().getItemIterator(req);\n while (iter.hasNext()) {\n FileItemStream item = iter.next();\n if (item.isFormField()) {\n params.put(item.getFieldName(), Streams.asString(item.openStream()));\n } else if (!Strings.isNullOrEmpty(item.getName())) {\n newImageUrl = storageHelper.uploadFile(\n item, getServletContext().getInitParameter(\"personshelf.bucket\"));\n }\n }\n } catch (FileUploadException e) {\n throw new IOException(e);\n }\n\n try {\n Group oldGroup = daoGroup.readGroup(Long.decode(params.get(\"id\")));\n\n // [START personBuilder]\n Group group = new Group.Builder()\n .id(Long.decode(params.get(\"id\")))\n .name(params.get(\"name\"))\n .introduction(params.get(\"introduction\"))\n .category(params.get(\"category\"))\n .status(params.get(\"status\"))\n .description(params.get(\"description\"))\n .imageUrl(null == newImageUrl ? params.get(\"imageUrl\") : newImageUrl)\n // [START auth]\n .createdBy(oldGroup.getCreatedBy())\n .createdById(oldGroup.getCreatedById())\n .createdDate(oldGroup.getCreatedDate())\n // [END auth]\n .build();\n // [END groupBuilder]\n\n daoGroup.updateGroup(group);\n resp.sendRedirect(\"read?id=\" + params.get(\"id\"));\n } catch (Exception e) {\n throw new ServletException(\"Error updating group\", e);\n }\n }",
"int getSignature ();",
"@Override\r\n protected Text generateGroupKey(IntermediateData tmo)\r\n {\n String line = ((Text) tmo.getData()).toString();\r\n String[] tokens = line.split(Main.INPUT_SPLIT);\r\n String groupkey = tokens[0];\r\n return new Text(groupkey);\r\n }",
"String componentSignature();",
"public abstract byte[] getSignature();",
"public static byte[] SignWithPrivateKey(byte[] buf,PrivateKey pkey) throws Exception{\r\n\t\tSecureRandom secureRandom = new SecureRandom();\r\n\t\tSignature signature = Signature.getInstance(\"SHA1WithECDSA\");\r\n\t\tsignature.initSign(pkey,secureRandom);\r\n\t\tsignature.update(buf);\r\n\t\tbyte[] digitalSignature = signature.sign();\r\n\t\treturn digitalSignature;\r\n\t\t\r\n\t}",
"public interface SignatureFactory \n{\n /** \n * initializes the implementation class \n */\n public void init()\n throws SignedDocException;\n \n /**\n * Method returns an array of strings representing the \n * list of available token names.\n * @return an array of available token names.\n * @throws SignedDocException if reading the token information fails.\n */\n public String[] getAvailableTokenNames()\n throws SignedDocException;\n \n /**\n * Method returns a digital signature. It finds the RSA private \n * key object from the active token and\n * then signs the given data with this key and RSA mechanism.\n * @param digest digest of the data to be signed.\n * @param token token index\n * @param pin users pin code\n * @return an array of bytes containing digital signature.\n * @throws SignedDocException if signing the data fails.\n */\n public byte[] sign(byte[] digest, int token, String pin) \n throws SignedDocException;\n \n /**\n * Method returns a X.509 certificate object readed \n * from the active token and representing an\n * user public key certificate value.\n * @return X.509 certificate object.\n * @throws SignedDocException if getting X.509 public key certificate \n * fails or the requested certificate type X.509 is not available in \n * the default provider package\n */\n public X509Certificate getCertificate(int token, String pin)\n throws SignedDocException;\n \n /**\n * Resets the previous session\n * and other selected values\n */\n public void reset() \n throws SignedDocException;\n \n\t/**\n\t * Method decrypts the data with the RSA private key\n\t * corresponding to this certificate (which was used\n\t * to encrypt it). Decryption will be done on the card.\n\t * This operation closes the possibly opened previous\n\t * session with signature token and opens a new one with\n\t * authentication token if necessary\n\t * @param data data to be decrypted.\n\t * @param token index of authentication token\n\t * @param pin PIN code\n\t * @return decrypted data.\n\t * @throws SignedDocException for all decryption errors\n\t */\n\tpublic byte[] decrypt(byte[] data, int token, String pin) \n\t\tthrows SignedDocException;\n\t\t\t\t\n}",
"public static void writeRootGroup(Path pathGroupFile) throws IOException {\n\t\tBufferedWriter writer = null;\n\n\t\ttry {\n\n\t\t\twriter = Files.newBufferedWriter(pathGroupFile, StandardOpenOption.APPEND);\n\n\t\t\twriter.write(STRING_CREATE_ROOT_GROUP);\n\n\t\t} finally {\n\t\t\tif (writer != null)\n\t\t\t\twriter.close();\n\t\t}\n\t}",
"@Override\n\tpublic Document signDocument(Document doc, PrivateKey privateKey, Certificate cert) throws XMLSecurityException {\n\t\tElement rootEl = doc.getDocumentElement();\n\t\tcom.sun.org.apache.xml.internal.security.Init.init();\n\t\tXMLSignature sig = new XMLSignature(doc, null, XMLSignature.ALGO_ID_SIGNATURE_RSA_SHA1);\n\n\t\tTransforms transform = new Transforms(doc);\n\n\t\ttransform.addTransform(Transforms.TRANSFORM_ENVELOPED_SIGNATURE);\n\n\t\ttransform.addTransform(Transforms.TRANSFORM_C14N11_WITH_COMMENTS);\n\n\t\tsig.addDocument(\"\", transform, MessageDigestAlgorithm.ALGO_ID_DIGEST_SHA1);\n\n\t\tsig.addKeyInfo(cert.getPublicKey());\n\t\tsig.addKeyInfo((X509Certificate) cert);\n\n\t\trootEl.appendChild(sig.getElement());\n\t\tsig.sign(privateKey);\n\t\treturn doc;\n\n\t}",
"public void writeSignature(IProgressMonitor monitor) throws CoreException;",
"public final void rule__Model__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../eu.artist.migration.mdt.database.sql.editor.ui/src-gen/eu/artist/migration/mdt/database/sql/editor/ui/contentassist/antlr/internal/InternalSQLDSL.g:511:1: ( ( ( rule__Model__InsertSQLAssignment_2 )* ) )\n // ../eu.artist.migration.mdt.database.sql.editor.ui/src-gen/eu/artist/migration/mdt/database/sql/editor/ui/contentassist/antlr/internal/InternalSQLDSL.g:512:1: ( ( rule__Model__InsertSQLAssignment_2 )* )\n {\n // ../eu.artist.migration.mdt.database.sql.editor.ui/src-gen/eu/artist/migration/mdt/database/sql/editor/ui/contentassist/antlr/internal/InternalSQLDSL.g:512:1: ( ( rule__Model__InsertSQLAssignment_2 )* )\n // ../eu.artist.migration.mdt.database.sql.editor.ui/src-gen/eu/artist/migration/mdt/database/sql/editor/ui/contentassist/antlr/internal/InternalSQLDSL.g:513:1: ( rule__Model__InsertSQLAssignment_2 )*\n {\n before(grammarAccess.getModelAccess().getInsertSQLAssignment_2()); \n // ../eu.artist.migration.mdt.database.sql.editor.ui/src-gen/eu/artist/migration/mdt/database/sql/editor/ui/contentassist/antlr/internal/InternalSQLDSL.g:514:1: ( rule__Model__InsertSQLAssignment_2 )*\n loop6:\n do {\n int alt6=2;\n int LA6_0 = input.LA(1);\n\n if ( (LA6_0==18) ) {\n alt6=1;\n }\n\n\n switch (alt6) {\n \tcase 1 :\n \t // ../eu.artist.migration.mdt.database.sql.editor.ui/src-gen/eu/artist/migration/mdt/database/sql/editor/ui/contentassist/antlr/internal/InternalSQLDSL.g:514:2: rule__Model__InsertSQLAssignment_2\n \t {\n \t pushFollow(FOLLOW_rule__Model__InsertSQLAssignment_2_in_rule__Model__Group__2__Impl1040);\n \t rule__Model__InsertSQLAssignment_2();\n\n \t state._fsp--;\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop6;\n }\n } while (true);\n\n after(grammarAccess.getModelAccess().getInsertSQLAssignment_2()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public static void main(String[] args) {\n\n String pfx = \"E:\\\\PDFFileTest\\\\1.pfx\";\n String tmpPath = \"E:\\\\PDFFileTest\\\\1562570792439.pdf\";\n String expPath = \"E:\\\\PDFFileTest\\\\11.11\\\\h83.pdf\";\n String gif = \"E:\\\\PDFFileTest\\\\1.gif\";\n String password = \"111111\";\n try {\n sign(pfx, tmpPath, expPath, gif, password);\n System.out.println(\"success\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public TravelGroup insertTravelGroup(TravelGroup travelGroup);",
"public void saveFile(MultipartFile file,Document document){\n document.setKey(UUID.randomUUID().toString());\n document.setLink(UUID.randomUUID().toString());\n\n }",
"public String getSignature()\r\n {\r\n return signature;\r\n }",
"byte[] generateSignature(byte[] message, PrivateKey privateKey, SecureRandom secureRandom) throws IOException;",
"public void exportGroup ()\n {\n if (_chooser.showSaveDialog(ConfigEditor.this) == JFileChooser.APPROVE_OPTION) {\n group.save(_chooser.getSelectedFile());\n }\n _prefs.put(\"config_dir\", _chooser.getCurrentDirectory().toString());\n }",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.FinancialStatement addNewFinancialStatementsGroup();",
"@Override\n\tpublic void doSaveAs() {\n\n\t}",
"UserGroup save(UserGroup group);",
"public String getSignature() {\n return signature;\n }",
"public String getSignature() {\n return signature;\n }",
"public String getSignature() {\n return signature;\n }",
"public void saveToStream(OutputStream stream) throws CoreException {\n\ttry {\n\t DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n\t DocumentBuilder builder = factory.newDocumentBuilder();\n\t Document document = builder.newDocument();\n\n\t Node root = document.createElement(\"templates\"); // $NON-NLS-1$ //$NON-NLS-1$\n\t document.appendChild(root);\n\n\t for (int i = 0; i != fTemplates.size(); i++) {\n\t\tTemplate template = (Template) fTemplates.get(i);\n\n\t\tNode node = document.createElement(\"template\"); // $NON-NLS-1$ //$NON-NLS-1$\n\t\troot.appendChild(node);\n\n\t\tNamedNodeMap attributes = node.getAttributes();\n\n\t\tAttr name = document.createAttribute(NAME_ATTRIBUTE);\n\t\tname.setValue(template.getName());\n\t\tattributes.setNamedItem(name);\n\n\t\tAttr description = document.createAttribute(DESCRIPTION_ATTRIBUTE);\n\t\tdescription.setValue(template.getDescription());\n\t\tattributes.setNamedItem(description);\n\n\t\tAttr context = document.createAttribute(CONTEXT_ATTRIBUTE);\n\t\tcontext.setValue(template.getContextTypeName());\n\t\tattributes.setNamedItem(context);\n\n\t\tAttr enabled = document.createAttribute(ENABLED_ATTRIBUTE);\n\t\tenabled.setValue(template.isEnabled() ? \"true\" : \"false\"); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tattributes.setNamedItem(enabled);\n\n\t\tText pattern = document.createTextNode(template.getPattern());\n\t\tnode.appendChild(pattern);\n\t }\n\n\t OutputFormat format = new OutputFormat();\n\t format.setPreserveSpace(true);\n\t Serializer serializer = SerializerFactory.getSerializerFactory(\"xml\").makeSerializer(stream, format); //$NON-NLS-1$\n\t serializer.asDOMSerializer().serialize(document);\n\n\t} catch (ParserConfigurationException e) {\n\t throwWriteException(e);\n\t} catch (IOException e) {\n\t throwWriteException(e);\n\t}\n }",
"@Override\n public void sign(String privateKey) {\n credentials.removeAttribute(HttpDigestCredentials.SIGNATURE);\n\n String joined;\n try {\n StringJoiner joiner = new StringJoiner(\"&\");\n joiner.add(method.toUpperCase())\n .add(CodecUtils.urlEncode(uri))\n .add(credentials.asString(false))\n .add(collect());\n joined = joiner.toString();\n } catch (UnsupportedEncodingException e) {\n /* fall back to original url. */\n StringJoiner joiner = new StringJoiner(\"&\");\n joiner.add(method.toUpperCase())\n .add(uri)\n .add(credentials.asString(false))\n .add(collect());\n joined = joiner.toString();\n }\n\n if (logger.isTraceEnabled()) {\n logger.trace(\"> sign on: {{}}\", joined);\n }\n\n String signature = SignatureUtil.sign(\n joined.getBytes(),\n privateKey,\n credentials.getAttribute(HttpDigestCredentials.SIGNATURE_METHOD));\n credentials.setAttribute(HttpDigestCredentials.SIGNATURE, signature);\n\n if (logger.isTraceEnabled()) {\n logger.trace(\"> signature: {{}}\", signature);\n }\n }",
"private void generateGraphSignature() {\n \t this.generateVertexSignatures();\n \t Collections.sort(this.vertexSignatures);\n \t this.graphSignature = this.vertexSignatures.get(0);\n \t}",
"public ISignature getSignature() {\n return _signature;\n }",
"String signingRegion();",
"private static void signProjectDocuments(XMLSignature signature, String pathToProject, String subFoldersPath)\n\t\t\tthrows Exception {\n\t\tFile targetFolder = new File(pathToProject);\n\t\ttry {\n\t\t\tfor (String fileName : targetFolder.list()) {\n\t\t\t\t// IResource projectMember = projectMembers[i];\n\t\t\t\tString pathToFile = pathToProject + File.separator + fileName;\n\t\t\t\tFile fileInTargetFolder = new File(pathToFile);\n\t\t\t\tif (!isFolder(fileInTargetFolder)) {\n\n\t\t\t\t\tif (!SignatureUtility.checkForDistributorSignatureFile(fileName) && !fileName.equals(\".project\")) { //$NON-NLS-1$\n\t\t\t\t\t\tif (fileInTargetFolder.exists()\n\t\t\t\t\t\t\t\t&& !fileInTargetFolder.isHidden()\n\t\t\t\t\t\t\t\t&& !fileInTargetFolder.getName().endsWith(\"~\") //$NON-NLS-1$\n\t\t\t\t\t\t\t\t&& !fileInTargetFolder.getName().startsWith(\".\") && !SignatureUtility.checkForWgtPackage(fileName)) { //$NON-NLS-1$\n\t\t\t\t\t\t\tif ((!fileName.equals(SignatureUtility.AUTHOR_SIGNATURE))) {\n\t\t\t\t\t\t\t\t// String path = ((IFile)\n\t\t\t\t\t\t\t\t// projectMember).getProjectRelativePath().toString();\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tsignature.addDocument(subFoldersPath + fileName, null, SignatureConstants.SHA256);\n\t\t\t\t\t\t\t\t} catch (XMLSignatureException e) {\n\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else if (isFolder(fileInTargetFolder)) {\n\t\t\t\t\tif (fileInTargetFolder != null && fileInTargetFolder.exists() && !fileInTargetFolder.isHidden()\n\t\t\t\t\t\t\t&& !fileInTargetFolder.getName().startsWith(\".\")) //$NON-NLS-1$\n\n\t\t\t\t\t\tsignProjectDocuments(signature, pathToProject + File.separator + fileName, subFoldersPath\n\t\t\t\t\t\t\t\t+ fileName + \"/\");\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow e;\n\t\t}\n\t}",
"public final void rule__TimeSignature__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../ufscar.Compiladores2.ui/src-gen/ufscar/compiladores2/ui/contentassist/antlr/internal/InternalMusy.g:2665:1: ( ( '/' ) )\n // ../ufscar.Compiladores2.ui/src-gen/ufscar/compiladores2/ui/contentassist/antlr/internal/InternalMusy.g:2666:1: ( '/' )\n {\n // ../ufscar.Compiladores2.ui/src-gen/ufscar/compiladores2/ui/contentassist/antlr/internal/InternalMusy.g:2666:1: ( '/' )\n // ../ufscar.Compiladores2.ui/src-gen/ufscar/compiladores2/ui/contentassist/antlr/internal/InternalMusy.g:2667:1: '/'\n {\n before(grammarAccess.getTimeSignatureAccess().getSolidusKeyword_1()); \n match(input,46,FOLLOW_46_in_rule__TimeSignature__Group__1__Impl5432); \n after(grammarAccess.getTimeSignatureAccess().getSolidusKeyword_1()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"void setSignatureImage(byte[] signatureImage);",
"public final void rule__Parameter__Group_1_0__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../ufscar.Compiladores2.ui/src-gen/ufscar/compiladores2/ui/contentassist/antlr/internal/InternalMusy.g:1491:1: ( ( 'TIME_SIGNATURE' ) )\n // ../ufscar.Compiladores2.ui/src-gen/ufscar/compiladores2/ui/contentassist/antlr/internal/InternalMusy.g:1492:1: ( 'TIME_SIGNATURE' )\n {\n // ../ufscar.Compiladores2.ui/src-gen/ufscar/compiladores2/ui/contentassist/antlr/internal/InternalMusy.g:1492:1: ( 'TIME_SIGNATURE' )\n // ../ufscar.Compiladores2.ui/src-gen/ufscar/compiladores2/ui/contentassist/antlr/internal/InternalMusy.g:1493:1: 'TIME_SIGNATURE'\n {\n before(grammarAccess.getParameterAccess().getTIME_SIGNATUREKeyword_1_0_0()); \n match(input,39,FOLLOW_39_in_rule__Parameter__Group_1_0__0__Impl3125); \n after(grammarAccess.getParameterAccess().getTIME_SIGNATUREKeyword_1_0_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__TimeSignature__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../ufscar.Compiladores2.ui/src-gen/ufscar/compiladores2/ui/contentassist/antlr/internal/InternalMusy.g:2636:1: ( ( ( rule__TimeSignature__QuantityAssignment_0 ) ) )\n // ../ufscar.Compiladores2.ui/src-gen/ufscar/compiladores2/ui/contentassist/antlr/internal/InternalMusy.g:2637:1: ( ( rule__TimeSignature__QuantityAssignment_0 ) )\n {\n // ../ufscar.Compiladores2.ui/src-gen/ufscar/compiladores2/ui/contentassist/antlr/internal/InternalMusy.g:2637:1: ( ( rule__TimeSignature__QuantityAssignment_0 ) )\n // ../ufscar.Compiladores2.ui/src-gen/ufscar/compiladores2/ui/contentassist/antlr/internal/InternalMusy.g:2638:1: ( rule__TimeSignature__QuantityAssignment_0 )\n {\n before(grammarAccess.getTimeSignatureAccess().getQuantityAssignment_0()); \n // ../ufscar.Compiladores2.ui/src-gen/ufscar/compiladores2/ui/contentassist/antlr/internal/InternalMusy.g:2639:1: ( rule__TimeSignature__QuantityAssignment_0 )\n // ../ufscar.Compiladores2.ui/src-gen/ufscar/compiladores2/ui/contentassist/antlr/internal/InternalMusy.g:2639:2: rule__TimeSignature__QuantityAssignment_0\n {\n pushFollow(FOLLOW_rule__TimeSignature__QuantityAssignment_0_in_rule__TimeSignature__Group__0__Impl5371);\n rule__TimeSignature__QuantityAssignment_0();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getTimeSignatureAccess().getQuantityAssignment_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"int insertSelective(PolicyGroup record);",
"public final void rule__TimeSignature__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../ufscar.Compiladores2.ui/src-gen/ufscar/compiladores2/ui/contentassist/antlr/internal/InternalMusy.g:2695:1: ( ( ( rule__TimeSignature__NoteAssignment_2 ) ) )\n // ../ufscar.Compiladores2.ui/src-gen/ufscar/compiladores2/ui/contentassist/antlr/internal/InternalMusy.g:2696:1: ( ( rule__TimeSignature__NoteAssignment_2 ) )\n {\n // ../ufscar.Compiladores2.ui/src-gen/ufscar/compiladores2/ui/contentassist/antlr/internal/InternalMusy.g:2696:1: ( ( rule__TimeSignature__NoteAssignment_2 ) )\n // ../ufscar.Compiladores2.ui/src-gen/ufscar/compiladores2/ui/contentassist/antlr/internal/InternalMusy.g:2697:1: ( rule__TimeSignature__NoteAssignment_2 )\n {\n before(grammarAccess.getTimeSignatureAccess().getNoteAssignment_2()); \n // ../ufscar.Compiladores2.ui/src-gen/ufscar/compiladores2/ui/contentassist/antlr/internal/InternalMusy.g:2698:1: ( rule__TimeSignature__NoteAssignment_2 )\n // ../ufscar.Compiladores2.ui/src-gen/ufscar/compiladores2/ui/contentassist/antlr/internal/InternalMusy.g:2698:2: rule__TimeSignature__NoteAssignment_2\n {\n pushFollow(FOLLOW_rule__TimeSignature__NoteAssignment_2_in_rule__TimeSignature__Group__2__Impl5490);\n rule__TimeSignature__NoteAssignment_2();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getTimeSignatureAccess().getNoteAssignment_2()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public interface SignatureObject {\n}",
"@Override\n\tpublic void doSaveAs() {\n\t}",
"BlsPoint sign(BigInteger privateKey, byte[] data);",
"public <T> byte[] generatePdfDocument(String group, String templateName, T data) {\n return innerGeneratePdfDocument(group, templateName, PdfTemplate.class, plainPlayloadSetter, data);\n }",
"public boolean verifySignature() {\r\n\t\t\r\n\t\tString data;\r\n\t\t\r\n\t\tif(isTypeCreation){\r\n\t\t\t\r\n\t\t\tdata = StringUtil.getStringFromKey(creator) + name +\r\n\t\t\t\t\tdescription + begin + end+end_subscription+\r\n\t\t\t\t\tlocation+min_capacity+max_capacity;\r\n\t\t\treturn StringUtil.verifyECDSASig(creator, data, signature);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tdata = StringUtil.getStringFromKey(subscriber)+id_event;\r\n\t\t\treturn StringUtil.verifyECDSASig(subscriber, data, signature);\r\n\t\t}\r\n//\t\tSystem.out.println(\"signature \"+signature);\r\n\t\t\r\n\t}",
"private void setSignature(com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n bitField0_ |= 0x00000010;\n signature_ = value;\n }",
"public static String signJWTWithRSA(JWTClaimsSet jwtClaimsSet, Key privateKey)\n throws RequestObjectException {\n SignedJWT signedJWT = getSignedJWT(jwtClaimsSet, (RSAPrivateKey) privateKey);\n return signedJWT.serialize();\n }",
"public void writeToFile() {\n\t\ttry {\n\t\t\tFileOutputStream file = new FileOutputStream(pathName);\n\t\t\tObjectOutputStream output = new ObjectOutputStream(file);\n\n\t\t\tMap<String, HashSet<String>> toSerialize = tagToImg;\n\t\t\toutput.writeObject(toSerialize);\n\t\t\toutput.close();\n\t\t\tfile.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}"
] | [
"0.68973166",
"0.6755743",
"0.57977325",
"0.5614171",
"0.5553273",
"0.5529732",
"0.5452695",
"0.54342115",
"0.5412775",
"0.53329176",
"0.53229296",
"0.52639586",
"0.5246358",
"0.5186183",
"0.518348",
"0.518348",
"0.518348",
"0.51478446",
"0.51214594",
"0.5120098",
"0.5096568",
"0.50906587",
"0.5069378",
"0.5048585",
"0.50389796",
"0.5036457",
"0.5035433",
"0.50288075",
"0.50236344",
"0.49928355",
"0.4966687",
"0.4964963",
"0.49593535",
"0.49515298",
"0.49412295",
"0.49321097",
"0.49154797",
"0.49093726",
"0.4905115",
"0.48952904",
"0.48870897",
"0.48801953",
"0.48683324",
"0.4864068",
"0.48615488",
"0.48561433",
"0.485226",
"0.48501098",
"0.48409808",
"0.48382682",
"0.48379716",
"0.4835841",
"0.48271278",
"0.48246694",
"0.48179975",
"0.48149467",
"0.47978437",
"0.47790888",
"0.47743785",
"0.47703776",
"0.476937",
"0.47421354",
"0.47389615",
"0.47309107",
"0.4728472",
"0.4726438",
"0.47254372",
"0.47170478",
"0.4712568",
"0.4707346",
"0.46873298",
"0.46862048",
"0.46726665",
"0.46713117",
"0.466581",
"0.46657133",
"0.46638408",
"0.46611542",
"0.46611542",
"0.46611542",
"0.46297625",
"0.46269786",
"0.4625506",
"0.46247178",
"0.46240216",
"0.46233055",
"0.46196637",
"0.46179193",
"0.4611887",
"0.46034595",
"0.46006194",
"0.4597265",
"0.45970848",
"0.45934662",
"0.4592281",
"0.4589007",
"0.4587121",
"0.45831174",
"0.45808005",
"0.45807162"
] | 0.73028064 | 0 |
return all list of Group Signature | public ArrayList<TemplateGroupSignature> getSignatureGroupTemplateList(Long idTemplate)
{
TemplateGroupSignatureDAO dao = new TemplateGroupSignatureDAO();
Template template = new Template();
template.setId(idTemplate);
Collection<TemplateGroupSignature> signatureList = dao.getAllFields(template);
ArrayList<TemplateGroupSignature> responseList = new ArrayList<TemplateGroupSignature>(signatureList);
loggerSingle.info("num group signature template "+idTemplate+": "+responseList.size());
return responseList;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Collection<TemplateSignature> getSignatureTemplateList(Long idGroupSignatureTemplate)\n\t{\n\t\tTemplateSignatureDAO dao = new TemplateSignatureDAO();\n\t\t\n\t\tTemplateGroupSignature group = new TemplateGroupSignature();\n\t\tgroup.setId(idGroupSignatureTemplate);\n\t\t\n\t\tCollection<TemplateSignature> responseList = dao.getAllFields(group);\n\t\tloggerSingle.info(\"num signature group \"+idGroupSignatureTemplate+\": \"+responseList.size());\n\t\treturn responseList;\n\t}",
"public java.util.List<io.grafeas.v1.Signature> getSignaturesList() {\n if (signaturesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(signatures_);\n } else {\n return signaturesBuilder_.getMessageList();\n }\n }",
"public Iterator getSignatures()\n {\n if (subSigs == null)\n {\n ArrayList sigs = new ArrayList();\n\n sigs.addAll(keySigs);\n\n for (int i = 0; i != idSigs.size(); i++)\n {\n sigs.addAll((Collection)idSigs.get(i));\n }\n \n return sigs.iterator();\n }\n else\n {\n return subSigs.iterator();\n }\n }",
"@java.lang.Override\n public java.util.List<io.grafeas.v1.Signature> getSignaturesList() {\n return signatures_;\n }",
"public java.util.List<? extends io.grafeas.v1.SignatureOrBuilder> getSignaturesOrBuilderList() {\n if (signaturesBuilder_ != null) {\n return signaturesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(signatures_);\n }\n }",
"Collection getUniqueKeysInGroup(Object groupID) throws Exception;",
"public List<SecGroup> getAllGroups();",
"@java.lang.Override\n public java.util.List<? extends io.grafeas.v1.SignatureOrBuilder> getSignaturesOrBuilderList() {\n return signatures_;\n }",
"@java.lang.Override\n public io.grafeas.v1.Signature getSignatures(int index) {\n return signatures_.get(index);\n }",
"Iterable<String> groups();",
"public static Result findAllFileGroups() {\n \tList<FileGroup> fgs = new FileGroup().findAllFileGroups();\n \treturn ok(Json.toJson(fgs));\n }",
"List<Group> getGroups();",
"public java.util.List<io.grafeas.v1.Signature.Builder> getSignaturesBuilderList() {\n return getSignaturesFieldBuilder().getBuilderList();\n }",
"public Set<String> getSignatures()\n/* */ {\n/* 150 */ return this.signatures;\n/* */ }",
"public Object[] getGroupList() {\n return grouptabs.keySet().toArray();\n }",
"@java.lang.Override\n public io.grafeas.v1.SignatureOrBuilder getSignaturesOrBuilder(int index) {\n return signatures_.get(index);\n }",
"byte[] getSignatureImage();",
"public String[] getSignature() {\n\t\treturn signature;\n\t}",
"List getElementIDsInGroupID(Object groupID) throws Exception;",
"public abstract Collection getGroups();",
"private Vector getGroupItems() {\n return protocol.getGroupItems();\n }",
"public List<GroupParameter> getParameters();",
"java.util.List<? extends com.yahoo.xpathproto.TransformTestProtos.ContentImageOrBuilder> \n getImagesByTransformOrBuilderList();",
"public io.grafeas.v1.Signature getSignatures(int index) {\n if (signaturesBuilder_ == null) {\n return signatures_.get(index);\n } else {\n return signaturesBuilder_.getMessage(index);\n }\n }",
"public ArrayList<JSONObject> getGroups() {\n return groups;\n }",
"public List <String> getGroups ()\n {\n return groups;\n }",
"@SuppressWarnings(\"serial\")\n\tpublic ArrayList<String> getGroups() throws Exception{\n\t\treturn new ArrayList<String>(){{\n\t\t\tUserRegistry ur = UserRegistry.findOrCreate(doc);\n\t\t\tGroups groups = Groups.findOrCreate(ur);\n\t\t\tfor(Group g:Group.list(groups))\n\t\t\t\tadd(g.getAttribute(\"name\"));\n\t\t}};\n\t}",
"public List<Group> getMyGroups() {\n String path = template.urlFor( UrlTemplate.GROUPS_PATH ).build();\n try {\n String stringResponse = client.get( path );\n Result<com.silanis.esl.api.model.Group> apiResponse = JacksonUtil.deserialize( stringResponse, new TypeReference<Result<com.silanis.esl.api.model.Group>>() {\n } );\n List<Group> result = new ArrayList<Group>();\n for ( com.silanis.esl.api.model.Group apiGroup : apiResponse.getResults() ) {\n result.add( new GroupConverter(apiGroup).toSDKGroup());\n }\n return result;\n } catch ( RequestException e ) {\n throw new EslServerException( \"Failed to retrieve Groups list.\", e );\n } catch ( Exception e ) {\n throw new EslException( \"Failed to retrieve Groups list.\", e );\n }\n }",
"java.util.List<com.yahoo.xpathproto.TransformTestProtos.ContentImage> \n getImagesByTransformList();",
"public static List<Group> getGroups() {\n try {\n String url = BASE_URL + \"groups\";\n return extractGroups(sendAuthenticated(new HttpGet(url)));\n } catch (Exception e) {\n e.printStackTrace();\n }\n return new ArrayList<>();\n }",
"Collection getForeignKeysInGroup(Object groupID) throws Exception;",
"@Override\r\n\tpublic List<GroupApply> groupAllshowonapproval() {\n\t\treturn this.groupRepository.groupAllshowonapproval();\r\n\t}",
"ArrayList<ExportedKeyData> generatePublicKeyList();",
"private static List<Element> getXMLGroups(Model model) {\n Set<Group> groups = new TreeSet<>(Comparators.objectsById());\n groups.addAll(model.getGroups(null));\n List<Element> result = new ArrayList<>(groups.size());\n for (Group curGroup : groups) {\n Element groupElement = new Element(\"group\");\n groupElement.setAttribute(\"id\", String.valueOf(curGroup.getId()));\n groupElement.setAttribute(\"name\", curGroup.getName());\n for (TCSObjectReference<?> curRef : curGroup.getMembers()) {\n Element memberElement = new Element(\"member\");\n memberElement.setAttribute(\"name\", curRef.getName());\n groupElement.addContent(memberElement);\n }\n for (Map.Entry<String, String> curEntry\n : curGroup.getProperties().entrySet()) {\n Element propertyElement = new Element(\"property\");\n propertyElement.setAttribute(\"name\", curEntry.getKey());\n propertyElement.setAttribute(\"value\", curEntry.getValue());\n groupElement.addContent(propertyElement);\n }\n result.add(groupElement);\n }\n return result;\n }",
"public byte[] getSignature()\n {\n return Arrays.clone(signature);\n }",
"java.util.List<? extends com.google.analytics.data.v1alpha.UserSegmentSequenceGroupOrBuilder>\n getAndSequenceGroupsOrBuilderList();",
"public void listGroup() {\r\n List<Group> groupList = groups;\r\n EventMessage evm = new EventMessage(\r\n EventMessage.EventAction.FIND_MULTIPLE,\r\n EventMessage.EventType.OK,\r\n EventMessage.EventTarget.GROUP,\r\n groupList);\r\n notifyObservers(evm);\r\n }",
"Collection getAccessPatternsInGroup(Object groupID) throws Exception;",
"@SuppressWarnings(\"unchecked\")\n public List getGroupBy() {\n if (_groupBy != null) {\n return Collections.unmodifiableList(_groupBy);\n }\n return Collections.EMPTY_LIST;\n }",
"private String[] getArrayGroupName() {\n java.util.List<StudentGroupThrift> studentGroupThrifts = mainWindow.getStudentClient().getAllStudentGroup();\n List<String> groupName = studentGroupThrifts.stream()\n .map(StudentGroupThrift::getName).collect(Collectors.toList());\n return groupName.toArray(new String[groupName.size()]);\n }",
"public static boolean isSigned_group() {\n return false;\n }",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.FinancialStatement[] getFinancialStatementsGroupArray();",
"<T> Collection<T> getXMLTempGroups(Object groupID) throws Exception;",
"java.lang.String getSignatureComments();",
"public Collection getGroups() throws Exception\r\n {\r\n // TODO Auto-generated method stub\r\n return null;\r\n }",
"public ArrayList<String> getGroupNames() {\n ArrayList<String> temp = new ArrayList<String>();\n\n for (Map.Entry<String, Integer[]> entry : tutLabGroups.entrySet()) {\n if (entry.getKey().equals(\"_LEC\")) {\n continue;\n }\n\n temp.add(entry.getKey());\n }\n\n return temp;\n }",
"abstract public void getCapturedGroups(Span[] capturedGroups);",
"java.util.List<message.Figure.FigureData.FigureBase> \n getFigureListList();",
"java.util.List<com.google.analytics.data.v1alpha.UserSegmentSequenceGroup>\n getAndSequenceGroupsList();",
"public List<Object> retrieveIncrementalGroups() {\n List<Object> result = new ArrayList<Object>();\n for (ProvisioningGroupWrapper provisioningGroupWrapper : this.provisioningGroupWrappers) {\n \n if (provisioningGroupWrapper.getGrouperTargetGroup() != null) {\n result.add(provisioningGroupWrapper.getGrouperTargetGroup());\n } else if (provisioningGroupWrapper.getGrouperProvisioningGroup() != null) {\n result.add(provisioningGroupWrapper.getGrouperProvisioningGroup());\n } else if (provisioningGroupWrapper.getGcGrouperSyncGroup() != null) {\n result.add(provisioningGroupWrapper.getGcGrouperSyncGroup());\n } else if (provisioningGroupWrapper.getProvisioningStateGroup() != null) {\n result.add(provisioningGroupWrapper.getProvisioningStateGroup());\n }\n }\n return result;\n }",
"String getSignature();",
"String getSignature();",
"String getSignature();",
"@GetMapping(\"/group\")\n\tResponseEntity<String> getAllGroup() {\n\t\tArrayList<Group> groupList = new ArrayList<Group>();\n\n\t\ttry {\n\t\t\tClass.forName(\"org.postgresql.Driver\");\n\t\t\tConnection conn = DriverManager.getConnection(connectionString());\n\n\t\t\tString storedProc = \"select * from get_all_group()\";\n\t\t\tPreparedStatement pstmt = conn.prepareStatement(storedProc);\n\t\t\tResultSet rs = pstmt.executeQuery();\n\n\t\t\twhile (rs.next()) {\n\t\t\t\tlong groupId = rs.getLong(\"id\");\n\t\t\t\tString groupName = rs.getString(\"name\");\n\t\t\t\tint subscriberCount = rs.getInt(\"subscriber_count\");\n\t\t\t\tString groupDesc = rs.getString(\"descr\");\n\t\t\t\tDate createdDate = rs.getDate(\"created_date\");\n\t\t\t\tDate updatedDate = rs.getDate(\"updated_date\");\n\t\t\t\tint categoryId = rs.getInt(\"category_id\");\n\n\t\t\t\tGroup group = new Group(groupId, groupName, subscriberCount, groupDesc, createdDate, updatedDate,\n\t\t\t\t\t\tcategoryId);\n\t\t\t\tgroupList.add(group);\n\t\t\t}\n\t\t} catch (SQLException err) {\n\t\t\tSystem.out.println(err.getMessage());\n\t\t\treturn ResponseEntity.status(HttpStatus.BAD_REQUEST).body(err.getMessage());\n\t\t} catch (ClassNotFoundException err) {\n\t\t\tSystem.out.println(err.getMessage());\n\t\t\treturn ResponseEntity.status(HttpStatus.BAD_REQUEST).body(err.getMessage());\n\t\t}\n\n\t\t// Convert group list to json\n\t\tString json = \"\";\n\n\t\ttry {\n\t\t\tObjectMapper mapper = new ObjectMapper();\n\t\t\tjson = mapper.writeValueAsString(groupList);\n\t\t} catch (Exception err) {\n\t\t\tSystem.out.println();\n\t\t\treturn ResponseEntity.status(HttpStatus.BAD_REQUEST).body(err.getMessage());\n\t\t}\n\n\t\treturn ResponseEntity.ok(json);\n\t}",
"private static List<Group> extractGroups(HttpResponse response) {\n List<Group> groups = new ArrayList<>();\n try {\n Gson gson = new Gson();\n Type listType = new TypeToken<ArrayList<Group>>() {\n }.getType();\n groups = gson.fromJson(EntityUtils.toString(response.getEntity()), listType);\n } catch (IOException e) {\n e.printStackTrace();\n }\n return groups;\n }",
"com.google.protobuf.ByteString getGroupBytes();",
"@JNICALL(returnType = \"java.lang.Object[]\")\n public /*Object[]*/ KReference getSigners(JNIEnv env, @THIS KReference ref) {\n //TODO fix me\n return null;\n }",
"public LinkedList<Group> getInputGroupList() {\n assert(invariant());\n return inputGroupList;\n }",
"public ArrayList<Group> getAllGroups(){\r\n\t\tArrayList<Group> groups = new ArrayList<Group>();\r\n\t\tSQLiteDatabase db = this.getReadableDatabase();\r\n\t\t\r\n\t\tCursor cursor = db.query(DBHelper.GROUP_TABLE_NAME,\r\n\t\t\t\tnew String[] {DBHelper.COLUMN_GROUPNAME}, \r\n\t\t\t\tnull, null, null, null, null);\r\n\t\t\r\n\t\tcursor.moveToFirst();\r\n\t while (!cursor.isAfterLast()) {\r\n\t groups.add(new Group(cursor.getString(0)));\r\n\t cursor.moveToNext();\r\n\t }\r\n\t \r\n\t cursor.close();\r\n\t db.close();\r\n\t \r\n\t return groups;\r\n\t}",
"public List<String> groupIds() {\n return this.groupIds;\n }",
"public abstract byte[] getSignature();",
"public ArrayList<SignLineElement> getSigners() {\n\t\treturn this.signers;\n\t}",
"public Collection<String> getGroupNames() {\n getGroupCache();\n if (groupNames == null) return null;\n return new ArrayList<String>(groupNames);\n }",
"java.util.List<KeyValuePair>\n getInfoList();",
"public List<Group> getGroups() {\n return groups;\n }",
"@RequestMapping(path = \"/v1/get-all-asset-group-apis\", method = RequestMethod.GET)\n \n public ResponseEntity<List<Map<String, Object>>> getAllAssetGroupApis() {\n try {\n List<Map<String, Object>> assetGroupDetails = assetGroupService\n .getAllAssetGroupApis();\n return new ResponseEntity<>(\n assetGroupDetails, HttpStatus.OK);\n } catch (Exception exception) {\n LOGGER.error(\"Exception in sendTextMail:\", exception);\n return new ResponseEntity<>(HttpStatus.FORBIDDEN);\n }\n }",
"java.util.List<com.icare.eai.schema.om.evSORequest.EvSORequestDocument.EvSORequest.Key> getKeyList();",
"public Map getPaymentGroupMap();",
"public List getParticipationGroups() \n { \n Connection con = null;\n PreparedStatement ps = null;\n ResultSet rs = null;\n List result = new LinkedList();\n \n try {\n \n //retrieve all the Participation Groups\n con = DBUtil.getConnection();\n ps = con.prepareStatement(SQL_SELECT_PARTICIPATION_GROUPS);\n rs = ps.executeQuery();\n \n //put the results into a list of ParticipationGroupData objects\n while (rs.next()) {\n ParticipationGroupData group = new ParticipationGroupData();\n group.setGroupPk(new Integer(rs.getInt(\"particip_group_pk\")));\n group.setName(rs.getString(\"particip_group_nm\"));\n group.setDescription(rs.getString(\"particip_group_desc\"));\n result.add(group);\n } \n } catch (SQLException e) {\n throw new EJBException(\"Error retrieving Participation Groups in MaintainParticipationGroupsBean.getParticipationGroups()\", e);\n } finally {\n DBUtil.cleanup(con, ps, rs);\n }\n \n //return the list of objects\n return result;\n }",
"public List<Group_Entity> getAllGroups() {\n\t\tList<Group_Entity> list = new ArrayList<>();\n\t\tgroupRepo.findAll().forEach(list::add);\n\t\treturn list;\n\t}",
"@Override\r\n\tpublic Collection<AccessFunction> getALLFunctionOfGroup(String groupName\r\n\t\t\t ) throws RemoteException {\n\t\tString sql = \" Groupname = '\"+groupName+\"'\";\r\n\t\treturn AccessSQL.selectAccessFunction(sql, dsSQL.getConn());\r\n\t}",
"public void buildSignatureModel(LinkedList<SignatureContainer> sigs)\r\n {\r\n \r\n for (SignatureContainer s:sigs) {\r\n \r\n }\r\n \r\n }",
"public Iterator getSignaturesOfType(\n int signatureType)\n {\n List l = new ArrayList();\n Iterator it = this.getSignatures();\n \n while (it.hasNext())\n {\n PGPSignature sig = (PGPSignature)it.next();\n \n if (sig.getSignatureType() == signatureType)\n {\n l.add(sig);\n }\n }\n \n return l.iterator();\n }",
"public List<PartialPath> getAllStorageGroupPaths() {\n List<PartialPath> res = new ArrayList<>();\n Deque<IMNode> nodeStack = new ArrayDeque<>();\n nodeStack.add(root);\n while (!nodeStack.isEmpty()) {\n IMNode current = nodeStack.pop();\n if (current.isStorageGroup()) {\n res.add(current.getPartialPath());\n } else {\n nodeStack.addAll(current.getChildren().values());\n }\n }\n return res;\n }",
"@Override\n public List<Map<String, Serializable>> getResult() {\n Preconditions.checkState(_finish, \"GetResult cannot be called before finish.\");\n List<Map<String, Serializable>> result = new ArrayList<Map<String, Serializable>>(_aggrFuncContextList.size());\n\n for (int i = 0; i < _aggrFuncContextList.size(); i++) {\n result.add(new HashMap<String, Serializable>());\n }\n\n Iterator<Pair<Long, String>> groupKeys = _groupKeyGenerator.getUniqueGroupKeys();\n while (groupKeys.hasNext()) {\n Pair<Long, String> idKeyPair = groupKeys.next();\n String stringGroupKey = idKeyPair.getSecond();\n\n for (int i = 0; i < _aggrFuncContextList.size(); i++) {\n double resultForGroupKey = _resultHolderArray[i].getResultForGroupKey(idKeyPair.getFirst());\n result.get(i).put(stringGroupKey, resultForGroupKey);\n }\n }\n return result;\n }",
"public void getGroups() {\n String listOfCode = prefs.getString(\"listOfCode\");\n if (!listOfCode.isEmpty()) {\n for (String groupPair : listOfCode.split(\",\"))\n if (!groupPair.isEmpty()) {\n final String nickname = groupPair.substring(0, groupPair.indexOf('|'));\n String code = groupPair.substring(groupPair.indexOf('|') + 1);\n ServerAPI.groupInformation(code, new RequestHandler<Group>() {\n @Override\n public void callback(Group result) {\n if (result == null) {\n return;\n }\n savedGroups.add(new Pair<String, Group>(nickname, result));\n populateListView();\n }\n });\n }\n }\n }",
"public io.grafeas.v1.SignatureOrBuilder getSignaturesOrBuilder(int index) {\n if (signaturesBuilder_ == null) {\n return signatures_.get(index);\n } else {\n return signaturesBuilder_.getMessageOrBuilder(index);\n }\n }",
"public java.util.List<? extends com.yahoo.xpathproto.TransformTestProtos.ContentImageOrBuilder> \n getImagesByTransformOrBuilderList() {\n if (imagesByTransformBuilder_ != null) {\n return imagesByTransformBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(imagesByTransform_);\n }\n }",
"com.microsoft.schemas.office.x2006.digsig.STSignatureComments xgetSignatureComments();",
"public void getAllGroups() { \t\n \tCursor groupsCursor = groupDbHelper.getAllGroupEntries();\n \tList<String> groupNames = new ArrayList<String>();\n \tgroupNames.add(\"Create a Group\");\n \t\n \t// If query returns group, display them in Groups Tab\n \t// Might want to add ordering query so that most recent\n \t// spots display first...\n \tif (groupsCursor.getCount() > 0) {\n \t\tgroupsCursor.moveToFirst();\n \t\twhile (!groupsCursor.isAfterLast()) {\n \t\t\tgroupNames.add(groupsCursor.getString(1));\n \t\t\tgroupsCursor.moveToLast();\n \t\t}\n \t\t\n \t}\n \t\n \t// Close cursor\n \tgroupsCursor.close();\n \t\n \t// Temporary - Ad`d Sample Groups to List\n \t//for (String groupname : groupSamples) {\n \t\t//groupNames.add(groupname);\n \t//}\n \t\n \tgroupsview.setAdapter(new ArrayAdapter<String>(this, \n \t\t\t\tandroid.R.layout.simple_list_item_1, groupNames));\n }",
"Signature getSignature();",
"public java.util.List<com.yahoo.xpathproto.TransformTestProtos.ContentImage> getImagesByTransformList() {\n if (imagesByTransformBuilder_ == null) {\n return java.util.Collections.unmodifiableList(imagesByTransform_);\n } else {\n return imagesByTransformBuilder_.getMessageList();\n }\n }",
"public List<SecGroupright> getAllGroupRights();",
"public Collection<String> signatureToWords(String sig);",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\tResult result = mFacePlus.getAllGroupListInfo();\n\t\t\t\tif(result.type == Result.TYPE.FAILED){\n\t\t\t\t\tDebug.debug(TAG, \"err msg = \" + result.data);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tList<Group> groupList = (List<Group>) result.data;\n\t\t\t\tString str_groupname = groupname.getText().toString();\n\t\t\t\tfor (int i = 0; i < groupList.size(); i++) {\n\t\t\t\t\tLog.e(TAG,groupList.get(i).getName()+\"\");\n\t\t\t\t\t\tLog.e(TAG,groupList.get(i).getId()+\"\");\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}",
"public Wrapper getGroups() {\n Wrapper<List<HashMap<String, String>>> wrapper = new Wrapper();\n try {\n List<HashMap<String, String>> out = new ArrayList<>();\n List<ObjectId> groupIds = user.getGroups();\n\n if (groupIds.size() != 0) {\n\n for (ObjectId groupId : groupIds) {\n HashMap<String, String> group = new HashMap<>();\n String name = mongoOperations.findById(groupId, Group.class, \"users\").getName();\n\n group.put(\"name\", name);\n group.put(\"id\", groupId.toHexString());\n\n out.add(group);\n }\n }\n wrapper.setData(out);\n wrapper.setSucces(true);\n } catch (Exception e) {\n wrapper.setSucces(false);\n wrapper.setMsg(e.toString());\n }\n return wrapper;\n }",
"public java.util.List<ReservationCoverageGroup> getGroups() {\n return groups;\n }",
"public java.util.List<com.yahoo.xpathproto.TransformTestProtos.ContentImage.Builder> \n getImagesByTransformBuilderList() {\n return getImagesByTransformFieldBuilder().getBuilderList();\n }",
"private List<Group> groupIds(SignupSite site) {\n\t\tList<Group> groups = new ArrayList<Group>();\n\t\tList<SignupGroup> signupGroups = site.getSignupGroups();\n\t\tfor (SignupGroup group : signupGroups) {\n\t\t\ttry {\n\t\t\t\tgroups.add(sakaiFacade.getGroup(site.getSiteId(), group.getGroupId()));\n\t\t\t} catch (IdUnusedException e) {\n\t\t\t\tlog.info(\"IdUnusedException: \" + e.getMessage());\n\t\t\t}\n\t\t}\n\t\treturn groups;\n\t}",
"SignaturesOverridesList list(String resourceGroupName, String firewallPolicyName);",
"java.util.List<? extends com.yahoo.xpathproto.TransformTestProtos.ContentImageOrBuilder> \n getImagesByHandlerOrBuilderList();",
"public java.lang.String[] getGroupMembersAll() {\n return groupMembersAll;\n }",
"public Request<List<Key>> list() {\n HttpUrl.Builder builder = baseUrl\n .newBuilder()\n .addEncodedPathSegments(\"api/v2/keys/signing\");\n String url = builder.build().toString();\n return new BaseRequest<>(this.client, tokenProvider, url, HttpMethod.GET, new TypeReference<List<Key>>() {\n });\n }",
"public List<Map<String,Object>> listCarGroupId() throws Exception {\n\t\tsuper.getConnection();\n\t\tString sql =\"select group_num from t_car_group \";\n\t\tList<Map<String,Object>> list = findMoreResult(sql, null);\t\t\n\t\t\n\t\treturn list;\n\t}",
"public Iterator getSignaturesForID(\n String id)\n {\n for (int i = 0; i != ids.size(); i++)\n {\n if (id.equals(ids.get(i)))\n {\n return ((ArrayList)idSigs.get(i)).iterator();\n }\n }\n \n return null;\n }",
"Set<Group> getGroups();",
"public PublicKey[] getPeopleInConvo (String sig) {\n Logger.write(\"VERBOSE\", \"DB\", \"getPeopleInConvo(...)\");\n Vector<PublicKey> keys = new Vector<PublicKey>();\n \n try {\n ResultSet keySet = query(DBStrings.getConversationMembers.replace(\"__SIG__\", sig));\n while (keySet.next())\n keys.add(Crypto.decodeKey(keySet.getString(\"key\")));\n } catch (java.sql.SQLException e) {\n Logger.write(\"ERROR\", \"DB\", \"SQLException: \" + e);\n }\n \n return keys.toArray(new PublicKey[0]);\n }",
"public List getGroups()\n\t\t{\n\t\t\tif(m_groups == null)\n\t\t\t{\n\t\t\t\tm_groups = new Vector();\n\t\t\t}\n\t\t\treturn new Vector(m_groups);\n\t\t}",
"@Override\n public List<String> AllFileFromS3Bucket()\n {\n List<Bucket> buckets= amazonS3.listBuckets();\n List<String> keys = new ArrayList<>();\n \n for (Bucket b :buckets) {\n \t System.out.println(\" **** \" + b.getName());\n \t keys.add(b.getName());\n }\n\treturn keys;\n \n }",
"public static List<String> getTacGrpGraphics()\n {\n return Arrays.asList(\n TacGrpSidc.TSK_DSTY,\n TacGrpSidc.TSK_ITDT,\n TacGrpSidc.TSK_NEUT,\n TacGrpSidc.C2GM_GNL_PNT_USW_UH2_DTM,\n TacGrpSidc.C2GM_GNL_PNT_USW_UH2_BCON,\n TacGrpSidc.C2GM_GNL_PNT_USW_UH2_LCON,\n TacGrpSidc.C2GM_GNL_PNT_USW_UH2_SNK,\n TacGrpSidc.C2GM_GNL_PNT_USW_SNBY,\n TacGrpSidc.C2GM_GNL_PNT_USW_SNBY_PTNCTR,\n TacGrpSidc.C2GM_GNL_PNT_USW_SNBY_DIFAR,\n TacGrpSidc.C2GM_GNL_PNT_USW_SNBY_LOFAR,\n TacGrpSidc.C2GM_GNL_PNT_USW_SNBY_CASS,\n TacGrpSidc.C2GM_GNL_PNT_USW_SNBY_DICASS,\n TacGrpSidc.C2GM_GNL_PNT_USW_SNBY_BT,\n TacGrpSidc.C2GM_GNL_PNT_USW_SNBY_ANM,\n TacGrpSidc.C2GM_GNL_PNT_USW_SNBY_VLAD,\n TacGrpSidc.C2GM_GNL_PNT_USW_SNBY_ATAC,\n TacGrpSidc.C2GM_GNL_PNT_USW_SNBY_RO,\n TacGrpSidc.C2GM_GNL_PNT_USW_SNBY_KGP,\n TacGrpSidc.C2GM_GNL_PNT_USW_SNBY_EXP,\n TacGrpSidc.C2GM_GNL_PNT_USW_SRH,\n TacGrpSidc.C2GM_GNL_PNT_USW_SRH_ARA,\n TacGrpSidc.C2GM_GNL_PNT_USW_SRH_DIPPSN,\n TacGrpSidc.C2GM_GNL_PNT_USW_SRH_CTR,\n TacGrpSidc.C2GM_GNL_PNT_REFPNT,\n TacGrpSidc.C2GM_GNL_PNT_REFPNT_NAVREF,\n TacGrpSidc.C2GM_GNL_PNT_REFPNT_SPLPNT,\n TacGrpSidc.C2GM_GNL_PNT_REFPNT_DLRP,\n TacGrpSidc.C2GM_GNL_PNT_REFPNT_PIM,\n TacGrpSidc.C2GM_GNL_PNT_REFPNT_MRSH,\n TacGrpSidc.C2GM_GNL_PNT_REFPNT_WAP,\n TacGrpSidc.C2GM_GNL_PNT_REFPNT_CRDRTB,\n TacGrpSidc.C2GM_GNL_PNT_REFPNT_PNTINR,\n TacGrpSidc.C2GM_GNL_PNT_WPN_AIMPNT,\n TacGrpSidc.C2GM_GNL_PNT_WPN_DRPPNT,\n TacGrpSidc.C2GM_GNL_PNT_WPN_ENTPNT,\n TacGrpSidc.C2GM_GNL_PNT_WPN_GRDZRO,\n TacGrpSidc.C2GM_GNL_PNT_WPN_MSLPNT,\n TacGrpSidc.C2GM_GNL_PNT_WPN_IMTPNT,\n TacGrpSidc.C2GM_GNL_PNT_WPN_PIPNT,\n TacGrpSidc.C2GM_GNL_PNT_FRMN,\n TacGrpSidc.C2GM_GNL_PNT_HBR,\n TacGrpSidc.C2GM_GNL_PNT_HBR_PNTQ,\n TacGrpSidc.C2GM_GNL_PNT_HBR_PNTA,\n TacGrpSidc.C2GM_GNL_PNT_HBR_PNTY,\n TacGrpSidc.C2GM_GNL_PNT_HBR_PNTX,\n TacGrpSidc.C2GM_GNL_PNT_RTE,\n TacGrpSidc.C2GM_GNL_PNT_RTE_RDV,\n TacGrpSidc.C2GM_GNL_PNT_RTE_DVSN,\n TacGrpSidc.C2GM_GNL_PNT_RTE_WAP,\n TacGrpSidc.C2GM_GNL_PNT_RTE_PIM,\n TacGrpSidc.C2GM_GNL_PNT_RTE_PNTR,\n TacGrpSidc.C2GM_GNL_PNT_ACTL,\n TacGrpSidc.C2GM_GNL_PNT_ACTL_CAP,\n TacGrpSidc.C2GM_GNL_PNT_ACTL_ABNEW,\n TacGrpSidc.C2GM_GNL_PNT_ACTL_TAK,\n TacGrpSidc.C2GM_GNL_PNT_ACTL_ASBWF,\n TacGrpSidc.C2GM_GNL_PNT_ACTL_ASBWR,\n TacGrpSidc.C2GM_GNL_PNT_ACTL_SUWF,\n TacGrpSidc.C2GM_GNL_PNT_ACTL_SUWR,\n TacGrpSidc.C2GM_GNL_PNT_ACTL_MIWF,\n TacGrpSidc.C2GM_GNL_PNT_ACTL_MIWR,\n TacGrpSidc.C2GM_GNL_PNT_ACTL_SKEIP,\n TacGrpSidc.C2GM_GNL_PNT_ACTL_TCN,\n TacGrpSidc.C2GM_GNL_PNT_ACTL_TMC,\n TacGrpSidc.C2GM_GNL_PNT_ACTL_RSC,\n TacGrpSidc.C2GM_GNL_PNT_ACTL_RPH,\n TacGrpSidc.C2GM_GNL_PNT_ACTL_UA,\n TacGrpSidc.C2GM_GNL_PNT_ACTL_VTUA,\n TacGrpSidc.C2GM_GNL_PNT_ACTL_ORB,\n TacGrpSidc.C2GM_GNL_PNT_ACTL_ORBF8,\n TacGrpSidc.C2GM_GNL_PNT_ACTL_ORBRT,\n TacGrpSidc.C2GM_GNL_PNT_ACTL_ORBRD,\n TacGrpSidc.C2GM_GNL_PNT_ACTPNT,\n TacGrpSidc.C2GM_GNL_PNT_ACTPNT_CHKPNT,\n TacGrpSidc.C2GM_GNL_PNT_ACTPNT_CONPNT,\n TacGrpSidc.C2GM_GNL_PNT_ACTPNT_CRDPNT,\n TacGrpSidc.C2GM_GNL_PNT_ACTPNT_DCNPNT,\n TacGrpSidc.C2GM_GNL_PNT_ACTPNT_LNKUPT,\n TacGrpSidc.C2GM_GNL_PNT_ACTPNT_PSSPNT,\n TacGrpSidc.C2GM_GNL_PNT_ACTPNT_RAYPNT,\n TacGrpSidc.C2GM_GNL_PNT_ACTPNT_RELPNT,\n TacGrpSidc.C2GM_GNL_PNT_ACTPNT_STRPNT,\n TacGrpSidc.C2GM_GNL_PNT_ACTPNT_AMNPNT,\n TacGrpSidc.C2GM_GNL_PNT_ACTPNT_WAP,\n TacGrpSidc.C2GM_GNL_PNT_SCTL,\n TacGrpSidc.C2GM_GNL_PNT_SCTL_USV,\n TacGrpSidc.C2GM_GNL_PNT_SCTL_USV_RMV,\n TacGrpSidc.C2GM_GNL_PNT_SCTL_USV_ASW,\n TacGrpSidc.C2GM_GNL_PNT_SCTL_USV_SUW,\n TacGrpSidc.C2GM_GNL_PNT_SCTL_USV_MIW,\n TacGrpSidc.C2GM_GNL_PNT_SCTL_ASW,\n TacGrpSidc.C2GM_GNL_PNT_SCTL_SUW,\n TacGrpSidc.C2GM_GNL_PNT_SCTL_MIW,\n TacGrpSidc.C2GM_GNL_PNT_SCTL_PKT,\n TacGrpSidc.C2GM_GNL_PNT_SCTL_RDV,\n TacGrpSidc.C2GM_GNL_PNT_SCTL_RSC,\n TacGrpSidc.C2GM_GNL_PNT_SCTL_REP,\n TacGrpSidc.C2GM_GNL_PNT_SCTL_NCBTT,\n TacGrpSidc.C2GM_GNL_PNT_UCTL,\n TacGrpSidc.C2GM_GNL_PNT_UCTL_UUV,\n TacGrpSidc.C2GM_GNL_PNT_UCTL_UUV_ASW,\n TacGrpSidc.C2GM_GNL_PNT_UCTL_UUV_SUW,\n TacGrpSidc.C2GM_GNL_PNT_UCTL_UUV_MIW,\n TacGrpSidc.C2GM_GNL_PNT_UCTL_SBSTN,\n TacGrpSidc.C2GM_GNL_PNT_UCTL_SBSTN_ASW,\n TacGrpSidc.C2GM_DEF_PNT_TGTREF,\n TacGrpSidc.C2GM_DEF_PNT_OBSPST,\n TacGrpSidc.C2GM_DEF_PNT_OBSPST_CBTPST,\n TacGrpSidc.C2GM_DEF_PNT_OBSPST_RECON,\n TacGrpSidc.C2GM_DEF_PNT_OBSPST_FWDOP,\n TacGrpSidc.C2GM_DEF_PNT_OBSPST_SOP,\n TacGrpSidc.C2GM_DEF_PNT_OBSPST_CBRNOP,\n TacGrpSidc.C2GM_OFF_PNT_PNTD,\n TacGrpSidc.C2GM_AVN_PNT_DAPP,\n TacGrpSidc.MOBSU_OBST_ATO_TDTSM_FIXPFD,\n TacGrpSidc.MOBSU_OBST_ATO_TDTSM_MVB,\n TacGrpSidc.MOBSU_OBST_ATO_TDTSM_MVBPFD,\n TacGrpSidc.MOBSU_OBST_BBY,\n TacGrpSidc.MOBSU_OBST_MNE_USPMNE,\n TacGrpSidc.MOBSU_OBST_MNE_ATMNE,\n TacGrpSidc.MOBSU_OBST_MNE_ATMAHD,\n TacGrpSidc.MOBSU_OBST_MNE_ATMDIR,\n TacGrpSidc.MOBSU_OBST_MNE_APMNE,\n TacGrpSidc.MOBSU_OBST_MNE_WAMNE,\n TacGrpSidc.MOBSU_OBST_AVN_TWR_LOW,\n TacGrpSidc.MOBSU_OBST_AVN_TWR_HIGH,\n TacGrpSidc.MOBSU_OBSTBP_CSGSTE_ERP,\n TacGrpSidc.MOBSU_SU_ESTOF,\n TacGrpSidc.MOBSU_SU_FRT,\n TacGrpSidc.MOBSU_SU_SUFSHL,\n TacGrpSidc.MOBSU_SU_UGDSHL,\n TacGrpSidc.MOBSU_CBRN_NDGZ,\n TacGrpSidc.MOBSU_CBRN_FAOTP,\n TacGrpSidc.MOBSU_CBRN_REEVNT_BIO,\n TacGrpSidc.MOBSU_CBRN_REEVNT_CML,\n TacGrpSidc.MOBSU_CBRN_DECONP_USP,\n TacGrpSidc.MOBSU_CBRN_DECONP_ALTUSP,\n TacGrpSidc.MOBSU_CBRN_DECONP_TRP,\n TacGrpSidc.MOBSU_CBRN_DECONP_EQT,\n TacGrpSidc.MOBSU_CBRN_DECONP_EQTTRP,\n TacGrpSidc.MOBSU_CBRN_DECONP_OPDECN,\n TacGrpSidc.MOBSU_CBRN_DECONP_TRGH,\n TacGrpSidc.FSUPP_PNT_TGT_PTGT,\n TacGrpSidc.FSUPP_PNT_TGT_NUCTGT,\n TacGrpSidc.FSUPP_PNT_C2PNT_FSS,\n TacGrpSidc.FSUPP_PNT_C2PNT_SCP,\n TacGrpSidc.FSUPP_PNT_C2PNT_FP,\n TacGrpSidc.FSUPP_PNT_C2PNT_RP,\n TacGrpSidc.FSUPP_PNT_C2PNT_HP,\n TacGrpSidc.FSUPP_PNT_C2PNT_LP,\n TacGrpSidc.CSS_PNT_AEP,\n TacGrpSidc.CSS_PNT_CBNP,\n TacGrpSidc.CSS_PNT_CCP,\n TacGrpSidc.CSS_PNT_CVP,\n TacGrpSidc.CSS_PNT_DCP,\n TacGrpSidc.CSS_PNT_EPWCP,\n TacGrpSidc.CSS_PNT_LRP,\n TacGrpSidc.CSS_PNT_MCP,\n TacGrpSidc.CSS_PNT_RRRP,\n TacGrpSidc.CSS_PNT_ROM,\n TacGrpSidc.CSS_PNT_TCP,\n TacGrpSidc.CSS_PNT_TTP,\n TacGrpSidc.CSS_PNT_UMC,\n TacGrpSidc.CSS_PNT_SPT_GNL,\n TacGrpSidc.CSS_PNT_SPT_CLS1,\n TacGrpSidc.CSS_PNT_SPT_CLS2,\n TacGrpSidc.CSS_PNT_SPT_CLS3,\n TacGrpSidc.CSS_PNT_SPT_CLS4,\n TacGrpSidc.CSS_PNT_SPT_CLS5,\n TacGrpSidc.CSS_PNT_SPT_CLS6,\n TacGrpSidc.CSS_PNT_SPT_CLS7,\n TacGrpSidc.CSS_PNT_SPT_CLS8,\n TacGrpSidc.CSS_PNT_SPT_CLS9,\n TacGrpSidc.CSS_PNT_SPT_CLS10,\n TacGrpSidc.CSS_PNT_AP_ASP,\n TacGrpSidc.CSS_PNT_AP_ATP,\n TacGrpSidc.OTH_ER_DTHAC,\n TacGrpSidc.OTH_ER_PIW,\n TacGrpSidc.OTH_ER_DSTVES,\n TacGrpSidc.OTH_HAZ_SML,\n TacGrpSidc.OTH_HAZ_IB,\n TacGrpSidc.OTH_HAZ_OLRG,\n TacGrpSidc.OTH_SSUBSR_BTMRTN,\n TacGrpSidc.OTH_SSUBSR_BTMRTN_INS,\n TacGrpSidc.OTH_SSUBSR_BTMRTN_SBRSOO,\n TacGrpSidc.OTH_SSUBSR_BTMRTN_WRKND,\n TacGrpSidc.OTH_SSUBSR_BTMRTN_WRKD,\n TacGrpSidc.OTH_SSUBSR_MARLFE,\n TacGrpSidc.OTH_SSUBSR_SA,\n TacGrpSidc.OTH_FIX_ACU,\n TacGrpSidc.OTH_FIX_EM,\n TacGrpSidc.OTH_FIX_EOP);\n }"
] | [
"0.6881419",
"0.64451605",
"0.6416266",
"0.626857",
"0.60797507",
"0.5984288",
"0.5983818",
"0.5973884",
"0.5967058",
"0.58706677",
"0.5813778",
"0.58037746",
"0.57822293",
"0.5774712",
"0.5718162",
"0.56812924",
"0.5656005",
"0.56444585",
"0.5633937",
"0.5607334",
"0.56021655",
"0.56021094",
"0.5591509",
"0.5575681",
"0.55124784",
"0.5504891",
"0.54992926",
"0.54894125",
"0.5486005",
"0.5467925",
"0.5462275",
"0.5436439",
"0.54337615",
"0.54188764",
"0.53851825",
"0.5384752",
"0.5380186",
"0.5339375",
"0.5337138",
"0.5332253",
"0.532996",
"0.5329416",
"0.5325309",
"0.53236353",
"0.5295929",
"0.5284279",
"0.5279564",
"0.5275111",
"0.5271434",
"0.52690125",
"0.5249122",
"0.5249122",
"0.5249122",
"0.5248134",
"0.52479005",
"0.52444726",
"0.52395684",
"0.522802",
"0.52278596",
"0.5223771",
"0.52134264",
"0.5209171",
"0.5196982",
"0.51908326",
"0.51877785",
"0.51829225",
"0.5180097",
"0.5178139",
"0.5157756",
"0.51494175",
"0.51491755",
"0.5147874",
"0.5145096",
"0.51257116",
"0.51210016",
"0.5120305",
"0.51172405",
"0.51156557",
"0.5114432",
"0.5114307",
"0.51123023",
"0.51097864",
"0.51095074",
"0.51072925",
"0.51069933",
"0.50992614",
"0.50970316",
"0.5092032",
"0.5083362",
"0.5079787",
"0.50783783",
"0.5073776",
"0.50720423",
"0.5065134",
"0.505543",
"0.505323",
"0.50489485",
"0.5045064",
"0.5040754",
"0.5034618"
] | 0.6847094 | 1 |
Methods Template filters get template filter by id | public TemplateFilters templateFiltersGetById(Long idTemplateFilter){
TemplateFiltersDAO dao = new TemplateFiltersDAO();
return dao.getById(idTemplateFilter);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ArrayList<TemplateFilters> templateFiltersGetAllById(Template template)\n\t{\n\t\tTemplateFiltersDAO dao = new TemplateFiltersDAO();\n\t\tCollection<TemplateFilters> listResponse = dao.getAllTemplateFiltersById(template);\n\t\treturn (new ArrayList<TemplateFilters>(listResponse)); \n\t}",
"public TrafficIncident getIncidentById(Filter filter);",
"java.lang.String getTemplateId();",
"FilterInfo getActiveFilterInfoForFilter(String filter_id);",
"@Override\n public Filter getFilter(String filterId) {\n return null;\n }",
"public String getFilterId() {\n return this.filterId;\n }",
"Filter getFilter();",
"@Override\r\n\tpublic Filtering selectByPrimaryKey(Integer id) {\n\t\treturn filteringMapper.selectByPrimaryKey(id);\r\n\t}",
"TbFreightTemplate selectByPrimaryKey(Long id);",
"public FieldsTemplate getFielTemplateById(Long id)\n\t{\n\t\tFieldsTemplateDAO dao = new FieldsTemplateDAO();\n\t\tFieldsTemplate fieldTemplate = dao.getById(id);\n\t\treturn fieldTemplate;\n\t}",
"PSTemplateSummary find(String id) throws PSDataServiceException;",
"List<Receta> getAll(String filter);",
"public Collection<FieldsTemplate> getFieldsTemplateList(Long idTemplate)\n\t{\n\t\tFieldsTemplateDAO daoTemplate = new FieldsTemplateDAO();\n\t\t\n\t\tTemplate template = new Template();\n\t\ttemplate.setId(idTemplate);\n\t\t\n\t\tCollection<FieldsTemplate> responseList = daoTemplate.getAllFields(template);\n\t\tloggerSingle.info(\"num fields template \"+idTemplate+\": \"+responseList.size());\n\t\treturn responseList;\n\t}",
"List<FilterInfo> getZuulFiltersForFilterId(String filter_id);",
"@RequestMapping(value = \"/filter\", method = RequestMethod.POST)\n\tpublic String filter(Model model, @RequestParam(value = \"type\", required = false) String type, @RequestParam(value = \"id\", required = false) String id ) {\n\t\t\n\t\t/* return list of comics with specific filter */\n\t\t/*-Types- */\n\t\t/* 2 = comics by genre */\n\t\t/* 3 = comics by author */\n\t\tList<Comic> comics = new ArrayList<Comic>();\n\t\tif(type.equals(\"2\")){\n\t\t\tcomics = comicService.findByGenre(Integer.parseInt(id));\n\t\t}else if(type.equals(\"3\")){\n\t\t\tcomics = comicService.findByAuthor(Integer.parseInt(id));\n\t\t}\n\t\t//contenuto dei selectbox\n\t\tmodel.addAttribute(\"comics\", comics);\n\t\tmodel.addAttribute(\"authors\", authorService.restart().find());\n\t\tmodel.addAttribute(\"genres\", genreService.restart().find());\n\t\t\n\t\t//chiama la pagina di listaggio\n\t\treturn \"admin/comic/comic\";\n\t}",
"public boolean deleteTemplateFilterByIdTemplate(Long idTemplate)\n\t{\n\t\tTemplateFiltersDAO dao = new TemplateFiltersDAO();\n\t\treturn dao.deleteTemplateFilterByIdTemplate(idTemplate);\n\t}",
"public Supplier getById(int id){ \n\t Supplier e=(Supplier)template.get(Supplier.class,id); \n\t return e; \n\t}",
"public Long getIdFilter() {\n\t\treturn idFilter;\n\t}",
"public Template getTemplateById(Long id)\n\t{\n\t\tTemplateDAO dao = new TemplateDAO();\n\t\tTemplate template = dao.getById(id,UtilCodesEnum.CODE_ACTIVE.getCode());\n\t\treturn template;\n\t}",
"IViewFilter getViewFilter();",
"public void filterBy(String id, Function<Trip, Boolean> flt) {\n filters.put(id, flt);\n modifiedSinceLastResult = true;\n }",
"public Template getTemplate(String templateID) {\r\n // Gets the templates collection and creates a query string for the template id\r\n MongoCollection templates = mongoDB.getCollection(\"Templates\");\r\n Document query = new Document(\"_id\", new ObjectId(templateID));\r\n\r\n // Loops over templates found matching the id, returning the first one\r\n for (Template template : (FindIterable<Template>) templates.find(query, Template.class)) {\r\n return template;\r\n }\r\n\r\n // Returns null if none are found\r\n return null;\r\n }",
"Template getTemplateById(String templateId) throws NotificationClientException;",
"public List<SurveyTemplateEntity> findByActiveIsTrue();",
"@Test\n public void previewTemplateFromIdTest() throws IdfyException, Exception {\n TemplateWithIdPreview model = new TemplateWithIdPreview.Builder().build();\n UUID id = UUID.randomUUID();\n String xmlTemplate = new String(\"123\");\n api.previewTemplateFromId(model, id, xmlTemplate);\n }",
"Collection<T> doFilter(RepositoryFilterContext context);",
"public Collection findTemplatesByOwner(Agent owner, String siteId);",
"@GET(\"users/templates/{id}\")\n Call<TemplateResource> getUserTemplate(\n @retrofit2.http.Path(\"id\") String id\n );",
"public ArrayList<Template> getListTemplatesByEventList(Long idEventListener)\n\t{\n\t\tTemplateDAO dao = new TemplateDAO();\n\t\tCollection<Template> listCollection = dao.getAllTemplateByEventList(idEventListener);\n\t\treturn (new ArrayList<Template>(listCollection));\n\t}",
"public abstract Filter<T> filter();",
"public Pojo.OneWord getById(String code){ \n Pojo.OneWord e=(Pojo.OneWord)template.get(Pojo.OneWord.class,code); \n return e; \n}",
"List<AssessmentTemplate> getAssessmentTemplates(Long minimumID);",
"TempletLink selectByPrimaryKey(String id);",
"public void setIdFilter(Long id) {\n this.idFilter = id;\n }",
"@Override\n public Filter getFilter() {\n return main_list_filter;\n }",
"String getFilter();",
"public String getFilter();",
"Map<String, String> getFilters();",
"@ApiModelProperty(value = \"The id of the template\")\n public String getId() {\n return id;\n }",
"@GET\n\t\t\t@Path(\"/filter\")\n\t\t\t@Produces({\"application/xml\"})\n\t\t\tpublic Rows getEquipserviceRowsByFilter() {\n\t\t\t\tRows rows = null;\n\t\t\t\ttry {\n\t\t\t\t\trows=new EquipserviceDao(uriInfo,header).getEquipserviceByFilter();\n\t\t\t\t} catch (AuthenticationException e) {\n\t\t\t\t\t rows=new TemplateUtility().getFailedMessage(e.getMessage());\n\t\t\t\t\t e.printStackTrace();\n\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\t logger.info( \"Error calling getEquipserviceRowsByFilter()\"+ ex.getMessage());\n\t\t\t\t\t ex.printStackTrace();\n\t\t\t\t}\n\t\t\t\treturn rows;\n\t\t\t}",
"user_filter_reference getUser_filter_reference();",
"@GET\n\t\t\t@Path(\"/filter\")\n\t\t\t@Produces({\"application/xml\"})\n\t\t\tpublic Rows getWarehouseRowsByFilter() {\n\t\t\t\tRows rows = null;\n\t\t\t\ttry {\n\t\t\t\t\trows=new WarehouseDao(uriInfo,header).getWarehouseByFilter();\n\t\t\t\t} catch (AuthenticationException e) {\n\t\t\t\t\t rows=new TemplateUtility().getFailedMessage(e.getMessage());\n\t\t\t\t\t e.printStackTrace();\n\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\t logger.info( \"Error calling getWarehouseRowsByFilter()\"+ ex.getMessage());\n\t\t\t\t\t ex.printStackTrace();\n\t\t\t\t}\n\t\t\t\treturn rows;\n\t\t\t}",
"@GET\n\t\t\t@Path(\"/filter\")\n\t\t\t@Produces({\"application/xml\"})\n\t\t\tpublic Rows getChannelRowsByFilter() {\n\t\t\t\tRows rows = null;\n\t\t\t\ttry {\n\t\t\t\t\trows=new ChannelDao(uriInfo,header).getChannelByFilter();\n\t\t\t\t} catch (AuthenticationException e) {\n\t\t\t\t\t rows=new TemplateUtility().getFailedMessage(e.getMessage());\n\t\t\t\t\t e.printStackTrace();\n\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\t logger.info( \"Error calling getChannelRowsByFilter()\"+ ex.getMessage());\n\t\t\t\t\t ex.printStackTrace();\n\t\t\t\t}\n\t\t\t\treturn rows;\n\t\t\t}",
"public List<Integer> selectIdListByFilter( SubmitFilter filter, Plugin plugin )\n {\n List<Integer> suggestSubmitIdList = new ArrayList<Integer>( );\n List<String> listStrFilter = new ArrayList<String>( );\n String strOrderBy = null;\n\n if ( filter.containsIdSuggest( ) )\n {\n listStrFilter.add( SQL_FILTER_ID_SUGGEST );\n }\n\n if ( filter.containsIdSuggestSubmit( ) )\n {\n listStrFilter.add( SQL_FILTER_ID_SUGGEST_SUBMIT );\n }\n\n if ( filter.containsIdSuggestSubmitState( ) )\n {\n listStrFilter.add( SQL_FILTER_ID_SUGGEST_SUBMIT_STATE );\n }\n\n if ( filter.containsIdCategory( ) )\n {\n listStrFilter.add( SQL_FILTER_ID_CATEGORY );\n }\n\n if ( filter.containsDateFirst( ) )\n {\n listStrFilter.add( SQL_FILTER_DATE_FIRST_SUBMIT );\n }\n\n if ( filter.containsDateLast( ) )\n {\n listStrFilter.add( SQL_FILTER_DATE_LAST_SUBMIT );\n }\n\n if ( filter.containsIdReported( ) )\n {\n listStrFilter.add( SQL_FILTER_REPORTED );\n }\n\n if ( filter.containsNumberVote( ) )\n {\n listStrFilter.add( SQL_FILTER_NUMBER_VOTE );\n }\n\n if ( filter.containsIdPinned( ) )\n {\n listStrFilter.add( SQL_FILTER_IS_PINNED );\n }\n if ( filter.containsLuteceUserKey())\n {\n listStrFilter.add( SQL_FILTER_LUTECE_USER_KEY);\n }\n\n if ( filter.containsIdType( ) )\n {\n listStrFilter.add( SQL_FILTER_ID_TYPE );\n }\n \n \n \n\n if ( filter.containsIdContainsCommentDisable( ) )\n {\n listStrFilter.add( ( filter.getIdContainsCommentDisable( ) == SubmitFilter.ID_TRUE )\n ? SQL_FILTER_CONTAINS_COMMENT_DISABLE : SQL_FILTER_NOT_CONTAINS_COMMENT_DISABLE );\n }\n\n if ( filter.containsSortBy( ) )\n {\n strOrderBy = getOrderBy( filter.getSortBy( ) );\n }\n\n //\t\tif(filter.isOrderByScore())\n //\t\t{\n //\t\t\tstrSQL += SQL_ORDER_BY_SCORE;\n //\t\t}\n //\t\telse if(filter.isOrderByCommentNumber())\n //\t\t{\n //\t\t\tstrSQL += SQL_ORDER_BY_COMMENT_NUMBER_ASC;\n //\t\t}\n //\t\telse\n //\t\t{\n //\t\t\tstrSQL += SQL_ORDER_BY_DATE_RESPONSE;\n //\t\t}\n String strSQL = SuggestUtils.buildRequestWithFilter( SQL_QUERY_SELECT_ID_SUGGEST_SUBMIT_BY_FILTER, listStrFilter,\n strOrderBy );\n DAOUtil daoUtil = new DAOUtil( strSQL, plugin );\n int nIndex = 1;\n\n if ( filter.containsIdSuggest( ) )\n {\n daoUtil.setInt( nIndex, filter.getIdSuggest( ) );\n nIndex++;\n }\n\n if ( filter.containsIdSuggestSubmit( ) )\n {\n daoUtil.setInt( nIndex, filter.getIdSuggestSubmit( ) );\n nIndex++;\n }\n\n if ( filter.containsIdSuggestSubmitState( ) )\n {\n daoUtil.setInt( nIndex, filter.getIdSuggestSubmitState( ) );\n nIndex++;\n }\n\n if ( filter.containsIdCategory( ) )\n {\n daoUtil.setInt( nIndex, filter.getIdCategory( ) );\n nIndex++;\n }\n\n if ( filter.containsDateFirst( ) )\n {\n daoUtil.setTimestamp( nIndex, filter.getDateFirst( ) );\n nIndex++;\n }\n\n if ( filter.containsDateLast( ) )\n {\n daoUtil.setTimestamp( nIndex, filter.getDateLast( ) );\n nIndex++;\n }\n\n if ( filter.containsIdReported( ) )\n {\n daoUtil.setBoolean( nIndex, filter.convertIdBoolean( filter.getIdReported( ) ) );\n nIndex++;\n }\n\n if ( filter.containsNumberVote( ) )\n {\n daoUtil.setInt( nIndex, filter.getNumberVote( ) );\n nIndex++;\n }\n\n if ( filter.containsIdPinned( ) )\n {\n daoUtil.setInt( nIndex, filter.getIdPinned( ) );\n nIndex++;\n }\n \n if ( filter.containsLuteceUserKey())\n {\n \t daoUtil.setString( nIndex, filter.getLuteceUserKey());\n \t nIndex++;\n }\n\n if ( filter.containsIdType( ) )\n {\n daoUtil.setInt( nIndex, filter.getIdType( ) );\n nIndex++;\n }\n \n\n daoUtil.executeQuery( );\n\n while ( daoUtil.next( ) )\n {\n suggestSubmitIdList.add( daoUtil.getInt( 1 ) );\n }\n\n daoUtil.free( );\n\n return suggestSubmitIdList;\n }",
"public abstract List<Course> getByFilter(HashMap<String, String> filter);",
"public List<PlantDTO> fetchPlants(String filter);",
"List<List<String>> getFilters(String resource);",
"public Reviews filterById(int id)\n\t{\n\t\tArrayList<Review> filteredList = new ArrayList<Review>();\n\t\tfilteredList.add(getReview(id));\n\t\treturn new Reviews(filteredList);\n\t}",
"public Filter getContactFilter();",
"public Collection findTemplatesByOwner(Agent owner);",
"default <K> List<Condition> composeFilterConditionsForPrimaryKey(K id) {\n\t\tList<Condition> conditions = new ArrayList<>();\n\t\tList<Attribute<T, ?>> pkAttributes = getPrimaryAttributes();\n\t\tif (pkAttributes.size() == 1) {\n\t\t\tconditions.add(Condition.eq(pkAttributes.get(0), id));\n\t\t} else {\n\t\t\t// composed primary key\n\t\t\tconditions.addAll(composeFilterConditionsForCompositePrimaryKey(id));\n\t\t}\n\t\treturn conditions;\n\t}",
"java.lang.String getFilter();",
"@GET\n\t\t\t@Path(\"/filter\")\n\t\t\t@Produces({\"application/xml\"})\n\t\t\tpublic Rows getAttachmentRowsByFilter() {\n\t\t\t\tRows rows = null;\n\t\t\t\ttry {\n\t\t\t\t\trows=new AttachmentDao(uriInfo,header).getAttachmentByFilter();\n\t\t\t\t} catch (AuthenticationException e) {\n\t\t\t\t\t rows=new TemplateUtility().getFailedMessage(e.getMessage());\n\t\t\t\t\t e.printStackTrace();\n\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\t logger.info( \"Error calling getAttachmentRowsByFilter()\"+ ex.getMessage());\n\t\t\t\t\t ex.printStackTrace();\n\t\t\t\t}\n\t\t\t\treturn rows;\n\t\t\t}",
"public void getTempData(){\r\n ts.GetTemplateRecords();\r\n }",
"public Boolean templateFiltersDelete(Long idTemplateFilters)\n\t{\n\t\tTemplateFiltersDAO dao = new TemplateFiltersDAO();\n\t\tdao.deleteTemplateFilterById(idTemplateFilters);\n\t\treturn true;\n\t}",
"public int getTemplateId() {\n return templateId;\n }",
"public List<String> getMetadataTemplate(Long id,Boolean loadNameMetadata){ \n\t\tList<String> metadata = new ArrayList<>();\n\t\tFieldsMappingMetaDAO dao = new FieldsMappingMetaDAO();\n\t\tFieldsTemplateLibraryDAO fieldDao = new FieldsTemplateLibraryDAO();\n\t\tCollection<FieldsMappingMeta>fields = dao.getAllByIdTemplate(id);\n\t\tFieldsTemplateLibrary ftl = new FieldsTemplateLibrary();\n\t\t\n\t\tif(fields!=null && !fields.isEmpty()) {\n\t\t\tfor (FieldsMappingMeta item : fields) \n\t\t\t{\n\t\t\t\tif(loadNameMetadata)\n\t\t\t\t\tmetadata.add(item.getFieldsTemplateLibrary().getNameSource().toString());\n\t\t\t\telse\n\t\t\t\t\tmetadata.add(item.getFieldsTemplateLibrary().getId().toString());\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn metadata;\n\t}",
"public static interface GetFilter extends KeyValueFilter {\r\n\t\tObject get(String name);\r\n\t}",
"public int getVorlageShopObjectID(int templateId);",
"String getTemplate();",
"@Override\r\n public Page<T> filter(U filter)\r\n {\r\n Class<T> T = returnedClass();\r\n CriteriaBuilder cb = getEm().getCriteriaBuilder();\r\n CriteriaQuery<T> criteriaQuery = cb.createQuery(T);\r\n CriteriaQuery<Long> criteriaQueryCount = cb.createQuery(Long.class);\r\n Root<T> entity = criteriaQuery.from(T);\r\n criteriaQueryCount.select(cb.count(entity));\r\n criteriaQuery.select(entity);\r\n \r\n // collect all filters relevant for affected entity\r\n List<Object> filters = new ArrayList<Object>();\r\n getPreFilters(filters, T, filter);\r\n \r\n filters.add(filter);\r\n List<Hint> hints = new ArrayList<Hint>();\r\n \r\n if (!filters.isEmpty()) {\r\n List<Predicate> filterPredicates = new ArrayList<Predicate>();\r\n for (Object queryCriteria : filters) {\r\n \r\n List<Predicate> orPredicates = new ArrayList<Predicate>();\r\n List<Predicate> andPredicates = new ArrayList<Predicate>();\r\n FilterContextImpl<T> filterContext = new FilterContextImpl<T>(entity, criteriaQuery, getEm(), queryCriteria);\r\n hints.addAll(filterContext.getHints());\r\n \r\n List<Field> fields = AbstractFilteringRepository.getInheritedPrivateFields(queryCriteria.getClass());\r\n for (Field field : fields) {\r\n // I want to skip static fields and fields which are cared of in different(specific way)\r\n if (!Modifier.isStatic(field.getModifiers()) && !ignoredFields.contains(field.getName())) {\r\n if (!field.isAccessible()) {\r\n field.setAccessible(true);\r\n }\r\n \r\n /**\r\n * Determine field path\r\n */\r\n // anottaion specified path has always highest priority, so is processed in the first place processing\r\n FieldPath fieldPathAnnotation = field.getAnnotation(FieldPath.class);\r\n Field f;\r\n if (fieldPathAnnotation != null && StringUtils.isNotBlank(fieldPathAnnotation.value())) {\r\n f = FieldUtils.getField(T, StringUtils.substringBefore(fieldPathAnnotation.value(), FieldPath.FIELD_PATH_SEPARATOR), true);\r\n } else {\r\n f = FieldUtils.getField(T, StringUtils.substringBefore(field.getName(), StructuredPathFactory.FILTER_PATH_SEPARATOR), true);\r\n }\r\n \r\n // tries to find CustmoProcessor annotation or some annotation metaannotated by custom processor\r\n CustomProcessor processor = field.getAnnotation(CustomProcessor.class);\r\n if (processor == null) {\r\n processor = getMetaAnnotation(CustomProcessor.class, field);\r\n }\r\n \r\n ProcessorContext<T> processorContext = filterContext.getProcessorContext(andPredicates, orPredicates, field);\r\n Object filterFieldValue = getFilterFieldValue(field, queryCriteria);\r\n if (processor == null && f != null) {\r\n processTypes(filterFieldValue, processorContext);\r\n // If field is not pressent in Entity, it needs special care\r\n } else {\r\n Class<CustomFieldProcessor<T, ?>> processorClass = null;\r\n if (processor != null) {\r\n processorClass = (Class<CustomFieldProcessor<T, ?>>) processor.value();\r\n processCustomFields(filterFieldValue, processorContext, processorClass);\r\n } else {\r\n if (!processCustomTypes(filterFieldValue, processorContext)) {\r\n if (shouldCheck(processorContext.getField())) {\r\n LOG.info(\"Field \\'\" + processorContext.getField().getName() + \"\\' from \"\r\n + processorContext.getField().getDeclaringClass().getSimpleName()\r\n + \" wasn't handled. \");\r\n throw new UnsupportedOperationException(\"Custom filter fields not supported in \"\r\n + processorContext.getField().getDeclaringClass().getSimpleName()\r\n + \", required field: \" + processorContext.getField().getName());\r\n } else {\r\n LOG.info(\"Field \\'\" + processorContext.getField().getName() + \"\\' from \"\r\n + processorContext.getField().getDeclaringClass().getSimpleName()\r\n + \" marked with @Unchecked annotation wasn't handled. \");\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n if (!andPredicates.isEmpty() || !orPredicates.isEmpty()) {\r\n Predicate filterPredicate = null;\r\n if (!andPredicates.isEmpty()) {\r\n Predicate andPredicate = cb.and(andPredicates.toArray(new Predicate[1]));\r\n filterPredicate = andPredicate;\r\n }\r\n if (!orPredicates.isEmpty()) {\r\n Predicate orPredicate = cb.or(orPredicates.toArray(new Predicate[1]));\r\n if (filterPredicate != null) {\r\n filterPredicate = cb.and(filterPredicate, orPredicate);\r\n } else {\r\n filterPredicate = orPredicate;\r\n }\r\n }\r\n filterPredicates.add(filterPredicate);\r\n }\r\n }\r\n if (!filterPredicates.isEmpty()) {\r\n Predicate finalPredicate = cb.and(filterPredicates.toArray(new Predicate[1]));\r\n criteriaQuery.where(finalPredicate);\r\n criteriaQueryCount.where(finalPredicate);\r\n }\r\n }\r\n \r\n \r\n TypedQuery<T> query = getEm().createQuery(criteriaQuery);\r\n TypedQuery<Long> queryCount = getEm().createQuery(criteriaQueryCount);\r\n if (filter != null && filter.getPageSize() > 0) {\r\n query = query.setFirstResult(filter.getOffset());\r\n query = query.setMaxResults(filter.getPageSize());\r\n }\r\n // add hints\r\n if (!hints.isEmpty()) {\r\n for (Hint hint : hints) {\r\n query.setHint(hint.getName(), hint.getValue());\r\n queryCount.setHint(hint.getName(), hint.getValue());\r\n }\r\n }\r\n \r\n \r\n PageImpl<T> result = new PageImpl<T>(query.getResultList(), filter, queryCount.getSingleResult().intValue());\r\n return result;\r\n }",
"public LSPFilter getFilter () {\r\n return filter;\r\n }",
"List<TemplateDTO> getAllTemplates() throws GAException;",
"List<TbFreightTemplate> selectAll();",
"List<Template> getTemplates() throws AccessDeniedException;",
"public PpdDocGenRequestPayloadDto getFieldsTemplateListWithLib(Long idTemplate)\n\t{\n\t\tFieldsTemplateDAO daoTemplate = new FieldsTemplateDAO();\n\t\tFieldsTemplateLibraryDAO daoTemplateLib = new FieldsTemplateLibraryDAO();\n\t\t\n\t\tTemplate template = new Template();\n\t\ttemplate.setId(idTemplate);\n\t\t\n\t\tCollection<FieldsTemplate> responseList = daoTemplate.getAllFields(template);\n\t\tCollection<FieldsTemplateLibrary> responseTempLib = daoTemplateLib.getAllFields();\n\t\t\n\t\tPpdDocGenRequestPayloadDto respose = UtilMapping.templateFielsEntityToDTO(responseList,responseTempLib);\n\t\t\n\t\treturn respose;\n\t}",
"public Template getTemplateByCompanyIdAndTemplateTitle(Template template) {\n return templateMapper.getTemplateByCompanyIdAndTemplateTitle(template);\n }",
"@Override\r\n\tpublic Object getEntity(Class entityClass, Serializable id) {\n\t\treturn template.get(entityClass, id);\r\n\t}",
"public InstitutionBean[] loadUsingTemplate(InstitutionBean pObject) throws SQLException\n {\n Connection c = null;\n PreparedStatement ps = null;\n StringBuffer where = new StringBuffer(\"\");\n StringBuffer _sql = new StringBuffer(\"SELECT \" + ALL_FIELDS + \" from institution WHERE \");\n StringBuffer _sqlWhere = new StringBuffer(\"\");\n try\n {\n int _dirtyCount = 0;\n \n if (pObject.isInstitutionidModified()) {\n _dirtyCount ++; \n _sqlWhere.append((_sqlWhere.length() == 0) ? \" \" : \" AND \").append(\"institutionid= ?\");\n }\n \n if (pObject.isNameModified()) {\n _dirtyCount ++; \n _sqlWhere.append((_sqlWhere.length() == 0) ? \" \" : \" AND \").append(\"name= ?\");\n }\n \n if (pObject.isAddressModified()) {\n _dirtyCount ++; \n _sqlWhere.append((_sqlWhere.length() == 0) ? \" \" : \" AND \").append(\"address= ?\");\n }\n \n if (pObject.isCodeModified()) {\n _dirtyCount ++; \n _sqlWhere.append((_sqlWhere.length() == 0) ? \" \" : \" AND \").append(\"code= ?\");\n }\n \n if (pObject.isProviderModified()) {\n _dirtyCount ++; \n _sqlWhere.append((_sqlWhere.length() == 0) ? \" \" : \" AND \").append(\"provider= ?\");\n }\n \n if (pObject.isHeaderlogoModified()) {\n _dirtyCount ++; \n _sqlWhere.append((_sqlWhere.length() == 0) ? \" \" : \" AND \").append(\"headerlogo= ?\");\n }\n \n if (pObject.isIsoModified()) {\n _dirtyCount ++; \n _sqlWhere.append((_sqlWhere.length() == 0) ? \" \" : \" AND \").append(\"iso= ?\");\n }\n \n if (pObject.isFullnameModified()) {\n _dirtyCount ++; \n _sqlWhere.append((_sqlWhere.length() == 0) ? \" \" : \" AND \").append(\"fullname= ?\");\n }\n \n if (pObject.isPhoneModified()) {\n _dirtyCount ++; \n _sqlWhere.append((_sqlWhere.length() == 0) ? \" \" : \" AND \").append(\"phone= ?\");\n }\n \n if (pObject.isUrlModified()) {\n _dirtyCount ++; \n _sqlWhere.append((_sqlWhere.length() == 0) ? \" \" : \" AND \").append(\"url= ?\");\n }\n \n if (pObject.isParentidModified()) {\n _dirtyCount ++; \n _sqlWhere.append((_sqlWhere.length() == 0) ? \" \" : \" AND \").append(\"parentid= ?\");\n }\n \n if (pObject.isCompanyidModified()) {\n _dirtyCount ++; \n _sqlWhere.append((_sqlWhere.length() == 0) ? \" \" : \" AND \").append(\"companyid= ?\");\n }\n \n if (_dirtyCount == 0) {\n throw new SQLException (\"The pObject to look for is invalid : not initialized !\");\n }\n _sql.append(_sqlWhere);\n c = getConnection();\n ps = c.prepareStatement(_sql.toString(),ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);\n _dirtyCount = 0;\n \n if (pObject.isInstitutionidModified()) {\n Manager.setInteger(ps, ++_dirtyCount, pObject.getInstitutionid());\n }\n \n if (pObject.isNameModified()) {\n ps.setString(++_dirtyCount, pObject.getName());\n }\n \n if (pObject.isAddressModified()) {\n ps.setString(++_dirtyCount, pObject.getAddress());\n }\n \n if (pObject.isCodeModified()) {\n ps.setString(++_dirtyCount, pObject.getCode());\n }\n \n if (pObject.isProviderModified()) {\n Manager.setBoolean(ps, ++_dirtyCount, pObject.getProvider());\n }\n \n if (pObject.isHeaderlogoModified()) {\n ps.setString(++_dirtyCount, pObject.getHeaderlogo());\n }\n \n if (pObject.isIsoModified()) {\n ps.setString(++_dirtyCount, pObject.getIso());\n }\n \n if (pObject.isFullnameModified()) {\n ps.setString(++_dirtyCount, pObject.getFullname());\n }\n \n if (pObject.isPhoneModified()) {\n ps.setString(++_dirtyCount, pObject.getPhone());\n }\n \n if (pObject.isUrlModified()) {\n ps.setString(++_dirtyCount, pObject.getUrl());\n }\n \n if (pObject.isParentidModified()) {\n Manager.setInteger(ps, ++_dirtyCount, pObject.getParentid());\n }\n \n if (pObject.isCompanyidModified()) {\n Manager.setInteger(ps, ++_dirtyCount, pObject.getCompanyid());\n }\n \n ps.executeQuery();\n return loadByPreparedStatement(ps);\n }\n finally\n {\n getManager().close(ps);\n freeConnection(c);\n }\n }",
"@GET\n\t\t\t@Path(\"/filter\")\n\t\t\t@Produces({\"application/xml\"})\n\t\t\tpublic Rows getIndentRowsByFilter() {\n\t\t\t\tRows rows = null;\n\t\t\t\ttry {\n\t\t\t\t\trows=new IndentDao(uriInfo,header).getIndentByFilter();\n\t\t\t\t} catch (AuthenticationException e) {\n\t\t\t\t\t rows=new TemplateUtility().getFailedMessage(e.getMessage());\n\t\t\t\t\t e.printStackTrace();\n\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\t logger.info( \"Error calling getIndentRowsByFilter()\"+ ex.getMessage());\n\t\t\t\t\t ex.printStackTrace();\n\t\t\t\t}\n\t\t\t\treturn rows;\n\t\t\t}",
"@Override\n\tpublic Recipe getRecipe(int id) {\n\t\tRestTemplate restTemplate = new RestTemplate();\n\t\t\n\t\tResponseEntity<Recipe> rateResponse =\n\t\t restTemplate.exchange(BASE_URL + RECIPE_URL + id, HttpMethod.GET, \n\t\t \t\tnull, new ParameterizedTypeReference<Recipe>() {\n\t\t });\n\t\tRecipe recipe = rateResponse.getBody();\n\t\tlogger.debug(\"RECIPE Info :\" + recipe);\n\t\treturn recipe;\n\t}",
"T getbyId(I id);",
"@GET(\"users/templates\")\n Call<PageResourceTemplateResource> getUserTemplates(\n @retrofit2.http.Query(\"size\") Integer size, @retrofit2.http.Query(\"page\") Integer page, @retrofit2.http.Query(\"order\") String order\n );",
"List<FormSubmit> selectListByFilter( ResponseFilter filter, Plugin plugin );",
"Get<K, C> addFilter(Filter<K, C> filter);",
"public Collection<Template> getListTemplates()\n\t{\t\t\n\t\tTemplateDAO dao = new TemplateDAO();\n\t\treturn dao.getAll(UtilCodesEnum.CODE_ACTIVE.getCode(),null);\t\t \n\t}",
"@Search()\n\t\tpublic List<Patient> getResourceById(@RequiredParam(name = \"_id\") String theId) {\n\t\t\tPatient patient = getIdToPatient().get(theId);\n\t\t\tif (patient != null) {\n\t\t\t\treturn Collections.singletonList(patient);\n\t\t\t} else {\n\t\t\t\treturn Collections.emptyList();\n\t\t\t}\n\t\t}",
"public static List<View> getViewsById(@NonNull View root, @NonNull Resources res, int arrayId,\n @Nullable Filter filter) {\n TypedArray viewIds = res.obtainTypedArray(arrayId);\n List<View> views = new ArrayList<>(viewIds.length());\n for (int i = 0; i < viewIds.length(); i++) {\n int viewId = viewIds.getResourceId(i, 0);\n if (viewId != 0) {\n View view = root.findViewById(viewId);\n if (view != null && (filter == null || filter.isValid(view))) {\n views.add(view);\n }\n }\n }\n viewIds.recycle();\n return views;\n }",
"public interface FilterService {\n\n /**Method that will getFilteredItems the filter and return the result as a JSONArray\n * @return the filtered result as a JSONArray*/\n List<JSONObject> getFilteredItems();\n\n /**Method that returns the name of the class\n * @return class simple name*/\n String getFilterName();\n\n /**Method that prints all items on the list*/\n void printFilteredItems();\n\n /**Method that prints the number of the items on the list*/\n void printNumberOfFilteredItems();\n\n // TODO IMPLEMENTED WITH OSGI Method that will return the number of the selected number, used for managing the filters\n //int getFilterNumber();\n}",
"public abstract NoticeTemplate getNoticeTemplate(String templateId);",
"private IdentifiedRecordTemplate selectTemplateRow(Connection con,\n String externalId) throws SQLException {\n PreparedStatement select = null;\n ResultSet rs = null;\n \n try {\n select = con.prepareStatement(SELECT_TEMPLATE);\n select.setString(1, externalId);\n rs = select.executeQuery();\n \n if (!rs.next()) {\n return null;\n }\n int internalId = rs.getInt(1);\n String templateName = rs.getString(3);\n \n IdentifiedRecordTemplate template = new IdentifiedRecordTemplate(\n new GenericRecordTemplate());\n template.setInternalId(internalId);\n template.setExternalId(externalId);\n template.setTemplateName(templateName);\n return template;\n } finally {\n DBUtil.close(rs, select);\n }\n }",
"EmailTemplateSubCategoryMaster findbyId(long subcategoryId);",
"@DISPID(5) //= 0x5. The runtime will prefer the VTID if present\n @VTID(11)\n java.lang.String getFilterText();",
"T findById(ID id) ;",
"@RequestMapping(value=\"ProductDetail/{id}\",method=RequestMethod.GET)\r\n\tpublic String searchId(@PathVariable(\"id\")String id,ModelMap model){\r\n\t\tProductTO productTO=new ProductTO();\r\n\t\tproductTO=searchService.getProductById(id);\r\n\t\tmodel.addAttribute(\"productTO\", productTO);\r\n\t\treturn \"ProductDetail\";\r\n\t}",
"public void setFilterId(String filterId) {\n this.filterId = filterId;\n }",
"public interface TblAuditTemplateDao {\n\n TblAuditTemplate selectByTemplateId(String templateId);\n}",
"String getFilterName();",
"public Integer getTemplateid() {\n return templateid;\n }",
"private Reviews filterByFunc(FilterFunction filterFunc)\n\t{\n\t\tArrayList<Review> filteredList = new ArrayList<Review>();\n\t\tfor(Review review : list)\n\t\t\tif(filterFunc.filter(review))\n\t\t\t\tfilteredList.add(review);\n\t\treturn new Reviews(filteredList);\n\t}",
"List<String> getFilters();",
"List<TempletLink> selectByExample(TempletLinkExample example);",
"public Template getTemplate(Website website, String context, boolean is_list) throws TemplateNotFoundException, StorageException{\n\t\t\n\t\tSet<Map<String, String>> results = new LinkedHashSet<>();\n\t\tString template_type;\n\t\t\n\t\tif(is_list) {\n\t\t\ttemplate_type = \"list_templates\";\n\t\t} else {\n\t\t\ttemplate_type = \"article_templates\";\n\t\t}\n\t\t\n\t\tresults = storage.get(template_type, \"(fk_website = '\"+website.getId()+\"' AND context ='\"+context+\"')\");\n\t\t\n\t\tif (results==null || results.isEmpty()){\n\t\t\tthrow new TemplateNotFoundException();\n\t\t}\n\t\t\n\t\tTemplate template;\n\t\tIterator<Map<String, String>> iter = results.iterator();\n\t\tif(is_list) {\n\t\t\ttemplate = new ArticleListTemplate((Map<String, String>) iter.next());\n\t\t} else {\n\t\t\ttemplate = new ArticleTemplate((Map<String, String>) iter.next());\n\t\t}\n\t\t\t\t\n\t\treturn template;\n\t\t\n\t}",
"public Collection<Integer> getPageIdsForTemplate(String templateId);",
"java.lang.String getDataItemFilter();",
"public ContentList filterContentList(ContentDatabaseFilter filter) throws DatabaseException;",
"private void selectTemplateFieldRows(Connection con,\n IdentifiedRecordTemplate template) throws SQLException, FormException {\n PreparedStatement select = null;\n ResultSet rs = null;\n GenericRecordTemplate wrapped = (GenericRecordTemplate) template\n .getWrappedTemplate();\n \n try {\n select = con.prepareStatement(SELECT_TEMPLATE_FIELDS);\n select.setInt(1, template.getInternalId());\n rs = select.executeQuery();\n \n GenericFieldTemplate fieldTemplate = null;\n String fieldName;\n String fieldType;\n boolean isMandatory;\n boolean isReadOnly;\n boolean isHidden;\n while (rs.next()) {\n // templateId = rs.getInt(1);\n fieldName = rs.getString(2);\n // fieldIndex = rs.getInt(3);\n fieldType = rs.getString(4);\n isMandatory = rs.getBoolean(5);\n isReadOnly = rs.getBoolean(6);\n isHidden = rs.getBoolean(7);\n \n fieldTemplate = new GenericFieldTemplate(fieldName, fieldType);\n fieldTemplate.setMandatory(isMandatory);\n fieldTemplate.setReadOnly(isReadOnly);\n fieldTemplate.setHidden(isHidden);\n \n wrapped.addFieldTemplate(fieldTemplate);\n }\n } finally {\n DBUtil.close(rs, select);\n }\n }",
"@Override\n\tpublic List<Resources> selectByResByAreaId(String id,String type) {\n\t\tMap<String, Object> param = new HashMap<String, Object>();\n\t\tparam.put(\"id\", id);\n\t\tparam.put(\"type\", type);\n\t\treturn ResourcesMapper.selectByResByAreaId(param);\n\t}",
"public int[][] getTemplate(String name) {\r\n String[] filters = linearFilters();\r\n switch (name) {\r\n case \"Averaging\":\r\n return new int[][]{{1, 1, 1}, {1, 1, 1}, {1, 1, 1}};\r\n case \"Weighted Averaging\":\r\n return new int[][]{{1, 2, 1}, {2, 4, 2}, {1, 2, 1}};\r\n case \"4-neighbour Laplacian\":\r\n return new int[][]{{0, -1, 0}, {-1, 4, -1}, {0, -1, 0}};\r\n case \"8-neighbour Laplacian\":\r\n return new int[][]{{-1, -1, -1}, {-1, 8, -1}, {-1, -1, -1}};\r\n case \"4-neighbour Laplacian Enhancement\":\r\n return new int[][]{{0, -1, 0}, {-1, 5, -1}, {0, -1, 0}};\r\n case \"8-neighbour Laplacian Enhancement\":\r\n return new int[][]{{-1, -1, -1}, {-1, 9, -1}, {-1, -1, -1}};\r\n case \"Roberts\":\r\n return new int[][]{{0, 0, 0}, {0, 0, -1}, {0, 1, 0}};\r\n case \"Roberts1\":\r\n return new int[][]{{0, 0, 0}, {0, -1, 0}, {0, 0, 1}};\r\n case \"Sobel X\":\r\n return new int[][]{{-1, 0, 1}, {-2, 0, 2}, {-1, 0, 1}};\r\n case \"Sobel Y\":\r\n return new int[][]{{-1, -2, -1}, {0, 0, 0}, {1, 2, 1}};\r\n }\r\n return null;\r\n }",
"public Activity getById(int id){ \n\t\tActivity e=(Activity)template.get(Activity.class,id); \n\t return e; \n\t}"
] | [
"0.6466275",
"0.5398726",
"0.53527844",
"0.5330619",
"0.53304005",
"0.53250974",
"0.5295422",
"0.5292696",
"0.5287541",
"0.52676743",
"0.52592194",
"0.5255128",
"0.52547455",
"0.52479386",
"0.5231637",
"0.5223598",
"0.5220038",
"0.5198017",
"0.5172928",
"0.51605314",
"0.5144884",
"0.51425034",
"0.51273376",
"0.5099711",
"0.5095232",
"0.5084451",
"0.5075342",
"0.5072194",
"0.5047953",
"0.50417966",
"0.5035209",
"0.50287503",
"0.50173444",
"0.5009925",
"0.49952143",
"0.49845654",
"0.49742",
"0.49665052",
"0.496163",
"0.49497226",
"0.4938961",
"0.49303034",
"0.49265072",
"0.4918183",
"0.49064812",
"0.48976994",
"0.48948416",
"0.48839754",
"0.48758277",
"0.4873154",
"0.4861658",
"0.48582262",
"0.48570418",
"0.4847477",
"0.48466334",
"0.48431093",
"0.48417184",
"0.48252356",
"0.48117653",
"0.48081532",
"0.48019034",
"0.4788025",
"0.4783196",
"0.47651142",
"0.47628093",
"0.47556335",
"0.47499147",
"0.4737089",
"0.4732098",
"0.4725349",
"0.47247618",
"0.47203234",
"0.4694736",
"0.46921188",
"0.46881828",
"0.46841842",
"0.46814924",
"0.46807274",
"0.46800876",
"0.46797064",
"0.4678269",
"0.46661678",
"0.46660173",
"0.46624723",
"0.46577623",
"0.4654871",
"0.46536097",
"0.46518707",
"0.46417096",
"0.46363735",
"0.4636216",
"0.46332118",
"0.46331042",
"0.4632159",
"0.46300113",
"0.46229652",
"0.4610681",
"0.4608198",
"0.46023262",
"0.45945826"
] | 0.73598504 | 0 |
get all templates filters by id template | public ArrayList<TemplateFilters> templateFiltersGetAllById(Template template)
{
TemplateFiltersDAO dao = new TemplateFiltersDAO();
Collection<TemplateFilters> listResponse = dao.getAllTemplateFiltersById(template);
return (new ArrayList<TemplateFilters>(listResponse));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public TemplateFilters templateFiltersGetById(Long idTemplateFilter){\n\t\tTemplateFiltersDAO dao = new TemplateFiltersDAO();\n\t\treturn dao.getById(idTemplateFilter);\n\t}",
"List<TemplateDTO> getAllTemplates() throws GAException;",
"TemplateList getAllTemplates(String templateType) throws NotificationClientException;",
"List<AssessmentTemplate> getAssessmentTemplates(Long minimumID);",
"public Collection<Template> getListTemplates()\n\t{\t\t\n\t\tTemplateDAO dao = new TemplateDAO();\n\t\treturn dao.getAll(UtilCodesEnum.CODE_ACTIVE.getCode(),null);\t\t \n\t}",
"public ArrayList<Template> getListTemplatesByEventList(Long idEventListener)\n\t{\n\t\tTemplateDAO dao = new TemplateDAO();\n\t\tCollection<Template> listCollection = dao.getAllTemplateByEventList(idEventListener);\n\t\treturn (new ArrayList<Template>(listCollection));\n\t}",
"List<Template> getTemplates() throws AccessDeniedException;",
"public Collection<Integer> getPageIdsForTemplate(String templateId);",
"public List<Template> getTemplates() {\r\n\t\treturn templateDao.findAll();\r\n\t}",
"public Collection findTemplatesByOwner(Agent owner, String siteId);",
"public List<SurveyTemplateEntity> findByActiveIsTrue();",
"private Response findTemplates(Request request) throws IOException {\n String query = \"select * from per:Page where jcr:path like '/content/%/templates%'\";\n return findAndOutputToWriterAsJSON(request, query);\n }",
"public Collection<FieldsTemplate> getFieldsTemplateList(Long idTemplate)\n\t{\n\t\tFieldsTemplateDAO daoTemplate = new FieldsTemplateDAO();\n\t\t\n\t\tTemplate template = new Template();\n\t\ttemplate.setId(idTemplate);\n\t\t\n\t\tCollection<FieldsTemplate> responseList = daoTemplate.getAllFields(template);\n\t\tloggerSingle.info(\"num fields template \"+idTemplate+\": \"+responseList.size());\n\t\treturn responseList;\n\t}",
"public Collection findTemplatesByOwner(Agent owner);",
"public Template[] getTemplates(String name) {\n\tArrayList res = new ArrayList();\n\tfor (Iterator iterator = fTemplates.iterator(); iterator.hasNext();) {\n\t Template curr = (Template) iterator.next();\n\t if (curr.getName().equals(name)) {\n\t\tres.add(curr);\n\t }\n\t}\n\treturn (Template[]) res.toArray(new Template[res.size()]);\n }",
"List<Receta> getAll(String filter);",
"public ResultSet getAllQuestionnaireTemplates () throws Exception {\r\n String sql = \"SELECT * FROM questionnairetemplates;\";\r\n return stmt.executeQuery(sql);\r\n }",
"@GET(\"users/templates\")\n Call<PageResourceTemplateResource> getUserTemplates(\n @retrofit2.http.Query(\"size\") Integer size, @retrofit2.http.Query(\"page\") Integer page, @retrofit2.http.Query(\"order\") String order\n );",
"public ArrayList<Template> getTemplates() {\n\t\treturn getPageObjects(Template.class);\n\t}",
"public List<PSTemplateSummary> findAllUserTemplates() throws PSTemplateException;",
"public List<Template> getTemplates() {\n return templates;\n }",
"public static ITemplate[] getExistingTemplates() {\n\t\tfinal List<ITemplate> allTemps = StorageService.getAllTemplates();\n\t\tfinal List<ITemplate> filteredTemps = new ArrayList<>();\n\t\tfor (final ITemplate t : allTemps) {\n\t\t\tif (!t.getName().equals(\"Custom\")) {\n\t\t\t\tfilteredTemps.add(t);\n\t\t\t}\n\t\t}\n\t\tITemplate[] templates = new ITemplate[filteredTemps.size()];\n\t\ttemplates = filteredTemps.toArray(templates);\n\t\treturn templates;\n\t}",
"List<PSTemplateSummary> findBaseTemplates(String type);",
"List<TbFreightTemplate> selectAll();",
"@GET(\"users/templates/{id}\")\n Call<TemplateResource> getUserTemplate(\n @retrofit2.http.Path(\"id\") String id\n );",
"@RequestMapping(value = \"/coupon-template/template/sdk/all\",\n method = RequestMethod.GET)\n CommonResponse<List<CouponTemplateSDK>> findAllUsableTemplate();",
"PSTemplateSummary find(String id) throws PSDataServiceException;",
"public List<PSTemplateSummary> loadUserTemplateSummaries(List<String> ids, String siteName) throws PSTemplateException;",
"public List<PSTemplateSummary> findAll() throws IPSGenericDao.LoadException, PSTemplateException;",
"public ArrayList<TemplateGroupSignature> getSignatureGroupTemplateList(Long idTemplate)\n\t{\n\t\tTemplateGroupSignatureDAO dao = new TemplateGroupSignatureDAO();\n\t\t\n\t\tTemplate template = new Template();\n\t\ttemplate.setId(idTemplate);\n\t\t\n\t\tCollection<TemplateGroupSignature> signatureList = dao.getAllFields(template);\n\t\tArrayList<TemplateGroupSignature> responseList = new ArrayList<TemplateGroupSignature>(signatureList);\n\t\t\n\t\tloggerSingle.info(\"num group signature template \"+idTemplate+\": \"+responseList.size());\n\t\treturn responseList;\n\t}",
"@GetMapping(\"/analysis-templates\")\n\tpublic List<AnalysisTemplate> getProjectAnalysisTemplates(@PathVariable long projectId, Locale locale) {\n\t\treturn pipelineService.getProjectAnalysisTemplates(projectId, locale);\n\t}",
"public List<Triplet> selectAllByRelation(int id) throws DAOException;",
"public Result all(String id);",
"@JsonIgnore\r\n\tpublic ArrayList<ShippingTemplate> getAllShippingTemplateEntries(String shippingTemplateId) {\r\n\t\tString results = EtsyService.getService(\"/shipping/templates/\"+shippingTemplateId+\"/entries\");\r\n\t\treturn readResults(results);\r\n\t}",
"public List<String> getMetadataTemplate(Long id,Boolean loadNameMetadata){ \n\t\tList<String> metadata = new ArrayList<>();\n\t\tFieldsMappingMetaDAO dao = new FieldsMappingMetaDAO();\n\t\tFieldsTemplateLibraryDAO fieldDao = new FieldsTemplateLibraryDAO();\n\t\tCollection<FieldsMappingMeta>fields = dao.getAllByIdTemplate(id);\n\t\tFieldsTemplateLibrary ftl = new FieldsTemplateLibrary();\n\t\t\n\t\tif(fields!=null && !fields.isEmpty()) {\n\t\t\tfor (FieldsMappingMeta item : fields) \n\t\t\t{\n\t\t\t\tif(loadNameMetadata)\n\t\t\t\t\tmetadata.add(item.getFieldsTemplateLibrary().getNameSource().toString());\n\t\t\t\telse\n\t\t\t\t\tmetadata.add(item.getFieldsTemplateLibrary().getId().toString());\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn metadata;\n\t}",
"public static Map<String, Long> getTemplates(String endPoint, String language) {\n\t\tSystem.out.println(\" EP : \"+endPoint);\n\t\tSystem.out.println(\" language : \"+language);\n\t\tString response = null;\n\t\tMap<String, Long> templateMap = null;\n\t\tif(language == null || !language.isEmpty()) {\n\t\t\tlanguage = \"en\";\n\t\t}\n\t\tString urlParamStr = \"http://108.168.227.158/GetTemplates?endpoint=\"+endPoint+\"&language=\"+language;\n\t\ttry {\n\t\t\tWebResource webResource = getJerseyClient(urlParamStr);\n\t\t\tresponse = webResource.type(MediaType.APPLICATION_JSON).get(String.class);\n\t\t} catch (Exception e) {\n\t\t\ttry {\n\t\t\t\tThread.sleep(1000);\n\t\t\t} catch (InterruptedException e1) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t\tWebResource webResource = getJerseyClient(urlParamStr);\n\t\t\tresponse = webResource.type(MediaType.APPLICATION_JSON).get(String.class);\n\t\t}\n\t\tList<TemplateTo> templateList = new ArrayList<TemplateTo>();\n\t\tif(response != null && !response.isEmpty()) {\n\n\t\t\tGson gson = new Gson();\n\t\t\tType templateResults = new TypeToken<Map<String, List<TemplateTo>>>(){}.getType();\n\t\t\t// Convert the data from the response JSON object\n\t\t\tMap<String, List<TemplateTo>> templateListMap = gson.fromJson(response, templateResults);\n\t\t\ttemplateList = templateListMap.get(\"templates\");\n\t\t\tif(templateListMap.get(\"templates\") != null && !templateListMap.get(\"templates\").isEmpty() ) {\n\t\t\t\ttemplateMap = new HashMap<String, Long>();\n\t\t\t\tfor (TemplateTo templateTo : templateList) {\n\t\t\t\t\ttemplateMap.put(templateTo.getDescription(), templateTo.getId());\n\t\t\t\t}\n\t\t\t}\n\t\t} \n\t\tSystem.out.println(response);\n\t\treturn templateMap;\n\t}",
"private EC2DescribeImagesResponse listTemplates(String templateId, EC2DescribeImagesResponse images) throws Exception {\n try {\n List<CloudStackTemplate> result = new ArrayList<CloudStackTemplate>();\n\n if (templateId != null) {\n List<CloudStackTemplate> template = getApi().listTemplates(\"executable\", null, null, null, templateId, null, null, null);\n if (template != null) {\n result.addAll(template);\n }\n } else {\n List<CloudStackTemplate> selfExecutable = getApi().listTemplates(\"selfexecutable\", null, null, null, null, null, null, null);\n if (selfExecutable != null) {\n result.addAll(selfExecutable);\n }\n\n List<CloudStackTemplate> featured = getApi().listTemplates(\"featured\", null, null, null, null, null, null, null);\n if (featured != null) {\n result.addAll(featured);\n }\n\n List<CloudStackTemplate> sharedExecutable = getApi().listTemplates(\"sharedexecutable\", null, null, null, null, null, null, null);\n if (sharedExecutable != null) {\n result.addAll(sharedExecutable);\n }\n\n List<CloudStackTemplate> community = getApi().listTemplates(\"community\", null, null, null, null, null, null, null);\n if (community != null) {\n result.addAll(community);\n }\n }\n\n if (result != null && result.size() > 0) {\n for (CloudStackTemplate temp : result) {\n EC2Image ec2Image = new EC2Image();\n ec2Image.setId(temp.getId().toString());\n ec2Image.setAccountName(temp.getAccount());\n ec2Image.setName(temp.getName());\n ec2Image.setDescription(temp.getDisplayText());\n ec2Image.setOsTypeId(temp.getOsTypeId().toString());\n ec2Image.setIsPublic(temp.getIsPublic());\n ec2Image.setState(temp.getIsReady() ? \"available\" : \"pending\");\n ec2Image.setDomainId(temp.getDomainId());\n if (temp.getHyperVisor().equalsIgnoreCase(\"xenserver\"))\n ec2Image.setHypervisor(\"xen\");\n else if (temp.getHyperVisor().equalsIgnoreCase(\"ovm\"))\n ec2Image.setHypervisor(\"ovm\"); // valid values for hypervisor is 'ovm' and 'xen'\n else\n ec2Image.setHypervisor(\"\");\n if (temp.getDisplayText() == null)\n ec2Image.setArchitecture(\"\");\n else if (temp.getDisplayText().indexOf(\"x86_64\") != -1)\n ec2Image.setArchitecture(\"x86_64\");\n else if (temp.getDisplayText().indexOf(\"i386\") != -1)\n ec2Image.setArchitecture(\"i386\");\n else\n ec2Image.setArchitecture(\"\");\n List<CloudStackKeyValue> resourceTags = temp.getTags();\n for (CloudStackKeyValue resourceTag : resourceTags) {\n EC2TagKeyValue param = new EC2TagKeyValue();\n param.setKey(resourceTag.getKey());\n if (resourceTag.getValue() != null)\n param.setValue(resourceTag.getValue());\n ec2Image.addResourceTag(param);\n }\n images.addImage(ec2Image);\n }\n }\n return images;\n } catch (Exception e) {\n logger.error(\"List Templates - \", e);\n throw new Exception(e.getMessage() != null ? e.getMessage() : e.toString());\n }\n }",
"public List<Transaction> idAndTypefilterTransaction(Predicate<Transaction> typeStrategy,\n Predicate<Transaction> idStrategy) throws ParseException {\n return processAllTransaction().getTransactionList().stream().filter(typeStrategy).filter(idStrategy).collect(Collectors.toList());\n }",
"@Override\r\n\tpublic List<TransferCourseMirror> getTEMPCourseMirrorsByEvaluatorId(String evaluatorId){\n\t\treturn getHibernateTemplate().find(\"from TransferCourseMirror where evaluationStatus = 'TEMP' and evaluatorId = ? ORDER BY createdTime\" , evaluatorId);\r\n\t}",
"public PpdDocGenRequestPayloadDto getFieldsTemplateListWithLib(Long idTemplate)\n\t{\n\t\tFieldsTemplateDAO daoTemplate = new FieldsTemplateDAO();\n\t\tFieldsTemplateLibraryDAO daoTemplateLib = new FieldsTemplateLibraryDAO();\n\t\t\n\t\tTemplate template = new Template();\n\t\ttemplate.setId(idTemplate);\n\t\t\n\t\tCollection<FieldsTemplate> responseList = daoTemplate.getAllFields(template);\n\t\tCollection<FieldsTemplateLibrary> responseTempLib = daoTemplateLib.getAllFields();\n\t\t\n\t\tPpdDocGenRequestPayloadDto respose = UtilMapping.templateFielsEntityToDTO(responseList,responseTempLib);\n\t\t\n\t\treturn respose;\n\t}",
"Template getTemplateById(String templateId) throws NotificationClientException;",
"public List<IJobTemplate> getJobTemplates();",
"List<TemplateRelation> getTemplateRelations() throws AccessDeniedException;",
"List<TempletLink> selectByExample(TempletLinkExample example);",
"public ArrayList<String> getAggregatedObjectByTemplateName(String templateName) {\n String queryString = \"{\\\"_id\\\": /.*\" + templateName + \"/}\";\n MongoQuery query = new MongoStringQuery(queryString);\n LOGGER.debug(\"The JSON query is: {}\", query);\n return mongoDBHandler.find(aggregationDataBaseName, aggregationCollectionName, query);\n }",
"private List<String> getTemplateList(String portletName, String category) throws Exception {\n List<String> templateOptionList = new ArrayList<String>();\n List<Node> templateNodeList = templateManagerService.getTemplatesByCategory(portletName, category, SessionProvider.createSystemProvider());\n for (Node templateNode : templateNodeList) {\n templateOptionList.add(templateNode.getPath());\n }\n return templateOptionList;\n }",
"public HashMap<Integer, List<TemplateRelation>> getRelsByTemplate() {\n if (t_rels == null) {\n t_rels = new HashMap<Integer, List<TemplateRelation>>();\n }\n return t_rels;\n }",
"private ArrayList<String> gettemplates(){\n\t\tArrayList<String> result = new ArrayList<String>();\n\t\ttry {\n\t\t String[] cmd = {\n\t\t \t\t\"/bin/sh\",\n\t\t \t\t\"-c\",\n\t\t \t\t\"ls -p | grep -v / | grep -v 'pom.xml' \"\n\t\t \t\t};\n\n\t\t Process p = Runtime.getRuntime().exec(cmd); //Runtime r = Runtime.getRuntime(); Process p = r.exec(cmd);\n\t\t BufferedReader in =\n\t\t new BufferedReader(new InputStreamReader(p.getInputStream()));\n\t\t String inputLine;\n\t\t while ((inputLine = in.readLine()) != null) {\n\t\t result.add(inputLine);\n\t\t }\n\t\t in.close();\n\n\t\t} catch (IOException e) {\n\t\t System.out.println(e);\n\t\t}\n\t\t\n\t\treturn result;\n\t\t}",
"public Set<Transaction> getTransactionsByLotId(Integer id) throws MiddlewareQueryException;",
"@GetMapping(\"/getByGroupId/{id}\")\n public List<TeacherDTO> getTeachersOfGroupById(@PathVariable Long id, Locale locale) {\n return teacherService.getTeachersOfGroupById(id, locale).stream()\n .map(this::convertToDto)\n .collect(Collectors.toList());\n }",
"List<Tag> findCertificateTags(int id);",
"public List<String> getListOfTemplatesInGadget(){\r\n\t\tList<String> templates = new ArrayList<String>();\r\n\t\tList<WebElement> ele = driver.findElements(By.xpath(\"//div[contains(@class,'x-gadget')]//div[contains(@class,'helpdesk-newcall')]//div[@class='tplLabel']\"));\r\n\t\tfor(WebElement template : ele)\r\n\t\t\ttemplates.add(template.getText());\r\n\t\treturn templates;\r\n\t}",
"List<List<String>> getFilters(String resource);",
"AccountAccountTemplateEntityWithBLOBs selectByPrimaryKey(Integer id);",
"public Template getTemplateById(Long id)\n\t{\n\t\tTemplateDAO dao = new TemplateDAO();\n\t\tTemplate template = dao.getById(id,UtilCodesEnum.CODE_ACTIVE.getCode());\n\t\treturn template;\n\t}",
"List<FilterInfo> getZuulFiltersForFilterId(String filter_id);",
"public FieldsTemplate getFielTemplateById(Long id)\n\t{\n\t\tFieldsTemplateDAO dao = new FieldsTemplateDAO();\n\t\tFieldsTemplate fieldTemplate = dao.getById(id);\n\t\treturn fieldTemplate;\n\t}",
"TbFreightTemplate selectByPrimaryKey(Long id);",
"public List<PlantDTO> fetchPlants(String filter);",
"public List<Map<String, Object>> getAuktionPath(int objectId, int templateId);",
"@Test\n public void listTemplatesForAccountTest() throws IdfyException, Exception {\n PdfTemplateListItem[] response = api.listTemplatesForAccount();\n assertNotNull(response);\n }",
"public void getTempData(){\r\n ts.GetTemplateRecords();\r\n }",
"@Override\n\tpublic synchronized List<Plantilla> findAll(String filtro){\n\t\tList<Plantilla> lista = new ArrayList<>();\n\t\tfor(Plantilla p:listaPlantillas()){\n\t\t\ttry{\n\t\t\t\tboolean pasoFiltro = (filtro==null||filtro.isEmpty())\n\t\t\t\t\t\t||p.getNombrePlantilla().toLowerCase().contains(filtro.toLowerCase());\n\t\t\t\tif(pasoFiltro){\n\t\t\t\t\tlista.add(p.clone());\n\t\t\t\t}\n\t\t\t}catch(CloneNotSupportedException ex) {\n\t\t\t\tLogger.getLogger(ServicioPlantillaImpl.class.getName()).log(null, ex);\n\t\t\t}\n\t\t}\n\t\tCollections.sort(lista, new Comparator<Plantilla>() {\n\n\t\t\t@Override\n\t\t\tpublic int compare(Plantilla o1, Plantilla o2) {\n\t\t\t\treturn (int) (o2.getId() - o1.getId());\n\t\t\t}});\n\t\t\n\t\treturn lista;\n\t}",
"public static List<View> getViewsById(@NonNull View root, @NonNull Resources res, int arrayId,\n @Nullable Filter filter) {\n TypedArray viewIds = res.obtainTypedArray(arrayId);\n List<View> views = new ArrayList<>(viewIds.length());\n for (int i = 0; i < viewIds.length(); i++) {\n int viewId = viewIds.getResourceId(i, 0);\n if (viewId != 0) {\n View view = root.findViewById(viewId);\n if (view != null && (filter == null || filter.isValid(view))) {\n views.add(view);\n }\n }\n }\n viewIds.recycle();\n return views;\n }",
"Collection<Long> filterByTaxon( Collection<Long> ids, Taxon taxon );",
"@RequestMapping(value = \"/_search/temperaturas/{query}\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public List<Temperatura> searchTemperaturas(@PathVariable String query) {\n log.debug(\"REST request to search Temperaturas for query {}\", query);\n return StreamSupport\n .stream(temperaturaSearchRepository.search(queryStringQuery(query)).spliterator(), false)\n .collect(Collectors.toList());\n }",
"public Template getTemplate(String templateID) {\r\n // Gets the templates collection and creates a query string for the template id\r\n MongoCollection templates = mongoDB.getCollection(\"Templates\");\r\n Document query = new Document(\"_id\", new ObjectId(templateID));\r\n\r\n // Loops over templates found matching the id, returning the first one\r\n for (Template template : (FindIterable<Template>) templates.find(query, Template.class)) {\r\n return template;\r\n }\r\n\r\n // Returns null if none are found\r\n return null;\r\n }",
"List<Map<String, String>> getFilteredDocuments(Map<String, Object> paramsMap);",
"public abstract List<Course> getByFilter(HashMap<String, String> filter);",
"@JsonIgnore\r\n\tpublic ArrayList<ShippingTemplate> getShippingTemplate(String shippingTemplateId) {\r\n\t\tString results = EtsyService.getService(\"/shipping/templates/\"+shippingTemplateId);\r\n\t\treturn readResults(results);\r\n\t}",
"List<PushTemplate> selectPushTemplate(String taskDefKey);",
"public Collection<TemplateSignature> getSignatureTemplateList(Long idGroupSignatureTemplate)\n\t{\n\t\tTemplateSignatureDAO dao = new TemplateSignatureDAO();\n\t\t\n\t\tTemplateGroupSignature group = new TemplateGroupSignature();\n\t\tgroup.setId(idGroupSignatureTemplate);\n\t\t\n\t\tCollection<TemplateSignature> responseList = dao.getAllFields(group);\n\t\tloggerSingle.info(\"num signature group \"+idGroupSignatureTemplate+\": \"+responseList.size());\n\t\treturn responseList;\n\t}",
"default <K> List<Condition> composeFilterConditionsForPrimaryKey(K id) {\n\t\tList<Condition> conditions = new ArrayList<>();\n\t\tList<Attribute<T, ?>> pkAttributes = getPrimaryAttributes();\n\t\tif (pkAttributes.size() == 1) {\n\t\t\tconditions.add(Condition.eq(pkAttributes.get(0), id));\n\t\t} else {\n\t\t\t// composed primary key\n\t\t\tconditions.addAll(composeFilterConditionsForCompositePrimaryKey(id));\n\t\t}\n\t\treturn conditions;\n\t}",
"@Path(\"/{id:[0-9][0-9]*}/tags\")\n public TagResource listTasks(@PathParam(\"id\") Long id) {\n return tags;\n }",
"@Override\r\n\tpublic Filtering selectByPrimaryKey(Integer id) {\n\t\treturn filteringMapper.selectByPrimaryKey(id);\r\n\t}",
"public static List<String> getTemplates() {\n\t\tFile templatesDir = new File(PathUtils.getExtensionsTemplatePath());\n\t\tList<String> templates = Arrays.stream(templatesDir.listFiles(File::isDirectory)).map(File::getName)\n\t\t\t\t.collect(Collectors.toList());\n\t\tIProject[] projects = ResourcesPlugin.getWorkspace().getRoot().getProjects();\n\t\tList<String> customTemplates = Arrays.stream(projects).filter(ExtensionUtils::isTemplate)\n\t\t\t\t.map(IProject::getName).collect(Collectors.toList());\n\t\ttemplates.addAll(customTemplates);\n\t\treturn templates;\n\t}",
"public List<Integer> selectIdListByFilter( SubmitFilter filter, Plugin plugin )\n {\n List<Integer> suggestSubmitIdList = new ArrayList<Integer>( );\n List<String> listStrFilter = new ArrayList<String>( );\n String strOrderBy = null;\n\n if ( filter.containsIdSuggest( ) )\n {\n listStrFilter.add( SQL_FILTER_ID_SUGGEST );\n }\n\n if ( filter.containsIdSuggestSubmit( ) )\n {\n listStrFilter.add( SQL_FILTER_ID_SUGGEST_SUBMIT );\n }\n\n if ( filter.containsIdSuggestSubmitState( ) )\n {\n listStrFilter.add( SQL_FILTER_ID_SUGGEST_SUBMIT_STATE );\n }\n\n if ( filter.containsIdCategory( ) )\n {\n listStrFilter.add( SQL_FILTER_ID_CATEGORY );\n }\n\n if ( filter.containsDateFirst( ) )\n {\n listStrFilter.add( SQL_FILTER_DATE_FIRST_SUBMIT );\n }\n\n if ( filter.containsDateLast( ) )\n {\n listStrFilter.add( SQL_FILTER_DATE_LAST_SUBMIT );\n }\n\n if ( filter.containsIdReported( ) )\n {\n listStrFilter.add( SQL_FILTER_REPORTED );\n }\n\n if ( filter.containsNumberVote( ) )\n {\n listStrFilter.add( SQL_FILTER_NUMBER_VOTE );\n }\n\n if ( filter.containsIdPinned( ) )\n {\n listStrFilter.add( SQL_FILTER_IS_PINNED );\n }\n if ( filter.containsLuteceUserKey())\n {\n listStrFilter.add( SQL_FILTER_LUTECE_USER_KEY);\n }\n\n if ( filter.containsIdType( ) )\n {\n listStrFilter.add( SQL_FILTER_ID_TYPE );\n }\n \n \n \n\n if ( filter.containsIdContainsCommentDisable( ) )\n {\n listStrFilter.add( ( filter.getIdContainsCommentDisable( ) == SubmitFilter.ID_TRUE )\n ? SQL_FILTER_CONTAINS_COMMENT_DISABLE : SQL_FILTER_NOT_CONTAINS_COMMENT_DISABLE );\n }\n\n if ( filter.containsSortBy( ) )\n {\n strOrderBy = getOrderBy( filter.getSortBy( ) );\n }\n\n //\t\tif(filter.isOrderByScore())\n //\t\t{\n //\t\t\tstrSQL += SQL_ORDER_BY_SCORE;\n //\t\t}\n //\t\telse if(filter.isOrderByCommentNumber())\n //\t\t{\n //\t\t\tstrSQL += SQL_ORDER_BY_COMMENT_NUMBER_ASC;\n //\t\t}\n //\t\telse\n //\t\t{\n //\t\t\tstrSQL += SQL_ORDER_BY_DATE_RESPONSE;\n //\t\t}\n String strSQL = SuggestUtils.buildRequestWithFilter( SQL_QUERY_SELECT_ID_SUGGEST_SUBMIT_BY_FILTER, listStrFilter,\n strOrderBy );\n DAOUtil daoUtil = new DAOUtil( strSQL, plugin );\n int nIndex = 1;\n\n if ( filter.containsIdSuggest( ) )\n {\n daoUtil.setInt( nIndex, filter.getIdSuggest( ) );\n nIndex++;\n }\n\n if ( filter.containsIdSuggestSubmit( ) )\n {\n daoUtil.setInt( nIndex, filter.getIdSuggestSubmit( ) );\n nIndex++;\n }\n\n if ( filter.containsIdSuggestSubmitState( ) )\n {\n daoUtil.setInt( nIndex, filter.getIdSuggestSubmitState( ) );\n nIndex++;\n }\n\n if ( filter.containsIdCategory( ) )\n {\n daoUtil.setInt( nIndex, filter.getIdCategory( ) );\n nIndex++;\n }\n\n if ( filter.containsDateFirst( ) )\n {\n daoUtil.setTimestamp( nIndex, filter.getDateFirst( ) );\n nIndex++;\n }\n\n if ( filter.containsDateLast( ) )\n {\n daoUtil.setTimestamp( nIndex, filter.getDateLast( ) );\n nIndex++;\n }\n\n if ( filter.containsIdReported( ) )\n {\n daoUtil.setBoolean( nIndex, filter.convertIdBoolean( filter.getIdReported( ) ) );\n nIndex++;\n }\n\n if ( filter.containsNumberVote( ) )\n {\n daoUtil.setInt( nIndex, filter.getNumberVote( ) );\n nIndex++;\n }\n\n if ( filter.containsIdPinned( ) )\n {\n daoUtil.setInt( nIndex, filter.getIdPinned( ) );\n nIndex++;\n }\n \n if ( filter.containsLuteceUserKey())\n {\n \t daoUtil.setString( nIndex, filter.getLuteceUserKey());\n \t nIndex++;\n }\n\n if ( filter.containsIdType( ) )\n {\n daoUtil.setInt( nIndex, filter.getIdType( ) );\n nIndex++;\n }\n \n\n daoUtil.executeQuery( );\n\n while ( daoUtil.next( ) )\n {\n suggestSubmitIdList.add( daoUtil.getInt( 1 ) );\n }\n\n daoUtil.free( );\n\n return suggestSubmitIdList;\n }",
"@GET\n @Path(\"/search/{ids}\")\n @Produces(\"application/json;charset=UTF-8\")\n @GZIP\n @NoCache\n public List<SourceVo> searchSourcesById(\n @PathParam(\"ids\") String ids) {\n\n Set<Integer> idSet = Arrays.stream(ids.split(\",\"))\n .map(Integer::valueOf)\n .collect(Collectors.toSet());\n\n return sourceService.findByIds(idSet).stream()\n .map(p -> p.toVo(DataFilter.get()))\n .collect(Collectors.toList());\n }",
"public com.walgreens.rxit.ch.cda.II[] getTemplateIdArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n get_store().find_all_element_users(TEMPLATEID$4, targetList);\n com.walgreens.rxit.ch.cda.II[] result = new com.walgreens.rxit.ch.cda.II[targetList.size()];\n targetList.toArray(result);\n return result;\n }\n }",
"public List<Triplet> selectAllBySubject(int id, TripletType type, boolean inverse) throws DAOException;",
"private Map<TemplateModel,List<SectionModel>> getTemplateDetails(String templateName,Map<String,Object> context){\n Map<TemplateModel,List<SectionModel>> tempalteDetails= templateService.findTemplateByName(templateName);\n try{\n for (Map.Entry<TemplateModel,List<SectionModel>> entry : tempalteDetails.entrySet()){\n TemplateModel template=(TemplateModel)entry.getKey();\n context.put(\"mailFrom\",template.getMail_from());\n context.put(\"subject\",template.getSubject());\n context.put(\"mailBody\",template.getMail_body());\n List<SectionModel> sectionModelList=(List<SectionModel>)entry.getValue();\n if(sectionModelList!=null){\n for(SectionModel section:sectionModelList){\n List<Issue> issueList= getIssuesOnJQL(section.getJql_query());\n List<Map<String,List<String>>> entireList=new ArrayList<Map<String,List<String>>>();\n for(Issue issue:issueList){\n Map<String,List<String>> issueMap= new IssueUtils().getJiraFieldValues(issue,section.getColumns().split(\",\"));\n context.put(\"colSize\",section.getColumns().split(\",\").length);\n entireList.add(issueMap);\n }\n \n section.setJql_result(entireList);\n }\n \n \n \n \n }\n \n }\n }catch(Exception e){\n e.printStackTrace(); \n \n }\n return tempalteDetails;\n \n }",
"public List<Subject> getSubjectsBySpecializationId(String id);",
"@Query(value = \"{ 'active': ?0, 'unit.id' : ?1 }\")\n public List<SurveyTemplateEntity> findByActiveAndUnitId(Boolean active, String unitId);",
"TempletLink selectByPrimaryKey(String id);",
"public void setTemplateid(Integer templateid) {\n this.templateid = templateid;\n }",
"@Override\n\tpublic List<TemplateBundle> getTemplateBundles() {\n\t\tList<TemplateBundle> templates = new ArrayList<TemplateBundle>();\t\n\t\tif (cache == null){\n\t\t\tcache = new ArrayList<TemplateBundle>();\n\t\t\tEnumeration<?> en = JaspersoftStudioPlugin.getInstance().getBundle().findEntries(\"templates/table\", \"*.jrxml\", false); //Doesn't search in the subdirectories\n\t\t\twhile (en.hasMoreElements()) {\n\t\t\t\tURL templateURL = (URL) en.nextElement();\n\t\t\t\ttry {\n\t\t\t\t\tTemplateBundle bundle = new TableTemplateBunlde(templateURL, JasperReportsConfiguration.getDefaultInstance());\n\t\t\t\t\tif (bundle != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tcache.add(bundle);\n\t\t\t\t\t}\t\n\t\t\t\t} catch (Exception ex) \t{\n\t\t\t\t\t// Log error but continue...\n\t\t\t\t\tJaspersoftStudioPlugin.getInstance().getLog().log(\n\t\t\t\t\t\t\tnew Status(IStatus.ERROR,JaspersoftStudioPlugin.PLUGIN_ID,\n\t\t\t\t\t\t\t\t\tMessageFormat.format(Messages.DefaultTemplateProvider_TemplateLoadingErr,new Object[]{templateURL}), ex));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\ttemplates.addAll(cache);\n\t\tloadAdditionalTemplateBundles(templates);\n\t\treturn templates;\n\t}",
"List<CfgPrintTemplateAttr> selectByExample(CfgPrintTemplateAttrExample example);",
"@Override\n\tpublic List findAll()\n\t{\n\t\treturn teataskMapper.findAll();\n\t}",
"List<EmailTemplateSubCategoryMaster> findAll();",
"public HashMap<Integer, List<TemplateAttribute>> getAttrsByTemplate() {\n if (t_attrs == null) {\n t_attrs = new HashMap<Integer, List<TemplateAttribute>>();\n }\n return t_attrs;\n }",
"private Map<String, List<LocationResourceTemplate>> getAvailableSubstitutions(Topology topology, Map<String, NodeGroup> locationGroups,\n Map<String, Location> locationByIds, String environmentId) {\n Map<String, NodeType> nodeTypes = getNodeTypes(topology);\n Map<String, List<LocationResourceTemplate>> availableSubstitutions = Maps.newHashMap();\n // Based on our model nodes may come from various locations actually.\n for (final Map.Entry<String, NodeGroup> locationGroupEntry : locationGroups.entrySet()) {\n String groupName = locationGroupEntry.getKey();\n final NodeGroup locationNodeGroup = locationGroupEntry.getValue();\n Map<String, NodeTemplate> nodesToMatch = Maps.newHashMap();\n if (MapUtils.isNotEmpty(topology.getNodeTemplates())) {\n if (AlienConstants.GROUP_ALL.equals(groupName)) {\n locationNodeGroup.setMembers(topology.getNodeTemplates().keySet());\n nodesToMatch = topology.getNodeTemplates();\n } else {\n nodesToMatch = Maps.filterEntries(topology.getNodeTemplates(), input -> locationNodeGroup.getMembers().contains(input.getKey()));\n }\n }\n availableSubstitutions.putAll(nodeMatcherService.match(nodeTypes, nodesToMatch, locationByIds.get(groupName), environmentId));\n }\n return availableSubstitutions;\n }",
"public List<PSTemplateSummary> findAll(String siteName) throws IPSGenericDao.LoadException, PSTemplateException;",
"List<JSONObject> getFilteredItems();",
"<T> Collection<T> getXMLTempGroups(Object groupID) throws Exception;",
"public Set<String> getTemplateConfigs(String siteType) {\n Set<String> result = new HashSet<String>();\n for (SiteConfigTemplates tempConfig : templateConfigs) {\n Set<String> templates = tempConfig.getTemplates(siteType);\n if (templates != null && templates.size() > 0) {\n result.addAll(templates);\n }\n }\n return result;\n }",
"@Transactional\r\n\tpublic List<Trip> getAllTripByCondition() {\n\t\treturn null;\r\n\t}",
"ObservableList<Task> getFilteredTaskList();",
"Collection<T> doFilter(RepositoryFilterContext context);",
"@Override\n @Transactional\n public List<ReportView> getForAllPatients(UUID therapistId) {\n List<User> patients = userRepository.findAllByTherapistId(therapistId);\n List<ReportView> reports = new ArrayList<>(patients.size());\n\n patients.forEach(patient -> reports.add(getHistoryForPatientId(patient.getId())));\n return reports;\n }",
"@GetMapping(\"/voting-contents\")\n @Timed\n public List<VotingContent> getAllVotingContents(@RequestParam(required = false) String filter) {\n if (\"voting-is-null\".equals(filter)) {\n log.debug(\"REST request to get all VotingContents where voting is null\");\n return StreamSupport\n .stream(votingContentRepository.findAll().spliterator(), false)\n .filter(votingContent -> votingContent.getVoting() == null)\n .collect(Collectors.toList());\n }\n log.debug(\"REST request to get all VotingContents\");\n List<VotingContent> votingContents = votingContentRepository.findAll();\n return votingContents;\n }"
] | [
"0.6539062",
"0.64789855",
"0.6202033",
"0.6107072",
"0.60175174",
"0.5960657",
"0.5947968",
"0.5838821",
"0.583674",
"0.5810254",
"0.56764233",
"0.56599927",
"0.5645661",
"0.56247747",
"0.5556238",
"0.54824394",
"0.5465686",
"0.54552543",
"0.5443863",
"0.53972894",
"0.53838867",
"0.53787005",
"0.5351459",
"0.5299196",
"0.5298082",
"0.52938366",
"0.5282571",
"0.5193333",
"0.51922953",
"0.5143273",
"0.51294",
"0.5129187",
"0.510649",
"0.5099871",
"0.5054945",
"0.505192",
"0.5043865",
"0.50226027",
"0.5010846",
"0.49881682",
"0.49760404",
"0.49739972",
"0.49631178",
"0.49584782",
"0.49528855",
"0.49341413",
"0.49265164",
"0.492387",
"0.4923533",
"0.49224553",
"0.49207366",
"0.49053296",
"0.48840305",
"0.48838153",
"0.48761877",
"0.48627806",
"0.4855854",
"0.48558134",
"0.48452315",
"0.4831683",
"0.48296133",
"0.4829512",
"0.48243353",
"0.48220375",
"0.48203167",
"0.48160082",
"0.4811986",
"0.48095417",
"0.4807486",
"0.4806756",
"0.47980943",
"0.47978774",
"0.47976506",
"0.47900298",
"0.47827983",
"0.4779621",
"0.47716138",
"0.4768394",
"0.47641128",
"0.47538757",
"0.47533506",
"0.47469428",
"0.4743123",
"0.47392485",
"0.4712672",
"0.4707547",
"0.4706728",
"0.46936053",
"0.46872145",
"0.46823877",
"0.46822387",
"0.46670437",
"0.46669954",
"0.46652582",
"0.46509472",
"0.46466136",
"0.4645805",
"0.464102",
"0.46408284",
"0.46285555"
] | 0.69198555 | 0 |
delete template filter by id template filters | public Boolean templateFiltersDelete(Long idTemplateFilters)
{
TemplateFiltersDAO dao = new TemplateFiltersDAO();
dao.deleteTemplateFilterById(idTemplateFilters);
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean deleteTemplateFilterByIdTemplate(Long idTemplate)\n\t{\n\t\tTemplateFiltersDAO dao = new TemplateFiltersDAO();\n\t\treturn dao.deleteTemplateFilterByIdTemplate(idTemplate);\n\t}",
"public void delete(int id){ \n\t\tActivity e=(Activity)template.get(Activity.class,id); \n\t template.delete(e); \n\t}",
"int deleteByExample(CfgPrintTemplateAttrExample example);",
"Ack deleteFilter(ID branchId, String name);",
"@Test\n public void deleteTemplateTest() throws IdfyException, Exception {\n UUID id = UUID.randomUUID();\n api.deleteTemplate(id);\n }",
"@DISPID(6) //= 0x6. The runtime will prefer the VTID if present\n @VTID(12)\n void deleteAlertsByFilter(\n java.lang.String entityType,\n java.lang.String filter);",
"@Override\n\tpublic void delete(long id) throws Exception {\n\t\tfind(id);\n\n\t\t// check if the template component has been used\n\t\tList<GpProjectTemplate> list = getProjectTemplateService()\n\t\t\t\t.findByTemplate(id);\n\t\tif (list != null && !list.isEmpty()) {\n\t\t\tthrow new Exception(\n\t\t\t\t\t\"Template (ID=\"\n\t\t\t\t\t\t\t+ id\n\t\t\t\t\t\t\t+ \") can't be deleted. It has been used inside a Project Template.\");\n\t\t}\n\n\t\t// delete template components\n\t\tgetTemplateComponentService().deleteTemplateComponent(id);\n\n\t\t// delete template\n\t\tgetTemplateDao().delete(id);\n\t}",
"public void removeTemplateId(int i)\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(TEMPLATEID$4, i);\n }\n }",
"public void delete(Long issueFilterId, UserSession userSession) {\n issueFilterDao.delete(issueFilterId);\n }",
"int deleteByExample(TempletLinkExample example);",
"private void deleteFieldRows(Connection con,\n IdentifiedRecordTemplate template) throws SQLException {\n PreparedStatement delete = null;\n \n try {\n int internalId = template.getInternalId();\n \n delete = con.prepareStatement(DELETE_TEMPLATE_RECORDS_FIELDS);\n delete.setInt(1, internalId);\n delete.execute();\n } finally {\n DBUtil.close(delete);\n }\n }",
"public void deleteTemplate(Template template)\n\t{\n\t\tTemplateDAO dao = new TemplateDAO();\n\t\tdao.delete(template);\t\t\n\t\t//return template.getId();\n\t}",
"@Override\n public void deletePartida(String idPartida) {\n template.opsForHash().delete(idPartida, \"jugador1\");\n template.opsForHash().delete(idPartida, \"jugador2\");\n template.opsForSet().remove(\"partidas\",idPartida);\n }",
"@DeleteMapping(\"/analysis-templates\")\n\tpublic ResponseEntity<AjaxResponse> removeProjectAnalysisTemplates(@RequestParam long templateId,\n\t\t\t@PathVariable long projectId, Locale locale) {\n\t\treturn ResponseEntity.ok(\n\t\t\t\tnew AjaxSuccessResponse(pipelineService.removeProjectAutomatedPipeline(templateId, projectId, locale)));\n\t}",
"@Override\n\tpublic String delete(Set<String> filterField) {\n\t\treturn null;\n\t}",
"public void deleteByComplement(int id, TripletType type) throws DAOException;",
"@DELETE(\"users/templates/{id}\")\n Call<Void> deleteUserTemplate(\n @retrofit2.http.Path(\"id\") String id, @retrofit2.http.Query(\"cascade\") String cascade\n );",
"void deleteFeature(Integer id);",
"@Override\r\n\tpublic Integer deleteByPrimaryKey(Integer id) {\n\t\treturn filteringMapper.deleteByPrimaryKey(id);\r\n\t}",
"@After\n public void tearDown() {\n for (Filter filter : filterService.createTaskFilterQuery().list()) {\n filterService.deleteFilter(filter.getId());\n }\n }",
"@Override\n\tpublic void deleteTmly(Tmly tmly) {\n\t\tString sql = \"delete from tmly where id_=?\";\n\t\tthis.jdbcTemplate.update(sql, new Object[] { tmly.getId() });\n\t}",
"public void deleteOne(String id) {\n\t\t mongoTemplate.remove(new Query(Criteria.where(\"id\").is(id)), AsxDataVO.class); \r\n\t}",
"@RequestMapping(value = \"/shopressource/{id}\", method = RequestMethod.DELETE)\n String deleteShopRessourceById(@PathVariable Integer id);",
"public void remove(Template template) {\n\tfTemplates.remove(template);\n\tsort();\n }",
"void delete(String typeName, String id);",
"public void deleteOneWord(Pojo.OneWord e){ \n template.delete(e); \n}",
"void removeRecipeFilter(RecipeFilter recipeFilter);",
"@Override\n \tpublic Representation deleteResource() {\n \t\tString interId = (String) this.getRequestAttributes().get(\"interId\");\n \t\tString srcId = (String) this.getRequestAttributes().get(\"sourceId\");\n \t\t\n \t\t// On s'assure qu'il n'est plus prsent en base de donnes\n \t\n \t\tIntervention inter = Interventions.getInstance().getIntervention(interId);\n \t\tList<Source> sources = inter.getSources();\n \t\tfor (int i = 0; i < sources.size(); i++) {\n \t\t\tif (sources.get(i).getUniqueID().equals(srcId)) {\n \t\t\t\tsources.remove(sources.get(i));\n \t\t\t}\n \t\t}\n \t\t\n \t\treturn null;\n \t}",
"public void deleteEntry(int id) {\n\t\tString sql=\"delete from suppplierpayments where supplierpayId=\"+id+\"\"; \n\t template.update(sql); \n\t\t\n\t}",
"@RequestMapping(value = \"/deleteFlowTemplate\", method = RequestMethod.GET)\n\t@ResponseBody\n\tpublic String deleteFlowTemplate(String id) {\n\t\treturn flowTemplateServiceImpl.deleteFlowTemplate(id);\n\t}",
"@RequestMapping(\"/deleteTemplate\")\n public String deleteCustomer(@RequestParam(\"id\") int templateId,\n @CookieValue(\"userTag\") String userID,\n Model model) {\n JeanTemplate temp = new JeanTemplate();\n temp.setTemplateId(templateId);\n accessTemplate.delete(temp);\n\n ArrayList<JeanTemplate> templateList = accessTemplate.selectAllUserTemplates(userID);\n\n model.addAttribute(\"templateList\", templateList);\n\n return \"templateView\";\n\n }",
"void filterDelete(ServerContext context, DeleteRequest request,\n ResultHandler<Resource> handler, RequestHandler next);",
"private void deleteRecordRows(Connection con,\n IdentifiedRecordTemplate template) throws SQLException {\n PreparedStatement delete = null;\n \n try {\n int internalId = template.getInternalId();\n \n delete = con.prepareStatement(DELETE_TEMPLATE_RECORDS);\n delete.setInt(1, internalId);\n delete.execute();\n } finally {\n DBUtil.close(delete);\n }\n }",
"public void removeFilter(String id) {\n filters.remove(id);\n modifiedSinceLastResult = true;\n }",
"@RequestMapping(value = \"/temperaturas/{id}\",\n method = RequestMethod.DELETE,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<Void> deleteTemperatura(@PathVariable Long id) {\n log.debug(\"REST request to delete Temperatura : {}\", id);\n temperaturaRepository.delete(id);\n temperaturaSearchRepository.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(\"temperatura\", id.toString())).build();\n }",
"@Override\r\n\tpublic void delete(SimpleJdbcTemplate template) throws Exception {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}",
"private void removeTemplate()\r\n {\r\n\t String template = keyField.getText();\r\n\t if (template.length()==0)\r\n\t {\r\n\t\t label.setText(\"Please enter template name\");\r\n\t\t return;\r\n\t }\r\n\t \r\n\t int index = list.getSelectedIndex();\r\n if (index<0) return;\r\n\r\n\t if (!templates.removeTemplate(template))\r\n\t {\r\n\t\t label.setText(\"Couldn't remove default template\");\r\n\t\t return;\r\n\t }\r\n\r\n String[] newTemplates = new String[templateKeys.length - 1];\r\n for (int a=0; a<templateKeys.length; a++)\r\n {\r\n if (a<index) newTemplates[a] = templateKeys[a];\r\n else if (a > index) newTemplates[a-1] = templateKeys[a];\r\n }\r\n templateKeys = newTemplates;\r\n model.removeElementAt(index);\r\n \r\n clearComponents();\r\n list.setSelectedIndex(-1); \r\n label.setText(\"Display format \" + template + \" removed\");\r\n }",
"public void deletePagoById(String id){\n pagoMongoRepository.deleteById(id);\n }",
"void deletePostById(int id);",
"FilterInfo deActivateFilter(String filter_id, int revision) throws Exception;",
"@DeleteMapping(\"/localisations/{id}\")\n @Timed\n public ResponseEntity<Void> deleteLocalisation(@PathVariable Long id) {\n log.debug(\"REST request to delete Localisation : {}\", id);\n localisationService.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }",
"public void eliminarProyecto(int id) {\n\t\t\tRestTemplate plantilla = new RestTemplate();\n\t\t\tplantilla.delete(\"http://localhost:5000/proyectos/\" + id);\n\t\t}",
"void deleteParameter(long id);",
"public boolean deleteFieldsTemplate(Template template)\n\t{\n\t\tFieldsTemplateDAO daoTemplate = new FieldsTemplateDAO();\n\t\treturn daoTemplate.deleteFieldsByIdTemplate(template);\n\t}",
"public void eliminarTripulante(Long id);",
"@Override\n public void delete(Long id) {\n log.debug(\"Request to delete TypeVehicule : {}\", id);\n typeVehiculeRepository.deleteById(id);\n }",
"@DeleteMapping(\"/delete_person\")\n public void delete_user (@RequestParam(\"id\") int id){\n persons.remove(id);\n }",
"public void deleteAll(MDSKey id, @Nullable Predicate<MDSKey> filter) {\n byte[] prefix = id.getKey();\n byte[] stopKey = Bytes.stopKeyForPrefix(prefix);\n\n try {\n try (Scanner scan = table.scan(prefix, stopKey)) {\n Row next;\n while ((next = scan.next()) != null) {\n String columnValue = next.getString(COLUMN);\n if (columnValue == null) {\n continue;\n }\n\n MDSKey key = new MDSKey(next.getRow());\n if (filter != null && !filter.test(key)) {\n continue;\n }\n table.delete(new Delete(next.getRow()).add(COLUMN));\n }\n }\n } catch (Exception e) {\n throw Throwables.propagate(e);\n }\n }",
"public void deleteById(String id);",
"int deleteByPrimaryKey(Integer tfId);",
"public void delById(Serializable id) ;",
"public void deleteById(Integer id) {\n\n\t}",
"void deleteById(String id);",
"void deleteById(String id);",
"void deleteById(String id);",
"void deleteById(String id);",
"void deleteById(String id);",
"void deleteById(String id);",
"void deleteById(String id);",
"void deleteById(String id);",
"void deleteById(String id);",
"void deleteById(String id);",
"@RequestMapping(value = \"/groupps/{id}\",\n method = RequestMethod.DELETE,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public void delete(@PathVariable Long id) {\n log.debug(\"REST request to delete Groupp : {}\", id);\n grouppRepository.delete(id);\n grouppSearchRepository.delete(id);\n }",
"public void destroyPost(Long id);",
"@DeleteMapping(\"/delete_person/{id}\")\n public void delete(@PathVariable(\"id\") int id ){\n persons.remove(id);\n }",
"int deleteContent(@Param(\"id\") long id);",
"public boolean templateFieldLibraryDelete(Long id) {\n\t\tFieldsTemplateLibraryDAO dao = new FieldsTemplateLibraryDAO();\n\t\treturn dao.deleteById(id);\n\t}",
"@Override\n\tpublic void deleteById(String id) {\n\t\t\n\t}",
"void deleteById(Integer id);",
"void deleteById(Integer id);",
"void deleteById(int id);",
"@Override\r\n\tpublic void updateDelete(String id) {\n \tUpdate update = new Update();\r\n\t\tupdate.set(\"status\", Constants.MSG_STATUS_DELETED);\r\n\t\t\r\n\t\tmongoTemplate.updateFirst(new Query(Criteria.where(\"id\").is(id)), update, AsxDataVO.class);\r\n\t}",
"@DeleteMapping(\"/document-tuiles/{id}\")\n @Timed\n public ResponseEntity<Void> deleteDocumentTuile(@PathVariable Long id) {\n log.debug(\"REST request to delete DocumentTuile : {}\", id);\n documentTuileService.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }",
"@Repository\npublic interface ProjectTemplateRepository extends JpaRepository<ProjectTemplate, Long> {\n Page<ProjectTemplate> findByProjectTypeIdAndAndDeleteStatueIsTrue(String query, Pageable pageable);\n}",
"@DeleteMapping(\"/statuts/{id}\")\n public void deletStatut(@PathVariable(\"id\") int id) {\n \tserviceStatut.deletStatut(id);\n }",
"@Override\n public void delete(Long id) {\n log.debug(\"Request to delete PerSubmit : {}\", id);\n perSchedulerRepository.deleteById(id);\n perSubmitSearchRepository.deleteById(id);\n }",
"void deletePhotos(Subscriber<BaseBean> subscriber, String id);",
"public void delete(int id){\n assetRepository.deleteById(id);\n }",
"<T> List<String> generateDeleteByIdScript(GremlinSource<T> source);",
"DashboardGoods selectByPrimaryKeyWithLogicalDelete(@Param(\"id\") Integer id, @Param(\"andLogicalDeleted\") boolean andLogicalDeleted);",
"@DELETE\n public void delete(@PathParam(\"id\") String id) {\n }",
"@DELETE\n @Path(\"{id}\")\n public Response delete(@PathParam(\"id\") Long id) throws UnknownResourceException {\n int previousRows = customerBillFormatFacade.count();\n CustomerBillFormat entity = customerBillFormatFacade.find(id);\n\n // Event deletion\n// publisher.deletionNotification(entity, new Date());\n try {\n //Pause for 4 seconds to finish notification\n Thread.sleep(4000);\n } catch (InterruptedException ex) {\n Logger.getLogger(CustomerBillFormatAdminResource.class.getName()).log(Level.SEVERE, null, ex);\n }\n // remove event(s) binding to the resource\n List<CustomerBillFormatEvent> events = eventFacade.findAll();\n for (CustomerBillFormatEvent event : events) {\n if (event.getResource().getId().equals(id)) {\n eventFacade.remove(event.getId());\n }\n }\n //remove resource\n customerBillFormatFacade.remove(id);\n\n int affectedRows = 1;\n Report stat = new Report(customerBillFormatFacade.count());\n stat.setAffectedRows(affectedRows);\n stat.setPreviousRows(previousRows);\n\n // 200 \n Response response = Response.ok(stat).build();\n return response;\n }",
"@Test\n public void deleteTemplateProgrammerTemplateByTemplateIdTest() throws ApiException {\n String templateId = null;\n TaskIdResult response = api.deleteTemplateProgrammerTemplateByTemplateId(templateId);\n\n // TODO: test validations\n }",
"@Override\n\tpublic void deleteById(Integer id) {\n\t\t\n\t}",
"@Override\n\tpublic void deleteById(int id) {\n\t\t\n\t}",
"int deleteByExample(LtsprojectpoExample example);",
"public void deleteBySubject(int id, TripletType type) throws DAOException;",
"private void deleteFieldRows(Connection con,\n IdentifiedRecordTemplate template, GenericDataRecord record)\n throws SQLException {\n PreparedStatement delete = null;\n \n try {\n int internalId = record.getInternalId();\n delete = con.prepareStatement(DELETE_RECORD_FIELDS);\n delete.setInt(1, internalId);\n delete.execute();\n } finally {\n DBUtil.close(delete);\n }\n }",
"int deleteByExample(WpPostsExample example);",
"void delete(int metaTagId);",
"public TemplateFilters templateFiltersGetById(Long idTemplateFilter){\n\t\tTemplateFiltersDAO dao = new TemplateFiltersDAO();\n\t\treturn dao.getById(idTemplateFilter);\n\t}",
"public void delete(Integer id);",
"public void delete(Integer id);",
"public void delete(Integer id);",
"public void delete(Integer id) {\n\r\n\t}",
"@DeleteMapping(\"/c-p-expense-tranfers/{id}\")\n @Timed\n public ResponseEntity<Void> deleteCPExpenseTranfer(@PathVariable UUID id) {\n log.debug(\"REST request to delete CPExpenseTranfer : {}\", id);\n cPExpenseTranferService.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }",
"public void deleteSupplier(Supplier e){ \n\t template.delete(e); \n\t}",
"void deleteById(final String id);",
"@Override\npublic void deleteById(String id) {\n\t\n}",
"public void removeFilter() {\r\n\t\tfilter = null;\r\n\t}"
] | [
"0.6788627",
"0.6091679",
"0.6071192",
"0.59990454",
"0.59260803",
"0.5885978",
"0.5747529",
"0.56638175",
"0.5647521",
"0.56366026",
"0.56298167",
"0.56253254",
"0.5616101",
"0.5612808",
"0.5608606",
"0.5588813",
"0.55644524",
"0.5557567",
"0.55099195",
"0.5509526",
"0.55081487",
"0.55054456",
"0.5499617",
"0.5483704",
"0.5479117",
"0.5475848",
"0.54705316",
"0.5465102",
"0.54644746",
"0.5464242",
"0.5458744",
"0.5412311",
"0.5404423",
"0.53946716",
"0.5392437",
"0.539146",
"0.5367321",
"0.5364615",
"0.53639984",
"0.5348862",
"0.5343596",
"0.53184175",
"0.53171086",
"0.5311847",
"0.529132",
"0.5291246",
"0.52825874",
"0.5277948",
"0.52442724",
"0.5238586",
"0.52379483",
"0.5235855",
"0.52258015",
"0.52258015",
"0.52258015",
"0.52258015",
"0.52258015",
"0.52258015",
"0.52258015",
"0.52258015",
"0.52258015",
"0.52258015",
"0.5214342",
"0.5211804",
"0.5210963",
"0.5202144",
"0.5196722",
"0.5193396",
"0.5189658",
"0.5189658",
"0.51843506",
"0.5180017",
"0.51741916",
"0.51684463",
"0.51674414",
"0.5161619",
"0.51550436",
"0.5154763",
"0.5151818",
"0.51493275",
"0.51469046",
"0.5146191",
"0.51436883",
"0.5138909",
"0.513021",
"0.5126072",
"0.5125074",
"0.51210797",
"0.51114047",
"0.51072234",
"0.5104658",
"0.51041406",
"0.51041406",
"0.51041406",
"0.50908464",
"0.5078456",
"0.5077527",
"0.5075895",
"0.5073869",
"0.50733674"
] | 0.6781721 | 1 |
delete template filter by id template | public boolean deleteTemplateFilterByIdTemplate(Long idTemplate)
{
TemplateFiltersDAO dao = new TemplateFiltersDAO();
return dao.deleteTemplateFilterByIdTemplate(idTemplate);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void deleteTemplate(Template template)\n\t{\n\t\tTemplateDAO dao = new TemplateDAO();\n\t\tdao.delete(template);\t\t\n\t\t//return template.getId();\n\t}",
"@Test\n public void deleteTemplateTest() throws IdfyException, Exception {\n UUID id = UUID.randomUUID();\n api.deleteTemplate(id);\n }",
"@Override\n\tpublic void delete(long id) throws Exception {\n\t\tfind(id);\n\n\t\t// check if the template component has been used\n\t\tList<GpProjectTemplate> list = getProjectTemplateService()\n\t\t\t\t.findByTemplate(id);\n\t\tif (list != null && !list.isEmpty()) {\n\t\t\tthrow new Exception(\n\t\t\t\t\t\"Template (ID=\"\n\t\t\t\t\t\t\t+ id\n\t\t\t\t\t\t\t+ \") can't be deleted. It has been used inside a Project Template.\");\n\t\t}\n\n\t\t// delete template components\n\t\tgetTemplateComponentService().deleteTemplateComponent(id);\n\n\t\t// delete template\n\t\tgetTemplateDao().delete(id);\n\t}",
"public void delete(int id){ \n\t\tActivity e=(Activity)template.get(Activity.class,id); \n\t template.delete(e); \n\t}",
"int deleteByExample(CfgPrintTemplateAttrExample example);",
"@DELETE(\"users/templates/{id}\")\n Call<Void> deleteUserTemplate(\n @retrofit2.http.Path(\"id\") String id, @retrofit2.http.Query(\"cascade\") String cascade\n );",
"public void removeTemplateId(int i)\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(TEMPLATEID$4, i);\n }\n }",
"@RequestMapping(\"/deleteTemplate\")\n public String deleteCustomer(@RequestParam(\"id\") int templateId,\n @CookieValue(\"userTag\") String userID,\n Model model) {\n JeanTemplate temp = new JeanTemplate();\n temp.setTemplateId(templateId);\n accessTemplate.delete(temp);\n\n ArrayList<JeanTemplate> templateList = accessTemplate.selectAllUserTemplates(userID);\n\n model.addAttribute(\"templateList\", templateList);\n\n return \"templateView\";\n\n }",
"public Boolean templateFiltersDelete(Long idTemplateFilters)\n\t{\n\t\tTemplateFiltersDAO dao = new TemplateFiltersDAO();\n\t\tdao.deleteTemplateFilterById(idTemplateFilters);\n\t\treturn true;\n\t}",
"@Override\r\n\tpublic void delete(SimpleJdbcTemplate template) throws Exception {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}",
"private void deleteRecordRows(Connection con,\n IdentifiedRecordTemplate template) throws SQLException {\n PreparedStatement delete = null;\n \n try {\n int internalId = template.getInternalId();\n \n delete = con.prepareStatement(DELETE_TEMPLATE_RECORDS);\n delete.setInt(1, internalId);\n delete.execute();\n } finally {\n DBUtil.close(delete);\n }\n }",
"public boolean deleteFieldsTemplate(Template template)\n\t{\n\t\tFieldsTemplateDAO daoTemplate = new FieldsTemplateDAO();\n\t\treturn daoTemplate.deleteFieldsByIdTemplate(template);\n\t}",
"@DeleteMapping(\"/analysis-templates\")\n\tpublic ResponseEntity<AjaxResponse> removeProjectAnalysisTemplates(@RequestParam long templateId,\n\t\t\t@PathVariable long projectId, Locale locale) {\n\t\treturn ResponseEntity.ok(\n\t\t\t\tnew AjaxSuccessResponse(pipelineService.removeProjectAutomatedPipeline(templateId, projectId, locale)));\n\t}",
"public void remove(Template template) {\n\tfTemplates.remove(template);\n\tsort();\n }",
"private void deleteFieldRows(Connection con,\n IdentifiedRecordTemplate template) throws SQLException {\n PreparedStatement delete = null;\n \n try {\n int internalId = template.getInternalId();\n \n delete = con.prepareStatement(DELETE_TEMPLATE_RECORDS_FIELDS);\n delete.setInt(1, internalId);\n delete.execute();\n } finally {\n DBUtil.close(delete);\n }\n }",
"int deleteByExample(TempletLinkExample example);",
"public void deleteOneWord(Pojo.OneWord e){ \n template.delete(e); \n}",
"@Test\n public void deleteTemplateProgrammerTemplateByTemplateIdTest() throws ApiException {\n String templateId = null;\n TaskIdResult response = api.deleteTemplateProgrammerTemplateByTemplateId(templateId);\n\n // TODO: test validations\n }",
"@RequestMapping(value = \"/deleteFlowTemplate\", method = RequestMethod.GET)\n\t@ResponseBody\n\tpublic String deleteFlowTemplate(String id) {\n\t\treturn flowTemplateServiceImpl.deleteFlowTemplate(id);\n\t}",
"@Override\n\tpublic void deleteTmly(Tmly tmly) {\n\t\tString sql = \"delete from tmly where id_=?\";\n\t\tthis.jdbcTemplate.update(sql, new Object[] { tmly.getId() });\n\t}",
"@Override\n public void deletePartida(String idPartida) {\n template.opsForHash().delete(idPartida, \"jugador1\");\n template.opsForHash().delete(idPartida, \"jugador2\");\n template.opsForSet().remove(\"partidas\",idPartida);\n }",
"private void removeTemplate()\r\n {\r\n\t String template = keyField.getText();\r\n\t if (template.length()==0)\r\n\t {\r\n\t\t label.setText(\"Please enter template name\");\r\n\t\t return;\r\n\t }\r\n\t \r\n\t int index = list.getSelectedIndex();\r\n if (index<0) return;\r\n\r\n\t if (!templates.removeTemplate(template))\r\n\t {\r\n\t\t label.setText(\"Couldn't remove default template\");\r\n\t\t return;\r\n\t }\r\n\r\n String[] newTemplates = new String[templateKeys.length - 1];\r\n for (int a=0; a<templateKeys.length; a++)\r\n {\r\n if (a<index) newTemplates[a] = templateKeys[a];\r\n else if (a > index) newTemplates[a-1] = templateKeys[a];\r\n }\r\n templateKeys = newTemplates;\r\n model.removeElementAt(index);\r\n \r\n clearComponents();\r\n list.setSelectedIndex(-1); \r\n label.setText(\"Display format \" + template + \" removed\");\r\n }",
"public void eliminarProyecto(int id) {\n\t\t\tRestTemplate plantilla = new RestTemplate();\n\t\t\tplantilla.delete(\"http://localhost:5000/proyectos/\" + id);\n\t\t}",
"public boolean templateFieldLibraryDelete(Long id) {\n\t\tFieldsTemplateLibraryDAO dao = new FieldsTemplateLibraryDAO();\n\t\treturn dao.deleteById(id);\n\t}",
"void deletePostById(int id);",
"int deleteContent(@Param(\"id\") long id);",
"public void deleteByComplement(int id, TripletType type) throws DAOException;",
"@RequestMapping(value = \"/temperaturas/{id}\",\n method = RequestMethod.DELETE,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<Void> deleteTemperatura(@PathVariable Long id) {\n log.debug(\"REST request to delete Temperatura : {}\", id);\n temperaturaRepository.delete(id);\n temperaturaSearchRepository.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(\"temperatura\", id.toString())).build();\n }",
"public void deletePagoById(String id){\n pagoMongoRepository.deleteById(id);\n }",
"public void deleteEntry(int id) {\n\t\tString sql=\"delete from suppplierpayments where supplierpayId=\"+id+\"\"; \n\t template.update(sql); \n\t\t\n\t}",
"public boolean deleteAggregatedObject(String templateName) {\n String queryString = \"{\\\"_id\\\": /.*\" + templateName + \"/}\";\n MongoQuery query = new MongoStringQuery(queryString);\n LOGGER.debug(\"The JSON query for deleting aggregated object is: {}\", query);\n return mongoDBHandler.dropDocument(aggregationDataBaseName, aggregationCollectionName, query);\n }",
"@JsonIgnore\r\n\tpublic ArrayList<ShippingTemplate> deleteShippingTemplate(String shippingTemplateId) {\r\n\t\tString results = EtsyService.deleteService(\"/shipping/templates/\"+shippingTemplateId);\r\n\t\treturn readResults(results);\r\n\t}",
"public void deleteOne(String id) {\n\t\t mongoTemplate.remove(new Query(Criteria.where(\"id\").is(id)), AsxDataVO.class); \r\n\t}",
"public void eliminarTripulante(Long id);",
"public void removeTemplate(ITuple template) {\n\t\tthis.takeHolder.removeLease(template);\n\t\tthis.readHolder.removeLease(template);\n\t}",
"@Repository\npublic interface ProjectTemplateRepository extends JpaRepository<ProjectTemplate, Long> {\n Page<ProjectTemplate> findByProjectTypeIdAndAndDeleteStatueIsTrue(String query, Pageable pageable);\n}",
"void delete(String typeName, String id);",
"public void deleteBySubject(int id, TripletType type) throws DAOException;",
"void deleteById(Integer id);",
"void deleteById(Integer id);",
"public void deleteById(String id);",
"int deleteByExample(WpPostsExample example);",
"public void destroyPost(Long id);",
"@RequestMapping(value = \"/shopressource/{id}\", method = RequestMethod.DELETE)\n String deleteShopRessourceById(@PathVariable Integer id);",
"int deleteByExample(LtsprojectpoExample example);",
"void deleteById(String id);",
"void deleteById(String id);",
"void deleteById(String id);",
"void deleteById(String id);",
"void deleteById(String id);",
"void deleteById(String id);",
"void deleteById(String id);",
"void deleteById(String id);",
"void deleteById(String id);",
"void deleteById(String id);",
"public void delete(Integer id);",
"public void delete(Integer id);",
"public void delete(Integer id);",
"public void delete(String id) {\n\t\t\n\t\tString sql = \"delete from test_jdbc where id=\"+id;\n\t\ttemplate.update(sql);\n\t\t\n//\t\ttry {\n//\t\t\tcon = DriverManager.getConnection(url, user, pw);\n//\t\t\tps = con.prepareStatement(sql);\n//\t\t\tps.setString(1, id);\n//\t\t\tps.executeUpdate();\n//\t\t} catch (Exception e) {\n//\t\t\te.printStackTrace();\n//\t\t}\n\t\t\n\t}",
"void deleteById(int id);",
"@DeleteMapping(\"/document-tuiles/{id}\")\n @Timed\n public ResponseEntity<Void> deleteDocumentTuile(@PathVariable Long id) {\n log.debug(\"REST request to delete DocumentTuile : {}\", id);\n documentTuileService.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }",
"@RequestMapping(value = \"/groupps/{id}\",\n method = RequestMethod.DELETE,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public void delete(@PathVariable Long id) {\n log.debug(\"REST request to delete Groupp : {}\", id);\n grouppRepository.delete(id);\n grouppSearchRepository.delete(id);\n }",
"@DeleteMapping(\"/delete_person\")\n public void delete_user (@RequestParam(\"id\") int id){\n persons.remove(id);\n }",
"@Test\n public void deleteTemplateProgrammerProjectByProjectIdTest() throws ApiException {\n String projectId = null;\n TaskIdResult response = api.deleteTemplateProgrammerProjectByProjectId(projectId);\n\n // TODO: test validations\n }",
"@DeleteMapping(path = \"{id}\")\n public ResponseEntity<?> deleteById(@PathVariable Long id) {\n prescriptionService.deleteById(id);\n\n return ResponseEntity.ok().body(\"Prescription with id: \" + id + \" deleted!\");\n }",
"@DeleteMapping(\"/delete_person/{id}\")\n public void delete(@PathVariable(\"id\") int id ){\n persons.remove(id);\n }",
"public void deleteById(Integer id) {\n\n\t}",
"int deleteByPrimaryKey(Integer tfId);",
"public static void removeTemplate(final ITemplate t) {\n\t\tif (t != null) {\n\t\t\tITemplate removed = StorageService.removeTemplate(t);\n\t\t\tif (removed == null) {\n\t\t\t\tUtils.printError(\"Template to be removed, \" + t + \n\t\t\t\t\t\t\" is not in database (TemplateDelegate.removeTemplate)\");\n\t\t\t}\n\t\t}\n\t\telse Utils.printError(\"Cannot remove a null Template! (TemplateDelegate.removeTemplate)\");\n\t}",
"int deleteByExample(TourstExample example);",
"@Override\n \tpublic Representation deleteResource() {\n \t\tString interId = (String) this.getRequestAttributes().get(\"interId\");\n \t\tString srcId = (String) this.getRequestAttributes().get(\"sourceId\");\n \t\t\n \t\t// On s'assure qu'il n'est plus prsent en base de donnes\n \t\n \t\tIntervention inter = Interventions.getInstance().getIntervention(interId);\n \t\tList<Source> sources = inter.getSources();\n \t\tfor (int i = 0; i < sources.size(); i++) {\n \t\t\tif (sources.get(i).getUniqueID().equals(srcId)) {\n \t\t\t\tsources.remove(sources.get(i));\n \t\t\t}\n \t\t}\n \t\t\n \t\treturn null;\n \t}",
"@Test\n public void delete() {\n System.out.println(\"\\n--- delete Singer by id=2 ---\");\n\n restTemplate.delete(\"http://localhost:9082/restful-ws/singer/{id}\", 2);\n\n printAllSingers();\n }",
"public boolean deleteById(Object id);",
"public boolean deleteById(Object id);",
"public ISFQuery delete(URI url) throws InvalidOrMissingParameterException \t{\n\t\tif (url == null) {\n\t\t\tthrow new InvalidOrMissingParameterException(\"url\");\n\t\t}\n\n\t\tSFApiQuery sfApiQuery = new SFApiQuery(this.client);\n\t\tsfApiQuery.setFrom(\"FolderTemplates\");\n\t\tsfApiQuery.addIds(url);\n\t\tsfApiQuery.setHttpMethod(\"DELETE\");\n\t\treturn sfApiQuery;\n\t}",
"private void deleteFieldRows(Connection con,\n IdentifiedRecordTemplate template, GenericDataRecord record)\n throws SQLException {\n PreparedStatement delete = null;\n \n try {\n int internalId = record.getInternalId();\n delete = con.prepareStatement(DELETE_RECORD_FIELDS);\n delete.setInt(1, internalId);\n delete.execute();\n } finally {\n DBUtil.close(delete);\n }\n }",
"ResponseEntity deleteById(UUID id);",
"public void delete(String id);",
"public void delete(String id);",
"public void delete(String id);",
"public void delete(String id);",
"public void delete(String id);",
"Boolean delete(HttpServletRequest request, Long id);",
"int deleteByExample(TVideoExample example);",
"@Override\n\tpublic void deleteById(Integer id) {\n\t\t\n\t}",
"void delete(Integer id);",
"void delete(Integer id);",
"public void delete(Integer id) {\n\r\n\t}",
"@Override\n\tpublic void deleteById(String id) {\n\t\t\n\t}",
"@DeleteMapping(\"/localisations/{id}\")\n @Timed\n public ResponseEntity<Void> deleteLocalisation(@PathVariable Long id) {\n log.debug(\"REST request to delete Localisation : {}\", id);\n localisationService.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }",
"void deleteById(final String id);",
"void delete(int metaTagId);",
"@DeleteMapping(\"/{id}\")\n public void deleteById(@PathVariable Long id, Locale locale) {\n teacherService.deleteById(id, locale);\n }",
"@RequestMapping(value = \"/translations/{id}\",\n method = RequestMethod.DELETE,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<Void> deleteTranslation(@PathVariable Long id) {\n log.debug(\"REST request to delete Translation : {}\", id);\n translationRepository.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(\"translation\", id.toString())).build();\n }",
"@Override\r\n\tpublic void updateDelete(String id) {\n \tUpdate update = new Update();\r\n\t\tupdate.set(\"status\", Constants.MSG_STATUS_DELETED);\r\n\t\t\r\n\t\tmongoTemplate.updateFirst(new Query(Criteria.where(\"id\").is(id)), update, AsxDataVO.class);\r\n\t}",
"@Override\n\tpublic void deleteById(int id) {\n\t\t\n\t}",
"public void delete(int id);",
"int deleteByExample(TagDataExample example);",
"@Override\n public void delete(Long id) {\n log.debug(\"Request to delete TypeVehicule : {}\", id);\n typeVehiculeRepository.deleteById(id);\n }",
"@Override\r\n\tpublic Integer deleteByPrimaryKey(Integer id) {\n\t\treturn filteringMapper.deleteByPrimaryKey(id);\r\n\t}"
] | [
"0.7026191",
"0.69969136",
"0.67805153",
"0.6647228",
"0.6526572",
"0.6471835",
"0.63659286",
"0.634617",
"0.629341",
"0.62551427",
"0.6230063",
"0.6207203",
"0.6169646",
"0.616292",
"0.61479723",
"0.61476797",
"0.60934335",
"0.6074746",
"0.6037008",
"0.5950101",
"0.59280336",
"0.59057593",
"0.58870196",
"0.5840597",
"0.584013",
"0.58305264",
"0.58035135",
"0.57943296",
"0.5785454",
"0.57829964",
"0.57783294",
"0.5777624",
"0.57645136",
"0.57286733",
"0.57246965",
"0.5673656",
"0.5654799",
"0.5652147",
"0.5638175",
"0.5638175",
"0.5632399",
"0.5614704",
"0.5612401",
"0.5608164",
"0.5603477",
"0.5602721",
"0.5602721",
"0.5602721",
"0.5602721",
"0.5602721",
"0.5602721",
"0.5602721",
"0.5602721",
"0.5602721",
"0.5602721",
"0.5595377",
"0.5595377",
"0.5595377",
"0.5593943",
"0.5586813",
"0.55781794",
"0.55777943",
"0.55646473",
"0.55627203",
"0.555469",
"0.5549353",
"0.5545442",
"0.5543317",
"0.55424815",
"0.55338615",
"0.5529294",
"0.5528688",
"0.5505175",
"0.5505175",
"0.55036324",
"0.5498777",
"0.54859734",
"0.54724455",
"0.54724455",
"0.54724455",
"0.54724455",
"0.54724455",
"0.5471483",
"0.5469271",
"0.54650545",
"0.5459573",
"0.5459573",
"0.5456506",
"0.5454558",
"0.5451646",
"0.5448297",
"0.5447516",
"0.5446576",
"0.544324",
"0.54400426",
"0.54352075",
"0.54323417",
"0.54283977",
"0.5422114",
"0.54220766"
] | 0.6917452 | 2 |
methods template fields library. query template field library by id | public FieldsTemplateLibrary templateFieldLibraryById(Long idField) {
FieldsTemplateLibraryDAO dao = new FieldsTemplateLibraryDAO();
return dao.getById(idField);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ID\n return ID;\n case 2: // TITLE\n return TITLE;\n case 4: // SALARY_TOP\n return SALARY_TOP;\n case 5: // SALARY_BOTTOM\n return SALARY_BOTTOM;\n case 6: // PUBLISH_DATE\n return PUBLISH_DATE;\n case 7: // DEPARTMENT\n return DEPARTMENT;\n case 8: // VISITNUM\n return VISITNUM;\n case 9: // IN_HB\n return IN_HB;\n case 10: // COUNT\n return COUNT;\n case 11: // COMPANY_ABBR\n return COMPANY_ABBR;\n case 12: // COMPANY_LOGO\n return COMPANY_LOGO;\n case 13: // COMPANY_NAME\n return COMPANY_NAME;\n case 14: // IS_NEW\n return IS_NEW;\n case 15: // CITY\n return CITY;\n case 16: // PRIORITY\n return PRIORITY;\n case 17: // PUBLISHER\n return PUBLISHER;\n case 18: // ACCOUNTABILITIES\n return ACCOUNTABILITIES;\n case 19: // TOTAL_NUM\n return TOTAL_NUM;\n case 20: // CANDIDATE_SOURCE\n return CANDIDATE_SOURCE;\n case 21: // REQUIREMENT\n return REQUIREMENT;\n case 22: // CITY_ENAME\n return CITY_ENAME;\n case 23: // IS_REFERRAL\n return IS_REFERRAL;\n case 24: // EMPLOYMENT_TYPE\n return EMPLOYMENT_TYPE;\n case 25: // EMPLOYMENT_TYPE_NAME\n return EMPLOYMENT_TYPE_NAME;\n case 26: // PUBLISHER_NAME\n return PUBLISHER_NAME;\n case 27: // UPDATE_TIME\n return UPDATE_TIME;\n case 28: // DEGREE_ABOVE\n return DEGREE_ABOVE;\n case 29: // DEGREE\n return DEGREE;\n case 30: // EXPERIENCE_ABOVE\n return EXPERIENCE_ABOVE;\n case 31: // EXPERIENCE\n return EXPERIENCE;\n case 32: // TEAM_ID\n return TEAM_ID;\n case 33: // TOTAL_BONUS\n return TOTAL_BONUS;\n case 34: // HB_STATUS\n return HB_STATUS;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // UCARID\n return UCARID;\n case 2: // UCARSERIALNUMBER\n return UCARSERIALNUMBER;\n case 3: // UCARSTATUS\n return UCARSTATUS;\n case 4: // CARPROVICEID\n return CARPROVICEID;\n case 5: // CARCITYID\n return CARCITYID;\n case 6: // COLOR\n return COLOR;\n case 7: // DRIVINGMILEAGE\n return DRIVINGMILEAGE;\n case 8: // COMPLETERATE\n return COMPLETERATE;\n case 9: // CARSOURCE1L\n return CARSOURCE1L;\n case 10: // ISVIDEO\n return ISVIDEO;\n case 11: // FIRSTPICTRUE\n return FIRSTPICTRUE;\n case 12: // CARTYPE\n return CARTYPE;\n case 13: // SOURCE\n return SOURCE;\n case 15: // ISNEGLECT\n return ISNEGLECT;\n case 16: // PICTURECOUNT\n return PICTURECOUNT;\n case 17: // PICTURENUMBER\n return PICTURENUMBER;\n case 18: // DISPLAYPRICE\n return DISPLAYPRICE;\n case 19: // STATUSMODIFYTIME\n return STATUSMODIFYTIME;\n case 20: // CREATETIME\n return CREATETIME;\n case 21: // BUYCARDATE\n return BUYCARDATE;\n case 22: // CARPUBLISHTIME\n return CARPUBLISHTIME;\n case 23: // UCARPICWHOLEPATH\n return UCARPICWHOLEPATH;\n case 24: // ISDEALERRECOMMEND\n return ISDEALERRECOMMEND;\n case 25: // ISAUTHENTICATED\n return ISAUTHENTICATED;\n case 26: // ISRECOMMENDGL\n return ISRECOMMENDGL;\n case 27: // ISOWNCAR\n return ISOWNCAR;\n case 28: // C2BPRICE\n return C2BPRICE;\n case 29: // ISTOP\n return ISTOP;\n case 30: // STATEDESCRIPTION\n return STATEDESCRIPTION;\n case 31: // ISWARRANTY\n return ISWARRANTY;\n case 32: // WARRANTYTYPES\n return WARRANTYTYPES;\n case 33: // ISSHOWMR\n return ISSHOWMR;\n case 34: // CARPROVINCENAME\n return CARPROVINCENAME;\n case 35: // CARCITYNAME\n return CARCITYNAME;\n case 36: // CARDISTRICTID\n return CARDISTRICTID;\n case 37: // CARDISTRICTNAME\n return CARDISTRICTNAME;\n case 38: // SLOGAN\n return SLOGAN;\n case 39: // B2BPRICE\n return B2BPRICE;\n case 40: // ISB2B\n return ISB2B;\n case 41: // MAINBRANDID\n return MAINBRANDID;\n case 42: // PRODUCERID\n return PRODUCERID;\n case 43: // COUNTRY\n return COUNTRY;\n case 44: // BRANDID\n return BRANDID;\n case 45: // CARLEVEL\n return CARLEVEL;\n case 46: // CARLEVELVALUE\n return CARLEVELVALUE;\n case 47: // CARID\n return CARID;\n case 48: // GEARBOXTYPE\n return GEARBOXTYPE;\n case 49: // GEARBOXTYPESTRING\n return GEARBOXTYPESTRING;\n case 50: // EXHAUSTVALUE\n return EXHAUSTVALUE;\n case 51: // CARYEAR\n return CARYEAR;\n case 52: // CARREFERPRICE\n return CARREFERPRICE;\n case 53: // ENVIRSTANDARD\n return ENVIRSTANDARD;\n case 54: // CONSUMPTION\n return CONSUMPTION;\n case 55: // OILTYPE\n return OILTYPE;\n case 56: // ENGINELOCATION\n return ENGINELOCATION;\n case 57: // BODYDOORS\n return BODYDOORS;\n case 58: // SEATNUMMIN\n return SEATNUMMIN;\n case 59: // SEATNUMMAX\n return SEATNUMMAX;\n case 60: // ISWAGON\n return ISWAGON;\n case 61: // DRIVETYPE\n return DRIVETYPE;\n case 62: // ISAGENCY\n return ISAGENCY;\n case 63: // CSBODYFORM\n return CSBODYFORM;\n case 64: // BRANDATTR\n return BRANDATTR;\n case 65: // ISMARKINGVENDOR\n return ISMARKINGVENDOR;\n case 66: // COUNTRYVALUE\n return COUNTRYVALUE;\n case 67: // USERID\n return USERID;\n case 68: // SUPERIORID\n return SUPERIORID;\n case 69: // VENDORNAME\n return VENDORNAME;\n case 70: // VENDORTYPE\n return VENDORTYPE;\n case 71: // CONTACT\n return CONTACT;\n case 72: // ISJDVENDOR\n return ISJDVENDOR;\n case 73: // ISINCTRANSFER\n return ISINCTRANSFER;\n case 74: // USERTYPE\n return USERTYPE;\n case 75: // ISACTIVITY\n return ISACTIVITY;\n case 76: // MEMBERTYPE\n return MEMBERTYPE;\n case 77: // ISBANGMAI\n return ISBANGMAI;\n case 78: // DVQFLAG\n return DVQFLAG;\n case 79: // ISBANGMAICHE\n return ISBANGMAICHE;\n case 80: // BAIDUMAP\n return BAIDUMAP;\n case 81: // DISTANCE\n return DISTANCE;\n case 82: // LINKMAN\n return LINKMAN;\n case 83: // CARTYPECONFIG\n return CARTYPECONFIG;\n case 84: // SITEID\n return SITEID;\n case 85: // CARTITLE\n return CARTITLE;\n case 86: // CARLEVELSECOND\n return CARLEVELSECOND;\n case 87: // ISCHECKREPORTJSON\n return ISCHECKREPORTJSON;\n case 88: // CLICKCOUNT\n return CLICKCOUNT;\n case 89: // CRMCUSTOMERID\n return CRMCUSTOMERID;\n case 100: // BOOST\n return BOOST;\n case 101: // BOOSTC\n return BOOSTC;\n case 102: // BOOSTAPP\n return BOOSTAPP;\n case 103: // SCORE\n return SCORE;\n case 104: // COSTRATE\n return COSTRATE;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ASK_PRICE\n return ASK_PRICE;\n case 2: // BID_PRICE\n return BID_PRICE;\n case 3: // ASK_VOLUME\n return ASK_VOLUME;\n case 4: // BID_VOLUME\n return BID_VOLUME;\n case 5: // REQUEST_ID\n return REQUEST_ID;\n case 6: // BUSINESS_UNIT\n return BUSINESS_UNIT;\n case 7: // ASK_OFFSET_FLAG\n return ASK_OFFSET_FLAG;\n case 8: // BID_OFFSET_FLAG\n return BID_OFFSET_FLAG;\n case 9: // ASK_HEDGE_FLAG\n return ASK_HEDGE_FLAG;\n case 10: // BID_HEDGE_FLAG\n return BID_HEDGE_FLAG;\n case 11: // QUOTE_LOCAL_ID\n return QUOTE_LOCAL_ID;\n case 12: // EXCHANGE_ID\n return EXCHANGE_ID;\n case 13: // PARTICIPANT_ID\n return PARTICIPANT_ID;\n case 14: // CLIENT_ID\n return CLIENT_ID;\n case 15: // EXCHANGE_INST_ID\n return EXCHANGE_INST_ID;\n case 16: // TRADER_ID\n return TRADER_ID;\n case 17: // INSTALL_ID\n return INSTALL_ID;\n case 18: // NOTIFY_SEQUENCE\n return NOTIFY_SEQUENCE;\n case 19: // ORDER_SUBMIT_STATUS\n return ORDER_SUBMIT_STATUS;\n case 20: // TRADING_DAY\n return TRADING_DAY;\n case 21: // SETTLEMENT_ID\n return SETTLEMENT_ID;\n case 22: // QUOTE_SYS_ID\n return QUOTE_SYS_ID;\n case 23: // INSERT_DATE\n return INSERT_DATE;\n case 24: // INSERT_TIME\n return INSERT_TIME;\n case 25: // CANCEL_TIME\n return CANCEL_TIME;\n case 26: // QUOTE_STATUS\n return QUOTE_STATUS;\n case 27: // CLEARING_PART_ID\n return CLEARING_PART_ID;\n case 28: // SEQUENCE_NO\n return SEQUENCE_NO;\n case 29: // ASK_ORDER_SYS_ID\n return ASK_ORDER_SYS_ID;\n case 30: // BID_ORDER_SYS_ID\n return BID_ORDER_SYS_ID;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ADULT\n return ADULT;\n case 2: // BACKDROP_PATH\n return BACKDROP_PATH;\n case 3: // BELONGS_TO_COLLECTION\n return BELONGS_TO_COLLECTION;\n case 4: // BUDGET\n return BUDGET;\n case 5: // GENRES\n return GENRES;\n case 6: // HOMEPAGE\n return HOMEPAGE;\n case 7: // ID\n return ID;\n case 8: // IMDB_ID\n return IMDB_ID;\n case 9: // ORIGINAL_LANGUAGE\n return ORIGINAL_LANGUAGE;\n case 10: // ORIGINAL_TITLE\n return ORIGINAL_TITLE;\n case 11: // OVERVIEW\n return OVERVIEW;\n case 12: // POPULARITY\n return POPULARITY;\n case 13: // POSTER_PATH\n return POSTER_PATH;\n case 14: // PRODUCTION_COMPANIES\n return PRODUCTION_COMPANIES;\n case 15: // PRODUCTION_COUNTRIES\n return PRODUCTION_COUNTRIES;\n case 16: // RELEASE_DATE\n return RELEASE_DATE;\n case 17: // REVENUE\n return REVENUE;\n case 18: // RUNTIME\n return RUNTIME;\n case 19: // SPOKEN_LANGUAGES\n return SPOKEN_LANGUAGES;\n case 20: // STATUS\n return STATUS;\n case 21: // TAGLINE\n return TAGLINE;\n case 22: // TITLE\n return TITLE;\n case 23: // VIDEO\n return VIDEO;\n case 24: // VOTE_AVERAGE\n return VOTE_AVERAGE;\n case 25: // VOTE_COUNT\n return VOTE_COUNT;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n\t\tpublic static _Fields findByThriftId(int fieldId) {\n\t\t\tswitch (fieldId) {\n\t\t\tcase 1: // LANG\n\t\t\t\treturn LANG;\n\t\t\tcase 5: // ICON\n\t\t\t\treturn ICON;\n\t\t\tcase 2: // NAME\n\t\t\t\treturn NAME;\n\t\t\tcase 4: // PHONE\n\t\t\t\treturn PHONE;\n\t\t\tcase 3: // EMAIL\n\t\t\t\treturn EMAIL;\n\t\t\tcase 23: // SOCIAL\n\t\t\t\treturn SOCIAL;\n\t\t\tcase 6: // SEX\n\t\t\t\treturn SEX;\n\t\t\tcase 7: // BIRTH\n\t\t\t\treturn BIRTH;\n\t\t\tcase 33: // BIRTH_PLACE\n\t\t\t\treturn BIRTH_PLACE;\n\t\t\tcase 24: // HEIGHT\n\t\t\t\treturn HEIGHT;\n\t\t\tcase 25: // WEIGHT\n\t\t\t\treturn WEIGHT;\n\t\t\tcase 8: // SIGN\n\t\t\t\treturn SIGN;\n\t\t\tcase 9: // COUNTRY\n\t\t\t\treturn COUNTRY;\n\t\t\tcase 10: // PROVINCE\n\t\t\t\treturn PROVINCE;\n\t\t\tcase 11: // CITY\n\t\t\t\treturn CITY;\n\t\t\tcase 12: // DISTRICT\n\t\t\t\treturn DISTRICT;\n\t\t\tcase 13: // ADDRESS\n\t\t\t\treturn ADDRESS;\n\t\t\tcase 26: // VIP_NAME\n\t\t\t\treturn VIP_NAME;\n\t\t\tcase 27: // VIP_PHONE\n\t\t\t\treturn VIP_PHONE;\n\t\t\tcase 14: // REAL_NAME\n\t\t\t\treturn REAL_NAME;\n\t\t\tcase 28: // REAL_ICON\n\t\t\t\treturn REAL_ICON;\n\t\t\tcase 15: // CARD_ID\n\t\t\t\treturn CARD_ID;\n\t\t\tcase 16: // PASSPORT\n\t\t\t\treturn PASSPORT;\n\t\t\tcase 17: // DRIVER\n\t\t\t\treturn DRIVER;\n\t\t\tcase 18: // BANK_NUMBER\n\t\t\t\treturn BANK_NUMBER;\n\t\t\tcase 29: // EDUCATION\n\t\t\t\treturn EDUCATION;\n\t\t\tcase 30: // GRADUATE\n\t\t\t\treturn GRADUATE;\n\t\t\tcase 31: // MAJOR\n\t\t\t\treturn MAJOR;\n\t\t\tcase 19: // ETHNIC\n\t\t\t\treturn ETHNIC;\n\t\t\tcase 20: // RELIGION\n\t\t\t\treturn RELIGION;\n\t\t\tcase 32: // PARTY\n\t\t\t\treturn PARTY;\n\t\t\tcase 21: // WX_ICON\n\t\t\t\treturn WX_ICON;\n\t\t\tcase 22: // WX_NICKNAME\n\t\t\t\treturn WX_NICKNAME;\n\t\t\tdefault:\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // HEADER_TRANSPORT\n return HEADER_TRANSPORT;\n case 2: // UUID_FICHA\n return UUID_FICHA;\n case 3: // TP_CDS_ORIGEM\n return TP_CDS_ORIGEM;\n case 4: // TURNO\n return TURNO;\n case 5: // CNS_CIDADAO\n return CNS_CIDADAO;\n case 6: // CNS_RESPONSAVEL_FAMILIAR\n return CNS_RESPONSAVEL_FAMILIAR;\n case 7: // DATA_REALIZACAO_TESTE_OLHINHO\n return DATA_REALIZACAO_TESTE_OLHINHO;\n case 8: // CO_RESULTADO_TESTE_OLHINHO\n return CO_RESULTADO_TESTE_OLHINHO;\n case 9: // DATA_REALIZACAO_EXAME_FUNDO_OLHO\n return DATA_REALIZACAO_EXAME_FUNDO_OLHO;\n case 10: // CO_RESULTADO_EXAME_FUNDO_OLHO\n return CO_RESULTADO_EXAME_FUNDO_OLHO;\n case 11: // DATA_REALIZACAO_TESTE_ORELHINHA\n return DATA_REALIZACAO_TESTE_ORELHINHA;\n case 12: // CO_RESULTADO_TESTE_ORELHINHA\n return CO_RESULTADO_TESTE_ORELHINHA;\n case 13: // DATA_REALIZACAO_USTRANSFONTANELA\n return DATA_REALIZACAO_USTRANSFONTANELA;\n case 14: // CO_RESULTADO_US_TRANSFONTANELA\n return CO_RESULTADO_US_TRANSFONTANELA;\n case 15: // DATA_REALIZACAO_TOMOGRAFIA_COMPUTADORIZADA\n return DATA_REALIZACAO_TOMOGRAFIA_COMPUTADORIZADA;\n case 16: // CO_RESULTADO_TOMOGRAFIA_COMPUTADORIZADA\n return CO_RESULTADO_TOMOGRAFIA_COMPUTADORIZADA;\n case 17: // DATA_REALIZACAO_RESSONANCIA_MAGNETICA\n return DATA_REALIZACAO_RESSONANCIA_MAGNETICA;\n case 18: // CO_RESULTADO_RESSONANCIA_MAGNETICA\n return CO_RESULTADO_RESSONANCIA_MAGNETICA;\n case 19: // CPF_CIDADAO\n return CPF_CIDADAO;\n case 20: // CPF_RESPONSAVEL_FAMILIAR\n return CPF_RESPONSAVEL_FAMILIAR;\n default:\n return null;\n }\n }",
"AbiFormsForm selectByPrimaryKey(Integer idField);",
"@RequestMapping(value = \"/fields/{id}\", method = { RequestMethod.GET })\n\tpublic ModelField id(@PathVariable Long id) {\n\t\treturn fieldService.retrieve(id);\n\t}",
"public ArrayList<FieldsTemplateLibrary> templateFieldLibraryGetAll() {\n\t\tFieldsTemplateLibraryDAO dao = new FieldsTemplateLibraryDAO();\n\t\tCollection<FieldsTemplateLibrary> collection = dao.getAllFields();\n\t\tArrayList<FieldsTemplateLibrary> responseList = new ArrayList<FieldsTemplateLibrary>(collection);\n\t\treturn responseList;\n\t}",
"public PpdDocGenRequestPayloadDto getFieldsTemplateListWithLib(Long idTemplate)\n\t{\n\t\tFieldsTemplateDAO daoTemplate = new FieldsTemplateDAO();\n\t\tFieldsTemplateLibraryDAO daoTemplateLib = new FieldsTemplateLibraryDAO();\n\t\t\n\t\tTemplate template = new Template();\n\t\ttemplate.setId(idTemplate);\n\t\t\n\t\tCollection<FieldsTemplate> responseList = daoTemplate.getAllFields(template);\n\t\tCollection<FieldsTemplateLibrary> responseTempLib = daoTemplateLib.getAllFields();\n\t\t\n\t\tPpdDocGenRequestPayloadDto respose = UtilMapping.templateFielsEntityToDTO(responseList,responseTempLib);\n\t\t\n\t\treturn respose;\n\t}",
"private void selectTemplateFieldRows(Connection con,\n IdentifiedRecordTemplate template) throws SQLException, FormException {\n PreparedStatement select = null;\n ResultSet rs = null;\n GenericRecordTemplate wrapped = (GenericRecordTemplate) template\n .getWrappedTemplate();\n \n try {\n select = con.prepareStatement(SELECT_TEMPLATE_FIELDS);\n select.setInt(1, template.getInternalId());\n rs = select.executeQuery();\n \n GenericFieldTemplate fieldTemplate = null;\n String fieldName;\n String fieldType;\n boolean isMandatory;\n boolean isReadOnly;\n boolean isHidden;\n while (rs.next()) {\n // templateId = rs.getInt(1);\n fieldName = rs.getString(2);\n // fieldIndex = rs.getInt(3);\n fieldType = rs.getString(4);\n isMandatory = rs.getBoolean(5);\n isReadOnly = rs.getBoolean(6);\n isHidden = rs.getBoolean(7);\n \n fieldTemplate = new GenericFieldTemplate(fieldName, fieldType);\n fieldTemplate.setMandatory(isMandatory);\n fieldTemplate.setReadOnly(isReadOnly);\n fieldTemplate.setHidden(isHidden);\n \n wrapped.addFieldTemplate(fieldTemplate);\n }\n } finally {\n DBUtil.close(rs, select);\n }\n }",
"public Collection<FieldsTemplate> getFieldsTemplateList(Long idTemplate)\n\t{\n\t\tFieldsTemplateDAO daoTemplate = new FieldsTemplateDAO();\n\t\t\n\t\tTemplate template = new Template();\n\t\ttemplate.setId(idTemplate);\n\t\t\n\t\tCollection<FieldsTemplate> responseList = daoTemplate.getAllFields(template);\n\t\tloggerSingle.info(\"num fields template \"+idTemplate+\": \"+responseList.size());\n\t\treturn responseList;\n\t}",
"public ArrayList<FieldsTemplateLibrary> templateFieldLibraryByName(String name){\n\t\tFieldsTemplateLibraryDAO dao = new FieldsTemplateLibraryDAO();\n\t\tCollection<FieldsTemplateLibrary> collection = dao.getByName(name);\n\t\tArrayList<FieldsTemplateLibrary> responseList = new ArrayList<FieldsTemplateLibrary>(collection);\n\t\treturn responseList;\n\t}",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // P_ID\n return P_ID;\n case 2: // PRE_REPAY_AMT\n return PRE_REPAY_AMT;\n case 3: // FINE_RATES\n return FINE_RATES;\n case 4: // FINE\n return FINE;\n case 5: // IS_ARREARS\n return IS_ARREARS;\n case 6: // IS_REBACK_INTEREST\n return IS_REBACK_INTEREST;\n case 7: // HAS_OTHER_LOAN\n return HAS_OTHER_LOAN;\n case 8: // REASON\n return REASON;\n case 9: // REPAY_DATE\n return REPAY_DATE;\n case 10: // SURPLUS\n return SURPLUS;\n case 11: // LOAN_ID\n return LOAN_ID;\n case 12: // REQUEST_STATUS\n return REQUEST_STATUS;\n case 13: // REQUEST_DTTM\n return REQUEST_DTTM;\n case 14: // COMPELTE_DTTM\n return COMPELTE_DTTM;\n case 16: // PRE_REPAY_ID\n return PRE_REPAY_ID;\n case 15: // STATUS\n return STATUS;\n case 17: // PLAN_REPAY_LOAN_DT\n return PLAN_REPAY_LOAN_DT;\n case 18: // PROJECT_ID\n return PROJECT_ID;\n case 19: // LOAN_PLAN_ID\n return LOAN_PLAN_ID;\n case 20: // SHOULD_PREPAYMENT_FEE\n return SHOULD_PREPAYMENT_FEE;\n case 21: // CREATE_DATE\n return CREATE_DATE;\n case 22: // CREATER_ID\n return CREATER_ID;\n case 23: // UPDATE_ID\n return UPDATE_ID;\n case 24: // UPDATE_DATE\n return UPDATE_DATE;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EXEC_TRADE_ID\n return EXEC_TRADE_ID;\n case 2: // SUB_ACCOUNT_ID\n return SUB_ACCOUNT_ID;\n case 3: // SLED_CONTRACT_ID\n return SLED_CONTRACT_ID;\n case 4: // EXEC_ORDER_ID\n return EXEC_ORDER_ID;\n case 5: // TRADE_PRICE\n return TRADE_PRICE;\n case 6: // TRADE_VOLUME\n return TRADE_VOLUME;\n case 7: // EXEC_TRADE_DIRECTION\n return EXEC_TRADE_DIRECTION;\n case 8: // CREATE_TIMESTAMP_MS\n return CREATE_TIMESTAMP_MS;\n case 9: // LASTMODIFY_TIMESTAMP_MS\n return LASTMODIFY_TIMESTAMP_MS;\n case 10: // SLED_COMMODITY_ID\n return SLED_COMMODITY_ID;\n case 11: // CONFIG\n return CONFIG;\n case 12: // ORDER_TOTAL_VOLUME\n return ORDER_TOTAL_VOLUME;\n case 13: // LIMIT_PRICE\n return LIMIT_PRICE;\n case 14: // SOURCE\n return SOURCE;\n case 15: // TRADE_ACCOUNT_ID\n return TRADE_ACCOUNT_ID;\n case 16: // TRADE_TIMESTAMP_MS\n return TRADE_TIMESTAMP_MS;\n case 17: // ASSET_TRADE_DETAIL_ID\n return ASSET_TRADE_DETAIL_ID;\n case 18: // SUB_USER_ID\n return SUB_USER_ID;\n case 19: // SLED_ORDER_ID\n return SLED_ORDER_ID;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // RESULT\n \treturn RESULT;\n case 2: // SELLER_LIST\n \treturn SELLER_LIST;\n case 3: // PAGINATION\n \treturn PAGINATION;\n default:\n \treturn null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ID\n return ID;\n case 2: // PRODUCT_ID\n return PRODUCT_ID;\n case 3: // DESCRIPTION\n return DESCRIPTION;\n case 4: // MARKET_PRICE\n return MARKET_PRICE;\n case 5: // PRICE\n return PRICE;\n case 6: // AMOUNT\n return AMOUNT;\n case 7: // ORDER\n return ORDER;\n case 8: // SALED_NUM\n return SALED_NUM;\n case 9: // CODE\n return CODE;\n case 10: // TYPE\n return TYPE;\n case 11: // DISPLAY\n return DISPLAY;\n case 12: // SPEC_MAP\n return SPEC_MAP;\n case 13: // IMG\n return IMG;\n case 14: // IMG_WIDTH\n return IMG_WIDTH;\n case 15: // IMG_HEIGHT\n return IMG_HEIGHT;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PID\n return PID;\n case 2: // CUS_PER_BASE\n return CUS_PER_BASE;\n case 3: // TOTAL_ASSETS\n return TOTAL_ASSETS;\n case 4: // TOTAL_LIAB\n return TOTAL_LIAB;\n case 5: // FAMILY_ASSETS\n return FAMILY_ASSETS;\n case 6: // YEAR_PAY\n return YEAR_PAY;\n case 7: // MONTH_WAGE\n return MONTH_WAGE;\n case 8: // FAMILY_INCOME\n return FAMILY_INCOME;\n case 9: // FAMILY_CONTROL\n return FAMILY_CONTROL;\n case 10: // STATUS\n return STATUS;\n case 11: // ASSETS_DETAIL\n return ASSETS_DETAIL;\n case 12: // LIAB_DETAIL\n return LIAB_DETAIL;\n case 13: // MONTHLY_PAYMENT\n return MONTHLY_PAYMENT;\n case 14: // OVERDRAFT\n return OVERDRAFT;\n default:\n return null;\n }\n }",
"public void setupFields()\n {\n FieldInfo field = null;\n field = new FieldInfo(this, \"ID\", Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Integer.class);\n field.setHidden(true);\n field = new FieldInfo(this, \"LastChanged\", Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Date.class);\n field.setHidden(true);\n field = new FieldInfo(this, \"Deleted\", 10, null, new Boolean(false));\n field.setDataClass(Boolean.class);\n field.setHidden(true);\n field = new FieldInfo(this, \"Description\", 25, null, null);\n field = new FieldInfo(this, \"CurrencyCode\", 3, null, null);\n field = new FieldInfo(this, \"LastRate\", 10, null, null);\n field.setDataClass(Double.class);\n field.setScale(-1);\n field = new FieldInfo(this, \"RateChangedDate\", 12, null, null);\n field.setDataClass(Date.class);\n field.setScale(Constants.DATE_ONLY);\n field = new FieldInfo(this, \"RateChangedBy\", 16, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, \"CostingRate\", 10, null, null);\n field.setDataClass(Double.class);\n field.setScale(-1);\n field = new FieldInfo(this, \"CostingChangedDate\", 12, null, null);\n field.setDataClass(Date.class);\n field.setScale(Constants.DATE_ONLY);\n field = new FieldInfo(this, \"CostingChangedBy\", 16, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, \"RoundAt\", 1, null, null);\n field.setDataClass(Short.class);\n field = new FieldInfo(this, \"IntegerDesc\", 20, null, \"Dollar\");\n field = new FieldInfo(this, \"FractionDesc\", 20, null, null);\n field = new FieldInfo(this, \"FractionAmount\", 10, null, new Integer(100));\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, \"Sign\", 3, null, \"$\");\n field = new FieldInfo(this, \"LanguageID\", Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, \"NaturalInteger\", 20, null, null);\n field = new FieldInfo(this, \"NaturalFraction\", 20, null, null);\n }",
"FieldType getFieldTypeById(String id) throws FieldTypeNotFoundException, TypeException, InterruptedException;",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // APP_CODE\n \treturn APP_CODE;\n case 2: // REQUEST_DATE\n \treturn REQUEST_DATE;\n case 3: // SIGN\n \treturn SIGN;\n case 4: // SP_ID\n \treturn SP_ID;\n case 5: // OUT_ORDER_ID\n \treturn OUT_ORDER_ID;\n case 6: // DEVICE_NO\n \treturn DEVICE_NO;\n case 7: // DEVICE_TYPE\n \treturn DEVICE_TYPE;\n case 8: // PROVINCE_ID\n \treturn PROVINCE_ID;\n case 9: // CUST_ID\n \treturn CUST_ID;\n case 10: // NUM\n \treturn NUM;\n case 11: // REMARK\n \treturn REMARK;\n case 12: // ACTIVE_ID\n \treturn ACTIVE_ID;\n case 13: // EXP_TIME\n \treturn EXP_TIME;\n default:\n \treturn null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n\t\tpublic static _Fields findByThriftId(int fieldId) {\n\t\t\tswitch (fieldId) {\n\t\t\tcase 1: // UID\n\t\t\t\treturn UID;\n\t\t\tcase 2: // IS_STAFF\n\t\t\t\treturn IS_STAFF;\n\t\t\tcase 3: // IS_ACTIVE\n\t\t\t\treturn IS_ACTIVE;\n\t\t\tcase 4: // IS_DELETE\n\t\t\t\treturn IS_DELETE;\n\t\t\tcase 5: // CREATE_TIME\n\t\t\t\treturn CREATE_TIME;\n\t\t\tcase 6: // UPDATE_TIME\n\t\t\t\treturn UPDATE_TIME;\n\t\t\tcase 7: // STATUS\n\t\t\t\treturn STATUS;\n\t\t\tcase 8: // NUM_AUTH\n\t\t\t\treturn NUM_AUTH;\n\t\t\tcase 9: // USERNAME\n\t\t\t\treturn USERNAME;\n\t\t\tcase 10: // EMAIL\n\t\t\t\treturn EMAIL;\n\t\t\tcase 11: // LOC_NUM\n\t\t\t\treturn LOC_NUM;\n\t\t\tcase 12: // PHONE\n\t\t\t\treturn PHONE;\n\t\t\tcase 13: // UNIQUE\n\t\t\t\treturn UNIQUE;\n\t\t\tcase 14: // SALT\n\t\t\t\treturn SALT;\n\t\t\tcase 15: // SOURCE\n\t\t\t\treturn SOURCE;\n\t\t\tcase 16: // STATUS_EMAIL\n\t\t\t\treturn STATUS_EMAIL;\n\t\t\tcase 17: // STATUS_PHONE\n\t\t\t\treturn STATUS_PHONE;\n\t\t\tcase 18: // STATUS_PSW\n\t\t\t\treturn STATUS_PSW;\n\t\t\tcase 19: // STATUS_QUEST\n\t\t\t\treturn STATUS_QUEST;\n\t\t\tcase 20: // STATUS_CARD\n\t\t\t\treturn STATUS_CARD;\n\t\t\tcase 21: // IS_TWO_FACTOR\n\t\t\t\treturn IS_TWO_FACTOR;\n\t\t\tcase 22: // LANG\n\t\t\t\treturn LANG;\n\t\t\tcase 23: // NUM_USERNAME\n\t\t\t\treturn NUM_USERNAME;\n\t\t\tcase 24: // NUM_UNIQUE\n\t\t\t\treturn NUM_UNIQUE;\n\t\t\tdefault:\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}",
"TbFreightTemplate selectByPrimaryKey(Long id);",
"@org.apache.thrift.annotation.Nullable\r\n public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n case 1: // ID_VEHICULO\r\n return ID_VEHICULO;\r\n case 2: // MARCA\r\n return MARCA;\r\n case 3: // MODELO\r\n return MODELO;\r\n case 4: // ANIO\r\n return ANIO;\r\n case 5: // COLOR\r\n return COLOR;\r\n case 6: // NOMBRE_ASEGURADORA\r\n return NOMBRE_ASEGURADORA;\r\n case 7: // NUM_POLIZA\r\n return NUM_POLIZA;\r\n case 8: // PLACA\r\n return PLACA;\r\n default:\r\n return null;\r\n }\r\n }",
"public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n case 1: // CHOICE_ID\r\n return CHOICE_ID;\r\n case 2: // SIMPLE_SEARCH_QUERY\r\n return SIMPLE_SEARCH_QUERY;\r\n case 3: // CONTEXT_ITEMS\r\n return CONTEXT_ITEMS;\r\n case 4: // MIN_HIT_COUNT\r\n return MIN_HIT_COUNT;\r\n case 5: // EXCLUDE_VARIANT_IDS\r\n return EXCLUDE_VARIANT_IDS;\r\n case 6: // SCOPE\r\n return SCOPE;\r\n case 70: // WITH_RELAXATION\r\n return WITH_RELAXATION;\r\n case 80: // WITH_SEMANTIC_FILTERING\r\n return WITH_SEMANTIC_FILTERING;\r\n case 90: // INCLUDE_VARIANT_IDS\r\n return INCLUDE_VARIANT_IDS;\r\n default:\r\n return null;\r\n }\r\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // TYPE\n return TYPE;\n case 2: // ARGUMENTS\n return ARGUMENTS;\n case 3: // RETURN_TYPE\n return RETURN_TYPE;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // RECOM_ID\n return RECOM_ID;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ID\n return ID;\n case 2: // PROCESS_ID\n return PROCESS_ID;\n case 3: // APPLICATION_INTERFACE_ID\n return APPLICATION_INTERFACE_ID;\n case 4: // COMPUTE_RESOURCE_ID\n return COMPUTE_RESOURCE_ID;\n case 5: // QUEUE_NAME\n return QUEUE_NAME;\n case 6: // NODE_COUNT\n return NODE_COUNT;\n case 7: // CORE_COUNT\n return CORE_COUNT;\n case 8: // WALL_TIME_LIMIT\n return WALL_TIME_LIMIT;\n case 9: // PHYSICAL_MEMORY\n return PHYSICAL_MEMORY;\n case 10: // STATUSES\n return STATUSES;\n case 11: // ERRORS\n return ERRORS;\n case 12: // CREATED_AT\n return CREATED_AT;\n case 13: // UPDATED_AT\n return UPDATED_AT;\n default:\n return null;\n }\n }",
"@Test\n public void testSearchField(){\n Field field = FieldSets.createFieldWithTranslations(contextServiceClient);\n\n List<Field> list = FieldSets.searchField(contextServiceClient, \"\");\n\n assertEquals(1, list.size());\n assertEquals( FIELD_ONE, list.get(0).getId());\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EX\n return EX;\n default:\n return null;\n }\n }",
"public Pojo.OneWord getById(String code){ \n Pojo.OneWord e=(Pojo.OneWord)template.get(Pojo.OneWord.class,code); \n return e; \n}",
"protected abstract LibraryItem getItemFromFields();",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ID\n return ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // APPLIER_MOBILE\n return APPLIER_MOBILE;\n case 4: // APPLIER_NAME\n return APPLIER_NAME;\n case 5: // JOBNUMBER\n return JOBNUMBER;\n case 6: // JOBTITLE\n return JOBTITLE;\n case 7: // PHASECODE\n return PHASECODE;\n case 8: // PHASENAME\n return PHASENAME;\n case 9: // STATUSCODE\n return STATUSCODE;\n case 10: // STATUSNAME\n return STATUSNAME;\n case 11: // CREATE_TIME\n return CREATE_TIME;\n case 12: // UPDATE_TIME\n return UPDATE_TIME;\n default:\n return null;\n }\n }",
"private void selectTemplateFieldsFromXML(IdentifiedRecordTemplate template) throws FormException {\n \n GenericRecordTemplate genericRecordTemplate = null;\n \n try {\n PublicationTemplate publicationTemplateImpl = PublicationTemplateManager.getInstance()\n .loadPublicationTemplate(template.getTemplateName());\n genericRecordTemplate = (GenericRecordTemplate) publicationTemplateImpl\n .getRecordTemplate();\n template.setEncrypted(publicationTemplateImpl.isDataEncrypted());\n } catch (PublicationTemplateException e) {\n throw new FormException(\"GenericRecordSetManager\",\n \"form.EXP_UNKNOWN_TEMPLATE\", e);\n }\n \n GenericRecordTemplate wrapped = (GenericRecordTemplate) template.\n getWrappedTemplate();\n FieldTemplate[] fields = genericRecordTemplate.getFieldTemplates();\n \n for (FieldTemplate field : fields) {\n String displayName = field.getDisplayerName();\n GenericFieldTemplate fieldTemplate = new GenericFieldTemplate(field.\n getFieldName(), field.getTypeName());\n \n fieldTemplate.setMandatory(field.isMandatory());\n fieldTemplate.setReadOnly(field.isReadOnly());\n fieldTemplate.setHidden(field.isHidden());\n fieldTemplate.setDisabled(field.isDisabled());\n fieldTemplate.setSearchable(field.isSearchable());\n fieldTemplate.setDisplayerName((displayName != null) ? displayName : \"\");\n fieldTemplate.setLabel(field.getLabel());\n fieldTemplate.setUsedAsFacet(field.isUsedAsFacet());\n fieldTemplate.setParametersObj(field.getParametersObj());\n \n wrapped.addFieldTemplate(fieldTemplate);\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMPANY_ID\n return COMPANY_ID;\n case 2: // USER_EMPLOYEE_DOS\n return USER_EMPLOYEE_DOS;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // TICKET_VALUE\n return TICKET_VALUE;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ID\n return ID;\n case 2: // TYPE\n return TYPE;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ID\n return ID;\n case 2: // TYPE\n return TYPE;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\r\n public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n case 1: // ID\r\n return ID;\r\n case 2: // ID_CURSA\r\n return ID_CURSA;\r\n case 3: // NR_LOC\r\n return NR_LOC;\r\n case 4: // CLIENT\r\n return CLIENT;\r\n default:\r\n return null;\r\n }\r\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // USER_ID\n return USER_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // CUSTOM_VALUES\n return CUSTOM_VALUES;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // USER_ID\n return USER_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // CUSTOM_VALUES\n return CUSTOM_VALUES;\n default:\n return null;\n }\n }",
"@Override\n public int getField(int id) {\n return 0;\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // RESOURCE_HOST_ID\n return RESOURCE_HOST_ID;\n case 2: // TOTAL_CPUCOUNT\n return TOTAL_CPUCOUNT;\n case 3: // NODE_COUNT\n return NODE_COUNT;\n case 4: // NUMBER_OF_THREADS\n return NUMBER_OF_THREADS;\n case 5: // QUEUE_NAME\n return QUEUE_NAME;\n case 6: // WALL_TIME_LIMIT\n return WALL_TIME_LIMIT;\n case 7: // TOTAL_PHYSICAL_MEMORY\n return TOTAL_PHYSICAL_MEMORY;\n case 8: // CHESSIS_NUMBER\n return CHESSIS_NUMBER;\n case 9: // STATIC_WORKING_DIR\n return STATIC_WORKING_DIR;\n case 10: // OVERRIDE_LOGIN_USER_NAME\n return OVERRIDE_LOGIN_USER_NAME;\n case 11: // OVERRIDE_SCRATCH_LOCATION\n return OVERRIDE_SCRATCH_LOCATION;\n case 12: // OVERRIDE_ALLOCATION_PROJECT_NUMBER\n return OVERRIDE_ALLOCATION_PROJECT_NUMBER;\n case 13: // M_GROUP_COUNT\n return M_GROUP_COUNT;\n default:\n return null;\n }\n }",
"public boolean templateFieldLibraryDelete(Long id) {\n\t\tFieldsTemplateLibraryDAO dao = new FieldsTemplateLibraryDAO();\n\t\treturn dao.deleteById(id);\n\t}",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMPANY_ID\n return COMPANY_ID;\n case 2: // TYPE\n return TYPE;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // USER_ID\n return USER_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // INSTITUTION_ID\n return INSTITUTION_ID;\n case 2: // PRODUCTIDS\n return PRODUCTIDS;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMPANY_ID\n return COMPANY_ID;\n case 2: // USER_ID\n return USER_ID;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ID\n return ID;\n case 2: // STAFF_ID\n return STAFF_ID;\n case 3: // LOGIN_TYPE\n return LOGIN_TYPE;\n case 4: // LOGIN_ID\n return LOGIN_ID;\n case 5: // LOGIN_PASS\n return LOGIN_PASS;\n case 6: // LOGIN_PASS_ENCRYPT\n return LOGIN_PASS_ENCRYPT;\n case 7: // PHONE_NUMBER\n return PHONE_NUMBER;\n case 8: // STAFF_TYPE\n return STAFF_TYPE;\n case 9: // STATUS\n return STATUS;\n case 11: // CERT_STATUS\n return CERT_STATUS;\n case 12: // AVG_SCORE\n return AVG_SCORE;\n case 13: // TAG\n return TAG;\n case 14: // FINISH_ORDER_COUNT\n return FINISH_ORDER_COUNT;\n case 15: // ASSIGN_ORDER_COUNT\n return ASSIGN_ORDER_COUNT;\n case 16: // EXTRA_DATA1\n return EXTRA_DATA1;\n case 17: // EXTRA_DATA2\n return EXTRA_DATA2;\n case 18: // CREATE_TIME\n return CREATE_TIME;\n case 19: // UPDATE_TIME\n return UPDATE_TIME;\n case 20: // REGISTER_TIME\n return REGISTER_TIME;\n case 21: // LAST_RECEPTION_TIME\n return LAST_RECEPTION_TIME;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // BID_PRICE4\n return BID_PRICE4;\n case 2: // BID_VOLUME4\n return BID_VOLUME4;\n case 3: // BID_PRICE5\n return BID_PRICE5;\n case 4: // BID_VOLUME5\n return BID_VOLUME5;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // BINDING_PARAMS\n return BINDING_PARAMS;\n case 2: // BIND_SOURCE\n return BIND_SOURCE;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // USER_ID\n return USER_ID;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // USER_ID\n return USER_ID;\n default:\n return null;\n }\n }",
"public List<String> getMetadataTemplate(Long id,Boolean loadNameMetadata){ \n\t\tList<String> metadata = new ArrayList<>();\n\t\tFieldsMappingMetaDAO dao = new FieldsMappingMetaDAO();\n\t\tFieldsTemplateLibraryDAO fieldDao = new FieldsTemplateLibraryDAO();\n\t\tCollection<FieldsMappingMeta>fields = dao.getAllByIdTemplate(id);\n\t\tFieldsTemplateLibrary ftl = new FieldsTemplateLibrary();\n\t\t\n\t\tif(fields!=null && !fields.isEmpty()) {\n\t\t\tfor (FieldsMappingMeta item : fields) \n\t\t\t{\n\t\t\t\tif(loadNameMetadata)\n\t\t\t\t\tmetadata.add(item.getFieldsTemplateLibrary().getNameSource().toString());\n\t\t\t\telse\n\t\t\t\t\tmetadata.add(item.getFieldsTemplateLibrary().getId().toString());\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn metadata;\n\t}",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // USER_ID\n return USER_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // SOURCE\n return SOURCE;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // QUERY\n return QUERY;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // TIMESPAN\n return TIMESPAN;\n case 4: // PAGE_NUM\n return PAGE_NUM;\n case 5: // PAGE_SIZE\n return PAGE_SIZE;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // IDS\n return IDS;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // IDS\n return IDS;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // IDS\n return IDS;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // IDS\n return IDS;\n default:\n return null;\n }\n }",
"FieldType getFieldTypeById(byte[] id) throws FieldTypeNotFoundException, TypeException, InterruptedException;",
"TempletLink selectByPrimaryKey(String id);",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n case 2: // CUSTOM_VALUES\n return CUSTOM_VALUES;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // PAGE_NUMBER\n return PAGE_NUMBER;\n case 4: // PAGE_SIZE\n return PAGE_SIZE;\n default:\n return null;\n }\n }",
"FileRecordAdmin selectByPrimaryKey(String id);",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // DATA\n return DATA;\n case 2: // FILE_ID\n return FILE_ID;\n case 3: // SIZE\n return SIZE;\n default:\n return null;\n }\n }",
"public FieldsTemplate getFielTemplateById(Long id)\n\t{\n\t\tFieldsTemplateDAO dao = new FieldsTemplateDAO();\n\t\tFieldsTemplate fieldTemplate = dao.getById(id);\n\t\treturn fieldTemplate;\n\t}",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ACTIVATION_CODEE\n return ACTIVATION_CODEE;\n case 2: // BIND_EMAIL_SOURCE\n return BIND_EMAIL_SOURCE;\n default:\n return null;\n }\n }",
"Fields fields();",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMPANY_ID\n return COMPANY_ID;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMPANY_ID\n return COMPANY_ID;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMPANY_ID\n return COMPANY_ID;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMPANY_ID\n return COMPANY_ID;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // COMPANY_ID\n return COMPANY_ID;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // VERSION\n return VERSION;\n case 2: // APP_ID\n return APP_ID;\n case 3: // BRAND\n return BRAND;\n case 4: // POINT\n return POINT;\n case 5: // CAMPAIGN_TYPE\n return CAMPAIGN_TYPE;\n case 6: // POINT_MULTIPLY\n return POINT_MULTIPLY;\n case 7: // SNAPEARN_ID\n return SNAPEARN_ID;\n case 8: // RECEIPT_NUMBER\n return RECEIPT_NUMBER;\n case 9: // OUTLET_ID\n return OUTLET_ID;\n case 10: // OPERATOR_ID\n return OPERATOR_ID;\n case 11: // REJECTED_REASON\n return REJECTED_REASON;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PID\n return PID;\n case 2: // EXCEPTION_ID\n return EXCEPTION_ID;\n case 3: // USER_ID\n return USER_ID;\n case 4: // REPORT_DATE\n return REPORT_DATE;\n case 5: // UN_ASSURE_CONDITION\n return UN_ASSURE_CONDITION;\n case 6: // HOUSE_PROPERY_CONDITION\n return HOUSE_PROPERY_CONDITION;\n case 7: // REMARK\n return REMARK;\n case 8: // CREATE_DATE\n return CREATE_DATE;\n case 9: // CREATE_ID\n return CREATE_ID;\n case 10: // UPDATE_DATE\n return UPDATE_DATE;\n case 11: // UPDATE_ID\n return UPDATE_ID;\n case 12: // PROJECT_ID\n return PROJECT_ID;\n case 13: // LEGAL_LIST\n return LEGAL_LIST;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EXAM_ID\n return EXAM_ID;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EXAM_ID\n return EXAM_ID;\n case 2: // PARAM\n return PARAM;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // RESOURCE_PLAN_NAME\n return RESOURCE_PLAN_NAME;\n case 2: // POOL_PATH\n return POOL_PATH;\n case 3: // ALLOC_FRACTION\n return ALLOC_FRACTION;\n case 4: // QUERY_PARALLELISM\n return QUERY_PARALLELISM;\n case 5: // SCHEDULING_POLICY\n return SCHEDULING_POLICY;\n case 6: // IS_SET_SCHEDULING_POLICY\n return IS_SET_SCHEDULING_POLICY;\n case 7: // NS\n return NS;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n case 2: // USER_ID\n return USER_ID;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EMPLOYEE_ID\n return EMPLOYEE_ID;\n case 2: // USER_ID\n return USER_ID;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // CIPHERTEXT\n return CIPHERTEXT;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n case 1: // ID\r\n return ID;\r\n case 2: // NAME\r\n return NAME;\r\n case 3: // ARTISTS\r\n return ARTISTS;\r\n case 4: // RELEASE_DATE\r\n return RELEASE_DATE;\r\n case 5: // GENRES\r\n return GENRES;\r\n case 6: // TRACK_NAMES\r\n return TRACK_NAMES;\r\n case 7: // TEXT\r\n return TEXT;\r\n default:\r\n return null;\r\n }\r\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // TYPE\n return TYPE;\n default:\n return null;\n }\n }",
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // NAME\n return NAME;\n case 2: // PLUGIN\n return PLUGIN;\n case 3: // PACKAGENAME\n return PACKAGENAME;\n case 4: // STATUS\n return STATUS;\n case 5: // SIZE\n return SIZE;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }",
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }"
] | [
"0.66581386",
"0.65316993",
"0.63488674",
"0.62716",
"0.6269058",
"0.6257027",
"0.6237156",
"0.6198849",
"0.6184271",
"0.61228174",
"0.6107168",
"0.60705966",
"0.6052588",
"0.60031277",
"0.5980929",
"0.59797335",
"0.59564453",
"0.58440286",
"0.58279485",
"0.58124983",
"0.57862085",
"0.57556975",
"0.57383174",
"0.5730823",
"0.5711825",
"0.5707977",
"0.5702075",
"0.56928724",
"0.56748366",
"0.5661651",
"0.565158",
"0.56363547",
"0.56340855",
"0.56337863",
"0.5628259",
"0.5621841",
"0.56193554",
"0.56193554",
"0.5616765",
"0.5613689",
"0.5613689",
"0.5608023",
"0.56065804",
"0.5605794",
"0.5605441",
"0.56047434",
"0.55996203",
"0.559748",
"0.55960757",
"0.55839026",
"0.558306",
"0.55786866",
"0.55786866",
"0.557431",
"0.5573233",
"0.5572296",
"0.5572296",
"0.5572296",
"0.5572296",
"0.5572296",
"0.5572296",
"0.5564723",
"0.55645293",
"0.55642366",
"0.55642366",
"0.55642366",
"0.55642366",
"0.5562943",
"0.5555744",
"0.5554121",
"0.55508363",
"0.55507106",
"0.5547035",
"0.5545552",
"0.5545242",
"0.5545022",
"0.5535855",
"0.5535855",
"0.5535855",
"0.5535855",
"0.5535855",
"0.5533635",
"0.5529607",
"0.552898",
"0.552699",
"0.55255896",
"0.55190986",
"0.55190986",
"0.55168605",
"0.55134445",
"0.5510563",
"0.55103445",
"0.55069894",
"0.55069894",
"0.55069894",
"0.55069894",
"0.55069894",
"0.55069894",
"0.55069894",
"0.55069894"
] | 0.64728993 | 2 |
get all field template library by name | public ArrayList<FieldsTemplateLibrary> templateFieldLibraryByName(String name){
FieldsTemplateLibraryDAO dao = new FieldsTemplateLibraryDAO();
Collection<FieldsTemplateLibrary> collection = dao.getByName(name);
ArrayList<FieldsTemplateLibrary> responseList = new ArrayList<FieldsTemplateLibrary>(collection);
return responseList;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ArrayList<FieldsTemplateLibrary> templateFieldLibraryGetAll() {\n\t\tFieldsTemplateLibraryDAO dao = new FieldsTemplateLibraryDAO();\n\t\tCollection<FieldsTemplateLibrary> collection = dao.getAllFields();\n\t\tArrayList<FieldsTemplateLibrary> responseList = new ArrayList<FieldsTemplateLibrary>(collection);\n\t\treturn responseList;\n\t}",
"public Template[] getTemplates(String name) {\n\tArrayList res = new ArrayList();\n\tfor (Iterator iterator = fTemplates.iterator(); iterator.hasNext();) {\n\t Template curr = (Template) iterator.next();\n\t if (curr.getName().equals(name)) {\n\t\tres.add(curr);\n\t }\n\t}\n\treturn (Template[]) res.toArray(new Template[res.size()]);\n }",
"public List<String> getMetadataTemplate(Long id,Boolean loadNameMetadata){ \n\t\tList<String> metadata = new ArrayList<>();\n\t\tFieldsMappingMetaDAO dao = new FieldsMappingMetaDAO();\n\t\tFieldsTemplateLibraryDAO fieldDao = new FieldsTemplateLibraryDAO();\n\t\tCollection<FieldsMappingMeta>fields = dao.getAllByIdTemplate(id);\n\t\tFieldsTemplateLibrary ftl = new FieldsTemplateLibrary();\n\t\t\n\t\tif(fields!=null && !fields.isEmpty()) {\n\t\t\tfor (FieldsMappingMeta item : fields) \n\t\t\t{\n\t\t\t\tif(loadNameMetadata)\n\t\t\t\t\tmetadata.add(item.getFieldsTemplateLibrary().getNameSource().toString());\n\t\t\t\telse\n\t\t\t\t\tmetadata.add(item.getFieldsTemplateLibrary().getId().toString());\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn metadata;\n\t}",
"public PpdDocGenRequestPayloadDto getFieldsTemplateListWithLib(Long idTemplate)\n\t{\n\t\tFieldsTemplateDAO daoTemplate = new FieldsTemplateDAO();\n\t\tFieldsTemplateLibraryDAO daoTemplateLib = new FieldsTemplateLibraryDAO();\n\t\t\n\t\tTemplate template = new Template();\n\t\ttemplate.setId(idTemplate);\n\t\t\n\t\tCollection<FieldsTemplate> responseList = daoTemplate.getAllFields(template);\n\t\tCollection<FieldsTemplateLibrary> responseTempLib = daoTemplateLib.getAllFields();\n\t\t\n\t\tPpdDocGenRequestPayloadDto respose = UtilMapping.templateFielsEntityToDTO(responseList,responseTempLib);\n\t\t\n\t\treturn respose;\n\t}",
"public Collection<FieldsTemplate> getFieldsTemplateList(Long idTemplate)\n\t{\n\t\tFieldsTemplateDAO daoTemplate = new FieldsTemplateDAO();\n\t\t\n\t\tTemplate template = new Template();\n\t\ttemplate.setId(idTemplate);\n\t\t\n\t\tCollection<FieldsTemplate> responseList = daoTemplate.getAllFields(template);\n\t\tloggerSingle.info(\"num fields template \"+idTemplate+\": \"+responseList.size());\n\t\treturn responseList;\n\t}",
"public TemplateField getField(String fieldname) throws NotFoundTemplateFieldException\r\n{\r\n\tEnumeration enumeracion = fields.elements();\r\n\twhile (enumeracion.hasMoreElements())\r\n\t{\r\n\t\tTemplateField tf = (TemplateField) enumeracion.nextElement();\r\n\t\tif (tf.getName().equalsIgnoreCase(fieldname))\r\n\t\t\treturn tf;\r\n\t\tif (tf instanceof TemplateGroupField)\r\n\t\t{\r\n\t\t\tTemplateGroupField tgf = (TemplateGroupField) tf;\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\ttf = tgf.getInerField(fieldname);\r\n\t\t\t\treturn tf;\r\n\t\t\t}\r\n\t\t\tcatch (NotFoundTemplateFieldException e)\r\n\t\t\t{\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\tthrow new NotFoundTemplateFieldException();\r\n}",
"public FieldsTemplateLibrary templateFieldLibraryById(Long idField) {\n\t\tFieldsTemplateLibraryDAO dao = new FieldsTemplateLibraryDAO();\n\t\treturn dao.getById(idField);\n\t}",
"public static List<String> form_list() {\n\t try{\n\t Connection connection = getConnection();\n\n\t List<String> forms = new ArrayList<String>();\n\n\t try {\n\t PreparedStatement statement = connection.prepareStatement(\"SELECT DISTINCT form_name FROM template_fields\");\n\t ResultSet rs = statement.executeQuery();\n\n\t while (rs.next()) {\n\t String form = rs.getString(\"form_name\");\n\t forms.add(form);\n\t }\n\t statement.close();\n\t connection.close();\n\t } catch (SQLException ex) {\n\t ex.printStackTrace();\n\t }\n\n\t return forms;\n\t } catch (Exception e) {\n\t e.printStackTrace();\n\t return null;\n\t }\n\t }",
"public List<String> getListOfTemplatesInGadget(){\r\n\t\tList<String> templates = new ArrayList<String>();\r\n\t\tList<WebElement> ele = driver.findElements(By.xpath(\"//div[contains(@class,'x-gadget')]//div[contains(@class,'helpdesk-newcall')]//div[@class='tplLabel']\"));\r\n\t\tfor(WebElement template : ele)\r\n\t\t\ttemplates.add(template.getText());\r\n\t\treturn templates;\r\n\t}",
"TemplatesPackage getTemplatesPackage();",
"public static List<Field> field_list(String form_Name, String mode) {\n\t try{\n\t Connection connection = getConnection();\n\n\t List<Field> fields = new ArrayList<Field>();\n\t \n\n\t try {\n\t \tPreparedStatement statement;\n\t \tif(mode == \"specific\") {\n\t\t statement = connection.prepareStatement(\"SELECT * FROM template_fields WHERE form_name = '\"+form_Name+\"'\");\n\t \t}\n\t \telse {\n\t \t\tstatement = connection.prepareStatement(\"SELECT * form_name FROM template_fields\");\n\t \t}\n\t \tResultSet rs = statement.executeQuery();\n\n\t while (rs.next()) {\n\t int fieldId = rs.getInt(\"field_id\");\n\t String fieldName = rs.getString(\"field_name\");\n\t String formName = rs.getString(\"form_name\");\n\t String fieldType = rs.getString(\"field_type\");\n\t String fieldValue = rs.getString(\"field_value\");\n\t String fieldMandatory = rs.getString(\"field_mandatory\");\n\t \t PreparedStatement fieldstmt = connection.prepareStatement(\"SELECT * FROM radio_fields WHERE field_id = '\"+fieldId+\"' AND form_name = '\"+form_Name+\"'\");\n\t ResultSet fieldrs = fieldstmt.executeQuery();\n\t List<String> itemList = new ArrayList<String>();\n\t while(fieldrs.next()) {\n\t \titemList.add(fieldrs.getString(\"radio_value\"));\n\t \tSystem.out.println(\"fieldID\" + fieldId + \": \" + fieldrs.getString(\"radio_value\"));\n\t }\n\t String[] fieldRadios = new String[itemList.size()];\n\t fieldRadios = itemList.toArray(fieldRadios);\n\t fieldstmt.close();\n\n\t \n\t Field field = new Field(formName, fieldId, fieldName, fieldType, fieldValue, fieldMandatory, fieldRadios);\n\t System.out.println(fieldRadios);\n\t System.out.println(\"MADA: \" + field.getTheMandatory());\n\t System.out.println(\"field:\" + field.getTheName());\n\t \n\t fields.add(field);\n\t }\n\t statement.close();\n\t connection.close();\n\t } catch (SQLException e) {\n\t e.printStackTrace();\n\t }\n\n\t return fields;\n\t } catch (Exception e) {\n\t e.printStackTrace();\n\t return null;\n\t }\n\t }",
"public static _Fields findByName(String name) {\r\n return byName.get(name);\r\n }",
"public static _Fields findByName(String name) {\r\n return byName.get(name);\r\n }",
"private List<String> getTemplateList(String portletName, String category) throws Exception {\n List<String> templateOptionList = new ArrayList<String>();\n List<Node> templateNodeList = templateManagerService.getTemplatesByCategory(portletName, category, SessionProvider.createSystemProvider());\n for (Node templateNode : templateNodeList) {\n templateOptionList.add(templateNode.getPath());\n }\n return templateOptionList;\n }",
"public static _Fields findByName(String name) {\n return byName.get(name);\n }",
"public static _Fields findByName(String name) {\n return byName.get(name);\n }",
"public static _Fields findByName(String name) {\r\n return byName.get(name);\r\n }",
"public static _Fields findByName(String name) {\r\n return byName.get(name);\r\n }",
"public static _Fields findByName(String name) {\r\n return byName.get(name);\r\n }",
"public static _Fields findByName(String name) {\r\n return byName.get(name);\r\n }",
"public static _Fields findByName(String name) {\r\n return byName.get(name);\r\n }",
"public static _Fields findByName(String name) {\r\n return byName.get(name);\r\n }",
"public static _Fields findByName(String name) {\r\n return byName.get(name);\r\n }",
"public static _Fields findByName(String name) {\r\n return byName.get(name);\r\n }",
"public static _Fields findByName(String name) {\r\n return byName.get(name);\r\n }",
"public static _Fields findByName(String name) {\r\n return byName.get(name);\r\n }",
"public static _Fields findByName(String name) {\r\n return byName.get(name);\r\n }",
"public static _Fields findByName(String name) {\r\n return byName.get(name);\r\n }",
"public static _Fields findByName(String name) {\r\n return byName.get(name);\r\n }",
"public static _Fields findByName(String name) {\r\n return byName.get(name);\r\n }",
"public static _Fields findByName(String name) {\r\n return byName.get(name);\r\n }",
"public static _Fields findByName(String name) {\r\n return byName.get(name);\r\n }",
"public static _Fields findByName(String name) {\r\n return byName.get(name);\r\n }",
"public static _Fields findByName(String name) {\r\n return byName.get(name);\r\n }",
"public static _Fields findByName(String name) {\r\n return byName.get(name);\r\n }",
"public static _Fields findByName(String name) {\r\n return byName.get(name);\r\n }",
"public static _Fields findByName(String name) {\r\n return byName.get(name);\r\n }",
"public static _Fields findByName(String name) {\r\n return byName.get(name);\r\n }",
"public static _Fields findByName(String name) {\r\n return byName.get(name);\r\n }",
"public static _Fields findByName(String name) {\r\n return byName.get(name);\r\n }",
"public static _Fields findByName(String name) {\r\n return byName.get(name);\r\n }",
"public static _Fields findByName(String name) {\r\n return byName.get(name);\r\n }",
"public static _Fields findByName(String name) {\r\n return byName.get(name);\r\n }",
"public static _Fields findByName(String name) {\r\n return byName.get(name);\r\n }",
"public static _Fields findByName(String name) {\r\n return byName.get(name);\r\n }",
"public static _Fields findByName(String name) {\r\n return byName.get(name);\r\n }",
"public static _Fields findByName(String name) {\r\n return byName.get(name);\r\n }",
"public static _Fields findByName(String name) {\r\n return byName.get(name);\r\n }",
"public static _Fields findByName(String name) {\r\n return byName.get(name);\r\n }",
"public static _Fields findByName(String name) {\r\n return byName.get(name);\r\n }",
"public static _Fields findByName(String name) {\r\n return byName.get(name);\r\n }",
"public static _Fields findByName(String name) {\r\n return byName.get(name);\r\n }",
"public static _Fields findByName(String name) {\r\n return byName.get(name);\r\n }",
"public static _Fields findByName(String name) {\r\n return byName.get(name);\r\n }",
"public static _Fields findByName(String name) {\r\n return byName.get(name);\r\n }",
"public static _Fields findByName(String name) {\r\n return byName.get(name);\r\n }",
"public static _Fields findByName(String name) {\r\n return byName.get(name);\r\n }",
"public static _Fields findByName(String name) {\r\n return byName.get(name);\r\n }",
"public static _Fields findByName(String name) {\r\n return byName.get(name);\r\n }",
"public static _Fields findByName(String name) {\r\n return byName.get(name);\r\n }",
"public static _Fields findByName(String name) {\r\n return byName.get(name);\r\n }",
"public static _Fields findByName(String name) {\r\n return byName.get(name);\r\n }",
"public static _Fields findByName(String name) {\r\n return byName.get(name);\r\n }",
"public static _Fields findByName(String name) {\r\n return byName.get(name);\r\n }",
"public static _Fields findByName(String name) {\n return byName.get(name);\n }",
"public static _Fields findByName(String name) {\n return byName.get(name);\n }",
"public static _Fields findByName(String name) {\n return byName.get(name);\n }",
"public static _Fields findByName(String name) {\n return byName.get(name);\n }",
"public static _Fields findByName(String name) {\n return byName.get(name);\n }",
"public static _Fields findByName(String name) {\n return byName.get(name);\n }",
"public static _Fields findByName(String name) {\n return byName.get(name);\n }",
"public static _Fields findByName(String name) {\n return byName.get(name);\n }",
"public static _Fields findByName(String name) {\n return byName.get(name);\n }",
"public static _Fields findByName(String name) {\n return byName.get(name);\n }",
"public static _Fields findByName(String name) {\n return byName.get(name);\n }",
"public static _Fields findByName(String name) {\n return byName.get(name);\n }",
"public static _Fields findByName(String name) {\n return byName.get(name);\n }",
"public static _Fields findByName(String name) {\n return byName.get(name);\n }",
"public static _Fields findByName(String name) {\n return byName.get(name);\n }",
"public static _Fields findByName(String name) {\n return byName.get(name);\n }",
"public static _Fields findByName(String name) {\n return byName.get(name);\n }",
"public static _Fields findByName(String name) {\n return byName.get(name);\n }",
"public static _Fields findByName(String name) {\n return byName.get(name);\n }",
"public static _Fields findByName(String name) {\n return byName.get(name);\n }",
"public static _Fields findByName(String name) {\n return byName.get(name);\n }",
"public static _Fields findByName(String name) {\n return byName.get(name);\n }",
"public static _Fields findByName(String name) {\n return byName.get(name);\n }",
"public static _Fields findByName(String name) {\n return byName.get(name);\n }",
"public static _Fields findByName(String name) {\n return byName.get(name);\n }",
"public static _Fields findByName(String name) {\n return byName.get(name);\n }",
"public static _Fields findByName(String name) {\n return byName.get(name);\n }",
"public static _Fields findByName(String name) {\n return byName.get(name);\n }",
"public static _Fields findByName(String name) {\n return byName.get(name);\n }",
"public static _Fields findByName(String name) {\n return byName.get(name);\n }",
"public static _Fields findByName(String name) {\n return byName.get(name);\n }",
"public static _Fields findByName(String name) {\n return byName.get(name);\n }",
"public static _Fields findByName(String name) {\n return byName.get(name);\n }",
"public static _Fields findByName(String name) {\n return byName.get(name);\n }",
"public static _Fields findByName(String name) {\n return byName.get(name);\n }",
"public static _Fields findByName(String name) {\n return byName.get(name);\n }"
] | [
"0.7240309",
"0.60940194",
"0.59039605",
"0.58374786",
"0.58230776",
"0.5822668",
"0.5701578",
"0.5561821",
"0.54937196",
"0.54499704",
"0.53656626",
"0.52553934",
"0.52553934",
"0.5215853",
"0.52002287",
"0.52002287",
"0.51992553",
"0.51992553",
"0.51992553",
"0.51992553",
"0.51992553",
"0.51992553",
"0.51992553",
"0.51992553",
"0.51992553",
"0.51992553",
"0.51992553",
"0.51992553",
"0.51992553",
"0.51992553",
"0.51992553",
"0.51992553",
"0.51992553",
"0.51992553",
"0.51992553",
"0.51992553",
"0.51992553",
"0.51992553",
"0.51992553",
"0.51992553",
"0.51992553",
"0.51992553",
"0.51992553",
"0.51992553",
"0.51992553",
"0.51992553",
"0.51992553",
"0.51992553",
"0.51992553",
"0.51992553",
"0.51992553",
"0.51992553",
"0.51992553",
"0.51992553",
"0.51992553",
"0.51992553",
"0.51992553",
"0.51992553",
"0.51992553",
"0.51992553",
"0.51992553",
"0.51992553",
"0.51992553",
"0.51992553",
"0.51746464",
"0.51746464",
"0.51746464",
"0.51746464",
"0.51746464",
"0.51746464",
"0.51746464",
"0.51746464",
"0.51746464",
"0.51746464",
"0.51746464",
"0.51746464",
"0.51746464",
"0.51746464",
"0.51746464",
"0.51746464",
"0.51746464",
"0.51746464",
"0.51746464",
"0.51746464",
"0.51746464",
"0.51746464",
"0.51746464",
"0.51746464",
"0.51746464",
"0.51746464",
"0.51746464",
"0.51746464",
"0.51746464",
"0.51746464",
"0.51746464",
"0.51746464",
"0.51746464",
"0.51746464",
"0.51746464",
"0.51746464"
] | 0.79335755 | 0 |
get all template fields library | public ArrayList<FieldsTemplateLibrary> templateFieldLibraryGetAll() {
FieldsTemplateLibraryDAO dao = new FieldsTemplateLibraryDAO();
Collection<FieldsTemplateLibrary> collection = dao.getAllFields();
ArrayList<FieldsTemplateLibrary> responseList = new ArrayList<FieldsTemplateLibrary>(collection);
return responseList;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ArrayList<FieldsTemplateLibrary> templateFieldLibraryByName(String name){\n\t\tFieldsTemplateLibraryDAO dao = new FieldsTemplateLibraryDAO();\n\t\tCollection<FieldsTemplateLibrary> collection = dao.getByName(name);\n\t\tArrayList<FieldsTemplateLibrary> responseList = new ArrayList<FieldsTemplateLibrary>(collection);\n\t\treturn responseList;\n\t}",
"public PpdDocGenRequestPayloadDto getFieldsTemplateListWithLib(Long idTemplate)\n\t{\n\t\tFieldsTemplateDAO daoTemplate = new FieldsTemplateDAO();\n\t\tFieldsTemplateLibraryDAO daoTemplateLib = new FieldsTemplateLibraryDAO();\n\t\t\n\t\tTemplate template = new Template();\n\t\ttemplate.setId(idTemplate);\n\t\t\n\t\tCollection<FieldsTemplate> responseList = daoTemplate.getAllFields(template);\n\t\tCollection<FieldsTemplateLibrary> responseTempLib = daoTemplateLib.getAllFields();\n\t\t\n\t\tPpdDocGenRequestPayloadDto respose = UtilMapping.templateFielsEntityToDTO(responseList,responseTempLib);\n\t\t\n\t\treturn respose;\n\t}",
"public Collection<FieldsTemplate> getFieldsTemplateList(Long idTemplate)\n\t{\n\t\tFieldsTemplateDAO daoTemplate = new FieldsTemplateDAO();\n\t\t\n\t\tTemplate template = new Template();\n\t\ttemplate.setId(idTemplate);\n\t\t\n\t\tCollection<FieldsTemplate> responseList = daoTemplate.getAllFields(template);\n\t\tloggerSingle.info(\"num fields template \"+idTemplate+\": \"+responseList.size());\n\t\treturn responseList;\n\t}",
"Fields fields();",
"List<Field> getFields();",
"ISourceField[] getFields();",
"java.util.List<com.sagas.meta.model.MetaFieldData> \n getFieldsList();",
"public static List<String> form_list() {\n\t try{\n\t Connection connection = getConnection();\n\n\t List<String> forms = new ArrayList<String>();\n\n\t try {\n\t PreparedStatement statement = connection.prepareStatement(\"SELECT DISTINCT form_name FROM template_fields\");\n\t ResultSet rs = statement.executeQuery();\n\n\t while (rs.next()) {\n\t String form = rs.getString(\"form_name\");\n\t forms.add(form);\n\t }\n\t statement.close();\n\t connection.close();\n\t } catch (SQLException ex) {\n\t ex.printStackTrace();\n\t }\n\n\t return forms;\n\t } catch (Exception e) {\n\t e.printStackTrace();\n\t return null;\n\t }\n\t }",
"public FieldsTemplateLibrary templateFieldLibraryById(Long idField) {\n\t\tFieldsTemplateLibraryDAO dao = new FieldsTemplateLibraryDAO();\n\t\treturn dao.getById(idField);\n\t}",
"@Override\n\tpublic List<Field> getAll() {\n\t\treturn null;\n\t}",
"java.util.List<Field>\n getFieldsList();",
"public java.util.List<Field.Builder>\n getFieldsBuilderList() {\n return getFieldsFieldBuilder().getBuilderList();\n }",
"public List<Field<T>> getFields()\r\n/* 63: */ {\r\n/* 64:84 */ return this.fields;\r\n/* 65: */ }",
"private void selectTemplateFieldsFromXML(IdentifiedRecordTemplate template) throws FormException {\n \n GenericRecordTemplate genericRecordTemplate = null;\n \n try {\n PublicationTemplate publicationTemplateImpl = PublicationTemplateManager.getInstance()\n .loadPublicationTemplate(template.getTemplateName());\n genericRecordTemplate = (GenericRecordTemplate) publicationTemplateImpl\n .getRecordTemplate();\n template.setEncrypted(publicationTemplateImpl.isDataEncrypted());\n } catch (PublicationTemplateException e) {\n throw new FormException(\"GenericRecordSetManager\",\n \"form.EXP_UNKNOWN_TEMPLATE\", e);\n }\n \n GenericRecordTemplate wrapped = (GenericRecordTemplate) template.\n getWrappedTemplate();\n FieldTemplate[] fields = genericRecordTemplate.getFieldTemplates();\n \n for (FieldTemplate field : fields) {\n String displayName = field.getDisplayerName();\n GenericFieldTemplate fieldTemplate = new GenericFieldTemplate(field.\n getFieldName(), field.getTypeName());\n \n fieldTemplate.setMandatory(field.isMandatory());\n fieldTemplate.setReadOnly(field.isReadOnly());\n fieldTemplate.setHidden(field.isHidden());\n fieldTemplate.setDisabled(field.isDisabled());\n fieldTemplate.setSearchable(field.isSearchable());\n fieldTemplate.setDisplayerName((displayName != null) ? displayName : \"\");\n fieldTemplate.setLabel(field.getLabel());\n fieldTemplate.setUsedAsFacet(field.isUsedAsFacet());\n fieldTemplate.setParametersObj(field.getParametersObj());\n \n wrapped.addFieldTemplate(fieldTemplate);\n }\n }",
"@Override\n public java.util.List<Field> getFieldsList() {\n return fields_;\n }",
"@SimpleFunction(description = \"Get the fields in the projects as a list\")\n public YailList GetFieldsList() {\n ArrayList<String> fieldsList = new ArrayList<String>();\n for (RProjectField j : fields) {\n fieldsList.add(j.name);\n }\n return YailList.makeList(fieldsList);\n }",
"com.sagas.meta.model.MetaFieldData getFields(int index);",
"public List<FieldObject> getFieldObjects() {\n return _fieldObjects;\n }",
"@Test\n public void getFieldsTest() throws ApiException {\n List<FieldDetails> response = api.getFields();\n\n // TODO: test validations\n }",
"public static List<Field> field_list(String form_Name, String mode) {\n\t try{\n\t Connection connection = getConnection();\n\n\t List<Field> fields = new ArrayList<Field>();\n\t \n\n\t try {\n\t \tPreparedStatement statement;\n\t \tif(mode == \"specific\") {\n\t\t statement = connection.prepareStatement(\"SELECT * FROM template_fields WHERE form_name = '\"+form_Name+\"'\");\n\t \t}\n\t \telse {\n\t \t\tstatement = connection.prepareStatement(\"SELECT * form_name FROM template_fields\");\n\t \t}\n\t \tResultSet rs = statement.executeQuery();\n\n\t while (rs.next()) {\n\t int fieldId = rs.getInt(\"field_id\");\n\t String fieldName = rs.getString(\"field_name\");\n\t String formName = rs.getString(\"form_name\");\n\t String fieldType = rs.getString(\"field_type\");\n\t String fieldValue = rs.getString(\"field_value\");\n\t String fieldMandatory = rs.getString(\"field_mandatory\");\n\t \t PreparedStatement fieldstmt = connection.prepareStatement(\"SELECT * FROM radio_fields WHERE field_id = '\"+fieldId+\"' AND form_name = '\"+form_Name+\"'\");\n\t ResultSet fieldrs = fieldstmt.executeQuery();\n\t List<String> itemList = new ArrayList<String>();\n\t while(fieldrs.next()) {\n\t \titemList.add(fieldrs.getString(\"radio_value\"));\n\t \tSystem.out.println(\"fieldID\" + fieldId + \": \" + fieldrs.getString(\"radio_value\"));\n\t }\n\t String[] fieldRadios = new String[itemList.size()];\n\t fieldRadios = itemList.toArray(fieldRadios);\n\t fieldstmt.close();\n\n\t \n\t Field field = new Field(formName, fieldId, fieldName, fieldType, fieldValue, fieldMandatory, fieldRadios);\n\t System.out.println(fieldRadios);\n\t System.out.println(\"MADA: \" + field.getTheMandatory());\n\t System.out.println(\"field:\" + field.getTheName());\n\t \n\t fields.add(field);\n\t }\n\t statement.close();\n\t connection.close();\n\t } catch (SQLException e) {\n\t e.printStackTrace();\n\t }\n\n\t return fields;\n\t } catch (Exception e) {\n\t e.printStackTrace();\n\t return null;\n\t }\n\t }",
"public interface ITemplateObjectField {\n\t/**\n\t * Field Type;\n\t * \n\t * @author crazyjohn\n\t *\n\t */\n\tenum FieldType {\n\t\tSHORT, INT, LONG, FLOAT, DOUBLE, STRING, ARRAY, LIST, SET, MAP;\n\n\t\tpublic static FieldType typeOf(String fieldType) {\n\t\t\t// TODO Auto-generated method stub\n\t\t\treturn null;\n\t\t}\n\t}\n\n\t/**\n\t * Get the field type;\n\t * \n\t * @return\n\t */\n\tpublic FieldType getType();\n\n\t/**\n\t * Get type name;\n\t * \n\t * @return\n\t */\n\tpublic String getTypeName();\n\n\t/**\n\t * Get the fieldName;\n\t * \n\t * @return\n\t */\n\tpublic String getName();\n\n\t/**\n\t * Get the field comment;\n\t * \n\t * @return\n\t */\n\tpublic String getComment();\n}",
"public ArrayList<GOlrField> getFields() {\n\n ArrayList<GOlrField> collection = new ArrayList<GOlrField>();\n\n // Plonk them all in to our bookkeeping.\n for (GOlrField field : unique_fields.values()) {\n collection.add(field);\n }\n\n return collection;\n }",
"public List<FieldModel> getFields(String classFullName) {\n StatementResult result = template.query(String.format(\"match (a:%s)-[r:%s|%s *1..5]->(b) return b.domain, b.name\", buildClassNodeId(classFullName), EXTEND, REFERENCE));\n\n List<String> classes = result.stream().map(r -> r.get(0).asString() + \".\" + r.get(1).asString()).collect(Collectors.toList());\n classes.add(classFullName);\n\n return fieldService.getByOwners(classes.toArray(new String[0]));\n }",
"private void selectTemplateFieldRows(Connection con,\n IdentifiedRecordTemplate template) throws SQLException, FormException {\n PreparedStatement select = null;\n ResultSet rs = null;\n GenericRecordTemplate wrapped = (GenericRecordTemplate) template\n .getWrappedTemplate();\n \n try {\n select = con.prepareStatement(SELECT_TEMPLATE_FIELDS);\n select.setInt(1, template.getInternalId());\n rs = select.executeQuery();\n \n GenericFieldTemplate fieldTemplate = null;\n String fieldName;\n String fieldType;\n boolean isMandatory;\n boolean isReadOnly;\n boolean isHidden;\n while (rs.next()) {\n // templateId = rs.getInt(1);\n fieldName = rs.getString(2);\n // fieldIndex = rs.getInt(3);\n fieldType = rs.getString(4);\n isMandatory = rs.getBoolean(5);\n isReadOnly = rs.getBoolean(6);\n isHidden = rs.getBoolean(7);\n \n fieldTemplate = new GenericFieldTemplate(fieldName, fieldType);\n fieldTemplate.setMandatory(isMandatory);\n fieldTemplate.setReadOnly(isReadOnly);\n fieldTemplate.setHidden(isHidden);\n \n wrapped.addFieldTemplate(fieldTemplate);\n }\n } finally {\n DBUtil.close(rs, select);\n }\n }",
"protected ArrayList<Object> getAllFieldsAsArrayList() {\n\n\t\t// first we get all the global fields.\n\t\t// That is, ones that apply to both Sprites,Text and any other object types.\n\t\tArrayList<Object> fieldList = super.getAllFieldsAsArrayList();\n\n\t\t//then we get the dialogue specific fields\n\t\tLog.info(\"getting label specific fields for object \"+ObjectsName);\n\n\t\tif (ObjectsCurrentText==null){\n\t\t\tLog.severe(\"Text is null at this point..is there a previous error? It could be the text contains characters the paragraph object doesnt support.\");\n\t\t}\n\n\t\t// dialog data\n\t\t//\n\n\t\t//we escape all newlines\n\t\tString currentTextWithEscapedNewlines = ObjectsCurrentText.replaceAll(\"\\\\r\\\\n|\\\\r|\\\\n\",ESCAPED_NEWLINE);\t\t\n\t\tfieldList.add(currentTextWithEscapedNewlines );\t\t\n\t\t//\tfieldList.add(ObjectsCurrentText.replaceAll(\"\\n\",ESCAPED_NEWLINE) );\n\t\tfieldList.add(CSSname);\n\n\n\t\treturn fieldList;\n\n\t}",
"public List<String> getMetadataTemplate(Long id,Boolean loadNameMetadata){ \n\t\tList<String> metadata = new ArrayList<>();\n\t\tFieldsMappingMetaDAO dao = new FieldsMappingMetaDAO();\n\t\tFieldsTemplateLibraryDAO fieldDao = new FieldsTemplateLibraryDAO();\n\t\tCollection<FieldsMappingMeta>fields = dao.getAllByIdTemplate(id);\n\t\tFieldsTemplateLibrary ftl = new FieldsTemplateLibrary();\n\t\t\n\t\tif(fields!=null && !fields.isEmpty()) {\n\t\t\tfor (FieldsMappingMeta item : fields) \n\t\t\t{\n\t\t\t\tif(loadNameMetadata)\n\t\t\t\t\tmetadata.add(item.getFieldsTemplateLibrary().getNameSource().toString());\n\t\t\t\telse\n\t\t\t\t\tmetadata.add(item.getFieldsTemplateLibrary().getId().toString());\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn metadata;\n\t}",
"public EAdList<EAdField<?>> getFields() {\r\n\t\treturn fields;\r\n\t}",
"List<FieldNode> getFields() {\n return this.classNode.fields;\n }",
"public List<String> getListOfTemplatesInGadget(){\r\n\t\tList<String> templates = new ArrayList<String>();\r\n\t\tList<WebElement> ele = driver.findElements(By.xpath(\"//div[contains(@class,'x-gadget')]//div[contains(@class,'helpdesk-newcall')]//div[@class='tplLabel']\"));\r\n\t\tfor(WebElement template : ele)\r\n\t\t\ttemplates.add(template.getText());\r\n\t\treturn templates;\r\n\t}",
"Field getFields(int index);",
"List<TbFreightTemplate> selectAll();",
"public void setupFields()\n {\n FieldInfo field = null;\n field = new FieldInfo(this, \"ID\", Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Integer.class);\n field.setHidden(true);\n field = new FieldInfo(this, \"LastChanged\", Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Date.class);\n field.setHidden(true);\n field = new FieldInfo(this, \"Deleted\", 10, null, new Boolean(false));\n field.setDataClass(Boolean.class);\n field.setHidden(true);\n field = new FieldInfo(this, \"Description\", 25, null, null);\n field = new FieldInfo(this, \"CurrencyCode\", 3, null, null);\n field = new FieldInfo(this, \"LastRate\", 10, null, null);\n field.setDataClass(Double.class);\n field.setScale(-1);\n field = new FieldInfo(this, \"RateChangedDate\", 12, null, null);\n field.setDataClass(Date.class);\n field.setScale(Constants.DATE_ONLY);\n field = new FieldInfo(this, \"RateChangedBy\", 16, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, \"CostingRate\", 10, null, null);\n field.setDataClass(Double.class);\n field.setScale(-1);\n field = new FieldInfo(this, \"CostingChangedDate\", 12, null, null);\n field.setDataClass(Date.class);\n field.setScale(Constants.DATE_ONLY);\n field = new FieldInfo(this, \"CostingChangedBy\", 16, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, \"RoundAt\", 1, null, null);\n field.setDataClass(Short.class);\n field = new FieldInfo(this, \"IntegerDesc\", 20, null, \"Dollar\");\n field = new FieldInfo(this, \"FractionDesc\", 20, null, null);\n field = new FieldInfo(this, \"FractionAmount\", 10, null, new Integer(100));\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, \"Sign\", 3, null, \"$\");\n field = new FieldInfo(this, \"LanguageID\", Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, \"NaturalInteger\", 20, null, null);\n field = new FieldInfo(this, \"NaturalFraction\", 20, null, null);\n }",
"public List<AliasedField> getFields() {\r\n return fields;\r\n }",
"java.util.List<? extends com.sagas.meta.model.MetaFieldDataOrBuilder> \n getFieldsOrBuilderList();",
"public static List fetchFieldsSupportingSearch() {\n return new ArrayList();\n }",
"java.lang.String getFields();",
"public TIFFField[] getFields() {\n return fields;\n }",
"private String[] findTagDataFields () {\n List<String> fieldVals = Util.newList();\n for (Field f : getClass().getFields()) {\n if (f.getName().startsWith(\"TAG_\")) { // grab TAG field\n try {\n fieldVals.add((String)f.get(this));\n } catch (IllegalArgumentException e) { // ignore\n } catch (IllegalAccessException e) { // ignore\n }\n }\n }\n return fieldVals.toArray(new String[0]);\n }",
"@Override\n\tpublic void getFields(List<String> table) {\n\t\t\n\t}",
"public String getFields() {\n return fields;\n }",
"@JsonGetter(\"fieldTypes\")\r\n public List<DocumentFieldType> getFieldTypes ( ) { \r\n return this.fieldTypes;\r\n }",
"protected abstract LibraryItem getItemFromFields();",
"public List<String> showFields() {\n Client client = new Client();\n Class<?> objFields = client.getClass();\n List<String> list = new ArrayList<>();\n for (Field field : objFields.getDeclaredFields()) {\n list.add(field.getName());\n }\n return list;\n }",
"List<TemplateDTO> getAllTemplates() throws GAException;",
"public TemplateField getField(String fieldname) throws NotFoundTemplateFieldException\r\n{\r\n\tEnumeration enumeracion = fields.elements();\r\n\twhile (enumeracion.hasMoreElements())\r\n\t{\r\n\t\tTemplateField tf = (TemplateField) enumeracion.nextElement();\r\n\t\tif (tf.getName().equalsIgnoreCase(fieldname))\r\n\t\t\treturn tf;\r\n\t\tif (tf instanceof TemplateGroupField)\r\n\t\t{\r\n\t\t\tTemplateGroupField tgf = (TemplateGroupField) tf;\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\ttf = tgf.getInerField(fieldname);\r\n\t\t\t\treturn tf;\r\n\t\t\t}\r\n\t\t\tcatch (NotFoundTemplateFieldException e)\r\n\t\t\t{\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\tthrow new NotFoundTemplateFieldException();\r\n}",
"private List getMappingFieldsInternal() {\n if (fields == null) {\n fields = new ArrayList();\n }\n\n return fields;\n }",
"@Nullable\n public com.commercetools.api.models.type.FieldContainer getFields() {\n return this.fields;\n }",
"TemplatesPackage getTemplatesPackage();",
"public List<Pojo.OneWord> getOneWord(){ \n List<Pojo.OneWord> list=new ArrayList<Pojo.OneWord>(); \n list=template.loadAll(Pojo.OneWord.class); \n return list; \n}",
"private Map<String,Field> getAllFields(Class clazz) {\n return this.getAllFields(clazz, false);\n }",
"TemplateModel[] getValues();",
"public List<StatefullComponent> getFields() {\n\t\treturn null;\r\n\t}",
"public List<Field> iterateThroughAllFields() {\n\n List<Field> listOfFields = new ArrayList<Field>(fields.length * fields.length);\n // TODO: n**m complexity\n for (int i = 0; i < this.fields.length; i++) {\n for (int j = 0; j < this.fields.length; j++) {\n listOfFields.add(this.fields[i][j]);\n }\n }\n return listOfFields;\n }",
"public List<AccountingLineViewField> getFields() {\n return fields;\n }",
"public static Field[] getAllFields (Class c)\n\t{\n\t\tList l = new ArrayList();\n\t\taddDeclaredFields(l, c);\n\t\t\n\t\tField[] fields = new Field[l.size()];\n\t\tfields = (Field[]) l.toArray(fields);\n\t\treturn fields;\n\t}",
"protected Vector collectFields() {\n Vector fields = new Vector(1);\n fields.addElement(this.getField());\n return fields;\n }",
"Map<String, Map<String, String>> getAllDefinedTemplateProperties();",
"public FieldDeclaration[] getFields() {\n return m_classBuilder.getFields();\n }",
"public List<Template> getTemplates() {\n return templates;\n }",
"FieldsType createFieldsType();",
"public interface FieldPopulator\n{\n List<String> getCoreFields();\n\n List<String> getSupportedFields();\n\n String getUriTemplate();\n}",
"public List<Field> getAllTheFields(Class<?> aSourceClass) {\n\t\tList<Field> result = new ArrayList<Field>();\n\t\tthis.getAllFields(aSourceClass, result);\n\t\treturn result;\n\t}",
"public java.util.List<Field> getFieldsList() {\n if (fieldsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(fields_);\n } else {\n return fieldsBuilder_.getMessageList();\n }\n }",
"@Override\n public Field getFields(int index) {\n return fields_.get(index);\n }",
"public final List<BuilderField> fields() throws RecognitionException {\n List<BuilderField> fields = null;\n\n\n BuilderField field16 = null;\n\n fields = Lists.newArrayList();\n try {\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:238:3: ( ^( I_FIELDS ( field )* ) )\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:238:5: ^( I_FIELDS ( field )* )\n {\n match(input, I_FIELDS, FOLLOW_I_FIELDS_in_fields308);\n if (input.LA(1) == Token.DOWN) {\n match(input, Token.DOWN, null);\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:239:7: ( field )*\n loop5:\n while (true) {\n int alt5 = 2;\n int LA5_0 = input.LA(1);\n if ((LA5_0 == I_FIELD)) {\n alt5 = 1;\n }\n\n switch (alt5) {\n case 1:\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:239:8: field\n {\n pushFollow(FOLLOW_field_in_fields317);\n field16 = field();\n state._fsp--;\n\n\n fields.add(field16);\n\n }\n break;\n\n default:\n break loop5;\n }\n }\n\n match(input, Token.UP, null);\n }\n\n }\n\n } catch (RecognitionException re) {\n reportError(re);\n recover(input, re);\n } finally {\n // do for sure before leaving\n }\n return fields;\n }",
"public static String[] getBasicFields() {\n\t\t\tList<String> basicFields = new ArrayList<>();\n\t\t\t\n\t\t\tfor(SearchField field : SearchField.values()) {\n\t\t\t\tbasicFields.add(field.field + \".basic\");\n\t\t\t}\n\t\t\t\n\t\t\treturn basicFields.toArray(new String[basicFields.size()]);\n\t\t}",
"public static final\n List<String> ccListAllFieldName(Class<?> pxClass, Class<?>pxFieldType){\n \n //-- check in\n if(pxClass==null){return null;}\n \n //-- retrieve\n Field[] lpDesField = pxClass.getDeclaredFields();\n if(lpDesField==null){return null;}\n if(lpDesField.length==0){return null;}\n \n //-- filtering\n List<String> lpRes=new LinkedList<String>();\n for(Field it:lpDesField){\n if(it==null){continue;}\n if(pxFieldType==null){continue;}\n if(it.getType().equals(pxFieldType)){\n lpRes.add(it.getName());\n }//+++\n }//..~\n \n return lpRes;\n \n }",
"public Enumeration getFields()\n {\n ensureLoaded();\n return m_tblField.elements();\n }",
"public List<TextBox> getAllTextBox() {\n List<TextBox> tb = new LinkedList<>();\n tb.add(entityName);\n return tb;\n }",
"public static void getSuperFields(Class<?> clazz, ArrayList<Field> all_fields) {\n\t\tif (clazz == Object.class)\n\t\t\treturn;\n\t\t\n\t\t//Field [] element_fields_ = clazz.getFields();\n\t\tField [] element_fields = clazz.getDeclaredFields(); //clazz.getFields();\n\t\tfor (Field f: element_fields) {\n\t\t\tall_fields.add(f);\n\t\t}\n\t\tgetSuperFields(clazz.getSuperclass(), all_fields);\n\t\t\n\t\treturn;\n\t}",
"private void init() {\n FieldWrapper id = new FieldWrapper();\n id.fieldDescription = new HashMap<String, Object>();\n id.fieldDescription.put(\"fullName\", \"Id\");\n id.fieldDescription.put(\"type\", \"Text\");\n\n FieldWrapper name = new FieldWrapper();\n name.fieldDescription = new HashMap<String, Object>();\n name.fieldDescription.put(\"fullName\", \"Name\");\n\n FieldWrapper createdBy = new FieldWrapper();\n createdBy.fieldDescription = new HashMap<String, Object>();\n createdBy.fieldDescription.put(\"fullName\", \"CreatedBy\");\n createdBy.fieldDescription.put(\"type\", \"Lookup\");\n\n FieldWrapper lastModifiedBy = new FieldWrapper();\n lastModifiedBy.fieldDescription = new HashMap<String, Object>();\n lastModifiedBy.fieldDescription.put(\"fullName\", \"LastModifiedBy\");\n lastModifiedBy.fieldDescription.put(\"type\", \"Lookup\");\n\n FieldWrapper owner = new FieldWrapper();\n owner.fieldDescription = new HashMap<String, Object>();\n owner.fieldDescription.put(\"fullName\", \"Owner\");\n owner.fieldDescription.put(\"type\", \"Lookup\");\n\n fieldDescribe = new HashMap<String, FieldWrapper>();\n\n fieldDescribe.put((String) id.fieldDescription.get(\"fullName\"), id);\n fieldDescribe.put((String) name.fieldDescription.get(\"fullName\"), name);\n fieldDescribe.put((String) createdBy.fieldDescription.get(\"fullName\"), createdBy);\n fieldDescribe.put((String) lastModifiedBy.fieldDescription.get(\"fullName\"), lastModifiedBy);\n fieldDescribe.put((String) owner.fieldDescription.get(\"fullName\"), owner);\n }",
"public static java.util.List<Field29G> getAll(final SwiftTagListBlock block) {\n\t\tif (block == null || block.isEmpty()) {\n\t\t\treturn null;\n\t\t}\n\t\tfinal Field[] arr = block.getFieldsByName(NAME);\n\t\tif (arr != null && arr.length>0) {\n\t\t\tfinal java.util.ArrayList<Field29G> result = new java.util.ArrayList<Field29G>(arr.length);\n\t\t\tfor (final Field f : arr) {\n\t\t\t\tresult.add((Field29G) f);\n\t\t\t}\n\t\t\treturn result;\n\t\t}\n\t\treturn java.util.Collections.emptyList();\n\t}",
"@Override\n public ArrayList<HashMap> extractFields(List<Field> fields) {\n FieldExtractor extractor\n = new FieldExtractor((Element) fetcher.getHTMLDocument(), source);\n return extractor.run(fields);\n }",
"private String getFields()\n\t{\n\t\tString fields = \"(\";\n\t\t\n\t\tfor(int spot = 0; spot < fieldList.size(); spot++)\n\t\t{\n\t\t\tfields += \"`\" + fieldList.get(spot).getName() + \"`\";\n\t\t\tif(spot == fieldList.size()-1)\n\t\t\t{\n\t\t\t\tfields += \")\";\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tfields += \", \";\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn fields;\n\t}",
"public static Field[] getFields (Class<?> clazz)\n {\n ArrayList<Field> list = new ArrayList<Field>();\n getFields(clazz, list);\n return list.toArray(new Field[list.size()]);\n }",
"java.util.List<? extends FieldOrBuilder>\n getFieldsOrBuilderList();",
"public ArrayList<Template> getTemplates() {\n\t\treturn getPageObjects(Template.class);\n\t}",
"private List<Field> getFields() {\n try {\n List<Field> fields = ResultSetUtil.getFields(databaseName, tableName, resultSets.get(0));\n if(fields.size() != MergeFactory.MAX_QUERY_FIELD_SIZE){\n throw new SqlParserException(\"the query fields max be equals \" + MergeFactory.MAX_QUERY_FIELD_SIZE);\n }\n return fields;\n } catch (SQLException e) {\n LOG.error(\"merge resultSet error\",e);\n throw new MergeException(\"merge resultSet error\" , e);\n }\n }",
"private String[] getDefinedFields(ObjectSet<?> pObjectSet) {\r\n\t\tString[] returnedValue = null;\r\n\t\tList<String> fieldsList = new ArrayList<String>();\r\n\t\t\r\n\t\tif (pObjectSet != null) {\r\n\t\t\tif (pObjectSet.getDataMappings().size() > 0) {\r\n\t\t\t\tfor(DataMapping mapping : pObjectSet.getDataMappings()) {\r\n\t\t\t\t\tif (!mapping.virtual && !mapping.IsCollection) {\r\n\t\t\t\t\t\tif (mapping.DataBaseDataType != Entity.DATATYPE_ENTITY) {\r\n\t\t\t\t\t\t\tfieldsList.add(mapping.DataBaseFieldName);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif (fieldsList.size() > 0) {\r\n\t\t\treturnedValue = fieldsList.toArray(new String[fieldsList.size()]);\r\n\t\t}\r\n\t\t\r\n\t\treturn returnedValue;\r\n\t}",
"@SuppressWarnings(\"unchecked\")\n\tpublic Class[] getTemplate();",
"private static Field[] retrieveAllFields(final Object object) {\r\n\t\tField[] fieldsArray = null;\r\n\r\n\t\t// - Retrieve fields array from cache if exists.\r\n\t\tif (KerAnnotation.fieldsCache.containsKey(object.getClass())) {\r\n\t\t\tfieldsArray = KerAnnotation.fieldsCache.get(object.getClass());\r\n\t\t}\r\n\t\t// - Else get fields and cache them.\r\n\t\telse {\r\n\t\t\t// - Aggregate all annotated fields (declared, inherited, etc.).\r\n\t\t\tfinal Set<Field> fields = new HashSet<Field>();\r\n\r\n\t\t\tfor (final Field field : object.getClass().getFields()) {\r\n\t\t\t\tif (field.getAnnotations().length > 0) {\r\n\t\t\t\t\tfields.add(field);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfor (final Field field : object.getClass().getDeclaredFields()) {\r\n\t\t\t\tif (field.getAnnotations().length > 0) {\r\n\t\t\t\t\tfields.add(field);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t// - Convert set to array.\r\n\t\t\tfieldsArray = fields.toArray(new Field[0]);\r\n\r\n\t\t\t// - Cache array.\r\n\t\t\tKerAnnotation.fieldsCache.put(object.getClass(), fieldsArray);\r\n\t\t}\r\n\r\n\t\treturn fieldsArray;\r\n\t}",
"@Override\n\tprotected String getFields()\n\t{\n\t\tString fields = \" GAZOID, GAZFLD, GAZPVN, GAZTYP, GAZCLN, GAZCLS \";\n\t\treturn fields;\n\t}",
"synchronized public Set<String> getFields() {\n return Collections.unmodifiableSet(new HashSet<>(fields));\n }",
"public static List<CustomFields> createCustomFieldsList() {\r\n List<CustomFields> customFields = new ArrayList<CustomFields>();\r\n\r\n customFields.add(createCustomFields(2, 15472, \"COMPANY\", \"1\", \"c1\", \"CORRELATION_ID\", \"0\"));\r\n customFields.add(createCustomFields(3, 15472, \"COMPANY\", \"2\", \"c2\", \"GROUP_ID\", \"0\"));\r\n return customFields;\r\n }",
"@SuppressWarnings(\"rawtypes\")\n\tpublic List getFields(){\n\t\treturn targetClass.fields;\n\t}",
"public List<MathVarDec> getFields() {\n return fields;\n }",
"private void buildFields() {\r\n buildField(txtPizzaName, GUIResource.getLabel(DIALOG, NAME_PIZZA), 0);\r\n buildField(txtCustomerName, GUIResource.getLabel(DIALOG, NAME_CUSTOMER), 1);\r\n buildField(txtPhone, GUIResource.getLabel(DIALOG, PHONE), 2);\r\n buildField(txtEmail, GUIResource.getLabel(DIALOG, EMAIL), 3);\r\n }",
"public Field[] getKeyFields();",
"@Test\n public void getFieldsPaginatedTest() throws ApiException {\n Long startAt = null;\n Integer maxResults = null;\n List<String> type = null;\n List<String> id = null;\n String query = null;\n String orderBy = null;\n String expand = null;\n PageBeanField response = api.getFieldsPaginated(startAt, maxResults, type, id, query, orderBy, expand);\n\n // TODO: test validations\n }",
"public Set<Field> getFields() {\r\n \t\t// We will only consider private fields in the declared class\r\n \t\tif (forceAccess)\r\n \t\t\treturn setUnion(source.getDeclaredFields(), source.getFields());\r\n \t\telse\r\n \t\t\treturn setUnion(source.getFields());\r\n \t}",
"@Override\n public java.util.List<? extends FieldOrBuilder>\n getFieldsOrBuilderList() {\n return fields_;\n }",
"String[] getSharedFields();",
"@External(readonly = true)\n\tpublic List<String> get_metadata_fields(){\n\t\t\n\t\treturn this.METADATA_FIELDS;\n\t}",
"public BaseField setupField(int iFieldSeq)\n {\n BaseField field = null;\n if (iFieldSeq == 0)\n field = new HotelField(this, PRODUCT_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 1)\n // field = new DateField(this, START_DATE, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 2)\n // field = new DateField(this, END_DATE, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 3)\n // field = new StringField(this, DESCRIPTION, 10, null, null);\n //if (iFieldSeq == 4)\n // field = new CityField(this, CITY_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 5)\n // field = new CityField(this, TO_CITY_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 6)\n // field = new ContinentField(this, CONTINENT_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 7)\n // field = new RegionField(this, REGION_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 8)\n // field = new CountryField(this, COUNTRY_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 9)\n // field = new StateField(this, STATE_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 10)\n // field = new VendorField(this, VENDOR_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n if (iFieldSeq == 11)\n field = new HotelRateField(this, RATE_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n if (iFieldSeq == 12)\n field = new HotelClassField(this, CLASS_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 13)\n // field = new DateField(this, DETAIL_DATE, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 14)\n // field = new ShortField(this, PAX, Constants.DEFAULT_FIELD_LENGTH, null, new Short((short)2));\n //if (iFieldSeq == 15)\n // field = new HotelScreenRecord_LastChanged(this, LAST_CHANGED, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 16)\n // field = new BooleanField(this, REMOTE_QUERY_ENABLED, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 17)\n // field = new ShortField(this, BLOCKED, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 18)\n // field = new ShortField(this, OVERSELL, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 19)\n // field = new BooleanField(this, CLOSED, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 20)\n // field = new BooleanField(this, DELETE, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 21)\n // field = new BooleanField(this, READ_ONLY, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 22)\n // field = new ProductSearchTypeField(this, PRODUCT_SEARCH_TYPE_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 23)\n // field = new ProductTypeField(this, PRODUCT_TYPE_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n if (iFieldSeq == 24)\n field = new PaxCategorySelect(this, PAX_CATEGORY_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n if (field == null)\n field = super.setupField(iFieldSeq);\n return field;\n }",
"public List<Supplier> getSuppliers(){ \n\t List<Supplier> list=new ArrayList<Supplier>(); \n\t list=template.loadAll(Supplier.class); \n\t return list; \n\t}",
"@Override\n\tprotected void buildRegFieldDefines() {\n\t\tIterator<FieldProperties> iter = fieldList.iterator();\n\t\t// traverse field list\n\t\twhile (iter.hasNext()) {\n\t\t\tFieldProperties field = iter.next();\n\t\t\tString fieldId = escapeReservedString(field.getPrefixedId()); \n\t\t\tString fieldClass = \"uvm_field_translate\";\n\t\t\toutputList.add(new OutputLine(indentLvl, fieldClass + \" \" + fieldId + \" = new(this, \" + field.getLowIndex() + \", \" + field.getFieldWidth() + \");\"));\n\t\t}\n\t}",
"public static List<Field> getAllFields(List<Field> fieldList, Class<?> classz) {\n if (classz == null) {\n return fieldList;\n }\n if (fieldList == null) {\n fieldList = new ArrayList<>(Arrays.asList(classz.getDeclaredFields()));\n } else {\n fieldList.addAll(Arrays.asList(classz.getDeclaredFields()));\n }\n return getAllFields(fieldList, classz.getSuperclass());\n }",
"public abstract Class<?>[] getFormRegions();",
"Map<String, Field> extensionFieldsMap() {\n Map<String, Field> extensionsForType = new LinkedHashMap<>();\n for (Field field : extensionFields) {\n extensionsForType.put(field.qualifiedName(), field);\n }\n return extensionsForType;\n }",
"@Override\r\n public List<DbField> initDbField(String controlID) {\n return null;\r\n }"
] | [
"0.7064457",
"0.6648108",
"0.6548099",
"0.6470421",
"0.64428085",
"0.63247716",
"0.61728245",
"0.6049799",
"0.5977934",
"0.5927435",
"0.5876519",
"0.5855517",
"0.5830312",
"0.5811136",
"0.5810203",
"0.57212496",
"0.5668912",
"0.56653297",
"0.5647341",
"0.5646777",
"0.56219923",
"0.56088424",
"0.55801874",
"0.5559774",
"0.55445445",
"0.55388004",
"0.55204904",
"0.5488791",
"0.54757416",
"0.54739493",
"0.5468584",
"0.5459998",
"0.5436432",
"0.54122853",
"0.541198",
"0.54040706",
"0.53807205",
"0.5294997",
"0.52837276",
"0.5280449",
"0.5272384",
"0.5266232",
"0.5266079",
"0.52658063",
"0.5243949",
"0.5243735",
"0.5230743",
"0.5227394",
"0.52187836",
"0.5218237",
"0.52093315",
"0.5195851",
"0.51935977",
"0.5179469",
"0.51717305",
"0.5168168",
"0.5163943",
"0.51622564",
"0.5147204",
"0.5137434",
"0.5136207",
"0.51332116",
"0.5130439",
"0.5126344",
"0.5112219",
"0.51089865",
"0.5099431",
"0.50878733",
"0.50857043",
"0.5077934",
"0.50708294",
"0.50659263",
"0.5063118",
"0.5049173",
"0.50487214",
"0.5042514",
"0.5039766",
"0.50380045",
"0.5036719",
"0.5032764",
"0.5025513",
"0.5025004",
"0.5021136",
"0.50196916",
"0.5018981",
"0.5017718",
"0.50031745",
"0.500308",
"0.5001344",
"0.49959433",
"0.49936384",
"0.4992547",
"0.49920794",
"0.49904615",
"0.49876887",
"0.4984527",
"0.49830878",
"0.49769285",
"0.49666402",
"0.49637324"
] | 0.8105841 | 0 |
Insert template field library | public FieldsTemplateLibrary templateFieldLibraryInsert(FieldsTemplateLibrary entity) {
FieldsTemplateLibraryDAO dao = new FieldsTemplateLibraryDAO();
entity = dao.saveNew(entity);
return entity;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void templateMetadataInsert(Long idTemplate,Long idFieldLib)\n\t{\t\n\t\tFieldsTemplateLibrary lib = new FieldsTemplateLibrary();\n\t\tlib.setId(idFieldLib);\n\t\t\t\t\n\t\tFieldsMappingMeta metadata = new FieldsMappingMeta();\n\t\tmetadata.setTemplateId(idTemplate);\n\t\tmetadata.setFieldsTemplateLibrary(lib);\n\t\t\n\t\tFieldsMappingMetaDAO metaDao = new FieldsMappingMetaDAO();\n\t\tmetaDao.saveNew(metadata);\n\t}",
"public void addField(TemplateField field)\r\n{\r\n\tfields.addElement(field);\r\n}",
"@Test\n public void fieldTemplate() throws Exception {\n Document doc = new Document();\n DocumentBuilder builder = new DocumentBuilder(doc);\n\n // We can set a template name using by the fields. This property is used when the \"doc.AttachedTemplate\" is empty.\n // If this property is empty the default template file name \"Normal.dotm\" is used.\n doc.getFieldOptions().setTemplateName(\"\");\n\n FieldTemplate field = (FieldTemplate) builder.insertField(FieldType.FIELD_TEMPLATE, false);\n Assert.assertEquals(field.getFieldCode(), \" TEMPLATE \");\n\n builder.writeln();\n field = (FieldTemplate) builder.insertField(FieldType.FIELD_TEMPLATE, false);\n field.setIncludeFullPath(true);\n\n Assert.assertEquals(field.getFieldCode(), \" TEMPLATE \\\\p\");\n\n doc.updateFields();\n doc.save(getArtifactsDir() + \"Field.TEMPLATE.docx\");\n //ExEnd\n\n doc = new Document(getArtifactsDir() + \"Field.TEMPLATE.docx\");\n\n field = (FieldTemplate) doc.getRange().getFields().get(0);\n Assert.assertEquals(\" TEMPLATE \", field.getFieldCode());\n Assert.assertEquals(\"Normal.dotm\", field.getResult());\n\n field = (FieldTemplate) doc.getRange().getFields().get(1);\n Assert.assertEquals(\" TEMPLATE \\\\p\", field.getFieldCode());\n Assert.assertEquals(\"Normal.dotm\", field.getResult());\n }",
"private void insertTemplateFieldRows(Connection con,\n IdentifiedRecordTemplate template) throws SQLException, FormException {\n PreparedStatement insert = null;\n \n try {\n insert = con.prepareStatement(INSERT_TEMPLATE_FIELD);\n \n int internalId = template.getInternalId();\n FieldTemplate[] fields = template.getFieldTemplates();\n for (int i = 0; i < fields.length; i++) {\n insert.setInt(1, internalId);\n insert.setString(2, fields[i].getFieldName());\n insert.setInt(3, i);\n insert.setString(4, fields[i].getTypeName());\n if (fields[i].isMandatory()) {\n insert.setInt(5, 1);\n } else {\n insert.setInt(5, 0);\n }\n if (fields[i].isReadOnly()) {\n insert.setInt(6, 1);\n } else {\n insert.setInt(6, 0);\n }\n insert.setInt(7, 1);\n insert.execute();\n }\n } finally {\n DBUtil.close(insert);\n }\n }",
"public FieldsTemplateLibrary templateFieldLibraryById(Long idField) {\n\t\tFieldsTemplateLibraryDAO dao = new FieldsTemplateLibraryDAO();\n\t\treturn dao.getById(idField);\n\t}",
"void insertTagContent(TemplateTag tag){\r\n \t\tif(tag.found){\r\n \t\t\ttemplateParts.set(tag.templatePosition,tag.getContent());\r\n \t\t}\r\n \t}",
"public static void insertField(Field field) {\n\t\t\n\t\ttry{\n Connection connection = getConnection();\n\n\n try {\n PreparedStatement statement = connection.prepareStatement(\"INSERT INTO template_fields (field_id, form_name, field_name, field_value, field_type, field_mandatory)\"\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" VALUES ('\"+field.getTheId()+\"', '\"+field.getTheFormName()+\"', '\"+field.getTheName()+\"', 'Here is text 424', '\"+field.getTheType()+\"', '\"+field.getTheMandatory()+\"')\"); \n statement.executeUpdate();\n\n statement.close();\n connection.close();\n } catch (SQLException ex) {\n \t//23 stands for duplicate / unique entries in db, so listen for that error and update db if so\n \tif (ex.getSQLState().startsWith(\"23\")) {\n System.out.println(\"Duplicate\");\n PreparedStatement statement = connection.prepareStatement(\"UPDATE template_fields SET \"\n \t\t+ \"field_id = '\"+field.getTheId()+\"', field_name = '\"+field.getTheName()+\"',\"\n \t\t+ \" field_value = 'here text', field_type = '\"+field.getTheType()+\"'\"\n \t\t\t\t+ \"WHERE field_id = '\"+field.getTheId()+\"' \"); \n\t\t\t\t\tstatement.executeUpdate();\n\t\t\t\t\t\n\t\t\t\t\tstatement.close();\n\t\t\t\t\tconnection.close();\n \t}\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\t}",
"public FieldsTemplateLibrary templateFieldLibraryUpdate(FieldsTemplateLibrary entity) {\n\t\tFieldsTemplateLibraryDAO dao = new FieldsTemplateLibraryDAO();\n\t\treturn dao.save(entity);\n\t}",
"public boolean insertFieldsTemplate(Template template, ArrayList<FieldsTemplate> fields)\n\t{\n\t\tFieldsTemplateDAO daoTemplate = new FieldsTemplateDAO();\n\t\t\n\t\tfor (FieldsTemplate field:fields)\n\t\t{\n\t\t\tfield.setTemplateId(template);\n\t\t\tdaoTemplate.saveNew(field);\t\n\t\t}\n\t\t\n\t\treturn true;\n\t}",
"int insert(CfgPrintTemplateAttr record);",
"public ArrayList<FieldsTemplateLibrary> templateFieldLibraryByName(String name){\n\t\tFieldsTemplateLibraryDAO dao = new FieldsTemplateLibraryDAO();\n\t\tCollection<FieldsTemplateLibrary> collection = dao.getByName(name);\n\t\tArrayList<FieldsTemplateLibrary> responseList = new ArrayList<FieldsTemplateLibrary>(collection);\n\t\treturn responseList;\n\t}",
"public interface ITemplateObjectField {\n\t/**\n\t * Field Type;\n\t * \n\t * @author crazyjohn\n\t *\n\t */\n\tenum FieldType {\n\t\tSHORT, INT, LONG, FLOAT, DOUBLE, STRING, ARRAY, LIST, SET, MAP;\n\n\t\tpublic static FieldType typeOf(String fieldType) {\n\t\t\t// TODO Auto-generated method stub\n\t\t\treturn null;\n\t\t}\n\t}\n\n\t/**\n\t * Get the field type;\n\t * \n\t * @return\n\t */\n\tpublic FieldType getType();\n\n\t/**\n\t * Get type name;\n\t * \n\t * @return\n\t */\n\tpublic String getTypeName();\n\n\t/**\n\t * Get the fieldName;\n\t * \n\t * @return\n\t */\n\tpublic String getName();\n\n\t/**\n\t * Get the field comment;\n\t * \n\t * @return\n\t */\n\tpublic String getComment();\n}",
"int insert(TbFreightTemplate record);",
"public void createFieldEditors()\n\t{\n\t}",
"protected abstract void createFieldEditors();",
"int insertSelective(CfgPrintTemplateAttr record);",
"public void addToTemplates() {\n mTemplateId = mPreferenceManager.getTemplateId();\n if (isConverted) {\n if (mPreferenceManager.getTemplateId().equals(ConstantsManager.CONVERTER_TEMPLATE_ID_DEFAULT)) {\n mTemplateId = mDatabaseManager.getTemplateNewId();\n mPreferenceManager.setTemplateId(mTemplateId);\n saveTemplate(mToastCreated);\n } else {\n showDialog();\n }\n } else {\n mBaseActivity.showToast(mToastFailure);\n }\n }",
"private void insertFieldRows(Connection con,\n IdentifiedRecordTemplate template, GenericDataRecord record)\n throws SQLException, FormException, CryptoException {\n PreparedStatement insert = null;\n \n try {\n insert = con.prepareStatement(INSERT_FIELD);\n int recordId = record.getInternalId();\n String[] fieldNames = record.getFieldNames();\n Map<String, String> rows = new HashMap<String, String>();\n for (String fieldName : fieldNames) {\n Field field = record.getField(fieldName);\n String fieldValue = field.getStringValue();\n rows.put(fieldName, fieldValue);\n }\n \n if (template.isEncrypted()) {\n rows = getEncryptionService().encryptContent(rows);\n }\n \n for (String fieldName : rows.keySet()) {\n String fieldValue = rows.get(fieldName);\n insert.setInt(1, recordId);\n insert.setString(2, fieldName);\n insert.setString(3, fieldValue);\n insert.execute();\n }\n } finally {\n DBUtil.close(insert);\n }\n }",
"public ArrayList<FieldsTemplateLibrary> templateFieldLibraryGetAll() {\n\t\tFieldsTemplateLibraryDAO dao = new FieldsTemplateLibraryDAO();\n\t\tCollection<FieldsTemplateLibrary> collection = dao.getAllFields();\n\t\tArrayList<FieldsTemplateLibrary> responseList = new ArrayList<FieldsTemplateLibrary>(collection);\n\t\treturn responseList;\n\t}",
"@Override\r\n protected void createDbContentCreateEdit() {\n DbContentCreateEdit dbContentCreateEdit = new DbContentCreateEdit();\r\n dbContentCreateEdit.init(null);\r\n form.getModelObject().setDbContentCreateEdit(dbContentCreateEdit);\r\n dbContentCreateEdit.setParent(form.getModelObject());\r\n ruServiceHelper.updateDbEntity(form.getModelObject()); \r\n }",
"public void transformTemplate(Template t)\n\t{\n\t\tList<String> mandatory_subjects = getMandatorySubjects();\n\t\t\n\t\t// display the constrained properties in the correct order\n\t\tfor (ConstrainedProperty property : getPositionedProperties())\n\t\t{\n\t\t\t// only show the CMF admin properties that can be edited\n\t\t\tif (!property.isEditable())\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tt.setValue(\"property\", property.getPropertyName());\n\n\t\t\tboolean\t\thandled = false;\n\t\t\tMimeType\tmimetype = property.getMimeType();\n\t\t\tif (mimetype != null)\n\t\t\t{\n\t\t\t\tif (!property.isAutoRetrieved())\n\t\t\t\t{\n\t\t\t\t\tif (0 == mimetype.toString().indexOf(\"image/\"))\n\t\t\t\t\t{\n\t\t\t\t\t\thandled = true;\n\t\t\t\t\t\tif (t.hasBlock(\"existing_field-legend\"))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tt.setBlock(\"existing_field-legend\", \"existing_field-legend\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tt.setBlock(\"existing_field\", \"existing_field-image\");\n\t\t\t\t\t}\n\t\t\t\t\telse if (MimeType.RAW == mimetype)\n\t\t\t\t\t{\n\t\t\t\t\t\thandled = true;\n\t\t\t\t\t\tif (t.hasBlock(\"existing_field-legend\"))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tt.setBlock(\"existing_field-legend\", \"existing_field-legend\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tt.setBlock(\"existing_field\", \"existing_field-raw\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif (mimetype == MimeType.APPLICATION_XHTML)\n\t\t\t\t\t{\n\t\t\t\t\t\thandled = true;\n\t\t\t\t\t\tt.setBlock(\"existing_field\", \"existing_field-xhtml\");\n\t\t\t\t\t}\n\t\t\t\t\telse if (mimetype == MimeType.TEXT_PLAIN)\n\t\t\t\t\t{\n\t\t\t\t\t\thandled = true;\n\t\t\t\t\t\tt.setBlock(\"existing_field\", \"existing_field-text\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (!handled)\n\t\t\t{\n\t\t\t\tif (property.isUrl())\n\t\t\t\t{\n\t\t\t\t\tt.setBlock(\"existing_field\", \"existing_field-url\");\n\t\t\t\t}\n\t\t\t\telse if (property.isEmail())\n\t\t\t\t{\n\t\t\t\t\tt.setBlock(\"existing_field\", \"existing_field-email\");\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tt.setBlock(\"existing_field\", \"existing_field-generic\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tappendFormField(t, property, null, mandatory_subjects);\n\n\t\t\tif (t.hasBlock(\"existing_field-legend\"))\n\t\t\t{\n\t\t\t\tt.removeValue(\"existing_field-legend\");\n\t\t\t}\n\t\t}\n\n\t\t// handle the regular properties\n\t\tfor (String property_name : getRegularProperties())\n\t\t{\n\t\t\tappendFormField(t, null, property_name, mandatory_subjects);\n\t\t}\n\t}",
"private void saveTemplate()\r\n {\r\n\t String template = keyField.getText();\r\n\r\n\t int lenI = values.length, lenJ, lenK;\r\n\t String[][][] newValues = new String[lenI][][];\r\n\t for (int i=0; i<lenI; i++)\r\n\t {\r\n\t\t lenJ = values[i].length;\r\n\t\t newValues[i] = new String[lenJ][];\r\n\t\t for (int j=0; j<lenJ; j++)\r\n\t\t {\r\n\t\t\t lenK = values[i][j].length;\r\n\t\t\t newValues[i][j] = new String[lenK];\r\n\t\t\t for (int k=0; k<lenK; k++)\r\n\t\t\t\t values[i][j][k] = values[i][j][k];\r\n\t\t }\r\n\t }\r\n\t \r\n\t if (template.length()==0)\r\n\t {\r\n\t\t label.setText(\"Please enter a valid template name\");\r\n\t\t return;\r\n\t }\r\n\t \r\n\t // Update or store to the list of templates.\r\n for (int i=0; i<newValues.length; i++)\r\n \t for (int j=0; j<newValues[i].length; j++)\r\n\t\t\t newValues[i][j] = getComponentArray(components[i][j]);\r\n \r\n \t if (!definitionBox.isSelected())\r\n \t {\r\n \t\t newValues[FormatData.t.D_HDR.ordinal()] \r\n \t\t\t\t = newValues[FormatData.t.D_FLD.ordinal()] \r\n \t\t\t\t\t\t = new String[0][0];\r\n \t }\r\n \t if (!categoryBox.isSelected())\r\n \t {\r\n \t\t newValues[FormatData.t.C_HDR.ordinal()] \r\n \t\t\t\t = newValues[FormatData.t.C_FLD.ordinal()] \r\n \t\t\t\t\t\t = new String[0][0];\r\n \t }\r\n \t if (!exampleBox.isSelected())\r\n \t {\r\n \t\t newValues[FormatData.t.E_HDR.ordinal()] \r\n \t\t\t\t = newValues[FormatData.t.E_FLD.ordinal()] \r\n \t\t\t\t\t\t = new String[0][0];\r\n \t }\r\n\r\n templates.setTemplate(template, newValues);\r\n\r\n if (!model.contains(template))\r\n\t {\r\n\t int size = templateKeys.length;\r\n\t String[] newTemplates = new String[templateKeys.length + 1];\r\n\t if (templateKeys.length != 0)\r\n\t \t System.arraycopy(templateKeys, 0, newTemplates, 0, size);\r\n\t \r\n\t newTemplates[size] = template;\r\n\t templateKeys = newTemplates;\r\n\t model.add(size, templateKeys[size]);\r\n\t list.setSelectedIndex(size);\r\n\t }\r\n label.setText(\"Display format \" + template + \" saved\");\r\n }",
"private void selectTemplateFieldsFromXML(IdentifiedRecordTemplate template) throws FormException {\n \n GenericRecordTemplate genericRecordTemplate = null;\n \n try {\n PublicationTemplate publicationTemplateImpl = PublicationTemplateManager.getInstance()\n .loadPublicationTemplate(template.getTemplateName());\n genericRecordTemplate = (GenericRecordTemplate) publicationTemplateImpl\n .getRecordTemplate();\n template.setEncrypted(publicationTemplateImpl.isDataEncrypted());\n } catch (PublicationTemplateException e) {\n throw new FormException(\"GenericRecordSetManager\",\n \"form.EXP_UNKNOWN_TEMPLATE\", e);\n }\n \n GenericRecordTemplate wrapped = (GenericRecordTemplate) template.\n getWrappedTemplate();\n FieldTemplate[] fields = genericRecordTemplate.getFieldTemplates();\n \n for (FieldTemplate field : fields) {\n String displayName = field.getDisplayerName();\n GenericFieldTemplate fieldTemplate = new GenericFieldTemplate(field.\n getFieldName(), field.getTypeName());\n \n fieldTemplate.setMandatory(field.isMandatory());\n fieldTemplate.setReadOnly(field.isReadOnly());\n fieldTemplate.setHidden(field.isHidden());\n fieldTemplate.setDisabled(field.isDisabled());\n fieldTemplate.setSearchable(field.isSearchable());\n fieldTemplate.setDisplayerName((displayName != null) ? displayName : \"\");\n fieldTemplate.setLabel(field.getLabel());\n fieldTemplate.setUsedAsFacet(field.isUsedAsFacet());\n fieldTemplate.setParametersObj(field.getParametersObj());\n \n wrapped.addFieldTemplate(fieldTemplate);\n }\n }",
"private void loadTemplate()\r\n {\r\n String key = list.getSelectedValue();\r\n if (key==null) return;\r\n \r\n String[][][] template = templates.getTemplate(key);\r\n clearComponents();\r\n \r\n \t definitionBox.setSelected(template[FormatData.t.D_HDR.ordinal()].length != 0);\r\n \t categoryBox.setSelected(template[FormatData.t.C_HDR.ordinal()].length != 0);\r\n \t exampleBox.setSelected(template[FormatData.t.E_HDR.ordinal()].length != 0);\r\n \r\n keyField.setText(key);\r\n int len; \r\n for (int i=0; i<template.length; i++)\r\n { \r\n \t len = (template[i].length < components[i].length) ? template[i].length : components[i].length;\r\n \t for (int j=0; j<len; j++)\r\n\t\t\t setComponentArray(components[i][j], template[i][j]);\r\n }\r\n }",
"protected void registerTemplate() {\n if (initialized) {\n queryTemplateName = \"shibboleth.resolver.dc.\" + getId();\n queryCreator.registerTemplate(queryTemplateName, queryTemplate);\n }\n }",
"public void createFieldEditors() {\n\t\tString[][] namespaceComboData = getSynapseNamespaceComboData();\n\t\taddField(new ComboFieldEditor(PreferenceConstants.PREF_NAMESPACE,\n\t\t \"Default namespace\",namespaceComboData,\n\t\t getFieldEditorParent()));\n\t}",
"public BaseField setupField(int iFieldSeq)\n {\n BaseField field = null;\n if (iFieldSeq == 0)\n field = new HotelField(this, PRODUCT_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 1)\n // field = new DateField(this, START_DATE, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 2)\n // field = new DateField(this, END_DATE, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 3)\n // field = new StringField(this, DESCRIPTION, 10, null, null);\n //if (iFieldSeq == 4)\n // field = new CityField(this, CITY_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 5)\n // field = new CityField(this, TO_CITY_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 6)\n // field = new ContinentField(this, CONTINENT_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 7)\n // field = new RegionField(this, REGION_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 8)\n // field = new CountryField(this, COUNTRY_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 9)\n // field = new StateField(this, STATE_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 10)\n // field = new VendorField(this, VENDOR_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n if (iFieldSeq == 11)\n field = new HotelRateField(this, RATE_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n if (iFieldSeq == 12)\n field = new HotelClassField(this, CLASS_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 13)\n // field = new DateField(this, DETAIL_DATE, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 14)\n // field = new ShortField(this, PAX, Constants.DEFAULT_FIELD_LENGTH, null, new Short((short)2));\n //if (iFieldSeq == 15)\n // field = new HotelScreenRecord_LastChanged(this, LAST_CHANGED, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 16)\n // field = new BooleanField(this, REMOTE_QUERY_ENABLED, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 17)\n // field = new ShortField(this, BLOCKED, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 18)\n // field = new ShortField(this, OVERSELL, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 19)\n // field = new BooleanField(this, CLOSED, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 20)\n // field = new BooleanField(this, DELETE, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 21)\n // field = new BooleanField(this, READ_ONLY, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 22)\n // field = new ProductSearchTypeField(this, PRODUCT_SEARCH_TYPE_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 23)\n // field = new ProductTypeField(this, PRODUCT_TYPE_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n if (iFieldSeq == 24)\n field = new PaxCategorySelect(this, PAX_CATEGORY_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n if (field == null)\n field = super.setupField(iFieldSeq);\n return field;\n }",
"public void setTemplate(Template template)\n/* */ {\n/* 62 */ this.template = template;\n/* */ }",
"public void createFieldEditors() \n\t{\n\t\n\tprefix = new StringFieldEditor(PreferenceConstants.PSQL_PREFIX, \"Verbindungsprefix:\", 14, getFieldEditorParent());\n\taddField(prefix);\n\t\n\tip = new StringFieldEditor(PreferenceConstants.PSQL_IP, \"IP-Adresse der Datenbank:\", 14, getFieldEditorParent());\n\taddField(ip);\n\t\n\tport = new IntegerFieldEditor(PreferenceConstants.PSQL_PORT, \"Port der Datenbank:\", getFieldEditorParent(),5);\n\taddField(port);\n\t\n\tdb = new StringFieldEditor(PreferenceConstants.PSQL_DATABASE, \"Name des Datenbankschemas:\", 14, getFieldEditorParent());\n\taddField(db);\n\t\n\tuser = new StringFieldEditor(PreferenceConstants.PSQL_USER, \"Name des Datenbankbenutzers:\", 14, getFieldEditorParent());\n\taddField(user);\n\n\tpasswort = new StringFieldEditor(PreferenceConstants.PSQL_PASSWORT, \"Passwort des Datenbankbenutzers:\", 14, getFieldEditorParent());\n\taddField(passwort);\n\n\t}",
"public void setupFields()\n {\n FieldInfo field = null;\n field = new FieldInfo(this, \"ID\", Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Integer.class);\n field.setHidden(true);\n field = new FieldInfo(this, \"LastChanged\", Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Date.class);\n field.setHidden(true);\n field = new FieldInfo(this, \"Deleted\", 10, null, new Boolean(false));\n field.setDataClass(Boolean.class);\n field.setHidden(true);\n field = new FieldInfo(this, \"Description\", 25, null, null);\n field = new FieldInfo(this, \"CurrencyCode\", 3, null, null);\n field = new FieldInfo(this, \"LastRate\", 10, null, null);\n field.setDataClass(Double.class);\n field.setScale(-1);\n field = new FieldInfo(this, \"RateChangedDate\", 12, null, null);\n field.setDataClass(Date.class);\n field.setScale(Constants.DATE_ONLY);\n field = new FieldInfo(this, \"RateChangedBy\", 16, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, \"CostingRate\", 10, null, null);\n field.setDataClass(Double.class);\n field.setScale(-1);\n field = new FieldInfo(this, \"CostingChangedDate\", 12, null, null);\n field.setDataClass(Date.class);\n field.setScale(Constants.DATE_ONLY);\n field = new FieldInfo(this, \"CostingChangedBy\", 16, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, \"RoundAt\", 1, null, null);\n field.setDataClass(Short.class);\n field = new FieldInfo(this, \"IntegerDesc\", 20, null, \"Dollar\");\n field = new FieldInfo(this, \"FractionDesc\", 20, null, null);\n field = new FieldInfo(this, \"FractionAmount\", 10, null, new Integer(100));\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, \"Sign\", 3, null, \"$\");\n field = new FieldInfo(this, \"LanguageID\", Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, \"NaturalInteger\", 20, null, null);\n field = new FieldInfo(this, \"NaturalFraction\", 20, null, null);\n }",
"void mo25968e(TemplateInfo templateInfo);",
"void mo25969f(TemplateInfo templateInfo);",
"public void addParagraphField(String label, String fill, int index) {\n //inflater needed to \"inflate\" layouts\n LayoutInflater inflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n //instantiate our data object.\n ElementParagraphField elementParagraphField = new ElementParagraphField(label, fill);\n //insert element data object in slot on page\n if (isLoading){\n currentPage.addElement(elementParagraphField);\n }else{\n currentPage.insertElement(index, elementParagraphField);\n }\n //we need to instantiate our xml fragment (text field) and bind it to the data object\n ParagraphFieldBinding paragraphFieldBinding = ParagraphFieldBinding.inflate(inflater, null,false);\n paragraphFieldBinding.setElementParagraghField(elementParagraphField);\n //get new view (our xml fragment -the text field) and add it to current view\n View newView = paragraphFieldBinding.getRoot();\n if (isInspecting){\n EditText editText = newView.findViewById(R.id.label);\n editText.setFocusable(false);\n }\n linearLayoutBody.addView(newView, index);\n Context context = App.getContext();\n LogManager.reportStatus(context, \"INSPECTOR\", \"onAddParagraphField\");\n }",
"private void insertTemplateRow(Connection con,\n IdentifiedRecordTemplate template) throws SQLException {\n PreparedStatement insert = null;\n \n try {\n int internalId = getNextId(TEMPLATE_TABLE, \"templateId\");\n template.setInternalId(internalId);\n String externalId = template.getExternalId();\n String templateName = template.getTemplateName();\n \n insert = con.prepareStatement(INSERT_TEMPLATE);\n insert.setInt(1, internalId);\n insert.setString(2, externalId);\n insert.setString(3, templateName);\n insert.execute();\n } finally {\n DBUtil.close(insert);\n }\n }",
"public abstract void mo32008e(TemplateInfo templateInfo);",
"public void createFieldEditors() {\t\t\n\t\t\n//\t\taddField(new DirectoryFieldEditor(PreferenceConstants.P_PATH, \n//\t\t\t\tMessages.UMAPPreferencePage_1, getFieldEditorParent()));\n\t\tgroup = new Group(getFieldEditorParent(), SWT.SHADOW_ETCHED_IN);\n\t\tgroup.setText(Messages.UMAPPreferencesHeader);\n\t\tgroup.setLayout(new GridLayout());\n\t\tGridData gd = new GridData(GridData.FILL_HORIZONTAL);\n\t\tgd.horizontalSpan = 1;\n\t\tgroup.setLayoutData(gd);\t\t\n\t\t\n//\t\tgroup2 = new Group(getFieldEditorParent(), SWT.SHADOW_ETCHED_IN);\n//\t\tgroup2.setText(Messages.UmapStringButtonFieldEditor_0);\n//\t\tgd.horizontalSpan = 2;\n//\t\tgroup2.setLayoutData(gd);\n//\t\tgroup2.setLayout(new GridLayout());\n\t\t\n\t\t\n\t\tvalidation = new BooleanFieldEditor( PreferenceConstants.P_BOOLEAN,\tMessages.UMAPPreferencePage_2, group);\n\t\taddField( validation );\n\n\t\tclassAbreviation = new StringFieldEditor(PreferenceConstants.P_CLASS_NAME, Messages.UMAPPreferencePage_3, group);\n\t\tclassAbreviation.setEmptyStringAllowed(false);\n\t\tclassAbreviation.setEnabled(Activator.getDefault().getPreferenceStore().getBoolean(PreferenceConstants.P_BOOLEAN), group);\n\t\t\n\t\tintfAbreviation = new StringFieldEditor(PreferenceConstants.P_INTF_NAME, Messages.UMAPPreferencePage_4, group);\n\t\tintfAbreviation.setEmptyStringAllowed(false);\n\t\tintfAbreviation.setEnabled(Activator.getDefault().getPreferenceStore().getBoolean(PreferenceConstants.P_BOOLEAN), group);\n\t\t\n\t\texcAbreviation = new StringFieldEditor(PreferenceConstants.P_EXCP_NAME, Messages.UMAPPreferencePage_5, group);\n\t\texcAbreviation.setEmptyStringAllowed(false);\n\t\texcAbreviation.setEnabled(Activator.getDefault().getPreferenceStore().getBoolean(PreferenceConstants.P_BOOLEAN), group);\n\t\t\n\t\t\n//\t\tprojectAbbreviation = new StringFieldEditor(PreferenceConstants.P_PROJ_NAME, Messages.UMAPPreferencePage_6, group);\n//\t\tprojectAbbreviation.setEmptyStringAllowed(true);\n\n//\t\tStringFieldEditor name = new StringFieldEditor(PreferenceConstants.P_USER_NAME, Messages.UmapStringButtonFieldEditor_2, group2);\n//\t\t\n//\t\tStringFieldEditor pass = new StringFieldEditor(PreferenceConstants.P_PWD, Messages.UmapStringButtonFieldEditor_3, group2);\n\t\t\n//\t\tURIStringButtonFieldEditor button = new URIStringButtonFieldEditor(PreferenceConstants.P_URI, Messages.UmapStringButtonFieldEditor_1, group2);\n\t\t\n//\t\taddField(name);\n//\t\taddField(pass);\n//\t\taddField(button);\n\t\t\n\t\taddField( classAbreviation );\n\t\taddField( intfAbreviation );\n\t\taddField( excAbreviation );\n//\t\taddField( projectAbbreviation );\t\t\n\t}",
"public void addField()\n {\n DefaultMutableTreeNode node = (DefaultMutableTreeNode) availableFieldsComp.getTree().getLastSelectedPathComponent();\n if (node == null || !node.isLeaf() || !(node.getUserObject() instanceof DataObjDataFieldWrapper) )\n {\n return; // not really a field that can be added, just empty or a string\n }\n\n Object obj = node.getUserObject();\n if (obj instanceof DataObjDataFieldWrapper)\n {\n DataObjDataFieldWrapper wrapper = (DataObjDataFieldWrapper) obj;\n String sep = sepText.getText();\n if (StringUtils.isNotEmpty(sep))\n {\n try\n {\n DefaultStyledDocument doc = (DefaultStyledDocument) formatEditor.getStyledDocument();\n if (doc.getLength() > 0)\n {\n doc.insertString(doc.getLength(), sep, null);\n }\n }\n catch (BadLocationException ble) {}\n \n }\n insertFieldIntoTextEditor(wrapper);\n setHasChanged(true);\n }\n }",
"@Override\n\t\tpublic TemplateType addTemplate() {\n\t\t\treturn this;\n\t\t}",
"private void selectTemplateFieldRows(Connection con,\n IdentifiedRecordTemplate template) throws SQLException, FormException {\n PreparedStatement select = null;\n ResultSet rs = null;\n GenericRecordTemplate wrapped = (GenericRecordTemplate) template\n .getWrappedTemplate();\n \n try {\n select = con.prepareStatement(SELECT_TEMPLATE_FIELDS);\n select.setInt(1, template.getInternalId());\n rs = select.executeQuery();\n \n GenericFieldTemplate fieldTemplate = null;\n String fieldName;\n String fieldType;\n boolean isMandatory;\n boolean isReadOnly;\n boolean isHidden;\n while (rs.next()) {\n // templateId = rs.getInt(1);\n fieldName = rs.getString(2);\n // fieldIndex = rs.getInt(3);\n fieldType = rs.getString(4);\n isMandatory = rs.getBoolean(5);\n isReadOnly = rs.getBoolean(6);\n isHidden = rs.getBoolean(7);\n \n fieldTemplate = new GenericFieldTemplate(fieldName, fieldType);\n fieldTemplate.setMandatory(isMandatory);\n fieldTemplate.setReadOnly(isReadOnly);\n fieldTemplate.setHidden(isHidden);\n \n wrapped.addFieldTemplate(fieldTemplate);\n }\n } finally {\n DBUtil.close(rs, select);\n }\n }",
"public interface ExtendedFieldGroupFieldFactory extends FieldGroupFieldFactory\r\n{\r\n\t<T> CRUDTable<T> createTableField(Class<T> genericType, boolean manyToMany);\r\n}",
"public TemplateHelper() {\r\t\tsuper();\r\t}",
"public void addFieldToGroup(String groupname, TemplateField tempfield) throws NotFoundTemplateFieldException {\r\n\tTemplateField tf = getField(groupname);\r\n\tif ( tf instanceof TemplateGroupField )\r\n\t{\r\n\t\tTemplateGroupField tgf = (TemplateGroupField)tf;\r\n\t\ttgf.addField(tempfield);\r\n\t\treturn;\r\n\t}\r\n\tthrow new NotFoundTemplateFieldException();\r\n}",
"public abstract String getImportFromFileTemplate( );",
"int insertSelective(PdfCodeTemporary record);",
"FieldType createFieldType();",
"public abstract void setTemplDesc(String templDesc);",
"public void transformTemplate(Template t)\n\t{\n\t\tfor (ConstrainedProperty property : getPositionedProperties())\n\t\t{\n\t\t\t// only show the CMF admin properties that can be edited\n\t\t\tif (!property.isEditable())\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\t// setup the form field\n\t\t\tt.setValue(\"property\", property.getPropertyName());\n\t\t\t\n\t\t\tboolean\t\thandled = false;\n\t\t\tMimeType\tmimetype = property.getMimeType();\n\t\t\tif (mimetype != null)\n\t\t\t{\n\t\t\t\tif (!property.isAutoRetrieved())\n\t\t\t\t{\n\t\t\t\t\tif (0 == mimetype.toString().indexOf(\"image/\"))\n\t\t\t\t\t{\n\t\t\t\t\t\thandled = true;\n\t\t\t\t\t\tif (t.hasBlock(\"form_field-legend\"))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tt.setBlock(\"form_field-legend\", \"form_field-legend\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tt.setBlock(\"form_field\", \"form_field-image\");\n\t\t\t\t\t}\n\t\t\t\t\telse if (MimeType.RAW == mimetype)\n\t\t\t\t\t{\n\t\t\t\t\t\thandled = true;\n\t\t\t\t\t\tif (t.hasBlock(\"form_field-legend\"))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tt.setBlock(\"form_field-legend\", \"form_field-legend\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tt.setBlock(\"form_field\", \"form_field-raw\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif (MimeType.APPLICATION_XHTML == mimetype)\n\t\t\t\t\t{\n\t\t\t\t\t\thandled = true;\n\t\t\t\t\t\tt.setBlock(\"form_field\", \"form_field-xhtml\");\n\t\t\t\t\t}\n\t\t\t\t\telse if (MimeType.TEXT_PLAIN == mimetype)\n\t\t\t\t\t{\n\t\t\t\t\t\thandled = true;\n\t\t\t\t\t\tt.setBlock(\"form_field\", \"form_field-text\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (!handled)\n\t\t\t{\n\t\t\t\tif (property.isUrl())\n\t\t\t\t{\n\t\t\t\t\tt.setBlock(\"form_field\", \"form_field-url\");\n\t\t\t\t}\n\t\t\t\telse if (property.isEmail())\n\t\t\t\t{\n\t\t\t\t\tt.setBlock(\"form_field\", \"form_field-email\");\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tt.setBlock(\"form_field\", \"form_field-generic\");\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tt.appendBlock(\"fields\", \"field\");\n\n\t\t\tif (t.hasBlock(\"form_field-legend\"))\n\t\t\t{\n\t\t\t\tt.removeValue(\"form_field-legend\");\n\t\t\t}\n\t\t}\n\n\t\t// display the regular properties\n\t\tfor (String property_name : getRegularProperties())\n\t\t{\n\t\t\t// setup the form field\n\t\t\tt.setValue(\"property\", property_name);\n\t\t\tt.setBlock(\"form_field\", \"form_field-generic\");\n\t\t\tt.appendBlock(\"fields\", \"field\");\n\t\t}\n\t}",
"public void addTextField(String label, String fill, int index) {\n //inflater needed to \"inflate\" layouts\n LayoutInflater inflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n //instantiate our data object.\n ElementTextField elementTextField = new ElementTextField(label, fill);\n //insert element data object in slot on page\n if (isLoading){\n currentPage.addElement(elementTextField);\n }else{\n currentPage.insertElement(index, elementTextField);\n }\n //we need to instantiate our xml fragment (text field) and bind it to the data object\n TextFieldBinding textFieldBinding = TextFieldBinding.inflate(inflater, null,false);\n textFieldBinding.setElementTextField(elementTextField);\n //get new view (our xml fragment -the text field) and add it to current view\n View newView = textFieldBinding.getRoot();\n if (isInspecting){\n EditText editText = newView.findViewById(R.id.label);\n editText.setFocusable(false);\n }\n linearLayoutBody.addView(newView, index);\n Context context = App.getContext();\n LogManager.reportStatus(context, \"INSPECTOR\", \"onTextField\");\n }",
"public InsertTcFieldHandler(String text, String switches) {\n mFieldText = text;\n mFieldSwitches = switches;\n }",
"public String addTemplate(Template template) {\r\n // Gets the events collection and the event as a document\r\n MongoCollection templates = mongoDB.getCollection(\"Templates\");\r\n Document obj = template.getTemplateAsDocument();\r\n\r\n // Inserts the event and sets the id of the event to the one given\r\n templates.insertOne(obj);\r\n template.setID(obj.getObjectId(\"_id\").toHexString());\r\n\r\n // Returns the id of the event\r\n return template.getID();\r\n }",
"protected void shoAddNewDataEditor () {\n\t\t\n\t\t\n\t\tinstantiateDataForAddNewTemplate(new AsyncCallback< DATA>() {\n\t\t\t@Override\n\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t// ini tidak mungkin gagal\n\t\t\t\t\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic void onSuccess(final DATA result) {\n\t\t\t\teditorGenerator.instantiatePanel(new ExpensivePanelGenerator<BaseDualControlDataEditor<PK,DATA>>() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onPanelGenerationComplete(\n\t\t\t\t\t\t\tBaseDualControlDataEditor<PK, DATA> widget) {\n\t\t\t\t\t\tconfigureAndPlaceEditorPanel(widget);\n\t\t\t\t\t\twidget.requestDoubleSubmitToken(null);\n\t\t\t\t\t\twidget.addAndEditNewData(result);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t}); \n\t\t\n\t\t\n\t}",
"int insert(PdfCodeTemporary record);",
"@Override\r\n\t\tpublic BatchArgumentBuilder addTemplate(PathOrUrl template) {\n\t\t\tthrow new UnsupportedOperationException(\"Not implemented yet.\");\r\n\t\t}",
"HxField createField(final String fieldType,\n final String fieldName);",
"@Override\r\n\t\tpublic BatchArgumentBuilder addTemplate(String templateName, PathOrUrl template) {\n\t\t\tthrow new UnsupportedOperationException(\"Not implemented yet.\");\r\n\t\t}",
"private void init() {\n FieldWrapper id = new FieldWrapper();\n id.fieldDescription = new HashMap<String, Object>();\n id.fieldDescription.put(\"fullName\", \"Id\");\n id.fieldDescription.put(\"type\", \"Text\");\n\n FieldWrapper name = new FieldWrapper();\n name.fieldDescription = new HashMap<String, Object>();\n name.fieldDescription.put(\"fullName\", \"Name\");\n\n FieldWrapper createdBy = new FieldWrapper();\n createdBy.fieldDescription = new HashMap<String, Object>();\n createdBy.fieldDescription.put(\"fullName\", \"CreatedBy\");\n createdBy.fieldDescription.put(\"type\", \"Lookup\");\n\n FieldWrapper lastModifiedBy = new FieldWrapper();\n lastModifiedBy.fieldDescription = new HashMap<String, Object>();\n lastModifiedBy.fieldDescription.put(\"fullName\", \"LastModifiedBy\");\n lastModifiedBy.fieldDescription.put(\"type\", \"Lookup\");\n\n FieldWrapper owner = new FieldWrapper();\n owner.fieldDescription = new HashMap<String, Object>();\n owner.fieldDescription.put(\"fullName\", \"Owner\");\n owner.fieldDescription.put(\"type\", \"Lookup\");\n\n fieldDescribe = new HashMap<String, FieldWrapper>();\n\n fieldDescribe.put((String) id.fieldDescription.get(\"fullName\"), id);\n fieldDescribe.put((String) name.fieldDescription.get(\"fullName\"), name);\n fieldDescribe.put((String) createdBy.fieldDescription.get(\"fullName\"), createdBy);\n fieldDescribe.put((String) lastModifiedBy.fieldDescription.get(\"fullName\"), lastModifiedBy);\n fieldDescribe.put((String) owner.fieldDescription.get(\"fullName\"), owner);\n }",
"public PpdDocGenRequestPayloadDto getFieldsTemplateListWithLib(Long idTemplate)\n\t{\n\t\tFieldsTemplateDAO daoTemplate = new FieldsTemplateDAO();\n\t\tFieldsTemplateLibraryDAO daoTemplateLib = new FieldsTemplateLibraryDAO();\n\t\t\n\t\tTemplate template = new Template();\n\t\ttemplate.setId(idTemplate);\n\t\t\n\t\tCollection<FieldsTemplate> responseList = daoTemplate.getAllFields(template);\n\t\tCollection<FieldsTemplateLibrary> responseTempLib = daoTemplateLib.getAllFields();\n\t\t\n\t\tPpdDocGenRequestPayloadDto respose = UtilMapping.templateFielsEntityToDTO(responseList,responseTempLib);\n\t\t\n\t\treturn respose;\n\t}",
"private Template() {\r\n\r\n }",
"public abstract void setTemplCd(String templCd);",
"public void createFieldEditors() {\n\t\taddField(\n\t\t\tnew BooleanFieldEditor(\n\t\t\t\tPreferenceConstants.PRETTY_CML,\n\t\t\t\t\"&Pretty print CML\",\n\t\t\t\tgetFieldEditorParent()));\n\t\tbioclipseLogging = new BooleanFieldEditor(\n\t\t\tPreferenceConstants.BIOCLIPSE_LOGGING,\n\t\t\t\"&Use Bioclipse Logging\",\n\t\t\tgetFieldEditorParent());\n\t\taddField(bioclipseLogging);\n\t}",
"public void insert(Nodo tree, String textField) {\n tree.getRoot().insertG(tree.getRoot(),textField);\n }",
"@Override\n\tpublic void addTmly(Tmly tmly) {\n\t\tString sql = \"insert into tmly(id_,title,content) values(?,?,?)\";\n\t\tthis.jdbcTemplate\n\t\t\t\t.update(sql,\n\t\t\t\t\t\tnew Object[] { tmly.getId(), tmly.getTitle(),\n\t\t\t\t\t\t\t\ttmly.getContent() });\n\t}",
"private String getTemplate(){ \r\n\t\t\t StringBuilder sb = new StringBuilder();\r\n\t\t\t sb.append(\"<tpl for=\\\".\\\">\");\r\n\t\t\t\tsb.append(\"<div class=\\\"x-combo-list-item\\\" >\");\r\n\t\t\t\tsb.append(\"<span><b>{name}</b></span>\"); \t\t\t \t\r\n\t\t\t\tsb.append(\"</div>\");\r\n\t\t\t\tsb.append(\"</tpl>\");\r\n\t\t\t return sb.toString();\r\n\t\t\t}",
"public void addToInsertSelects(entity.LoadInsertSelect element);",
"public abstract String getTemplDesc();",
"private void addFileUploadField() {\n FileUpload upload = new FileUpload();\n upload.setName(\"fileUpload\" + i);\n fileUploadPanel.add(upload);\n i++;\n }",
"FieldDefinition createFieldDefinition();",
"public void insert(ProjectFiles record) {\r\n getSqlMapClientTemplate().insert(\"project_files.ibatorgenerated_insert\", record);\r\n }",
"public void insertRecord(IdentifiedRecordTemplate template,\n DataRecord insertedRecord) throws FormException {\n Connection con = null;\n \n try {\n GenericDataRecord record = (GenericDataRecord) insertedRecord;\n \n con = getConnection();\n insertRecordRow(con, template, record);\n try {\n insertFieldRows(con, template, record);\n } catch (CryptoException e) {\n throw new FormException(\"GenericRecordSetManager\", \"form.ENCRYPTING_DATA_FAILED\", e);\n }\n \n } catch (ClassCastException e) {\n throw new FormException(\"GenericRecordSetManager\", \"form.EXP_UNKNOWN_TEMPLATE\", e);\n } catch (SQLException e) {\n throw new FormException(\"GenericRecordSetManager\", \"form.EXP_INSERT_FAILED\", e);\n } finally {\n closeConnection(con);\n }\n }",
"@Override\r\n protected void addParameters() {\r\n super.addParameters();\r\n addParameter(new AlgorithmParameter(\r\n PARAMETER_CENTER_TEMPLATES,\r\n GT._T(\"Possible replacements for {0} tags\", HtmlTagType.CENTER.getOpenTag()),\r\n new AlgorithmParameterElement[] {\r\n new AlgorithmParameterElement(\r\n \"template name\",\r\n GT._T(\"Template for replacing {0} tag\", HtmlTagType.CENTER.getOpenTag())),\r\n new AlgorithmParameterElement(\r\n \"parameter name\",\r\n GT._T(\"Parameter to use in the template for the text\"),\r\n true),\r\n new AlgorithmParameterElement(\r\n \"true/false\",\r\n GT._T(\"If replacement can be automatic\"),\r\n true),\r\n new AlgorithmParameterElement(\r\n \"explanation\",\r\n GT._T(\"Description of the template\"),\r\n true)\r\n },\r\n true));\r\n addParameter(new AlgorithmParameter(\r\n PARAMETER_STRIKE_TEMPLATES,\r\n GT._T(\"Possible replacements for {0} tags\", HtmlTagType.STRIKE.getOpenTag()),\r\n new AlgorithmParameterElement[] {\r\n new AlgorithmParameterElement(\r\n \"template name\",\r\n GT._T(\"Template for replacing {0} tag\", HtmlTagType.STRIKE.getOpenTag())),\r\n new AlgorithmParameterElement(\r\n \"parameter name\",\r\n GT._T(\"Parameter to use in the template for the text\"),\r\n true),\r\n new AlgorithmParameterElement(\r\n \"true/false\",\r\n GT._T(\"If replacement can be automatic\"),\r\n true),\r\n new AlgorithmParameterElement(\r\n \"explanation\",\r\n GT._T(\"Description of the template\"),\r\n true)\r\n },\r\n true));\r\n addParameter(new AlgorithmParameter(\r\n PARAMETER_TT_TEMPLATES,\r\n GT._T(\"Possible replacements for {0} tags\", HtmlTagType.TT.getOpenTag()),\r\n new AlgorithmParameterElement[] {\r\n new AlgorithmParameterElement(\r\n \"template name\",\r\n GT._T(\"Template for replacing {0} tag\", HtmlTagType.TT.getOpenTag())),\r\n new AlgorithmParameterElement(\r\n \"parameter name\",\r\n GT._T(\"Parameter to use in the template for the text\"),\r\n true),\r\n new AlgorithmParameterElement(\r\n \"true/false\",\r\n GT._T(\"If replacement can be automatic\"),\r\n true),\r\n new AlgorithmParameterElement(\r\n \"explanation\",\r\n GT._T(\"Description of the template\"),\r\n true)\r\n },\r\n true));\r\n }",
"public void associateProductTemplate() {\n productToolOperation.addChildProductTree(selectProductNode, selectTemplateNode, planConfigBehavior);\n }",
"public void testBlogEntryTemplateAccessible() throws Exception {\n assertEquals(0, rootBlog.getBlogEntryTemplates().size());\n BlogEntry draft = rootBlog.getBlogForToday().createBlogEntry();\n draft.setType(BlogEntry.TEMPLATE);\n draft.store();\n assertEquals(1, rootBlog.getBlogEntryTemplates().size());\n assertEquals(draft, rootBlog.getBlogEntryTemplate(draft.getId()));\n }",
"java.lang.String getTemplateId();",
"FieldsType createFieldsType();",
"public void addHeadingField(String label, int index) {\n //inflater needed to \"inflate\" layouts\n LayoutInflater inflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n //instantiate our data object.\n ElementHeadingField elementHeadingField = new ElementHeadingField(label);\n //insert element data object in slot on page\n if (isLoading){\n currentPage.addElement(elementHeadingField);\n }else{\n currentPage.insertElement(index, elementHeadingField);\n }\n //we need to instantiate our xml fragment (text field) and bind it to the data object\n HeadingFieldBinding headingFieldBinding = HeadingFieldBinding.inflate(inflater, null,false);\n headingFieldBinding.setElementHeadingField(elementHeadingField);\n //get new view (our xml fragment -the text field) and add it to current view\n View newView = headingFieldBinding.getRoot();\n if (isInspecting){\n EditText editText = newView.findViewById(R.id.label);\n editText.setFocusable(false);\n }\n linearLayoutBody.addView(newView, index);\n Context context = App.getContext();\n LogManager.reportStatus(context, \"INSPECTOR\", \"onAddHeadingField\");\n }",
"protected void createSmartField() {\n\t\tthis.smartField = new SmartField();\n\t}",
"int insert( FormSubmit formResponse, Plugin plugin );",
"private void addAdditionalFieldsTab()\n {\n\t\t// START OF ADDITIONAL FIELDS TAB ///\n\t\t// ////////////////////////\n \twAdditionalFieldsTab = new CTabItem(wTabFolder, SWT.NONE);\n \twAdditionalFieldsTab.setText(BaseMessages.getString(PKG, \"AccessInputDialog.AdditionalFieldsTab.TabTitle\"));\n\n \twAdditionalFieldsComp = new Composite(wTabFolder, SWT.NONE);\n\t\tprops.setLook(wAdditionalFieldsComp);\n\n\t\tFormLayout fieldsLayout = new FormLayout();\n\t\tfieldsLayout.marginWidth = 3;\n\t\tfieldsLayout.marginHeight = 3;\n\t\twAdditionalFieldsComp.setLayout(fieldsLayout);\n\t\t\n\t\t// ShortFileFieldName line\n\t\twlShortFileFieldName = new Label(wAdditionalFieldsComp, SWT.RIGHT);\n\t\twlShortFileFieldName.setText(BaseMessages.getString(PKG, \"AccessInputDialog.ShortFileFieldName.Label\"));\n\t\tprops.setLook(wlShortFileFieldName);\n\t\tfdlShortFileFieldName = new FormData();\n\t\tfdlShortFileFieldName.left = new FormAttachment(0, 0);\n\t\tfdlShortFileFieldName.top = new FormAttachment(wInclRownumField, margin);\n\t\tfdlShortFileFieldName.right = new FormAttachment(middle, -margin);\n\t\twlShortFileFieldName.setLayoutData(fdlShortFileFieldName);\n\n\t\twShortFileFieldName = new TextVar(transMeta, wAdditionalFieldsComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER);\n\t\tprops.setLook(wShortFileFieldName);\n\t\twShortFileFieldName.addModifyListener(lsMod);\n\t\tfdShortFileFieldName = new FormData();\n\t\tfdShortFileFieldName.left = new FormAttachment(middle, 0);\n\t\tfdShortFileFieldName.right = new FormAttachment(100, -margin);\n\t\tfdShortFileFieldName.top = new FormAttachment(wInclRownumField, margin);\n\t\twShortFileFieldName.setLayoutData(fdShortFileFieldName);\n\t\t\n\t\t\n\t\t// ExtensionFieldName line\n\t\twlExtensionFieldName = new Label(wAdditionalFieldsComp, SWT.RIGHT);\n\t\twlExtensionFieldName.setText(BaseMessages.getString(PKG, \"AccessInputDialog.ExtensionFieldName.Label\"));\n\t\tprops.setLook(wlExtensionFieldName);\n\t\tfdlExtensionFieldName = new FormData();\n\t\tfdlExtensionFieldName.left = new FormAttachment(0, 0);\n\t\tfdlExtensionFieldName.top = new FormAttachment(wShortFileFieldName, margin);\n\t\tfdlExtensionFieldName.right = new FormAttachment(middle, -margin);\n\t\twlExtensionFieldName.setLayoutData(fdlExtensionFieldName);\n\n\t\twExtensionFieldName = new TextVar(transMeta, wAdditionalFieldsComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER);\n\t\tprops.setLook(wExtensionFieldName);\n\t\twExtensionFieldName.addModifyListener(lsMod);\n\t\tfdExtensionFieldName = new FormData();\n\t\tfdExtensionFieldName.left = new FormAttachment(middle, 0);\n\t\tfdExtensionFieldName.right = new FormAttachment(100, -margin);\n\t\tfdExtensionFieldName.top = new FormAttachment(wShortFileFieldName, margin);\n\t\twExtensionFieldName.setLayoutData(fdExtensionFieldName);\n\t\t\n\t\t\n\t\t// PathFieldName line\n\t\twlPathFieldName = new Label(wAdditionalFieldsComp, SWT.RIGHT);\n\t\twlPathFieldName.setText(BaseMessages.getString(PKG, \"AccessInputDialog.PathFieldName.Label\"));\n\t\tprops.setLook(wlPathFieldName);\n\t\tfdlPathFieldName = new FormData();\n\t\tfdlPathFieldName.left = new FormAttachment(0, 0);\n\t\tfdlPathFieldName.top = new FormAttachment(wExtensionFieldName, margin);\n\t\tfdlPathFieldName.right = new FormAttachment(middle, -margin);\n\t\twlPathFieldName.setLayoutData(fdlPathFieldName);\n\n\t\twPathFieldName = new TextVar(transMeta, wAdditionalFieldsComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER);\n\t\tprops.setLook(wPathFieldName);\n\t\twPathFieldName.addModifyListener(lsMod);\n\t\tfdPathFieldName = new FormData();\n\t\tfdPathFieldName.left = new FormAttachment(middle, 0);\n\t\tfdPathFieldName.right = new FormAttachment(100, -margin);\n\t\tfdPathFieldName.top = new FormAttachment(wExtensionFieldName, margin);\n\t\twPathFieldName.setLayoutData(fdPathFieldName);\n\t\t\n\n\n \t\t// SizeFieldName line\n\t\twlSizeFieldName = new Label(wAdditionalFieldsComp, SWT.RIGHT);\n\t\twlSizeFieldName.setText(BaseMessages.getString(PKG, \"AccessInputDialog.SizeFieldName.Label\"));\n\t\tprops.setLook(wlSizeFieldName);\n\t\tfdlSizeFieldName = new FormData();\n\t\tfdlSizeFieldName.left = new FormAttachment(0, 0);\n\t\tfdlSizeFieldName.top = new FormAttachment(wPathFieldName, margin);\n\t\tfdlSizeFieldName.right = new FormAttachment(middle, -margin);\n\t\twlSizeFieldName.setLayoutData(fdlSizeFieldName);\n\n\t\twSizeFieldName = new TextVar(transMeta, wAdditionalFieldsComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER);\n\t\tprops.setLook(wSizeFieldName);\n\t\twSizeFieldName.addModifyListener(lsMod);\n\t\tfdSizeFieldName = new FormData();\n\t\tfdSizeFieldName.left = new FormAttachment(middle, 0);\n\t\tfdSizeFieldName.right = new FormAttachment(100, -margin);\n\t\tfdSizeFieldName.top = new FormAttachment(wPathFieldName, margin);\n\t\twSizeFieldName.setLayoutData(fdSizeFieldName);\n\t\t\n\t\t\n\t\t// IsHiddenName line\n\t\twlIsHiddenName = new Label(wAdditionalFieldsComp, SWT.RIGHT);\n\t\twlIsHiddenName.setText(BaseMessages.getString(PKG, \"AccessInputDialog.IsHiddenName.Label\"));\n\t\tprops.setLook(wlIsHiddenName);\n\t\tfdlIsHiddenName = new FormData();\n\t\tfdlIsHiddenName.left = new FormAttachment(0, 0);\n\t\tfdlIsHiddenName.top = new FormAttachment(wSizeFieldName, margin);\n\t\tfdlIsHiddenName.right = new FormAttachment(middle, -margin);\n\t\twlIsHiddenName.setLayoutData(fdlIsHiddenName);\n\n\t\twIsHiddenName = new TextVar(transMeta, wAdditionalFieldsComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER);\n\t\tprops.setLook(wIsHiddenName);\n\t\twIsHiddenName.addModifyListener(lsMod);\n\t\tfdIsHiddenName = new FormData();\n\t\tfdIsHiddenName.left = new FormAttachment(middle, 0);\n\t\tfdIsHiddenName.right = new FormAttachment(100, -margin);\n\t\tfdIsHiddenName.top = new FormAttachment(wSizeFieldName, margin);\n\t\twIsHiddenName.setLayoutData(fdIsHiddenName);\n\t\t\n\t\t// LastModificationTimeName line\n\t\twlLastModificationTimeName = new Label(wAdditionalFieldsComp, SWT.RIGHT);\n\t\twlLastModificationTimeName.setText(BaseMessages.getString(PKG, \"AccessInputDialog.LastModificationTimeName.Label\"));\n\t\tprops.setLook(wlLastModificationTimeName);\n\t\tfdlLastModificationTimeName = new FormData();\n\t\tfdlLastModificationTimeName.left = new FormAttachment(0, 0);\n\t\tfdlLastModificationTimeName.top = new FormAttachment(wIsHiddenName, margin);\n\t\tfdlLastModificationTimeName.right = new FormAttachment(middle, -margin);\n\t\twlLastModificationTimeName.setLayoutData(fdlLastModificationTimeName);\n\n\t\twLastModificationTimeName = new TextVar(transMeta, wAdditionalFieldsComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER);\n\t\tprops.setLook(wLastModificationTimeName);\n\t\twLastModificationTimeName.addModifyListener(lsMod);\n\t\tfdLastModificationTimeName = new FormData();\n\t\tfdLastModificationTimeName.left = new FormAttachment(middle, 0);\n\t\tfdLastModificationTimeName.right = new FormAttachment(100, -margin);\n\t\tfdLastModificationTimeName.top = new FormAttachment(wIsHiddenName, margin);\n\t\twLastModificationTimeName.setLayoutData(fdLastModificationTimeName);\n\t\t\n\t\t// UriName line\n\t\twlUriName = new Label(wAdditionalFieldsComp, SWT.RIGHT);\n\t\twlUriName.setText(BaseMessages.getString(PKG, \"AccessInputDialog.UriName.Label\"));\n\t\tprops.setLook(wlUriName);\n\t\tfdlUriName = new FormData();\n\t\tfdlUriName.left = new FormAttachment(0, 0);\n\t\tfdlUriName.top = new FormAttachment(wLastModificationTimeName, margin);\n\t\tfdlUriName.right = new FormAttachment(middle, -margin);\n\t\twlUriName.setLayoutData(fdlUriName);\n\n\t\twUriName = new TextVar(transMeta, wAdditionalFieldsComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER);\n\t\tprops.setLook(wUriName);\n\t\twUriName.addModifyListener(lsMod);\n\t\tfdUriName = new FormData();\n\t\tfdUriName.left = new FormAttachment(middle, 0);\n\t\tfdUriName.right = new FormAttachment(100, -margin);\n\t\tfdUriName.top = new FormAttachment(wLastModificationTimeName, margin);\n\t\twUriName.setLayoutData(fdUriName);\n\t\t\n\t\t// RootUriName line\n\t\twlRootUriName = new Label(wAdditionalFieldsComp, SWT.RIGHT);\n\t\twlRootUriName.setText(BaseMessages.getString(PKG, \"AccessInputDialog.RootUriName.Label\"));\n\t\tprops.setLook(wlRootUriName);\n\t\tfdlRootUriName = new FormData();\n\t\tfdlRootUriName.left = new FormAttachment(0, 0);\n\t\tfdlRootUriName.top = new FormAttachment(wUriName, margin);\n\t\tfdlRootUriName.right = new FormAttachment(middle, -margin);\n\t\twlRootUriName.setLayoutData(fdlRootUriName);\n\n\t\twRootUriName = new TextVar(transMeta, wAdditionalFieldsComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER);\n\t\tprops.setLook(wRootUriName);\n\t\twRootUriName.addModifyListener(lsMod);\n\t\tfdRootUriName = new FormData();\n\t\tfdRootUriName.left = new FormAttachment(middle, 0);\n\t\tfdRootUriName.right = new FormAttachment(100, -margin);\n\t\tfdRootUriName.top = new FormAttachment(wUriName, margin);\n\t\twRootUriName.setLayoutData(fdRootUriName);\n\t\n\n\t\tfdAdditionalFieldsComp = new FormData();\n\t\tfdAdditionalFieldsComp.left = new FormAttachment(0, 0);\n\t\tfdAdditionalFieldsComp.top = new FormAttachment(wStepname, margin);\n\t\tfdAdditionalFieldsComp.right = new FormAttachment(100, 0);\n\t\tfdAdditionalFieldsComp.bottom = new FormAttachment(100, 0);\n\t\twAdditionalFieldsComp.setLayoutData(fdAdditionalFieldsComp);\n\n\t\twAdditionalFieldsComp.layout();\n\t\twAdditionalFieldsTab.setControl(wAdditionalFieldsComp);\n\n\t\t// ///////////////////////////////////////////////////////////\n\t\t// / END OF ADDITIONAL FIELDS TAB\n\t\t// ///////////////////////////////////////////////////////////\n\n\t\t\n \t\n }",
"private String getAdvTemplate(){ \r\n\t\t\t StringBuilder sb = new StringBuilder();\r\n\t\t\t sb.append(\"<tpl for=\\\".\\\">\");\r\n\t\t\t\tsb.append(\"<div class=\\\"x-combo-list-item\\\" >\");\r\n\t\t\t\tsb.append(\"<span class=\\\"tpl-lft {gender}\\\"></span>\");\r\n\t\t\t\tsb.append(\"<span class=\\\"tpl-lft\\\">{name}</span>\");\r\n\t\t\t\tsb.append(\"<span class=\\\"tpl-rgt\\\">{age} Yrs</span>\");\r\n\t\t\t\tsb.append(\"</div>\");\r\n\t\t\t\tsb.append(\"</tpl>\");\r\n\t\t\t return sb.toString();\r\n\t\t\t}",
"public abstract void setTemplId(Integer templId);",
"public interface FieldReference {\n\n /**\n *\n * @return variable name of the field\n */\n String getVariableName();\n\n /**\n *\n * @return type of the field\n */\n Type getType();\n\n /**\n * @return additional template parameters\n */\n default Map<String, Object> getTemplateParameter() {\n return null;\n }\n}",
"public void onAddField(View v) {\r\n dynamicEditTexts = new ArrayList<EditText>();//added this\r\n\r\n LayoutInflater inflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);\r\n final View rowView = inflater.inflate(R.layout.field, null);\r\n // Add the new row before the add field button.\r\n parentLinearLayout.addView(rowView, parentLinearLayout.getChildCount() - 1);\r\n EditText dynamicText = new EditText(this);\r\n dynamicEditTexts.add(dynamicText);\r\n }",
"@Override\n\tprotected void GenerateImportLibrary(String LibName) {\n\n\t}",
"public TblrefTemplateRecord() {\n super(TblrefTemplate.TBLREF_TEMPLATE);\n }",
"public void createFieldEditors() {\n\t\t\n\t\tList<String> listOfValues = PreferenceOptions.GetTreeEditorFeatureOptions();\n\t\tint count = listOfValues.size();\n\t\tpreviously = Activator.getDefault().getPreferenceStore().getString(PreferenceOptions.FeatureEditor_CHOICE);\t\t\n\t\t\n\t\tString[][] labelAndvalues = new String[count][2];\n\t\tfor (int i = 0; i < count; i++)\n\t\t\tfor (int j = 0; j < 2; j++) \n\t\t\t\tlabelAndvalues[i][j] = listOfValues.get(i);\t\t\t\n\t\t\n\t\taddField(new RadioGroupFieldEditor(\n\t\t\t\tPreferenceOptions.FeatureEditor_CHOICE,\n\t\t\t\t\"Tree Editor Feature Wizard\",\n\t\t\t\t1,\n\t\t\t\tlabelAndvalues, \n\t\t\t\tgetFieldEditorParent()));\t\n\n\t\t/*Select the Engine to execute constraint*/\n\t\t\n\t\tList<String> listOfEngines = PreferenceOptions.getEngineOptions();\n\t\tint countEngines = listOfEngines.size();\t\t\n\t\t\n\t\tif (listOfEngines.size() != 0) {\n\t\t\t\n\t\t\tpreviouslyEngine = Activator.getDefault().getPreferenceStore().getString(PreferenceOptions.ENGINE_CHOICE);\n\t\t\t\n\t\t\tString[][] labelAndvaluesEngine = new String[countEngines][2];\n\t\t\tfor (int i = 0; i < countEngines; i++)\n\t\t\t\tfor (int j = 0; j < 2; j++) \n\t\t\t\t\tlabelAndvaluesEngine[i][j] = listOfEngines.get(i);\n\t\t\t\t\n\t\t\taddField(new RadioGroupFieldEditor(\n\t\t\t\t\tPreferenceOptions.ENGINE_CHOICE,\n\t\t\t\t\t\"Engine for the execution of constraints\",\n\t\t\t\t\t1,\n\t\t\t\t\tlabelAndvaluesEngine, \n\t\t\t\t\tgetFieldEditorParent()));\t\t\t\n\t\t}\t\n\t}",
"default <T> void constructTemplate(ElasticsearchIndexType indexType, T templateProperty){\n builder().append(String.format(\"{\\\"%s\\\":\", indexType.getDisplayName()));\n java.lang.Class<?> templatePropertyClass = templateProperty.getClass();\n java.lang.invoke.MethodHandles.Lookup lookup = MethodHandles.lookup();\n try {\n for (String templateProp : templateProperties) {\n VarHandle varHandle = lookup.findVarHandle(templatePropertyClass, PREFIX + templateProp, String.class);\n Object value = varHandle.get(templateProperty);\n if(StringUtils.isEmpty(value)){\n if(templateProp.equals(\"type\")){\n value = PREFIX + DEFAULT_DOC;\n }else if(templateProp.equals(\"id\")){\n value = UUID.randomUUID().toString();\n }\n }\n if(!StringUtils.isEmpty(value)){\n builder().append(String.format(\"\\\"%s%s\\\":\\\"%s\\\"\", PREFIX, templateProp, value));\n }\n }\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n } catch (NoSuchFieldException e) {\n e.printStackTrace();\n }\n builder().append(\"}\");\n }",
"public WellFormTemplate(){\n \tpatternIndex = 0;\n }",
"@Override\r\n protected void buildEditingFields() {\r\n LanguageCodeComboBox languageCodeComboBox = new LanguageCodeComboBox();\r\n languageCodeComboBox.setAllowBlank(false);\r\n languageCodeComboBox.setToolTip(\"The translation language's code is required. It can not be null. Please select one or delete the row.\");\r\n BoundedTextField tf = new BoundedTextField();\r\n tf.setMaxLength(256);\r\n tf.setToolTip(\"This is the translation corresponding to the selected language. This field is required. It can not be null.\");\r\n tf.setAllowBlank(false);\r\n addColumnEditorConfig(languageCodeColumnConfig, languageCodeComboBox);\r\n addColumnEditorConfig(titleColumnConfig, tf);\r\n }",
"public interface Template {\n\n}",
"private native String getTemplate()/*-{\r\n\t\t\t\treturn ['<tpl for=\".\">', \r\n\t\t\t '<div class=\"x-customer-item\">', \r\n\t\t\t\t '<div class=\"name\">{name}</div>', \r\n\t\t\t\t '<div class=\"email\">E-mail:{email}</div>', \r\n\t\t\t\t '<div class=\"purchases\">Purchases:{purchases}</div>', \r\n\t\t\t '</div>', \r\n\t\t\t '</tpl>', \r\n\t\t\t ''].join(\"\");\r\n\t\t\t}-*/;",
"public BaseField setupField(int iFieldSeq)\n {\n BaseField field = null;\n //if (iFieldSeq == 0)\n // field = new TicketScreenRecord_ReportDate(this, REPORT_DATE, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 1)\n // field = new TicketScreenRecord_ReportTime(this, REPORT_TIME, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 2)\n // field = new TicketScreenRecord_ReportUserID(this, REPORT_USER_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 3)\n // field = new ShortField(this, REPORT_PAGE, Constants.DEFAULT_FIELD_LENGTH, null, new Short((short)1));\n //if (iFieldSeq == 4)\n // field = new IntegerField(this, REPORT_COUNT, Constants.DEFAULT_FIELD_LENGTH, null, new Integer(0));\n //if (iFieldSeq == 5)\n // field = new CurrencyField(this, REPORT_TOTAL, Constants.DEFAULT_FIELD_LENGTH, null, new Double(0));\n //if (iFieldSeq == 6)\n // field = new IntegerField(this, REPORT_KEY_AREA, Constants.DEFAULT_FIELD_LENGTH, null, null);\n if (iFieldSeq == 7)\n field = new ShortField(this, COUNT, Constants.DEFAULT_FIELD_LENGTH, null, null);\n if (iFieldSeq == 8)\n field = new CurrencyField(this, TOTAL, Constants.DEFAULT_FIELD_LENGTH, null, null);\n if (iFieldSeq == 9)\n field = new TicketReportOrderField(this, REPORT_ORDER, Constants.DEFAULT_FIELD_LENGTH, null, null);\n if (iFieldSeq == 10)\n field = new DateField(this, START_DEPARTURE, Constants.DEFAULT_FIELD_LENGTH, null, null);\n if (iFieldSeq == 11)\n field = new DateField(this, END_DEPARTURE, Constants.DEFAULT_FIELD_LENGTH, null, null);\n if (iFieldSeq == 12)\n field = new DateField(this, START_ISSUE, Constants.DEFAULT_FIELD_LENGTH, null, null);\n if (iFieldSeq == 13)\n field = new DateField(this, END_ISSUE, Constants.DEFAULT_FIELD_LENGTH, null, null);\n if (iFieldSeq == 14)\n field = new BooleanField(this, INCLUDE_VOID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n if (iFieldSeq == 15)\n field = new AirlineField(this, AIRLINE_1ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n if (iFieldSeq == 16)\n field = new AirlineField(this, AIRLINE_2ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n if (iFieldSeq == 17)\n field = new AirlineField(this, AIRLINE_3ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n if (iFieldSeq == 18)\n field = new AirlineField(this, AIRLINE_4ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n if (iFieldSeq == 19)\n field = new StringField(this, START_TICKET, 20, null, null);\n if (iFieldSeq == 20)\n field = new StringField(this, END_TICKET, 20, null, null);\n if (field == null)\n field = super.setupField(iFieldSeq);\n return field;\n }",
"String getTemplate();",
"public BaseField setupField(int iFieldSeq)\n {\n BaseField field = null;\n //if (iFieldSeq == 0)\n //{\n // field = new CounterField(this, ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n // field.setHidden(true);\n //}\n //if (iFieldSeq == 1)\n //{\n // field = new RecordChangedField(this, LAST_CHANGED, Constants.DEFAULT_FIELD_LENGTH, null, null);\n // field.setHidden(true);\n //}\n //if (iFieldSeq == 2)\n //{\n // field = new BooleanField(this, DELETED, Constants.DEFAULT_FIELD_LENGTH, null, new Boolean(false));\n // field.setHidden(true);\n //}\n if (iFieldSeq == 3)\n field = new StringField(this, NAME, 60, null, null);\n if (field == null)\n field = super.setupField(iFieldSeq);\n return field;\n }",
"public abstract void controlField(String tag, String data);",
"private void createUIComponents() {\n valueTextField = new JTextField();\n FixedService f = new FixedService();\n valueTextField.setText(\"£ \" + f.getPrice(\"Fixed\"));\n valueTextField.setBorder(new EmptyBorder(0, 0, 0, 0));\n }",
"void setTemplate(ITemplateKey key, Template template);",
"public boolean templateFieldLibraryDelete(Long id) {\n\t\tFieldsTemplateLibraryDAO dao = new FieldsTemplateLibraryDAO();\n\t\treturn dao.deleteById(id);\n\t}",
"public static String generateSiteEditComponentTag(ComponentPresentation cp, int orderOnPage, String region, ServletRequest req) \r\n throws Exception {\r\n if (!(cp.getComponent() instanceof GenericComponent)) {\r\n throw new Exception(\"Cannot create siteEdit tags for non-generic component.\");\r\n }\r\n \r\n if (!isSiteEditEnabled(cp.getComponent().getId(), req)) {\r\n return \"\";\r\n }\r\n \r\n // cast to generic in order to get access to revision date\r\n GenericComponent comp = (GenericComponent) cp.getComponent();\r\n \r\n return String.format(componentseformat, \r\n \t\t comp.getId(),\r\n \t\t comp.getRevisionDate(),\r\n \t\tcp.getComponentTemplate().getId(),\r\n \t\tcp.getComponentTemplate().getRevisionDate(),\r\n \t\tcp.isDynamic()\r\n );\r\n }",
"protected synchronized void addFieldEntity(int fld_i, String entity) {\r\n // System.err.println(\"addFieldEntity(\" + fld_i + \",\\\"\" + entity + \"\\\")\");\r\n //\r\n // fld_i is used to indicate if this is a second iteration of addFieldEntity() to prevent\r\n // infinite recursion... not sure if it's correct... for example, what happens when\r\n // a post-processor transform converts a domain to an ip address - shouldn't that IP\r\n // address then be further decomposed?\r\n //\r\n if (fld_i != -1 && entity.equals(BundlesDT.NOTSET)) {\r\n ent_2_i.put(BundlesDT.NOTSET, -1); \r\n fld_dts.get(fld_i).add(BundlesDT.DT.NOTSET);\r\n\r\n //\r\n // Decompose a tag into it's basic elements\r\n //\r\n } else if (fld_i != -1 && fieldHeader(fld_i).equals(BundlesDT.TAGS)) {\r\n addFieldEntity(-1,entity); // Add the tag itself\r\n Iterator<String> it = Utils.tokenizeTags(entity).iterator();\r\n while (it.hasNext()) {\r\n String tag = it.next(); addFieldEntity(-1, tag);\r\n\tif (Utils.tagIsHierarchical(tag)) {\r\n String sep[] = Utils.tagDecomposeHierarchical(tag);\r\n\t for (int i=0;i<sep.length;i++) addFieldEntity(-1, sep[i]);\r\n\t} else if (Utils.tagIsTypeValue(tag)) {\r\n String sep[] = Utils.separateTypeValueTag(tag);\r\n\t tag_types.add(sep[0]);\r\n\t addFieldEntity(-1,sep[1]);\r\n\t}\r\n }\r\n\r\n //\r\n // Otherwise, keep track of the datatype to field correlation and run post\r\n // processors on the item to have those lookups handy.\r\n //\r\n } else {\r\n // System.err.println(\"determining datatype for \\\"\" + entity + \"\\\"\"); // DEBUG\r\n BundlesDT.DT datatype = BundlesDT.getEntityDataType(entity); if (dt_count_lu.containsKey(datatype) == false) dt_count_lu.put(datatype,0);\r\n // System.err.println(\"datatype for \\\"\" + entity + \"\\\" ==> \" + datatype); // DEBUG\r\n if (datatype != null) {\r\n// System.err.println(\"390:fld_i = \" + fld_i + \" (\" + fld_dts.containsKey(fld_i) + \")\"); // abc DEBUG\r\n// try { System.err.println(\" \" + fieldHeader(fld_i)); } catch (Throwable t) { } // abc DEBUG\r\n if (fld_i != -1) fld_dts.get(fld_i).add(datatype);\r\n if (ent_2_i.containsKey(entity) == false) {\r\n\t // Use special rules to set integer correspondance\r\n\t switch (datatype) {\r\n\t case IPv4: ent_2_i.put(entity, Utils.ipAddrToInt(entity)); break;\r\n\t case IPv4CIDR: ent_2_i.put(entity, Utils.ipAddrToInt((new StringTokenizer(entity, \"/\")).nextToken())); break;\r\n\t case INTEGER: ent_2_i.put(entity, Integer.parseInt(entity)); \r\n\t if (warn_on_float_conflict) checkForFloatConflict(fld_i);\r\n\t break;\r\n case FLOAT: ent_2_i.put(entity, Float.floatToIntBits(Float.parseFloat(entity))); \r\n\t if (warn_on_float_conflict) checkForFloatConflict(fld_i);\r\n break;\r\n\t case DOMAIN: ent_2_i.put(entity, Utils.ipAddrToInt(\"127.0.0.2\") + dt_count_lu.get(datatype)); // Put Domains In Unused IPv4 Space\r\n\t dt_count_lu.put(datatype, dt_count_lu.get(datatype) + 1);\r\n\t\t\t break;\r\n\r\n\t // Pray that these don't collide - otherwise x/y scatters will be off...\r\n\t default: ent_2_i.put(entity, dt_count_lu.get(datatype));\r\n\t dt_count_lu.put(datatype, dt_count_lu.get(datatype) + 1);\r\n\t\t\t break;\r\n }\r\n\t}\r\n\t// Map out the derivatives so that they will have values int the lookups\r\n\t// - Create the post processors\r\n\tif (post_processors == null) {\r\n\t String post_proc_strs[] = BundlesDT.listEnabledPostProcessors();\r\n\t post_processors = new PostProc[post_proc_strs.length];\r\n\t for (int i=0;i<post_processors.length;i++) post_processors[i] = BundlesDT.createPostProcessor(post_proc_strs[i], this);\r\n\t}\r\n\t// - Run all of the post procs against their correct types\r\n if (fld_i != -1) for (int i=0;i<post_processors.length;i++) {\r\n if (post_processors[i].type() == datatype) {\r\n\t String strs[] = post_processors[i].postProcess(entity);\r\n\t for (int j=0;j<strs.length;j++) {\r\n if (entity.equals(strs[j]) == false) addFieldEntity(-1, strs[j]);\r\n\t }\r\n }\r\n\t}\r\n } else if (ent_2_i.containsKey(entity) == false) {\r\n ent_2_i.put(entity, not_assoc.size());\r\n\tnot_assoc.add(entity);\r\n }\r\n }\r\n }",
"public void setupInsertTestcase(JTextArea setup) {\n\t\ttry {\n\t\n\t\t\tsetup.append(\"\\ndb.genericCollection.insert \\n({\\\"_id\\\" : \"+ObjectId.get()+\",\\n\\\"RandomName\\\" : \\\"\"+ rg.getRandomString(stringlength)+\"\\\", \\n\\\"RandomSize\\\" : \"+ rg.getRandomNum(numlength)+\",\\n\\\"RandomGeo\\\" : [\"+ rg.getRandom(180)+\", \"+rg.getRandom(90)+\"]})\");\n\t\t\tsetup.append(\"\\n---------------------------------------------------------------\");\n\t\t\tSystem.err.println(\"Setup complete!\");\n\t\n\t\t} catch (Exception e) {\n\t\t}\n\t}"
] | [
"0.71456605",
"0.6739479",
"0.6590892",
"0.63111085",
"0.61986595",
"0.61429876",
"0.6063526",
"0.59987926",
"0.59968495",
"0.5975116",
"0.5889535",
"0.5875745",
"0.5737087",
"0.5719252",
"0.5709053",
"0.5683905",
"0.56694615",
"0.5647984",
"0.56296223",
"0.5614928",
"0.55531806",
"0.55426216",
"0.55400205",
"0.551842",
"0.5504609",
"0.54941374",
"0.54369617",
"0.5431834",
"0.5411619",
"0.5389727",
"0.5381896",
"0.53676844",
"0.5354898",
"0.5346507",
"0.534567",
"0.5343352",
"0.5342773",
"0.5340225",
"0.53267413",
"0.5322363",
"0.52957344",
"0.52894264",
"0.52413",
"0.521836",
"0.5209504",
"0.5196811",
"0.5191651",
"0.5144546",
"0.51359105",
"0.51283824",
"0.51248395",
"0.5124206",
"0.50989395",
"0.50943005",
"0.50917375",
"0.5089087",
"0.50825584",
"0.50798994",
"0.5070519",
"0.50508076",
"0.5046219",
"0.504527",
"0.5025336",
"0.5024698",
"0.5010053",
"0.5005033",
"0.49960127",
"0.49951655",
"0.49915427",
"0.4986387",
"0.49728355",
"0.49719927",
"0.4964205",
"0.49640724",
"0.49609184",
"0.4955426",
"0.4947953",
"0.49409893",
"0.49389035",
"0.49374747",
"0.49294314",
"0.4924258",
"0.4920935",
"0.49198532",
"0.49190894",
"0.49171948",
"0.49004984",
"0.48785886",
"0.48776728",
"0.487186",
"0.48698708",
"0.48686075",
"0.48677003",
"0.4854948",
"0.48523885",
"0.48507902",
"0.48447084",
"0.48367608",
"0.48347017",
"0.48255026"
] | 0.7232574 | 0 |
delete template field library | public boolean templateFieldLibraryDelete(Long id) {
FieldsTemplateLibraryDAO dao = new FieldsTemplateLibraryDAO();
return dao.deleteById(id);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean deleteFieldsTemplate(Template template)\n\t{\n\t\tFieldsTemplateDAO daoTemplate = new FieldsTemplateDAO();\n\t\treturn daoTemplate.deleteFieldsByIdTemplate(template);\n\t}",
"private void removeTemplate()\r\n {\r\n\t String template = keyField.getText();\r\n\t if (template.length()==0)\r\n\t {\r\n\t\t label.setText(\"Please enter template name\");\r\n\t\t return;\r\n\t }\r\n\t \r\n\t int index = list.getSelectedIndex();\r\n if (index<0) return;\r\n\r\n\t if (!templates.removeTemplate(template))\r\n\t {\r\n\t\t label.setText(\"Couldn't remove default template\");\r\n\t\t return;\r\n\t }\r\n\r\n String[] newTemplates = new String[templateKeys.length - 1];\r\n for (int a=0; a<templateKeys.length; a++)\r\n {\r\n if (a<index) newTemplates[a] = templateKeys[a];\r\n else if (a > index) newTemplates[a-1] = templateKeys[a];\r\n }\r\n templateKeys = newTemplates;\r\n model.removeElementAt(index);\r\n \r\n clearComponents();\r\n list.setSelectedIndex(-1); \r\n label.setText(\"Display format \" + template + \" removed\");\r\n }",
"private void deleteFieldRows(Connection con,\n IdentifiedRecordTemplate template) throws SQLException {\n PreparedStatement delete = null;\n \n try {\n int internalId = template.getInternalId();\n \n delete = con.prepareStatement(DELETE_TEMPLATE_RECORDS_FIELDS);\n delete.setInt(1, internalId);\n delete.execute();\n } finally {\n DBUtil.close(delete);\n }\n }",
"public void removeTemplatesPage()\r\n {\r\n getSemanticObject().removeProperty(swpres_templatesPage);\r\n }",
"@Test\n public void deleteTemplateTest() throws IdfyException, Exception {\n UUID id = UUID.randomUUID();\n api.deleteTemplate(id);\n }",
"int deleteByExample(CfgPrintTemplateAttrExample example);",
"public void deleteTemplate(Template template)\n\t{\n\t\tTemplateDAO dao = new TemplateDAO();\n\t\tdao.delete(template);\t\t\n\t\t//return template.getId();\n\t}",
"void delete(ViewDefinition viewDefinition);",
"@Test\n public void unlinkSingleField() throws Exception {\n Document doc = new Document(getMyDir() + \"Linked fields.docx\");\n doc.getRange().getFields().get(1).unlink();\n //ExEnd\n\n doc = DocumentHelper.saveOpen(doc);\n String paraWithFields = DocumentHelper.getParagraphText(doc, 0);\n Assert.assertEquals(paraWithFields, \"\\u0013 FILENAME \\\\* Caps \\\\* MERGEFORMAT \\u0014Fields.Docx\\u0015 Элементы указателя не найдены. \\u0013 LISTNUM LegalDefault \\u0015\\r\");\n }",
"public void deleteOneWord(Pojo.OneWord e){ \n template.delete(e); \n}",
"private void deleteFieldRows(Connection con,\n IdentifiedRecordTemplate template, GenericDataRecord record)\n throws SQLException {\n PreparedStatement delete = null;\n \n try {\n int internalId = record.getInternalId();\n delete = con.prepareStatement(DELETE_RECORD_FIELDS);\n delete.setInt(1, internalId);\n delete.execute();\n } finally {\n DBUtil.close(delete);\n }\n }",
"@Override\n\tpublic void delete(Field entity) {\n\t\t\n\t}",
"@Override\n public void deleteItem(P_CK t) {\n \n }",
"public void removeTemplateId(int i)\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(TEMPLATEID$4, i);\n }\n }",
"void deleteModule(Module module);",
"public void remove(Template template) {\n\tfTemplates.remove(template);\n\tsort();\n }",
"@Test\n public void unlink() throws Exception {\n Document doc = new Document(getMyDir() + \"Linked fields.docx\");\n\n doc.unlinkFields();\n //ExEnd\n\n doc = DocumentHelper.saveOpen(doc);\n String paraWithFields = DocumentHelper.getParagraphText(doc, 0);\n Assert.assertEquals(paraWithFields, \"Fields.Docx Элементы указателя не найдены. 1.\\r\");\n }",
"void delete(int metaTagId);",
"private void delete() {\n\n\t}",
"private void deleteResource() {\n }",
"public void deleteSupplier(Supplier e){ \n\t template.delete(e); \n\t}",
"public ITemplateStep removeStep(ITemplateStep stepToRemove);",
"public void removeDynamicTemplate(AbstractSlaveTemplate template) {\n this.dynamicTemplates.remove(template); // Fails silently\n }",
"private static void deleteElement(RubyProjectElement element) {\r\n \t\tRubyProject projectInternal = element.getRubyProjectInternal();\r\n \t\tprojectInternal.getRubyElementsInternal().remove(element);\r\n \r\n deleteResource(element); \r\n \t}",
"void removeObjectDefinition(int i);",
"@Override\r\n\tpublic void delete(SimpleJdbcTemplate template) throws Exception {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}",
"private static void deleteResource(ProjectElement element) {\r\n \t\tResource resource = element.eResource();\r\n \t\tif (resource != null) {\r\n resource.getContents().remove(element);\r\n resource.unload();\r\n } \r\n \t}",
"public void deleteField(Field field) {\n Span span = this.tracer.buildSpan(\"Client.DeleteField\").start();\n try {\n String path = String.format(\"/index/%s/field/%s\", field.getIndex().getName(), field.getName());\n clientExecute(\"DELETE\", path, null, null, \"Error while deleting field\");\n } finally {\n span.finish();\n }\n }",
"int deleteByExample(PdfCodeTemporaryExample example);",
"public void delete() {\n mapping.getFieldOrFieldExclude().remove(field);\n }",
"@Test\n public void fieldTemplate() throws Exception {\n Document doc = new Document();\n DocumentBuilder builder = new DocumentBuilder(doc);\n\n // We can set a template name using by the fields. This property is used when the \"doc.AttachedTemplate\" is empty.\n // If this property is empty the default template file name \"Normal.dotm\" is used.\n doc.getFieldOptions().setTemplateName(\"\");\n\n FieldTemplate field = (FieldTemplate) builder.insertField(FieldType.FIELD_TEMPLATE, false);\n Assert.assertEquals(field.getFieldCode(), \" TEMPLATE \");\n\n builder.writeln();\n field = (FieldTemplate) builder.insertField(FieldType.FIELD_TEMPLATE, false);\n field.setIncludeFullPath(true);\n\n Assert.assertEquals(field.getFieldCode(), \" TEMPLATE \\\\p\");\n\n doc.updateFields();\n doc.save(getArtifactsDir() + \"Field.TEMPLATE.docx\");\n //ExEnd\n\n doc = new Document(getArtifactsDir() + \"Field.TEMPLATE.docx\");\n\n field = (FieldTemplate) doc.getRange().getFields().get(0);\n Assert.assertEquals(\" TEMPLATE \", field.getFieldCode());\n Assert.assertEquals(\"Normal.dotm\", field.getResult());\n\n field = (FieldTemplate) doc.getRange().getFields().get(1);\n Assert.assertEquals(\" TEMPLATE \\\\p\", field.getFieldCode());\n Assert.assertEquals(\"Normal.dotm\", field.getResult());\n }",
"public FieldsTemplateLibrary templateFieldLibraryById(Long idField) {\n\t\tFieldsTemplateLibraryDAO dao = new FieldsTemplateLibraryDAO();\n\t\treturn dao.getById(idField);\n\t}",
"public abstract void del(Field.RadioData radioData);",
"@Override\n\tpublic void delete(long id) throws Exception {\n\t\tfind(id);\n\n\t\t// check if the template component has been used\n\t\tList<GpProjectTemplate> list = getProjectTemplateService()\n\t\t\t\t.findByTemplate(id);\n\t\tif (list != null && !list.isEmpty()) {\n\t\t\tthrow new Exception(\n\t\t\t\t\t\"Template (ID=\"\n\t\t\t\t\t\t\t+ id\n\t\t\t\t\t\t\t+ \") can't be deleted. It has been used inside a Project Template.\");\n\t\t}\n\n\t\t// delete template components\n\t\tgetTemplateComponentService().deleteTemplateComponent(id);\n\n\t\t// delete template\n\t\tgetTemplateDao().delete(id);\n\t}",
"@Override\r\n\tpublic void delete( UserFields fields ) {\n\t\t\r\n\t}",
"void delete(String resourceGroupName, String virtualMachineTemplateName, Boolean force);",
"private static void deleteElement(ProjectElement element) {\r\n \t\tProject projectInternal = element.getProjectInternal();\r\n projectInternal.getElementsInternal().remove(element);\r\n \r\n deleteResource(element); \r\n \r\n projectInternal.eResource().setModified(true);\r\n \t}",
"void removeFieldBinding( FieldBinding binding );",
"@Override\n public void destroyObject(MongoTemplate obj) throws Exception {\n }",
"public void delete(Field field)\n\t{\n\t\tif (schema.get(field.getName())==null)\n\t\t\tthrow new IllegalArgumentException(\"No field exists: \"+field);\n\t\t\n\t\tSet<String> keys=new HashSet<String>(schema.keySet());\n\t\tfor (String s: keys)\n\t\t{\n\t\t\tField f=schema.get(s);\n\t\t\tif (f==field)\n\t\t\t{\n\t\t\t\tschema.remove(s);\n\t\t\t}\n\t\t}\n\t\t\n\t\tfieldList.remove(field);\n\t}",
"public static void destroyType() {\n\t\t\n\t}",
"void delete( int nIdFormResponse, Plugin plugin );",
"@Override\n\t\tpublic void delete() {\n\n\t\t}",
"void delete(String resourceGroupName, String virtualMachineTemplateName);",
"public boolean deletePalvelupisteet();",
"@Override\n\tpublic boolean deleteTag(TagInfo tInfo) {\n\t\treturn false;\n\t}",
"public void removeByTodoDocumentLibrary(String todoDocumentLibrary);",
"@Override\n public void deletePartida(String idPartida) {\n template.opsForHash().delete(idPartida, \"jugador1\");\n template.opsForHash().delete(idPartida, \"jugador2\");\n template.opsForSet().remove(\"partidas\",idPartida);\n }",
"void delete(String resourceGroupName, String virtualMachineTemplateName, Boolean force, Context context);",
"void delete(String typeName, String id);",
"void deleteFunctionLibrary(String functionLibraryName, String tenantDomain)\n throws FunctionLibraryManagementException;",
"private void createRowForDeleteButton(Composite compo)\n {\n buttonDelete = toolkit.createButton(section, \"Remove\", SWT.PUSH); //$NON-NLS-1$\n buttonGridData(buttonDelete, SWT.BOTTOM);\n buttonDelete.setEnabled(false);\n buttonDelete.addSelectionListener(new SelectionListener()\n {\n public void widgetDefaultSelected(SelectionEvent e)\n {\n }\n\n public void widgetSelected(SelectionEvent e)\n {\n tree.getChildren().remove(selectedRule);\n listFormat.refresh();\n buttonDelete.setEnabled(false);\n updateWizard();\n controller.removeDocumentType();\n }\n });\n }",
"public int deleteView(View view) {\n LinearLayout parentPage = (LinearLayout) view.getParent().getParent().getParent();\n LinearLayout slot = (LinearLayout) view.getParent().getParent();\n int index = parentPage.indexOfChild(slot);\n parentPage.removeViewAt(index);\n Context context = App.getContext();\n LogManager.reportStatus(context, \"TEMPLATEEDITOR\", \"onDelete\");\n return index;\n }",
"public void removeTemplate(ITuple template) {\n\t\tthis.takeHolder.removeLease(template);\n\t\tthis.readHolder.removeLease(template);\n\t}",
"@Override\r\n\tpublic void delete(Plate entity) {\n\t\t\r\n\t}",
"public ArrayList<FieldsTemplateLibrary> templateFieldLibraryByName(String name){\n\t\tFieldsTemplateLibraryDAO dao = new FieldsTemplateLibraryDAO();\n\t\tCollection<FieldsTemplateLibrary> collection = dao.getByName(name);\n\t\tArrayList<FieldsTemplateLibrary> responseList = new ArrayList<FieldsTemplateLibrary>(collection);\n\t\treturn responseList;\n\t}",
"@Override\n\tpublic void delete() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}",
"@Override\n\tpublic void deleteModule() throws Exception {\n\n\t}",
"public void deleteGeneratedFiles();",
"private String deleteQuery(String field) {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(\"delete\");\n\t\tsb.append(\" from \");\n\t\tsb.append(type.getSimpleName());\n\t\tsb.append(\" WHERE \" + field + \" =?\");\n\t\treturn sb.toString();\n\t}",
"public CampaignEditPage deleteEntryInProgramField()\r\n\t{\r\n\t\treadconfig();\t\r\n\t\t//counting the number of entry in the field\r\n\t\tint iCount = driver.findElements(By.xpath(library.getProperty(\"camp_edit_program_number\"))).size();\r\n\t\tSystem.out.println(\"**program: \"+iCount);\r\n\t\tfor (int i=0; i<iCount;i++)\r\n\t\t{\r\n\t\t\tdriver.findElement(By.xpath(library.getProperty(\"camp_edit_program\"))).sendKeys(Keys.BACK_SPACE);\r\n\t\t}\r\n\t\treturn new CampaignEditPage(driver);\r\n\t}",
"public void deleteRecord(IdentifiedRecordTemplate template,\n DataRecord deletedRecord) throws FormException {\n Connection con = null;\n \n try {\n GenericDataRecord record = (GenericDataRecord) deletedRecord;\n \n con = getConnection();\n deleteFieldRows(con, template, record);\n deleteRecordRows(con, template, record);\n \n } catch (ClassCastException e) {\n throw new FormException(\"GenericRecordSetManager\",\n \"form.EXP_UNKNOWN_TEMPLATE\", e);\n } catch (SQLException e) {\n throw new FormException(\"GenericRecordSetManager\",\n \"form.EXP_DELETE_FAILED\", e);\n } finally {\n closeConnection(con);\n }\n }",
"public void delete() {\n\n\t}",
"@Override\n\tpublic void deleteTmly(Tmly tmly) {\n\t\tString sql = \"delete from tmly where id_=?\";\n\t\tthis.jdbcTemplate.update(sql, new Object[] { tmly.getId() });\n\t}",
"public static void removeAllRegisteredTemplateElements() {\n availableTemplateElements.clear();\n }",
"@Override\n\tpublic void delete(List<Field> entity) {\n\t\t\n\t}",
"public void disassociateProductTemplate() {\n productToolOperation.removeChildProductTree(selectProductNode, planConfigBehavior);\n }",
"private static void deletePackageExamples(CmsBean cmsBean) throws Exception {\n }",
"public CampaignEditPage deleteEntryInBrandField()\r\n\t{\r\n\t\treadconfig();\t\r\n\t\t//counting the number of entry in the field\r\n\t\tint iCount = driver.findElements(By.xpath(library.getProperty(\"camp_edit_brand_number\"))).size();\r\n\t\tSystem.out.println(\"**brand: \"+iCount);\r\n\t\tfor (int i=0; i<iCount;i++)\r\n\t\t{\r\n\t\t\tdriver.findElement(By.xpath(library.getProperty(\"canp_edit_brand\"))).sendKeys(Keys.BACK_SPACE);\r\n\t\t}\r\n\t\treturn new CampaignEditPage(driver);\r\n\t}",
"@Override\n public void remove( )\n {\n FormPortletHome.getInstance( ).remove( this );\n }",
"public static void scriptDelete() {\n List<BeverageEntity> beverages = (List<BeverageEntity>) adminFacade.getAllBeverages();\n for (int i = 0; i < beverages.size(); i++) {\n System.out.println(\"delete : \" + beverages.get(i));\n adminFacade.removeBeverage(beverages.get(i));\n }\n List<DecorationEntity> decos = (List<DecorationEntity>) adminFacade.getAllDecorations();\n for (int i = 0; i < decos.size(); i++) {\n System.out.println(\"delete : \" + decos.get(i));\n adminFacade.removeDecoration(decos.get(i));\n }\n\n /* Check that there isn't any other cocktails, and delete remaining */\n List<CocktailEntity> cocktails = (List<CocktailEntity>) adminFacade.getAllCocktails();\n if (cocktails.size() > 0) {\n System.err.println(\"Les cocktails n'ont pas été tous supprimés... \"\n + cocktails.size() + \" cocktails restants :\");\n }\n for (int i = 0; i < cocktails.size(); i++) {\n CocktailEntity cocktail = adminFacade.getCocktailFull(cocktails.get(i));\n System.err.println(cocktail.getName() + \" : \"\n + cocktail.getDeliverables());\n adminFacade.removeCocktail(cocktail);\n }\n\n /* Remove client accounts */\n List<ClientAccountEntity> clients = (List<ClientAccountEntity>) adminFacade.getAllClients();\n for (int i = 0; i < clients.size(); i++) {\n adminFacade.removeClient(clients.get(i));\n }\n\n /* Remove addresses */\n List<AddressEntity> addresses = (List<AddressEntity>) adminFacade.getAllAddresses();\n for (int i = 0; i < addresses.size(); i++) {\n adminFacade.removeAddress(addresses.get(i));\n }\n\n /* TODO :\n * * Remove orders\n */\n }",
"void unsetControlType();",
"public void delete(int id){ \n\t\tActivity e=(Activity)template.get(Activity.class,id); \n\t template.delete(e); \n\t}",
"public void deleteCt() {\n\t\tlog.info(\"-----deleteCt()-----\");\n\t\t//int index = selected.getCtXuatKho().getCtxuatkhoThutu().intValue() - 1;\n\t\tlistCtKhoLeTraEx.remove(selected);\n\t\tthis.count = listCtKhoLeTraEx.size();\n\t\ttinhTien();\n\t}",
"@Override\r\n protected void delete_object( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response ) throws KANException\r\n {\n\r\n }",
"public static void migrateGPIOThingType() {\n ThingTypeTemplate thingTypeTemplateGPIO = getThingTypeTemplateGPIO();\n if (thingTypeTemplateGPIO != null) {\n ThingTypeTemplateService.getInstance().delete(thingTypeTemplateGPIO);\n }\n }",
"private void delete() {\n AltDatabase.getInstance().getAlts().remove(getCurrentAsEditable());\n if (selectedAccountIndex > 0)\n selectedAccountIndex--;\n updateQueried();\n updateButtons();\n }",
"public FieldsTemplateLibrary templateFieldLibraryUpdate(FieldsTemplateLibrary entity) {\n\t\tFieldsTemplateLibraryDAO dao = new FieldsTemplateLibraryDAO();\n\t\treturn dao.save(entity);\n\t}",
"public void delete();",
"public void delete();",
"public void delete();",
"public void delete();",
"public void delete();",
"public void delete();",
"public void remFile(){\n ((MvwDefinitionDMO) core).remFile();\n }",
"int deleteByExample(WfCfgModuleCatalogExample example);",
"public ArrayList<FieldsTemplateLibrary> templateFieldLibraryGetAll() {\n\t\tFieldsTemplateLibraryDAO dao = new FieldsTemplateLibraryDAO();\n\t\tCollection<FieldsTemplateLibrary> collection = dao.getAllFields();\n\t\tArrayList<FieldsTemplateLibrary> responseList = new ArrayList<FieldsTemplateLibrary>(collection);\n\t\treturn responseList;\n\t}",
"private void UpdateDeleteNestedValue(){\n notebookRef.document(\"IpWOjXtIgGJ2giKF4VTp\")\r\n // Note Remove the Element without the posiotion is not possible Because if multiple user remove the same name of field then it make issue So thats Why we pass Value \"New tag\"\r\n .update(KEY_Tags+\".tag1\", FieldValue.delete());// Now this key tag1 which is inside the tags is deleted key and its value\r\n\r\n }",
"public void deleteAssetClass(String name_);",
"@Override\n\tpublic void delete() {\n\n\t}",
"void deleteDaftarhunianDtl(DaftarhunianDtl.MyCompositePK no) {\n }",
"@Override\n\tpublic boolean delete(NPC_tmpl obj) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic void delete(Zone t) {\n\t\t\n\t}",
"private void unloadProject()\n {\n if (projectBuilder != null) {\n projectBuilder.database.close();\n projectBuilder = null;\n }\n\n if (projectSettingsPanel != null) {\n Container container = projectSettingsPanel.getParent();\n if (container != null)\n container.remove(projectSettingsPanel);\n projectSettingsPanel = null;\n }\n\n projectSettingsContainer.removeAll();\n generateButton.setEnabled(false);\n\n project = null;\n }",
"@Test\n public void unlinkAllFieldsInRange() throws Exception {\n Document doc = new Document(getMyDir() + \"Linked fields.docx\");\n\n Section newSection = (Section) doc.getSections().get(0).deepClone(true);\n doc.getSections().add(newSection);\n\n doc.getSections().get(1).getRange().unlinkFields();\n //ExEnd\n\n doc = DocumentHelper.saveOpen(doc);\n String secWithFields = DocumentHelper.getSectionText(doc, 1);\n\n Assert.assertTrue(secWithFields.trim().endsWith(\n \"Fields.Docx Элементы указателя не найдены. 3.\\rОшибка! Не указана последовательность. Fields.Docx Элементы указателя не найдены. 4.\"));\n }",
"void deleteTranslatedFiles(InformationResourceFile irFile);",
"public void deleteTag(String t) {\n\t\tif (tagList.containsKey(t)) {\n\t\t\tif (tagList.get(t) == 0) {\n\t\t\t\ttagList.remove(t);\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"There are images with this tag!\" + \"Please untag them before deleting tag.\");\n\t\t\t}\n\t\t} else {\n\t\t\tSystem.out.print(\"Tag does not exist!\");\n\t\t}\n\t}",
"@Override\n\tpublic void delete(Translator entity) {\n\t\t\n\t}",
"private void clearFields(){\r\n fields.forEach(e -> e.clear());\r\n }",
"@Override\r\n\tpublic void delete() {\n\r\n\t}"
] | [
"0.6775486",
"0.671913",
"0.62948316",
"0.61928785",
"0.6176512",
"0.6124189",
"0.6114423",
"0.5976712",
"0.5904643",
"0.5847796",
"0.5840514",
"0.5798739",
"0.5755478",
"0.5749065",
"0.57461065",
"0.56814486",
"0.5665698",
"0.566141",
"0.5661158",
"0.5639928",
"0.56289816",
"0.5618674",
"0.561262",
"0.5596759",
"0.5578574",
"0.55586773",
"0.55562466",
"0.5543661",
"0.5541154",
"0.55254525",
"0.55231744",
"0.54929",
"0.54866135",
"0.5485417",
"0.54822266",
"0.5480902",
"0.54763687",
"0.54636955",
"0.54545444",
"0.542984",
"0.54235077",
"0.54232216",
"0.5421382",
"0.54115015",
"0.54004675",
"0.5377558",
"0.5373121",
"0.53713214",
"0.53689396",
"0.5364522",
"0.5356664",
"0.53563917",
"0.5351327",
"0.53466904",
"0.5345196",
"0.5336787",
"0.532662",
"0.5326402",
"0.53253585",
"0.5323596",
"0.5321221",
"0.53067297",
"0.53003436",
"0.5297355",
"0.5292326",
"0.5287295",
"0.5286884",
"0.527645",
"0.52763736",
"0.5271069",
"0.5268552",
"0.5267716",
"0.52665865",
"0.52657586",
"0.52656305",
"0.5262114",
"0.5260585",
"0.5257219",
"0.525326",
"0.525326",
"0.525326",
"0.525326",
"0.525326",
"0.525326",
"0.5246815",
"0.52305835",
"0.52298516",
"0.52288765",
"0.52278304",
"0.5224233",
"0.5216281",
"0.5208128",
"0.5207295",
"0.52048534",
"0.5198498",
"0.5198471",
"0.5192093",
"0.51919633",
"0.51909274",
"0.5189787"
] | 0.70220727 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.