query
stringlengths 7
33.1k
| document
stringlengths 7
335k
| metadata
dict | negatives
listlengths 3
101
| negative_scores
listlengths 3
101
| document_score
stringlengths 3
10
| document_rank
stringclasses 102
values |
---|---|---|---|---|---|---|
Builds the drop statements for database objects in this schema.
|
private List<String> buildDropStatements(final String dropPrefix, final String query, String schema) throws SQLException {
List<String> dropStatements = new ArrayList<String>();
List<String> dbObjects = jdbcTemplate.queryForStringList(query);
for (String dbObject : dbObjects) {
dropStatements.add(dropPrefix + " " + dbSupport.quote(schema, dbObject));
}
return dropStatements;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n protected void doClean() throws SQLException {\n for (String dropStatement : generateDropStatements(name, \"V\", \"VIEW\")) {\n jdbcTemplate.execute(dropStatement);\n }\n\n // aliases\n for (String dropStatement : generateDropStatements(name, \"A\", \"ALIAS\")) {\n jdbcTemplate.execute(dropStatement);\n }\n\n for (Table table : allTables()) {\n table.drop();\n }\n\n // slett testtabeller\n for (String dropStatement : generateDropStatementsForTestTable(name, \"T\", \"TABLE\")) {\n jdbcTemplate.execute(dropStatement);\n }\n\n\n // tablespace\n for (String dropStatement : generateDropStatementsForTablespace(name)) {\n jdbcTemplate.execute(dropStatement);\n }\n\n // sequences\n for (String dropStatement : generateDropStatementsForSequences(name)) {\n jdbcTemplate.execute(dropStatement);\n }\n\n // procedures\n for (String dropStatement : generateDropStatementsForProcedures(name)) {\n jdbcTemplate.execute(dropStatement);\n }\n\n // functions\n for (String dropStatement : generateDropStatementsForFunctions(name)) {\n jdbcTemplate.execute(dropStatement);\n }\n\n // usertypes\n for (String dropStatement : generateDropStatementsForUserTypes(name)) {\n jdbcTemplate.execute(dropStatement);\n }\n }",
"private List<String> generateDropStatements(String schema, String tableType, String objectType) throws SQLException {\n String dropTablesGenQuery = \"select rtrim(NAME) from SYSIBM.SYSTABLES where TYPE='\" + tableType + \"' and (DBNAME = '\"\n + schema + \"' OR creator = '\" + schema + \"')\";\n return buildDropStatements(\"DROP \" + objectType, dropTablesGenQuery, schema);\n }",
"private List<String> generateDropStatementsForTablespace(String schema) throws SQLException {\n String dropTablespaceGenQuery = \"select rtrim(NAME) FROM SYSIBM.SYSTABLESPACE where DBNAME = '\" + schema + \"'\";\n return buildDropStatements(\"DROP TABLESPACE\", dropTablespaceGenQuery, schema);\n }",
"private List<String> generateDropStatementsForQueueTables() throws SQLException {\n List<String> statements = new ArrayList<String>();\n\n List<String> objectNames = jdbcTemplate.queryForStringList(\"SELECT QUEUE_TABLE FROM ALL_QUEUE_TABLES WHERE OWNER = ?\", name);\n for (String objectName : objectNames) {\n statements.add(\"BEGIN DBMS_AQADM.DROP_QUEUE_TABLE('\" + dbSupport.quote(name, objectName) + \"', FORCE => TRUE); END;\");\n }\n\n return statements;\n }",
"private List<String> generateDropStatementsForXmlTables() throws SQLException {\n List<String> dropStatements = new ArrayList<String>();\n\n List<String> objectNames = dbSupport.isXmlDbAvailable()\n ? jdbcTemplate.queryForStringList(\n \"SELECT TABLE_NAME FROM ALL_XML_TABLES WHERE OWNER = ? \" +\n // ALL_XML_TABLES shows objects in RECYCLEBIN, ignore them\n \"AND TABLE_NAME NOT LIKE 'BIN$________________________$_'\",\n name)\n : Collections.<String>emptyList();\n\n for (String objectName : objectNames) {\n dropStatements.add(generateDefaultDropStatement(\"TABLE\", objectName, \"CASCADE CONSTRAINTS PURGE\"));\n }\n return dropStatements;\n }",
"private List<String> generateDropStatementsForTestTable(String schema, String tableType, String objectType) throws SQLException {\n String dropTablesGenQuery = \"select rtrim(NAME) from SYSIBM.SYSTABLES where TYPE='\" + tableType + \"' and creator = '\"\n + schema + \"'\";\n return buildDropStatements(\"DROP \" + objectType, dropTablesGenQuery, schema);\n }",
"private List<String> generateDropStatementsForObjectType(String typeName, String dropOptions) throws SQLException {\n return generateDropStatementsForObjectType(typeName, dropOptions, getObjectsByType(typeName));\n }",
"private List<String> generateDropStatementsForUserTypes(String schema) throws SQLException {\n String dropTablespaceGenQuery = \"select rtrim(NAME) from SYSIBM.SYSDATATYPES where schema = '\" + schema + \"'\";\n return buildDropStatements(\"DROP TYPE\", dropTablespaceGenQuery, schema);\n }",
"protected void dropSchema() {\n PhysicalDataModel pdm = new PhysicalDataModel();\n buildCommonModel(pdm, dropFhirSchema, dropOauthSchema, dropJavaBatchSchema);\n\n try {\n try (Connection c = createConnection()) {\n try {\n JdbcTarget target = new JdbcTarget(c);\n IDatabaseAdapter adapter = getDbAdapter(dbType, target);\n\n if (this.dropSchema) {\n // Just drop the objects associated with the FHIRDATA schema group\n pdm.drop(adapter, FhirSchemaGenerator.SCHEMA_GROUP_TAG, FhirSchemaGenerator.FHIRDATA_GROUP);\n }\n\n if (dropAdmin) {\n // Just drop the objects associated with the ADMIN schema group\n pdm.drop(adapter, FhirSchemaGenerator.SCHEMA_GROUP_TAG, FhirSchemaGenerator.ADMIN_GROUP);\n }\n } catch (Exception x) {\n c.rollback();\n throw x;\n }\n c.commit();\n }\n } catch (SQLException x) {\n throw translator.translate(x);\n }\n }",
"public void dropDB() throws SQLException {\n\t \t\tStatement stmt = cnx.createStatement();\n\t \t\tString[] tables = {\"account\", \"consumer\", \"transaction\"};\n\t \t\tfor (int i=0; i<3;i++) {\n\t \t\t\tString query = \"DELETE FROM \" + tables[i];\n\t \t\t\tstmt.executeUpdate(query);\n\t \t\t}\n\t \t}",
"private List<String> generateDropStatementsForSchedulerJobs() throws SQLException {\n return generateDropStatementsForSchedulerJobs(getObjectsByType(\"JOB\"));\n }",
"private List<String> generateDropStatementsForProcedures(String schema) throws SQLException {\n String dropProcGenQuery = \"select rtrim(NAME) from SYSIBM.SYSROUTINES where CAST_FUNCTION = 'N' \" +\n \" and ROUTINETYPE = 'P' and SCHEMA = '\" + schema + \"'\";\n return buildDropStatements(\"DROP PROCEDURE\", dropProcGenQuery, schema);\n }",
"private List<String> generateDropStatementsForDomainIndexes() throws SQLException {\n List<String> dropStatements = new ArrayList<String>();\n\n List<String> objectNames = jdbcTemplate.queryForStringList(\n \"SELECT INDEX_NAME FROM ALL_INDEXES WHERE OWNER = ? AND INDEX_TYPE LIKE '%DOMAIN%'\", name);\n\n for (String objectName : objectNames) {\n dropStatements.add(generateDefaultDropStatement(\"INDEX\", objectName, \"FORCE\"));\n }\n return dropStatements;\n }",
"String getDropSql(String type, String name);",
"public void dropTables() {\n \t\ttry {\n \t\t\tdbManager.executeUpdate(\"DROP TABLE REVISION\");\n \t\t} catch (Exception e) {\n \t\t\t// e.printStackTrace();\n \t\t}\n \n \t\ttry {\n \t\t\tdbManager.executeUpdate(\"DROP TABLE VCS_COMMIT\");\n \t\t} catch (Exception e) {\n \t\t\t// e.printStackTrace();\n \t\t}\n \n \t\ttry {\n \t\t\tdbManager.executeUpdate(\"DROP TABLE FILE\");\n \t\t} catch (Exception e) {\n \t\t\t// e.printStackTrace();\n \t\t}\n \n \t\ttry {\n \t\t\tdbManager.executeUpdate(\"DROP TABLE CODE_FRAGMENT\");\n \t\t} catch (Exception e) {\n \t\t\t// e.printStackTrace();\n \t\t}\n \n \t\ttry {\n \t\t\tdbManager.executeUpdate(\"DROP TABLE CLONE_SET\");\n \t\t} catch (Exception e) {\n \t\t\t// e.printStackTrace();\n \t\t}\n \n \t\ttry {\n \t\t\tdbManager.executeUpdate(\"DROP TABLE CODE_FRAGMENT_LINK\");\n \t\t} catch (Exception e) {\n \t\t\t// e.printStackTrace();\n \t\t}\n \n \t\ttry {\n \t\t\tdbManager.executeUpdate(\"DROP TABLE CLONE_SET_LINK\");\n \t\t} catch (Exception e) {\n \t\t\t// e.printStackTrace();\n \t\t}\n \n \t\ttry {\n \t\t\tdbManager.executeUpdate(\"DROP TABLE CLONE_GENEALOGY\");\n \t\t} catch (Exception e) {\n \t\t\t// e.printStackTrace();\n \t\t}\n \n \t\ttry {\n \t\t\tdbManager.executeUpdate(\"DROP TABLE CODE_FRAGMENT_GENEALOGY\");\n \t\t} catch (Exception e) {\n \t\t\t// e.printStackTrace();\n \t\t}\n \n \t\ttry {\n \t\t\tdbManager.executeUpdate(\"DROP TABLE CRD\");\n \t\t} catch (Exception e) {\n \t\t\t// e.printStackTrace();\n \t\t}\n \n \t\ttry {\n \t\t\tdbManager.executeUpdate(\"VACUUM\");\n \t\t} catch (Exception e) {\n \t\t\t// e.printStackTrace();\n \t\t}\n \t}",
"private List<String> generateDropStatementsForNonDomainIndexes() throws SQLException {\n List<String> dropStatements = new ArrayList<String>();\n\n List<String> objectNames = jdbcTemplate.queryForStringList(\n \"SELECT INDEX_NAME FROM ALL_INDEXES WHERE OWNER = ? AND INDEX_TYPE NOT LIKE '%DOMAIN%'\", name);\n\n for (String objectName : objectNames) {\n dropStatements.add(generateDefaultDropStatement(\"INDEX\", objectName, \"\"));\n }\n return dropStatements;\n }",
"private List<String> generateDropStatementsForSequences(String schema) throws SQLException {\n String dropSeqGenQuery = \"select rtrim(NAME) from SYSIBM.SYSSEQUENCES where SCHEMA = '\" + schema\n + \"' and SEQTYPE='S'\";\n return buildDropStatements(\"DROP SEQUENCE\", dropSeqGenQuery, schema);\n }",
"private List<String> generateDropStatementsForMaterializedViewLogs() throws SQLException {\n List<String> dropStatements = new ArrayList<String>();\n\n List<String> objectNames = jdbcTemplate.queryForStringList(\n \"SELECT MASTER FROM ALL_MVIEW_LOGS WHERE LOG_OWNER = ?\", name);\n\n for (String objectName : objectNames) {\n dropStatements.add(generateDefaultDropStatement(\"MATERIALIZED VIEW LOG ON\", objectName, \"\"));\n }\n return dropStatements;\n }",
"private static void dropTablesFromDatabase (Statement statement) throws SQLException {\n //Удаление таблиц из БД\n statement.execute(\"DROP TABLE IF EXISTS payment;\");\n statement.execute(\"DROP TABLE IF EXISTS account;\");\n statement.execute(\"DROP TABLE IF EXISTS users;\");\n statement.execute(\"DROP TABLE IF EXISTS role;\");\n }",
"private List<String> generateDropStatementsForFunctions(String schema) throws SQLException {\n String dropProcGenQuery = \"select rtrim(NAME) from SYSIBM.SYSROUTINES where CAST_FUNCTION = 'N' \" +\n \" and ROUTINETYPE = 'F' and SCHEMA = '\" + schema + \"'\";\n return buildDropStatements(\"DROP FUNCTION\", dropProcGenQuery, schema);\n }",
"private List<String> generateDropStatementsForSchedulerJobs(List<String> prefetchedObjects) throws SQLException {\n List<String> statements = new ArrayList<String>();\n\n for (String objectName : prefetchedObjects) {\n statements.add(\"BEGIN DBMS_SCHEDULER.DROP_JOB('\" + dbSupport.quote(name, objectName) + \"', FORCE => TRUE); END;\");\n }\n\n return statements;\n }",
"private List<String> generateDropStatementsForObjectType(String typeName, String dropOptions, List<String> prefetchedObjects) throws SQLException {\n List<String> dropStatements = new ArrayList<String>();\n for (String objectName : prefetchedObjects) {\n dropStatements.add(generateDefaultDropStatement(typeName, objectName, dropOptions));\n }\n return dropStatements;\n }",
"private void processDrop() throws HsqlException {\n\n String token;\n boolean isview;\n\n session.checkReadWrite();\n session.checkAdmin();\n session.setScripting(true);\n\n token = tokenizer.getSimpleToken();\n isview = false;\n\n switch (Token.get(token)) {\n\n case Token.INDEX : {\n processDropIndex();\n\n break;\n }\n case Token.SCHEMA : {\n processDropSchema();\n\n break;\n }\n case Token.SEQUENCE : {\n processDropSequence();\n\n break;\n }\n case Token.TRIGGER : {\n processDropTrigger();\n\n break;\n }\n case Token.USER : {\n processDropUser();\n\n break;\n }\n case Token.ROLE : {\n database.getGranteeManager().dropRole(\n tokenizer.getSimpleName());\n\n break;\n }\n case Token.VIEW : {\n isview = true;\n } //fall thru\n case Token.TABLE : {\n processDropTable(isview);\n\n break;\n }\n default : {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n }\n }",
"public String getDropSQL(final boolean quoteNames) {\n return \"DROP TABLE \" + PgDiffUtils.getQuotedName(getName(), quoteNames)\n + \";\";\n }",
"private static void dropTheBase()\n\t{\n\t\ttry (MongoClient mongoClient = MongoClients.create())\n\t\t{\n\t\t\tmongoClient.getDatabase(\"TestDB\").drop();\n\t\t\tmongoClient.getDatabase(\"myDB\").drop();\n\t\t}\n\n\t\t//Dropping all Neo4j databases.\n\t\tProperties props = new Properties();\n\t\tprops.setProperty(DBProperties.SERVER_ROOT_URI, \"bolt://localhost:7687\");\n\t\tIDBAccess dbAccess = DBAccessFactory.createDBAccess(iot.jcypher.database.DBType.REMOTE, props, AuthTokens.basic(\"neo4j\", \"neo4j1\"));\n\t\ttry\n\t\t{\n\t\t\tdbAccess.clearDatabase();\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tdbAccess.close();\n\t\t}\n\n\t\tprops = new Properties();\n\t\tprops.setProperty(DBProperties.SERVER_ROOT_URI, \"bolt://localhost:11008\");\n\t\tdbAccess = DBAccessFactory.createDBAccess(DBType.REMOTE, props, AuthTokens.basic(\"neo4j\", \"neo4j1\"));\n\t\ttry\n\t\t{\n\t\t\tdbAccess.clearDatabase();\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tdbAccess.close();\n\t\t}\n\n\t\t//Dropping all SQL databases.\n\t\ttry (DSLContext connection = using(\"jdbc:sqlite:src/main/resources/sqliteDB/test.db\"))\n\t\t{\n\t\t\tconnection.dropTableIfExists(\"User\").execute();\n\t\t\tconnection.dropTableIfExists(\"MovieRate\").execute();\n\t\t\tconnection.dropTableIfExists(\"SeriesRate\").execute();\n\t\t\tconnection.dropTableIfExists(\"EpisodeRate\").execute();\n\t\t\tconnection.dropTableIfExists(\"MovieRole\").execute();\n\t\t\tconnection.dropTableIfExists(\"SeriesRole\").execute();\n\t\t\tconnection.dropTableIfExists(\"EpisodeRole\").execute();\n\t\t\tconnection.dropTableIfExists(\"Movie\").execute();\n\t\t\tconnection.dropTableIfExists(\"Series\").execute();\n\t\t\tconnection.dropTableIfExists(\"Episode\").execute();\n\t\t\tconnection.dropTableIfExists(\"Genre\").execute();\n\t\t\tconnection.dropTableIfExists(\"Quote\").execute();\n\t\t\tconnection.dropTableIfExists(\"Goof\").execute();\n\t\t\tconnection.dropTableIfExists(\"Trivia\").execute();\n\n\t\t}\n\t}",
"void dropAllTablesForAllConnections();",
"public void dropAll () {\n\t\tdbCol=mdb.getCollection(\"genericCollection\");\n\t\tif (dbCol.getIndexInfo().size()>0)\n\t\t\tdbCol.dropIndexes();\n\t\tdbCol.drop();\n\t\t\t \n\t\t\n\t}",
"void dropAllTables();",
"public String getDropSQL(DbObjectId objectId, boolean cascade) {\n\t\tStringBuffer sql = new StringBuffer();\n\t\tsql.append(\"DROP VIEW \");\n\t\tsql.append(objectId.getFullyQualifiedName());\n\t\tif (m_connection.supportsSchemas()) {\n\t\t\tif (cascade)\n\t\t\t\tsql.append(\" CASCADE\");\n\t\t}\n\n\t\tsql.append(';');\n\t\treturn sql.toString();\n\t}",
"public void dropDataBase(String databaseName);",
"public void dropAllTables(SQLiteDatabase db){\n dropTable(db, TABLE_SUBSCRIPTIONS);\r\n }",
"public void dropTables()\n {\n String tableName;\n\n for (int i=0; i<tableNames.length; i++)\n {\n tableName = tableNames[i];\n System.out.println(\"Dropping table: \" + tableName);\n try\n {\n Statement statement = connect.createStatement();\n\n String sql = \"DROP TABLE \" + tableName;\n\n statement.executeUpdate(sql);\n }\n catch (SQLException e)\n {\n System.out.println(\"Error dropping table: \" + e);\n }\n }\n }",
"private String generateDefaultDropStatement(String typeName, String objectName, String dropOptions) {\n return \"DROP \" + typeName + \" \" + dbSupport.quote(name, objectName) + \" \" +\n (StringUtils.hasText(dropOptions) ? dropOptions : \"\");\n }",
"private void deleteOldTables(){\n jdbcTemplate.execute(\"DROP TABLE OLDcompetence\");\n jdbcTemplate.execute(\"DROP TABLE OLDrole\");\n jdbcTemplate.execute(\"DROP TABLE OLDperson\");\n jdbcTemplate.execute(\"DROP TABLE OLDavailability\");\n jdbcTemplate.execute(\"DROP TABLE OLDcompetence_profile\");\n }",
"void dropDatabase();",
"public void dropDatabase(String dbName) throws Exception;",
"public static void dropTable(SQLiteDatabase db, Class<?> clz) {\n ArrayList<String> stmts=getDropTableStatms(clz);\n for (String stmt : stmts) {\n db.execSQL(stmt);\n }\n }",
"public void dropTable(DropTableQuery query);",
"private void dropDBProcedure() {\r\n try {\r\n Class.forName(myDriver);\r\n Connection conn = DriverManager.getConnection(myUrl, myUser, myPass);\r\n DatabaseMetaData md = conn.getMetaData();\r\n String[] types = {\"TABLE\"};\r\n ResultSet rs = md.getTables(null, \"USERTEST\", \"%\", types);\r\n while (rs.next()) {\r\n String queryDrop\r\n = \"DROP TABLE \" + rs.getString(3);\r\n Statement st = conn.createStatement();\r\n st.executeQuery(queryDrop);\r\n System.out.println(\"TABLE \" + rs.getString(3).toLowerCase() + \" DELETED\");\r\n st.close();\r\n }\r\n rs.close();\r\n conn.close();\r\n } catch (ClassNotFoundException | SQLException ex) {\r\n System.out.println(ex.toString());\r\n }\r\n }",
"public void dropAllCreateAgain() {\n\t\tSQLiteDatabase db = getWritableDatabase() ;\n\t\tdb.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_ABSTRACT_DETAILS);\n\t\tdb.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_AUTHORS_DETAILS);\n\t\tdb.execSQL(\"DROP TABLE IF EXISTS \"\n\t\t\t\t+ TABLE_ABSTRACT_AUTHOR_POSITION_AFFILIATION);\n\t\tdb.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_AFFILIATION_DETAILS);\n\t\tdb.execSQL(\"DROP TABLE IF EXISTS \"\n\t\t\t\t+ TABLE_ABSTRACT_AFFILIATION_ID_POSITION);\n\t\tdb.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_ABSTRACT_REFERENCES);\n\t\tdb.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_ABSTRACT_FIGURES);\n\t\tonCreate(db);\n\t\t}",
"public void removeLifeloggingTables() throws SQLException {\n\n\t\tString sqlCommand1 = \"DROP TABLE IF EXISTS minute\";\n\t\tString sqlCommand2 = \"DROP TABLE IF EXISTS image\";\n\t\tStatement stmt = this.connection.createStatement();\n\n\t\tstmt.execute(sqlCommand2);\n\t\tstmt.execute(sqlCommand1);\n\t\tstmt.close();\n\t}",
"public void DropTables() {\n\t\ttry {\n\t\t\tDesinstall_DBMS_MetaData();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Override\n public void deleteAll(final Connection _con) throws SQLException {\n\n final Statement stmtSel = _con.createStatement();\n final Statement stmtExec = _con.createStatement();\n\n try {\n // remove all foreign keys\n if (LOG.isInfoEnabled()) {\n LOG.info(\"Remove all Foreign Keys\");\n }\n ResultSet rs = stmtSel.executeQuery(SELECT_ALL_KEYS);\n while (rs.next()) {\n final String tableName = rs.getString(1);\n final String constrName = rs.getString(2);\n if (LOG.isDebugEnabled()) {\n LOG.debug(\" - Table '\" + tableName + \"' Constraint '\" + constrName + \"'\");\n }\n stmtExec.execute(\"alter table \" + tableName + \" drop constraint \" + constrName);\n }\n rs.close();\n\n // remove all views\n if (LOG.isInfoEnabled()) {\n LOG.info(\"Remove all Views\");\n }\n rs = stmtSel.executeQuery(SELECT_ALL_VIEWS);\n while (rs.next()) {\n final String viewName = rs.getString(1);\n if (LOG.isDebugEnabled()) {\n LOG.debug(\" - View '\" + viewName + \"'\");\n }\n stmtExec.execute(\"drop view \" + viewName);\n }\n rs.close();\n\n // remove all tables\n if (LOG.isInfoEnabled()) {\n LOG.info(\"Remove all Tables\");\n }\n rs = stmtSel.executeQuery(SELECT_ALL_TABLES);\n while (rs.next()) {\n final String tableName = rs.getString(1);\n if (LOG.isDebugEnabled()) {\n LOG.debug(\" - Table '\" + tableName + \"'\");\n }\n stmtExec.execute(\"drop table \" + tableName);\n }\n rs.close();\n } finally {\n stmtSel.close();\n stmtExec.close();\n }\n }",
"private void dropTables(SQLiteDatabase db) {\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_NEWS);\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_FEEDS);\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_CATEGORIES);\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_IMAGES);\n }",
"@Override\n public String[] getDropSequenceSQL(Sequence seq) {\n if (firebirdVersion == FB_VERSION_15)\n return new String[] { dropSequenceSQLFB15 + getFullName(seq) };\n return super.getDropSequenceSQL(seq);\n }",
"public void doDropTable();",
"public void dropTable(Class<?>[] clzs) {\n\t\tfor (Class<?> clz : clzs)\n\t\t\tdropTable(clz);\n\t}",
"public void drop(Connection db, boolean dropSequence) throws SQLException {\n Statement st = db.createStatement();\n\n //drop the table\n st.executeUpdate(\"DROP TABLE \" + tableName);\n\n if (dbType == DatabaseUtils.POSTGRESQL) {\n if (hasSequence() && dropSequence) {\n //TODO: Not all versions of postgres supported by centric, supports IF EXISTS. Need a better solution\n //drop the sequence\n st.executeUpdate(\"DROP SEQUENCE IF EXISTS \" + sequenceName);\n }\n }\n st.close();\n }",
"public static void dropAllTables(Database db, boolean ifExists) {\n DiaryReviewDao.dropTable(db, ifExists);\n EncourageSentenceDao.dropTable(db, ifExists);\n ImportDateDao.dropTable(db, ifExists);\n ScheduleTodoDao.dropTable(db, ifExists);\n TargetDao.dropTable(db, ifExists);\n TomatoTodoDao.dropTable(db, ifExists);\n UpTempletDao.dropTable(db, ifExists);\n UserDao.dropTable(db, ifExists);\n }",
"public static void deleteSchema(Bdd bd) {\n\r\n Session session = HibernateUtils.getSessionFactory().openSession();\r\n String SQLRequest = \"DROP SCHEMA \" + bd.getNom() + \" ;\";\r\n session.beginTransaction();\r\n session.createSQLQuery(SQLRequest).executeUpdate();\r\n session.getTransaction().commit();\r\n session.close();\r\n bd = null;\r\n BddDAO bddDao = new BddDAO();\r\n bddDao.deleteBdd(bd);\r\n\r\n }",
"public void dropAndCreate(SQLiteDatabase db) {\n\t\tfor (TableHelper th : getTableHelpers()) {\n\t\t\tth.dropAndCreate(db);\n\t\t}\n\t}",
"protected String appendToSQL92DropStatement(SQLDataSource dataSource)\n {\n // by default do nothing\n return \"\";\n }",
"public void dropTable();",
"public static void dropAllTables(SQLiteDatabase db, boolean ifExists) {\n UserDao.dropTable(db, ifExists);\n TopCategoriesDao.dropTable(db, ifExists);\n CategoriesDao.dropTable(db, ifExists);\n BrandsDao.dropTable(db, ifExists);\n StoreDao.dropTable(db, ifExists);\n PostDao.dropTable(db, ifExists);\n ProductDao.dropTable(db, ifExists);\n BrandUpdatesDao.dropTable(db, ifExists);\n TipsDao.dropTable(db, ifExists);\n RelatedProductsDao.dropTable(db, ifExists);\n PostCollectionDao.dropTable(db, ifExists);\n }",
"private void DropEverything() throws isisicatclient.IcatException_Exception {\n List<Object> allGroupsResults = port.search(sessionId, \"Grouping\");\r\n List tempGroups = allGroupsResults;\r\n List<EntityBaseBean> allGroups = (List<EntityBaseBean>) tempGroups;\r\n port.deleteMany(sessionId, allGroups);\r\n\r\n //Drop all rules\r\n List<Object> allRulesResults = port.search(sessionId, \"Rule\");\r\n List tempRules = allRulesResults;\r\n List<EntityBaseBean> allRules = (List<EntityBaseBean>) tempRules;\r\n port.deleteMany(sessionId, allRules);\r\n\r\n //Drop all public steps\r\n List<Object> allPublicStepResults = port.search(sessionId, \"PublicStep\");\r\n List tempPublicSteps = allPublicStepResults;\r\n List<EntityBaseBean> allPublicSteps = (List<EntityBaseBean>) tempPublicSteps;\r\n port.deleteMany(sessionId, allPublicSteps);\r\n }",
"public void dropTable() {\n }",
"private void dropMergeTables() {\n // [2012/4/30 - ysahn] Comment this when testing, if you want to leave the temp tables\n\n try {\n callSP(buildSPCall(DROP_MAP_TABLES_PROC));\n } catch (SQLException exception) {\n logger.error(\"Error dropping id mapping tables. \", exception);\n }\n\n try {\n callSP(buildSPCall(DROP_HELPER_TABLES_PROC));\n } catch (SQLException exception) {\n logger.error(\"Error dropping id mapping tables. \", exception);\n }\n }",
"public void drop() {\n SQLiteDatabase db = this.getWritableDatabase();\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_NAME);\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_NAME1);\n onCreate(db);\n }",
"abstract void dropTable() throws SQLException;",
"private static void removeDB()\n {\n if(getStatus().equals(\"no database\"))\n return;\n\n dropTable(\"myRooms\");\n dropTable(\"myReservations\");\n }",
"protected void onDrop(SQLiteDatabase db) {\n\t\tdb.execSQL(dropSql());\n\t}",
"@Override\n\tpublic void dropTable() {\n\t\ttry {\n\t\t\tTableUtils.dropTable(connectionSource, UserEntity.class, true);\n\t\t\tTableUtils.dropTable(connectionSource, Downloads.class, true);\n\t\t} catch (SQLException e) {\n\t\t}\n\t}",
"public void clearDatabase() {\n\n\t\tObjectSet<Article> articles = db.query(Article.class);\n\t\tarticles.stream()\n\t\t\t.forEach(db::delete);\n\n\t\tObjectSet<CreditCard> creditCards = db.query(CreditCard.class);\n\t\tcreditCards.stream()\n\t\t\t.forEach(db::delete);\n\n\t\tObjectSet<Customer> customers = db.query(Customer.class);\n\t\tcustomers.stream()\n\t\t\t.forEach(db::delete);\n\n\t\tObjectSet<Order> orders = db.query(Order.class);\n\t\torders.stream()\n\t\t\t.forEach(db::delete);\n\n\t\tObjectSet<OrderDetail> orderDetails = db.query(OrderDetail.class);\n\t\torderDetails.stream()\n\t\t\t.forEach(db::delete);\n\t\t\n\t\tSystem.out.println(\"\\nBase de dades esborrada per complet\");\n\t}",
"public static void dropAllTables(SQLiteDatabase db, boolean ifExists) {\n UserDao.dropTable(db, ifExists);\n SbjectDao.dropTable(db, ifExists);\n SourceDao.dropTable(db, ifExists);\n }",
"@AfterEach\n void dropAllTablesAfter() throws SQLException {\n Connection connPlayers = individualPlayerScraper.setNewConnection(\"playertest\");\n ResultSet rsTables = connPlayers.prepareStatement(\"SHOW TABLES\").executeQuery();\n while (rsTables.next()) {\n connPlayers.prepareStatement(\"DROP TABLE \" + rsTables.getString(1)).execute();\n }\n rsTables.close();\n connPlayers.close();\n }",
"@Override\r\n\tpublic void deleteDatabase() {\r\n\t\tlog.info(\"Enter deleteDatabase\");\r\n\r\n\t\t\r\n\t\tConnection connection = null;\t\t\r\n\t\ttry {\r\n\t\t\tconnection = jndi.getConnection(\"jdbc/libraryDB\");\t\t\r\n\t\t\t\r\n\r\n\t\t\t \r\n\t\t\t\tPreparedStatement pstmt = connection.prepareStatement(\"Drop Table Users_Table; \"); \r\n\t\t\t\tpstmt.executeUpdate();\r\n\t\t\t\t\r\n\t\t\t\tpstmt = connection.prepareStatement(\"Drop Table Cams_Table; \"); \r\n\t\t\t\tpstmt.executeUpdate();\r\n\t\t\t\t\r\n\t\t\t\tpstmt = connection.prepareStatement(\"Drop Table User_Cam_Mapping_Table; \"); \r\n\t\t\t\tpstmt.executeUpdate();\r\n\t\t\t\t\r\n\t\t\t\tpstmt = connection.prepareStatement(\"Drop Table Cam_Images_Table; \"); \r\n\t\t\t\tpstmt.executeUpdate();\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(\"Datenbank wurde erfolgreich zurueckgesetzt!\");\t\t\t\t\r\n\t\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(\"Fehler: \"+e.getMessage());\r\n\t\t\tlog.error(\"Error: \"+e.getMessage());\r\n\t\t} finally {\r\n\t\t\tcloseConnection(connection);\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\n public String[] getDropColumnSQL(Column column) {\n return new String[] { \"ALTER TABLE \"\n + getFullName(column.getTable(), false) + \" DROP \" + getColumnDBName(column) };\n }",
"public void removeAll()\r\n {\n db = this.getWritableDatabase(); // helper is object extends SQLiteOpenHelper\r\n db.execSQL(\"drop table \"+\"campaing\");\r\n db.execSQL(\"drop table \"+\"cafe\");\r\n db.execSQL(\"drop table \"+\"points\");\r\n\r\n db.close ();\r\n }",
"@Override\n\tpublic void deleteAll() {\n\t\tmDB.execSQL(\"DROP TABLE EVENT\");\n\t}",
"public void drop(Connection db) throws SQLException {\n drop(db, true);\n }",
"public void dropSQLtable(Connection conn, String dataid, String tablename) throws SQLException\n\t\t{\n\t\tStringBuffer dropTable=new StringBuffer();\n\t\tdropTable.append(\"drop table \"+tablename+\";\");\n\t\tPreparedStatement stmDropTable=conn.prepareStatement(dropTable.toString());\n\t\tstmDropTable.execute();\n\t\t}",
"@BeforeAll\n void dropAllTablesBefore() throws SQLException {\n Connection connPlayers = individualPlayerScraper.setNewConnection(\"playertest\");\n ResultSet rsTables = connPlayers.prepareStatement(\"SHOW TABLES\").executeQuery();\n while (rsTables.next()) {\n connPlayers.prepareStatement(\"DROP TABLE \" + rsTables.getString(1)).execute();\n }\n rsTables.close();\n connPlayers.close();\n }",
"@Override\n\tpublic void dropAndDestroy() {\n\n\t}",
"public static void dropAllTables(SQLiteDatabase db, boolean ifExists) {\n CriuzesDao.dropTable(db, ifExists);\n Criuzes_TMPDao.dropTable(db, ifExists);\n CabinsDao.dropTable(db, ifExists);\n Cabins_TMPDao.dropTable(db, ifExists);\n ExcursionsDao.dropTable(db, ifExists);\n Excursions_TMPDao.dropTable(db, ifExists);\n GuestsDao.dropTable(db, ifExists);\n Guests_TMPDao.dropTable(db, ifExists);\n }",
"public String[] getDatabaseCleanScripts() throws AdaFrameworkException {\r\n\t\tString[] returnedValue = null;\r\n\t\tList<String> scriptsList = new ArrayList<String>();\r\n\t\t\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tString[] existingTables = getTables();\r\n\t\t\tif (existingTables != null && existingTables.length > 0) {\r\n\t\t\t\tif (processedTables != null && processedTables.size() > 0) {\r\n\t\t\t\t\tfor(String databaseTable : existingTables) {\r\n\t\t\t\t\t\tboolean tableFound = false;\r\n\t\t\t\t\t\tfor (String modelTable : processedTables) {\r\n\t\t\t\t\t\t\tif (databaseTable.trim().toLowerCase().equals(modelTable.trim().toLowerCase())) {\r\n\t\t\t\t\t\t\t\ttableFound = true;\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\t\r\n\t\t\t\t\t\tif (!tableFound) {\r\n\t\t\t\t\t\t\tif (!databaseTable.contains(DataUtils.DATABASE_LINKED_TABLE_NAME_PREFIX)) {\r\n\t\t\t\t\t\t\t\tscriptsList.add(String.format(DataUtils.DATABASE_DROP_TABLE_PATTERN, databaseTable));\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\t\r\n\t\t\tif (scriptsList.size() > 0) {\r\n\t\t\t\treturnedValue = scriptsList.toArray(new String[scriptsList.size()]);\r\n\t\t\t}\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\tExceptionsHelper.manageException(e);\r\n\t\t} finally {\r\n\t\t\tscriptsList.clear();\r\n\t\t\tscriptsList = null;\r\n\t\t}\r\n\t\t\r\n\t\treturn returnedValue;\r\n\t}",
"public List dropAutoPkStatements(List dbEntities) {\n return Collections.EMPTY_LIST;\n }",
"public void dropTable(String tableName);",
"@Modifying\n @Transactional\n @Query(\"DELETE FROM \" + dbName)\n void deleteAllFromTable();",
"private static ORMSQLContext buildDeleteColumnList(Object obj, com.corm.mapping.generated.Class clazz){\n\t\tString table = clazz.getColumnFamily();\n\t\tStringBuilder builder = new StringBuilder();\n\t\tbuilder.append(\"DELETE FROM \" + table+\" where \" );\n\n\t\tSet<com.corm.mapping.generated.Column> properties = ORMPropertyListBuilder.buildDelete(obj, clazz.getName());\n\n\t\tfor(com.corm.mapping.generated.Column column: properties){\n\t\t\tString name = column.getName();\n\t\t\tbuilder.append(name).append(\"=? AND \");\t\t\t\n\t\t}\n\t\t\n\n\t\tbuilder.trimToSize();\t\t\n\n\t\tint backTrack=(properties.size() == 0)?4:0;\n\t\t\n\t\t\n\t\tString sql=builder.substring(0,builder.length() -backTrack) ;\n\t\t\n\t\treturn new ORMSQLContext(sql,properties);\n\t\t\n\t}",
"public static String buildDeleteSql(Object object)\r\n\t\t\tthrows IllegalAccessException, InvocationTargetException, NoSuchMethodException {\r\n\t\tif (null == object) {\r\n\t\t\tthrow new BuildSqlException(BuildSqlExceptionEnum.nullObject);\r\n\t\t}\r\n\t\tMap<?, ?> dtoFieldMap = PropertyUtils.describe(object);\r\n\t\tTableMapper tableMapper = buildTableMapper(getTableMappedClass(object.getClass()));\r\n\t\tString tableName = tableMapper.getTableName();\r\n\r\n\t\tStringBuffer sql = new StringBuffer();\r\n\r\n\t\tsql.append(DELETE_FROM_).append(tableName).append(WHERE_);\r\n\t\tfor (FieldMapper fieldMapper : tableMapper.getUniqueKeyNames()) {\r\n\t\t\tsql.append(fieldMapper.getDbFieldName());\r\n\t\t\tObject value = dtoFieldMap.get(fieldMapper.getFieldName());\r\n\t\t\tif (value == null) {\r\n\t\t\t\tthrow new BuildSqlException(new StringBuffer(BuildSqlExceptionEnum.deleteUniqueKeyIsNull.toString())\r\n\t\t\t\t\t\t.append(fieldMapper.getDbFieldName()).toString());\r\n\t\t\t}\r\n\t\t\tsql.append(EQUAL_POUND_OPENBRACE).append(fieldMapper.getFieldName()).append(COMMA).append(JDBCTYPE_EQUAL)\r\n\t\t\t\t\t.append(fieldMapper.getJdbcType().toString()).append(CLOSEBRACE_AND_);\r\n\t\t}\r\n\t\tfor (FieldMapper f : tableMapper.getOpVersionLocks()) {\r\n\t\t\tsql.append(f.getDbFieldName()).append(EQUAL_POUND_OPENBRACE).append(f.getFieldName())\r\n\t\t\t\t\t.append(CLOSEBRACE_AND_);\r\n\t\t}\r\n\t\tsql.delete(sql.lastIndexOf(AND), sql.lastIndexOf(AND) + 3);\r\n\t\treturn sql.toString();\r\n\t}",
"private void truncateTable(Statement st) throws SQLException {\n String sql = \"truncate table buidling;truncate table photo;truncate table PHOTOGRAPHER;\";\n// System.out.println(sql);\n st.addBatch(\"truncate table building\");\n st.addBatch(\"truncate table photo\");\n st.addBatch(\"truncate table photographer\");\n st.executeBatch();\n }",
"protected void dropDetachedPartitionTables() {\n\n TenantInfo tenantInfo = getTenantInfo(); \n \n FhirSchemaGenerator gen = new FhirSchemaGenerator(adminSchemaName, tenantInfo.getTenantSchema());\n PhysicalDataModel pdm = new PhysicalDataModel();\n gen.buildSchema(pdm);\n\n dropDetachedPartitionTables(pdm, tenantInfo);\n }",
"@After\n public void tearDown() {\n try(Connection con = DB.sql2o.open()) {\n String deleteClientsQuery = \"DELETE FROM clients *;\";\n String deleteStylistsQuery = \"DELETE FROM stylists *;\";\n con.createQuery(deleteClientsQuery).executeUpdate();\n con.createQuery(deleteStylistsQuery).executeUpdate();\n }\n }",
"private static void dropTables(Connection conn)\n {\n System.out.println(\"Checking for existing tables.\");\n\n try\n {\n // Get a Statement object.\n Statement stmt = conn.createStatement();\n\n try\n {\n stmt.execute(\"DROP TABLE Cart\");\n System.out.println(\"Cart table dropped.\");\n } catch (SQLException ex)\n {\n // No need to report an error.\n // The table simply did not exist.\n }\n\n try\n {\n stmt.execute(\"DROP TABLE Products\");\n System.out.println(\"Products table dropped.\");\n } catch (SQLException ex)\n {\n // No need to report an error.\n // The table simply did not exist.\n }\n } catch (SQLException ex)\n {\n System.out.println(\"ERROR: \" + ex.getMessage());\n ex.printStackTrace();\n }\n }",
"@Override\n\tpublic void dropIndex(Object connectionHandle, Identifier indexName)\n\t\t\tthrows DataSourceException {\n\t\tStringBuffer buff = new StringBuffer();\n\t\t\n\t\tbuff.append(\"DROP INDEX \");\n\t\tbuff.append(indexName.getName());\n\t\t\n\t\tAlinousDebug.debugOut(core, buff.toString());\n\t\texecuteUpdateSQL(connectionHandle, buff.toString(), false);\n\t}",
"@Test\n public void testDropDatabaseWithCascade() throws Exception {\n String dbName = \"db\" + random();\n\n runCommand(\"create database \" + dbName + \" WITH DBPROPERTIES ('p1'='v1')\");\n\n int numTables = 10;\n String[] tableNames = new String[numTables];\n\n for(int i = 0; i < numTables; i++) {\n tableNames[i] = createTable(true, true, false);\n }\n\n String query = String.format(\"drop database %s cascade\", dbName);\n\n runCommand(query);\n\n //Verify columns are not registered for one of the tables\n assertColumnIsNotRegistered(HiveMetaStoreBridge.getColumnQualifiedName(HiveMetaStoreBridge.getTableQualifiedName(CLUSTER_NAME, dbName, tableNames[0]), \"id\"));\n assertColumnIsNotRegistered(HiveMetaStoreBridge.getColumnQualifiedName(HiveMetaStoreBridge.getTableQualifiedName(CLUSTER_NAME, dbName, tableNames[0]), NAME));\n\n for(int i = 0; i < numTables; i++) {\n assertTableIsNotRegistered(dbName, tableNames[i]);\n }\n\n assertDatabaseIsNotRegistered(dbName);\n }",
"public void deleteAll() {\n try (Connection connection = dataSource.getConnection();\n Statement statement = connection.createStatement()) {\n statement.execute(INIT.DELETE_ALL.toString());\n } catch (SQLException e) {\n logger.error(e.getMessage(), e);\n }\n }",
"public static void dropAllTables(SQLiteDatabase db, boolean ifExists) {\n\t\tProvinceDao.dropTable(db, ifExists);\n\t\tCityDao.dropTable(db, ifExists);\n\t\tCityAreaDao.dropTable(db, ifExists);\n\t}",
"public static void delatetable() \n { \n \n \ttry \n { \n Statement stmt=null; \n ResultSet res=null; \n Class.forName(\"com.mysql.jdbc.Driver\"); \n Connection conn = DriverManager.getConnection(sqldatabase,mysqluser,mysqlpassword); \n stmt = (Statement)conn.createStatement(); \n// res= stmt.executeQuery(\"SELECT * from entity \"); \n String query1 = \"delete from entity\";\n String query2 = \"delete from deepmodel\";\n String query3 = \"delete from level\";\n String query4 = \"delete from package\";\n String query5 = \"delete from attribute\";\n String query6 = \"delete from binaryconnection\";\n String query7 = \"delete from inheritanceparticipation\";\n String query8 = \"delete from inheritancerelationship\";\n String query9 = \"delete from method\";\n String query10 = \"delete from generalconnection\";\n String query11 = \"delete from participation\";\n PreparedStatement preparedStmt1 = conn.prepareStatement(query1);\n PreparedStatement preparedStmt2 = conn.prepareStatement(query2);\n PreparedStatement preparedStmt3 = conn.prepareStatement(query3);\n PreparedStatement preparedStmt4 = conn.prepareStatement(query4);\n PreparedStatement preparedStmt5 = conn.prepareStatement(query5);\n PreparedStatement preparedStmt6 = conn.prepareStatement(query6);\n PreparedStatement preparedStmt7 = conn.prepareStatement(query7);\n PreparedStatement preparedStmt8 = conn.prepareStatement(query8);\n PreparedStatement preparedStmt9 = conn.prepareStatement(query9);\n PreparedStatement preparedStmt10 = conn.prepareStatement(query10);\n PreparedStatement preparedStmt11 = conn.prepareStatement(query11);\n preparedStmt1.execute();\n preparedStmt2.execute();\n preparedStmt3.execute();\n preparedStmt4.execute();\n preparedStmt5.execute();\n preparedStmt6.execute();\n preparedStmt7.execute();\n preparedStmt8.execute();\n preparedStmt9.execute();\n preparedStmt10.execute();\n preparedStmt11.execute();\n \n } \n \n catch(Exception ex) \n { \n ex.printStackTrace(); \n } \n}",
"private void clearAllDatabases()\n\t{\n\t\tdb.clear();\n\t\tstudent_db.clear();\n\t}",
"@Override\n protected void dropSequences(DbEntity entity) throws DatabaseEngineException {\n }",
"@Override\n public void dropUsersTable() {\n\n Session session = sessionFactory.openSession();\n Transaction tx = session.beginTransaction();\n session.createSQLQuery(\"DROP TABLE IF EXISTS Users\").executeUpdate();\n tx.commit();\n session.close();\n\n }",
"@Test(timeout = 4000)\n public void test114() throws Throwable {\n DefaultDBTable defaultDBTable0 = new DefaultDBTable(\"drop tablealter materkalized viewjcsh%4%|@v9 as alter materkalized on drop tablealter materkalized viewjcsh%4%|@v9.java.lang.Object@4d3d5d29 = alter materkalized .java.lang.Object@4d3d5d29 and drop tablealter materkalized viewjcsh%4%|@v9.java.lang.Object@4d3d5d29 = alter materkalized .java.lang.Object@4d3d5d29 and drop tablealter materkalized viewjcsh%4%|@v9.java.lang.Object@4d3d5d29 = alter materkalized .java.lang.Object@4d3d5d29\");\n NameSpec nameSpec0 = NameSpec.ALWAYS;\n File file0 = FileUtil.canonicalFile(\"drop tablealter materkalized viewjcsh%4%|@v9 as alter materkalized on drop tablealter materkalized viewjcsh%4%|@v9.java.lang.Object@4d3d5d29 = alter materkalized .java.lang.Object@4d3d5d29 and drop tablealter materkalized viewjcsh%4%|@v9.java.lang.Object@4d3d5d29 = alter materkalized .java.lang.Object@4d3d5d29 and drop tablealter materkalized viewjcsh%4%|@v9.java.lang.Object@4d3d5d29 = alter materkalized .java.lang.Object@4d3d5d29\");\n MockFileOutputStream mockFileOutputStream0 = new MockFileOutputStream(file0, true);\n MockPrintWriter mockPrintWriter0 = new MockPrintWriter(mockFileOutputStream0, false);\n SQLUtil.renderCreateTable(defaultDBTable0, true, nameSpec0, mockPrintWriter0);\n assertNull(defaultDBTable0.getDoc());\n }",
"boolean dropTable();",
"public void testDrop() {\n\t\ttry {\n\t\t\tServerParameterTDG.create();\n\t\t\tassertTrue(DbRegistry.hasTable(ServerParameterTDG.TABLE));\n\t\t\tServerParameterTDG.drop();\n\t\t\tassertFalse(DbRegistry.hasTable(ServerParameterTDG.TABLE));\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\tfail();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tServerParameterTDG.drop();\n\t\t\t} catch (SQLException e) {\n\t\t\t}\n\t\t}\n\t}",
"@AfterEach\n\tpublic void tearThis() throws SQLException {\n\t\tbookDaoImpl.delete(testBook);\n\t\tbranchDaoImpl.delete(testBranch);\n\t}",
"public static void saveDrops() {\n DropTable.serialize(file);\n }",
"private void processAlterTableDropConstraint(Table t)\n throws HsqlException {\n processAlterTableDropConstraint(t, tokenizer.getName());\n }",
"public String getDropTemporaryTableString() {\n \t\treturn \"drop table\";\n \t}",
"public void dropIndexes() {\n dropIndex(\"*\");\n }"
] |
[
"0.7474821",
"0.718897",
"0.7175591",
"0.71011347",
"0.6799737",
"0.6724662",
"0.66976357",
"0.66789955",
"0.66554016",
"0.6649021",
"0.66180265",
"0.66116625",
"0.6587747",
"0.6462971",
"0.64274627",
"0.642166",
"0.6412501",
"0.63145584",
"0.6297872",
"0.62805206",
"0.6273431",
"0.6228373",
"0.61955816",
"0.6152352",
"0.6050034",
"0.5999002",
"0.59975994",
"0.5992215",
"0.59084964",
"0.58963567",
"0.5873522",
"0.5862356",
"0.58605766",
"0.58162117",
"0.57999766",
"0.5733145",
"0.57317984",
"0.5731623",
"0.5702897",
"0.56998897",
"0.56925225",
"0.56686074",
"0.5642639",
"0.55915827",
"0.5583319",
"0.5557338",
"0.5507826",
"0.5488325",
"0.5448089",
"0.54422134",
"0.5437076",
"0.5427726",
"0.53925735",
"0.5379485",
"0.5325881",
"0.5322882",
"0.5295167",
"0.5257879",
"0.524157",
"0.5225113",
"0.5208247",
"0.51979613",
"0.5194568",
"0.519226",
"0.51855284",
"0.51336694",
"0.512104",
"0.5097268",
"0.5058503",
"0.5057029",
"0.50542086",
"0.50507355",
"0.5022926",
"0.5003795",
"0.4995447",
"0.49925917",
"0.49881855",
"0.49820486",
"0.49809167",
"0.49754834",
"0.49597338",
"0.49373502",
"0.49355164",
"0.4925746",
"0.49244007",
"0.49150264",
"0.49137256",
"0.49086872",
"0.49017286",
"0.4900101",
"0.48737672",
"0.4869672",
"0.48684138",
"0.4834386",
"0.48309463",
"0.48280406",
"0.48266238",
"0.48254898",
"0.48051137",
"0.48010042"
] |
0.7146819
|
3
|
Gets the attachmentId value for this TradeHistoryEntryVo.
|
public java.lang.Long getAttachmentId() {
return attachmentId;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public String getAttachId() {\n return attachId;\n }",
"public String getAttachment() {\n return attachment;\n }",
"public Object getAttachment() {\n\t\treturn attachment;\n\t}",
"public void setAttachmentId(java.lang.Long attachmentId) {\n this.attachmentId = attachmentId;\n }",
"public String getAttachmentName() {\n\t\treturn attachmentName;\n\t}",
"public Object getAttachment() {\n\treturn attachment;\n }",
"public java.lang.String getAttachmentName() {\n return attachmentName;\n }",
"public byte[] getByteAttachment() {\n\t\treturn byteAttachment;\n\t}",
"public String getAttachmentPath() {\n\t\treturn attachmentPath;\n\t}",
"public Text getIdAttachHolder()\r\n\t{\r\n\t\treturn idAttachHolder;\r\n\t}",
"public cn.com.ho.workflow.infrastructure.db.tables.pojos.ActHiAttachment fetchOneById_(String value) {\n return fetchOne(ActHiAttachment.ACT_HI_ATTACHMENT.ID_, value);\n }",
"public ResourceReferenceDt getAttachmentElement() { \n\t\tif (myAttachment == null) {\n\t\t\tmyAttachment = new ResourceReferenceDt();\n\t\t}\n\t\treturn myAttachment;\n\t}",
"public String getEntryId() {\n return entryId;\n }",
"public String getAttachmentPublicUuid() {\n return this.attachmentPublicUuid;\n }",
"public Long getDownloadid() {\r\n\t\treturn downloadid;\r\n\t}",
"public Integer getBtrAudUid() {\n return btrAudUid;\n }",
"public ResourceReferenceDt getAttachment() { \n\t\tif (myAttachment == null) {\n\t\t\tmyAttachment = new ResourceReferenceDt();\n\t\t}\n\t\treturn myAttachment;\n\t}",
"public Integer getFileid() {\n return fileid;\n }",
"public int getPrimaryKey() {\r\n for (int i = 0; i < eventFields.size(); i++) {\r\n EventDataEntry currentEntry = eventFields.get(i);\r\n if (currentEntry.getColumnName().equalsIgnoreCase(\"linkid\")) {\r\n Integer it = (Integer) currentEntry.getValues().getFirst();\r\n return it.intValue();\r\n }\r\n }\r\n return -1;\r\n }",
"public static File getAttachmentFilename(Context context, long accountId, long attachmentId) {\n return new File(getAttachmentDirectory(context, accountId), Long.toString(attachmentId));\n }",
"public List<MailAttachment> getAttachment() {\n return attachment;\n }",
"@Override\n\tpublic Attachment getAttachment(RepositoryModel repository, long ticketId, String filename) {\n\t\treturn null;\n\t}",
"@Override\r\n\tpublic DishAttachment getDishAttachment(Long id) {\n\t\treturn null;\r\n\t}",
"@Schema(description = \"Attachments that may be of relevance to this specification, such as picture, document, media\")\n\t@Valid\n\tpublic Set<AttachmentRefOrValue> getAttachment() {\n\t\treturn attachment;\n\t}",
"public void setAttachId(String attachId) {\n this.attachId = attachId;\n }",
"public Integer getFileId() {\n\t\treturn fileId;\n\t}",
"AttachmentDTO findOne(Long id);",
"public final int getFileId() {\n\t\treturn m_fileId;\n\t}",
"public Attachment attachment(String owner, String repo, long id, long attachmentId) {\n return apiClient.deserialize(apiClient.get(String.format(\"/repos/%s/%s/releases/%d/assets/%d\", owner, repo, id, attachmentId)),\n Attachment.class);\n }",
"public String get_attachPoint() {\n return _attachPoint;\n }",
"TrackerAttachments getTrackerAttachments(final Integer id);",
"public Number getPlanTransferHdrIdFk() {\r\n return (Number) getAttributeInternal(PLANTRANSFERHDRIDFK);\r\n }",
"public Long getFileId() {\n return this.fileId;\n }",
"public static int getFileID() {\n\t\treturn StringArray.fileID;\n\t}",
"@Override\n\tpublic long getChangesetEntryId() {\n\t\treturn _changesetEntry.getChangesetEntryId();\n\t}",
"public org.oasis_open.docs.ns.bpel4people.ws_humantask.types._200803.TAttachmentInfo getAttachmentInfo()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.oasis_open.docs.ns.bpel4people.ws_humantask.types._200803.TAttachmentInfo target = null;\n target = (org.oasis_open.docs.ns.bpel4people.ws_humantask.types._200803.TAttachmentInfo)get_store().find_element_user(ATTACHMENTINFO$0, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"public Object attachment(Object key);",
"public int getFileId() {\n return fileId;\n }",
"public String getBlobId() {\n return this.blobId;\n }",
"@Array({9}) \n\t@Field(8) \n\tpublic Pointer<Byte > ExchangeID() {\n\t\treturn this.io.getPointerField(this, 8);\n\t}",
"public ArrayList getAttachmentList() {\n return attachmentList;\n }",
"public String getPhotoId() {\n return fullPhoto.getPhotoId();\n }",
"public AccountAttachmentsHistory accountAttachmentsHistory() {\n return this.accountAttachmentsHistory;\n }",
"public String getBindingItemIdResourceBlob(){\n return resourceBlobBindingSetItemId;\n }",
"public final int getFileId() {\n\t\treturn m_FID;\n\t}",
"public String getFileId() {\n return fileId;\n }",
"public String getFileId() {\n return fileId;\n }",
"public String getFileId() {\n return fileId;\n }",
"public int getEntryUid() {\n return this.mEntryUid;\n }",
"public Integer getRecordId() {\n return recordId;\n }",
"public long getAuditLogId() {\n return auditLogId;\n }",
"public String getAttachFileByIndex(int index){\n\t\treturn attachName.get(index);\n\t}",
"public Integer getAttentionId() {\n return attentionId;\n }",
"@Override\r\n\tpublic UserAttachment getUserAttachment(Long id) {\n\t\treturn null;\r\n\t}",
"public void setAttachment(Object attachment) {\n\t\tthis.attachment = attachment;\n\t}",
"@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _dlSyncEvent.getPrimaryKey();\n\t}",
"public DataHandler getAttachment(String id) {\n if (attachments != null && attachments.get(id) != null) {\n return new DataHandler((DataSource) attachments.get(id));\n }\n return null;\n }",
"public long id() {\n\t\treturn message.getBaseMarketId();\n\t}",
"public AttachmentType getAttachmentType() {\n\t\treturn attachmentType;\n\t}",
"public java.lang.String getPrimaryKey() {\n\t\treturn _imageCompanyAg.getPrimaryKey();\n\t}",
"public StrColumn getEntryId() {\n return delegate.getColumn(\"entry_id\", DelegatingStrColumn::new);\n }",
"public StrColumn getEntryId() {\n return delegate.getColumn(\"entry_id\", DelegatingStrColumn::new);\n }",
"public StrColumn getEntryId() {\n return delegate.getColumn(\"entry_id\", DelegatingStrColumn::new);\n }",
"@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _changesetEntry.getPrimaryKey();\n\t}",
"ResponseEntity<?> deleteAttachment(String attachmentId);",
"public String getId()\n\t\t{\n\t\t\treturn mediaElement.getAttribute(ID_ATTR_NAME);\n\t\t}",
"public Object getAttachments() {\n return this.attachments;\n }",
"public void setAttachment(Object attachment) {\n\tthis.attachment = attachment;\n }",
"public Set<NoteAttachment> getNoteAttachment() {\n return noteAttachment;\n }",
"public static File getAttachmentDirectory(Context context, long accountId) {\n return context.getDatabasePath(accountId + \".db_att\");\n }",
"public int getRecipientId() {\r\n\t\treturn recipientId;\r\n\t}",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Attachment)) {\n return false;\n }\n Attachment other = (Attachment) object;\n return !((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id)));\n }",
"public Integer getRecId() {\n return recId;\n }",
"public String inventoryItemId() {\n return this.innerProperties() == null ? null : this.innerProperties().inventoryItemId();\n }",
"public Integer getAtrfAudUid() {\n return atrfAudUid;\n }",
"public long getPrimaryKey() {\n\t\treturn _tempNoTiceShipMessage.getPrimaryKey();\n\t}",
"public String getEntId() {\n\t\treturn entId;\n\t}",
"public Long getVersionedFileId() {\r\n\t\treturn versionedFileId;\r\n\t}",
"@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 String getAssetId();",
"@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _esfShooterAffiliationChrono.getPrimaryKey();\n\t}",
"public int getPrimaryKey() {\n\t\treturn _dmHistoryMaritime.getPrimaryKey();\n\t}",
"@Override\n\tpublic String getEntryId() {\n\t\treturn null;\n\t}",
"public SeriesInstance setAttachment(ResourceReferenceDt theValue) {\n\t\tmyAttachment = theValue;\n\t\treturn this;\n\t}",
"public int getAuditId();",
"public Long getAlertId();",
"public long getPrimaryKey() {\n return _courseImage.getPrimaryKey();\n }",
"public Integer getUploadId() {\n\t\treturn uploadId;\n\t}",
"public EI getPayerTrackingID() { \r\n\t\tEI retVal = this.getTypedField(5, 0);\r\n\t\treturn retVal;\r\n }",
"public Integer getActivityId() {\n\t\treturn activityId;\n\t}",
"public Integer getPollItemId() {\n final List<BwXproperty> props = getXproperties(BwXproperty.pollItemId);\n\n if (Util.isEmpty(props)) {\n return null;\n }\n\n if (props.size() > 1) {\n return null;\n }\n\n final BwXproperty p = props.get(0);\n final PollItmId pid = new PollItmId(p.getValue());\n\n return pid.getId();\n }",
"org.hl7.fhir.Attachment getValueAttachment();",
"public int getId() {\n // some code goes here\n \treturn m_f.getAbsoluteFile().hashCode();\n }",
"public byte[] getID() {\n return messageid;\n }",
"@Override\n\tpublic Serializable getId() {\n\t\treturn imageId;\n\t}",
"public Object getEntryFilePath() {\n return this.entryFilePath;\n }",
"@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 long getTraceId() {\n\t\treturn this.traceInformation.getTraceId();\n\t}",
"public Long getFileId() {\n/* 35:35 */ return this.fileId;\n/* 36: */ }",
"public long getPrimaryKey() {\n return _sTransaction.getPrimaryKey();\n }"
] |
[
"0.6605577",
"0.5889038",
"0.5787316",
"0.55978096",
"0.5583142",
"0.55556655",
"0.5503281",
"0.5299462",
"0.52884984",
"0.5261268",
"0.52544373",
"0.5209555",
"0.52084655",
"0.5185389",
"0.5163788",
"0.5116713",
"0.5099035",
"0.50838494",
"0.507034",
"0.5064942",
"0.50152594",
"0.50149834",
"0.50138664",
"0.4982032",
"0.49673927",
"0.4963549",
"0.49202436",
"0.49186796",
"0.4890486",
"0.4889665",
"0.48836142",
"0.48725784",
"0.48719102",
"0.48702547",
"0.48607606",
"0.48557186",
"0.4847163",
"0.48465368",
"0.4815201",
"0.4811026",
"0.480131",
"0.47977352",
"0.47917527",
"0.4791486",
"0.47878596",
"0.47810277",
"0.47810277",
"0.47810277",
"0.47621816",
"0.4750548",
"0.4746615",
"0.4722606",
"0.47169304",
"0.4715223",
"0.47023612",
"0.47012806",
"0.46948573",
"0.46938714",
"0.46818486",
"0.4681242",
"0.4674521",
"0.4674521",
"0.4674521",
"0.46732858",
"0.46715862",
"0.46658152",
"0.46652395",
"0.46634686",
"0.4660485",
"0.46521342",
"0.4641833",
"0.46253085",
"0.4623568",
"0.46214873",
"0.46150336",
"0.46100086",
"0.45979816",
"0.45902535",
"0.4587467",
"0.45860946",
"0.45838103",
"0.45764193",
"0.45685893",
"0.45683774",
"0.4564566",
"0.45605695",
"0.45565742",
"0.45539084",
"0.45440164",
"0.4542037",
"0.4541388",
"0.4540307",
"0.4539571",
"0.45251724",
"0.45248035",
"0.45189056",
"0.45186815",
"0.45137104",
"0.45013317",
"0.45007452"
] |
0.7436762
|
0
|
Sets the attachmentId value for this TradeHistoryEntryVo.
|
public void setAttachmentId(java.lang.Long attachmentId) {
this.attachmentId = attachmentId;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public java.lang.Long getAttachmentId() {\n return attachmentId;\n }",
"public void setAttachment(Object attachment) {\n\t\tthis.attachment = attachment;\n\t}",
"public void setAttachId(String attachId) {\n this.attachId = attachId;\n }",
"public void setAttachment(Object attachment) {\n\tthis.attachment = attachment;\n }",
"public void setAttachment(String attachment) {\n this.attachment = attachment == null ? null : attachment.trim();\n }",
"public String getAttachId() {\n return attachId;\n }",
"void setValueAttachment(org.hl7.fhir.Attachment valueAttachment);",
"@Override\n @IcalProperty(pindex = PropertyInfoIndex.ATTACH,\n adderName = \"attachment\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true)\n public void setAttachments(final Set<BwAttachment> val) {\n attachments = val;\n }",
"public SeriesInstance setAttachment(ResourceReferenceDt theValue) {\n\t\tmyAttachment = theValue;\n\t\treturn this;\n\t}",
"public MailMessage setAttachment(List<MailAttachment> attachment) {\n this.attachment = attachment;\n return this;\n }",
"public Attachment attachment(String owner, String repo, long id, long attachmentId) {\n return apiClient.deserialize(apiClient.get(String.format(\"/repos/%s/%s/releases/%d/assets/%d\", owner, repo, id, attachmentId)),\n Attachment.class);\n }",
"public void setNoteAttachment(Set<NoteAttachment> aNoteAttachment) {\n noteAttachment = aNoteAttachment;\n }",
"int setAttachment(Attachment attachment) throws NotAuthorizedException;",
"public PurchaseRequestAttachment(Integer id) {\r\n super(id);\r\n }",
"public void setAttachments(List<Attachment> attachments) {\n this.attachments = null;\n\n if (attachments != null) {\n // Make sure the IDs are set correctly\n for (Attachment attachment : attachments) {\n addAttachement(attachment);\n }\n }\n }",
"public void setAttachmentName(java.lang.String attachmentName) {\n this.attachmentName = attachmentName;\n }",
"public void setAttachmentPath(String attachmentPath) {\n\t\tthis.attachmentPath = attachmentPath;\n\t}",
"public Attachment attachment(String owner, String repo, long id, long attachmentId, EditAttachmentOptions options) {\n return apiClient.deserialize(apiClient.patch(String.format(\"/repos/%s/%s/releases/%d/assets/%d\", owner, repo, id, attachmentId),\n options),\n Attachment.class);\n }",
"public void setAttachmentName(String attachmentName) {\n\t\tthis.attachmentName = attachmentName;\n\t}",
"private ExcelAttachment(T attachment){\n\t\tthis.attachment=attachment;\n\t}",
"ResponseEntity<?> deleteAttachment(String attachmentId);",
"public void setAttachmentInfo(org.oasis_open.docs.ns.bpel4people.ws_humantask.types._200803.TAttachmentInfo attachmentInfo)\n {\n generatedSetterHelperImpl(attachmentInfo, ATTACHMENTINFO$0, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);\n }",
"public void addAttachement(Attachment attachment) {\n if (attachments == null) {\n attachments = new ArrayList<Attachment>();\n }\n attachments.add(attachment);\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Attachment)) {\n return false;\n }\n Attachment other = (Attachment) object;\n return !((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id)));\n }",
"public void setAttachmentType(AttachmentType attachmentType) {\n\t\tthis.attachmentType = attachmentType;\n\t}",
"public String getAttachment() {\n return attachment;\n }",
"public void setFileAttachmentIndex(int annotation) {\n\t\tput(PdfName.A, new PdfNumber(annotation));\n\t}",
"public void setAttachmentList(ArrayList attachmentList) {\n this.attachmentList = attachmentList;\n }",
"public void setAttachments(com.sforce.soap.enterprise.QueryResult attachments) {\r\n this.attachments = attachments;\r\n }",
"TrackerAttachments loadTrackerAttachments(final Integer id);",
"public void addAttachment(String tiid, IAttachment attachment)\n throws HumanTaskManagerException {\n try {\n sdap.beginTx();\n TaskStructure taskStructure = new TaskStructure(tiid);\n taskStructure.addSelectedTaskAttachment(attachment);\n sdap.commitTx();\n } catch (HumanTaskManagerException e) {\n sdap.rollbackTx();\n throw new HumanTaskManagerException(e);\n } finally {\n sdap.close();\n }\n }",
"public void setFileAttachmentName(String name) {\n\t\tput(PdfName.A, new PdfString(name, PdfObject.TEXT_UNICODE));\n\t}",
"void deleteTrackerAttachments(final Integer id);",
"@Override\r\n\tpublic UserAttachment getUserAttachment(Long id) {\n\t\treturn null;\r\n\t}",
"@Override\r\n\tpublic DishAttachment getDishAttachment(Long id) {\n\t\treturn null;\r\n\t}",
"public void setIsAttachment(boolean isAttachment) {\n this.isAttachment = isAttachment;\n }",
"@Override\n public void onSaveAttachmentToUserProvidedDirectory(final AttachmentViewInfo attachment) {\n MessageViewFragment fragment = messageViewFragmentWeakReference.get();\n if (fragment == null) {\n return;\n }\n\n Intent intent = new Intent();\n intent.putExtra(\"attachmentInfo\", attachment);\n FileBrowserHelper.getInstance().showFileBrowserActivity(fragment, null,\n MessageViewFragment.ACTIVITY_CHOOSE_DIRECTORY, new FileBrowserHelper.FileBrowserFailOverCallback() {\n @Override\n public void onPathEntered(String path) {\n getAttachmentController(attachment).saveAttachmentTo(path);\n }\n\n @Override\n public void onCancel() {\n // Do nothing\n }\n }, intent);\n\n }",
"public cn.com.ho.workflow.infrastructure.db.tables.pojos.ActHiAttachment fetchOneById_(String value) {\n return fetchOne(ActHiAttachment.ACT_HI_ATTACHMENT.ID_, value);\n }",
"public Object getAttachment() {\n\t\treturn attachment;\n\t}",
"@Override\n public void onSaveAttachment(AttachmentViewInfo attachment) {\n\n getAttachmentController(attachment).saveAttachment();\n }",
"@Override\n\tpublic BaseAttachmentData findBaseAttachmentDataById(Integer attachId) {\n\t\treturn query(attachId);\n\t}",
"public void setBtrAudUid(Integer aBtrAudUid) {\n btrAudUid = aBtrAudUid;\n }",
"public String getAttachmentName() {\n\t\treturn attachmentName;\n\t}",
"public void deleteInvitationAttachment(final Attachment attachment);",
"@Override\n public AttachmentType addAttachment() {\n \treturn this;\n }",
"public PurchaseRequestAttachmentContent(Integer id) {\r\n super(id);\r\n }",
"public NotebookCell setAttachments(Object attachments) {\n this.attachments = attachments;\n return this;\n }",
"public void setDownloadid(Long downloadid) {\r\n\t\tthis.downloadid = downloadid;\r\n\t}",
"public void setFile(org.ow2.bonita.facade.runtime.AttachmentInstance file) {\r\n\t\tthis.file = file;\r\n\t}",
"@Override\n\tpublic void setChangesetEntryId(long changesetEntryId) {\n\t\t_changesetEntry.setChangesetEntryId(changesetEntryId);\n\t}",
"public Object attachment(Object key);",
"public DeviceDescription setAttachments(List<DeviceDescriptionAttachment> attachments) {\n this.attachments = attachments;\n return this;\n }",
"public void removeAttachment(String id) {\n if (attachments != null) {\n attachments.remove(id);\n }\n }",
"org.hl7.fhir.Attachment addNewValueAttachment();",
"public void setPipePipelinedetailsElementId(Integer v){\n\t\ttry{\n\t\tsetProperty(SCHEMA_ELEMENT_NAME + \"/pipe_pipelineDetails_element_id\",v);\n\t\t_PipePipelinedetailsElementId=null;\n\t\t} catch (Exception e1) {logger.error(e1);}\n\t}",
"public final void mT__231() throws RecognitionException {\n try {\n int _type = T__231;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalMyDsl.g:229:8: ( 'attachment' )\n // InternalMyDsl.g:229:10: 'attachment'\n {\n match(\"attachment\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }",
"@Override\n public void onViewAttachment(AttachmentViewInfo attachment) {\n\n getAttachmentController(attachment).viewAttachment();\n }",
"@Override\r\n\tpublic DishAttachment addDishAttachment(DishAttachment dishAttachment) {\n\t\treturn null;\r\n\t}",
"public abstract void addAttachmentPart(AttachmentPart attachmentpart);",
"public Object getAttachment() {\n\treturn attachment;\n }",
"@Schema(description = \"Attachments that may be of relevance to this specification, such as picture, document, media\")\n\t@Valid\n\tpublic Set<AttachmentRefOrValue> getAttachment() {\n\t\treturn attachment;\n\t}",
"public void setPrimaryKey( int mailId, int receiverId)\n \n {\n setMailId(mailId);\n setReceiverId(receiverId);\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof AttachmentFile)) {\n return false;\n }\n AttachmentFile other = (AttachmentFile) object;\n if ((this.idAttachmentFile == null && other.idAttachmentFile != null) || (this.idAttachmentFile != null && !this.idAttachmentFile.equals(other.idAttachmentFile))) {\n return false;\n }\n return true;\n }",
"public void setFileAttachmentPage(int page) {\n\t\tput(PdfName.P, new PdfNumber(page));\n\t}",
"public void setTraderEmployeeId(String traderEmployeeId) {\n this.traderEmployeeId = traderEmployeeId;\n }",
"TrackerAttachments getTrackerAttachments(final Integer id);",
"public String getAttachmentPath() {\n\t\treturn attachmentPath;\n\t}",
"public void setMailId(int v) \n {\n \n if (this.mailId != v)\n {\n this.mailId = v;\n setModified(true);\n }\n \n \n }",
"void deleteAttachment(int id) throws NotAuthorizedException;",
"public Builder setAdBreakIdBytes(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n adBreakId_ = value;\n bitField0_ |= 0x00000001;\n onChanged();\n return this;\n }",
"public Text getIdAttachHolder()\r\n\t{\r\n\t\treturn idAttachHolder;\r\n\t}",
"@Override\n\tpublic Attachment getAttachment(RepositoryModel repository, long ticketId, String filename) {\n\t\treturn null;\n\t}",
"public int deleteAttachment(int id) {\n\t\tString sql = \"DELETE FROM ATTACHMENT WHERE \" + ColumnNames.ATTACHMENTIDENTIFIER + \" = ?\";\n\t\tPreparedStatement ps = prepareCallable(sql);\n\t\ttry {\n\t\t\tps.setInt(1, id);\n\t\t\treturn ps.executeUpdate();\n\t\t} catch (SQLException ex) {\n\t\t\tlogger.error(\"Exception in deleteAttachment - Check your SQL params\", ex);\n\t\t\treturn 0;\n\t\t}\n\t}",
"public void setReceiverId(int v) \n {\n \n if (this.receiverId != v)\n {\n this.receiverId = v;\n setModified(true);\n }\n \n \n }",
"public FileTransferHandler(AttachmentTableModel attachmentModel) {\r\n fileFlavor = DataFlavor.javaFileListFlavor;\r\n this.attachmentModel = attachmentModel;\r\n }",
"void setArtifactId(String artifactId);",
"public void setTraderEmailId(String traderEmailId) {\n this.traderEmailId = traderEmailId;\n }",
"public maestro.payloads.FlyerFeaturedItem.Builder setFlyerId(int value) {\n validate(fields()[2], value);\n this.flyer_id = value;\n fieldSetFlags()[2] = true;\n return this;\n }",
"public void setActivityId(String activityId) {\n this.activityId = activityId;\n }",
"public java.lang.String getAttachmentName() {\n return attachmentName;\n }",
"AttachmentDTO findOne(Long id);",
"public DataHandler getAttachment(String id) {\n if (attachments != null && attachments.get(id) != null) {\n return new DataHandler((DataSource) attachments.get(id));\n }\n return null;\n }",
"public static File getAttachmentFilename(Context context, long accountId, long attachmentId) {\n return new File(getAttachmentDirectory(context, accountId), Long.toString(attachmentId));\n }",
"public void setAlertId(Long alertId);",
"public Long getDownloadid() {\r\n\t\treturn downloadid;\r\n\t}",
"public String deleteAttachById(String attachId) throws Exception {\n\t\treturn null;\n\t}",
"@Override\n\tpublic void setId(long id) {\n\t\t_contentupdate.setId(id);\n\t}",
"public void setNewsletterId(int v) \n {\n \n if (this.newsletterId != v)\n {\n this.newsletterId = v;\n setModified(true);\n }\n \n \n }",
"public void setAttachments(java.util.Collection<AttachmentsSource> attachments) {\n if (attachments == null) {\n this.attachments = null;\n return;\n }\n\n this.attachments = new com.amazonaws.internal.SdkInternalList<AttachmentsSource>(attachments);\n }",
"public void setAttachmentHeader(String filename)\n\t{\n\t\tsetHeader(\"Content-Disposition\", \"attachment\"\n\t\t\t\t+ ((!Strings.isEmpty(filename)) ? (\"; filename=\\\"\" + filename + \"\\\"\") : \"\"));\n\t}",
"public void setAttachmentList(String[] criteriaString) {\n \t if (criteriaString != null) {\n\t\t messageAttachments = new MessageAttachmentList();\n\t\t for (int i = 0; i < Arrays.asList(criteriaString).size(); i++) {\n\t\t\t\tint fileId = Integer.parseInt((String) Arrays.asList(criteriaString).get(i));\n\t\t\t\tmessageAttachments.addItem(fileId);\n\t\t\t}\n } else {\n \tmessageAttachments = new MessageAttachmentList();\n }\n }",
"public void setActivityId(Integer activityId) {\n this.activityId = activityId;\n }",
"public void setCredentialId(Long credentialId) {\n this.credentialId = credentialId;\n }",
"public void setActivityId(Integer activityId) {\n\t\tthis.activityId = activityId;\n\t}",
"public IBusinessObject setFileAttached(boolean fileAttached)\n throws OculusException;",
"public void setAttentionId(Integer attentionId) {\n this.attentionId = attentionId;\n }",
"@Override\r\n\tpublic UserAttachment addUserAttachment(UserAttachment userAttachment) {\n\t\treturn null;\r\n\t}",
"public void setAuditLogId(long value) {\n this.auditLogId = value;\n }",
"public MessageBuilder withAttachments(String attachments) {\n\n if (StringUtils.isNotEmpty(attachments)) {\n this.attachments = attachments;\n }\n return this;\n }",
"public void setEntryId(String entryId) {\n this.entryId = entryId;\n }"
] |
[
"0.63760924",
"0.62926",
"0.62411207",
"0.6237269",
"0.581409",
"0.572244",
"0.5469092",
"0.53401023",
"0.5328686",
"0.529556",
"0.51650697",
"0.51555187",
"0.50718325",
"0.4962973",
"0.49598306",
"0.49386278",
"0.49304146",
"0.4882413",
"0.48598602",
"0.48117027",
"0.47982728",
"0.47498125",
"0.47403377",
"0.4691983",
"0.46796003",
"0.46742934",
"0.46584356",
"0.46498674",
"0.46400198",
"0.46395767",
"0.46310508",
"0.46231765",
"0.46220878",
"0.4612101",
"0.45913234",
"0.45819554",
"0.45548213",
"0.45470315",
"0.45380893",
"0.45268527",
"0.45184326",
"0.4515347",
"0.44875336",
"0.44667068",
"0.4465045",
"0.44537684",
"0.44503427",
"0.44432765",
"0.44393572",
"0.44339442",
"0.44220644",
"0.44146496",
"0.44038662",
"0.43912077",
"0.43874717",
"0.43864906",
"0.43804806",
"0.43780732",
"0.43731973",
"0.43514153",
"0.4344747",
"0.4334012",
"0.4331715",
"0.4320299",
"0.4315962",
"0.43146396",
"0.4313881",
"0.43128204",
"0.43085423",
"0.4289003",
"0.4255661",
"0.42530742",
"0.42524716",
"0.42494524",
"0.42336527",
"0.42202532",
"0.42045152",
"0.41994226",
"0.41824841",
"0.41797915",
"0.41796342",
"0.41693532",
"0.4159197",
"0.41525757",
"0.41444203",
"0.41400105",
"0.4138779",
"0.4131329",
"0.41294065",
"0.41146255",
"0.4111683",
"0.41046146",
"0.41009414",
"0.41003862",
"0.41003394",
"0.4098935",
"0.40988135",
"0.40854365",
"0.4081658",
"0.40785325"
] |
0.6871974
|
0
|
Gets the attachmentName value for this TradeHistoryEntryVo.
|
public java.lang.String getAttachmentName() {
return attachmentName;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public String getAttachmentName() {\n\t\treturn attachmentName;\n\t}",
"public String getAttachment() {\n return attachment;\n }",
"public Set getAttachmentNames() {\n if (attachments != null) {\n return Collections.unmodifiableSet(attachments.keySet());\n }\n return Collections.EMPTY_SET;\n }",
"public String getFileName() {\n\t\treturn mItems.getJustFileName();\n\t}",
"public String getAttachFileByIndex(int index){\n\t\treturn attachName.get(index);\n\t}",
"public Object getAttachment() {\n\t\treturn attachment;\n\t}",
"public String getFileName() {\n return ScreenRecordService.getFileName();\n }",
"public java.lang.Long getAttachmentId() {\n return attachmentId;\n }",
"public void setAttachmentName(java.lang.String attachmentName) {\n this.attachmentName = attachmentName;\n }",
"public void setAttachmentName(String attachmentName) {\n\t\tthis.attachmentName = attachmentName;\n\t}",
"public String getAuditTrailName()\n {\n return this.auditTrailName;\n }",
"public String getAttachmentPath() {\n\t\treturn attachmentPath;\n\t}",
"public Object getAttachment() {\n\treturn attachment;\n }",
"public final String getFilename() {\n return properties.get(FILENAME_PROPERTY);\n }",
"public final String getFileName() {\n\n\t\treturn getValue(FILE_NAME);\n\t}",
"public final String getFileName() {\n\t\treturn m_info.getFileName();\n\t}",
"public String getFileName() {\n\t\treturn file.getName();\n\t}",
"public String getFileName() {\n\t\treturn file.getFileName();\n\t}",
"public String getFileName() {\n\t\t\n\t\tString result = null;\n\t\t\n\t\tif(this.exists() && !this.isDirectory())\n\t\t\tresult = this.get(this.lenght - 1);\n\t\t\n\t\treturn result;\n\t}",
"public String getFilename() {\n\t\treturn fileName;\n\t}",
"public Object fileName() {\n return this.innerTypeProperties() == null ? null : this.innerTypeProperties().fileName();\n }",
"public String getFileName(){\r\n\t\treturn linfo != null ? linfo.getFileName() : \"\";\r\n\t}",
"@Override\n public String getFilename() {\n if (workflowMeta == null) {\n return null;\n }\n return workflowMeta.getFilename();\n }",
"public String getAttachId() {\n return attachId;\n }",
"public String getName() {\n\t\treturn filename;\n\t}",
"public String getName() {\n\t\treturn this.recordingProperties.name();\n\t}",
"public String getFilename() {\n\treturn file.getFilename();\n }",
"public String getFileName() {\r\n\t\treturn fileName;\r\n\t}",
"public String getFileName() {\r\n\t\treturn fileName;\r\n\t}",
"public String getFileName() {\r\n\t\treturn fileName;\r\n\t}",
"public String getFileName()\n {\n return getString(\"FileName\");\n }",
"public String getFileName() {\r\n \t\tif (isFileOpened()) {\r\n \t\t\treturn curFile.getName();\r\n \t\t} else {\r\n \t\t\treturn \"\";\r\n \t\t}\r\n \t}",
"public String getFile_name() {\n\t\treturn file_name;\n\t}",
"@java.lang.Override\n public java.lang.String getFilename() {\n java.lang.Object ref = filename_;\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 filename_ = s;\n return s;\n }\n }",
"@java.lang.Override\n public java.lang.String getFilename() {\n java.lang.Object ref = filename_;\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 filename_ = s;\n return s;\n }\n }",
"public String getFileName() {\n\t\treturn fileName;\n\t}",
"public String getFileName() {\n\t\treturn fileName;\n\t}",
"public String getFileName() {\n\t\treturn fileName;\n\t}",
"public String getFileName() {\n\t\treturn fileName;\n\t}",
"public String getFileName() {\n\t\treturn fileName;\n\t}",
"public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\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 fileName_ = s;\n }\n return s;\n }\n }",
"public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\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 fileName_ = s;\n }\n return s;\n }\n }",
"public final String getFileName() {\n return this.fileName;\n }",
"public String getFileName() {\n return getCellContent(FILE).split(FILE_LINE_SEPARATOR)[0];\n }",
"public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\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 fileName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\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 fileName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\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 fileName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\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 fileName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\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 fileName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\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 fileName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\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 fileName_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\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 fileName_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"protected String getFileName() {\n\t\treturn fileName;\n\t}",
"public java.lang.String getFilename() {\n java.lang.Object ref = filename_;\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 filename_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getFilename() {\n java.lang.Object ref = filename_;\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 filename_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String getName()\n\t{\n\t\treturn _fileName;\n\t}",
"public String getFileName() {\r\n return fileName;\r\n }",
"public String getFileName() {\r\n return fileName;\r\n }",
"public String getFileName() {\r\n return fileName;\r\n }",
"public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\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 fileName_ = s;\n return s;\n }\n }",
"public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\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 fileName_ = s;\n return s;\n }\n }",
"public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\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 fileName_ = s;\n return s;\n }\n }",
"public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\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 fileName_ = s;\n return s;\n }\n }",
"public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\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 fileName_ = s;\n return s;\n }\n }",
"public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\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 fileName_ = s;\n return s;\n }\n }",
"public String getOriginalFilename() {\r\n return mFile.getOriginalFilename();\r\n }",
"public String getFileName()\n\t{\n\t\treturn fileName;\n\t}",
"public String getFileName()\n\t{\n\t\treturn fileName;\n\t}",
"public String getFileName() {\n return fileName;\n }",
"public String getFileName() {\n return fileName;\n }",
"public String getFileName() {\n return fileName;\n }",
"public String getFileName() {\n return fileName;\n }",
"public String getFileName() {\n return fileName;\n }",
"public String getFileName() {\n return fileName;\n }",
"public String getFileName() {\n return fileName;\n }",
"public String getFileName() {\n return fileName;\n }",
"public String getFileName() {\n return fileName;\n }",
"public String getFileName() {\n return fileName;\n }",
"public String getName() {\r\n return mFile.getName();\r\n }",
"public final String getExtensionName() {\n return mName;\n }",
"public String getFilename() {\n\t\treturn this.filename;\n\t}",
"public String getFilename() {\n\t\treturn this.filename;\n\t}",
"public String getFileName() {\n return mFileNameTextField == null ? \"\" : mFileNameTextField.getText(); //$NON-NLS-1$\n }",
"public final String getFileName()\r\n {\r\n return _fileName;\r\n }",
"public String fileName() {\n return this.fileName;\n }",
"public String fileName() {\n return this.fileName;\n }",
"public String getFileName() {\n return this.fileName;\n }",
"public String getFileName() {\n return this.fileName;\n }",
"public String getDisplayFileName() {\r\n return fileName + \" (\" + FileItem.getDisplayFileSize(fileSize) + \")\";\r\n }",
"public String getFileName()\r\n {\r\n return fileName;\r\n }",
"public String getNameFile(){\n\t\t\treturn this.nameFile;\n\t\t}",
"public String getFilename()\r\n\t{\r\n\t\treturn filename;\r\n\t}",
"public String getFileName()\r\n\t{\r\n\t\treturn settings.getFileName();\r\n\t}",
"public String getFilename() {\n\t\treturn filename;\n\t}",
"public String getFilename() {\n\t\treturn filename;\n\t}",
"public String getFilename() {\n\t\treturn filename;\n\t}",
"public String getFilename() {\n\t\treturn filename;\n\t}",
"public java.lang.String getName()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$26);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }",
"public String getEntityfilename() {\n return entityfilename;\n }",
"public String getFileName(){\n\t\treturn fileName;\n\t}"
] |
[
"0.7342828",
"0.61258656",
"0.56761926",
"0.56658185",
"0.5621536",
"0.55825955",
"0.5545703",
"0.5472559",
"0.5451312",
"0.5386234",
"0.5354583",
"0.5353576",
"0.5350874",
"0.53337574",
"0.5305726",
"0.530413",
"0.53020835",
"0.52949804",
"0.52893823",
"0.5266545",
"0.5265453",
"0.5263916",
"0.5255531",
"0.524832",
"0.52430546",
"0.5230984",
"0.5196778",
"0.5172179",
"0.5172179",
"0.5172179",
"0.51658255",
"0.5161846",
"0.5156947",
"0.515332",
"0.515332",
"0.5142715",
"0.5142715",
"0.5142715",
"0.5142715",
"0.5142715",
"0.5129503",
"0.5129503",
"0.5124877",
"0.5124566",
"0.51189137",
"0.51189137",
"0.51189137",
"0.51189137",
"0.51189137",
"0.51189137",
"0.51167417",
"0.51167417",
"0.51146674",
"0.5104373",
"0.5104373",
"0.5100999",
"0.5099192",
"0.5099192",
"0.5099192",
"0.5089795",
"0.5089795",
"0.5089795",
"0.5089795",
"0.5089795",
"0.5089795",
"0.50878936",
"0.5085971",
"0.5085971",
"0.50725603",
"0.50725603",
"0.50725603",
"0.50725603",
"0.50725603",
"0.50725603",
"0.50725603",
"0.50725603",
"0.50725603",
"0.50725603",
"0.5063006",
"0.5055949",
"0.50466293",
"0.50466293",
"0.50416595",
"0.5029244",
"0.5025907",
"0.5025907",
"0.5025532",
"0.5025532",
"0.5024797",
"0.5023419",
"0.502141",
"0.50144565",
"0.5012277",
"0.50100803",
"0.50100803",
"0.50100803",
"0.50100803",
"0.49888417",
"0.49838117",
"0.49838027"
] |
0.73753107
|
0
|
Sets the attachmentName value for this TradeHistoryEntryVo.
|
public void setAttachmentName(java.lang.String attachmentName) {
this.attachmentName = attachmentName;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setAttachmentName(String attachmentName) {\n\t\tthis.attachmentName = attachmentName;\n\t}",
"public void setFileAttachmentName(String name) {\n\t\tput(PdfName.A, new PdfString(name, PdfObject.TEXT_UNICODE));\n\t}",
"public String getAttachmentName() {\n\t\treturn attachmentName;\n\t}",
"public java.lang.String getAttachmentName() {\n return attachmentName;\n }",
"public void setAttachment(String attachment) {\n this.attachment = attachment == null ? null : attachment.trim();\n }",
"public void setFileAttachmentPagename(String name) {\n\t\tput(PdfName.P, new PdfString(name, null));\n\t}",
"public void setAttachment(Object attachment) {\n\t\tthis.attachment = attachment;\n\t}",
"public void setAttachment(Object attachment) {\n\tthis.attachment = attachment;\n }",
"public void setName(String name) {\n if (name == null || name.trim().length() == 0) {\n throw new IllegalArgumentException(\n \"Trigger name cannot be null or empty.\");\n }\n\n this.name = name;\n this.key = null;\n }",
"@Override\n\tpublic void setName(String name) {\n\t\theldObj.setName(name);\n\t}",
"private void setName(){\r\n\t\tString tagString = new String();\r\n\t\tfor (String k : tags.keySet()){\r\n\t\t\ttagString += \"@\" + k;\r\n\t\t}\r\n\t\tString newName = originalName + tagString +\".\"+ extension;\r\n\t\tif (!newName.equals(name)){\r\n\t\t\tremovePrevNames(newName); //if the new name is a previous name\r\n\t\t\taddPrevNames(name);\r\n\t\t\tupdateLog(newName);\r\n\t\t\tname = newName;\r\n\t\t\t//notify the tag observer\r\n\t\t\tsetChanged();\r\n\t\t\tnotifyObservers();\r\n\t\t\tclearChanged();\r\n\t\t}\r\n\t}",
"void setValueAttachment(org.hl7.fhir.Attachment valueAttachment);",
"public void setName(java.lang.String name)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$26);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(NAME$26);\r\n }\r\n target.setStringValue(name);\r\n }\r\n }",
"public final void setActivityName(java.lang.String activityname)\n\t{\n\t\tsetActivityName(getContext(), activityname);\n\t}",
"public SeriesInstance setAttachment(ResourceReferenceDt theValue) {\n\t\tmyAttachment = theValue;\n\t\treturn this;\n\t}",
"@Override\n\tpublic void setName(String name) {\n\t\tfanChart.setName(name);\n\t}",
"@Override\n @IcalProperty(pindex = PropertyInfoIndex.ATTACH,\n adderName = \"attachment\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true)\n public void setAttachments(final Set<BwAttachment> val) {\n attachments = val;\n }",
"public void setAttachmentPath(String attachmentPath) {\n\t\tthis.attachmentPath = attachmentPath;\n\t}",
"public void setNoteAttachment(Set<NoteAttachment> aNoteAttachment) {\n noteAttachment = aNoteAttachment;\n }",
"public void setFilename(String name){\n\t\tfilename = name;\n\t}",
"public void setFileName( String name ) {\n\tfilename = name;\n }",
"public Set getAttachmentNames() {\n if (attachments != null) {\n return Collections.unmodifiableSet(attachments.keySet());\n }\n return Collections.EMPTY_SET;\n }",
"public void setEntryName(String ename);",
"public void setAttachmentInfo(org.oasis_open.docs.ns.bpel4people.ws_humantask.types._200803.TAttachmentInfo attachmentInfo)\n {\n generatedSetterHelperImpl(attachmentInfo, ATTACHMENTINFO$0, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);\n }",
"public void setFileName(String name)\n\t{\n\t\tfileName = name;\n\t}",
"public void setFilename( String name) {\n\tfilename = name;\n }",
"public void setFileName(String name) {\r\n this.fileName = name == null ? null : name.substring(name.lastIndexOf(File.separator) + 1);\r\n }",
"public void setMentionName(String v) {\n _setStringValueNfc(wrapGetIntCatchException(_FH_mentionName), v);\n }",
"public void xsetName(org.apache.xmlbeans.XmlString name)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlString target = null;\r\n target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(NAME$6);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(NAME$6);\r\n }\r\n target.set(name);\r\n }\r\n }",
"public void xsetName(org.apache.xmlbeans.XmlString name)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlString target = null;\r\n target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(NAME$8);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(NAME$8);\r\n }\r\n target.set(name);\r\n }\r\n }",
"public void setAttachmentType(AttachmentType attachmentType) {\n\t\tthis.attachmentType = attachmentType;\n\t}",
"public void xsetName(org.apache.xmlbeans.XmlString name)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(NAME$4);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(NAME$4);\n }\n target.set(name);\n }\n }",
"public MailMessage setAttachment(List<MailAttachment> attachment) {\n this.attachment = attachment;\n return this;\n }",
"public void setAttachId(String attachId) {\n this.attachId = attachId;\n }",
"public String getAttachment() {\n return attachment;\n }",
"public void setLineName(String lineName) {\n this.lineName = lineName == null ? null : lineName.trim();\n }",
"public void setName(java.lang.String name)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$8);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(NAME$8);\r\n }\r\n target.setStringValue(name);\r\n }\r\n }",
"public void setName(java.lang.String name)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$6);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(NAME$6);\r\n }\r\n target.setStringValue(name);\r\n }\r\n }",
"public void xsetName(org.apache.xmlbeans.XmlString name)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlString target = null;\r\n target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(NAME$2);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(NAME$2);\r\n }\r\n target.set(name);\r\n }\r\n }",
"public void setName(java.lang.String name)\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(NAME$4);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(NAME$4);\n }\n target.setStringValue(name);\n }\n }",
"public void setAttachmentId(java.lang.Long attachmentId) {\n this.attachmentId = attachmentId;\n }",
"public void setFileName(final String theName)\r\n {\r\n\r\n // this means we are currently in a save operation\r\n _modified = false;\r\n\r\n // store the filename\r\n _fileName = theName;\r\n\r\n // and use it as the name\r\n if (theName.equals(NewSession.DEFAULT_NAME))\r\n setName(theName);\r\n\r\n }",
"public void setRecordName(String recordName) {\n \t\tthis.recordName = recordName;\n \t}",
"public void xsetName(org.apache.xmlbeans.XmlString name)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlString target = null;\r\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(NAME$0, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(NAME$0);\r\n }\r\n target.set(name);\r\n }\r\n }",
"public void setName(QName aName)\r\n {\r\n mName = aName;\r\n }",
"public void setName(String name) {\n mBundle.putString(KEY_NAME, name);\n }",
"public TarArchiveEntry setName(String name) {\n this.name = ArchiveUtils.normalizeFileName(name, false);\n this.isDir = name.endsWith(\"/\");\n this.mode = isDir ? DEFAULT_DIR_MODE : DEFAULT_FILE_MODE;\n this.linkFlag = isDir ? LF_DIR : LF_NORMAL;\n return this;\n }",
"public void xsetName(org.apache.xmlbeans.XmlString name)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(NAME$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(NAME$0);\n }\n target.set(name);\n }\n }",
"public void xsetName(org.apache.xmlbeans.XmlString name)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(NAME$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(NAME$0);\n }\n target.set(name);\n }\n }",
"@Override\n\tpublic void setName(String name) {\n\t\tcomparedChart.setName(name);\n\t}",
"public void setName(java.lang.String name)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(NAME$0, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(NAME$0);\r\n }\r\n target.setStringValue(name);\r\n }\r\n }",
"public void setActivityName(Integer activityName) {\n this.activityName = activityName;\n }",
"public void setSenderHeaderName(java.lang.String senderHeaderName)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SENDERHEADERNAME$24, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(SENDERHEADERNAME$24);\n }\n target.setStringValue(senderHeaderName);\n }\n }",
"public void setAuditUserName(String auditUserName) {\n this.auditUserName = auditUserName == null ? null : auditUserName.trim();\n }",
"@Override\n public void onSaveAttachmentToUserProvidedDirectory(final AttachmentViewInfo attachment) {\n MessageViewFragment fragment = messageViewFragmentWeakReference.get();\n if (fragment == null) {\n return;\n }\n\n Intent intent = new Intent();\n intent.putExtra(\"attachmentInfo\", attachment);\n FileBrowserHelper.getInstance().showFileBrowserActivity(fragment, null,\n MessageViewFragment.ACTIVITY_CHOOSE_DIRECTORY, new FileBrowserHelper.FileBrowserFailOverCallback() {\n @Override\n public void onPathEntered(String path) {\n getAttachmentController(attachment).saveAttachmentTo(path);\n }\n\n @Override\n public void onCancel() {\n // Do nothing\n }\n }, intent);\n\n }",
"private ExcelAttachment(T attachment){\n\t\tthis.attachment=attachment;\n\t}",
"public void setName(java.lang.String name)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$2);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(NAME$2);\r\n }\r\n target.setStringValue(name);\r\n }\r\n }",
"public void setName(String name) {\n\t\tmName = name;\n\t}",
"public synchronized void setAttributeName(@Nonnull final String name) {\n checkSetterPreconditions();\n attributeName = Constraint.isNotNull(name, \"attributeName must not be null\");\n }",
"public void setName(java.lang.String name)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(NAME$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(NAME$0);\n }\n target.setStringValue(name);\n }\n }",
"public void setName(java.lang.String name)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(NAME$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(NAME$0);\n }\n target.setStringValue(name);\n }\n }",
"public final void setName(final String inName) {\n mName = inName;\n }",
"public void setAttachmentHeader(String filename)\n\t{\n\t\tsetHeader(\"Content-Disposition\", \"attachment\"\n\t\t\t\t+ ((!Strings.isEmpty(filename)) ? (\"; filename=\\\"\" + filename + \"\\\"\") : \"\"));\n\t}",
"public void setName(final String aName)\n\t{\n\n\t\tthis.name = aName;\n\t}",
"public void setFileName(edu.umich.icpsr.ddi.FileNameType fileName)\n {\n synchronized (monitor())\n {\n check_orphaned();\n edu.umich.icpsr.ddi.FileNameType target = null;\n target = (edu.umich.icpsr.ddi.FileNameType)get_store().find_element_user(FILENAME$0, 0);\n if (target == null)\n {\n target = (edu.umich.icpsr.ddi.FileNameType)get_store().add_element_user(FILENAME$0);\n }\n target.set(fileName);\n }\n }",
"public void setName(String aName) {\n name = aName;\n }",
"public final void setActivityName(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String activityname)\n\t{\n\t\tgetMendixObject().setValue(context, MemberNames.ActivityName.toString(), activityname);\n\t}",
"public void xsetSenderHeaderName(org.apache.xmlbeans.XmlString senderHeaderName)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(SENDERHEADERNAME$24, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(SENDERHEADERNAME$24);\n }\n target.set(senderHeaderName);\n }\n }",
"@Override\n\tpublic void setUserName(String userName) {\n\t\t_changesetEntry.setUserName(userName);\n\t}",
"public void setName(String name) {\r\n this._name = name;\r\n }",
"public void setName(String name) {\n\t\tthis.name = name;\n\t\tfireChange();\n\t}",
"public void seteName(String eName) {\n this.eName = eName == null ? null : eName.trim();\n }",
"public void setSendName(String sendName) {\r\n this.sendName = sendName == null ? null : sendName.trim();\r\n }",
"public void setName(java.lang.String name)\n {\n name_.setLength(0);\n name_.append(name);\n }",
"public void setName(String filename) {\n\t\tthis.filename = filename;\n\t}",
"public void setName(String name) {\r\n\t\t_name = name;\r\n\t}",
"public static void setTransactionName(String name) {\n if (active) {\n TransactionAccess.setName(name);\n }\n }",
"public void setName(final String name) {\n mName = name;\n }",
"@Override\r\n\tpublic void setName(String name) {\n\t\tthis.name = name;\r\n\t}",
"@IcalProperty(pindex = PropertyInfoIndex.NAME,\n required = true,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true)\n public void setName(final String val) {\n name = val;\n }",
"public void setReceiveName(String receiveName) {\n this.receiveName = receiveName == null ? null : receiveName.trim();\n }",
"public void setFileName(String fileName)\r\n\t{\r\n\t\tm_fileName = fileName;\r\n\t}",
"public void setName(String name) {\n this.mName = name;\n }",
"public void setName(final java.lang.String name) {\r\n this._name = name;\r\n }",
"public void setName(String name)\n\t{\n\t\tthis._name=name;\n\t}",
"@Override\n\tpublic void setName(String name) {\n\t\tsuper.setName(name);\n\t}",
"@Override\n\tpublic void setName(String name) {\n\t\tsuper.setName(name);\n\t}",
"public void setIsAttachment(boolean isAttachment) {\n this.isAttachment = isAttachment;\n }",
"public void setSnapshotName(java.lang.String snapshotName) {\r\n this.snapshotName = snapshotName;\r\n }",
"public void setName(String name) {\n\t\tm_name = (name != null) ? name : \"\";\n\t}",
"public void setTraceFile(String fileName)\r\n {\r\n this.filename = fileName;\r\n }",
"@Override\n\tpublic void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setAttachments(com.sforce.soap.enterprise.QueryResult attachments) {\r\n this.attachments = attachments;\r\n }",
"public void setFileName(String fileName)\r\n {\r\n sFileName = fileName;\r\n }",
"public void setaName(String aName) {\n this.aName = aName == null ? null : aName.trim();\n }",
"public void setaName(String aName) {\n this.aName = aName == null ? null : aName.trim();\n }",
"@Override\n\tpublic void setName(String name) {\n\t\tthis.name = name;\n\n\t}",
"public void setName(String name) {\n\t this.name = name;\n\t }",
"protected void setName(String name) {\n this._name = name;\n }",
"@Override\n\tpublic void setName(String name) throws RemoteException {\n\t\tthis.name = name;\n\t}"
] |
[
"0.7060697",
"0.66979986",
"0.6352852",
"0.60273594",
"0.5863744",
"0.57527107",
"0.5623035",
"0.55846244",
"0.49861458",
"0.49009204",
"0.48789594",
"0.48589268",
"0.4790334",
"0.47796747",
"0.47790793",
"0.47714227",
"0.4762727",
"0.47606272",
"0.47500867",
"0.47300673",
"0.46995366",
"0.46767026",
"0.4673559",
"0.46591067",
"0.46418092",
"0.4626874",
"0.46233982",
"0.45948064",
"0.45828596",
"0.45718804",
"0.4566432",
"0.4561642",
"0.45603195",
"0.45494893",
"0.45430565",
"0.45346877",
"0.4526155",
"0.45247987",
"0.4524051",
"0.45183155",
"0.45159975",
"0.44997466",
"0.44965062",
"0.44815204",
"0.44753104",
"0.44721943",
"0.44649342",
"0.44613978",
"0.44613978",
"0.44555506",
"0.44364315",
"0.44328618",
"0.4430582",
"0.44294697",
"0.44293448",
"0.44281965",
"0.44267666",
"0.4424452",
"0.4418773",
"0.44170764",
"0.44170764",
"0.44153252",
"0.44147158",
"0.44134784",
"0.4403926",
"0.4396918",
"0.43861923",
"0.4385989",
"0.4385829",
"0.43823895",
"0.43698323",
"0.436966",
"0.43591028",
"0.4353744",
"0.43520498",
"0.43506974",
"0.43505797",
"0.43300828",
"0.43266296",
"0.4326",
"0.43222794",
"0.43176916",
"0.43113548",
"0.43104833",
"0.43041867",
"0.4298628",
"0.4298628",
"0.42967418",
"0.42960212",
"0.42959282",
"0.42949325",
"0.4291659",
"0.42868564",
"0.4283903",
"0.42805344",
"0.42805344",
"0.428039",
"0.42794552",
"0.42776546",
"0.42772868"
] |
0.7221797
|
0
|
Gets the comment value for this TradeHistoryEntryVo.
|
public java.lang.String getComment() {
return comment;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public String getComment() {\n Object ref = comment_;\n if (!(ref instanceof String)) {\n String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n comment_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }",
"public String getComment() {\n return this.comment;\n }",
"public String getComment() {\r\n\t\treturn comment;\r\n\t}",
"public String getComment() {\n Object ref = comment_;\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 if (bs.isValidUtf8()) {\n comment_ = s;\n }\n return s;\n }\n }",
"public String getComment() {\n return comment;\n }",
"public String getComment() {\n return comment;\n }",
"public String getComment() {\n return comment;\n }",
"public String getComment() {\n return comment;\n }",
"public String getComment() {\n return comment;\n }",
"public String getComment() {\n return comment;\n }",
"public String getComment() {\n return comment;\n }",
"public String getComment() {\n return variant == null ? null : variant.getComment(this);\n }",
"public String getComment() {\n\t\treturn comment;\n\t}",
"public String getComment() {\n\t\treturn comment;\n\t}",
"public final String getComment() {\n return comment;\n }",
"public String getComment() {\n return comment ;\n }",
"public com.google.protobuf.ByteString\n getCommentBytes() {\n Object ref = comment_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n comment_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public java.lang.String getComment() {\r\n return comment;\r\n }",
"public com.google.protobuf.ByteString\n getCommentBytes() {\n Object ref = comment_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n comment_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String getComment()\n {\n return comment;\n }",
"@Lob\r\n @Column (name=\"RECORD_COMMENT\")\r\n\tpublic String getComment() {\r\n\t\treturn comment;\r\n\t}",
"@Override\n\tpublic String getComment() {\n\t\treturn model.getComment();\n\t}",
"com.google.protobuf.ByteString\n getCommentBytes();",
"public String getComment() throws SQLException {\n\t\tloadFromDB();\n\t\treturn rev_comment;\n\t}",
"public String getComment(){\n return this.comment;\n }",
"public Optional<String> getComment() {\n\t\treturn Optional.ofNullable(_comment);\n\t}",
"public String get_comment() throws Exception {\n\t\treturn this.comment;\n\t}",
"public String getComment() {\n\t\tif (comment != null)\n\t\t\treturn ProteomeXchangeFilev2_1.COM + TAB\n\t\t\t// + \"comment\" + TAB\n\t\t\t\t\t+ comment;\n\t\treturn null;\n\t}",
"public String getComment(){\n return comment;\n }",
"@Schema(description = \"A comment about the worklog in [Atlassian Document Format](https://developer.atlassian.com/cloud/jira/platform/apis/document/structure/). Optional when creating or updating a worklog.\")\n public Object getComment() {\n return comment;\n }",
"public String getCommentId() {\n return commentId.toString();\n }",
"public String getCommentText() {\n\t return this.commentText;\n\t}",
"public String getCommentText() {\r\n\r\n\t\treturn commentText;\r\n\t}",
"public String getComment() {\n\t LogWriter.logMessage(LogWriter.TRACE_DEBUG,\"getComment() \" );\n Via via=(Via)sipHeader;\n return via.getComment();\n }",
"public Long getCommentId() {\n return commentId;\n }",
"@Override\n public String toString() {\n return \"Comment{\" +\n \"game='\" + game + '\\'' +\n \"player='\" + player + '\\'' +\n \", rating=\" + rating +\n \", ratedOn=\" + ratedOn +\n '}';\n }",
"public String getComment();",
"public String getComment();",
"public String getComment();",
"public String getComment();",
"public String getComment();",
"public String getComment();",
"public java.lang.String getComments() {\n java.lang.Object ref = comments_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n comments_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String getComment() {\n \t\t\t\t\t\t\t\t\treturn null;\n \t\t\t\t\t\t\t\t}",
"public com.google.protobuf.ByteString\n getCommentsBytes() {\n java.lang.Object ref = comments_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n comments_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public java.lang.String getComments() {\n java.lang.Object ref = comments_;\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 comments_ = s;\n }\n return s;\n }\n }",
"public Integer getCommentId() {\n return commentId;\n }",
"public Integer getCommentId() {\n return commentId;\n }",
"public String toString () {\n if (this.comment != null) {\n return this.comment;\n }\n return super.toString ();\n }",
"public com.google.protobuf.ByteString\n getCommentsBytes() {\n java.lang.Object ref = comments_;\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 comments_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String getCommentContent() {\n return commentContent;\n }",
"public String getComment() {\n return description;\n }",
"public String getComments() {\n return (String) getAttributeInternal(COMMENTS);\n }",
"public String getjComment() {\n return jComment;\n }",
"public java.lang.String getHopscomment() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException {\n return (((java.lang.String) __getCache(\"hopscomment\")));\n }",
"public String getComment() throws RuntimeException\n {\n return getTitle();\n }",
"public String getComments() {\r\n return this.comments;\r\n }",
"public String getComments() {\n return this.comments;\n }",
"public String getComments() {\n\t\treturn this.comments;\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn \"Comment [id=\" + id + \", comment=\" + comment + \", user=\" + user\n\t\t\t\t+ \", entity=\" + entity + \", entityId=\" + entityId\n\t\t\t\t+ \", parrent=\" + parrent + \", likes=\" + likes + \"]\";\n\t}",
"public java.lang.String getVersionComment() {\n return versionComment;\n }",
"public String getComments() {\n return _comments;\n }",
"String getComment();",
"String getComment();",
"public ST getComment() { \r\n\t\tST retVal = this.getTypedField(48, 0);\r\n\t\treturn retVal;\r\n }",
"public String getBookComment() {\n return bookComment;\n }",
"public String getBookComment() {\n return bookComment;\n }",
"public String getComments() {\n return comments;\n }",
"com.google.protobuf.ByteString\n getCommentsBytes();",
"public String getComments() { \n\t\treturn getCommentsElement().getValue();\n\t}",
"public Date getCommentTime() {\n return commentTime;\n }",
"public String getFileComment()\r\n {\r\n return sFileComment;\r\n }",
"public String getComments() {\n\t\treturn comments;\n\t}",
"public Date getCommentTime() {\n\t return this.commentTime;\n\t}",
"public String getStatusComment() {\n\t\treturn statusComment;\n\t}",
"public StringDt getCommentsElement() { \n\t\tif (myComments == null) {\n\t\t\tmyComments = new StringDt();\n\t\t}\n\t\treturn myComments;\n\t}",
"public String getAcCommentsMessage() {\n return acCommentsMessage;\n }",
"public Integer getBookCommentId() {\n return bookCommentId;\n }",
"public int getCommentId();",
"@ApiModelProperty(example = \"null\", value = \"The comments of the reporting task.\")\n public String getComments() {\n return comments;\n }",
"public Color getCommentColor() {\n return this.getConfiguredColor(PreferencesConstants.COLOR_COMMENT);\n }",
"java.lang.String getCommentId();",
"public Comment getDisplayComment() {\n return this;\n }",
"public java.lang.String getLatestCommentText() {\n return latestCommentText;\n }",
"@Override\r\n public String toString() {\r\n return \"com.abbt.training.persistence.ContactedUsComments[id=\" + id + \"]\";\r\n }",
"String getCommentStringValue(Object comment);",
"public List<CommentInfo> getComments() {\n \treturn this.comments;\n }",
"@Override\n public java.lang.String getComments() {\n return _entityCustomer.getComments();\n }",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(getClass().getSimpleName());\n sb.append(\" [\");\n sb.append(\"Hash = \").append(hashCode());\n sb.append(\", acCommentsId=\").append(acCommentsId);\n sb.append(\", acCommentsParent=\").append(acCommentsParent);\n sb.append(\", acCommentsFrom=\").append(acCommentsFrom);\n sb.append(\", acCommentsTo=\").append(acCommentsTo);\n sb.append(\", acCommentsLevel=\").append(acCommentsLevel);\n sb.append(\", acCommentsMessage=\").append(acCommentsMessage);\n sb.append(\", acCommentsAddtime=\").append(acCommentsAddtime);\n sb.append(\", acCommentsStatus=\").append(acCommentsStatus);\n sb.append(\", acCommentsFromtable=\").append(acCommentsFromtable);\n sb.append(\", acCommentsSeneitive=\").append(acCommentsSeneitive);\n sb.append(\", serialVersionUID=\").append(serialVersionUID);\n sb.append(\"]\");\n return sb.toString();\n }",
"org.hl7.fhir.String getComments();",
"public java.lang.String getComments () {\r\n\t\treturn comments;\r\n\t}",
"@Override\n\tpublic CommentVnEntity GetCommentById(CommentVnEntity commentEntity) {\n\t\treturn null;\n\t}",
"public Comment getDeleteComment() {\r\n return deleteComment;\r\n }",
"String getComment() {\n//\t\t\tm1();\n\t\t\treturn \"small\";\n\t\t}",
"public List<Comment> getComments() {\n return this.comments;\n }",
"private void bindOrderStatusHistoryComment() {\n StringBuilder commentHistory = new StringBuilder();\n for (int index = 0; index < orderDetail.getStatusHistories().size(); index++) {\n StatusHistory statusHistory = orderDetail.getStatusHistories().get(index);\n if (statusHistory.getIsVisibleOnFront() == 1) {\n commentHistory.append(statusHistory.getCreatedAt()).append(\": \").append(statusHistory.getComment());\n if (index < orderDetail.getStatusHistories().size() - 1) {\n commentHistory.append(\"\\n\");\n }\n }\n }\n if (!commentHistory.toString().isEmpty()) {\n txtOrderComment.setVisibility(View.VISIBLE);\n txtOrderComment.setText(commentHistory.toString());\n }\n }",
"@Override\r\n\tpublic int compareTo(Comment o) {\n\t\treturn this.productCommentNo-o.productCommentNo;\r\n\t}",
"public java.lang.String getComments () {\n\t\treturn comments;\n\t}"
] |
[
"0.67011553",
"0.6679011",
"0.6640305",
"0.66182876",
"0.6610964",
"0.6610964",
"0.6610964",
"0.6610964",
"0.6610964",
"0.6610964",
"0.6610964",
"0.66071045",
"0.6602818",
"0.6602818",
"0.6596638",
"0.657992",
"0.6569975",
"0.65295994",
"0.6521703",
"0.6499547",
"0.64485675",
"0.64459497",
"0.64430344",
"0.641065",
"0.63402915",
"0.63279516",
"0.63071775",
"0.625994",
"0.62414634",
"0.6233553",
"0.6230433",
"0.6158458",
"0.6145225",
"0.6135526",
"0.6127976",
"0.61129326",
"0.6112726",
"0.6112726",
"0.6112726",
"0.6112726",
"0.6112726",
"0.6112726",
"0.6077394",
"0.6053863",
"0.6035418",
"0.6028446",
"0.6024206",
"0.6024206",
"0.6024152",
"0.60050565",
"0.5957515",
"0.5925026",
"0.5918986",
"0.59046614",
"0.59038246",
"0.58955884",
"0.5889532",
"0.58866",
"0.5841053",
"0.5831327",
"0.5827434",
"0.5818331",
"0.5811688",
"0.5811688",
"0.5795798",
"0.5768855",
"0.5768855",
"0.569553",
"0.56858134",
"0.5678865",
"0.5678268",
"0.5633997",
"0.56166947",
"0.5605791",
"0.5596759",
"0.55896056",
"0.555078",
"0.5537097",
"0.55131656",
"0.5497155",
"0.54967326",
"0.5490362",
"0.5484925",
"0.5471696",
"0.54329324",
"0.541203",
"0.54093367",
"0.537636",
"0.5362408",
"0.5357812",
"0.5356039",
"0.53444034",
"0.53335327",
"0.5328837",
"0.53144646",
"0.5312794",
"0.530523",
"0.5304003"
] |
0.6524521
|
20
|
Sets the comment value for this TradeHistoryEntryVo.
|
public void setComment(java.lang.String comment) {
this.comment = comment;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setComment(String comment);",
"public void setComment(String comment);",
"public final void setComment(final String comment) {\n this.comment = comment;\n }",
"public void setComment(String c) {\n comment = c ;\n }",
"public void setComment(String comment) {\n this.comment = comment;\n }",
"public void setComment(String comment)\n {\n this.comment = comment;\n }",
"public void setComment(String comment) {\n this.comment = comment;\n }",
"public void setComment(String comment){\n this.comment = comment;\n }",
"public void setComment(String comment) {\n this.comment = comment;\n }",
"public void setComment(String comment) {\n this.comment = comment;\n }",
"public void setComment(String comment) {\n this.comment = comment == null ? null : comment.trim();\n }",
"public void setComment(String comment) {\n this.comment = comment == null ? null : comment.trim();\n }",
"public void setComment(String comment) {\n this.comment = comment == null ? null : comment.trim();\n }",
"public void setComment(String comment) {\n this.comment = comment == null ? null : comment.trim();\n }",
"public void setComment(java.lang.String comment) {\r\n this.comment = comment;\r\n }",
"public void setComment(String comment) {\r\n\t\tthis.comment = comment == null ? null : comment.trim();\r\n\t}",
"public void setComment(String comment) {\n\t\tthis.comment = comment;\n\t}",
"public void setComment(String comment) {\n\t\tthis.comment = comment;\n\t}",
"@Override\n\tpublic void setComment(String comment) {\n\t\tmodel.setComment(comment);\n\t}",
"public void setComment(String new_comment){\n this.comment=new_comment;\n }",
"public void set_comment(String comment) throws Exception{\n\t\tthis.comment = comment;\n\t}",
"public Builder setComment(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000020;\n comment_ = value;\n onChanged();\n return this;\n }",
"public void setComment(String p_comment) throws RuntimeException\n {\n setTitle(p_comment);\n }",
"public void setComments(String comment) {\n\t\tthis.comments = comment;\n\t}",
"public void setComments(java.lang.String value);",
"@Override\n @IcalProperty(pindex = PropertyInfoIndex.COMMENT,\n adderName = \"comment\",\n analyzed = true,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true)\n public void setComments(final Set<BwString> val) {\n comments = val;\n }",
"public void setHopscomment( java.lang.String newValue ) {\n __setCache(\"hopscomment\", newValue);\n }",
"public void setComments(String newValue);",
"void setComments(org.hl7.fhir.String comments);",
"public Builder setCommentBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000020;\n comment_ = value;\n onChanged();\n return this;\n }",
"public void setComment(final String newComment) {\n this.comment = newComment;\n }",
"public void setCommentId(int commentId);",
"public void setComments(String comments) {\n _comments = comments;\n }",
"public void setComments(String value) {\n setAttributeInternal(COMMENTS, value);\n }",
"public void setComments( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), COMMENTS, value);\r\n\t}",
"public void setComments(java.lang.String value) {\r\n\t\tBase.set(this.model, this.getResource(), COMMENTS, value);\r\n\t}",
"public void setComments(String comments) {\r\n this.comments = comments;\r\n }",
"@Override\n public void setComments(java.lang.String comments) {\n _entityCustomer.setComments(comments);\n }",
"public void setComments (java.lang.String comments) {\r\n\t\tthis.comments = comments;\r\n\t}",
"@PropertySetter(role = COMMENT)\n\t<E extends CtElement> E addComment(CtComment comment);",
"public void setComments(String comments) {\n this.comments = comments;\n }",
"void setCheckinComment(String comment);",
"public void setComment(Address address, int commentType, String comment);",
"public Builder setCommentsBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n comments_ = value;\n onChanged();\n return this;\n }",
"public CrashReport withComment(String comment);",
"public void setCommentText(String commentText) {\n\t this.commentText = commentText;\n\t}",
"public void setComment(String comment, int rating);",
"Builder addComment(Comment value);",
"public void setComments(String comments) {\n this.comments = comments == null ? null : comments.trim();\n }",
"public void setComments (java.lang.String comments) {\n\t\tthis.comments = comments;\n\t}",
"public void setComments(String comments) {\n\t\tthis.comments = comments;\n\t}",
"public void setComments(String comments) {\n\t\tthis.comments = comments;\n\t}",
"public Builder setComments(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n comments_ = value;\n onChanged();\n return this;\n }",
"public String getComment() {\r\n\t\treturn comment;\r\n\t}",
"public String getComment() {\n return this.comment;\n }",
"public void setVersionComment(java.lang.String versionComment) {\n this.versionComment = versionComment;\n }",
"public DataModelDescriptorBuilder comment(String string) {\n this.comment = string;\n return this;\n }",
"public void setZCOMMENTS(java.lang.String value)\n {\n if ((__ZCOMMENTS == null) != (value == null) || (value != null && ! value.equals(__ZCOMMENTS)))\n {\n _isDirty = true;\n }\n __ZCOMMENTS = value;\n }",
"public void setFileComment(String fileComment)\r\n {\r\n sFileComment = fileComment;\r\n }",
"public String getComment() {\n\t\treturn comment;\n\t}",
"public String getComment() {\n\t\treturn comment;\n\t}",
"public String getComment() {\n return comment;\n }",
"public String getComment() {\n return comment;\n }",
"public String getComment() {\n return comment;\n }",
"public String getComment() {\n return comment;\n }",
"public String getComment() {\n return comment;\n }",
"public String getComment() {\n return comment;\n }",
"public String getComment() {\n return comment;\n }",
"public void setjComment(String jComment) {\n this.jComment = jComment == null ? null : jComment.trim();\n }",
"public void setComment(String comment) throws IllegalArgumentException,\n SipParseException {\n\tLogWriter.logMessage(LogWriter.TRACE_DEBUG,\"setComment() \" + comment );\n Via via=(Via)sipHeader;\n \n if (comment==null) \n throw new IllegalArgumentException\n (\"JAIN-EXCEPTION: null comment\" );\n else if (comment.length() == 0) \n throw new IllegalArgumentException\n (\"JAIN-EXCEPTION: 0 length comment\" );\n else via.setComment(comment);\n }",
"Builder addComment(String value);",
"public void setCommentContent(String commentContent) {\n this.commentContent = commentContent == null ? null : commentContent.trim();\n }",
"public String getComment() {\n return comment ;\n }",
"public void setComment(String path, String comment) {\n if (comment == null)\n configComments.remove(path);\n else\n configComments.put(path, comment);\n }",
"@Lob\r\n @Column (name=\"RECORD_COMMENT\")\r\n\tpublic String getComment() {\r\n\t\treturn comment;\r\n\t}",
"private void setFileComment(String fileComment){\n put(SlackParamsConstants.FILE_COMMENT, fileComment);\n }",
"public ElementDefinitionDt setComments(StringDt theValue) {\n\t\tmyComments = theValue;\n\t\treturn this;\n\t}",
"public static void setComments(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, java.lang.String value) {\r\n\t\tBase.set(model, instanceResource, COMMENTS, value);\r\n\t}",
"public void setCommentId(Integer commentId) {\n this.commentId = commentId;\n }",
"@Override\n public void comment(String comment)\n {\n }",
"@Override\n\tpublic CommentVnEntity UpdateComment(CommentVnRequest commentRequest) {\n\t\treturn null;\n\t}",
"public String getCommentText() {\r\n\r\n\t\treturn commentText;\r\n\t}",
"public com.google.protobuf.ByteString\n getCommentBytes() {\n Object ref = comment_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n comment_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public Comment(String data) {\n value = data;\n }",
"public final String getComment() {\n return comment;\n }",
"public String getComment(){\n return this.comment;\n }",
"public static void comment(String comment) {\n openComment();\n Log.write(comment);\n closeComment();\n Log.writeln();\n }",
"public String getComment()\n {\n return comment;\n }",
"private void applyComment()\n {\n Map<String, GWikiArtefakt<?>> map = new HashMap<String, GWikiArtefakt<?>>();\n page.collectParts(map);\n GWikiArtefakt<?> artefakt = map.get(\"ChangeComment\");\n if (artefakt instanceof GWikiChangeCommentArtefakt == false) {\n return;\n }\n\n GWikiChangeCommentArtefakt commentArtefakt = (GWikiChangeCommentArtefakt) artefakt;\n String oldText = commentArtefakt.getStorageData();\n String ntext;\n String uname = wikiContext.getWikiWeb().getAuthorization().getCurrentUserName(wikiContext);\n int prevVersion = page.getElementInfo().getProps().getIntValue(GWikiPropKeys.VERSION, 0);\n if (StringUtils.isNotBlank(comment) == true) {\n Date now = new Date();\n ntext = \"{changecomment:modifiedBy=\"\n + uname\n + \"|modifiedAt=\"\n + GWikiProps.date2string(now)\n + \"|version=\"\n + (prevVersion + 1)\n + \"}\\n\"\n + comment\n + \"\\n{changecomment}\\n\"\n + StringUtils.defaultString(oldText);\n } else {\n ntext = oldText;\n }\n ntext = StringUtils.trimToNull(ntext);\n commentArtefakt.setStorageData(ntext);\n }",
"private void updateLiveComment(String comment) {\n MainActivity mainActivity = (MainActivity) this.getContext();\n mainActivity.setLiveComment(comment);\n }",
"public void setCommentId(Long commentId) {\n this.commentId = commentId;\n }",
"@Override\n\t/**\n\t * does nothing because comments are disabled for classes \n\t * \n\t * @param c\n\t */\n\tpublic void setComment(String c) {\n\t}",
"public ElementDefinitionDt setComments( String theString) {\n\t\tmyComments = new StringDt(theString); \n\t\treturn this; \n\t}",
"public void setBookComment(String bookComment) {\n this.bookComment = bookComment == null ? null : bookComment.trim();\n }",
"public void setBookComment(String bookComment) {\n this.bookComment = bookComment == null ? null : bookComment.trim();\n }",
"public static void setComments( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(model, instanceResource, COMMENTS, value);\r\n\t}",
"public com.google.protobuf.ByteString\n getCommentBytes() {\n Object ref = comment_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n comment_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public void addComment(String c) {\n comments.add(c);\n }"
] |
[
"0.7230685",
"0.7230685",
"0.7106237",
"0.7038998",
"0.7009017",
"0.6960546",
"0.6958948",
"0.69404864",
"0.69227046",
"0.69227046",
"0.68913156",
"0.68913156",
"0.68913156",
"0.68913156",
"0.6891022",
"0.6852214",
"0.680266",
"0.680266",
"0.67652094",
"0.6678088",
"0.66504556",
"0.6605576",
"0.65490615",
"0.648101",
"0.64507806",
"0.63872916",
"0.6376771",
"0.63694847",
"0.6350704",
"0.6343874",
"0.62121665",
"0.6199157",
"0.61975724",
"0.61867446",
"0.6171217",
"0.61693287",
"0.6114298",
"0.6112083",
"0.6084347",
"0.6078655",
"0.6072902",
"0.6058363",
"0.60407484",
"0.6034685",
"0.6031625",
"0.6028709",
"0.6013039",
"0.6012886",
"0.60031235",
"0.59886086",
"0.5980979",
"0.5980979",
"0.5970073",
"0.59471035",
"0.5940701",
"0.5904077",
"0.5882514",
"0.5876868",
"0.5871804",
"0.5861834",
"0.5861834",
"0.584658",
"0.584658",
"0.584658",
"0.584658",
"0.584658",
"0.584658",
"0.584658",
"0.58432084",
"0.5813517",
"0.5813248",
"0.5777409",
"0.5776901",
"0.57745886",
"0.57463413",
"0.5741156",
"0.57394964",
"0.5713888",
"0.5683731",
"0.5682575",
"0.56813616",
"0.56778276",
"0.5673189",
"0.566677",
"0.56659454",
"0.565672",
"0.5651803",
"0.5628995",
"0.5608911",
"0.55953306",
"0.5591153",
"0.5578275",
"0.5577246",
"0.5575676",
"0.5575676",
"0.5572662",
"0.55601853",
"0.5550697"
] |
0.68435836
|
17
|
Gets the createdByName value for this TradeHistoryEntryVo.
|
public java.lang.String getCreatedByName() {
return createdByName;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setCreatedByName(java.lang.String createdByName) {\n this.createdByName = createdByName;\n }",
"public String getCreatedUserName() {\n return createdUserName;\n }",
"public java.lang.String getCreatedById() {\n return createdById;\n }",
"public java.lang.String getCreatedById() {\n return createdById;\n }",
"public java.lang.String getCreatedById() {\r\n return createdById;\r\n }",
"public java.lang.String getCreatedById() {\r\n return createdById;\r\n }",
"public String getCreateUsername() {\r\n\t\treturn createUsername;\r\n\t}",
"public String createdBy() {\n return this.createdBy;\n }",
"public Timestamp getCreatedByTimestamp() {\n\t\treturn new Timestamp(this.createdByTimestamp.getTime());\n\t}",
"public Timestamp getCreatedOn() {\r\n\t\treturn createdOn;\r\n\t}",
"public StringFilter getCreatedBy() {\n\t\treturn createdBy;\n\t}",
"public String getCreatedUser() {\r\n return this.createdUser;\r\n }",
"public String getCreated() {\n return this.created;\n }",
"public String getCreated() {\n return this.created;\n }",
"public String getCreatorName() {\n return creatorName;\n }",
"public String getCreatorName() {\n return creatorName;\n }",
"public String getCreatorName() {\n return creatorName;\n }",
"public String getNewName() {\n return instance.getNewName();\n }",
"public String getCreatedby()\n {\n return (String)getAttributeInternal(CREATEDBY);\n }",
"public java.lang.String getCreatedBy() {\r\n return createdBy;\r\n }",
"public String getCreateBy() {\r\n\t\treturn createBy;\r\n\t}",
"public String getCreateBy() {\r\n return createBy;\r\n }",
"public String getCREATED_BY() {\r\n return CREATED_BY;\r\n }",
"public String getCREATED_BY() {\r\n return CREATED_BY;\r\n }",
"public String getCREATED_BY() {\r\n return CREATED_BY;\r\n }",
"public String getCREATED_BY() {\r\n return CREATED_BY;\r\n }",
"public String getTicketCreatedBy() {\n\t\treturn TicketCreatedBy;\n\t}",
"public Date getCreateBy() {\n return createBy;\n }",
"public String getCreateBy() {\n\t\treturn createBy;\n\t}",
"public com.commercetools.api.models.common.CreatedBy getCreatedBy() {\n return this.createdBy;\n }",
"public com.commercetools.api.models.common.CreatedBy getCreatedBy() {\n return this.createdBy;\n }",
"public java.lang.String getUserCreated() {\n\t\treturn _tempNoTiceShipMessage.getUserCreated();\n\t}",
"public String getCreateBy() {\n return createBy;\n }",
"public String getCreateBy() {\n return createBy;\n }",
"public String getCreateBy() {\n return createBy;\n }",
"public String getCreateBy() {\n return createBy;\n }",
"public String getCreatedby() {\n return createdby;\n }",
"public Timestamp getCreated() {\n return created;\n }",
"public java.lang.String getCreatedBy() {\n java.lang.Object ref = createdBy_;\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 createdBy_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String createNewName() {\n\t\treturn null;\n\t}",
"@java.lang.Override\n public java.lang.String getCreatedBy() {\n java.lang.Object ref = createdBy_;\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 createdBy_ = s;\n return s;\n }\n }",
"@java.lang.Override\n public com.google.protobuf.ByteString\n getCreatedByBytes() {\n java.lang.Object ref = createdBy_;\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 createdBy_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String getCreatedAt(int i){\n return created[i];\n }",
"public DateTime getCreatedTimestamp() {\n\t\treturn this.createdTimestamp;\n\t}",
"public String getCreatedAt() {\n return createdAt;\n }",
"public String getCreatedAt() {\n return createdAt;\n }",
"public String getCreatedAt() {\n return createdAt;\n }",
"public String getHotActivityName() {\r\n return hotActivityName;\r\n }",
"public String getCrewName() {\r\n\t\treturn crewName;\r\n\t}",
"public String getCreatedAt() {\n return (String) get(\"created_at\");\n }",
"public String getCrewName() {\r\n return crewName;\r\n }",
"public java.lang.String getCreatorName() {\n return creatorName;\n }",
"public com.myconnector.domain.UserData getCreatedBy () {\n\t\treturn createdBy;\n\t}",
"public String getCreatedBy() {\r\n return createdBy;\r\n }",
"public String getCreatedBy() {\r\n return createdBy;\r\n }",
"public String getCreatedBy() {\r\n return createdBy;\r\n }",
"public String getCreatedBy() {\r\n\t\treturn createdBy;\r\n\t}",
"public java.time.ZonedDateTime getCreatedAt() {\n return this.createdAt;\n }",
"public java.time.ZonedDateTime getCreatedAt() {\n return this.createdAt;\n }",
"public String getCreateperson() {\r\n return createperson;\r\n }",
"public String getCreatedBy() {\n\t\treturn createdBy;\n\t}",
"public String getCreatePerson() {\n return createPerson;\n }",
"public com.google.protobuf.ByteString\n getNewNameBytes() {\n return instance.getNewNameBytes();\n }",
"public String getCreatedBy() {\n return createdBy;\n }",
"public DateTime getCreatedTimestamp() {\n\t\treturn getDateTime(\"sys_created_on\");\n\t}",
"public String getEntryName();",
"public String getCreatedBy() {\n return (String) getAttributeInternal(CREATEDBY);\n }",
"public String getCreatedBy() {\n return (String) getAttributeInternal(CREATEDBY);\n }",
"public String getCreatedBy() {\n return (String) getAttributeInternal(CREATEDBY);\n }",
"public String getCreatedBy() {\n return (String) getAttributeInternal(CREATEDBY);\n }",
"public String getCreatedBy() {\n return (String)getAttributeInternal(CREATEDBY);\n }",
"public String getCreatedBy() {\n return (String)getAttributeInternal(CREATEDBY);\n }",
"public String getCreatedBy() {\n return (String)getAttributeInternal(CREATEDBY);\n }",
"public String getCreateUser() {\r\n\t\treturn createUser;\r\n\t}",
"public String getCreateUser() {\r\n\t\treturn createUser;\r\n\t}",
"public String getCreatedBy(){\r\n\t\treturn createdBy;\r\n\t}",
"public com.sforce.soap.enterprise.sobject.User getCreatedBy() {\r\n return createdBy;\r\n }",
"public Date getCreatedTs() {\n\t\treturn createdTs;\n\t}",
"public String getCreateUser () {\r\n\t\treturn createUser;\r\n\t}",
"public String getCreatedBy() {\n return this.createdBy;\n }",
"public Date getCreatedAt() {\r\n\t\treturn createdAt;\r\n\t}",
"public Long getCreateAt() {\n return createAt;\n }",
"public com.google.protobuf.ByteString\n getCreatedByBytes() {\n java.lang.Object ref = createdBy_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n createdBy_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String getCreatedBy() {\n\t\treturn this.createdBy;\n\t}",
"@Override\r\n\tpublic LocalDateTime getCreated() {\n\t\treturn this.created;\r\n\t}",
"public String duplicateDetectionHistoryTimeWindow() {\n return this.duplicateDetectionHistoryTimeWindow;\n }",
"public com.sforce.soap.enterprise.sobject.User getCreatedBy() {\n return createdBy;\n }",
"public InstantFilter getCreatedDate() {\n\t\treturn createdDate;\n\t}",
"public String getCreateUser()\r\n\t{\r\n\t\treturn createUser;\r\n\t}",
"public Date getCreatedAt() {\n\t\treturn createdAt;\n\t}",
"public Timestamp getCreatedAt() {\n return (Timestamp) getAttributeInternal(CREATEDAT);\n }",
"public Long getCreatedBy() {\n\t\treturn createdBy;\n\t}",
"public Date getCreatedAt() {\r\n return createdAt;\r\n }",
"public Date getCreatedAt() {\r\n return createdAt;\r\n }",
"public Timestamp getCreated();",
"public Timestamp getCreated();",
"public Timestamp getCreated();",
"public Timestamp getCreated();",
"public Timestamp getCreated();",
"public Timestamp getCreated();"
] |
[
"0.59519964",
"0.58363175",
"0.56601727",
"0.56601727",
"0.5651561",
"0.5651561",
"0.5549269",
"0.5480536",
"0.5432265",
"0.54094213",
"0.53501296",
"0.5338544",
"0.531259",
"0.531259",
"0.52889013",
"0.52889013",
"0.52889013",
"0.5281402",
"0.5279867",
"0.5266962",
"0.5264378",
"0.5259401",
"0.5227544",
"0.5227544",
"0.5227544",
"0.5227544",
"0.5215581",
"0.5200914",
"0.5199226",
"0.5194752",
"0.5194752",
"0.5190752",
"0.51873195",
"0.51873195",
"0.51873195",
"0.51873195",
"0.5183045",
"0.51817554",
"0.5173352",
"0.5171129",
"0.5163025",
"0.516092",
"0.51609117",
"0.5157059",
"0.51543117",
"0.51543117",
"0.51543117",
"0.5148131",
"0.51458824",
"0.5142945",
"0.5129578",
"0.51284224",
"0.5114807",
"0.5111134",
"0.5111134",
"0.5111134",
"0.5094795",
"0.5083883",
"0.5083883",
"0.5065329",
"0.50614136",
"0.50517",
"0.5051547",
"0.50513315",
"0.5029416",
"0.50289744",
"0.50263757",
"0.50263757",
"0.50263757",
"0.50263757",
"0.50232744",
"0.50232744",
"0.50232744",
"0.5020235",
"0.5020235",
"0.50115186",
"0.50107604",
"0.50076836",
"0.5007035",
"0.49966288",
"0.49891973",
"0.4986781",
"0.49775198",
"0.49757087",
"0.49741247",
"0.49680972",
"0.4966589",
"0.49637425",
"0.4962279",
"0.49580306",
"0.49509364",
"0.49499902",
"0.49350467",
"0.49350467",
"0.49346864",
"0.49346864",
"0.49346864",
"0.49346864",
"0.49346864",
"0.49346864"
] |
0.747826
|
0
|
Sets the createdByName value for this TradeHistoryEntryVo.
|
public void setCreatedByName(java.lang.String createdByName) {
this.createdByName = createdByName;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public java.lang.String getCreatedByName() {\n return createdByName;\n }",
"public void setCreatedUserName(String createdUserName) {\n this.createdUserName = createdUserName;\n }",
"public void setCreatedBy(StringFilter createdBy) {\n\t\tthis.createdBy = createdBy;\n\t}",
"public void setCreatedByUser(\n @Nullable\n final String createdByUser) {\n rememberChangedField(\"CreatedByUser\", this.createdByUser);\n this.createdByUser = createdByUser;\n }",
"public void setCreatedby( String createdby )\n {\n this.createdby = createdby;\n }",
"public void setCreatedBy(java.lang.String createdBy) {\r\n this.createdBy = createdBy;\r\n }",
"public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }",
"public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }",
"public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }",
"public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }",
"public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }",
"public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }",
"public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }",
"public void setCreatedByUser(String createdByUser);",
"void setCreateby(final U createdBy);",
"public void setCreatedBy (com.myconnector.domain.UserData createdBy) {\n\t\tthis.createdBy = createdBy;\n\t}",
"public void setCreatedBy(String createdBy){\r\n\t\tthis.createdBy = createdBy;\r\n\t}",
"public void setCreated(Timestamp created) {\n this.created = created;\n }",
"public void setCreatedAt(final ZonedDateTime createdAt);",
"public void setCreatedBy(String v) \n {\n \n if (!ObjectUtils.equals(this.createdBy, v))\n {\n this.createdBy = v;\n setModified(true);\n }\n \n \n }",
"public void setCreatedAt(String createdAt) {\n this.createdAt = createdAt;\n }",
"public void setCreatedAt(String createdAt) {\n this.createdAt = createdAt;\n }",
"@Override\r\n\tpublic void setCreated(LocalDateTime created) {\n\t\tthis.created = created;\t\t\r\n\t}",
"public void setCreatedBy(com.sforce.soap.enterprise.sobject.User createdBy) {\r\n this.createdBy = createdBy;\r\n }",
"public void setCreatedBy(String createdBy) {\r\n this.createdBy = createdBy == null ? null : createdBy.trim();\r\n }",
"public void setCreatedBy(String createdBy) {\r\n this.createdBy = createdBy == null ? null : createdBy.trim();\r\n }",
"public void setCreatedBy(String createdBy) {\r\n this.createdBy = createdBy == null ? null : createdBy.trim();\r\n }",
"public void setCreatedby(String createdby)\n {\n this.createdby.set(createdby.trim().toUpperCase());\n }",
"public void setCreatedBy(com.sforce.soap.enterprise.sobject.User createdBy) {\n this.createdBy = createdBy;\n }",
"public void setCreatedBy(String createdBy) {\n this.createdBy = createdBy == null ? null : createdBy.trim();\n }",
"public void setCreatedBy(String createdBy) {\r\n\t\tthis.createdBy = createdBy;\r\n\t}",
"public void setCREATED_BY(String CREATED_BY) {\r\n this.CREATED_BY = CREATED_BY == null ? null : CREATED_BY.trim();\r\n }",
"public void setCREATED_BY(String CREATED_BY) {\r\n this.CREATED_BY = CREATED_BY == null ? null : CREATED_BY.trim();\r\n }",
"public void setCREATED_BY(String CREATED_BY) {\r\n this.CREATED_BY = CREATED_BY == null ? null : CREATED_BY.trim();\r\n }",
"public void setCREATED_BY(String CREATED_BY) {\r\n this.CREATED_BY = CREATED_BY == null ? null : CREATED_BY.trim();\r\n }",
"public void setCreatedBy(String createdBy) {\n this.createdBy = createdBy;\n }",
"public void setCreatedBy(String createdBy) {\n this.createdBy = createdBy;\n }",
"public void setCreatedUser(String createdUser) {\r\n this.createdUser = createdUser;\r\n }",
"public Builder setCreatedBy(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n createdBy_ = value;\n onChanged();\n return this;\n }",
"public void setCreatedById(java.lang.String createdById) {\r\n this.createdById = createdById;\r\n }",
"public void setCreatedById(java.lang.String createdById) {\r\n this.createdById = createdById;\r\n }",
"public void setCreatedBy(final CreatedBy createdBy);",
"public void setCreatedBy(String createdBy) {\n\t\tthis.createdBy = createdBy;\n\t}",
"public void setCreatedBy(User createdBy)\n\t{\n\t\t this.addKeyValue(\"Created_By\", createdBy);\n\n\t}",
"@Override\n\tpublic void setCreatedBy(java.lang.String CreatedBy) {\n\t\t_locMstLocation.setCreatedBy(CreatedBy);\n\t}",
"public void setName(String name){\r\n gotUserName = true;\r\n this.name = name;\r\n }",
"public void setCreatedAt( Date createdAt ) {\n this.createdAt = createdAt;\n }",
"public void setCreateBy(Date createBy) {\n this.createBy = createBy;\n }",
"public native final HistoryClass NAME(String val) /*-{\n\t\tthis.NAME = val;\n\t\treturn this;\n\t}-*/;",
"public void setCreatedById(java.lang.String createdById) {\n this.createdById = createdById;\n }",
"public void setCreatedById(java.lang.String createdById) {\n this.createdById = createdById;\n }",
"public StringFilter getCreatedBy() {\n\t\treturn createdBy;\n\t}",
"public void setCreatedby(String createdby) {\n this.createdby = createdby == null ? null : createdby.trim();\n }",
"public String getCreatedUserName() {\n return createdUserName;\n }",
"public void setCreatedTs(Date createdTs) {\n\t\tthis.createdTs = createdTs;\n\t}",
"@Override\n\tpublic void setName(String name) {\n\t\tfanChart.setName(name);\n\t}",
"public void setCreatedAt(Date createdAt) {\r\n\t\tthis.createdAt = createdAt;\r\n\t}",
"public void setCreatorName(String creatorName) {\n this.creatorName = creatorName;\n }",
"public void setCreated( java.sql.Timestamp newValue ) {\n __setCache(\"created\", newValue);\n }",
"public void setCreatedOn(Timestamp createdOn) {\r\n\t\tthis.createdOn = createdOn;\r\n\t}",
"@IcalProperty(pindex = PropertyInfoIndex.NAME,\n required = true,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true)\n public void setName(final String val) {\n name = val;\n }",
"public void setCreatedAt(Date createdAt) {\r\n this.createdAt = createdAt;\r\n }",
"public void setCreatedAt(Date createdAt) {\r\n this.createdAt = createdAt;\r\n }",
"public void setCreateUser(String newVal) {\n if ((newVal != null && this.createUser != null && (newVal.compareTo(this.createUser) == 0)) || \n (newVal == null && this.createUser == null && createUser_is_initialized)) {\n return; \n } \n this.createUser = newVal; \n\n createUser_is_modified = true; \n createUser_is_initialized = true; \n }",
"public void setCreatorName(java.lang.String creatorName) {\n this.creatorName = creatorName;\n }",
"public String createdBy() {\n return this.createdBy;\n }",
"public void setCreateBy(String createBy) {\r\n this.createBy = createBy == null ? null : createBy.trim();\r\n }",
"public void setCreatedBy( Integer createdBy ) {\n this.createdBy = createdBy;\n }",
"public void setCreated(java.sql.Timestamp newValue) {\n\tthis.created = newValue;\n}",
"public void setCreated(Date created) {\r\n this.created = created;\r\n }",
"public void setCreated(Date created) {\r\n this.created = created;\r\n }",
"public String getCreateBy() {\r\n\t\treturn createBy;\r\n\t}",
"public void setTicketCreatedBy(String TicketCreatedBy) {\n\t\tthis.TicketCreatedBy =TicketCreatedBy ;\n\t}",
"public String createNewName() {\n\t\treturn null;\n\t}",
"public void setCreated(Date created) {\n this.created = created;\n }",
"public void setCreated(Date created) {\n this.created = created;\n }",
"public void setCreated(Date created) {\n this.created = created;\n }",
"public void setCreated(Date created) {\n this.created = created;\n }",
"public void setCreatedAt(Date createdAt) {\n\t\tthis.createdAt = createdAt;\n\t}",
"private void setName(){\r\n\t\tString tagString = new String();\r\n\t\tfor (String k : tags.keySet()){\r\n\t\t\ttagString += \"@\" + k;\r\n\t\t}\r\n\t\tString newName = originalName + tagString +\".\"+ extension;\r\n\t\tif (!newName.equals(name)){\r\n\t\t\tremovePrevNames(newName); //if the new name is a previous name\r\n\t\t\taddPrevNames(name);\r\n\t\t\tupdateLog(newName);\r\n\t\t\tname = newName;\r\n\t\t\t//notify the tag observer\r\n\t\t\tsetChanged();\r\n\t\t\tnotifyObservers();\r\n\t\t\tclearChanged();\r\n\t\t}\r\n\t}",
"public void setCreatedDate(java.lang.String createdDate) {\r\n this.createdDate = createdDate;\r\n }",
"public void setUserCreated(java.lang.String userCreated) {\n\t\t_tempNoTiceShipMessage.setUserCreated(userCreated);\n\t}",
"public void setCreatedAt(Date createdAt) {\n this.createdAt = createdAt;\n }",
"public void setCreatedAt(Date createdAt) {\n this.createdAt = createdAt;\n }",
"public void setCreatedAt(Date createdAt) {\n this.createdAt = createdAt;\n }",
"public void setCreatedAt(Date createdAt) {\n this.createdAt = createdAt;\n }",
"public void setCreatedAt(Date createdAt) {\n this.createdAt = createdAt;\n }",
"public void setCreatedAt(Date createdAt) {\n this.createdAt = createdAt;\n }",
"public void setCreatedAt(Date createdAt) {\n this.createdAt = createdAt;\n }",
"public void setCreateBy(String createBy) {\n this.createBy = createBy == null ? null : createBy.trim();\n }",
"public void setCreateBy(String createBy) {\n this.createBy = createBy == null ? null : createBy.trim();\n }",
"public void setCreateBy(String createBy) {\n this.createBy = createBy == null ? null : createBy.trim();\n }",
"public void setCreateBy(String createBy) {\n this.createBy = createBy == null ? null : createBy.trim();\n }",
"public void setCreated(Date created) {\r\n\t\tthis.created = created;\r\n\t}",
"public void setCreated(Date created) {\r\n\t\tthis.created = created;\r\n\t}",
"@java.lang.Override\n public com.google.protobuf.ByteString\n getCreatedByBytes() {\n java.lang.Object ref = createdBy_;\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 createdBy_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public void setCreateBy(String createBy) {\n\t\tthis.createBy = createBy == null ? null : createBy.trim();\n\t}",
"public void setCreateBy(String createBy) {\r\n\t\tthis.createBy = createBy;\r\n\t}",
"public void setCreatedDate(InstantFilter createdDate) {\n\t\tthis.createdDate = createdDate;\n\t}",
"public void setCreatedAt(Timestamp value) {\n setAttributeInternal(CREATEDAT, value);\n }"
] |
[
"0.6260331",
"0.5567134",
"0.5299354",
"0.52621335",
"0.5174819",
"0.5127104",
"0.51006263",
"0.51006263",
"0.51006263",
"0.51006263",
"0.51006263",
"0.51006263",
"0.51006263",
"0.508543",
"0.50824016",
"0.50586814",
"0.5037657",
"0.5030957",
"0.49941632",
"0.49866527",
"0.49727115",
"0.49727115",
"0.49678323",
"0.49616697",
"0.49465972",
"0.49465972",
"0.49465972",
"0.49416494",
"0.49310812",
"0.49304608",
"0.49289697",
"0.49162355",
"0.49162355",
"0.49162355",
"0.49162355",
"0.4885394",
"0.4885394",
"0.4883251",
"0.48665285",
"0.4844232",
"0.4844232",
"0.4837162",
"0.48222637",
"0.48170683",
"0.48114637",
"0.4795295",
"0.47800174",
"0.47645447",
"0.47635928",
"0.47620273",
"0.47620273",
"0.47547215",
"0.47526035",
"0.47519895",
"0.47507307",
"0.474971",
"0.47326407",
"0.47287244",
"0.47257996",
"0.4719658",
"0.4715824",
"0.4714196",
"0.4714196",
"0.47085375",
"0.4707249",
"0.4706953",
"0.46981823",
"0.46938342",
"0.46926355",
"0.46910736",
"0.46910736",
"0.46844715",
"0.46783784",
"0.46697903",
"0.4669694",
"0.4669694",
"0.4669694",
"0.4669694",
"0.46679875",
"0.4658402",
"0.4649837",
"0.4647202",
"0.46426457",
"0.46426457",
"0.46426457",
"0.46426457",
"0.46426457",
"0.46426457",
"0.46426457",
"0.46413624",
"0.46413624",
"0.46413624",
"0.46413624",
"0.4635678",
"0.4635678",
"0.4630849",
"0.46308142",
"0.46253002",
"0.4623469",
"0.4622493"
] |
0.72168666
|
0
|
Gets the date value for this TradeHistoryEntryVo.
|
public java.util.Calendar getDate() {
return date;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public Date getTradeDate() {\r\n return tradeDate;\r\n }",
"public java.util.Date getDateHist() {\n\t\treturn _pnaAlerta.getDateHist();\n\t}",
"public long getTradeDate() {\n return tradeDate_;\n }",
"public long getTradeDate() {\n return tradeDate_;\n }",
"public java.util.Date getValue() {\n return this.value;\n }",
"public java.util.Date getEntryDate () {\n\t\treturn entryDate;\n\t}",
"public Date getDate() {\r\n\t\treturn this.date;\r\n\t}",
"public Date getDate() {\n return this.date;\n }",
"public Date getdate() {\n\t\treturn new Date(date.getTime());\n\t}",
"public Date getDate() {\r\n return date;\r\n }",
"public Date getDate() {\r\n return date;\r\n }",
"public Date getDate() {\r\n return date;\r\n }",
"public Date getDate() {\r\n\t\treturn date;\r\n\t}",
"public Date getDate() {\r\n\t\treturn date;\r\n\t}",
"public String getDate() {\r\n\t\treturn this.date;\r\n\t}",
"public Date getDate()\n\t{\n\t\treturn date;\n\t}",
"public Date getDate(){\n\t\treturn day.date;\n\t}",
"public Date getDate()\n {\n return this.date;\n }",
"public Date getDate() {\n\t\treturn date;\n\t}",
"public Date getDate() {\n\t\treturn date;\n\t}",
"public String getDate() {\n return this.date;\n }",
"public String getDate() {\n return this.date;\n }",
"public Date getDate() {\n return date;\n }",
"public Date getDate() {\n return date;\n }",
"public Date getDate() {\n return date;\n }",
"public Date getDate() {\n return date;\n }",
"public Date getDate() {\n return date;\n }",
"public Date getDate() {\n return date;\n }",
"public Date getDate() {\n return date;\n }",
"public Date getDate() {\n return date;\n }",
"public Date getDate() {\n return date;\n }",
"public Date getDate() {\n return date;\n }",
"public Date getDate() {\n return date;\n }",
"public Date getDate() {\n return date;\n }",
"public Date getDate() {\n return date;\n }",
"public Date getDate() {\n return date;\n }",
"public Date getDate() {\n return order.getDate();\n }",
"public Date getDate(){\n\t\treturn date;\n\t}",
"public String getDate() {\n\t\treturn this.date;\n\t}",
"public String getEventDate() {\n\t\treturn date;\n\t}",
"public String getDate()\n\t\t{\n\t\t\treturn date;\n\t\t}",
"public String getDate() {\r\n return date;\r\n }",
"public Date getDate()\n {\n return date;\n }",
"public Date getDate() {\n if (mDate != null) {\n return (Date) mDate.clone();\n } else {\n Logger.d(TAG, \"The mDate is null\");\n return null;\n }\n }",
"public Date getDate() {\n if (mDate != null) {\n return (Date) mDate.clone();\n } else {\n Logger.d(TAG, \"The mDate is null\");\n return null;\n }\n }",
"public Date getDate() {\n return mDate;\n }",
"public String getDate() {\r\n\t\treturn date;\r\n\t}",
"public Date getDate() {\n return date;\n }",
"public String getDate(){\n\t\t\n\t\treturn this.date;\n\t}",
"public Date getDate() {\n\t\treturn _date;\n\t}",
"public Date getDate() {\n\t\treturn date_;\n\t}",
"public Date date()\n\t{\n\t\treturn this.date;\n\t}",
"public String getDate() {\n return date;\n }",
"public String getDate() {\n return date;\n }",
"public String getDate() {\n return date;\n }",
"public String getDate() {\n return date;\n }",
"public String getDate() {\n return date;\n }",
"public String getDate() {\n\t\treturn date;\n\t}",
"public String getDate() {\n\t\treturn date;\n\t}",
"public String getDate()\r\n\t{\r\n\t\treturn date;\r\n\t}",
"public String getDate()\r\n\t{\r\n\t\treturn date;\r\n\t}",
"long getTradeDate();",
"public Date date() {\r\n\t\treturn date;\r\n\t}",
"public String getdate() {\n\t\treturn date;\n\t}",
"public String Get_date() \n {\n \n return date;\n }",
"public final Date dateValue() {\n if (calValue != null)\n return calValue.getTime();\n else\n return null;\n }",
"@Override\n public Date getDate() {\n return date;\n }",
"public Date getDate() {\n\t\n\t\treturn date;\n\t\n\t}",
"public LocalDate getDate() {\n\t\treturn this.date;\n\t}",
"public String getDate(){\n\n return this.date;\n }",
"public String getDate() {\n\t\treturn this.mDate;\n\t}",
"public String getDate() {\n\t\treturn mDate;\n\t}",
"public String getDate() {\n return date;\n }",
"public Date getDate()\n\t{\n\t\tif (m_nType == AT_DATE)\n\t\t\treturn (Date)m_oData;\n\t\telse\n\t\t\treturn null;\n\t}",
"public LocalDate tradeDate() {\n\n\t\tif (tradeDate == null) {\n\n\t\t\tfinal DateOnlyValue dv = ProtoDateUtil.fromDecimalDateOnly(message.getBaseTradeDate());\n\n\t\t\ttradeDate = new LocalDate(dv.getYear(), dv.getMonth(), dv.getDay());\n\n\t\t}\n\n\t\treturn tradeDate;\n\n\t}",
"public long getDate() {\n return date_;\n }",
"public java.lang.String getDate() {\n return date;\n }",
"public long getDate() {\n return date;\n }",
"public int getDate() {\n return date;\n }",
"public int getDate() {\n return date;\n }",
"public Date getAsDate()\n {\n // Nope, shouldn't do that\n if (isASAP() || isNEVER()) {\n return null;\n }\n\n // The value of 3506716800000000L is the BAT as at midnight on\n // 1-Jan-1970, which is the base of the time that the system\n // gives us. It has to be adjusted for leap seconds though.\n return new Date((itsValue - DUTC.get() * 1000000L - 3506716800000000L) / 1000L);\n }",
"public long getDate() {\n return date_;\n }",
"public Date getAuditDate() {\n return auditDate;\n }",
"@Override\n\tpublic java.util.Date getCreateDate() {\n\t\treturn _dictData.getCreateDate();\n\t}",
"public Date getTrxDate() {\r\n return trxDate;\r\n }",
"public long getDate() {\n\t\treturn date;\n\t}",
"public long getDate() {\n\t\treturn date;\n\t}",
"public Date date (){\r\n\t\t\treturn _date;\r\n\t\t}",
"public int getDate() {\n return date ;\n }",
"public long getDate() {\n return date;\n }",
"public int getDate() {\n\t\treturn date;\n\t}",
"public Date getVALUE_DATE() {\r\n return VALUE_DATE;\r\n }",
"public Date getVALUE_DATE() {\r\n return VALUE_DATE;\r\n }",
"public Date getDateObject(){\n \n Date date = new Date(this.getAnio(), this.getMes(), this.getDia());\n return date;\n }",
"public Date getEnterDate() {\r\n return (Date) getAttributeInternal(ENTERDATE);\r\n }",
"public Date getAuditDate() {\n\t\treturn auditDate;\n\t}",
"public String getTradeDateStr() {\r\n return tradeDateStr;\r\n }",
"public Date getBudgetDate() {\n return (Date) getAttributeInternal(BUDGETDATE);\n }",
"public String getDate() {\t\n\t\treturn mDate;\n\t}",
"public Date getRecordDate() {\n return recordDate;\n }",
"public LocalDate getDate() {\n return date;\n }"
] |
[
"0.64565474",
"0.6414232",
"0.63400066",
"0.631292",
"0.627571",
"0.62632006",
"0.62254775",
"0.621203",
"0.6203817",
"0.620334",
"0.620334",
"0.620334",
"0.62022877",
"0.62022877",
"0.61846024",
"0.61758184",
"0.6171984",
"0.6171546",
"0.617094",
"0.617094",
"0.6165286",
"0.6165286",
"0.6154927",
"0.6154927",
"0.6154927",
"0.6154927",
"0.6154927",
"0.6154927",
"0.6154927",
"0.6154927",
"0.6154927",
"0.6154927",
"0.6154927",
"0.6154927",
"0.6154927",
"0.6154927",
"0.6149524",
"0.6147621",
"0.61334044",
"0.61320555",
"0.61070657",
"0.6102315",
"0.6095044",
"0.60925055",
"0.60925055",
"0.60831517",
"0.60774374",
"0.60719776",
"0.6060198",
"0.60596734",
"0.6059362",
"0.60556036",
"0.6053466",
"0.6053466",
"0.6053466",
"0.6053466",
"0.6053466",
"0.60464144",
"0.60464144",
"0.6044517",
"0.6044517",
"0.60439974",
"0.60351485",
"0.60196",
"0.6010991",
"0.6001416",
"0.5997455",
"0.5996811",
"0.59938806",
"0.59874743",
"0.5986188",
"0.5984535",
"0.5981577",
"0.59749115",
"0.59566265",
"0.5941314",
"0.5939893",
"0.59336394",
"0.590289",
"0.590289",
"0.5900428",
"0.58864",
"0.5848867",
"0.5846177",
"0.5844478",
"0.5843145",
"0.5843145",
"0.5823612",
"0.58234376",
"0.58208877",
"0.5813216",
"0.5807605",
"0.5807605",
"0.58061343",
"0.5801023",
"0.5788477",
"0.57842755",
"0.578358",
"0.5772895",
"0.576639",
"0.57642615"
] |
0.0
|
-1
|
Sets the date value for this TradeHistoryEntryVo.
|
public void setDate(java.util.Calendar date) {
this.date = date;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public StockEvent setDate(Date date) {\n this.date = date;\n return this;\n }",
"public void setDate(Date date) {\r\n\t\tthis.date = date;\r\n\t}",
"public void setDate(Date date) {\r\n\t\tthis.date = date;\r\n\t}",
"public void setDate(Date date) {\r\n\t\tthis.date = date;\r\n\t}",
"public void setDate(Date date) {\r\n this.date = date;\r\n }",
"public void setDate(Date date) {\n mDate = date;\n }",
"public void setDate(Date date) {\n this.date = date;\n }",
"public void setDate(Date date) {\n this.date = date;\n }",
"public void setDate(Date date) {\n this.date = date;\n }",
"public void setDate(Date date) {\n this.date = date;\n }",
"public void setDate(Date date) {\n this.date = date;\n }",
"public void setDate(Date date) {\n this.date = date;\n }",
"public void setDate(Date date) {\n this.date = date;\n }",
"public void setDate(Date date) {\n this.date = date;\n }",
"public void setDate(Date date) {\n this.date = date;\n }",
"public void setDate(Date date) {\n\t\tthis.date = date;\n\t}",
"public void setDate(Date date) {\n\t\tthis.date = date;\n\t}",
"public void setDate(Date date) {\n\t\tthis.date = date;\n\t}",
"public void setDate(final Date date) {\n this.date = date;\n }",
"public void setDate(Date date) {\n\t\tthis._date = date;\n\t}",
"public void setDate(Date date) {\n\t\n\t\tthis.date = date;\n\t\n\t}",
"public void setDate() {\n this.date = new Date();\n }",
"public void setTradeDate(Date tradeDate) {\r\n this.tradeDate = tradeDate;\r\n }",
"public void setDate(Date date) {\n if (date != null) {\n this.mDate = (Date) date.clone();\n } else {\n Logger.d(TAG, \"The date is null\");\n }\n }",
"public void setDate(Date date) {\n\t\t\n\t\tdate_ = date;\n\t}",
"public void SetDate(Date date);",
"public void setDate(String date) {\r\n this.date = date;\r\n }",
"public void setDate(String date) {\n this.date = date;\n }",
"public void setDate(String date) {\n this.date = date;\n }",
"public void setDate(String date) {\n this.date = date;\n }",
"public void setDate(String date) {\n this.date = date;\n }",
"public void setDate(String date) {\n this.date = date;\n }",
"public final void setDate(LocalDate date) {\n dateProperty().set(date);\n }",
"public void setDate(Date date) {\n if (date != null) {\n this.mDate = (Date) date.clone();\n } else {\n this.mDate = null;\n }\n }",
"public void setDate(Date date) {\n setDate(date, null);\n }",
"public void setDate(String date) {\n\t\tthis.date = date;\n\t}",
"public void setDate(String date) {\n\t\tthis.date = date;\n\t}",
"void setDate(Date data);",
"protected void setTimeStamp(Date date) {\n\t\tsetPurchaseDate(date);\n\t}",
"public void setDate(LocalDate date) {\n this.date = date;\n }",
"public void setDate(String date){\n this.date = date;\n }",
"public void setDate(String date){\n this.date = date;\n }",
"public void setDate(long date) {\n\t\tthis.date = date;\n\t}",
"public void setDate(java.lang.String date) {\n this.date = date;\n }",
"public GetACDHistoryRequest setToDate(Date d) {\n this.toDate = d;\n return this;\n }",
"public void setDate(LocalDate date) {\n\t\tthis.date = date;\n\t}",
"public void setDate(Date date) {\r\n \t\tthis.startDate = date;\r\n \t}",
"public void setDate(int dt) {\n date = dt;\n }",
"public void setDate(long date) {\r\n\t\tthis.date = new Date(date);\r\n\t}",
"public void setServiceDate(java.util.Date value);",
"public void setDate(int date){\n this.date = date;\n }",
"public void setDate(DateTime \n date) {\n this.date = date;\n }",
"void setDate(java.lang.String date);",
"@Override\n\tprotected void setDate() {\n\n\t}",
"public void setDate(long value) {\n this.date = value;\n }",
"public Builder setTradeDate(long value) {\n bitField0_ |= 0x00080000;\n tradeDate_ = value;\n onChanged();\n return this;\n }",
"public void setDate(LocalDateTime date) {\n this.date = date;\n }",
"public void setDate(Calendar date) {\r\n\t\tthis.date = date;\r\n\t}",
"public void setTdate(java.util.Date tdate) {\n _sTransaction.setTdate(tdate);\n }",
"public void setTrxDate(Date trxDate) {\r\n this.trxDate = trxDate;\r\n }",
"public void setEnterDate(Date value) {\r\n setAttributeInternal(ENTERDATE, value);\r\n }",
"public void setDate(String d) {\n\t\tdate = d;\n\t\tif (super.getPubDate() != null)\n\t\t\tsuper.setPubDate(d);\n\t\tdate = d;\n\t}",
"public void setDate(Calendar date) {\n\tthis.date = date;\n }",
"public void setDate(String parName, Date parVal) throws HibException;",
"public void setDate(DateInfo dates) {\r\n\t\tsuper.setDate(dates);\r\n\t\t//maturityDate = new DateInfo(dates);\r\n\t}",
"public void setDate (String s) {\n date = s;\n }",
"public void setDateHist(java.util.Date dateHist) {\n\t\t_pnaAlerta.setDateHist(dateHist);\n\t}",
"public void setValue(java.util.Date value) {\n this.value = value;\n }",
"public void setData (Date date) {\r\n\t\tthis.data=date;\r\n\t\t\r\n\t}",
"public void setEntryDate (java.util.Date entryDate) {\n\t\tthis.entryDate = entryDate;\n\t}",
"public void setBudgetDate(Date value) {\n setAttributeInternal(BUDGETDATE, value);\n }",
"public void setDate(String eDate) {\n\t\tmDate = eDate;\n\t}",
"public void setDate(Calendar date)\n {\n this.date = date;\n }",
"void setCreateDate(Date date);",
"public void setDate(java.util.Date param){\n \n this.localDate=param;\n \n\n }",
"public void setDate(final int tranDate) {\n this.date = tranDate;\n }",
"public void setToDate(Date value) {\n setAttributeInternal(TODATE, value);\n }",
"public void setDate( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), DATE, value);\r\n\t}",
"@Override\n\tpublic void setCreateDate(Date createDate) {\n\t\t_changesetEntry.setCreateDate(createDate);\n\t}",
"@Override\n public void setReturnDate(LocalDate date) {\n this.returnDate = date;\n }",
"public void setDate(String newDate)\n\t{\n\t\tthis.date = newDate;\n\t}",
"public void setStartDate(java.util.Date value);",
"public void setsaledate(Timestamp value) {\n setAttributeInternal(SALEDATE, value);\n }",
"public void setReleaseDate(Date date) {\r\n this.releaseDate = date;\r\n // set the fact we have called this method to set the date value\r\n this.hasSetReleaseDate=true;\r\n }",
"public void setToDate(Date toDate)\r\n/* 33: */ {\r\n/* 34:39 */ this.toDate = toDate;\r\n/* 35: */ }",
"public void setDatepr( java.sql.Date newValue ) {\n __setCache(\"datepr\", newValue);\n }",
"public void setFreezeTimestamp(java.util.Date value);",
"public void setDate(Date newDate) {\n this.currentDate = newDate;\n }",
"private void setCurrentDate(Date date)\n {\n date.setTime(System.currentTimeMillis());\n }",
"public abstract void setDate(Timestamp uneDate);",
"public void setDate(java.util.Calendar value) {\r\n\t\tBase.set(this.model, this.getResource(), DATE, value);\r\n\t}",
"@Override\n\tpublic void setCreateDate(java.util.Date createDate) {\n\t\t_dictData.setCreateDate(createDate);\n\t}",
"public void setDate(View view) {\n new DatePickerDialog(\n AddEvent.this, dateSet,\n myCalendar.get(Calendar.YEAR),\n myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)\n ).show();\n }",
"public void setCreateDate(java.util.Date newVal) {\n if ((newVal != null && this.createDate != null && (newVal.compareTo(this.createDate) == 0)) || \n (newVal == null && this.createDate == null && createDate_is_initialized)) {\n return; \n } \n try {\n this.createDate = (java.util.Date)newVal.clone();\n } catch (Exception e) {\n // do nothing\n }\n\n createDate_is_modified = true; \n createDate_is_initialized = true; \n }",
"public void setAuditDate(Date auditDate) {\n this.auditDate = auditDate;\n }",
"@Override\n\tpublic void setCreated_date(Date created_date) {\n\t\t_buySellProducts.setCreated_date(created_date);\n\t}",
"@Override\n public void setDateHeader(String name, long date) {\n this._getHttpServletResponse().setDateHeader(name, date);\n }",
"public void setRecdate(Date recdate) {\n this.recdate = recdate;\n }",
"public void setWtDate(Date wtDate) {\r\n\t\tthis.wtDate = wtDate;\r\n\r\n\t}"
] |
[
"0.68753904",
"0.68372035",
"0.68372035",
"0.68372035",
"0.6813402",
"0.6803749",
"0.6782688",
"0.6782688",
"0.6782688",
"0.6782688",
"0.6782688",
"0.6782688",
"0.6782688",
"0.6782688",
"0.6782688",
"0.67624724",
"0.67624724",
"0.67624724",
"0.67560506",
"0.6753039",
"0.67137253",
"0.66105324",
"0.65996444",
"0.65674514",
"0.6563457",
"0.655685",
"0.64950556",
"0.6467259",
"0.6467259",
"0.6467259",
"0.6467259",
"0.6467259",
"0.64223135",
"0.64216614",
"0.64100236",
"0.63811296",
"0.63811296",
"0.63798666",
"0.63735986",
"0.6342551",
"0.6334475",
"0.63137174",
"0.6277642",
"0.6272486",
"0.6270051",
"0.6249212",
"0.6237731",
"0.6159862",
"0.61505836",
"0.61481196",
"0.6145737",
"0.6136275",
"0.6115935",
"0.60961604",
"0.6066539",
"0.60657763",
"0.60471344",
"0.59985244",
"0.59697604",
"0.5965234",
"0.59404165",
"0.59375215",
"0.59183675",
"0.5915191",
"0.5913526",
"0.5912264",
"0.59047115",
"0.59027755",
"0.5900667",
"0.58987325",
"0.5897136",
"0.58787817",
"0.58741635",
"0.58613366",
"0.58394057",
"0.58264005",
"0.5809141",
"0.57785076",
"0.5759653",
"0.5756686",
"0.5750316",
"0.5735965",
"0.5729158",
"0.5724414",
"0.5707439",
"0.5676599",
"0.56674653",
"0.56552035",
"0.565456",
"0.5651823",
"0.5640096",
"0.56265086",
"0.5604914",
"0.5569",
"0.5562918",
"0.5555159",
"0.555459",
"0.5553938",
"0.5548374"
] |
0.6097309
|
53
|
Gets the internalTradeId value for this TradeHistoryEntryVo.
|
public java.lang.Long getInternalTradeId() {
return internalTradeId;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public String getTradeId() {\n\t\treturn this.tradeId;\n\t}",
"public Long getTradeId() {\n return tradeId;\n }",
"public String getTradeNo() {\n\t\treturn tradeNo;\n\t}",
"public List<ObjectIdentifier> getTradeIds() {\n return _tradeIds;\n }",
"public void setInternalTradeId(java.lang.Long internalTradeId) {\n this.internalTradeId = internalTradeId;\n }",
"public void setTradeId(Long tradeId) {\n this.tradeId = tradeId;\n }",
"public Long getTraderId() {\n\t\treturn traderId;\n\t}",
"public Trade getTrade()\n\t{\n\t\treturn m_trade;\n\t}",
"public long getTraceId() {\n\t\treturn this.traceInformation.getTraceId();\n\t}",
"public String getTraceId() {\n return traceId;\n }",
"public String getBankTradeNo() {\n\t\treturn bankTradeNo;\n\t}",
"public String getTraderEmployeeId() {\n return traderEmployeeId;\n }",
"public int getTradeValue() {\n \t\treturn tradeValue;\n \t}",
"public String getTradeCode() {\n return tradeCode;\n }",
"public Identifier getTradeProviderKey() {\n return _tradeProviderKey;\n }",
"@Override\r\n\tpublic Trade getTrade() {\n\t\treturn trade;\r\n\t}",
"public String getTradeOrder() {\n\t\treturn tradeOrder;\n\t}",
"public int getTraceID(){\r\n\t\treturn this.traceID;\r\n\t}",
"public String getTradeCode() {\n return tradeCode;\n }",
"public long id() {\n\t\treturn message.getBaseMarketId();\n\t}",
"public String getwPrTradeNo() {\n return wPrTradeNo;\n }",
"public long getTradeDate() {\n return tradeDate_;\n }",
"TradeItem getTradeItem(long id);",
"public java.lang.Long getTradeType () {\r\n\t\treturn tradeType;\r\n\t}",
"Trade getTrade(String tradeId) throws OrderBookTradeException;",
"public String getMarketTradeTransactionInstanceReference() {\n return marketTradeTransactionInstanceReference;\n }",
"public Integer getTradeTime() {\n return tradeTime;\n }",
"public long getTradeDate() {\n return tradeDate_;\n }",
"public void addTradeId(ObjectIdentifiable tradeId) {\n ArgumentChecker.notNull(tradeId, \"tradeId\");\n if (_tradeIds == null) {\n _tradeIds = new ArrayList<ObjectIdentifier>();\n }\n _tradeIds.add(tradeId.getObjectId());\n }",
"public Trade getTradeById(String id){\n for(Trade aTrade : trades){\n if(aTrade.getId().equals(id))\n return aTrade;\n }\n return null;\n }",
"public ExternalId getMarketDataId() {\n return _marketDataId;\n }",
"public String getMarketId() {\n\t\treturn marketId;\n\t}",
"public Integer getTradeStatus() {\r\n return tradeStatus;\r\n }",
"public int getId() {\n\t\treturn _dmHistoryMaritime.getId();\n\t}",
"public Long getTradeDist() {\n\t\treturn tradeDist;\n\t}",
"public Integer getQuoteId() {\n\t\treturn quoteId;\n\t}",
"public Integer getTradePaying() {\n return tradePaying;\n }",
"public EI getPayerTrackingID() { \r\n\t\tEI retVal = this.getTypedField(5, 0);\r\n\t\treturn retVal;\r\n }",
"public String getMarketActivityId() {\n\t\treturn marketActivityId;\n\t}",
"public MemberTradeRecord getTradeRecordByTradeNo(String tradeNo) {\n\t\treturn memberTradeRecordRepository.findMemberTradeRecord(tradeNo);\r\n\t}",
"public int getPrimaryKey() {\n\t\treturn _dmHistoryMaritime.getPrimaryKey();\n\t}",
"public void setTradeNo(String tradeNo) {\n\t\tthis.tradeNo = tradeNo;\n\t}",
"public abstract Long getIdHistoricalWrapper();",
"public long getBookId() {\n return _sTransaction.getBookId();\n }",
"public void setTraderEmployeeId(String traderEmployeeId) {\n this.traderEmployeeId = traderEmployeeId;\n }",
"public long getAuditLogId() {\n return auditLogId;\n }",
"public Map<String, Object> getTrades(Trade trade) {\n\t\treturn null;\n\t}",
"@Override\n public void getTradeRecord(Trade trade) {\n if (trade != null && trade.getStock() != null) {\n this.tradeRepository.save(trade);\n }\n }",
"public java.lang.String getTramiteId() {\n return tramiteId;\n }",
"public Number getPeriodId() {\n return (Number) getAttributeInternal(PERIODID);\n }",
"public String getTraderEmailId() {\n return traderEmailId;\n }",
"public void setTrade(Trade t)\n\t{\n\t\tm_trade = t;\n\t}",
"@Override\n\tpublic long getId() {\n\t\treturn _buySellProducts.getId();\n\t}",
"public ArrayList<Trade> getTrades() {\n return trades;\n }",
"@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _esfShooterAffiliationChrono.getPrimaryKey();\n\t}",
"public int getId() {\n return txId;\n }",
"public String getMarketId() {\n return marketId;\n }",
"@Schema(description = \"A seller-defined identifier for an order.\")\n public String getSellerOrderId() {\n return sellerOrderId;\n }",
"public synchronized int getStockId() {\n\t\treturn stockId;\n\t}",
"public String getSellerOrderId() {\r\n return sellerOrderId;\r\n }",
"public String getTransLogId() {\n return transLogId;\n }",
"public String getTradeRecordInformation() {\n\t\tString phone = \"15815410203\";\n\t\tUser user = userService.findByPhone(phone);\n\t\ttradeRecords = tradeRecordService.findByUser(user);\n\t\treturn \"getTradeRecordInformation\";\n\t}",
"public Integer getAuditorId() {\n return auditorId;\n }",
"public int getAD_OrgTrx_ID() {\n\t\tInteger ii = (Integer) get_Value(\"AD_OrgTrx_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}",
"java.lang.String getTxId();",
"public java.lang.String getPosTradeType () {\r\n\t\treturn posTradeType;\r\n\t}",
"public int getC_BPartnerCashTrx_ID() {\n\t\tInteger ii = (Integer) get_Value(\"C_BPartnerCashTrx_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}",
"public String getTradingAccount() {\n Object ref = tradingAccount_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n tradingAccount_ = s;\n }\n return s;\n } else {\n return (String) ref;\n }\n }",
"public int getTalkTrackId()\n\t{\n\t\treturn talkTrackId;\n\t}",
"public java.lang.String getHistUsuarioId() {\n\t\treturn _pnaAlerta.getHistUsuarioId();\n\t}",
"public String getTradingAccount() {\n Object ref = tradingAccount_;\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 if (bs.isValidUtf8()) {\n tradingAccount_ = s;\n }\n return s;\n }\n }",
"public long getPeriodId() {\n return periodId;\n }",
"public long getCommitTransId() {\n return commitList.getCommitTransId();\n }",
"public java.lang.Long getTairObjectId() {\n return ((Est)dto).getTairObjectId();\n }",
"@Override\n public String getExternalId() {\n CommerceId commerceId = getId();\n return commerceId.getExternalId().orElseGet(() -> commerceId.getTechId().orElse(null));\n }",
"public Number getPeriodicalId() {\n return (Number)getAttributeInternal(PERIODICALID);\n }",
"public Integer getPeriodId() {\n\t\treturn periodId;\n\t}",
"public long getTransactionid() {\n return transactionid;\n }",
"public Long getSellerItemInfoId() {\r\n return sellerItemInfoId;\r\n }",
"public Integer getTicketId() {\r\n return ticketId;\r\n }",
"public String getEntId() {\n\t\treturn entId;\n\t}",
"@Override\n\tpublic Object[] getTradesParameters(Listing listing, final long lastTradeTime, long lastTradeId) {\n\t\treturn new Object[] { Long.valueOf(lastTradeId) };\n\n\t}",
"public java.lang.String getTRADE() {\n return TRADE;\n }",
"public String getPayLogId() {\n return payLogId;\n }",
"long getTruckId();",
"public String getEntryId() {\n return entryId;\n }",
"public Number getBuyerId() {\n return (Number)getAttributeInternal(BUYERID);\n }",
"public Integer getBtrAudUid() {\n return btrAudUid;\n }",
"public List<Trade> getTradeById(int id) {\n\n\n return tradeRepository.findByTraderId(id);\n }",
"@Override\n\tpublic long getCompanyId() {\n\t\treturn _dictData.getCompanyId();\n\t}",
"public Integer getPkHistoria() {\n return this.pkHistoria;\n }",
"public Long getPayId() {\r\n return payId;\r\n }",
"public java.lang.String getTxId() {\n java.lang.Object ref = txId_;\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 txId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public Number getBuyerId() {\n return (Number) getAttributeInternal(BUYERID);\n }",
"public long getLastTweetId() {\n return tweetAdapter.getItem(tweetAdapter.getCount()-1).getTweetId();\n }",
"public int getticketId() {\n \treturn ticketId;\n }",
"public long getTransactionID() {\r\n return transactionID;\r\n }",
"public String getInternalId()\n {\n return internalId;\n }",
"public java.lang.String getTxId() {\n java.lang.Object ref = txId_;\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 txId_ = s;\n return s;\n }\n }",
"Trade addTrade(String tradeId, Trade trade) throws OrderBookTradeException;"
] |
[
"0.72349834",
"0.7059041",
"0.6099177",
"0.5987471",
"0.5688968",
"0.5628295",
"0.56160635",
"0.55095285",
"0.54642725",
"0.53958833",
"0.5345764",
"0.5316412",
"0.5286124",
"0.5228403",
"0.5210772",
"0.5206446",
"0.5197298",
"0.51536673",
"0.51052564",
"0.5096556",
"0.50292856",
"0.5017503",
"0.50128484",
"0.5004282",
"0.4998829",
"0.4976026",
"0.49484423",
"0.49378",
"0.4910031",
"0.48963183",
"0.4880725",
"0.48140144",
"0.48005667",
"0.4781717",
"0.4750963",
"0.47495437",
"0.4733531",
"0.47297868",
"0.4717335",
"0.47166908",
"0.47133076",
"0.47126636",
"0.4711647",
"0.470665",
"0.4695538",
"0.4689608",
"0.46873727",
"0.467418",
"0.46680608",
"0.46655473",
"0.4652817",
"0.4650705",
"0.46383166",
"0.4635867",
"0.4631762",
"0.46285638",
"0.46190953",
"0.4611446",
"0.4543881",
"0.45415056",
"0.4536173",
"0.4532902",
"0.45171642",
"0.45164356",
"0.44939286",
"0.44923782",
"0.44885927",
"0.448341",
"0.4478337",
"0.44731224",
"0.4456577",
"0.4448187",
"0.44481075",
"0.4447534",
"0.44299483",
"0.44248697",
"0.442358",
"0.44230524",
"0.44115913",
"0.44077456",
"0.4402658",
"0.43950528",
"0.43880883",
"0.4385653",
"0.43813708",
"0.4376405",
"0.43744075",
"0.4373616",
"0.43732122",
"0.43731",
"0.43718696",
"0.43718255",
"0.43709123",
"0.43674815",
"0.4366669",
"0.436218",
"0.43593353",
"0.43532106",
"0.43439773",
"0.43436143"
] |
0.7320736
|
0
|
Sets the internalTradeId value for this TradeHistoryEntryVo.
|
public void setInternalTradeId(java.lang.Long internalTradeId) {
this.internalTradeId = internalTradeId;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setTradeId(Long tradeId) {\n this.tradeId = tradeId;\n }",
"public java.lang.Long getInternalTradeId() {\n return internalTradeId;\n }",
"public String getTradeId() {\n\t\treturn this.tradeId;\n\t}",
"public void addTradeId(ObjectIdentifiable tradeId) {\n ArgumentChecker.notNull(tradeId, \"tradeId\");\n if (_tradeIds == null) {\n _tradeIds = new ArrayList<ObjectIdentifier>();\n }\n _tradeIds.add(tradeId.getObjectId());\n }",
"public void setTraderEmployeeId(String traderEmployeeId) {\n this.traderEmployeeId = traderEmployeeId;\n }",
"public Long getTradeId() {\n return tradeId;\n }",
"public void setTrade(Trade t)\n\t{\n\t\tm_trade = t;\n\t}",
"@Override\r\n\tpublic void setTrade(Trade trade) {\n\t\t this.trade = trade;\r\n\t}",
"public void setTraceId(String traceId) {\n\n this.traceId = traceId;\n\n }",
"public void setTradeIds(Iterable<? extends ObjectIdentifiable> tradeIds) {\n if (tradeIds == null) {\n _tradeIds = null;\n } else {\n _tradeIds = new ArrayList<ObjectIdentifier>();\n for (ObjectIdentifiable tradeId : tradeIds) {\n _tradeIds.add(tradeId.getObjectId());\n }\n }\n }",
"public void setTradeNo(String tradeNo) {\n\t\tthis.tradeNo = tradeNo;\n\t}",
"public abstract void setIdHistoricalWrapper(Long id);",
"public void setInternalId(String internalId) {\n\n if (internalId.isEmpty()) {\n\n /**\n * If Owner ID is ever an empty String, a NullPointerException will be thrown when the\n * listings are loaded in from the JSON file. I believe this is because the JSON parser we're\n * using stores empty Strings as \"null\" in the .json file. TODO this fix is fine for now, but\n * I want to make it safer in the future.\n */\n this.internalId = \" \";\n } else {\n\n this.internalId = internalId;\n }\n }",
"public void setMarketId(Number value) {\n\t\tsetNumber(MARKET_ID, value);\n\t}",
"public void setTraderEmailId(String traderEmailId) {\n this.traderEmailId = traderEmailId;\n }",
"public void setInternalId( String internalId )\n {\n this.internalId = internalId;\n }",
"public void setTradeProviderKey(Identifier tradeProviderKey) {\n this._tradeProviderKey = tradeProviderKey;\n }",
"@Override\n\tpublic void setEsfShooterAffiliationChronoId(\n\t\tlong esfShooterAffiliationChronoId) {\n\t\t_esfShooterAffiliationChrono.setEsfShooterAffiliationChronoId(esfShooterAffiliationChronoId);\n\t}",
"public void setTradeTime(Integer tradeTime) {\n this.tradeTime = tradeTime;\n }",
"@Override\n\tpublic void setCompanyId(long companyId) {\n\t\t_changesetEntry.setCompanyId(companyId);\n\t}",
"public void updateMemberTradeRecord(MemberTradeRecord tradeInfo) {\n\t\tmemberTradeRecordRepository.save(tradeInfo);\r\n\t}",
"public void setwPrTradeNo(String wPrTradeNo) {\n this.wPrTradeNo = wPrTradeNo;\n }",
"public void setMarketId(String marketId) {\n\t\tthis.marketId = marketId;\n\t}",
"public void setMarketId(String marketId) {\n this.marketId = marketId;\n }",
"@Override\n\tpublic void setCompanyId(long companyId) {\n\t\t_dictData.setCompanyId(companyId);\n\t}",
"public void setInternalId()\n {\n // generate a unique id that will be used for the internal id:\n UUID uuid = UUID.randomUUID();\n this.internalId = uuid.toString();\n }",
"public void setMarketId(String marketId) {\n this.marketId = marketId;\n }",
"public void setExternalTransId(String externalTransId) {\n\t\tmExternalTransId = StringUtils.left(externalTransId, 255);\n\t}",
"public SecuritiesTradeDetails137 addTradId(String tradId) {\n getTradId().add(tradId);\n return this;\n }",
"public void setTramiteId(java.lang.String tramiteId) {\n this.tramiteId = tramiteId;\n }",
"public List<ObjectIdentifier> getTradeIds() {\n return _tradeIds;\n }",
"public void setAuditLogId(long value) {\n this.auditLogId = value;\n }",
"Trade editTrade(String tradeId, Trade editedTrade) throws \n OrderBookTradeException;",
"@Override\n\tpublic void setId(long id) {\n\t\t_buySellProducts.setId(id);\n\t}",
"public void setBuyerId(Long buyerId) {\r\n this.buyerId = buyerId;\r\n }",
"@Override\n\tpublic void setCompanyId(long companyId) {\n\t\t_userTracker.setCompanyId(companyId);\n\t}",
"public AbstractTrace(final long traceId) {\n\t\tthis(traceId, AbstractTrace.DEFAULT_SESSION_ID);\n\t}",
"@Override\n\tpublic void setCompanyId(long companyId) {\n\t\t_employee.setCompanyId(companyId);\n\t}",
"public void sethId(Long hId) {\n this.hId = hId;\n }",
"public void setId(int id) {\n\t\t_dmHistoryMaritime.setId(id);\n\t}",
"@Override\n\tpublic void setCompanyId(long companyId) {\n\t\t_esfTournament.setCompanyId(companyId);\n\t}",
"public Builder setTradeDate(long value) {\n bitField0_ |= 0x00080000;\n tradeDate_ = value;\n onChanged();\n return this;\n }",
"@Override\n\tpublic void setChangesetEntryId(long changesetEntryId) {\n\t\t_changesetEntry.setChangesetEntryId(changesetEntryId);\n\t}",
"@Override\n public void setCompanyId(long companyId) {\n _partido.setCompanyId(companyId);\n }",
"public void setTradeType (java.lang.Long tradeType) {\r\n\t\tthis.tradeType = tradeType;\r\n\t}",
"public String getTradeNo() {\n\t\treturn tradeNo;\n\t}",
"public void setTradePaying(Integer tradePaying) {\n this.tradePaying = tradePaying;\n }",
"@Override\n\tpublic void setCompanyId(long companyId) {\n\t\t_second.setCompanyId(companyId);\n\t}",
"public void setBankTradeNo(String bankTradeNo) {\n\t\tthis.bankTradeNo = bankTradeNo == null ? null : bankTradeNo.trim();\n\t}",
"@Override\n\tpublic void setEmpId(long empId) {\n\t\t_employee.setEmpId(empId);\n\t}",
"public void setBookId(long bookId) {\n _sTransaction.setBookId(bookId);\n }",
"@Override\n\tpublic void setCompanyId(long companyId);",
"@Override\n\tpublic void setCompanyId(long companyId);",
"@Override\n\tpublic void setCompanyId(long companyId);",
"@Override\n\tpublic void setCompanyId(long companyId);",
"public void setTrajectoryID(int trajectoryid) {\n this.trajectoryid = trajectoryid;\n }",
"public void setTrid(int trid) {\n this.trid = trid;\n }",
"public void setQuoteId(Integer quoteId) {\n\t\tthis.quoteId = quoteId;\n\t}",
"public boolean isSetEsunny9TradeId() {\n return this.esunny9TradeId != null;\n }",
"@Override\n\tpublic void setRecentModifierId(long recentModifierId) {\n\t\t_scienceApp.setRecentModifierId(recentModifierId);\n\t}",
"public void setWebSiteId(String webSiteId) {\r\n\t\tthis.webSiteId = webSiteId;\r\n\t}",
"@Override\n\tpublic void setCompanyId(long companyId) {\n\t\t_expandoColumn.setCompanyId(companyId);\n\t}",
"public void setSellerId(Long sellerId) {\n this.sellerId = sellerId;\n }",
"public void setSellerId(Long sellerId) {\n this.sellerId = sellerId;\n }",
"@Override\n public void getTradeRecord(Trade trade) {\n if (trade != null && trade.getStock() != null) {\n this.tradeRepository.save(trade);\n }\n }",
"public void setIdHistory( int nIdHistory )\n {\n _nIdHistory = nIdHistory;\n }",
"public void setTradeOrder(String tradeOrder) {\n\t\tthis.tradeOrder = tradeOrder == null ? null : tradeOrder.trim();\n\t}",
"public void setTradeStatus(Integer tradeStatus) {\r\n this.tradeStatus = tradeStatus;\r\n }",
"public void setComputationId( DbKey computationId )\n\t{\n\t\tthis.computationId = computationId;\n\t}",
"Trade addTrade(String tradeId, Trade trade) throws OrderBookTradeException;",
"public void setPeriodId(Number value) {\n setAttributeInternal(PERIODID, value);\n }",
"public void setPayId(Long payId) {\r\n this.payId = payId;\r\n }",
"public void setExecutorId(Long executorId) {\n this.executorId = executorId;\n }",
"public void setExecutorId(Long executorId) {\n this.executorId = executorId;\n }",
"public void setWidgetId(String widgetId)\r\n\t{\r\n\t\tthis.widgetId = widgetId;\r\n\t}",
"@Override\r\n\tpublic void setId(String id) {\n\t\tmWarehouseId = id;\r\n\t}",
"public String getMarketId() {\n\t\treturn marketId;\n\t}",
"public void setSellerItemInfoId(Long sellerItemInfoId) {\r\n this.sellerItemInfoId = sellerItemInfoId;\r\n }",
"public void setTransactionID(int tid) {\n m_TransactionID = tid;\n // setChanged(true);\n }",
"public AssetTradeDetail(AssetTradeDetail other) {\n __isset_bitfield = other.__isset_bitfield;\n this.execTradeId = other.execTradeId;\n this.subAccountId = other.subAccountId;\n this.sledContractId = other.sledContractId;\n this.execOrderId = other.execOrderId;\n this.tradePrice = other.tradePrice;\n this.tradeVolume = other.tradeVolume;\n if (other.isSetExecTradeDirection()) {\n this.execTradeDirection = other.execTradeDirection;\n }\n this.createTimestampMs = other.createTimestampMs;\n this.lastmodifyTimestampMs = other.lastmodifyTimestampMs;\n this.sledCommodityId = other.sledCommodityId;\n if (other.isSetConfig()) {\n this.config = new AssetCalculateConfig(other.config);\n }\n this.orderTotalVolume = other.orderTotalVolume;\n this.limitPrice = other.limitPrice;\n if (other.isSetSource()) {\n this.source = other.source;\n }\n this.tradeAccountId = other.tradeAccountId;\n this.tradeTimestampMs = other.tradeTimestampMs;\n this.assetTradeDetailId = other.assetTradeDetailId;\n this.subUserId = other.subUserId;\n if (other.isSetSledOrderId()) {\n this.sledOrderId = other.sledOrderId;\n }\n }",
"TradeItem getTradeItem(long id);",
"@Override\n\tpublic void inset(Trade trade) {\n\t\tString sqlString = \"INSERT INTO (userid, tradetime) VALUES(?, ?)\";\n\t\tlong tradeId = insert(sqlString, trade.getUserId(), trade.getTradeTime());\n\t\ttrade.setTradeId((int)tradeId);\n\t}",
"public void setSellerId(Integer sellerId) {\n this.sellerId = sellerId;\n }",
"public void setTradeDate(Date tradeDate) {\r\n this.tradeDate = tradeDate;\r\n }",
"@Override\n\tpublic void setCompanyId(long companyId) {\n\t\tmodel.setCompanyId(companyId);\n\t}",
"@Override\n\tpublic void setCompanyId(long companyId) {\n\t\tmodel.setCompanyId(companyId);\n\t}",
"@Override\n\tpublic void setCompanyId(long companyId) {\n\t\tmodel.setCompanyId(companyId);\n\t}",
"public void setPeriodId(long periodId) {\n this.periodId = periodId;\n }",
"private void _setPlotDefId(final String plotDefId) {\n logger.debug(\"_setPlotDefId {}\", plotDefId);\n\n this.plotDefId = plotDefId;\n\n // do not change plotId\n }",
"public void setBuyerId(Number value) {\n setAttributeInternal(BUYERID, value);\n }",
"public void setBuyerId(Number value) {\n setAttributeInternal(BUYERID, value);\n }",
"public void setDictDataId(long dictDataId);",
"public void setLogId(String logId) {\r\n this.logId = logId == null ? null : logId.trim();\r\n }",
"public void setTimeEntryId(UUID timeEntryId) {\n this.timeEntryId = timeEntryId;\n }",
"public void setTrades(List<Trade> trades);",
"public void setTransLogId(String transLogId) {\n this.transLogId = transLogId;\n }",
"public de.hpi.msd.salsa.serde.avro.Edge.Builder setTweedId(long value) {\n validate(fields()[1], value);\n this.tweedId = value;\n fieldSetFlags()[1] = true;\n return this;\n }",
"public void setPayLogId(String payLogId) {\n this.payLogId = payLogId == null ? null : payLogId.trim();\n }",
"@Override\n\tpublic void setCompanyId(long companyId) {\n\t\t_paper.setCompanyId(companyId);\n\t}",
"public void setTradeCode(String value) {\n this.tradeCode = value;\n }"
] |
[
"0.67586523",
"0.58788157",
"0.5814592",
"0.5752042",
"0.568232",
"0.56660026",
"0.5628821",
"0.5414284",
"0.534732",
"0.5308711",
"0.52006185",
"0.49427867",
"0.4884043",
"0.4819686",
"0.4818682",
"0.47942695",
"0.47832462",
"0.4767711",
"0.47463346",
"0.47388217",
"0.4679623",
"0.4656383",
"0.46523932",
"0.4652081",
"0.46479213",
"0.46427152",
"0.45922455",
"0.4571933",
"0.4570645",
"0.4532679",
"0.4508341",
"0.44948277",
"0.44863668",
"0.44743377",
"0.44672766",
"0.44660965",
"0.44582245",
"0.4457297",
"0.44528285",
"0.44445568",
"0.44345313",
"0.44305012",
"0.4428902",
"0.44190955",
"0.44091752",
"0.4398351",
"0.43797085",
"0.4365951",
"0.43646222",
"0.43638617",
"0.43588227",
"0.43377548",
"0.43377548",
"0.43377548",
"0.43377548",
"0.43364483",
"0.43317282",
"0.43282002",
"0.4309052",
"0.42962456",
"0.42909515",
"0.42891574",
"0.42848247",
"0.42848247",
"0.427718",
"0.42719936",
"0.42675355",
"0.4255938",
"0.42537072",
"0.42472014",
"0.42465377",
"0.42253694",
"0.42245242",
"0.42245242",
"0.4219849",
"0.4211546",
"0.42095178",
"0.42048177",
"0.42000553",
"0.41976836",
"0.41921976",
"0.41878444",
"0.4185222",
"0.4183006",
"0.41822174",
"0.41822174",
"0.41822174",
"0.4181286",
"0.41802257",
"0.4169016",
"0.4169016",
"0.41652936",
"0.4163865",
"0.41624254",
"0.4158999",
"0.41572487",
"0.41558912",
"0.41543603",
"0.41539907",
"0.41479805"
] |
0.7094495
|
0
|
Gets the reclamationCloseComment value for this TradeHistoryEntryVo.
|
public java.lang.String getReclamationCloseComment() {
return reclamationCloseComment;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setReclamationCloseComment(java.lang.String reclamationCloseComment) {\n this.reclamationCloseComment = reclamationCloseComment;\n }",
"public java.lang.Boolean getReclamationClosed() {\n return reclamationClosed;\n }",
"public String getComment() {\n Object ref = comment_;\n if (!(ref instanceof String)) {\n String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n comment_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }",
"public String getComment() {\n Object ref = comment_;\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 if (bs.isValidUtf8()) {\n comment_ = s;\n }\n return s;\n }\n }",
"public Optional<String> getComment() {\n\t\treturn Optional.ofNullable(_comment);\n\t}",
"public String getComment() throws SQLException {\n\t\tloadFromDB();\n\t\treturn rev_comment;\n\t}",
"public String getCloseDate() {\n return closeDate;\n }",
"public java.lang.String getHopscomment() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException {\n return (((java.lang.String) __getCache(\"hopscomment\")));\n }",
"public com.google.protobuf.ByteString\n getCommentBytes() {\n Object ref = comment_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n comment_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getCommentBytes() {\n Object ref = comment_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n comment_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"com.google.protobuf.ByteString\n getCommentBytes();",
"public double getClose() {\n return close;\n }",
"public String getComment() {\n return variant == null ? null : variant.getComment(this);\n }",
"public Long getCloseTime() {\n return closeTime;\n }",
"public java.lang.String getDateClose()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DATECLOSE$4, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }",
"public String getComment() {\n \t\t\t\t\t\t\t\t\treturn null;\n \t\t\t\t\t\t\t\t}",
"public String getComment() {\r\n\t\treturn comment;\r\n\t}",
"public String getComment() {\n\t\tif (comment != null)\n\t\t\treturn ProteomeXchangeFilev2_1.COM + TAB\n\t\t\t// + \"comment\" + TAB\n\t\t\t\t\t+ comment;\n\t\treturn null;\n\t}",
"public java.lang.String getComment() {\r\n return comment;\r\n }",
"public String getClose_bidding() {\r\n return close_bidding;\r\n }",
"public java.lang.String getComment() {\n return comment;\n }",
"public java.lang.String getComment() {\n return comment;\n }",
"public java.lang.String getComment() {\n return comment;\n }",
"public String getComment() {\n\t\treturn comment;\n\t}",
"public String getComment() {\n\t\treturn comment;\n\t}",
"public java.lang.String getComments() {\n java.lang.Object ref = comments_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n comments_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String getAccountCloseDate() {\n return accountCloseDate;\n }",
"public String getComment() {\n return this.comment;\n }",
"public java.lang.String getComments() {\n java.lang.Object ref = comments_;\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 comments_ = s;\n }\n return s;\n }\n }",
"public final String getComment() {\n return comment;\n }",
"public String getComment() {\n return comment ;\n }",
"public String getComment() {\n return comment;\n }",
"public String getComment() {\n return comment;\n }",
"public String getComment() {\n return comment;\n }",
"public String getComment() {\n return comment;\n }",
"public String getComment() {\n return comment;\n }",
"public String getComment() {\n return comment;\n }",
"public String getComment() {\n return comment;\n }",
"public java.lang.String getVersionComment() {\n return versionComment;\n }",
"public String getComment()\n {\n return comment;\n }",
"public String get_comment() throws Exception {\n\t\treturn this.comment;\n\t}",
"public com.google.protobuf.ByteString\n getCommentsBytes() {\n java.lang.Object ref = comments_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n comments_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"@Override\n\tpublic String getComment() {\n\t\treturn model.getComment();\n\t}",
"public java.lang.String getLatestCommentText() {\n return latestCommentText;\n }",
"public com.google.protobuf.ByteString\n getCommentsBytes() {\n java.lang.Object ref = comments_;\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 comments_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public Comment getDisplayComment() {\n return this;\n }",
"public String getComment() throws RuntimeException\n {\n return getTitle();\n }",
"@Override\n public String toString() {\n return \"Comment{\" +\n \"game='\" + game + '\\'' +\n \"player='\" + player + '\\'' +\n \", rating=\" + rating +\n \", ratedOn=\" + ratedOn +\n '}';\n }",
"@Lob\r\n @Column (name=\"RECORD_COMMENT\")\r\n\tpublic String getComment() {\r\n\t\treturn comment;\r\n\t}",
"public String getBookComment() {\n return bookComment;\n }",
"public String getBookComment() {\n return bookComment;\n }",
"public int getDisableComment() {\n return instance.getDisableComment();\n }",
"public String getFileComment()\r\n {\r\n return sFileComment;\r\n }",
"public String getComment() {\n return description;\n }",
"public String getIflose() {\n return iflose;\n }",
"public com.google.protobuf.ByteString\n getCouponDescriptionBytes() {\n java.lang.Object ref = couponDescription_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n couponDescription_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getCouponDescriptionBytes() {\n java.lang.Object ref = couponDescription_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n couponDescription_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public int getDisableComment() {\n return disableComment_;\n }",
"public java.lang.String getCouponDescription() {\n java.lang.Object ref = couponDescription_;\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 couponDescription_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getCouponDescription() {\n java.lang.Object ref = couponDescription_;\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 couponDescription_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public double getAdjClose() {\n return adjClose;\n }",
"public java.lang.String getCouponDescription() {\n java.lang.Object ref = couponDescription_;\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 couponDescription_ = s;\n return s;\n }\n }",
"public java.lang.String getCouponDescription() {\n java.lang.Object ref = couponDescription_;\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 couponDescription_ = s;\n return s;\n }\n }",
"public String getComment();",
"public String getComment();",
"public String getComment();",
"public String getComment();",
"public String getComment();",
"public String getComment();",
"public String getCommentText() {\n\t return this.commentText;\n\t}",
"public com.google.protobuf.ByteString\n getCouponDescriptionBytes() {\n java.lang.Object ref = couponDescription_;\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 couponDescription_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getCouponDescriptionBytes() {\n java.lang.Object ref = couponDescription_;\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 couponDescription_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"String getCheckinComment();",
"public String getComments() {\n return (String) getAttributeInternal(COMMENTS);\n }",
"public boolean getClose()\n\t{\n\t\treturn getBooleanIOValue(\"Close\", true);\n\t}",
"public void setReclamationClosed(java.lang.Boolean reclamationClosed) {\n this.reclamationClosed = reclamationClosed;\n }",
"public Comment getDeleteComment() {\r\n return deleteComment;\r\n }",
"public String getComment() {\n\t LogWriter.logMessage(LogWriter.TRACE_DEBUG,\"getComment() \" );\n Via via=(Via)sipHeader;\n return via.getComment();\n }",
"public String getCommentText() {\r\n\r\n\t\treturn commentText;\r\n\t}",
"public String getComment(){\n return this.comment;\n }",
"public String toString () {\n if (this.comment != null) {\n return this.comment;\n }\n return super.toString ();\n }",
"public String getjComment() {\n return jComment;\n }",
"public java.lang.Integer getReclamationLevel() {\n return reclamationLevel;\n }",
"@CheckForNull\n public final SubstringBounds getCommentBounds() {\n return this.comment;\n }",
"public String getComment(){\n return comment;\n }",
"String getPreviousCloseDate();",
"public java.lang.String getZCOMMENTS()\n {\n \n return __ZCOMMENTS;\n }",
"public String getAcCommentsMessage() {\n return acCommentsMessage;\n }",
"public long getLatestCommentTime() {\n return latestCommentTime;\n }",
"public ST getComment() { \r\n\t\tST retVal = this.getTypedField(48, 0);\r\n\t\treturn retVal;\r\n }",
"String getCloseDate();",
"com.google.protobuf.ByteString\n getCommentsBytes();",
"public String getCommentContent() {\n return commentContent;\n }",
"public StringDt getCommentsElement() { \n\t\tif (myComments == null) {\n\t\t\tmyComments = new StringDt();\n\t\t}\n\t\treturn myComments;\n\t}",
"public String getComments() { \n\t\treturn getCommentsElement().getValue();\n\t}",
"String getComment();",
"String getComment();",
"public String getEmotionComment() {\n return emotionComment;\n }",
"public double getClosingPrice() {\n return this.closingPrice;\n }",
"String getComment() {\n//\t\t\tm1();\n\t\t\treturn \"small\";\n\t\t}"
] |
[
"0.68753016",
"0.57062757",
"0.5591914",
"0.5590149",
"0.5553099",
"0.55490136",
"0.5527849",
"0.5497553",
"0.5486443",
"0.5451255",
"0.53989995",
"0.5391511",
"0.5366699",
"0.5358834",
"0.52711844",
"0.5212753",
"0.51792836",
"0.5171487",
"0.51670945",
"0.51627916",
"0.51624244",
"0.51624244",
"0.51624244",
"0.5162047",
"0.5162047",
"0.51504767",
"0.51487833",
"0.51321113",
"0.512641",
"0.50899273",
"0.507944",
"0.50759536",
"0.50759536",
"0.50759536",
"0.50759536",
"0.50759536",
"0.50759536",
"0.50759536",
"0.5048014",
"0.50331223",
"0.5031902",
"0.50044996",
"0.49897006",
"0.4977877",
"0.49696964",
"0.49472466",
"0.4924887",
"0.4920237",
"0.49104452",
"0.49043688",
"0.49043688",
"0.4899352",
"0.48897368",
"0.4886906",
"0.4865598",
"0.4837316",
"0.4837316",
"0.48322898",
"0.4828452",
"0.4828452",
"0.48244634",
"0.48179784",
"0.48179784",
"0.48174748",
"0.48174748",
"0.48174748",
"0.48174748",
"0.48174748",
"0.48174748",
"0.4816378",
"0.48140398",
"0.48140398",
"0.47912186",
"0.47911394",
"0.47846693",
"0.4783776",
"0.47833893",
"0.47826892",
"0.47784474",
"0.47743767",
"0.4758411",
"0.47538078",
"0.47476098",
"0.47364965",
"0.47117415",
"0.46961328",
"0.46750155",
"0.4671716",
"0.4662016",
"0.46545222",
"0.4653249",
"0.46518868",
"0.46342936",
"0.46219513",
"0.46190733",
"0.461831",
"0.461831",
"0.46082446",
"0.45978802",
"0.45819765"
] |
0.7636946
|
0
|
Sets the reclamationCloseComment value for this TradeHistoryEntryVo.
|
public void setReclamationCloseComment(java.lang.String reclamationCloseComment) {
this.reclamationCloseComment = reclamationCloseComment;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public java.lang.String getReclamationCloseComment() {\n return reclamationCloseComment;\n }",
"public void setReclamationClosed(java.lang.Boolean reclamationClosed) {\n this.reclamationClosed = reclamationClosed;\n }",
"public void setCloseDate(String closeDate) {\n this.closeDate = closeDate;\n }",
"public void setClose(double value) {\n this.close = value;\n }",
"public void setComment(String c) {\n comment = c ;\n }",
"public void setHopscomment( java.lang.String newValue ) {\n __setCache(\"hopscomment\", newValue);\n }",
"public void setDateClose(java.lang.String dateClose)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DATECLOSE$4, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(DATECLOSE$4);\n }\n target.setStringValue(dateClose);\n }\n }",
"public void setComment(String new_comment){\n this.comment=new_comment;\n }",
"public void setCloseTime(Long closeTime) {\n this.closeTime = closeTime;\n }",
"public void setClose_bidding(String close_bidding) {\r\n this.close_bidding = close_bidding;\r\n }",
"public void setComment(final String newComment) {\n this.comment = newComment;\n }",
"public static void closeComment() {\n Log.write(\" -->\");\n }",
"public Builder setCommentBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000020;\n comment_ = value;\n onChanged();\n return this;\n }",
"public void setComment(String comment);",
"public void setComment(String comment);",
"public void setClose(java.lang.Boolean value)\n\t{\n\t\tsetDigitalOutput(\"Close\", value);\n\t}",
"public void setZCOMMENTS(java.lang.String value)\n {\n if ((__ZCOMMENTS == null) != (value == null) || (value != null && ! value.equals(__ZCOMMENTS)))\n {\n _isDirty = true;\n }\n __ZCOMMENTS = value;\n }",
"void setCheckinComment(String comment);",
"public void setVersionComment(java.lang.String versionComment) {\n this.versionComment = versionComment;\n }",
"public java.lang.Boolean getReclamationClosed() {\n return reclamationClosed;\n }",
"public void setComment(String p_comment) throws RuntimeException\n {\n setTitle(p_comment);\n }",
"public void setNewComment(Comment newComment) {\r\n this.newComment = newComment;\r\n }",
"public DataModelDescriptorBuilder comment(String string) {\n this.comment = string;\n return this;\n }",
"public void xsetDateClose(org.apache.xmlbeans.XmlString dateClose)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(DATECLOSE$4, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(DATECLOSE$4);\n }\n target.set(dateClose);\n }\n }",
"public void setComment(String comment) {\r\n\t\tthis.comment = comment == null ? null : comment.trim();\r\n\t}",
"public com.google.protobuf.ByteString\n getCommentBytes() {\n Object ref = comment_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n comment_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"void setComments(org.hl7.fhir.String comments);",
"public void setComment(String comment) {\n this.comment = comment == null ? null : comment.trim();\n }",
"public void setComment(String comment) {\n this.comment = comment == null ? null : comment.trim();\n }",
"public void setComment(String comment) {\n this.comment = comment == null ? null : comment.trim();\n }",
"public void setComment(String comment) {\n this.comment = comment == null ? null : comment.trim();\n }",
"public Builder setComment(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000020;\n comment_ = value;\n onChanged();\n return this;\n }",
"public void setBookComment(String bookComment) {\n this.bookComment = bookComment == null ? null : bookComment.trim();\n }",
"public void setBookComment(String bookComment) {\n this.bookComment = bookComment == null ? null : bookComment.trim();\n }",
"public final void setComment(final String comment) {\n this.comment = comment;\n }",
"public String getComment() {\n Object ref = comment_;\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 if (bs.isValidUtf8()) {\n comment_ = s;\n }\n return s;\n }\n }",
"public void setDeleteComment(Comment deleteComment) {\r\n this.deleteComment = deleteComment;\r\n }",
"public void setComment(String comment) {\n this.comment = comment;\n }",
"public void setAccountCloseDate(final String accountCloseDate) {\n this.accountCloseDate = accountCloseDate;\n }",
"public com.google.protobuf.ByteString\n getCommentBytes() {\n Object ref = comment_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n comment_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public void setComment(String comment)\n {\n this.comment = comment;\n }",
"public String getComment() {\n Object ref = comment_;\n if (!(ref instanceof String)) {\n String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n comment_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }",
"public void setComment(String comment) {\n this.comment = comment;\n }",
"public Builder setCommentsBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n comments_ = value;\n onChanged();\n return this;\n }",
"public void setFileComment(String fileComment)\r\n {\r\n sFileComment = fileComment;\r\n }",
"public String getCloseDate() {\n return closeDate;\n }",
"public void setComment(String comment){\n this.comment = comment;\n }",
"public void setCommentReplaced(Boolean commentReplaced) {\n\t this.commentReplaced = commentReplaced;\n\t}",
"private void setFileComment(String fileComment){\n put(SlackParamsConstants.FILE_COMMENT, fileComment);\n }",
"public void setComment(java.lang.String comment) {\r\n this.comment = comment;\r\n }",
"public void setCommentOp(String commentOp) {\n this.commentOp = commentOp;\n }",
"public void setComment(String comment) {\n this.comment = comment;\n }",
"public void setComment(String comment) {\n this.comment = comment;\n }",
"public void setReclamationLevel(java.lang.Integer reclamationLevel) {\n this.reclamationLevel = reclamationLevel;\n }",
"public String getComment() {\r\n\t\treturn comment;\r\n\t}",
"public Builder clearComment() {\n bitField0_ = (bitField0_ & ~0x00000020);\n comment_ = getDefaultInstance().getComment();\n onChanged();\n return this;\n }",
"private void setDisableComment(int value) {\n \n disableComment_ = value;\n }",
"public void set_comment(String comment) throws Exception{\n\t\tthis.comment = comment;\n\t}",
"public void setEmotionComment(String newComment) throws EmotionCommentTooLong {\n if (newComment.length() <= MAX_CHARACTERS) {\n emotionComment = newComment;\n } else {\n throw new EmotionCommentTooLong();\n }\n }",
"public Optional<String> getComment() {\n\t\treturn Optional.ofNullable(_comment);\n\t}",
"public static void setComments(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, java.lang.String value) {\r\n\t\tBase.set(model, instanceResource, COMMENTS, value);\r\n\t}",
"public void setComment(String comment) {\n\t\tthis.comment = comment;\n\t}",
"public void setComment(String comment) {\n\t\tthis.comment = comment;\n\t}",
"public void setComment(java.lang.String comment) {\n this.comment = comment;\n }",
"public void setComment(java.lang.String comment) {\n this.comment = comment;\n }",
"public void setComment(java.lang.String comment) {\n this.comment = comment;\n }",
"public String getComment() {\n\t\treturn comment;\n\t}",
"public String getComment() {\n\t\treturn comment;\n\t}",
"@Override\n\tpublic void setComment(String comment) {\n\t\tmodel.setComment(comment);\n\t}",
"public String getComment() {\n return this.comment;\n }",
"public void setComments(java.lang.String value);",
"@Override\r\n\tpublic void modifyReply(CommentVO vo) throws Exception {\n\t\tsession.update(namespace + \".modifyReply\", vo);\r\n\t}",
"public SocketChannelConfig setAutoClose(boolean autoClose)\r\n/* 332: */ {\r\n/* 333:322 */ super.setAutoClose(autoClose);\r\n/* 334:323 */ return this;\r\n/* 335: */ }",
"public void setOverrideComment(String aOverrideComment) {\n overrideComment = aOverrideComment;\n }",
"public void setComments(String value) {\n setAttributeInternal(COMMENTS, value);\n }",
"@Override\n\tpublic CommentVnEntity UpdateComment(CommentVnRequest commentRequest) {\n\t\treturn null;\n\t}",
"public void setClosedIcon(String closedIcon)\n {\n this.closedIcon = closedIcon;\n }",
"public void setClosedate( java.sql.Date newValue ) {\n __setCache(\"closedate\", newValue);\n }",
"@Lob\r\n @Column (name=\"RECORD_COMMENT\")\r\n\tpublic String getComment() {\r\n\t\treturn comment;\r\n\t}",
"public Comment(String data) {\n value = data;\n }",
"public String getComment() {\n return comment;\n }",
"public String getComment() {\n return comment;\n }",
"public String getComment() {\n return comment;\n }",
"public String getComment() {\n return comment;\n }",
"public String getComment() {\n return comment;\n }",
"public String getComment() {\n return comment;\n }",
"public String getComment() {\n return comment;\n }",
"public void setcReDescription(String cReDescription) {\n this.cReDescription = cReDescription == null ? null : cReDescription.trim();\n }",
"public String getComment() {\n \t\t\t\t\t\t\t\t\treturn null;\n \t\t\t\t\t\t\t\t}",
"com.google.protobuf.ByteString\n getCommentBytes();",
"void setOnChannelCloseListener(OnCloseListener onCloseListener);",
"public void setjComment(String jComment) {\n this.jComment = jComment == null ? null : jComment.trim();\n }",
"public void setComments(String newValue);",
"public String getComment() {\n return comment ;\n }",
"public void recordClosingQuote(Quote closingQuote_, MarketDataSession marketDataSession_);",
"public void setComment(String comment, int rating);",
"public void setDiscountPriceHigh(String DiscountPriceHigh) {\n this.DiscountPriceHigh = DiscountPriceHigh;\n }",
"private void applyComment()\n {\n Map<String, GWikiArtefakt<?>> map = new HashMap<String, GWikiArtefakt<?>>();\n page.collectParts(map);\n GWikiArtefakt<?> artefakt = map.get(\"ChangeComment\");\n if (artefakt instanceof GWikiChangeCommentArtefakt == false) {\n return;\n }\n\n GWikiChangeCommentArtefakt commentArtefakt = (GWikiChangeCommentArtefakt) artefakt;\n String oldText = commentArtefakt.getStorageData();\n String ntext;\n String uname = wikiContext.getWikiWeb().getAuthorization().getCurrentUserName(wikiContext);\n int prevVersion = page.getElementInfo().getProps().getIntValue(GWikiPropKeys.VERSION, 0);\n if (StringUtils.isNotBlank(comment) == true) {\n Date now = new Date();\n ntext = \"{changecomment:modifiedBy=\"\n + uname\n + \"|modifiedAt=\"\n + GWikiProps.date2string(now)\n + \"|version=\"\n + (prevVersion + 1)\n + \"}\\n\"\n + comment\n + \"\\n{changecomment}\\n\"\n + StringUtils.defaultString(oldText);\n } else {\n ntext = oldText;\n }\n ntext = StringUtils.trimToNull(ntext);\n commentArtefakt.setStorageData(ntext);\n }",
"public boolean hasComment() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }",
"public CrashReport withComment(String comment);"
] |
[
"0.6561947",
"0.5570894",
"0.5340819",
"0.5194163",
"0.5140863",
"0.5033708",
"0.49751455",
"0.4954299",
"0.4935947",
"0.4880408",
"0.48726037",
"0.4841143",
"0.48345307",
"0.48072413",
"0.48072413",
"0.48040253",
"0.4774026",
"0.47703162",
"0.46709552",
"0.4657169",
"0.46165758",
"0.45823365",
"0.4581701",
"0.45659703",
"0.45636845",
"0.4555239",
"0.45549637",
"0.45500818",
"0.45500818",
"0.45500818",
"0.45500818",
"0.45405823",
"0.45227033",
"0.45227033",
"0.4512969",
"0.4481241",
"0.4474035",
"0.4469192",
"0.44677144",
"0.44638726",
"0.44594097",
"0.444761",
"0.4443291",
"0.44404033",
"0.44236094",
"0.44213322",
"0.44197452",
"0.44166592",
"0.4406793",
"0.43942735",
"0.43839273",
"0.43810338",
"0.43810338",
"0.43760633",
"0.43728352",
"0.43655378",
"0.43583313",
"0.4356579",
"0.43563706",
"0.43459776",
"0.43456432",
"0.43454337",
"0.43454337",
"0.43445122",
"0.43445122",
"0.43445122",
"0.431869",
"0.431869",
"0.4315513",
"0.4312179",
"0.4300407",
"0.42904803",
"0.42881417",
"0.4288054",
"0.4287993",
"0.4282888",
"0.4269976",
"0.42618945",
"0.42545423",
"0.4241821",
"0.42374334",
"0.42374334",
"0.42374334",
"0.42374334",
"0.42374334",
"0.42374334",
"0.42374334",
"0.42341465",
"0.42163563",
"0.4205794",
"0.42015398",
"0.4200387",
"0.4199164",
"0.4198748",
"0.4196072",
"0.41936064",
"0.418515",
"0.41788846",
"0.4175708",
"0.4174895"
] |
0.7886282
|
0
|
Gets the reclamationClosed value for this TradeHistoryEntryVo.
|
public java.lang.Boolean getReclamationClosed() {
return reclamationClosed;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public java.lang.String getReclamationCloseComment() {\n return reclamationCloseComment;\n }",
"public boolean getClosed() {\n\treturn this.closed;\n }",
"public void setReclamationClosed(java.lang.Boolean reclamationClosed) {\n this.reclamationClosed = reclamationClosed;\n }",
"public boolean getClosed(){\n \treturn this.isClosed;\n }",
"public boolean isClosed() {\n return this.isClosed;\n }",
"public boolean isClosed(){\n return this.closed.get();\n }",
"public boolean isClosed() {\n return this.closed.get();\n }",
"public Date getClosedTime() {\n return closedTime;\n }",
"public boolean isClosed()\n {\n return _isClosed;\n }",
"public boolean isClosed()\n {\n return _isClosed;\n }",
"public String getCloseDate() {\n return closeDate;\n }",
"public double getClose() {\n return close;\n }",
"public boolean isClosed() {\n\t\treturn this.closed;\n\t}",
"public boolean isClosed() {\n return closed;\n }",
"public Optional<Date> getClosedDate() {\n return closedDate;\n }",
"public java.lang.String getDateClose()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DATECLOSE$4, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }",
"public boolean isClosed() {\n return closed;\n }",
"public String getClosedInd()\r\n\t{\r\n\t\treturn closedInd;\r\n\t}",
"public String getAccountCloseDate() {\n return accountCloseDate;\n }",
"public boolean isClosed() {\n return (mRLS == null);\n }",
"public String getIflose() {\n return iflose;\n }",
"public boolean isClosed() {\n return false;\n }",
"public Long getCloseTime() {\n return closeTime;\n }",
"public final boolean isClosed() {\n\t\treturn (m_flags & Closed) != 0 ? true : false;\n\t}",
"public boolean isDoorClosed() {\n\t\treturn isClosed;\n\t}",
"public boolean getClose()\n\t{\n\t\treturn getBooleanIOValue(\"Close\", true);\n\t}",
"@Basic(init = @Expression(\"false\"))\n public boolean isClosed() {\n return $closed;\n }",
"public double getClosingPrice() {\n return this.closingPrice;\n }",
"public java.lang.Integer getReclamationLevel() {\n return reclamationLevel;\n }",
"public long getExposureCloseAmount() {\n\t\treturn exposureCloseAmount;\n\t}",
"public Stop getClosedStop()\r\n {\r\n return closed_stop;\r\n }",
"public synchronized boolean isClosed() {\r\n\t\treturn closed;\r\n\t}",
"public void setReclamationCloseComment(java.lang.String reclamationCloseComment) {\n this.reclamationCloseComment = reclamationCloseComment;\n }",
"private synchronized boolean isClosed()\n {\n return isClosed;\n }",
"public String getClose_bidding() {\r\n return close_bidding;\r\n }",
"public final boolean isClosed() {\n return closeReceived && isCloseSent();\n }",
"public java.sql.Date getClosedate() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException {\n return (((java.sql.Date) __getCache(\"closedate\")));\n }",
"public boolean closed() {\r\n return closed;\r\n }",
"@Override\n\tpublic boolean isClosed() \n\t{\n\t\treturn false;\n\t}",
"public boolean isClosed() {\n\t\tsynchronized (closed) {\n\t\t\treturn closed;\n\t\t}\n\t}",
"public org.apache.xmlbeans.XmlString xgetDateClose()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(DATECLOSE$4, 0);\n return target;\n }\n }",
"public Boolean getCloseAs() {\n\t\treturn closeAs;\n\t}",
"@Override\r\n\tpublic int closedCheck(CookVO vo) throws Exception {\n\t\treturn session.update(\"com.mapper.cook.closed\",vo);\r\n\t}",
"public double GetAdjClose(){\r\n\t\treturn dayStockPrices.get(adjCloseIndex);\r\n\t}",
"public native CallClosedReasons getClosedReason();",
"public boolean isClosed() throws RemoteException {\r\n return closed;\r\n }",
"public BigDecimal getInHoSucr() {\n return inHoSucr;\n }",
"public java.lang.Integer getIssueStock () {\n\t\treturn issueStock;\n\t}",
"public boolean isBullish(){\n return (Double.compare(this.open, this.close) < 0) ? true : false;\r\n }",
"String getCloseDate();",
"public java.lang.Double getREVENUESEQUENCE() {\n return REVENUE_SEQUENCE;\n }",
"@Override\n public boolean isClosed() {\n return false;\n }",
"@Override\n\tpublic int getCloseTime() {\n\t\treturn 0;\n\t}",
"public java.lang.Double getREVENUESEQUENCE() {\n return REVENUE_SEQUENCE;\n }",
"public boolean hasClosingTime() {\n return genClient.cacheHasKey(CacheKey.closingTime);\n }",
"public boolean isDirectlyClosed() {\n\t\treturn this.directlyClosed;\n\t}",
"public double getAdjClose() {\n return adjClose;\n }",
"public boolean isClosed() {\n return calculateSumOfHouse() > 31;\n }",
"protected ResourceReference getFolderClosed()\n\t{\n\t\treturn FOLDER_CLOSED;\n\t}",
"void setClosed(boolean closed) {\n this.closed = closed;\n }",
"public BoundType b() {\n return BoundType.CLOSED;\n }",
"public boolean isClosed() {\n\t\treturn ( mCurrentState == STATE.CLOSED_CANCEL ) || ( mCurrentState == STATE.CLOSED_CONFIRMED );\n\t}",
"public LocalTime getClosingTime() {\n return closingTime;\n }",
"int getCloseBodyPosition() {\n return this.fCloseBodyRange[0];\n }",
"boolean isClosed();",
"boolean isClosed();",
"boolean isClosed();",
"boolean isClosed();",
"public BigDecimal getHistoryRebate() {\n return historyRebate;\n }",
"public long getAutoClose();",
"public boolean isSetDateClose()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(DATECLOSE$4) != 0;\n }\n }",
"public boolean checkClosed();",
"public double getTimeForClose();",
"public String getPopReceipt() {\n\t\treturn m_PopReceipt;\n\t}",
"public boolean isClosed() {\n return (int)freqX == freqX && (int)freqY == freqY;\n }",
"public Character getRenewalOpenFlag() {\n return renewalOpenFlag;\n }",
"public int getClosedStopIndex()\r\n {\r\n return closed_stop_index;\r\n }",
"public String getDiscountPriceHigh() {\n return this.DiscountPriceHigh;\n }",
"public abstract boolean isClosed();",
"public double redemptionValue()\n\t{\n\t\treturn _dblRedemptionValue;\n\t}",
"public boolean isClosed() {\n\t\treturn journalWriter == null;\n\t}",
"public java.lang.String getRevStatDes() {\n return revStatDes;\n }",
"public double getOpen() {\n return open;\n }",
"public boolean checkAccountClosed() {\n return this.accountStatus == \"Closed\";\n }",
"public boolean isBearish(){\n return (Double.compare(this.open, this.close) > 0) ? true : false;\r\n }",
"public Integer getEndSoc() {\n return endSoc;\n }",
"public boolean isClosed() {\n\t\treturn mService == null;\n\t}",
"public BigDecimal getOgHoSucr() {\n return ogHoSucr;\n }",
"public Set<WeightedPoint> getClosedSet()\n {\n return closedSet;\n }",
"public java.lang.CharSequence getREVENUEREPORTIND() {\n return REVENUE_REPORT_IND;\n }",
"public void setClosed(boolean closed) {\n\tthis.closed = closed;\n }",
"public BigDecimal getRecommendStopLoss() {\n return recommendStopLoss;\n }",
"public java.lang.CharSequence getREVENUEREPORTIND() {\n return REVENUE_REPORT_IND;\n }",
"public double getRmsdCutoff() {\n return rmsdCutoff;\n }",
"public long getScheduleToCloseTimeoutSeconds() {\n return scheduleToCloseTimeoutSeconds;\n }",
"public Integer getChangedSoc() {\n return changedSoc;\n }",
"public String getUnitPriceDiscountHigh() {\n return this.UnitPriceDiscountHigh;\n }",
"public BigDecimal getRefundPrice() {\n return refundPrice;\n }",
"public double getStockPrice() {\n\t\treturn stockPrice;\n\t}",
"public boolean getStockState() {\n\t\treturn inStock;\n\t}"
] |
[
"0.62737566",
"0.6224739",
"0.6181002",
"0.6138336",
"0.59499025",
"0.5852089",
"0.58038974",
"0.58010846",
"0.5763588",
"0.5763588",
"0.5695328",
"0.5694773",
"0.56912947",
"0.56770104",
"0.5629154",
"0.5622067",
"0.55791104",
"0.556874",
"0.55518085",
"0.55068636",
"0.54685575",
"0.5465194",
"0.5459551",
"0.5453258",
"0.54455775",
"0.5439961",
"0.5424842",
"0.54218894",
"0.54107076",
"0.53894377",
"0.5338526",
"0.5303281",
"0.5231962",
"0.5217021",
"0.52039284",
"0.51591116",
"0.51075506",
"0.50924283",
"0.506471",
"0.5057294",
"0.5044168",
"0.5032657",
"0.50272137",
"0.5026993",
"0.50215864",
"0.49887607",
"0.49689",
"0.4951864",
"0.49416196",
"0.49117664",
"0.49056745",
"0.49050868",
"0.49036875",
"0.49033228",
"0.48931777",
"0.48850092",
"0.4873308",
"0.48646566",
"0.48559412",
"0.48542923",
"0.48538333",
"0.48487267",
"0.48451868",
"0.48433077",
"0.48278835",
"0.48278835",
"0.48278835",
"0.48278835",
"0.48261678",
"0.48221284",
"0.48134917",
"0.48023525",
"0.47897208",
"0.47856387",
"0.47804436",
"0.4779599",
"0.4752222",
"0.47379765",
"0.47222665",
"0.47203898",
"0.47195467",
"0.4707458",
"0.47061485",
"0.46820325",
"0.46497267",
"0.46410137",
"0.46400362",
"0.46365026",
"0.46359915",
"0.46332103",
"0.4623042",
"0.46064767",
"0.46027866",
"0.45934215",
"0.45932627",
"0.45872813",
"0.45841146",
"0.45797893",
"0.4566087",
"0.45543724"
] |
0.73163164
|
0
|
Sets the reclamationClosed value for this TradeHistoryEntryVo.
|
public void setReclamationClosed(java.lang.Boolean reclamationClosed) {
this.reclamationClosed = reclamationClosed;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setReclamationCloseComment(java.lang.String reclamationCloseComment) {\n this.reclamationCloseComment = reclamationCloseComment;\n }",
"public java.lang.Boolean getReclamationClosed() {\n return reclamationClosed;\n }",
"public void setClosed(boolean closed) {\n\tthis.closed = closed;\n }",
"void setClosed(boolean closed) {\n this.closed = closed;\n }",
"public void setClosedDate(Date v) \n {\n \n if (!ObjectUtils.equals(this.closedDate, v))\n {\n this.closedDate = v;\n setModified(true);\n }\n \n \n }",
"public void setClosedIcon(String closedIcon)\n {\n this.closedIcon = closedIcon;\n }",
"public void setClose(double value) {\n this.close = value;\n }",
"public void setClosedTime(Date closedTime) {\n this.closedTime = closedTime;\n }",
"public void setCloseDate(String closeDate) {\n this.closeDate = closeDate;\n }",
"public java.lang.String getReclamationCloseComment() {\n return reclamationCloseComment;\n }",
"public void setClose(java.lang.Boolean value)\n\t{\n\t\tsetDigitalOutput(\"Close\", value);\n\t}",
"void setStopToClosedOrOpenedById(String stopId, boolean isClosed);",
"public void setDirectlyClosed(boolean directlyClosed) {\n\t\tthis.directlyClosed = directlyClosed;\n\t}",
"public boolean getClosed() {\n\treturn this.closed;\n }",
"public boolean getClosed(){\n \treturn this.isClosed;\n }",
"public void setDateClose(java.lang.String dateClose)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DATECLOSE$4, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(DATECLOSE$4);\n }\n target.setStringValue(dateClose);\n }\n }",
"protected void setClosed() {\n this.stopAcquisition();\n }",
"@Override\r\n\tpublic int closedCheck(CookVO vo) throws Exception {\n\t\treturn session.update(\"com.mapper.cook.closed\",vo);\r\n\t}",
"public void setCloseTime(Long closeTime) {\n this.closeTime = closeTime;\n }",
"protected void setClosed() {\r\n this.stopAcquisition();\r\n }",
"public void xsetDateClose(org.apache.xmlbeans.XmlString dateClose)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(DATECLOSE$4, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(DATECLOSE$4);\n }\n target.set(dateClose);\n }\n }",
"public void setClosedate( java.sql.Date newValue ) {\n __setCache(\"closedate\", newValue);\n }",
"public boolean isClosed() {\n return this.isClosed;\n }",
"public boolean isClosed()\n {\n return _isClosed;\n }",
"public boolean isClosed()\n {\n return _isClosed;\n }",
"public String getCloseDate() {\n return closeDate;\n }",
"public boolean isClosed(){\n return this.closed.get();\n }",
"public Date getClosedTime() {\n return closedTime;\n }",
"public void setClose_bidding(String close_bidding) {\r\n this.close_bidding = close_bidding;\r\n }",
"public void setClosedStop(Stop stop)\r\n {\r\n closed_stop = stop;\r\n }",
"public boolean isDoorClosed() {\n\t\treturn isClosed;\n\t}",
"public boolean isClosed() {\n return closed;\n }",
"@Override\n\tpublic boolean isClosed() \n\t{\n\t\treturn false;\n\t}",
"@Basic(init = @Expression(\"false\"))\n public boolean isClosed() {\n return $closed;\n }",
"public void unsetDateClose()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(DATECLOSE$4, 0);\n }\n }",
"public boolean isClosed() {\n return false;\n }",
"public void setReclamationLevel(java.lang.Integer reclamationLevel) {\n this.reclamationLevel = reclamationLevel;\n }",
"@Override\n public boolean isClosed() {\n return false;\n }",
"synchronized public void close(){\n \tnotifyObservers();\n closed = true;\n }",
"public Optional<Date> getClosedDate() {\n return closedDate;\n }",
"void closeRightDoor()\n {\n status = DoorStatus.CLOSING;\n openingRight = false;\n rightDoorTimeline.play();\n }",
"public XMXEDITClosedResponse(final String msg, \n final String spec, final String rawResponse) {\n\n this(msg, rawResponse);\n this.special = spec;\n\n }",
"public void setState(boolean isClosed) {\n\t\tthis.isClosed = isClosed;\n\t}",
"public boolean isClosed() {\n\t\treturn this.closed;\n\t}",
"public boolean isClosed() {\n return closed;\n }",
"public boolean isClosed() {\n return this.closed.get();\n }",
"public boolean isClosed() {\n return (mRLS == null);\n }",
"public final boolean isClosed() {\n\t\treturn (m_flags & Closed) != 0 ? true : false;\n\t}",
"public double getClose() {\n return close;\n }",
"public void setAccountCloseDate(final String accountCloseDate) {\n this.accountCloseDate = accountCloseDate;\n }",
"public boolean isSetDateClose()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(DATECLOSE$4) != 0;\n }\n }",
"public boolean isBullish(){\n return (Double.compare(this.open, this.close) < 0) ? true : false;\r\n }",
"public XMXEDITClosedResponse(final String msg,\n final String rawResponse) {\n\n this();\n this.setRawResponse(rawResponse);\n this.message = msg;\n this.special = null;\n }",
"public void setOpen(double value) {\n this.open = value;\n }",
"public void setLowStock(boolean lowStock)\r\n\t{\r\n\t\tthis.lowStock = lowStock;\r\n\t\tif(this.lowStock)\r\n\t\t{\r\n\t\t\tnotifyObserver();\r\n\t\t}\r\n\t}",
"public void closed(LLRPChannelClosedEvent event);",
"public boolean checkClosed();",
"@Override\n\tpublic void setCloseTime(int t) {\n\t\t\n\t}",
"public String getClosedInd()\r\n\t{\r\n\t\treturn closedInd;\r\n\t}",
"@Override\r\n public void Close(){dSave.updateClosedInstance();}",
"private synchronized boolean isClosed()\n {\n return isClosed;\n }",
"public long getExposureCloseAmount() {\n\t\treturn exposureCloseAmount;\n\t}",
"public String getAccountCloseDate() {\n return accountCloseDate;\n }",
"public void setCanCloseCombat(boolean canCloseCombat) {\n\t\tthis.canCloseCombat = canCloseCombat;\n\t}",
"public void setRenewalOpenFlag(Character aRenewalOpenFlag) {\n renewalOpenFlag = aRenewalOpenFlag;\n }",
"public synchronized boolean isClosed() {\r\n\t\treturn closed;\r\n\t}",
"public void setExposureCloseAmount(long exposureCloseAmount) {\n\t\tthis.exposureCloseAmount = exposureCloseAmount;\n\t}",
"public Long getCloseTime() {\n return closeTime;\n }",
"public final boolean isClosed() {\n return closeReceived && isCloseSent();\n }",
"public void Close() {\n\t\tendDate = sdf.format(new Date());\n\t}",
"public void setRightDoors(boolean right) {\n \tthis.rightDoorIsOpen = right;\n \tif(this.rightDoorIsOpen) {\n \t\tsetNumDeparting();\n \t}\n }",
"public java.lang.String getDateClose()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DATECLOSE$4, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }",
"public boolean isBearish(){\n return (Double.compare(this.open, this.close) > 0) ? true : false;\r\n }",
"public String getClose_bidding() {\r\n return close_bidding;\r\n }",
"public void setClosedStopIndex(int i)\r\n {\r\n closed_stop_index = i;\r\n }",
"public boolean isClosed() throws RemoteException {\r\n return closed;\r\n }",
"public void setRight(boolean right) {\n\t\tthis.right = right;\n\t}",
"public boolean getClose()\n\t{\n\t\treturn getBooleanIOValue(\"Close\", true);\n\t}",
"void setOnChannelCloseListener(OnCloseListener onCloseListener);",
"public boolean closed() {\r\n return closed;\r\n }",
"public void setDiscountPriceHigh(String DiscountPriceHigh) {\n this.DiscountPriceHigh = DiscountPriceHigh;\n }",
"protected void directClose() {\n\t\tthis.directlyClosed = true;\n\t}",
"public void setFixedDividend(Double fixedDividend) {\n\t\tthis.fixedDividend = fixedDividend;\n\t}",
"public abstract boolean isClosed();",
"public void setDateOpen(java.lang.String dateOpen)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DATEOPEN$2, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(DATEOPEN$2);\n }\n target.setStringValue(dateOpen);\n }\n }",
"public void decreaseFileReaderReference(TsFileResource tsFile, boolean isClosed) {\n synchronized (this) {\n if (!isClosed && unclosedReferenceMap.containsKey(tsFile.getTsFilePath())) {\n if (unclosedReferenceMap.get(tsFile.getTsFilePath()).decrementAndGet() == 0) {\n closeUnUsedReaderAndRemoveRef(tsFile.getTsFilePath(), false);\n }\n } else if (closedReferenceMap.containsKey(tsFile.getTsFilePath())\n && (closedReferenceMap.get(tsFile.getTsFilePath()).decrementAndGet() == 0)) {\n closeUnUsedReaderAndRemoveRef(tsFile.getTsFilePath(), true);\n }\n }\n tsFile.readUnlock();\n }",
"public Stop getClosedStop()\r\n {\r\n return closed_stop;\r\n }",
"public void configRevLimitSwitchNormallyOpen(boolean normalOpen)\n {\n final String funcName = \"configRevLimitSwitchNormallyOpen\";\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API, \"normalOpen=%s\", normalOpen);\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API);\n }\n\n revLimitSwitch = motor.getReverseLimitSwitch(\n normalOpen ? LimitSwitchPolarity.kNormallyOpen : LimitSwitchPolarity.kNormallyClosed);\n }",
"public double getClosingPrice() {\n return this.closingPrice;\n }",
"public boolean isClosed() {\n return (int)freqX == freqX && (int)freqY == freqY;\n }",
"public void setRepairLim(BigDecimal repairLim) {\n\t\tthis.repairLim = repairLim;\n\t}",
"public void setIflose(String iflose) {\n this.iflose = iflose;\n }",
"@Override\n public void close() {\n if (complete.compareAndSet(false, true)) {\n rc = BKException.Code.UnexpectedConditionException;\n writeSet.recycle();\n }\n entryImpl.close();\n }",
"public void setRight(boolean b){ right = b; }",
"public void setRight(boolean b){ right = b; }",
"@Override\r\n\t\tpublic boolean isClosed() throws SQLException {\n\t\t\treturn false;\r\n\t\t}",
"public void setNeedClosingTag(boolean close) {\n\t\tend_element = close;\n\t}",
"public void setHigh(java.math.BigDecimal high) {\n this.high = high;\n }",
"void setReliability(org.hl7.fhir.ObservationReliability reliability);",
"private void setFileClosed() {\n \topenFiles.pop();\n \trelativeNames.pop();\n }"
] |
[
"0.63546604",
"0.6218919",
"0.6026167",
"0.59978414",
"0.56518495",
"0.55929273",
"0.55125064",
"0.5507505",
"0.54160166",
"0.5278032",
"0.52093375",
"0.5165238",
"0.5142377",
"0.5088392",
"0.50604945",
"0.50176144",
"0.49169624",
"0.4897754",
"0.48867583",
"0.48798233",
"0.4817134",
"0.4812414",
"0.4797244",
"0.4760222",
"0.4760222",
"0.47368705",
"0.4732209",
"0.47024238",
"0.46905273",
"0.46722633",
"0.4660491",
"0.4659977",
"0.46457013",
"0.46329972",
"0.46268812",
"0.4610255",
"0.46096578",
"0.45961538",
"0.45828944",
"0.4559405",
"0.45583197",
"0.45470488",
"0.45419577",
"0.45252225",
"0.45173973",
"0.45056003",
"0.4489095",
"0.44803554",
"0.44526118",
"0.443143",
"0.44247937",
"0.4420131",
"0.43995923",
"0.43772504",
"0.4362462",
"0.43383232",
"0.43267485",
"0.43146417",
"0.43039927",
"0.43005922",
"0.43003345",
"0.4286846",
"0.42395085",
"0.42392176",
"0.42326736",
"0.42278674",
"0.4216415",
"0.42010233",
"0.41997245",
"0.41902593",
"0.417576",
"0.41726002",
"0.41516453",
"0.41494995",
"0.41492078",
"0.4146787",
"0.41452685",
"0.4140528",
"0.41394103",
"0.41351318",
"0.4130614",
"0.41249192",
"0.4115089",
"0.41133365",
"0.40983924",
"0.40983415",
"0.40973583",
"0.40964648",
"0.4092105",
"0.40812406",
"0.4071246",
"0.40629467",
"0.40441445",
"0.40415084",
"0.40415084",
"0.4013176",
"0.40099674",
"0.40096083",
"0.40083137",
"0.40003398"
] |
0.73526686
|
0
|
Gets the reclamationLevel value for this TradeHistoryEntryVo.
|
public java.lang.Integer getReclamationLevel() {
return reclamationLevel;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setReclamationLevel(java.lang.Integer reclamationLevel) {\n this.reclamationLevel = reclamationLevel;\n }",
"public tech.hry.logclient.grpc.LogLevel getLevel() {\n @SuppressWarnings(\"deprecation\")\n tech.hry.logclient.grpc.LogLevel result = tech.hry.logclient.grpc.LogLevel.valueOf(level_);\n return result == null ? tech.hry.logclient.grpc.LogLevel.UNRECOGNIZED : result;\n }",
"public tech.hry.logclient.grpc.LogLevel getLevel() {\n @SuppressWarnings(\"deprecation\")\n tech.hry.logclient.grpc.LogLevel result = tech.hry.logclient.grpc.LogLevel.valueOf(level_);\n return result == null ? tech.hry.logclient.grpc.LogLevel.UNRECOGNIZED : result;\n }",
"public String reliabilityLevel() {\n return this.reliabilityLevel;\n }",
"public int getLevel()\r\n {\r\n return r_level;\r\n }",
"public Long getLevel() {\r\n return (Long) getAttributeInternal(LEVEL);\r\n }",
"public Integer geteLevel() {\n return eLevel;\n }",
"public Level getEntryLevel() {\r\n\t\treturn entryLevel;\r\n\t}",
"public String getEntryLevel() {\n\t\treturn entryLevel;\n\t}",
"public Double getLoRoSurroundMixLevel() {\n return this.loRoSurroundMixLevel;\n }",
"public double getLevel() {\n\t\treturn level;\n\t}",
"public Level getLevel() {\n\t\treturn this.level;\n\t}",
"public Integer getLevel() {\n return level;\n }",
"public Integer getLevel() {\n return level;\n }",
"public Integer getLevel() {\n return level;\n }",
"public Integer getLevel() {\n return level;\n }",
"public Integer getLevel() {\n return level;\n }",
"@java.lang.Override\n public double getLevel() {\n return level_;\n }",
"@java.lang.Override\n public double getLevel() {\n return level_;\n }",
"public Level getLevel() {\n\t\treturn myLevel;\n\t}",
"public Double getLoRoCenterMixLevel() {\n return this.loRoCenterMixLevel;\n }",
"public Level getLevel() {\r\n\t\treturn level;\r\n\t}",
"public final String getLevel() {\n return this.level;\n }",
"public String getLevel() {\n\t\treturn level;\n\t}",
"public int getLevelNo() {\n return levelNo;\n }",
"@java.lang.Override\n public double getLevel() {\n return level_;\n }",
"@java.lang.Override\n public double getLevel() {\n return level_;\n }",
"public java.lang.String getVersionLevel() {\r\n return versionLevel;\r\n }",
"public String getLevel() {\n return level;\n }",
"public String getLevel() {\n return this.level;\n }",
"public int getHungerLevel() {\n\t\treturn this.hungerCounter;\n\t}",
"public PowerLevel getLevel() {\n return level;\n }",
"public String getLevel() {\n return level;\n }",
"public String getLevel() {\n return level;\n }",
"public String getLevel() {\n return level;\n }",
"public String getLevel() {\n return level;\n }",
"public String getLevel() {\n return level;\n }",
"public String getLevel() {\n return level;\n }",
"public String getLevel()\n {\n return gameLevel;\n }",
"private int getSoundLevelToRestore() {\n int savedSoundLevel = originalVolumes != null ? originalVolumes.getRingVolume() : -1;\n\n //if it was 0 -> was in vibrate no need to restore to user level.\n if (savedSoundLevel > 0 ) {\n if (mIsRestoreVolToUserSetLevelEnabled) {\n return userSetVolumeLevelToRestore;\n }\n } else {\n //если громкость 0 а режим нормальный - что-то не так\n if (originalVolumes != null && originalVolumes.getRingMode() == RingMode.RINGER_MODE_NORMAL) {\n return 1;\n }\n }\n return savedSoundLevel;\n }",
"public String getLevel()\n {\n return level;\n }",
"public BigDecimal getHistoryRebate() {\n return historyRebate;\n }",
"public Level level() {\n return level;\n }",
"public Integer getUserLevel() {\n return userLevel;\n }",
"public int getLevel() {\n\t\treturn this.level;\n\t}",
"public @Int8 byte getAudioReferenceLevel()\r\n\t\tthrows PropertyNotPresentException;",
"public static LogLevel getLevel(){\n return EZLoggerManager.lvl;\n }",
"public int getSummonerLevel()\n {\n return this.summonerLevel;\n }",
"public String getLevel(){\n\t\treturn level;\n\t}",
"public int getRepel()\n\t{\n\t\treturn m_repel;\n\t}",
"public double Getlevel()\r\n {\r\n return level;\r\n }",
"public int getLevel() {\n\t\treturn level;\r\n\t}",
"public int getLevel() {\n\t\treturn level;\n\t}",
"public int getLevel() {\n\t\treturn level;\n\t}",
"public int getLevel() {\n\t\treturn level;\n\t}",
"public int getLevel() {\n \treturn this.level;\n }",
"public int getLevel()\n {\n return m_nLevel;\n }",
"public int getLevel() {\n return level_;\n }",
"public int getLevel() {\n return level_;\n }",
"public int getLevel() {\n return level_;\n }",
"public int getLevel() {\n return level_;\n }",
"public int getLevel() {\n return this.level;\n }",
"public double getReell() {\n\t\treturn reell;\n\t}",
"public int getLevel()\n {\n return m_level;\n }",
"public int getLevel() {\r\n\t\treturn level;\r\n\t}",
"public int getLevel() {\r\n\t\treturn level;\r\n\t}",
"public String getLevel() {\n return getAttribute(ATTRIBUTE_LEVEL);\n }",
"public int getLevel() {\n return level_;\n }",
"public int getLevel() {\n return level_;\n }",
"POGOProtos.Rpc.RaidLevel getRaidLevel();",
"public Double getLtRtCenterMixLevel() {\n return this.ltRtCenterMixLevel;\n }",
"public int getLevel() {\n return level;\n }",
"public int getLevel() {\n return level;\n }",
"public int getLevel() {\n return level;\n }",
"public int getLevel() {\n return level;\n }",
"public int getLevel() {\n return level;\n }",
"public int getLevel() {\n return level;\n }",
"public int getLevel() {\n return level;\n }",
"public int getLevel() {\n return level;\n }",
"public int getLevel() {\n return level;\n }",
"public int getLevel() {\n return level;\n }",
"int getLevel()\n\t{\n\t\treturn this.level;\n\t}",
"public Double getLtRtSurroundMixLevel() {\n return this.ltRtSurroundMixLevel;\n }",
"@Override\r\n\tpublic double getRollRightHand() {\n\t\treturn rechtRoll;\r\n\t}",
"public Level level() {\n\treturn level;\n }",
"public int getLevel() {\r\n return level;\r\n }",
"public int getLevel() {\n return eliteMobLevel;\n }",
"public int getLevel() {\n \t\treturn level;\n \t}",
"public String getLevelId() {\n return levelId;\n }",
"public int getLevel()\n {\n return level;\n }",
"public int getSafeLevel() {\n return this.safeLevel;\n }",
"@Override\n\tpublic Level getLevel() {\n\t\treturn null;\n\t}",
"public int getLevel(){\n\t\treturn this.level;\n\t}",
"public int getLevel() {\n return level_;\n }",
"public int getLevel() {\n return level_;\n }",
"public Integer getLevelId() {\n return levelId;\n }",
"public int getLevel ( ) {\n\t\treturn extract ( handle -> handle.getLevel ( ) );\n\t}",
"public int getLevel()\r\n {\r\n return level;\r\n }",
"public int getLevel(){\n\t\treturn level;\n\t}",
"public String getLevelName() {\n return levelName;\n }"
] |
[
"0.5659319",
"0.5617537",
"0.5585847",
"0.5493106",
"0.5451754",
"0.53729147",
"0.53635556",
"0.5269222",
"0.5256181",
"0.52447087",
"0.5228321",
"0.5179169",
"0.51709354",
"0.51709354",
"0.51709354",
"0.51709354",
"0.51709354",
"0.5159387",
"0.5159387",
"0.5157653",
"0.5156962",
"0.5143082",
"0.5139881",
"0.51389503",
"0.51272184",
"0.5126652",
"0.5126652",
"0.5117946",
"0.51174563",
"0.5110631",
"0.5099095",
"0.50957805",
"0.50913435",
"0.50913435",
"0.50913435",
"0.50913435",
"0.50913435",
"0.50825095",
"0.50783634",
"0.50756025",
"0.5074139",
"0.50499624",
"0.5044237",
"0.5038347",
"0.5036492",
"0.50351655",
"0.5029602",
"0.50279105",
"0.50012195",
"0.49996656",
"0.49952114",
"0.49947816",
"0.49945265",
"0.49945265",
"0.49945265",
"0.49863523",
"0.49663666",
"0.4962448",
"0.4962448",
"0.4962448",
"0.4962448",
"0.49599743",
"0.49576843",
"0.49566966",
"0.49546725",
"0.49546725",
"0.49469712",
"0.4931229",
"0.4931229",
"0.49306312",
"0.49170747",
"0.49166328",
"0.49166328",
"0.49166328",
"0.49166328",
"0.49166328",
"0.49166328",
"0.49166328",
"0.49166328",
"0.49166328",
"0.49166328",
"0.48898932",
"0.48883143",
"0.4886339",
"0.4885029",
"0.4880539",
"0.48775133",
"0.48724204",
"0.48718512",
"0.48685858",
"0.48678368",
"0.48666036",
"0.48635244",
"0.48579293",
"0.48579293",
"0.48548692",
"0.48539078",
"0.48482662",
"0.48208085",
"0.48197743"
] |
0.74645907
|
0
|
Sets the reclamationLevel value for this TradeHistoryEntryVo.
|
public void setReclamationLevel(java.lang.Integer reclamationLevel) {
this.reclamationLevel = reclamationLevel;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public java.lang.Integer getReclamationLevel() {\n return reclamationLevel;\n }",
"public void setLineVolume(int level) {\n if (level >= 0 && level <= 100) {\n int checkSum = 0x07 ^ 0x01 ^ 0x00 ^ 0x44 ^ 0x00 ^ level;\n String hexLevel = Integer.toHexString(level);\n if (hexLevel.length() == 1) {\n hexLevel = \"0\" + hexLevel;\n }\n String hexCheckSum = Integer.toHexString(checkSum);\n if (hexCheckSum.length() == 1) {\n hexCheckSum = \"0\" + hexCheckSum;\n }\n sendHexCommand(\"07 01 00 44 00 \" + hexLevel + \" \"\n + hexCheckSum, 20);\n lastVolumeChange = System.currentTimeMillis();\n }\n }",
"public void setRaresavestackLevel(int raresavestackLevel) {\n this.raresavestackLevel = raresavestackLevel;\n }",
"public void setLevel(String level) {\n this.level = level == null ? null : level.trim();\n }",
"public void setLevel(String level) {\n this.level = level == null ? null : level.trim();\n }",
"public void setLevel(String level) {\n this.level = level == null ? null : level.trim();\n }",
"public void setLevel(String level) {\n this.level = level == null ? null : level.trim();\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 setEntryLevel(Level entryLevel) {\r\n\t\tthis.entryLevel = entryLevel;\r\n\t}",
"public void setLevel(int level) {\n if (level < 1)\n throw new IllegalArgumentException(\"Cannot be a level less than 0\");\n\n this.level = level;\n }",
"public void setLevel(Level level) {\n\t\tthis.level = level;\n\t}",
"public void setSafeLevel(int safeLevel) {\n this.safeLevel = safeLevel;\n }",
"public void setLevel(Level level) {\r\n\t\tthis.level = level;\r\n\t}",
"public void setAudioReferenceLevel(\r\n\t\t\t@Int8 Byte level);",
"public void setLevel(String newLevel) {\n level = newLevel;\n }",
"public final void setLevel(final int level) {\n\t\tthis.level = level;\n\t}",
"public void setLevel(int level) {\r\n\t\tthis.level = Math.max(0, level);\r\n\t}",
"public void setVolume(int level) {\n if(level >= 0 && level <= 100) {\n int checkSum = 0x07^0x01^0x00^0x44^level^level; \n String hexLevel = Integer.toHexString(level);\n if(hexLevel.length() == 1)\n hexLevel = \"0\" + hexLevel;\n String hexCheckSum = Integer.toHexString(checkSum);\n if(hexCheckSum.length() == 1)\n hexCheckSum = \"0\" + hexCheckSum;\n sendHexCommand(\"07 01 00 44 \" + hexLevel + \" \" + hexLevel + \" \"+\n hexCheckSum, 20);\n lastVolumeChange = System.currentTimeMillis();\n }\n }",
"public void setLevel(int level) {\n\t\tthis.level = level;\t\n\t}",
"public static void setLevel(Level level) {\r\n\t\tGameplay.getInstance().setLevel(level);\r\n\t}",
"public void setLevel(final String level) {\n setAttribute(ATTRIBUTE_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(String level){\n\t\tthis.level = level;\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 ( int level ) {\n\t\texecute ( handle -> handle.setLevel ( level ) );\n\t}",
"public void setLevel(int level) {\n this.level = level;\n }",
"public void setLevel(int level) {\n this.level = level;\n }",
"public void setLevel(int level){\n\t\tthis.level = level;\n\t}",
"public void setLevel(int v)\n {\n m_level = v;\n }",
"public void setLevel(int level) {\n \t\tthis.level = level;\n \t}",
"public void setLevel(int level)\r\n {\r\n\tthis.level = level;\r\n }",
"public void setLevel(int newlevel)\n {\n level = newlevel; \n }",
"public void setVersionLevel(java.lang.String versionLevel) {\r\n this.versionLevel = versionLevel;\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 }",
"protected void setLevel(int level)\n {\n this.level = level;\n }",
"public void setLevel(int level) {\r\n\t\t\r\n\t\tthis.level = level;\r\n\t\t\r\n\t}",
"public void setLevel(String level);",
"public Builder corruptionLevel(double corruptionLevel) {\n this.setCorruptionLevel(corruptionLevel);\n return this;\n }",
"public void setLevel(String lev) {\n\t\tlevel = lev;\n\t}",
"public void setLevel(int level) { \r\n\t\tthis.level = level; \r\n\t}",
"protected void setLevel(int level){\r\n this.level = level;\r\n }",
"public void setLoRoCenterMixLevel(Double loRoCenterMixLevel) {\n this.loRoCenterMixLevel = loRoCenterMixLevel;\n }",
"public void seteLevel(Integer eLevel) {\n this.eLevel = eLevel;\n }",
"@Override\n public void setLevel(int level) {\n if (level > 1) {\n this.level = level;\n scaleUp();\n percentageScaling();\n }\n }",
"@Override\n public LevelType type(final float level, final float priceAsOfDate,\n final float rangePct) {\n \treturn RESISTANCE;\n }",
"private synchronized static void setLevelSync(final Logger.LEVEL desiredLevel) {\n if (null == desiredLevel) {\n return;\n }\n level = desiredLevel;\n if (null != context) {\n SharedPreferences prefs = context.getSharedPreferences (SHARED_PREF_KEY, Context.MODE_PRIVATE);\n prefs.edit ().putString (SHARED_PREF_KEY_level, level.toString ()).commit();\n // we still processed the setCapture call, but when SHARED_PREF_KEY_level_from_server is present, it is used for the level field value (it's an override)\n level = Logger.LEVEL.fromString(prefs.getString(SHARED_PREF_KEY_level_from_server, level.toString()));\n }\n }",
"public void setLevel (String newLevel)\n {\n this.level = newLevel; \n }",
"public void setRecitationScore(double recitationScore) {\r\n if (recitationScore <= 1 && recitationScore >= 0) {\r\n this.recitationScore = recitationScore;\r\n }\r\n }",
"public void setWinLevel(boolean winLevel)\n\t{\n\t\tthis.winLevel = winLevel;\n\t}",
"private void setLevel(int level) {\n setStat(level, currentLevel);\n }",
"public static void setLogLevel(int level) {\n mLogLevel = level;\n }",
"public void setRuler(Player ruler) {\r\n\t\tthis.ruler = ruler;\r\n\t}",
"public void setCurrentLevel(Level level){\r\n currentLevel = level;\r\n currentLevel.setObserver(this);\r\n }",
"public void reset(int level)\n {\n loadLevel(level);\n Rover.getRover().reset();\n }",
"public void setPowerRank(int powerRank) {\r\n this.powerRank = powerRank;\r\n }",
"public void setLevel(Level level) { this.currentLevel = level; }",
"public void setLevel(Level mLevel) {\n this.level = mLevel;\n level.increaseChamberCount();\n }",
"public void setLoRoSurroundMixLevel(Double loRoSurroundMixLevel) {\n this.loRoSurroundMixLevel = loRoSurroundMixLevel;\n }",
"public void setVolume(int level);",
"public void setReclamationClosed(java.lang.Boolean reclamationClosed) {\n this.reclamationClosed = reclamationClosed;\n }",
"@Override\r\n\tpublic void Suprremier_rec(reclamation rec) {\n\t\t\r\n\t\treclamations.remove(rec);\r\n\r\n\t}",
"public void setFrogLevel(int level){\n\t\tthis.frogLevel = level;\n\t}",
"public void setLevel(int level) {\n filename = evaluate(getLat(), getLon(), level);\n }",
"public void setHosucr(Float hosucr) {\r\n this.hosucr = hosucr;\r\n }",
"public synchronized void setLevel(final Level level) {\n if (level == getLevel()) {\n return;\n }\n Level actualLevel;\n if (level != null) {\n actualLevel = level;\n } else {\n final Logger parent = getParent();\n actualLevel = parent != null ? parent.getLevel() : privateConfig.loggerConfigLevel;\n }\n privateConfig = new PrivateConfig(privateConfig, actualLevel);\n }",
"public void setMapLevel(String maptyp, int level) {\n\t\tprefs.putInt(title + \".\" + maptyp, level);\n\t}",
"public void set_log_level(int level) {\r\n logLevel = Math.max(0,level);\r\n }",
"public void setResearchlevel(String researchlevel) {\r\n\t\tthis.researchlevel = researchlevel;\r\n\t}",
"private void setLevel(int level){\r\n\t\tswitch(level){\r\n\t\t\tcase Game.LEVEL_ONE:\r\n\t\t\tcase Game.LEVEL_TWO:\r\n\t\t\tcase Game.LEVEL_THREE:\r\n\t\t\t\tthis.level = level;\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tSystem.err.println(\"Improper level input, use 'Game.LEVEL_#' to accurately input a level into this method\");\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t}",
"public void setScalePosition(int level) throws RemoteException, IllegalParamException {\n io.scaleRMI(number, level);\n }",
"public void setLevel(int slot, int level, boolean update) {\r\n if (slot == HITPOINTS) {\r\n lifepoints = level;\r\n } else if (slot == PRAYER) {\r\n prayerPoints = level;\r\n }\r\n dynamicLevels[slot] = level;\r\n if (restoration[slot] != null) {\r\n int ticks = 100;\r\n if (entity instanceof Player) {\r\n if (((Player) entity).getPrayer().get(PrayerType.BERSERKER)) {\r\n ticks = 75;\r\n }\r\n }\r\n restoration[slot].restart(ticks);\r\n }\r\n if (entity instanceof Player && update) {\r\n PacketRepository.send(SkillLevel.class, new SkillContext((Player) entity, slot));\r\n }\r\n }",
"public void setLevel(Level level) throws SQLException\r\n\t{\r\n\t\tif (level == null)\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tString SQL_USER = \"UPDATE user SET level =? WHERE id=?;\";\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\t//Prepare the statement\r\n\t\t\tPreparedStatement statement = this.getConn().prepareStatement(SQL_USER);\r\n\r\n\t\t\t//Bind the variables\r\n\t\t\tstatement.setString(1, level.name());\r\n\t\t\tstatement.setInt(2, userId);\r\n\r\n\t\t\t//Execute the update\r\n\t\t\tstatement.executeUpdate();\r\n\r\n\t\t} catch (SQLException e)\r\n\t\t{\r\n\t\t\tGWT.log(\"Error in SQL: Student->setLevel(Level \"+ level.name() + \")\", e);\r\n\t\t\tthis.getConn().rollback();\r\n\t\t\tthrow e;\t\r\n\t\t}\r\n\t\t\r\n\t\t//commit change\r\n\t\tDatabase.get().commit();\r\n\t}",
"public void setThreshold(String level) {\n\t\tthis.hierarchy.setThreshold(level);\n\t}",
"public abstract void setForceLevel(int level);",
"public ClusterInner withReliabilityLevel(String reliabilityLevel) {\n this.reliabilityLevel = reliabilityLevel;\n return this;\n }",
"public void setDetectionLevel(int detectionLevel)\n\t{\n\t\tthis._detectionLevel = detectionLevel;\n\t}",
"public void setMlLevel(String mlLevel) {\r\n this.mlLevel = mlLevel == null ? null : mlLevel.trim();\r\n }",
"public void setR( double radius ) {\n if ( radius < -100 ) {\n throw new IllegalArgumentException(\"ERROR: \" + radius + \" is too small for [\" + getType() +\"]\");\n }\n if ( radius > 100 ) {\n throw new IllegalArgumentException(\"ERROR: \" + radius + \" is too large for [\" + getType() +\"]\");\n }\n this.r = radius;\n }",
"public void setLevel(String value) {\n this.level = value;\n }",
"public Volume raidLevel(RaidLevelEnum raidLevel) {\n this.raidLevel = raidLevel;\n return this;\n }",
"public reclamation traiter(reclamation rec) {\n\t\t\n\t\treturn reclamationRepository.save(rec);\n\n\t}",
"public void setLogLevel(int level) {\n\t\t// only change if a valid level\n\t\tif (isValidLogLevel(level)) this.logLevel = level;\n\t}",
"public static void setLevel(int level){\n\tlogLevel = level;\n }",
"public void setConfidenceLevel (double confidenceLevel)\n {\n this.confidenceLevel = confidenceLevel;\n \n }",
"Log set(Level level) {\n\tthis.logging = level.compareTo(this.level) >= 0;\n\treturn this;\n }",
"public void setReclamationCloseComment(java.lang.String reclamationCloseComment) {\n this.reclamationCloseComment = reclamationCloseComment;\n }",
"public void setLogLevel(int level) {\n logLevel = level;\n }",
"public void Setlevels(int lvl)\r\n {\r\n level = lvl;\r\n }",
"public void setInspectionLevel(String inspectionLevel) {\n this.inspectionLevel = inspectionLevel;\n }",
"public void setMlevel(Integer mlevel) {\n this.mlevel = mlevel;\n }",
"public void setUserLevel(Integer userLevel) {\n this.userLevel = userLevel;\n }",
"public void setLtRtCenterMixLevel(Double ltRtCenterMixLevel) {\n this.ltRtCenterMixLevel = ltRtCenterMixLevel;\n }",
"public void setElmLevel(short elmLevel) {\r\n this.elmLevel = elmLevel;\r\n }",
"void remove(int level) {\n if (containsKey(level)) {\n set(level, null);\n }\n }"
] |
[
"0.59107673",
"0.4911896",
"0.48809367",
"0.4609308",
"0.4609308",
"0.4609308",
"0.4609308",
"0.45928025",
"0.45928025",
"0.45928025",
"0.45928025",
"0.45928025",
"0.4566454",
"0.45580488",
"0.45416278",
"0.45362377",
"0.4532198",
"0.45261857",
"0.45214972",
"0.45183888",
"0.45088428",
"0.44988486",
"0.44987655",
"0.44929808",
"0.44920802",
"0.44848308",
"0.44848308",
"0.4481454",
"0.447633",
"0.447633",
"0.4475822",
"0.44725356",
"0.44725356",
"0.44583994",
"0.44574815",
"0.4449822",
"0.44470054",
"0.4445011",
"0.44349384",
"0.4433944",
"0.44163907",
"0.44162986",
"0.4414474",
"0.4412912",
"0.44069895",
"0.44058236",
"0.43881246",
"0.43801868",
"0.43798947",
"0.4379309",
"0.4365631",
"0.43420774",
"0.4338814",
"0.4312194",
"0.42821974",
"0.42756286",
"0.42532003",
"0.42302644",
"0.422046",
"0.42004046",
"0.41896436",
"0.41846192",
"0.41799298",
"0.4165857",
"0.41388714",
"0.41267768",
"0.41181526",
"0.4112956",
"0.41120496",
"0.41069236",
"0.41050068",
"0.41022933",
"0.41001752",
"0.4098792",
"0.40945283",
"0.4086535",
"0.40786296",
"0.40681085",
"0.4064781",
"0.40602744",
"0.40581816",
"0.405779",
"0.40569127",
"0.40486822",
"0.40459597",
"0.40357667",
"0.40342027",
"0.40277636",
"0.40239057",
"0.40203255",
"0.40180162",
"0.39965943",
"0.3995214",
"0.39824945",
"0.39773867",
"0.3973138",
"0.39637026",
"0.39586547",
"0.39562815",
"0.3950001"
] |
0.7329302
|
0
|
Gets the stateCode value for this TradeHistoryEntryVo.
|
public java.lang.String getStateCode() {
return stateCode;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public java.lang.String getStateCode() {\n\t\treturn _dmHistoryMaritime.getStateCode();\n\t}",
"@Override\n\tpublic java.lang.String getStateCode() {\n\t\treturn _state.getStateCode();\n\t}",
"public String getStateCode() {\n return (String)getAttributeInternal(STATECODE);\n }",
"public String getAccountStateCode() {\n return accountStateCode;\n }",
"public java.lang.String getStateCode() {\n\t\treturn _tempNoTiceShipMessage.getStateCode();\n\t}",
"public int getState() {\n return this.state.ordinal();\n }",
"public String getStateReasonCode() {\n return this.stateReasonCode;\n }",
"@java.lang.Override public int getStateValue() {\n return state_;\n }",
"@java.lang.Override public int getStateValue() {\n return state_;\n }",
"public int getState() {\n return state.getValue();\n }",
"public int getState() {\n return state_;\n }",
"public int getState() {\n return state_;\n }",
"public int getState() {\n return state_;\n }",
"public int getState() {\n return state_;\n }",
"public int getState() {\n return state_;\n }",
"public int getState() {\n return this.mState;\n }",
"public String getStateId() {\n return stateId;\n }",
"public int getState() {\n return state_;\n }",
"public int getState() {\n return state_;\n }",
"public int getState() {\n return state_;\n }",
"public int getState() {\n return state_;\n }",
"public int getState() {\n return state_;\n }",
"public int getState() {\n\t\treturn state;\n\t}",
"public int getState() {\n return state;\n }",
"public int getState() {\n return state;\n }",
"@java.lang.Override\n public int getStateValue() {\n return state_;\n }",
"@java.lang.Override\n public int getStateValue() {\n return state_;\n }",
"@java.lang.Override\n public int getStateValue() {\n return state_;\n }",
"public int getState() {\n return mState;\n }",
"public String getStateCd() {\n\t\treturn stateCd;\n\t}",
"public int getState() {\n return state;\n }",
"public int getStateNum() {\r\n\t\treturn this.stateNum;\r\n\t}",
"public Integer getState() {\n return state;\n }",
"public Integer getState() {\n return state;\n }",
"public Integer getState() {\n return state;\n }",
"public Integer getState() {\n return state;\n }",
"public Integer getState() {\n return state;\n }",
"public Integer getState() {\n return state;\n }",
"public Integer getState() {\r\n return state;\r\n }",
"public Integer getState() {\r\n return state;\r\n }",
"public int getState()\n {\n return m_state.getState();\n }",
"@java.lang.Override\n public int getStateValue() {\n return state_;\n }",
"@java.lang.Override\n public int getStateValue() {\n return state_;\n }",
"@java.lang.Override\n public int getStateValue() {\n return state_;\n }",
"public int getState(){\n\t\treturn state;\n\t}",
"public int getState() {\r\n\t\treturn dState;\r\n\t}",
"public org.apache.axis.types.UnsignedInt getState() {\n return state;\n }",
"public int getState() {\n return _state;\n }",
"@Override\n\tpublic long getStateId() {\n\t\treturn _state.getStateId();\n\t}",
"public Long getState() {\n return state;\n }",
"public int getState() {\n \t\treturn state;\n \t}",
"public int getState() {\n return m_state;\n }",
"public String getState() {\r\n\t\treturn state;\r\n\t}",
"public String getState() {\r\n\t\treturn state;\r\n\t}",
"public String getState() {\r\n\t\treturn state;\r\n\t}",
"public String getState() {\n return state;\n }",
"public String getState() {\n return state;\n }",
"public String getState() {\n return state;\n }",
"public String getState() {\n return state;\n }",
"public String getState() {\n return state;\n }",
"public String getState() {\n return state;\n }",
"public String getState() {\n return state;\n }",
"public String getState() {\n return state;\n }",
"public String getState() {\n return state;\n }",
"public String getState() {\n return state;\n }",
"public String getState() {\n return state;\n }",
"public String getState() {\n return state;\n }",
"public String getState() {\n return state;\n }",
"public String getState() {\n return this.state;\n }",
"public String getState() {\n return this.state;\n }",
"public String getState() {\n return this.state;\n }",
"public String getState() {\n return this.state;\n }",
"public String getState()\r\n\t{\r\n\t\treturn state;\r\n\t}",
"public String getState()\r\n\t{\r\n\t\treturn state;\r\n\t}",
"public String getState() {\n\t\treturn state;\n\t}",
"public Integer getaState() {\n return aState;\n }",
"public String getState() {\n return state;\n }",
"public String getState() \n\t{\n\t\treturn state;\n\t}",
"public String getState()\n\t{\n\t\treturn state;\n\t}",
"public String getState() {\n return this.state;\n }",
"public String getState() {\n return this.state;\n }",
"public String getState() {\n\t\treturn state.toString();\n\t}",
"public int getTransactionStateValue(int index) {\n return transactionState_.get(index);\n }",
"public int getState(){\n return state;\n }",
"public String getState() {\n return this.State;\n }",
"public String getState() {\r\n\t\treturn state;\t\t\r\n\t}",
"@java.lang.Override\n public int getTransactionStateValue(int index) {\n return transactionState_.get(index);\n }",
"public int getState() {return state;}",
"public int getState() {return state;}",
"public synchronized int getState() {\n return mState;\n }",
"public synchronized int getState() {\n return mState;\n }",
"public BizCodeEnum getCode() {\n return code;\n }",
"public java.lang.String getState() {\n return state;\n }",
"public java.lang.String getState() {\n return state;\n }",
"public String state() {\n return this.state;\n }",
"public String state() {\n return this.state;\n }",
"public int hashCode() {\n return state.hashCode();\n }",
"public int getState();",
"public int getState();",
"public int getState();"
] |
[
"0.693833",
"0.6776298",
"0.6598768",
"0.64300084",
"0.64060646",
"0.6179523",
"0.6124814",
"0.60432714",
"0.596196",
"0.59616625",
"0.59421176",
"0.5940919",
"0.5940919",
"0.5940919",
"0.5940919",
"0.5910238",
"0.5838052",
"0.5826951",
"0.5826951",
"0.5826951",
"0.5826951",
"0.5826951",
"0.5824366",
"0.5814834",
"0.5814834",
"0.5804877",
"0.5804877",
"0.5804877",
"0.5794887",
"0.5765485",
"0.57647914",
"0.57568246",
"0.57429343",
"0.57429343",
"0.57429343",
"0.57429343",
"0.57429343",
"0.57429343",
"0.57340705",
"0.57340705",
"0.5732556",
"0.57232773",
"0.57232773",
"0.57232773",
"0.5704452",
"0.56931543",
"0.5670649",
"0.56664044",
"0.5626379",
"0.56150323",
"0.56133145",
"0.5607283",
"0.559817",
"0.559817",
"0.559817",
"0.55876344",
"0.55876344",
"0.55876344",
"0.55876344",
"0.55876344",
"0.55876344",
"0.55876344",
"0.55876344",
"0.55876344",
"0.55876344",
"0.55876344",
"0.55876344",
"0.55876344",
"0.5585679",
"0.5585679",
"0.5585679",
"0.5585679",
"0.55769885",
"0.55769885",
"0.5550535",
"0.5518594",
"0.5518471",
"0.5518391",
"0.5516968",
"0.5514633",
"0.5514633",
"0.55040497",
"0.54786885",
"0.54630196",
"0.54597044",
"0.54488313",
"0.54406726",
"0.5425618",
"0.5425618",
"0.54210466",
"0.54210466",
"0.5403328",
"0.53944665",
"0.53944665",
"0.5390144",
"0.5390144",
"0.538434",
"0.5378583",
"0.5378583",
"0.5378583"
] |
0.6965683
|
0
|
Sets the stateCode value for this TradeHistoryEntryVo.
|
public void setStateCode(java.lang.String stateCode) {
this.stateCode = stateCode;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setStateCode(java.lang.String stateCode) {\n\t\t_dmHistoryMaritime.setStateCode(stateCode);\n\t}",
"@Override\n\tpublic void setStateCode(java.lang.String stateCode) {\n\t\t_state.setStateCode(stateCode);\n\t}",
"public void setStateCode(java.lang.String stateCode) {\n\t\t_tempNoTiceShipMessage.setStateCode(stateCode);\n\t}",
"public void setAccountStateCode(String accountStateCode) {\n this.accountStateCode = accountStateCode;\n }",
"public void setStateCode(String value) {\n setAttributeInternal(STATECODE, value);\n }",
"public void setStateReasonCode(String stateReasonCode) {\n this.stateReasonCode = stateReasonCode;\n }",
"public static void SetState (int state) {\n\t\t source = state;\n\t\t}",
"public void setState(int state) {\n\t\t\tmState = state;\n\t\t}",
"public void setTradeCode(String value) {\n this.tradeCode = value;\n }",
"public Builder setTradeCode(String value) {\n validate(fields()[6], value);\n this.tradeCode = value;\n fieldSetFlags()[6] = true;\n return this; \n }",
"public void setCode(BizCodeEnum code) {\n this.code = code;\n }",
"public void SetState(int s) {\n this.state=LS[s];\n }",
"public void setState(int state) {\n m_state = state;\n }",
"public void set_state(String state) throws Exception{\n\t\tthis.state = state;\n\t}",
"public void setCode(final int code) {\n this.code = code;\n commited = true;\n }",
"public void setState(PlayerState state) {\n this.state = state;\n }",
"public void setState(org.apache.axis.types.UnsignedInt state) {\n this.state = state;\n }",
"public void setState(int state) {\n \t\tthis.state = state;\n \t}",
"public void setState(String state) {\n this.state = state;\n }",
"public void setState(String state) {\n this.state = state;\n }",
"public void setState(String state) {\n this.state = state;\n }",
"public void setState(String state) {\n this.state = state;\n }",
"public void setState(String state) {\n this.state = state;\n }",
"public void setState(String state) {\n this.state = state;\n }",
"public void setState(String state) {\n this.state = state;\n }",
"public void setState(String state) {\n this.state = state;\n }",
"public void setState(String state) {\r\n\t\tthis.state = state;\r\n\t}",
"public void setState(String state) {\r\n\t\tthis.state = state;\r\n\t}",
"public void setState(String state) {\n this.state = state;\n }",
"public void setState(String state) {\n this.state = state;\n }",
"public void setCode(int code) {\n this.code = code;\n }",
"public void setCode(int code) {\n this.code = code;\n }",
"public void setCode(Code code) {\n this.Code = code;\n }",
"public void setState(String state)\r\n\t{\r\n\t\tthis.state = state;\r\n\t}",
"public void setaState(Integer aState) {\n this.aState = aState;\n }",
"public void setState(String state){\n this.state = state;\n }",
"public void setState(Integer state) {\n this.state = state;\n }",
"public void setState(Integer state) {\n this.state = state;\n }",
"public void setState(Integer state) {\n this.state = state;\n }",
"public void setState(Integer state) {\n this.state = state;\n }",
"public void setState(Integer state) {\n this.state = state;\n }",
"public void setState(Integer state) {\n this.state = state;\n }",
"public void setState(String state) {\n\t\tthis.state = state;\n\t}",
"public void setState(String state) {\n\t\tthis.state = state;\n\t}",
"public void setState(com.trg.fms.api.TripState value) {\n this.state = value;\n }",
"public void setState(Integer state) {\r\n this.state = state;\r\n }",
"public void setState(Integer state) {\r\n this.state = state;\r\n }",
"public void setState(int state) {\n\t\tif (state == CHASE)\n\t\t\tthis.state = CHASE;\n\t\telse if (state == RUN) \n\t\t\tthis.state = RUN;\n\t}",
"public void setState(String state)\n\t{\n\t\tState = state;\n\t}",
"public void setState(Integer state) {\n\t\tthis.state = state;\n\t}",
"public void setState(String state)\n\t{\n\t\tthis.state = state; \n\t}",
"public void setState(String state)\r\n\t{\r\n\t\tthis.state=state;\r\n\t}",
"private void setState( int state )\n {\n m_state.setState( state );\n }",
"protected void setCode(@Code int code) {\n\t\tthis.mCode = code;\n\t}",
"public void setState(java.lang.String state) {\n this.state = state;\n }",
"public void setState(java.lang.String state) {\n this.state = state;\n }",
"public void setState(State state) {\n this.state = state;\n }",
"public void setState(State state) {\n this.state = state;\n }",
"public void setState(State state) {\n this.state = state;\n this.statesHistory.add(state.getStateName());\n }",
"public void setState(State state) {\n\t\tthis.state = state;\n\t}",
"public void setStateId(String stateId) {\n this.stateId = stateId;\n }",
"public void setSteetState(String steetState) {\r\n\t\tthis.steetState = steetState;\r\n\t}",
"public void setState(java.lang.String state) {\r\n this.state = state;\r\n }",
"public void setState(int state);",
"public void setState(int state);",
"public java.lang.String getStateCode() {\n return stateCode;\n }",
"public void setState(Byte state) {\n this.state = state;\n }",
"public void setState(Byte state) {\n this.state = state;\n }",
"public void setState(@NotNull State state) {\n this.state = state;\n }",
"public void setState (java.lang.String state) {\n\t\tthis.state = state;\n\t}",
"public void setLogCode ( final TransactionType logCode ) {\n this.logCode = logCode;\n }",
"public void setCode (String code) {\r\n\t\tthis.code = code;\r\n\t}",
"public void setStsCode(String stsCode) {\n this.stsCode = stsCode;\n }",
"public void setState(String state);",
"public void setOfferStateCodes(Collection<String> offerStateCodes) {\n this.offerStateCodes = offerStateCodes;\n }",
"public void setState(org.landxml.schema.landXML11.StateType.Enum state)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(STATE$14);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(STATE$14);\r\n }\r\n target.setEnumValue(state);\r\n }\r\n }",
"public void setCode(Integer code) {\n this.code = code;\n }",
"public void setEventCode(int eventCode) {\n this.eventCode = eventCode;\n }",
"public void setCode(String code)\n {\n this.code = code;\n }",
"public void setState(final State state);",
"@Override\n public void setState(int state) {\n synchronized(LOCK_STATE) {\n this.state = state;\n }\n }",
"public void setCode(String code) {\r\n\t\tthis.code = code;\r\n\t}",
"public void setCode(String code) {\r\n\t\tthis.code = code;\r\n\t}",
"public void setCode(String code) {\r\n\t\tthis.code = code;\r\n\t}",
"public void setStateTrac(Long stateTrac) {\n this.stateTrac = stateTrac;\n }",
"public void setCode(String code) {\n this.code = code;\n }",
"public void setCode(String code) {\n this.code = code;\n }",
"public void setCode(String code) {\n this.code = code;\n }",
"public void setCode(String code) {\n this.code = code;\n }",
"public void setCode(String code) {\n this.code = code;\n }",
"public void setCode(String code) {\n this.code = code;\n }",
"public void setState(State state) {\n synchronized (stateLock){\n this.state = state;\n }\n }",
"public String getAccountStateCode() {\n return accountStateCode;\n }",
"private synchronized void setState(int state) {\n if (D) Log.d(TAG, \"setState() \" + mState + \" -> \" + state);\n mState = state;\n\n // Give the new state to the Handler so the UI Activity can update\n mHandler.obtainMessage(RemoteBluetooth.MESSAGE_STATE_CHANGE, state, -1).sendToTarget();\n }",
"public void setCode(java.lang.String code) {\r\n this.code = code;\r\n }",
"public void setCode(String code) {\n\t\tthis.code = code;\n\t}",
"public void setCode(String code) {\n\t\tthis.code = code;\n\t}",
"public void setState(server.SayHello.shandong.State state) {\n this.state = state;\n }",
"public final void setEntityState(EntityState state) {\n for (int i = fVSs.size()-1; i >= 0; i--) {\n ((ValidationState)fVSs.get(i)).setEntityState(state);\n }\n }",
"public void setEVENT_CODE(java.lang.String value)\n {\n if ((__EVENT_CODE == null) != (value == null) || (value != null && ! value.equals(__EVENT_CODE)))\n {\n _isDirty = true;\n }\n __EVENT_CODE = value;\n }"
] |
[
"0.7122992",
"0.6589484",
"0.6433387",
"0.63678247",
"0.61106086",
"0.56472707",
"0.54931986",
"0.5490474",
"0.54780936",
"0.5389229",
"0.5368056",
"0.5344198",
"0.5337248",
"0.5324803",
"0.5288968",
"0.5286498",
"0.5253566",
"0.5216856",
"0.52092665",
"0.52092665",
"0.52092665",
"0.52092665",
"0.52092665",
"0.52092665",
"0.52092665",
"0.52092665",
"0.5205445",
"0.5205445",
"0.5192485",
"0.5192485",
"0.51914895",
"0.51914895",
"0.5176911",
"0.51710033",
"0.5170287",
"0.51601344",
"0.51569986",
"0.51569986",
"0.51569986",
"0.51569986",
"0.51569986",
"0.51569986",
"0.51561177",
"0.51561177",
"0.5155263",
"0.51526964",
"0.51526964",
"0.5148788",
"0.5145502",
"0.51303184",
"0.5122028",
"0.5087605",
"0.5085701",
"0.5078697",
"0.5066768",
"0.5066768",
"0.50665164",
"0.50665164",
"0.50663894",
"0.5062558",
"0.5057956",
"0.50526047",
"0.50523823",
"0.5048765",
"0.5048765",
"0.5042779",
"0.5037177",
"0.5037177",
"0.50268495",
"0.5023419",
"0.50214547",
"0.49981964",
"0.4996209",
"0.4994548",
"0.49710953",
"0.49661914",
"0.49539095",
"0.49482903",
"0.49315497",
"0.4929963",
"0.49258393",
"0.49257174",
"0.49257174",
"0.49257174",
"0.49212486",
"0.4919611",
"0.4919611",
"0.4919611",
"0.4919611",
"0.4919611",
"0.4919611",
"0.48971778",
"0.48819807",
"0.4874473",
"0.48713064",
"0.48699254",
"0.48699254",
"0.48654005",
"0.48590848",
"0.4858798"
] |
0.67170167
|
1
|
Gets the type value for this TradeHistoryEntryVo.
|
public java.lang.String getType() {
return type;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public EntryType getType() {\n return type;\n }",
"public Class<?> getType() {\n return this.value.getClass();\n }",
"public String getType() {\n return (String) getObject(\"type\");\n }",
"public Class getType() {\n Object value = getValue();\n if (value == null)\n return null;\n\n Class type = value.getClass();\n if (type == Integer.class)\n return int.class;\n if (type == Float.class)\n return float.class;\n if (type == Double.class)\n return double.class;\n if (type == Long.class)\n return long.class;\n return String.class;\n }",
"public String getType() {\n return m_type;\n }",
"public int getTypeValue() {\n\t\t\t\t\treturn type_;\n\t\t\t\t}",
"public int getTypeValue() {\n\t\t\treturn type_;\n\t\t}",
"public int getTypeValue() {\n\t\t\t\treturn type_;\n\t\t\t}",
"public int getTypeValue() {\n\t\t\t\treturn type_;\n\t\t\t}",
"@java.lang.Override public int getTypeValue() {\n return type_;\n }",
"public String getType() {\r\n\t\treturn this.type;\r\n\t}",
"public Type getType() {\n return this.te.getType();\n }",
"public String getType() {\n\n return this.type;\n }",
"@java.lang.Override public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public type getType() {\r\n\t\treturn this.Type;\r\n\t}",
"public String getType() {\n return this.type;\n }",
"public String getType() {\n return this.type;\n }",
"public String getType() {\n return this.type;\n }",
"public String getType() {\n return this.type;\n }",
"public String getType() {\n return this.type;\n }",
"public String getType() {\n return this.type;\n }",
"public String getType() {\n return this.type;\n }",
"public String getType() {\n return this.type;\n }",
"public String getType() {\n return this.type;\n }",
"public String getType() {\n return this.type;\n }",
"public String getType() {\n\t\treturn this.type;\n\t}",
"public String getType() {\n\t\treturn this.type;\n\t}",
"public String getType() {\n\t\treturn this.type;\n\t}",
"public String getType() {\n\t\treturn this.type;\n\t}",
"public String getType() {\n\t\treturn this.type;\n\t}",
"public String getType() {\n\t\treturn this.type;\n\t}",
"public String getType() {\n\t\treturn this.type;\n\t}",
"public String getType() {\n\t\treturn this.type;\n\t}",
"public int getType() {\n return m_type;\n }",
"public Type getType() {\r\n return this.type;\r\n }",
"public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public Type getType() {\n return this.type;\n }",
"public java.lang.Long getTradeType () {\r\n\t\treturn tradeType;\r\n\t}",
"public String getType()\r\n {\r\n return mType;\r\n }",
"public String getType() {\r\n return this.type;\r\n }",
"public String getType() {\r\n if (type != null) {\r\n return type;\r\n }\r\n ValueBinding vb = getValueBinding(\"type\");\r\n return vb != null ? (String) vb.getValue(getFacesContext()) :\r\n DEFAULT_CHART_TYPE;\r\n }",
"public String getType() {\n\t return mType;\n\t}",
"public String getType() {\n return _type;\n }",
"public String getType() {\n\t\treturn _type;\n\t}",
"public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public String getType() {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public Type getType() {\n\t\treturn this.type;\n\t}",
"public Type getType() {\n return this.mType;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public String getType() {\r\n return type;\r\n }",
"public String getType() {\n return m_Type;\n }",
"public int getType()\n {\n return m_type;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public int getType() {\n return type_;\n }",
"public int getType() {\n return type_;\n }",
"public int getType() {\n return type_;\n }",
"public int getType() {\n return type_;\n }",
"public int getType() {\n return type_;\n }",
"public int getType() {\n return type_;\n }",
"public int getType() {\n return type_;\n }",
"public String getType() {\n return this.type;\n }",
"public String getType() {\n return this.type;\n }",
"public String getType() {\r\n\t\treturn type_;\r\n\t}",
"public int getType() {\n return this.type;\n }",
"@ApiModelProperty(example = \"DISPATCHED\", required = true, value = \"Type of the history item\")\n public TypeEnum getType() {\n return type;\n }",
"public String get_type()\r\n\t{\r\n\t\treturn this.type;\r\n\t}",
"public String getType() {\r\n return type;\r\n }",
"public String getType() {\r\n return type;\r\n }",
"public String getType() {\r\n return type;\r\n }",
"public String getType() {\r\n return type;\r\n }",
"public String getType() {\r\n return type;\r\n }",
"public String getType() {\r\n\t\treturn type;\r\n\t}",
"public String getType() {\r\n\t\treturn type;\r\n\t}",
"public String getType() {\r\n\t\treturn type;\r\n\t}",
"public final String getType() {\n return this.type;\n }",
"public String getType() {\r\r\n\t\treturn type;\r\r\n\t}",
"public int getType()\n\t\t{\n\t\t\treturn this.type;\n\t\t}",
"public Type getType() {\n return type;\n }",
"public int getType() {\n return theType;\n }",
"public int getType() {\n\t\treturn this.mType;\n\t}",
"public Integer getType() {\n\t\treturn type;\n\t}",
"public String obtenirType() {\n\t\treturn this.type;\n\t}",
"@Override public int getTypeValue() {\n return type_;\n }",
"public String getType()\n {\n return type;\n }",
"public Type getType(){\n\t\treturn this.type;\n\t}",
"public int getType() {\n return mType;\n }",
"public Object getType()\r\n {\r\n\treturn type;\r\n }",
"public String getType() {\n return type;\n }"
] |
[
"0.6459216",
"0.6306856",
"0.6202175",
"0.6182599",
"0.61802864",
"0.61703694",
"0.6148478",
"0.6125951",
"0.6125951",
"0.61203134",
"0.61150646",
"0.6114479",
"0.6090804",
"0.60899085",
"0.6087307",
"0.6087307",
"0.6087307",
"0.6087307",
"0.6087307",
"0.60768414",
"0.60749376",
"0.60749376",
"0.60749376",
"0.60749376",
"0.60749376",
"0.60749376",
"0.60749376",
"0.60749376",
"0.60749376",
"0.60749376",
"0.60675424",
"0.60675424",
"0.60675424",
"0.60675424",
"0.60675424",
"0.60675424",
"0.60675424",
"0.60675424",
"0.60644215",
"0.60643667",
"0.6056082",
"0.6056082",
"0.6056082",
"0.6055137",
"0.6052777",
"0.60477066",
"0.6047379",
"0.6046327",
"0.6044857",
"0.6044459",
"0.6043415",
"0.6033738",
"0.6033738",
"0.6033738",
"0.6033738",
"0.6033738",
"0.6032151",
"0.6032151",
"0.6031803",
"0.60313785",
"0.603072",
"0.6027905",
"0.6025625",
"0.60192597",
"0.6016155",
"0.6016155",
"0.60118383",
"0.60118383",
"0.60118383",
"0.60118383",
"0.60118383",
"0.60118383",
"0.60118383",
"0.6011442",
"0.6011442",
"0.600919",
"0.6007822",
"0.6007556",
"0.60017806",
"0.60002726",
"0.60002726",
"0.60002726",
"0.60002726",
"0.60002726",
"0.5998076",
"0.5998076",
"0.5998076",
"0.5997073",
"0.599686",
"0.59912115",
"0.599074",
"0.59871334",
"0.5982074",
"0.59813625",
"0.59809124",
"0.59755397",
"0.5973934",
"0.5973724",
"0.5973185",
"0.5971703",
"0.59716535"
] |
0.0
|
-1
|
Sets the type value for this TradeHistoryEntryVo.
|
public void setType(java.lang.String type) {
this.type = type;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setType(Type t) {\n type = t;\n }",
"public void setType(Type t) {\n\t\ttype = t;\n\t}",
"public void setType(Type type) {\n this.type = type;\n }",
"public void setType(Type type) {\n this.type = type;\n }",
"public void setType(Type type) {\n this.type = type;\n }",
"public void setType(final Type type) {\n this.type = type;\n }",
"public void setType(Object type)\r\n {\r\n\tthis.type = type;\r\n }",
"public void setType(type type) {\r\n\t\tthis.Type = type;\r\n\t}",
"public void setType(Type type){\n\t\tthis.type = type;\n\t}",
"public void setType( Type type ) {\n assert type != null;\n this.type = type;\n }",
"public void setType(String type) {\n m_Type = type;\n }",
"public void setType( String type ) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n\t this.mType = type;\n\t}",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"@Override\n public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n\n this.type = type;\n }",
"void setType(Type type)\n {\n this.type = type;\n }",
"public void setType (String type) {\n this.type = type;\n }",
"public void setType (String type) {\n this.type = type;\n }",
"public void setType (String type) {\n this.type = type;\n }",
"public void setType(String type) {\r\n this.type = type;\r\n }",
"public void setType(String type) {\r\n this.type = type;\r\n }",
"public void setType(String type) {\r\n this.type = type;\r\n }",
"public void setType(String type) {\r\n this.type = type;\r\n }",
"public void setType(String type) {\r\n this.type = type;\r\n }",
"public void setType(String type) {\r\n this.type = type;\r\n }",
"public void setType( String type )\n {\n this.type = type;\n }",
"public void setType(String type)\r\n {\r\n this.mType = type;\r\n }",
"public void setType(String type) {\r\n\t\tthis.type = type;\r\n\t}",
"public void setType(String type) {\r\n\t\tthis.type = type;\r\n\t}",
"public void setType(String type) {\r\n\t\tthis.type = type;\r\n\t}",
"@Override\n\tpublic void setType(String type) {\n\t\tthis.type = type;\n\t}",
"public void setType(String type) {\r\r\n\t\tthis.type = type;\r\r\n\t}",
"public final void setType(String type) {\n this.type = type;\n }",
"void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n\t\tthis.type = type;\n\t}",
"public void setType(String type) {\n\t\tthis.type = type;\n\t}",
"public void setType(String type) {\n\t\tthis.type = type;\n\t}",
"public void setType(String type) {\n\t\tthis.type = type;\n\t}",
"public void setType(String type) {\n\t\tthis.type = type;\n\t}",
"public void setType(String type) {\n\t\tthis.type = type;\n\t}",
"public void setType(String type) {\n\t\tthis.type = type;\n\t}",
"public void setType(String type) {\n\t\tthis.type = type;\n\t}",
"public void setType(String type) {\n\t\tthis.type = type;\n\t}",
"public void setType(String type) {\n\t\tthis.type = type;\n\t}",
"public void setType(String type) \n {\n this.type = type;\n }",
"public void setType(Class type) {\n\t this.type = type;\n\t }",
"public void setType(String type){\n this.type = type;\n }",
"private void setType(String type) {\n mType = type;\n }",
"public void setType(String type)\n\t{\n\t\tthis.type = type;\n\t}",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String t) {\n\t\tthis.type = t;\n\t}",
"public void setType(String type){\n\t\tthis.type = type;\n\t}",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\n this.type = type;\n }",
"public void setType(String type) {\r\n\t\tthis.type=type;\r\n\t}",
"@Override\n\tpublic void setType(Type t) {\n\t\theldObj.setType(t);\n\t}",
"public void setType(gov.nih.nci.calims2.domain.common.Type type) {\n this.type = type;\n }",
"public void setType(String type){\n \tthis.type = type;\n }",
"public final void setType(String type){\n\t\tthis.type = type;\t\n\t}",
"public void setType (String typ) {\n type = typ;\n }",
"public void setType(String type){\r\n if(type == null){\r\n throw new IllegalArgumentException(\"Type can not be null\");\r\n }\r\n this.type = type;\r\n }",
"final public void setType(String type)\n {\n setProperty(TYPE_KEY, (type));\n }",
"public StockEvent setType(StockEventType type) {\n this.type = type;\n return this;\n }",
"public void setType(Serializable type) {\n\t\tthis.type = type;\n\t}",
"public void setEntryType(final Class<?> entryType) {\r\n\t\tthis.entryType = entryType;\r\n\t}",
"public void setType(String type) {\n setObject(\"type\", (type != null) ? type : \"\");\n }",
"public void setType(String type);",
"public void setType(String type);",
"public void setType(String type);",
"public void setType(int type) {\n this.type = type;\n }",
"public void setType(int type) {\r\n this.type = type;\r\n }",
"public void setType(int type) {\r\n this.type = type;\r\n }",
"public void set_type(String type)\r\n\t{\r\n\t\tthis.type = type;\r\n\t}",
"public void set_type(String t)\n {\n type =t;\n }"
] |
[
"0.6754028",
"0.6664385",
"0.66025907",
"0.66025907",
"0.66025907",
"0.65656054",
"0.6482323",
"0.6479",
"0.64713544",
"0.64163065",
"0.64031965",
"0.6388793",
"0.6381856",
"0.6381856",
"0.6381856",
"0.6381856",
"0.6381856",
"0.6381856",
"0.6381856",
"0.6381856",
"0.6381856",
"0.6381856",
"0.6381856",
"0.6381856",
"0.6381856",
"0.6381856",
"0.6381856",
"0.6381856",
"0.6381856",
"0.6381856",
"0.6381856",
"0.6381856",
"0.6381856",
"0.6381856",
"0.6381208",
"0.63782865",
"0.6377579",
"0.6377579",
"0.63750243",
"0.6373316",
"0.6371379",
"0.6367854",
"0.6367854",
"0.6367854",
"0.6366896",
"0.63666165",
"0.63666165",
"0.63666165",
"0.63666165",
"0.63590264",
"0.63562477",
"0.6354612",
"0.6342616",
"0.6342616",
"0.6342616",
"0.6307687",
"0.6305918",
"0.63023144",
"0.6301443",
"0.62867343",
"0.62867343",
"0.62867343",
"0.62867343",
"0.62867343",
"0.62867343",
"0.62867343",
"0.62867343",
"0.62867343",
"0.62867343",
"0.62702966",
"0.626368",
"0.62439656",
"0.624375",
"0.6241058",
"0.6235419",
"0.62346506",
"0.6218678",
"0.6185046",
"0.6185046",
"0.6180945",
"0.61702436",
"0.61626107",
"0.6138024",
"0.6108416",
"0.6096647",
"0.60933334",
"0.6079522",
"0.60419345",
"0.6036914",
"0.60317796",
"0.60296834",
"0.60291696",
"0.60291696",
"0.60291696",
"0.60144997",
"0.6003892",
"0.6003892",
"0.6002793",
"0.60018384"
] |
0.6208653
|
78
|
Return type metadata object
|
public static org.apache.axis.description.TypeDesc getTypeDesc() {
return typeDesc;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public MetadataType getType();",
"public MetadataType getType() {\n return type;\n }",
"public MilanoTypeMetadata.TypeMetadata getMetadata()\n {\n if (typeMetadata == null) {\n return null;\n }\n\n return typeMetadata;\n }",
"private Metadata getMetadata(RubyModule type) {\n for (RubyModule current = type; current != null; current = current.getSuperClass()) {\n Metadata metadata = (Metadata) current.getInternalVariable(\"metadata\");\n \n if (metadata != null) return metadata;\n }\n \n return null;\n }",
"public Metadata getMetadata( MetadataType type )\n\t{\n\t\tfor( Metadata metadata: mMetadata )\n\t\t{\n\t\t\tif( metadata.getMetadataType() == type )\n\t\t\t{\n\t\t\t\treturn metadata;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn null;\n\t}",
"Metadata getMetaData();",
"public List<TypeMetadata> getTypeMetadata() {\n return types;\n }",
"@Override\n public Class<? extends Metadata> getMetadataType() {\n throw new RuntimeException( \"Not yet implemented.\" );\n }",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"public MetaData getMetaData();",
"private Class<?> getType(final Object metadata, final ValueNode node) throws ParseException {\n if (node.type != null) {\n return readType(node);\n }\n Class type;\n if (metadata instanceof ReferenceSystemMetadata || metadata instanceof Period || metadata instanceof AbstractTimePosition || metadata instanceof Instant) {\n final Method getter = ReflectionUtilities.getGetterFromName(node.name, metadata.getClass());\n return getter.getReturnType();\n } else {\n type = standard.asTypeMap(metadata.getClass(), KeyNamePolicy.UML_IDENTIFIER, TypeValuePolicy.ELEMENT_TYPE).get(node.name);\n }\n final Class<?> special = specialized.get(type);\n if (special != null) {\n return special;\n }\n return type;\n }",
"public Map<String, Variant<?>> GetMetadata();",
"public String getType();",
"public String getType();",
"public String getType();",
"public String getType();",
"public String getType();",
"public String getType();",
"public String getType();",
"public String getType();",
"public String getType();",
"public String getType();",
"public String getType();",
"public String getType();",
"public String getType();",
"public TypeSummary getTypeSummary() {\r\n return type;\r\n }",
"String provideType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"public Type getType();",
"@Override\n public String toString() {\n return metaObject.getType().toString();\n }",
"public String metadataClass() {\n return this.metadataClass;\n }",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"Type getType();",
"abstract public Type getType();",
"public String type();",
"private String getType(){\r\n return type;\r\n }",
"protected abstract String getType();",
"Coding getType();",
"@Override\n TypeInformation<T> getProducedType();",
"type getType();",
"TypeDefinition createTypeDefinition();",
"abstract public String getType();",
"public abstract String getType();",
"public abstract String getType();",
"public abstract String getType();",
"public abstract String getType();",
"public abstract String getType();",
"public abstract String getType();",
"public abstract String getType();",
"public abstract String getType();",
"public abstract Type getType();",
"protected static LibMetaData createLibMetaData(LibMetaData lmd) {\n MetaData metaData = new MetaData();\r\n metaData.add(\"IsThing\", new Integer(1), null, MetaDataEntry.FIX_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"ImageSource\", \"Items\", null, MetaDataEntry.ANY_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"Image\", new Integer(0), null, MetaDataEntry.POSITIVE_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"Number\", new Integer(1), null, MetaDataEntry.POSITIVE_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n lmd.add(THING, metaData);\r\n \r\n metaData = new MetaData(lmd.get(\"thing\"));\r\n metaData.add(\"IsItem\", new Integer(1), null, MetaDataEntry.FIX_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"ImageSource\", \"Items\", null, MetaDataEntry.ANY_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"Image\", new Integer(1), null, MetaDataEntry.POSITIVE_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"Name\", \"Thing\", null, MetaDataEntry.ANY_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"NameType\", new Integer(Description.NAMETYPE_NORMAL), null, MetaDataEntry.FIX_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"Z\", new Integer(Thing.Z_ITEM), null, MetaDataEntry.FIX_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n lmd.add(ITEM, metaData);\r\n \r\n metaData = new MetaData(lmd.get(\"thing\"));\r\n metaData.add(\"IsBeing\",new Integer(1), null, MetaDataEntry.FIX_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"ImageSource\", \"Creatures\", null, MetaDataEntry.ANY_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"Image\", new Integer(340), null, MetaDataEntry.POSITIVE_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"IsMobile\",new Integer(1), new Integer[]{new Integer(0), new Integer(1)}, MetaDataEntry.CERTAIN_VALUES, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"IsBlocking\", new Integer(1), new Integer[]{new Integer(0), new Integer(1)}, MetaDataEntry.CERTAIN_VALUES, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"MoveCost\", new Integer(100), null, MetaDataEntry.POSITIVE_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"DeathDecoration\", \"blood pool\", null, MetaDataEntry.ANY_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"NameType\", new Integer(Description.NAMETYPE_NORMAL), null, MetaDataEntry.FIX_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n metaData.add(\"Z\", new Integer(Thing.Z_MOBILE), null, MetaDataEntry.FIX_VALUE, MetaDataEntry.MANDATORY_PROPERTY);\r\n lmd.add(BEING, metaData);\r\n \r\n lmd = createEffectMetaData(lmd);\r\n lmd = createPoisonMetaData(lmd);\r\n lmd = createFoodMetaData(lmd);\r\n lmd = createScrollMetaData(lmd);\r\n lmd = createMissileMetaData(lmd);\r\n lmd = createRangedWeaponMetaData(lmd);\r\n lmd = createPotionMetaData(lmd);\r\n lmd = createWandMetaData(lmd);\r\n lmd = createRingMetaData(lmd);\r\n lmd = createCoinMetaData(lmd);\r\n lmd = createArmourMetaData(lmd);\r\n lmd = createWeaponMetaData(lmd);\r\n lmd = createSecretMetaData(lmd);\r\n lmd = createSpellBookMetaData(lmd);\r\n lmd = createChestMetaData(lmd);\r\n lmd = createDecorationMetaData(lmd);\r\n lmd = createSceneryMetaData(lmd);\r\n lmd = createPortalMetaData(lmd);\r\n lmd = createTrapMetaData(lmd);\r\n createMonsterMetaData(lmd);\r\n createPersonMetaData(lmd);\r\n return lmd;\r\n }",
"String getTypeAsString();",
"public gov.niem.niem.structures._2_0.MetadataType getMetadata()\n {\n synchronized (monitor())\n {\n check_orphaned();\n gov.niem.niem.structures._2_0.MetadataType target = null;\n target = (gov.niem.niem.structures._2_0.MetadataType)get_store().find_element_user(METADATA$0, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"TypeRef getType();",
"String getMetadataClassName();"
] |
[
"0.7969707",
"0.7373198",
"0.7358018",
"0.7090138",
"0.67353225",
"0.67259765",
"0.66725683",
"0.65644145",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6510972",
"0.648206",
"0.6352795",
"0.6329532",
"0.6329532",
"0.6329532",
"0.6329532",
"0.6329532",
"0.6329532",
"0.6329532",
"0.6329532",
"0.6329532",
"0.6329532",
"0.6329532",
"0.6329532",
"0.6329532",
"0.62937546",
"0.6285329",
"0.628487",
"0.628487",
"0.628487",
"0.628487",
"0.628487",
"0.628487",
"0.628487",
"0.628487",
"0.628487",
"0.628487",
"0.628487",
"0.628487",
"0.628487",
"0.627527",
"0.6265675",
"0.6235292",
"0.6227797",
"0.6227797",
"0.6227797",
"0.6227797",
"0.6227797",
"0.6227797",
"0.6227797",
"0.6227797",
"0.6227797",
"0.6227797",
"0.6227797",
"0.6221452",
"0.6209023",
"0.6196509",
"0.61801785",
"0.6180045",
"0.6168281",
"0.61679584",
"0.6166462",
"0.6161522",
"0.6146188",
"0.6146188",
"0.6146188",
"0.6146188",
"0.6146188",
"0.6146188",
"0.6146188",
"0.6146188",
"0.6141369",
"0.6140734",
"0.6133515",
"0.61228573",
"0.6116976",
"0.6111749"
] |
0.0
|
-1
|
To Get All the recipes with the username same as the one that is logged in
|
@GetMapping
public List<Recipe> get(HttpSession httpSession){
List<Recipe> recipes = new ArrayList<>();
String username = (String) httpSession.getAttribute("username");
//recipeRepository.findByAcess("PUBLIC").iterator().forEachRemaining(x -> recipes.add(x));
if(username != null){
recipeRepository.findByEmail(username).iterator().forEachRemaining(x -> recipes.add(x));
}
System.out.println(recipes);
return recipes;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@GetMapping(\"/jpa/users/{username}/recipes\")\n\tpublic List<Recipe> getAllRecipes(@PathVariable String username) {\n\t\t\n\t\treturn recipeJpaRepository.findByUsername(username);\n//\t\t\n\t\n\t\t\n\t}",
"@Override\n @SuppressWarnings(\"unchecked\")\n public List<RecipeEntity> getAllRecipe(long idUser)\n {\n return (List<RecipeEntity>)\n this.find(\"from RecipeEntity inner join UserEntity \" +\n \"where RecipeEntity.userByIdUser =:idUser\", idUser);\n }",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface RecipeSharedRepository extends JpaRepository<RecipeShared, Long>, JpaSpecificationExecutor<RecipeShared> {\n\n @Query(\"select recipeShared from RecipeShared recipeShared where recipeShared.user.login = ?#{principal.username}\")\n List<RecipeShared> findByUserIsCurrentUser();\n}",
"public static ArrayList<String> findRecipesWithIngredients(int numRecipesToReturn, User curUser) {\n HashSet<String> ingredientList = curUser.getIngredients();\n //if no ingredients in user's fridge, no recipes can be made\n if (ingredientList == null || ingredientList.size() == 0) {\n return new ArrayList<String>();\n }\n LinkedHashMap<String, Integer> recipeMap = new LinkedHashMap<>();\n /* for every ingredient find recipes that have that ingredient\n count maintains a number representing how many ingredients in\n ingredientList (the user's inventory) are in the given recipe.\n For e.g. if count for \"lasagna\" is 2, then two of the ingredients\n in the lasagna recipe are in the user's inventory. */\n for (String ingredient : ingredientList) {\n //gets all recipes with ingredient\n String recipesString = getRecipesWithIngredient(ingredient);\n if (recipesString == null) {\n continue;\n }\n String[] rec = recipesString.trim().split(\"\\\\s*,\\\\s*\");\n for (String recipe : rec) {\n // get the number of occurences of the specified recipe\n Integer count = recipeMap.get(recipe);\n // if the map contains no mapping for the recipe,\n // map the recipe with a value of 1\n if (count == null) {\n recipeMap.put(recipe, 1);\n } else { // else increment the found value by 1\n recipeMap.put(recipe, count + 1);\n }\n }\n }\n //create hashmap where keys are count and value is arraylist of recipes with that count\n Map<Integer, ArrayList<String>> invertedHashMap = new HashMap<>();\n for (Map.Entry<String, Integer> entry : recipeMap.entrySet()) {\n ArrayList<String> recipe = invertedHashMap.get(entry.getValue());\n if (recipe == null) {\n ArrayList<String> recipeList = new ArrayList<>();\n recipeList.add(entry.getKey());\n invertedHashMap.put(entry.getValue(), recipeList);\n } else {\n recipe.add(entry.getKey());\n invertedHashMap.put(entry.getValue(), recipe);\n }\n }\n\n //create a new treemap with recipes with the most number of ingredients in the user's inventory.\n TreeMap<Integer, ArrayList<String>> top = treeMapOfTop(invertedHashMap, numRecipesToReturn);\n //creates a new treemap, where the top (numRecipesToReturn*2) are sorted based on the user's\n //rating preferences\n TreeMap<Double, ArrayList<String>> ratedMap = factorInRatings(top, curUser);\n //converts to arraylist of size numRecipesToReturn of top recipes\n return topSortedRecipes(ratedMap, numRecipesToReturn);\n }",
"@GetMapping\n @PreAuthorize(\"hasRole('ADMIN') or hasRole('USER')\")\n public ResponseEntity<?> getAllRecipe() {\n return recipeService.getAllRecipes();\n }",
"ArrayList<RecipeObject> getRecipes(String recipeName);",
"List<Recipe> getAllRecipes();",
"public List<Recipe> findAllRecipe(){\n\t\treturn sessionFactory.openSession().createQuery(\"from Recipe\").list();\n\t\t\n\t}",
"List<UserRepresentation> searchUserAccount(final String username);",
"ArrayList<RecipeObject> getRecipes();",
"public interface NewStockWalletRepository extends JpaRepository<NewStockWallet,Long> {\n\n @Query(\"select newStockWallet from NewStockWallet newStockWallet where newStockWallet.user.login = ?#{principal.username}\")\n List<NewStockWallet> findByUserIsCurrentUser();\n\n}",
"public ArrayList<IngredientRecipePOJO> getAllIngredientRecipeByIdRecipe(String idRecipe);",
"private void getRecipeList(final String real_user) {\n String url = \"http://proj-309-yt-8.cs.iastate.edu/ryans_recipe_retriever.php\";\n StringRequest stringRequest = new StringRequest(Request.Method.POST, url, new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n Log.d(\"AddCalendarMealActivity/getRecipeList\", response);\n if(response.contains(\":\")) {\n String[] parsed = parseRecipes(response);\n updateList(parsed);\n } else {\n Toast.makeText(getApplicationContext(),\"Error retrieving recipes from database\", Toast.LENGTH_SHORT).show();\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Log.d(\"AddCalendarMealActivity/getRecipeList\", error.toString());\n Toast.makeText(getApplicationContext(),\"Error connecting to database.\",Toast.LENGTH_SHORT).show();\n }\n }) {\n /*This is string data POSTed to server file with key-string format*/\n @Override\n protected Map<String, String> getParams() throws AuthFailureError {\n @SuppressWarnings(\"Convert2Diamond\") Map<String,String> params = new HashMap<String, String>();\n params.put(\"login_id\",real_user);\n return params;\n }\n };\n AppController.getInstance().addToRequestQueue(stringRequest, \"string_req_cal_retrieve_recipes\");\n }",
"List<InventoryItem> getInventory(String username);",
"public List<Recipe> getRecipeByName(String name)\n {\n SQLiteDatabase db = getReadableDatabase();\n SQLiteQueryBuilder qb = new SQLiteQueryBuilder();\n\n //Attributes as they appear in the database\n String[] sqlSelect = {\"recipeid\",\"name\",\"type\",\"description\",\"ingredients\",\"instruction\",\"imageid\",\"nutritionimage\",\"cookingtime\",\"totalcost\"};\n String RECIPE_TABLE = \"Recipe\"; //Table name as it is in database\n\n qb.setTables(RECIPE_TABLE);\n //For exact name query do: Cursor cursor = qb.query(db,sqlSelect, \"name = ?\",new String[]{name}, null, null, null);\n //LIKE implementation is done below\n Cursor cursor = qb.query(db,sqlSelect, \"name LIKE ?\",new String[]{\"%\"+name+\"%\"}, null, null, null);\n List<Recipe> result = new ArrayList<>();\n if(cursor.moveToFirst())\n {\n do{\n Recipe recipe = new Recipe();\n recipe.setRecipeid(cursor.getInt(cursor.getColumnIndex(\"recipeid\")));\n recipe.setName(cursor.getString(cursor.getColumnIndex(\"name\")));\n recipe.setType(cursor.getString(cursor.getColumnIndex(\"type\")));\n recipe.setDescription(cursor.getString(cursor.getColumnIndex(\"description\")));\n recipe.setIngredients(cursor.getString(cursor.getColumnIndex(\"ingredients\")));\n recipe.setInstruction(cursor.getString(cursor.getColumnIndex(\"instruction\")));\n recipe.setImageid(cursor.getString(cursor.getColumnIndex(\"imageid\")));\n recipe.setNutritionimage(cursor.getString(cursor.getColumnIndex(\"nutritionimage\")));\n recipe.setCookingtime(cursor.getInt(cursor.getColumnIndex(\"cookingtime\")));\n recipe.setTotalcost(cursor.getFloat(cursor.getColumnIndex(\"totalcost\")));\n\n result.add(recipe);\n }while(cursor.moveToNext());\n }\n return result;\n }",
"public List<String> getRecipeName()\n {\n SQLiteDatabase db = getReadableDatabase();\n SQLiteQueryBuilder qb = new SQLiteQueryBuilder();\n\n //Attributes as they appear in the database\n String[] sqlSelect = {\"name\"};\n String RECIPE_TABLE = \"Recipe\"; //Table name as it is in database\n\n qb.setTables(RECIPE_TABLE);\n Cursor cursor = qb.query(db,sqlSelect, null,null, null, null, null);\n List<String> result = new ArrayList<>();\n if(cursor.moveToFirst())\n {\n do{\n result.add(cursor.getString(cursor.getColumnIndex(\"name\")));\n }while(cursor.moveToNext());\n }\n return result;\n }",
"@Override\n\tpublic List<Receta> filtrarRecetas(Usuario unUser, List<Receta> recetasAFiltrar) {\n\t\tif(!(recetasAFiltrar.isEmpty())){\n\t\t\tList<Receta> copiaDeRecetasAFiltrar = new ArrayList<Receta>();\n\t\t\tfor(Receta unaReceta : recetasAFiltrar){\n\t\t\t\tif(!(unaReceta.ingredientes.stream().anyMatch(ingrediente -> this.getIngredientesCaros().contains(ingrediente.nombre)))){\n\t\t\t\t\tcopiaDeRecetasAFiltrar.add(unaReceta);\n\t\t\t\t}\t\n\t\t\t}\n\t\t\treturn copiaDeRecetasAFiltrar;\n\t\t}else{\n\t\t\treturn recetasAFiltrar;\n\t\t}\n\t\t\n\t\t\n\t}",
"private String searchForUser() {\n String userId = \"\";\n String response = given().\n get(\"/users\").then().extract().asString();\n List usernameId = from(response).getList(\"findAll { it.username.equals(\\\"Samantha\\\") }.id\");\n if (!usernameId.isEmpty()) {\n userId = usernameId.get(0).toString();\n }\n return userId;\n }",
"public List<Recipe> getAllRecipesFromRepository(){\n\t\tList<RecipeEntity> retrievedRecipes = recipesRepo.findAll();\n\t\tlog.debug(\"Number of retrieved recipes from DB: \"+retrievedRecipes.size());\n\t\t//Map all retrieved recipes entity to recipe instances\n\t\tList<Recipe> recipesList = new ArrayList<>(retrievedRecipes.size());\n\t\tretrievedRecipes.forEach(recipeEntity -> recipesList.add(mapToRecipeObject(recipeEntity)));\n\t\tlog.debug(\"Number of recipe entities mapped and stored to recipesList: \"+recipesList.size());\n\t\t//Return mapped recipes\n\t\treturn recipesList;\n\t}",
"@Override\n\tpublic List<Recipe> getAllRecipe() {\n\t\tRestTemplate restTemplate = new RestTemplate();\n\t\t\n\t\tResponseEntity<List<Recipe>> rateResponse =\n\t\t restTemplate.exchange(BASE_URL + RECIPE_URL, HttpMethod.GET, \n\t\t \t\tnull, new ParameterizedTypeReference<List<Recipe>>() {\n\t\t });\n\t\tList<Recipe> recipeList = rateResponse.getBody();\n\t\tlogger.debug(\"RECIPE Info :\" + recipeList);\n\t\treturn recipeList;\n\t}",
"public List<Recipe> getRecipes() {\r\n \t\tCollections.sort(recipeList, Comparators.RECIPE_COMPARATOR);\r\n \t\treturn Collections.unmodifiableList(recipeList);\r\n \t}",
"List<Map<String, Object>> searchIngredient(String name);",
"public List<Recipe> getRecipe()\n {\n SQLiteDatabase db = getReadableDatabase();\n SQLiteQueryBuilder qb = new SQLiteQueryBuilder();\n\n //Attributes as they appear in the database\n String[] sqlSelect = {\"recipeid\",\"name\",\"type\",\"description\",\"ingredients\",\"instruction\",\"imageid\",\"nutritionimage\",\"cookingtime\",\"totalcost\"};\n String RECIPE_TABLE = \"Recipe\"; //Table name as it is in database\n\n qb.setTables(RECIPE_TABLE);\n Cursor cursor = qb.query(db,sqlSelect, null,null, null, null, null);\n List<Recipe> result = new ArrayList<>();\n if(cursor.moveToFirst())\n {\n do{\n Recipe recipe = new Recipe();\n recipe.setRecipeid(cursor.getInt(cursor.getColumnIndex(\"recipeid\")));\n recipe.setName(cursor.getString(cursor.getColumnIndex(\"name\")));\n recipe.setType(cursor.getString(cursor.getColumnIndex(\"type\")));\n recipe.setDescription(cursor.getString(cursor.getColumnIndex(\"description\")));\n recipe.setIngredients(cursor.getString(cursor.getColumnIndex(\"ingredients\")));\n recipe.setInstruction(cursor.getString(cursor.getColumnIndex(\"instruction\")));\n recipe.setImageid(cursor.getString(cursor.getColumnIndex(\"imageid\")));\n recipe.setNutritionimage(cursor.getString(cursor.getColumnIndex(\"nutritionimage\")));\n recipe.setCookingtime(cursor.getInt(cursor.getColumnIndex(\"cookingtime\")));\n recipe.setTotalcost(cursor.getFloat(cursor.getColumnIndex(\"totalcost\")));\n\n result.add(recipe);\n }while(cursor.moveToNext());\n }\n return result;\n }",
"List<User> searchUsersByUsername(String username);",
"List<String> getRecipeByIngredients(CharSequence query);",
"public JsonObject getRecipesByIngredients(String ingredients) throws Exception\n {\n URL url = new URL(baseUrl+\"i=\"+ingredients);\n/* TODO \nYou have to use the url to retrieve the contents of the website. \nThis will be a String, but in JSON format. */\n String contents = \"\";\n Scanner urlScanner = new Scanner(url.openStream());\n while (urlScanner.hasNextLine()){\n contents += urlScanner.nextLine();\n }\n urlScanner.close();\n JsonObject recipes = (JsonObject)Jsoner.deserialize(contents,new JsonObject());\n\n return recipes;\n }",
"public List<Recipe> getRecipes()\n {\n return _recipes;\n }",
"SortedSet<Recipe> findAllRecipes() throws ServiceFailureException;",
"public interface SeancePriveRepository extends JpaRepository<SeancePrive,Long> {\n\n @Query(\"select seancePrive from SeancePrive seancePrive where seancePrive.user.login = ?#{principal.username}\")\n List<SeancePrive> findAllForCurrentUser();\n\n}",
"@Override\n public List<NominationDTO> findAllNomsForTheCurrentUser() {\n Contact userContact = _contactRepository.findByUserIsCurrentUser();\n //for this contact find its employed by BA\n BusinessAssociate ba = userContact.getEmployedBy();\n\n Set<Contract> baContracts = ba.getContracts();\n\n UserDetails user1 = (UserDetails) SecurityContextHolder.getContext().getAuthentication().getPrincipal();\n com.oilgascs.gps.security.GPSUserDetails user = (com.oilgascs.gps.security.GPSUserDetails)user1;\n // set the session bu if not set to \n /* if(user.getBu() == null) {\n\t BusinessUnit newBU = new BusinessUnit();\n\t newBU.setId((long)1);\n\t newBU.setBusinessUnit(\"B1\");\n\t user.setBu(newBU);\n }*/\n List<Long> contractIdList = new ArrayList<>();\n baContracts.forEach(contract->{\n //\tif(user.getBu().getBusinessUnit().equals(contract.getBusinessUnit()))\n \t\tcontractIdList.add(contract.getId());\n \t});\n\n List<Nomination> noms = _nomNominationRepository.findAllNomsByContractIdList(contractIdList);\n return noms.stream()\n .map(_nominationMapper::toDto)\n .collect(Collectors.toCollection(LinkedList::new));\n }",
"public static void findIngredient(String ingredient, ArrayList<Recipe> recipes) {\n System.out.println();\n System.out.println(\"Recipes:\");\n for (Recipe recipe: recipes) {\n if (recipe.getIngredients().contains(ingredient)) {\n System.out.println(recipe);\n }\n }\n System.out.println();\n }",
"public List<Recipe> getRelatedRecipes() {\r\n return relatedRecipes;\r\n }",
"@Transactional(readOnly = true)\n public List<TicketGo> findByUser_Login(String name) {\n log.debug(\"Request to findByUser_Login : {}\", name);\n List<Ticket> tickets = ticketRepository.findByUser_Login(name);\n List<TicketGo> results = new ArrayList<>();\n if (tickets != null) {\n for (Ticket ticket : tickets) {\n results.add(getGoTicket(ticket));\n }\n }\n return results;\n }",
"@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic Collection<Tags> readAll(String username) {\n\t\tString query = \"from Tags where username='\"+username+\"' OR username='default'\";\n\t\tCollection<Tags> tags = (Collection<Tags>)entityMgr.createQuery(query).getResultList();\n\t\treturn tags;\n\t}",
"public List<Recipe> search(String queryText, Category category, CookingMethod cookingMethod);",
"List<RecipeObject> searchRecipes(String query, String number, String offset, String diet, String intolerances, String type, String cuisine, String ingredients) throws EntityException;",
"@Override\n\tpublic List<Cart> selectCartByusername(String username) {\n\t\treturn cartDao.selectCartByusername(username);\n\t}",
"public static ArrayList<Recipe> getAllRecipes() {\n allRecipes.add(new Recipe(\"Pizza\", 1.0, \"gn_logo\", \"Italian\", \"5\", \"instr\", \"ingredients2\"));\n allRecipes.add(new Recipe(\"Pasta\", 1.0, \"gn_logo\", \"Italian\", \"5\", \"instr\", \"ingredients\"));\n\n allRecipes.add(new Recipe(\"Sushi Rolls\", 2.0, \"mkp_logo\", \"Japanese\", \"5\", \"instr\", \"ingredients\"));\n\n allRecipes.add(new Recipe(\"Crepe\", 3.5, \"mt_logo\", \"French\", \"5\", \"instr\", \"ingredients\"));\n\n allRecipes.add(new Recipe(\"Baked Salmon\", 0, \"pb_logo\", \"American\", \"5\", \"1. prep ingredients\\n2.cook food\\n3.eat your food\", \"ingredients1 ingredient 2 ingredient3\"));\n\n return allRecipes;\n }",
"public List<Entry> getUserEntries(String username) {\n\t\treturn enteries.get(username);\n\t}",
"@Override\n\tpublic List<User> requetenamed(String requete) {\n\t\treturn this.userservice.requetenamed(requete);\n\t}",
"public List<UserCredential> getAllCredentials() {\n\t\t List<UserCredential> userCredentials = new ArrayList<>();\n\t\t \n\t\t credentialRepo.findAll().forEach(userCredential -> userCredentials.add(userCredential));\n\t\t \n\t\treturn userCredentials;\n\t}",
"@Override\n\tpublic List<User> searchByUser(String userName) {\n\t\tlog.info(\"Search by username!\");\n\t\treturn userRepository.findByFirstNameRegex(userName+\".*\");\n\t}",
"RecipeObject getRecipe(int recipeID);",
"SortedSet<Recipe> findRecipesByName(String name) throws ServiceFailureException;",
"public ArrayList<Recipe> search(String searchTerm){\n\t\t\t\t\n\t\t\t\t// The final container to be returned\n\t\t\t\tArrayList<Recipe> mRecipes = new ArrayList<Recipe>();\n\t\t\t\t\n\t\t\t\t// Temporary containers to hold the search results until they can \n\t\t\t\t// be combined in mRecipes \n\t\t\t\tArrayList<Recipe> mRecipesNAME = new ArrayList<Recipe>();\n\t\t\t\tArrayList<Recipe> mRecipesCATEGORY = new ArrayList<Recipe>();\n\t\t\t\tArrayList<Recipe> mRecipesINGREDIENT = new ArrayList<Recipe>();\n\t\t\t\tArrayList<Recipe> mRecipesDESCRIPTION = new ArrayList<Recipe>();\n\t\t\t\tArrayList<Recipe> mRecipesINSTRUCTION = new ArrayList<Recipe>();\n\t\t\t\tIterator<Recipe> iterator = RECIPES.iterator(); \n\t\t\t\t\n\t\t\t\t// Search all recipes in Recipe Box for name matches\n\t\t\t\twhile (iterator.hasNext()){\n\n\t\t\t\t\t// Load the next recipe\n\t\t\t\t\tRecipe recipe = iterator.next();\n\t\t\t\t\t\n\t\t\t\t\t// Check for recipe NAME match\n\t\t\t\t\tif (recipe.nameContains(searchTerm)){\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Positive search result, add to list\n\t\t\t\t\t\tmRecipesNAME.add(recipe);\n\t\t\t\t\t}\n\t\t\t\t\t// Check for recipe CATEGORY match\n\t\t\t\t\telse if (recipe.categoriesContain(searchTerm)) {\n\t\t\t\t\t\n\t\t\t\t\t\t// Positive search result, add to list\n\t\t\t\t\t\tmRecipesCATEGORY.add(recipe);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t// Check for recipe INGREDIENT match\n\t\t\t\t\telse if (recipe.ingredientsContain(searchTerm)) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Positive search result, add to list\n\t\t\t\t\t\tmRecipesINGREDIENT.add(recipe);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t// Check for recipe DESCRIPTION match\n\t\t\t\t\telse if (recipe.descriptionContains(searchTerm)) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Positive search result, add to list\n\t\t\t\t\t\tmRecipesDESCRIPTION.add(recipe);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t// Check for recipe INSTRUCTION match\n\t\t\t\t\telse if (recipe.instructionsContain(searchTerm)) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Positive search result, add to list\n\t\t\t\t\t\tmRecipesINSTRUCTION.add(recipe);\n\t\t\t\t\t\t\n\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// Create an ordered list of recipes from most important to least important\n\t\t\t\tmRecipes.addAll(mRecipesNAME);\n\t\t\t\tmRecipes.addAll(mRecipesCATEGORY);\n\t\t\t\tmRecipes.addAll(mRecipesINGREDIENT);\n\t\t\t\tmRecipes.addAll(mRecipesDESCRIPTION);\n\t\t\t\tmRecipes.addAll(mRecipesINSTRUCTION);\n\t\t\t\t\n\t\t\t\t// Return ordered list of recipes\n\t\t\t\tLog.d(TAG, \"Finish function searchNames\");\n\t\t\t\treturn mRecipes;\n\t\t\t\t\n\t\t\t}",
"void searchDatabase(String userInput)\n {\n List<Recipe> result = this.database.getRecipes(userInput);\n\n recipeListAdapter.updateRecipeList(result);\n }",
"public List<User> list(String currentUsername);",
"public List<Trip> findByUserName( String userName ) {\n\t \n\t List<User> users = ds.find(User.class).filter(\"userName =\", userName).order(\"userName\").asList();\n\t List<Trip> returnTripList = new ArrayList<Trip>();\n\t \n\t for(User aUser: users)\n\t {\n\t \t returnTripList.addAll( aUser.getTrips());\t\n\t \t \n\t }\n\t logger.debug(\"Found {} users with userName {}\", users.size(),userName);\n\t logger.debug(\"Total of {} trips\", returnTripList.size());\n\t return returnTripList;\n\t \n\t \n\t //Using Regular Expressions\n\t //Pattern regExp = Pattern.compile(userName + \".*\", Pattern.CASE_INSENSITIVE);\n\t //return ds.find(User.class).filter(\"userName\", regExp).order(\"userName\").asList();\n\t}",
"public static String findUser(String username) {\n URL url = null;\n HttpURLConnection connection = null;\n String methodPath = \"/entities.credential/findByCredential/\";\n String textResult = \"\";\n try {\n url = new URL(BASE_URI + methodPath + username);\n\n connection = (HttpURLConnection) url.openConnection();\n // set the time out\n connection.setReadTimeout(10000);\n connection.setConnectTimeout(15000);\n // set the connection method to GET\n connection.setRequestMethod(\"GET\");\n //add http headers to set your response type to json\n connection.setRequestProperty(\"Content-Type\", \"application/json\");\n connection.setRequestProperty(\"Accept\", \"application/json\");\n //Read the response\n Scanner inStream = new Scanner(connection.getInputStream());\n //read the input stream and store it as string\n\n while (inStream.hasNextLine()) {\n textResult += inStream.nextLine();\n }\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n connection.disconnect();\n }\n return textResult;\n }",
"public Set getTickets(String username);",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface ProgramRepository extends JpaRepository<Program, Long> {\n\n @Query(\"select program from Program program where program.user.login = ?#{principal.username}\")\n List<Program> findByUserIsCurrentUser();\n\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface TaskRepository extends JpaRepository<Task,Long> {\n\n @Query(\"select task from Task task where task.user.login = ?#{principal.username}\")\n List<Task> findByUserIsCurrentUser();\n\n}",
"List<ClientResponse> findUsersClient(User user) throws BaseException;",
"@RequestMapping(method = RequestMethod.GET, value = \"/recipes\", produces = MediaType.APPLICATION_JSON_VALUE)\n public RecipesDescriptor getRecipes() {\n final Stream<Recipe> stream = StreamSupport.stream(this.recipeRepository.findAll().spliterator(), false);\n\n final List<Recipe> recipes = stream.collect(Collectors.toList());\n return new RecipesDescriptor(recipes);\n }",
"List<Todo> findByUser(String user);",
"private static List<Quest> getQuests(Key userKey) {\n\t\treturn dao.query(Quest.class).setAncestor(userKey).prepare().asList();\n\t}",
"public ArrayList<Bookser> rented_books(int user_id) {\n startSession();\n\n Query q = session.createQuery(\"from Rent where rentee = :r\").setFirstResult(0);\n q.setParameter(\"r\", new User (user_id));\n\n List rents = q.getResultList();\n ArrayList<Bookser> book_objects = new ArrayList<>();\n\n for (Object rent: rents) {\n Rent r = (Rent) rent;\n Book b = r.getBook();\n Bookser bser = new Bookser(b.getId(), b.getName(), b.getAuthor(), b.getRent(), b.getDeposit());\n book_objects.add(bser);\n }\n\n System.out.println(\"Successful queries!\");\n endSession();\n return book_objects;\n }",
"public Recipe findRecipeDetails(String selectedRecipeName){\r\n for (int i = 0; i < listOfRecipes.size(); i++) {\r\n if (listOfRecipes.get(i).getRecipeName().equals(selectedRecipeName)) {\r\n Recipe recipeToAdjust = listOfRecipes.get(i);\r\n printAdjustedRecipeDetails(recipeToAdjust);\r\n }\r\n }\r\n return recipeToAdjust;\r\n }",
"@Override\n public Iterable<Rating> findRatingsByUser(CafeteriaUser user) {\n return match(e -> e.user().equals(user));\n }",
"public Set<Account> getAccountsForOwner(String username);",
"@Transactional(value = \"cleia-txm\", readOnly = true)\n public List<Medical> getMedicalUser(GridRequest filters, String username) {\n List<Medical> lm = new ArrayList<Medical>();\n Medical m = (Medical) entityManager.createQuery(\"select m from Medical m where m.username = :username\").setParameter(\"username\", username).getSingleResult();\n if (m instanceof Medical) {\n Medical medical = (Medical) m;\n medical.getPatient().getUser().getGroups().size();\n medical.getPatient().getUser().getRoles().size();\n medical.getPatient().getUser().getIds().size();\n medical.getPatient().getProcessInstances().size();\n lm.add(medical);\n \n }\n return lm;\n \n }",
"public RestaurantDetails getRestaurantDetails(String userName, String password);",
"@Override\n public void onClick(View view){\n String username = search.getText().toString();\n String userid = \"\";\n if (users != null) {\n for (String id : users.keySet()) {\n if (users.get(id).getUserName().equals(username)){\n userid = id;\n break;\n }\n }\n if (userid.equals(\"\")){\n Toast.makeText(getContext(), \"No Such User\", Toast.LENGTH_LONG).show();\n } else {\n readUserInfo(userid, username);\n Toast.makeText(getContext(), \"Loading User\", Toast.LENGTH_SHORT).show();\n }\n } else {\n Toast.makeText(getContext(), \"Loading User List\", Toast.LENGTH_SHORT).show();\n }\n }",
"private void queryStoriesFromUser() {\n ParseQuery<Story> query = ParseQuery.getQuery(Story.class);\n // include objects related to a story\n query.include(Story.KEY_AUTHOR);\n query.include(Story.KEY_ITEM);\n query.include(Story.KEY_LIST);\n query.include(Story.KEY_CATEGORY);\n // where author is current user and order by time created\n query.whereEqualTo(Story.KEY_AUTHOR, user);\n query.orderByDescending(Story.KEY_CREATED_AT);\n query.findInBackground((stories, e) -> {\n mUserStories.clear();\n for (int i = 0; i < stories.size(); i++) {\n Story story = stories.get(i);\n Item item = (Item) story.getItem();\n mUserStories.add(story);\n queryPhotosInStory(story, item);\n }\n\n if (stories.size() == 0) {\n emptyLayout.setVisibility(View.VISIBLE);\n } else {\n emptyLayout.setVisibility(View.GONE);\n }\n });\n }",
"public List<String> getByName(String name) {\r\n List<String> listOfUser = new ArrayList<>();\r\n for(User user : userRepository.findByName(name)){\r\n listOfUser.add(user.toString());\r\n }\r\n return listOfUser;\r\n }",
"@Override\n\tpublic List<UserMaster> getUserMasterByUserName(String username) throws ResourceNotFoundException {\t\t\n\t\tList<UserMaster> userMaster = new ArrayList<UserMaster>(); \n\t\ttry {\n\t\t\tuserMaster = userMasterDaoImpl.getUserMasterByUserName(username);\n\t\t}catch(EmptyResultDataAccessException ex) {\n\t\t\tthrow new ResourceNotFoundException(String.format(ParConstants.dataNotFound + \"for User Master %S\",username));\t\n\t\t}catch(DataAccessException ex) { \n\t\t\tthrow new ResourceAccessException(ParConstants.databaseAccessIssue); \n\t\t}\n\n\t\treturn userMaster;\n\t\t\n\t}",
"@Override\n\tpublic List<String> findAllUsername() {\n\t\treturn userDao.findAllUsername();\n\t}",
"public void viewRecipes(View v){\n Intent intent = new Intent(CreateGroceryList.this, IngredientSearchResults.class);\n Bundle args = new Bundle();\n args.putSerializable(\"ingredientList\", (Serializable)ingredientModelList);\n intent .putExtra(\"bundle\", args);\n startActivity(intent);\n }",
"public boolean authenticateIngredient(String ingredName, User user) {\n\t\tIngredient ingredient = iRepo.findByName(ingredName);\n // if we can't find it by name, return false\n if(ingredient == null) {\n return false;\n }\n //or if the ingredient has already been added to this user's pantry, send false\n if(user.getBar_stock().contains(ingredient)){\n \treturn false;\n } else {\n //otherwise, the ingred both exists in DB and not in user pantry. Return true.\n \treturn true;\n }\n }",
"Observable<List<Recipe>> getRecipes();",
"@Query(\"SELECT n FROM Note n WHERE (LOWER(n.owner) =LOWER(?1) OR LOWER(n.created_by) = LOWER(?1) OR n.is_public = true) AND n.is_deleted = false ORDER BY n.generated_at DESC\")\n\tList<Note> getAll(String username, String roles);",
"List<QnowUser> findAll();",
"public List<Ingredient> readAllIngredients() {\n\t\tIngredientDataMapper idm = new IngredientDataMapper();\n\t\tList<Ingredient> allIngredients = new ArrayList<Ingredient>();\n\t\tallIngredients = idm.readAll();\n\t\treturn allIngredients;\n\t\t\n\t}",
"@Test\n\t@WithMockCustomUser(username = \"daniel\")\n\tpublic void recipeDetailPageLoads() throws Exception {\n\t\tUser user = userBuilder();\n\t\tRecipe recipe = recipeBuilder(1L);\n\n\t\twhen(recipeService.findById(1L)).thenReturn(recipe);\n\t\twhen(userService.findByUsername(\"daniel\")).thenReturn(user);\n\n\t\tmockMvc.perform(get(\"/recipes/1\"))\n\t\t\t\t.andExpect(status().isOk())\n\t\t\t\t.andExpect(authenticated())\n\t\t\t\t.andExpect(model().attributeExists(\"recipe\"));\n\n\t\tverify(recipeService).findById(any(Long.class));\n\t\tverify(userService).findByUsername(any(String.class));\n\t}",
"List<UserReward> getUserRewards(String userName) throws UserNotFoundException;",
"public String matchIngredientsToRecipes() {\n String query = \"SELECT DISTINCT r.id, r.name, count(RecipeID) AS count FROM recipes AS r JOIN ingredientamount AS i ON r.id = i.RecipeID where i.IngredientID IN (\";\n\n for (int i = 0; i < selectedIngredients.size(); i++) {\n if (i != 0) {\n query = query + \",\";\n }\n query = query + selectedIngredients.get(i);\n }\n query = query + \") GROUP BY RecipeID\";\n return query;\n }",
"@Transactional(readOnly=true)\n\t@Override\n\tpublic List<Prenotazione> getPrenotazioneByUtente(String username){\n\t\treturn this.prenotazioneRepository.getPrenotazioneByUtente(username);\n\t}",
"@GetMapping(\"/username/{username}\")\r\n public List<ReviewDetails> getReviewByUserName(@PathVariable(\"username\") String username){\r\n return reviewRepository.getReviewByUsername(username);\r\n }",
"public ArrayList<String> recipeNameList(){\n\t\t\n\t\tLog.d(TAG, \"Create list of recipe names\");\n\t\t\n\t\t//Temp variable to hold the recipe names\n\t\tArrayList<String> recipeNames = new ArrayList<String>();\n\t\t\n\t\t//Iterator for moving through the recipe list\n\t\tIterator<Recipe> iterator = RECIPES.iterator();\n\t\t\n\t\t// Gather the names of all of the recipes\n\t\twhile(iterator.hasNext()){\n\t\t\trecipeNames.add(((Recipe) iterator.next()).getName());\n\t\t}\n\t\t\n\t\t// If the recipe box is empty return null\n\t\tif (recipeNames.size() == 0)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\t// Return the ArrayList of recipe names\n\t\treturn recipeNames;\n\t}",
"public ArrayList<Person> getPersons(String username) throws DataAccessException {\n Person person;\n ArrayList<Person> people = new ArrayList<>();\n ResultSet rs = null;\n String sql = \"SELECT * FROM persons WHERE assoc_username = ?;\";\n try(PreparedStatement stmt = conn.prepareStatement(sql)) {\n stmt.setString(1, username);\n rs = stmt.executeQuery();\n while (rs.next()) {\n person = new Person(rs.getString(\"person_id\"), rs.getString(\"assoc_username\"),\n rs.getString(\"first_name\"), rs.getString(\"last_name\"),\n rs.getString(\"gender\"), rs.getString(\"father_id\"),\n rs.getString(\"mother_id\"), rs.getString(\"spouse_id\"));\n people.add(person);\n }\n return people;\n } catch (SQLException e) {\n e.printStackTrace();\n throw new DataAccessException(\"Error encountered while finding person\");\n } finally {\n if (rs != null) {\n try {\n rs.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }\n }\n }",
"public void printAllRecipeNames() {\r\n for (Recipe currentRecipe : listOfRecipes) {\r\n System.out.println(currentRecipe.getRecipeName());\r\n }\r\n }",
"@GET(Url.END_POINT)\n Call<ArrayList<Recipe>> getRecipes();",
"public List<ShelfItem> getAllWishlist(String filter, String username, Integer from, Integer to);",
"public ArrayList<String> findUserID(String username) {\n DataManager.getUsers getUser = new DataManager.getUsers(getActivity());\n ArrayList<String> queryList = new ArrayList<>();\n ArrayList<User> usersList = new ArrayList<>();\n\n queryList.add(\"username\");\n queryList.add(username);\n getUser.execute(queryList);\n\n try {\n usersList = getUser.get();\n } catch (Exception e) {}\n\n if (!usersList.isEmpty()) {\n String stringQuery = usersList.get(0).getID();\n queryList.clear();\n queryList.add(stringQuery);\n }\n\n return queryList;\n }",
"@Override\r\n\tpublic List<User> search(String name) {\n\t\treturn null;\r\n\t}",
"public List<Usuario> buscaUsuarioNome(String nome) {\r\n\t\tList<Usuario> retorno = new LinkedList<Usuario>();\r\n\r\n\t\tfor (Usuario usuario : listaDeUsuarios) {\r\n\t\t\tif (usuario.getNome().equals(nome)) {\r\n\t\t\t\tretorno.add(usuario);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn retorno;\r\n\t}",
"public List<ShelfItem> getAllShelf(String filter, String username, Integer from, Integer to);",
"public Page<ExtraUser> getAllByUser(Pageable pageable) {\n log.debug(\"Request extra info by User: {}\", SecurityUtils.getCurrentUserLogin());\n Optional<User> login = userRepository.findOneByLogin(SecurityUtils.getCurrentUserLogin());\n return extraUserRepository.findAllByUser(pageable,login.isPresent() ? login.get() : null);\n }",
"@Override\r\n\tpublic List findAll() {\n\t\treturn usermaindao.findAll();\r\n\t}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface ReservationRepository extends JpaRepository<Reservation, Long> {\n @Query(\"select reservation from Reservation reservation where reservation.user.login = ?#{principal.preferredUsername}\")\n List<Reservation> findByUserIsCurrentUser();\n}",
"public static List<RecipeItemSelector> getRequireItemsFromRecipe(IRecipe recipe){\n\t\tif(recipe instanceof ShapelessRecipes){\n\t\t\tList<ItemStack> isList = ((ShapelessRecipes)recipe).recipeItems;\n\t\t\treturn isList.stream().map(input -> RecipeItemSelector.of(input, null)).collect(Collectors.toList());\n\t\t}\n\t\tif(recipe instanceof ShapedRecipes){\n\t\t\tItemStack[] isarray = ((ShapedRecipes)recipe).recipeItems;\n\n\t\t\treturn Lists.<ItemStack>newArrayList(isarray).stream().map( is ->RecipeItemSelector.of(is, null)).collect(Collectors.toList());\n\t\t}\n\t\tif(recipe instanceof ShapelessOreRecipe){\n\n\n\n\t\t\tList<RecipeItemSelector> list1 = (((ShapelessOreRecipe)recipe).getInput()).stream().filter(obj -> obj instanceof ItemStack)\n\t\t\t\t\t.map(obj -> RecipeItemSelector.of((ItemStack)obj, null)).collect(Collectors.toList());\n\t\t\tList<RecipeItemSelector> list2 = (((ShapelessOreRecipe)recipe).getInput()).stream().filter(obj -> obj instanceof String)\n\t\t\t\t\t.map(obj -> RecipeItemSelector.of(null, new OreDict((String)obj))).collect(Collectors.toList());\n\t\t\tList<RecipeItemSelector> rt = Lists.newArrayList();\n\t\t\trt.addAll(list1);\n\t\t\trt.addAll(list2);\n\t\t\treturn rt;\n\n\t\t}\n\t\tif(recipe instanceof ShapedOreRecipe){\n\t\t\tObject[] isarray = ((ShapedOreRecipe)recipe).getInput();\n\t\t\tList<Object> objList = Lists.newArrayList(isarray);\n\t\t\tobjList.stream().flatMap(obj ->{\n\t\t\t\t//\t\t\t\t\tUnsagaMod.logger.trace(\"recipe\", input.getClass());\n\t\t\t\tList<RecipeItemSelector> rt = Lists.newArrayList();\n\t\t\t\tif(obj instanceof List){\n\t\t\t\t\t//\t\t\t\t\t\tUnsagaMod.logger.trace(\"shaped\", \"array\");\n\t\t\t\t\trt.addAll(convertListTypeObject(obj));\n\t\t\t\t}\n\t\t\t\tif(obj instanceof ItemStack){\n\t\t\t\t\t//\t\t\t\t\t\tUnsagaMod.logger.trace(\"shaped\", \"itemstack\");\n\t\t\t\t\tList<RecipeItemSelector> list = Lists.newArrayList(RecipeItemSelector.of((ItemStack)obj, null));\n\t\t\t\t\trt.addAll(list);\n\t\t\t\t}\n\n\t\t\t\t//\t\t\t\t\tif(objs!=null){\n\t\t\t\t//\t\t\t\t\t\tObject[] objarray = (Object[]) objs;\n\t\t\t\t//\t\t\t\t\t\treturn ListHelper.stream(objarray).map(new Function<Object,Tuple<ItemStack,OreDict>>(){\n\t\t\t\t//\n\t\t\t\t//\t\t\t\t\t\t\t@Override\n\t\t\t\t//\t\t\t\t\t\t\tpublic Tuple<ItemStack, OreDict> apply(Object input) {\n\t\t\t\t//\t\t\t\t\t\t\t\tUnsagaMod.logger.trace(\"shaped\", input);\n\t\t\t\t//\t\t\t\t\t\t\t\tif(input instanceof ItemStack){\n\t\t\t\t//\t\t\t\t\t\t\t\t\treturn Tuple.of((ItemStack)input,null);\n\t\t\t\t//\t\t\t\t\t\t\t\t}\n\t\t\t\t//\t\t\t\t\t\t\t\tif(input instanceof String){\n\t\t\t\t//\t\t\t\t\t\t\t\t\treturn Tuple.of(null, new OreDict((String) input));\n\t\t\t\t//\t\t\t\t\t\t\t\t}\n\t\t\t\t//\t\t\t\t\t\t\t\treturn null;\n\t\t\t\t//\t\t\t\t\t\t\t}}\n\t\t\t\t//\t\t\t\t\t\t).getList();\n\t\t\t\t//\t\t\t\t\t}\n\n\t\t\t\treturn rt.stream();\n\t\t\t});\n\t\t}\n\t\tHSLib.logger.trace(\"recipeutil\", \"どのレシピにも合致しない?\");\n\t\treturn Lists.newArrayList();\n\t}",
"@Override\n @Transactional(readOnly = true)\n public List<NominationDTO> findAll() {\n log.debug(\"Request to get all Nominations\");\n\n if(SecurityUtils.isCurrentUserInRole(AuthoritiesConstants.ADMIN))\n return _nomNominationRepository.findAll().stream()\n .map(_nominationMapper::toDto)\n .collect(Collectors.toCollection(LinkedList::new));\n else\n return findAllNomsForTheCurrentUser();\n\n }",
"@Override\n\tpublic List<Recipe> findByIngredients(List<String> ingredients) {\n\t\treturn null;\n\t}",
"public boolean isAlreadyFavorited(){\r\n if(ui.isIsUserAuthenticated()){\r\n Users user = ui.getUser();\r\n if(user.getFavorites() != null){\r\n return user.getFavorites().contains(recipe);\r\n }\r\n else{\r\n return false;\r\n }\r\n }\r\n else{\r\n return false;\r\n }\r\n }",
"@RequestMapping(\"/indexRecipe\")\r\n\tpublic ModelAndView listRecipes() {\r\n\t\tModelAndView mav = new ModelAndView();\r\n\r\n\t\tmav.addObject(\"recipes\", recipeService.loadRecipes());\r\n\r\n\t\tmav.setViewName(\"recipe/listRecipes.jsp\");\r\n\r\n\t\treturn mav;\r\n\t}",
"List<UserRepresentation> getUsers(final String realm);",
"public List<ShelfItem> getAll(String username, Integer from, Integer to);",
"public JobRecruiter getJobRecruiter(String username)\n {\n int index = 0;\n JobRecruiter human = new JobRecruiter();\n \n for (JobRecruiter person : jobRecruiterList)\n {\n if (person.getUserName().equalsIgnoreCase(username))\n {\n human = jobRecruiterList.get(index);\n break;\n }\n index = index + 1;\n }\n \n return human;\n }",
"@Override\n\tpublic List<MyFile> FindByUserName(String username) {\n\t\tList<MyFile> files=new ArrayList<MyFile>();\n\t\tfiles=fdi.FindByUserName(username);\n\t\treturn files;\n\t}",
"User findByCredential(Credential credential);"
] |
[
"0.7147295",
"0.6726249",
"0.6173398",
"0.6144184",
"0.6053309",
"0.59554553",
"0.5910091",
"0.5845245",
"0.56374085",
"0.5453146",
"0.54213756",
"0.54109854",
"0.5408161",
"0.53832126",
"0.5364825",
"0.53506553",
"0.5298117",
"0.52746254",
"0.52573895",
"0.52230436",
"0.52070034",
"0.5200377",
"0.51955813",
"0.5153508",
"0.5144019",
"0.51394945",
"0.513827",
"0.5113715",
"0.5094973",
"0.50843364",
"0.5076387",
"0.50735456",
"0.5071392",
"0.50613755",
"0.5052701",
"0.5050795",
"0.5042419",
"0.5034424",
"0.5018925",
"0.50051796",
"0.4984301",
"0.49759534",
"0.49758142",
"0.49674943",
"0.49616256",
"0.4937411",
"0.49326444",
"0.49297282",
"0.4928937",
"0.49289128",
"0.4927584",
"0.4923834",
"0.49213704",
"0.4886773",
"0.4873811",
"0.48736203",
"0.4873244",
"0.48673335",
"0.48652214",
"0.4859254",
"0.4850266",
"0.4847858",
"0.4836557",
"0.48327217",
"0.48326594",
"0.48316622",
"0.4821528",
"0.4821126",
"0.48202252",
"0.48198953",
"0.48137766",
"0.48137316",
"0.48069206",
"0.48043275",
"0.4803454",
"0.48018003",
"0.47902733",
"0.47765094",
"0.47728893",
"0.4771398",
"0.4769198",
"0.47689858",
"0.47680843",
"0.4765743",
"0.47653982",
"0.47593948",
"0.47573864",
"0.4757288",
"0.47425124",
"0.47334433",
"0.47309157",
"0.47290924",
"0.47191465",
"0.4717672",
"0.47158092",
"0.47153425",
"0.4714442",
"0.4713186",
"0.47098938",
"0.4706007"
] |
0.7098732
|
1
|
TODO Autogenerated method stub
|
@Override
public String exeFunc(ModelAction modelAction, ModelService modelService)
{
String loginName = modelAction.getRequest().getParameter("LOGIN_NAME");
String dataAuth = String.valueOf(modelAction.getRequest().getSession().getAttribute("mcDataAuth"));
Map<String, String> map = new HashMap<String, String>();
String sql="select name from sy_user ";
String sqlWhere = " where 1 = 1 ";
if (StringUtils.isNotBlank(loginName)) {
sqlWhere += " and id =:loginName1 ";
map.put("loginName1", loginName);
}
sqlWhere += " and DATA_AUTH =:DATA_AUTH ";
map.put("DATA_AUTH", dataAuth);
List list = modelService.listSql(sql+sqlWhere,null,map, null, null);
CommMethod.listToEscapeJs(list);
modelAction.setAjaxList(list);
return BaseActionSupport.AJAX;
}
|
{
"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
|
Get the component of each node. The integer denoting the component is the ID of a representative node in the component.
|
public int[] get() {
return res;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"protected Node getComponentNode() {\n return componentNode;\n }",
"private List<List<XGraph.XVertex>> getComponents() {\n scc = new SCC(graph);\n int componentCount = scc.findSSC();\n List<List<XGraph.XVertex>> components = new ArrayList<>();\n for (int i = 0; i < componentCount; i++) {\n components.add(new ArrayList<>());\n }\n for (Graph.Vertex vertex : graph) {\n CC.CCVertex component = scc.getCCVertex(vertex);\n components.get(component.cno - 1).add((XGraph.XVertex) vertex);\n }\n return components;\n }",
"public CachetComponentList getComponents() {\n JsonNode rootNode = get(\"components\");\n CachetComponentList compList = CachetComponentList.parseRootNode(rootNode);\n return compList;\n }",
"public List<LComponent> getComponents()\n\t{\n\t\treturn this.components;\n\t}",
"public List<GComponent> getComponents()\n {\n return this.components;\n }",
"public ImmutableComponent[] getComponents(){\n\t return this.components;\n\t}",
"protected abstract Object[] getComponents();",
"public int components() {\n return numOfComponents;\n }",
"public String getComponent() {\r\n\t\treturn component;\r\n\t}",
"public Entity getComponent() {\n return component;\n }",
"public String getComponent() {\n return this.component;\n }",
"Set<Component> getComponents();",
"public Component getComponent() {\n return component;\n }",
"public String getComponentId() {\n \t\treturn componentId;\n \t}",
"public org.apache.axis.types.Token getComponentID() {\n return componentID;\n }",
"public static Class getComponentType(final Node n) {\r\n return (Class) n.getProperty(COMPONENT_TYPE);\r\n }",
"public ResourceId component() {\n return this.component;\n }",
"public int getComponentID() {\n return COMPONENT_ID;\n }",
"public final Set<MindObject> getComponents(){\n Set<MindObject> components = new HashSet<>();\n\n components.add(this);\n\n for (MindObject subComponent: getDirectSubComponents()){\n components.add(subComponent);\n components.addAll(subComponent.getDirectSubComponents());\n }\n\n return components;\n }",
"public int getNumberOfComponents() {\n return components;\n }",
"public static List<Component> getLComponent(Connector c)\n\t{\n\t\tList<Component> LComponent = new java.util.LinkedList<Component>();\n\t\tfor(Object o : c.getActualPort())\n\t\t{\n\t\t\tInnerPortReference ipr = (InnerPortReference) o;\n\t\t\tLComponent.add((Component)ipr.getTargetInstance().getTargetPart());\n\t\t}\n\t\treturn LComponent;\n\t}",
"public Component getComponent() {\n\treturn component;\n}",
"public List getPortletComponents() {\n return components;\n }",
"public List getComponentIdentifierList() {\n return componentIdentifiers;\n }",
"@Override\n public OgcPropertyList<AbstractProcess> getComponentList()\n {\n return components;\n }",
"public TriangleNet3DComp getNetComponent() {\n\t\treturn comp;\n\t}",
"public JComponent getComponent() {\n return itsComp;\n }",
"public List<ComponentType> getComponentsType() {\r\n\t\treturn ctDao.findAll();\r\n\t}",
"public ArrayList<String> getComponents() {\n\t\treturn this.components;\n\t}",
"public abstract JComponent[] getComponents();",
"public List<CriticalComponent> getCriticalComponents();",
"@Override\n public int getNumComponents()\n {\n return components.size();\n }",
"public int getNumberOfComponents();",
"protected LttlComponent getHostComponent()\n\t{\n\t\tif (hostCompId < 0) return null;\n\t\treturn Lttl.scenes.findComponentByIdAllScenes(hostCompId);\n\t}",
"Component getComponent() {\n/* 224 */ return this.component;\n/* */ }",
"public ComponentType getComponentType()\n {\n return this.componentType;\n }",
"@Override\n\tpublic ElementView getComponent() {\n\t\treturn jc;\n\t}",
"static int[] componentsInGraph(int[][] gb) {\n\n // **** maximum number of nodes ****\n // final int MAX_ELEMENTS = ((15000 + 1) * 2);\n\n // **** instantiate the class ****\n // DisjointUnionSets dus = new DisjointUnionSets(MAX_ELEMENTS);\n DisjointUnionSets dus = new DisjointUnionSets(totalNodes);\n\n // **** populate unions ****\n for (int i = 0; i < gb.length; i++) {\n\n // **** update union ****\n dus.union(gb[i][0], gb[i][1]);\n\n // ???? ????\n System.out.println(\"componentsInGraph <<< \" + gb[i][0] + \" <-> \" + gb[i][1]);\n System.out.println(\"componentsInGraph <<< dus: \" + dus.toString() + \"\\n\");\n }\n\n // **** compute the min and max values [1] ****\n int[] results = dus.minAndMax();\n\n // ???? ????\n System.out.println(\"componentsInGraph <<< minAndMax: \" + results[0] + \" \" + results[1]);\n\n // **** compute the min and max values [2] ****\n results = dus.maxAndMin();\n\n // ???? ????\n System.out.println(\"componentsInGraph <<< maxAndMin: \" + results[0] + \" \" + results[1]);\n\n // **** return results ****\n return results;\n }",
"protected final Component getComponent()\n\t{\n\t\treturn component;\n\t}",
"public JComponent getComponent();",
"public int getNumberOfComponents() {\n\t\t\treturn nComponents;\n\t\t}",
"public EMAComponentSymbol getComponent() {\n return (EMAComponentSymbol) this.getEnclosingScope().getSpanningSymbol().get();\n }",
"public Component getComponent(int componentId) {\r\n if (opened != null && opened.getId() == componentId) {\r\n return opened;\r\n }\r\n if (chatbox != null && chatbox.getId() == componentId) {\r\n return chatbox;\r\n }\r\n if (singleTab != null && singleTab.getId() == componentId) {\r\n return singleTab;\r\n }\r\n if (overlay != null && overlay.getId() == componentId) {\r\n return overlay;\r\n }\r\n for (Component c : tabs) {\r\n if (c != null && c.getId() == componentId) {\r\n return c;\r\n }\r\n }\r\n return null;\r\n }",
"public Object[] getSuccessorNodes (Object node) throws InvalidComponentException;",
"public UUID getComponentId();",
"public Componente getComponente(int id) {\n\t\ttry {\n\t\t\tfor(Map.Entry<String, ArrayList<Componente>> entry : this.mappaComponenti.entrySet()) {\n\t\t\t\tArrayList<Componente> tempList = entry.getValue();\n\t\t\t\tfor(Componente c : tempList) {\n\t\t\t\t\tif(c.getId() == id) return c;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn null;\n\t\t} catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}",
"public List<Component> getNodesByParent(long parentId) {\n\t\tList<Component> cList = sessionFactory.getCurrentSession().createQuery(\"from Component c where c.parentId = ?\")\n\t\t.setParameter(0, parentId)\n\t\t.list();\n\t\treturn cList;\n\t}",
"@Override\n\tpublic Component getComponent() {\n\t\treturn p;\n\t}",
"protected final Map getComponentMap()\n {\n return m_components;\n }",
"void visitElement_component(org.w3c.dom.Element element) { // <component>\n // element.getValue();\n org.w3c.dom.NamedNodeMap attrs = element.getAttributes();\n for (int i = 0; i < attrs.getLength(); i++) {\n org.w3c.dom.Attr attr = (org.w3c.dom.Attr)attrs.item(i);\n if (attr.getName().equals(\"name\")) { // <component name=\"???\">\n component = new ProductComponent();\n component.name = attr.getValue();\n list.components.add(component);\n }\n }\n org.w3c.dom.NodeList nodes = element.getChildNodes();\n for (int i = 0; i < nodes.getLength(); i++) {\n org.w3c.dom.Node node = nodes.item(i);\n switch (node.getNodeType()) {\n case org.w3c.dom.Node.CDATA_SECTION_NODE:\n // ((org.w3c.dom.CDATASection)node).getData();\n break;\n case org.w3c.dom.Node.ELEMENT_NODE:\n org.w3c.dom.Element nodeElement = (org.w3c.dom.Element)node;\n if (nodeElement.getTagName().equals(\"subcomponent\")) {\n visitElement_subcomponent(nodeElement);\n }\n break;\n case org.w3c.dom.Node.PROCESSING_INSTRUCTION_NODE:\n // ((org.w3c.dom.ProcessingInstruction)node).getTarget();\n // ((org.w3c.dom.ProcessingInstruction)node).getData();\n break;\n }\n }\n }",
"public Component getComponent(long id) {\n\t\treturn (Component)sessionFactory.getCurrentSession().get(Component.class, id);\n\t}",
"public List<Component> getNodesByLevel(int level) {\n\t\treturn sessionFactory.getCurrentSession().createQuery(\"from Component c where c.level = ?\")\n\t\t.setParameter(0, level)\n\t\t.list();\n\t}",
"public String getComponentId();",
"public Object[] getNameComponentIDs() {\n\t\tif (_nameComponentIDs != null)\n\t\t\treturn _nameComponentIDs.toArray();\n\t\telse\n\t\t\treturn null;\n\t}",
"public ComponentNode getNode(Component comp) {\n if (comp == null) {\n return (ComponentNode)getRoot();\n }\n ComponentNode node = (ComponentNode)map.get(comp);\n if (node == null) {\n Component parentComp = getParent(comp);\n ComponentNode parent = getNode(parentComp);\n if (parent == null) {\n return getNode(parentComp);\n }\n // Fall back to parent if no child matches.\n node = parent;\n for (int i=0;i < parent.getChildCount();i++) {\n ComponentNode child = (ComponentNode)parent.getChildAt(i);\n if (child.getComponent() == comp) {\n node = child;\n break;\n }\n }\n }\n return node;\n }",
"public Class<?> getComponentType();",
"@Override\n public abstract String getComponentType();",
"public String getCoda2Component() {\n return coda2Component;\n }",
"@Override\n\tpublic Component getComponent() {\n\t\treturn this;\n\t}",
"public Enumeration components() {\n\t\treturn null;\n\t}",
"public Object getComponentEditPart() {\n\t\treturn componentEditPart;\n\t}",
"default Stream<Sketch> components() {\n return StreamExt.iterate(1, size(), 1).mapToObj(this::component).map(Optional::get);\n }",
"@Override\r\n public Collection<Component> selectComponentsList( Plugin plugin )\r\n {\r\n Collection<Component> componentList = new ArrayList<Component>( );\r\n DAOUtil daoUtil = new DAOUtil( SQL_QUERY_SELECTALL, plugin );\r\n daoUtil.executeQuery( );\r\n\r\n while ( daoUtil.next( ) )\r\n {\r\n Component component = new Component( );\r\n\r\n component.setId( daoUtil.getInt( 1 ) );\r\n component.setGroupId( daoUtil.getString( 2 ) );\r\n component.setTitle( daoUtil.getString( 3 ) );\r\n component.setDescription( daoUtil.getString( 4 ) );\r\n component.setArtifactId( daoUtil.getString( 5 ) );\r\n component.setVersion( daoUtil.getString( 6 ) );\r\n component.setComponentType( daoUtil.getString( 7 ) );\r\n\r\n componentList.add( component );\r\n }\r\n\r\n daoUtil.free( );\r\n\r\n return componentList;\r\n }",
"public Component getComponent() {\n if (getUserObject() instanceof Component)\n return (Component)getUserObject();\n return null;\n }",
"@Override\n public AbstractProcess getComponent(String name)\n {\n return components.get(name);\n }",
"public float GetComponent(int n_x, int n_y) {\n \n\t/*\n\tinputs--\n\t\n\tn_x :\n\t The first index\n\tn_y :\n\t The second index\n\t*/\n\t\n\t/*\n\toutputs--\n\t\n\tf_val (implicit) :\n\t The float value at the indexed location of this\n\t*/\n\t\n\treturn this.mat_f_m[n_x][n_y];\n \n }",
"@Override\n\tpublic int getNodes() {\n\t\treturn model.getNodes();\n\t}",
"public Vector getSourceComponents();",
"public double componentX () {\n\t\tdouble component = 0;\n\t\tcomponent = this.magnitude*Math.cos(this.angle);\n\t\treturn component;\n\t}",
"public static JComponent[] generateComponents(int n) {\r\n\t\tRandom r = new Random(0);\r\n\t\tJComponent[] c = new JComponent[n];\r\n\t\tint m = n;\r\n\t\twhile (m > 0) {\r\n\t\t\tint i = r.nextInt(n);\r\n\t\t\tif (c[i] == null) {\r\n\t\t\t\tc[i] = new JLabel(\"Component \" + i, null, SwingConstants.CENTER);\r\n\t\t\t\tint w = 5 * (2 + r.nextInt(20));\r\n\t\t\t\tint h = 5 * (2 + r.nextInt(20));\r\n\t\t\t\tc[i].setPreferredSize(new Dimension(w, h));\r\n\t\t\t\tc[i].setBorder(new EtchedBorder());\r\n\t\t\t\tm --;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn c;\r\n\t}",
"public String componentName(int index) {\n\treturn(comp[index]);\n }",
"public ReactorResult<org.ontoware.rdf2go.model.node.Node> getAllComposer_asNode_() {\r\n\t\treturn Base.getAll_as(this.model, this.getResource(), COMPOSER, org.ontoware.rdf2go.model.node.Node.class);\r\n\t}",
"io.netifi.proteus.admin.om.Node getNodes(int index);",
"void visitElement_components(org.w3c.dom.Element element) { // <components>\n // element.getValue();\n org.w3c.dom.NodeList nodes = element.getChildNodes();\n for (int i = 0; i < nodes.getLength(); i++) {\n org.w3c.dom.Node node = nodes.item(i);\n switch (node.getNodeType()) {\n case org.w3c.dom.Node.CDATA_SECTION_NODE:\n // ((org.w3c.dom.CDATASection)node).getData();\n break;\n case org.w3c.dom.Node.ELEMENT_NODE:\n org.w3c.dom.Element nodeElement = (org.w3c.dom.Element)node;\n if (nodeElement.getTagName().equals(\"component\")) {\n visitElement_component(nodeElement);\n }\n break;\n case org.w3c.dom.Node.PROCESSING_INSTRUCTION_NODE:\n // ((org.w3c.dom.ProcessingInstruction)node).getTarget();\n // ((org.w3c.dom.ProcessingInstruction)node).getData();\n break;\n }\n }\n }",
"@Override\n public List<TopComponent> getTopComponents() {\n synchronized(LOCK_TOPCOMPONENTS) {\n return topComponentSubModel.getTopComponents();\n }\n }",
"public <T extends Control> T[] getComponents(Class<T> clazz) {\r\n final List<Node> lst = new ArrayList<>(10);\r\n spatial.breadthFirstTraversal(new SceneGraphVisitorAdapter() {\r\n @Override\r\n public void visit(Node node) {\r\n if (node.getControl(clazz) != null) {\r\n lst.add(node);\r\n }\r\n }\r\n });\r\n return (T[]) lst.toArray();\r\n }",
"public java.lang.Number getComponent11AsNumber() {\n\t\treturn SwiftFormatUtils.getNumber(getComponent(11));\n\t}",
"public java.lang.Number getComponent1AsNumber() {\n\t\treturn SwiftFormatUtils.getNumber(getComponent(1));\n\t}",
"private Component createComponent(XmlNode node, String id) {\n\n Component comp = null;\n String tag = node.getTag();\n\n if (tag.equals(TAG_PANEL)) {\n comp = layoutContainer(new JPanel(), node, node.getChildren());\n } else if (tag.equals(TAG_BORDER)) {\n comp = layoutBorder(node, node.getChildren());\n } else if (tag.equals(TAG_TEXTINPUT)) {\n int cols = node.getAttribute(ATTR_COLS, -1);\n int rows = node.getAttribute(ATTR_ROWS, -1);\n String value = node.getAttribute(ATTR_VALUE, \"\");\n\n JTextComponent textComp;\n if (rows > 1) {\n if (cols < 0) {\n cols = 30;\n }\n textComp = new JTextArea(value, rows, cols);\n } else {\n if (cols == -1) {\n textComp = new JTextField(value);\n } else {\n textComp = new JTextField(value, cols);\n }\n ((JTextField) textComp).addActionListener(this);\n }\n comp = textComp;\n String action = node.getAttribute(ATTR_ACTION, (String) null);\n if (action != null) {\n componentToAction.put(textComp, action);\n }\n } else if (tag.equals(TAG_MENUITEM) || tag.equals(TAG_CBMENUITEM)) {\n String actionTemplate = null;\n JMenuItem mi;\n String label = node.getAttribute(ATTR_LABEL, \"\");\n String action = node.getAttribute(ATTR_ACTION);\n String value = node.getAttribute(ATTR_VALUE);\n String key = node.getAttribute(ATTR_KEY);\n if ((action == null) && (actionTemplate != null)\n && (value != null)) {\n action = GuiUtils.replace(actionTemplate, \"%value%\", value);\n }\n if ((key != null) && !key.startsWith(\"group:\")) {\n label = label + \" \" + key;\n }\n\n if (node.getTag().equals(TAG_CBMENUITEM)) {\n boolean initValue = node.getAttribute(ATTR_VALUE, true);\n JCheckBoxMenuItem cbmi = new JCheckBoxMenuItem(label,\n initValue);\n String group = node.getAttribute(ATTR_GROUP, (String) null);\n addToGroup(group, cbmi);\n mi = cbmi;\n if (action != null) {\n Hashtable actions = new Hashtable();\n actions.put(ATTR_ACTION, action);\n actions.put(ATTR_VALUE, new Boolean(initValue));\n componentToAction.put(cbmi, actions);\n cbmi.addItemListener(this);\n if ((group == null) || initValue) {\n itemStateChanged(new ItemEvent(cbmi, 0, cbmi,\n ItemEvent.ITEM_STATE_CHANGED));\n }\n }\n\n if (key != null) {\n if (key.startsWith(\"group:\")) {\n if (group != null) {\n key = key.substring(6);\n keyToComponent.put(key.toLowerCase(), group);\n }\n } else {\n keyToComponent.put(key.toLowerCase(), mi);\n }\n }\n } else {\n mi = new JMenuItem(label);\n if (action != null) {\n mi.setActionCommand(action);\n mi.addActionListener(this);\n if (key != null) {\n keyToComponent.put(key.toLowerCase(), mi);\n }\n }\n }\n if (id != null) {\n idToMenuItem.put(id, mi);\n }\n comp = mi;\n } else if (tag.equals(TAG_MENU)) {\n Vector children = node.getChildren();\n JMenu menu = new JMenu(node.getAttribute(ATTR_LABEL, \"\"));\n comp = menu;\n for (int i = 0; i < children.size(); i++) {\n XmlNode childElement = (XmlNode) children.get(i);\n if (childElement.getTag().equals(TAG_SEPARATOR)) {\n menu.addSeparator();\n\n continue;\n }\n Component childComponent = xmlToUi(childElement);\n if (childComponent == null) {\n continue;\n }\n menu.add(childComponent);\n }\n } else if (tag.equals(TAG_MENUBAR)) {\n Vector children = node.getChildren();\n JMenuBar menuBar = new JMenuBar();\n comp = menuBar;\n for (int i = 0; i < children.size(); i++) {\n XmlNode childElement = (XmlNode) children.get(i);\n Component childComponent = xmlToUi(childElement);\n if (childComponent == null) {\n continue;\n }\n menuBar.add(childComponent);\n }\n } else if (tag.equals(TAG_SPLITPANE)) {\n Vector xmlChildren = node.getChildren();\n if (xmlChildren.size() != 2) {\n throw new IllegalArgumentException(\n \"splitpane tag needs to have 2 children \" + node);\n }\n XmlNode leftNode = getReffedNode((XmlNode) xmlChildren.get(0));\n XmlNode rightNode = getReffedNode((XmlNode) xmlChildren.get(1));\n Component leftComponent = xmlToUi(leftNode);\n Component rightComponent = xmlToUi(rightNode);\n boolean continuous = node.getAttribute(ATTR_CONTINUOUS, true);\n int orientation = findValue(node.getAttribute(ATTR_ORIENTATION,\n (String) null), SPLITPANE_NAMES,\n SPLITPANE_VALUES);\n\n JSplitPane split = new JSplitPane(orientation, continuous,\n leftComponent, rightComponent);\n int divider = node.getAttribute(ATTR_DIVIDER, -1);\n if (divider != -1) {\n split.setDividerLocation(divider);\n }\n split.setOneTouchExpandable(\n node.getAttribute(ATTR_ONETOUCHEXPANDABLE, true));\n double resizeweight = node.getAttribute(ATTR_RESIZEWEIGHT, -1.0);\n if (resizeweight != -1.0) {\n split.setResizeWeight(resizeweight);\n }\n comp = split;\n } else if (tag.equals(TAG_LABEL)) {\n String label = node.getAttribute(ATTR_LABEL, \"\");\n comp = new JLabel(label, getAlign(node));\n } else if (tag.equals(TAG_IMAGE)) {\n comp = makeImageButton(node, null, null);\n } else if (tag.equals(TAG_SHAPEPANEL)) {\n comp = new ShapePanel(this, node);\n } else if (tag.equals(TAG_BUTTON)) {\n JButton b = new JButton(node.getAttribute(ATTR_LABEL, \"\"));\n b.setActionCommand(node.getAttribute(ATTR_ACTION, \"No action\"));\n b.addActionListener(this);\n comp = b;\n } else if (tag.equals(TAG_CHOICE)) {\n Choice b = new java.awt.Choice();\n String action = node.getAttribute(ATTR_ACTION,\n (String) null);\n int selected = node.getAttribute(ATTR_SELECTED, 0);\n Hashtable actions = new Hashtable();\n for (int i = 0; i < node.size(); i++) {\n XmlNode child = getReffedNode(node.get(i));\n if ( !child.getTag().equals(TAG_ITEM)) {\n throw new IllegalArgumentException(\"Bad choice item:\"\n + child);\n }\n b.add(child.getAttribute(ATTR_LABEL, \"\"));\n String value = child.getAttribute(ATTR_VALUE, (String) null);\n if (value != null) {\n actions.put(ATTR_VALUE + i, value);\n }\n String subAction = child.getAttribute(ATTR_ACTION,\n (String) null);\n if (subAction != null) {\n actions.put(ATTR_ACTION + i, subAction);\n }\n }\n comp = b;\n if (action != null) {\n actions.put(ATTR_ACTION, action);\n componentToAction.put(b, actions);\n b.select(selected);\n b.addItemListener(this);\n itemStateChanged(new ItemEvent(b, 0, b,\n ItemEvent.ITEM_STATE_CHANGED));\n }\n } else if (tag.equals(TAG_CHECKBOX)) {\n JCheckBox b = new JCheckBox(node.getAttribute(ATTR_LABEL, \"\"),\n node.getAttribute(ATTR_VALUE, false));\n String action = node.getAttribute(ATTR_ACTION, (String) null);\n comp = b;\n if (action != null) {\n componentToAction.put(comp, action);\n b.addItemListener(this);\n itemStateChanged(new ItemEvent(b, 0, b,\n ItemEvent.ITEM_STATE_CHANGED));\n }\n } else {\n comp = new JLabel(\"Unknown tag:\" + tag);\n System.err.println(\"Unknown tag:\" + node);\n }\n\n return comp;\n\n }",
"List<Node> getNodes();",
"public final int component1() {\n return 0;\n }",
"public int getNode() {\r\n\t\t\treturn data;\r\n\t\t}",
"public int getComponentId(int v) {\n return ids[v];\n }",
"public int[] getComponents(Object pixel, int[] components, int offset) {\n int intpixel[];\n if (pixel instanceof int[]) {\n intpixel = (int[])pixel;\n } else {\n intpixel = DataBuffer.toIntArray(pixel);\n if (intpixel == null) {\n throw new UnsupportedOperationException(\"This method has not been \"+\n \"implemented for transferType \" + transferType);\n }\n }\n if (intpixel.length < numComponents) {\n throw new IllegalArgumentException\n (\"Length of pixel array < number of components in model\");\n }\n if (components == null) {\n components = new int[offset+numComponents];\n }\n else if ((components.length-offset) < numComponents) {\n throw new IllegalArgumentException\n (\"Length of components array < number of components in model\");\n }\n System.arraycopy(intpixel, 0, components, offset, numComponents);\n\n return components;\n }",
"public abstract Map<String,List<Component>> getNamedComponents();",
"private String[] getComponentArray(JComponent[] components)\r\n {\r\n\t int len = components.length;\r\n\t String[] values = new String[len];\r\n\t for (int i=0; i<len; i++)\r\n\t {\r\n\t\t values[i] = getComponentValue(components[i]);\r\n\t }\r\n\t return values;\r\n }",
"public Node<T1> getCnode() {\r\n\t\treturn cnode;\r\n\t}",
"public List<ServiceResultInterface> getComponents() {\n\t\treturn components;\n\t}",
"public ComponentLabel getComponentLabel() {\n\t\treturn componentLabel;\n\t}",
"List<Component> getVisualComponents(CallPeer peer);",
"public interface ComponentAgent extends QueryAgent{\r\n\t\r\n\t/**\r\n\t * get ID. of the component.\r\n\t * \r\n\t * @return ID or null if it hasn't.\r\n\t */\r\n\tString getId();\r\n\t\r\n\t/**\r\n\t * get UUID. of the component.\r\n\t * \r\n\t * @return UUID.\r\n\t */\r\n\tString getUuid();\r\n\t\r\n\t/**\r\n\t * get attribute by specify name.\r\n\t * \r\n\t * @param name\r\n\t * attribute name.\r\n\t * @return attribute value or null if not found or otherwise.\r\n\t */\r\n\tObject getAttribute(String name);\r\n\r\n\t/**\r\n\t * get children agents.\r\n\t * \r\n\t * @return always return a list of children (may be empty).\r\n\t */\r\n\tList<ComponentAgent> getChildren();\r\n\r\n\t/**\r\n\t * get child by specify index.\r\n\t * \r\n\t * @param index\r\n\t * @return child agent or null if index is out of boundary.\r\n\t */\r\n\tComponentAgent getChild(int index);\r\n\t\r\n\t/**\r\n\t * Returns the associated owner component of this agent\r\n\t * @return\r\n\t */\r\n\t<T extends Component> T getOwner();\r\n\r\n\t/**\r\n\t * Returns the first child, if any.\r\n\t * \r\n\t * @since 1.2.1\r\n\t * @return the first child agent or null.\r\n\t */\r\n\tComponentAgent getFirstChild();\r\n\t\r\n\t/**\r\n\t * Returns the last child, if any.\r\n\t * \r\n\t * @since 1.2.1\r\n\t * @return the last child agent or null.\r\n\t */\r\n\tComponentAgent getLastChild();\r\n\t\r\n\t/**\r\n\t * Returns the next sibling, if any. \r\n\t * \r\n\t * @since 1.2.1\r\n\t * @return the next sibling agent or null.\r\n\t */\r\n\tComponentAgent getNextSibling();\r\n\t\r\n\t/**\r\n\t * Returns the previous sibling, if any. \r\n\t * \r\n\t * @since 1.2.1\r\n\t * @return the previous sibling agent or null.\r\n\t */\r\n\tComponentAgent getPreviousSibling();\r\n\r\n\t/**\r\n\t * get parent agent.\r\n\t * \r\n\t * @return parent agent or null if this is root agent.\r\n\t */\r\n\tComponentAgent getParent();\r\n\r\n\t/**\r\n\t * get desktop agent this component belonged to.\r\n\t * \r\n\t * @return desktop agent.\r\n\t */\r\n\tDesktopAgent getDesktop();\r\n\r\n\t/**\r\n\t * get page agent this component belonged to.\r\n\t * \r\n\t * @return page agent.\r\n\t */\r\n\tPageAgent getPage();\r\n\t\r\n\t/**\r\n\t * Click on this component, A short cut of {@link ClickAgent#click()} <p/>\r\n\t * If this component doesn't support {@link ClickAgent}, it will throw exception.\r\n\t * @see #as(Class)\r\n\t * @see ClickAgent\r\n\t */\r\n\tvoid click();\r\n\t\r\n\t/**\r\n\t * Type on this component, it is a short cut of {@link InputAgent#type(String)} <p/>\r\n\t * If this component doesn't support {@link InputAgent}, it will throw exception.\r\n\t * @see #as(Class)\r\n\t * @see InputAgent\r\n\t */\r\n\tvoid type(String value);\r\n\t\r\n\t/**\r\n\t * Input to this component, it is a short cut of {@link InputAgent#input(Object)} <p/>\r\n\t * If this component doesn't support {@link InputAgent}, it will throw exception.\r\n\t * @see #as(Class)\r\n\t * @see InputAgent\r\n\t */\r\n\tvoid input(Object value);\r\n\t\r\n\t/**\r\n\t * Focus this component, it is a short cut of {@link FocusAgent#focus()} <p/>\r\n\t * If this component doesn't support {@link FocusAgent}, it will throw exception.\r\n\t * @see #as(Class)\r\n\t * @see FocusAgent\r\n\t */\r\n\tvoid focus();\r\n\t\r\n\t/**\r\n\t * Blur this component, it is a short cut of {@link FocusAgent#blur()} <p/>\r\n\t * If this component doesn't support {@link FocusAgent}, it will throw exception.\r\n\t * @see #as(Class)\r\n\t * @see FocusAgent\r\n\t */\r\n\tvoid blur();\r\n\t\r\n\t/**\r\n\t * Check this component, it is a short cut of {@link CheckAgent#check(boolean)}<p/>\r\n\t * If this component doesn't support {@link CheckAgent}, it will throw exception.\r\n\t * @see #as(Class)\r\n\t * @see CheckAgent\r\n\t */\r\n\tvoid check(boolean checked);\r\n\t\r\n\t/**\r\n\t * Stroke a key on this component, it is a short cut of {@link KeyStrokeAgent#stroke(String)}<p/>\r\n\t * If this component doesn't support {@link KeyStrokeAgent}, it will throw exception.\r\n\t * @see #as(Class)\r\n\t * @see KeyStrokeAgent\r\n\t */\r\n\tvoid stroke(String key);\r\n\t\r\n\t/**\r\n\t * Select this component, it is a short cut of {@link SelectAgent#select()}<p/>\r\n\t * If this component doesn't support {@link SelectAgent}, it will throw exception.\r\n\t * @see #as(Class)\r\n\t * @see SelectAgent\r\n\t */\r\n\tvoid select();\r\n}",
"public int bcNode() {\n return bcIndex;\n }",
"@Override\n\tpublic IComponent getChild(int i) {\n\t\treturn components.get(i);\n\t}",
"public Nodes nodes() {\n return this.nodes;\n }",
"public ClosableIterator<org.ontoware.rdf2go.model.node.Node> getAllConductor_asNode() {\r\n\t\treturn Base.getAll_asNode(this.model, this.getResource(), CONDUCTOR);\r\n\t}",
"private com.tangosol.coherence.Component get_Module()\n {\n return this.get_Parent().get_Parent();\n }",
"private com.tangosol.coherence.Component get_Module()\n {\n return this.get_Parent().get_Parent();\n }",
"private com.tangosol.coherence.Component get_Module()\n {\n return this.get_Parent().get_Parent();\n }",
"private com.tangosol.coherence.Component get_Module()\n {\n return this.get_Parent().get_Parent();\n }",
"public IDomain getComponent(int index);",
"public JComponent getComponent() {\n return getGradleUI().getComponent();\n }"
] |
[
"0.67201984",
"0.6610122",
"0.6431877",
"0.5993136",
"0.5937254",
"0.59322035",
"0.5890706",
"0.58883756",
"0.58883166",
"0.5886278",
"0.58649945",
"0.58394885",
"0.5800209",
"0.5781245",
"0.57496953",
"0.5731496",
"0.57224244",
"0.5721089",
"0.5682973",
"0.5670089",
"0.5660393",
"0.5639061",
"0.56261814",
"0.56177545",
"0.5616134",
"0.56063926",
"0.55861473",
"0.55789584",
"0.55143064",
"0.54998773",
"0.54804087",
"0.5457969",
"0.5432853",
"0.53985506",
"0.5398302",
"0.5388531",
"0.5378076",
"0.53533816",
"0.5340561",
"0.532202",
"0.5303715",
"0.5285525",
"0.52799535",
"0.52783436",
"0.52744466",
"0.52703094",
"0.5266655",
"0.52654856",
"0.52609706",
"0.52606267",
"0.5252802",
"0.5252029",
"0.5235391",
"0.52199185",
"0.51778543",
"0.516991",
"0.5152393",
"0.5149847",
"0.513491",
"0.5127694",
"0.5123679",
"0.511903",
"0.5110606",
"0.51078933",
"0.5100577",
"0.50958854",
"0.50818694",
"0.50750846",
"0.5064829",
"0.5061819",
"0.5056454",
"0.50549436",
"0.50357646",
"0.50300825",
"0.5020492",
"0.5011419",
"0.50053793",
"0.5002916",
"0.50016934",
"0.4986203",
"0.49813458",
"0.49811107",
"0.49785045",
"0.49767625",
"0.4975042",
"0.4974371",
"0.4971816",
"0.49632812",
"0.4960037",
"0.49532077",
"0.49522495",
"0.49478677",
"0.49311993",
"0.4925649",
"0.4920902",
"0.49151906",
"0.49151906",
"0.49151906",
"0.49151906",
"0.49124882",
"0.4912259"
] |
0.0
|
-1
|
/__/////////////////////////////////////////////////////////////////////////////////////////////// ____///////////////////////////////// CONSTRUCTORS //////////////////////////////////////////////// ____///////////////////////////////////////////////////////////////////////////////////////////// Set the String value for this enum
|
ContentType(String value){
_value = value;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"void setValueString(org.hl7.fhir.String valueString);",
"void setValue(java.lang.String value);",
"public void setName(String value)\r\n\t{\r\n\r\n\t\tput(HtmlEnum.name.getAttributeName(), value);\r\n\t}",
"public void setString(String value) {\r\n\t\ttype(ConfigurationItemType.STRING);\r\n\t\tthis.stringValue = value;\r\n\t}",
"public void setValue(java.lang.String value) {\n this.value = value;\n }",
"public void setNameString(String s) {\n nameString = s;\r\n }",
"org.hl7.fhir.String addNewValueString();",
"public void setStringValue(String v)\n {\n this.setValue(v);\n }",
"public void setValue(String value)\n {\n this.value = value;\n }",
"public void setValue(final String value)\n {\n this.value = value;\n }",
"public Builder setStringValue(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n typeCase_ = 5;\n type_ = value;\n onChanged();\n return this;\n }",
"public void setValue( String value )\n {\n this.value = value;\n }",
"public void setName(java.lang.String value);",
"public void setName(java.lang.String value);",
"void setString(String attributeValue);",
"public void setValue (String Value);",
"public void setValue(String value)\n {\n if (value == null)\n throw new IllegalArgumentException(\"value cannot be null\");\n \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(String value) {\n this.value = 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 }",
"protected StringValue() {\r\n value = \"\";\r\n typeLabel = BuiltInAtomicType.STRING;\r\n }",
"public void set(String str) {\n\t setValueInternal(str);\n\t}",
"void setValue(final String value);",
"protected void setValue( String strValue )\n {\n _strValue = strValue;\n }",
"public void setValue(final String value) {\n this.value = value;\n }",
"public void setString(String string) {\n this.string = string;\n }",
"public void setValue(String value);",
"public void setValue(String value);",
"public void setValue(String value);",
"public void setValue(String value);",
"public Builder setValue(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n value_ = value;\n onChanged();\n return this;\n }",
"public final void setValue(java.lang.String value)\r\n\t{\r\n\t\tsetValue(getContext(), value);\r\n\t}",
"void setValue(String value);",
"void setValue(String value);",
"public void setStringValue(String stringValue) {\n\t\tthis.rawValue = stringValue;\n\t}",
"@Override\n public StringType asString() {\n return TypeFactory.getStringType(this.getValue());\n }",
"public Builder setStringValue(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n stringValue_ = value;\n onChanged();\n return this;\n }",
"public Builder setType(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n type_ = value;\n onChanged();\n return this;\n }",
"public Builder setType(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n type_ = value;\n onChanged();\n return this;\n }",
"public Builder setType(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n type_ = value;\n onChanged();\n return this;\n }",
"public void setName(String string) {\n\t\tthis.name = string;\n\t}",
"public void setValue(String value) {\r\n\t\tthis.value = value;\r\n\t}",
"public Enum(String val) \n { \n set(val);\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 String asString() {\n\t\t\tString enumName;\n\t\t\tswitch(this) {\n\t\t\tcase INDEX:\n\t\t\t\tenumName = \"index\";\n\t\t\t\tbreak;\n\t\t\tcase NAME:\n\t\t\t\tenumName = \"name\";\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tenumName = \"unsupported\";\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\treturn enumName;\n\t\t}",
"public void setValue(String value) {\n\t this.valueS = value;\n\t }",
"public Binding setName( String theString) {\n\t\tmyName = new StringDt(theString); \n\t\treturn this; \n\t}",
"public void setName(String string) {\n\t\t\n\t}",
"public Builder setType(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n type_ = value;\n onChanged();\n return this;\n }",
"public Builder setScStr(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n scStr_ = value;\n onChanged();\n return this;\n }",
"public void set (String Value)\n\t\t{\n\t\tthis.Value = Value;\t\t\n\t\t}",
"public void setStringProperty(String propertyName, String value);",
"public void setValue(String value) {\n\t\tthis.value = value;\n\t}",
"public void setStr(java.lang.String str)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(STR$0, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(STR$0);\r\n }\r\n target.setStringValue(str);\r\n }\r\n }",
"public synchronized void setName(final InternationalString newValue) {\n checkWritePermission();\n name = newValue;\n }",
"public void setString(String name, String value) {\n parameters.get(name).setValue(value);\n }",
"public void setName(java.lang.String value) {\n this.name = value;\n }",
"public void setName(String value) {\n\t\tname = value;\n\t}",
"public void setValue(String value) {\n\t\tmValue = value;\n\t}",
"public void set(String s);",
"public void setString(int index,String value);",
"public void setValue(String value) {\n set (value);\n }",
"public Builder setS(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n s_ = value;\n onChanged();\n return this;\n }",
"public void setName(String s) {\n\t\t\n\t\tname = s;\n\t}",
"public void setString(String newString) {\n\tstring = newString;\n }",
"public ElementString(String value) {\n this.value = value;\n }",
"public Builder setType(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n type_ = value;\n onChanged();\n return this;\n }",
"public static String setName()\n {\n read_if_needed_();\n \n return _set_name;\n }",
"@java.lang.Override\n public java.lang.String getStringValue() {\n java.lang.Object ref = \"\";\n if (typeCase_ == 5) {\n ref = type_;\n }\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 (typeCase_ == 5) {\n type_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public Builder setName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n name_ = value;\n onChanged();\n return this;\n }",
"public Builder setName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n name_ = value;\n onChanged();\n return this;\n }",
"public Builder setName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n name_ = value;\n onChanged();\n return this;\n }",
"public Builder setName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n name_ = value;\n onChanged();\n return this;\n }",
"public Builder setName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n name_ = value;\n onChanged();\n return this;\n }",
"public void setStringValue(String value) {\n setValueIndex(getPool().findStringEntry(value, true));\n }",
"public void setValue(String value) {\n\t\tthis.text = value;\n\t}",
"public void setString(String name, String value)\n/* */ {\n/* 1119 */ XMLAttribute attr = findAttribute(name);\n/* 1120 */ if (attr == null) {\n/* 1121 */ attr = new XMLAttribute(name, name, null, value, \"CDATA\");\n/* 1122 */ this.attributes.addElement(attr);\n/* */ } else {\n/* 1124 */ attr.setValue(value);\n/* */ }\n/* */ }",
"public static void setString(String prop, String value)\n {\n props.setProperty(prop, value);\n }",
"public Builder setState(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n state_ = value;\n onChanged();\n return this;\n }",
"public void setName(String value) {\n this.name = value;\n }",
"public Builder setStringId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n stringId_ = value;\n onChanged();\n return this;\n }",
"public Builder setStringId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n stringId_ = value;\n onChanged();\n return this;\n }",
"public Builder setType(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n type_ = value;\n onChanged();\n return this;\n }",
"public void setValue(String value) throws Exception {\n\t\tthis.value = value;\n\t}",
"public void setS(String s);",
"String setValue();",
"public Builder setName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n name_ = value;\n onChanged();\n return this;\n }",
"public Builder setName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n name_ = value;\n onChanged();\n return this;\n }",
"public Builder setName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n name_ = value;\n onChanged();\n return this;\n }",
"public Builder setName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n name_ = value;\n onChanged();\n return this;\n }",
"public Builder setName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n name_ = value;\n onChanged();\n return this;\n }"
] |
[
"0.7111578",
"0.6856811",
"0.6842804",
"0.6751432",
"0.67487687",
"0.6656814",
"0.66184795",
"0.656538",
"0.6503071",
"0.6474545",
"0.6461107",
"0.64605",
"0.644556",
"0.644556",
"0.64422995",
"0.64305437",
"0.6412025",
"0.63924295",
"0.63924295",
"0.63924295",
"0.63924295",
"0.63924295",
"0.63897246",
"0.63897246",
"0.63897246",
"0.63897246",
"0.63897246",
"0.63694835",
"0.6362542",
"0.63545364",
"0.63526505",
"0.63282776",
"0.6312753",
"0.6306701",
"0.6306701",
"0.6306701",
"0.6306701",
"0.6266474",
"0.62619096",
"0.62472904",
"0.62472904",
"0.6240732",
"0.624012",
"0.62335074",
"0.62311345",
"0.62311345",
"0.62311345",
"0.6210676",
"0.6210471",
"0.6206995",
"0.62038934",
"0.62038934",
"0.62038934",
"0.62038934",
"0.6200601",
"0.6183541",
"0.6161589",
"0.61600256",
"0.6158938",
"0.61506534",
"0.61494046",
"0.61440367",
"0.61272055",
"0.61202997",
"0.61020285",
"0.60839117",
"0.6060822",
"0.60534835",
"0.6045805",
"0.6044083",
"0.60326827",
"0.60174644",
"0.5991184",
"0.59833246",
"0.59826",
"0.597814",
"0.59649134",
"0.596236",
"0.5936717",
"0.59236306",
"0.5921799",
"0.5921799",
"0.5921799",
"0.5921799",
"0.5919538",
"0.5914809",
"0.59132373",
"0.5898515",
"0.58969384",
"0.5892465",
"0.5889876",
"0.5889876",
"0.5886886",
"0.5871539",
"0.5871362",
"0.5868712",
"0.5865112",
"0.5861686",
"0.5861191",
"0.5861191",
"0.5861191"
] |
0.0
|
-1
|
/__/////////////////////////////////////////////////////////////////////////////////////////////// ____/////////////////////////////// PUBLIC METHODS //////////////////////////////////////////////// ____///////////////////////////////////////////////////////////////////////////////////////////// Get the String value of the Contenttype
|
public String getValue(){
return _value;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"String getContentType();",
"String getContentType();",
"String getContentType();",
"public String getContenttype() {\n return contenttype;\n }",
"public String getContenttype() {\n return contenttype;\n }",
"public String getContenttype() {\n\t\treturn contenttype;\n\t}",
"public java.lang.String getContentType() {\n java.lang.Object ref = contentType_;\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 contentType_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String getContentType() {\r\n try {\r\n ContentType newCtype = new ContentType(super.getContentType());\r\n ContentType retCtype = new ContentType(cType.toString());\r\n retCtype.setParameter(\"boundary\", newCtype.getParameter(\"boundary\"));\r\n return retCtype.toString();\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n\r\n return \"null\";\r\n }",
"int getContentTypeValue();",
"public java.lang.String getContentType() {\n java.lang.Object ref = contentType_;\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 contentType_ = s;\n return s;\n }\n }",
"public String getContentType();",
"public String getContentType();",
"public String getContentType() {\n return getProperty(Property.CONTENT_TYPE);\n }",
"public CharSequence getContentType() {\n return contentType;\n }",
"public String getMime_type()\r\n {\r\n return getSemanticObject().getProperty(data_mime_type);\r\n }",
"public String getContentType() {\n return this.contentType;\n }",
"@Override\n\tpublic String getContentType()\n\t{\n\t\treturn contentType;\n\t}",
"public String getContentType() {\n\t\tString ct = header.getContentType();\n\t\treturn Strings.substringBefore(ct, ';');\n\t}",
"@Override\n\tpublic String getContentType() {\n\t\treturn CONTENT_TYPE;\n\t}",
"public java.lang.String getContentType() {\n return contentType;\n }",
"public String getContentType() {\n return this.contentType;\n }",
"public String getContentType() {\n return this.contentType;\n }",
"public String getContentType() {\n return this.contentType;\n }",
"public String getContentType() {\n return contentType;\n }",
"public String getContentType() {\n\t\treturn null;\n\t}",
"@java.lang.Override\n public java.lang.String getStringValue() {\n java.lang.Object ref = \"\";\n if (typeCase_ == 5) {\n ref = type_;\n }\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 (typeCase_ == 5) {\n type_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"@java.lang.Override public int getContentTypeValue() {\n return contentType_;\n }",
"public String getContentType() {\n return getHeader(\"Content-Type\");\n }",
"public java.lang.Object getContentType() {\r\n return contentType;\r\n }",
"com.yoti.api.client.spi.remote.proto.ContentTypeProto.ContentType getContentType();",
"public String getContentType() {\n return contentType;\n }",
"public String getContentType() {\n return contentType;\n }",
"public String getContentType() {\n return contentType;\n }",
"public String getContentType() {\n return contentType;\n }",
"public String getContentType() {\n return contentType;\n }",
"@Override\n\t\tpublic String getContentType() {\n\t\t\treturn null;\n\t\t}",
"@java.lang.Override public int getContentTypeValue() {\n return contentType_;\n }",
"@AutoEscape\n\tpublic String getContentType();",
"public java.lang.String getStringValue() {\n java.lang.Object ref = \"\";\n if (typeCase_ == 5) {\n ref = type_;\n }\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 (typeCase_ == 5) {\n type_ = s;\n }\n return s;\n }\n }",
"public String getFileContentType() {\r\n return (String) getAttributeInternal(FILECONTENTTYPE);\r\n }",
"public String getContentType() {\n\t\treturn contentType;\n\t}",
"public String getContentType() {\n\t\treturn contentType;\n\t}",
"public MediaType getContentType()\r\n/* 193: */ {\r\n/* 194:289 */ String value = getFirst(\"Content-Type\");\r\n/* 195:290 */ return value != null ? MediaType.parseMediaType(value) : null;\r\n/* 196: */ }",
"@java.lang.Override\n public com.yoti.api.client.spi.remote.proto.ContentTypeProto.ContentType getContentType() {\n @SuppressWarnings(\"deprecation\")\n com.yoti.api.client.spi.remote.proto.ContentTypeProto.ContentType result = com.yoti.api.client.spi.remote.proto.ContentTypeProto.ContentType.valueOf(contentType_);\n return result == null ? com.yoti.api.client.spi.remote.proto.ContentTypeProto.ContentType.UNRECOGNIZED : result;\n }",
"@java.lang.Override\n public com.google.protobuf.ByteString\n getStringValueBytes() {\n java.lang.Object ref = \"\";\n if (typeCase_ == 5) {\n ref = type_;\n }\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n if (typeCase_ == 5) {\n type_ = b;\n }\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"@Override\n\tpublic String getContentType() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic String getContentType() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic String getContentType() {\n\t\treturn null;\n\t}",
"String getTypeAsString();",
"public String getContentType() {\n return this.response.getContentType();\n }",
"@java.lang.Override public com.yoti.api.client.spi.remote.proto.ContentTypeProto.ContentType getContentType() {\n @SuppressWarnings(\"deprecation\")\n com.yoti.api.client.spi.remote.proto.ContentTypeProto.ContentType result = com.yoti.api.client.spi.remote.proto.ContentTypeProto.ContentType.valueOf(contentType_);\n return result == null ? com.yoti.api.client.spi.remote.proto.ContentTypeProto.ContentType.UNRECOGNIZED : result;\n }",
"public com.google.protobuf.ByteString\n getContentTypeBytes() {\n java.lang.Object ref = contentType_;\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 contentType_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String getType() {\n return (String) getObject(\"type\");\n }",
"protected String getContentType()\n {\n if (fullAttachmentFilename == null)\n {\n return null;\n }\n String ext = FilenameUtils.getExtension(fullAttachmentFilename);\n if (ext == null)\n {\n return null;\n }\n if (ext.equalsIgnoreCase(\"pdf\"))\n {\n return \"application/pdf\";\n } else if (ext.equalsIgnoreCase(\"zip\"))\n {\n return \"application/zip\";\n } else if (ext.equalsIgnoreCase(\"jpg\"))\n {\n return \"image/jpeg\";\n\n } else if (ext.equalsIgnoreCase(\"jpeg\"))\n {\n return \"image/jpeg\";\n\n } else if (ext.equalsIgnoreCase(\"html\"))\n {\n return \"text/html\";\n\n } else if (ext.equalsIgnoreCase(\"png\"))\n {\n return \"image/png\";\n\n } else if (ext.equalsIgnoreCase(\"gif\"))\n {\n return \"image/gif\";\n\n }\n log.warn(\"Content type not found for file extension: \" + ext);\n return null;\n }",
"public String getContentType() {\r\n return mFile.getContentType();\r\n }",
"public String getTypeText() {\r\n\t\t\r\n\t\treturn getTypeText(this.type);\r\n\r\n\t}",
"public com.google.protobuf.ByteString\n getContentTypeBytes() {\n java.lang.Object ref = contentType_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n contentType_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public Optional<String> contentType() {\n return body.contentType()\n .map(\n h -> {\n if (h.contains(\";\")) {\n return h.substring(0, h.indexOf(';')).trim();\n } else {\n return h.trim();\n }\n });\n }",
"java.lang.String getMimeType();",
"java.lang.String getMimeType();",
"ContentType(String value){\n\t\t_value = value;\n\t}",
"@Override\r\n\tpublic String getContentType() {\r\n\t\treturn attachmentType;\r\n\t}",
"@Override\n public String getContentType() {\n return null;\n }",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"public String getFilecontentContentType() {\n return filecontentContentType;\n }",
"public java.lang.String getType()\n {\n return m_type;\n }",
"public String getPartString() { return \"Type\"; }",
"public String getMimeType ()\n {\n final String METHOD_NAME = \"getMimeType\";\n this.logDebug(METHOD_NAME + \"1/2: Started\");\n\n String mimeType = null;\n try\n {\n\tint contentType = this.document.getContentType();\n\tif ( contentType >= 0 ) mimeType = MediaType.nameFor[contentType];\n }\n catch (Exception exception)\n {\n\tthis.logWarn(METHOD_NAME + \"Failed to retrieve mime type\", exception);\n }\n\n this.logDebug(METHOD_NAME + \" 2/2: Done. mimeType = \" + mimeType);\n return mimeType;\n }",
"@JsonProperty(\"contentType\")\n public String getContentType() {\n return contentType;\n }",
"public String getContent(ContentType type) throws IOException {\n String charset = type.getCharset();\n \n if(charset == null) {\n charset = \"UTF-8\";\n }\n return body.getContent(charset);\n }",
"public java.lang.String getMimeType() {\n java.lang.Object ref = mimeType_;\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 mimeType_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"String getMimeType();",
"public final String type() {\n return type;\n }",
"@Override\n\tpublic String getContentType(String filename) {\n\t\treturn null;\n\t}",
"String getType() {\n return type;\n }",
"public java.lang.String getType() {\n java.lang.Object ref = type_;\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 type_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"String getType() {\r\n return this.type;\r\n }",
"public\t ContentType getContentTypeHeader()\n { return (ContentType) this.getHeader(ContentTypeHeader.NAME);}",
"public String getTypeString() {\r\n return Prediction.getTypeString(type);\r\n }",
"public java.lang.String getMimeType() {\n java.lang.Object ref = mimeType_;\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 mimeType_ = s;\n }\n return s;\n }\n }",
"default String getContentType() {\n return \"application/octet-stream\";\n }",
"public MimeType mimetype() {\r\n return getContent().mimetype();\r\n }",
"public Integer getOptContentType() { return(content_type); }",
"public java.lang.String getFiletype() {\n return filetype;\n }",
"@Column(name = \"FILE_CONTENT_TYPE\", length = 100 )\n\tpublic String getFileObjContentType() {\n\t\treturn fileObjContentType;\n\t}",
"public String getType()\n\t\t{\n\t\t\tElement typeElement = XMLUtils.findChild(mediaElement, TYPE_ELEMENT_NAME);\n\t\t\treturn typeElement == null ? null : typeElement.getTextContent();\n\t\t}",
"private String getType(){\r\n return type;\r\n }",
"protected String getType() {\n\t\treturn type;\n\t}",
"public String getFiletype() {\n return filetype;\n }"
] |
[
"0.77431715",
"0.77431715",
"0.77431715",
"0.7717473",
"0.7717473",
"0.7606253",
"0.7593477",
"0.7571949",
"0.74903893",
"0.7484331",
"0.74173874",
"0.74173874",
"0.7336232",
"0.7298699",
"0.72512",
"0.72313946",
"0.7179427",
"0.71517724",
"0.71507704",
"0.7150405",
"0.71261495",
"0.71261495",
"0.71261495",
"0.7103291",
"0.7101506",
"0.7082511",
"0.7060892",
"0.70580703",
"0.7028434",
"0.70178026",
"0.69882995",
"0.69882995",
"0.69882995",
"0.69882995",
"0.69882995",
"0.6979225",
"0.6973943",
"0.6952529",
"0.69080997",
"0.6905557",
"0.6879564",
"0.6879564",
"0.6873657",
"0.6857975",
"0.6846035",
"0.6808871",
"0.6808871",
"0.6808871",
"0.67982215",
"0.6787179",
"0.677484",
"0.67505485",
"0.67405903",
"0.6703752",
"0.66978306",
"0.6693467",
"0.66909164",
"0.6690728",
"0.66862315",
"0.66862315",
"0.6658385",
"0.66284543",
"0.662834",
"0.66165364",
"0.66165364",
"0.66165364",
"0.66165364",
"0.66165364",
"0.66165364",
"0.66165364",
"0.66165364",
"0.66165364",
"0.66165364",
"0.66165364",
"0.66165364",
"0.66165364",
"0.6614359",
"0.6597005",
"0.65933174",
"0.65853506",
"0.6578471",
"0.6552442",
"0.6543433",
"0.65410864",
"0.6538004",
"0.65331316",
"0.65278643",
"0.65129143",
"0.64964795",
"0.64953923",
"0.6494942",
"0.6490517",
"0.64850324",
"0.6482378",
"0.6481908",
"0.64703995",
"0.6466917",
"0.64616996",
"0.6459609",
"0.64527947",
"0.6442337"
] |
0.0
|
-1
|
Toast.makeText(MainActivity.this, "createUserWithEmail:onComplete:" + task.isSuccessful(), Toast.LENGTH_SHORT).show();
|
@Override
public void onComplete(@NonNull Task<AuthResult> task) {
if(!task.isSuccessful())
{
Toast.makeText(MainActivity.this,"Some Error Occured,Please try again later",Toast.LENGTH_LONG).show();
}
if(task.isSuccessful())
{
Toast.makeText(MainActivity.this,"Regristration Successful",Toast.LENGTH_LONG).show();
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (task.isSuccessful())\n {\n addNewUserData(auth.getUid(), email, username);\n if (onCompleteListener != null) {\n onCompleteListener.onComplete(task);\n }\n }\n else\n {\n Toast.makeText(activity, \"faile to register ,Invalid email address Or the email is already registered\", Toast.LENGTH_SHORT).show();\n }\n }",
"@Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n Toast.makeText(Signup.this,\"Signup Succcessful\",Toast.LENGTH_SHORT).show();\n\n }",
"@Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (!task.isSuccessful()) {\n //Log.w(TAG, \"signInWithEmail\", task.getException());\n Toast.makeText(Login.this, \"Authentication failed.\",\n Toast.LENGTH_SHORT).show();\n }\n\n // ...\n }",
"@Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (task.isSuccessful()) {\n Toast.makeText(getApplicationContext(), \"Cadastro concluido com sucesso!\", Toast.LENGTH_LONG).show();\n } else {\n Toast.makeText(getApplicationContext(), \"Falha ao criar cadastro!\", Toast.LENGTH_LONG).show();\n }\n }",
"@Override\n public void onSuccess(Void aVoid) {\n Toast.makeText(LogInActivity.this, \"Email is send\", Toast.LENGTH_SHORT).show();\n }",
"@Override\n public void onComplete(@NonNull Task<AuthResult> task)\n {\n String TAG = \"LoginActivity.userRegister\";\n if (task.isSuccessful())\n {\n Log.d(TAG, \"createUserWithEmailAndPassword:success\");\n FirebaseUser user = mAuth.getCurrentUser();\n\n user.sendEmailVerification()\n .addOnCompleteListener(new OnCompleteListener<Void>()\n {\n @Override\n public void onComplete(@NonNull Task<Void> task)\n {\n String TAG = \"LoginActivity.userRegister.EmailVerify\";\n if (task.isSuccessful())\n {\n Log.d(TAG, \"sendEmailVerification:success\");\n Toast.makeText(getActivity(),\n \"Please check Email for Verification\",Toast.LENGTH_SHORT).show();\n }\n else\n {\n Log.w(TAG, \"sendEmailVerification:failure\", task.getException());\n Toast.makeText(getActivity(),\"Unable to Verify: \"\n + task.getException().getMessage(),Toast.LENGTH_SHORT).show();\n\n }\n }\n });\n }\n else\n {\n Log.w(TAG, \"createUserWithEmailAndPassword:failure\", task.getException());\n Toast.makeText(getActivity(), \"Unable to Register: \"\n + task.getException().getMessage(), Toast.LENGTH_SHORT).show();\n }\n }",
"@Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if(task.isSuccessful()){\n\n Toast.makeText(RegistroActivity.this,\"Se ha registrado el usuario con el email: \"+ TextEmail.getText(),Toast.LENGTH_LONG).show();\n Intent intent = new Intent(RegistroActivity.this, LoginActivity.class);\n startActivity(intent);\n }\n else{\n if (task.getException() instanceof FirebaseAuthUserCollisionException) {//si se presenta una colisión\n Toast.makeText(RegistroActivity.this, \"Ese usuario ya existe \", Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(RegistroActivity.this, \"No se pudo registrar el usuario \", Toast.LENGTH_LONG).show();\n }\n }\n progressDialog.dismiss();\n }",
"@Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (task.isSuccessful()) {\n FirebaseUser firebaseUser = firebaseOps.getCurrentFirebaseUser();\n if (firebaseUser.isEmailVerified()) {\n createUserObjectInDatabase(firebaseUser.getUid());\n\n } else {\n Toast.makeText(MainActivity.this, \"Please verify your email first\", Toast.LENGTH_SHORT).show();\n }\n }\n }",
"@Override\n public void onComplete(@NonNull Task<Void> task) {\n if(task.isSuccessful()){\n Toast.makeText(getBaseContext(), \"New contact \" + addMe.getDisplayName() + \" created!\", Toast.LENGTH_LONG).show();\n\n //Go to home page\n finish();\n }\n else {\n Toast.makeText(getBaseContext(), \"Unable to add \" + addMe.getDisplayName() + \" contact\", Toast.LENGTH_LONG).show();\n }\n }",
"@Override\r\n public void onComplete(@NonNull Task<AuthResult> task) {\n Toast.makeText(loginActivity.this, \"login successful\",\r\n Toast.LENGTH_SHORT).show();\r\n // If sign in fails, display a message to the user. If sign in succeeds\r\n // the auth state listener will be notified and logic to handle the\r\n // signed in user can be handled in the listener.\r\n if (!task.isSuccessful()) {\r\n //Log.w(TAG, \"signInWithEmail:failed\", task.getException());\r\n Toast.makeText(loginActivity.this, \"login failed\",\r\n Toast.LENGTH_SHORT).show();\r\n }\r\n\r\n // ...\r\n }",
"@Override\n public void onClick(View v) {\n\n mAuth.sendPasswordResetEmail(email)\n .addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n if (task.isSuccessful()) {\n Log.d(TAG, \"Email sent.\");\n messageDisplay.setText(\"Reset Email Sent Successfully!\");\n Toast.makeText(ForgotPasswordActivity.this, \"Reset Email Sent Successfully!\", Toast.LENGTH_SHORT).show();\n }\n\n else {\n //display some message here\n messageDisplay.setText(\"User Does Not Exist\");\n Toast.makeText(ForgotPasswordActivity.this, \"User Does Not Exist\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n }",
"@Override\n protected void onPostExecute(JSONArray user) {\n Context context1 = getApplicationContext();\n Toast new_toast = Toast.makeText(context1, \"User has been created\", Toast.LENGTH_LONG);\n new_toast.show();\n }",
"@Override\n public void onComplete(@NonNull Task<Void> task) {\n if(task.isSuccessful()){\n Toast.makeText(getApplicationContext(),\"Added Entry\",Toast.LENGTH_LONG).show();\n Intent intent = new Intent(getApplicationContext(),ResultActivity.class);\n startActivity(intent);\n }else{\n Toast.makeText(getApplicationContext(),\"Insert failed\",Toast.LENGTH_LONG).show();\n }\n }",
"@Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n progressBar.setVisibility(View.GONE);\n\n if (!task.isSuccessful()) {\n Toast.makeText(RegisterActivity.this, \"Registration failed, Check your Network Connection!\", Toast.LENGTH_SHORT).show();\n } else {\n onAuthSuccess(task.getResult().getUser());\n //Toast.makeText(RegisterActivity.this, \"we will make pass of login here\", Toast.LENGTH_SHORT).show();\n //finish();\n }\n }",
"@Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (task.isSuccessful()) {\n FirebaseUser user = FirebaseAuth.getInstance().getCurrentUser();\n //delete user just created\n user.delete();\n //prompt user to create account\n Toast.makeText(MainActivity.this, \"No Email Exist \", Toast.LENGTH_SHORT).show();\n Toast.makeText(MainActivity.this, \"Create New Account \", Toast.LENGTH_SHORT).show();\n } else {\n // if failed, email already exist and move on to verify passoword\n //Toast.makeText(MainActivity.this, \"Loggin In\", Toast.LENGTH_SHORT).show();\n signUserIn(emailX);\n }\n\n }",
"@Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (task.isSuccessful()) {\n FirebaseUser user = FirebaseAuth.getInstance().getCurrentUser();\n //delete user just created\n user.delete();\n //prompt user to create account\n Toast.makeText(MainActivity.this, \"No Email Exist \", Toast.LENGTH_SHORT).show();\n Toast.makeText(MainActivity.this, \"Create New Account \", Toast.LENGTH_SHORT).show();\n } else {\n // if failed, email already exist and move on to verify passoword\n //Toast.makeText(MainActivity.this, \"Loggin In\", Toast.LENGTH_SHORT).show();\n sentReset(finalInputUsername);\n }\n }",
"@Override\r\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (!task.isSuccessful())\r\n {\r\n Log.w(\"ContentValues\", \"signInWithEmail\", task.getException());\r\n Toast.makeText(loginActivity.this, \"Authentication failed.\", Toast.LENGTH_SHORT)\r\n .show();\r\n }\r\n }",
"@Override\n public void onComplete(@NonNull Task<Void> task) {\n firebaseUser.sendEmailVerification().addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n\n // make the progressBar invisible\n pd.cancel();\n\n // store the user name\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putBoolean(\"isNotVerified\",true);\n editor.putString(\"userName\",name_of_user);\n editor.putString(\"userEmail\",emailId);\n editor.putString(\"password\",userPin);\n editor.apply();\n\n // call an intent to the user verification activity\n startActivity(new Intent(LoginActivity.this,\n UserVerificationActivity.class));\n // finish this activity, so that user can't return\n LoginActivity.this.finish();\n }\n });\n\n }",
"@Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (task.isSuccessful()) {\n userProfileChangeRequest = new UserProfileChangeRequest.Builder().setDisplayName(name).build();\n firebaseUser = FirebaseAuth.getInstance().getCurrentUser();\n firebaseUser.updateProfile(userProfileChangeRequest);\n UsersInfo user = new UsersInfo(name, phone, mail, \"\");\n database.child(userAuth.getCurrentUser().getUid()).setValue(user);\n userRegister.onRegisterSuccess();\n } else {\n if (task.getException().getMessage().equals(\"The email address is already in use by another account.\")) {\n userRegister.onMailExistedError();\n }\n if (task.getException().getMessage().equals(\"The email address is badly formatted.\")) {\n userRegister.onMailFormatError();\n }\n }\n }",
"@Override\n public void onComplete(@NonNull Task<Void> task2) {\n if(task2.isSuccessful()){\n startActivity(new Intent(DatosIniciales.this, MainActivity.class));\n //evitamos que vuelva a la pantalla con finsh cuando ya se ha registrado\n finish();\n }else{\n Toast.makeText(DatosIniciales.this, \"Algo fallo ups!!\", Toast.LENGTH_SHORT).show();\n }\n }",
"public void success() {\n Toast.makeText(ui.getApplicationContext(),\"Account successfully created!\",Toast.LENGTH_SHORT).show();\n }",
"@Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (!task.isSuccessful()) {\n Toast.makeText(MainActivity.this, \"Authentication failed.\",\n Toast.LENGTH_SHORT).show();\n }\n }",
"@Override\n protected void onPostExecute(String result) {\n Toast.makeText(context, \"Email Delivery: \"+result, Toast.LENGTH_SHORT).show();\n setResult(RESULT_OK);\n finish();\n }",
"@Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (task.isSuccessful()) {\n Toast.makeText(getApplicationContext(), \"Logado com sucesso!\", Toast.LENGTH_LONG).show();\n Intent i = new Intent(getApplicationContext(), ActivityPrincipal.class);\n startActivity(i);\n\n } else {\n Toast.makeText(getApplicationContext(), \"Erro ao efetuar login!\", Toast.LENGTH_LONG).show();\n }\n }",
"@Override\n public void onComplete(@NonNull Task<Void> task) {\n if (task.isSuccessful()) {\n Toast.makeText(Resetpasswordpage.this, \"Email Sent\", Toast.LENGTH_SHORT).show();\n Intent resetpasswordintent = new Intent(Resetpasswordpage.this, Loginpage.class);\n startActivity(resetpasswordintent);\n //close activity when done\n finish();\n } else {\n //otherwise create new toast (error)\n Toast.makeText(Resetpasswordpage.this, \"Please enter correct details\", Toast.LENGTH_SHORT).show();\n }\n }",
"@Override\n public void onComplete(@NonNull Task<Void> task) {\n\n if(task.isSuccessful()){\n Toast.makeText(RegistrationActivity.this, \"User has been registered successfully!\", Toast.LENGTH_LONG).show();\n progressBar.setVisibility(View.GONE);\n\n //Then redirect to login layout\n } else {\n Toast.makeText(RegistrationActivity.this,\"Failed to register. Try again.\", Toast.LENGTH_LONG).show();\n progressBar.setVisibility(View.GONE);\n }\n\n }",
"public void SignUp2(View view){\n\n mFirebaseAuth.createUserWithEmailAndPassword(EditEmail.getText().toString(),EditPass.getText().toString())\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n Log.d(TAG, \"createUserWithEmail:onComplete:\" + task.isSuccessful());\n\n // If sign in fails, display a message to the user. If sign in succeeds\n // the auth state listener will be notified and logic to handle the\n // signed in user can be handled in the listener.\n saveUser(EditFirstName.getText().toString(),EditLastName.getText().toString(),EditEmail.getText().toString(),SelectSpinner.getSelectedItem().toString());\n mUserDatabaseReference.push().setValue(mClassUser);\n EditFirstName.setText(\"\");\n EditLastName.setText(\"\");\n EditEmail.setText(\"\");\n EditPass.setText(\"\");\n\n if (!task.isSuccessful()) {\n// Toast.makeText(ActivitySignup.this, \"failed to sign up\",\n// Toast.LENGTH_SHORT).show();\n }\n\n // ...\n }\n });\n\n }",
"private void callRegisterByEmailToGoogleFirebase(){\n mFirebaseAuth = FirebaseAuth.getInstance();\n\n String userEmail = mEmailAddress.getText().toString();\n String userPassword = mPassword.getText().toString();\n\n // create the user with email and password\n mFirebaseAuth.createUserWithEmailAndPassword(userEmail,userPassword).addOnCompleteListener(getActivity(), new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if(task.isSuccessful()){\n showBottomSnackBar(\"Corresponding Firebase User Created\");\n }else{\n showBottomSnackBar(\"Firebase User Creation Fails\");\n }\n\n replaceActivity(MainActivity.class, null);\n }\n });\n\n }",
"@Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n Toast.makeText(MainActivity.this, \"Uploaded\", Toast.LENGTH_SHORT).show();\n }",
"@Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n storageReference.getDownloadUrl().addOnSuccessListener(new OnSuccessListener<Uri>() {\n @Override\n public void onSuccess(Uri uri) {\n userModel.setIdUrl(uri.toString());\n FirebaseAuth.getInstance().createUserWithEmailAndPassword(userModel.getEmail(), userModel.getPassword())\n .addOnCompleteListener(new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (task.isSuccessful()) {\n FirebaseFirestore.getInstance().collection(\"USERS\").add(userModel)\n .addOnCompleteListener(task1 -> {\n if (task1.isSuccessful()) {\n Toast.makeText(RegisterActivity.this, \"Registered Successfully\", Toast.LENGTH_SHORT).show();\n\n Intent intent = new Intent(RegisterActivity.this, LoginActivity.class);\n startActivity(intent);\n } else\n Toast.makeText(RegisterActivity.this, \"\" + task1.getException(), Toast.LENGTH_SHORT).show();\n\n });\n\n } else\n Toast.makeText(RegisterActivity.this, \"\" + task.getException(), Toast.LENGTH_SHORT).show();\n }\n });\n }\n });\n }",
"public void createAccount (String email, String password) {\n mAuth.createUserWithEmailAndPassword(email, password)\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n\n if (!task.isSuccessful()) {\n Toast.makeText(Login.this, \"Authentication failed.\",\n Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(Login.this, \"Registration Successful\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n //Sign in existing users\n mAuth.signInWithEmailAndPassword(email, password)\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n //Log.d(TAG, \"signInWithEmail:onComplete:\" + task.isSuccessful());\n\n // If sign in fails, display a message to the user. If sign in succeeds\n // the auth state listener will be notified and logic to handle the\n // signed in user can be handled in the listener.\n if (!task.isSuccessful()) {\n //Log.w(TAG, \"signInWithEmail\", task.getException());\n Toast.makeText(Login.this, \"Authentication failed.\",\n Toast.LENGTH_SHORT).show();\n }\n\n // ...\n }\n });\n }",
"@Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if(task.isSuccessful()){\n Toast.makeText(LoginActivity.this, \"Login Succesful\", Toast.LENGTH_SHORT).show();\n startActivity(new Intent(LoginActivity.this,HomeActivity.class));\n }\n else{\n Toast.makeText(LoginActivity.this, \"Error \" + task.getException().getMessage(), Toast.LENGTH_SHORT).show();\n }\n }",
"@Override\n\t\t\t\t\tpublic void onSuccess() {\n\t\t\t\t\t\tToast.makeText(RegisterActivity.this,\"Sign up successfully!\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\tstartActivity(new Intent(RegisterActivity.this, LoginActivity.class));\n\t\t\t\t\t}",
"@Override\n public void onComplete(@NonNull Task<Void> task) {\n pd.cancel();\n\n // store the user name\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putBoolean(\"isNotVerified\",true);\n editor.putString(\"userName\",name_of_user);\n editor.putString(\"userEmail\",emailId);\n editor.putString(\"password\",userPin);\n editor.apply();\n\n // call an intent to the user verification activity\n startActivity(new Intent(LoginActivity.this,\n UserVerificationActivity.class));\n // finish this activity, so that user can't return\n LoginActivity.this.finish();\n }",
"@Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n progressBar.setVisibility(View.INVISIBLE);\n if (!task.isSuccessful()) {\n // there was an error\n Toast.makeText(LoginActivity.this, getString(R.string.auth_failed), Toast.LENGTH_LONG).show();\n } else {\n if(rememberMe.isChecked()){\n rememberMe(email,password);\n }else{\n deleteUser();\n }\n //Toast.makeText(getApplicationContext(), auth.getUid(), Toast.LENGTH_SHORT).show();\n Intent intent = new Intent(LoginActivity.this, MainNavigationActivity.class);\n startActivity(intent);\n finish();\n }\n }",
"@Override\n public void onClick(View view) {\n if (validate()) {\n String user_email = create_email.getText().toString().trim();\n String user_password = create_password.getText().toString().trim();\n firebaseAuth.createUserWithEmailAndPassword(user_email, user_password).addOnCompleteListener(new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n\n if (task.isSuccessful()) {\n //sendEmailVerification();\n //sendUserData();\n firebaseAuth.signOut();\n Toast.makeText(CreateNewSurvey.this, \"Successfully Registered, Upload complete!\", Toast.LENGTH_SHORT).show();\n finish();\n startActivity(new Intent(CreateNewSurvey.this, Main2Activity.class));\n } else {\n Toast.makeText(CreateNewSurvey.this, \"Registration Failed\", Toast.LENGTH_SHORT).show();\n }\n\n }\n\n });\n }\n }",
"private void createAccount(String email, String password) {\n if (!validateForm()) {\n return;\n }\n\n // showProgressDialog();\n\n // [START create_user_with_email]\n FirebaseAuth.getInstance().createUserWithEmailAndPassword(email, password)\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (task.isSuccessful()) {\n // Sign in success, update UI with the signed-in user's information\n //Log.d(TAG, \"createUserWithEmail:success\");\n //Toast.makeText(RegistrarActivity.this, \"Usuario creado correctamente, acepte su email de verificación para continuar\", Toast.LENGTH_SHORT).show();\n FirebaseUser user=FirebaseAuth.getInstance().getCurrentUser();\n user.sendEmailVerification();\n ConstraintLayout constraintLayout=(ConstraintLayout)findViewById(R.id.layoutRegistrar);\n Snackbar snackbar=Snackbar.make(constraintLayout,\"Usuario creado correctamente, acepte su email de verificación\",Snackbar.LENGTH_LONG);\n snackbar.setAction(\"Ir a Login\", new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Intent intent=new Intent(getApplicationContext(),LoginActivity.class);\n startActivity(intent);\n }\n });\n snackbar.show();\n //updateUI(user);\n } else {\n // If sign in fails, display a message to the user.\n //Log.w(TAG, \"createUserWithEmail:failure\", task.getException());\n Toast.makeText(RegistrarActivity.this, \"Autenticación fallida.\",\n Toast.LENGTH_SHORT).show();\n //updateUI(null);\n }\n\n // [START_EXCLUDE]\n //hideProgressDialog();\n // [END_EXCLUDE]\n }\n });\n // [END create_user_with_email]\n }",
"@Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n\n if (!task.isSuccessful()) {\n //Log.d(\"Memorization Game\", \"Problem signing in: \" + task.getException());\n showErrorDialog(\"There was a problem signing in\");\n } else {\n //SharedPreferences mpreference = getSharedPreferences(\"user_email\", Context.MODE_PRIVATE);\n //mpreference.edit().putString(\"email\",email).apply();\n Intent intent = new Intent(Activity_login.this, Home.class);\n finish();\n startActivity(intent);\n }\n\n }",
"@Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (task.isSuccessful()) {\n //startActivity(new Intent(MainActivity.this, VentanaInicio.class));\n Intent intent = new Intent(getApplicationContext(), VentanaInicio.class);\n\n intent.putExtra(\"string_usuario\", email);\n\n startActivity(intent);\n //finish es para que no pueda volver a la pantalla anterior\n finish();\n }\n //Si no\n else {\n Toast.makeText(MainActivity.this, \"No se pudo iniciar la sesión, compruebe los datos\", Toast.LENGTH_SHORT).show();\n }\n }",
"private void userRegister(String email, String password)\n {\n mAuth.createUserWithEmailAndPassword(email, password)\n .addOnCompleteListener(getActivity(), new OnCompleteListener<AuthResult>()\n {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task)\n {\n // if successful, send email verification\n String TAG = \"LoginActivity.userRegister\";\n if (task.isSuccessful())\n {\n Log.d(TAG, \"createUserWithEmailAndPassword:success\");\n FirebaseUser user = mAuth.getCurrentUser();\n\n user.sendEmailVerification()\n .addOnCompleteListener(new OnCompleteListener<Void>()\n {\n @Override\n public void onComplete(@NonNull Task<Void> task)\n {\n String TAG = \"LoginActivity.userRegister.EmailVerify\";\n if (task.isSuccessful())\n {\n Log.d(TAG, \"sendEmailVerification:success\");\n Toast.makeText(getActivity(),\n \"Please check Email for Verification\",Toast.LENGTH_SHORT).show();\n }\n else\n {\n Log.w(TAG, \"sendEmailVerification:failure\", task.getException());\n Toast.makeText(getActivity(),\"Unable to Verify: \"\n + task.getException().getMessage(),Toast.LENGTH_SHORT).show();\n\n }\n }\n });\n }\n else\n {\n Log.w(TAG, \"createUserWithEmailAndPassword:failure\", task.getException());\n Toast.makeText(getActivity(), \"Unable to Register: \"\n + task.getException().getMessage(), Toast.LENGTH_SHORT).show();\n }\n }\n });\n }",
"@Override\n public void onComplete(@NonNull Task<AuthResult> task) { //el oncomplete es para tener la comprobacion sea del campo del login o el singup\n\n if (task.isSuccessful()) {\n // si el usuario se encontraba creado entonces la tarea es exitosa\n\n int pos = email.indexOf(\"@\");\n userstring = email.substring(0, pos); //consigue el nombre del usuario\n Toast.makeText(Login.this, \"Bienvenido: \" + editTextEmail.getText(), Toast.LENGTH_LONG).show(); // consigue el email que habia sido asignado a la variable TextEmail\n Intent intencion = new Intent(getApplication(), UserView.class); // nueva actividad\n intencion.putExtra(\"user\", email); // le pasa como dato al usuario ingresado a la proxima actividad\n startActivity(intencion); //hay que hacer el get del usuario en la parte principal\n // userapasar = user;\n loged = true;\n\n } else {\n loged = false;\n\n if (task.getException() instanceof FirebaseAuthUserCollisionException) {//si se presenta una colisiÛn\n\n Toast.makeText(Login.this, \"Procesando\", Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(Login.this, \"\", Toast.LENGTH_LONG).show();\n }\n }\n progressDialog.dismiss();\n }",
"@Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (task.isSuccessful()) {\n\n //if email and password are match it goes to other activity other wise show toast message\n startActivity(new Intent(getApplicationContext(), dashboard.class));\n\n } else {\n Toast.makeText(login_form.this,\"Invalid User\",Toast.LENGTH_LONG).show();\n\n }\n\n }",
"@Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (!task.isSuccessful()) {\n progressBar.dismiss();\n setSnackBar(linearLayout,\"Check Your Email and Password\");\n // there was an error\n } else {\n progressBar.dismiss();\n session.createLoginSession(loginemail,loginpassword);\n SharedPreferences settings = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());\n editor = settings.edit();\n editor.putString(\"password\", loginpassword);\n editor.putString(\"email\",loginemail);\n String key = loginemail.replace(\"@\",\"1\");\n String uniqkey = key.replace(\".\",\"2\");\n editor.putString(\"uid\", uniqkey);\n editor.commit();\n Intent intent = new Intent(LoginActivity.this, MainActivity.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n // Add new Flag to start new Activity\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n Toasty.success(LoginActivity.this,\"Login Successfull\", Toast.LENGTH_SHORT).show();\n finish();\n }\n }",
"@Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (task.isSuccessful()) {\n\n //check password and username before proceeding to login page\n Intent intent = new Intent(MainActivity.this, LoginSuccessActivity.class);\n intent.putExtra(\"USERNAME\", inputUsername);\n intent.putExtra(\"PASSWORD\", inputPassword);\n startTrackerService();\n startActivityForResult(intent, 1);\n } else {\n // password does not match email\n Toast.makeText(MainActivity.this, \"Invalid Password\", Toast.LENGTH_SHORT).show();\n }\n\n }",
"@Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (task.isSuccessful()) {\n\n\n saveUser save = new saveUser(registerEmailString, registerPassword);\n FirebaseDatabase.getInstance().getReference(\"Register\").child(FirebaseAuth.\n getInstance().getCurrentUser().getUid()).setValue(save).addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n\n if (task.isSuccessful()) {\n progressDialog.dismiss();\n Toast.makeText(Sign_Up.this, \"Sign up successful\", Toast.LENGTH_SHORT).show();\n\n pleaseWait.setVisibility(View.GONE);//\n Intent bac = new Intent(Sign_Up.this, Sign_In.class);\n startActivity(bac);\n\n } else {\n progressDialog.dismiss();\n Toast.makeText(Sign_Up.this, \"Email already exist error\", Toast.LENGTH_SHORT).show();\n pleaseWait.setVisibility(View.GONE);\n\n }\n }\n });\n } else {\n progressDialog.dismiss();\n Toast.makeText(Sign_Up.this, \"Error try again\", Toast.LENGTH_SHORT).show();\n pleaseWait.setVisibility(View.GONE);\n }\n }",
"public void registerUser(String email, String password){\n fbAuth.createUserWithEmailAndPassword(email, password)\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (task.isSuccessful()) {\n // Sign in success, update UI with the signed-in user's information\n Log.d(TAG, \"createUserWithEmail:success\");\n FirebaseUser user = fbAuth.getCurrentUser();\n updateUI(user);\n Toast.makeText(Signup.this, \"Registration success.\",\n Toast.LENGTH_SHORT).show();\n } else {\n // If sign in fails, display a message to the user.\n Log.w(TAG, \"createUserWithEmail:failure\", task.getException());\n Toast.makeText(Signup.this, \"Registration failed.\",\n Toast.LENGTH_SHORT).show();\n }\n\n // ...\n }\n });\n }",
"@Override\n public void onSuccess(Void aVoid) {\n Toast.makeText(getApplicationContext(), \"Success!\",\n Toast.LENGTH_LONG).show();\n }",
"@Override\n public void onSuccess(AuthResult authResult) {\n userWAPFirebase.create(newUser, firebaseAuth.getCurrentUser().getUid()).addOnSuccessListener(new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(Void aVoid) {\n Log.d(TAG, \"User \" + newUser.getUsername() + \" has been successfully created\");\n Toast.makeText(SignUpActivity.this, \"Sign up successful!\", Toast.LENGTH_SHORT).show();\n\n //Go back to Login Activity\n Intent loginIntent = new Intent(SignUpActivity.this, LoginActivity.class);\n loginIntent.putExtra(PASSWORD_KEY, etPasswordSignup.getText().toString());\n loginIntent.putExtra(EMAIL_KEY, newUser.getEmail());\n startActivity(loginIntent);\n }\n });\n }",
"@Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if(task.isSuccessful())\n {\n //verifier si l'utilisateur est etudiant ou volontaire pour le diriger\n startActivity(new Intent(getActivity(), profil_etd.class));\n }\n }",
"private void createAccount() {\n mAuth.createUserWithEmailAndPassword(mTextEmail.getText().toString(), mTextPassword.getText().toString()).addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n Log.d(TAG, \"createUserWithEmail:onComplete:\" + task.isSuccessful());\n\n if(!task.isSuccessful()){\n Toast.makeText(SignInActivity.this, \"Account creation failed!\", Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(SignInActivity.this, \"Account creation success!\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n }",
"@Override\n public void onComplete(@NonNull Task<AuthResult> task)\n {\n if(task.isSuccessful())\n {\n //write an activity here you want to go but for the time being let us use toast message\n\n// sendToMain();\n\n// Toast.makeText(LoginActivity.this,\"successfull\",Toast.LENGTH_LONG).show();\n\n //i added this see it\n Intent intent=new Intent(LoginActivity.this,IntentToOperations.class);\n startActivity(intent);\n }else{\n String errorMessage=task.getException().getMessage();\n Toast.makeText(LoginActivity.this,\"error :\"+errorMessage,Toast.LENGTH_LONG).show();\n }\n\n// loginProgress.setVisibility(View.VISIBLE);//after successfull login\n }",
"@Override\n\t\t\tpublic void onSuccess() {\n\t\t\t\tToast.makeText(MainActivity.this, \"submit success\", Toast.LENGTH_LONG).show();\n\t\t\t}",
"@Override\n public void onComplete(@NonNull Task<String> task) {\n if (!task.isSuccessful()) {\n Log.w(TAG, \"Fetching FCM registration token failed\", task.getException());\n return;\n } else {\n Log.i(TAG, \"onComplete: firbaSE GOT A TOKEN\");\n }\n\n // Get new FCM registration token\n String token = task.getResult();\n\n\n }",
"@Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n progressBar.setVisibility(View.GONE);\n if (!task.isSuccessful()) {\n // there was an error\n if (password.length() < 6) {\n inputPassword.setError(getString(R.string.minimum_password));\n } else {\n Toast.makeText(LoginActivity.this, getString(R.string.auth_failed), Toast.LENGTH_LONG).show();\n }\n } else {\n FirebaseUser user = FirebaseAuth.getInstance().getCurrentUser();\n if (user.isEmailVerified()) {\n Intent intent = new Intent(LoginActivity.this, MainActivity.class);\n startActivity(intent);\n } else {\n Intent intent = new Intent(LoginActivity.this, VerifyEmailScreen.class);\n startActivity(intent);\n }\n finish();\n }\n }",
"@Override\n\tprotected void onPostExecute(Boolean success) {\n\t\tif (success != null && success)\n\t\t\tnew AlertDialog.Builder(a)\n\t\t\t\t\t.setTitle(\"Check your email for temporary password.\")\n\t\t\t\t\t.setPositiveButton(\"Ok\", null).show();\n\t\telse if (success != null && !success)\n\t\t\tnew AlertDialog.Builder(a)\n\t\t\t\t\t.setTitle(\"Wrong email, have you registered?\")\n\t\t\t\t\t.setPositiveButton(\"OK\", null).show();\n\t\telse\n\t\t\tnew AlertDialog.Builder(a).setTitle(\"Oops! What happened?\")\n\t\t\t\t\t.setPositiveButton(\"OK\", null).show();\n\t}",
"@Override\n protected void onPostExecute(Void result) {\n if (dialog.isShowing()) {\n dialog.dismiss();\n }\n if(xxxx==false){\n firebasehelper re=new firebasehelper(xxx,yyy,phno,uid);\n mDatabase.child(uid).setValue(re);\n Toast.makeText(otherinfoActivity.this,\"User created!\",Toast.LENGTH_LONG).show();\n linking(xxx,yyy);\n }else{\n Toast.makeText(otherinfoActivity.this,\"User already Exist!\",Toast.LENGTH_LONG).show();\n\n }\n\n }",
"public void onComplete(@NonNull Task<Void> task) {\n firebaseUser = FirebaseAuth.getInstance().getCurrentUser();\n Intent intent = new Intent(Profile.this, Login.class);\n Pair[] pairs = new Pair[3];\n pairs[0] = new Pair<View, String>(welcomeTV, \"logo_text\");\n pairs[1] = new Pair<View, String>(usernameTV, \"slogan_text\");\n pairs[2] = new Pair<View, String>(signOutButton, \"sign_in_tran\");\n ActivityOptions options = ActivityOptions.makeSceneTransitionAnimation(Profile.this, pairs);\n //startActivity(intent, options.toBundle());\n startActivity(intent);\n overridePendingTransition(0, 0);\n finish();\n }",
"@Override\n protected void onPostExecute(String result) {\n// Toast.makeText(getBaseContext(), \"Data Sent!\", Toast.LENGTH_LONG).show();\n }",
"@Override\n protected void onPostExecute(String result)\n {\n //Toast.makeText(OTPActivity.this, result.toString(), Toast.LENGTH_LONG).show();\n }",
"@Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n Toast.makeText(getApplicationContext(),\"Photo uploaded successfully!\",Toast.LENGTH_SHORT).show();\n }",
"private void createAccount(final String userEmail, String userPassword, String userName, int userClassNumber, String userCollegeName){\n\n progressBar.setVisibility(View.VISIBLE);\n Toast.makeText(this, \"회원가입 중입니다. 잠시만 기다려주세요.\", Toast.LENGTH_LONG).show();\n\n //below job can be started at different Thread (in async)\n mAuth.createUserWithEmailAndPassword(userEmail, userPassword)\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull final Task<AuthResult> task) {\n\n progressBar.setVisibility(View.GONE);\n if(task.isSuccessful()){\n AlertDialog.Builder builder = new AlertDialog.Builder(getApplicationContext());\n builder.setCancelable(false);\n builder.setTitle(\"회원가입 성공!\");\n builder.setMessage(\"회원가입에 성공하였습니다! 가입한 계정으로 로그인해주세요!\");\n builder.setPositiveButton(\"확인\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n Intent intent = new Intent();\n\n intent.putExtra(\"user_email\", userEmail);\n setResult(Activity.RESULT_OK, intent);\n\n finish(); //액티비티를 종료하고 사용자가 등록한 이메일을 자동으로 로그인 창(LoginActivity)에 기입시켜준다.\n }\n }).show();\n //DisplayName 설정 및 fireStore에 User정보 추가 필요.\n //따라서 3단계의 진행과정이 필요하다. 가입 -> DisplayName 세팅 -> User 정보 firestore 추가. 이를.. AsyncTask로? 별도의 Thread로? UI Thread에서 다 하는건 아닌거 같은데.\n // -> AsyncTask는 deprecated 되었다고 하므로 java.util.concurrent를 써보자. Executor. 아니면 아예 로그인 방식을 Firebase UI로 대체할 수도 있다.\n }else{\n AlertDialog.Builder builder = new AlertDialog.Builder(getApplicationContext());\n builder.setCancelable(false);\n builder.setTitle(\"회원가입에 실패하였습니다.\");\n builder.setMessage(\"관리자에게 문의하십시오.\");\n builder.setPositiveButton(\"문의하기\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n Intent intent = new Intent(Intent.ACTION_SEND);\n //관리자에게 이메일 보내기.\n intent.setDataAndType(Uri.parse(\"mailto:\"),\"plain/text\");\n String[] addresses = {\"[email protected]\"};\n String subject = \"Error message From application 'Second_Hand' when Create Account\";\n String content = \"회원가입 도중 에러가 발생하였습니다. 에러 내용은 아래와 같습니다.\\n\"+ \"Exception 내용 : \" + task.getException()+\"\\ntask 결과값 : \" + task.getResult();\n intent.putExtra(Intent.EXTRA_EMAIL, addresses);\n intent.putExtra(Intent.EXTRA_SUBJECT, subject);\n intent.putExtra(Intent.EXTRA_TEXT, content);\n\n if(intent.resolveActivity(getPackageManager())!=null){\n startActivity(intent);\n }\n dialog.dismiss();\n }\n })\n .setNegativeButton(\"취소\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n //오류창만 없애기.\n }\n }).show();\n }\n\n }\n });\n }",
"@Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n dbHelper.addNewUser( user );\n\n // Get new FirebaseUser\n dbHelper.fetchCurrentUser();\n\n // Add the new user to a new chat containing only the new user\n String chatID = dbHelper.getNewChildKey( dbHelper.getChatUserPath() );\n String userID = dbHelper.getAuth().getUid();\n String displayName = dbHelper.getAuthUserDisplayName();\n\n dbHelper.addToChatUser( chatID, userID, displayName );\n dbHelper.addToUserChat( userID, chatID );\n\n String messageOneID = dbHelper.getNewChildKey(dbHelper.getMessagePath());\n String timestampOne = dbHelper.getNewTimestamp();\n String messageOne = \"COUCH POTATOES:\\nWelcome to Couch Potatoes!\"\n + \"\\nEnjoy meeting new people with similar interests!\";\n\n dbHelper.addToMessage( messageOneID, userID, \"COUCH POTATOES\", chatID, timestampOne, messageOne );\n\n String messageTwoID = dbHelper.getNewChildKey(dbHelper.getMessagePath());\n String timestampTwo = dbHelper.getNewTimestamp();\n String messageTwo = \"COUCH POTATOES:\\nThis chat is your space. Feel free to experiment with the chat here.\";\n\n dbHelper.addToMessage( messageTwoID, userID, \"COUCH POTATOES\", chatID, timestampTwo, messageTwo );\n\n // Registration complete. Redirect the new user the the main activity.\n startActivity( new Intent( getApplicationContext(), MainActivity.class ) );\n finish();\n }",
"@Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n String downloadUrl = taskSnapshot.getDownloadUrl().toString();\n String name = \"\";\n try {\n //for space with name\n name = java.net.URLEncoder.encode(etName.getText().toString(), \"UTF-8\");\n downloadUrl = java.net.URLEncoder.encode(downloadUrl, \"UTF-8\");\n } catch (UnsupportedEncodingException e) {\n\n }\n //register στη εφαρμογή καλώντας το register.php\n String url = \"http://83.212.99.161:8083/twitterserver/register.php?first_name=\" + name + \"&email=\" + etEmail.getText().toString() + \"&password=\" + etPassword.getText().toString() + \"&picture_path=\" + downloadUrl;\n // gia okeanos: 83.212.102.247:8083 δεύτερος server\n // gia topika: 10.0.2.2:8083\n new MyAsyncTaskgetNews().execute(url);\n hideProgressDialog();\n\n }",
"@Override\n public void onComplete(@NonNull Task<Void> task) {\n }",
"@Override\n public void onComplete(@NonNull Task<Void> task) {\n }",
"@Override\n public void onSuccess (UploadTask.TaskSnapshot taskSnapshot){\n Toast.makeText(IncomeActivity.this, \"Image uploaded successfully\",\n Toast.LENGTH_SHORT).show();\n }",
"@Override\n\tpublic void onTaskComplete(JSONObject result) {\n\t\tString valid = null; \n\t\tString nickname = null;\n\t\tString regDate = null;\n\t\ttry {\n\t\t\tvalid = result.getString(\"validation\");\n\t\t} catch (JSONException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t//Toast.makeText(Signin.this, \"beforeIF\", Toast.LENGTH_SHORT).show();\n\t\tif(valid.equals(\"badName\")){\n\t\t\tToast.makeText(Signin.this, \"Bad User Name!\", Toast.LENGTH_SHORT).show();\n\t\t}\n\t\telse if(valid.equals(\"badPw\")){\n\t\t\tToast.makeText(Signin.this, \"Wrong Password!\", Toast.LENGTH_SHORT).show();\n\n\t\t}\n\t\telse if(valid.equals(\"pass\")){\n\t\t\ttry {\n\t\t\t\tnickname = result.getString(\"nickname\");\n\t\t\t\tregDate = result.getString(\"regDate\");\n\t\t\t} catch (JSONException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tToast.makeText(Signin.this, \"YO~\", Toast.LENGTH_SHORT).show();\n\t\t\tToast.makeText(Signin.this, nickname, Toast.LENGTH_SHORT).show();\n\t\t\tToast.makeText(Signin.this, regDate, Toast.LENGTH_SHORT).show();\n\t\t}\n\t\telse{\n\t\t\tToast.makeText(Signin.this, \"ΤόΤό\", Toast.LENGTH_SHORT).show();\n\n\t\t}\n\t}",
"@Override\n\t protected void onPostExecute(String result) {\n\t \tToast.makeText(getBaseContext(), \"You are Logged in!\", Toast.LENGTH_LONG).show();\n\t }",
"private void registerUserToFirebaseAuth() {\n Utils.showProgressDialog(this);\n Task<AuthResult> task = mAuth.createUserWithEmailAndPassword(etEmail.getText().toString().trim(), etPassword.getText().toString().trim());\n task.addOnCompleteListener(new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n Utils.dismissProgressDialog();\n if (task.isSuccessful()) {\n String firebaseId = task.getResult().getUser().getUid();\n\n // Storage Image to Firebase Storage.\n addProfileImageToFirebaseStorage(firebaseId);\n\n } else {\n Utils.toast(context, \"Some Error Occurs\");\n }\n }\n });\n }",
"@Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n //caso sucesso ao fazer login usuario\n if (task.isSuccessful()){\n progressBarLogin.setVisibility(View.GONE);\n //instancio a activity de destino\n startActivity(new Intent(getApplicationContext(),SolicitacaoAreaActivity.class));\n finish();//fecha a activity atual\n }else{\n Toast.makeText(AutentinticacaoActivity.this,\n \"Erro ao fazer login\",\n Toast.LENGTH_SHORT).show();\n progressBarLogin.setVisibility(View.GONE);\n }\n\n\n }",
"private void sendEmailVerification(){\n FirebaseUser firebaseUser = mfirebaseAuth.getCurrentUser();\n if(firebaseUser!=null){\n firebaseUser.sendEmailVerification().addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n if(task.isSuccessful()){\n Toast.makeText(SignUpActivity.this, \"Successfully Registered, Verification E-mail sent!\", Toast.LENGTH_SHORT).show();\n mfirebaseAuth.signOut();\n finish();\n startActivity(new Intent(SignUpActivity.this, LoginActivity.class));\n }else {\n Toast.makeText(SignUpActivity.this, \"Verification email could not be sent, please try again later\", Toast.LENGTH_SHORT).show();\n\n }\n }\n });\n }\n\n }",
"@Override\n protected Boolean doInBackground(Void... params) {\n\n try {\n // Simulate network access.\n Thread.sleep(500);\n user= new User();\n String result = user.signUp(mEmail, mPassword, getApplicationContext());\n\n //byte result =p_db.signupDB(email_et.getText().toString(),password_et.getText().toString());\n if (result == null) {\n //Toast.makeText(SignupActivity.this, \"عملیات با بروز مشکل مواجه شده است، لطفا مجددا امتحان نمایید.\", Toast.LENGTH_SHORT).show();\n return false;\n } else {\n //Toast.makeText(SignupActivity.this, \"ثبت نام با موفقت انجام شد.\", Toast.LENGTH_SHORT).show();\n //user = new User(email_et.getText().toString(),password_et.getText().toString());\n userId = result;\n return true;\n }\n } catch (InterruptedException e) {\n return false;\n }\n /*byte res=p_db.signup(mEmail,mPassword);\n //Log.d(\"ali\",Byte.toString(res));\n\n if(res==0){\n return false;\n }\n else if(res==1){\n return true;\n }\n else if(res==2){\n return false;\n }\n\n return false;*/\n }",
"@Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n Toast.makeText(getApplicationContext(),\"Image uploaded\",Toast.LENGTH_SHORT).show();\n }",
"public void onCreateAccountPressed(View view) {\n\n\n mUserName = mEditTextUsernameCreate.getText().toString();\n mUserEmail = mEditTextEmailCreate.getText().toString().toLowerCase();\n mPassword = mEditTextPasswordCreate.getText().toString();\n\n /**\n * Check that email and user name are okay\n */\n boolean validEmail = isEmailValid(mUserEmail);\n boolean validUserName = isUserNameValid(mUserName);\n boolean validPassword = isPasswordValid(mPassword);\n if (!validEmail || !validUserName || !validPassword) return;\n /**\n * If everything was valid show the progress dialog to indicate that\n * account creation has started\n */\n mAuthProgressDialog.show();\n\n\n // [START create_user_with_email]\n mAuth.createUserWithEmailAndPassword(mUserEmail, mPassword)\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n Log.d(LOG_TAG, \"createUserWithEmail:onComplete:\" + task.isSuccessful());\n\n // If sign in fails, display a message to the user. If sign in succeeds\n // the auth state listener will be notified and logic to handle the\n // signed in user can be handled in the listener.\n if (!task.isSuccessful()) {\n Toast.makeText(CreateAccountActivity.this, R.string.auth_failed,\n Toast.LENGTH_SHORT).show();//error message\n //showErrorToast(\"createUserWithEmail : \"+task.isSuccessful());\n }\n\n // [START_EXCLUDE]\n mAuthProgressDialog.dismiss();\n Intent intent = new Intent(CreateAccountActivity.this, LoginActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);\n startActivity(intent);\n finish();\n // [END_EXCLUDE]\n //end\n }\n });\n // [END create_user_with_email]\n\n\n\n /**\n * Create new user with specified email and password\n */\n /*mFirebaseRef.createUser(mUserEmail, mPassword, new Firebase.ValueResultHandler<Map<String, Object>>() {\n @Override\n public void onSuccess(Map<String, Object> result) {\n Dismiss the progress dialog\n mAuthProgressDialog.dismiss();\n Log.i(LOG_TAG, getString(R.string.log_message_auth_successful));\n }\n\n @Override\n public void onError(FirebaseError firebaseError) {\n *//* Error occurred, log the error and dismiss the progress dialog *//*\n Log.d(LOG_TAG, getString(R.string.log_error_occurred) +\n firebaseError);\n mAuthProgressDialog.dismiss();\n *//* Display the appropriate error message *//*\n if (firebaseError.getCode() == FirebaseError.EMAIL_TAKEN) {\n mEditTextEmailCreate.setError(getString(R.string.error_email_taken));\n } else {\n showErrorToast(firebaseError.getMessage());\n }\n\n }\n });*/\n }",
"public void onSignupSuccess(){\n Toast.makeText(this, \"YEPP\", Toast.LENGTH_SHORT).show();\r\n Intent changetomain = new Intent(RegisterActivity.this, MainAccount.class) ;\r\n startActivity(changetomain);\r\n }",
"@Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n\n progressBar.setVisibility(View.GONE);\n if (!task.isSuccessful()) {\n // there was an error\n if (password.length() < 6) {\n passwordW.setError(getString(R.string.minimum_password));\n } else {\n Toast.makeText(SignUpActivity.this, getString(R.string.auth_failed), Toast.LENGTH_LONG).show();\n }\n } else {\n\n FirebaseUser user = auth.getCurrentUser();\n UserProfileChangeRequest profileUpdates = new UserProfileChangeRequest.Builder()\n .setDisplayName(dpName)\n .build();\n\n user.updateProfile(profileUpdates)\n .addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n if (task.isSuccessful()) {\n Toast.makeText(SignUpActivity.this, \"User Created! Welcome to Udghosh.\", Toast.LENGTH_LONG).show();\n }\n else {\n Toast.makeText(SignUpActivity.this, \"Cannot connect to servers right now.\", Toast.LENGTH_LONG).show();\n }\n }\n });\n mDatabase.child(\"app\").child(\"users\").child(user.getUid()).setValue(phoneNumber);\n\n Intent intent = new Intent(SignUpActivity.this, HomeActivity.class);\n startActivity(intent);\n finish();\n }\n }",
"@Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n Log.d(TAG, \"Image upload done\");\n\n Intent intent = new Intent(Signup2.this, Signup3.class);\n intent.putExtra(\"facialID\", facialID.toString());\n /* pass the facial id to the next activity*/\n findViewById(R.id.loadingPanel).setVisibility(View.GONE);\n startActivity(intent);\n }",
"@Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (!task.isSuccessful()) {\n tvOopsWrongPassword.setVisibility(View.VISIBLE);\n }\n }",
"void onTaskCompleted(TaskResult taskResult);",
"@Override\n protected void onPostExecute(Boolean result) {\n super.onPostExecute(result);\n if (result) {\n type = \"register\";\n new Background().execute(type,name1,email,password1,phoneno1,user1,puniqueid,token,device);\n\n } else {\n Toast.makeText(getApplicationContext(), \"Please check your internet connection\", Toast.LENGTH_SHORT).show();\n finish();\n }\n }",
"@Override\r\n protected String doInBackground(String... params) {\n DatabaseAccess databaseAccess = DatabaseAccess.getInstance(RegistrationActivity.this);\r\n if(databaseAccess.checkIfUserEmailExists(params[2])){\r\n userRegistration=USER_ALREADY_EXISTS;\r\n }else{\r\n //else register User\r\n if(databaseAccess.createNewUser(params[0],params[1],params[2],params[3])) {\r\n userRegistration=USER_REGISTERED_SUCCESSFULLY;\r\n }\r\n }\r\n return userRegistration;\r\n }",
"private void signUpNewUserToDB(){\n dbAuthentication.createUserWithEmailAndPassword(this.newUser.getEmail(), this.newUser.getPassword())\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if(task.isSuccessful()){\n /**signUp success, will update realTime DB ant firebase Authentication*/\n FirebaseUser currentUser = dbAuthentication.getCurrentUser();\n addToRealDB(currentUser.getUid());\n /**will send verification email to the user from Firebase Authentication*/\n currentUser.sendEmailVerification().addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n }\n });\n }else{isBadEmail = true;}\n }\n });\n }",
"@Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n Toast\n .makeText(RecordingService.this,\n \"File uploaded!!\",\n Toast.LENGTH_SHORT)\n .show();\n }",
"private Boolean loginUserToAccount() {\n String email = userEmail.getText().toString();\n String password = userPassword.getText().toString();\n // perform validations\n if(email.isEmpty()){\n Toast.makeText(this,\"Please Enter Email\",Toast.LENGTH_SHORT).show();\n }\n else if(password.isEmpty()){\n Toast.makeText(this,\"Please Enter Password\",Toast.LENGTH_SHORT).show();\n }\n else{\n\n loadingBar.setTitle(\"Login\");\n loadingBar.setMessage(\"Please wait, while we log into your account\");\n loadingBar.show();\n loadingBar.setCanceledOnTouchOutside(true);\n\n // Create user at firebase using email\n mAuth.signInWithEmailAndPassword(email,password)\n .addOnCompleteListener(new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n loadingBar.dismiss();\n if(task.isSuccessful()){\n sendUserToMainActivity();\n Toast.makeText(LoginActivity.this, \"Login succesfully\", Toast.LENGTH_SHORT).show();\n }\n else{\n String errMessage = task.getException().getMessage();\n Toast.makeText(LoginActivity.this, \"Error in login: \"+errMessage, Toast.LENGTH_SHORT).show();\n }\n }\n });\n }\n return true;\n }",
"@Override\n protected Boolean doInBackground(Void... params) {\n UserClient u = new UserClient();\n Log.d(\"debug\", \"created the user client\");\n User Obj=null;\n\n try {\n\n try{\n // Obj = u.signUp(mEmail,mPassword,mAddress,mPhoneNumber);\n }catch (Exception e){\n e.printStackTrace();\n }\n Thread.sleep(1000);\n } catch (InterruptedException e) {\n return false;\n }\n\n // Sign in Failed. Returned Object in Null.\n if(Obj==null){\n Toast.makeText(getApplicationContext(), \"Book Upload Failed !\", Toast.LENGTH_SHORT).show();\n return false;\n }\n // TODO: register the new account here.\n return true;\n }",
"public void authenticateemail(final String email, final String pass){\n\n mAuth2.createUserWithEmailAndPassword(email, pass)\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (task.isSuccessful()) {\n // Sign in success, update UI with the signed-in user's information\n Log.d(\"MAIN\", \"createUserWithEmail:success\");\n FirebaseUser user = mAuth.getCurrentUser();\n linking(email,pass);\n //Log.d(\"MAIN\", \"yupyup\"+user.getUid());\n\n } else {\n // If sign in fails, display a message to the user.\n Log.w(\"MAIN\", \"createUserWithEmail:failure\", task.getException());\n Toast.makeText(otherinfoActivity.this, \"Authentication failed.\",\n Toast.LENGTH_SHORT).show();\n }\n\n // ...\n }\n });\n\n }",
"@Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n Toast.makeText(DetailsForm.this, \"Image Uploaded Successfully\", Toast.LENGTH_LONG).show();\n }",
"@Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n Toast.makeText(AddingPlace.this,\"image uploaded successfully\",Toast.LENGTH_LONG).show();\n }",
"@Override\n protected void onPreExecute() {\n super.onPreExecute();\n pDialog = new ProgressDialog(SignUpActivity.this);\n pDialog.setMessage(\"Creating User Account..\");\n pDialog.setIndeterminate(false);\n pDialog.setCancelable(true);\n pDialog.show();\n }",
"@Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (task.isSuccessful()) {\n startActivity(new Intent(LoginPage.this, HomePage.class));\n\n } else {\n //if user failed to login, toast message is displayed\n Toast.makeText(LoginPage.this, \"User not found or Incorrect password\", Toast.LENGTH_LONG).show();\n userEmail.setText(\"\");\n userPassword.setText(\"\");\n }\n }",
"private void signUp() {\n final String email = ((EditText) findViewById(R.id.etSignUpEmail))\n .getText().toString();\n final String password = ((EditText) findViewById(R.id.etSignUpPassword))\n .getText().toString();\n\n mAuth.createUserWithEmailAndPassword(email, password)\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (task.isSuccessful()) {\n Log.d(\"SIGN_UP_USER\", \"createUserWithEmail:success\");\n sendVerificationEmail(mAuth.getCurrentUser());\n updateUI();\n } else {\n Log.d(\"SIGN_UP_USER\", \"createUserWithEmail:failure\");\n Toast.makeText(LoginActivity.this,\n \"Failed to create a new user.\",\n Toast.LENGTH_LONG).show();\n }\n }\n });\n }",
"@Override\n protected Boolean doInBackground(Void... params) {\n FirebaseAuth mUsername = FirebaseAuth.getInstance();\n System.out.println(mUsername.getCurrentUser().getEmail());\n\n try {\n\n GMailSender sender = new GMailSender(\"[email protected]\", \"spartaguide123\");\n sender.sendMail(\"Appointment Delete Confirmation with Professor\\t\" + name ,\n \"Dear Student, \\n\\n Your appointment is deleted for the Time Slot \" + timeSlot + \"\\n\\nThanks,\\n\\nSpartaGuide\",\"[email protected]\",mUsername.getCurrentUser().getEmail());\n } catch (Exception e) {\n Log.e(\"SendMail\", e.getMessage(), e);\n }\n\n\n return null;\n }",
"@Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n progressDialog.dismiss();\n\n //and displaying a success toast\n Toast.makeText(getApplicationContext(), \"File Uploaded \", Toast.LENGTH_LONG).show();\n // picup =true;\n }",
"@Override\n public void onSuccess(AuthResult authResult) {\n Toast.makeText(Login1.this, \"Successfully Login\", Toast.LENGTH_SHORT).show();\n\n }",
"@Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n progressDialog.hide();\n Toast.makeText(UserInfoForm.this, \"Upload Successful\", Toast.LENGTH_SHORT).show();\n }",
"@Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (!task.isSuccessful()) {\n Toast.makeText(LoginActivity.this,\n getResources().getString\n (R.string.login_wrong_combination_error)\n ,Toast.LENGTH_LONG).show();\n }\n\n else {\n // else check if a profile exists for the user, if not create one\n\n // get current user\n final FirebaseUser user = mFirebaseAuth.getCurrentUser();\n\n // Attach a listener to read the data\n databaseReference.child(user.getUid())\n .addListenerForSingleValueEvent(\n new ValueEventListener() {\n\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n User userInfo = dataSnapshot.getValue(User.class);\n\n // null make a new one\n if (userInfo == null)\n {\n userInfo = new User();\n\n // update database using user id\n databaseReference.child\n (user.getUid()).setValue(userInfo);\n }\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n Toast.makeText(LoginActivity.this,\n getResources().getString(R.string.db_error_text)\n + databaseError.getCode(),\n Toast.LENGTH_LONG).show();\n }\n });\n }\n }",
"@Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (task.isSuccessful()) {\n Toast.makeText(LogInActivity.this, \"Login success\", Toast.LENGTH_SHORT).show();\n startActivity(new Intent(getApplicationContext(), SelectionActivity.class));\n finish();\n loginButton.setEnabled(true);\n progressBar.setVisibility(View.GONE);\n } else {\n Toast.makeText(LogInActivity.this, \"Your email or password is incorrect \"+task.getException(), Toast.LENGTH_SHORT).show();\n loginButton.setEnabled(true);\n progressBar.setVisibility(View.GONE);\n }\n }",
"@Override protected void onPreExecute() {\r\n // A toast provides simple feedback about an operation as popup. \r\n // It takes the application Context, the text message, and the duration for the toast as arguments\r\n //android.widget.Toast.makeText(mContext, \"Going for the network call..\", android.widget.Toast.LENGTH_LONG).show();\r\n }",
"@Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n\n progressBar.setVisibility(View.GONE);\n if (!task.isSuccessful()) {\n // there was an error\n if (password.length() < 6) {\n tPassword.setError(getString(R.string.minimum_password));\n } else {\n Toast.makeText(TeacherLoginActivity.this,getString(R.string.auth_failed), Toast.LENGTH_LONG).show();\n }\n }\n else {\n task.isSuccessful();\n startActivity(new Intent(TeacherLoginActivity.this, TeaMainScreen.class));\n overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out);\n finish();\n }\n }",
"public void checkLogin() {\n String username = ((EditText) findViewById(R.id.Username)).getText().toString();\n String password = ((EditText) findViewById(R.id.Password)).getText().toString();\n final TextView feedback = (TextView) findViewById(R.id.feedback);\n mAuth.signInWithEmailAndPassword(username, password)\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (task.isSuccessful()) {\n // Sign in success, update UI with the signed-in user's information\n Log.d(\"LOG IN\", \"signInWithEmail:success\");\n FirebaseUser user = mAuth.getCurrentUser();\n startActivity(new Intent(LoginActivity.this, HomeScreen.class));\n } else {\n // If sign in fails, display a message to the user.\n Log.w(\"LOGIN\", \"signInWithEmail:failure\", task.getException());\n Toast.makeText(LoginActivity.this, \"Authentication failed.\",\n Toast.LENGTH_SHORT).show();\n feedback.setText(\"FAIL!\");\n }\n\n // ...\n }\n });\n\n\n }"
] |
[
"0.77720433",
"0.76531446",
"0.75912035",
"0.7568559",
"0.7565063",
"0.7534575",
"0.7529717",
"0.7526925",
"0.74435383",
"0.740122",
"0.7365417",
"0.7355358",
"0.73406345",
"0.72474337",
"0.72469115",
"0.72015184",
"0.71705884",
"0.7159184",
"0.71582246",
"0.7158202",
"0.71552855",
"0.71138686",
"0.7104588",
"0.7100162",
"0.7086125",
"0.7074005",
"0.7062248",
"0.704414",
"0.6980509",
"0.69704765",
"0.69583005",
"0.69471735",
"0.6946914",
"0.6945116",
"0.69407916",
"0.6907561",
"0.6894151",
"0.68832934",
"0.68786526",
"0.6877562",
"0.68684906",
"0.68573684",
"0.6844609",
"0.6822325",
"0.6776765",
"0.6776752",
"0.6775121",
"0.67687434",
"0.6766744",
"0.67654026",
"0.6757973",
"0.67313045",
"0.67109627",
"0.67077327",
"0.66771287",
"0.66739756",
"0.6671728",
"0.6652068",
"0.6648612",
"0.6646817",
"0.66276664",
"0.6616613",
"0.6614017",
"0.66083276",
"0.66083276",
"0.65888906",
"0.6584824",
"0.6582775",
"0.6582642",
"0.65699154",
"0.65682477",
"0.6566855",
"0.6552697",
"0.6552489",
"0.6544059",
"0.6532392",
"0.65145427",
"0.6509549",
"0.65054655",
"0.64839685",
"0.64819723",
"0.64503515",
"0.64481467",
"0.6446626",
"0.64422804",
"0.6429015",
"0.64177036",
"0.6417595",
"0.64173",
"0.6417286",
"0.6415136",
"0.64107317",
"0.6408251",
"0.6407789",
"0.6402693",
"0.64023006",
"0.6400804",
"0.6397719",
"0.6396609",
"0.6388012"
] |
0.766343
|
1
|
The class holding records for this type
|
@Override
public Class<PatientRecord> getRecordType() {
return PatientRecord.class;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public RecordRecord() {\n\t\tsuper(org.jooq.examples.cubrid.demodb.tables.Record.RECORD);\n\t}",
"public Class<?> getRecordClass() \n\t{\n\t return recordClass ;\n\t}",
"public DataRecord() {\n super(DataTable.DATA);\n }",
"@Override\n public Class<Record> getRecordType() {\n return Record.class;\n }",
"@Override\n public Class<Record> getRecordType() {\n return Record.class;\n }",
"@Override\n public Class<Record> getRecordType() {\n return Record.class;\n }",
"@Override\n public Class<Record> getRecordType() {\n return Record.class;\n }",
"public Record() {\n data = new int[DatabaseManager.fieldNames.length];\n }",
"@Override\n public Class<PgClassRecord> getRecordType() {\n return PgClassRecord.class;\n }",
"@Override\n public Class<ModelRecord> getRecordType() {\n return ModelRecord.class;\n }",
"@Override\n\tpublic java.lang.Class<org.jooq.Record> getRecordType() {\n\t\treturn __RECORD_TYPE;\n\t}",
"@Override\n\tpublic java.lang.Class<org.jooq.Record> getRecordType() {\n\t\treturn __RECORD_TYPE;\n\t}",
"@Override\n\tpublic java.lang.Class<org.jooq.Record> getRecordType() {\n\t\treturn __RECORD_TYPE;\n\t}",
"public ARecord() {\n super(A.A);\n }",
"@Override\n\tpublic java.lang.Class<org.jooq.Record> getRecordType() {\n\t\treturn org.jooq.Record.class;\n\t}",
"@Override\n\tpublic java.lang.Class<org.jooq.Record> getRecordType() {\n\t\treturn org.jooq.Record.class;\n\t}",
"@Override\n\tpublic java.lang.Class<org.jooq.Record> getRecordType() {\n\t\treturn org.jooq.Record.class;\n\t}",
"public ObjectRecord() {\n\t\tsuper(org.jooq.test.hsqldb.generatedclasses.tables.Object.OBJECT);\n\t}",
"public WERecordDataModel()\n\t{\n\t\tsuper();\n\t\tsetEqFileName(RECORD_NAME);\n\t\tinitMessages();\n\t}",
"public Record toRecord() {\n return new Record().setColumns(this);\n }",
"DataHRecordData() {}",
"@Override\n public Class<ResourcesRecord> getRecordType() {\n return ResourcesRecord.class;\n }",
"public GO_RecordType() {\n }",
"@Override\n public Class<QsRecord> getRecordType() {\n return QsRecord.class;\n }",
"public ItemRecord() {\n super(Item.ITEM);\n }",
"public Record getRecord() {\n return record;\n }",
"public Record getRecord() {\n return record;\n }",
"@Override\n\tpublic Class<Record> getRecordType() {\n\t\treturn Record.class;\n\t}",
"@Override\n\tpublic Class<Record> getRecordType() {\n\t\treturn Record.class;\n\t}",
"@Override\n public Class<LinearmodelRecord> getRecordType() {\n return LinearmodelRecord.class;\n }",
"@JsonProperty(\"Records\") abstract List<?> getRecords();",
"public Item_Record() {\n super(Item_.ITEM_);\n }",
"@Override\n public Class<MytableRecord> getRecordType() {\n return MytableRecord.class;\n }",
"@Override\n protected Class<RecordType> getBoundType() {\n return RecordType.class;\n }",
"public interface CollectionRecord {\n\n\t/**\n\t * Gets the id attribute of the CollectionRecord object\n\t *\n\t * @return The id value\n\t */\n\tpublic String getId();\n\n\n\t/**\n\t * Gets the setSpec attribute of the CollectionRecord object\n\t *\n\t * @return The setSpec value\n\t */\n\tpublic String getSetSpec();\n\n\n\t/**\n\t * Gets the metadataHandle attribute of the CollectionRecord object\n\t *\n\t * @param collectionSetSpec setSpec (e.g., \"dcc\")\n\t * @return The metadataHandle value\n\t * @exception Exception if there is a webservice error\n\t */\n\tpublic String getMetadataHandle(String collectionSetSpec) throws Exception;\n\n\n\t/**\n\t * Gets the handleServiceBaseUrl attribute of the CollectionRecord object\n\t *\n\t * @return The handleServiceBaseUrl value\n\t */\n\tpublic String getHandleServiceBaseUrl();\n\n\t/* \tpublic String getNativeFormat();\n\tpublic DcsDataRecord getDcsDataRecord();\n\tpublic MetaDataFramework getMetaDataFramework();\n\tpublic Document getLocalizedDocument(); */\n}",
"@Override\n\tpublic Class<QuotesRecord> getRecordType() {\n\t\treturn QuotesRecord.class;\n\t}",
"@Override\n public Class<AnalysisRecord> getRecordType() {\n return AnalysisRecord.class;\n }",
"public Record() {\n this.symptoms = new LinkedHashSet<>();\n this.diagnoses = new LinkedHashSet<>();\n this.prescriptions = new LinkedHashSet<>();\n }",
"public OpenERPRecordSet() {\r\n\t\trecords = new Vector<OpenERPRecord>();\r\n\t}",
"@Override\n public Class<QuestionForBuddysRecord> getRecordType() {\n return QuestionForBuddysRecord.class;\n }",
"public QuestionsRecord() {\n\t\tsuper(sooth.entities.tables.Questions.QUESTIONS);\n\t}",
"public Data() {\n this.customers = new HashMap<>();\n this.orders = new HashMap<>();\n this.siteVisits = new HashMap<>();\n this.imageUploads = new HashMap<>();\n }",
"public GenericData.Record serialize() {\n return null;\n }",
"public GenericTcalRecord() {\n this(-1);\n }",
"public StudentRecord() {\n\t\tscores = new ArrayList<>();\n\t\taverages = new double[5];\n\t}",
"@Override\n public Class<CarmodelRecord> getRecordType() {\n return CarmodelRecord.class;\n }",
"@Override\n public Class<MemberRecord> getRecordType() {\n return MemberRecord.class;\n }",
"public BookRecord() {\n super(Book.BOOK);\n }",
"@Override\n public Class<SearchLogsRecord> getRecordType() {\n return SearchLogsRecord.class;\n }",
"@Override\n public Class<EasytaxTaxationsRecord> getRecordType() {\n return EasytaxTaxationsRecord.class;\n }",
"public SalesRecords() {\n super();\n }",
"public SongRecord(){\n\t}",
"@Override\n public Class<LangsRecord> getRecordType() {\n return LangsRecord.class;\n }",
"public PersonRecord(){\n\t\tlistNames = new ArrayList<String>();\n\t}",
"@Override\n public Class<RoomRecord> getRecordType() {\n return RoomRecord.class;\n }",
"@Override\n public Class<CalcIndicatorAccRecordInstanceRecord> getRecordType() {\n return CalcIndicatorAccRecordInstanceRecord.class;\n }",
"public ArrayList<Record> getRecords() {\r\n\t\treturn records;\r\n\t}",
"@Override\n public Class<CourseRecord> getRecordType() {\n return CourseRecord.class;\n }",
"@Override\n public Class<CabTripDataRecord> getRecordType() {\n return CabTripDataRecord.class;\n }",
"@Override\n public Class<TripsRecord> getRecordType() {\n return TripsRecord.class;\n }",
"public Item_Record(Integer _Id_, String name_, String description_, String code_, Double price_, Double retailPrice_, Double costPrice_, Object _Search_, String[] _Types_, String _LastModified_, Integer _Version_) {\n super(Item_.ITEM_);\n\n set(0, _Id_);\n set(1, name_);\n set(2, description_);\n set(3, code_);\n set(4, price_);\n set(5, retailPrice_);\n set(6, costPrice_);\n set(7, _Search_);\n set(8, _Types_);\n set(9, _LastModified_);\n set(10, _Version_);\n }",
"@Override\r\n\tpublic List<T> getRecords() {\n\t\treturn null;\r\n\t}",
"@Override\n public Class<StudentCourseRecord> getRecordType() {\n return StudentCourseRecord.class;\n }",
"@Override\n public Class<ZTest1Record> getRecordType() {\n return ZTest1Record.class;\n }",
"public OfcRecordRecord() {\n\t\tsuper(org.openforis.collect.persistence.jooq.tables.OfcRecord.OFC_RECORD);\n\t}",
"public Class<gDBR> getRecordClass() \n {\n return this.rcdClass;\n }",
"public RecordingRepository() {\r\n recordings = new ArrayList<>();\r\n recordingMap = new HashMap<>();\r\n recordingsByMeetingIDMap = new HashMap<>();\r\n update();\r\n }",
"@Override\n public Class<GchCarLifeBbsRecord> getRecordType() {\n return GchCarLifeBbsRecord.class;\n }",
"@Override\n\tpublic java.lang.Class<nesi.jobs.tables.records.HourlyRecordRecord> getRecordType() {\n\t\treturn nesi.jobs.tables.records.HourlyRecordRecord.class;\n\t}",
"@Override\n public Class<AccountRecord> getRecordType() {\n return AccountRecord.class;\n }",
"public ExperimentRecord() {\n super(Experiment.EXPERIMENT);\n }",
"public MealRecord() {\n\t\tsuper(Meal.MEAL);\n\t}",
"@Override\n public Class<StaffRecord> getRecordType() {\n return StaffRecord.class;\n }",
"public LateComingRecord() {\n\t\t}",
"@Override\n public Class<AssessmentStudenttrainingworkflowRecord> getRecordType() {\n return AssessmentStudenttrainingworkflowRecord.class;\n }",
"public UsersRecord() {\n super(Users.USERS);\n }",
"@Override\n public Class<MyMenuRecord> getRecordType() {\n return MyMenuRecord.class;\n }",
"public DataPersistence() {\n storage = new HashMap<>();\n idCounter = 0;\n }",
"public AnswerRecord() {\n super(Answer.ANSWER);\n }",
"public DatasetReader()\n\t{\n\t\treviews = new ArrayList<Review>();\n\t\tratings = new HashMap<Double,List<Double>>();\n\t\tproducts = new HashMap<String, Map<String,Double>>();\n\t\tproductRatings = new HashMap<String, List<Double>>();\n\t\treInstanceList = new ArrayList<ReviewInstance>();\n\t\treInstanceMap = new HashMap<String, ReviewInstance>();\n\t}",
"@Override\n public Class<JournalEntryLineRecord> getRecordType() {\n return JournalEntryLineRecord.class;\n }",
"@Override\n public Class<CommentsRecord> getRecordType() {\n return CommentsRecord.class;\n }",
"@Override\n public Class<SpeedAlertsHistoryRecord> getRecordType() {\n return SpeedAlertsHistoryRecord.class;\n }",
"@Override\n public Class<RatingsRecord> getRecordType() {\n return RatingsRecord.class;\n }",
"@Override\n public Class<TOpLogsRecord> getRecordType() {\n return TOpLogsRecord.class;\n }",
"@Override\n\tpublic java.lang.Class<net.user1.union.zz.common.model.tables.records.ZzcronRecord> getRecordType() {\n\t\treturn __RECORD_TYPE;\n\t}",
"@SuppressWarnings(\"unchecked\")\n\tpublic RelationClass() {\n\t\t\n\t\tParser pars = new Parser(FILE_NAME); \t\t\t\t\t\t\t\n\t\tint bucketlength = 0;\n\t\tbucketlength = (int) (pars.getNumOfLines()*BUCKET_MULTIPLIER);\n\t\tbuckets = (Node<k,v>[]) new Node<?,?>[bucketlength];\n\t\tpars.process(this);\t\t\t\t\t\t\t\t\t\t\t\t\n\t}",
"@Override\n\tpublic java.lang.Class<persistencia.tables.records.AsientoRecord> getRecordType() {\n\t\treturn persistencia.tables.records.AsientoRecord.class;\n\t}",
"@Override\n public Class<StatsRecord> getRecordType() {\n return StatsRecord.class;\n }",
"@Override\n\tpublic Class<QuestionRecord> getRecordType() {\n\t\treturn QuestionRecord.class;\n\t}",
"public MetricSchemaRecord() { }",
"public PedidoRecord() {\n super(Pedido.PEDIDO);\n }",
"@Override\n public Class<DynamicSchemaRecord> getRecordType() {\n return DynamicSchemaRecord.class;\n }",
"public PersonRecord() {}",
"@Override\n\tpublic Class<RentalRecord> getRecordType() {\n\t\treturn RentalRecord.class;\n\t}",
"public PagesRecord() {\n super(Pages.PAGES);\n }",
"@Override\n public Class<AbsenceRecord> getRecordType() {\n return AbsenceRecord.class;\n }",
"@Override\n public Class<RedpacketConsumingRecordsRecord> getRecordType() {\n return RedpacketConsumingRecordsRecord.class;\n }",
"@Override\n\tpublic java.lang.Class<jooq.model.tables.records.TBasicSalaryRecord> getRecordType() {\n\t\treturn jooq.model.tables.records.TBasicSalaryRecord.class;\n\t}",
"public YearlyRecord() {\n this.wordToCount = new HashMap<String, Integer>();\n this.wordToRank = new HashMap<String, Integer>();\n this.countToWord = new HashMap<Integer, Set<String>>();\n }"
] |
[
"0.68004626",
"0.66954035",
"0.64103794",
"0.6398801",
"0.6398801",
"0.6398801",
"0.6398801",
"0.6393993",
"0.6354873",
"0.6192012",
"0.61258304",
"0.61258304",
"0.61258304",
"0.6104736",
"0.60470754",
"0.60470754",
"0.60470754",
"0.6040716",
"0.6029211",
"0.6020949",
"0.6008978",
"0.60082155",
"0.6006576",
"0.59716636",
"0.59703285",
"0.5949182",
"0.5949182",
"0.59396815",
"0.59396815",
"0.5936131",
"0.5935658",
"0.5895888",
"0.5895527",
"0.5893964",
"0.58751285",
"0.58681023",
"0.5865894",
"0.5864961",
"0.5855157",
"0.5851545",
"0.58495414",
"0.58392423",
"0.58338994",
"0.58154637",
"0.58069575",
"0.57927567",
"0.578939",
"0.57841045",
"0.5779981",
"0.5753099",
"0.5741735",
"0.57333666",
"0.57321835",
"0.5731796",
"0.57317585",
"0.572287",
"0.5720141",
"0.5712233",
"0.56939065",
"0.56927073",
"0.5685293",
"0.56847894",
"0.5683809",
"0.56834316",
"0.56828403",
"0.56666017",
"0.56607187",
"0.56579894",
"0.5648655",
"0.56438047",
"0.5620551",
"0.561873",
"0.5609984",
"0.55931836",
"0.55871445",
"0.5586237",
"0.55789423",
"0.55779636",
"0.55737203",
"0.55702287",
"0.55692416",
"0.5561011",
"0.5559403",
"0.5543905",
"0.5541634",
"0.5536858",
"0.5522634",
"0.5517553",
"0.5517258",
"0.5512109",
"0.5509594",
"0.55070907",
"0.5496529",
"0.54921997",
"0.5491354",
"0.5486711",
"0.5481696",
"0.54758567",
"0.5471066",
"0.54659206"
] |
0.5884042
|
34
|
Create a patientregsys.patient table reference
|
public Patient() {
this(DSL.name("patient"), null);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public org.hl7.fhir.ResourceReference addNewPatient()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.ResourceReference target = null;\n target = (org.hl7.fhir.ResourceReference)get_store().add_element_user(PATIENT$2);\n return target;\n }\n }",
"public void createNewPatient(String firstName, String lastName, String tz, String diagnosis, final Context context){\n final DocumentReference myDocPatient = db.collection(Constants.PATIENTS_COLLECTION_FIELD).document();\n final Patient patientToAdd = new Patient(firstName, lastName, myDocPatient.getId(), diagnosis, tz, localUser.getId());\n myDocPatient.set(patientToAdd);\n localUser.addPatientId(patientToAdd.getId());\n updateUserInDatabase(localUser);\n }",
"public void createResident(Resident resident);",
"private Patient setPatientIdentifier(Patient patient){\n\t\tUUID u = new UUID(1,0);\n\t\ttry{\n\t\t\tUUID randomUUID = u.randomUUID();\n\t\t\tPatientIdentifier pi = new PatientIdentifier();\n\t\t\tpi.setIdentifier(randomUUID.toString());\n\t\t\tpatient.addIdentifier(pi);\n\t\t}\n\t\tcatch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn patient;\n\t}",
"@Insert(\"INSERT into patients(id_patient, first_name, last_name, PESEL, id_address, email, phone_number, \" +\n \"id_firstcontact_doctor, password) VALUES (#{id}, #{firstName}, #{lastName}, #{pesel}, #{address.addressId},\" +\n \"#{email}, #{phoneNumber}, #{firstContactDoctor.id}, #{password})\")\n @Options(useGeneratedKeys = true, keyProperty = \"id\", keyColumn = \"id_patient\")\n void addPatient(Patient patient);",
"@POST\n @Path(\"patients\")\n @Consumes(MediaType.APPLICATION_JSON)\n @Produces(\"application/json\")\n public Patient newPatient(Patient pat){\n serv.editPatient(pat);\n return pat;\n }",
"Reference getPatient();",
"public void registerPatientMethod1(Patient p);",
"public Patient() {\r\n\r\n\t}",
"public int createNewPatient(Patient p) {\n int id = 0;\n String query = \"INSERT INTO PATIENTS(name, gender, birth, dpi, phone, weight, blood, email, password) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?)\";\n try (PreparedStatement pst = this.transaction.prepareStatement(query, PreparedStatement.RETURN_GENERATED_KEYS)) {\n pst.setString(1, p.getName());\n pst.setBoolean(2, p.isGender());\n pst.setDate(3, p.getBirth());\n pst.setString(4, p.getDpi());\n pst.setString(5, p.getPhone());\n pst.setDouble(6, p.getWeight());\n pst.setString(7, p.getBlood());\n pst.setString(8, p.getEmail());\n pst.setString(9, p.getPass());\n pst.executeUpdate();\n \n ResultSet rs = pst.getGeneratedKeys();\n if(rs.next()) {\n id = rs.getInt(1);\n }\n } catch (SQLException ex) {\n ex.printStackTrace(System.out);\n }\n return id;\n }",
"public Patient() {\n\t\t\n\t}",
"void AddPatiant(Patient p) throws Exception;",
"public boolean createPatient(Patient patient,PatientRecord patientRecord) {\r\n\t\tboolean isCreated= false;\r\n\t\tString[] row= new String[9];\r\n\t\ttry {\r\n\t\t\tString query = \"INSERT INTO patients VALUES (?,?,?,?,?,?,?,?,?,?,?,?)\";\r\n\t\t\tPreparedStatement pStatement= super.getConnection().prepareStatement(query);\r\n\t\t\tpStatement.setInt(1, patient.getId());\r\n\t\t\tpStatement.setString(2, patient.getFirstName());\r\n\t\t\tpStatement.setString(3, patient.getLastName());\r\n\t\t\tpStatement.setString(4, patient.getGender());\r\n\t\t\tpStatement.setInt(5, patient.getAge());\r\n\t\t\tpStatement.setString(6, patient.getPhone());\r\n\t\t\tpStatement.setString(7, patient.getAddress().getVillege());\r\n\t\t\tpStatement.setString(8, patient.getAddress().getCommune());\r\n\t\t\tpStatement.setString(9, patient.getAddress().getCity());\r\n\t\t\tpStatement.setString(10, patient.getAddress().getProvince());\r\n\t\t\tpStatement.setString(11, patient.getAddress().getCountry());\r\n\t\t\tpStatement.setString(12, patient.getType());\r\n\t\t\t\r\n\t\t\tif(pStatement.executeUpdate() > 0) {\r\n\t\t\t\tpatientID.add(patient.getId());\r\n\t\t\t\trow[0]= patient.getId()+\"\";\r\n\t\t\t\trow[1]= patient.getFirstName();\r\n\t\t\t\trow[2]= patient.getLastName();\r\n\t\t\t\trow[3]= patient.getGender();\r\n\t\t\t\trow[4]= patient.getAge()+\"\";\r\n\t\t\t\trow[5]= patientRecord.getDate()+\"\";\r\n\t\t\t\trow[6]= patient.getPhone();\r\n\t\t\t\tmodelPatient.addRow(row);\r\n\t\t\t\tisCreated= true;\r\n\t\t\t\tSystem.out.println(\"You have insert a patient record\");\r\n\t\t\t\t\r\n\t\t\t};\r\n\t\t}catch (Exception e) {\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\r\n\t\treturn isCreated;\r\n\t}",
"public Patient() {\n }",
"protected void recordPatientVisit() {\r\n\r\n\t\t// obtain unique android id for the device\r\n\t\tString android_device_id = Secure.getString(getApplicationContext().getContentResolver(),\r\n Secure.ANDROID_ID); \r\n\t\t\r\n\t\t// add the patient record to the DB\r\n\t\tgetSupportingLifeService().createPatientAssessment(getPatientAssessment(), android_device_id);\r\n\t}",
"public Patient (){\r\n }",
"public static Long createPregnancy(Connection conn, Map queries, EncounterData vo, Long patientId, Date dateVisit, String userName, Long siteId) throws ServletException, SQLException {\r\n Long pregnancyId;\r\n String sqlCreatePregnancy = (String) queries.get(\"SQL_CREATE_PREGNANCY\");\r\n Pregnancy pregnancy = vo.getPregnancy();\r\n String pregnancyUuid = null;\r\n if (pregnancy != null) {\r\n pregnancyUuid = pregnancy.getUuid();\r\n } else {\r\n \tUUID uuid = UUID.randomUUID();\r\n pregnancyUuid = uuid.toString();\r\n }\r\n ArrayList pregnancyValues = new ArrayList();\r\n // add patient_id to pregnancyValues\r\n pregnancyValues.add(patientId);\r\n // add date_visit to pregnancyValues\r\n pregnancyValues.add(dateVisit);\r\n FormDAO.AddAuditInfo(vo, pregnancyValues, userName, siteId);\r\n // adds uuid\r\n pregnancyValues.add(pregnancyUuid);\r\n pregnancyId = (Long) DatabaseUtils.create(conn, sqlCreatePregnancy, pregnancyValues.toArray());\r\n return pregnancyId;\r\n }",
"public void createNew(PatientBO patient)\n {\n _dietTreatment = new DietTreatmentBO();\n _dietTreatment.setPatient(patient);\n setPatient(patient);\n }",
"public Patient(String alias) {\n this(DSL.name(alias), PATIENT);\n }",
"public Long addPatient(long pid, String name, Date dob, int age) throws PatientExn;",
"@Override\n\tpublic Patientstreatments createpatienttreat(patienttreatmentDto ptd) {\n\t\tPatientstreatments pt = new Patientstreatments();\n\t\tpt.setOther_Details(ptd.getOtherdetails());\n\t\t\n\t\t \n\t\tPatients pp = new Patients();\n\t\t\t\t//pp.setDateOfbirth(ptd.getDateOfbirth());\n\t\t pt.setPatient(pp);\n\t\t \n\t\t Treatments treat = new Treatments();\n\t\t treat.setTreatmentcost(ptd.getTreatmentcost());\n\t\t treat.setMedicationorsugery(ptd.getMedicationorsugery());\n\t\t treat.setOtherdetails(ptd.getOtherdetails());\n\t\t pt.setTreatment(treat);\n\t\t \n\t\t Refcalendar cal = new Refcalendar();\n\t\t cal.setDay_Date_Time(ptd.getDay_Date_Time());\n\t\t cal.setDay_Number(ptd.getDay_Number());\n\t\t pt.setRefCalendar(cal);\n\t\t \n\t\t Helpscore help = new Helpscore();\n\t\t help.setHelp_Score(ptd.getHelp_Score());\n\t\t pt.setHelpScore(help);\n\t\t \n\t\t Sideeffectscores side = new Sideeffectscores();\n\t\t side.setSide_Effect_Score(ptd.getSide_Effect_Score());\n\t\t pt.setSideEffectScore(side);\n\t\t \t\t \n\t\treturn patreatrep.save(pt);\n\t}",
"public void addPatientToTable(Patient patient, Hospital_Management_System hms) \n\t{\n\t\tmodel.addRow(new Object[]{patient.getID(), patient.getFirstName(), patient.getLastName(),\n\t\tpatient.getSex(), patient.getDOB(), patient.getPhoneNum(), patient.getEmail(), \"Edit\",\n\t\t\"Add\"});\n\t\t\n\t\ttable.addMouseListener(new MouseAdapter() \n\t\t{\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) \n\t\t\t{\n\t\t\t\tid = (int)table.getValueAt(table.getSelectedRow(), 0);\n\t\t\t\ttable.getColumnModel().getColumn(7).setCellEditor(new BtnEditorAdminViewAppointment(new JTextField(), hms, id));\n\t\t\t\ttable.getColumnModel().getColumn(8).setCellEditor(new BtnEditorAddAppointment(new JTextField(), hms, id));\n\t\t\t}\n\t\t});\n\t\t//set custom renderer and editor to column\n\t\ttable.getColumnModel().getColumn(7).setCellRenderer(new ButtonRenderer());\n\t\ttable.getColumnModel().getColumn(8).setCellRenderer(new ButtonRenderer());\n\t}",
"@PostMapping(value = \"/insert\", produces = \"application/json\")\n void insert(@RequestBody Patient patient);",
"public Patient(String n, String type){\n name =\"Brendan\";\n pid = \"01723-X72312-7123\";\n birthDate = new Date();\n nationalID = n;\n sex =\"Female\";\n mothersName = \"Mary\";\n fathersName = \"John\";\n enrolledSchema = new Schema();\n doctype = 1;\n }",
"public void insertPatient(Patient p) {\n String query = \"INSERT INTO PATIENTS(patient_id, name, gender, birth, dpi, phone, weight, blood, email, password) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?)\";\n try (PreparedStatement pst = this.transaction.prepareStatement(query)) {\n pst.setInt(1, p.getPatientId());\n pst.setString(2, p.getName());\n pst.setBoolean(3, p.isGender());\n pst.setDate(4, p.getBirth());\n pst.setString(5, p.getDpi());\n pst.setString(6, p.getPhone());\n pst.setDouble(7, p.getWeight());\n pst.setString(8, p.getBlood());\n pst.setString(9, p.getEmail());\n pst.setString(10, p.getPass());\n pst.executeUpdate();\n } catch (SQLException ex) {\n ex.printStackTrace(System.out);\n }\n }",
"private static void changePatient(){\r\n // opretter ny instans af tempPatinet som overskriver den gamle\r\n Patient p = new Patient(); // det her kan udskiftes med en nulstil funktion for at forsikre at der altid kun er en patient.\r\n Patient.setCprNumber((Long) null);\r\n }",
"public void setPatientId(String patientId)\n {\n this.patientId = patientId;\n }",
"public Patient(Name alias) {\n this(alias, PATIENT);\n }",
"public String createTable(){\r\n return \"CREATE TABLE Doctor \" +\r\n \"(idDoctor decimal primary key, \" +\r\n \"firstNameDoctor char(14), \" +\r\n \"lastNameDoctor char(14), \" +\r\n \"costPerVisit integer,\" +\r\n \"qualification varchar(32))\";\r\n }",
"public void addPatient(Patient P)\r\n {\r\n\t int age =0;\r\n\t String secQ =\"What is your favorite food?\";\r\n\t String newPat = \"INSERT INTO PATIENTDATA (FIRSTNAME,LASTNAME,AGE,USERNAME,PASSWORD,SECURITYQN,SECURITYANS,\"+\r\n\t\t\t \t\t \"SYMPTOM1,SYMPTOM2,SYMPTOM3,SYMPTOM4,SYMPTOM5,SYMPTOM6,SYMPTOM7,\"+\r\n \t\t\t\t\t\"PrevSYMPTOM1_1,PrevSYMPTOM1_2,PrevSYMPTOM1_3,PrevSYMPTOM1_4,PrevSYMPTOM1_5,PrevSYMPTOM1_6,PrevSYMPTOM1_7,\"+\r\n \t\t\t\t\t\"PrevSYMPTOM2_1,PrevSYMPTOM2_2,PrevSYMPTOM2_3,PrevSYMPTOM2_4,PrevSYMPTOM2_5,PrevSYMPTOM2_6,PrevSYMPTOM2_7,\"+\r\n\t\t\t \t\t \"SYMPTOM1Thresh,SYMPTOM2Thresh,SYMPTOM3Thresh,SYMPTOM4Thresh,SYMPTOM5Thresh,SYMPTOM6Thresh,SYMPTOM7Thresh, DOCTORSNAME, NOTIFICATION ) \"; //added notification\r\n\t newPat = newPat+\"VALUES ('\"+P.firstName+\"', '\"+P.lastName+\"', \"+age+\", '\"+P.userName+\"', '\"+P.password+\"', '\"+secQ+\"', '\"+P.securityQuestionAnswer+\"',\"\r\n\t\t\t \t\t +P.getEnterSymptomLevel()[0]+\",\"+P.getEnterSymptomLevel()[1]+\",\"+P.getEnterSymptomLevel()[2]+\",\"+P.getEnterSymptomLevel()[3]+\",\"+P.getEnterSymptomLevel()[4]+\",\"+P.getEnterSymptomLevel()[5]+\",\"+P.getEnterSymptomLevel()[6]+\r\n\t\t\t \t\t\t\",\" +P.getPreviousSymptomLevel1()[0]+\",\"+P.getPreviousSymptomLevel1()[1]+\",\"+P.getPreviousSymptomLevel1()[2]+\",\"+P.getPreviousSymptomLevel1()[3]+\",\"+P.getPreviousSymptomLevel1()[4]+\",\"+P.getPreviousSymptomLevel1()[5]+\",\"+P.getPreviousSymptomLevel1()[6]+\",\"\r\n\t\t\t \t\t\t+P.getPreviousSymptomLevel2()[0]+\",\"+P.getPreviousSymptomLevel2()[1]+\",\"+P.getPreviousSymptomLevel2()[2]+\",\"+P.getPreviousSymptomLevel2()[3]+\",\"+P.getPreviousSymptomLevel2()[4]+\",\"+P.getPreviousSymptomLevel2()[5]+\",\"+P.getPreviousSymptomLevel2()[6]+\",\"\r\n\t\t\t \t\t\t+P.getSymptomsThreshold()[0]+\",\"+P.getSymptomsThreshold()[1]+\",\"+P.getSymptomsThreshold()[2]+\",\"+P.getSymptomsThreshold()[3]+\",\"+P.getSymptomsThreshold()[4]+\",\"+P.getSymptomsThreshold()[5]+\",\"+P.getSymptomsThreshold()[6]+\",'\"+P.getPatientsDoctor()+\"',0);\";\r\n\t \r\n\t try {\r\n\t\tstmt.executeUpdate(newPat);\r\n\t} catch (SQLException e) {\r\n\t\t\r\n\t\te.printStackTrace();\r\n\t}\r\n }",
"public static void initializeDatabase()\r\n\t{\r\n\t\t\r\n\t con = dbConnection();\r\n\t stmt = null;\r\n\r\n try \r\n {\r\n ///////Creating the Patient Database Table if not already there.\t\r\n \t stmt = con.createStatement();\r\n\t String sql1 = \"CREATE TABLE IF NOT EXISTS PATIENTDATA \" +\r\n \"(FIRSTNAME TEXT NOT NULL, \" + \"LASTNAME TEXT NOT NULL, \" +\r\n \" AGE INT NOT NULL, \" +\" USERNAME TEXT, \" + \" PASSWORD TEXT,\"+ \r\n \t\t\t \" SECURITYQN TEXT,\"+\" SECURITYANS TEXT,\"+\" SYMPTOM1 INT DEFAULT -1,\"+ \r\n \t\t\t \" SYMPTOM2 INT DEFAULT -1,\"+ \" SYMPTOM3 INT DEFAULT -1,\"+ \" SYMPTOM4 INT DEFAULT -1,\"+\r\n \t\t\t \" SYMPTOM5 INT DEFAULT -1,\"+\" SYMPTOM6 INT DEFAULT -1,\"+\" SYMPTOM7 INT DEFAULT -1,\"+ \r\n \t\t\t \" PrevSYMPTOM1_1 INT DEFAULT -1,\"+ \" PrevSYMPTOM1_2 INT DEFAULT -1,\"+ \" PrevSYMPTOM1_3 INT DEFAULT -1,\"+ \r\n \t\t\t \" PrevSYMPTOM1_4 INT DEFAULT -1,\"+\" PrevSYMPTOM1_5 INT DEFAULT -1,\"+\" PrevSYMPTOM1_6 INT DEFAULT -1,\"+\r\n \t\t\t \" PrevSYMPTOM1_7 INT DEFAULT -1,\"+ \r\n \t\t\t \" PrevSYMPTOM2_1 INT DEFAULT -1,\"+ \" PrevSYMPTOM2_2 INT DEFAULT -1,\"+ \" PrevSYMPTOM2_3 INT DEFAULT -1,\"+ \r\n \t\t\t \" PrevSYMPTOM2_4 INT DEFAULT -1,\"+\" PrevSYMPTOM2_5 INT DEFAULT -1,\"+\" PrevSYMPTOM2_6 INT DEFAULT -1,\"+\r\n \t\t\t \" PrevSYMPTOM2_7 INT DEFAULT -1,\"+ \r\n \t\t\t \" SYMPTOM1Thresh INT DEFAULT 10,\"+ \" SYMPTOM2Thresh INT DEFAULT 10,\"+ \r\n \t\t\t \" SYMPTOM3Thresh INT DEFAULT 10,\"+\" SYMPTOM4Thresh INT DEFAULT 10,\"+\r\n \t\t\t \" SYMPTOM5Thresh INT DEFAULT 10,\"+\" SYMPTOM6Thresh INT DEFAULT 10,\"+\r\n \t\t\t \" SYMPTOM7Thresh INT DEFAULT 10, DOCTORSNAME TEXT, NOTIFICATION INT DEFAULT 0)\";\r\n\t \r\n stmt.executeUpdate(sql1);\r\n\r\n //Creating Doctors Database Table if not there \r\n sql1 = \"CREATE TABLE IF NOT EXISTS DOCTORDATA \" +\r\n \"(FIRSTNAME TEXT NOT NULL, \" + \"LASTNAME TEXT NOT NULL, \" +\r\n \"USERNAME TEXT, \" + \" PASSWORD TEXT,\"+ \r\n\t\t\t \" SECURITYQN TEXT,\"+\" SECURITYANS TEXT)\";\r\n stmt.executeUpdate(sql1);\r\n \r\n \r\n\r\n\t }\r\n catch (SQLException e) \r\n {\r\n\t\t// TODO Auto-generated catch block\r\n \t e.printStackTrace();\r\n\t }\r\n\t\t\r\n\t\t\r\n\t}",
"public Patient (String patientID) {\n this.patientID = patientID;\n this.associatedDoctor = new ArrayList<>();\n }",
"Patient save(Patient patient);",
"public void setPatientId(String patientId){\n\t\tthis.patientId = patientId;\n\t}",
"tbls createtbls();",
"public synchronized void addPatientToStack(String idStack, String idPatient) throws SQLException {\n statement.execute(\"INSERT INTO \" + idStack + \" (id) VALUES ('\" + idPatient + \"')\");\r\n }",
"void deletePatient(Patient target);",
"TABLE createTABLE();",
"public void careForPatient(Patient patient);",
"public Patient(String userID, String fullName, String address, String telephone){\n super(userID, fullName, address, telephone);\n }",
"public void registerReports() throws Exception{\n \tGenericPatientSummary ps = new GenericPatientSummary();\n \tps.delete();\n \tps.setup();\n }",
"public static void createTable() {\n\n // Create statement\n Statement statement = null;\n try {\n statement = Database.getDatabase().getConnection().createStatement();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n // Attempt to create table\n try {\n statement.execute(\n \"CREATE TABLE \" + Constants.SANITATION_TABLE + \"(\" +\n \"requestID INT PRIMARY KEY GENERATED ALWAYS AS IDENTITY (START WITH 1, INCREMENT BY 1),\" +\n \"nodeID VARCHAR(100) References \" + Constants.LOCATION_TABLE + \" (nodeID), \" +\n \"priority VARCHAR(10), \" +\n \"status VARCHAR(100), \" +\n \"description VARCHAR(100), \" +\n \"requesterID INT REFERENCES \" + Constants.USERS_TABLE + \"(userID), \" +\n \"requestTime TIMESTAMP, \" +\n \"servicerID INT REFERENCES \" + Constants.USERS_TABLE + \"(userID), \" +\n \"claimedTime TIMESTAMP, \" +\n \"completedTime TIMESTAMP, \" +\n \"CONSTRAINT priority_enum CHECK (priority in ('LOW', 'MEDIUM', 'HIGH')), \" +\n \"CONSTRAINT status_enum CHECK (status in ('INCOMPLETE', 'COMPLETE')))\"\n );\n } catch (SQLException | NullPointerException e) {\n e.printStackTrace();\n }\n }",
"public static com.statuspatients.plugins.model.Patients createPatients(\n long fooId) {\n return getService().createPatients(fooId);\n }",
"public PatientFrame(Patient pa) {\n patient = pa;\n initComponents();\n updateTable();\n }",
"public Reference patient() {\n return getObject(Reference.class, FhirPropertyNames.PROPERTY_PATIENT);\n }",
"HospitalSystem(Patient patient, Action action){\r\n\t\tthis.patient=patient;\r\n\t\treferredTo=action;\r\n\t\t\r\n\t\t//call the selection action method which will process the patient\r\n\t\tselectAction();\r\n\t\t\r\n\t}",
"Rental createRental();",
"protected void createTableRecordings() {\n\t\tString query = \n\t\t\t\t\"CREATE TABLE IF NOT EXISTS Recordings (\" \t\t\t\t\t\t\t+\n\t\t\t\t\"artist_name\tVARCHAR(128),\" \t\t\t\t\t\t\t\t\t\t+\n\t\t\t\t\"track_name\t\tVARCHAR(128),\" \t\t\t\t\t\t\t\t\t\t+\n\t\t\t\t\"CONSTRAINT unique_track PRIMARY KEY (artist_name, track_name)\" \t+\n\t\t\t\t\");\"\n\t\t\t\t;\n\t\tcreateTable(query);\n\t}",
"@Override\n\tpublic void createDoctorRecord(String FirstName, String LastName, String Address, String PhoneNumber,\n\t\t\tString Specialization, String Location)\tthrows RemoteException \n\t{\n\t\tDoctorRecord record = new DoctorRecord();\n\t\t\n\t\trecord.FirstName = FirstName;\t\n\t\trecord.LastName = LastName;\n\t\trecord.Address = Address;\n\t\trecord.PhoneNumber = PhoneNumber;\n\t\trecord.Specialization = Specialization;\n\t\trecord.getRecordID();\n\t\n\t\tStaffRecords.Add(record);\n\t\tif(Location.equals(\"MTL\")){\n\t\t\tMTLcount++;\n\t\t}\n\t\tif(Location.equals(\"DDO\")){\n\t\t\tDDOcount++;\n\t\t}\n\t\tif(Location.equals(\"LVL\")){\n\t\t\tLVLcount++;\n\t\t}\n\t}",
"MedicalRecord createMedicalRecord(HttpSession session, MedicalRecord medicalRecord);",
"@RequestMapping(path = \"/patient\", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_VALUE, produces = MediaType.APPLICATION_JSON_VALUE)\r\n\t@ApiOperation(value = \"To create new Patient Entry into Database\")\r\n\tpublic PatientRecord insertPatientRecord(@RequestBody PatientRecord patientRecord) {\r\n\t\tPatientRecord patient = patientService.insertPatientDetails(patientRecord);\r\n\t\tlogger.info(\"addNewRecord {}\", patient);\r\n\t\t// kafkaTemplate.send(\"kafkaExample\", patient);\r\n\t\t//template.convertAndSend(MessagingConfig.EXCHANGE, MessagingConfig.ROUTING_KEY, patient);\r\n\t\treturn patient;\r\n\t}",
"public Patient() {\n\t\tsuper();\n\t\t/*\n\t\t * TODO initialize lists\n\t\t */\n\t\ttreatments = Collections.emptyList();\n\t}",
"@ResponseStatus(value = HttpStatus.CREATED)\n @ApiOperation(value = \"Api Endpoint to create the patient details\")\n @PostMapping\n @LogExecutionTime\n public PatientDto createPatientRecord(@Valid @RequestBody PatientDto patientDto) {\n return patientService.createPatientRecord(patientDto);\n }",
"public Patient(String firstName, String lastName, String birthdate, String gender,\n\t\t\tString address1, String address2, String city, String state, String zipcode, String country,\n\t\t\tString insuranceProvider, String insuranceNumber) {\n this.patientID = -1;\n this.firstName = firstName;\n this.lastName = lastName;\n this.birthdate = birthdate;\n this.gender = gender;\n this.address1 = address1;\n this.address2 = address2;\n this.city = city;\n this.state = state;\n this.zipcode = zipcode;\n this.country = country;\n this.insuranceProvider = insuranceProvider;\n this.insuranceNumber = insuranceNumber;\n }",
"@Override\n public Class<PatientRecord> getRecordType() {\n return PatientRecord.class;\n }",
"protected void contructPatientInstance() {\r\n\t\tResources resources = getApplicationContext().getResources();\r\n\t\r\n \t// constuct the patient instance\r\n try {\r\n \tsetPatientAssessment((new PatientHandlerUtils()).populateCcmPatientDetails(resources, getReviewItems()));\t\r\n\t\t} catch (ParseException e) {\r\n\t\t\tLoggerUtils.i(LOG_TAG, \"Parse Exception thrown whilst constructing patient instance\");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public void addPatient(Patient p){\r\n if (counter ==0){\r\n NodeP newNode = new NodeP(p);\r\n front = newNode;\r\n back = newNode;\r\n counter++;\r\n }\r\n else{\r\n NodeP newNode = new NodeP(p);\r\n back.setNext(newNode);\r\n back = back.getNext();\r\n counter++;\r\n }\r\n }",
"int insert(ac_teacher_instrument record);",
"private void savePatientToDatabase(Patient patient){\n DatabaseAdapter cateDB = new DatabaseAdapter(AddPatientActivity.this);\n try {\n cateDB.openDatabaseForRead();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n patient.printPatient();\n cateDB.insertPatient(patient);\n\n cateDB.closeDatabase();\n }",
"@GetMapping(\"/patientRegister\")\n public String patientRegister(Model model){\n model.addAttribute(\"patient\", new User());\n model.addAttribute(\"info\", new PatientInfo());\n return \"views/patient/patientRegister\";\n }",
"public Patient(String iD, String givenName, String surName)\n {\n super(iD, givenName, surName); \n }",
"public void addPatient(String name,String lasname, int age, String unam, String pas, String sec, String secAns, int sympt[],int prevSm1[],int prevSm2[],int threshold[], String dname)\r\n {\r\n\t String newPat = \"INSERT INTO PATIENTDATA (FIRSTNAME,LASTNAME,AGE,USERNAME,PASSWORD,SECURITYQN,SECURITYANS,\"+\r\n\t\t\t \t\t \"SYMPTOM1,SYMPTOM2,SYMPTOM3,SYMPTOM4,SYMPTOM5,SYMPTOM6,SYMPTOM7,\"+\r\n \t\t\t\t\t\"PrevSYMPTOM1_1,PrevSYMPTOM1_2,PrevSYMPTOM1_3,PrevSYMPTOM1_4,PrevSYMPTOM1_5,PrevSYMPTOM1_6,PrevSYMPTOM1_7,\"+\r\n \t\t\t\t\t\"PrevSYMPTOM2_1,PrevSYMPTOM2_2,PrevSYMPTOM2_3,PrevSYMPTOM2_4,PrevSYMPTOM2_5,PrevSYMPTOM2_6,PrevSYMPTOM2_7,\"+\r\n\t\t\t \t\t \"SYMPTOM1Thresh,SYMPTOM2Thresh,SYMPTOM3Thresh,SYMPTOM4Thresh,SYMPTOM5Thresh,SYMPTOM6Thresh,SYMPTOM7Thresh, DOCTORSNAME, NOTIFICATION) \";\r\n\t newPat = newPat+\"VALUES ('\"+name+\"', '\"+lasname+\"', \"+age+\", '\"+unam+\"', '\"+pas+\"', '\"+sec+\"', '\"+secAns+\"',\"\r\n\t\t\t \t\t +sympt[0]+\",\"+sympt[1]+\",\"+sympt[2]+\",\"+sympt[3]+\",\"+sympt[4]+\",\"+sympt[5]+\",\"+sympt[6]+\r\n\t\t\t \t\t\t\",\" +prevSm1[0]+\",\"+prevSm1[1]+\",\"+prevSm1[2]+\",\"+prevSm1[3]+\",\"+prevSm1[4]+\",\"+prevSm1[5]+\",\"+prevSm1[6]+\",\"\r\n\t\t\t \t\t\t+prevSm2[0]+\",\"+prevSm2[1]+\",\"+prevSm2[2]+\",\"+prevSm2[3]+\",\"+prevSm2[4]+\",\"+prevSm2[5]+\",\"+prevSm2[6]+\",\"\r\n\t\t\t \t\t\t+threshold[0]+\",\"+threshold[1]+\",\"+threshold[2]+\",\"+threshold[3]+\",\"+threshold[4]+\",\"+threshold[5]+\",\"+threshold[6]+\",'\"+dname+\"',0);\";\r\n\t \r\n\t try {\r\n\t\tstmt.executeUpdate(newPat);\r\n\t\t\r\n\t\t\r\n\t} catch (SQLException e) {\r\n\t\t\r\n\t\te.printStackTrace();\r\n\t}\r\n\t \r\n }",
"public void setPatientId(int patientId) {\n\t\t\t\n\t\tthis.patientId=patientId;\t\t\n\t}",
"public void CRUD(patient r1) {\n\t\t// TODO Auto-generated method stub\n\t\tString query1 = \"INSERT INTO pmohan_medicine (medicineName, review,pid,pname,Did) VALUES ( ?, ?, ?,?,?) ;\";\n\t\t\n\t\ttry(PreparedStatement statement = connection.prepareStatement(query1))\n\t\t{ \n\t\t\tstatement.setString(1, r1.getMedcineName());\n\t\t\tstatement.setString(2, r1.getReview());\t\n\t\t\tstatement.setString(4, r1.getPatientName());\n\t\t\tstatement.setInt(3, r1.getPid());\n\t\t\tstatement.setInt(5, r1.getDocId());\n\t\t\tstatement.executeUpdate();\n\t\t}\n\t\t\n\tcatch(Exception e){\n\tSystem.out.println(e.getMessage());\t\n\t}\n}",
"private void loadPatient() {\n patient = PatientsDatabaseAccessObject.getInstance().getPatients();\n table.getItems().clear();\n for (int i = 0; i < patient.size(); ++i) {\n table.getItems().add(patient.get(i));\n }\n table.refresh();\n }",
"@Override\n public PatientCaseDto createByDoctor(PatientCaseDto patientCaseDto) {\n return null;\n }",
"private void makeDiagnosis(Patient patient, String diagnosis) {\n patient.setDiagnosis(diagnosis);\n }",
"private void makeProcedures(Patient patient, String proc) {\n patient.setLastProcedure(proc);\n }",
"public static Patient createPatient(String givenName, String familyName, String gender, String birthdate,\n String line, String city, String postalCode, String country,\n String birthplaceCity, String birthplaceCountry){\n // Create a patient object\n Patient patient = new Patient();\n\n // Set Identifier of the patient object\n patient.addIdentifier()\n .setSystem(\"http://www.kh-uzl.de/fhir/patients\")\n .setValue(UUID.randomUUID().toString());\n\n // Set official name of the patient object\n patient.addName()\n .setUse(HumanName.NameUse.OFFICIAL)\n .setFamily(familyName)\n .addGiven(givenName);\n\n // Set gender of the patient object\n if(gender.equals(\"MALE\")){\n patient.setGender(Enumerations.AdministrativeGender.MALE);\n }\n else if(gender.equals(\"FEMALE\")){\n patient.setGender(Enumerations.AdministrativeGender.FEMALE);\n }\n else if(gender.equals(\"OTHER\")){\n patient.setGender(Enumerations.AdministrativeGender.OTHER);\n }\n else{\n patient.setGender(Enumerations.AdministrativeGender.UNKNOWN);\n }\n\n // Set birth date of the patient object\n patient.setBirthDateElement(new DateType(birthdate));\n\n // Set address date of the patient object\n patient.addAddress()\n .setUse(Address.AddressUse.HOME)\n .setType(Address.AddressType.BOTH)\n .addLine(line)\n .setCity(city)\n .setPostalCode(postalCode)\n .setCountry(country);\n\n // Set birthplace of the patient object\n Extension ext = new Extension();\n ext.setUrl(\"http://hl7.org/fhir/StructureDefinition/patient-birthPlace\");\n Address birthplace = new Address();\n birthplace.setCity(birthplaceCity).setCountry(birthplaceCountry);\n ext.setValue(birthplace);\n patient.addExtension(ext);\n\n return patient;\n }",
"private Patient setRandomPatientNames(Patient patient){\n\t\tpatient = getName(patient);\n\t\treturn patient;\n\t}",
"public String createTRecord(String firstName, String lastName, String address, String phone, String specialization,\n\t\t\tString location, String managerID);",
"public static Patient makePatient(String[] pt) {\n\n\t\tPatient output = new Patient(pt[1], pt[2], pt[0], 0);\n\t\tString[] staff = pt[4].split(\",\");\n\t\tfor (String member : staff)\n\t\t\toutput.addMedicalStaff(new MedicalStaff(member));\n\n\t\t@SuppressWarnings(\"unused\") // Medication currently disabled\n\t\tString[] meds = pt[5].split(\",\");\n\t\t// for (String med : meds)\n\t\t// output.addMedication(new Medication(med));\n\n\t\tString address = pt[6];\n\t\toutput.getContactInfo().addAddress(address);\n\t\tString[] phoneNumbers = pt[7].split(\",\");\n\t\tfor (String number : phoneNumbers)\n\t\t\toutput.getContactInfo().addPhone(number);\n\t\tString email = pt[8];\n\t\toutput.getContactInfo().addEmail(email);\n\t\tString[] pets = pt[9].split(\",\");\n\t\tfor (String pet : pets)\n\t\t\toutput.getPreferences().addPet(new Pet(pet, null, false));\n\t\tString[] allergies = pt[10].split(\",\");\n\t\tfor (String allergy : allergies)\n\t\t\toutput.getPreferences().addAllergy(allergy);\n\t\tString[] dietaryNeeds = pt[11].split(\",\");\n\t\tfor (String diet : dietaryNeeds)\n\t\t\toutput.getPreferences().addDietaryRestrictions(diet);\n\t\treturn output;\n\t}",
"public void setPatientName(String patientName)\n {\n this.patientName = patientName;\n }",
"@Override\n\tpublic void addPatients(String name, int id, Long mobilenumber, int age) {\n\t\t\n\t}",
"@SystemAPI\n\tPatient getPatient();",
"public String patientsOn10A(){\n String sql = \"SELECT a.patient_id \" +\n \" FROM orders a \" +\n \" JOIN drug_order b ON(a.order_id=b.order_id) \" +\n \" JOIN drug c ON(b.drug_inventory_id=c.drug_id) \" +\n \" JOIN cpad_regimen_drug d ON(c.drug_id=d.drug_id) \" +\n \" JOIN cpad_regimen e ON(d.regimen_id=e.regimen_id) \" +\n \" WHERE (e.name='10A=AZT(300)+DDL(125)+IDV/r (400/100)')\"+\n \" and a.date_created between (:startDate) and (:endDate) \";\n\n return sql;\n }",
"TeacherRecord createTeacherRecord(String firstName, String lastName, String address, String phone,\n\t\t\tCourseType specialization, String location, String clientId) throws Exception;",
"RentalAgency createRentalAgency();",
"public static Long importPregnancy(Connection conn, Map queries, Pregnancy pregnancy, Long patientId) throws ServletException, SQLException {\r\n \tLong pregnancyId;\r\n \tString sqlCreatePregnancy = (String) queries.get(\"SQL_CREATE_PREGNANCY_IMPORT\");\r\n \tArrayList pregnancyValues = new ArrayList();\r\n \t// add patient_id to pregnancyValues\r\n \tpregnancyValues.add(patientId);\r\n \t// add date_visit to pregnancyValues\r\n \tpregnancyValues.add(pregnancy.getDatePregnancyBegin());\r\n \tpregnancyValues.add(pregnancy.getPregnancyBeginEncounterId());\r\n \tpregnancyValues.add(pregnancy.getDatePregnancyEnd());\r\n \tpregnancyValues.add(pregnancy.getPregnancyEndEncounterId());\r\n \tpregnancyValues.add(pregnancy.getDateLabourAdmission());\r\n \tpregnancyValues.add(pregnancy.getLabourAdmissionEncounterId());\r\n\t // last modified\r\n \tpregnancyValues.add(pregnancy.getLastModified());\r\n\t // created\r\n \tpregnancyValues.add(pregnancy.getCreated());\r\n\t // last_modified_by\r\n \tpregnancyValues.add(pregnancy.getLastModifiedBy());\r\n\t // created_by\r\n \tpregnancyValues.add(pregnancy.getCreatedBy());\r\n\t // site_id\r\n \tpregnancyValues.add(pregnancy.getSiteId());\r\n \t// import_pregnancy_id\r\n \tpregnancyValues.add(pregnancy.getId());\r\n \t// adds uuid\r\n \tpregnancyValues.add(pregnancy.getUuid());\r\n \t// created_site_id\r\n \tpregnancyValues.add(pregnancy.getSiteId());\r\n \tpregnancyValues.add(pregnancy.getPregnancyBeginEncounterUuid());\r\n \tpregnancyValues.add(pregnancy.getPregnancyEndEncounterUuid());\r\n \tpregnancyValues.add(pregnancy.getLabourAdmissionEncounterUuid());\r\n \tpregnancyId = (Long) DatabaseUtils.create(conn, sqlCreatePregnancy, pregnancyValues.toArray());\r\n \treturn pregnancyId;\r\n }",
"public long addPatient(Patient pat) throws PatientExn{\n\t\tlong pid = pat.getPatientId();\n\t\tTypedQuery<Patient> query = \n\t\t\t\tem.createNamedQuery(\"SearchPatientByPatientID\", Patient.class).setParameter(\"pid\", pid);\n\t\tList<Patient> patients = query.getResultList();\n\t\tif (patients.size() < 1) {\n\t\t\tem.persist(pat);\n\t\t\tpat.setTreatmentDAO(this.treatmentDAO);\n\t\t\treturn pat.getId();\n\t\t}\n\t\telse {\n\t\t\tPatient pat2 = patients.get(0);\n\t\t\tthrow new PatientExn(\"\\nInsertion: Patient with patient id (\"+ pid \n\t\t\t\t\t+\") already exists.\\n** Name: \"+ pat2.getName());\n\t\t}\n\t}",
"private AlarmDeviceTable() {}",
"Registration registration(long idUser, long idTrail);",
"public void addPatientToList(Patient tempPatient)\r\n\t{\r\n\t\tarrayPatients[nextPatientLocation] = tempPatient;\r\n\t\tnextPatientLocation++;\r\n\t}",
"public Patient(String firstName, String secondName, int doctorId) {\n\t\tsuper(firstName, secondName);\n\t\tthis.setDoctorId(doctorId);\n\t}",
"public Patient(String iD, String password) {\n super(iD, password);\n }",
"Table8 create(Table8 table8);",
"PatientInfo getPatientInfo(int patientId);",
"public void createNewPatron(String firstName, String lastName, long socialSecurityNumber, String userName, String password){\r\n Patron newbie = new Patron(firstName, lastName, socialSecurityNumber, userName, password);\r\n bankPatrons.add(newbie);\r\n List<Transaction> list = new ArrayList<Transaction>();\r\n txHistoryByPatron.put(newbie, list);\r\n }",
"private void addPatient(Patient patient) {\n Location location = mLocationTree.findByUuid(patient.locationUuid);\n if (location != null) { // shouldn't be null, but better to be safe\n if (!mPatientsByLocation.containsKey(location)) {\n mPatientsByLocation.put(location, new ArrayList<Patient>());\n }\n mPatientsByLocation.get(location).add(patient);\n }\n }",
"int insert(Register record);",
"public void readPatient() {\n\t\tBufferedReader br;\n\t\tString s;\n\t\ttry {\n\t\t\tbr = new BufferedReader(new FileReader(\"patients.txt\"));\n\n\t\t\twhile ((s = br.readLine()) != null) {\n\t\t\t\tString[] fields = s.split(\", \");\n\n\t\t\t\tString ssn = fields[0];\n\t\t\t\tString name = fields[1];\n\t\t\t\tString address = fields[2];\n\t\t\t\tString phoneNum = fields[3];\n\t\t\t\tString insurance = fields[4];\n\t\t\t\tString currentMeds = fields[5];\n\t\t\t\tPatient patient = new Patient(ssn, name, address, phoneNum, insurance, currentMeds);\n\t\t\t\tpat.add(patient);\n\t\t\t}\n\t\t\tbr.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\n\t}",
"public void insertPatientShortInfo(PatientShortInfo patient) throws DataAccessException {\n\t\tjdbcTemplate.update(\n\t\t \"INSERT INTO patient (id, name, second_name, surname, born_date, id_number, \"\n\t\t\t\t+ \"sex, phone_number, nationality, insurance_number, home_address, health_status, \"\n\t\t\t\t+ \"disease, medicines, allergies) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)\",\n\t\t\t\tpatient.getId(), patient.getName(), patient.getSecondName(), patient.getSurname(),\n\t\t\t\tpatient.getBornDate(), patient.getIdNumber(), patient.getSex(), patient.getPhoneNumber(),\n\t\t\t\tpatient.getNationality(), patient.getInsuranceNumber(), patient.getHomeAddress(),\n\t\t\t\tpatient.getHealthStatus(), patient.getDisease(), patient.getMedicines(), patient.getAllergies());\n\t}",
"List<Patient> findAllPatients();",
"@Override\n @Transactional\n public void addPatient(Patient patient) {\n patientDAO.addPatient(patient);\n }",
"private void onAddPatient() {\n\t\tGuiManager.openFrame(GuiManager.FRAME_ADD_PATIENT);\n\t}",
"@Override\n\tpublic void createNurseRecord(String FirstName, String LastName,NurseDesignation designation, NurseStatus status,\n\t\t\tString string, String Location) throws RemoteException \n\t{\n\t\tNurseRecord record = new NurseRecord();\n\t\trecord.FirstName = FirstName;\n\t\trecord.LastName = LastName;\n\t\trecord.designation = designation;\n\t\trecord.status = status;\n\t\trecord.statusDate = string;\n\t\trecord.getRecordID();\n\t\t\n\t\tStaffRecords.Add(record);\n\t\t\n\t\tif(Location.equals(\"MTL\")){\n\t\t\tMTLcount++;\n\t\t}\n\t\tif(Location.equals(\"DDO\")){\n\t\t\tDDOcount++;\n\t\t}\n\t\tif(Location.equals(\"LVL\")){\n\t\t\tLVLcount++;\n\t\t}\n\t\t\n\t}",
"org.hl7.fhir.ResourceReference addNewSpecimen();",
"public void setPatient(org.hl7.fhir.ResourceReference patient)\n {\n generatedSetterHelperImpl(patient, PATIENT$2, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);\n }",
"public static Patient dummyPatient(final int dfn)\n {\n return new Patient(dfn, \"Zach Smith\", Gender.Male, 40);\n }",
"public TblrefTemplateRecord() {\n super(TblrefTemplate.TBLREF_TEMPLATE);\n }"
] |
[
"0.5863514",
"0.56437784",
"0.5572443",
"0.5566132",
"0.5497761",
"0.5460373",
"0.54120255",
"0.5386069",
"0.53838754",
"0.5373246",
"0.5361375",
"0.5347973",
"0.5313809",
"0.5287453",
"0.52854216",
"0.5268652",
"0.52168876",
"0.51952887",
"0.5193661",
"0.5192674",
"0.5188835",
"0.51850605",
"0.5176516",
"0.51588964",
"0.5153382",
"0.5147001",
"0.51346385",
"0.512172",
"0.50931114",
"0.5083854",
"0.50780976",
"0.5064072",
"0.49591318",
"0.49563184",
"0.49499065",
"0.49426574",
"0.49388513",
"0.4922337",
"0.49085307",
"0.49007466",
"0.48952672",
"0.48946652",
"0.48863748",
"0.48789302",
"0.48576614",
"0.48574755",
"0.4854448",
"0.48450157",
"0.48384187",
"0.48243466",
"0.4823642",
"0.4817717",
"0.48145056",
"0.48018473",
"0.47835252",
"0.4781581",
"0.4766708",
"0.47565588",
"0.47541228",
"0.4743621",
"0.47417155",
"0.47379678",
"0.47277755",
"0.47275048",
"0.47264892",
"0.47230884",
"0.47218162",
"0.47077435",
"0.4703702",
"0.47036123",
"0.47020024",
"0.4694396",
"0.46802518",
"0.46670857",
"0.4666475",
"0.4664528",
"0.46615955",
"0.46513143",
"0.46457344",
"0.46393794",
"0.46312922",
"0.4629723",
"0.46291718",
"0.4613418",
"0.4613184",
"0.46062616",
"0.4603462",
"0.45989648",
"0.4598128",
"0.45927313",
"0.45891944",
"0.45859194",
"0.45858663",
"0.45789117",
"0.45755327",
"0.45753404",
"0.457409",
"0.45690742",
"0.45659238",
"0.4565572"
] |
0.54233956
|
6
|
Create an aliased patientregsys.patient table reference
|
public Patient(String alias) {
this(DSL.name(alias), PATIENT);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public Patient(Name alias) {\n this(alias, PATIENT);\n }",
"Reference getPatient();",
"AliasStatement createAliasStatement();",
"public org.hl7.fhir.ResourceReference addNewPatient()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.ResourceReference target = null;\n target = (org.hl7.fhir.ResourceReference)get_store().add_element_user(PATIENT$2);\n return target;\n }\n }",
"public String patientsOn10A(){\n String sql = \"SELECT a.patient_id \" +\n \" FROM orders a \" +\n \" JOIN drug_order b ON(a.order_id=b.order_id) \" +\n \" JOIN drug c ON(b.drug_inventory_id=c.drug_id) \" +\n \" JOIN cpad_regimen_drug d ON(c.drug_id=d.drug_id) \" +\n \" JOIN cpad_regimen e ON(d.regimen_id=e.regimen_id) \" +\n \" WHERE (e.name='10A=AZT(300)+DDL(125)+IDV/r (400/100)')\"+\n \" and a.date_created between (:startDate) and (:endDate) \";\n\n return sql;\n }",
"public String getNextTableSqlAlias() {\n return \"t\"+(aliasCounter++);\n }",
"private Patient setPatientIdentifier(Patient patient){\n\t\tUUID u = new UUID(1,0);\n\t\ttry{\n\t\t\tUUID randomUUID = u.randomUUID();\n\t\t\tPatientIdentifier pi = new PatientIdentifier();\n\t\t\tpi.setIdentifier(randomUUID.toString());\n\t\t\tpatient.addIdentifier(pi);\n\t\t}\n\t\tcatch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn patient;\n\t}",
"private Patient setRandomPatientNames(Patient patient){\n\t\tpatient = getName(patient);\n\t\treturn patient;\n\t}",
"AliasVariable createAliasVariable();",
"public void registerPatientMethod1(Patient p);",
"public Table<Integer, Integer, String> getAnonymizedData();",
"public Mytable(String alias) {\n this(DSL.name(alias), MYTABLE);\n }",
"public AgentTable(String alias) {\n this(alias, AGENT);\n }",
"@Select(\"SELECT id_patient, first_name, last_name, PESEL, id_address,\" +\n \" email, phone_number, id_firstcontact_doctor, password FROM patients;\")\n @Results({\n @Result(property = \"id\", column = \"id_patient\"),\n @Result(property = \"firstName\", column = \"first_name\"),\n @Result(property = \"lastName\", column = \"last_name\"),\n @Result(property = \"pesel\", column = \"PESEL\"),\n @Result(property = \"address\", column = \"id_address\",\n javaType = Address.class, one = @One(select = \"selectAddress\",\n fetchType = FetchType.EAGER)),\n @Result(property = \"email\", column = \"email\"),\n @Result(property = \"phoneNumber\", column = \"phone_number\"),\n @Result(property = \"password\", column = \"password\"),\n @Result(property = \"firstContactDoctor\", column = \"id_firstcontact_doctor\",\n javaType = Doctor.class, one = @One(select = \"selectFirstcontactDoctor\",\n fetchType = FetchType.EAGER))\n })\n List<Patient> getAllPatientsDataToTable();",
"public DNAMERecord(Name name, int dclass, long ttl, Name alias) {\n\t\tsuper(name, Type.DNAME, dclass, ttl, alias, \"alias\");\n\t}",
"@Insert(\"INSERT into patients(id_patient, first_name, last_name, PESEL, id_address, email, phone_number, \" +\n \"id_firstcontact_doctor, password) VALUES (#{id}, #{firstName}, #{lastName}, #{pesel}, #{address.addressId},\" +\n \"#{email}, #{phoneNumber}, #{firstContactDoctor.id}, #{password})\")\n @Options(useGeneratedKeys = true, keyProperty = \"id\", keyColumn = \"id_patient\")\n void addPatient(Patient patient);",
"TableOrAlias createTableOrAlias();",
"private void appendFullTableNameAndAlias(String stageName) {\n builder.append(getFullTableName(stageName)).append(AS).append(getTableAlias(stageName));\n }",
"public Reference patient() {\n return getObject(Reference.class, FhirPropertyNames.PROPERTY_PATIENT);\n }",
"public void setPatientName(String patientName)\n {\n this.patientName = patientName;\n }",
"@Override\n protected Map<TableUniqueName, String> tableSubstitution() {\n return ImmutableMap.of();\n }",
"public void addPatientToTable(Patient patient, Hospital_Management_System hms) \n\t{\n\t\tmodel.addRow(new Object[]{patient.getID(), patient.getFirstName(), patient.getLastName(),\n\t\tpatient.getSex(), patient.getDOB(), patient.getPhoneNum(), patient.getEmail(), \"Edit\",\n\t\t\"Add\"});\n\t\t\n\t\ttable.addMouseListener(new MouseAdapter() \n\t\t{\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) \n\t\t\t{\n\t\t\t\tid = (int)table.getValueAt(table.getSelectedRow(), 0);\n\t\t\t\ttable.getColumnModel().getColumn(7).setCellEditor(new BtnEditorAdminViewAppointment(new JTextField(), hms, id));\n\t\t\t\ttable.getColumnModel().getColumn(8).setCellEditor(new BtnEditorAddAppointment(new JTextField(), hms, id));\n\t\t\t}\n\t\t});\n\t\t//set custom renderer and editor to column\n\t\ttable.getColumnModel().getColumn(7).setCellRenderer(new ButtonRenderer());\n\t\ttable.getColumnModel().getColumn(8).setCellRenderer(new ButtonRenderer());\n\t}",
"public interface PathAliasHandler {\n String toAliasedColumn(FieldExpression fieldExpression);\n}",
"private void appendPrimaryTableName() {\n super.appendTableName(Constants.FROM, joinQueryInputs.primaryTableName);\n }",
"public void setPatientId(String patientId)\n {\n this.patientId = patientId;\n }",
"public String generateTemporaryTableName(String baseTableName) {\n \t\treturn \"HT_\" + baseTableName;\n \t}",
"public Patient() {\n this(DSL.name(\"patient\"), null);\n }",
"private static void changePatient(){\r\n // opretter ny instans af tempPatinet som overskriver den gamle\r\n Patient p = new Patient(); // det her kan udskiftes med en nulstil funktion for at forsikre at der altid kun er en patient.\r\n Patient.setCprNumber((Long) null);\r\n }",
"private void makeDiagnosis(Patient patient, String diagnosis) {\n patient.setDiagnosis(diagnosis);\n }",
"public void setPatientName(String patientName){\n\t\tthis.patientName = patientName;\n\t}",
"private String generateSqlServerTemporaryTableName() {\n return \"temp\" + temporaryTableCounter.getAndIncrement();\n }",
"void deletePatient(Patient target);",
"public DynamicSchemaTable(String alias) {\n this(alias, DYNAMIC_SCHEMA);\n }",
"public Mytable(Name alias) {\n this(alias, MYTABLE);\n }",
"void AddPatiant(Patient p) throws Exception;",
"@Test\n public void testAliasesInFrom() throws Exception {\n String sql = \"SELECT myG.*, myH.b FROM g AS myG, h AS myH\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n\n Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);\n Node meSymbolNode = verify(selectNode, Select.SYMBOLS_REF_NAME, 1, MultipleElementSymbol.ID);\n Node groupSymbolNode = verify(meSymbolNode, MultipleElementSymbol.GROUP_REF_NAME, GroupSymbol.ID);\n verifyProperty(groupSymbolNode, Symbol.NAME_PROP_NAME, \"myG\");\n verifyElementSymbol(selectNode, Select.SYMBOLS_REF_NAME, 2, \"myH.b\");\n\n Node fromNode = verify(queryNode, Query.FROM_REF_NAME, From.ID);\n verifyUnaryFromClauseGroup(fromNode, From.CLAUSES_REF_NAME, 1, \"myG\", \"g\");\n verifyUnaryFromClauseGroup(fromNode, From.CLAUSES_REF_NAME, 2, \"myH\", \"h\");\n \n verifySql(sql, fileNode);\n }",
"public void setPatientId(String patientId){\n\t\tthis.patientId = patientId;\n\t}",
"@Test\n public void testAliasedTableColumns()\n {\n assertEquals(\n runner.execute(\"SELECT * FROM orders AS t (a, b, c, d, e, f, g, h, i)\"),\n runner.execute(\"SELECT * FROM orders\"));\n }",
"void visit(final TableAlias tableAlias);",
"public static final String getAuthKWRelTableCreationSQL(String shortname) {\r\n\t\tString crTopicTableSQL = \"CREATE TABLE IF NOT EXISTS dblp_authkw_\" +shortname +\r\n\t\t\"(author varchar(70) NOT NULL, \" +\r\n\t\t\" keyword varchar(255) NOT NULL, \" + \r\n\t\t\" PRIMARY KEY (keyword,author)) \";\r\n\t\treturn crTopicTableSQL;\r\n\t}",
"private void appendTempTableRightSideJoin(\r\n Object source,\r\n Attribute[] prototypeAttributes,\r\n MithraFastList<Attribute> nullAttributes,\r\n int pkAttributeCount,\r\n TupleTempContext tempContext,\r\n StringBuilder builder)\r\n {\r\n builder.append(tempContext.getFullyQualifiedTableName(source, this.getMithraObjectPortal().getPersisterId()));\r\n builder.append(\" t1 where \");\r\n this.constructJoin(prototypeAttributes, nullAttributes, pkAttributeCount, builder);\r\n }",
"public void setTableAlias( String talias ) {\n talias_ = talias;\n }",
"public static ResultSet getPatientArtRegimen(Connection conn, Long patientId) throws ServletException {\r\n\t\tResultSet rs = null;\r\n\t\ttry {\r\n\t\t\t\tString sql = \"SELECT encounter.id AS id, regimen.code AS code, regimen.name AS name, regimen.id AS regimenId \"\r\n\t\t\t\t\t+ \"FROM art_regimen, encounter, regimen \"\r\n\t\t\t\t\t+ \"WHERE encounter.id = art_regimen.id \"\r\n\t\t\t\t\t+ \"AND art_regimen.regimen_1 = regimen.id \"\r\n\t\t\t\t\t+ \"AND encounter.patient_id = ? \"\r\n\t\t\t\t\t+ \"ORDER BY encounter.id DESC\";\r\n\t\t\t\tPreparedStatement ps = conn.prepareStatement(sql);\r\n\t\t\t\tps.setMaxRows(1);\r\n\t\t\t\tps.setLong(1, patientId);\r\n\t\t\t\trs = ps.executeQuery();\r\n\t\t} catch (Exception ex) {\r\n\t\t\tlog.error(ex);\r\n\t\t}\r\n\t\treturn rs;\r\n\t}",
"protected void renameAliasReference(String from, String to)\n {\n if(castor.getCastorRelationChoice().getOneToMany().getFromAlias().equals(from))\n castor.getCastorRelationChoice().getOneToMany().setFromAlias(to);\n \n if(castor.getCastorRelationChoice().getOneToMany().getToAlias().equals(from))\n castor.getCastorRelationChoice().getOneToMany().setToAlias(to);\n }",
"T as(String alias);",
"void registerAlias( String beanName, String alias );",
"public void setPatient(org.hl7.fhir.ResourceReference patient)\n {\n generatedSetterHelperImpl(patient, PATIENT$2, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);\n }",
"public synchronized void addPatientToStack(String idStack, String idPatient) throws SQLException {\n statement.execute(\"INSERT INTO \" + idStack + \" (id) VALUES ('\" + idPatient + \"')\");\r\n }",
"@Test\n public void testAliasInFrom() throws Exception {\n String sql = \"SELECT myG.a FROM g AS myG\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n\n Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);\n verifyElementSymbol(selectNode, Select.SYMBOLS_REF_NAME, \"myG.a\");\n\n Node fromNode = verify(queryNode, Query.FROM_REF_NAME, From.ID);\n verifyUnaryFromClauseGroup(fromNode, From.CLAUSES_REF_NAME, 1, \"myG\", \"g\");\n \n verifySql(sql, fileNode);\n }",
"Table getReferencedTable();",
"public Patient getName(Patient patient){\n\t\tSet<PersonName> s=patient.getNames();\n\t\tPersonName p = PersonName.newInstance(patient.getPersonName());\n\t\tp.setGivenName(generatePatientName());\n\t\tp.setMiddleName(generatePatientName());\n\t\tp.setFamilyName(generatePatientName());\n\t\tObject ob[]=s.toArray();\n\t\tfor (int i = 0; i < ob.length; i++) {\n\t\t\tPersonName p1=(PersonName)ob[i];\n\t\t\tpatient.removeName(p1);\n\t\t}\n\t\ts.clear();\n\t\ts.add(p);\n\t\tpatient.setNames(s);\n\t\treturn patient;\n\n\t}",
"private String createLabelTableSQL()\n\t{\n\t\treturn \"LABEL ON TABLE \" + getFullPath() + \" IS '\" + SQLToolbox.cvtToSQLFieldColHdg(function.getLabel()) + \"'\";\n\t}",
"public void addPatientToList(Patient tempPatient)\r\n\t{\r\n\t\tarrayPatients[nextPatientLocation] = tempPatient;\r\n\t\tnextPatientLocation++;\r\n\t}",
"public Patient (String patientID) {\n this.patientID = patientID;\n this.associatedDoctor = new ArrayList<>();\n }",
"private String getQualifiedSrcDsTableName() {\n return sourceDB + \".\" + DATASET_TABLE_NAME;\n }",
"protected void createExpandedNameTable( )\r\n {\r\n\r\n super.createExpandedNameTable();\r\n\r\n m_ErrorExt_TypeID =\r\n m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_EXT_ERROR, DTM.ELEMENT_NODE);\r\n\r\n m_SQLError_TypeID =\r\n m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_SQL_ERROR, DTM.ELEMENT_NODE);\r\n\r\n m_Message_TypeID =\r\n m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_MESSAGE, DTM.ELEMENT_NODE);\r\n\r\n m_Code_TypeID =\r\n m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_CODE, DTM.ELEMENT_NODE);\r\n\r\n m_State_TypeID =\r\n m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_STATE, DTM.ELEMENT_NODE);\r\n\r\n m_SQLWarning_TypeID =\r\n m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_SQL_WARNING, DTM.ELEMENT_NODE);\r\n }",
"@SystemAPI\n\tPatient getPatient();",
"DataNameReference createDataNameReference();",
"public void careForPatient(Patient patient);",
"java.lang.String getPatientId();",
"public Long addPatient(long pid, String name, Date dob, int age) throws PatientExn;",
"public void displayAllPatients() {\r\n\t\ttry {\r\n\t\t\tString query= \"SELECT * FROM patients\";\r\n\t\t\tStatement stm= super.getConnection().createStatement();\r\n\t\t\tResultSet results= stm.executeQuery(query);\r\n\t\t\twhile(results.next()) {\r\n\t\t\t\tString[] row= new String[7];\r\n\t\t\t\trow[0]= results.getInt(1)+\"\";\r\n\t\t\t\trow[1]= results.getString(2);\r\n\t\t\t\trow[2]= results.getString(3);\r\n\t\t\t\trow[3]= results.getString(4);\r\n\t\t\t\trow[4]= results.getString(5);\r\n\t\t\t\trow[5]= results.getInt(6)+\"\";\r\n\t\t\t\tmodelHostory.addRow(row);\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\r\n\t}",
"private static synchronized String translateGuid(String anonimizedPatientId, String oldGuid) {\r\n \r\n String newGuid = guidHistory.get(new Guid(anonimizedPatientId, oldGuid));\r\n if (newGuid == null) {\r\n try {\r\n newGuid = UMROGUID.getUID();\r\n // This should always be true\r\n if (newGuid.startsWith(UMROGUID.UMRO_ROOT_GUID)) {\r\n newGuid = rootGuid + newGuid.substring(UMROGUID.UMRO_ROOT_GUID.length());\r\n }\r\n \r\n guidHistory.put(new Guid(anonimizedPatientId, oldGuid), newGuid);\r\n } catch (UnknownHostException e) {\r\n Log.get().logrb(Level.SEVERE, Anonymize.class.getCanonicalName(),\r\n \"translateGuid\", null, \"UnknownHostException Unable to generate new GUID\", e);\r\n }\r\n }\r\n return newGuid;\r\n }",
"public Patient(String iD, String givenName, String surName)\n {\n super(iD, givenName, surName); \n }",
"void gen_table_names(Connection c, PreparedStatement pst ) throws ClassNotFoundException, SQLException\n\t{\n\t String lambda_term_query = \"select subgoal_names from view2subgoals where view = '\"+ name +\"'\";\n\n\t\t\n\t pst = c.prepareStatement(lambda_term_query);\n\t \n\t ResultSet rs = pst.executeQuery();\n\t \n\t if(!rs.wasNull())\n\t {\n\t \twhile(rs.next())\n\t\t {\n\t\t \t\t \t\n\t\t \ttable_names.add(rs.getString(1));\n\t\t }\n\t }\n\t \n\t else\n\t {\n\t \tlambda_term_query = \"select subgoal from web_view_table where renamed_view = '\"+ name +\"'\";\n\n\t\t\t\n\t\t pst = c.prepareStatement(lambda_term_query);\n\t\t \n\t\t ResultSet r = pst.executeQuery();\n\n\t\t while(r.next())\n\t\t {\n\t\t \t\t \t\n\t\t \ttable_names.add(r.getString(1));\n\t\t }\n\t }\n\t \n\t \n\t \n\n\t}",
"public void createNewPatient(String firstName, String lastName, String tz, String diagnosis, final Context context){\n final DocumentReference myDocPatient = db.collection(Constants.PATIENTS_COLLECTION_FIELD).document();\n final Patient patientToAdd = new Patient(firstName, lastName, myDocPatient.getId(), diagnosis, tz, localUser.getId());\n myDocPatient.set(patientToAdd);\n localUser.addPatientId(patientToAdd.getId());\n updateUserInDatabase(localUser);\n }",
"@Update(\"UPDATE patients SET first_name=#{firstName}, last_name=#{lastName}, PESEL=#{pesel}, \" +\n \"email=#{email}, phone_number=#{phoneNumber} WHERE id_patient=#{id}\")\n void updatePatient(Patient patient);",
"void showPatients() {\n\t\t\t\n\t}",
"public void setPatientId(int patientId) {\n\t\t\t\n\t\tthis.patientId=patientId;\t\t\n\t}",
"public ATExpression base_tableExpression();",
"public void insertPatientShortInfo(PatientShortInfo patient) throws DataAccessException {\n\t\tjdbcTemplate.update(\n\t\t \"INSERT INTO patient (id, name, second_name, surname, born_date, id_number, \"\n\t\t\t\t+ \"sex, phone_number, nationality, insurance_number, home_address, health_status, \"\n\t\t\t\t+ \"disease, medicines, allergies) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)\",\n\t\t\t\tpatient.getId(), patient.getName(), patient.getSecondName(), patient.getSurname(),\n\t\t\t\tpatient.getBornDate(), patient.getIdNumber(), patient.getSex(), patient.getPhoneNumber(),\n\t\t\t\tpatient.getNationality(), patient.getInsuranceNumber(), patient.getHomeAddress(),\n\t\t\t\tpatient.getHealthStatus(), patient.getDisease(), patient.getMedicines(), patient.getAllergies());\n\t}",
"@Mapper\npublic interface PatientAdministrationMapper {\n\n /**\n * Getting all patients from database.\n *\n * @return all patients from database written to list.\n */\n @Select(\"SELECT id_patient, first_name, last_name, PESEL, id_address,\" +\n \" email, phone_number, id_firstcontact_doctor, password FROM patients;\")\n @Results({\n @Result(property = \"id\", column = \"id_patient\"),\n @Result(property = \"firstName\", column = \"first_name\"),\n @Result(property = \"lastName\", column = \"last_name\"),\n @Result(property = \"pesel\", column = \"PESEL\"),\n @Result(property = \"address\", column = \"id_address\",\n javaType = Address.class, one = @One(select = \"selectAddress\",\n fetchType = FetchType.EAGER)),\n @Result(property = \"email\", column = \"email\"),\n @Result(property = \"phoneNumber\", column = \"phone_number\"),\n @Result(property = \"password\", column = \"password\"),\n @Result(property = \"firstContactDoctor\", column = \"id_firstcontact_doctor\",\n javaType = Doctor.class, one = @One(select = \"selectFirstcontactDoctor\",\n fetchType = FetchType.EAGER))\n })\n List<Patient> getAllPatientsDataToTable();\n\n\n /**\n * Getting patient by specified id.\n * Patient containing his full address, which is taken by Join using\n * EagerLoading. So his address will be storing just in address field in\n * patient POJO class.\n *\n * @param patientId id of patient, which you want to get from database.\n * @return single patient taken from database.\n */\n @Select(\"SELECT id_patient, first_name, last_name, PESEL, id_address,\" +\n \" email, phone_number,id_firstcontact_doctor FROM patients \" +\n \"WHERE id_patient = #{patientId}\")\n @Results({\n @Result(property = \"id\", column = \"id_patient\"),\n @Result(property = \"firstName\", column = \"first_name\"),\n @Result(property = \"lastName\", column = \"last_name\"),\n @Result(property = \"pesel\", column = \"PESEL\"),\n @Result(property = \"address\", column = \"id_address\",\n javaType = Address.class, one = @One(select = \"selectAddress\",\n fetchType = FetchType.EAGER)),\n @Result(property = \"email\", column = \"email\"),\n @Result(property = \"phoneNumber\", column = \"phone_number\"),\n @Result(property = \"firstContactDoctor\", column = \"id_firstcontact_doctor\",\n javaType = Doctor.class, one = @One(select = \"selectFirstcontactDoctor\",\n fetchType = FetchType.EAGER))\n })\n Patient getPatient(int patientId);\n\n\n /**\n * Inserting specified patient object into database.\n * Before adding patient, you need to add address first, couse of constraints.\n *\n * @param patient patient to insert into database. Id is generated automatically.\n */\n @Insert(\"INSERT into patients(id_patient, first_name, last_name, PESEL, id_address, email, phone_number, \" +\n \"id_firstcontact_doctor, password) VALUES (#{id}, #{firstName}, #{lastName}, #{pesel}, #{address.addressId},\" +\n \"#{email}, #{phoneNumber}, #{firstContactDoctor.id}, #{password})\")\n @Options(useGeneratedKeys = true, keyProperty = \"id\", keyColumn = \"id_patient\")\n void addPatient(Patient patient);\n\n\n /**\n * Inserting specified address object into database.\n *\n * @param address address to insert into database. Id is generated automatically.\n */\n @Insert(\"INSERT into addresses(id_address, city, zip_code, street, number) VALUES (\" +\n \"#{addressId}, #{city}, #{zip}, #{street}, #{number})\")\n @Options(useGeneratedKeys = true, keyProperty = \"addressId\", keyColumn = \"id_address\")\n void addPatientAddressAsChild(Address address);\n\n\n /**\n * Updating patient in database.\n * Object id will be used to take existing doctor from database, and update\n * his values using data from object (all except id).\n *\n * @param patient all fields will be used for update patient, which will have\n * the same id like doctor in parameter.\n */\n @Update(\"UPDATE patients SET first_name=#{firstName}, last_name=#{lastName}, PESEL=#{pesel}, \" +\n \"email=#{email}, phone_number=#{phoneNumber} WHERE id_patient=#{id}\")\n void updatePatient(Patient patient);\n\n\n /**\n * Updating address in database.\n * Object id will be used to get address which you want update, and rest of then\n * for set new values.\n *\n * @param address object containing new data (except id).\n */\n @Update(\"UPDATE addresses SET city=#{city}, zip_code=#{zip}, street=#{street}, number=#{number} \" +\n \"WHERE id_address=#{addressId}\")\n void updatePatientAddress(Address address);\n\n\n /**\n * Updating patient firstcontact doctor using his id.\n *\n * @param patient patient, which firstcontact doctor you want update.\n * @param newDoctorId id of new patient firstcontact doctor.\n */\n @Update(\"UPDATE patients SET id_firstcontact_doctor=#{newDoctorId} WHERE id_patient=#{patient.id}\")\n void updatePatientFirstcontactDoctor(@Param(\"patient\") Patient patient,\n @Param(\"newDoctorId\") int newDoctorId);\n\n /**\n * Deleting patient specified by id\n *\n * @param patientId id of patient to remove.\n */\n @Delete(\"DELETE from patients WHERE id_patient=#{patientId}\")\n void deletePatient(int patientId);\n\n\n //TODO: it's necessary? Address should be dropped cascade. Test it.\n /**\n * Deleting address\n *\n * @param addressId id of address to remove.\n */\n @Delete(\"DELETE from addresses WHERE id_address=#{addressId}\")\n void deleteAddress(int addressId);\n\n\n\n\n\n\n\n\n\n @Select(\"SELECT id_address, city, zip_code, street, number from addresses \" +\n \"where id_address=#{addressId}\")\n @Results(value = {\n @Result(property = \"addressId\", column = \"id_address\"),\n @Result(property = \"city\", column = \"city\"),\n @Result(property = \"zip\", column = \"zip_code\"),\n @Result(property = \"street\", column = \"street\"),\n @Result(property = \"number\", column = \"number\")\n })\n Address selectAddress(int addressId);\n\n @Select(\"Select id_doctor, first_name, last_name, phone_number, id_specialization \" +\n \"from doctors where id_doctor=#{doctorId}\")\n @Results(value = {\n @Result(property = \"id\", column = \"id_doctor\"),\n @Result(property = \"firstName\", column = \"first_name\"),\n @Result(property = \"lastName\", column = \"last_name\"),\n @Result(property = \"phoneNumber\", column = \"phone_number\"),\n @Result(property = \"specialization\", column = \"id_specialization\",\n javaType = Specialization.class,\n one = @One(select = \"selectFirstcontactDoctorSpecialization\",\n fetchType = FetchType.EAGER))\n })\n Doctor selectFirstcontactDoctor(int doctorId);\n\n @Select(\"SELECT * FROM specializations \" +\n \"WHERE id_specialization=#{specializationId}\")\n @Results(value = {\n @Result(property = \"id\", column = \"id_specialization\"),\n @Result(property = \"name\", column = \"name\")\n })\n Specialization selectFirstcontactDoctorSpecialization(int specializationId);\n\n\n @Select(\"Select id_doctor, first_name, last_name, phone_number, d.id_specialization from doctors d INNER JOIN specializations AS s\\n\" +\n \"WHERE d.id_specialization = s.id_specialization AND s.name=\\\"First contact\\\"\")\n @Results(value = {\n @Result(property = \"id\", column = \"id_doctor\"),\n @Result(property = \"firstName\", column = \"first_name\"),\n @Result(property = \"lastName\", column = \"last_name\"),\n @Result(property = \"phoneNumber\", column = \"phone_number\"),\n @Result(property = \"specialization\", column = \"id_specialization\",\n javaType = Specialization.class,\n one = @One(select = \"selectFirstcontactDoctorSpecialization\",\n fetchType = FetchType.EAGER))\n })\n List<Doctor> getAllFirstContactDoctors();\n\n\n @Select(\"select * from singlevisits single JOIN admissiondays a on single.id_admission_day = a.id_admission_day \" +\n \"JOIN doctorworkingdays d on a.id_doctor_working_day = d.id_doctor_working_day \" +\n \"WHERE single.id_single_visit = #{visitId};\")\n @Results(value = {\n @Result(property = \"id\", column = \"id_single_visit\"),\n @Result(property = \"visitHour\", column = \"visit_hour\"),\n @Result(property = \"admissionDay2\", column = \"id_admission_day\",\n javaType = AdmissionDay2.class,\n one = @One(select = \"getAdmissionDay\", fetchType = FetchType.EAGER)),\n @Result(property = \"patient\", column = \"id_patient\", javaType = Patient.class,\n one = @One(select = \"getPatient\", fetchType = FetchType.EAGER))\n })\n SingleVisit getVisit(int visitId);\n\n\n @Select(\"select * from singlevisits single JOIN admissiondays a on single.id_admission_day = a.id_admission_day \" +\n \"JOIN doctorworkingdays d on a.id_doctor_working_day = d.id_doctor_working_day \" +\n \"WHERE single.id_patient = #{patientId};\")\n @Results(value = {\n @Result(property = \"id\", column = \"id_single_visit\"),\n @Result(property = \"visitHour\", column = \"visit_hour\"),\n @Result(property = \"admissionDay2\", column = \"id_admission_day\",\n javaType = AdmissionDay2.class,\n one = @One(select = \"getAdmissionDay\", fetchType = FetchType.EAGER))\n })\n List<SingleVisit> getVisitsForPatient(int patientId);\n\n\n @Select(\"select id_admission_day, a.date, d.id_doctor,\" +\n \" d.hour_from, d.hour_to, d.hour_interval, d.validate_date \" +\n \"from admissiondays a JOIN doctorworkingdays d on a.id_doctor_working_day = d.id_doctor_working_day\" +\n \" where a.id_admission_day=#{admissionDayId};\")\n @Results(value = {\n @Result(property = \"id\", column = \"id_admission_day\"),\n @Result(property = \"date\", column = \"date\"),\n @Result(property = \"doctor\", column = \"id_doctor\", javaType = Doctor.class,\n one = @One(select = \"selectFirstcontactDoctor\", fetchType = FetchType.EAGER)),\n @Result(property = \"hourFrom\", column = \"hour_from\"),\n @Result(property = \"hourTo\", column = \"hour_to\"),\n @Result(property = \"hourInterval\", column = \"hour_interval\"),\n @Result(property = \"validateDate\", column = \"validate_date\")\n })\n AdmissionDay2 getAdmissionDay(int admissionDayId);\n\n\n @Delete(\"delete from singlevisits where id_single_visit = #{visitId};\")\n void deleteVisit(int visitId);\n\n\n @Delete(\"delete from singlevisits where id_patient = #{patientId}\")\n void deleteAllVisits(int patientId);\n\n @Select(\"select name from specializations\")\n @Results(@Result(property = \"name\", column = \"name\"))\n List<Specialization> getSpecializations();\n\n\n @Select(\"SELECT id_doctor, first_name, last_name, doc.id_specialization from doctors doc \" +\n \"LEFT JOIN specializations spec on doc.id_specialization = spec.id_specialization \" +\n \"WHERE spec.name = #{specializationName};\")\n @Results({\n @Result(property = \"id\", column = \"id_doctor\"),\n @Result(property = \"firstName\", column = \"first_name\"),\n @Result(property = \"lastName\", column = \"last_name\"),\n @Result(property = \"specialization\", column = \"id_specialization\",\n javaType = Specialization.class,\n one = @One(select = \"selectFirstcontactDoctorSpecialization\",\n fetchType = FetchType.EAGER))\n })\n List<Doctor> getDoctorsForVisitSpecialization(@Param(\"specializationName\") String specializationName);\n\n\n\n @Select(\"select id_admission_day, a.date, d.id_doctor,\" +\n \" d.hour_from, d.hour_to, d.hour_interval, d.validate_date \" +\n \"from admissiondays a JOIN doctorworkingdays d on a.id_doctor_working_day = d.id_doctor_working_day\" +\n \" where d.id_doctor = #{doctorId};\")\n @Results(value = {\n @Result(property = \"id\", column = \"id_admission_day\"),\n @Result(property = \"date\", column = \"date\"),\n @Result(property = \"doctor\", column = \"id_doctor\", javaType = Doctor.class,\n one = @One(select = \"selectFirstcontactDoctor\", fetchType = FetchType.EAGER)),\n @Result(property = \"hourFrom\", column = \"hour_from\"),\n @Result(property = \"hourTo\", column = \"hour_to\"),\n @Result(property = \"hourInterval\", column = \"hour_interval\"),\n @Result(property = \"validateDate\", column = \"validate_date\")\n })\n List<AdmissionDay2> getAdmissionDaysForDoctor(int doctorId);\n\n @Select(\"select s.id_single_visit, s.id_admission_day, visit_hour, id_patient, d.id_doctor from singlevisits s \" +\n \"JOIN admissiondays a on s.id_admission_day = a.id_admission_day \" +\n \"JOIN doctorworkingdays d on a.id_doctor_working_day = d.id_doctor_working_day \" +\n \"WHERE a.date = #{date} AND id_doctor = #{admissionDay.date};\")\n @Results(value = {\n @Result(property = \"id\", column = \"id_single_visit\"),\n @Result(property = \"visitHour\", column = \"visit_hour\"),\n @Result(property = \"patient\", column = \"id_patient\", javaType = Patient.class,\n one = @One(select = \"getPatient_OnlyId\", fetchType = FetchType.EAGER)),\n @Result(property = \"admissionDay2\", column = \"id_admission_day\", javaType = AdmissionDay2.class,\n one = @One(select = \"getAdmissionDay\", fetchType = FetchType.EAGER)),\n })\n List<SingleVisit> getSingleVisitsFreeFromAdmissionDay(@Param(\"admissionDay\") AdmissionDay2 admissionDay,\n @Param(\"doctorId\") int doctorId);\n\n @Update(\"update singlevisits set visit_hour = #{visitHour}, id_admission_day=#{admissionDayId} \" +\n \"Where id_single_visit = #{singleVisitId};\")\n void updateVisitDateAndHour(@Param(\"singleVisitId\") int singleVisitId,\n @Param(\"visitHour\")LocalTime visitHour,\n @Param(\"admissionDayId\") int admissionDayId);\n\n}",
"protected void recordPatientVisit() {\r\n\r\n\t\t// obtain unique android id for the device\r\n\t\tString android_device_id = Secure.getString(getApplicationContext().getContentResolver(),\r\n Secure.ANDROID_ID); \r\n\t\t\r\n\t\t// add the patient record to the DB\r\n\t\tgetSupportingLifeService().createPatientAssessment(getPatientAssessment(), android_device_id);\r\n\t}",
"@Override\n @Transactional\n public List<Patient> selectPatientsByAttendingDoctor(String doctorFullname) {\n return patientDAO.getByAttendingDoctor(doctorFullname);\n }",
"PatientInfo getPatientInfo(int patientId);",
"List<Patient> findAllPatients();",
"public void createResident(Resident resident);",
"@Override\n\tpublic void addPatients(String name, int id, Long mobilenumber, int age) {\n\t\t\n\t}",
"public Asiento(java.lang.String alias) {\n\t\tthis(alias, persistencia.tables.Asiento.ASIENTO);\n\t}",
"public StrColumn getPdbxDatabaseIdPatent() {\n return delegate.getColumn(\"pdbx_database_id_patent\", DelegatingStrColumn::new);\n }",
"@POST\n @Path(\"patients\")\n @Consumes(MediaType.APPLICATION_JSON)\n @Produces(\"application/json\")\n public Patient newPatient(Patient pat){\n serv.editPatient(pat);\n return pat;\n }",
"@GET(PATIENT_PATH)\n\tPatient getCurrentPatient();",
"public interface PatientMapper {\n\n public List<PatientEntity> getPatientList(String Pname);\n\n public List<PatientEntity> selectAllPatients();\n\n public PatientEntity getPatientsByPname(String Pname);\n\n public void addPatient(PatientEntity patient);\n\n public void updatePatient(PatientEntity patient);\n\n public void deletePatient(String Pname);\n\n List<String> getPatientlist();\n\n @Select(\"select * from patient where Pname = #{Pname}\")\n public Map<String, Object> selectPatientByPname(String Pname);\n}",
"public Rental(String alias) {\n\t\tthis(alias, rental);\n\t}",
"public static Long createPregnancy(Connection conn, Map queries, EncounterData vo, Long patientId, Date dateVisit, String userName, Long siteId) throws ServletException, SQLException {\r\n Long pregnancyId;\r\n String sqlCreatePregnancy = (String) queries.get(\"SQL_CREATE_PREGNANCY\");\r\n Pregnancy pregnancy = vo.getPregnancy();\r\n String pregnancyUuid = null;\r\n if (pregnancy != null) {\r\n pregnancyUuid = pregnancy.getUuid();\r\n } else {\r\n \tUUID uuid = UUID.randomUUID();\r\n pregnancyUuid = uuid.toString();\r\n }\r\n ArrayList pregnancyValues = new ArrayList();\r\n // add patient_id to pregnancyValues\r\n pregnancyValues.add(patientId);\r\n // add date_visit to pregnancyValues\r\n pregnancyValues.add(dateVisit);\r\n FormDAO.AddAuditInfo(vo, pregnancyValues, userName, siteId);\r\n // adds uuid\r\n pregnancyValues.add(pregnancyUuid);\r\n pregnancyId = (Long) DatabaseUtils.create(conn, sqlCreatePregnancy, pregnancyValues.toArray());\r\n return pregnancyId;\r\n }",
"private static Map<String, QuickResource> setupAliases(Query query,\n PhemaElmToOmopTranslatorContext context)\n throws CorrelationException, PhemaTranslationException {\n Map<String, QuickResource> aliases = new HashMap<>();\n\n AliasedQuerySource outerAliasedExpression = query.getSource().get(0);\n Retrieve outerRetrieve = (Retrieve) outerAliasedExpression.getExpression();\n String outerResourceType = outerRetrieve.getDataType().getLocalPart();\n String outerValuesetFilter = context.getVocabularyReferenceForRetrieve(outerRetrieve);\n\n RelationshipClause innerAliasedExpression = query.getRelationship().get(0);\n Retrieve innerRetrieve = (Retrieve) innerAliasedExpression.getExpression();\n String innerResourceType = innerRetrieve.getDataType().getLocalPart();\n String innerValuesetFilter = context.getVocabularyReferenceForRetrieve(innerRetrieve);\n\n aliases.put(outerAliasedExpression.getAlias(),\n QuickResource.from(outerResourceType, outerValuesetFilter));\n aliases.put(innerAliasedExpression.getAlias(),\n QuickResource.from(innerResourceType, innerValuesetFilter));\n\n return aliases;\n }",
"public ResultSet getPatientHistory(int patientId) {\n\t\treturn dbObject.select(\"SELECT `time` as Time, `bglValue` as BGL, injectedUnits FROM `patientHistory` \"); //WHERE patientId=\"+patientId);\n\t}",
"public org.hl7.fhir.ResourceReference getPatient()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.ResourceReference target = null;\n target = (org.hl7.fhir.ResourceReference)get_store().find_element_user(PATIENT$2, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"@Select(\"SELECT id_patient, first_name, last_name, PESEL, id_address,\" +\n \" email, phone_number,id_firstcontact_doctor FROM patients \" +\n \"WHERE id_patient = #{patientId}\")\n @Results({\n @Result(property = \"id\", column = \"id_patient\"),\n @Result(property = \"firstName\", column = \"first_name\"),\n @Result(property = \"lastName\", column = \"last_name\"),\n @Result(property = \"pesel\", column = \"PESEL\"),\n @Result(property = \"address\", column = \"id_address\",\n javaType = Address.class, one = @One(select = \"selectAddress\",\n fetchType = FetchType.EAGER)),\n @Result(property = \"email\", column = \"email\"),\n @Result(property = \"phoneNumber\", column = \"phone_number\"),\n @Result(property = \"firstContactDoctor\", column = \"id_firstcontact_doctor\",\n javaType = Doctor.class, one = @One(select = \"selectFirstcontactDoctor\",\n fetchType = FetchType.EAGER))\n })\n Patient getPatient(int patientId);",
"TableId table();",
"List<DocPatRelation> selectRelationPatInfoByPatId(String patId);",
"public Patient() {\r\n\r\n\t}",
"public PatientFrame(Patient pa) {\n patient = pa;\n initComponents();\n updateTable();\n }",
"VerificationToken findByPatient(Patient patient);",
"@GET(PATIENT_BY_ID_PATH)\n\tPatient getPatient(\n\t\t\t@Path(PATIENT_ID_PARAM) long patientId);",
"ReferenceTreatment createReferenceTreatment();",
"ColumnOrAlias createColumnOrAlias();",
"@VisibleForTesting\n protected static String quoteAlias(String alias) {\n return String.format(\"`%s`\", alias);\n }",
"public Patient() {\n\t\t\n\t}",
"public InstanceLabelMapTable(java.lang.String alias) {\n\t\tthis(alias, io.cattle.platform.core.model.tables.InstanceLabelMapTable.INSTANCE_LABEL_MAP);\n\t}"
] |
[
"0.5503435",
"0.522111",
"0.5096916",
"0.49633533",
"0.4938742",
"0.493293",
"0.492364",
"0.48140374",
"0.48111755",
"0.47206852",
"0.46589226",
"0.4637428",
"0.4622243",
"0.46181712",
"0.45828083",
"0.4578649",
"0.4558834",
"0.45522246",
"0.45323336",
"0.45213726",
"0.4514783",
"0.45048392",
"0.4501953",
"0.45011684",
"0.44715056",
"0.44645604",
"0.4434797",
"0.44290555",
"0.44285664",
"0.44267195",
"0.44131777",
"0.44001952",
"0.43949142",
"0.43785045",
"0.43732902",
"0.4338229",
"0.43343806",
"0.43196902",
"0.42710295",
"0.4249835",
"0.42318922",
"0.4231003",
"0.42264175",
"0.42247495",
"0.42237797",
"0.42214593",
"0.4218873",
"0.42113778",
"0.42029172",
"0.4201744",
"0.4200325",
"0.41960815",
"0.4192837",
"0.41924763",
"0.41872835",
"0.418292",
"0.4176687",
"0.4175926",
"0.417457",
"0.41721442",
"0.415031",
"0.4146313",
"0.4140613",
"0.4132825",
"0.41323322",
"0.41321245",
"0.41317126",
"0.41297168",
"0.4125015",
"0.41165394",
"0.4107626",
"0.4105096",
"0.41047812",
"0.4099766",
"0.40988764",
"0.40915254",
"0.40859625",
"0.40852636",
"0.40842977",
"0.40698266",
"0.4068477",
"0.40640602",
"0.4062611",
"0.4061473",
"0.40608013",
"0.4058052",
"0.4053065",
"0.4050313",
"0.4050149",
"0.40364242",
"0.4035422",
"0.40341923",
"0.40291372",
"0.40290233",
"0.4023042",
"0.40192735",
"0.40172297",
"0.40144876",
"0.4011629",
"0.4010979"
] |
0.5647256
|
0
|
Create an aliased patientregsys.patient table reference
|
public Patient(Name alias) {
this(alias, PATIENT);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public Patient(String alias) {\n this(DSL.name(alias), PATIENT);\n }",
"Reference getPatient();",
"AliasStatement createAliasStatement();",
"public org.hl7.fhir.ResourceReference addNewPatient()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.ResourceReference target = null;\n target = (org.hl7.fhir.ResourceReference)get_store().add_element_user(PATIENT$2);\n return target;\n }\n }",
"public String patientsOn10A(){\n String sql = \"SELECT a.patient_id \" +\n \" FROM orders a \" +\n \" JOIN drug_order b ON(a.order_id=b.order_id) \" +\n \" JOIN drug c ON(b.drug_inventory_id=c.drug_id) \" +\n \" JOIN cpad_regimen_drug d ON(c.drug_id=d.drug_id) \" +\n \" JOIN cpad_regimen e ON(d.regimen_id=e.regimen_id) \" +\n \" WHERE (e.name='10A=AZT(300)+DDL(125)+IDV/r (400/100)')\"+\n \" and a.date_created between (:startDate) and (:endDate) \";\n\n return sql;\n }",
"public String getNextTableSqlAlias() {\n return \"t\"+(aliasCounter++);\n }",
"private Patient setPatientIdentifier(Patient patient){\n\t\tUUID u = new UUID(1,0);\n\t\ttry{\n\t\t\tUUID randomUUID = u.randomUUID();\n\t\t\tPatientIdentifier pi = new PatientIdentifier();\n\t\t\tpi.setIdentifier(randomUUID.toString());\n\t\t\tpatient.addIdentifier(pi);\n\t\t}\n\t\tcatch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn patient;\n\t}",
"private Patient setRandomPatientNames(Patient patient){\n\t\tpatient = getName(patient);\n\t\treturn patient;\n\t}",
"AliasVariable createAliasVariable();",
"public void registerPatientMethod1(Patient p);",
"public Table<Integer, Integer, String> getAnonymizedData();",
"public Mytable(String alias) {\n this(DSL.name(alias), MYTABLE);\n }",
"public AgentTable(String alias) {\n this(alias, AGENT);\n }",
"@Select(\"SELECT id_patient, first_name, last_name, PESEL, id_address,\" +\n \" email, phone_number, id_firstcontact_doctor, password FROM patients;\")\n @Results({\n @Result(property = \"id\", column = \"id_patient\"),\n @Result(property = \"firstName\", column = \"first_name\"),\n @Result(property = \"lastName\", column = \"last_name\"),\n @Result(property = \"pesel\", column = \"PESEL\"),\n @Result(property = \"address\", column = \"id_address\",\n javaType = Address.class, one = @One(select = \"selectAddress\",\n fetchType = FetchType.EAGER)),\n @Result(property = \"email\", column = \"email\"),\n @Result(property = \"phoneNumber\", column = \"phone_number\"),\n @Result(property = \"password\", column = \"password\"),\n @Result(property = \"firstContactDoctor\", column = \"id_firstcontact_doctor\",\n javaType = Doctor.class, one = @One(select = \"selectFirstcontactDoctor\",\n fetchType = FetchType.EAGER))\n })\n List<Patient> getAllPatientsDataToTable();",
"public DNAMERecord(Name name, int dclass, long ttl, Name alias) {\n\t\tsuper(name, Type.DNAME, dclass, ttl, alias, \"alias\");\n\t}",
"@Insert(\"INSERT into patients(id_patient, first_name, last_name, PESEL, id_address, email, phone_number, \" +\n \"id_firstcontact_doctor, password) VALUES (#{id}, #{firstName}, #{lastName}, #{pesel}, #{address.addressId},\" +\n \"#{email}, #{phoneNumber}, #{firstContactDoctor.id}, #{password})\")\n @Options(useGeneratedKeys = true, keyProperty = \"id\", keyColumn = \"id_patient\")\n void addPatient(Patient patient);",
"TableOrAlias createTableOrAlias();",
"private void appendFullTableNameAndAlias(String stageName) {\n builder.append(getFullTableName(stageName)).append(AS).append(getTableAlias(stageName));\n }",
"public Reference patient() {\n return getObject(Reference.class, FhirPropertyNames.PROPERTY_PATIENT);\n }",
"public void setPatientName(String patientName)\n {\n this.patientName = patientName;\n }",
"@Override\n protected Map<TableUniqueName, String> tableSubstitution() {\n return ImmutableMap.of();\n }",
"public void addPatientToTable(Patient patient, Hospital_Management_System hms) \n\t{\n\t\tmodel.addRow(new Object[]{patient.getID(), patient.getFirstName(), patient.getLastName(),\n\t\tpatient.getSex(), patient.getDOB(), patient.getPhoneNum(), patient.getEmail(), \"Edit\",\n\t\t\"Add\"});\n\t\t\n\t\ttable.addMouseListener(new MouseAdapter() \n\t\t{\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) \n\t\t\t{\n\t\t\t\tid = (int)table.getValueAt(table.getSelectedRow(), 0);\n\t\t\t\ttable.getColumnModel().getColumn(7).setCellEditor(new BtnEditorAdminViewAppointment(new JTextField(), hms, id));\n\t\t\t\ttable.getColumnModel().getColumn(8).setCellEditor(new BtnEditorAddAppointment(new JTextField(), hms, id));\n\t\t\t}\n\t\t});\n\t\t//set custom renderer and editor to column\n\t\ttable.getColumnModel().getColumn(7).setCellRenderer(new ButtonRenderer());\n\t\ttable.getColumnModel().getColumn(8).setCellRenderer(new ButtonRenderer());\n\t}",
"public interface PathAliasHandler {\n String toAliasedColumn(FieldExpression fieldExpression);\n}",
"private void appendPrimaryTableName() {\n super.appendTableName(Constants.FROM, joinQueryInputs.primaryTableName);\n }",
"public void setPatientId(String patientId)\n {\n this.patientId = patientId;\n }",
"public String generateTemporaryTableName(String baseTableName) {\n \t\treturn \"HT_\" + baseTableName;\n \t}",
"public Patient() {\n this(DSL.name(\"patient\"), null);\n }",
"private static void changePatient(){\r\n // opretter ny instans af tempPatinet som overskriver den gamle\r\n Patient p = new Patient(); // det her kan udskiftes med en nulstil funktion for at forsikre at der altid kun er en patient.\r\n Patient.setCprNumber((Long) null);\r\n }",
"private void makeDiagnosis(Patient patient, String diagnosis) {\n patient.setDiagnosis(diagnosis);\n }",
"public void setPatientName(String patientName){\n\t\tthis.patientName = patientName;\n\t}",
"private String generateSqlServerTemporaryTableName() {\n return \"temp\" + temporaryTableCounter.getAndIncrement();\n }",
"void deletePatient(Patient target);",
"public DynamicSchemaTable(String alias) {\n this(alias, DYNAMIC_SCHEMA);\n }",
"public Mytable(Name alias) {\n this(alias, MYTABLE);\n }",
"void AddPatiant(Patient p) throws Exception;",
"@Test\n public void testAliasesInFrom() throws Exception {\n String sql = \"SELECT myG.*, myH.b FROM g AS myG, h AS myH\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n\n Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);\n Node meSymbolNode = verify(selectNode, Select.SYMBOLS_REF_NAME, 1, MultipleElementSymbol.ID);\n Node groupSymbolNode = verify(meSymbolNode, MultipleElementSymbol.GROUP_REF_NAME, GroupSymbol.ID);\n verifyProperty(groupSymbolNode, Symbol.NAME_PROP_NAME, \"myG\");\n verifyElementSymbol(selectNode, Select.SYMBOLS_REF_NAME, 2, \"myH.b\");\n\n Node fromNode = verify(queryNode, Query.FROM_REF_NAME, From.ID);\n verifyUnaryFromClauseGroup(fromNode, From.CLAUSES_REF_NAME, 1, \"myG\", \"g\");\n verifyUnaryFromClauseGroup(fromNode, From.CLAUSES_REF_NAME, 2, \"myH\", \"h\");\n \n verifySql(sql, fileNode);\n }",
"public void setPatientId(String patientId){\n\t\tthis.patientId = patientId;\n\t}",
"@Test\n public void testAliasedTableColumns()\n {\n assertEquals(\n runner.execute(\"SELECT * FROM orders AS t (a, b, c, d, e, f, g, h, i)\"),\n runner.execute(\"SELECT * FROM orders\"));\n }",
"void visit(final TableAlias tableAlias);",
"public static final String getAuthKWRelTableCreationSQL(String shortname) {\r\n\t\tString crTopicTableSQL = \"CREATE TABLE IF NOT EXISTS dblp_authkw_\" +shortname +\r\n\t\t\"(author varchar(70) NOT NULL, \" +\r\n\t\t\" keyword varchar(255) NOT NULL, \" + \r\n\t\t\" PRIMARY KEY (keyword,author)) \";\r\n\t\treturn crTopicTableSQL;\r\n\t}",
"private void appendTempTableRightSideJoin(\r\n Object source,\r\n Attribute[] prototypeAttributes,\r\n MithraFastList<Attribute> nullAttributes,\r\n int pkAttributeCount,\r\n TupleTempContext tempContext,\r\n StringBuilder builder)\r\n {\r\n builder.append(tempContext.getFullyQualifiedTableName(source, this.getMithraObjectPortal().getPersisterId()));\r\n builder.append(\" t1 where \");\r\n this.constructJoin(prototypeAttributes, nullAttributes, pkAttributeCount, builder);\r\n }",
"public void setTableAlias( String talias ) {\n talias_ = talias;\n }",
"public static ResultSet getPatientArtRegimen(Connection conn, Long patientId) throws ServletException {\r\n\t\tResultSet rs = null;\r\n\t\ttry {\r\n\t\t\t\tString sql = \"SELECT encounter.id AS id, regimen.code AS code, regimen.name AS name, regimen.id AS regimenId \"\r\n\t\t\t\t\t+ \"FROM art_regimen, encounter, regimen \"\r\n\t\t\t\t\t+ \"WHERE encounter.id = art_regimen.id \"\r\n\t\t\t\t\t+ \"AND art_regimen.regimen_1 = regimen.id \"\r\n\t\t\t\t\t+ \"AND encounter.patient_id = ? \"\r\n\t\t\t\t\t+ \"ORDER BY encounter.id DESC\";\r\n\t\t\t\tPreparedStatement ps = conn.prepareStatement(sql);\r\n\t\t\t\tps.setMaxRows(1);\r\n\t\t\t\tps.setLong(1, patientId);\r\n\t\t\t\trs = ps.executeQuery();\r\n\t\t} catch (Exception ex) {\r\n\t\t\tlog.error(ex);\r\n\t\t}\r\n\t\treturn rs;\r\n\t}",
"protected void renameAliasReference(String from, String to)\n {\n if(castor.getCastorRelationChoice().getOneToMany().getFromAlias().equals(from))\n castor.getCastorRelationChoice().getOneToMany().setFromAlias(to);\n \n if(castor.getCastorRelationChoice().getOneToMany().getToAlias().equals(from))\n castor.getCastorRelationChoice().getOneToMany().setToAlias(to);\n }",
"T as(String alias);",
"void registerAlias( String beanName, String alias );",
"public void setPatient(org.hl7.fhir.ResourceReference patient)\n {\n generatedSetterHelperImpl(patient, PATIENT$2, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);\n }",
"public synchronized void addPatientToStack(String idStack, String idPatient) throws SQLException {\n statement.execute(\"INSERT INTO \" + idStack + \" (id) VALUES ('\" + idPatient + \"')\");\r\n }",
"@Test\n public void testAliasInFrom() throws Exception {\n String sql = \"SELECT myG.a FROM g AS myG\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n\n Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);\n verifyElementSymbol(selectNode, Select.SYMBOLS_REF_NAME, \"myG.a\");\n\n Node fromNode = verify(queryNode, Query.FROM_REF_NAME, From.ID);\n verifyUnaryFromClauseGroup(fromNode, From.CLAUSES_REF_NAME, 1, \"myG\", \"g\");\n \n verifySql(sql, fileNode);\n }",
"Table getReferencedTable();",
"public Patient getName(Patient patient){\n\t\tSet<PersonName> s=patient.getNames();\n\t\tPersonName p = PersonName.newInstance(patient.getPersonName());\n\t\tp.setGivenName(generatePatientName());\n\t\tp.setMiddleName(generatePatientName());\n\t\tp.setFamilyName(generatePatientName());\n\t\tObject ob[]=s.toArray();\n\t\tfor (int i = 0; i < ob.length; i++) {\n\t\t\tPersonName p1=(PersonName)ob[i];\n\t\t\tpatient.removeName(p1);\n\t\t}\n\t\ts.clear();\n\t\ts.add(p);\n\t\tpatient.setNames(s);\n\t\treturn patient;\n\n\t}",
"private String createLabelTableSQL()\n\t{\n\t\treturn \"LABEL ON TABLE \" + getFullPath() + \" IS '\" + SQLToolbox.cvtToSQLFieldColHdg(function.getLabel()) + \"'\";\n\t}",
"public void addPatientToList(Patient tempPatient)\r\n\t{\r\n\t\tarrayPatients[nextPatientLocation] = tempPatient;\r\n\t\tnextPatientLocation++;\r\n\t}",
"public Patient (String patientID) {\n this.patientID = patientID;\n this.associatedDoctor = new ArrayList<>();\n }",
"private String getQualifiedSrcDsTableName() {\n return sourceDB + \".\" + DATASET_TABLE_NAME;\n }",
"protected void createExpandedNameTable( )\r\n {\r\n\r\n super.createExpandedNameTable();\r\n\r\n m_ErrorExt_TypeID =\r\n m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_EXT_ERROR, DTM.ELEMENT_NODE);\r\n\r\n m_SQLError_TypeID =\r\n m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_SQL_ERROR, DTM.ELEMENT_NODE);\r\n\r\n m_Message_TypeID =\r\n m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_MESSAGE, DTM.ELEMENT_NODE);\r\n\r\n m_Code_TypeID =\r\n m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_CODE, DTM.ELEMENT_NODE);\r\n\r\n m_State_TypeID =\r\n m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_STATE, DTM.ELEMENT_NODE);\r\n\r\n m_SQLWarning_TypeID =\r\n m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_SQL_WARNING, DTM.ELEMENT_NODE);\r\n }",
"@SystemAPI\n\tPatient getPatient();",
"DataNameReference createDataNameReference();",
"public void careForPatient(Patient patient);",
"java.lang.String getPatientId();",
"public Long addPatient(long pid, String name, Date dob, int age) throws PatientExn;",
"public void displayAllPatients() {\r\n\t\ttry {\r\n\t\t\tString query= \"SELECT * FROM patients\";\r\n\t\t\tStatement stm= super.getConnection().createStatement();\r\n\t\t\tResultSet results= stm.executeQuery(query);\r\n\t\t\twhile(results.next()) {\r\n\t\t\t\tString[] row= new String[7];\r\n\t\t\t\trow[0]= results.getInt(1)+\"\";\r\n\t\t\t\trow[1]= results.getString(2);\r\n\t\t\t\trow[2]= results.getString(3);\r\n\t\t\t\trow[3]= results.getString(4);\r\n\t\t\t\trow[4]= results.getString(5);\r\n\t\t\t\trow[5]= results.getInt(6)+\"\";\r\n\t\t\t\tmodelHostory.addRow(row);\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\r\n\t}",
"private static synchronized String translateGuid(String anonimizedPatientId, String oldGuid) {\r\n \r\n String newGuid = guidHistory.get(new Guid(anonimizedPatientId, oldGuid));\r\n if (newGuid == null) {\r\n try {\r\n newGuid = UMROGUID.getUID();\r\n // This should always be true\r\n if (newGuid.startsWith(UMROGUID.UMRO_ROOT_GUID)) {\r\n newGuid = rootGuid + newGuid.substring(UMROGUID.UMRO_ROOT_GUID.length());\r\n }\r\n \r\n guidHistory.put(new Guid(anonimizedPatientId, oldGuid), newGuid);\r\n } catch (UnknownHostException e) {\r\n Log.get().logrb(Level.SEVERE, Anonymize.class.getCanonicalName(),\r\n \"translateGuid\", null, \"UnknownHostException Unable to generate new GUID\", e);\r\n }\r\n }\r\n return newGuid;\r\n }",
"public Patient(String iD, String givenName, String surName)\n {\n super(iD, givenName, surName); \n }",
"void gen_table_names(Connection c, PreparedStatement pst ) throws ClassNotFoundException, SQLException\n\t{\n\t String lambda_term_query = \"select subgoal_names from view2subgoals where view = '\"+ name +\"'\";\n\n\t\t\n\t pst = c.prepareStatement(lambda_term_query);\n\t \n\t ResultSet rs = pst.executeQuery();\n\t \n\t if(!rs.wasNull())\n\t {\n\t \twhile(rs.next())\n\t\t {\n\t\t \t\t \t\n\t\t \ttable_names.add(rs.getString(1));\n\t\t }\n\t }\n\t \n\t else\n\t {\n\t \tlambda_term_query = \"select subgoal from web_view_table where renamed_view = '\"+ name +\"'\";\n\n\t\t\t\n\t\t pst = c.prepareStatement(lambda_term_query);\n\t\t \n\t\t ResultSet r = pst.executeQuery();\n\n\t\t while(r.next())\n\t\t {\n\t\t \t\t \t\n\t\t \ttable_names.add(r.getString(1));\n\t\t }\n\t }\n\t \n\t \n\t \n\n\t}",
"public void createNewPatient(String firstName, String lastName, String tz, String diagnosis, final Context context){\n final DocumentReference myDocPatient = db.collection(Constants.PATIENTS_COLLECTION_FIELD).document();\n final Patient patientToAdd = new Patient(firstName, lastName, myDocPatient.getId(), diagnosis, tz, localUser.getId());\n myDocPatient.set(patientToAdd);\n localUser.addPatientId(patientToAdd.getId());\n updateUserInDatabase(localUser);\n }",
"@Update(\"UPDATE patients SET first_name=#{firstName}, last_name=#{lastName}, PESEL=#{pesel}, \" +\n \"email=#{email}, phone_number=#{phoneNumber} WHERE id_patient=#{id}\")\n void updatePatient(Patient patient);",
"void showPatients() {\n\t\t\t\n\t}",
"public void setPatientId(int patientId) {\n\t\t\t\n\t\tthis.patientId=patientId;\t\t\n\t}",
"public ATExpression base_tableExpression();",
"public void insertPatientShortInfo(PatientShortInfo patient) throws DataAccessException {\n\t\tjdbcTemplate.update(\n\t\t \"INSERT INTO patient (id, name, second_name, surname, born_date, id_number, \"\n\t\t\t\t+ \"sex, phone_number, nationality, insurance_number, home_address, health_status, \"\n\t\t\t\t+ \"disease, medicines, allergies) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)\",\n\t\t\t\tpatient.getId(), patient.getName(), patient.getSecondName(), patient.getSurname(),\n\t\t\t\tpatient.getBornDate(), patient.getIdNumber(), patient.getSex(), patient.getPhoneNumber(),\n\t\t\t\tpatient.getNationality(), patient.getInsuranceNumber(), patient.getHomeAddress(),\n\t\t\t\tpatient.getHealthStatus(), patient.getDisease(), patient.getMedicines(), patient.getAllergies());\n\t}",
"@Mapper\npublic interface PatientAdministrationMapper {\n\n /**\n * Getting all patients from database.\n *\n * @return all patients from database written to list.\n */\n @Select(\"SELECT id_patient, first_name, last_name, PESEL, id_address,\" +\n \" email, phone_number, id_firstcontact_doctor, password FROM patients;\")\n @Results({\n @Result(property = \"id\", column = \"id_patient\"),\n @Result(property = \"firstName\", column = \"first_name\"),\n @Result(property = \"lastName\", column = \"last_name\"),\n @Result(property = \"pesel\", column = \"PESEL\"),\n @Result(property = \"address\", column = \"id_address\",\n javaType = Address.class, one = @One(select = \"selectAddress\",\n fetchType = FetchType.EAGER)),\n @Result(property = \"email\", column = \"email\"),\n @Result(property = \"phoneNumber\", column = \"phone_number\"),\n @Result(property = \"password\", column = \"password\"),\n @Result(property = \"firstContactDoctor\", column = \"id_firstcontact_doctor\",\n javaType = Doctor.class, one = @One(select = \"selectFirstcontactDoctor\",\n fetchType = FetchType.EAGER))\n })\n List<Patient> getAllPatientsDataToTable();\n\n\n /**\n * Getting patient by specified id.\n * Patient containing his full address, which is taken by Join using\n * EagerLoading. So his address will be storing just in address field in\n * patient POJO class.\n *\n * @param patientId id of patient, which you want to get from database.\n * @return single patient taken from database.\n */\n @Select(\"SELECT id_patient, first_name, last_name, PESEL, id_address,\" +\n \" email, phone_number,id_firstcontact_doctor FROM patients \" +\n \"WHERE id_patient = #{patientId}\")\n @Results({\n @Result(property = \"id\", column = \"id_patient\"),\n @Result(property = \"firstName\", column = \"first_name\"),\n @Result(property = \"lastName\", column = \"last_name\"),\n @Result(property = \"pesel\", column = \"PESEL\"),\n @Result(property = \"address\", column = \"id_address\",\n javaType = Address.class, one = @One(select = \"selectAddress\",\n fetchType = FetchType.EAGER)),\n @Result(property = \"email\", column = \"email\"),\n @Result(property = \"phoneNumber\", column = \"phone_number\"),\n @Result(property = \"firstContactDoctor\", column = \"id_firstcontact_doctor\",\n javaType = Doctor.class, one = @One(select = \"selectFirstcontactDoctor\",\n fetchType = FetchType.EAGER))\n })\n Patient getPatient(int patientId);\n\n\n /**\n * Inserting specified patient object into database.\n * Before adding patient, you need to add address first, couse of constraints.\n *\n * @param patient patient to insert into database. Id is generated automatically.\n */\n @Insert(\"INSERT into patients(id_patient, first_name, last_name, PESEL, id_address, email, phone_number, \" +\n \"id_firstcontact_doctor, password) VALUES (#{id}, #{firstName}, #{lastName}, #{pesel}, #{address.addressId},\" +\n \"#{email}, #{phoneNumber}, #{firstContactDoctor.id}, #{password})\")\n @Options(useGeneratedKeys = true, keyProperty = \"id\", keyColumn = \"id_patient\")\n void addPatient(Patient patient);\n\n\n /**\n * Inserting specified address object into database.\n *\n * @param address address to insert into database. Id is generated automatically.\n */\n @Insert(\"INSERT into addresses(id_address, city, zip_code, street, number) VALUES (\" +\n \"#{addressId}, #{city}, #{zip}, #{street}, #{number})\")\n @Options(useGeneratedKeys = true, keyProperty = \"addressId\", keyColumn = \"id_address\")\n void addPatientAddressAsChild(Address address);\n\n\n /**\n * Updating patient in database.\n * Object id will be used to take existing doctor from database, and update\n * his values using data from object (all except id).\n *\n * @param patient all fields will be used for update patient, which will have\n * the same id like doctor in parameter.\n */\n @Update(\"UPDATE patients SET first_name=#{firstName}, last_name=#{lastName}, PESEL=#{pesel}, \" +\n \"email=#{email}, phone_number=#{phoneNumber} WHERE id_patient=#{id}\")\n void updatePatient(Patient patient);\n\n\n /**\n * Updating address in database.\n * Object id will be used to get address which you want update, and rest of then\n * for set new values.\n *\n * @param address object containing new data (except id).\n */\n @Update(\"UPDATE addresses SET city=#{city}, zip_code=#{zip}, street=#{street}, number=#{number} \" +\n \"WHERE id_address=#{addressId}\")\n void updatePatientAddress(Address address);\n\n\n /**\n * Updating patient firstcontact doctor using his id.\n *\n * @param patient patient, which firstcontact doctor you want update.\n * @param newDoctorId id of new patient firstcontact doctor.\n */\n @Update(\"UPDATE patients SET id_firstcontact_doctor=#{newDoctorId} WHERE id_patient=#{patient.id}\")\n void updatePatientFirstcontactDoctor(@Param(\"patient\") Patient patient,\n @Param(\"newDoctorId\") int newDoctorId);\n\n /**\n * Deleting patient specified by id\n *\n * @param patientId id of patient to remove.\n */\n @Delete(\"DELETE from patients WHERE id_patient=#{patientId}\")\n void deletePatient(int patientId);\n\n\n //TODO: it's necessary? Address should be dropped cascade. Test it.\n /**\n * Deleting address\n *\n * @param addressId id of address to remove.\n */\n @Delete(\"DELETE from addresses WHERE id_address=#{addressId}\")\n void deleteAddress(int addressId);\n\n\n\n\n\n\n\n\n\n @Select(\"SELECT id_address, city, zip_code, street, number from addresses \" +\n \"where id_address=#{addressId}\")\n @Results(value = {\n @Result(property = \"addressId\", column = \"id_address\"),\n @Result(property = \"city\", column = \"city\"),\n @Result(property = \"zip\", column = \"zip_code\"),\n @Result(property = \"street\", column = \"street\"),\n @Result(property = \"number\", column = \"number\")\n })\n Address selectAddress(int addressId);\n\n @Select(\"Select id_doctor, first_name, last_name, phone_number, id_specialization \" +\n \"from doctors where id_doctor=#{doctorId}\")\n @Results(value = {\n @Result(property = \"id\", column = \"id_doctor\"),\n @Result(property = \"firstName\", column = \"first_name\"),\n @Result(property = \"lastName\", column = \"last_name\"),\n @Result(property = \"phoneNumber\", column = \"phone_number\"),\n @Result(property = \"specialization\", column = \"id_specialization\",\n javaType = Specialization.class,\n one = @One(select = \"selectFirstcontactDoctorSpecialization\",\n fetchType = FetchType.EAGER))\n })\n Doctor selectFirstcontactDoctor(int doctorId);\n\n @Select(\"SELECT * FROM specializations \" +\n \"WHERE id_specialization=#{specializationId}\")\n @Results(value = {\n @Result(property = \"id\", column = \"id_specialization\"),\n @Result(property = \"name\", column = \"name\")\n })\n Specialization selectFirstcontactDoctorSpecialization(int specializationId);\n\n\n @Select(\"Select id_doctor, first_name, last_name, phone_number, d.id_specialization from doctors d INNER JOIN specializations AS s\\n\" +\n \"WHERE d.id_specialization = s.id_specialization AND s.name=\\\"First contact\\\"\")\n @Results(value = {\n @Result(property = \"id\", column = \"id_doctor\"),\n @Result(property = \"firstName\", column = \"first_name\"),\n @Result(property = \"lastName\", column = \"last_name\"),\n @Result(property = \"phoneNumber\", column = \"phone_number\"),\n @Result(property = \"specialization\", column = \"id_specialization\",\n javaType = Specialization.class,\n one = @One(select = \"selectFirstcontactDoctorSpecialization\",\n fetchType = FetchType.EAGER))\n })\n List<Doctor> getAllFirstContactDoctors();\n\n\n @Select(\"select * from singlevisits single JOIN admissiondays a on single.id_admission_day = a.id_admission_day \" +\n \"JOIN doctorworkingdays d on a.id_doctor_working_day = d.id_doctor_working_day \" +\n \"WHERE single.id_single_visit = #{visitId};\")\n @Results(value = {\n @Result(property = \"id\", column = \"id_single_visit\"),\n @Result(property = \"visitHour\", column = \"visit_hour\"),\n @Result(property = \"admissionDay2\", column = \"id_admission_day\",\n javaType = AdmissionDay2.class,\n one = @One(select = \"getAdmissionDay\", fetchType = FetchType.EAGER)),\n @Result(property = \"patient\", column = \"id_patient\", javaType = Patient.class,\n one = @One(select = \"getPatient\", fetchType = FetchType.EAGER))\n })\n SingleVisit getVisit(int visitId);\n\n\n @Select(\"select * from singlevisits single JOIN admissiondays a on single.id_admission_day = a.id_admission_day \" +\n \"JOIN doctorworkingdays d on a.id_doctor_working_day = d.id_doctor_working_day \" +\n \"WHERE single.id_patient = #{patientId};\")\n @Results(value = {\n @Result(property = \"id\", column = \"id_single_visit\"),\n @Result(property = \"visitHour\", column = \"visit_hour\"),\n @Result(property = \"admissionDay2\", column = \"id_admission_day\",\n javaType = AdmissionDay2.class,\n one = @One(select = \"getAdmissionDay\", fetchType = FetchType.EAGER))\n })\n List<SingleVisit> getVisitsForPatient(int patientId);\n\n\n @Select(\"select id_admission_day, a.date, d.id_doctor,\" +\n \" d.hour_from, d.hour_to, d.hour_interval, d.validate_date \" +\n \"from admissiondays a JOIN doctorworkingdays d on a.id_doctor_working_day = d.id_doctor_working_day\" +\n \" where a.id_admission_day=#{admissionDayId};\")\n @Results(value = {\n @Result(property = \"id\", column = \"id_admission_day\"),\n @Result(property = \"date\", column = \"date\"),\n @Result(property = \"doctor\", column = \"id_doctor\", javaType = Doctor.class,\n one = @One(select = \"selectFirstcontactDoctor\", fetchType = FetchType.EAGER)),\n @Result(property = \"hourFrom\", column = \"hour_from\"),\n @Result(property = \"hourTo\", column = \"hour_to\"),\n @Result(property = \"hourInterval\", column = \"hour_interval\"),\n @Result(property = \"validateDate\", column = \"validate_date\")\n })\n AdmissionDay2 getAdmissionDay(int admissionDayId);\n\n\n @Delete(\"delete from singlevisits where id_single_visit = #{visitId};\")\n void deleteVisit(int visitId);\n\n\n @Delete(\"delete from singlevisits where id_patient = #{patientId}\")\n void deleteAllVisits(int patientId);\n\n @Select(\"select name from specializations\")\n @Results(@Result(property = \"name\", column = \"name\"))\n List<Specialization> getSpecializations();\n\n\n @Select(\"SELECT id_doctor, first_name, last_name, doc.id_specialization from doctors doc \" +\n \"LEFT JOIN specializations spec on doc.id_specialization = spec.id_specialization \" +\n \"WHERE spec.name = #{specializationName};\")\n @Results({\n @Result(property = \"id\", column = \"id_doctor\"),\n @Result(property = \"firstName\", column = \"first_name\"),\n @Result(property = \"lastName\", column = \"last_name\"),\n @Result(property = \"specialization\", column = \"id_specialization\",\n javaType = Specialization.class,\n one = @One(select = \"selectFirstcontactDoctorSpecialization\",\n fetchType = FetchType.EAGER))\n })\n List<Doctor> getDoctorsForVisitSpecialization(@Param(\"specializationName\") String specializationName);\n\n\n\n @Select(\"select id_admission_day, a.date, d.id_doctor,\" +\n \" d.hour_from, d.hour_to, d.hour_interval, d.validate_date \" +\n \"from admissiondays a JOIN doctorworkingdays d on a.id_doctor_working_day = d.id_doctor_working_day\" +\n \" where d.id_doctor = #{doctorId};\")\n @Results(value = {\n @Result(property = \"id\", column = \"id_admission_day\"),\n @Result(property = \"date\", column = \"date\"),\n @Result(property = \"doctor\", column = \"id_doctor\", javaType = Doctor.class,\n one = @One(select = \"selectFirstcontactDoctor\", fetchType = FetchType.EAGER)),\n @Result(property = \"hourFrom\", column = \"hour_from\"),\n @Result(property = \"hourTo\", column = \"hour_to\"),\n @Result(property = \"hourInterval\", column = \"hour_interval\"),\n @Result(property = \"validateDate\", column = \"validate_date\")\n })\n List<AdmissionDay2> getAdmissionDaysForDoctor(int doctorId);\n\n @Select(\"select s.id_single_visit, s.id_admission_day, visit_hour, id_patient, d.id_doctor from singlevisits s \" +\n \"JOIN admissiondays a on s.id_admission_day = a.id_admission_day \" +\n \"JOIN doctorworkingdays d on a.id_doctor_working_day = d.id_doctor_working_day \" +\n \"WHERE a.date = #{date} AND id_doctor = #{admissionDay.date};\")\n @Results(value = {\n @Result(property = \"id\", column = \"id_single_visit\"),\n @Result(property = \"visitHour\", column = \"visit_hour\"),\n @Result(property = \"patient\", column = \"id_patient\", javaType = Patient.class,\n one = @One(select = \"getPatient_OnlyId\", fetchType = FetchType.EAGER)),\n @Result(property = \"admissionDay2\", column = \"id_admission_day\", javaType = AdmissionDay2.class,\n one = @One(select = \"getAdmissionDay\", fetchType = FetchType.EAGER)),\n })\n List<SingleVisit> getSingleVisitsFreeFromAdmissionDay(@Param(\"admissionDay\") AdmissionDay2 admissionDay,\n @Param(\"doctorId\") int doctorId);\n\n @Update(\"update singlevisits set visit_hour = #{visitHour}, id_admission_day=#{admissionDayId} \" +\n \"Where id_single_visit = #{singleVisitId};\")\n void updateVisitDateAndHour(@Param(\"singleVisitId\") int singleVisitId,\n @Param(\"visitHour\")LocalTime visitHour,\n @Param(\"admissionDayId\") int admissionDayId);\n\n}",
"protected void recordPatientVisit() {\r\n\r\n\t\t// obtain unique android id for the device\r\n\t\tString android_device_id = Secure.getString(getApplicationContext().getContentResolver(),\r\n Secure.ANDROID_ID); \r\n\t\t\r\n\t\t// add the patient record to the DB\r\n\t\tgetSupportingLifeService().createPatientAssessment(getPatientAssessment(), android_device_id);\r\n\t}",
"@Override\n @Transactional\n public List<Patient> selectPatientsByAttendingDoctor(String doctorFullname) {\n return patientDAO.getByAttendingDoctor(doctorFullname);\n }",
"PatientInfo getPatientInfo(int patientId);",
"List<Patient> findAllPatients();",
"public void createResident(Resident resident);",
"@Override\n\tpublic void addPatients(String name, int id, Long mobilenumber, int age) {\n\t\t\n\t}",
"public Asiento(java.lang.String alias) {\n\t\tthis(alias, persistencia.tables.Asiento.ASIENTO);\n\t}",
"public StrColumn getPdbxDatabaseIdPatent() {\n return delegate.getColumn(\"pdbx_database_id_patent\", DelegatingStrColumn::new);\n }",
"@POST\n @Path(\"patients\")\n @Consumes(MediaType.APPLICATION_JSON)\n @Produces(\"application/json\")\n public Patient newPatient(Patient pat){\n serv.editPatient(pat);\n return pat;\n }",
"@GET(PATIENT_PATH)\n\tPatient getCurrentPatient();",
"public interface PatientMapper {\n\n public List<PatientEntity> getPatientList(String Pname);\n\n public List<PatientEntity> selectAllPatients();\n\n public PatientEntity getPatientsByPname(String Pname);\n\n public void addPatient(PatientEntity patient);\n\n public void updatePatient(PatientEntity patient);\n\n public void deletePatient(String Pname);\n\n List<String> getPatientlist();\n\n @Select(\"select * from patient where Pname = #{Pname}\")\n public Map<String, Object> selectPatientByPname(String Pname);\n}",
"public Rental(String alias) {\n\t\tthis(alias, rental);\n\t}",
"public static Long createPregnancy(Connection conn, Map queries, EncounterData vo, Long patientId, Date dateVisit, String userName, Long siteId) throws ServletException, SQLException {\r\n Long pregnancyId;\r\n String sqlCreatePregnancy = (String) queries.get(\"SQL_CREATE_PREGNANCY\");\r\n Pregnancy pregnancy = vo.getPregnancy();\r\n String pregnancyUuid = null;\r\n if (pregnancy != null) {\r\n pregnancyUuid = pregnancy.getUuid();\r\n } else {\r\n \tUUID uuid = UUID.randomUUID();\r\n pregnancyUuid = uuid.toString();\r\n }\r\n ArrayList pregnancyValues = new ArrayList();\r\n // add patient_id to pregnancyValues\r\n pregnancyValues.add(patientId);\r\n // add date_visit to pregnancyValues\r\n pregnancyValues.add(dateVisit);\r\n FormDAO.AddAuditInfo(vo, pregnancyValues, userName, siteId);\r\n // adds uuid\r\n pregnancyValues.add(pregnancyUuid);\r\n pregnancyId = (Long) DatabaseUtils.create(conn, sqlCreatePregnancy, pregnancyValues.toArray());\r\n return pregnancyId;\r\n }",
"private static Map<String, QuickResource> setupAliases(Query query,\n PhemaElmToOmopTranslatorContext context)\n throws CorrelationException, PhemaTranslationException {\n Map<String, QuickResource> aliases = new HashMap<>();\n\n AliasedQuerySource outerAliasedExpression = query.getSource().get(0);\n Retrieve outerRetrieve = (Retrieve) outerAliasedExpression.getExpression();\n String outerResourceType = outerRetrieve.getDataType().getLocalPart();\n String outerValuesetFilter = context.getVocabularyReferenceForRetrieve(outerRetrieve);\n\n RelationshipClause innerAliasedExpression = query.getRelationship().get(0);\n Retrieve innerRetrieve = (Retrieve) innerAliasedExpression.getExpression();\n String innerResourceType = innerRetrieve.getDataType().getLocalPart();\n String innerValuesetFilter = context.getVocabularyReferenceForRetrieve(innerRetrieve);\n\n aliases.put(outerAliasedExpression.getAlias(),\n QuickResource.from(outerResourceType, outerValuesetFilter));\n aliases.put(innerAliasedExpression.getAlias(),\n QuickResource.from(innerResourceType, innerValuesetFilter));\n\n return aliases;\n }",
"public ResultSet getPatientHistory(int patientId) {\n\t\treturn dbObject.select(\"SELECT `time` as Time, `bglValue` as BGL, injectedUnits FROM `patientHistory` \"); //WHERE patientId=\"+patientId);\n\t}",
"public org.hl7.fhir.ResourceReference getPatient()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.ResourceReference target = null;\n target = (org.hl7.fhir.ResourceReference)get_store().find_element_user(PATIENT$2, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"@Select(\"SELECT id_patient, first_name, last_name, PESEL, id_address,\" +\n \" email, phone_number,id_firstcontact_doctor FROM patients \" +\n \"WHERE id_patient = #{patientId}\")\n @Results({\n @Result(property = \"id\", column = \"id_patient\"),\n @Result(property = \"firstName\", column = \"first_name\"),\n @Result(property = \"lastName\", column = \"last_name\"),\n @Result(property = \"pesel\", column = \"PESEL\"),\n @Result(property = \"address\", column = \"id_address\",\n javaType = Address.class, one = @One(select = \"selectAddress\",\n fetchType = FetchType.EAGER)),\n @Result(property = \"email\", column = \"email\"),\n @Result(property = \"phoneNumber\", column = \"phone_number\"),\n @Result(property = \"firstContactDoctor\", column = \"id_firstcontact_doctor\",\n javaType = Doctor.class, one = @One(select = \"selectFirstcontactDoctor\",\n fetchType = FetchType.EAGER))\n })\n Patient getPatient(int patientId);",
"TableId table();",
"List<DocPatRelation> selectRelationPatInfoByPatId(String patId);",
"public Patient() {\r\n\r\n\t}",
"public PatientFrame(Patient pa) {\n patient = pa;\n initComponents();\n updateTable();\n }",
"VerificationToken findByPatient(Patient patient);",
"@GET(PATIENT_BY_ID_PATH)\n\tPatient getPatient(\n\t\t\t@Path(PATIENT_ID_PARAM) long patientId);",
"ReferenceTreatment createReferenceTreatment();",
"ColumnOrAlias createColumnOrAlias();",
"@VisibleForTesting\n protected static String quoteAlias(String alias) {\n return String.format(\"`%s`\", alias);\n }",
"public Patient() {\n\t\t\n\t}",
"public InstanceLabelMapTable(java.lang.String alias) {\n\t\tthis(alias, io.cattle.platform.core.model.tables.InstanceLabelMapTable.INSTANCE_LABEL_MAP);\n\t}"
] |
[
"0.5647256",
"0.522111",
"0.5096916",
"0.49633533",
"0.4938742",
"0.493293",
"0.492364",
"0.48140374",
"0.48111755",
"0.47206852",
"0.46589226",
"0.4637428",
"0.4622243",
"0.46181712",
"0.45828083",
"0.4578649",
"0.4558834",
"0.45522246",
"0.45323336",
"0.45213726",
"0.4514783",
"0.45048392",
"0.4501953",
"0.45011684",
"0.44715056",
"0.44645604",
"0.4434797",
"0.44290555",
"0.44285664",
"0.44267195",
"0.44131777",
"0.44001952",
"0.43949142",
"0.43785045",
"0.43732902",
"0.4338229",
"0.43343806",
"0.43196902",
"0.42710295",
"0.4249835",
"0.42318922",
"0.4231003",
"0.42264175",
"0.42247495",
"0.42237797",
"0.42214593",
"0.4218873",
"0.42113778",
"0.42029172",
"0.4201744",
"0.4200325",
"0.41960815",
"0.4192837",
"0.41924763",
"0.41872835",
"0.418292",
"0.4176687",
"0.4175926",
"0.417457",
"0.41721442",
"0.415031",
"0.4146313",
"0.4140613",
"0.4132825",
"0.41323322",
"0.41321245",
"0.41317126",
"0.41297168",
"0.4125015",
"0.41165394",
"0.4107626",
"0.4105096",
"0.41047812",
"0.4099766",
"0.40988764",
"0.40915254",
"0.40859625",
"0.40852636",
"0.40842977",
"0.40698266",
"0.4068477",
"0.40640602",
"0.4062611",
"0.4061473",
"0.40608013",
"0.4058052",
"0.4053065",
"0.4050313",
"0.4050149",
"0.40364242",
"0.4035422",
"0.40341923",
"0.40291372",
"0.40290233",
"0.4023042",
"0.40192735",
"0.40172297",
"0.40144876",
"0.4011629",
"0.4010979"
] |
0.5503435
|
1
|
Convert the given dtd file to the new xsd format.
|
public static File convert(final @NonNull File dtdfile, final @NonNull File xsdfile)
throws IOException
{
OutputStream outStream = new FileOutputStream(xsdfile);
final Writer writer = new Writer();
writer.setOutStream(outStream);
writer.parse(new XMLInputSource(null, dtdfile.getAbsolutePath(), null));
return xsdfile;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public static void convert(final String dtdfile, final String xsdfile) throws IOException\n\t{\n\t\tOutputStream outStream = new FileOutputStream(xsdfile);\n\t\tfinal Writer writer = new Writer();\n\t\twriter.setOutStream(outStream);\n\t\twriter.parse(new XMLInputSource(null, dtdfile, null));\n\t}",
"public static File convert(final @NonNull String dtdfile, final @NonNull File xsdfile)\n\t\tthrows IOException\n\t{\n\t\tOutputStream outStream = new FileOutputStream(xsdfile);\n\t\tfinal Writer writer = new Writer();\n\t\twriter.setOutStream(outStream);\n\t\twriter.parse(new XMLInputSource(null, dtdfile, null));\n\t\treturn xsdfile;\n\t}",
"public static void convert(final @NonNull String targetNamespace,\n\t\tfinal List<TypePattern> listXsdTypePattern, final @NonNull String dtdfile,\n\t\tfinal @NonNull File xsdfile) throws IOException\n\t{\n\t\tOutputStream outStream = new FileOutputStream(xsdfile);\n\t\tfinal Writer writer = new Writer();\n\t\twriter.setTargetNamespace(targetNamespace);\n\t\twriter.addXsdTypePattern(listXsdTypePattern);\n\t\twriter.setOutStream(outStream);\n\t\twriter.parse(new XMLInputSource(null, dtdfile, null));\n\t}",
"public static void convert(final @NonNull String targetNamespace,\n\t\tfinal List<TypePattern> listXsdTypePattern, final @NonNull String dtdfile,\n\t\tfinal @NonNull String xsdfile) throws IOException\n\t{\n\t\tOutputStream outStream = new FileOutputStream(xsdfile);\n\t\tfinal Writer writer = new Writer();\n\t\twriter.setTargetNamespace(targetNamespace);\n\t\twriter.addXsdTypePattern(listXsdTypePattern);\n\t\twriter.setOutStream(outStream);\n\t\twriter.parse(new XMLInputSource(null, dtdfile, null));\n\t}",
"public void setXmlSchema(File file) {\n\t\tDocument doc = null;\n\t\ttry {\n\t\t\tSAXBuilder sax = new SAXBuilder();\n\t\t\tdoc = sax.build(file);\n\t\t} catch (JDOMException | IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tif(doc != null) {\n\t\t\tsetXmlSchema(doc);\n\t\t\ttry(FileOutputStream fileOutputStream = new FileOutputStream(file)) {\n\t\t\t\ttry {\n\t\t\t\t\tXMLOutputter xmlOutputter = new XMLOutputter(Format.getPrettyFormat());\n\t\t\t\t\txmlOutputter.output(doc, fileOutputStream);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"public void processDocumentType(DocumentType dtd)\r\n\tthrows Exception\r\n\t{\r\n\tWriter xml = getWriter();\r\n\txml.write(\"<!DOCTYPE \");\r\n\txml.write(dtd.getName());\r\n\txml.write(\" SYSTEM ... \\n \");\r\n\treturn;\r\n\t}",
"public void convert(String inFile, String outFile) throws IOException, JAXBException;",
"public void removeXmlSchema(File file) {\n\t\tDocument doc = null;\n\t\ttry {\n\t\t\tSAXBuilder sax = new SAXBuilder();\n\t\t\tdoc = sax.build(file);\n\t\t} catch (JDOMException | IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tif(doc != null) {\n\t\t\tElement rootElement = doc.getRootElement();\n\t\t\trootElement.setNamespace(null);\n\t\t\trootElement.removeNamespaceDeclaration(bioNamespace);\n\t\t\trootElement.removeNamespaceDeclaration(xsiNamespace);\n\t\t\trootElement.removeAttribute(\"schemaLocation\", xsiNamespace);\n\t\t\ttry (FileOutputStream fileOutputStream = new FileOutputStream(file)) {\n\t\t\t\ttry {\n\t\t\t\t\tXMLOutputter xmlOutputter = new XMLOutputter(Format.getPrettyFormat());\n\t\t\t\t\txmlOutputter.output(doc, fileOutputStream);\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"private String convertXMLFileToString(File file)\n {\n try{\n DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();\n InputStream inputStream = new FileInputStream(file);\n org.w3c.dom.Document doc = documentBuilderFactory.newDocumentBuilder().parse(inputStream);\n StringWriter stw = new StringWriter();\n Transformer serializer = TransformerFactory.newInstance().newTransformer();\n serializer.transform(new DOMSource(doc), new StreamResult(stw));\n return stw.toString();\n }\n catch (Exception e) {\n \tnew ErrorBox(\"Error Deserializing\", \"XML file could not be deserialized\");\n }\n return null;\n }",
"public void generateTypesForXSD(FaultMetaData fmd) throws IOException\n {\n SchemaCreatorIntf sc = javaToXSD.getSchemaCreator();\n //Look at the features\n QName xmlType = fmd.getXmlType();\n if(xmlType.getNamespaceURI().equals(Constants.NS_SCHEMA_XSD) == false)\n generateType(xmlType ,fmd.getJavaType(), null);\n }",
"public void setUpNewXMLFile(File file) {\n\t\tPrintWriter pw = null;\n\t\ttry {\n\t\t\tpw = new PrintWriter(file, \"UTF-8\");\n\t\t\tpw.write(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?>\\n\");\n\t\t\tpw.write(\"<\" + defaultDocumentElement + \">\\n\");\n\t\t\tpw.write(\"</\" + defaultDocumentElement + \">\\n\");\n\t\t\tpw.close();\n\t\t} catch(Exception e) {\n\t\t\tSystem.out.println(\"Error creating new XML File.\");\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tpw.close();\n\t\t\t} catch(Exception e) {\n\t\t\t\t//Seems like it was already closed.\n\t\t\t}\n\t\t}\n\t}",
"public void setXsdSchema(final File xsdFile) throws InvalidXsdException {\n\t\ttry {\n\t\t\tsetXsdSchema(new FileInputStream(xsdFile));\n\t\t} catch (final FileNotFoundException e) {\n\t\t\tthrow new InvalidXsdException(\"The specified xsd file '\" + xsdFile\n\t\t\t\t\t+ \"' could not be found.\", e);\n\t\t}\n\t}",
"public void generateDTD(InputSource src)\n throws Exception\n {\n DTDParser parser = new DTDParser();\n DTD dtd;\n\n dtd = parser.parseExternalSubset(src, null);\n processElementTypes(dtd);\n System.out.println(createAllTablesQuery);\n FileWriter catq= new FileWriter(\"createAllTables.sql\");\n catq.write(createAllTablesQuery);\n catq.close();\n }",
"private boolean inputXSD(String xsdName, String xmlName, String outputFileName) {\n ArrayList<String> wholeFile = this.readReturnFileContents(xsdName);\n ArrayList<Integer> match = new ArrayList<Integer>();\n ArrayList<Map> fieldsAttribs = new ArrayList<>();\n match.add(1);\n for(String s:wholeFile){\n if(s.trim().length() != 0){\n match = this.parseXSD(s.trim(), match);\n if(match.get(match.size()-1)==8)\n return false;\n if(match.size()>2){\n if(match.get(match.size()-1) == 4){\n Map tMap = this.getTableFieldsAttribs(s);\n boolean flag = true;\n for (Map cMap: fieldsAttribs){\n if(cMap.get(\"name\").toString().equals(tMap.get(\"name\").toString())){\n flag = false;\n System.out.println(\"***Error- \"+ tMap + \" \\n this element is ignored due to duplicate name attribute in xsd file\");\n }\n }\n if(flag)\n fieldsAttribs.add(tMap);\n }\n }\n }\n\n }\n return this.inputXML(xmlName, fieldsAttribs, outputFileName);\n }",
"public void xsetXsd(org.apache.xmlbeans.XmlString xsd)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(XSD$2, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(XSD$2);\n }\n target.set(xsd);\n }\n }",
"public void transformToSecondXml();",
"private void upgradeWsdlDocumentIfNeeded(InputSource source) {\n DocumentBuilder documentParser = XmlUtil.getDocumentBuilder();\n\n // install our problem handler as document parser's error handler\n documentParser.setErrorHandler(problemHandler.asSaxErrorHandler());\n\n // parse content\n Document document;\n try {\n document = documentParser.parse(source);\n // halt on parse errors\n if (problemHandler.getProblemCount() > 0)\n return;\n }\n catch (IOException e) {\n Problem problem = new Problem(Problem.LEVEL_ERROR, \"document is not readable\", e);\n problem.setResource(latestImportURI);\n problemHandler.add(problem);\n return;\n }\n catch (SAXException e) {\n Problem problem = new Problem(Problem.LEVEL_ERROR, \"document contains invalid xml\", e);\n problem.setResource(latestImportURI);\n problemHandler.add(problem);\n return;\n }\n finally {\n // reset error handling behavior\n documentParser.setErrorHandler(null);\n }\n\n // check whether the wsdl document requires upgrading\n if (hasUpgradableElements(document)) {\n try {\n // create wsdl upgrader\n Transformer wsdlUpgrader = getWsdlUpgradeTemplates().newTransformer();\n\n // install our problem handler as transformer's error listener\n wsdlUpgrader.setErrorListener(problemHandler.asTraxErrorListener());\n\n // upgrade into memory stream\n ByteArrayOutputStream resultStream = new ByteArrayOutputStream();\n wsdlUpgrader.transform(new DOMSource(document), new StreamResult(resultStream));\n\n // replace existing source with upgraded document\n source.setByteStream(new ByteArrayInputStream(resultStream.toByteArray()));\n\n log.debug(\"upgraded wsdl document: \" + latestImportURI);\n }\n catch (TransformerException e) {\n Problem problem = new Problem(Problem.LEVEL_ERROR, \"wsdl upgrade failed\", e);\n problem.setResource(latestImportURI);\n problemHandler.add(problem);\n }\n }\n else {\n // if the source is a stream, reset it\n InputStream sourceStream = source.getByteStream();\n if (sourceStream != null) {\n try {\n sourceStream.reset();\n }\n catch (IOException e) {\n log.error(\"could not reset source stream: \" + latestImportURI, e);\n }\n }\n }\n }",
"private static boolean validate(JAXBContext jaxbCongtext, File file, URL xsdUrl) {\n SchemaFactory schemaFactory = null;\n Schema schema = null;\n Source xmlFile = new StreamSource(file);\n try {\n schemaFactory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);\n schema = schemaFactory.newSchema(xsdUrl);\n Validator validator = schema.newValidator();\n DocumentBuilderFactory db = newSecuDocBuilderFactory();\n db.setNamespaceAware(true);\n\n DocumentBuilder builder = db.newDocumentBuilder();\n Document doc = builder.parse(file);\n\n DOMSource source = new DOMSource(doc);\n DOMResult result = new DOMResult();\n\n validator.validate(source, result);\n LOGGER.debug(xmlFile.getSystemId() + \" is valid\");\n } catch(Exception ex) {\n LOGGER.error(xmlFile.getSystemId() + \" is NOT valid\", ex);\n return false;\n }\n return true;\n }",
"public static void addToXML(CD c)\n\t\t\tthrows TransformerException, FileNotFoundException, SAXException, IOException {\n\t\ttry {\n\t\t\tDocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();\n\t\t\tDocumentBuilder docBuilder = docFactory.newDocumentBuilder();\n\n\t\t\t// root elements\n\t\t\tDocument doc = docBuilder.newDocument();\n\t\t\tElement rootElement;\n\t\t\tString filePath = \"src/Part2_Ex3/CD.xml\";\n\t\t\tFile xmlFile = new File(filePath);\n\n\t\t\tif (xmlFile.isFile()) {\n\t\t\t\tdoc = docBuilder.parse(new FileInputStream(xmlFile));\n\t\t\t\tdoc.getDocumentElement().normalize();\n\t\t\t\trootElement = doc.getDocumentElement();\n\t\t\t} else {\n\t\t\t\trootElement = doc.createElement(\"CDs\");\n\t\t\t\tdoc.appendChild(rootElement);\n\t\t\t}\n\n\t\t\tElement cd = doc.createElement(\"CD\");\n\t\t\trootElement.appendChild(cd);\n\n\t\t\t// id element\n\t\t\tElement id = doc.createElement(\"id\");\n\t\t\tid.appendChild(doc.createTextNode(Integer.toString(c.getId())));\n\t\t\tcd.appendChild(id);\n\t\t\t\n\t\t\t// name\n\t\t\tElement name = doc.createElement(\"name\");\n\t\t\tname.appendChild(doc.createTextNode(c.getName()));\n\t\t\tcd.appendChild(name);\n\n\t\t\t//singer\n\t\t\tElement singer = doc.createElement(\"singer\");\n\t\t\tsinger.appendChild((doc.createTextNode(c.getSinger())));\n\t\t\tcd.appendChild(singer);\n\n\t\t\t// number songs\n\t\t\tElement numbersongs = doc.createElement(\"numbersongs\");\n\t\t\tnumbersongs.appendChild(doc.createTextNode(Integer.toString(c.getNumOfSong())));\n\t\t\tcd.appendChild(numbersongs);\n\t\t\t\n\t\t\t// price\n\t\t\tElement price = doc.createElement(\"price\");\n\t\t\tprice.appendChild(doc.createTextNode(Double.toString(c.getPrice())));\n\t\t\tcd.appendChild(price);\n\t\t\t\n\t\t\t// write the content into xml file\n\t\t\tTransformerFactory transformerFactory = TransformerFactory.newInstance();\n\t\t\tTransformer transformer = transformerFactory.newTransformer();\n\t\t\tDOMSource source = new DOMSource(doc);\n\t\t\tStreamResult result = new StreamResult(xmlFile);\n\t\t\ttransformer.transform(source, result);\n\n\t\t\tSystem.out.println(\"Add completed !\");\n\n\t\t} catch (ParserConfigurationException pce) {\n\t\t\tSystem.out.println(\"Cannot insert new CD. Error: \" + pce.getMessage());\n\t\t}\n\t}",
"public void dumpAsXmlFile(String pFileName);",
"private void renameOriginalDomainConfig() {\n File domXml = getDASDomainXML();\n movedDomXml = new File(domXml.getParentFile(), \"domain.xml.moved\");\n report(\"moved-domain\", domXml.renameTo(movedDomXml));\n }",
"public void setValidateDTD(final boolean validate)\r\n {\r\n this.validateDTD = validate;\r\n }",
"public static WSDLDocument parseWSDL(String input) throws WSDLParserException {\r\n\r\n\t try {\r\n\r\n\t\t\tWSDLDocument wsdlDoc = null;\r\n\r\n\t\t\twsdlDoc = new WSDLDocument();\r\n\r\n\t\t\tSAXBuilder builder = new SAXBuilder();\r\n\t\t\tlog.info(\"WSDL: loading...\" + input);\r\n\t\t\tDocument doc = builder.build(Files.getInputStream(input));\r\n\r\n\t\t\t// Get the root element\r\n\t\t\tElement root = doc.getRootElement();\r\n\r\n\t\t\t// Namespaces\r\n\t\t\tNamespace rootns = root.getNamespace();\r\n\t\t\twsdlDoc.setRootNamespace(rootns);\r\n\r\n\t\t\tList nss = root.getAdditionalNamespaces();\r\n\t\t\tfor (Iterator iter = nss.iterator(); iter.hasNext(); ) {\r\n\t\t\t\tNamespace ns = (Namespace) iter.next();\r\n\t\t\t\twsdlDoc.addAdditionalNamespace(ns);\r\n\t\t\t}\r\n\r\n\t\t\t// XML Schema Type defintions\r\n\r\n\t\t\t// first load utility schemas, which may be needed even in absence\r\n\t\t\t// of an explicite XSD schema defintion\r\n\t\t\tXMLSchemaParser parser = new XMLSchemaParser();\r\n\r\n\t\t\tHashMap addNS = new HashMap();\r\n\t\t\taddNS.put(\"xsd\", Namespace.getNamespace(\"xsd\", XSSchema.NS_XSD));\r\n\t\t\tXSSchema datatypes = parser.parseSchema(Files.getInputStream(\"examples/xs/xs_datatypes.xsd\"), addNS);\r\n\t\t\tXSSchema soapEncoding = parser.parseSchema(Files.getInputStream(\"examples/xs/soapencoding.xsd\"), addNS);\r\n\r\n\t\t\t// now read the schema definitions of the WSDL documen (usually, only one..)\r\n\t\t\tElement types = root.getChild(\"types\", rootns);\r\n\t\t\tif (types != null) {\r\n\t\t\t\tIterator itr = (types.getChildren()).iterator();\r\n\t\t\t\twhile (itr.hasNext()) {\r\n\t\t\t\t\t// copying XML Schema definition to stream\r\n\t\t\t\t\tByteArrayOutputStream os = new ByteArrayOutputStream();\r\n\t\t\t\t\tXMLOutputter outputter = new XMLOutputter();\r\n\t\t\t\t\toutputter.output((Element) itr.next(), os);\r\n\t\t\t\t\tString s = os.toString();\r\n\r\n\t\t\t\t\tXSSchema xs = parser.parseSchema(s, wsdlDoc.getAdditionalNamespaces());\r\n\t\t\t\t\tlog.debug(\"--- XML SCHEMA PARSING RESULT ---\\n\"+xs.toString());\r\n\t\t\t\t\twsdlDoc.addXSDSchema(xs);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tRegistry registry = Registry.getInstance();\r\n\r\n\t\t\twsdlDoc.setName(root.getAttributeValue(\"name\"));\r\n\t\t\twsdlDoc.setTargetNamespace(StrUtils.slashed(root.getAttributeValue(\"targetNamespace\")));\r\n\r\n\t\t\t/*\r\n\t\t\t<message name=\"GetLastTradePriceOutput\">\r\n\t\t\t\t\t<part name=\"body\" element=\"xsd1:TradePrice\"/>\r\n\t\t\t</message>\r\n\t\t\t*/\r\n\t\t\tfor(Iterator iter=root.getChildren(\"message\", NS_WSDL).iterator(); iter.hasNext(); ) {\r\n\t\t\t\tElement messageElem = (Element) iter.next();\r\n\t\t\t\tMessage m = new Message(wsdlDoc);\r\n\t\t\t\tm.setName(messageElem.getAttributeValue(\"name\"));\r\n\t\t\t\twsdlDoc.addMessage(m);\r\n\r\n\t\t\t\tList partList = messageElem.getChildren(\"part\", NS_WSDL);\r\n\t\t\t\tfor(Iterator iter2=partList.iterator(); iter2.hasNext();) {\r\n\t\t\t\t\tElement partElem = (Element) iter2.next();\r\n\r\n\t\t\t\t\tPart part = new Part(wsdlDoc, m);\r\n\t\t\t\t\tpart.setName(partElem.getAttributeValue(\"name\"));\r\n\r\n\t\t\t\t\tString partXSDElement = partElem.getAttributeValue(\"element\");\r\n\t\t\t\t\tString[] partXSDDef = null;\r\n\t\t\t\t\tif(partXSDElement != null) {\r\n\t\t\t\t\t\tpartXSDDef = wsdlDoc.splitQName(partXSDElement, wsdlDoc.getTargetNamespace());\r\n\t\t\t\t\t\tpart.setNamespace(partXSDDef[0]);\r\n\t\t\t\t\t\tpart.setElementName(partXSDDef[1]);\r\n\t\t\t\t\t\t//part.setElementName(partXSDElement);\r\n\t\t\t\t\t}\telse {\r\n\t\t\t\t\t\tif(partList.size() > 1) log.warn(\"WARNING: Violation of Sect. 2.3.1 of WSDL 1.1 spec: if type is used, only one msg part may be specified.\");\r\n\r\n\t\t\t\t\t\tString partXSDType = partElem.getAttributeValue(\"type\");\r\n\t\t\t\t\t\tpartXSDDef = wsdlDoc.splitQName(partXSDType, wsdlDoc.getTargetNamespace());\r\n\t\t\t\t\t\tpart.setNamespace(partXSDDef[0]);\r\n\t\t\t\t\t\tpart.setTypeName(partXSDDef[1]);\r\n\t\t\t\t\t\t//part.setTypeName(partXSDType);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tm.addPart(part);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tm.register();\r\n\t\t\t}\r\n\r\n\t\t\t/*\r\n\t\t\t<portType name=\"StockQuotePortType\">\r\n\t\t\t\t\t<operation name=\"GetLastTradePrice\">\r\n\t\t\t\t\t\t <input message=\"tns:GetLastTradePriceInput\"/>\r\n\t\t\t\t\t\t <output message=\"tns:GetLastTradePriceOutput\"/>\r\n\t\t\t\t\t</operation>\r\n\t\t\t</portType>\r\n\t\t\t*/\r\n\t\t\tfor(Iterator iter=root.getChildren(\"portType\", NS_WSDL).iterator(); iter.hasNext(); ) {\r\n\t\t\t\tElement ptElem = (Element) iter.next();\r\n\t\t\t\tPortType portType = new PortType(wsdlDoc);\r\n\t\t\t\tportType.setName(ptElem.getAttributeValue(\"name\"));\r\n\t\t\t\twsdlDoc.addPortType(portType);\r\n\r\n\t\t\t\tfor(Iterator iter2 = ptElem.getChildren(\"operation\", NS_WSDL).iterator(); iter2.hasNext(); ) {\r\n\t\t\t\t\tElement opElem = (Element) iter2.next();\r\n\t\t\t\t\tOperation operation = new Operation(wsdlDoc, portType);\r\n\t\t\t\t\toperation.setName(opElem.getAttributeValue(\"name\"));\r\n\t\t\t\t\tportType.addOperation(operation);\r\n\r\n\t\t\t\t\tElement inputElem = opElem.getChild(\"input\", NS_WSDL);\r\n\t\t\t\t\tif(inputElem != null) {\r\n\t\t\t\t\t\tString[] msgDef = wsdlDoc.splitQName(inputElem.getAttributeValue(\"message\"), wsdlDoc.getTargetNamespace());\r\n\t\t\t\t\t\tif(msgDef[0] != null && msgDef[1] != null) {\r\n\t\t\t\t\t\t\tMessage inputMsg = (Message) registry.getObject(Registry.WSDL_MESSAGE, Message.createURI(msgDef[0], msgDef[1]));\r\n\t\t\t\t\t\t\tif(inputMsg == null) throw new WSDLParserException(\"Error: message '\"+msgDef+\"' not found.\");\r\n\t\t\t\t\t\t\toperation.setInput(msgDef[0], msgDef[1], inputMsg);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tElement outputElem = opElem.getChild(\"output\", NS_WSDL);\r\n\t\t\t\t\tif(outputElem != null) {\r\n\t\t\t\t\t\tString[] msgDef = wsdlDoc.splitQName(outputElem.getAttributeValue(\"message\"), wsdlDoc.getTargetNamespace());\r\n\t\t\t\t\t\tif(msgDef[0] != null && msgDef[1] != null) {\r\n\t\t\t\t\t\t\tMessage outputMsg = (Message) registry.getObject(Registry.WSDL_MESSAGE, Message.createURI(msgDef[0], msgDef[1]));\r\n\t\t\t\t\t\t\tif(outputMsg == null) throw new WSDLParserException(\"Error: message '\"+msgDef+\"' not found.\");\r\n\t\t\t\t\t\t\toperation.setOutput(msgDef[0], msgDef[1], outputMsg);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tElement faultElem = opElem.getChild(\"fault\", NS_WSDL);\r\n\t\t\t\t\tif(faultElem != null) {\r\n\t\t\t\t\t\tString[] msgDef = wsdlDoc.splitQName(faultElem.getAttributeValue(\"message\"), wsdlDoc.getTargetNamespace());\r\n\t\t\t\t\t\tif(msgDef[0] != null && msgDef[1] != null) {\r\n\t\t\t\t\t\t\tMessage faultMsg = (Message) registry.getObject(Registry.WSDL_MESSAGE, Message.createURI(msgDef[0], msgDef[1]));\r\n\t\t\t\t\t\t\tif(faultMsg == null) throw new WSDLParserException(\"Error: message '\"+msgDef+\"' not found.\");\r\n\t\t\t\t\t\t\toperation.setFault(msgDef[0], msgDef[1], faultMsg);\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\tportType.register(); // recursivly registers pt and its op's\r\n\t\t\t}\r\n\r\n\t\t\t/*\r\n\t\t\t<binding name=\"StockQuoteSoapBinding\" type=\"tns:StockQuotePortType\">\r\n\t\t\t\t\t<soap:binding style=\"document\" transport=\"http://schemas.xmlsoap.org/soap/http\"/>\r\n\t\t\t\t\t<operation name=\"GetLastTradePrice\">\r\n\t\t\t\t\t\t <soap:operation soapAction=\"http://example.com/GetLastTradePrice\"/>\r\n\t\t\t\t\t\t <input>\r\n\t\t\t\t\t\t\t\t <soap:body use=\"literal\"/>\r\n\t\t\t\t\t\t </input>\r\n\t\t\t\t\t\t <output>\r\n\t\t\t\t\t\t\t\t <soap:body use=\"literal\"/>\r\n\t\t\t\t\t\t </output>\r\n\t\t\t\t\t</operation>\r\n\t\t\t</binding>\r\n\t\t\t*/\r\n\t\t\tfor(Iterator iter=root.getChildren(\"binding\", NS_WSDL).iterator(); iter.hasNext(); ) {\r\n\t\t\t\tElement bindingElem = (Element) iter.next();\r\n\t\t\t\tString bindingName = bindingElem.getAttributeValue(\"name\");\r\n\r\n\t\t\t\tString bdgPortTypeStr = bindingElem.getAttributeValue(\"type\");\r\n\t\t\t\tString[] bdDef = wsdlDoc.splitQName(bdgPortTypeStr, wsdlDoc.getTargetNamespace());\r\n\t\t\t\tPortType bdgPortType = (PortType) registry.getObject(Registry.WSDL_PORTTYPE, PortType.createURI(bdDef[0], bdDef[1]));\r\n\t\t\t\tif(bdgPortType == null) throw new WSDLParserException(\"Error: PortType '\"+bdgPortTypeStr+\"' not found in binding '\"+bindingName+\"'.\");\r\n\r\n\t\t\t\tElement soapBindingElem = (Element) bindingElem.getChild(\"binding\", NS_WSDL_SOAP);\r\n\t\t\t\tif(soapBindingElem == null) {\r\n\t\t\t\t\tlog.warn(\"Skipping this binding, currently we only support SOAP bindings\");\r\n\t\t\t\t\tcontinue; // currently we only support SOAP bindings\r\n\t\t\t\t}\r\n\r\n\t\t\t\tSOAPBinding soapBinding = new SOAPBinding(wsdlDoc, bdgPortType);\r\n\t\t\t\tsoapBinding.setName(bindingName);\r\n\t\t\t\t// TODO: handle as boolean constant\r\n\t\t\t\tsoapBinding.setStyle(\"rpc\".equalsIgnoreCase(soapBindingElem.getAttributeValue(\"style\"))\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t? SOAPBinding.STYLE_RPC : SOAPBinding.STYLE_DOCUMENT);\r\n\t\t\t\tsoapBinding.setTransport(soapBindingElem.getAttributeValue(\"transport\"));\r\n\r\n\t\t\t\t//<operation .... >\r\n\t\t\t\tfor(Iterator iter2 = bindingElem.getChildren(\"operation\", NS_WSDL).iterator(); iter2.hasNext(); ) {\r\n\r\n\t\t\t\t\tElement opBdgElem = (Element) iter2.next();\r\n\t\t\t\t\tSOAPOperationBinding opBdg = new SOAPOperationBinding(wsdlDoc, soapBinding);\r\n\t\t\t\t\tString opName = opBdgElem.getAttributeValue(\"name\");\r\n\r\n\t\t\t\t\tlog.debug(\"parsing SOAP binding for operation: \"+opName);\r\n\r\n\t\t\t\t\tString[] opNameDef = wsdlDoc.splitQName(opName, wsdlDoc.getTargetNamespace());\r\n\t\t\t\t\tOperation op = (Operation) registry.getObject(Registry.WSDL_OPERATION, Operation.createURI(bdgPortType.getName(), opNameDef[0], opNameDef[1]));\r\n\t\t\t\t\tif(op == null) throw new WSDLParserException(\"Error: Operation '\"+opName+\"' not found in binding '\"+bindingName+\"'\");\r\n\t\t\t\t\topBdg.setOperation(op);\r\n\t\t\t\t\tsoapBinding.addOperationBinding(opBdg);\r\n\r\n\r\n\t\t\t\t\t//<soap:operation soapAction=\"uri\"? style=\"rpc|document\"?>?\r\n\t\t\t\t\tElement soapOpBdgElem = (Element) opBdgElem.getChild(\"operation\", NS_WSDL_SOAP);\r\n\t\t\t\t\topBdg.setSoapAction(soapOpBdgElem.getAttributeValue(\"soapAction\"));\r\n\t\t\t\t\t/*\r\n\t\t\t\t\tcf. Sect. 3.4 of WSDL 1.1 spec\r\n\t\t\t\t\t*/\r\n\t\t\t\t\tString soapOpStyleStr = soapOpBdgElem.getAttributeValue(\"style\");\r\n\t\t\t\t\tif(soapOpStyleStr == null)\r\n\t\t\t\t\t\topBdg.setStyle(soapBinding.getStyle()); //\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\topBdg.setStyle(soapOpStyleStr.equalsIgnoreCase(\"rpc\") ? SOAPBinding.STYLE_RPC : SOAPBinding.STYLE_DOCUMENT);\r\n\r\n\t\t\t\t\t//<input>\r\n\t\t\t\t\tElement inputBdgElem = (Element) opBdgElem.getChild(\"input\", NS_WSDL);\r\n\t\t\t\t\tif(inputBdgElem != null) {\r\n\t\t\t\t\t\t// for now, skip header def's...\r\n\t\t\t\t\t\tSOAPBodyDef soapBodyDef = parseSOAPBodyDef(inputBdgElem, wsdlDoc, opBdg);\r\n\t\t\t\t\t\t// enforce WSDL specification\r\n\t\t\t\t\t\tif(!soapBodyDef.isConsistentWithMessageParts(opBdg.getOperation().getInputMsg())) throw new WSDLParserException(\"Error: violation of Sect. 3.5 - binding not consistent with message parts\");\r\n\t\t\t\t\t\topBdg.setInputSOAPBodyDef(soapBodyDef);\r\n\r\n\t\t\t\t\t\t// now parse SOAPHeader defs (if existant)\r\n\t\t\t\t\t\topBdg.setInputSOAPHeaderDefs(parseSOAPHeaderDefs(inputBdgElem, wsdlDoc, opBdg));\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t//<output>\r\n\t\t\t\t\tElement outputBdgElem = (Element) opBdgElem.getChild(\"output\", NS_WSDL);\r\n\t\t\t\t\tif(outputBdgElem != null) {\r\n\t\t\t\t\t\t// for now, skip header def's...\r\n\t\t\t\t\t\tSOAPBodyDef soapBodyDef = parseSOAPBodyDef(inputBdgElem, wsdlDoc, opBdg);\r\n\t\t\t\t\t\t// enforce WSDL specification\r\n\t\t\t\t\t\tif(!soapBodyDef.isConsistentWithMessageParts(opBdg.getOperation().getOutputMsg())) throw new WSDLParserException(\"Error: violation of Sect. 3.5 - binding not consistent with message parts\");\r\n\t\t\t\t\t\topBdg.setOutputSOAPBodyDef(soapBodyDef);\r\n\r\n\t\t\t\t\t\t// now parse SOAPHeader defs (if existant)\r\n\t\t\t\t\t\topBdg.setOutputSOAPHeaderDefs(parseSOAPHeaderDefs(inputBdgElem, wsdlDoc, opBdg));\r\n\t\t\t\t\t}\r\n\r\n\r\n\t\t\t\t}\r\n\t\t\t\twsdlDoc.addBinding(soapBinding);\r\n\t\t\t\tsoapBinding.register();\r\n\t\t\t}\r\n\r\n\t\t\t/*\r\n\t\t\t<service name=\"StockQuoteService\">\r\n\t\t\t\t\t<documentation>My first service</documentation>\r\n\t\t\t\t\t<port name=\"StockQuotePort\" binding=\"tns:StockQuoteBinding\">\r\n\t\t\t\t\t\t <soap:address location=\"http://example.com/stockquote\"/>\r\n\t\t\t\t\t</port>\r\n\t\t\t</service>\r\n\t\t\t*/\r\n\r\n\t\t\tfor(Iterator iter=root.getChildren(\"service\", NS_WSDL).iterator(); iter.hasNext(); ) {\r\n\t\t\t\tElement serviceElem = (Element) iter.next();\r\n\r\n\t\t\t\tService service = new Service(wsdlDoc);\r\n\t\t\t\tservice.setName(serviceElem.getAttributeValue(\"name\"));\r\n\r\n\t\t\t\tfor(Iterator iter2=serviceElem.getChildren(\"port\", NS_WSDL).iterator(); iter2.hasNext(); ) {\r\n\t\t\t\t\tElement portElem = (Element) iter2.next();\r\n\r\n\t\t\t\t\tPort port = new Port(wsdlDoc, service);\r\n\t\t\t\t\tport.setName(portElem.getAttributeValue(\"name\"));\r\n\r\n\t\t\t\t\tString bindingStr = portElem.getAttributeValue(\"binding\");\r\n\t\t\t\t\tString[] bindingNameDef = wsdlDoc.splitQName(bindingStr, wsdlDoc.getTargetNamespace());\r\n\t\t\t\t\tBinding binding = (Binding) registry.getObject(Registry.WSDL_BINDING, Binding.createURI(bindingNameDef[0], bindingNameDef[1]));\r\n\t\t\t\t\tif(binding == null) throw new WSDLParserException(\"Binding '\"+bindingStr+\"' not found in service '\"+service.getName()+\"'\");\r\n\t\t\t\t\tport.setBinding(binding);\r\n\r\n\t\t\t\t\t// currently, only SOAP binding supported\r\n\t\t\t\t\tElement soapAddressElem = portElem.getChild(\"address\", NS_WSDL_SOAP);\r\n\t\t\t\t\tport.setAddress(soapAddressElem.getAttributeValue(\"location\"));\r\n\r\n\t\t\t\t\tport.register();\r\n\t\t\t\t\tservice.addPort(port);\r\n\t\t\t\t}\r\n\t\t\t\twsdlDoc.addService(service);\r\n\t\t\t}\r\n\r\n\t\t\tRegistry.getInstance().addObject(Registry.WSDL_DOC, wsdlDoc);\r\n\t\t\treturn wsdlDoc;\r\n\t\t} catch(Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tthrow new WSDLParserException(e.getMessage());\r\n\t\t}\r\n\t}",
"public String getXMLResultXSD() {\n if (!this.initialized) {\n logInitializationError();\n return null;\n }\n try {\n DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n DocumentBuilder builder = factory.newDocumentBuilder();\n DOMImplementation impl = builder.getDOMImplementation();\n\n Document document = impl.createDocument(null, null, null);\n Element root = document.createElement(\"schema\");\n root.setAttribute(\"xmlns\", \"http://www.w3.org/2001/XMLSchema\");\n document.appendChild(root);\n Element resultElement = document.createElement(\"element\");\n resultElement.setAttribute(\"name\", \"result\");\n root.appendChild(resultElement);\n Element complexTypeElement = document.createElement(\"complexType\");\n resultElement.appendChild(complexTypeElement);\n Element sequenceElement = document.createElement(\"sequence\");\n complexTypeElement.appendChild(sequenceElement);\n\n for (TypeMap tSpec : this.serviceSpec.getTypeSpecs()) {\n Element element = document.createElement(\"element\");\n element.setAttribute(\"name\", tSpec.getOutputTag());\n element.setAttribute(\"maxOccurs\", \"unbounded\");\n element.setAttribute(\"minOccurs\", \"0\");\n\n Element complexType = document.createElement(\"complexType\");\n element.appendChild(complexType);\n\n Element simpleContent = document.createElement(\"simpleContent\");\n complexType.appendChild(simpleContent);\n\n Element extension = document.createElement(\"extension\");\n extension.setAttribute(\"base\", \"string\");\n simpleContent.appendChild(extension);\n\n for (Output output : tSpec.getOutputs()) {\n Element attributeElement = document.createElement(\"attribute\");\n extension.appendChild(attributeElement);\n attributeElement.setAttribute(\"name\", output.getAttribute());\n attributeElement.setAttribute(\"type\", \"string\");\n attributeElement.setAttribute(\"use\", \"optional\");\n }\n sequenceElement.appendChild(element);\n }\n\n DOMSource source = new DOMSource(document);\n TransformerFactory tFactory = TransformerFactory.newInstance();\n Transformer transformer = tFactory.newTransformer();\n transformer.setOutputProperty(OutputKeys.METHOD, \"xml\");\n transformer.setOutputProperty(\"{http://xml.apache.org/xslt}indent-amount\", \"4\");\n transformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\n\n StringWriter stringWriter = new StringWriter();\n StreamResult streamResult = new StreamResult(stringWriter);\n transformer.transform(source, streamResult);\n\n return stringWriter.toString();\n } catch (TransformerException e) {\n getLogger().log(Level.SEVERE, \"\", e);\n } catch (ParserConfigurationException e) {\n getLogger().log(Level.SEVERE, \"\", e);\n }\n return null;\n }",
"public void setXsd(java.lang.String xsd)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(XSD$2, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(XSD$2);\n }\n target.setStringValue(xsd);\n }\n }",
"public static void writeXMLFile(List<CD> lst)\n\t\t\tthrows TransformerException, FileNotFoundException, SAXException, IOException {\n\t\ttry {\n\t\t\tDocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();\n\t\t\tDocumentBuilder docBuilder = docFactory.newDocumentBuilder();\n\n\t\t\t// root elements\n\t\t\tDocument doc = docBuilder.newDocument();\n\t\t\tElement rootElement = doc.createElement(\"CDs\");\n\t\t\tdoc.appendChild(rootElement);\n\t\t\tString filePath = \"src/Part2_Ex3/CD.xml\";\n\t\t\tFile xmlFile = new File(filePath);\n\n\t\t\t\n\t\t\tfor (CD c : lst) {\n\n\t\t\t\tElement cd = doc.createElement(\"CD\");\n\t\t\t\trootElement.appendChild(cd);\n\n\t\t\t\t// id element\n\t\t\t\tElement id = doc.createElement(\"id\");\n\t\t\t\tid.appendChild(doc.createTextNode(Integer.toString(c.getId())));\n\t\t\t\tcd.appendChild(id);\n\t\t\t\t\n\t\t\t\t// name\n\t\t\t\tElement name = doc.createElement(\"name\");\n\t\t\t\tname.appendChild(doc.createTextNode(c.getName()));\n\t\t\t\tcd.appendChild(name);\n\n\t\t\t\t//singer\n\t\t\t\tElement singer = doc.createElement(\"singer\");\n\t\t\t\tsinger.appendChild((doc.createTextNode(c.getSinger())));\n\t\t\t\tcd.appendChild(singer);\n\n\t\t\t\t// number songs\n\t\t\t\tElement numbersongs = doc.createElement(\"numbersongs\");\n\t\t\t\tnumbersongs.appendChild(doc.createTextNode(Integer.toString(c.getNumOfSong())));\n\t\t\t\tcd.appendChild(numbersongs);\n\t\t\t\t\n\t\t\t\t// price\n\t\t\t\tElement price = doc.createElement(\"price\");\n\t\t\t\tprice.appendChild(doc.createTextNode(Double.toString(c.getPrice())));\n\t\t\t\tcd.appendChild(price);\n\t\t\t\t\n\t\t\t\t// write the content into xml file\n\t\t\t\tTransformer transformer = TransformerFactory.newInstance().newTransformer();\n\t\t\t transformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\n\t\t\t transformer.setOutputProperty(OutputKeys.METHOD, \"xml\");\n\t\t\t transformer.setOutputProperty(\"{http://xml.apache.org/xslt}indent-amount\", \"5\");\n\t\t\t DOMSource source = new DOMSource(doc);\n\t\t\t StreamResult result = new StreamResult(new File(filePath));\n\t\t\t transformer.transform(source, result); \n\t\t\t}\n\n\t\t} catch (ParserConfigurationException pce) {\n\t\t\tSystem.out.println(\"Cannot insert new contact. Error: \" + pce.getMessage());\n\t\t}\n\t}",
"public static void addEmployeeToXMLFile(Employee ee) {\n try {\n DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder docBuilder = docFactory.newDocumentBuilder();\n Document doc = docBuilder.newDocument();\n\n Element rootElement;\n File xmlFile = new File(\"src/task2/employee.xml\");\n\n if (xmlFile.isFile()) {\n doc = docBuilder.parse(new FileInputStream(xmlFile));\n doc.getDocumentElement().normalize();\n rootElement = doc.getDocumentElement();\n } else {\n rootElement = doc.createElement(\"department\");\n doc.appendChild(rootElement);\n }\n\n Element employee = doc.createElement(\"employee\");\n rootElement.appendChild(employee);\n\n Element id = doc.createElement(\"id\");\n id.appendChild(doc.createTextNode(ee.getId()));\n employee.appendChild(id);\n\n Element name = doc.createElement(\"name\");\n name.appendChild(doc.createTextNode(ee.getName()));\n employee.appendChild(name);\n\n Element sex = doc.createElement(\"sex\");\n sex.appendChild(doc.createTextNode(Integer.toString(ee.sex)));\n employee.appendChild(sex);\n\n Element dateOfBirth = doc.createElement(\"dateOfBirth\");\n dateOfBirth.appendChild(doc.createTextNode(ee.dateOfBirth));\n employee.appendChild(dateOfBirth);\n\n Element salary = doc.createElement(\"salary\");\n salary.appendChild(doc.createTextNode(Double.toString(ee.salary)));\n employee.appendChild(salary);\n\n Element address = doc.createElement(\"address\");\n address.appendChild(doc.createTextNode(ee.address));\n employee.appendChild(address);\n\n Element idDepartment = doc.createElement(\"idDepartment\");\n idDepartment.appendChild(doc.createTextNode(ee.idDepartment));\n employee.appendChild(idDepartment);\n\n TransformerFactory transformerFactory = TransformerFactory.newInstance();\n Transformer transformer = transformerFactory.newTransformer();\n DOMSource source = new DOMSource(doc);\n StreamResult result = new StreamResult(xmlFile);\n transformer.transform(source, result);\n System.out.println(\"File saved\");\n\n } catch (ParserConfigurationException | SAXException | IOException | DOMException | TransformerException e) {\n System.out.println(\"Error: \" + e.getMessage());\n }\n }",
"public static void saveStudRecsToFile(File file) {\r\n\t\ttry {\r\n\t\t\tJAXBContext context = JAXBContext\r\n\t\t\t\t\t.newInstance(StudRecsWrapper.class);\r\n\t\t\tMarshaller m = context.createMarshaller();\r\n\t\t\tm.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);\r\n\t\t\t\r\n\t\t\tStudRecsWrapper wrapper = new StudRecsWrapper();\r\n\t\t\twrapper.setStudRecs(studRecs);\r\n\t\t\t\r\n\t\t\tm.marshal(wrapper, file);\r\n\t\t\tSystem.out.println(\"File saved!\");\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(\"Cannot save file, check write permissions!\");\r\n\t\t}\r\n\t}",
"private boolean validate() {\r\n\t\ttry {\r\n\t\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\r\n\t\t\t//validate the schema\r\n\t\t\tdbFactory.setValidating(true);\r\n\t\t\tDocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\r\n\t\t\t//handling errors\r\n\t\t\tdBuilder.setErrorHandler(new ErrorHandler() {\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void error(SAXParseException arg0) throws SAXException {\r\n\t\t\t\t\tthrow new SAXException();\r\n\t\t\t\t}\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void fatalError(SAXParseException arg0) throws SAXException {\r\n\t\t\t\t\tthrow new SAXException();\r\n\t\t\t\t}\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void warning(SAXParseException arg0) throws SAXException {\r\n\t\t\t\t\tthrow new SAXException();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t});\r\n\t\t\tFile file = new File(tempPath);\r\n\t\t\tFileInputStream fis = new FileInputStream(file);\r\n\t\t\tDocument doc = dBuilder.parse(fis);\r\n\t\t\t//if it matches the schema then parse the temp xml file into the original xml file\r\n\t\t\tdoc.setXmlStandalone(true);\r\n\t\t\tTransformerFactory tf = TransformerFactory.newInstance();\r\n\t\t\tTransformer transformer = tf.newTransformer();\r\n\t\t\ttransformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\r\n\t\t\ttransformer.setOutputProperty(OutputKeys.ENCODING, \"ISO-8859-1\");\r\n\t\t\tDOMImplementation domImp = doc.getImplementation();\r\n\t\t\tDocumentType docType = domImp.createDocumentType(\"doctype\", \"SYSTEM\", new File(path).getName().substring(0, new File(path).getName().length() - 4) + \".dtd\");\r\n\t\t\ttransformer.setOutputProperty(OutputKeys.DOCTYPE_SYSTEM, docType.getSystemId());\r\n\t\t\tDOMSource domSource = new DOMSource(doc);\r\n\t\t\tFileOutputStream fos = new FileOutputStream(new File(path));\r\n\t\t\ttransformer.transform(domSource, new StreamResult(fos));\r\n\t\t\tfos.close();\r\n\t\t\tfis.close();\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tcatch (ParserConfigurationException e) {\r\n\t\t\ttry {\r\n\t\t\t\tthrow new ParserConfigurationException();\r\n\t\t\t} catch (RuntimeException | ParserConfigurationException err) {\r\n\t\t\t}\r\n\t\t} catch (TransformerConfigurationException e) {\r\n\t\t\ttry {\r\n\t\t\t\tthrow new TransformerConfigurationException();\r\n\t\t\t} catch (RuntimeException | TransformerConfigurationException err) {\r\n\t\t\t}\r\n\t\t} catch (TransformerException e) {\r\n\t\t\ttry {\r\n\t\t\t\tthrow new TransformerException(e);\r\n\t\t\t} catch (RuntimeException | TransformerException err) {\r\n\t\t\t}\r\n\t\t} catch (SAXException e) {\r\n\t\t\ttry {\r\n\t\t\t\tthrow new SAXException();\r\n\t\t\t} catch (RuntimeException | SAXException err) {\r\n\t\t\t}\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\ttry {\r\n\t\t\t\tthrow new IOException();\r\n\t\t\t} catch (RuntimeException | IOException err) {\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public static void loadStudRecsFromFile(File file) {\r\n\t\ttry {\r\n\t\t\tJAXBContext context = JAXBContext\r\n\t\t\t\t\t.newInstance(StudRecsWrapper.class);\r\n\t\t\tUnmarshaller um = context.createUnmarshaller();\r\n\t\t\t\r\n\t\t\tStudRecsWrapper wrapper = (StudRecsWrapper) um.unmarshal(file);\r\n\t\t\t\r\n\t\t\tstudRecs.clear();\r\n\t\t\tstudRecs.addAll(wrapper.getStudRecs());\r\n\t\t\tSystem.out.println(\"File loaded!\");\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(\"Cannot load file, does it exist?\");\r\n\t\t}\r\n\t}",
"public void addDTD(ResourceLocation dtd) throws BuildException {\n if (isReference()) {\n throw noChildrenAllowed();\n }\n\n getElements().addElement(dtd);\n setChecked(false);\n }",
"public static Document getDocument(File file, boolean namespaceAware) {\r\n Document document = null;\r\n try {\r\n // parse an XML document into a DOM tree\r\n DocumentBuilderFactory documentFactory = DocumentBuilderFactory\r\n .newInstance();\r\n documentFactory.setNamespaceAware(namespaceAware);\r\n // documentFactory.setAttribute(\"http://java.sun.com/xml/jaxp/properties/schemaLanguage\",\r\n // \"http://www.w3.org/2001/XMLSchema\");\r\n DocumentBuilder parser = documentFactory.newDocumentBuilder();\r\n\r\n document = parser.parse(file);\r\n } catch (Exception e) {\r\n log.error(\"getDocument error: \", e);\r\n }\r\n return document;\r\n }",
"public static void updateSynapseAPI(Document document, File file) throws APIMigrationException {\n try {\n updateHandlers(document, file);\n TransformerFactory transformerFactory = TransformerFactory.newInstance();\n Transformer transformer = transformerFactory.newTransformer();\n transformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\n DOMSource source = new DOMSource(document);\n StreamResult result = new StreamResult(file);\n transformer.transform(source, result);\n } catch (TransformerConfigurationException e) {\n handleException(\"Could not initiate TransformerFactory Builder.\", e);\n } catch (TransformerException e) {\n handleException(\"Could not transform the source.\", e);\n }\n }",
"public void createXml(String fileName) { \n\t\tElement root = this.document.createElement(\"TSETInfoTables\"); \n\t\tthis.document.appendChild(root); \n\t\tElement metaDB = this.document.createElement(\"metaDB\"); \n\t\tElement table = this.document.createElement(\"table\"); \n\t\t\n\t\tElement column = this.document.createElement(\"column\");\n\t\tElement columnName = this.document.createElement(\"columnName\");\n\t\tcolumnName.appendChild(this.document.createTextNode(\"test\")); \n\t\tcolumn.appendChild(columnName); \n\t\tElement columnType = this.document.createElement(\"columnType\"); \n\t\tcolumnType.appendChild(this.document.createTextNode(\"INTEGER\")); \n\t\tcolumn.appendChild(columnType); \n\t\t\n\t\ttable.appendChild(column);\n\t\tmetaDB.appendChild(table);\n\t\troot.appendChild(metaDB); \n\t\t\n\t\tTransformerFactory tf = TransformerFactory.newInstance(); \n\t\ttry { \n\t\t\tTransformer transformer = tf.newTransformer(); \n\t\t\tDOMSource source = new DOMSource(document); \n\t\t\ttransformer.setOutputProperty(OutputKeys.ENCODING, \"gb2312\"); \n\t\t\ttransformer.setOutputProperty(OutputKeys.INDENT, \"yes\"); \n\t\t\tPrintWriter pw = new PrintWriter(new FileOutputStream(fileName)); \n\t\t\tStreamResult result = new StreamResult(pw); \n\t\t\ttransformer.transform(source, result); \n\t\t\tlogger.info(\"Generate XML file success!\");\n\t\t} catch (TransformerConfigurationException e) { \n\t\t\tlogger.error(e.getMessage());\n\t\t} catch (IllegalArgumentException e) { \n\t\t\tlogger.error(e.getMessage());\n\t\t} catch (FileNotFoundException e) { \n\t\t\tlogger.error(e.getMessage());\n\t\t} catch (TransformerException e) { \n\t\t\tlogger.error(e.getMessage());\n\t\t} \n\t}",
"public void testSchemaImport2() throws Exception{\r\n File file = new File(Resources.asURI(\"importBase.xsd\"));\r\n //create a DOM document\r\n DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();\r\n documentBuilderFactory.setNamespaceAware(true);\r\n Document doc = documentBuilderFactory.newDocumentBuilder().\r\n parse(file.toURL().toString());\r\n\r\n XmlSchemaCollection schemaCol = new XmlSchemaCollection();\r\n XmlSchema schema = schemaCol.read(doc,file.toURL().toString(),null);\r\n assertNotNull(schema);\r\n\r\n }",
"public static Date isoStringToDate(String d) {\n\t\tDateTime dt = XML_DATE_TIME_FORMAT.parseDateTime(d);\n\t\treturn dt.toDate();\n\t}",
"private void restoreOriginalDomainConfig() {\n getDASDomainXML().delete();\n report(\"restored-domain\", movedDomXml.renameTo(getDASDomainXML()));\n }",
"@Override\n\tpublic void domove(String filename) {\n\n\t\tFile starfile = new File(\"D://FileRec/\" + filename);\n\n\t\tFile endDirection = new File(\"D://FileRec//docx\");\n\t\tif (!endDirection.exists()) {\n\t\t\tendDirection.mkdirs();\n\t\t}\n\n\t\tFile endfile = new File(endDirection + File.separator + starfile.getName());\n\n\t\ttry {\n\t\t\tif (starfile.renameTo(endfile)) {\n\t\t\t\tSystem.out.println(\"转移成功\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"转移失败,或许是重名\");\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"文件移动出现异常\");\n\t\t}\n\t}",
"public void convertAll() {\n Document dom = null;\n long beginTime = System.currentTimeMillis();\n try {\n log.info(\" ############################### begin import ######################\");\n dom = XMLParser.parseXMLToDOM(context.getResourceAsStream(IMPORT_FILE));\n // XMLParser.DTDValidator(dom);\n Element element = (Element) dom.getElementsByTagName(\"import\").item(0);\n String encoding = element.getAttribute(\"encoding\");\n DataAccessor.encoding = encoding;\n\n NodeList list = element.getChildNodes();\n\n List<Data> clondSources = new ArrayList<Data>();\n for (int i = 0; i < list.getLength(); i++) {\n // datatype node\n Node itemDatatype = list.item(i);\n List<Data> sources = processDatatype(itemDatatype);\n clondSources.addAll(sources);\n }\n NodeService.insertMigrationMappings(clondSources);\n createRelationDataType(clondSources);\n linkRoot(list);\n log.info(String.format(\n \" ---->#######################finished importing [time:%s mins] #############################\",\n (System.currentTimeMillis() - beginTime) / (1000 * 60)));\n NodeService.insertProperties(properties);\n }\n catch (Exception e) {\n log.error(e.getMessage());\n e.printStackTrace();\n }\n }",
"public String getSchema(File file) {\n\t\tDocument doc = null;\n\t\ttry {\n\t\t\tSAXBuilder sax = new SAXBuilder();\n\t\t\tdoc = sax.build(file);\n\t\t} catch (JDOMException | IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tif(doc != null)\n\t\t\treturn getSchema(doc);\n\t\treturn null;\n\t}",
"public static Document newDocument(final File file, boolean useNamespaces) throws IOException, XMLException {\n\t\tfinal InputStream in = new FileInputStream(file);\n\t\treturn XMLHelper.parse(in, useNamespaces);\n\t}",
"private void marshallDocument(Virtualnetworkmanager root, PrintStream outputFile) throws JAXBException, SAXException {\n\t\t\n\t\t// Creating the JAXB context to perform a validation \n\t\tJAXBContext jc;\n\t\t// Creating an instance of the XML Schema \n\t\tSchema schema;\n\t\t\t\t\n\t\ttry {\n\t\t\tjc = JAXBContext.newInstance(PACKAGE);\n\t\t\tschema = SchemaFactory.newInstance(W3C_XML_SCHEMA_NS_URI).newSchema(new File(XSD_NAME));\n\t\t}\n\t\tcatch(IllegalArgumentException e) {\n\t\t\tSystem.err.println(\"Error! No implementation of the schema language is available\");\n\t\t\tthrow e;\n\t\t}\n\t\tcatch(NullPointerException e) {\n\t\t\tSystem.err.println(\"Error! The instance of the schema or the file of the schema is not well created!\\n\");\n\t\t\tthrow new SAXException(\"The schema file is null!\");\n\t\t}\n\t\t\n\t\t// Creating the XML document \t\t\n\t\tMarshaller m = jc.createMarshaller();\n\t\tm.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);\n\t\tm.setProperty(Marshaller.JAXB_SCHEMA_LOCATION, XSD_LOCATION+\" \"+XSD_NAME);\n\t\tm.setSchema(schema);\n\t\tm.marshal(root, outputFile);\n\t\t\n\t}",
"private void parseWSCTaxonomyFile(String fileName) {\n\t\ttry {\n\t \tFile fXmlFile = new File(fileName);\n\t \tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n\t \tDocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n\t \tDocument doc = dBuilder.parse(fXmlFile);\n\t \tElement taxonomy = (Element) doc.getChildNodes().item(0);\n\n\t \tprocessTaxonomyChildren(null, taxonomy.getChildNodes());\n\t\t}\n\n\t\tcatch (ParserConfigurationException e) {\n System.out.println(\"Taxonomy file parsing failed...\");\n\t\t}\n\t\tcatch (SAXException e) {\n System.out.println(\"Taxonomy file parsing failed...\");\n\t\t}\n\t\tcatch (IOException e) {\n System.out.println(\"Taxonomy file parsing failed...\");\n\t\t}\n\t}",
"public static void main(String[] args) throws Exception {\n \tString filename = null;\n \tboolean dtdValidate = false;\n \tboolean xsdValidate = false;\n \tString schemaSource = null;\n \t\n \targs[1] = \"/home/users/xblepa/git/labs/java/parser/src/test/data/personal-schema.xml\";\n \n boolean ignoreWhitespace = false;\n boolean ignoreComments = false;\n boolean putCDATAIntoText = false;\n boolean createEntityRefs = false;\n\n\t\t \n\t\tfor (int i = 0; i < args.length; i++) {\n\t\t if (args[i].equals(\"-dtd\")) { \n\t\t \t\tdtdValidate = true;\n\t\t } \n\t\t else if (args[i].equals(\"-xsd\")) {\n\t\t \txsdValidate = true;\n\t\t } \n\t\t else if (args[i].equals(\"-xsdss\")) {\n\t\t if (i == args.length - 1) {\n\t\t usage();\n\t\t }\n\t\t xsdValidate = true;\n\t\t schemaSource = args[++i];\n\t\t }\n\t\t else if (args[i].equals(\"-ws\")) {\n\t ignoreWhitespace = true;\n\t } \n\t else if (args[i].startsWith(\"-co\")) {\n\t ignoreComments = true;\n\t }\n\t else if (args[i].startsWith(\"-cd\")) {\n\t putCDATAIntoText = true;\n\t } \n\t else if (args[i].startsWith(\"-e\")) {\n\t createEntityRefs = true;\n\t // ...\n\t } \n\t\t else {\n\t\t filename = args[i];\n\t\t if (i != args.length - 1) {\n\t\t usage();\n\t\t }\n\t\t }\n\t\t}\n\t\t\n\t\tif (filename == null) {\n\t\t usage();\n\t\t}\n\t \t\n // Next, add the following code to the main() method, to obtain an instance of a factory that can give us a document builder.\n DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n \n dbf.setNamespaceAware(true);\n dbf.setValidating(dtdValidate || xsdValidate);\n \n // Now, add the following code to main() to get an instance of a builder, and use it to parse the specified file.\n DocumentBuilder db = dbf.newDocumentBuilder(); \n \n // The following code configures the document builder to use the error handler defined in Handle Errors. \n OutputStreamWriter errorWriter = new OutputStreamWriter(System.err,outputEncoding);\n db.setErrorHandler(new MyErrorHandler (new PrintWriter(errorWriter, true)));\n\n \n Document doc = db.parse(new File(filename)); \n \n }",
"public SchemaValidator(@NotNull Class<?> clz, @NotNull String schemaFile)\r\n throws SAXException {\r\n File localFile = new File(\"src\" + File.separator + \"main\"\r\n + File.separator + \"resources\" + File.separator\r\n + \"model\" + File.separator + \"xsd\"\r\n + File.separator + schemaFile);\r\n Schema schema;\r\n if (localFile.exists()) {\r\n try {\r\n schema = createSchema(new FileInputStream(localFile));\r\n } catch (FileNotFoundException e) {\r\n schema = createSchema(clz.getResourceAsStream(\r\n \"/model/xsd/\" + schemaFile));\r\n }\r\n } else {\r\n schema = createSchema(clz.getResourceAsStream(\r\n \"/model/xsd/\" + schemaFile));\r\n }\r\n validator = schema.newValidator();\r\n validator.setFeature(\r\n \"http://apache.org/xml/features/validation/schema-full-checking\",\r\n true);\r\n }",
"private SRTLabTestDT convertToSRTLabTestDT(TestResultTestFilterDT oldDT){\n SRTLabTestDT newDT = new SRTLabTestDT(oldDT);\n return newDT;\n\n }",
"void addExtendedReferenceType(ExtendedReferenceTypeDefinition ertd) throws ResultException, DmcValueException {\n if (checkAndAdd(ertd.getObjectName(),ertd,extendedReferenceTypeDefs) == false){\n \tResultException ex = new ResultException();\n \tex.addError(clashMsg(ertd.getObjectName(),ertd,extendedReferenceTypeDefs,\"extended reference type names\"));\n \tthrow(ex);\n }\n \n if (checkAndAddDOT(ertd.getDotName(),ertd,globallyUniqueMAP,null) == false){\n \tResultException ex = new ResultException();\n \tex.addError(clashMsgDOT(ertd.getObjectName(),ertd,globallyUniqueMAP,\"definition names\"));\n currentSchema = null;\n \tthrow(ex);\n } \n \n TypeDefinition td = new TypeDefinition();\n td.setInternallyGenerated(true);\n td.setIsExtendedRefType(true);\n td.setName(ertd.getName());\n \n // NOTE: At this stage, the extendedReferenceClass attribute hasn't been resolved,\n // so we're setting the original class based on the name of the extendedReferenceClass\n td.getDMO().setOriginalClass(ertd.getDMO().getExtendedReferenceClass().cloneMe());\n \n // The name of an extended reference definition is schema.extreftype.ExtendedReferenceTypeDefinition\n // For the associated class, it will be schema.extreftype.TypeDefinition\n DotName typeName = new DotName((DotName) ertd.getDotName().getParentName(),\"TypeDefinition\");\n// DotName nameAndTypeName = new DotName(td.getName() + \".TypeDefinition\");\n td.setDotName(typeName);\n// td.setNameAndTypeName(nameAndTypeName);\n\n td.addDescription(\"This is an internally generated type to represent extendedreference type \" + ertd.getName() + \" values.\");\n td.setIsEnumType(false);\n td.setIsRefType(true);\n \n td.setTypeClassName(ertd.getDefinedIn().getSchemaPackage() + \".generated.types.DmcType\" + ertd.getName());\n td.setPrimitiveType(ertd.getDefinedIn().getSchemaPackage() + \".generated.types.\" + ertd.getName());\n td.setDefinedIn(ertd.getDefinedIn());\n \n // We add the new type to the schema's list of internally generated types\n ertd.getDefinedIn().addInternalTypeDefList(td);\n ertd.getDefinedIn().addTypeDefList(td);\n \n internalTypeDefs.put(td.getName(), td);\n \n // And then we add the type if it's not already there - this can happen when\n // we're managing a generated schema and the type definition has already been added\n // from the typedefList attribute\n if (typeDefs.get(td.getName()) == null)\n \taddType(td);\n \n // We hang on to this so that we can set some further info after the extendedReferenceClass has been resolved\n ertd.setInternalType(td);\n }",
"private void _writeDatatypeAware(final DatatypeAware datatyped) throws IOException {\n final String datatype = datatyped.getDatatype().getReference();\n String value = XSD.ANY_URI.equals(datatype) ? datatyped.locatorValue().toExternalForm()\n : datatyped.getValue();\n _writeKeyValue(\"value\", value);\n if (!XSD.STRING.equals(datatype)) {\n _writeKeyValue(\"datatype\", datatyped.getDatatype().toExternalForm());\n }\n }",
"private void importXMLSchema(Import bpelImport) {\n \tString namespace = bpelImport.getNamespace();\n \tString location = bpelImport.getLocation();\n \tif (location == null) {\n mLogger.severe(\"Unable to import schema document, import location is null \" + bpelImport);\n throw new XMLParseVisitorException(\"Unable to import schema document, import location is null \" + bpelImport);\n }\n \t\n \tLazyImportVisitorService vService = (LazyImportVisitorService) getVisitorService();\n \tBPELParseContext bpelParseContext = vService.getBPELParseContext();\n \tIXSDResolver xsdResolver = bpelParseContext.getXSDResolver();\n \t\n \tif(xsdResolver == null) {\n \t\tmLogger.severe(\"Unable to import schema document, must specify XSD Resolver \" + bpelImport);\n throw new XMLParseVisitorException(\"Unable to import schema document, must specify XSD Resolver \" + bpelImport);\n \t}\n \t\n \ttry {\n\t \tXMLSchema xsdDocument = xsdResolver.resolve(namespace, location);\n\t \n\t if(xsdDocument == null) {\n\t \tmLogger.severe(\"Unable to import schema document for import \" + bpelImport);\n\t throw new XMLParseVisitorException(\"Unable to import schema document for import \" + bpelImport);\t\n\t }\n\t \n\t bpelImport.setImportedObject(xsdDocument);\n \n } catch (EInsightModelException e) {\n mLogger.log(Level.SEVERE, \"Unable to import xsd document for import \" + bpelImport, e);\n throw new XMLParseVisitorException(\"Unable to import xsd document for import \" + bpelImport, e);\n }\n \n }",
"private static void validate(String fileName, String xSchema) throws Exception {\n \t\ttry {\n\t // parse an XML document into a DOM tree\n\t DocumentBuilder parser =\n\t DocumentBuilderFactory.newInstance().newDocumentBuilder();\n\t Document document = parser.parse(new File(fileName));\n\t\n\t // create a SchemaFactory capable of understanding WXS schemas\n\t SchemaFactory factory =\n\t SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);\n\t\n\t // load a WXS schema, represented by a Schema instance\n\t Source schemaFile = new StreamSource(new File(xSchema));\n\t Schema schema = factory.newSchema(schemaFile);\n\t\n\t // create a Validator object, which can be used to validate\n\t // an instance document\n\t Validator validator = schema.newValidator();\n\t\n\t // validate the DOM tree\n\t\n\t validator.validate(new DOMSource(document));\n \t\t} catch(Exception e) {\n \t\t\tXMLValidate.file = fileName.substring(fileName.lastIndexOf(\"/\") + 1).replaceAll(\".xml\", \"\");\n \t\t\tthrow e;\n \t\t}\n \n }",
"public static Document fileToSciXML(File f) throws Exception {\n\t\tString name = f.getName();\n\t\tif(name.endsWith(\".xml\")) {\n\t\t\tDocument doc = new Builder().build(f);\n\t\t\t/* is this an RSC document? */\n\t\t\tif(PubXMLToSciXML.isRSCDoc(doc)) {\n\t\t\t\tPubXMLToSciXML rtsx = new PubXMLToSciXML(doc);\n\t\t\t\tdoc = rtsx.getSciXML();\n\t\t\t}\n\t\t\treturn doc;\n\t\t} else if(name.endsWith(\".html\") || name.endsWith(\".htm\")) {\n\t\t\treturn TextToSciXML.textToSciXML(HtmlCleaner.cleanHTML(FileTools.readTextFile(f)));\n\t\t} else if(name.matches(\"source_file_\\\\d+_\\\\d+.src\")) {\n\t\t\treturn TextToSciXML.bioIEAbstractToXMLDoc(FileTools.readTextFile(f));\n\t\t} else {\n\t\t\t/* Assume plain text */\n\t\t\treturn TextToSciXML.textToSciXML(FileTools.readTextFile(f));\n\t\t}\n\t}",
"public static Schematic schematicFromAtoms(File file) {\n try {\n FileInputStream fileInputStream = new FileInputStream(file);\n ObjectInputStream objectInputStream = new ObjectInputStream(fileInputStream);\n\n return schematicFromJson(objectInputStream.readUTF());\n\n } catch (IOException err) {\n err.printStackTrace();\n return null;\n }\n }",
"public void generateTypesForXSD(ParameterMetaData pmd) throws IOException\n {\n QName xmlType = pmd.getXmlType();\n if(xmlType.getNamespaceURI().equals(Constants.NS_SCHEMA_XSD) == false)\n generateType(xmlType, pmd.getJavaType(), buildElementNameMap(pmd));\n\n if (pmd.getOperationMetaData().getStyle() == Style.DOCUMENT || pmd.isInHeader())\n generateElement(pmd.getXmlName(), xmlType);\n\n //Attachment type\n if(pmd.isSwA())\n wsdl.registerNamespaceURI(Constants.NS_SWA_MIME, \"mime\");\n }",
"public void close(){\r\n Transformer t = null;\r\n\t\ttry {\r\n\t\t\tt = TransformerFactory.newInstance().newTransformer();\r\n\t\t\tt.setOutputProperty(OutputKeys.METHOD, \"xml\");\r\n\t\t\tt.setOutputProperty(OutputKeys.INDENT, \"yes\"); \r\n\t\t\tt.transform(new DOMSource(document), new StreamResult(new FileOutputStream(XMLFileName))); \t\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n }",
"public SLDStyle(String filename) {\n \n File f = new File(filename);\n setInput(f);\n readXML();\n }",
"public void setDTDHandler(DTDHandler handler)\n {\n if (handler == null)\n {\n handler = base;\n }\n this.dtdHandler = handler;\n }",
"public void write(java.io.File f) throws java.io.IOException, Schema2BeansRuntimeException;",
"public XmlTransformer(Package pakkage, ImmutableMap<String, String> schemaNamesToFilenames) {\n try {\n this.jaxbContext = initJaxbContext(pakkage, schemaNamesToFilenames.keySet());\n this.schema = loadXmlSchemas(ImmutableList.copyOf(schemaNamesToFilenames.values()));\n } catch (JAXBException e) {\n throw new RuntimeException(e);\n }\n }",
"public FixedSchemaOutputResolver(File outputFile) {\n this.outputFile = requireNonNull(outputFile, \"outputFile\");\n }",
"public SchemaValidator(@NotNull InputStream schemaFile) throws SAXException {\r\n Schema schema = createSchema(schemaFile);\r\n validator = schema.newValidator();\r\n validator.setFeature(\r\n \"http://apache.org/xml/features/validation/schema-full-checking\",\r\n true);\r\n }",
"public static Document createDOMDocumentFromXmlFile(File file)\n throws ParserConfigurationException, IOException, SAXException {\n\n if (!file.exists()) {\n throw new RuntimeException(\"Could not find XML file: \" + file.getAbsolutePath());\n }\n\n DocumentBuilder documentBuilder = DocumentBuilderFactory.newInstance().newDocumentBuilder();\n Document xmlDocument = documentBuilder.parse(file);\n\n return xmlDocument;\n }",
"@Test\n public void testCDXML() {\n \tString infile = \"src/test/resources/examples/cdx/r19.cdxml\";\n \tString outfile = \"src/test/resources/examples/cdx/r19.cml\";\n \tString reffile = \"src/test/resources/examples/cdx/r19.ref.cml\";\n \tString[] args = {\"-i \"+infile+\" -o \"+outfile};\n \ttry {\n \t\tConverterCli.main(args);\n \t} catch (Exception e) {\n \t\te.printStackTrace();\n \t\tAssert.fail(\"Should not throw \"+ e);\n \t}\n\t\tJumboTestUtils.assertEqualsIncludingFloat(\"CDXML\", \n\t\t\t\tCMLUtil.parseQuietlyToDocument(new File(outfile)).getRootElement(), \n\t\t\t\tCMLUtil.parseQuietlyToDocument(new File(reffile)).getRootElement(), \n\t\t\t\ttrue, 0.00000001);\n }",
"public void loadData(){\n try {\n entities.clear();\n\n DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder documentBuilder = documentBuilderFactory.newDocumentBuilder();\n Document document = documentBuilder.parse(fileName);\n\n Node root = document.getDocumentElement();\n NodeList nodeList = root.getChildNodes();\n for (int i = 0; i < nodeList.getLength(); i++){\n Node node = nodeList.item(i);\n if (node.getNodeType() == Node.ELEMENT_NODE){\n Element element = (Element) node;\n Department department = createDepartmentFromElement(element);\n try{\n super.save(department);\n } catch (RepositoryException | ValidatorException e) {\n e.printStackTrace();\n }\n }\n }\n } catch (SAXException | ParserConfigurationException | IOException e) {\n e.printStackTrace();\n }\n }",
"public void setDTDHandler(org.xml.sax.DTDHandler handler)\n {\n // Typecast required in Xerces2; SAXParser doesn't inheret XMLReader\n // %OPT% Cast at asignment?\n ((XMLReader)fIncrementalParser).setDTDHandler(handler);\n }",
"public void convert(String filePath) {\n Cob2CustomerDataConverter converter = new Cob2CustomerDataConverter();\n\n // Get mainframe data (file, RPC, JMS, ...)\n byte[] hostData = readSampleData(filePath);\n\n // Convert the mainframe data to JAXB\n FromHostResult < CustomerData > result = converter.convert(\n hostData);\n\n // Print out the results\n print(result);\n\n }",
"public void endDTD() throws SAXException {\n this.saxHandler.endDTD();\n }",
"private void parseWSCTaxonomyFile(String fileName) {\n\t\ttry {\n\t\t\tFile fXmlFile = new File(fileName);\n\t\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n\t\t\tDocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n\t\t\tDocument doc = dBuilder.parse(fXmlFile);\n\t\t\tNodeList taxonomyRoots = doc.getChildNodes();\n\n\t\t\tprocessTaxonomyChildren(null, taxonomyRoots);\n\t\t}\n\n\t\tcatch (ParserConfigurationException e) {\n\t\t\tSystem.err.println(\"Taxonomy file parsing failed...\");\n\t\t}\n\t\tcatch (SAXException e) {\n\t\t\tSystem.err.println(\"Taxonomy file parsing failed...\");\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\tSystem.err.println(\"Taxonomy file parsing failed...\");\n\t\t}\n\t}",
"public interface DTDHandler {\n\n /**\n * Receive notification of a notation declaration event. <p/> It is up to\n * the application to record the notation for later reference, if necessary.\n * </p> <p/> If a system identifier is present, and it is a URL, the SAX\n * parser must resolve it fully before passing it to the application. </p>\n * \n * @param name\n * The notation name.\n * @param publicId\n * The notation's public identifier, or null if none was given.\n * @param systemId\n * The notation's system identifier, or null if none was given.\n * @throws org.xml.sax.SAXException\n * Any SAX exception, possibly wrapping another exception.\n * @see #unparsedEntityDecl\n * @see org.xml.sax.AttributeList\n */\n public abstract void notationDecl(String name, String publicId,\n String systemId) throws SAXException;\n\n /**\n * Receive notification of an unparsed entity declaration event. <p/> Note\n * that the notation name corresponds to a notation reported by the\n * notationDecl() event. It is up to the application to record the entity\n * for later reference, if necessary. </p> <p/> If the system identifier is\n * a URL, the parser must resolve it fully before passing it to the\n * application. </p>\n * \n * @param name\n * The unparsed entity's name.\n * @param publicId\n * The entity's public identifier, or null if none was given.\n * @param systemId\n * The entity's system identifier (it must always have one).\n * @param notation\n * name The name of the associated notation.\n * @param notationName\n * @throws org.xml.sax.SAXException\n * Any SAX exception, possibly wrapping another exception.\n * @see #notationDecl\n * @see org.xml.sax.AttributeList\n */\n public abstract void unparsedEntityDecl(String name, String publicId,\n String systemId, String notationName) throws SAXException;\n\n}",
"private void importType(JTFFile file) {\n if (file.getType() != null) {\n if (typesService.exist(file.getType())) {\n file.getType().setId(typesService.getSimpleData(file.getType().getName()).getId());\n } else {\n typesService.create(file.getType());\n }\n\n file.getFilm().setTheType(file.getType());\n }\n }",
"private boolean validateXmlFileWithSchema(String xmlFilePath, String xsdFilePath) { \n \tassert xmlFilePath != null && !xmlFilePath.isEmpty();\n \tassert xsdFilePath != null && !xsdFilePath.isEmpty();\n \tassert _schemaFactory != null;\n \tassert _loggerHelper != null;\n \t\n try {\n Schema schema = _schemaFactory.newSchema(new File(xsdFilePath));\n Validator validator = schema.newValidator();\n validator.validate(new StreamSource(new File(xmlFilePath)));\n } catch (IOException | SAXException e) {\n \t_loggerHelper.logError(e.getMessage());\n return false;\n }\n return true;\n }",
"public void saveData(){\n try{\n DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder documentBuilder = documentBuilderFactory.newDocumentBuilder();\n Document document = documentBuilder.newDocument();\n\n Element rootElement = document.createElement(\"departments\");\n document.appendChild(rootElement);\n for (Department department : entities){\n Element dep = document.createElement(\"department\");\n rootElement.appendChild(dep);\n\n dep.setAttribute(\"id\", department.getId().toString());\n dep.appendChild(createElementFromDepartment(\n document, \"name\", department.getName()));\n dep.appendChild(createElementFromDepartment(\n document, \"numberOfPlaces\", department.getNumberOfPlaces().toString()));\n }\n\n DOMSource domSource = new DOMSource(document);\n StreamResult streamResult = new StreamResult(fileName);\n TransformerFactory transformerFactory = TransformerFactory.newInstance();\n Transformer transformer = transformerFactory.newTransformer();\n transformer.transform(domSource, streamResult);\n\n } catch (ParserConfigurationException | TransformerException e) {\n e.printStackTrace();\n }\n }",
"private void convertTablesToXTCE(List<TableInfo> tableDefs,\n boolean includeBuildInformation,\n EndianType endianess,\n boolean isHeaderBigEndian,\n String version,\n String validationStatus,\n String classification1,\n String classification2,\n String classification3) throws CCDDException\n {\n this.endianess = endianess;\n this.isHeaderBigEndian = isHeaderBigEndian;\n\n // Store the attributes\n versionAttr = version;\n validationStatusAttr = validationStatus;\n classification1Attr = classification1;\n classification2Attr = classification2;\n classification3Attr = classification3;\n\n // Create the root space system\n rootSystem = addSpaceSystem(null,\n cleanSystemPath(dbControl.getProjectName()),\n dbControl.getDatabaseDescription(dbControl.getDatabaseName()),\n dbControl.getProjectName(),\n classification1Attr,\n validationStatusAttr,\n versionAttr);\n\n // Check if the build information is to be output\n if (includeBuildInformation)\n {\n // Set the project's build information\n AuthorSet author = factory.createHeaderTypeAuthorSet();\n author.getAuthor().add(dbControl.getUser());\n rootSystem.getHeader().setAuthorSet(author);\n NoteSet note = factory.createHeaderTypeNoteSet();\n note.getNote().add(\"Created: \" + new Date().toString());\n note.getNote().add(\"CCDD Version: \" + ccddMain.getCCDDVersionInformation());\n note.getNote().add(\"Date: \" + new Date().toString());\n note.getNote().add(\"Project: \" + dbControl.getProjectName());\n note.getNote().add(\"Host: \" + dbControl.getServer());\n note.getNote().add(\"Endianess: \" + (endianess == EndianType.BIG_ENDIAN ? \"big\" : \"little\"));\n rootSystem.getHeader().setNoteSet(note);\n }\n\n // Get the names of the tables representing the CCSDS telemetry and command headers\n tlmHeaderTable = fieldHandler.getFieldValue(CcddFieldHandler.getFieldProjectName(),\n DefaultInputType.XML_TLM_HDR);\n cmdHeaderTable = fieldHandler.getFieldValue(CcddFieldHandler.getFieldProjectName(),\n DefaultInputType.XML_CMD_HDR);\n\n // Get the telemetry and command header argument column names for the application ID and\n // the command function code. These are stored as project-level data fields\n applicationIDName = fieldHandler.getFieldValue(CcddFieldHandler.getFieldProjectName(),\n DefaultInputType.XML_APP_ID);\n cmdFuncCodeName = fieldHandler.getFieldValue(CcddFieldHandler.getFieldProjectName(),\n DefaultInputType.XML_FUNC_CODE);\n\n // Check if the application ID argument column name isn't set in the project\n if (applicationIDName == null)\n {\n // Use the default application ID argument column name\n applicationIDName = DefaultHeaderVariableName.APP_ID.getDefaultVariableName();\n }\n\n // Check if the command function code argument column name isn't set in the project\n if (cmdFuncCodeName == null)\n {\n // Use the default command function code argument column name\n cmdFuncCodeName = DefaultHeaderVariableName.FUNC_CODE.getDefaultVariableName();\n }\n\n // The telemetry and command header table names, and application ID and command function\n // code variable names are stored as ancillary data which is used if the export file is\n // imported into CCDD\n AncillaryDataSet ancillarySet = factory.createDescriptionTypeAncillaryDataSet();\n\n // Check if the telemetry header table name is defined\n if (tlmHeaderTable != null && !tlmHeaderTable.isEmpty())\n {\n // Store the telemetry header table name\n AncillaryData tlmHdrTblValue = factory.createDescriptionTypeAncillaryDataSetAncillaryData();\n tlmHdrTblValue.setName(DefaultInputType.XML_TLM_HDR.getInputName());\n tlmHdrTblValue.setValue(tlmHeaderTable);\n ancillarySet.getAncillaryData().add(tlmHdrTblValue);\n }\n\n // Check if the command header table name is defined\n if (cmdHeaderTable != null && !cmdHeaderTable.isEmpty())\n {\n // Store the command header table name\n AncillaryData cmdHdrTblValue = factory.createDescriptionTypeAncillaryDataSetAncillaryData();\n cmdHdrTblValue.setName(DefaultInputType.XML_CMD_HDR.getInputName());\n cmdHdrTblValue.setValue(cmdHeaderTable);\n ancillarySet.getAncillaryData().add(cmdHdrTblValue);\n }\n\n // Store the application ID variable name\n AncillaryData appIDNameValue = factory.createDescriptionTypeAncillaryDataSetAncillaryData();\n appIDNameValue.setName(DefaultInputType.XML_APP_ID.getInputName());\n appIDNameValue.setValue(applicationIDName);\n ancillarySet.getAncillaryData().add(appIDNameValue);\n\n // Store the command function code variable name\n AncillaryData cmdCodeNameValue = factory.createDescriptionTypeAncillaryDataSetAncillaryData();\n cmdCodeNameValue.setName(DefaultInputType.XML_FUNC_CODE.getInputName());\n cmdCodeNameValue.setValue(cmdFuncCodeName);\n ancillarySet.getAncillaryData().add(cmdCodeNameValue);\n project.getValue().setAncillaryDataSet(ancillarySet);\n\n // Add the project's space systems, parameters, and commands\n buildSpaceSystems(tableDefs);\n }",
"private static void staxReader(File file) throws XMLStreamException, FileNotFoundException, FactoryConfigurationError, IOException {\n\n FileInputStream fis = new FileInputStream(file);\n Page[] ns0pages = StaxPageParser.pagesFromFile(fis);\n\n// reporter(ns0pages);\n }",
"private void loadGeneratedSchema(SchemaDefinition sd) throws ResultException, DmcValueException, DmcNameClashException {\n \t\n \tfor(String schemaName : sd.dependsOnSchemaClasses.keySet()){\n \t\tString schemaClassName = sd.dependsOnSchemaClasses.get(schemaName);\n \t\t\n\t\t\tSchemaDefinition depSchema = isSchema(schemaName);\n\t\t\t\n\t\t\tif (depSchema == null){\n\t\t\t\tClass<?> schemaClass = null;\n\t\t\t\t\n try{\n \tschemaClass = Class.forName(schemaClassName);\n }\n catch(Exception e){\n \tResultException ex = new ResultException();\n \tex.result.addResult(Result.FATAL,\"Couldn't load generated schema class: \" + schemaClassName);\n ex.result.lastResult().moreMessages(e.getMessage());\n ex.result.lastResult().moreMessages(DebugInfo.extractTheStack(e));\n throw(ex);\n }\n\n try{\n \tdepSchema = (SchemaDefinition) schemaClass.newInstance();\n }\n catch(Exception e){\n \tResultException ex = new ResultException();\n \tex.result.addResult(Result.FATAL,\"Couldn't instantiate Java class: \" + schemaClassName);\n \tex.result.lastResult().moreMessages(\"This may be because the class doesn't have a constructor that takes no arguments.\");\n \tex.result.lastResult().moreMessages(\"Or it may be that the class isn't derived from SchemaDefinition.\");\n \tthrow(ex);\n }\n\n loadGeneratedSchema(depSchema);\n\t\t\t}\n\n \t}\n \t\n \tSchemaDefinition theInstance = sd.getInstance();\n \t\n manageSchemaInternal(theInstance);\n \n resolveReferences(theInstance,this);\n \n \t// Now that everything's resolved, we have some unfinished business to take care of\n \tIterator<AttributeDefinition> adl = sd.getAttributeDefList();\n \tresolveNameTypes(adl);\n }",
"@Test(expected = XMLValidationException.class)\n\tpublic void testValidateAgainstXSDInvalidXML() throws XMLParseException, XMLValidationException {\n\t\tString testXML = \"<Content>\" + \n\t\t\t\t\"\t<InvalidTagName>\" + \n\t\t\t\t\"\t\t<SaveName>TestSaveName</SaveName>\" + \n\t\t\t\t\"\t\t<Seed>TestSeed</Seed>\" + \n\t\t\t\t\"\t\t<DayNumber>42</DayNumber>\" + \n\t\t\t\t\"\t</InvalidTagName>\" + \n\t\t\t\t\"</Content>\";\n\t\t\n\t\t// Convert the testXML to a byte array for the method in test\n\t\tbyte[] xmlBytes = testXML.getBytes();\n\t\t\n\t\t// Call the method in test\n\t\tDocument document = XMLUtils.convertByteArrayToDocument(xmlBytes);\n\t\t\n\t\tPropertyManager.setXSDLocation(\"C:\\\\Users\\\\Daniel\\\\Documents\\\\Uni\\\\TeamProject\\\\GitCopy\\\\TeamProjectVirusGame\\\\Resources\\\\XSD/VirusGameXSD.xsd\");\n\t\t\n\t\t// Call the method in test\n\t\tXSDValidator.validateAgainstXSD(document);\n\t}",
"protected final void verifyWriteDTD()\n throws XMLStreamException\n {\n if (mCheckStructure) {\n if (mState != STATE_PROLOG) {\n throw new XMLStreamException(\"Can not write DOCTYPE declaration (DTD) when not in prolog any more (state \"+mState+\"; start element(s) written)\");\n }\n // 20-Dec-2005, TSa: and that we only output one...\n if (mDtdRootElem != null) {\n throw new XMLStreamException(\"Trying to write multiple DOCTYPE declarations\");\n }\n }\n }",
"public void convert(File inputFile, File outputFile) throws IOException {\n\n setType(inputFile);\n\n BufferedReader reader = null;\n PrintWriter writer = null;\n\n try {\n reader = new BufferedReader(new FileReader(inputFile));\n writer = new PrintWriter(new BufferedWriter(new FileWriter(outputFile)));\n\n String nextLine = null;\n\n // Skip meta data. Note for GCT files this includes the mandatory first line\n while ((nextLine = reader.readLine()).startsWith(\"#\") && (nextLine != null)) {\n writer.println(nextLine);\n }\n\n // This is the first non-meta line\n writer.println(nextLine);\n\n // for TAB and RES files the first row contains the column headings.\n int nCols = 0;\n if (type == FileType.TAB || type == FileType.RES) {\n nCols = nextLine.split(\"\\t\").length;\n }\n\n\n if (type == FileType.GCT) {\n // GCT files. Column headings are 3rd row (read next line)\n nextLine = reader.readLine();\n nCols = nextLine.split(\"\\t\").length;\n writer.println(nextLine);\n } else if (type == FileType.RES) {\n // Res files -- skip lines 2 and 3\n writer.println(reader.readLine());\n writer.println(reader.readLine());\n }\n\n\n // Compute the # of data points\n int columnSkip = 1;\n if (type == FileType.RES) {\n columnSkip = 2;\n nCols++; // <= last call column of a res file is sometimes blank, if not this will get\n }\n nPts = (nCols - dataStartColumn) / columnSkip;\n\n // Now for the data\n while ((nextLine = reader.readLine()) != null) {\n String[] tokens = nextLine.split(\"\\t\");\n\n for (int i = 0; i < dataStartColumn; i++) {\n writer.print(tokens[i] + \"\\t\");\n }\n\n DataRow row = new DataRow(tokens, nextLine);\n for (int i = 0; i < nPts; i++) {\n\n if (Double.isNaN(row.scaledData[i])) {\n writer.print(\"\\t\");\n } else {\n\n writer.print(row.scaledData[i]);\n if (type == FileType.RES) {\n writer.print(\"\\t\" + row.calls[i]);\n }\n if (i < nPts - 1) {\n writer.print(\"\\t\");\n }\n }\n }\n writer.println();\n }\n }\n finally {\n if (reader != null) {\n reader.close();\n }\n if (writer != null) {\n writer.close();\n }\n }\n }",
"public String setXmlSchema(String content) {\n\t\ttry(StringReader reader = new StringReader(content)) {\n\t\t\tDocument doc = null;\n\t\t\ttry {\n\t\t\t\tSAXBuilder sax = new SAXBuilder();\n\t\t\t\tdoc = sax.build(reader);\n\t\t\t} catch (JDOMException | IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tif(doc != null) {\n\t\t\t\tsetXmlSchema(doc);\n\n\t\t\t\ttry(StringWriter stringWriter = new StringWriter()) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tXMLOutputter xmlOutputter = new XMLOutputter(Format.getPrettyFormat());\n\t\t\t\t\t\txmlOutputter.output(doc, stringWriter);\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tstringWriter.flush();\n\t\t\t\t\tString result = stringWriter.toString();\n\t\t\t\t\treturn result;\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"XADLType createXADLType();",
"UdtType createUdtType();",
"public void write_as_xml ( File series_file, Reconstruct r ) {\n try {\n String new_path_name = series_file.getParentFile().getCanonicalPath();\n String ser_file_name = series_file.getName();\n String new_file_name = ser_file_name.substring(0,ser_file_name.length()-4) + file_name.substring(file_name.lastIndexOf(\".\"),file_name.length());\n // At this point, there should be no more exceptions, so change the actual member data for this object\n this.path_name = new_path_name;\n this.file_name = new_file_name;\n priority_println ( 100, \" Writing to Section file \" + this.path_name + \" / \" + this.file_name );\n\n File section_file = new File ( this.path_name + File.separator + this.file_name );\n\n PrintStream sf = new PrintStream ( section_file );\n sf.print ( \"<?xml version=\\\"1.0\\\"?>\\n\" );\n sf.print ( \"<!DOCTYPE Section SYSTEM \\\"section.dtd\\\">\\n\\n\" );\n\n if (this.section_doc != null) {\n Element section_element = this.section_doc.getDocumentElement();\n if ( section_element.getNodeName().equalsIgnoreCase ( \"Section\" ) ) {\n int seca = 0;\n sf.print ( \"<\" + section_element.getNodeName() );\n // Write section attributes in line\n for ( /*int seca=0 */; seca<section_attr_names.length; seca++) {\n sf.print ( \" \" + section_attr_names[seca] + \"=\\\"\" + section_element.getAttribute(section_attr_names[seca]) + \"\\\"\" );\n }\n sf.print ( \">\\n\" );\n\n // Handle the child nodes\n if (section_element.hasChildNodes()) {\n NodeList child_nodes = section_element.getChildNodes();\n for (int cn=0; cn<child_nodes.getLength(); cn++) {\n Node child = child_nodes.item(cn);\n if (child.getNodeName().equalsIgnoreCase ( \"Transform\")) {\n Element transform_element = (Element)child;\n int tfa = 0;\n sf.print ( \"<\" + child.getNodeName() );\n for ( /*int tfa=0 */; tfa<transform_attr_names.length; tfa++) {\n sf.print ( \" \" + transform_attr_names[tfa] + \"=\\\"\" + transform_element.getAttribute(transform_attr_names[tfa]) + \"\\\"\" );\n if (transform_attr_names[tfa].equals(\"dim\") || transform_attr_names[tfa].equals(\"xcoef\")) {\n sf.print ( \"\\n\" );\n }\n }\n sf.print ( \">\\n\" );\n if (transform_element.hasChildNodes()) {\n NodeList transform_child_nodes = transform_element.getChildNodes();\n for (int gcn=0; gcn<transform_child_nodes.getLength(); gcn++) {\n Node grandchild = transform_child_nodes.item(gcn);\n if (grandchild.getNodeName().equalsIgnoreCase ( \"Image\")) {\n Element image_element = (Element)grandchild;\n int ia = 0;\n sf.print ( \"<\" + image_element.getNodeName() );\n for ( /*int ia=0 */; ia<image_attr_names.length; ia++) {\n sf.print ( \" \" + image_attr_names[ia] + \"=\\\"\" + image_element.getAttribute(image_attr_names[ia]) + \"\\\"\" );\n if (image_attr_names[ia].equals(\"blue\")) {\n sf.print ( \"\\n\" );\n }\n }\n sf.print ( \" />\\n\" );\n } else if (grandchild.getNodeName().equalsIgnoreCase ( \"Contour\")) {\n Element contour_element = (Element)grandchild;\n int ca = 0;\n sf.print ( \"<\" + contour_element.getNodeName() );\n for ( /*int ca=0 */; ca<contour_attr_names.length; ca++) {\n // System.out.println ( \"Writing \" + contour_attr_names[ca] );\n if (contour_attr_names[ca].equals(\"points\")) {\n // Check to see if this contour element has been modified\n boolean modified = false; // This isn't being used, but should be!!\n ContourClass matching_contour = null;\n for (int cci=0; cci<contours.size(); cci++) {\n ContourClass contour = contours.get(cci);\n if (contour.contour_element == contour_element) {\n matching_contour = contour;\n break;\n }\n }\n if (matching_contour == null) {\n // Write out the data from the original XML\n sf.print ( \" \" + contour_attr_names[ca] + \"=\\\"\" + format_comma_sep(contour_element.getAttribute(contour_attr_names[ca]),\"\\t\", true) + \"\\\"\" );\n } else {\n // Write out the data from the stroke points\n sf.print ( \" \" + contour_attr_names[ca] + \"=\\\"\" + format_comma_sep(matching_contour.stroke_points,\"\\t\", true) + \"\\\"\" );\n }\n } else if (contour_attr_names[ca].equals(\"handles\")) {\n if (r.export_handles) {\n String handles_str = contour_element.getAttribute(contour_attr_names[ca]);\n if (handles_str != null) {\n handles_str = handles_str.trim();\n if (handles_str.length() > 0) {\n // System.out.println ( \"Writing a handles attribute = \" + contour_element.getAttribute(contour_attr_names[ca]) );\n sf.print ( \" \" + contour_attr_names[ca] + \"=\\\"\" + format_comma_sep(contour_element.getAttribute(contour_attr_names[ca]),\"\\t\", false) + \"\\\"\\n\" );\n }\n }\n }\n } else if (contour_attr_names[ca].equals(\"type\")) {\n if (r.export_handles) {\n sf.print ( \" \" + contour_attr_names[ca] + \"=\\\"\" + contour_element.getAttribute(contour_attr_names[ca]) + \"\\\"\" );\n } else {\n // Don't output the \"type\" attribute if not exporting handles (this makes the traces non-bezier)\n }\n } else {\n sf.print ( \" \" + contour_attr_names[ca] + \"=\\\"\" + contour_element.getAttribute(contour_attr_names[ca]) + \"\\\"\" );\n if (contour_attr_names[ca].equals(\"mode\")) {\n sf.print ( \"\\n\" );\n }\n }\n }\n sf.print ( \"/>\\n\" );\n }\n }\n }\n sf.print ( \"</\" + child.getNodeName() + \">\\n\\n\" );\n }\n }\n }\n\n // Also write out any new contours created by drawing\n\n for (int i=0; i<contours.size(); i++) {\n ContourClass contour = contours.get(i);\n ArrayList<double[]> s = contour.stroke_points;\n ArrayList<double[][]> h = contour.handle_points;\n if (s.size() > 0) {\n if (contour.modified) {\n if (contour.contour_name == null) {\n contour.contour_name = \"RGB_\";\n if (contour.r > 0.5) { contour.contour_name += \"1\"; } else { contour.contour_name += \"0\"; }\n if (contour.g > 0.5) { contour.contour_name += \"1\"; } else { contour.contour_name += \"0\"; }\n if (contour.b > 0.5) { contour.contour_name += \"1\"; } else { contour.contour_name += \"0\"; }\n }\n sf.print ( \"<Transform dim=\\\"0\\\"\\n\" );\n sf.print ( \" xcoef=\\\" 0 1 0 0 0 0\\\"\\n\" );\n sf.print ( \" ycoef=\\\" 0 0 1 0 0 0\\\">\\n\" );\n String contour_color = \"\\\"\" + contour.r + \" \" + contour.g + \" \" + contour.b + \"\\\"\";\n sf.print ( \"<Contour name=\\\"\" + contour.contour_name + \"\\\" \" );\n if (contour.is_bezier) {\n sf.print ( \"type=\\\"bezier\\\" \" );\n } else {\n // sf.print ( \"type=\\\"line\\\" \" );\n }\n sf.print ( \"hidden=\\\"false\\\" closed=\\\"true\\\" simplified=\\\"false\\\" border=\" + contour_color + \" fill=\" + contour_color + \" mode=\\\"13\\\"\\n\" );\n\n if (contour.is_bezier) {\n if (h.size() > 0) {\n sf.print ( \" handles=\\\"\" );\n System.out.println ( \"Saving handles inside Section.write_as_xml\" );\n for (int j=h.size()-1; j>=0; j+=-1) {\n // for (int j=0; j<h.size(); j++) {\n double p[][] = h.get(j);\n if (j != 0) {\n sf.print ( \" \" );\n }\n System.out.println ( \" \" + p[0][0] + \" \" + p[0][1] + \" \" + p[1][0] + \" \" + p[1][1] );\n sf.print ( p[0][0] + \" \" + p[0][1] + \" \" + p[1][0] + \" \" + p[1][1] + \",\\n\" );\n }\n sf.print ( \" \\\"\\n\" );\n }\n }\n\n sf.print ( \" points=\\\"\" );\n for (int j=s.size()-1; j>=0; j+=-1) {\n double p[] = s.get(j);\n if (j != s.size()-1) {\n sf.print ( \" \" );\n }\n sf.print ( p[0] + \" \" + p[1] + \",\\n\" );\n }\n sf.print ( \" \\\"/>\\n\" );\n sf.print ( \"</Transform>\\n\\n\" );\n }\n }\n }\n\n sf.print ( \"</\" + section_element.getNodeName() + \">\" );\n }\n }\n sf.close();\n\n } catch (Exception e) {\n }\n }",
"public void export(String URN) {\n try {\n DocumentBuilderFactory fabrique = DocumentBuilderFactory.newInstance();\n fabrique.setValidating(true);\n DocumentBuilder constructeur = fabrique.newDocumentBuilder();\n Document document = constructeur.newDocument();\n \n // Propriétés du DOM\n document.setXmlVersion(\"1.0\");\n document.setXmlStandalone(true);\n \n // Création de l'arborescence du DOM\n Element racine = document.createElement(\"monde\");\n racine.setAttribute(\"longueur\",Integer.toString(getLongueur()));\n racine.setAttribute(\"largeur\",Integer.toString(getLargeur()));\n document.appendChild(racine);\n for (Composant composant:composants) {\n racine.appendChild(composant.toElement(document)) ;\n }\n \n // Création de la source DOM\n Source source = new DOMSource(document);\n \n // Création du fichier de sortie\n File file = new File(URN);\n Result resultat = new StreamResult(URN);\n \n // Configuration du transformer\n TransformerFactory tf = TransformerFactory.newInstance();\n Transformer transformer = tf.newTransformer();\n transformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\n transformer.setOutputProperty(OutputKeys.ENCODING, \"UTF-8\");\n transformer.setOutputProperty(OutputKeys.DOCTYPE_SYSTEM,\"http://womby.zapto.org/monde.dtd\");\n \n // Transformation\n transformer.transform(source, resultat);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"@Override\n\tpublic Definitions convertToXmlBean(String xmlstring) {\n\t\tfinal InputStream stream = string2InputStream(xmlstring);\n\t\ttry {\n\t\t\tfinal JAXBContext jaxbContext = JAXBContext.newInstance(Definitions.class);\n\n\t\t\tfinal Unmarshaller jaxbUnmarshaller = jaxbContext.createUnmarshaller();\n\t\t\tjaxbUnmarshaller.setSchema(getToscaSchema());\n\n\t\t\treturn (Definitions) jaxbUnmarshaller.unmarshal(stream);\n\t\t} catch (final JAXBException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}",
"public void exportFxwl(File dir) {\n File f = new File(dir,getName() + \".fxwl\");\n try {\n X.toXML(this, new BufferedWriter(new FileWriter(f)));\n } catch (IOException ex) {\n LOGGER.error(\"Unable to export component launcher for {} into {}\", getName(),f);\n }\n }",
"public abstract D convertToDto(T entity);",
"private String writeValidXMLFile() throws java.io.IOException {\n String sFileName = \"\\\\testfile1.xml\";\n FileWriter oOut = new FileWriter(sFileName);\n\n oOut.write(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?>\");\n oOut.write(\"<paramFile fileCode=\\\"06010101\\\">\");\n oOut.write(\"<plot>\");\n oOut.write(\"<timesteps>3</timesteps>\");\n oOut.write(\"<yearsPerTimestep>1</yearsPerTimestep>\");\n oOut.write(\"<randomSeed>1</randomSeed>\");\n oOut.write(\"<plot_lenX>200.0</plot_lenX>\");\n oOut.write(\"<plot_lenY>200.0</plot_lenY>\");\n oOut.write(\"<plot_precip_mm_yr>1150.645781</plot_precip_mm_yr>\");\n oOut.write(\"<plot_temp_C>12.88171785</plot_temp_C>\");\n oOut.write(\"<plot_latitude>55.37</plot_latitude>\");\n oOut.write(\"</plot>\");\n oOut.write(\"<trees>\");\n oOut.write(\"<tr_speciesList>\");\n oOut.write(\"<tr_species speciesName=\\\"Species_1\\\" />\");\n oOut.write(\"<tr_species speciesName=\\\"Species_2\\\" />\");\n oOut.write(\"<tr_species speciesName=\\\"Species_3\\\" />\");\n oOut.write(\"<tr_species speciesName=\\\"Species_4\\\" />\");\n oOut.write(\"<tr_species speciesName=\\\"Species_5\\\" />\");\n oOut.write(\"</tr_speciesList>\");\n oOut.write(\"<tr_seedDiam10Cm>0.1</tr_seedDiam10Cm>\");\n oOut.write(\"<tr_minAdultDBH>\");\n oOut.write(\"<tr_madVal species=\\\"Species_1\\\">10.0</tr_madVal>\");\n oOut.write(\"<tr_madVal species=\\\"Species_2\\\">10.0</tr_madVal>\");\n oOut.write(\"<tr_madVal species=\\\"Species_3\\\">10.0</tr_madVal>\");\n oOut.write(\"<tr_madVal species=\\\"Species_4\\\">10.0</tr_madVal>\");\n oOut.write(\"<tr_madVal species=\\\"Species_5\\\">10.0</tr_madVal>\");\n oOut.write(\"</tr_minAdultDBH>\");\n oOut.write(\"<tr_maxSeedlingHeight>\");\n oOut.write(\"<tr_mshVal species=\\\"Species_1\\\">1.35</tr_mshVal>\");\n oOut.write(\"<tr_mshVal species=\\\"Species_2\\\">1.35</tr_mshVal>\");\n oOut.write(\"<tr_mshVal species=\\\"Species_3\\\">1.35</tr_mshVal>\");\n oOut.write(\"<tr_mshVal species=\\\"Species_4\\\">1.35</tr_mshVal>\");\n oOut.write(\"<tr_mshVal species=\\\"Species_5\\\">1.35</tr_mshVal>\");\n oOut.write(\"</tr_maxSeedlingHeight>\");\n oOut.write(\"<tr_sizeClasses>\");\n oOut.write(\"<tr_sizeClass sizeKey=\\\"s1.0\\\"/>\");\n oOut.write(\"<tr_sizeClass sizeKey=\\\"s10.0\\\"/>\");\n oOut.write(\"<tr_sizeClass sizeKey=\\\"s20.0\\\"/>\");\n oOut.write(\"<tr_sizeClass sizeKey=\\\"s30.0\\\"/>\");\n oOut.write(\"<tr_sizeClass sizeKey=\\\"s40.0\\\"/>\");\n oOut.write(\"<tr_sizeClass sizeKey=\\\"s50.0\\\"/>\");\n oOut.write(\"</tr_sizeClasses>\");\n oOut.write(\"<tr_initialDensities>\");\n oOut.write(\"<tr_idVals whatSpecies=\\\"Species_1\\\">\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s20.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s30.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s40.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s50.0\\\">250</tr_initialDensity>\");\n oOut.write(\"</tr_idVals>\");\n oOut.write(\"<tr_idVals whatSpecies=\\\"Species_1\\\">\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s20.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s30.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s40.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s50.0\\\">250</tr_initialDensity>\");\n oOut.write(\"</tr_idVals>\");\n oOut.write(\"<tr_idVals whatSpecies=\\\"Species_2\\\">\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s20.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s30.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s40.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s50.0\\\">250</tr_initialDensity>\");\n oOut.write(\"</tr_idVals>\");\n oOut.write(\"<tr_idVals whatSpecies=\\\"Species_3\\\">\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s20.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s30.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s40.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s50.0\\\">250</tr_initialDensity>\");\n oOut.write(\"</tr_idVals>\");\n oOut.write(\"<tr_idVals whatSpecies=\\\"Species_4\\\">\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s20.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s30.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s40.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s50.0\\\">250</tr_initialDensity>\");\n oOut.write(\"</tr_idVals>\");\n oOut.write(\"<tr_idVals whatSpecies=\\\"Species_5\\\">\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s20.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s30.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s40.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s50.0\\\">250</tr_initialDensity>\");\n oOut.write(\"</tr_idVals>\");\n oOut.write(\"</tr_initialDensities>\");\n oOut.write(\"</trees>\");\n oOut.write(\"<allometry>\");\n oOut.write(\"<tr_canopyHeight>\");\n oOut.write(\"<tr_chVal species=\\\"Species_1\\\">39.48</tr_chVal>\");\n oOut.write(\"<tr_chVal species=\\\"Species_2\\\">39.48</tr_chVal>\");\n oOut.write(\"<tr_chVal species=\\\"Species_3\\\">39.48</tr_chVal>\");\n oOut.write(\"<tr_chVal species=\\\"Species_4\\\">39.48</tr_chVal>\");\n oOut.write(\"<tr_chVal species=\\\"Species_5\\\">39.48</tr_chVal>\");\n oOut.write(\"</tr_canopyHeight>\");\n oOut.write(\"<tr_stdAsympCrownRad>\");\n oOut.write(\"<tr_sacrVal species=\\\"Species_1\\\">0.0549</tr_sacrVal>\");\n oOut.write(\"<tr_sacrVal species=\\\"Species_2\\\">0.0549</tr_sacrVal>\");\n oOut.write(\"<tr_sacrVal species=\\\"Species_3\\\">0.0549</tr_sacrVal>\");\n oOut.write(\"<tr_sacrVal species=\\\"Species_4\\\">0.0549</tr_sacrVal>\");\n oOut.write(\"<tr_sacrVal species=\\\"Species_5\\\">0.0549</tr_sacrVal>\");\n oOut.write(\"</tr_stdAsympCrownRad>\");\n oOut.write(\"<tr_stdCrownRadExp>\");\n oOut.write(\"<tr_screVal species=\\\"Species_1\\\">1.0</tr_screVal>\");\n oOut.write(\"<tr_screVal species=\\\"Species_2\\\">1.0</tr_screVal>\");\n oOut.write(\"<tr_screVal species=\\\"Species_3\\\">1.0</tr_screVal>\");\n oOut.write(\"<tr_screVal species=\\\"Species_4\\\">1.0</tr_screVal>\");\n oOut.write(\"<tr_screVal species=\\\"Species_5\\\">1.0</tr_screVal>\");\n oOut.write(\"</tr_stdCrownRadExp>\");\n oOut.write(\"<tr_conversionDiam10ToDBH>\");\n oOut.write(\"<tr_cdtdVal species=\\\"Species_1\\\">0.8008</tr_cdtdVal>\");\n oOut.write(\"<tr_cdtdVal species=\\\"Species_2\\\">0.8008</tr_cdtdVal>\");\n oOut.write(\"<tr_cdtdVal species=\\\"Species_3\\\">0.8008</tr_cdtdVal>\");\n oOut.write(\"<tr_cdtdVal species=\\\"Species_4\\\">0.8008</tr_cdtdVal>\");\n oOut.write(\"<tr_cdtdVal species=\\\"Species_5\\\">0.8008</tr_cdtdVal>\");\n oOut.write(\"</tr_conversionDiam10ToDBH>\");\n oOut.write(\"<tr_interceptDiam10ToDBH>\");\n oOut.write(\"<tr_idtdVal species=\\\"Species_1\\\">0</tr_idtdVal>\");\n oOut.write(\"<tr_idtdVal species=\\\"Species_2\\\">0</tr_idtdVal>\");\n oOut.write(\"<tr_idtdVal species=\\\"Species_3\\\">0</tr_idtdVal>\");\n oOut.write(\"<tr_idtdVal species=\\\"Species_4\\\">0</tr_idtdVal>\");\n oOut.write(\"<tr_idtdVal species=\\\"Species_5\\\">0</tr_idtdVal>\");\n oOut.write(\"</tr_interceptDiam10ToDBH>\");\n oOut.write(\"<tr_stdAsympCrownHt>\");\n oOut.write(\"<tr_sachVal species=\\\"Species_1\\\">0.389</tr_sachVal>\");\n oOut.write(\"<tr_sachVal species=\\\"Species_2\\\">0.389</tr_sachVal>\");\n oOut.write(\"<tr_sachVal species=\\\"Species_3\\\">0.389</tr_sachVal>\");\n oOut.write(\"<tr_sachVal species=\\\"Species_4\\\">0.389</tr_sachVal>\");\n oOut.write(\"<tr_sachVal species=\\\"Species_5\\\">0.389</tr_sachVal>\");\n oOut.write(\"</tr_stdAsympCrownHt>\");\n oOut.write(\"<tr_stdCrownHtExp>\");\n oOut.write(\"<tr_scheVal species=\\\"Species_1\\\">1.0</tr_scheVal>\");\n oOut.write(\"<tr_scheVal species=\\\"Species_2\\\">1.0</tr_scheVal>\");\n oOut.write(\"<tr_scheVal species=\\\"Species_3\\\">1.0</tr_scheVal>\");\n oOut.write(\"<tr_scheVal species=\\\"Species_4\\\">1.0</tr_scheVal>\");\n oOut.write(\"<tr_scheVal species=\\\"Species_5\\\">1.0</tr_scheVal>\");\n oOut.write(\"</tr_stdCrownHtExp>\");\n oOut.write(\"<tr_slopeOfHeight-Diam10>\");\n oOut.write(\"<tr_sohdVal species=\\\"Species_1\\\">0.03418</tr_sohdVal>\");\n oOut.write(\"<tr_sohdVal species=\\\"Species_2\\\">0.03418</tr_sohdVal>\");\n oOut.write(\"<tr_sohdVal species=\\\"Species_3\\\">0.03418</tr_sohdVal>\");\n oOut.write(\"<tr_sohdVal species=\\\"Species_4\\\">0.03418</tr_sohdVal>\");\n oOut.write(\"<tr_sohdVal species=\\\"Species_5\\\">0.03418</tr_sohdVal>\");\n oOut.write(\"</tr_slopeOfHeight-Diam10>\");\n oOut.write(\"<tr_slopeOfAsymHeight>\");\n oOut.write(\"<tr_soahVal species=\\\"Species_1\\\">0.0299</tr_soahVal>\");\n oOut.write(\"<tr_soahVal species=\\\"Species_2\\\">0.0299</tr_soahVal>\");\n oOut.write(\"<tr_soahVal species=\\\"Species_3\\\">0.0299</tr_soahVal>\");\n oOut.write(\"<tr_soahVal species=\\\"Species_4\\\">0.0299</tr_soahVal>\");\n oOut.write(\"<tr_soahVal species=\\\"Species_5\\\">0.0299</tr_soahVal>\");\n oOut.write(\"</tr_slopeOfAsymHeight>\");\n oOut.write(\"<tr_whatSeedlingHeightDiam>\");\n oOut.write(\"<tr_wsehdVal species=\\\"Species_1\\\">0</tr_wsehdVal>\");\n oOut.write(\"<tr_wsehdVal species=\\\"Species_2\\\">0</tr_wsehdVal>\");\n oOut.write(\"<tr_wsehdVal species=\\\"Species_3\\\">0</tr_wsehdVal>\");\n oOut.write(\"<tr_wsehdVal species=\\\"Species_4\\\">0</tr_wsehdVal>\");\n oOut.write(\"<tr_wsehdVal species=\\\"Species_5\\\">0</tr_wsehdVal>\");\n oOut.write(\"</tr_whatSeedlingHeightDiam>\");\n oOut.write(\"<tr_whatSaplingHeightDiam>\");\n oOut.write(\"<tr_wsahdVal species=\\\"Species_1\\\">0</tr_wsahdVal>\");\n oOut.write(\"<tr_wsahdVal species=\\\"Species_2\\\">0</tr_wsahdVal>\");\n oOut.write(\"<tr_wsahdVal species=\\\"Species_3\\\">0</tr_wsahdVal>\");\n oOut.write(\"<tr_wsahdVal species=\\\"Species_4\\\">0</tr_wsahdVal>\");\n oOut.write(\"<tr_wsahdVal species=\\\"Species_5\\\">0</tr_wsahdVal>\");\n oOut.write(\"</tr_whatSaplingHeightDiam>\");\n oOut.write(\"<tr_whatAdultHeightDiam>\");\n oOut.write(\"<tr_wahdVal species=\\\"Species_1\\\">0</tr_wahdVal>\");\n oOut.write(\"<tr_wahdVal species=\\\"Species_2\\\">0</tr_wahdVal>\");\n oOut.write(\"<tr_wahdVal species=\\\"Species_3\\\">0</tr_wahdVal>\");\n oOut.write(\"<tr_wahdVal species=\\\"Species_4\\\">0</tr_wahdVal>\");\n oOut.write(\"<tr_wahdVal species=\\\"Species_5\\\">0</tr_wahdVal>\");\n oOut.write(\"</tr_whatAdultHeightDiam>\");\n oOut.write(\"<tr_whatAdultCrownRadDiam>\");\n oOut.write(\"<tr_wacrdVal species=\\\"Species_1\\\">0</tr_wacrdVal>\");\n oOut.write(\"<tr_wacrdVal species=\\\"Species_2\\\">0</tr_wacrdVal>\");\n oOut.write(\"<tr_wacrdVal species=\\\"Species_3\\\">0</tr_wacrdVal>\");\n oOut.write(\"<tr_wacrdVal species=\\\"Species_4\\\">0</tr_wacrdVal>\");\n oOut.write(\"<tr_wacrdVal species=\\\"Species_5\\\">0</tr_wacrdVal>\");\n oOut.write(\"</tr_whatAdultCrownRadDiam>\");\n oOut.write(\"<tr_whatAdultCrownHeightHeight>\");\n oOut.write(\"<tr_wachhVal species=\\\"Species_1\\\">0</tr_wachhVal>\");\n oOut.write(\"<tr_wachhVal species=\\\"Species_2\\\">0</tr_wachhVal>\");\n oOut.write(\"<tr_wachhVal species=\\\"Species_3\\\">0</tr_wachhVal>\");\n oOut.write(\"<tr_wachhVal species=\\\"Species_4\\\">0</tr_wachhVal>\");\n oOut.write(\"<tr_wachhVal species=\\\"Species_5\\\">0</tr_wachhVal>\");\n oOut.write(\"</tr_whatAdultCrownHeightHeight>\");\n oOut.write(\"<tr_whatSaplingCrownRadDiam>\");\n oOut.write(\"<tr_wscrdVal species=\\\"Species_1\\\">0</tr_wscrdVal>\");\n oOut.write(\"<tr_wscrdVal species=\\\"Species_2\\\">0</tr_wscrdVal>\");\n oOut.write(\"<tr_wscrdVal species=\\\"Species_3\\\">0</tr_wscrdVal>\");\n oOut.write(\"<tr_wscrdVal species=\\\"Species_4\\\">0</tr_wscrdVal>\");\n oOut.write(\"<tr_wscrdVal species=\\\"Species_5\\\">0</tr_wscrdVal>\");\n oOut.write(\"</tr_whatSaplingCrownRadDiam>\");\n oOut.write(\"<tr_whatSaplingCrownHeightHeight>\");\n oOut.write(\"<tr_wschhVal species=\\\"Species_1\\\">0</tr_wschhVal>\");\n oOut.write(\"<tr_wschhVal species=\\\"Species_2\\\">0</tr_wschhVal>\");\n oOut.write(\"<tr_wschhVal species=\\\"Species_3\\\">0</tr_wschhVal>\");\n oOut.write(\"<tr_wschhVal species=\\\"Species_4\\\">0</tr_wschhVal>\");\n oOut.write(\"<tr_wschhVal species=\\\"Species_5\\\">0</tr_wschhVal>\");\n oOut.write(\"</tr_whatSaplingCrownHeightHeight>\");\n oOut.write(\"</allometry>\");\n oOut.write(\"<behaviorList>\");\n oOut.write(\"<behavior>\");\n oOut.write(\"<behaviorName>QualityVigorClassifier</behaviorName>\");\n oOut.write(\"<version>1</version>\");\n oOut.write(\"<listPosition>1</listPosition>\");\n oOut.write(\"<applyTo species=\\\"Species_2\\\" type=\\\"Adult\\\"/>\");\n oOut.write(\"<applyTo species=\\\"Species_3\\\" type=\\\"Adult\\\"/>\");\n oOut.write(\"<applyTo species=\\\"Species_4\\\" type=\\\"Adult\\\"/>\");\n oOut.write(\"<applyTo species=\\\"Species_5\\\" type=\\\"Adult\\\"/>\");\n oOut.write(\"</behavior>\");\n oOut.write(\"</behaviorList>\");\n oOut.write(\"<QualityVigorClassifier1>\");\n oOut.write(\"<ma_classifierInitialConditions>\");\n oOut.write(\"<ma_classifierSizeClass>\");\n oOut.write(\"<ma_classifierBeginDBH>10</ma_classifierBeginDBH>\");\n oOut.write(\"<ma_classifierEndDBH>20</ma_classifierEndDBH>\");\n oOut.write(\"<ma_classifierProbVigorous>\");\n oOut.write(\"<ma_cpvVal species=\\\"Species_2\\\">0.78</ma_cpvVal>\");\n oOut.write(\"<ma_cpvVal species=\\\"Species_3\\\">0.88</ma_cpvVal>\");\n oOut.write(\"<ma_cpvVal species=\\\"Species_4\\\">0</ma_cpvVal>\");\n oOut.write(\"<ma_cpvVal species=\\\"Species_5\\\">0.61</ma_cpvVal>\");\n oOut.write(\"</ma_classifierProbVigorous>\");\n oOut.write(\"<ma_classifierProbSawlog>\");\n oOut.write(\"<ma_cpsVal species=\\\"Species_2\\\">0.33</ma_cpsVal>\");\n oOut.write(\"<ma_cpsVal species=\\\"Species_3\\\">0.64</ma_cpsVal>\");\n oOut.write(\"<ma_cpsVal species=\\\"Species_4\\\">1</ma_cpsVal>\");\n oOut.write(\"<ma_cpsVal species=\\\"Species_5\\\">0.55</ma_cpsVal>\");\n oOut.write(\"</ma_classifierProbSawlog>\");\n oOut.write(\"</ma_classifierSizeClass>\");\n oOut.write(\"<ma_classifierSizeClass>\");\n oOut.write(\"<ma_classifierBeginDBH>20</ma_classifierBeginDBH>\");\n oOut.write(\"<ma_classifierEndDBH>30</ma_classifierEndDBH>\");\n oOut.write(\"<ma_classifierProbVigorous>\");\n oOut.write(\"<ma_cpvVal species=\\\"Species_2\\\">0.33</ma_cpvVal>\");\n oOut.write(\"<ma_cpvVal species=\\\"Species_3\\\">0.81</ma_cpvVal>\");\n oOut.write(\"<ma_cpvVal species=\\\"Species_4\\\">0.64</ma_cpvVal>\");\n oOut.write(\"<ma_cpvVal species=\\\"Species_5\\\">0.32</ma_cpvVal>\");\n oOut.write(\"</ma_classifierProbVigorous>\");\n oOut.write(\"<ma_classifierProbSawlog>\");\n oOut.write(\"<ma_cpsVal species=\\\"Species_2\\\">0.32</ma_cpsVal>\");\n oOut.write(\"<ma_cpsVal species=\\\"Species_3\\\">0.69</ma_cpsVal>\");\n oOut.write(\"<ma_cpsVal species=\\\"Species_4\\\">0.33</ma_cpsVal>\");\n oOut.write(\"<ma_cpsVal species=\\\"Species_5\\\">0.58</ma_cpsVal>\");\n oOut.write(\"</ma_classifierProbSawlog>\");\n oOut.write(\"</ma_classifierSizeClass>\");\n oOut.write(\"<ma_classifierSizeClass>\");\n oOut.write(\"<ma_classifierBeginDBH>30</ma_classifierBeginDBH>\");\n oOut.write(\"<ma_classifierEndDBH>40</ma_classifierEndDBH>\");\n oOut.write(\"<ma_classifierProbVigorous>\");\n oOut.write(\"<ma_cpvVal species=\\\"Species_2\\\">0.34</ma_cpvVal>\");\n oOut.write(\"<ma_cpvVal species=\\\"Species_3\\\">0.57</ma_cpvVal>\");\n oOut.write(\"<ma_cpvVal species=\\\"Species_4\\\">0.26</ma_cpvVal>\");\n oOut.write(\"<ma_cpvVal species=\\\"Species_5\\\">0.46</ma_cpvVal>\");\n oOut.write(\"</ma_classifierProbVigorous>\");\n oOut.write(\"<ma_classifierProbSawlog>\");\n oOut.write(\"<ma_cpsVal species=\\\"Species_2\\\">0.13</ma_cpsVal>\");\n oOut.write(\"<ma_cpsVal species=\\\"Species_3\\\">0.36</ma_cpsVal>\");\n oOut.write(\"<ma_cpsVal species=\\\"Species_4\\\">0.66</ma_cpsVal>\");\n oOut.write(\"<ma_cpsVal species=\\\"Species_5\\\">0.45</ma_cpsVal>\");\n oOut.write(\"</ma_classifierProbSawlog>\");\n oOut.write(\"</ma_classifierSizeClass>\");\n oOut.write(\"</ma_classifierInitialConditions>\");\n oOut.write(\"<ma_classifierVigBeta0>\");\n oOut.write(\"<ma_cvb0Val species=\\\"Species_2\\\">0.1</ma_cvb0Val>\");\n oOut.write(\"<ma_cvb0Val species=\\\"Species_3\\\">0</ma_cvb0Val>\");\n oOut.write(\"<ma_cvb0Val species=\\\"Species_4\\\">0.3</ma_cvb0Val>\");\n oOut.write(\"<ma_cvb0Val species=\\\"Species_5\\\">0.4</ma_cvb0Val>\");\n oOut.write(\"</ma_classifierVigBeta0>\");\n oOut.write(\"<ma_classifierVigBeta11>\");\n oOut.write(\"<ma_cvb11Val species=\\\"Species_2\\\">0.2</ma_cvb11Val>\");\n oOut.write(\"<ma_cvb11Val species=\\\"Species_3\\\">2.35</ma_cvb11Val>\");\n oOut.write(\"<ma_cvb11Val species=\\\"Species_4\\\">0.1</ma_cvb11Val>\");\n oOut.write(\"<ma_cvb11Val species=\\\"Species_5\\\">2.43</ma_cvb11Val>\");\n oOut.write(\"</ma_classifierVigBeta11>\");\n oOut.write(\"<ma_classifierVigBeta12>\");\n oOut.write(\"<ma_cvb12Val species=\\\"Species_2\\\">-2.3</ma_cvb12Val>\");\n oOut.write(\"<ma_cvb12Val species=\\\"Species_3\\\">1.12</ma_cvb12Val>\");\n oOut.write(\"<ma_cvb12Val species=\\\"Species_4\\\">0.32</ma_cvb12Val>\");\n oOut.write(\"<ma_cvb12Val species=\\\"Species_5\\\">1.3</ma_cvb12Val>\");\n oOut.write(\"</ma_classifierVigBeta12>\");\n oOut.write(\"<ma_classifierVigBeta13>\");\n oOut.write(\"<ma_cvb13Val species=\\\"Species_2\\\">0.13</ma_cvb13Val>\");\n oOut.write(\"<ma_cvb13Val species=\\\"Species_3\\\">1</ma_cvb13Val>\");\n oOut.write(\"<ma_cvb13Val species=\\\"Species_4\\\">-0.2</ma_cvb13Val>\");\n oOut.write(\"<ma_cvb13Val species=\\\"Species_5\\\">1</ma_cvb13Val>\");\n oOut.write(\"</ma_classifierVigBeta13>\");\n oOut.write(\"<ma_classifierVigBeta14>\");\n oOut.write(\"<ma_cvb14Val species=\\\"Species_2\\\">0.9</ma_cvb14Val>\");\n oOut.write(\"<ma_cvb14Val species=\\\"Species_3\\\">0</ma_cvb14Val>\");\n oOut.write(\"<ma_cvb14Val species=\\\"Species_4\\\">-1</ma_cvb14Val>\");\n oOut.write(\"<ma_cvb14Val species=\\\"Species_5\\\">0</ma_cvb14Val>\");\n oOut.write(\"</ma_classifierVigBeta14>\");\n oOut.write(\"<ma_classifierVigBeta15>\");\n oOut.write(\"<ma_cvb15Val species=\\\"Species_2\\\">1</ma_cvb15Val>\");\n oOut.write(\"<ma_cvb15Val species=\\\"Species_3\\\">0.25</ma_cvb15Val>\");\n oOut.write(\"<ma_cvb15Val species=\\\"Species_4\\\">1</ma_cvb15Val>\");\n oOut.write(\"<ma_cvb15Val species=\\\"Species_5\\\">-0.45</ma_cvb15Val>\");\n oOut.write(\"</ma_classifierVigBeta15>\");\n oOut.write(\"<ma_classifierVigBeta16>\");\n oOut.write(\"<ma_cvb16Val species=\\\"Species_2\\\">1</ma_cvb16Val>\");\n oOut.write(\"<ma_cvb16Val species=\\\"Species_3\\\">0.36</ma_cvb16Val>\");\n oOut.write(\"<ma_cvb16Val species=\\\"Species_4\\\">0</ma_cvb16Val>\");\n oOut.write(\"<ma_cvb16Val species=\\\"Species_5\\\">0.46</ma_cvb16Val>\");\n oOut.write(\"</ma_classifierVigBeta16>\");\n oOut.write(\"<ma_classifierVigBeta2>\");\n oOut.write(\"<ma_cvb2Val species=\\\"Species_2\\\">0.01</ma_cvb2Val>\");\n oOut.write(\"<ma_cvb2Val species=\\\"Species_3\\\">0.02</ma_cvb2Val>\");\n oOut.write(\"<ma_cvb2Val species=\\\"Species_4\\\">0.04</ma_cvb2Val>\");\n oOut.write(\"<ma_cvb2Val species=\\\"Species_5\\\">0.1</ma_cvb2Val>\");\n oOut.write(\"</ma_classifierVigBeta2>\");\n oOut.write(\"<ma_classifierVigBeta3>\");\n oOut.write(\"<ma_cvb3Val species=\\\"Species_2\\\">0.001</ma_cvb3Val>\");\n oOut.write(\"<ma_cvb3Val species=\\\"Species_3\\\">0.2</ma_cvb3Val>\");\n oOut.write(\"<ma_cvb3Val species=\\\"Species_4\\\">0.3</ma_cvb3Val>\");\n oOut.write(\"<ma_cvb3Val species=\\\"Species_5\\\">0.4</ma_cvb3Val>\");\n oOut.write(\"</ma_classifierVigBeta3>\");\n oOut.write(\"<ma_classifierQualBeta0>\");\n oOut.write(\"<ma_cqb0Val species=\\\"Species_2\\\">0.25</ma_cqb0Val>\");\n oOut.write(\"<ma_cqb0Val species=\\\"Species_3\\\">1.13</ma_cqb0Val>\");\n oOut.write(\"<ma_cqb0Val species=\\\"Species_4\\\">0</ma_cqb0Val>\");\n oOut.write(\"<ma_cqb0Val species=\\\"Species_5\\\">1.15</ma_cqb0Val>\");\n oOut.write(\"</ma_classifierQualBeta0>\");\n oOut.write(\"<ma_classifierQualBeta11>\");\n oOut.write(\"<ma_cqb11Val species=\\\"Species_2\\\">0.36</ma_cqb11Val>\");\n oOut.write(\"<ma_cqb11Val species=\\\"Species_3\\\">0</ma_cqb11Val>\");\n oOut.write(\"<ma_cqb11Val species=\\\"Species_4\\\">0.4</ma_cqb11Val>\");\n oOut.write(\"<ma_cqb11Val species=\\\"Species_5\\\">0</ma_cqb11Val>\");\n oOut.write(\"</ma_classifierQualBeta11>\");\n oOut.write(\"<ma_classifierQualBeta12>\");\n oOut.write(\"<ma_cqb12Val species=\\\"Species_2\\\">0.02</ma_cqb12Val>\");\n oOut.write(\"<ma_cqb12Val species=\\\"Species_3\\\">10</ma_cqb12Val>\");\n oOut.write(\"<ma_cqb12Val species=\\\"Species_4\\\">0.3</ma_cqb12Val>\");\n oOut.write(\"<ma_cqb12Val species=\\\"Species_5\\\">30</ma_cqb12Val>\");\n oOut.write(\"</ma_classifierQualBeta12>\");\n oOut.write(\"<ma_classifierQualBeta13>\");\n oOut.write(\"<ma_cqb13Val species=\\\"Species_2\\\">0.2</ma_cqb13Val>\");\n oOut.write(\"<ma_cqb13Val species=\\\"Species_3\\\">10</ma_cqb13Val>\");\n oOut.write(\"<ma_cqb13Val species=\\\"Species_4\\\">-0.3</ma_cqb13Val>\");\n oOut.write(\"<ma_cqb13Val species=\\\"Species_5\\\">30</ma_cqb13Val>\");\n oOut.write(\"</ma_classifierQualBeta13>\");\n oOut.write(\"<ma_classifierQualBeta14>\");\n oOut.write(\"<ma_cqb14Val species=\\\"Species_2\\\">-0.2</ma_cqb14Val>\");\n oOut.write(\"<ma_cqb14Val species=\\\"Species_3\\\">10</ma_cqb14Val>\");\n oOut.write(\"<ma_cqb14Val species=\\\"Species_4\\\">-0.4</ma_cqb14Val>\");\n oOut.write(\"<ma_cqb14Val species=\\\"Species_5\\\">30</ma_cqb14Val>\");\n oOut.write(\"</ma_classifierQualBeta14>\");\n oOut.write(\"<ma_classifierQualBeta2>\");\n oOut.write(\"<ma_cqb2Val species=\\\"Species_2\\\">-0.2</ma_cqb2Val>\");\n oOut.write(\"<ma_cqb2Val species=\\\"Species_3\\\">10</ma_cqb2Val>\");\n oOut.write(\"<ma_cqb2Val species=\\\"Species_4\\\">0</ma_cqb2Val>\");\n oOut.write(\"<ma_cqb2Val species=\\\"Species_5\\\">30</ma_cqb2Val>\");\n oOut.write(\"</ma_classifierQualBeta2>\");\n oOut.write(\"<ma_classifierQualBeta3>\");\n oOut.write(\"<ma_cqb3Val species=\\\"Species_2\\\">1</ma_cqb3Val>\");\n oOut.write(\"<ma_cqb3Val species=\\\"Species_3\\\">10</ma_cqb3Val>\");\n oOut.write(\"<ma_cqb3Val species=\\\"Species_4\\\">0.1</ma_cqb3Val>\");\n oOut.write(\"<ma_cqb3Val species=\\\"Species_5\\\">30</ma_cqb3Val>\");\n oOut.write(\"</ma_classifierQualBeta3>\");\n oOut.write(\"<ma_classifierNewAdultProbVigorous>\");\n oOut.write(\"<ma_cnapvVal species=\\\"Species_2\\\">0.1</ma_cnapvVal>\");\n oOut.write(\"<ma_cnapvVal species=\\\"Species_3\\\">0.25</ma_cnapvVal>\");\n oOut.write(\"<ma_cnapvVal species=\\\"Species_4\\\">0.5</ma_cnapvVal>\");\n oOut.write(\"<ma_cnapvVal species=\\\"Species_5\\\">0.74</ma_cnapvVal>\");\n oOut.write(\"</ma_classifierNewAdultProbVigorous>\");\n oOut.write(\"<ma_classifierNewAdultProbSawlog>\");\n oOut.write(\"<ma_cnapsVal species=\\\"Species_2\\\">0.9</ma_cnapsVal>\");\n oOut.write(\"<ma_cnapsVal species=\\\"Species_3\\\">0.25</ma_cnapsVal>\");\n oOut.write(\"<ma_cnapsVal species=\\\"Species_4\\\">0.3</ma_cnapsVal>\");\n oOut.write(\"<ma_cnapsVal species=\\\"Species_5\\\">0.74</ma_cnapsVal>\");\n oOut.write(\"</ma_classifierNewAdultProbSawlog>\");\n oOut.write(\"<ma_classifierDeciduous>\");\n oOut.write(\"<ma_cdVal species=\\\"Species_2\\\">1</ma_cdVal>\");\n oOut.write(\"<ma_cdVal species=\\\"Species_3\\\">0</ma_cdVal>\");\n oOut.write(\"<ma_cdVal species=\\\"Species_4\\\">1</ma_cdVal>\");\n oOut.write(\"<ma_cdVal species=\\\"Species_5\\\">0</ma_cdVal>\");\n oOut.write(\"</ma_classifierDeciduous>\");\n oOut.write(\"</QualityVigorClassifier1>\");\n oOut.write(\"</paramFile>\");\n\n oOut.close();\n return sFileName;\n }",
"public void convertProjectTeam2XML(ProjectTeam team, File xml)\n throws IOException, TransformerException {\n\n //Setup XSLT\n TransformerFactory factory = TransformerFactory.newInstance();\n Transformer transformer = factory.newTransformer();\n /* Note:\n We use the identity transformer, no XSL transformation is done.\n The transformer is basically just used to serialize the\n generated document to XML. */\n\n //Setup input\n Source src = team.getSourceForProjectTeam();\n\n //Setup output\n Result res = new StreamResult(xml);\n\n //Start XSLT transformation\n transformer.transform(src, res);\n }",
"public org.apache.xmlbeans.XmlString xgetXsd()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(XSD$2, 0);\n return target;\n }\n }",
"public static RDFFormat syntaxForFileName(String fileName) {\n\t\treturn RDFFormat.forFileName(fileName, RDFFormat.RDFXML);\n\t}",
"@Override\n protected abstract Document parseAsDom(final T input) throws ConversionException;",
"public void createGraphFromFile(String newDataFileName) throws IOException {\n\n File inFile = new File(newDataFileName); /* XML */\n\n Scanner sc = new Scanner(inFile);\n String line = sc.nextLine();/*Pass the first line */\n\n /* Until Start of the Edges */\n while (line.compareTo(\" <Edges>\") != 0) {\n /* Take the next line */\n line = sc.nextLine();\n }\n\n /* Take the next line */\n line = sc.nextLine();\n\n /* Until End of the Edges */\n while (line.compareTo(\" </Edges>\") != 0) {\n\n /* Add element in the Linked List */\n insert(loadEdgesFromString(line));\n\n /* Take the next line */\n line = sc.nextLine();\n }\n\n /* Close the file */\n sc.close();\n }",
"private static Document parse(final InputStream in, boolean useNamespaces) throws IOException, XMLException{\n\t\ttry{\n\t\t\tfinal DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n\t\t\tfactory.setNamespaceAware(true);\n\t\t\tfinal DocumentBuilder builder = factory.newDocumentBuilder();\n\t\t\tfinal Document doc = builder.parse(in);\n\t\t\t//\tfactory.setAttribute(name, value)\n\t\t\t//\tfactory.setSchema(Schema)\n\t\t\tfactory.setCoalescing(true);\n\t\t\tfactory.setExpandEntityReferences(true);\n\t\t\tfactory.setIgnoringComments(false);\n\t\t\tif(useNamespaces) factory.setNamespaceAware(true); // WORKAROUND per xalan!\n\t\t\tfactory.setXIncludeAware(true);\n\t\t\tfactory.setValidating(false);\n\t\t\tfactory.setIgnoringComments(true);\n\t\t\t// aggiungo alcune feature per impedire il tentativo di caricamento del DTD da remoto, al fine di validazione\n\t\t\tfactory.setFeature(\"http://xml.org/sax/features/namespaces\", false);\n\t\t\tfactory.setFeature(\"http://xml.org/sax/features/validation\", false);\n\t\t\tfactory.setFeature(\"http://apache.org/xml/features/nonvalidating/load-dtd-grammar\", false);\n\t\t\tfactory.setFeature(\"http://apache.org/xml/features/nonvalidating/load-external-dtd\", false);\n\t\t\tin.close();\n\t\t\treturn doc;\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t\tthrow new XMLException(e);\n\t\t}\n\t}",
"Document toXml() throws ParserConfigurationException, TransformerException, IOException;",
"protected void startParsing(String xsdName, String xmlName, String outputFileName){\n boolean isValid = this.inputXSD(xsdName, xmlName, outputFileName);\n if(isValid){\n System.out.println(\"xml data is parsed successfully!\");\n }else {\n System.out.println(\"Program failed to parse xml data!\");\n }\n }",
"public NetworkServiceDescriptor retrieveNSD( String nsdID) {\r\n\t\tlogger.info(\"will retrieve NetworkServiceDescriptor from NSD/VNF catalog nsdID=\" + nsdID );\r\n\t\ttry {\r\n\t\t\tObject response = template.\r\n\t\t\t\t\trequestBody( NFV_CATALOG_GET_NSD_BY_ID, nsdID);\r\n\r\n\t\t\tif ( !(response instanceof String)) {\r\n\t\t\t\tlogger.error(\"NetworkServiceDescriptor object is wrong.\");\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t\tNetworkServiceDescriptor sor = toJsonObj( (String)response, NetworkServiceDescriptor.class); \r\n\t\t\t//logger.debug(\"retrieveServiceOrder response is: \" + response);\r\n\t\t\treturn sor;\r\n\t\t\t\r\n\t\t}catch (Exception e) {\r\n\t\t\tlogger.error(\"Cannot retrieve NetworkServiceDescriptor details from catalog. \" + e.toString());\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"private static ADXP aDXP2ADXPInternal(org.opencds.vmr.v1_0.schema.ADXP pADXP) \n\t\t\tthrows DataFormatException, InvalidDataException {\n\n\t\tString _METHODNAME = \"aDXP2ADXPInternal(): \";\n\t\tif (pADXP == null)\n\t\t\treturn null;\n\n\t\tADXP lADXPInt = new ADXP();\n\n\t\t// Populate the associated name part\n\t\tlADXPInt.setValue(pADXP.getValue());\n\n\t\t// Now translate the internal AddressPartType to external AddressPartType\n\t\torg.opencds.vmr.v1_0.schema.AddressPartType lAddressPartTypeExt = pADXP.getType();\n\t\tif (lAddressPartTypeExt == null) {\n\t\t\tString errStr = _METHODNAME + \"AddressPartType of external ADXP datatype not populated; required by vmr spec\";\n\t\t\tthrow new DataFormatException(errStr);\n\t\t}\n\t\tString lAddrPartTypeStrExt = pADXP.getType().toString();\n\t\tif (logger.isDebugEnabled()) {\n\t\t\tlogger.debug(_METHODNAME + \"External AddressPartType value: \" + lAddrPartTypeStrExt);\n\t\t}\n\t\tAddressPartType lAddrPartTypeInt = null;\n\t\ttry {\n\t\t\tlAddrPartTypeInt = AddressPartType.valueOf(lAddrPartTypeStrExt);\n\t\t}\n\t\tcatch (IllegalArgumentException iae) {\n\t\t\tString errStr = _METHODNAME + \"there was no direct value mapping from the external to internal enumeration\";\n\t\t\tthrow new InvalidDataException(errStr);\n\t\t}\n\t\tif (logger.isDebugEnabled()) {\n\t\t\tlogger.debug(_METHODNAME + \"Internal AddressPartType value: \" + lAddrPartTypeInt);\n\t\t}\n\n\t\tlADXPInt.setType(lAddrPartTypeInt);\n\n\t\treturn lADXPInt;\n\t}",
"public void doctypeDecl(String name, String publicId, String systemId)\n\t\t\t\tthrows java.lang.Exception {\n\t\t\tif (isVerbose()) {\n\t\t\t\tlogInfo(\"doctype\", name + \" \\\"\" + publicId + \"\\\" \\\"\" + systemId\n\t\t\t\t\t\t+ \"\\\"\");\n\t\t\t}\n\n\t\t\t_document.setDocType(name);\n\t\t\t_document.setDTDPublicID(publicId);\n\t\t\t_document.setDTDSystemID(systemId);\n\t\t}",
"@Override\n public XmlHandler handleDTD(XMLStreamReader parser) {\n return this;\n }",
"public void convert(final QemuImgFile srcFile, final QemuImgFile destFile, final boolean forceSourceFormat) throws QemuImgException, LibvirtException {\n this.convert(srcFile, destFile, null, null, forceSourceFormat);\n }",
"@Test\n\tpublic void testValidateAgainstXSD() throws Exception {\n\t\t// This XML is for the save event type\n\t\t\t\tString fullFilePath = System.getProperty(\"user.dir\") + \"\\\\Resources\\\\TestFiles\\\\Saves\\\\SAVE_TestSaveName.xml\";\n\n\t\t\t\t// Create the XML document\n\t\t\t\tDocument document = XMLUtils.convertByteArrayToDocument(Files.readAllBytes(new File(fullFilePath).toPath()));\n\n\t\tPropertyManager.setXSDLocation(\"C:\\\\Users\\\\Daniel\\\\Documents\\\\Uni\\\\TeamProject\\\\GitCopy\\\\TeamProjectVirusGame\\\\Resources\\\\XSD/VirusGameXSD.xsd\");\n\t\t\n\t\t// Call the method in test\n\t\tXSDValidator.validateAgainstXSD(document);\n\t}"
] |
[
"0.77178913",
"0.7433791",
"0.6207102",
"0.6110839",
"0.5410345",
"0.5302285",
"0.526587",
"0.47190723",
"0.47173604",
"0.4681965",
"0.4660275",
"0.45735496",
"0.4558579",
"0.45573574",
"0.45171845",
"0.44703022",
"0.43892738",
"0.43834114",
"0.43326336",
"0.43057173",
"0.43016222",
"0.42967778",
"0.4284348",
"0.42707804",
"0.42601275",
"0.4231687",
"0.42065668",
"0.41858205",
"0.41776425",
"0.41703057",
"0.41687423",
"0.41506082",
"0.41494152",
"0.41381714",
"0.41378236",
"0.41262984",
"0.41163647",
"0.4109664",
"0.41058022",
"0.41010892",
"0.4099688",
"0.4091307",
"0.40862155",
"0.4083043",
"0.4052447",
"0.40521795",
"0.40454605",
"0.40102884",
"0.40032417",
"0.3996698",
"0.39909926",
"0.39823562",
"0.3982191",
"0.39806753",
"0.39787948",
"0.39684057",
"0.3964855",
"0.39626747",
"0.39447114",
"0.39407992",
"0.39398435",
"0.39393497",
"0.39361975",
"0.39331478",
"0.3932694",
"0.39258805",
"0.39230394",
"0.3917594",
"0.39145806",
"0.3913751",
"0.39070603",
"0.3901365",
"0.3889788",
"0.3889613",
"0.38796481",
"0.3877999",
"0.38775408",
"0.3877306",
"0.3871269",
"0.38686836",
"0.38525167",
"0.38505986",
"0.38504732",
"0.38342196",
"0.38335282",
"0.38293937",
"0.38256484",
"0.38219234",
"0.38199875",
"0.38136044",
"0.3812957",
"0.38125154",
"0.3811255",
"0.38072172",
"0.38054097",
"0.38006487",
"0.3800063",
"0.37979212",
"0.37938476",
"0.37901512"
] |
0.7646016
|
1
|
Convert the given the dtd file(that is the path as String) to the new xsd format.
|
public static File convert(final @NonNull String dtdfile, final @NonNull File xsdfile)
throws IOException
{
OutputStream outStream = new FileOutputStream(xsdfile);
final Writer writer = new Writer();
writer.setOutStream(outStream);
writer.parse(new XMLInputSource(null, dtdfile, null));
return xsdfile;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public static void convert(final String dtdfile, final String xsdfile) throws IOException\n\t{\n\t\tOutputStream outStream = new FileOutputStream(xsdfile);\n\t\tfinal Writer writer = new Writer();\n\t\twriter.setOutStream(outStream);\n\t\twriter.parse(new XMLInputSource(null, dtdfile, null));\n\t}",
"public static File convert(final @NonNull File dtdfile, final @NonNull File xsdfile)\n\t\tthrows IOException\n\t{\n\t\tOutputStream outStream = new FileOutputStream(xsdfile);\n\t\tfinal Writer writer = new Writer();\n\t\twriter.setOutStream(outStream);\n\t\twriter.parse(new XMLInputSource(null, dtdfile.getAbsolutePath(), null));\n\t\treturn xsdfile;\n\t}",
"public static void convert(final @NonNull String targetNamespace,\n\t\tfinal List<TypePattern> listXsdTypePattern, final @NonNull String dtdfile,\n\t\tfinal @NonNull File xsdfile) throws IOException\n\t{\n\t\tOutputStream outStream = new FileOutputStream(xsdfile);\n\t\tfinal Writer writer = new Writer();\n\t\twriter.setTargetNamespace(targetNamespace);\n\t\twriter.addXsdTypePattern(listXsdTypePattern);\n\t\twriter.setOutStream(outStream);\n\t\twriter.parse(new XMLInputSource(null, dtdfile, null));\n\t}",
"public static void convert(final @NonNull String targetNamespace,\n\t\tfinal List<TypePattern> listXsdTypePattern, final @NonNull String dtdfile,\n\t\tfinal @NonNull String xsdfile) throws IOException\n\t{\n\t\tOutputStream outStream = new FileOutputStream(xsdfile);\n\t\tfinal Writer writer = new Writer();\n\t\twriter.setTargetNamespace(targetNamespace);\n\t\twriter.addXsdTypePattern(listXsdTypePattern);\n\t\twriter.setOutStream(outStream);\n\t\twriter.parse(new XMLInputSource(null, dtdfile, null));\n\t}",
"public void convert(String inFile, String outFile) throws IOException, JAXBException;",
"public void setXmlSchema(File file) {\n\t\tDocument doc = null;\n\t\ttry {\n\t\t\tSAXBuilder sax = new SAXBuilder();\n\t\t\tdoc = sax.build(file);\n\t\t} catch (JDOMException | IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tif(doc != null) {\n\t\t\tsetXmlSchema(doc);\n\t\t\ttry(FileOutputStream fileOutputStream = new FileOutputStream(file)) {\n\t\t\t\ttry {\n\t\t\t\t\tXMLOutputter xmlOutputter = new XMLOutputter(Format.getPrettyFormat());\n\t\t\t\t\txmlOutputter.output(doc, fileOutputStream);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"private String convertXMLFileToString(File file)\n {\n try{\n DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();\n InputStream inputStream = new FileInputStream(file);\n org.w3c.dom.Document doc = documentBuilderFactory.newDocumentBuilder().parse(inputStream);\n StringWriter stw = new StringWriter();\n Transformer serializer = TransformerFactory.newInstance().newTransformer();\n serializer.transform(new DOMSource(doc), new StreamResult(stw));\n return stw.toString();\n }\n catch (Exception e) {\n \tnew ErrorBox(\"Error Deserializing\", \"XML file could not be deserialized\");\n }\n return null;\n }",
"public void processDocumentType(DocumentType dtd)\r\n\tthrows Exception\r\n\t{\r\n\tWriter xml = getWriter();\r\n\txml.write(\"<!DOCTYPE \");\r\n\txml.write(dtd.getName());\r\n\txml.write(\" SYSTEM ... \\n \");\r\n\treturn;\r\n\t}",
"public void xsetXsd(org.apache.xmlbeans.XmlString xsd)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(XSD$2, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(XSD$2);\n }\n target.set(xsd);\n }\n }",
"public void setXsd(java.lang.String xsd)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(XSD$2, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(XSD$2);\n }\n target.setStringValue(xsd);\n }\n }",
"private boolean inputXSD(String xsdName, String xmlName, String outputFileName) {\n ArrayList<String> wholeFile = this.readReturnFileContents(xsdName);\n ArrayList<Integer> match = new ArrayList<Integer>();\n ArrayList<Map> fieldsAttribs = new ArrayList<>();\n match.add(1);\n for(String s:wholeFile){\n if(s.trim().length() != 0){\n match = this.parseXSD(s.trim(), match);\n if(match.get(match.size()-1)==8)\n return false;\n if(match.size()>2){\n if(match.get(match.size()-1) == 4){\n Map tMap = this.getTableFieldsAttribs(s);\n boolean flag = true;\n for (Map cMap: fieldsAttribs){\n if(cMap.get(\"name\").toString().equals(tMap.get(\"name\").toString())){\n flag = false;\n System.out.println(\"***Error- \"+ tMap + \" \\n this element is ignored due to duplicate name attribute in xsd file\");\n }\n }\n if(flag)\n fieldsAttribs.add(tMap);\n }\n }\n }\n\n }\n return this.inputXML(xmlName, fieldsAttribs, outputFileName);\n }",
"public static WSDLDocument parseWSDL(String input) throws WSDLParserException {\r\n\r\n\t try {\r\n\r\n\t\t\tWSDLDocument wsdlDoc = null;\r\n\r\n\t\t\twsdlDoc = new WSDLDocument();\r\n\r\n\t\t\tSAXBuilder builder = new SAXBuilder();\r\n\t\t\tlog.info(\"WSDL: loading...\" + input);\r\n\t\t\tDocument doc = builder.build(Files.getInputStream(input));\r\n\r\n\t\t\t// Get the root element\r\n\t\t\tElement root = doc.getRootElement();\r\n\r\n\t\t\t// Namespaces\r\n\t\t\tNamespace rootns = root.getNamespace();\r\n\t\t\twsdlDoc.setRootNamespace(rootns);\r\n\r\n\t\t\tList nss = root.getAdditionalNamespaces();\r\n\t\t\tfor (Iterator iter = nss.iterator(); iter.hasNext(); ) {\r\n\t\t\t\tNamespace ns = (Namespace) iter.next();\r\n\t\t\t\twsdlDoc.addAdditionalNamespace(ns);\r\n\t\t\t}\r\n\r\n\t\t\t// XML Schema Type defintions\r\n\r\n\t\t\t// first load utility schemas, which may be needed even in absence\r\n\t\t\t// of an explicite XSD schema defintion\r\n\t\t\tXMLSchemaParser parser = new XMLSchemaParser();\r\n\r\n\t\t\tHashMap addNS = new HashMap();\r\n\t\t\taddNS.put(\"xsd\", Namespace.getNamespace(\"xsd\", XSSchema.NS_XSD));\r\n\t\t\tXSSchema datatypes = parser.parseSchema(Files.getInputStream(\"examples/xs/xs_datatypes.xsd\"), addNS);\r\n\t\t\tXSSchema soapEncoding = parser.parseSchema(Files.getInputStream(\"examples/xs/soapencoding.xsd\"), addNS);\r\n\r\n\t\t\t// now read the schema definitions of the WSDL documen (usually, only one..)\r\n\t\t\tElement types = root.getChild(\"types\", rootns);\r\n\t\t\tif (types != null) {\r\n\t\t\t\tIterator itr = (types.getChildren()).iterator();\r\n\t\t\t\twhile (itr.hasNext()) {\r\n\t\t\t\t\t// copying XML Schema definition to stream\r\n\t\t\t\t\tByteArrayOutputStream os = new ByteArrayOutputStream();\r\n\t\t\t\t\tXMLOutputter outputter = new XMLOutputter();\r\n\t\t\t\t\toutputter.output((Element) itr.next(), os);\r\n\t\t\t\t\tString s = os.toString();\r\n\r\n\t\t\t\t\tXSSchema xs = parser.parseSchema(s, wsdlDoc.getAdditionalNamespaces());\r\n\t\t\t\t\tlog.debug(\"--- XML SCHEMA PARSING RESULT ---\\n\"+xs.toString());\r\n\t\t\t\t\twsdlDoc.addXSDSchema(xs);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tRegistry registry = Registry.getInstance();\r\n\r\n\t\t\twsdlDoc.setName(root.getAttributeValue(\"name\"));\r\n\t\t\twsdlDoc.setTargetNamespace(StrUtils.slashed(root.getAttributeValue(\"targetNamespace\")));\r\n\r\n\t\t\t/*\r\n\t\t\t<message name=\"GetLastTradePriceOutput\">\r\n\t\t\t\t\t<part name=\"body\" element=\"xsd1:TradePrice\"/>\r\n\t\t\t</message>\r\n\t\t\t*/\r\n\t\t\tfor(Iterator iter=root.getChildren(\"message\", NS_WSDL).iterator(); iter.hasNext(); ) {\r\n\t\t\t\tElement messageElem = (Element) iter.next();\r\n\t\t\t\tMessage m = new Message(wsdlDoc);\r\n\t\t\t\tm.setName(messageElem.getAttributeValue(\"name\"));\r\n\t\t\t\twsdlDoc.addMessage(m);\r\n\r\n\t\t\t\tList partList = messageElem.getChildren(\"part\", NS_WSDL);\r\n\t\t\t\tfor(Iterator iter2=partList.iterator(); iter2.hasNext();) {\r\n\t\t\t\t\tElement partElem = (Element) iter2.next();\r\n\r\n\t\t\t\t\tPart part = new Part(wsdlDoc, m);\r\n\t\t\t\t\tpart.setName(partElem.getAttributeValue(\"name\"));\r\n\r\n\t\t\t\t\tString partXSDElement = partElem.getAttributeValue(\"element\");\r\n\t\t\t\t\tString[] partXSDDef = null;\r\n\t\t\t\t\tif(partXSDElement != null) {\r\n\t\t\t\t\t\tpartXSDDef = wsdlDoc.splitQName(partXSDElement, wsdlDoc.getTargetNamespace());\r\n\t\t\t\t\t\tpart.setNamespace(partXSDDef[0]);\r\n\t\t\t\t\t\tpart.setElementName(partXSDDef[1]);\r\n\t\t\t\t\t\t//part.setElementName(partXSDElement);\r\n\t\t\t\t\t}\telse {\r\n\t\t\t\t\t\tif(partList.size() > 1) log.warn(\"WARNING: Violation of Sect. 2.3.1 of WSDL 1.1 spec: if type is used, only one msg part may be specified.\");\r\n\r\n\t\t\t\t\t\tString partXSDType = partElem.getAttributeValue(\"type\");\r\n\t\t\t\t\t\tpartXSDDef = wsdlDoc.splitQName(partXSDType, wsdlDoc.getTargetNamespace());\r\n\t\t\t\t\t\tpart.setNamespace(partXSDDef[0]);\r\n\t\t\t\t\t\tpart.setTypeName(partXSDDef[1]);\r\n\t\t\t\t\t\t//part.setTypeName(partXSDType);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tm.addPart(part);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tm.register();\r\n\t\t\t}\r\n\r\n\t\t\t/*\r\n\t\t\t<portType name=\"StockQuotePortType\">\r\n\t\t\t\t\t<operation name=\"GetLastTradePrice\">\r\n\t\t\t\t\t\t <input message=\"tns:GetLastTradePriceInput\"/>\r\n\t\t\t\t\t\t <output message=\"tns:GetLastTradePriceOutput\"/>\r\n\t\t\t\t\t</operation>\r\n\t\t\t</portType>\r\n\t\t\t*/\r\n\t\t\tfor(Iterator iter=root.getChildren(\"portType\", NS_WSDL).iterator(); iter.hasNext(); ) {\r\n\t\t\t\tElement ptElem = (Element) iter.next();\r\n\t\t\t\tPortType portType = new PortType(wsdlDoc);\r\n\t\t\t\tportType.setName(ptElem.getAttributeValue(\"name\"));\r\n\t\t\t\twsdlDoc.addPortType(portType);\r\n\r\n\t\t\t\tfor(Iterator iter2 = ptElem.getChildren(\"operation\", NS_WSDL).iterator(); iter2.hasNext(); ) {\r\n\t\t\t\t\tElement opElem = (Element) iter2.next();\r\n\t\t\t\t\tOperation operation = new Operation(wsdlDoc, portType);\r\n\t\t\t\t\toperation.setName(opElem.getAttributeValue(\"name\"));\r\n\t\t\t\t\tportType.addOperation(operation);\r\n\r\n\t\t\t\t\tElement inputElem = opElem.getChild(\"input\", NS_WSDL);\r\n\t\t\t\t\tif(inputElem != null) {\r\n\t\t\t\t\t\tString[] msgDef = wsdlDoc.splitQName(inputElem.getAttributeValue(\"message\"), wsdlDoc.getTargetNamespace());\r\n\t\t\t\t\t\tif(msgDef[0] != null && msgDef[1] != null) {\r\n\t\t\t\t\t\t\tMessage inputMsg = (Message) registry.getObject(Registry.WSDL_MESSAGE, Message.createURI(msgDef[0], msgDef[1]));\r\n\t\t\t\t\t\t\tif(inputMsg == null) throw new WSDLParserException(\"Error: message '\"+msgDef+\"' not found.\");\r\n\t\t\t\t\t\t\toperation.setInput(msgDef[0], msgDef[1], inputMsg);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tElement outputElem = opElem.getChild(\"output\", NS_WSDL);\r\n\t\t\t\t\tif(outputElem != null) {\r\n\t\t\t\t\t\tString[] msgDef = wsdlDoc.splitQName(outputElem.getAttributeValue(\"message\"), wsdlDoc.getTargetNamespace());\r\n\t\t\t\t\t\tif(msgDef[0] != null && msgDef[1] != null) {\r\n\t\t\t\t\t\t\tMessage outputMsg = (Message) registry.getObject(Registry.WSDL_MESSAGE, Message.createURI(msgDef[0], msgDef[1]));\r\n\t\t\t\t\t\t\tif(outputMsg == null) throw new WSDLParserException(\"Error: message '\"+msgDef+\"' not found.\");\r\n\t\t\t\t\t\t\toperation.setOutput(msgDef[0], msgDef[1], outputMsg);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tElement faultElem = opElem.getChild(\"fault\", NS_WSDL);\r\n\t\t\t\t\tif(faultElem != null) {\r\n\t\t\t\t\t\tString[] msgDef = wsdlDoc.splitQName(faultElem.getAttributeValue(\"message\"), wsdlDoc.getTargetNamespace());\r\n\t\t\t\t\t\tif(msgDef[0] != null && msgDef[1] != null) {\r\n\t\t\t\t\t\t\tMessage faultMsg = (Message) registry.getObject(Registry.WSDL_MESSAGE, Message.createURI(msgDef[0], msgDef[1]));\r\n\t\t\t\t\t\t\tif(faultMsg == null) throw new WSDLParserException(\"Error: message '\"+msgDef+\"' not found.\");\r\n\t\t\t\t\t\t\toperation.setFault(msgDef[0], msgDef[1], faultMsg);\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\tportType.register(); // recursivly registers pt and its op's\r\n\t\t\t}\r\n\r\n\t\t\t/*\r\n\t\t\t<binding name=\"StockQuoteSoapBinding\" type=\"tns:StockQuotePortType\">\r\n\t\t\t\t\t<soap:binding style=\"document\" transport=\"http://schemas.xmlsoap.org/soap/http\"/>\r\n\t\t\t\t\t<operation name=\"GetLastTradePrice\">\r\n\t\t\t\t\t\t <soap:operation soapAction=\"http://example.com/GetLastTradePrice\"/>\r\n\t\t\t\t\t\t <input>\r\n\t\t\t\t\t\t\t\t <soap:body use=\"literal\"/>\r\n\t\t\t\t\t\t </input>\r\n\t\t\t\t\t\t <output>\r\n\t\t\t\t\t\t\t\t <soap:body use=\"literal\"/>\r\n\t\t\t\t\t\t </output>\r\n\t\t\t\t\t</operation>\r\n\t\t\t</binding>\r\n\t\t\t*/\r\n\t\t\tfor(Iterator iter=root.getChildren(\"binding\", NS_WSDL).iterator(); iter.hasNext(); ) {\r\n\t\t\t\tElement bindingElem = (Element) iter.next();\r\n\t\t\t\tString bindingName = bindingElem.getAttributeValue(\"name\");\r\n\r\n\t\t\t\tString bdgPortTypeStr = bindingElem.getAttributeValue(\"type\");\r\n\t\t\t\tString[] bdDef = wsdlDoc.splitQName(bdgPortTypeStr, wsdlDoc.getTargetNamespace());\r\n\t\t\t\tPortType bdgPortType = (PortType) registry.getObject(Registry.WSDL_PORTTYPE, PortType.createURI(bdDef[0], bdDef[1]));\r\n\t\t\t\tif(bdgPortType == null) throw new WSDLParserException(\"Error: PortType '\"+bdgPortTypeStr+\"' not found in binding '\"+bindingName+\"'.\");\r\n\r\n\t\t\t\tElement soapBindingElem = (Element) bindingElem.getChild(\"binding\", NS_WSDL_SOAP);\r\n\t\t\t\tif(soapBindingElem == null) {\r\n\t\t\t\t\tlog.warn(\"Skipping this binding, currently we only support SOAP bindings\");\r\n\t\t\t\t\tcontinue; // currently we only support SOAP bindings\r\n\t\t\t\t}\r\n\r\n\t\t\t\tSOAPBinding soapBinding = new SOAPBinding(wsdlDoc, bdgPortType);\r\n\t\t\t\tsoapBinding.setName(bindingName);\r\n\t\t\t\t// TODO: handle as boolean constant\r\n\t\t\t\tsoapBinding.setStyle(\"rpc\".equalsIgnoreCase(soapBindingElem.getAttributeValue(\"style\"))\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t? SOAPBinding.STYLE_RPC : SOAPBinding.STYLE_DOCUMENT);\r\n\t\t\t\tsoapBinding.setTransport(soapBindingElem.getAttributeValue(\"transport\"));\r\n\r\n\t\t\t\t//<operation .... >\r\n\t\t\t\tfor(Iterator iter2 = bindingElem.getChildren(\"operation\", NS_WSDL).iterator(); iter2.hasNext(); ) {\r\n\r\n\t\t\t\t\tElement opBdgElem = (Element) iter2.next();\r\n\t\t\t\t\tSOAPOperationBinding opBdg = new SOAPOperationBinding(wsdlDoc, soapBinding);\r\n\t\t\t\t\tString opName = opBdgElem.getAttributeValue(\"name\");\r\n\r\n\t\t\t\t\tlog.debug(\"parsing SOAP binding for operation: \"+opName);\r\n\r\n\t\t\t\t\tString[] opNameDef = wsdlDoc.splitQName(opName, wsdlDoc.getTargetNamespace());\r\n\t\t\t\t\tOperation op = (Operation) registry.getObject(Registry.WSDL_OPERATION, Operation.createURI(bdgPortType.getName(), opNameDef[0], opNameDef[1]));\r\n\t\t\t\t\tif(op == null) throw new WSDLParserException(\"Error: Operation '\"+opName+\"' not found in binding '\"+bindingName+\"'\");\r\n\t\t\t\t\topBdg.setOperation(op);\r\n\t\t\t\t\tsoapBinding.addOperationBinding(opBdg);\r\n\r\n\r\n\t\t\t\t\t//<soap:operation soapAction=\"uri\"? style=\"rpc|document\"?>?\r\n\t\t\t\t\tElement soapOpBdgElem = (Element) opBdgElem.getChild(\"operation\", NS_WSDL_SOAP);\r\n\t\t\t\t\topBdg.setSoapAction(soapOpBdgElem.getAttributeValue(\"soapAction\"));\r\n\t\t\t\t\t/*\r\n\t\t\t\t\tcf. Sect. 3.4 of WSDL 1.1 spec\r\n\t\t\t\t\t*/\r\n\t\t\t\t\tString soapOpStyleStr = soapOpBdgElem.getAttributeValue(\"style\");\r\n\t\t\t\t\tif(soapOpStyleStr == null)\r\n\t\t\t\t\t\topBdg.setStyle(soapBinding.getStyle()); //\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\topBdg.setStyle(soapOpStyleStr.equalsIgnoreCase(\"rpc\") ? SOAPBinding.STYLE_RPC : SOAPBinding.STYLE_DOCUMENT);\r\n\r\n\t\t\t\t\t//<input>\r\n\t\t\t\t\tElement inputBdgElem = (Element) opBdgElem.getChild(\"input\", NS_WSDL);\r\n\t\t\t\t\tif(inputBdgElem != null) {\r\n\t\t\t\t\t\t// for now, skip header def's...\r\n\t\t\t\t\t\tSOAPBodyDef soapBodyDef = parseSOAPBodyDef(inputBdgElem, wsdlDoc, opBdg);\r\n\t\t\t\t\t\t// enforce WSDL specification\r\n\t\t\t\t\t\tif(!soapBodyDef.isConsistentWithMessageParts(opBdg.getOperation().getInputMsg())) throw new WSDLParserException(\"Error: violation of Sect. 3.5 - binding not consistent with message parts\");\r\n\t\t\t\t\t\topBdg.setInputSOAPBodyDef(soapBodyDef);\r\n\r\n\t\t\t\t\t\t// now parse SOAPHeader defs (if existant)\r\n\t\t\t\t\t\topBdg.setInputSOAPHeaderDefs(parseSOAPHeaderDefs(inputBdgElem, wsdlDoc, opBdg));\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t//<output>\r\n\t\t\t\t\tElement outputBdgElem = (Element) opBdgElem.getChild(\"output\", NS_WSDL);\r\n\t\t\t\t\tif(outputBdgElem != null) {\r\n\t\t\t\t\t\t// for now, skip header def's...\r\n\t\t\t\t\t\tSOAPBodyDef soapBodyDef = parseSOAPBodyDef(inputBdgElem, wsdlDoc, opBdg);\r\n\t\t\t\t\t\t// enforce WSDL specification\r\n\t\t\t\t\t\tif(!soapBodyDef.isConsistentWithMessageParts(opBdg.getOperation().getOutputMsg())) throw new WSDLParserException(\"Error: violation of Sect. 3.5 - binding not consistent with message parts\");\r\n\t\t\t\t\t\topBdg.setOutputSOAPBodyDef(soapBodyDef);\r\n\r\n\t\t\t\t\t\t// now parse SOAPHeader defs (if existant)\r\n\t\t\t\t\t\topBdg.setOutputSOAPHeaderDefs(parseSOAPHeaderDefs(inputBdgElem, wsdlDoc, opBdg));\r\n\t\t\t\t\t}\r\n\r\n\r\n\t\t\t\t}\r\n\t\t\t\twsdlDoc.addBinding(soapBinding);\r\n\t\t\t\tsoapBinding.register();\r\n\t\t\t}\r\n\r\n\t\t\t/*\r\n\t\t\t<service name=\"StockQuoteService\">\r\n\t\t\t\t\t<documentation>My first service</documentation>\r\n\t\t\t\t\t<port name=\"StockQuotePort\" binding=\"tns:StockQuoteBinding\">\r\n\t\t\t\t\t\t <soap:address location=\"http://example.com/stockquote\"/>\r\n\t\t\t\t\t</port>\r\n\t\t\t</service>\r\n\t\t\t*/\r\n\r\n\t\t\tfor(Iterator iter=root.getChildren(\"service\", NS_WSDL).iterator(); iter.hasNext(); ) {\r\n\t\t\t\tElement serviceElem = (Element) iter.next();\r\n\r\n\t\t\t\tService service = new Service(wsdlDoc);\r\n\t\t\t\tservice.setName(serviceElem.getAttributeValue(\"name\"));\r\n\r\n\t\t\t\tfor(Iterator iter2=serviceElem.getChildren(\"port\", NS_WSDL).iterator(); iter2.hasNext(); ) {\r\n\t\t\t\t\tElement portElem = (Element) iter2.next();\r\n\r\n\t\t\t\t\tPort port = new Port(wsdlDoc, service);\r\n\t\t\t\t\tport.setName(portElem.getAttributeValue(\"name\"));\r\n\r\n\t\t\t\t\tString bindingStr = portElem.getAttributeValue(\"binding\");\r\n\t\t\t\t\tString[] bindingNameDef = wsdlDoc.splitQName(bindingStr, wsdlDoc.getTargetNamespace());\r\n\t\t\t\t\tBinding binding = (Binding) registry.getObject(Registry.WSDL_BINDING, Binding.createURI(bindingNameDef[0], bindingNameDef[1]));\r\n\t\t\t\t\tif(binding == null) throw new WSDLParserException(\"Binding '\"+bindingStr+\"' not found in service '\"+service.getName()+\"'\");\r\n\t\t\t\t\tport.setBinding(binding);\r\n\r\n\t\t\t\t\t// currently, only SOAP binding supported\r\n\t\t\t\t\tElement soapAddressElem = portElem.getChild(\"address\", NS_WSDL_SOAP);\r\n\t\t\t\t\tport.setAddress(soapAddressElem.getAttributeValue(\"location\"));\r\n\r\n\t\t\t\t\tport.register();\r\n\t\t\t\t\tservice.addPort(port);\r\n\t\t\t\t}\r\n\t\t\t\twsdlDoc.addService(service);\r\n\t\t\t}\r\n\r\n\t\t\tRegistry.getInstance().addObject(Registry.WSDL_DOC, wsdlDoc);\r\n\t\t\treturn wsdlDoc;\r\n\t\t} catch(Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tthrow new WSDLParserException(e.getMessage());\r\n\t\t}\r\n\t}",
"private static boolean validate(JAXBContext jaxbCongtext, File file, URL xsdUrl) {\n SchemaFactory schemaFactory = null;\n Schema schema = null;\n Source xmlFile = new StreamSource(file);\n try {\n schemaFactory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);\n schema = schemaFactory.newSchema(xsdUrl);\n Validator validator = schema.newValidator();\n DocumentBuilderFactory db = newSecuDocBuilderFactory();\n db.setNamespaceAware(true);\n\n DocumentBuilder builder = db.newDocumentBuilder();\n Document doc = builder.parse(file);\n\n DOMSource source = new DOMSource(doc);\n DOMResult result = new DOMResult();\n\n validator.validate(source, result);\n LOGGER.debug(xmlFile.getSystemId() + \" is valid\");\n } catch(Exception ex) {\n LOGGER.error(xmlFile.getSystemId() + \" is NOT valid\", ex);\n return false;\n }\n return true;\n }",
"public void removeXmlSchema(File file) {\n\t\tDocument doc = null;\n\t\ttry {\n\t\t\tSAXBuilder sax = new SAXBuilder();\n\t\t\tdoc = sax.build(file);\n\t\t} catch (JDOMException | IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tif(doc != null) {\n\t\t\tElement rootElement = doc.getRootElement();\n\t\t\trootElement.setNamespace(null);\n\t\t\trootElement.removeNamespaceDeclaration(bioNamespace);\n\t\t\trootElement.removeNamespaceDeclaration(xsiNamespace);\n\t\t\trootElement.removeAttribute(\"schemaLocation\", xsiNamespace);\n\t\t\ttry (FileOutputStream fileOutputStream = new FileOutputStream(file)) {\n\t\t\t\ttry {\n\t\t\t\t\tXMLOutputter xmlOutputter = new XMLOutputter(Format.getPrettyFormat());\n\t\t\t\t\txmlOutputter.output(doc, fileOutputStream);\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"public void generateTypesForXSD(FaultMetaData fmd) throws IOException\n {\n SchemaCreatorIntf sc = javaToXSD.getSchemaCreator();\n //Look at the features\n QName xmlType = fmd.getXmlType();\n if(xmlType.getNamespaceURI().equals(Constants.NS_SCHEMA_XSD) == false)\n generateType(xmlType ,fmd.getJavaType(), null);\n }",
"public void setXsdSchema(final File xsdFile) throws InvalidXsdException {\n\t\ttry {\n\t\t\tsetXsdSchema(new FileInputStream(xsdFile));\n\t\t} catch (final FileNotFoundException e) {\n\t\t\tthrow new InvalidXsdException(\"The specified xsd file '\" + xsdFile\n\t\t\t\t\t+ \"' could not be found.\", e);\n\t\t}\n\t}",
"public void generateDTD(InputSource src)\n throws Exception\n {\n DTDParser parser = new DTDParser();\n DTD dtd;\n\n dtd = parser.parseExternalSubset(src, null);\n processElementTypes(dtd);\n System.out.println(createAllTablesQuery);\n FileWriter catq= new FileWriter(\"createAllTables.sql\");\n catq.write(createAllTablesQuery);\n catq.close();\n }",
"public void testSchemaImport2() throws Exception{\r\n File file = new File(Resources.asURI(\"importBase.xsd\"));\r\n //create a DOM document\r\n DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();\r\n documentBuilderFactory.setNamespaceAware(true);\r\n Document doc = documentBuilderFactory.newDocumentBuilder().\r\n parse(file.toURL().toString());\r\n\r\n XmlSchemaCollection schemaCol = new XmlSchemaCollection();\r\n XmlSchema schema = schemaCol.read(doc,file.toURL().toString(),null);\r\n assertNotNull(schema);\r\n\r\n }",
"public String setXmlSchema(String content) {\n\t\ttry(StringReader reader = new StringReader(content)) {\n\t\t\tDocument doc = null;\n\t\t\ttry {\n\t\t\t\tSAXBuilder sax = new SAXBuilder();\n\t\t\t\tdoc = sax.build(reader);\n\t\t\t} catch (JDOMException | IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tif(doc != null) {\n\t\t\t\tsetXmlSchema(doc);\n\n\t\t\t\ttry(StringWriter stringWriter = new StringWriter()) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tXMLOutputter xmlOutputter = new XMLOutputter(Format.getPrettyFormat());\n\t\t\t\t\t\txmlOutputter.output(doc, stringWriter);\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tstringWriter.flush();\n\t\t\t\t\tString result = stringWriter.toString();\n\t\t\t\t\treturn result;\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"void bukaXoxo(){\r\n FileInputStream xx = null;\r\n try {\r\n xx = new FileInputStream(\"xoxo.xml\");\r\n // harus diingat objek apa yang dahulu disimpan di file \r\n // program untuk membaca harus sinkron dengan program\r\n // yang dahulu digunakan untuk menyimpannya\r\n int isi;\r\n char charnya;\r\n String stringnya;\r\n // isi file dikembalikan menjadi string\r\n stringnya =\"\";\r\n while ((isi = xx.read()) != -1) {\r\n charnya= (char) isi;\r\n stringnya = stringnya + charnya;\r\n } \r\n // string isi file dikembalikan menjadi larik double\r\n resi = (String) xstream.fromXML(stringnya);\t \r\n }\r\n catch (Exception e){\r\n System.err.println(\"test: \"+e.getMessage());\r\n }\r\n finally{\r\n if(xx != null){\r\n try{\r\n xx.close();\r\n }\r\n catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n } \r\n } \r\n \r\n }",
"public String getXsdFileName();",
"public String getXMLResultXSD() {\n if (!this.initialized) {\n logInitializationError();\n return null;\n }\n try {\n DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n DocumentBuilder builder = factory.newDocumentBuilder();\n DOMImplementation impl = builder.getDOMImplementation();\n\n Document document = impl.createDocument(null, null, null);\n Element root = document.createElement(\"schema\");\n root.setAttribute(\"xmlns\", \"http://www.w3.org/2001/XMLSchema\");\n document.appendChild(root);\n Element resultElement = document.createElement(\"element\");\n resultElement.setAttribute(\"name\", \"result\");\n root.appendChild(resultElement);\n Element complexTypeElement = document.createElement(\"complexType\");\n resultElement.appendChild(complexTypeElement);\n Element sequenceElement = document.createElement(\"sequence\");\n complexTypeElement.appendChild(sequenceElement);\n\n for (TypeMap tSpec : this.serviceSpec.getTypeSpecs()) {\n Element element = document.createElement(\"element\");\n element.setAttribute(\"name\", tSpec.getOutputTag());\n element.setAttribute(\"maxOccurs\", \"unbounded\");\n element.setAttribute(\"minOccurs\", \"0\");\n\n Element complexType = document.createElement(\"complexType\");\n element.appendChild(complexType);\n\n Element simpleContent = document.createElement(\"simpleContent\");\n complexType.appendChild(simpleContent);\n\n Element extension = document.createElement(\"extension\");\n extension.setAttribute(\"base\", \"string\");\n simpleContent.appendChild(extension);\n\n for (Output output : tSpec.getOutputs()) {\n Element attributeElement = document.createElement(\"attribute\");\n extension.appendChild(attributeElement);\n attributeElement.setAttribute(\"name\", output.getAttribute());\n attributeElement.setAttribute(\"type\", \"string\");\n attributeElement.setAttribute(\"use\", \"optional\");\n }\n sequenceElement.appendChild(element);\n }\n\n DOMSource source = new DOMSource(document);\n TransformerFactory tFactory = TransformerFactory.newInstance();\n Transformer transformer = tFactory.newTransformer();\n transformer.setOutputProperty(OutputKeys.METHOD, \"xml\");\n transformer.setOutputProperty(\"{http://xml.apache.org/xslt}indent-amount\", \"4\");\n transformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\n\n StringWriter stringWriter = new StringWriter();\n StreamResult streamResult = new StreamResult(stringWriter);\n transformer.transform(source, streamResult);\n\n return stringWriter.toString();\n } catch (TransformerException e) {\n getLogger().log(Level.SEVERE, \"\", e);\n } catch (ParserConfigurationException e) {\n getLogger().log(Level.SEVERE, \"\", e);\n }\n return null;\n }",
"private static void validate(String fileName, String xSchema) throws Exception {\n \t\ttry {\n\t // parse an XML document into a DOM tree\n\t DocumentBuilder parser =\n\t DocumentBuilderFactory.newInstance().newDocumentBuilder();\n\t Document document = parser.parse(new File(fileName));\n\t\n\t // create a SchemaFactory capable of understanding WXS schemas\n\t SchemaFactory factory =\n\t SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);\n\t\n\t // load a WXS schema, represented by a Schema instance\n\t Source schemaFile = new StreamSource(new File(xSchema));\n\t Schema schema = factory.newSchema(schemaFile);\n\t\n\t // create a Validator object, which can be used to validate\n\t // an instance document\n\t Validator validator = schema.newValidator();\n\t\n\t // validate the DOM tree\n\t\n\t validator.validate(new DOMSource(document));\n \t\t} catch(Exception e) {\n \t\t\tXMLValidate.file = fileName.substring(fileName.lastIndexOf(\"/\") + 1).replaceAll(\".xml\", \"\");\n \t\t\tthrow e;\n \t\t}\n \n }",
"public String getSchema(File file) {\n\t\tDocument doc = null;\n\t\ttry {\n\t\t\tSAXBuilder sax = new SAXBuilder();\n\t\t\tdoc = sax.build(file);\n\t\t} catch (JDOMException | IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tif(doc != null)\n\t\t\treturn getSchema(doc);\n\t\treturn null;\n\t}",
"public static RDFFormat syntaxForFileName(String fileName) {\n\t\treturn RDFFormat.forFileName(fileName, RDFFormat.RDFXML);\n\t}",
"private boolean validateXmlFileWithSchema(String xmlFilePath, String xsdFilePath) { \n \tassert xmlFilePath != null && !xmlFilePath.isEmpty();\n \tassert xsdFilePath != null && !xsdFilePath.isEmpty();\n \tassert _schemaFactory != null;\n \tassert _loggerHelper != null;\n \t\n try {\n Schema schema = _schemaFactory.newSchema(new File(xsdFilePath));\n Validator validator = schema.newValidator();\n validator.validate(new StreamSource(new File(xmlFilePath)));\n } catch (IOException | SAXException e) {\n \t_loggerHelper.logError(e.getMessage());\n return false;\n }\n return true;\n }",
"public static Date isoStringToDate(String d) {\n\t\tDateTime dt = XML_DATE_TIME_FORMAT.parseDateTime(d);\n\t\treturn dt.toDate();\n\t}",
"public void setValidateDTD(final boolean validate)\r\n {\r\n this.validateDTD = validate;\r\n }",
"public static void main(String[] args) throws Exception {\n \tString filename = null;\n \tboolean dtdValidate = false;\n \tboolean xsdValidate = false;\n \tString schemaSource = null;\n \t\n \targs[1] = \"/home/users/xblepa/git/labs/java/parser/src/test/data/personal-schema.xml\";\n \n boolean ignoreWhitespace = false;\n boolean ignoreComments = false;\n boolean putCDATAIntoText = false;\n boolean createEntityRefs = false;\n\n\t\t \n\t\tfor (int i = 0; i < args.length; i++) {\n\t\t if (args[i].equals(\"-dtd\")) { \n\t\t \t\tdtdValidate = true;\n\t\t } \n\t\t else if (args[i].equals(\"-xsd\")) {\n\t\t \txsdValidate = true;\n\t\t } \n\t\t else if (args[i].equals(\"-xsdss\")) {\n\t\t if (i == args.length - 1) {\n\t\t usage();\n\t\t }\n\t\t xsdValidate = true;\n\t\t schemaSource = args[++i];\n\t\t }\n\t\t else if (args[i].equals(\"-ws\")) {\n\t ignoreWhitespace = true;\n\t } \n\t else if (args[i].startsWith(\"-co\")) {\n\t ignoreComments = true;\n\t }\n\t else if (args[i].startsWith(\"-cd\")) {\n\t putCDATAIntoText = true;\n\t } \n\t else if (args[i].startsWith(\"-e\")) {\n\t createEntityRefs = true;\n\t // ...\n\t } \n\t\t else {\n\t\t filename = args[i];\n\t\t if (i != args.length - 1) {\n\t\t usage();\n\t\t }\n\t\t }\n\t\t}\n\t\t\n\t\tif (filename == null) {\n\t\t usage();\n\t\t}\n\t \t\n // Next, add the following code to the main() method, to obtain an instance of a factory that can give us a document builder.\n DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n \n dbf.setNamespaceAware(true);\n dbf.setValidating(dtdValidate || xsdValidate);\n \n // Now, add the following code to main() to get an instance of a builder, and use it to parse the specified file.\n DocumentBuilder db = dbf.newDocumentBuilder(); \n \n // The following code configures the document builder to use the error handler defined in Handle Errors. \n OutputStreamWriter errorWriter = new OutputStreamWriter(System.err,outputEncoding);\n db.setErrorHandler(new MyErrorHandler (new PrintWriter(errorWriter, true)));\n\n \n Document doc = db.parse(new File(filename)); \n \n }",
"public void dumpAsXmlFile(String pFileName);",
"public SLDStyle(String filename) {\n \n File f = new File(filename);\n setInput(f);\n readXML();\n }",
"public static void addEmployeeToXMLFile(Employee ee) {\n try {\n DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder docBuilder = docFactory.newDocumentBuilder();\n Document doc = docBuilder.newDocument();\n\n Element rootElement;\n File xmlFile = new File(\"src/task2/employee.xml\");\n\n if (xmlFile.isFile()) {\n doc = docBuilder.parse(new FileInputStream(xmlFile));\n doc.getDocumentElement().normalize();\n rootElement = doc.getDocumentElement();\n } else {\n rootElement = doc.createElement(\"department\");\n doc.appendChild(rootElement);\n }\n\n Element employee = doc.createElement(\"employee\");\n rootElement.appendChild(employee);\n\n Element id = doc.createElement(\"id\");\n id.appendChild(doc.createTextNode(ee.getId()));\n employee.appendChild(id);\n\n Element name = doc.createElement(\"name\");\n name.appendChild(doc.createTextNode(ee.getName()));\n employee.appendChild(name);\n\n Element sex = doc.createElement(\"sex\");\n sex.appendChild(doc.createTextNode(Integer.toString(ee.sex)));\n employee.appendChild(sex);\n\n Element dateOfBirth = doc.createElement(\"dateOfBirth\");\n dateOfBirth.appendChild(doc.createTextNode(ee.dateOfBirth));\n employee.appendChild(dateOfBirth);\n\n Element salary = doc.createElement(\"salary\");\n salary.appendChild(doc.createTextNode(Double.toString(ee.salary)));\n employee.appendChild(salary);\n\n Element address = doc.createElement(\"address\");\n address.appendChild(doc.createTextNode(ee.address));\n employee.appendChild(address);\n\n Element idDepartment = doc.createElement(\"idDepartment\");\n idDepartment.appendChild(doc.createTextNode(ee.idDepartment));\n employee.appendChild(idDepartment);\n\n TransformerFactory transformerFactory = TransformerFactory.newInstance();\n Transformer transformer = transformerFactory.newTransformer();\n DOMSource source = new DOMSource(doc);\n StreamResult result = new StreamResult(xmlFile);\n transformer.transform(source, result);\n System.out.println(\"File saved\");\n\n } catch (ParserConfigurationException | SAXException | IOException | DOMException | TransformerException e) {\n System.out.println(\"Error: \" + e.getMessage());\n }\n }",
"public SchemaValidator(@NotNull Class<?> clz, @NotNull String schemaFile)\r\n throws SAXException {\r\n File localFile = new File(\"src\" + File.separator + \"main\"\r\n + File.separator + \"resources\" + File.separator\r\n + \"model\" + File.separator + \"xsd\"\r\n + File.separator + schemaFile);\r\n Schema schema;\r\n if (localFile.exists()) {\r\n try {\r\n schema = createSchema(new FileInputStream(localFile));\r\n } catch (FileNotFoundException e) {\r\n schema = createSchema(clz.getResourceAsStream(\r\n \"/model/xsd/\" + schemaFile));\r\n }\r\n } else {\r\n schema = createSchema(clz.getResourceAsStream(\r\n \"/model/xsd/\" + schemaFile));\r\n }\r\n validator = schema.newValidator();\r\n validator.setFeature(\r\n \"http://apache.org/xml/features/validation/schema-full-checking\",\r\n true);\r\n }",
"private void importXMLSchema(Import bpelImport) {\n \tString namespace = bpelImport.getNamespace();\n \tString location = bpelImport.getLocation();\n \tif (location == null) {\n mLogger.severe(\"Unable to import schema document, import location is null \" + bpelImport);\n throw new XMLParseVisitorException(\"Unable to import schema document, import location is null \" + bpelImport);\n }\n \t\n \tLazyImportVisitorService vService = (LazyImportVisitorService) getVisitorService();\n \tBPELParseContext bpelParseContext = vService.getBPELParseContext();\n \tIXSDResolver xsdResolver = bpelParseContext.getXSDResolver();\n \t\n \tif(xsdResolver == null) {\n \t\tmLogger.severe(\"Unable to import schema document, must specify XSD Resolver \" + bpelImport);\n throw new XMLParseVisitorException(\"Unable to import schema document, must specify XSD Resolver \" + bpelImport);\n \t}\n \t\n \ttry {\n\t \tXMLSchema xsdDocument = xsdResolver.resolve(namespace, location);\n\t \n\t if(xsdDocument == null) {\n\t \tmLogger.severe(\"Unable to import schema document for import \" + bpelImport);\n\t throw new XMLParseVisitorException(\"Unable to import schema document for import \" + bpelImport);\t\n\t }\n\t \n\t bpelImport.setImportedObject(xsdDocument);\n \n } catch (EInsightModelException e) {\n mLogger.log(Level.SEVERE, \"Unable to import xsd document for import \" + bpelImport, e);\n throw new XMLParseVisitorException(\"Unable to import xsd document for import \" + bpelImport, e);\n }\n \n }",
"@Test\n public void testInsertServiceVersion() {\n File file = new File(\"./wsdlfile/M1.wsdl\") ;\n String wsdlclob = FileUtil.file2String(file, \"utf-8\");\n int result = OracleDBUtil.insertServiceVersion(new ServiceVersion(7, 1, \"./wsdlfile/M1.wsdl\",wsdlclob ));\n assertEquals(1, result);\n }",
"public static Schematic schematicFromAtoms(File file) {\n try {\n FileInputStream fileInputStream = new FileInputStream(file);\n ObjectInputStream objectInputStream = new ObjectInputStream(fileInputStream);\n\n return schematicFromJson(objectInputStream.readUTF());\n\n } catch (IOException err) {\n err.printStackTrace();\n return null;\n }\n }",
"private void upgradeWsdlDocumentIfNeeded(InputSource source) {\n DocumentBuilder documentParser = XmlUtil.getDocumentBuilder();\n\n // install our problem handler as document parser's error handler\n documentParser.setErrorHandler(problemHandler.asSaxErrorHandler());\n\n // parse content\n Document document;\n try {\n document = documentParser.parse(source);\n // halt on parse errors\n if (problemHandler.getProblemCount() > 0)\n return;\n }\n catch (IOException e) {\n Problem problem = new Problem(Problem.LEVEL_ERROR, \"document is not readable\", e);\n problem.setResource(latestImportURI);\n problemHandler.add(problem);\n return;\n }\n catch (SAXException e) {\n Problem problem = new Problem(Problem.LEVEL_ERROR, \"document contains invalid xml\", e);\n problem.setResource(latestImportURI);\n problemHandler.add(problem);\n return;\n }\n finally {\n // reset error handling behavior\n documentParser.setErrorHandler(null);\n }\n\n // check whether the wsdl document requires upgrading\n if (hasUpgradableElements(document)) {\n try {\n // create wsdl upgrader\n Transformer wsdlUpgrader = getWsdlUpgradeTemplates().newTransformer();\n\n // install our problem handler as transformer's error listener\n wsdlUpgrader.setErrorListener(problemHandler.asTraxErrorListener());\n\n // upgrade into memory stream\n ByteArrayOutputStream resultStream = new ByteArrayOutputStream();\n wsdlUpgrader.transform(new DOMSource(document), new StreamResult(resultStream));\n\n // replace existing source with upgraded document\n source.setByteStream(new ByteArrayInputStream(resultStream.toByteArray()));\n\n log.debug(\"upgraded wsdl document: \" + latestImportURI);\n }\n catch (TransformerException e) {\n Problem problem = new Problem(Problem.LEVEL_ERROR, \"wsdl upgrade failed\", e);\n problem.setResource(latestImportURI);\n problemHandler.add(problem);\n }\n }\n else {\n // if the source is a stream, reset it\n InputStream sourceStream = source.getByteStream();\n if (sourceStream != null) {\n try {\n sourceStream.reset();\n }\n catch (IOException e) {\n log.error(\"could not reset source stream: \" + latestImportURI, e);\n }\n }\n }\n }",
"public org.apache.xmlbeans.XmlString xgetXsd()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(XSD$2, 0);\n return target;\n }\n }",
"public void transformToSecondXml();",
"public void setUpNewXMLFile(File file) {\n\t\tPrintWriter pw = null;\n\t\ttry {\n\t\t\tpw = new PrintWriter(file, \"UTF-8\");\n\t\t\tpw.write(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?>\\n\");\n\t\t\tpw.write(\"<\" + defaultDocumentElement + \">\\n\");\n\t\t\tpw.write(\"</\" + defaultDocumentElement + \">\\n\");\n\t\t\tpw.close();\n\t\t} catch(Exception e) {\n\t\t\tSystem.out.println(\"Error creating new XML File.\");\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tpw.close();\n\t\t\t} catch(Exception e) {\n\t\t\t\t//Seems like it was already closed.\n\t\t\t}\n\t\t}\n\t}",
"private boolean validate() {\r\n\t\ttry {\r\n\t\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\r\n\t\t\t//validate the schema\r\n\t\t\tdbFactory.setValidating(true);\r\n\t\t\tDocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\r\n\t\t\t//handling errors\r\n\t\t\tdBuilder.setErrorHandler(new ErrorHandler() {\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void error(SAXParseException arg0) throws SAXException {\r\n\t\t\t\t\tthrow new SAXException();\r\n\t\t\t\t}\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void fatalError(SAXParseException arg0) throws SAXException {\r\n\t\t\t\t\tthrow new SAXException();\r\n\t\t\t\t}\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void warning(SAXParseException arg0) throws SAXException {\r\n\t\t\t\t\tthrow new SAXException();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t});\r\n\t\t\tFile file = new File(tempPath);\r\n\t\t\tFileInputStream fis = new FileInputStream(file);\r\n\t\t\tDocument doc = dBuilder.parse(fis);\r\n\t\t\t//if it matches the schema then parse the temp xml file into the original xml file\r\n\t\t\tdoc.setXmlStandalone(true);\r\n\t\t\tTransformerFactory tf = TransformerFactory.newInstance();\r\n\t\t\tTransformer transformer = tf.newTransformer();\r\n\t\t\ttransformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\r\n\t\t\ttransformer.setOutputProperty(OutputKeys.ENCODING, \"ISO-8859-1\");\r\n\t\t\tDOMImplementation domImp = doc.getImplementation();\r\n\t\t\tDocumentType docType = domImp.createDocumentType(\"doctype\", \"SYSTEM\", new File(path).getName().substring(0, new File(path).getName().length() - 4) + \".dtd\");\r\n\t\t\ttransformer.setOutputProperty(OutputKeys.DOCTYPE_SYSTEM, docType.getSystemId());\r\n\t\t\tDOMSource domSource = new DOMSource(doc);\r\n\t\t\tFileOutputStream fos = new FileOutputStream(new File(path));\r\n\t\t\ttransformer.transform(domSource, new StreamResult(fos));\r\n\t\t\tfos.close();\r\n\t\t\tfis.close();\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tcatch (ParserConfigurationException e) {\r\n\t\t\ttry {\r\n\t\t\t\tthrow new ParserConfigurationException();\r\n\t\t\t} catch (RuntimeException | ParserConfigurationException err) {\r\n\t\t\t}\r\n\t\t} catch (TransformerConfigurationException e) {\r\n\t\t\ttry {\r\n\t\t\t\tthrow new TransformerConfigurationException();\r\n\t\t\t} catch (RuntimeException | TransformerConfigurationException err) {\r\n\t\t\t}\r\n\t\t} catch (TransformerException e) {\r\n\t\t\ttry {\r\n\t\t\t\tthrow new TransformerException(e);\r\n\t\t\t} catch (RuntimeException | TransformerException err) {\r\n\t\t\t}\r\n\t\t} catch (SAXException e) {\r\n\t\t\ttry {\r\n\t\t\t\tthrow new SAXException();\r\n\t\t\t} catch (RuntimeException | SAXException err) {\r\n\t\t\t}\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\ttry {\r\n\t\t\t\tthrow new IOException();\r\n\t\t\t} catch (RuntimeException | IOException err) {\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"@Override\n\tpublic Definitions convertToXmlBean(String xmlstring) {\n\t\tfinal InputStream stream = string2InputStream(xmlstring);\n\t\ttry {\n\t\t\tfinal JAXBContext jaxbContext = JAXBContext.newInstance(Definitions.class);\n\n\t\t\tfinal Unmarshaller jaxbUnmarshaller = jaxbContext.createUnmarshaller();\n\t\t\tjaxbUnmarshaller.setSchema(getToscaSchema());\n\n\t\t\treturn (Definitions) jaxbUnmarshaller.unmarshal(stream);\n\t\t} catch (final JAXBException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}",
"public static void addToXML(CD c)\n\t\t\tthrows TransformerException, FileNotFoundException, SAXException, IOException {\n\t\ttry {\n\t\t\tDocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();\n\t\t\tDocumentBuilder docBuilder = docFactory.newDocumentBuilder();\n\n\t\t\t// root elements\n\t\t\tDocument doc = docBuilder.newDocument();\n\t\t\tElement rootElement;\n\t\t\tString filePath = \"src/Part2_Ex3/CD.xml\";\n\t\t\tFile xmlFile = new File(filePath);\n\n\t\t\tif (xmlFile.isFile()) {\n\t\t\t\tdoc = docBuilder.parse(new FileInputStream(xmlFile));\n\t\t\t\tdoc.getDocumentElement().normalize();\n\t\t\t\trootElement = doc.getDocumentElement();\n\t\t\t} else {\n\t\t\t\trootElement = doc.createElement(\"CDs\");\n\t\t\t\tdoc.appendChild(rootElement);\n\t\t\t}\n\n\t\t\tElement cd = doc.createElement(\"CD\");\n\t\t\trootElement.appendChild(cd);\n\n\t\t\t// id element\n\t\t\tElement id = doc.createElement(\"id\");\n\t\t\tid.appendChild(doc.createTextNode(Integer.toString(c.getId())));\n\t\t\tcd.appendChild(id);\n\t\t\t\n\t\t\t// name\n\t\t\tElement name = doc.createElement(\"name\");\n\t\t\tname.appendChild(doc.createTextNode(c.getName()));\n\t\t\tcd.appendChild(name);\n\n\t\t\t//singer\n\t\t\tElement singer = doc.createElement(\"singer\");\n\t\t\tsinger.appendChild((doc.createTextNode(c.getSinger())));\n\t\t\tcd.appendChild(singer);\n\n\t\t\t// number songs\n\t\t\tElement numbersongs = doc.createElement(\"numbersongs\");\n\t\t\tnumbersongs.appendChild(doc.createTextNode(Integer.toString(c.getNumOfSong())));\n\t\t\tcd.appendChild(numbersongs);\n\t\t\t\n\t\t\t// price\n\t\t\tElement price = doc.createElement(\"price\");\n\t\t\tprice.appendChild(doc.createTextNode(Double.toString(c.getPrice())));\n\t\t\tcd.appendChild(price);\n\t\t\t\n\t\t\t// write the content into xml file\n\t\t\tTransformerFactory transformerFactory = TransformerFactory.newInstance();\n\t\t\tTransformer transformer = transformerFactory.newTransformer();\n\t\t\tDOMSource source = new DOMSource(doc);\n\t\t\tStreamResult result = new StreamResult(xmlFile);\n\t\t\ttransformer.transform(source, result);\n\n\t\t\tSystem.out.println(\"Add completed !\");\n\n\t\t} catch (ParserConfigurationException pce) {\n\t\t\tSystem.out.println(\"Cannot insert new CD. Error: \" + pce.getMessage());\n\t\t}\n\t}",
"public void createXml(String fileName) { \n\t\tElement root = this.document.createElement(\"TSETInfoTables\"); \n\t\tthis.document.appendChild(root); \n\t\tElement metaDB = this.document.createElement(\"metaDB\"); \n\t\tElement table = this.document.createElement(\"table\"); \n\t\t\n\t\tElement column = this.document.createElement(\"column\");\n\t\tElement columnName = this.document.createElement(\"columnName\");\n\t\tcolumnName.appendChild(this.document.createTextNode(\"test\")); \n\t\tcolumn.appendChild(columnName); \n\t\tElement columnType = this.document.createElement(\"columnType\"); \n\t\tcolumnType.appendChild(this.document.createTextNode(\"INTEGER\")); \n\t\tcolumn.appendChild(columnType); \n\t\t\n\t\ttable.appendChild(column);\n\t\tmetaDB.appendChild(table);\n\t\troot.appendChild(metaDB); \n\t\t\n\t\tTransformerFactory tf = TransformerFactory.newInstance(); \n\t\ttry { \n\t\t\tTransformer transformer = tf.newTransformer(); \n\t\t\tDOMSource source = new DOMSource(document); \n\t\t\ttransformer.setOutputProperty(OutputKeys.ENCODING, \"gb2312\"); \n\t\t\ttransformer.setOutputProperty(OutputKeys.INDENT, \"yes\"); \n\t\t\tPrintWriter pw = new PrintWriter(new FileOutputStream(fileName)); \n\t\t\tStreamResult result = new StreamResult(pw); \n\t\t\ttransformer.transform(source, result); \n\t\t\tlogger.info(\"Generate XML file success!\");\n\t\t} catch (TransformerConfigurationException e) { \n\t\t\tlogger.error(e.getMessage());\n\t\t} catch (IllegalArgumentException e) { \n\t\t\tlogger.error(e.getMessage());\n\t\t} catch (FileNotFoundException e) { \n\t\t\tlogger.error(e.getMessage());\n\t\t} catch (TransformerException e) { \n\t\t\tlogger.error(e.getMessage());\n\t\t} \n\t}",
"public static Document getDocument(File file, boolean namespaceAware) {\r\n Document document = null;\r\n try {\r\n // parse an XML document into a DOM tree\r\n DocumentBuilderFactory documentFactory = DocumentBuilderFactory\r\n .newInstance();\r\n documentFactory.setNamespaceAware(namespaceAware);\r\n // documentFactory.setAttribute(\"http://java.sun.com/xml/jaxp/properties/schemaLanguage\",\r\n // \"http://www.w3.org/2001/XMLSchema\");\r\n DocumentBuilder parser = documentFactory.newDocumentBuilder();\r\n\r\n document = parser.parse(file);\r\n } catch (Exception e) {\r\n log.error(\"getDocument error: \", e);\r\n }\r\n return document;\r\n }",
"public static void validateXMLSchema(String xsdPath, Source xml) throws IllegalArgumentException\n {\n try\n {\n SchemaFactory factory = SchemaFactory.newInstance(\"http://www.w3.org/2001/XMLSchema\");\n Schema schema = factory.newSchema(new File(xsdPath));\n Validator validator = schema.newValidator();\n validator.validate(xml);\n }\n catch (SAXException | IOException e)\n {\n throw new IllegalArgumentException(\"Invalid Entity XML\", e);\n }\n }",
"public String getSchema(String fileContent) {\n\t\ttry (StringReader reader = new StringReader(fileContent)) {\n\t\t\tSAXBuilder sax = new SAXBuilder();\n\t\t\tDocument doc = sax.build(reader);\n\t\t\treturn getSchema(doc);\n\t\t} catch (JDOMException | IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}",
"private void renameOriginalDomainConfig() {\n File domXml = getDASDomainXML();\n movedDomXml = new File(domXml.getParentFile(), \"domain.xml.moved\");\n report(\"moved-domain\", domXml.renameTo(movedDomXml));\n }",
"public void loadData(){\n try {\n entities.clear();\n\n DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder documentBuilder = documentBuilderFactory.newDocumentBuilder();\n Document document = documentBuilder.parse(fileName);\n\n Node root = document.getDocumentElement();\n NodeList nodeList = root.getChildNodes();\n for (int i = 0; i < nodeList.getLength(); i++){\n Node node = nodeList.item(i);\n if (node.getNodeType() == Node.ELEMENT_NODE){\n Element element = (Element) node;\n Department department = createDepartmentFromElement(element);\n try{\n super.save(department);\n } catch (RepositoryException | ValidatorException e) {\n e.printStackTrace();\n }\n }\n }\n } catch (SAXException | ParserConfigurationException | IOException e) {\n e.printStackTrace();\n }\n }",
"public static void editXML(String dim) throws Exception {\n\t\tDocumentBuilderFactory builderFactory = DocumentBuilderFactory.newInstance();\n\t\tDocumentBuilder builder = builderFactory.newDocumentBuilder();\n\t\tString fileName = PropertiesFile.getInstance().getProperty(\"input_qualifier\")+ \".xml\";\n\t\tDocument xmlDocument = builder.parse(new File(getFullyQualifiedFileName(fileName)));\n\n\t\t/*\n\t\t * String expression = \"ConfigFramework/DCDpp/Servers/Server/Zone\"; XPath xPath\n\t\t * = XPathFactory.newInstance().newXPath(); NodeList nodeList = (NodeList)\n\t\t * xPath.compile(expression).evaluate(xmlDocument, XPathConstants.NODESET); Node\n\t\t * zone = nodeList.item(0);\n\t\t * \n\t\t * String zoneRange = zone.getTextContent(); zoneRange = zoneRange.substring(0,\n\t\t * zoneRange.lastIndexOf(\".\") + 1) + dim; zone.setTextContent(zoneRange);\n\t\t */\n\n\t\tTransformerFactory transformerFactory = TransformerFactory.newInstance();\n\t\tTransformer transformer = transformerFactory.newTransformer();\n\t\tDOMSource domSource = new DOMSource(xmlDocument);\n\t\tString s = getOutputFolderName() + \"/\" + fileName;\n\t\tStreamResult streamResult = new StreamResult(new File(s));\n\t\ttransformer.transform(domSource, streamResult);\n\n\t}",
"private String writeValidXMLFile() throws java.io.IOException {\n String sFileName = \"\\\\testfile1.xml\";\n FileWriter oOut = new FileWriter(sFileName);\n\n oOut.write(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?>\");\n oOut.write(\"<paramFile fileCode=\\\"06010101\\\">\");\n oOut.write(\"<plot>\");\n oOut.write(\"<timesteps>3</timesteps>\");\n oOut.write(\"<yearsPerTimestep>1</yearsPerTimestep>\");\n oOut.write(\"<randomSeed>1</randomSeed>\");\n oOut.write(\"<plot_lenX>200.0</plot_lenX>\");\n oOut.write(\"<plot_lenY>200.0</plot_lenY>\");\n oOut.write(\"<plot_precip_mm_yr>1150.645781</plot_precip_mm_yr>\");\n oOut.write(\"<plot_temp_C>12.88171785</plot_temp_C>\");\n oOut.write(\"<plot_latitude>55.37</plot_latitude>\");\n oOut.write(\"</plot>\");\n oOut.write(\"<trees>\");\n oOut.write(\"<tr_speciesList>\");\n oOut.write(\"<tr_species speciesName=\\\"Species_1\\\" />\");\n oOut.write(\"<tr_species speciesName=\\\"Species_2\\\" />\");\n oOut.write(\"<tr_species speciesName=\\\"Species_3\\\" />\");\n oOut.write(\"<tr_species speciesName=\\\"Species_4\\\" />\");\n oOut.write(\"<tr_species speciesName=\\\"Species_5\\\" />\");\n oOut.write(\"</tr_speciesList>\");\n oOut.write(\"<tr_seedDiam10Cm>0.1</tr_seedDiam10Cm>\");\n oOut.write(\"<tr_minAdultDBH>\");\n oOut.write(\"<tr_madVal species=\\\"Species_1\\\">10.0</tr_madVal>\");\n oOut.write(\"<tr_madVal species=\\\"Species_2\\\">10.0</tr_madVal>\");\n oOut.write(\"<tr_madVal species=\\\"Species_3\\\">10.0</tr_madVal>\");\n oOut.write(\"<tr_madVal species=\\\"Species_4\\\">10.0</tr_madVal>\");\n oOut.write(\"<tr_madVal species=\\\"Species_5\\\">10.0</tr_madVal>\");\n oOut.write(\"</tr_minAdultDBH>\");\n oOut.write(\"<tr_maxSeedlingHeight>\");\n oOut.write(\"<tr_mshVal species=\\\"Species_1\\\">1.35</tr_mshVal>\");\n oOut.write(\"<tr_mshVal species=\\\"Species_2\\\">1.35</tr_mshVal>\");\n oOut.write(\"<tr_mshVal species=\\\"Species_3\\\">1.35</tr_mshVal>\");\n oOut.write(\"<tr_mshVal species=\\\"Species_4\\\">1.35</tr_mshVal>\");\n oOut.write(\"<tr_mshVal species=\\\"Species_5\\\">1.35</tr_mshVal>\");\n oOut.write(\"</tr_maxSeedlingHeight>\");\n oOut.write(\"<tr_sizeClasses>\");\n oOut.write(\"<tr_sizeClass sizeKey=\\\"s1.0\\\"/>\");\n oOut.write(\"<tr_sizeClass sizeKey=\\\"s10.0\\\"/>\");\n oOut.write(\"<tr_sizeClass sizeKey=\\\"s20.0\\\"/>\");\n oOut.write(\"<tr_sizeClass sizeKey=\\\"s30.0\\\"/>\");\n oOut.write(\"<tr_sizeClass sizeKey=\\\"s40.0\\\"/>\");\n oOut.write(\"<tr_sizeClass sizeKey=\\\"s50.0\\\"/>\");\n oOut.write(\"</tr_sizeClasses>\");\n oOut.write(\"<tr_initialDensities>\");\n oOut.write(\"<tr_idVals whatSpecies=\\\"Species_1\\\">\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s20.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s30.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s40.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s50.0\\\">250</tr_initialDensity>\");\n oOut.write(\"</tr_idVals>\");\n oOut.write(\"<tr_idVals whatSpecies=\\\"Species_1\\\">\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s20.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s30.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s40.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s50.0\\\">250</tr_initialDensity>\");\n oOut.write(\"</tr_idVals>\");\n oOut.write(\"<tr_idVals whatSpecies=\\\"Species_2\\\">\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s20.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s30.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s40.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s50.0\\\">250</tr_initialDensity>\");\n oOut.write(\"</tr_idVals>\");\n oOut.write(\"<tr_idVals whatSpecies=\\\"Species_3\\\">\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s20.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s30.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s40.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s50.0\\\">250</tr_initialDensity>\");\n oOut.write(\"</tr_idVals>\");\n oOut.write(\"<tr_idVals whatSpecies=\\\"Species_4\\\">\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s20.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s30.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s40.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s50.0\\\">250</tr_initialDensity>\");\n oOut.write(\"</tr_idVals>\");\n oOut.write(\"<tr_idVals whatSpecies=\\\"Species_5\\\">\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s20.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s30.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s40.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s50.0\\\">250</tr_initialDensity>\");\n oOut.write(\"</tr_idVals>\");\n oOut.write(\"</tr_initialDensities>\");\n oOut.write(\"</trees>\");\n oOut.write(\"<allometry>\");\n oOut.write(\"<tr_canopyHeight>\");\n oOut.write(\"<tr_chVal species=\\\"Species_1\\\">39.48</tr_chVal>\");\n oOut.write(\"<tr_chVal species=\\\"Species_2\\\">39.48</tr_chVal>\");\n oOut.write(\"<tr_chVal species=\\\"Species_3\\\">39.48</tr_chVal>\");\n oOut.write(\"<tr_chVal species=\\\"Species_4\\\">39.48</tr_chVal>\");\n oOut.write(\"<tr_chVal species=\\\"Species_5\\\">39.48</tr_chVal>\");\n oOut.write(\"</tr_canopyHeight>\");\n oOut.write(\"<tr_stdAsympCrownRad>\");\n oOut.write(\"<tr_sacrVal species=\\\"Species_1\\\">0.0549</tr_sacrVal>\");\n oOut.write(\"<tr_sacrVal species=\\\"Species_2\\\">0.0549</tr_sacrVal>\");\n oOut.write(\"<tr_sacrVal species=\\\"Species_3\\\">0.0549</tr_sacrVal>\");\n oOut.write(\"<tr_sacrVal species=\\\"Species_4\\\">0.0549</tr_sacrVal>\");\n oOut.write(\"<tr_sacrVal species=\\\"Species_5\\\">0.0549</tr_sacrVal>\");\n oOut.write(\"</tr_stdAsympCrownRad>\");\n oOut.write(\"<tr_stdCrownRadExp>\");\n oOut.write(\"<tr_screVal species=\\\"Species_1\\\">1.0</tr_screVal>\");\n oOut.write(\"<tr_screVal species=\\\"Species_2\\\">1.0</tr_screVal>\");\n oOut.write(\"<tr_screVal species=\\\"Species_3\\\">1.0</tr_screVal>\");\n oOut.write(\"<tr_screVal species=\\\"Species_4\\\">1.0</tr_screVal>\");\n oOut.write(\"<tr_screVal species=\\\"Species_5\\\">1.0</tr_screVal>\");\n oOut.write(\"</tr_stdCrownRadExp>\");\n oOut.write(\"<tr_conversionDiam10ToDBH>\");\n oOut.write(\"<tr_cdtdVal species=\\\"Species_1\\\">0.8008</tr_cdtdVal>\");\n oOut.write(\"<tr_cdtdVal species=\\\"Species_2\\\">0.8008</tr_cdtdVal>\");\n oOut.write(\"<tr_cdtdVal species=\\\"Species_3\\\">0.8008</tr_cdtdVal>\");\n oOut.write(\"<tr_cdtdVal species=\\\"Species_4\\\">0.8008</tr_cdtdVal>\");\n oOut.write(\"<tr_cdtdVal species=\\\"Species_5\\\">0.8008</tr_cdtdVal>\");\n oOut.write(\"</tr_conversionDiam10ToDBH>\");\n oOut.write(\"<tr_interceptDiam10ToDBH>\");\n oOut.write(\"<tr_idtdVal species=\\\"Species_1\\\">0</tr_idtdVal>\");\n oOut.write(\"<tr_idtdVal species=\\\"Species_2\\\">0</tr_idtdVal>\");\n oOut.write(\"<tr_idtdVal species=\\\"Species_3\\\">0</tr_idtdVal>\");\n oOut.write(\"<tr_idtdVal species=\\\"Species_4\\\">0</tr_idtdVal>\");\n oOut.write(\"<tr_idtdVal species=\\\"Species_5\\\">0</tr_idtdVal>\");\n oOut.write(\"</tr_interceptDiam10ToDBH>\");\n oOut.write(\"<tr_stdAsympCrownHt>\");\n oOut.write(\"<tr_sachVal species=\\\"Species_1\\\">0.389</tr_sachVal>\");\n oOut.write(\"<tr_sachVal species=\\\"Species_2\\\">0.389</tr_sachVal>\");\n oOut.write(\"<tr_sachVal species=\\\"Species_3\\\">0.389</tr_sachVal>\");\n oOut.write(\"<tr_sachVal species=\\\"Species_4\\\">0.389</tr_sachVal>\");\n oOut.write(\"<tr_sachVal species=\\\"Species_5\\\">0.389</tr_sachVal>\");\n oOut.write(\"</tr_stdAsympCrownHt>\");\n oOut.write(\"<tr_stdCrownHtExp>\");\n oOut.write(\"<tr_scheVal species=\\\"Species_1\\\">1.0</tr_scheVal>\");\n oOut.write(\"<tr_scheVal species=\\\"Species_2\\\">1.0</tr_scheVal>\");\n oOut.write(\"<tr_scheVal species=\\\"Species_3\\\">1.0</tr_scheVal>\");\n oOut.write(\"<tr_scheVal species=\\\"Species_4\\\">1.0</tr_scheVal>\");\n oOut.write(\"<tr_scheVal species=\\\"Species_5\\\">1.0</tr_scheVal>\");\n oOut.write(\"</tr_stdCrownHtExp>\");\n oOut.write(\"<tr_slopeOfHeight-Diam10>\");\n oOut.write(\"<tr_sohdVal species=\\\"Species_1\\\">0.03418</tr_sohdVal>\");\n oOut.write(\"<tr_sohdVal species=\\\"Species_2\\\">0.03418</tr_sohdVal>\");\n oOut.write(\"<tr_sohdVal species=\\\"Species_3\\\">0.03418</tr_sohdVal>\");\n oOut.write(\"<tr_sohdVal species=\\\"Species_4\\\">0.03418</tr_sohdVal>\");\n oOut.write(\"<tr_sohdVal species=\\\"Species_5\\\">0.03418</tr_sohdVal>\");\n oOut.write(\"</tr_slopeOfHeight-Diam10>\");\n oOut.write(\"<tr_slopeOfAsymHeight>\");\n oOut.write(\"<tr_soahVal species=\\\"Species_1\\\">0.0299</tr_soahVal>\");\n oOut.write(\"<tr_soahVal species=\\\"Species_2\\\">0.0299</tr_soahVal>\");\n oOut.write(\"<tr_soahVal species=\\\"Species_3\\\">0.0299</tr_soahVal>\");\n oOut.write(\"<tr_soahVal species=\\\"Species_4\\\">0.0299</tr_soahVal>\");\n oOut.write(\"<tr_soahVal species=\\\"Species_5\\\">0.0299</tr_soahVal>\");\n oOut.write(\"</tr_slopeOfAsymHeight>\");\n oOut.write(\"<tr_whatSeedlingHeightDiam>\");\n oOut.write(\"<tr_wsehdVal species=\\\"Species_1\\\">0</tr_wsehdVal>\");\n oOut.write(\"<tr_wsehdVal species=\\\"Species_2\\\">0</tr_wsehdVal>\");\n oOut.write(\"<tr_wsehdVal species=\\\"Species_3\\\">0</tr_wsehdVal>\");\n oOut.write(\"<tr_wsehdVal species=\\\"Species_4\\\">0</tr_wsehdVal>\");\n oOut.write(\"<tr_wsehdVal species=\\\"Species_5\\\">0</tr_wsehdVal>\");\n oOut.write(\"</tr_whatSeedlingHeightDiam>\");\n oOut.write(\"<tr_whatSaplingHeightDiam>\");\n oOut.write(\"<tr_wsahdVal species=\\\"Species_1\\\">0</tr_wsahdVal>\");\n oOut.write(\"<tr_wsahdVal species=\\\"Species_2\\\">0</tr_wsahdVal>\");\n oOut.write(\"<tr_wsahdVal species=\\\"Species_3\\\">0</tr_wsahdVal>\");\n oOut.write(\"<tr_wsahdVal species=\\\"Species_4\\\">0</tr_wsahdVal>\");\n oOut.write(\"<tr_wsahdVal species=\\\"Species_5\\\">0</tr_wsahdVal>\");\n oOut.write(\"</tr_whatSaplingHeightDiam>\");\n oOut.write(\"<tr_whatAdultHeightDiam>\");\n oOut.write(\"<tr_wahdVal species=\\\"Species_1\\\">0</tr_wahdVal>\");\n oOut.write(\"<tr_wahdVal species=\\\"Species_2\\\">0</tr_wahdVal>\");\n oOut.write(\"<tr_wahdVal species=\\\"Species_3\\\">0</tr_wahdVal>\");\n oOut.write(\"<tr_wahdVal species=\\\"Species_4\\\">0</tr_wahdVal>\");\n oOut.write(\"<tr_wahdVal species=\\\"Species_5\\\">0</tr_wahdVal>\");\n oOut.write(\"</tr_whatAdultHeightDiam>\");\n oOut.write(\"<tr_whatAdultCrownRadDiam>\");\n oOut.write(\"<tr_wacrdVal species=\\\"Species_1\\\">0</tr_wacrdVal>\");\n oOut.write(\"<tr_wacrdVal species=\\\"Species_2\\\">0</tr_wacrdVal>\");\n oOut.write(\"<tr_wacrdVal species=\\\"Species_3\\\">0</tr_wacrdVal>\");\n oOut.write(\"<tr_wacrdVal species=\\\"Species_4\\\">0</tr_wacrdVal>\");\n oOut.write(\"<tr_wacrdVal species=\\\"Species_5\\\">0</tr_wacrdVal>\");\n oOut.write(\"</tr_whatAdultCrownRadDiam>\");\n oOut.write(\"<tr_whatAdultCrownHeightHeight>\");\n oOut.write(\"<tr_wachhVal species=\\\"Species_1\\\">0</tr_wachhVal>\");\n oOut.write(\"<tr_wachhVal species=\\\"Species_2\\\">0</tr_wachhVal>\");\n oOut.write(\"<tr_wachhVal species=\\\"Species_3\\\">0</tr_wachhVal>\");\n oOut.write(\"<tr_wachhVal species=\\\"Species_4\\\">0</tr_wachhVal>\");\n oOut.write(\"<tr_wachhVal species=\\\"Species_5\\\">0</tr_wachhVal>\");\n oOut.write(\"</tr_whatAdultCrownHeightHeight>\");\n oOut.write(\"<tr_whatSaplingCrownRadDiam>\");\n oOut.write(\"<tr_wscrdVal species=\\\"Species_1\\\">0</tr_wscrdVal>\");\n oOut.write(\"<tr_wscrdVal species=\\\"Species_2\\\">0</tr_wscrdVal>\");\n oOut.write(\"<tr_wscrdVal species=\\\"Species_3\\\">0</tr_wscrdVal>\");\n oOut.write(\"<tr_wscrdVal species=\\\"Species_4\\\">0</tr_wscrdVal>\");\n oOut.write(\"<tr_wscrdVal species=\\\"Species_5\\\">0</tr_wscrdVal>\");\n oOut.write(\"</tr_whatSaplingCrownRadDiam>\");\n oOut.write(\"<tr_whatSaplingCrownHeightHeight>\");\n oOut.write(\"<tr_wschhVal species=\\\"Species_1\\\">0</tr_wschhVal>\");\n oOut.write(\"<tr_wschhVal species=\\\"Species_2\\\">0</tr_wschhVal>\");\n oOut.write(\"<tr_wschhVal species=\\\"Species_3\\\">0</tr_wschhVal>\");\n oOut.write(\"<tr_wschhVal species=\\\"Species_4\\\">0</tr_wschhVal>\");\n oOut.write(\"<tr_wschhVal species=\\\"Species_5\\\">0</tr_wschhVal>\");\n oOut.write(\"</tr_whatSaplingCrownHeightHeight>\");\n oOut.write(\"</allometry>\");\n oOut.write(\"<behaviorList>\");\n oOut.write(\"<behavior>\");\n oOut.write(\"<behaviorName>QualityVigorClassifier</behaviorName>\");\n oOut.write(\"<version>1</version>\");\n oOut.write(\"<listPosition>1</listPosition>\");\n oOut.write(\"<applyTo species=\\\"Species_2\\\" type=\\\"Adult\\\"/>\");\n oOut.write(\"<applyTo species=\\\"Species_3\\\" type=\\\"Adult\\\"/>\");\n oOut.write(\"<applyTo species=\\\"Species_4\\\" type=\\\"Adult\\\"/>\");\n oOut.write(\"<applyTo species=\\\"Species_5\\\" type=\\\"Adult\\\"/>\");\n oOut.write(\"</behavior>\");\n oOut.write(\"</behaviorList>\");\n oOut.write(\"<QualityVigorClassifier1>\");\n oOut.write(\"<ma_classifierInitialConditions>\");\n oOut.write(\"<ma_classifierSizeClass>\");\n oOut.write(\"<ma_classifierBeginDBH>10</ma_classifierBeginDBH>\");\n oOut.write(\"<ma_classifierEndDBH>20</ma_classifierEndDBH>\");\n oOut.write(\"<ma_classifierProbVigorous>\");\n oOut.write(\"<ma_cpvVal species=\\\"Species_2\\\">0.78</ma_cpvVal>\");\n oOut.write(\"<ma_cpvVal species=\\\"Species_3\\\">0.88</ma_cpvVal>\");\n oOut.write(\"<ma_cpvVal species=\\\"Species_4\\\">0</ma_cpvVal>\");\n oOut.write(\"<ma_cpvVal species=\\\"Species_5\\\">0.61</ma_cpvVal>\");\n oOut.write(\"</ma_classifierProbVigorous>\");\n oOut.write(\"<ma_classifierProbSawlog>\");\n oOut.write(\"<ma_cpsVal species=\\\"Species_2\\\">0.33</ma_cpsVal>\");\n oOut.write(\"<ma_cpsVal species=\\\"Species_3\\\">0.64</ma_cpsVal>\");\n oOut.write(\"<ma_cpsVal species=\\\"Species_4\\\">1</ma_cpsVal>\");\n oOut.write(\"<ma_cpsVal species=\\\"Species_5\\\">0.55</ma_cpsVal>\");\n oOut.write(\"</ma_classifierProbSawlog>\");\n oOut.write(\"</ma_classifierSizeClass>\");\n oOut.write(\"<ma_classifierSizeClass>\");\n oOut.write(\"<ma_classifierBeginDBH>20</ma_classifierBeginDBH>\");\n oOut.write(\"<ma_classifierEndDBH>30</ma_classifierEndDBH>\");\n oOut.write(\"<ma_classifierProbVigorous>\");\n oOut.write(\"<ma_cpvVal species=\\\"Species_2\\\">0.33</ma_cpvVal>\");\n oOut.write(\"<ma_cpvVal species=\\\"Species_3\\\">0.81</ma_cpvVal>\");\n oOut.write(\"<ma_cpvVal species=\\\"Species_4\\\">0.64</ma_cpvVal>\");\n oOut.write(\"<ma_cpvVal species=\\\"Species_5\\\">0.32</ma_cpvVal>\");\n oOut.write(\"</ma_classifierProbVigorous>\");\n oOut.write(\"<ma_classifierProbSawlog>\");\n oOut.write(\"<ma_cpsVal species=\\\"Species_2\\\">0.32</ma_cpsVal>\");\n oOut.write(\"<ma_cpsVal species=\\\"Species_3\\\">0.69</ma_cpsVal>\");\n oOut.write(\"<ma_cpsVal species=\\\"Species_4\\\">0.33</ma_cpsVal>\");\n oOut.write(\"<ma_cpsVal species=\\\"Species_5\\\">0.58</ma_cpsVal>\");\n oOut.write(\"</ma_classifierProbSawlog>\");\n oOut.write(\"</ma_classifierSizeClass>\");\n oOut.write(\"<ma_classifierSizeClass>\");\n oOut.write(\"<ma_classifierBeginDBH>30</ma_classifierBeginDBH>\");\n oOut.write(\"<ma_classifierEndDBH>40</ma_classifierEndDBH>\");\n oOut.write(\"<ma_classifierProbVigorous>\");\n oOut.write(\"<ma_cpvVal species=\\\"Species_2\\\">0.34</ma_cpvVal>\");\n oOut.write(\"<ma_cpvVal species=\\\"Species_3\\\">0.57</ma_cpvVal>\");\n oOut.write(\"<ma_cpvVal species=\\\"Species_4\\\">0.26</ma_cpvVal>\");\n oOut.write(\"<ma_cpvVal species=\\\"Species_5\\\">0.46</ma_cpvVal>\");\n oOut.write(\"</ma_classifierProbVigorous>\");\n oOut.write(\"<ma_classifierProbSawlog>\");\n oOut.write(\"<ma_cpsVal species=\\\"Species_2\\\">0.13</ma_cpsVal>\");\n oOut.write(\"<ma_cpsVal species=\\\"Species_3\\\">0.36</ma_cpsVal>\");\n oOut.write(\"<ma_cpsVal species=\\\"Species_4\\\">0.66</ma_cpsVal>\");\n oOut.write(\"<ma_cpsVal species=\\\"Species_5\\\">0.45</ma_cpsVal>\");\n oOut.write(\"</ma_classifierProbSawlog>\");\n oOut.write(\"</ma_classifierSizeClass>\");\n oOut.write(\"</ma_classifierInitialConditions>\");\n oOut.write(\"<ma_classifierVigBeta0>\");\n oOut.write(\"<ma_cvb0Val species=\\\"Species_2\\\">0.1</ma_cvb0Val>\");\n oOut.write(\"<ma_cvb0Val species=\\\"Species_3\\\">0</ma_cvb0Val>\");\n oOut.write(\"<ma_cvb0Val species=\\\"Species_4\\\">0.3</ma_cvb0Val>\");\n oOut.write(\"<ma_cvb0Val species=\\\"Species_5\\\">0.4</ma_cvb0Val>\");\n oOut.write(\"</ma_classifierVigBeta0>\");\n oOut.write(\"<ma_classifierVigBeta11>\");\n oOut.write(\"<ma_cvb11Val species=\\\"Species_2\\\">0.2</ma_cvb11Val>\");\n oOut.write(\"<ma_cvb11Val species=\\\"Species_3\\\">2.35</ma_cvb11Val>\");\n oOut.write(\"<ma_cvb11Val species=\\\"Species_4\\\">0.1</ma_cvb11Val>\");\n oOut.write(\"<ma_cvb11Val species=\\\"Species_5\\\">2.43</ma_cvb11Val>\");\n oOut.write(\"</ma_classifierVigBeta11>\");\n oOut.write(\"<ma_classifierVigBeta12>\");\n oOut.write(\"<ma_cvb12Val species=\\\"Species_2\\\">-2.3</ma_cvb12Val>\");\n oOut.write(\"<ma_cvb12Val species=\\\"Species_3\\\">1.12</ma_cvb12Val>\");\n oOut.write(\"<ma_cvb12Val species=\\\"Species_4\\\">0.32</ma_cvb12Val>\");\n oOut.write(\"<ma_cvb12Val species=\\\"Species_5\\\">1.3</ma_cvb12Val>\");\n oOut.write(\"</ma_classifierVigBeta12>\");\n oOut.write(\"<ma_classifierVigBeta13>\");\n oOut.write(\"<ma_cvb13Val species=\\\"Species_2\\\">0.13</ma_cvb13Val>\");\n oOut.write(\"<ma_cvb13Val species=\\\"Species_3\\\">1</ma_cvb13Val>\");\n oOut.write(\"<ma_cvb13Val species=\\\"Species_4\\\">-0.2</ma_cvb13Val>\");\n oOut.write(\"<ma_cvb13Val species=\\\"Species_5\\\">1</ma_cvb13Val>\");\n oOut.write(\"</ma_classifierVigBeta13>\");\n oOut.write(\"<ma_classifierVigBeta14>\");\n oOut.write(\"<ma_cvb14Val species=\\\"Species_2\\\">0.9</ma_cvb14Val>\");\n oOut.write(\"<ma_cvb14Val species=\\\"Species_3\\\">0</ma_cvb14Val>\");\n oOut.write(\"<ma_cvb14Val species=\\\"Species_4\\\">-1</ma_cvb14Val>\");\n oOut.write(\"<ma_cvb14Val species=\\\"Species_5\\\">0</ma_cvb14Val>\");\n oOut.write(\"</ma_classifierVigBeta14>\");\n oOut.write(\"<ma_classifierVigBeta15>\");\n oOut.write(\"<ma_cvb15Val species=\\\"Species_2\\\">1</ma_cvb15Val>\");\n oOut.write(\"<ma_cvb15Val species=\\\"Species_3\\\">0.25</ma_cvb15Val>\");\n oOut.write(\"<ma_cvb15Val species=\\\"Species_4\\\">1</ma_cvb15Val>\");\n oOut.write(\"<ma_cvb15Val species=\\\"Species_5\\\">-0.45</ma_cvb15Val>\");\n oOut.write(\"</ma_classifierVigBeta15>\");\n oOut.write(\"<ma_classifierVigBeta16>\");\n oOut.write(\"<ma_cvb16Val species=\\\"Species_2\\\">1</ma_cvb16Val>\");\n oOut.write(\"<ma_cvb16Val species=\\\"Species_3\\\">0.36</ma_cvb16Val>\");\n oOut.write(\"<ma_cvb16Val species=\\\"Species_4\\\">0</ma_cvb16Val>\");\n oOut.write(\"<ma_cvb16Val species=\\\"Species_5\\\">0.46</ma_cvb16Val>\");\n oOut.write(\"</ma_classifierVigBeta16>\");\n oOut.write(\"<ma_classifierVigBeta2>\");\n oOut.write(\"<ma_cvb2Val species=\\\"Species_2\\\">0.01</ma_cvb2Val>\");\n oOut.write(\"<ma_cvb2Val species=\\\"Species_3\\\">0.02</ma_cvb2Val>\");\n oOut.write(\"<ma_cvb2Val species=\\\"Species_4\\\">0.04</ma_cvb2Val>\");\n oOut.write(\"<ma_cvb2Val species=\\\"Species_5\\\">0.1</ma_cvb2Val>\");\n oOut.write(\"</ma_classifierVigBeta2>\");\n oOut.write(\"<ma_classifierVigBeta3>\");\n oOut.write(\"<ma_cvb3Val species=\\\"Species_2\\\">0.001</ma_cvb3Val>\");\n oOut.write(\"<ma_cvb3Val species=\\\"Species_3\\\">0.2</ma_cvb3Val>\");\n oOut.write(\"<ma_cvb3Val species=\\\"Species_4\\\">0.3</ma_cvb3Val>\");\n oOut.write(\"<ma_cvb3Val species=\\\"Species_5\\\">0.4</ma_cvb3Val>\");\n oOut.write(\"</ma_classifierVigBeta3>\");\n oOut.write(\"<ma_classifierQualBeta0>\");\n oOut.write(\"<ma_cqb0Val species=\\\"Species_2\\\">0.25</ma_cqb0Val>\");\n oOut.write(\"<ma_cqb0Val species=\\\"Species_3\\\">1.13</ma_cqb0Val>\");\n oOut.write(\"<ma_cqb0Val species=\\\"Species_4\\\">0</ma_cqb0Val>\");\n oOut.write(\"<ma_cqb0Val species=\\\"Species_5\\\">1.15</ma_cqb0Val>\");\n oOut.write(\"</ma_classifierQualBeta0>\");\n oOut.write(\"<ma_classifierQualBeta11>\");\n oOut.write(\"<ma_cqb11Val species=\\\"Species_2\\\">0.36</ma_cqb11Val>\");\n oOut.write(\"<ma_cqb11Val species=\\\"Species_3\\\">0</ma_cqb11Val>\");\n oOut.write(\"<ma_cqb11Val species=\\\"Species_4\\\">0.4</ma_cqb11Val>\");\n oOut.write(\"<ma_cqb11Val species=\\\"Species_5\\\">0</ma_cqb11Val>\");\n oOut.write(\"</ma_classifierQualBeta11>\");\n oOut.write(\"<ma_classifierQualBeta12>\");\n oOut.write(\"<ma_cqb12Val species=\\\"Species_2\\\">0.02</ma_cqb12Val>\");\n oOut.write(\"<ma_cqb12Val species=\\\"Species_3\\\">10</ma_cqb12Val>\");\n oOut.write(\"<ma_cqb12Val species=\\\"Species_4\\\">0.3</ma_cqb12Val>\");\n oOut.write(\"<ma_cqb12Val species=\\\"Species_5\\\">30</ma_cqb12Val>\");\n oOut.write(\"</ma_classifierQualBeta12>\");\n oOut.write(\"<ma_classifierQualBeta13>\");\n oOut.write(\"<ma_cqb13Val species=\\\"Species_2\\\">0.2</ma_cqb13Val>\");\n oOut.write(\"<ma_cqb13Val species=\\\"Species_3\\\">10</ma_cqb13Val>\");\n oOut.write(\"<ma_cqb13Val species=\\\"Species_4\\\">-0.3</ma_cqb13Val>\");\n oOut.write(\"<ma_cqb13Val species=\\\"Species_5\\\">30</ma_cqb13Val>\");\n oOut.write(\"</ma_classifierQualBeta13>\");\n oOut.write(\"<ma_classifierQualBeta14>\");\n oOut.write(\"<ma_cqb14Val species=\\\"Species_2\\\">-0.2</ma_cqb14Val>\");\n oOut.write(\"<ma_cqb14Val species=\\\"Species_3\\\">10</ma_cqb14Val>\");\n oOut.write(\"<ma_cqb14Val species=\\\"Species_4\\\">-0.4</ma_cqb14Val>\");\n oOut.write(\"<ma_cqb14Val species=\\\"Species_5\\\">30</ma_cqb14Val>\");\n oOut.write(\"</ma_classifierQualBeta14>\");\n oOut.write(\"<ma_classifierQualBeta2>\");\n oOut.write(\"<ma_cqb2Val species=\\\"Species_2\\\">-0.2</ma_cqb2Val>\");\n oOut.write(\"<ma_cqb2Val species=\\\"Species_3\\\">10</ma_cqb2Val>\");\n oOut.write(\"<ma_cqb2Val species=\\\"Species_4\\\">0</ma_cqb2Val>\");\n oOut.write(\"<ma_cqb2Val species=\\\"Species_5\\\">30</ma_cqb2Val>\");\n oOut.write(\"</ma_classifierQualBeta2>\");\n oOut.write(\"<ma_classifierQualBeta3>\");\n oOut.write(\"<ma_cqb3Val species=\\\"Species_2\\\">1</ma_cqb3Val>\");\n oOut.write(\"<ma_cqb3Val species=\\\"Species_3\\\">10</ma_cqb3Val>\");\n oOut.write(\"<ma_cqb3Val species=\\\"Species_4\\\">0.1</ma_cqb3Val>\");\n oOut.write(\"<ma_cqb3Val species=\\\"Species_5\\\">30</ma_cqb3Val>\");\n oOut.write(\"</ma_classifierQualBeta3>\");\n oOut.write(\"<ma_classifierNewAdultProbVigorous>\");\n oOut.write(\"<ma_cnapvVal species=\\\"Species_2\\\">0.1</ma_cnapvVal>\");\n oOut.write(\"<ma_cnapvVal species=\\\"Species_3\\\">0.25</ma_cnapvVal>\");\n oOut.write(\"<ma_cnapvVal species=\\\"Species_4\\\">0.5</ma_cnapvVal>\");\n oOut.write(\"<ma_cnapvVal species=\\\"Species_5\\\">0.74</ma_cnapvVal>\");\n oOut.write(\"</ma_classifierNewAdultProbVigorous>\");\n oOut.write(\"<ma_classifierNewAdultProbSawlog>\");\n oOut.write(\"<ma_cnapsVal species=\\\"Species_2\\\">0.9</ma_cnapsVal>\");\n oOut.write(\"<ma_cnapsVal species=\\\"Species_3\\\">0.25</ma_cnapsVal>\");\n oOut.write(\"<ma_cnapsVal species=\\\"Species_4\\\">0.3</ma_cnapsVal>\");\n oOut.write(\"<ma_cnapsVal species=\\\"Species_5\\\">0.74</ma_cnapsVal>\");\n oOut.write(\"</ma_classifierNewAdultProbSawlog>\");\n oOut.write(\"<ma_classifierDeciduous>\");\n oOut.write(\"<ma_cdVal species=\\\"Species_2\\\">1</ma_cdVal>\");\n oOut.write(\"<ma_cdVal species=\\\"Species_3\\\">0</ma_cdVal>\");\n oOut.write(\"<ma_cdVal species=\\\"Species_4\\\">1</ma_cdVal>\");\n oOut.write(\"<ma_cdVal species=\\\"Species_5\\\">0</ma_cdVal>\");\n oOut.write(\"</ma_classifierDeciduous>\");\n oOut.write(\"</QualityVigorClassifier1>\");\n oOut.write(\"</paramFile>\");\n\n oOut.close();\n return sFileName;\n }",
"public CommandProcessXML(String filePath){\n _xmlFile = new File(filePath);\n _dbFactory = DocumentBuilderFactory.newInstance();\n }",
"private static PriceList getConvertedDocument(String sourceFolderPath, String constSourceFileName) throws ParserConfigurationException, SAXException, IOException {\n String filePath = sourceFolderPath.concat(constSourceFileName);\n File xmlFile = new File(filePath);\n DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n DocumentBuilder dBuilder = factory.newDocumentBuilder();\n Document doc = dBuilder.parse(xmlFile);\n \n \n //create the excel document Java representation\n PriceList priceList = new PriceList(doc.getDocumentElement());\n return priceList;\n }",
"@Test\n public void testCDXML() {\n \tString infile = \"src/test/resources/examples/cdx/r19.cdxml\";\n \tString outfile = \"src/test/resources/examples/cdx/r19.cml\";\n \tString reffile = \"src/test/resources/examples/cdx/r19.ref.cml\";\n \tString[] args = {\"-i \"+infile+\" -o \"+outfile};\n \ttry {\n \t\tConverterCli.main(args);\n \t} catch (Exception e) {\n \t\te.printStackTrace();\n \t\tAssert.fail(\"Should not throw \"+ e);\n \t}\n\t\tJumboTestUtils.assertEqualsIncludingFloat(\"CDXML\", \n\t\t\t\tCMLUtil.parseQuietlyToDocument(new File(outfile)).getRootElement(), \n\t\t\t\tCMLUtil.parseQuietlyToDocument(new File(reffile)).getRootElement(), \n\t\t\t\ttrue, 0.00000001);\n }",
"public static Patent transform(String patentxml) {\n\t\t patentxml = patentxml.trim();\n\t\t //patentxml = patentxml.replace(\"<!DOCTYPE math PUBLIC \\\"-//W3C//DTD MathML 3.0//EN\\\" \\\"http://www.w3.org/Math/DTD/mathml3/mathml3.dtd\\\">\", \"<!DOCTYPE PATDOC [<!ENTITY nbsp \\\" \\\" ><!ENTITY iexcl \\\"¡\\\" ><!ENTITY cent \\\"¢\\\" ><!ENTITY pound \\\"£\\\" ><!ENTITY curren \\\"¤\\\" ><!ENTITY yen \\\"¥\\\" ><!ENTITY brvbar \\\"¦\\\" ><!ENTITY sect \\\"§\\\" ><!ENTITY uml \\\"¨\\\" ><!ENTITY copy \\\"©\\\" ><!ENTITY ordf \\\"ª\\\" ><!ENTITY laquo \\\"«\\\" ><!ENTITY not \\\"¬\\\" ><!ENTITY shy \\\"­\\\" ><!ENTITY reg \\\"®\\\" ><!ENTITY macr \\\"¯\\\" ><!ENTITY deg \\\"°\\\" ><!ENTITY plusmn \\\"±\\\" ><!ENTITY sup2 \\\"²\\\" ><!ENTITY sup3 \\\"³\\\" ><!ENTITY acute \\\"´\\\" ><!ENTITY micro \\\"µ\\\" ><!ENTITY para \\\"¶\\\" ><!ENTITY middot \\\"·\\\" ><!ENTITY cedil \\\"¸\\\" ><!ENTITY sup1 \\\"¹\\\" ><!ENTITY ordm \\\"º\\\" ><!ENTITY raquo \\\"»\\\" ><!ENTITY frac14 \\\"¼\\\" ><!ENTITY frac12 \\\"½\\\" ><!ENTITY frac34 \\\"¾\\\" ><!ENTITY iquest \\\"¿\\\" ><!ENTITY Agrave \\\"À\\\" ><!ENTITY Aacute \\\"Á\\\" ><!ENTITY Acirc \\\"Â\\\" ><!ENTITY Atilde \\\"Ã\\\" ><!ENTITY Auml \\\"Ä\\\" ><!ENTITY Aring \\\"Å\\\" ><!ENTITY AElig \\\"Æ\\\" ><!ENTITY Ccedil \\\"Ç\\\" ><!ENTITY Egrave \\\"È\\\" ><!ENTITY Eacute \\\"É\\\" ><!ENTITY Ecirc \\\"Ê\\\" ><!ENTITY Euml \\\"Ë\\\" ><!ENTITY Igrave \\\"Ì\\\" ><!ENTITY Iacute \\\"Í\\\" ><!ENTITY Icirc \\\"Î\\\" ><!ENTITY Iuml \\\"Ï\\\" ><!ENTITY ETH \\\"Ð\\\" ><!ENTITY Ntilde \\\"Ñ\\\" ><!ENTITY Ograve \\\"Ò\\\" ><!ENTITY Oacute \\\"Ó\\\" ><!ENTITY Ocirc \\\"Ô\\\" ><!ENTITY Otilde \\\"Õ\\\" ><!ENTITY Ouml \\\"Ö\\\" ><!ENTITY times \\\"×\\\" ><!ENTITY Oslash \\\"Ø\\\" ><!ENTITY Ugrave \\\"Ù\\\" ><!ENTITY Uacute \\\"Ú\\\" ><!ENTITY Ucirc \\\"Û\\\" ><!ENTITY Uuml \\\"Ü\\\" ><!ENTITY Yacute \\\"Ý\\\" ><!ENTITY THORN \\\"Þ\\\" ><!ENTITY szlig \\\"ß\\\" ><!ENTITY agrave \\\"à\\\" ><!ENTITY aacute \\\"á\\\" ><!ENTITY acirc \\\"â\\\" ><!ENTITY atilde \\\"ã\\\" ><!ENTITY auml \\\"ä\\\" ><!ENTITY aring \\\"å\\\" ><!ENTITY aelig \\\"æ\\\" ><!ENTITY ccedil \\\"ç\\\" ><!ENTITY egrave \\\"è\\\" ><!ENTITY eacute \\\"é\\\" ><!ENTITY ecirc \\\"ê\\\" ><!ENTITY euml \\\"ë\\\" ><!ENTITY igrave \\\"ì\\\" ><!ENTITY iacute \\\"í\\\" ><!ENTITY icirc \\\"î\\\" ><!ENTITY iuml \\\"ï\\\" ><!ENTITY eth \\\"ð\\\" ><!ENTITY ntilde \\\"ñ\\\" ><!ENTITY ograve \\\"ò\\\" ><!ENTITY oacute \\\"ó\\\" ><!ENTITY ocirc \\\"ô\\\" ><!ENTITY otilde \\\"õ\\\" ><!ENTITY ouml \\\"ö\\\" ><!ENTITY divide \\\"÷\\\" ><!ENTITY oslash \\\"ø\\\" ><!ENTITY ugrave \\\"ù\\\" ><!ENTITY uacute \\\"ú\\\" ><!ENTITY ucirc \\\"û\\\" ><!ENTITY uuml \\\"ü\\\" ><!ENTITY yacute \\\"ý\\\" ><!ENTITY thorn \\\"þ\\\" ><!ENTITY yuml \\\"ÿ\\\" > <!ENTITY lt \\\"&#60;\\\" > <!ENTITY gt \\\">\\\" > <!ENTITY amp \\\"&#38;\\\" > <!ENTITY apos \\\"'\\\" > <!ENTITY quot \\\""\\\" > <!ENTITY OElig \\\"Œ\\\" > <!ENTITY oelig \\\"œ\\\" > <!ENTITY Scaron \\\"Š\\\" > <!ENTITY scaron \\\"š\\\" > <!ENTITY Yuml \\\"Ÿ\\\" > <!ENTITY circ \\\"ˆ\\\" > <!ENTITY tilde \\\"˜\\\" > <!ENTITY ensp \\\" \\\" > <!ENTITY emsp \\\" \\\" > <!ENTITY thinsp \\\" \\\" > <!ENTITY zwnj \\\"‌\\\" > <!ENTITY zwj \\\"‍\\\" > <!ENTITY lrm \\\"‎\\\" > <!ENTITY rlm \\\"‏\\\" > <!ENTITY ndash \\\"–\\\" > <!ENTITY mdash \\\"—\\\" > <!ENTITY lsquo \\\"‘\\\" > <!ENTITY rsquo \\\"’\\\" > <!ENTITY sbquo \\\"‚\\\" > <!ENTITY ldquo \\\"“\\\" > <!ENTITY rdquo \\\"”\\\" > <!ENTITY bdquo \\\"„\\\" > <!ENTITY dagger \\\"†\\\" > <!ENTITY Dagger \\\"‡\\\" > <!ENTITY permil \\\"‰\\\" > <!ENTITY lsaquo \\\"‹\\\" > <!ENTITY rsaquo \\\"›\\\" > <!ENTITY euro \\\"€\\\" > <!ENTITY minus \\\"+\\\" > <!ENTITY plus \\\"+\\\" > <!ENTITY equals \\\"=\\\" > <!ENTITY af \\\"\\\" > <!ENTITY it \\\"\\\" ><!ENTITY fnof \\\"ƒ\\\" > <!ENTITY Alpha \\\"Α\\\" > <!ENTITY Beta \\\"Β\\\" > <!ENTITY Gamma \\\"Γ\\\" > <!ENTITY Delta \\\"Δ\\\" > <!ENTITY Epsilon \\\"Ε\\\" > <!ENTITY Zeta \\\"Ζ\\\" > <!ENTITY Eta \\\"Η\\\" > <!ENTITY Theta \\\"Θ\\\" > <!ENTITY Iota \\\"Ι\\\" > <!ENTITY Kappa \\\"Κ\\\" > <!ENTITY Lambda \\\"Λ\\\" > <!ENTITY Mu \\\"Μ\\\" > <!ENTITY Nu \\\"Ν\\\" > <!ENTITY Xi \\\"Ξ\\\" > <!ENTITY Omicron \\\"Ο\\\" > <!ENTITY Pi \\\"Π\\\" > <!ENTITY Rho \\\"Ρ\\\" > <!ENTITY Sigma \\\"Σ\\\" > <!ENTITY Tau \\\"Τ\\\" > <!ENTITY Upsilon \\\"Υ\\\" > <!ENTITY Phi \\\"Φ\\\" > <!ENTITY Chi \\\"Χ\\\" > <!ENTITY Psi \\\"Ψ\\\" > <!ENTITY Omega \\\"Ω\\\" > <!ENTITY alpha \\\"α\\\" > <!ENTITY beta \\\"β\\\" > <!ENTITY gamma \\\"γ\\\" > <!ENTITY delta \\\"δ\\\" > <!ENTITY epsilon \\\"ε\\\" > <!ENTITY zeta \\\"ζ\\\" > <!ENTITY eta \\\"η\\\" > <!ENTITY theta \\\"θ\\\" > <!ENTITY iota \\\"ι\\\" > <!ENTITY kappa \\\"κ\\\" > <!ENTITY lambda \\\"λ\\\" > <!ENTITY mu \\\"μ\\\" > <!ENTITY nu \\\"ν\\\" > <!ENTITY xi \\\"ξ\\\" > <!ENTITY omicron \\\"ο\\\" > <!ENTITY pi \\\"π\\\" > <!ENTITY rho \\\"ρ\\\" > <!ENTITY sigmaf \\\"ς\\\" > <!ENTITY sigma \\\"σ\\\" > <!ENTITY tau \\\"τ\\\" > <!ENTITY upsilon \\\"υ\\\" > <!ENTITY phi \\\"φ\\\" > <!ENTITY chi \\\"χ\\\" > <!ENTITY psi \\\"ψ\\\" > <!ENTITY omega \\\"ω\\\" > <!ENTITY thetasym \\\"ϑ\\\" > <!ENTITY upsih \\\"ϒ\\\" > <!ENTITY piv \\\"ϖ\\\" > <!ENTITY bull \\\"•\\\" > <!ENTITY hellip \\\"…\\\" > <!ENTITY prime \\\"′\\\" > <!ENTITY Prime \\\"″\\\" > <!ENTITY oline \\\"‾\\\" > <!ENTITY frasl \\\"⁄\\\" > <!ENTITY weierp \\\"℘\\\" > <!ENTITY image \\\"ℑ\\\" > <!ENTITY real \\\"ℜ\\\" > <!ENTITY trade \\\"™\\\" > <!ENTITY alefsym \\\"ℵ\\\" > <!ENTITY larr \\\"←\\\" > <!ENTITY uarr \\\"↑\\\" > <!ENTITY rarr \\\"→\\\" > <!ENTITY darr \\\"↓\\\" > <!ENTITY harr \\\"↔\\\" > <!ENTITY crarr \\\"↵\\\" > <!ENTITY lArr \\\"⇐\\\" > <!ENTITY uArr \\\"⇑\\\" > <!ENTITY rArr \\\"⇒\\\" > <!ENTITY dArr \\\"⇓\\\" > <!ENTITY hArr \\\"⇔\\\" > <!ENTITY forall \\\"∀\\\" > <!ENTITY part \\\"∂\\\" > <!ENTITY exist \\\"∃\\\" > <!ENTITY empty \\\"∅\\\" > <!ENTITY nabla \\\"∇\\\" > <!ENTITY isin \\\"∈\\\" > <!ENTITY notin \\\"∉\\\" > <!ENTITY ni \\\"∋\\\" > <!ENTITY prod \\\"∏\\\" > <!ENTITY sum \\\"∑\\\" > <!ENTITY minus \\\"−\\\" > <!ENTITY lowast \\\"∗\\\" > <!ENTITY radic \\\"√\\\" > <!ENTITY prop \\\"∝\\\" > <!ENTITY infin \\\"∞\\\" > <!ENTITY ang \\\"∠\\\" > <!ENTITY and \\\"∧\\\" > <!ENTITY or \\\"∨\\\" > <!ENTITY cap \\\"∩\\\" > <!ENTITY cup \\\"∪\\\" > <!ENTITY int \\\"∫\\\" > <!ENTITY there4 \\\"∴\\\" > <!ENTITY sim \\\"∼\\\" > <!ENTITY cong \\\"≅\\\" > <!ENTITY asymp \\\"≈\\\" > <!ENTITY ne \\\"≠\\\" > <!ENTITY equiv \\\"≡\\\" > <!ENTITY le \\\"≤\\\" > <!ENTITY ge \\\"≥\\\" > <!ENTITY sub \\\"⊂\\\" > <!ENTITY sup \\\"⊃\\\" > <!ENTITY nsub \\\"⊄\\\" > <!ENTITY sube \\\"⊆\\\" > <!ENTITY supe \\\"⊇\\\" > <!ENTITY oplus \\\"⊕\\\" > <!ENTITY otimes \\\"⊗\\\" > <!ENTITY perp \\\"⊥\\\" > <!ENTITY sdot \\\"⋅\\\" > <!ENTITY lceil \\\"⌈\\\" > <!ENTITY rceil \\\"⌉\\\" > <!ENTITY lfloor \\\"⌊\\\" > <!ENTITY rfloor \\\"⌋\\\" > <!ENTITY lang \\\"〈\\\" > <!ENTITY rang \\\"〉\\\" > <!ENTITY loz \\\"◊\\\" > <!ENTITY spades \\\"♠\\\" > <!ENTITY clubs \\\"♣\\\" > <!ENTITY hearts \\\"♥\\\" > <!ENTITY diams \\\"♦\\\" > <!ENTITY lcub \\\"\\\" > <!ENTITY rcub \\\"\\\" > <!ENTITY excl \\\"\\\" > <!ENTITY quest \\\"\\\" > <!ENTITY num \\\"\\\" >]>\");\n\t\t //patentxml = patentxml.replace(\"<!DOCTYPE math PUBLIC \\\"-//W3C//DTD MathML 3.0//EN\\\" \\\"http://www.w3.org/Math/DTD/mathml3/mathml3.dtd\\\">\", \"<!DOCTYPE math PUBLIC \\\"-//W3C//DTD MathML 2.0//EN\\\" \\\"dtds/mathml2.dtd\\\">\");\n\t\t patentxml = patentxml.replace(\"<!DOCTYPE math PUBLIC \\\"-//W3C//DTD MathML 3.0//EN\\\" \\\"http://www.w3.org/Math/DTD/mathml3/mathml3.dtd\\\">\", \"<!DOCTYPE math PUBLIC \\\"-//W3C//DTD MathML 2.0//EN\\\" \\\"http://10.18.203.79:7070/solr/dtds/mathml2.dtd\\\">\");\n\t\t Patent parsedPatent = null;\n\t if(patentxml.contains(\"us-patent-grant\") && patentxml.contains(\"dtd-version=\\\"v4.5 2014-04-03\\\"\")==true) { // patent xml is grant in DTD v4.5\n\t\t\t\tparsedPatent = parseGrantv45(patentxml);\t\t \n\t }\n\t else if(patentxml.contains(\"us-patent-grant\") && patentxml.contains(\"dtd-version=\\\"v4.4 2013-05-16\\\"\")==true) { // patent xml is grant in DTD v4.4\n\t \tparsedPatent = parseGrantv44(patentxml);\n\t }\n\t else if(patentxml.contains(\"us-patent-grant\") && patentxml.contains(\"dtd-version=\\\"v4.3 2012-12-04\\\"\")==true) { // patent xml is grant in DTD v4.3\n\t \tparsedPatent = parseGrantv43(patentxml);\n\t }\n\t else if(patentxml.contains(\"us-patent-grant\") && patentxml.contains(\"dtd-version=\\\"v4.2 2006-08-23\\\"\")==true) { // patent xml is grant in DTD v4.2\n\t \tparsedPatent = parseGrantv42(patentxml);\n\t }\t\n\t else if(patentxml.contains(\"us-patent-grant\") && patentxml.contains(\"dtd-version=\\\"v4.1 2005-08-25\\\"\")==true) { // patent xml is grant in DTD v4.5\n\t \tparsedPatent = parseGrantv41(patentxml);\n\t }\n\t else if(patentxml.contains(\"us-patent-grant\") && patentxml.contains(\"dtd-version=\\\"v40 2004-12-02\\\"\")==true) { // patent xml is grant in DTD v4.0\n\t \tparsedPatent = parseGrantv40_041202(patentxml);\n\t }\n\t else if(patentxml.contains(\"<PATDOC DTD=\\\"2.5\\\"\")==true) { // patent xml is grant in DTD v2.5\n\t \tparsedPatent = parseGrantv25(patentxml);\t\t \t\t\t\t \n\t }\n\t else if(patentxml.contains(\"<PATDOC DTD=\\\"2.4\\\"\")==true) { // patent xml is grant in DTD v2.5\n\t \tparsedPatent = parseGrantv24(patentxml);\t\t \t\t\t\t \n\t }\n\t else if(patentxml.contains(\"us-patent-application\") && patentxml.contains(\"dtd-version=\\\"v4.4 2014-04-03\\\"\")==true) { // patent xml is application in DTD v4.4\n\t \tparsedPatent = parseApplicationv44(patentxml);\t\t \n\t }\n\t else if(patentxml.contains(\"us-patent-application\") && patentxml.contains(\"dtd-version=\\\"v4.3 2012-12-04\\\"\")==true) { // patent xml is application in DTD v4.4\n\t \tparsedPatent = parseApplicationv43(patentxml);\n\t }\n\t else if(patentxml.contains(\"us-patent-application\") && patentxml.contains(\"dtd-version=\\\"v4.2 2006-08-23\\\"\")==true) { // patent xml is application in DTD v4.4\n\t \tparsedPatent = parseApplicationv42(patentxml);\n\t }\n\t else if(patentxml.contains(\"us-patent-application\") && patentxml.contains(\"dtd-version=\\\"v4.1 2005-08-25\\\"\")==true) { // patent xml is application in DTD v4.4\n\t \tparsedPatent = parseApplicationv41(patentxml);\n\t }\t \t \n\t else if(patentxml.contains(\"us-patent-application\") && patentxml.contains(\"dtd-version=\\\"v4.0 2004-12-02\\\"\")==true) { // patent xml is application in DTD v4.4\n\t \tparsedPatent = parseApplicationv40_041202(patentxml);\n\t }\n\t else if(patentxml.contains(\"us-patent-application\") && patentxml.contains(\"dtd-version=\\\"v4.0 2004-10-28\\\"\")==true) { // patent xml is application in DTD v4.4\n\t \tparsedPatent = parseApplicationv40_041028(patentxml);\n\t }\n\t else if(patentxml.contains(\"us-patent-application\") && patentxml.contains(\"dtd-version=\\\"v4.0 2004-09-27\\\"\")==true) { // patent xml is application in DTD v4.4\n\t \tparsedPatent = parseApplicationv40_040927(patentxml);\n\t }\n\t else if(patentxml.contains(\"us-patent-application\") && patentxml.contains(\"dtd-version=\\\"v4.0 2004-09-08\\\"\")==true) { // patent xml is application in DTD v4.4\n\t \tparsedPatent = parseApplicationv40_040908(patentxml);\n\t }\n\t else if(patentxml.contains(\"us-patent-application\") && patentxml.contains(\"dtd-version=\\\"v4.0 2004-04-15\\\"\")==true) { // patent xml is application in DTD v4.4\n\t \tparsedPatent = parseApplicationv40_040415(patentxml);\n\t }\n\t else if(patentxml.indexOf(\"<!DOCTYPE patent-application-publication\")==0 && patentxml.contains(\"pap-v16-2002-01-01.dtd\")==true) { // patent xml is application in DTD v1.6\n\t \tparsedPatent = parseApplicationv16(patentxml);\n\t }\n\t\t return parsedPatent==null? new Patent():parsedPatent;\n\t }",
"private void parseWSCTaxonomyFile(String fileName) {\n\t\ttry {\n\t \tFile fXmlFile = new File(fileName);\n\t \tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n\t \tDocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n\t \tDocument doc = dBuilder.parse(fXmlFile);\n\t \tElement taxonomy = (Element) doc.getChildNodes().item(0);\n\n\t \tprocessTaxonomyChildren(null, taxonomy.getChildNodes());\n\t\t}\n\n\t\tcatch (ParserConfigurationException e) {\n System.out.println(\"Taxonomy file parsing failed...\");\n\t\t}\n\t\tcatch (SAXException e) {\n System.out.println(\"Taxonomy file parsing failed...\");\n\t\t}\n\t\tcatch (IOException e) {\n System.out.println(\"Taxonomy file parsing failed...\");\n\t\t}\n\t}",
"public static void loadStudRecsFromFile(File file) {\r\n\t\ttry {\r\n\t\t\tJAXBContext context = JAXBContext\r\n\t\t\t\t\t.newInstance(StudRecsWrapper.class);\r\n\t\t\tUnmarshaller um = context.createUnmarshaller();\r\n\t\t\t\r\n\t\t\tStudRecsWrapper wrapper = (StudRecsWrapper) um.unmarshal(file);\r\n\t\t\t\r\n\t\t\tstudRecs.clear();\r\n\t\t\tstudRecs.addAll(wrapper.getStudRecs());\r\n\t\t\tSystem.out.println(\"File loaded!\");\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(\"Cannot load file, does it exist?\");\r\n\t\t}\r\n\t}",
"void schema(String schema);",
"void schema(String schema);",
"private ArrayList<Integer> parseXSD(String s, ArrayList<Integer> match){\n String xmlversion = \"((\\\\<\\\\?)\\\\s*(xml)\\\\s+(version)\\\\s*(=)\\\\s*(\\\".*?\\\")\\\\s*(\\\\?\\\\>))\";\n String attribDefault = \"((attributeFormDefault)\\\\s*(=)\\\\s*(\\\"qualified\\\"))\";\n String elementDefault = \"((elementFormDefault)\\\\s*(=)\\\\s*(\\\"qualified\\\"))\";\n String schema1 = \"^(\\\\<(schema)\\\\s+\"+ attribDefault + \"\\\\s+\" + elementDefault + \"\\\\s*(\\\\>))$\";\n String schema2 = \"^(\\\\<(schema)\\\\s+\"+ elementDefault + \"\\\\s+\" + attribDefault + \"\\\\s*(\\\\>))$\";\n String tableName = \"^((<xsd:complexType)\\\\s+(name)\\\\s*(=)\\\\s*(\\\".+\\\")\\\\s*(\\\\>))$\";\n String name = \"(name(\\\\s*)(=)\\\\4(\\\\\\\"\\\\w+?\\\\\\\")\\\\2)\";\n String type = \"(type\\\\4\\\\5\\\\4(\\\\\\\"(xsd:)(string|int(eger)?|(date)|(decimal))\\\\\\\")\\\\2)\";\n String date = \"(\\\\2fraction\\\\4\\\\5\\\\4(\\\\\\\"\\\\d+\\\\\\\")\\\\4)\";\n String fraction = \"(\\\\2date\\\\4\\\\5\\\\4(\\\\\\\"mm\\\\/dd\\\\/(yy)?yy\\\\\\\"))\";\n String maxo = \"(maxOccurs\\\\4\\\\5(\\\\\\\"\\\\d+\\\\\\\")\\\\2)\";\n String mino = \"(minOccurs\\\\4\\\\5\\\\4(\\\\\\\"\\\\d+\\\\\\\")\\\\4)\";\n String field3 = \"^(<xsd:\\\\w+?(\\\\s+)\" + name + type + maxo + mino + \"\\\\4\" + fraction + \"?\\\\s*\" + date+ \"?\\\\s*(\\\\/>))$\";\n String field4 = \"^(<xsd:\\\\w+?(\\\\s+)\" + type + name + maxo + mino + \"\\\\4\" + fraction + \"?\\\\s*\" + date+ \"?\\\\s*(\\\\/>))$\";\n String field1 = \"^(<xsd:\\\\w+?(\\\\s+)name(\\\\s*)(=)\\\\3(\\\"\\\\w+?\\\")\\\\2(type\\\\3\\\\4\\\\3(\\\"(xsd:)(string|int(eger)?|(date)|(decimal))\\\")\\\\2)(maxOccurs\\\\3\\\\4(\\\"\\\\d+\\\")\\\\2)(minOccurs\\\\3\\\\4\\\\3(\\\"\\\\d+\\\")\\\\3)\\\\3(\\\\2fraction\\\\3\\\\4\\\\3(\\\"\\\\d+\\\")\\\\3)?\\\\s*(\\\\2date\\\\3\\\\4\\\\3(\\\"mm\\\\/dd\\\\/(yy)?yy\\\"))?\\\\s*(\\\\/>))$\";\n String field2 = \"^(<xsd:\\\\w+?(\\\\s+)name(\\\\s*)(=)\\\\3(\\\"\\\\w+?\\\")\\\\2(type\\\\3\\\\4\\\\3(\\\"(xsd:)(string|int(eger)?|(date)|(decimal))\\\")\\\\2)(minOccurs\\\\3\\\\4\\\\3(\\\"\\\\d+\\\")\\\\2)(maxOccurs\\\\3\\\\4(\\\"\\\\d+\\\")\\\\3)\\\\3(\\\\2fraction\\\\3\\\\4\\\\3(\\\"\\\\d+\\\")\\\\3)?\\\\s*(\\\\2date\\\\3\\\\4\\\\3(\\\"mm\\\\/dd\\\\/(yy)?yy\\\"))?\\\\s*(\\\\/>))$\";\n String closeTable = \"^(<\\\\/xsd:complexType>)$\";\n String closeSchema = \"^(<\\\\/schema>)$\";\n String error = \"***Error- \";\n int last = match.size()-1;\n if (match.get(last) == 1){\n// Matcher m = Pattern.compile(xmlversion).matcher(s);\n// boolean b = m.find();\n if(s.matches(xmlversion)){\n match.add(2);\n }else {\n System.out.println(error + \"xml version tag should be on the very top of xsd file.\");\n match.add(8);\n }\n } else if(match.get(last)==2){\n Matcher m = Pattern.compile(schema1).matcher(s);\n boolean b = m.find();\n if(b){\n match.add(3);\n }else {\n Matcher m2 = Pattern.compile(schema2).matcher(s);\n boolean b2 = m2.find();\n if(b2) {\n match.add(3);\n }else {\n System.out.println(error + \"no schema tag provided in xsd file.\");\n match.add(8);\n }\n }\n } else if(match.get(last)==3){\n Matcher m = Pattern.compile(tableName).matcher(s);\n boolean b = m.find();\n if(b){\n match.add(4);\n }else {\n System.out.println(error + \"no complexType provided in xsd file\");\n match.add(8);\n }\n } else if(match.get(last) == 4){\n Matcher m = Pattern.compile(field1).matcher(s);\n boolean b = m.find();\n if(b){\n if(XSDErrorChecks(m.group())){\n match.add(8);\n }else {\n match.add(4);\n }\n }else {\n Matcher m2 = Pattern.compile(field2).matcher(s);\n boolean b2 = m2.find();\n if(b2) {\n if(XSDErrorChecks(m2.group()))\n match.add(8);\n else {match.add(4);}\n }else {\n Matcher m3 = Pattern.compile(closeTable).matcher(s);\n boolean b3 = m3.find();\n if(b3){\n match.add(5);\n match.add(6);\n }else {\n if(s.matches(\"(.*)(xsd:element)(.*)\")){\n System.out.println(error + \"xsd:element syntax\");\n }else if(match.get(last)==4 && match.get(last-1)==4){\n System.out.println(error + \"complexType tag is not closed properly\");\n }else {\n System.out.println(error + \"no elements are provided under complexType in xsd file\");\n }\n match.add(8);\n }\n }\n }\n } else if(match.get(last) == 6){\n Matcher m = Pattern.compile(closeSchema).matcher(s);\n boolean b = m.find();\n if(b){\n match.add(7);\n }else {\n System.out.println(error + \"schema tag not closed in xsd file\"); match.add(8);\n }\n } else if(match.get(last) == 7){\n System.out.println(error + s + \" string is found after closed schema tag. \\n Program ignores everything after closed schema tag.\");\n match.add(8);\n }\n return match;\n }",
"FormattedSmartPlaylist readFromFile(File file) throws JAXBException, FileNotFoundException;",
"String getSchemaFile();",
"private void _writeDatatypeAware(final DatatypeAware datatyped) throws IOException {\n final String datatype = datatyped.getDatatype().getReference();\n String value = XSD.ANY_URI.equals(datatype) ? datatyped.locatorValue().toExternalForm()\n : datatyped.getValue();\n _writeKeyValue(\"value\", value);\n if (!XSD.STRING.equals(datatype)) {\n _writeKeyValue(\"datatype\", datatyped.getDatatype().toExternalForm());\n }\n }",
"@Override\n public void setXMLSchema(URL url) throws XMLPlatformException {\n if (null == url) {\n return;\n }\n if (null == documentBuilderFactory) {\n loadDocumentBuilderFactory();\n }\n try {\n documentBuilderFactory.setAttribute(SCHEMA_LANGUAGE, XML_SCHEMA);\n documentBuilderFactory.setAttribute(JAXP_SCHEMA_SOURCE, url.toString());\n } catch (IllegalArgumentException e) {\n // The attribute isn't supported so do nothing\n } catch (Exception e) {\n XMLPlatformException.xmlPlatformErrorResolvingXMLSchema(url, e);\n }\n }",
"@Override\n\tpublic void domove(String filename) {\n\n\t\tFile starfile = new File(\"D://FileRec/\" + filename);\n\n\t\tFile endDirection = new File(\"D://FileRec//docx\");\n\t\tif (!endDirection.exists()) {\n\t\t\tendDirection.mkdirs();\n\t\t}\n\n\t\tFile endfile = new File(endDirection + File.separator + starfile.getName());\n\n\t\ttry {\n\t\t\tif (starfile.renameTo(endfile)) {\n\t\t\t\tSystem.out.println(\"转移成功\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"转移失败,或许是重名\");\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"文件移动出现异常\");\n\t\t}\n\t}",
"private void loadFile() {\n String xmlContent = \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?><atomic-mass-table mass-units=\\\"u\\\" abundance-units=\\\"Mole Fraction\\\"><entry symbol=\\\"H\\\" atomic-number=\\\"1\\\"> <natural-abundance> <mass value=\\\"1.00794\\\" error=\\\"0.00007\\\" /> <isotope mass-number=\\\"1\\\"> <mass value=\\\"1.0078250319\\\" error=\\\"0.00000000006\\\" /> <abundance value=\\\"0.999885\\\" error=\\\"0.000070\\\" /> </isotope> <isotope mass-number=\\\"2\\\"> <mass value=\\\"2.0141017779\\\" error=\\\"0.0000000006\\\" /> <abundance value=\\\"0.000115\\\" error=\\\"0.000070\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"He\\\" atomic-number=\\\"2\\\"> <natural-abundance> <mass value=\\\"4.002602\\\" error=\\\"0.000002\\\" /> <isotope mass-number=\\\"3\\\"> <mass value=\\\"3.0160293094\\\" error=\\\"0.0000000012\\\" /> <abundance value=\\\"0.00000134\\\" error=\\\"0.00000003\\\" /> </isotope> <isotope mass-number=\\\"4\\\"> <mass value=\\\"4.0026032497\\\" error=\\\"0.0000000015\\\" /> <abundance value=\\\"0.99999866\\\" error=\\\"0.00000003\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Li\\\" atomic-number=\\\"3\\\"> <natural-abundance> <mass value=\\\"6.9421\\\" error=\\\"0.002\\\" /> <isotope mass-number=\\\"3\\\"> <mass value=\\\"6.0151223\\\" error=\\\"0.0000005\\\" /> <abundance value=\\\"0.0759\\\" error=\\\"0.0004\\\" /> </isotope> <isotope mass-number=\\\"7\\\"> <mass value=\\\"7.0160041\\\" error=\\\"0.0000005\\\" /> <abundance value=\\\"0.9241\\\" error=\\\"0.0004\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Be\\\" atomic-number=\\\"4\\\"> <natural-abundance> <mass value=\\\"9.012182\\\" error=\\\"0.000003\\\" /> <isotope mass-number=\\\"9\\\"> <mass value=\\\"9.0121822\\\" error=\\\"0.0000004\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"B\\\" atomic-number=\\\"5\\\"> <natural-abundance> <mass value=\\\"10.881\\\" error=\\\"0.007\\\" /> <isotope mass-number=\\\"10\\\"> <mass value=\\\"10.0129371\\\" error=\\\"0.0000003\\\" /> <abundance value=\\\"0.199\\\" error=\\\"0.007\\\" /> </isotope> <isotope mass-number=\\\"11\\\"> <mass value=\\\"11.0093055\\\" error=\\\"0.0000004\\\" /> <abundance value=\\\"0.801\\\" error=\\\"0.007\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"C\\\" atomic-number=\\\"6\\\"> <natural-abundance> <mass value=\\\"12.0107\\\" error=\\\"0.0008\\\" /> <isotope mass-number=\\\"12\\\"> <mass value=\\\"12\\\" error=\\\"0\\\" /> <abundance value=\\\"0.9893\\\" error=\\\"0.0008\\\" /> </isotope> <isotope mass-number=\\\"13\\\"> <mass value=\\\"13.003354838\\\" error=\\\"0.000000005\\\" /> <abundance value=\\\"0.0107\\\" error=\\\"0.0008\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"N\\\" atomic-number=\\\"7\\\"> <natural-abundance> <mass value=\\\"14.0067\\\" error=\\\"0.0002\\\" /> <isotope mass-number=\\\"14\\\"> <mass value=\\\"14.0030740074\\\" error=\\\"0.0000000018\\\" /> <abundance value=\\\"0.99636\\\" error=\\\"0.00020\\\" /> </isotope> <isotope mass-number=\\\"15\\\"> <mass value=\\\"15.000108973\\\" error=\\\"0.000000012\\\" /> <abundance value=\\\"0.00364\\\" error=\\\"0.00020\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"O\\\" atomic-number=\\\"8\\\"> <natural-abundance> <mass value=\\\"15.9994\\\" error=\\\"0.0003\\\" /> <isotope mass-number=\\\"16\\\"> <mass value=\\\"15.9949146223\\\" error=\\\"0.0000000025\\\" /> <abundance value=\\\"0.99759\\\" error=\\\"0.00016\\\" /> </isotope> <isotope mass-number=\\\"17\\\"> <mass value=\\\"16.99913150\\\" error=\\\"0.00000022\\\" /> <abundance value=\\\"0.00038\\\" error=\\\"0.00001\\\" /> </isotope> <isotope mass-number=\\\"18\\\"> <mass value=\\\"17.9991604\\\" error=\\\"0.0000009\\\" /> <abundance value=\\\"0.00205\\\" error=\\\"0.00014\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"F\\\" atomic-number=\\\"9\\\"> <natural-abundance> <mass value=\\\"18.9984032\\\" error=\\\"0.0000005\\\" /> <isotope mass-number=\\\"19\\\"> <mass value=\\\"18.99840320\\\" error=\\\"0.00000007\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ne\\\" atomic-number=\\\"10\\\"> <natural-abundance> <mass value=\\\"20.1797\\\" error=\\\"0.0006\\\" /> <isotope mass-number=\\\"20\\\"> <mass value=\\\"19.992440176\\\" error=\\\"0.000000003\\\" /> <abundance value=\\\"0.9048\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"21\\\"> <mass value=\\\"20.99384674\\\" error=\\\"0.00000004\\\" /> <abundance value=\\\"0.0027\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"22\\\"> <mass value=\\\"21.99138550\\\" error=\\\"0.00000025\\\" /> <abundance value=\\\"0.0925\\\" error=\\\"0.0003\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Na\\\" atomic-number=\\\"11\\\"> <natural-abundance> <mass value=\\\"22.989770\\\" error=\\\"0.000002\\\" /> <isotope mass-number=\\\"23\\\"> <mass value=\\\"22.98976966\\\" error=\\\"0.00000026\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Mg\\\" atomic-number=\\\"12\\\"> <natural-abundance> <mass value=\\\"24.3050\\\" error=\\\"0.0006\\\" /> <isotope mass-number=\\\"24\\\"> <mass value=\\\"23.98504187\\\" error=\\\"0.00000026\\\" /> <abundance value=\\\"0.7899\\\" error=\\\"0.0004\\\" /> </isotope> <isotope mass-number=\\\"25\\\"> <mass value=\\\"24.98583700\\\" error=\\\"0.00000026\\\" /> <abundance value=\\\"0.1000\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"26\\\"> <mass value=\\\"25.98259300\\\" error=\\\"0.00000026\\\" /> <abundance value=\\\"0.1101\\\" error=\\\"0.0003\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Al\\\" atomic-number=\\\"13\\\"> <natural-abundance> <mass value=\\\"26.981538\\\" error=\\\"0.000002\\\" /> <isotope mass-number=\\\"27\\\"> <mass value=\\\"26.98153841\\\" error=\\\"0.00000024\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Si\\\" atomic-number=\\\"14\\\"> <natural-abundance> <mass value=\\\"28.0855\\\" error=\\\"0.0003\\\" /> <isotope mass-number=\\\"28\\\"> <mass value=\\\"27.97692649\\\" error=\\\"0.00000022\\\" /> <abundance value=\\\"0.92223\\\" error=\\\"0.00019\\\" /> </isotope> <isotope mass-number=\\\"29\\\"> <mass value=\\\"28.97649468\\\" error=\\\"0.00000022\\\" /> <abundance value=\\\"0.04685\\\" error=\\\"0.00008\\\" /> </isotope> <isotope mass-number=\\\"30\\\"> <mass value=\\\"29.97377018\\\" error=\\\"0.00000022\\\" /> <abundance value=\\\"0.03092\\\" error=\\\"0.00011\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"P\\\" atomic-number=\\\"15\\\"> <natural-abundance> <mass value=\\\"30.973761\\\" error=\\\"0.000002\\\" /> <isotope mass-number=\\\"31\\\"> <mass value=\\\"30.97376149\\\" error=\\\"0.00000027\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"S\\\" atomic-number=\\\"16\\\"> <natural-abundance> <mass value=\\\"32.065\\\" error=\\\"0.005\\\" /> <isotope mass-number=\\\"32\\\"> <mass value=\\\"31.97207073\\\" error=\\\"0.00000015\\\" /> <abundance value=\\\"0.9499\\\" error=\\\"0.0026\\\" /> </isotope> <isotope mass-number=\\\"33\\\"> <mass value=\\\"32.97145854\\\" error=\\\"0.00000015\\\" /> <abundance value=\\\"0.0075\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"34\\\"> <mass value=\\\"33.96786687\\\" error=\\\"0.00000014\\\" /> <abundance value=\\\"0.0425\\\" error=\\\"0.0024\\\" /> </isotope> <isotope mass-number=\\\"36\\\"> <mass value=\\\"35.96708088\\\" error=\\\"0.00000025\\\" /> <abundance value=\\\"0.0001\\\" error=\\\"0.0001\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Cl\\\" atomic-number=\\\"17\\\"> <natural-abundance> <mass value=\\\"35.453\\\" error=\\\"0.002\\\" /> <isotope mass-number=\\\"35\\\"> <mass value=\\\"34.96885271\\\" error=\\\"0.00000004\\\" /> <abundance value=\\\"0.7576\\\" error=\\\"0.0010\\\" /> </isotope> <isotope mass-number=\\\"37\\\"> <mass value=\\\"36.96590260\\\" error=\\\"0.00000005\\\" /> <abundance value=\\\"0.2424\\\" error=\\\"0.0010\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ar\\\" atomic-number=\\\"18\\\"> <natural-abundance> <mass value=\\\"39.948\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"36\\\"> <mass value=\\\"35.96754626\\\" error=\\\"0.00000027\\\" /> <abundance value=\\\"0.0003365\\\" error=\\\"0.000030\\\" /> </isotope> <isotope mass-number=\\\"38\\\"> <mass value=\\\"37.9627322\\\" error=\\\"0.0000005\\\" /> <abundance value=\\\"0.000632\\\" error=\\\"0.000005\\\" /> </isotope> <isotope mass-number=\\\"40\\\"> <mass value=\\\"39.962383124\\\" error=\\\"0.000000005\\\" /> <abundance value=\\\"0.996003\\\" error=\\\"0.000030\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"K\\\" atomic-number=\\\"19\\\"> <natural-abundance> <mass value=\\\"39.0983\\\" error=\\\"0.0001\\\" /> <isotope mass-number=\\\"39\\\"> <mass value=\\\"38.9637069\\\" error=\\\"0.0000003\\\" /> <abundance value=\\\"0.932581\\\" error=\\\"0.000044\\\" /> </isotope> <isotope mass-number=\\\"40\\\"> <mass value=\\\"39.96399867\\\" error=\\\"0.00000029\\\" /> <abundance value=\\\"0.000117\\\" error=\\\"0.000001\\\" /> </isotope> <isotope mass-number=\\\"41\\\"> <mass value=\\\"40.96182597\\\" error=\\\"0.00000028\\\" /> <abundance value=\\\"0.067302\\\" error=\\\"0.000044\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ca\\\" atomic-number=\\\"20\\\"> <natural-abundance> <mass value=\\\"40.078\\\" error=\\\"0.004\\\" /> <isotope mass-number=\\\"40\\\"> <mass value=\\\"39.9625912\\\" error=\\\"0.0000003\\\" /> <abundance value=\\\"0.96941\\\" error=\\\"0.00156\\\" /> </isotope> <isotope mass-number=\\\"42\\\"> <mass value=\\\"41.9586183\\\" error=\\\"0.0000004\\\" /> <abundance value=\\\"0.00647\\\" error=\\\"0.00023\\\" /> </isotope> <isotope mass-number=\\\"43\\\"> <mass value=\\\"42.9587668\\\" error=\\\"0.0000005\\\" /> <abundance value=\\\"0.00135\\\" error=\\\"0.00010\\\" /> </isotope> <isotope mass-number=\\\"44\\\"> <mass value=\\\"43.9554811\\\" error=\\\"0.0000009\\\" /> <abundance value=\\\"0.02086\\\" error=\\\"0.00110\\\" /> </isotope> <isotope mass-number=\\\"46\\\"> <mass value=\\\"45.9536927\\\" error=\\\"0.0000025\\\" /> <abundance value=\\\"0.00004\\\" error=\\\"0.00003\\\" /> </isotope> <isotope mass-number=\\\"48\\\"> <mass value=\\\"47.952533\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.00187\\\" error=\\\"0.00021\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Sc\\\" atomic-number=\\\"21\\\"> <natural-abundance> <mass value=\\\"44.955910\\\" error=\\\"0.000008\\\" /> <isotope mass-number=\\\"45\\\"> <mass value=\\\"44.9559102\\\" error=\\\"0.0000012\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ti\\\" atomic-number=\\\"22\\\"> <natural-abundance> <mass value=\\\"47.867\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"46\\\"> <mass value=\\\"45.9526295\\\" error=\\\"0.0000012\\\" /> <abundance value=\\\"0.0825\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"47\\\"> <mass value=\\\"46.9517637\\\" error=\\\"0.0000010\\\" /> <abundance value=\\\"0.0744\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"48\\\"> <mass value=\\\"47.9479470\\\" error=\\\"0.0000010\\\" /> <abundance value=\\\"0.7372\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"49\\\"> <mass value=\\\"48.9478707\\\" error=\\\"0.0000010\\\" /> <abundance value=\\\"0.0541\\\" error=\\\"0.0002\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"V\\\" atomic-number=\\\"23\\\"> <natural-abundance> <mass value=\\\"50.9415\\\" error=\\\"0.0001\\\" /> <isotope mass-number=\\\"50\\\"> <mass value=\\\"49.9471627\\\" error=\\\"0.0000014\\\" /> <abundance value=\\\"0.00250\\\" error=\\\"0.00004\\\" /> </isotope> <isotope mass-number=\\\"51\\\"> <mass value=\\\"50.9439635\\\" error=\\\"0.0000014\\\" /> <abundance value=\\\"0.99750\\\" error=\\\"0.00004\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Cr\\\" atomic-number=\\\"24\\\"> <natural-abundance> <mass value=\\\"51.9961\\\" error=\\\"0.0006\\\" /> <isotope mass-number=\\\"50\\\"> <mass value=\\\"49.9460495\\\" error=\\\"0.0000014\\\" /> <abundance value=\\\"0.04345\\\" error=\\\"0.00013\\\" /> </isotope> <isotope mass-number=\\\"52\\\"> <mass value=\\\"51.9405115\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.83789\\\" error=\\\"0.00018\\\" /> </isotope> <isotope mass-number=\\\"53\\\"> <mass value=\\\"52.9406534\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.09501\\\" error=\\\"0.00017\\\" /> </isotope> <isotope mass-number=\\\"54\\\"> <mass value=\\\"53.938846\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.02365\\\" error=\\\"0.00007\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Mn\\\" atomic-number=\\\"25\\\"> <natural-abundance> <mass value=\\\"54.938049\\\" error=\\\"0.000009\\\" /> <isotope mass-number=\\\"55\\\"> <mass value=\\\"54.9380493\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Fe\\\" atomic-number=\\\"26\\\"> <natural-abundance> <mass value=\\\"55.845\\\" error=\\\"0.002\\\" /> <isotope mass-number=\\\"54\\\"> <mass value=\\\"53.9396147\\\" error=\\\"0.0000014\\\" /> <abundance value=\\\"0.05845\\\" error=\\\"0.00035\\\" /> </isotope> <isotope mass-number=\\\"56\\\"> <mass value=\\\"55.9349418\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.91754\\\" error=\\\"0.00036\\\" /> </isotope> <isotope mass-number=\\\"57\\\"> <mass value=\\\"56.9353983\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.02119\\\" error=\\\"0.00010\\\" /> </isotope> <isotope mass-number=\\\"58\\\"> <mass value=\\\"57.9332801\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.00282\\\" error=\\\"0.00004\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Co\\\" atomic-number=\\\"27\\\"> <natural-abundance> <mass value=\\\"58.933200\\\" error=\\\"0.000009\\\" /> <isotope mass-number=\\\"59\\\"> <mass value=\\\"59.9331999\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ni\\\" atomic-number=\\\"28\\\"> <natural-abundance> <mass value=\\\"58.6934\\\" error=\\\"0.0002\\\" /> <isotope mass-number=\\\"58\\\"> <mass value=\\\"57.9353477\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.680769\\\" error=\\\"0.000089\\\" /> </isotope> <isotope mass-number=\\\"60\\\"> <mass value=\\\"59.9307903\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.262231\\\" error=\\\"0.000077\\\" /> </isotope> <isotope mass-number=\\\"61\\\"> <mass value=\\\"60.9310601\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.011399\\\" error=\\\"0.000006\\\" /> </isotope> <isotope mass-number=\\\"62\\\"> <mass value=\\\"61.9283484\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.0036345\\\" error=\\\"0.000017\\\" /> </isotope> <isotope mass-number=\\\"64\\\"> <mass value=\\\"63.9279692\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.009256\\\" error=\\\"0.000009\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Cu\\\" atomic-number=\\\"29\\\"> <natural-abundance> <mass value=\\\"63.546\\\" error=\\\"0.003\\\" /> <isotope mass-number=\\\"63\\\"> <mass value=\\\"62.9296007\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.6915\\\" error=\\\"0.0015\\\" /> </isotope> <isotope mass-number=\\\"65\\\"> <mass value=\\\"64.9277938\\\" error=\\\"0.0000019\\\" /> <abundance value=\\\"0.3085\\\" error=\\\"0.0015\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Zn\\\" atomic-number=\\\"30\\\"> <natural-abundance> <mass value=\\\"65.409\\\" error=\\\"0.004\\\" /> <isotope mass-number=\\\"64\\\"> <mass value=\\\"63.9291461\\\" error=\\\"0.0000018\\\" /> <abundance value=\\\"0.48268\\\" error=\\\"0.00321\\\" /> </isotope> <isotope mass-number=\\\"66\\\"> <mass value=\\\"65.9260364\\\" error=\\\"0.0000017\\\" /> <abundance value=\\\"0.27975\\\" error=\\\"0.00077\\\" /> </isotope> <isotope mass-number=\\\"67\\\"> <mass value=\\\"66.9271305\\\" error=\\\"0.0000017\\\" /> <abundance value=\\\"0.04102\\\" error=\\\"0.00021\\\" /> </isotope> <isotope mass-number=\\\"68\\\"> <mass value=\\\"67.9248473\\\" error=\\\"0.0000017\\\" /> <abundance value=\\\"0.19024\\\" error=\\\"0.00123\\\" /> </isotope> <isotope mass-number=\\\"70\\\"> <mass value=\\\"69.925325\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.00631\\\" error=\\\"0.00009\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ga\\\" atomic-number=\\\"31\\\"> <natural-abundance> <mass value=\\\"69.723\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"69\\\"> <mass value=\\\"68.925581\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.60108\\\" error=\\\"0.00009\\\" /> </isotope> <isotope mass-number=\\\"71\\\"> <mass value=\\\"70.9247073\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.39892\\\" error=\\\"0.00009\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ge\\\" atomic-number=\\\"32\\\"> <natural-abundance> <mass value=\\\"72.64\\\" error=\\\"0.01\\\" /> <isotope mass-number=\\\"70\\\"> <mass value=\\\"69.9242500\\\" error=\\\"0.0000019\\\" /> <abundance value=\\\"0.2038\\\" error=\\\"0.0018\\\" /> </isotope> <isotope mass-number=\\\"72\\\"> <mass value=\\\"71.9220763\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.2731\\\" error=\\\"0.0026\\\" /> </isotope> <isotope mass-number=\\\"73\\\"> <mass value=\\\"72.9234595\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.0776\\\" error=\\\"0.0008\\\" /> </isotope> <isotope mass-number=\\\"74\\\"> <mass value=\\\"73.9211784\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.3672\\\" error=\\\"0.0015\\\" /> </isotope> <isotope mass-number=\\\"76\\\"> <mass value=\\\"75.9214029\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.0783\\\" error=\\\"0.0007\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"As\\\" atomic-number=\\\"33\\\"> <natural-abundance> <mass value=\\\"74.92160\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"75\\\"> <mass value=\\\"74.9215966\\\" error=\\\"0.0000018\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Se\\\" atomic-number=\\\"34\\\"> <natural-abundance> <mass value=\\\"78.96\\\" error=\\\"0.03\\\" /> <isotope mass-number=\\\"74\\\"> <mass value=\\\"73.9224767\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.0089\\\" error=\\\"0.0004\\\" /> </isotope> <isotope mass-number=\\\"76\\\"> <mass value=\\\"75.9192143\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.0937\\\" error=\\\"0.0029\\\" /> </isotope> <isotope mass-number=\\\"77\\\"> <mass value=\\\"76.9199148\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.0763\\\" error=\\\"0.0016\\\" /> </isotope> <isotope mass-number=\\\"78\\\"> <mass value=\\\"77.9173097\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.2377\\\" error=\\\"0.0028\\\" /> </isotope> <isotope mass-number=\\\"80\\\"> <mass value=\\\"79.9165221\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.4961\\\" error=\\\"0.0041\\\" /> </isotope> <isotope mass-number=\\\"82\\\"> <mass value=\\\"81.9167003\\\" error=\\\"0.0000022\\\" /> <abundance value=\\\"0.0873\\\" error=\\\"0.0022\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Br\\\" atomic-number=\\\"35\\\"> <natural-abundance> <mass value=\\\"79.904\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"79\\\"> <mass value=\\\"78.9183379\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.5069\\\" error=\\\"0.0007\\\" /> </isotope> <isotope mass-number=\\\"81\\\"> <mass value=\\\"80.916291\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.4931\\\" error=\\\"0.0007\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Kr\\\" atomic-number=\\\"36\\\"> <natural-abundance> <mass value=\\\"83.798\\\" error=\\\"0.002\\\" /> <isotope mass-number=\\\"78\\\"> <mass value=\\\"77.920388\\\" error=\\\"0.000007\\\" /> <abundance value=\\\"0.00355\\\" error=\\\"0.00003\\\" /> </isotope> <isotope mass-number=\\\"80\\\"> <mass value=\\\"79.916379\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.02286\\\" error=\\\"0.00010\\\" /> </isotope> <isotope mass-number=\\\"82\\\"> <mass value=\\\"81.9134850\\\" error=\\\"0.0000028\\\" /> <abundance value=\\\"0.11593\\\" error=\\\"0.00031\\\" /> </isotope> <isotope mass-number=\\\"83\\\"> <mass value=\\\"82.914137\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.11500\\\" error=\\\"0.00019\\\" /> </isotope> <isotope mass-number=\\\"84\\\"> <mass value=\\\"83.911508\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.56987\\\" error=\\\"0.00015\\\" /> </isotope> <isotope mass-number=\\\"86\\\"> <mass value=\\\"85.910615\\\" error=\\\"0.000005\\\" /> <abundance value=\\\"0.17279\\\" error=\\\"0.00041\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Rb\\\" atomic-number=\\\"37\\\"> <natural-abundance> <mass value=\\\"85.4678\\\" error=\\\"0.0003\\\" /> <isotope mass-number=\\\"85\\\"> <mass value=\\\"84.9117924\\\" error=\\\"0.0000027\\\" /> <abundance value=\\\"0.7217\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"87\\\"> <mass value=\\\"86.9091858\\\" error=\\\"0.0000028\\\" /> <abundance value=\\\"0.2783\\\" error=\\\"0.0002\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Sr\\\" atomic-number=\\\"38\\\"> <natural-abundance> <mass value=\\\"87.62\\\" error=\\\"0.01\\\" /> <isotope mass-number=\\\"84\\\"> <mass value=\\\"83.913426\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.0056\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"86\\\"> <mass value=\\\"85.9092647\\\" error=\\\"0.0000025\\\" /> <abundance value=\\\"0.0986\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"87\\\"> <mass value=\\\"86.9088816\\\" error=\\\"0.0000025\\\" /> <abundance value=\\\"0.0700\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"88\\\"> <mass value=\\\"87.9056167\\\" error=\\\"0.0000025\\\" /> <abundance value=\\\"0.8258\\\" error=\\\"0.0001\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Y\\\" atomic-number=\\\"39\\\"> <natural-abundance> <mass value=\\\"88.90585\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"89\\\"> <mass value=\\\"88.9058485\\\" error=\\\"0.0000026\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Zr\\\" atomic-number=\\\"40\\\"> <natural-abundance> <mass value=\\\"91.224\\\" error=\\\"0.002\\\" /> <isotope mass-number=\\\"90\\\"> <mass value=\\\"89.9047022\\\" error=\\\"0.0000024\\\" /> <abundance value=\\\"0.5145\\\" error=\\\"0.0040\\\" /> </isotope> <isotope mass-number=\\\"91\\\"> <mass value=\\\"90.9056434\\\" error=\\\"0.0000023\\\" /> <abundance value=\\\"0.1122\\\" error=\\\"0.0005\\\" /> </isotope> <isotope mass-number=\\\"92\\\"> <mass value=\\\"91.9050386\\\" error=\\\"0.0000023\\\" /> <abundance value=\\\"0.1715\\\" error=\\\"0.0008\\\" /> </isotope> <isotope mass-number=\\\"94\\\"> <mass value=\\\"93.9063144\\\" error=\\\"0.0000026\\\" /> <abundance value=\\\"0.1738\\\" error=\\\"0.0028\\\" /> </isotope> <isotope mass-number=\\\"96\\\"> <mass value=\\\"95.908275\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0280\\\" error=\\\"0.0009\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Nb\\\" atomic-number=\\\"41\\\"> <natural-abundance> <mass value=\\\"92.90638\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"93\\\"> <mass value=\\\"92.9063762\\\" error=\\\"0.0000024\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Mo\\\" atomic-number=\\\"42\\\"> <natural-abundance> <mass value=\\\"95.94\\\" error=\\\"0.02\\\" /> <isotope mass-number=\\\"92\\\"> <mass value=\\\"91.906810\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.1477\\\" error=\\\"0.0031\\\" /> </isotope> <isotope mass-number=\\\"94\\\"> <mass value=\\\"93.9050867\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.0923\\\" error=\\\"0.0010\\\" /> </isotope> <isotope mass-number=\\\"95\\\"> <mass value=\\\"94.9058406\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.1590\\\" error=\\\"0.0009\\\" /> </isotope> <isotope mass-number=\\\"96\\\"> <mass value=\\\"95.9046780\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.1668\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"97\\\"> <mass value=\\\"96.9030201\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.0956\\\" error=\\\"0.0005\\\" /> </isotope> <isotope mass-number=\\\"98\\\"> <mass value=\\\"97.9054069\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.2419\\\" error=\\\"0.0026\\\" /> </isotope> <isotope mass-number=\\\"100\\\"> <mass value=\\\"99.907476\\\" error=\\\"0.000006\\\" /> <abundance value=\\\"0.0967\\\" error=\\\"0.0020\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ru\\\" atomic-number=\\\"44\\\"> <natural-abundance> <mass value=\\\"101.07\\\" error=\\\"0.02\\\" /> <isotope mass-number=\\\"96\\\"> <mass value=\\\"95.907604\\\" error=\\\"0.000009\\\" /> <abundance value=\\\"0.0554\\\" error=\\\"0.0014\\\" /> </isotope> <isotope mass-number=\\\"98\\\"> <mass value=\\\"97.905287\\\" error=\\\"0.000007\\\" /> <abundance value=\\\"0.0187\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"99\\\"> <mass value=\\\"98.9059385\\\" error=\\\"0.0000022\\\" /> <abundance value=\\\".01276\\\" error=\\\"0.0014\\\" /> </isotope> <isotope mass-number=\\\"100\\\"> <mass value=\\\"99.9042189\\\" error=\\\"0.0000022\\\" /> <abundance value=\\\"0.1260\\\" error=\\\"0.0007\\\" /> </isotope> <isotope mass-number=\\\"101\\\"> <mass value=\\\"100.9055815\\\" error=\\\"0.0000022\\\" /> <abundance value=\\\"0.1706\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"102\\\"> <mass value=\\\"101.9043488\\\" error=\\\"0.0000022\\\" /> <abundance value=\\\"0.3155\\\" error=\\\"0.0014\\\" /> </isotope> <isotope mass-number=\\\"104\\\"> <mass value=\\\"103.905430\\\" error=\\\".01862\\\" /> <abundance value=\\\"0.1862\\\" error=\\\"0.0027\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Rh\\\" atomic-number=\\\"45\\\"> <natural-abundance> <mass value=\\\"1025.90550\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"103\\\"> <mass value=\\\"102.905504\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Pd\\\" atomic-number=\\\"46\\\"> <natural-abundance> <mass value=\\\"106.42\\\" error=\\\"0.01\\\" /> <isotope mass-number=\\\"102\\\"> <mass value=\\\"101.905607\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0102\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"104\\\"> <mass value=\\\"103.904034\\\" error=\\\"0.000005\\\" /> <abundance value=\\\"0.1114\\\" error=\\\"0.0008\\\" /> </isotope> <isotope mass-number=\\\"105\\\"> <mass value=\\\"104.905083\\\" error=\\\"0.000005\\\" /> <abundance value=\\\"0.2233\\\" error=\\\"0.0008\\\" /> </isotope> <isotope mass-number=\\\"106\\\"> <mass value=\\\"105.903484\\\" error=\\\"0.000005\\\" /> <abundance value=\\\"0.2733\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"108\\\"> <mass value=\\\"107.903895\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.2646\\\" error=\\\"0.0009\\\" /> </isotope> <isotope mass-number=\\\"110\\\"> <mass value=\\\"109.905153\\\" error=\\\"0.000012\\\" /> <abundance value=\\\"0.1172\\\" error=\\\"0.0009\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ag\\\" atomic-number=\\\"47\\\"> <natural-abundance> <mass value=\\\"107.8682\\\" error=\\\"0.0002\\\" /> <isotope mass-number=\\\"107\\\"> <mass value=\\\"106.905093\\\" error=\\\"0.000006\\\" /> <abundance value=\\\"0.51839\\\" error=\\\"0.00008\\\" /> </isotope> <isotope mass-number=\\\"109\\\"> <mass value=\\\"108.904756\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.48161\\\" error=\\\"0.00008\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Cd\\\" atomic-number=\\\"48\\\"> <natural-abundance> <mass value=\\\"112.411\\\" error=\\\"0.008\\\" /> <isotope mass-number=\\\"106\\\"> <mass value=\\\"105.906458\\\" error=\\\"0.000006\\\" /> <abundance value=\\\"0.0125\\\" error=\\\"0.0006\\\" /> </isotope> <isotope mass-number=\\\"108\\\"> <mass value=\\\"107.904183\\\" error=\\\"0.000006\\\" /> <abundance value=\\\"0.0089\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"110\\\"> <mass value=\\\"109.903006\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1249\\\" error=\\\"0.0018\\\" /> </isotope> <isotope mass-number=\\\"111\\\"> <mass value=\\\"110.904182\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1280\\\" error=\\\"0.0012\\\" /> </isotope> <isotope mass-number=\\\"112\\\"> <mass value=\\\"111.9027577\\\" error=\\\"0.0000030\\\" /> <abundance value=\\\"0.2413\\\" error=\\\"0.0021\\\" /> </isotope> <isotope mass-number=\\\"113\\\"> <mass value=\\\"112.9044014\\\" error=\\\"0.0000030\\\" /> <abundance value=\\\"0.1222\\\" error=\\\"0.0012\\\" /> </isotope> <isotope mass-number=\\\"114\\\"> <mass value=\\\"113.9033586\\\" error=\\\"0.0000030\\\" /> <abundance value=\\\"0.2873\\\" error=\\\"0.0042\\\" /> </isotope> <isotope mass-number=\\\"116\\\"> <mass value=\\\"115.904756\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0749\\\" error=\\\"0.0018\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"In\\\" atomic-number=\\\"49\\\"> <natural-abundance> <mass value=\\\"114.818\\\" error=\\\"0.003\\\" /> <isotope mass-number=\\\"113\\\"> <mass value=\\\"112.904062\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.0429\\\" error=\\\"0.0005\\\" /> </isotope> <isotope mass-number=\\\"115\\\"> <mass value=\\\"114.903879\\\" error=\\\"0.000040\\\" /> <abundance value=\\\"0.9571\\\" error=\\\"0.0005\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Sn\\\" atomic-number=\\\"50\\\"> <natural-abundance> <mass value=\\\"118.710\\\" error=\\\"0.007\\\" /> <isotope mass-number=\\\"112\\\"> <mass value=\\\"111.904822\\\" error=\\\"0.000005\\\" /> <abundance value=\\\"0.0097\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"114\\\"> <mass value=\\\"113.902783\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0066\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"115\\\"> <mass value=\\\"114.903347\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0034\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"116\\\"> <mass value=\\\"115.901745\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1454\\\" error=\\\"0.0009\\\" /> </isotope> <isotope mass-number=\\\"117\\\"> <mass value=\\\"116.902955\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0768\\\" error=\\\"0.0007\\\" /> </isotope> <isotope mass-number=\\\"118\\\"> <mass value=\\\"117.901608\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2422\\\" error=\\\"0.0009\\\" /> </isotope> <isotope mass-number=\\\"119\\\"> <mass value=\\\"118.903311\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0859\\\" error=\\\"0.0004\\\" /> </isotope> <isotope mass-number=\\\"120\\\"> <mass value=\\\"119.9021985\\\" error=\\\"0.0000027\\\" /> <abundance value=\\\"0.3258\\\" error=\\\"0.0009\\\" /> </isotope> <isotope mass-number=\\\"122\\\"> <mass value=\\\"121.9034411\\\" error=\\\"0.0000029\\\" /> <abundance value=\\\"0.0463\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"124\\\"> <mass value=\\\"123.9052745\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.0579\\\" error=\\\"0.0005\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Sb\\\" atomic-number=\\\"51\\\"> <natural-abundance> <mass value=\\\"121.760\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"121\\\"> <mass value=\\\"120.9038222\\\" error=\\\"0.0000026\\\" /> <abundance value=\\\"0.5721\\\" error=\\\"0.0005\\\" /> </isotope> <isotope mass-number=\\\"123\\\"> <mass value=\\\"122.9042160\\\" error=\\\"0.0000022\\\" /> <abundance value=\\\"0.4279\\\" error=\\\"0.0005\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Te\\\" atomic-number=\\\"52\\\"> <natural-abundance> <mass value=\\\"127.60\\\" error=\\\"0.03\\\" /> <isotope mass-number=\\\"120\\\"> <mass value=\\\"119.904026\\\" error=\\\"0.000011\\\" /> <abundance value=\\\"0.0009\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"122\\\"> <mass value=\\\"121.9030558\\\" error=\\\"0.0000029\\\" /> <abundance value=\\\"0.0255\\\" error=\\\"0.0012\\\" /> </isotope> <isotope mass-number=\\\"123\\\"> <mass value=\\\"122.9042711\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.0089\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"124\\\"> <mass value=\\\"123.9028188\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.0474\\\" error=\\\"0.0014\\\" /> </isotope> <isotope mass-number=\\\"125\\\"> <mass value=\\\"124.9044241\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.0707\\\" error=\\\"0.0015\\\" /> </isotope> <isotope mass-number=\\\"126\\\"> <mass value=\\\"125.9033049\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.1884\\\" error=\\\"0.0025\\\" /> </isotope> <isotope mass-number=\\\"128\\\"> <mass value=\\\"127.9044615\\\" error=\\\"0.0000019\\\" /> <abundance value=\\\"0.3174\\\" error=\\\"0.0008\\\" /> </isotope> <isotope mass-number=\\\"130\\\"> <mass value=\\\"129.9062229\\\" error=\\\"0.0000021\\\" /> <abundance value=\\\"0.3408\\\" error=\\\"0.0062\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"I\\\" atomic-number=\\\"53\\\"> <natural-abundance> <mass value=\\\"126.90447\\\" error=\\\"0.00003\\\" /> <isotope mass-number=\\\"127\\\"> <mass value=\\\"126.904468\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Xe\\\" atomic-number=\\\"54\\\"> <natural-abundance> <mass value=\\\"131.293\\\" error=\\\"0.006\\\" /> <isotope mass-number=\\\"124\\\"> <mass value=\\\"123.9058954\\\" error=\\\"0.0000021\\\" /> <abundance value=\\\"0.000952\\\" error=\\\"0.000003\\\" /> </isotope> <isotope mass-number=\\\"126\\\"> <mass value=\\\"125.904268\\\" error=\\\"0.000007\\\" /> <abundance value=\\\"0.000890\\\" error=\\\"0.000002\\\" /> </isotope> <isotope mass-number=\\\"128\\\"> <mass value=\\\"127.9035305\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.019102\\\" error=\\\"0.000008\\\" /> </isotope> <isotope mass-number=\\\"129\\\"> <mass value=\\\"128.9047799\\\" error=\\\"0.0000009\\\" /> <abundance value=\\\"0.264006\\\" error=\\\"0.000082\\\" /> </isotope> <isotope mass-number=\\\"130\\\"> <mass value=\\\"129.9035089\\\" error=\\\"0.0000011\\\" /> <abundance value=\\\"0.040710\\\" error=\\\"0.000013\\\" /> </isotope> <isotope mass-number=\\\"131\\\"> <mass value=\\\"130.9050828\\\" error=\\\"0.0000018\\\" /> <abundance value=\\\"0.212324\\\" error=\\\"0.000030\\\" /> </isotope> <isotope mass-number=\\\"132\\\"> <mass value=\\\"131.9041546\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.269086\\\" error=\\\"0.000033\\\" /> </isotope> <isotope mass-number=\\\"134\\\"> <mass value=\\\"133.9053945\\\" error=\\\"0.0000009\\\" /> <abundance value=\\\"0.104357\\\" error=\\\"0.000021\\\" /> </isotope> <isotope mass-number=\\\"136\\\"> <mass value=\\\"135.907220\\\" error=\\\"0.000008\\\" /> <abundance value=\\\"0.088573\\\" error=\\\"0.000044\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Cs\\\" atomic-number=\\\"55\\\"> <natural-abundance> <mass value=\\\"132.90545\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"133\\\"> <mass value=\\\"132.905447\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ba\\\" atomic-number=\\\"56\\\"> <natural-abundance> <mass value=\\\"137.327\\\" error=\\\"0.007\\\" /> <isotope mass-number=\\\"130\\\"> <mass value=\\\"129.906311\\\" error=\\\"0.000007\\\" /> <abundance value=\\\"0.00106\\\" error=\\\"0.00001\\\" /> </isotope> <isotope mass-number=\\\"132\\\"> <mass value=\\\"131.905056\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.00101\\\" error=\\\"0.00001\\\" /> </isotope> <isotope mass-number=\\\"134\\\"> <mass value=\\\"133.904504\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.02417\\\" error=\\\"0.00018\\\" /> </isotope> <isotope mass-number=\\\"135\\\"> <mass value=\\\"134.905684\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.000003\\\" error=\\\"0.00012\\\" /> </isotope> <isotope mass-number=\\\"136\\\"> <mass value=\\\"135.904571\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.07854\\\" error=\\\"0.00024\\\" /> </isotope> <isotope mass-number=\\\"137\\\"> <mass value=\\\"136.905822\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.11232\\\" error=\\\"0.00024\\\" /> </isotope> <isotope mass-number=\\\"138\\\"> <mass value=\\\"137.905242\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.71698\\\" error=\\\"0.00042\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"La\\\" atomic-number=\\\"57\\\"> <natural-abundance> <mass value=\\\"138.9055\\\" error=\\\"0.0002\\\" /> <isotope mass-number=\\\"138\\\"> <mass value=\\\"137.907108\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.00090\\\" error=\\\"0.00001\\\" /> </isotope> <isotope mass-number=\\\"139\\\"> <mass value=\\\"138.906349\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.99910\\\" error=\\\"0.00001\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ce\\\" atomic-number=\\\"58\\\"> <natural-abundance> <mass value=\\\"140.116\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"136\\\"> <mass value=\\\"135.907140\\\" error=\\\"0.000050\\\" /> <abundance value=\\\"0.00185\\\" error=\\\"0.00002\\\" /> </isotope> <isotope mass-number=\\\"138\\\"> <mass value=\\\"137.905986\\\" error=\\\"0.000011\\\" /> <abundance value=\\\"0.00251\\\" error=\\\"0.00002\\\" /> </isotope> <isotope mass-number=\\\"140\\\"> <mass value=\\\"139.905\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.88450\\\" error=\\\"0.00051\\\" /> </isotope> <isotope mass-number=\\\"142\\\"> <mass value=\\\"141.909241\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.11114\\\" error=\\\"0.00051\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Pr\\\" atomic-number=\\\"59\\\"> <natural-abundance> <mass value=\\\"140.90765\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"141\\\"> <mass value=\\\"140.907648\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Nd\\\" atomic-number=\\\"60\\\"> <natural-abundance> <mass value=\\\"144.24\\\" error=\\\"0.03\\\" /> <isotope mass-number=\\\"142\\\"> <mass value=\\\"141.907719\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.272\\\" error=\\\"0.005\\\" /> </isotope> <isotope mass-number=\\\"143\\\"> <mass value=\\\"142.909810\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.122\\\" error=\\\"0.002\\\" /> </isotope> <isotope mass-number=\\\"144\\\"> <mass value=\\\"143.910083\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.238\\\" error=\\\"0.003\\\" /> </isotope> <isotope mass-number=\\\"145\\\"> <mass value=\\\"144.912569\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.083\\\" error=\\\"0.001\\\" /> </isotope> <isotope mass-number=\\\"146\\\"> <mass value=\\\"145.913113\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.172\\\" error=\\\"0.003\\\" /> </isotope> <isotope mass-number=\\\"148\\\"> <mass value=\\\"147.916889\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.057\\\" error=\\\"0.001\\\" /> </isotope> <isotope mass-number=\\\"150\\\"> <mass value=\\\"149.920887\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.056\\\" error=\\\"0.002\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Sm\\\" atomic-number=\\\"62\\\"> <natural-abundance> <mass value=\\\"150.36\\\" error=\\\"0.03\\\" /> <isotope mass-number=\\\"144\\\"> <mass value=\\\"143.911996\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.0307\\\" error=\\\"0.0007\\\" /> </isotope> <isotope mass-number=\\\"147\\\"> <mass value=\\\"146.914894\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1499\\\" error=\\\"0.0018\\\" /> </isotope> <isotope mass-number=\\\"148\\\"> <mass value=\\\"147.914818\\\" error=\\\"0.1124\\\" /> <abundance value=\\\"0.1124\\\" error=\\\"0.0010\\\" /> </isotope> <isotope mass-number=\\\"149\\\"> <mass value=\\\"148.917180\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1382\\\" error=\\\"0.0007\\\" /> </isotope> <isotope mass-number=\\\"150\\\"> <mass value=\\\"149.917272\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0738\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"152\\\"> <mass value=\\\"151.919729\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2675\\\" error=\\\"0.0016\\\" /> </isotope> <isotope mass-number=\\\"154\\\"> <mass value=\\\"153.922206\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2275\\\" error=\\\"0.0029\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Eu\\\" atomic-number=\\\"63\\\"> <natural-abundance> <mass value=\\\"151.964\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"151\\\"> <mass value=\\\"150.919846\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.4781\\\" error=\\\"0.0006\\\" /> </isotope> <isotope mass-number=\\\"153\\\"> <mass value=\\\"152.921227\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.5219\\\" error=\\\"0.0006\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Gd\\\" atomic-number=\\\"64\\\"> <natural-abundance> <mass value=\\\"157.25\\\" error=\\\"0.03\\\" /> <isotope mass-number=\\\"152\\\"> <mass value=\\\"151.919789\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0020\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"154\\\"> <mass value=\\\"153.920862\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0218\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"155\\\"> <mass value=\\\"154.922619\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1480\\\" error=\\\"0.0012\\\" /> </isotope> <isotope mass-number=\\\"156\\\"> <mass value=\\\"155.922120\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2047\\\" error=\\\"0.0009\\\" /> </isotope> <isotope mass-number=\\\"157\\\"> <mass value=\\\"156.923957\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1565\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"158\\\"> <mass value=\\\"157.924101\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2484\\\" error=\\\"0.0007\\\" /> </isotope> <isotope mass-number=\\\"160\\\"> <mass value=\\\"159.927051\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2186\\\" error=\\\"0.0019\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Tb\\\" atomic-number=\\\"65\\\"> <natural-abundance> <mass value=\\\"158.92534\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"159\\\"> <mass value=\\\"158.925343\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Dy\\\" atomic-number=\\\"66\\\"> <natural-abundance> <mass value=\\\"162.500\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"156\\\"> <mass value=\\\"155.924278\\\" error=\\\"0.000007\\\" /> <abundance value=\\\"0.00056\\\" error=\\\"0.00003\\\" /> </isotope> <isotope mass-number=\\\"158\\\"> <mass value=\\\"157.924405\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.00095\\\" error=\\\"0.00003\\\" /> </isotope> <isotope mass-number=\\\"160\\\"> <mass value=\\\"159.925194\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.02329\\\" error=\\\"0.00018\\\" /> </isotope> <isotope mass-number=\\\"161\\\"> <mass value=\\\"160.926930\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.18889\\\" error=\\\"0.00042\\\" /> </isotope> <isotope mass-number=\\\"162\\\"> <mass value=\\\"161.926795\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.25475\\\" error=\\\"0.00036\\\" /> </isotope> <isotope mass-number=\\\"163\\\"> <mass value=\\\"162.928728\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.24896\\\" error=\\\"0.00042\\\" /> </isotope> <isotope mass-number=\\\"164\\\"> <mass value=\\\"163.929171\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.28260\\\" error=\\\"0.00054\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ho\\\" atomic-number=\\\"67\\\"> <natural-abundance> <mass value=\\\"164.93032\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"165\\\"> <mass value=\\\"164.930319\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Er\\\" atomic-number=\\\"68\\\"> <natural-abundance> <mass value=\\\"167.259\\\" error=\\\"0.003\\\" /> <isotope mass-number=\\\"162\\\"> <mass value=\\\"161.928775\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.00139\\\" error=\\\"0.00005\\\" /> </isotope> <isotope mass-number=\\\"164\\\"> <mass value=\\\"163.929197\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.01601\\\" error=\\\"0.00003\\\" /> </isotope> <isotope mass-number=\\\"166\\\"> <mass value=\\\"165.930290\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.33503\\\" error=\\\"0.00036\\\" /> </isotope> <isotope mass-number=\\\"167\\\"> <mass value=\\\"166.932046\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.22869\\\" error=\\\"0.00009\\\" /> </isotope> <isotope mass-number=\\\"168\\\"> <mass value=\\\"167.932368\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.26978\\\" error=\\\"0.00018\\\" /> </isotope> <isotope mass-number=\\\"170\\\"> <mass value=\\\"169.935461\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.14910\\\" error=\\\"0.00036\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Tm\\\" atomic-number=\\\"69\\\"> <natural-abundance> <mass value=\\\"168.93421\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"169\\\"> <mass value=\\\"168.934211\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Yb\\\" atomic-number=\\\"70\\\"> <natural-abundance> <mass value=\\\"173.04\\\" error=\\\"0.03\\\" /> <isotope mass-number=\\\"168\\\"> <mass value=\\\"167.933895\\\" error=\\\"0.000005\\\" /> <abundance value=\\\"0.0013\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"170\\\"> <mass value=\\\"169.934759\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0304\\\" error=\\\"0.0015\\\" /> </isotope> <isotope mass-number=\\\"171\\\"> <mass value=\\\"170.936323\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1428\\\" error=\\\"0.0057\\\" /> </isotope> <isotope mass-number=\\\"172\\\"> <mass value=\\\"171.936378\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2183\\\" error=\\\"0.0067\\\" /> </isotope> <isotope mass-number=\\\"173\\\"> <mass value=\\\"172.938207\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1613\\\" error=\\\"0.0027\\\" /> </isotope> <isotope mass-number=\\\"174\\\"> <mass value=\\\"173.938858\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.3183\\\" error=\\\"0.0092\\\" /> </isotope> <isotope mass-number=\\\"176\\\"> <mass value=\\\"175.942569\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1276\\\" error=\\\"0.0041\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Lu\\\" atomic-number=\\\"71\\\"> <natural-abundance> <mass value=\\\"174.967\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"175\\\"> <mass value=\\\"174.9407682\\\" error=\\\"0.0000028\\\" /> <abundance value=\\\"0.9741\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"176\\\"> <mass value=\\\"175.9426827\\\" error=\\\"0.0000028\\\" /> <abundance value=\\\"0.0259\\\" error=\\\"0.0002\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Hf\\\" atomic-number=\\\"72\\\"> <natural-abundance> <mass value=\\\"178.49\\\" error=\\\"0.02\\\" /> <isotope mass-number=\\\"174\\\"> <mass value=\\\"173.940042\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.0016\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"176\\\"> <mass value=\\\"175.941403\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0526\\\" error=\\\"0.0007\\\" /> </isotope> <isotope mass-number=\\\"177\\\"> <mass value=\\\"176.9432204\\\" error=\\\"0.0000027\\\" /> <abundance value=\\\"0.1860\\\" error=\\\"0.0009\\\" /> </isotope> <isotope mass-number=\\\"178\\\"> <mass value=\\\"177.9436981\\\" error=\\\"0.0000027\\\" /> <abundance value=\\\"0.2728\\\" error=\\\"0.0007\\\" /> </isotope> <isotope mass-number=\\\"179\\\"> <mass value=\\\"178.9488154\\\" error=\\\"0.0000027\\\" /> <abundance value=\\\"0.1362\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"180\\\"> <mass value=\\\"179.9465488\\\" error=\\\"0.0000027\\\" /> <abundance value=\\\"0.3508\\\" error=\\\"0.0016\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ta\\\" atomic-number=\\\"73\\\"> <natural-abundance> <mass value=\\\"180.9479\\\" error=\\\"0.0001\\\" /> <isotope mass-number=\\\"180\\\"> <mass value=\\\"179.947466\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.00012\\\" error=\\\"0.00002\\\" /> </isotope> <isotope mass-number=\\\"181\\\"> <mass value=\\\"180.947996\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.99988\\\" error=\\\"0.00002\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"W\\\" atomic-number=\\\"74\\\"> <natural-abundance> <mass value=\\\"183.84\\\" error=\\\"0.01\\\" /> <isotope mass-number=\\\"180\\\"> <mass value=\\\"179.946706\\\" error=\\\"0.000005\\\" /> <abundance value=\\\"0.0012\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"182\\\"> <mass value=\\\"181.948205\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.265\\\" error=\\\"0.0016\\\" /> </isotope> <isotope mass-number=\\\"183\\\"> <mass value=\\\"182.9502242\\\" error=\\\"0.0000030\\\" /> <abundance value=\\\"0.1431\\\" error=\\\"0.0004\\\" /> </isotope> <isotope mass-number=\\\"184\\\"> <mass value=\\\"183.9509323\\\" error=\\\"0.0000030\\\" /> <abundance value=\\\"0.3064\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"186\\\"> <mass value=\\\"185.954362\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2843\\\" error=\\\"0.0019\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Re\\\" atomic-number=\\\"75\\\"> <natural-abundance> <mass value=\\\"186.207\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"185\\\"> <mass value=\\\"184.952955\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.3740\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"187\\\"> <mass value=\\\"186.9557505\\\" error=\\\"0.0000030\\\" /> <abundance value=\\\"0.6260\\\" error=\\\"0.0002\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Os\\\" atomic-number=\\\"76\\\"> <natural-abundance> <mass value=\\\"190.23\\\" error=\\\"0.03\\\" /> <isotope mass-number=\\\"184\\\"> <mass value=\\\"183.952491\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0002\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"186\\\"> <mass value=\\\"185.953838\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0159\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"187\\\"> <mass value=\\\"186.9557476\\\" error=\\\"0.0000030\\\" /> <abundance value=\\\"0.0196\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"188\\\"> <mass value=\\\"187.9558357\\\" error=\\\"0.0000030\\\" /> <abundance value=\\\"0.1324\\\" error=\\\"0.0008\\\" /> </isotope> <isotope mass-number=\\\"189\\\"> <mass value=\\\"188.958145\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1615\\\" error=\\\"0.0005\\\" /> </isotope> <isotope mass-number=\\\"190\\\"> <mass value=\\\"189.958445\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2626\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"192\\\"> <mass value=\\\"191.961479\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.4078\\\" error=\\\"0.0019\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ir\\\" atomic-number=\\\"77\\\"> <natural-abundance> <mass value=\\\"192.217\\\" error=\\\"0.003\\\" /> <isotope mass-number=\\\"191\\\"> <mass value=\\\"190.960591\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.373\\\" error=\\\"0.002\\\" /> </isotope> <isotope mass-number=\\\"193\\\"> <mass value=\\\"192.962923\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.627\\\" error=\\\"0.002\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Pt\\\" atomic-number=\\\"78\\\"> <natural-abundance> <mass value=\\\"195.078\\\" error=\\\"0.002\\\" /> <isotope mass-number=\\\"190\\\"> <mass value=\\\"189.959930\\\" error=\\\"0.000007\\\" /> <abundance value=\\\"0.00014\\\" error=\\\"0.00001\\\" /> </isotope> <isotope mass-number=\\\"192\\\"> <mass value=\\\"191.961035\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.00782\\\" error=\\\"0.00007\\\" /> </isotope> <isotope mass-number=\\\"194\\\"> <mass value=\\\"193.962663\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.32967\\\" error=\\\"0.00099\\\" /> </isotope> <isotope mass-number=\\\"195\\\"> <mass value=\\\"194.964774\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.33832\\\" error=\\\"0.00010\\\" /> </isotope> <isotope mass-number=\\\"196\\\"> <mass value=\\\"195.964934\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.25242\\\" error=\\\"0.00041\\\" /> </isotope> <isotope mass-number=\\\"198\\\"> <mass value=\\\"197.967875\\\" error=\\\"0.000005\\\" /> <abundance value=\\\"0.07163\\\" error=\\\"0.00055\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Au\\\" atomic-number=\\\"79\\\"> <natural-abundance> <mass value=\\\"196.96655\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"197\\\"> <mass value=\\\"196.966551\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Hg\\\" atomic-number=\\\"80\\\"> <natural-abundance> <mass value=\\\"200.59\\\" error=\\\"0.02\\\" /> <isotope mass-number=\\\"196\\\"> <mass value=\\\"195.965814\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.0015\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"198\\\"> <mass value=\\\"197.966752\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0997\\\" error=\\\"0.0020\\\" /> </isotope> <isotope mass-number=\\\"199\\\"> <mass value=\\\"198.968262\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1687\\\" error=\\\"0.0022\\\" /> </isotope> <isotope mass-number=\\\"200\\\"> <mass value=\\\"199.968309\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2310\\\" error=\\\"0.0019\\\" /> </isotope> <isotope mass-number=\\\"201\\\"> <mass value=\\\"200.970285\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1318\\\" error=\\\"0.0009\\\" /> </isotope> <isotope mass-number=\\\"202\\\"> <mass value=\\\"201.970625\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2986\\\" error=\\\"0.0026\\\" /> </isotope> <isotope mass-number=\\\"204\\\"> <mass value=\\\"203.973475\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0687\\\" error=\\\"0.0015\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Tl\\\" atomic-number=\\\"81\\\"> <natural-abundance> <mass value=\\\"204.3833\\\" error=\\\"0.0002\\\" /> <isotope mass-number=\\\"203\\\"> <mass value=\\\"202.972329\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2952\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"205\\\"> <mass value=\\\"204.974412\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.7048\\\" error=\\\"0.0001\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Pb\\\" atomic-number=\\\"82\\\"> <natural-abundance> <mass value=\\\"207.2\\\" error=\\\"0.1\\\" /> <isotope mass-number=\\\"204\\\"> <mass value=\\\"203.973028\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.014\\\" error=\\\"0.001\\\" /> </isotope> <isotope mass-number=\\\"206\\\"> <mass value=\\\"205.974449\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.241\\\" error=\\\"0.001\\\" /> </isotope> <isotope mass-number=\\\"207\\\"> <mass value=\\\"206.975880\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.221\\\" error=\\\"0.001\\\" /> </isotope> <isotope mass-number=\\\"208\\\"> <mass value=\\\"207.976636\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.524\\\" error=\\\"0.001\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Bi\\\" atomic-number=\\\"83\\\"> <natural-abundance> <mass value=\\\"208.98038\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"209\\\"> <mass value=\\\"208.980384\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Th\\\" atomic-number=\\\"90\\\"> <natural-abundance> <mass value=\\\"232.0381\\\" error=\\\"0.0001\\\" /> <isotope mass-number=\\\"232\\\"> <mass value=\\\"232.0380495\\\" error=\\\"0.0000022\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Pa\\\" atomic-number=\\\"91\\\"> <natural-abundance> <mass value=\\\"231.03588\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"231\\\"> <mass value=\\\"231.03588\\\" error=\\\"0.00002\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"U\\\" atomic-number=\\\"92\\\"> <natural-abundance> <mass value=\\\"238.02891\\\" error=\\\"0.00003\\\" /> <isotope mass-number=\\\"234\\\"> <mass value=\\\"234.0409447\\\" error=\\\"0.0000022\\\" /> <abundance value=\\\"0.000054\\\" error=\\\"0.000005\\\" /> </isotope> <isotope mass-number=\\\"235\\\"> <mass value=\\\"235.0439222\\\" error=\\\"0.0000021\\\" /> <abundance value=\\\"0.007204\\\" error=\\\"0.000006\\\" /> </isotope> <isotope mass-number=\\\"238\\\"> <mass value=\\\"238.0507835\\\" error=\\\"0.0000022\\\" /> <abundance value=\\\"0.992742\\\" error=\\\"0.000010\\\" /> </isotope> </natural-abundance> </entry></atomic-mass-table>\";\n try {\n// this.document = DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(in);\n this.document = XMLParser.parse(xmlContent);\n } catch (Exception e) {\n throw new RuntimeException(\"Error reading atomic_system.xml.\");\n }\n\n NodeList nodes = document.getElementsByTagName(\"entry\");\n\n for (int i = 0; i < nodes.getLength(); i++) {\n Node node = nodes.item(i);\n\n String symbol = node.getAttributes().getNamedItem(\"symbol\").getNodeValue();\n\n entries.put(symbol, new Entry(node));\n }\n }",
"public void generateTypesForXSD(ParameterMetaData pmd) throws IOException\n {\n QName xmlType = pmd.getXmlType();\n if(xmlType.getNamespaceURI().equals(Constants.NS_SCHEMA_XSD) == false)\n generateType(xmlType, pmd.getJavaType(), buildElementNameMap(pmd));\n\n if (pmd.getOperationMetaData().getStyle() == Style.DOCUMENT || pmd.isInHeader())\n generateElement(pmd.getXmlName(), xmlType);\n\n //Attachment type\n if(pmd.isSwA())\n wsdl.registerNamespaceURI(Constants.NS_SWA_MIME, \"mime\");\n }",
"private static boolean verifyXML(String fileName) throws IOException {\n\t\tSchemaFactory sf = SchemaFactory.newInstance(W3C_XML_SCHEMA);\n\t\tStreamSource xsdFile = new StreamSource(ResourceUtils.getResourceStream(XSD_FILE_PATH));\n\t\tStreamSource xmlFile = new StreamSource(new File(fileName));\n\t\tboolean validXML = false;\n\t\ttry {\n\t\t\tSchema schema = sf.newSchema(xsdFile);\n\t\t\tValidator validator = schema.newValidator();\n\t\t\ttry {\n\t\t\t\tvalidator.validate(xmlFile);\n\t\t\t\tvalidXML = true;\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tif (!validXML) {\n\t\t\t\tnew IOException(\"File isn't valid against the xsd\");\n\t\t\t}\n\t\t} catch (SAXException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\txsdFile.getInputStream().close();\n\t\t\t// When using a file, this may be null\n\t\t\tif (xmlFile.getInputStream() != null)\n\t\t\t\txmlFile.getInputStream().close();\n\t\t}\n\t\treturn validXML;\n\t}",
"private void loadGeneratedSchema(SchemaDefinition sd) throws ResultException, DmcValueException, DmcNameClashException {\n \t\n \tfor(String schemaName : sd.dependsOnSchemaClasses.keySet()){\n \t\tString schemaClassName = sd.dependsOnSchemaClasses.get(schemaName);\n \t\t\n\t\t\tSchemaDefinition depSchema = isSchema(schemaName);\n\t\t\t\n\t\t\tif (depSchema == null){\n\t\t\t\tClass<?> schemaClass = null;\n\t\t\t\t\n try{\n \tschemaClass = Class.forName(schemaClassName);\n }\n catch(Exception e){\n \tResultException ex = new ResultException();\n \tex.result.addResult(Result.FATAL,\"Couldn't load generated schema class: \" + schemaClassName);\n ex.result.lastResult().moreMessages(e.getMessage());\n ex.result.lastResult().moreMessages(DebugInfo.extractTheStack(e));\n throw(ex);\n }\n\n try{\n \tdepSchema = (SchemaDefinition) schemaClass.newInstance();\n }\n catch(Exception e){\n \tResultException ex = new ResultException();\n \tex.result.addResult(Result.FATAL,\"Couldn't instantiate Java class: \" + schemaClassName);\n \tex.result.lastResult().moreMessages(\"This may be because the class doesn't have a constructor that takes no arguments.\");\n \tex.result.lastResult().moreMessages(\"Or it may be that the class isn't derived from SchemaDefinition.\");\n \tthrow(ex);\n }\n\n loadGeneratedSchema(depSchema);\n\t\t\t}\n\n \t}\n \t\n \tSchemaDefinition theInstance = sd.getInstance();\n \t\n manageSchemaInternal(theInstance);\n \n resolveReferences(theInstance,this);\n \n \t// Now that everything's resolved, we have some unfinished business to take care of\n \tIterator<AttributeDefinition> adl = sd.getAttributeDefList();\n \tresolveNameTypes(adl);\n }",
"public SchemaValidator(@NotNull InputStream schemaFile) throws SAXException {\r\n Schema schema = createSchema(schemaFile);\r\n validator = schema.newValidator();\r\n validator.setFeature(\r\n \"http://apache.org/xml/features/validation/schema-full-checking\",\r\n true);\r\n }",
"public void addDTD(ResourceLocation dtd) throws BuildException {\n if (isReference()) {\n throw noChildrenAllowed();\n }\n\n getElements().addElement(dtd);\n setChecked(false);\n }",
"public void setDTDHandler(DTDHandler handler)\n {\n if (handler == null)\n {\n handler = base;\n }\n this.dtdHandler = handler;\n }",
"public static Document fileToSciXML(File f) throws Exception {\n\t\tString name = f.getName();\n\t\tif(name.endsWith(\".xml\")) {\n\t\t\tDocument doc = new Builder().build(f);\n\t\t\t/* is this an RSC document? */\n\t\t\tif(PubXMLToSciXML.isRSCDoc(doc)) {\n\t\t\t\tPubXMLToSciXML rtsx = new PubXMLToSciXML(doc);\n\t\t\t\tdoc = rtsx.getSciXML();\n\t\t\t}\n\t\t\treturn doc;\n\t\t} else if(name.endsWith(\".html\") || name.endsWith(\".htm\")) {\n\t\t\treturn TextToSciXML.textToSciXML(HtmlCleaner.cleanHTML(FileTools.readTextFile(f)));\n\t\t} else if(name.matches(\"source_file_\\\\d+_\\\\d+.src\")) {\n\t\t\treturn TextToSciXML.bioIEAbstractToXMLDoc(FileTools.readTextFile(f));\n\t\t} else {\n\t\t\t/* Assume plain text */\n\t\t\treturn TextToSciXML.textToSciXML(FileTools.readTextFile(f));\n\t\t}\n\t}",
"@Test\n\tpublic void testValidateAgainstXSD() throws Exception {\n\t\t// This XML is for the save event type\n\t\t\t\tString fullFilePath = System.getProperty(\"user.dir\") + \"\\\\Resources\\\\TestFiles\\\\Saves\\\\SAVE_TestSaveName.xml\";\n\n\t\t\t\t// Create the XML document\n\t\t\t\tDocument document = XMLUtils.convertByteArrayToDocument(Files.readAllBytes(new File(fullFilePath).toPath()));\n\n\t\tPropertyManager.setXSDLocation(\"C:\\\\Users\\\\Daniel\\\\Documents\\\\Uni\\\\TeamProject\\\\GitCopy\\\\TeamProjectVirusGame\\\\Resources\\\\XSD/VirusGameXSD.xsd\");\n\t\t\n\t\t// Call the method in test\n\t\tXSDValidator.validateAgainstXSD(document);\n\t}",
"private void restoreOriginalDomainConfig() {\n getDASDomainXML().delete();\n report(\"restored-domain\", movedDomXml.renameTo(getDASDomainXML()));\n }",
"protected void startParsing(String xsdName, String xmlName, String outputFileName){\n boolean isValid = this.inputXSD(xsdName, xmlName, outputFileName);\n if(isValid){\n System.out.println(\"xml data is parsed successfully!\");\n }else {\n System.out.println(\"Program failed to parse xml data!\");\n }\n }",
"public void convertAll() {\n Document dom = null;\n long beginTime = System.currentTimeMillis();\n try {\n log.info(\" ############################### begin import ######################\");\n dom = XMLParser.parseXMLToDOM(context.getResourceAsStream(IMPORT_FILE));\n // XMLParser.DTDValidator(dom);\n Element element = (Element) dom.getElementsByTagName(\"import\").item(0);\n String encoding = element.getAttribute(\"encoding\");\n DataAccessor.encoding = encoding;\n\n NodeList list = element.getChildNodes();\n\n List<Data> clondSources = new ArrayList<Data>();\n for (int i = 0; i < list.getLength(); i++) {\n // datatype node\n Node itemDatatype = list.item(i);\n List<Data> sources = processDatatype(itemDatatype);\n clondSources.addAll(sources);\n }\n NodeService.insertMigrationMappings(clondSources);\n createRelationDataType(clondSources);\n linkRoot(list);\n log.info(String.format(\n \" ---->#######################finished importing [time:%s mins] #############################\",\n (System.currentTimeMillis() - beginTime) / (1000 * 60)));\n NodeService.insertProperties(properties);\n }\n catch (Exception e) {\n log.error(e.getMessage());\n e.printStackTrace();\n }\n }",
"LinkedList<Data> getDataConfirm(){\r\n FileInputStream xx = null;\r\n try {\r\n xx = new FileInputStream(\"dataConfirm.xml\");\r\n // harus diingat objek apa yang dahulu disimpan di file \r\n // program untuk membaca harus sinkron dengan program\r\n // yang dahulu digunakan untuk menyimpannya\r\n int isi;\r\n char charnya;\r\n String stringnya;\r\n // isi file dikembalikan menjadi string\r\n stringnya =\"\";\r\n while ((isi = xx.read()) != -1) {\r\n charnya= (char) isi;\r\n stringnya = stringnya + charnya;\r\n } \r\n // string isi file dikembalikan menjadi larik double\r\n return (LinkedList<Data>) xstream.fromXML(stringnya);\t \r\n }\r\n catch (Exception e){\r\n System.err.println(\"test: \"+e.getMessage());\r\n }\r\n finally{\r\n if(xx != null){\r\n try{\r\n xx.close();\r\n }\r\n catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n } \r\n } \r\n return null;\r\n \r\n }",
"public TypedFile getTypedFile(String path) {\r\n\tTypedFile f = new TypedFile(path);\r\n\tdeduceAndSetTypeOfFile(f);\r\n\treturn f;\r\n }",
"public static DSSchemaIFace readSchemaDef(String aFileName) {\n\n\t\tDSSchemaIFace schemaDef = null;\n\t\ttry {\n\t\t\tschemaDef = processDOM(DBUIUtils.readXMLFile2DOM(aFileName));\n\t\t\t// Debug\n\t\t\t/*\n\t\t\t * if (schemaDef != null) {\n\t\t\t * System.out.println(\"[\\n\"+emitXML(schemaDef)+\"\\n]\\n\"); }\n\t\t\t */\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(e);\n\t\t}\n\n\t\treturn schemaDef;\n\t}",
"@Test(expected = XMLValidationException.class)\n\tpublic void testValidateAgainstXSDInvalidXML() throws XMLParseException, XMLValidationException {\n\t\tString testXML = \"<Content>\" + \n\t\t\t\t\"\t<InvalidTagName>\" + \n\t\t\t\t\"\t\t<SaveName>TestSaveName</SaveName>\" + \n\t\t\t\t\"\t\t<Seed>TestSeed</Seed>\" + \n\t\t\t\t\"\t\t<DayNumber>42</DayNumber>\" + \n\t\t\t\t\"\t</InvalidTagName>\" + \n\t\t\t\t\"</Content>\";\n\t\t\n\t\t// Convert the testXML to a byte array for the method in test\n\t\tbyte[] xmlBytes = testXML.getBytes();\n\t\t\n\t\t// Call the method in test\n\t\tDocument document = XMLUtils.convertByteArrayToDocument(xmlBytes);\n\t\t\n\t\tPropertyManager.setXSDLocation(\"C:\\\\Users\\\\Daniel\\\\Documents\\\\Uni\\\\TeamProject\\\\GitCopy\\\\TeamProjectVirusGame\\\\Resources\\\\XSD/VirusGameXSD.xsd\");\n\t\t\n\t\t// Call the method in test\n\t\tXSDValidator.validateAgainstXSD(document);\n\t}",
"public void convert(String filePath) {\n Cob2CustomerDataConverter converter = new Cob2CustomerDataConverter();\n\n // Get mainframe data (file, RPC, JMS, ...)\n byte[] hostData = readSampleData(filePath);\n\n // Convert the mainframe data to JAXB\n FromHostResult < CustomerData > result = converter.convert(\n hostData);\n\n // Print out the results\n print(result);\n\n }",
"public interface DTDHandler {\n\n /**\n * Receive notification of a notation declaration event. <p/> It is up to\n * the application to record the notation for later reference, if necessary.\n * </p> <p/> If a system identifier is present, and it is a URL, the SAX\n * parser must resolve it fully before passing it to the application. </p>\n * \n * @param name\n * The notation name.\n * @param publicId\n * The notation's public identifier, or null if none was given.\n * @param systemId\n * The notation's system identifier, or null if none was given.\n * @throws org.xml.sax.SAXException\n * Any SAX exception, possibly wrapping another exception.\n * @see #unparsedEntityDecl\n * @see org.xml.sax.AttributeList\n */\n public abstract void notationDecl(String name, String publicId,\n String systemId) throws SAXException;\n\n /**\n * Receive notification of an unparsed entity declaration event. <p/> Note\n * that the notation name corresponds to a notation reported by the\n * notationDecl() event. It is up to the application to record the entity\n * for later reference, if necessary. </p> <p/> If the system identifier is\n * a URL, the parser must resolve it fully before passing it to the\n * application. </p>\n * \n * @param name\n * The unparsed entity's name.\n * @param publicId\n * The entity's public identifier, or null if none was given.\n * @param systemId\n * The entity's system identifier (it must always have one).\n * @param notation\n * name The name of the associated notation.\n * @param notationName\n * @throws org.xml.sax.SAXException\n * Any SAX exception, possibly wrapping another exception.\n * @see #notationDecl\n * @see org.xml.sax.AttributeList\n */\n public abstract void unparsedEntityDecl(String name, String publicId,\n String systemId, String notationName) throws SAXException;\n\n}",
"public void ValidateSchema(String DFDLSchema, String Data)\n\t{\n\t\ttry\n\t\t{\n\t\t\t/*\n\t\t\t * Create an instance of Daffodil Compiler. Set validateDFDLSchemas method to true. \n\t\t\t */\n\t\t\tCompiler c = Daffodil.compiler();\n\t\t\tc.setValidateDFDLSchemas(true);\n\n\t\t\t/*\n\t\t\t * Get a URL for the example schema resource. \n\t\t\t */\n\t\t\tURL schemaUrl = getClass().getResource(\"/DFDLSchemas/\" + DFDLSchema);\n\t\t\t\n\t\t\t/*\n\t\t\t * Pass the URI using schemaUrl and pass it to a file.\n\t\t\t * Create an instance of a ProcessorFactory and compile file from the url.\n\t\t\t */\n\t\t\tFile schemaFiles = new File(schemaUrl.toURI());\n\t\t\tProcessorFactory pf = c.compileFile(schemaFiles);\n\n\t\t\t/*\n\t\t\t * Check if there is an error with the ProcessorFactory.\n\t\t\t */\t\t\n\t\t\tif (pf.isError()) \n\t\t\t{\n\t\t\t\tlogger.Log(\"Processor Factory error\");\n\t\t\t}\n\n\t\t\t/*\n\t\t\t * Get a DataProcessor from the ProcessorFactory. \n\t\t\t * We use an XPath here.\n\t\t\t */\n\t\t\tDataProcessor dp = pf.onPath(\"/\");\n\n\t\t\t/*\n\t\t\t * Check if there is an error with the DataProcessor.\n\t\t\t */\n\t\t\tif (dp.isError()) \n\t\t\t{\n\t\t\t\tlogger.Log(\"Data Processor error\");\n\t\t\t}\n\n\t\t\t/*\n\t\t\t * Get a URL for the example schema resource. \n\t\t\t */\n\t\t\tURL dataUrl = getClass().getResource(\"/TestFiles/\" + Data);\n\t\t\t\n\t\t\t/*\n\t\t\t * Get a File for the test data.\n\t\t\t */\n\t\t\tFile dataFile = new File(dataUrl.toURI());\n\t\t\tFileInputStream fis = new FileInputStream(dataFile);\n\t\t\tReadableByteChannel rbc = Channels.newChannel(fis);\n\n\t\t\t/*\n\t\t\t * We try to parse the sample data.\n\t\t\t */\n\t\t\tParseResult output = dp.parse(rbc);\n\t\t\t\n\t\t\t/*\n\t\t\t * Print the output from the parse result in the console in an XML format.\n\t\t\t */\n\t\t\tDocument doc = output.result();\n\t\t\tXMLOutputter xo = new XMLOutputter();\n\t\t\txo.setFormat(Format.getPrettyFormat());\n\t\t\txo.output(doc, System.out);\n\t\t}\n\t\tcatch(IOException e)\n\t\t{\n\t\t\tlogger.Log(e.getMessage());\n\t\t} \n\t\tcatch (URISyntaxException e) \n\t\t{\n\t\t\tlogger.Log(e.getMessage());\n\t\t}\n\t}",
"@Override\n\tpublic Document loadDocument(String file) {\n\t\tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n\t\tdbf.setNamespaceAware(true);\n\t\tDocumentBuilder db;\n\t\ttry {\n\t\t\tdb = dbf.newDocumentBuilder();\n\t\t\tDocument document = db.parse(new File(file));\n\t\t\treturn document;\n\t\t} catch (ParserConfigurationException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t} catch (SAXException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t} catch (FactoryConfigurationError e) {\n\t\t\t// TODO: handle exception\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\n\t}",
"public static void writeXMLFile(List<CD> lst)\n\t\t\tthrows TransformerException, FileNotFoundException, SAXException, IOException {\n\t\ttry {\n\t\t\tDocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();\n\t\t\tDocumentBuilder docBuilder = docFactory.newDocumentBuilder();\n\n\t\t\t// root elements\n\t\t\tDocument doc = docBuilder.newDocument();\n\t\t\tElement rootElement = doc.createElement(\"CDs\");\n\t\t\tdoc.appendChild(rootElement);\n\t\t\tString filePath = \"src/Part2_Ex3/CD.xml\";\n\t\t\tFile xmlFile = new File(filePath);\n\n\t\t\t\n\t\t\tfor (CD c : lst) {\n\n\t\t\t\tElement cd = doc.createElement(\"CD\");\n\t\t\t\trootElement.appendChild(cd);\n\n\t\t\t\t// id element\n\t\t\t\tElement id = doc.createElement(\"id\");\n\t\t\t\tid.appendChild(doc.createTextNode(Integer.toString(c.getId())));\n\t\t\t\tcd.appendChild(id);\n\t\t\t\t\n\t\t\t\t// name\n\t\t\t\tElement name = doc.createElement(\"name\");\n\t\t\t\tname.appendChild(doc.createTextNode(c.getName()));\n\t\t\t\tcd.appendChild(name);\n\n\t\t\t\t//singer\n\t\t\t\tElement singer = doc.createElement(\"singer\");\n\t\t\t\tsinger.appendChild((doc.createTextNode(c.getSinger())));\n\t\t\t\tcd.appendChild(singer);\n\n\t\t\t\t// number songs\n\t\t\t\tElement numbersongs = doc.createElement(\"numbersongs\");\n\t\t\t\tnumbersongs.appendChild(doc.createTextNode(Integer.toString(c.getNumOfSong())));\n\t\t\t\tcd.appendChild(numbersongs);\n\t\t\t\t\n\t\t\t\t// price\n\t\t\t\tElement price = doc.createElement(\"price\");\n\t\t\t\tprice.appendChild(doc.createTextNode(Double.toString(c.getPrice())));\n\t\t\t\tcd.appendChild(price);\n\t\t\t\t\n\t\t\t\t// write the content into xml file\n\t\t\t\tTransformer transformer = TransformerFactory.newInstance().newTransformer();\n\t\t\t transformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\n\t\t\t transformer.setOutputProperty(OutputKeys.METHOD, \"xml\");\n\t\t\t transformer.setOutputProperty(\"{http://xml.apache.org/xslt}indent-amount\", \"5\");\n\t\t\t DOMSource source = new DOMSource(doc);\n\t\t\t StreamResult result = new StreamResult(new File(filePath));\n\t\t\t transformer.transform(source, result); \n\t\t\t}\n\n\t\t} catch (ParserConfigurationException pce) {\n\t\t\tSystem.out.println(\"Cannot insert new contact. Error: \" + pce.getMessage());\n\t\t}\n\t}",
"public static Schema getSchema(final String schemaURL) {\r\n Schema s = null;\r\n try {\r\n final URL url = FileUtils.getResource(schemaURL);\r\n \t\r\n final File file = FileUtils.getFile(schemaURL);\r\n \r\n\r\n if (logB.isInfoEnabled()) {\r\n logB.info(\"XmlFactory.getSchema : retrieve schema and compile it : \" + schemaURL);\r\n }\r\n\r\n // 2. Compile the schema.\r\n final long start = System.nanoTime();\r\n\r\n SchemaFactory sf = getSchemaFactory();\r\n s = sf.newSchema(url);\r\n \r\n\r\n TimerFactory.getTimer(\"XmlFactory.getSchema[\" + schemaURL + \"]\").addMilliSeconds(start, System.nanoTime());\r\n\r\n if (logB.isInfoEnabled()) {\r\n logB.info(\"XmlFactory.getSchema : schema ready : \" + s);\r\n }\r\n\r\n } catch (final SAXException se) {\r\n throw new IllegalStateException(\"XmlFactory.getSchema : unable to create a Schema for : \" + schemaURL, se);\r\n/* } catch (final MalformedURLException mue) {\r\n throw new IllegalStateException(\"XmlFactory.getSchema : unable to create a Schema for : \" + schemaURL, mue);\r\n*/ }\r\n return s;\r\n }",
"public static DSSchemaIFace parseSchemaDef(String aXMLSchemaStr) {\n\n\t\tDSSchemaIFace schemaDef = null;\n\t\ttry {\n\t\t\t// System.out.println(\"the schema string is \"+aXMLSchemaStr);\n\t\t\tschemaDef = processDOM(DBUIUtils.convertXMLStr2DOM(aXMLSchemaStr));\n\t\t\t// Debug\n\t\t\t/*\n\t\t\t * if (schemaDef != null) {\n\t\t\t * System.out.println(\"[\\n\"+emitXML(schemaDef)+\"\\n]\\n\"); }\n\t\t\t */\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(e);\n\t\t}\n\n\t\treturn schemaDef;\n\t}",
"public Device readFromDeviceFile(String fileName, String address) {\n\n Element eElement = null;\n File file = new File(SifebUtil.DEV_FILE_DIR + fileName + \".xml\");\n try {\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n Document doc = dBuilder.parse(file);\n doc.getDocumentElement().normalize();\n System.out.println(\"Root element :\" + doc.getDocumentElement().getNodeName());\n NodeList nList = doc.getElementsByTagName(\"Device\");\n Node nNode = nList.item(0);\n eElement = (Element) nNode;\n } catch (ParserConfigurationException | SAXException | IOException e) {\n e.printStackTrace();\n }\n\n return getDevFromElement(eElement, address);\n }",
"public static void testValidity(File xmlFile, StreamSource schemaFileSource) throws SAXException, IOException{\n\n SchemaFactory factory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);\n\n\t\tSchema schema = factory.newSchema(schemaFileSource);\n\n Validator validator = schema.newValidator();\n\n Source xmlFileSource = new StreamSource(xmlFile);\n\n validator.validate(xmlFileSource);\n\n\t \n\t}",
"public java.lang.String getXsd()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(XSD$2, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }",
"public void createGraphFromFile(String newDataFileName) throws IOException {\n\n File inFile = new File(newDataFileName); /* XML */\n\n Scanner sc = new Scanner(inFile);\n String line = sc.nextLine();/*Pass the first line */\n\n /* Until Start of the Edges */\n while (line.compareTo(\" <Edges>\") != 0) {\n /* Take the next line */\n line = sc.nextLine();\n }\n\n /* Take the next line */\n line = sc.nextLine();\n\n /* Until End of the Edges */\n while (line.compareTo(\" </Edges>\") != 0) {\n\n /* Add element in the Linked List */\n insert(loadEdgesFromString(line));\n\n /* Take the next line */\n line = sc.nextLine();\n }\n\n /* Close the file */\n sc.close();\n }",
"private String transformPath(String pathStr, String pathPrefix) {\n String result = pathStr;\n if (DEBUG) {\n System.out.println(\" IN pathStr : \" + result);\n }\n Matcher m;\n for (int i = 0; i < LdmlConvertRules.PATH_TRANSFORMATIONS.length; i++) {\n m = LdmlConvertRules.PATH_TRANSFORMATIONS[i].pattern.matcher(pathStr);\n if (m.matches()) {\n result = m.replaceFirst(LdmlConvertRules.PATH_TRANSFORMATIONS[i].replacement);\n break;\n }\n }\n result = result.replaceFirst(\"/ldml/\", pathPrefix);\n result = result.replaceFirst(\"/supplementalData/\", pathPrefix);\n\n if (DEBUG) {\n System.out.println(\"OUT pathStr : \" + result);\n }\n return result;\n }",
"public XmlTransformer(Package pakkage, ImmutableMap<String, String> schemaNamesToFilenames) {\n try {\n this.jaxbContext = initJaxbContext(pakkage, schemaNamesToFilenames.keySet());\n this.schema = loadXmlSchemas(ImmutableList.copyOf(schemaNamesToFilenames.values()));\n } catch (JAXBException e) {\n throw new RuntimeException(e);\n }\n }",
"private void marshallDocument(Virtualnetworkmanager root, PrintStream outputFile) throws JAXBException, SAXException {\n\t\t\n\t\t// Creating the JAXB context to perform a validation \n\t\tJAXBContext jc;\n\t\t// Creating an instance of the XML Schema \n\t\tSchema schema;\n\t\t\t\t\n\t\ttry {\n\t\t\tjc = JAXBContext.newInstance(PACKAGE);\n\t\t\tschema = SchemaFactory.newInstance(W3C_XML_SCHEMA_NS_URI).newSchema(new File(XSD_NAME));\n\t\t}\n\t\tcatch(IllegalArgumentException e) {\n\t\t\tSystem.err.println(\"Error! No implementation of the schema language is available\");\n\t\t\tthrow e;\n\t\t}\n\t\tcatch(NullPointerException e) {\n\t\t\tSystem.err.println(\"Error! The instance of the schema or the file of the schema is not well created!\\n\");\n\t\t\tthrow new SAXException(\"The schema file is null!\");\n\t\t}\n\t\t\n\t\t// Creating the XML document \t\t\n\t\tMarshaller m = jc.createMarshaller();\n\t\tm.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);\n\t\tm.setProperty(Marshaller.JAXB_SCHEMA_LOCATION, XSD_LOCATION+\" \"+XSD_NAME);\n\t\tm.setSchema(schema);\n\t\tm.marshal(root, outputFile);\n\t\t\n\t}",
"public static void saveStudRecsToFile(File file) {\r\n\t\ttry {\r\n\t\t\tJAXBContext context = JAXBContext\r\n\t\t\t\t\t.newInstance(StudRecsWrapper.class);\r\n\t\t\tMarshaller m = context.createMarshaller();\r\n\t\t\tm.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);\r\n\t\t\t\r\n\t\t\tStudRecsWrapper wrapper = new StudRecsWrapper();\r\n\t\t\twrapper.setStudRecs(studRecs);\r\n\t\t\t\r\n\t\t\tm.marshal(wrapper, file);\r\n\t\t\tSystem.out.println(\"File saved!\");\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(\"Cannot save file, check write permissions!\");\r\n\t\t}\r\n\t}",
"public void saveData(){\n try{\n DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder documentBuilder = documentBuilderFactory.newDocumentBuilder();\n Document document = documentBuilder.newDocument();\n\n Element rootElement = document.createElement(\"departments\");\n document.appendChild(rootElement);\n for (Department department : entities){\n Element dep = document.createElement(\"department\");\n rootElement.appendChild(dep);\n\n dep.setAttribute(\"id\", department.getId().toString());\n dep.appendChild(createElementFromDepartment(\n document, \"name\", department.getName()));\n dep.appendChild(createElementFromDepartment(\n document, \"numberOfPlaces\", department.getNumberOfPlaces().toString()));\n }\n\n DOMSource domSource = new DOMSource(document);\n StreamResult streamResult = new StreamResult(fileName);\n TransformerFactory transformerFactory = TransformerFactory.newInstance();\n Transformer transformer = transformerFactory.newTransformer();\n transformer.transform(domSource, streamResult);\n\n } catch (ParserConfigurationException | TransformerException e) {\n e.printStackTrace();\n }\n }",
"public static Petrinet loadXML(String filename) {\n\t\tIPetrinet ipn = loadXMLInteractive(filename);\n\t\tif(ipn != null) return PetrinetTransform.convert(ipn);\n\t\treturn null;\n\t}",
"public List validateSLD(InputStream xml, ServletContext servContext) {\n \t// a riminder not to use the data directory for the schemas\n \t//String url = GeoserverDataDirectory.getGeoserverDataDirectory(servContext).toString();\n \tFile schemaFile = new File(servContext.getRealPath(\"/\"),\n \"/schemas/sld/StyledLayerDescriptor.xsd\");\n \n try {\n return validateSLD(xml, schemaFile.toURL().toString());\n } catch (Exception e) {\n ArrayList al = new ArrayList();\n al.add(new SAXException(e));\n \n return al;\n }\n }",
"@Test(expected = XMLValidationException.class)\n\tpublic void testValidateAgainstXSDNoXSDFound() throws XMLValidationException, XMLParseException {\n\t\tString testXML = \"<Content>\" + \n\t\t\t\t\"\t<InvalidTagName>\" + \n\t\t\t\t\"\t\t<SaveName>TestSaveName</SaveName>\" + \n\t\t\t\t\"\t\t<Seed>TestSeed</Seed>\" + \n\t\t\t\t\"\t\t<DayNumber>42</DayNumber>\" + \n\t\t\t\t\"\t</InvalidTagName>\" + \n\t\t\t\t\"</Content>\";\n\t\t\n\t\t// Convert the testXML to a byte array for the method in test\n\t\tbyte[] xmlBytes = testXML.getBytes();\n\t\t\n\t\t// Call the method in test\n\t\tDocument document = XMLUtils.convertByteArrayToDocument(xmlBytes);\n\t\t\n\t\tPropertyManager.setXSDLocation(\"InvalidPath\");\n\t\t\n\t\t// Call the method in test\n\t\tXSDValidator.validateAgainstXSD(document);\n\t}"
] |
[
"0.7666098",
"0.7398327",
"0.61082697",
"0.6067268",
"0.54835266",
"0.5408676",
"0.5173845",
"0.51553625",
"0.5011881",
"0.49390298",
"0.49158886",
"0.48648763",
"0.48005846",
"0.47842363",
"0.47756407",
"0.47728336",
"0.4723275",
"0.4682279",
"0.46539038",
"0.46485835",
"0.46104187",
"0.4591473",
"0.45595413",
"0.4518913",
"0.4499162",
"0.4489691",
"0.44776613",
"0.44672066",
"0.44633642",
"0.44447216",
"0.44440377",
"0.44245648",
"0.44215074",
"0.43890268",
"0.43846962",
"0.43807104",
"0.43768898",
"0.43752813",
"0.4374303",
"0.4373242",
"0.43566716",
"0.43548846",
"0.43472588",
"0.43470436",
"0.43299797",
"0.43295342",
"0.43111306",
"0.4300957",
"0.4293892",
"0.42938578",
"0.42734337",
"0.42578873",
"0.42540777",
"0.42445636",
"0.42327142",
"0.42307857",
"0.42263442",
"0.4220321",
"0.4220321",
"0.42177188",
"0.4213521",
"0.4208934",
"0.4204112",
"0.41933677",
"0.41815117",
"0.4179052",
"0.4178109",
"0.41726217",
"0.41688943",
"0.41609526",
"0.41538063",
"0.4150611",
"0.4140416",
"0.41386256",
"0.41297075",
"0.4128999",
"0.41282198",
"0.41281775",
"0.4126974",
"0.41237542",
"0.4123174",
"0.4115393",
"0.4115211",
"0.41101497",
"0.4092619",
"0.40840203",
"0.40805182",
"0.40805006",
"0.40775153",
"0.40739202",
"0.4073146",
"0.4066027",
"0.40592358",
"0.4035079",
"0.4030242",
"0.4024047",
"0.40236378",
"0.40216413",
"0.40188742",
"0.4018166"
] |
0.7430399
|
1
|
Convert the given the dtd file(that is the path as String) to the new xsd format with target namespace.
|
public static void convert(final @NonNull String targetNamespace,
final List<TypePattern> listXsdTypePattern, final @NonNull String dtdfile,
final @NonNull File xsdfile) throws IOException
{
OutputStream outStream = new FileOutputStream(xsdfile);
final Writer writer = new Writer();
writer.setTargetNamespace(targetNamespace);
writer.addXsdTypePattern(listXsdTypePattern);
writer.setOutStream(outStream);
writer.parse(new XMLInputSource(null, dtdfile, null));
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public static void convert(final String dtdfile, final String xsdfile) throws IOException\n\t{\n\t\tOutputStream outStream = new FileOutputStream(xsdfile);\n\t\tfinal Writer writer = new Writer();\n\t\twriter.setOutStream(outStream);\n\t\twriter.parse(new XMLInputSource(null, dtdfile, null));\n\t}",
"public static File convert(final @NonNull File dtdfile, final @NonNull File xsdfile)\n\t\tthrows IOException\n\t{\n\t\tOutputStream outStream = new FileOutputStream(xsdfile);\n\t\tfinal Writer writer = new Writer();\n\t\twriter.setOutStream(outStream);\n\t\twriter.parse(new XMLInputSource(null, dtdfile.getAbsolutePath(), null));\n\t\treturn xsdfile;\n\t}",
"public static File convert(final @NonNull String dtdfile, final @NonNull File xsdfile)\n\t\tthrows IOException\n\t{\n\t\tOutputStream outStream = new FileOutputStream(xsdfile);\n\t\tfinal Writer writer = new Writer();\n\t\twriter.setOutStream(outStream);\n\t\twriter.parse(new XMLInputSource(null, dtdfile, null));\n\t\treturn xsdfile;\n\t}",
"public static void convert(final @NonNull String targetNamespace,\n\t\tfinal List<TypePattern> listXsdTypePattern, final @NonNull String dtdfile,\n\t\tfinal @NonNull String xsdfile) throws IOException\n\t{\n\t\tOutputStream outStream = new FileOutputStream(xsdfile);\n\t\tfinal Writer writer = new Writer();\n\t\twriter.setTargetNamespace(targetNamespace);\n\t\twriter.addXsdTypePattern(listXsdTypePattern);\n\t\twriter.setOutStream(outStream);\n\t\twriter.parse(new XMLInputSource(null, dtdfile, null));\n\t}",
"public void setXmlSchema(File file) {\n\t\tDocument doc = null;\n\t\ttry {\n\t\t\tSAXBuilder sax = new SAXBuilder();\n\t\t\tdoc = sax.build(file);\n\t\t} catch (JDOMException | IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tif(doc != null) {\n\t\t\tsetXmlSchema(doc);\n\t\t\ttry(FileOutputStream fileOutputStream = new FileOutputStream(file)) {\n\t\t\t\ttry {\n\t\t\t\t\tXMLOutputter xmlOutputter = new XMLOutputter(Format.getPrettyFormat());\n\t\t\t\t\txmlOutputter.output(doc, fileOutputStream);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"public void removeXmlSchema(File file) {\n\t\tDocument doc = null;\n\t\ttry {\n\t\t\tSAXBuilder sax = new SAXBuilder();\n\t\t\tdoc = sax.build(file);\n\t\t} catch (JDOMException | IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tif(doc != null) {\n\t\t\tElement rootElement = doc.getRootElement();\n\t\t\trootElement.setNamespace(null);\n\t\t\trootElement.removeNamespaceDeclaration(bioNamespace);\n\t\t\trootElement.removeNamespaceDeclaration(xsiNamespace);\n\t\t\trootElement.removeAttribute(\"schemaLocation\", xsiNamespace);\n\t\t\ttry (FileOutputStream fileOutputStream = new FileOutputStream(file)) {\n\t\t\t\ttry {\n\t\t\t\t\tXMLOutputter xmlOutputter = new XMLOutputter(Format.getPrettyFormat());\n\t\t\t\t\txmlOutputter.output(doc, fileOutputStream);\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"public String getXMLSchemaTargetNamespace() {\n String targetNamespace = getPreferenceStore().getString(CONST_DEFAULT_TARGET_NAMESPACE);\n if (!targetNamespace.endsWith(\"/\")) {\n targetNamespace = targetNamespace + \"/\";\n }\n return targetNamespace;\n }",
"public void convert(String inFile, String outFile) throws IOException, JAXBException;",
"public static WSDLDocument parseWSDL(String input) throws WSDLParserException {\r\n\r\n\t try {\r\n\r\n\t\t\tWSDLDocument wsdlDoc = null;\r\n\r\n\t\t\twsdlDoc = new WSDLDocument();\r\n\r\n\t\t\tSAXBuilder builder = new SAXBuilder();\r\n\t\t\tlog.info(\"WSDL: loading...\" + input);\r\n\t\t\tDocument doc = builder.build(Files.getInputStream(input));\r\n\r\n\t\t\t// Get the root element\r\n\t\t\tElement root = doc.getRootElement();\r\n\r\n\t\t\t// Namespaces\r\n\t\t\tNamespace rootns = root.getNamespace();\r\n\t\t\twsdlDoc.setRootNamespace(rootns);\r\n\r\n\t\t\tList nss = root.getAdditionalNamespaces();\r\n\t\t\tfor (Iterator iter = nss.iterator(); iter.hasNext(); ) {\r\n\t\t\t\tNamespace ns = (Namespace) iter.next();\r\n\t\t\t\twsdlDoc.addAdditionalNamespace(ns);\r\n\t\t\t}\r\n\r\n\t\t\t// XML Schema Type defintions\r\n\r\n\t\t\t// first load utility schemas, which may be needed even in absence\r\n\t\t\t// of an explicite XSD schema defintion\r\n\t\t\tXMLSchemaParser parser = new XMLSchemaParser();\r\n\r\n\t\t\tHashMap addNS = new HashMap();\r\n\t\t\taddNS.put(\"xsd\", Namespace.getNamespace(\"xsd\", XSSchema.NS_XSD));\r\n\t\t\tXSSchema datatypes = parser.parseSchema(Files.getInputStream(\"examples/xs/xs_datatypes.xsd\"), addNS);\r\n\t\t\tXSSchema soapEncoding = parser.parseSchema(Files.getInputStream(\"examples/xs/soapencoding.xsd\"), addNS);\r\n\r\n\t\t\t// now read the schema definitions of the WSDL documen (usually, only one..)\r\n\t\t\tElement types = root.getChild(\"types\", rootns);\r\n\t\t\tif (types != null) {\r\n\t\t\t\tIterator itr = (types.getChildren()).iterator();\r\n\t\t\t\twhile (itr.hasNext()) {\r\n\t\t\t\t\t// copying XML Schema definition to stream\r\n\t\t\t\t\tByteArrayOutputStream os = new ByteArrayOutputStream();\r\n\t\t\t\t\tXMLOutputter outputter = new XMLOutputter();\r\n\t\t\t\t\toutputter.output((Element) itr.next(), os);\r\n\t\t\t\t\tString s = os.toString();\r\n\r\n\t\t\t\t\tXSSchema xs = parser.parseSchema(s, wsdlDoc.getAdditionalNamespaces());\r\n\t\t\t\t\tlog.debug(\"--- XML SCHEMA PARSING RESULT ---\\n\"+xs.toString());\r\n\t\t\t\t\twsdlDoc.addXSDSchema(xs);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tRegistry registry = Registry.getInstance();\r\n\r\n\t\t\twsdlDoc.setName(root.getAttributeValue(\"name\"));\r\n\t\t\twsdlDoc.setTargetNamespace(StrUtils.slashed(root.getAttributeValue(\"targetNamespace\")));\r\n\r\n\t\t\t/*\r\n\t\t\t<message name=\"GetLastTradePriceOutput\">\r\n\t\t\t\t\t<part name=\"body\" element=\"xsd1:TradePrice\"/>\r\n\t\t\t</message>\r\n\t\t\t*/\r\n\t\t\tfor(Iterator iter=root.getChildren(\"message\", NS_WSDL).iterator(); iter.hasNext(); ) {\r\n\t\t\t\tElement messageElem = (Element) iter.next();\r\n\t\t\t\tMessage m = new Message(wsdlDoc);\r\n\t\t\t\tm.setName(messageElem.getAttributeValue(\"name\"));\r\n\t\t\t\twsdlDoc.addMessage(m);\r\n\r\n\t\t\t\tList partList = messageElem.getChildren(\"part\", NS_WSDL);\r\n\t\t\t\tfor(Iterator iter2=partList.iterator(); iter2.hasNext();) {\r\n\t\t\t\t\tElement partElem = (Element) iter2.next();\r\n\r\n\t\t\t\t\tPart part = new Part(wsdlDoc, m);\r\n\t\t\t\t\tpart.setName(partElem.getAttributeValue(\"name\"));\r\n\r\n\t\t\t\t\tString partXSDElement = partElem.getAttributeValue(\"element\");\r\n\t\t\t\t\tString[] partXSDDef = null;\r\n\t\t\t\t\tif(partXSDElement != null) {\r\n\t\t\t\t\t\tpartXSDDef = wsdlDoc.splitQName(partXSDElement, wsdlDoc.getTargetNamespace());\r\n\t\t\t\t\t\tpart.setNamespace(partXSDDef[0]);\r\n\t\t\t\t\t\tpart.setElementName(partXSDDef[1]);\r\n\t\t\t\t\t\t//part.setElementName(partXSDElement);\r\n\t\t\t\t\t}\telse {\r\n\t\t\t\t\t\tif(partList.size() > 1) log.warn(\"WARNING: Violation of Sect. 2.3.1 of WSDL 1.1 spec: if type is used, only one msg part may be specified.\");\r\n\r\n\t\t\t\t\t\tString partXSDType = partElem.getAttributeValue(\"type\");\r\n\t\t\t\t\t\tpartXSDDef = wsdlDoc.splitQName(partXSDType, wsdlDoc.getTargetNamespace());\r\n\t\t\t\t\t\tpart.setNamespace(partXSDDef[0]);\r\n\t\t\t\t\t\tpart.setTypeName(partXSDDef[1]);\r\n\t\t\t\t\t\t//part.setTypeName(partXSDType);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tm.addPart(part);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tm.register();\r\n\t\t\t}\r\n\r\n\t\t\t/*\r\n\t\t\t<portType name=\"StockQuotePortType\">\r\n\t\t\t\t\t<operation name=\"GetLastTradePrice\">\r\n\t\t\t\t\t\t <input message=\"tns:GetLastTradePriceInput\"/>\r\n\t\t\t\t\t\t <output message=\"tns:GetLastTradePriceOutput\"/>\r\n\t\t\t\t\t</operation>\r\n\t\t\t</portType>\r\n\t\t\t*/\r\n\t\t\tfor(Iterator iter=root.getChildren(\"portType\", NS_WSDL).iterator(); iter.hasNext(); ) {\r\n\t\t\t\tElement ptElem = (Element) iter.next();\r\n\t\t\t\tPortType portType = new PortType(wsdlDoc);\r\n\t\t\t\tportType.setName(ptElem.getAttributeValue(\"name\"));\r\n\t\t\t\twsdlDoc.addPortType(portType);\r\n\r\n\t\t\t\tfor(Iterator iter2 = ptElem.getChildren(\"operation\", NS_WSDL).iterator(); iter2.hasNext(); ) {\r\n\t\t\t\t\tElement opElem = (Element) iter2.next();\r\n\t\t\t\t\tOperation operation = new Operation(wsdlDoc, portType);\r\n\t\t\t\t\toperation.setName(opElem.getAttributeValue(\"name\"));\r\n\t\t\t\t\tportType.addOperation(operation);\r\n\r\n\t\t\t\t\tElement inputElem = opElem.getChild(\"input\", NS_WSDL);\r\n\t\t\t\t\tif(inputElem != null) {\r\n\t\t\t\t\t\tString[] msgDef = wsdlDoc.splitQName(inputElem.getAttributeValue(\"message\"), wsdlDoc.getTargetNamespace());\r\n\t\t\t\t\t\tif(msgDef[0] != null && msgDef[1] != null) {\r\n\t\t\t\t\t\t\tMessage inputMsg = (Message) registry.getObject(Registry.WSDL_MESSAGE, Message.createURI(msgDef[0], msgDef[1]));\r\n\t\t\t\t\t\t\tif(inputMsg == null) throw new WSDLParserException(\"Error: message '\"+msgDef+\"' not found.\");\r\n\t\t\t\t\t\t\toperation.setInput(msgDef[0], msgDef[1], inputMsg);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tElement outputElem = opElem.getChild(\"output\", NS_WSDL);\r\n\t\t\t\t\tif(outputElem != null) {\r\n\t\t\t\t\t\tString[] msgDef = wsdlDoc.splitQName(outputElem.getAttributeValue(\"message\"), wsdlDoc.getTargetNamespace());\r\n\t\t\t\t\t\tif(msgDef[0] != null && msgDef[1] != null) {\r\n\t\t\t\t\t\t\tMessage outputMsg = (Message) registry.getObject(Registry.WSDL_MESSAGE, Message.createURI(msgDef[0], msgDef[1]));\r\n\t\t\t\t\t\t\tif(outputMsg == null) throw new WSDLParserException(\"Error: message '\"+msgDef+\"' not found.\");\r\n\t\t\t\t\t\t\toperation.setOutput(msgDef[0], msgDef[1], outputMsg);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tElement faultElem = opElem.getChild(\"fault\", NS_WSDL);\r\n\t\t\t\t\tif(faultElem != null) {\r\n\t\t\t\t\t\tString[] msgDef = wsdlDoc.splitQName(faultElem.getAttributeValue(\"message\"), wsdlDoc.getTargetNamespace());\r\n\t\t\t\t\t\tif(msgDef[0] != null && msgDef[1] != null) {\r\n\t\t\t\t\t\t\tMessage faultMsg = (Message) registry.getObject(Registry.WSDL_MESSAGE, Message.createURI(msgDef[0], msgDef[1]));\r\n\t\t\t\t\t\t\tif(faultMsg == null) throw new WSDLParserException(\"Error: message '\"+msgDef+\"' not found.\");\r\n\t\t\t\t\t\t\toperation.setFault(msgDef[0], msgDef[1], faultMsg);\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\tportType.register(); // recursivly registers pt and its op's\r\n\t\t\t}\r\n\r\n\t\t\t/*\r\n\t\t\t<binding name=\"StockQuoteSoapBinding\" type=\"tns:StockQuotePortType\">\r\n\t\t\t\t\t<soap:binding style=\"document\" transport=\"http://schemas.xmlsoap.org/soap/http\"/>\r\n\t\t\t\t\t<operation name=\"GetLastTradePrice\">\r\n\t\t\t\t\t\t <soap:operation soapAction=\"http://example.com/GetLastTradePrice\"/>\r\n\t\t\t\t\t\t <input>\r\n\t\t\t\t\t\t\t\t <soap:body use=\"literal\"/>\r\n\t\t\t\t\t\t </input>\r\n\t\t\t\t\t\t <output>\r\n\t\t\t\t\t\t\t\t <soap:body use=\"literal\"/>\r\n\t\t\t\t\t\t </output>\r\n\t\t\t\t\t</operation>\r\n\t\t\t</binding>\r\n\t\t\t*/\r\n\t\t\tfor(Iterator iter=root.getChildren(\"binding\", NS_WSDL).iterator(); iter.hasNext(); ) {\r\n\t\t\t\tElement bindingElem = (Element) iter.next();\r\n\t\t\t\tString bindingName = bindingElem.getAttributeValue(\"name\");\r\n\r\n\t\t\t\tString bdgPortTypeStr = bindingElem.getAttributeValue(\"type\");\r\n\t\t\t\tString[] bdDef = wsdlDoc.splitQName(bdgPortTypeStr, wsdlDoc.getTargetNamespace());\r\n\t\t\t\tPortType bdgPortType = (PortType) registry.getObject(Registry.WSDL_PORTTYPE, PortType.createURI(bdDef[0], bdDef[1]));\r\n\t\t\t\tif(bdgPortType == null) throw new WSDLParserException(\"Error: PortType '\"+bdgPortTypeStr+\"' not found in binding '\"+bindingName+\"'.\");\r\n\r\n\t\t\t\tElement soapBindingElem = (Element) bindingElem.getChild(\"binding\", NS_WSDL_SOAP);\r\n\t\t\t\tif(soapBindingElem == null) {\r\n\t\t\t\t\tlog.warn(\"Skipping this binding, currently we only support SOAP bindings\");\r\n\t\t\t\t\tcontinue; // currently we only support SOAP bindings\r\n\t\t\t\t}\r\n\r\n\t\t\t\tSOAPBinding soapBinding = new SOAPBinding(wsdlDoc, bdgPortType);\r\n\t\t\t\tsoapBinding.setName(bindingName);\r\n\t\t\t\t// TODO: handle as boolean constant\r\n\t\t\t\tsoapBinding.setStyle(\"rpc\".equalsIgnoreCase(soapBindingElem.getAttributeValue(\"style\"))\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t? SOAPBinding.STYLE_RPC : SOAPBinding.STYLE_DOCUMENT);\r\n\t\t\t\tsoapBinding.setTransport(soapBindingElem.getAttributeValue(\"transport\"));\r\n\r\n\t\t\t\t//<operation .... >\r\n\t\t\t\tfor(Iterator iter2 = bindingElem.getChildren(\"operation\", NS_WSDL).iterator(); iter2.hasNext(); ) {\r\n\r\n\t\t\t\t\tElement opBdgElem = (Element) iter2.next();\r\n\t\t\t\t\tSOAPOperationBinding opBdg = new SOAPOperationBinding(wsdlDoc, soapBinding);\r\n\t\t\t\t\tString opName = opBdgElem.getAttributeValue(\"name\");\r\n\r\n\t\t\t\t\tlog.debug(\"parsing SOAP binding for operation: \"+opName);\r\n\r\n\t\t\t\t\tString[] opNameDef = wsdlDoc.splitQName(opName, wsdlDoc.getTargetNamespace());\r\n\t\t\t\t\tOperation op = (Operation) registry.getObject(Registry.WSDL_OPERATION, Operation.createURI(bdgPortType.getName(), opNameDef[0], opNameDef[1]));\r\n\t\t\t\t\tif(op == null) throw new WSDLParserException(\"Error: Operation '\"+opName+\"' not found in binding '\"+bindingName+\"'\");\r\n\t\t\t\t\topBdg.setOperation(op);\r\n\t\t\t\t\tsoapBinding.addOperationBinding(opBdg);\r\n\r\n\r\n\t\t\t\t\t//<soap:operation soapAction=\"uri\"? style=\"rpc|document\"?>?\r\n\t\t\t\t\tElement soapOpBdgElem = (Element) opBdgElem.getChild(\"operation\", NS_WSDL_SOAP);\r\n\t\t\t\t\topBdg.setSoapAction(soapOpBdgElem.getAttributeValue(\"soapAction\"));\r\n\t\t\t\t\t/*\r\n\t\t\t\t\tcf. Sect. 3.4 of WSDL 1.1 spec\r\n\t\t\t\t\t*/\r\n\t\t\t\t\tString soapOpStyleStr = soapOpBdgElem.getAttributeValue(\"style\");\r\n\t\t\t\t\tif(soapOpStyleStr == null)\r\n\t\t\t\t\t\topBdg.setStyle(soapBinding.getStyle()); //\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\topBdg.setStyle(soapOpStyleStr.equalsIgnoreCase(\"rpc\") ? SOAPBinding.STYLE_RPC : SOAPBinding.STYLE_DOCUMENT);\r\n\r\n\t\t\t\t\t//<input>\r\n\t\t\t\t\tElement inputBdgElem = (Element) opBdgElem.getChild(\"input\", NS_WSDL);\r\n\t\t\t\t\tif(inputBdgElem != null) {\r\n\t\t\t\t\t\t// for now, skip header def's...\r\n\t\t\t\t\t\tSOAPBodyDef soapBodyDef = parseSOAPBodyDef(inputBdgElem, wsdlDoc, opBdg);\r\n\t\t\t\t\t\t// enforce WSDL specification\r\n\t\t\t\t\t\tif(!soapBodyDef.isConsistentWithMessageParts(opBdg.getOperation().getInputMsg())) throw new WSDLParserException(\"Error: violation of Sect. 3.5 - binding not consistent with message parts\");\r\n\t\t\t\t\t\topBdg.setInputSOAPBodyDef(soapBodyDef);\r\n\r\n\t\t\t\t\t\t// now parse SOAPHeader defs (if existant)\r\n\t\t\t\t\t\topBdg.setInputSOAPHeaderDefs(parseSOAPHeaderDefs(inputBdgElem, wsdlDoc, opBdg));\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t//<output>\r\n\t\t\t\t\tElement outputBdgElem = (Element) opBdgElem.getChild(\"output\", NS_WSDL);\r\n\t\t\t\t\tif(outputBdgElem != null) {\r\n\t\t\t\t\t\t// for now, skip header def's...\r\n\t\t\t\t\t\tSOAPBodyDef soapBodyDef = parseSOAPBodyDef(inputBdgElem, wsdlDoc, opBdg);\r\n\t\t\t\t\t\t// enforce WSDL specification\r\n\t\t\t\t\t\tif(!soapBodyDef.isConsistentWithMessageParts(opBdg.getOperation().getOutputMsg())) throw new WSDLParserException(\"Error: violation of Sect. 3.5 - binding not consistent with message parts\");\r\n\t\t\t\t\t\topBdg.setOutputSOAPBodyDef(soapBodyDef);\r\n\r\n\t\t\t\t\t\t// now parse SOAPHeader defs (if existant)\r\n\t\t\t\t\t\topBdg.setOutputSOAPHeaderDefs(parseSOAPHeaderDefs(inputBdgElem, wsdlDoc, opBdg));\r\n\t\t\t\t\t}\r\n\r\n\r\n\t\t\t\t}\r\n\t\t\t\twsdlDoc.addBinding(soapBinding);\r\n\t\t\t\tsoapBinding.register();\r\n\t\t\t}\r\n\r\n\t\t\t/*\r\n\t\t\t<service name=\"StockQuoteService\">\r\n\t\t\t\t\t<documentation>My first service</documentation>\r\n\t\t\t\t\t<port name=\"StockQuotePort\" binding=\"tns:StockQuoteBinding\">\r\n\t\t\t\t\t\t <soap:address location=\"http://example.com/stockquote\"/>\r\n\t\t\t\t\t</port>\r\n\t\t\t</service>\r\n\t\t\t*/\r\n\r\n\t\t\tfor(Iterator iter=root.getChildren(\"service\", NS_WSDL).iterator(); iter.hasNext(); ) {\r\n\t\t\t\tElement serviceElem = (Element) iter.next();\r\n\r\n\t\t\t\tService service = new Service(wsdlDoc);\r\n\t\t\t\tservice.setName(serviceElem.getAttributeValue(\"name\"));\r\n\r\n\t\t\t\tfor(Iterator iter2=serviceElem.getChildren(\"port\", NS_WSDL).iterator(); iter2.hasNext(); ) {\r\n\t\t\t\t\tElement portElem = (Element) iter2.next();\r\n\r\n\t\t\t\t\tPort port = new Port(wsdlDoc, service);\r\n\t\t\t\t\tport.setName(portElem.getAttributeValue(\"name\"));\r\n\r\n\t\t\t\t\tString bindingStr = portElem.getAttributeValue(\"binding\");\r\n\t\t\t\t\tString[] bindingNameDef = wsdlDoc.splitQName(bindingStr, wsdlDoc.getTargetNamespace());\r\n\t\t\t\t\tBinding binding = (Binding) registry.getObject(Registry.WSDL_BINDING, Binding.createURI(bindingNameDef[0], bindingNameDef[1]));\r\n\t\t\t\t\tif(binding == null) throw new WSDLParserException(\"Binding '\"+bindingStr+\"' not found in service '\"+service.getName()+\"'\");\r\n\t\t\t\t\tport.setBinding(binding);\r\n\r\n\t\t\t\t\t// currently, only SOAP binding supported\r\n\t\t\t\t\tElement soapAddressElem = portElem.getChild(\"address\", NS_WSDL_SOAP);\r\n\t\t\t\t\tport.setAddress(soapAddressElem.getAttributeValue(\"location\"));\r\n\r\n\t\t\t\t\tport.register();\r\n\t\t\t\t\tservice.addPort(port);\r\n\t\t\t\t}\r\n\t\t\t\twsdlDoc.addService(service);\r\n\t\t\t}\r\n\r\n\t\t\tRegistry.getInstance().addObject(Registry.WSDL_DOC, wsdlDoc);\r\n\t\t\treturn wsdlDoc;\r\n\t\t} catch(Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tthrow new WSDLParserException(e.getMessage());\r\n\t\t}\r\n\t}",
"public void xsetXsd(org.apache.xmlbeans.XmlString xsd)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(XSD$2, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(XSD$2);\n }\n target.set(xsd);\n }\n }",
"public void processDocumentType(DocumentType dtd)\r\n\tthrows Exception\r\n\t{\r\n\tWriter xml = getWriter();\r\n\txml.write(\"<!DOCTYPE \");\r\n\txml.write(dtd.getName());\r\n\txml.write(\" SYSTEM ... \\n \");\r\n\treturn;\r\n\t}",
"public static Document getDocument(File file, boolean namespaceAware) {\r\n Document document = null;\r\n try {\r\n // parse an XML document into a DOM tree\r\n DocumentBuilderFactory documentFactory = DocumentBuilderFactory\r\n .newInstance();\r\n documentFactory.setNamespaceAware(namespaceAware);\r\n // documentFactory.setAttribute(\"http://java.sun.com/xml/jaxp/properties/schemaLanguage\",\r\n // \"http://www.w3.org/2001/XMLSchema\");\r\n DocumentBuilder parser = documentFactory.newDocumentBuilder();\r\n\r\n document = parser.parse(file);\r\n } catch (Exception e) {\r\n log.error(\"getDocument error: \", e);\r\n }\r\n return document;\r\n }",
"public void generateDTD(InputSource src)\n throws Exception\n {\n DTDParser parser = new DTDParser();\n DTD dtd;\n\n dtd = parser.parseExternalSubset(src, null);\n processElementTypes(dtd);\n System.out.println(createAllTablesQuery);\n FileWriter catq= new FileWriter(\"createAllTables.sql\");\n catq.write(createAllTablesQuery);\n catq.close();\n }",
"public void testSchemaImport2() throws Exception{\r\n File file = new File(Resources.asURI(\"importBase.xsd\"));\r\n //create a DOM document\r\n DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();\r\n documentBuilderFactory.setNamespaceAware(true);\r\n Document doc = documentBuilderFactory.newDocumentBuilder().\r\n parse(file.toURL().toString());\r\n\r\n XmlSchemaCollection schemaCol = new XmlSchemaCollection();\r\n XmlSchema schema = schemaCol.read(doc,file.toURL().toString(),null);\r\n assertNotNull(schema);\r\n\r\n }",
"private String convertXMLFileToString(File file)\n {\n try{\n DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();\n InputStream inputStream = new FileInputStream(file);\n org.w3c.dom.Document doc = documentBuilderFactory.newDocumentBuilder().parse(inputStream);\n StringWriter stw = new StringWriter();\n Transformer serializer = TransformerFactory.newInstance().newTransformer();\n serializer.transform(new DOMSource(doc), new StreamResult(stw));\n return stw.toString();\n }\n catch (Exception e) {\n \tnew ErrorBox(\"Error Deserializing\", \"XML file could not be deserialized\");\n }\n return null;\n }",
"public String getXMLResultXSD() {\n if (!this.initialized) {\n logInitializationError();\n return null;\n }\n try {\n DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n DocumentBuilder builder = factory.newDocumentBuilder();\n DOMImplementation impl = builder.getDOMImplementation();\n\n Document document = impl.createDocument(null, null, null);\n Element root = document.createElement(\"schema\");\n root.setAttribute(\"xmlns\", \"http://www.w3.org/2001/XMLSchema\");\n document.appendChild(root);\n Element resultElement = document.createElement(\"element\");\n resultElement.setAttribute(\"name\", \"result\");\n root.appendChild(resultElement);\n Element complexTypeElement = document.createElement(\"complexType\");\n resultElement.appendChild(complexTypeElement);\n Element sequenceElement = document.createElement(\"sequence\");\n complexTypeElement.appendChild(sequenceElement);\n\n for (TypeMap tSpec : this.serviceSpec.getTypeSpecs()) {\n Element element = document.createElement(\"element\");\n element.setAttribute(\"name\", tSpec.getOutputTag());\n element.setAttribute(\"maxOccurs\", \"unbounded\");\n element.setAttribute(\"minOccurs\", \"0\");\n\n Element complexType = document.createElement(\"complexType\");\n element.appendChild(complexType);\n\n Element simpleContent = document.createElement(\"simpleContent\");\n complexType.appendChild(simpleContent);\n\n Element extension = document.createElement(\"extension\");\n extension.setAttribute(\"base\", \"string\");\n simpleContent.appendChild(extension);\n\n for (Output output : tSpec.getOutputs()) {\n Element attributeElement = document.createElement(\"attribute\");\n extension.appendChild(attributeElement);\n attributeElement.setAttribute(\"name\", output.getAttribute());\n attributeElement.setAttribute(\"type\", \"string\");\n attributeElement.setAttribute(\"use\", \"optional\");\n }\n sequenceElement.appendChild(element);\n }\n\n DOMSource source = new DOMSource(document);\n TransformerFactory tFactory = TransformerFactory.newInstance();\n Transformer transformer = tFactory.newTransformer();\n transformer.setOutputProperty(OutputKeys.METHOD, \"xml\");\n transformer.setOutputProperty(\"{http://xml.apache.org/xslt}indent-amount\", \"4\");\n transformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\n\n StringWriter stringWriter = new StringWriter();\n StreamResult streamResult = new StreamResult(stringWriter);\n transformer.transform(source, streamResult);\n\n return stringWriter.toString();\n } catch (TransformerException e) {\n getLogger().log(Level.SEVERE, \"\", e);\n } catch (ParserConfigurationException e) {\n getLogger().log(Level.SEVERE, \"\", e);\n }\n return null;\n }",
"public void setXsd(java.lang.String xsd)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(XSD$2, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(XSD$2);\n }\n target.setStringValue(xsd);\n }\n }",
"public void generateTypesForXSD(FaultMetaData fmd) throws IOException\n {\n SchemaCreatorIntf sc = javaToXSD.getSchemaCreator();\n //Look at the features\n QName xmlType = fmd.getXmlType();\n if(xmlType.getNamespaceURI().equals(Constants.NS_SCHEMA_XSD) == false)\n generateType(xmlType ,fmd.getJavaType(), null);\n }",
"private boolean inputXSD(String xsdName, String xmlName, String outputFileName) {\n ArrayList<String> wholeFile = this.readReturnFileContents(xsdName);\n ArrayList<Integer> match = new ArrayList<Integer>();\n ArrayList<Map> fieldsAttribs = new ArrayList<>();\n match.add(1);\n for(String s:wholeFile){\n if(s.trim().length() != 0){\n match = this.parseXSD(s.trim(), match);\n if(match.get(match.size()-1)==8)\n return false;\n if(match.size()>2){\n if(match.get(match.size()-1) == 4){\n Map tMap = this.getTableFieldsAttribs(s);\n boolean flag = true;\n for (Map cMap: fieldsAttribs){\n if(cMap.get(\"name\").toString().equals(tMap.get(\"name\").toString())){\n flag = false;\n System.out.println(\"***Error- \"+ tMap + \" \\n this element is ignored due to duplicate name attribute in xsd file\");\n }\n }\n if(flag)\n fieldsAttribs.add(tMap);\n }\n }\n }\n\n }\n return this.inputXML(xmlName, fieldsAttribs, outputFileName);\n }",
"private void renameOriginalDomainConfig() {\n File domXml = getDASDomainXML();\n movedDomXml = new File(domXml.getParentFile(), \"domain.xml.moved\");\n report(\"moved-domain\", domXml.renameTo(movedDomXml));\n }",
"Rule XsdNamespace() {\n return Sequence(\n \"xsd_namespace\",\n Literal(),\n actions.pushXsdNamespaceNode());\n }",
"public String setXmlSchema(String content) {\n\t\ttry(StringReader reader = new StringReader(content)) {\n\t\t\tDocument doc = null;\n\t\t\ttry {\n\t\t\t\tSAXBuilder sax = new SAXBuilder();\n\t\t\t\tdoc = sax.build(reader);\n\t\t\t} catch (JDOMException | IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tif(doc != null) {\n\t\t\t\tsetXmlSchema(doc);\n\n\t\t\t\ttry(StringWriter stringWriter = new StringWriter()) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tXMLOutputter xmlOutputter = new XMLOutputter(Format.getPrettyFormat());\n\t\t\t\t\t\txmlOutputter.output(doc, stringWriter);\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tstringWriter.flush();\n\t\t\t\t\tString result = stringWriter.toString();\n\t\t\t\t\treturn result;\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"private void parseWSCTaxonomyFile(String fileName) {\n\t\ttry {\n\t \tFile fXmlFile = new File(fileName);\n\t \tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n\t \tDocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n\t \tDocument doc = dBuilder.parse(fXmlFile);\n\t \tElement taxonomy = (Element) doc.getChildNodes().item(0);\n\n\t \tprocessTaxonomyChildren(null, taxonomy.getChildNodes());\n\t\t}\n\n\t\tcatch (ParserConfigurationException e) {\n System.out.println(\"Taxonomy file parsing failed...\");\n\t\t}\n\t\tcatch (SAXException e) {\n System.out.println(\"Taxonomy file parsing failed...\");\n\t\t}\n\t\tcatch (IOException e) {\n System.out.println(\"Taxonomy file parsing failed...\");\n\t\t}\n\t}",
"public void setXsdSchema(final File xsdFile) throws InvalidXsdException {\n\t\ttry {\n\t\t\tsetXsdSchema(new FileInputStream(xsdFile));\n\t\t} catch (final FileNotFoundException e) {\n\t\t\tthrow new InvalidXsdException(\"The specified xsd file '\" + xsdFile\n\t\t\t\t\t+ \"' could not be found.\", e);\n\t\t}\n\t}",
"public void setTargetNamespace(String targetNamespace)\r\n {\r\n this.targetNamespace = targetNamespace;\r\n }",
"public static Document newDocument(final File file, boolean useNamespaces) throws IOException, XMLException {\n\t\tfinal InputStream in = new FileInputStream(file);\n\t\treturn XMLHelper.parse(in, useNamespaces);\n\t}",
"public Source resolveByNS(String tartgetNamespace)\n throws TransformerException;",
"private static boolean validate(JAXBContext jaxbCongtext, File file, URL xsdUrl) {\n SchemaFactory schemaFactory = null;\n Schema schema = null;\n Source xmlFile = new StreamSource(file);\n try {\n schemaFactory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);\n schema = schemaFactory.newSchema(xsdUrl);\n Validator validator = schema.newValidator();\n DocumentBuilderFactory db = newSecuDocBuilderFactory();\n db.setNamespaceAware(true);\n\n DocumentBuilder builder = db.newDocumentBuilder();\n Document doc = builder.parse(file);\n\n DOMSource source = new DOMSource(doc);\n DOMResult result = new DOMResult();\n\n validator.validate(source, result);\n LOGGER.debug(xmlFile.getSystemId() + \" is valid\");\n } catch(Exception ex) {\n LOGGER.error(xmlFile.getSystemId() + \" is NOT valid\", ex);\n return false;\n }\n return true;\n }",
"public String getXsdFileName();",
"public void setUpNewXMLFile(File file) {\n\t\tPrintWriter pw = null;\n\t\ttry {\n\t\t\tpw = new PrintWriter(file, \"UTF-8\");\n\t\t\tpw.write(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?>\\n\");\n\t\t\tpw.write(\"<\" + defaultDocumentElement + \">\\n\");\n\t\t\tpw.write(\"</\" + defaultDocumentElement + \">\\n\");\n\t\t\tpw.close();\n\t\t} catch(Exception e) {\n\t\t\tSystem.out.println(\"Error creating new XML File.\");\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tpw.close();\n\t\t\t} catch(Exception e) {\n\t\t\t\t//Seems like it was already closed.\n\t\t\t}\n\t\t}\n\t}",
"String getTargetNamespace();",
"public SLDStyle(String filename) {\n \n File f = new File(filename);\n setInput(f);\n readXML();\n }",
"public void dumpAsXmlFile(String pFileName);",
"public void createXml(String fileName) { \n\t\tElement root = this.document.createElement(\"TSETInfoTables\"); \n\t\tthis.document.appendChild(root); \n\t\tElement metaDB = this.document.createElement(\"metaDB\"); \n\t\tElement table = this.document.createElement(\"table\"); \n\t\t\n\t\tElement column = this.document.createElement(\"column\");\n\t\tElement columnName = this.document.createElement(\"columnName\");\n\t\tcolumnName.appendChild(this.document.createTextNode(\"test\")); \n\t\tcolumn.appendChild(columnName); \n\t\tElement columnType = this.document.createElement(\"columnType\"); \n\t\tcolumnType.appendChild(this.document.createTextNode(\"INTEGER\")); \n\t\tcolumn.appendChild(columnType); \n\t\t\n\t\ttable.appendChild(column);\n\t\tmetaDB.appendChild(table);\n\t\troot.appendChild(metaDB); \n\t\t\n\t\tTransformerFactory tf = TransformerFactory.newInstance(); \n\t\ttry { \n\t\t\tTransformer transformer = tf.newTransformer(); \n\t\t\tDOMSource source = new DOMSource(document); \n\t\t\ttransformer.setOutputProperty(OutputKeys.ENCODING, \"gb2312\"); \n\t\t\ttransformer.setOutputProperty(OutputKeys.INDENT, \"yes\"); \n\t\t\tPrintWriter pw = new PrintWriter(new FileOutputStream(fileName)); \n\t\t\tStreamResult result = new StreamResult(pw); \n\t\t\ttransformer.transform(source, result); \n\t\t\tlogger.info(\"Generate XML file success!\");\n\t\t} catch (TransformerConfigurationException e) { \n\t\t\tlogger.error(e.getMessage());\n\t\t} catch (IllegalArgumentException e) { \n\t\t\tlogger.error(e.getMessage());\n\t\t} catch (FileNotFoundException e) { \n\t\t\tlogger.error(e.getMessage());\n\t\t} catch (TransformerException e) { \n\t\t\tlogger.error(e.getMessage());\n\t\t} \n\t}",
"private void marshallDocument(Virtualnetworkmanager root, PrintStream outputFile) throws JAXBException, SAXException {\n\t\t\n\t\t// Creating the JAXB context to perform a validation \n\t\tJAXBContext jc;\n\t\t// Creating an instance of the XML Schema \n\t\tSchema schema;\n\t\t\t\t\n\t\ttry {\n\t\t\tjc = JAXBContext.newInstance(PACKAGE);\n\t\t\tschema = SchemaFactory.newInstance(W3C_XML_SCHEMA_NS_URI).newSchema(new File(XSD_NAME));\n\t\t}\n\t\tcatch(IllegalArgumentException e) {\n\t\t\tSystem.err.println(\"Error! No implementation of the schema language is available\");\n\t\t\tthrow e;\n\t\t}\n\t\tcatch(NullPointerException e) {\n\t\t\tSystem.err.println(\"Error! The instance of the schema or the file of the schema is not well created!\\n\");\n\t\t\tthrow new SAXException(\"The schema file is null!\");\n\t\t}\n\t\t\n\t\t// Creating the XML document \t\t\n\t\tMarshaller m = jc.createMarshaller();\n\t\tm.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);\n\t\tm.setProperty(Marshaller.JAXB_SCHEMA_LOCATION, XSD_LOCATION+\" \"+XSD_NAME);\n\t\tm.setSchema(schema);\n\t\tm.marshal(root, outputFile);\n\t\t\n\t}",
"public static RDFFormat syntaxForFileName(String fileName) {\n\t\treturn RDFFormat.forFileName(fileName, RDFFormat.RDFXML);\n\t}",
"public static void editXML(String dim) throws Exception {\n\t\tDocumentBuilderFactory builderFactory = DocumentBuilderFactory.newInstance();\n\t\tDocumentBuilder builder = builderFactory.newDocumentBuilder();\n\t\tString fileName = PropertiesFile.getInstance().getProperty(\"input_qualifier\")+ \".xml\";\n\t\tDocument xmlDocument = builder.parse(new File(getFullyQualifiedFileName(fileName)));\n\n\t\t/*\n\t\t * String expression = \"ConfigFramework/DCDpp/Servers/Server/Zone\"; XPath xPath\n\t\t * = XPathFactory.newInstance().newXPath(); NodeList nodeList = (NodeList)\n\t\t * xPath.compile(expression).evaluate(xmlDocument, XPathConstants.NODESET); Node\n\t\t * zone = nodeList.item(0);\n\t\t * \n\t\t * String zoneRange = zone.getTextContent(); zoneRange = zoneRange.substring(0,\n\t\t * zoneRange.lastIndexOf(\".\") + 1) + dim; zone.setTextContent(zoneRange);\n\t\t */\n\n\t\tTransformerFactory transformerFactory = TransformerFactory.newInstance();\n\t\tTransformer transformer = transformerFactory.newTransformer();\n\t\tDOMSource domSource = new DOMSource(xmlDocument);\n\t\tString s = getOutputFolderName() + \"/\" + fileName;\n\t\tStreamResult streamResult = new StreamResult(new File(s));\n\t\ttransformer.transform(domSource, streamResult);\n\n\t}",
"@Override\n\tpublic void domove(String filename) {\n\n\t\tFile starfile = new File(\"D://FileRec/\" + filename);\n\n\t\tFile endDirection = new File(\"D://FileRec//docx\");\n\t\tif (!endDirection.exists()) {\n\t\t\tendDirection.mkdirs();\n\t\t}\n\n\t\tFile endfile = new File(endDirection + File.separator + starfile.getName());\n\n\t\ttry {\n\t\t\tif (starfile.renameTo(endfile)) {\n\t\t\t\tSystem.out.println(\"转移成功\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"转移失败,或许是重名\");\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"文件移动出现异常\");\n\t\t}\n\t}",
"public void setPackageNamespaceMap(Map<String,String> map)\n {\n this.packageNamespaceMap = map;\n this.javaToXSD.setPackageNamespaceMap(map);\n }",
"private void parseWSCTaxonomyFile(String fileName) {\n\t\ttry {\n\t\t\tFile fXmlFile = new File(fileName);\n\t\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n\t\t\tDocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n\t\t\tDocument doc = dBuilder.parse(fXmlFile);\n\t\t\tNodeList taxonomyRoots = doc.getChildNodes();\n\n\t\t\tprocessTaxonomyChildren(null, taxonomyRoots);\n\t\t}\n\n\t\tcatch (ParserConfigurationException e) {\n\t\t\tSystem.err.println(\"Taxonomy file parsing failed...\");\n\t\t}\n\t\tcatch (SAXException e) {\n\t\t\tSystem.err.println(\"Taxonomy file parsing failed...\");\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\tSystem.err.println(\"Taxonomy file parsing failed...\");\n\t\t}\n\t}",
"public org.apache.xmlbeans.XmlString xgetXsd()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(XSD$2, 0);\n return target;\n }\n }",
"public void transformToSecondXml();",
"private String readSpaceNameFromFile(File file) throws IOException {\n\t\tString space = null;\n\t\tBufferedReader br = new BufferedReader(new FileReader(file));\n\t\tString buffer;\n\t\twhile ((buffer = br.readLine()) != null) {\n\t\t\tint startIndex = buffer.indexOf(\"xmlns=\");\n\t\t\tif (startIndex > -1) {\n\t\t\t\tint endIndex = buffer.indexOf('\"', startIndex + 7);\n\t\t\t\tif (endIndex != -1) {\n\t\t\t\t\tspace = buffer.substring(startIndex + 7, endIndex);\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tSystem.err\n\t\t\t\t\t\t\t.println(\"ODF file format is corrupted: xmlns entry has no ending quote sign\");\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t\tbr.close();\n\t\treturn space;\n\t}",
"private static Document parse(final InputStream in, boolean useNamespaces) throws IOException, XMLException{\n\t\ttry{\n\t\t\tfinal DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n\t\t\tfactory.setNamespaceAware(true);\n\t\t\tfinal DocumentBuilder builder = factory.newDocumentBuilder();\n\t\t\tfinal Document doc = builder.parse(in);\n\t\t\t//\tfactory.setAttribute(name, value)\n\t\t\t//\tfactory.setSchema(Schema)\n\t\t\tfactory.setCoalescing(true);\n\t\t\tfactory.setExpandEntityReferences(true);\n\t\t\tfactory.setIgnoringComments(false);\n\t\t\tif(useNamespaces) factory.setNamespaceAware(true); // WORKAROUND per xalan!\n\t\t\tfactory.setXIncludeAware(true);\n\t\t\tfactory.setValidating(false);\n\t\t\tfactory.setIgnoringComments(true);\n\t\t\t// aggiungo alcune feature per impedire il tentativo di caricamento del DTD da remoto, al fine di validazione\n\t\t\tfactory.setFeature(\"http://xml.org/sax/features/namespaces\", false);\n\t\t\tfactory.setFeature(\"http://xml.org/sax/features/validation\", false);\n\t\t\tfactory.setFeature(\"http://apache.org/xml/features/nonvalidating/load-dtd-grammar\", false);\n\t\t\tfactory.setFeature(\"http://apache.org/xml/features/nonvalidating/load-external-dtd\", false);\n\t\t\tin.close();\n\t\t\treturn doc;\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t\tthrow new XMLException(e);\n\t\t}\n\t}",
"private void restoreOriginalDomainConfig() {\n getDASDomainXML().delete();\n report(\"restored-domain\", movedDomXml.renameTo(getDASDomainXML()));\n }",
"private boolean ensureXSDTypeNamespaceMappings(Object obj) {\r\n\t\t\r\n\t\tString targetNamespace = null;\r\n\t\t\r\n\t\tif (obj instanceof XSDNamedComponent ) {\r\n\t\t\tXSDNamedComponent namedComponent = (XSDNamedComponent) obj; \r\n\t\t\ttargetNamespace = namedComponent.getTargetNamespace();\r\n\t\t}\r\n\t\t\r\n\t\tif (targetNamespace == null) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\t\r\n\t\t// Now check if the target namespace has a prefix mappings.\r\n\t\tString prefix = BPELUtils.getNamespacePrefix (modelObject, targetNamespace);\r\n\t\tif (prefix != null) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\t\r\n\t\t// We have to map the namespace to a prefix. \r\n\t\tNamespaceMappingDialog dialog = new NamespaceMappingDialog(getShell(),modelObject);\r\n\t\tdialog.setNamespace( targetNamespace );\r\n\t\t\r\n\t\tif (dialog.open() == Window.CANCEL) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\t// define the prefix\r\n\t\tBPELUtils.setPrefix( BPELUtils.getProcess(modelObject), targetNamespace, dialog.getPrefix()); \t\t\r\n\t\t\r\n\t\treturn true;\r\n\t}",
"public interface NSURIResolver extends URIResolver {\n \n /**\n * Called by the processor when it encounters\n * an xsl:include, xsl:import, or document() function and the \n * object can not be resolved by the its relative path.\n * (javax.xml.transform.URIResolver.resolve(String href, String base) \n * has returned null)\n * \n * \n * @param tartgetNamespace of the imported schema.\n *\n * @return A Source object, or null if the namespace cannot be resolved.\n * \n * @throws TransformerException if an error occurs when trying to\n * resolve the URI.\n */\n public Source resolveByNS(String tartgetNamespace)\n throws TransformerException;\n\n}",
"private static java.lang.String generatePrefix(java.lang.String namespace) {\n if(namespace.equals(\"http://dto.thirdsdk.api.pms.cms.hikvision.com/xsd\")){\n return \"ns1\";\n }\n return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();\n }",
"void setNamespace(java.lang.String namespace);",
"public static void addEmployeeToXMLFile(Employee ee) {\n try {\n DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder docBuilder = docFactory.newDocumentBuilder();\n Document doc = docBuilder.newDocument();\n\n Element rootElement;\n File xmlFile = new File(\"src/task2/employee.xml\");\n\n if (xmlFile.isFile()) {\n doc = docBuilder.parse(new FileInputStream(xmlFile));\n doc.getDocumentElement().normalize();\n rootElement = doc.getDocumentElement();\n } else {\n rootElement = doc.createElement(\"department\");\n doc.appendChild(rootElement);\n }\n\n Element employee = doc.createElement(\"employee\");\n rootElement.appendChild(employee);\n\n Element id = doc.createElement(\"id\");\n id.appendChild(doc.createTextNode(ee.getId()));\n employee.appendChild(id);\n\n Element name = doc.createElement(\"name\");\n name.appendChild(doc.createTextNode(ee.getName()));\n employee.appendChild(name);\n\n Element sex = doc.createElement(\"sex\");\n sex.appendChild(doc.createTextNode(Integer.toString(ee.sex)));\n employee.appendChild(sex);\n\n Element dateOfBirth = doc.createElement(\"dateOfBirth\");\n dateOfBirth.appendChild(doc.createTextNode(ee.dateOfBirth));\n employee.appendChild(dateOfBirth);\n\n Element salary = doc.createElement(\"salary\");\n salary.appendChild(doc.createTextNode(Double.toString(ee.salary)));\n employee.appendChild(salary);\n\n Element address = doc.createElement(\"address\");\n address.appendChild(doc.createTextNode(ee.address));\n employee.appendChild(address);\n\n Element idDepartment = doc.createElement(\"idDepartment\");\n idDepartment.appendChild(doc.createTextNode(ee.idDepartment));\n employee.appendChild(idDepartment);\n\n TransformerFactory transformerFactory = TransformerFactory.newInstance();\n Transformer transformer = transformerFactory.newTransformer();\n DOMSource source = new DOMSource(doc);\n StreamResult result = new StreamResult(xmlFile);\n transformer.transform(source, result);\n System.out.println(\"File saved\");\n\n } catch (ParserConfigurationException | SAXException | IOException | DOMException | TransformerException e) {\n System.out.println(\"Error: \" + e.getMessage());\n }\n }",
"private void importXMLSchema(Import bpelImport) {\n \tString namespace = bpelImport.getNamespace();\n \tString location = bpelImport.getLocation();\n \tif (location == null) {\n mLogger.severe(\"Unable to import schema document, import location is null \" + bpelImport);\n throw new XMLParseVisitorException(\"Unable to import schema document, import location is null \" + bpelImport);\n }\n \t\n \tLazyImportVisitorService vService = (LazyImportVisitorService) getVisitorService();\n \tBPELParseContext bpelParseContext = vService.getBPELParseContext();\n \tIXSDResolver xsdResolver = bpelParseContext.getXSDResolver();\n \t\n \tif(xsdResolver == null) {\n \t\tmLogger.severe(\"Unable to import schema document, must specify XSD Resolver \" + bpelImport);\n throw new XMLParseVisitorException(\"Unable to import schema document, must specify XSD Resolver \" + bpelImport);\n \t}\n \t\n \ttry {\n\t \tXMLSchema xsdDocument = xsdResolver.resolve(namespace, location);\n\t \n\t if(xsdDocument == null) {\n\t \tmLogger.severe(\"Unable to import schema document for import \" + bpelImport);\n\t throw new XMLParseVisitorException(\"Unable to import schema document for import \" + bpelImport);\t\n\t }\n\t \n\t bpelImport.setImportedObject(xsdDocument);\n \n } catch (EInsightModelException e) {\n mLogger.log(Level.SEVERE, \"Unable to import xsd document for import \" + bpelImport, e);\n throw new XMLParseVisitorException(\"Unable to import xsd document for import \" + bpelImport, e);\n }\n \n }",
"private static XSModel loadSchema(Element schema, Definition def) {\n Map definitionNameSpaces = def.getNamespaces();\n Set nameSpaces = definitionNameSpaces.entrySet();\n Iterator nameSpacesIterator = nameSpaces.iterator();\n\n while (nameSpacesIterator.hasNext()) {\n Entry nameSpaceEntry = (Entry) nameSpacesIterator.next();\n if (!\"\".equals((String) nameSpaceEntry.getKey()) &&\n !schema.hasAttributeNS(\"http://www.w3.org/2000/xmlns/\",\n (String) nameSpaceEntry.getKey())) {\n Attr nameSpace =\n schema.getOwnerDocument().createAttributeNS(\n \"http://www.w3.org/2000/xmlns/\",\n \"xmlns:\" + nameSpaceEntry.getKey());\n nameSpace.setValue((String) nameSpaceEntry.getValue());\n schema.setAttributeNode(nameSpace);\n }\n }\n\n LSInput schemaInput = new DOMInputImpl();\n schemaInput.setStringData(\n \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\"\n + XmlUtils.getElementAsString(schema));\n log.info(\"Loading schema in types section of definition \" +\n def.getDocumentBaseURI());\n schemaInput.setSystemId(def.getDocumentBaseURI());\n XMLSchemaLoader schemaLoader = new XMLSchemaLoader();\n XSModel schemaModel = schemaLoader.load(schemaInput);\n log.info(\"Done loading\");\n return schemaModel;\n }",
"public static void main(String[] args) throws FileNotFoundException,\n\t\t\tIOException, SAXException, TransformerConfigurationException, TransformerFactoryConfigurationError {\n\t\t\n\t\tDocument targetDocument = XMLUtil.getDocument(new FileInputStream(mtasResponse));\n\t\t//System.out.println(XMLUtil.toString(targetDocument));\n\t\tDOMSource xmlSource = new DOMSource(targetDocument);\n\t\tDOMResult tResult = new DOMResult();\n\t\ttry {\n\t\t\tInputStream inputStream = XSLTTransformerFactory.class.getResourceAsStream(xsltFileName);\n\t\t\tTransformer transformer = XSLTTransformerFactory.getTransformer(inputStream);\n\t\t\t\n Map<String, Document> docs = new HashMap<String, Document>();\n \n docs.put(\"sourceDocument\", targetDocument); \n System.out.println(docs.size());\n transformer.setURIResolver(new DocumentSourceResolver(docs));\n \n\t\t\ttransformer.transform(xmlSource, tResult);\n\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\n\t\tDocument transformedResponse = (Document) tResult.getNode();\n\t\tSystem.out.println(XMLUtil.toString(transformedResponse));\n\t}",
"@Override\n\tpublic Document loadDocument(String file) {\n\t\tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n\t\tdbf.setNamespaceAware(true);\n\t\tDocumentBuilder db;\n\t\ttry {\n\t\t\tdb = dbf.newDocumentBuilder();\n\t\t\tDocument document = db.parse(new File(file));\n\t\t\treturn document;\n\t\t} catch (ParserConfigurationException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t} catch (SAXException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t} catch (FactoryConfigurationError e) {\n\t\t\t// TODO: handle exception\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\n\t}",
"public String changeXMLName(String content, String taskName, String tnsName) throws CoreException {\n DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n Document dom;\n String xmlString = null;\n try {\n dbf.setFeature(XMLConstants.FEATURE_SECURE_PROCESSING, true);\n DocumentBuilder db = dbf.newDocumentBuilder();\n InputSource is = new InputSource(new StringReader(content));\n dom = db.parse(is);\n NodeList taskList = dom.getElementsByTagName(HumantaskEditorConstants.QUALIFIED_TASK_NODE_NAME);\n NodeList tnsList = dom\n .getElementsByTagName(HumantaskEditorConstants.QUALIFIED_HUMAN_INTERACTIONS_NODE_NAME);\n tnsList.item(0).getAttributes().getNamedItem(HumantaskEditorConstants.XMLNS_TNS).setNodeValue(tnsName);\n tnsList.item(0).getAttributes().getNamedItem(HumantaskEditorConstants.TARGET_NAMESPACE)\n .setNodeValue(tnsName);\n for (int taskIndex = 0; taskIndex < taskList.getLength(); taskIndex++) {\n Node task = taskList.item(taskIndex);\n task.getAttributes().getNamedItem(HumantaskEditorConstants.TASK_NAME_ATTRIBUTE).setNodeValue(taskName);\n }\n TransformerFactory transfactory = TransformerFactory.newInstance();\n Transformer transformer = transfactory.newTransformer();\n transformer.setOutputProperty(OutputKeys.METHOD, HumantaskEditorConstants.XML_OUTPUT_METHOD);\n transformer.setOutputProperty(OutputKeys.INDENT, HumantaskEditorConstants.XML_INDENT_YES);\n transformer.setOutputProperty(HumantaskEditorConstants.XML_OUTPUT_PROPERTY_NAME, Integer.toString(2));\n\n StringWriter stringWriter = new StringWriter();\n StreamResult result = new StreamResult(stringWriter);\n DOMSource source = new DOMSource(dom.getDocumentElement());\n\n transformer.transform(source, result);\n xmlString = stringWriter.toString();\n } catch (ParserConfigurationException | SAXException pce) {\n throwCoreException(HumantaskEditorConstants.EXCEPTION_OCCURED_IN_PARSING_XML, pce);\n } catch (IOException ioe) {\n throwCoreException(HumantaskEditorConstants.EXCEPTION_OCCURED_IN_FILE_IO, ioe);\n } catch (TransformerConfigurationException e) {\n throwCoreException(HumantaskEditorConstants.EXCEPTION_OCCURED_IN_TRANSFORM_CONFIG, e);\n } catch (TransformerException e) {\n throwCoreException(HumantaskEditorConstants.EXCEPTION_OCCURED_IN_TRANSFORMING_XML_TO_TEXT, e);\n }\n return xmlString;\n }",
"void xsetTarget(org.apache.xmlbeans.XmlString target);",
"private void upgradeWsdlDocumentIfNeeded(InputSource source) {\n DocumentBuilder documentParser = XmlUtil.getDocumentBuilder();\n\n // install our problem handler as document parser's error handler\n documentParser.setErrorHandler(problemHandler.asSaxErrorHandler());\n\n // parse content\n Document document;\n try {\n document = documentParser.parse(source);\n // halt on parse errors\n if (problemHandler.getProblemCount() > 0)\n return;\n }\n catch (IOException e) {\n Problem problem = new Problem(Problem.LEVEL_ERROR, \"document is not readable\", e);\n problem.setResource(latestImportURI);\n problemHandler.add(problem);\n return;\n }\n catch (SAXException e) {\n Problem problem = new Problem(Problem.LEVEL_ERROR, \"document contains invalid xml\", e);\n problem.setResource(latestImportURI);\n problemHandler.add(problem);\n return;\n }\n finally {\n // reset error handling behavior\n documentParser.setErrorHandler(null);\n }\n\n // check whether the wsdl document requires upgrading\n if (hasUpgradableElements(document)) {\n try {\n // create wsdl upgrader\n Transformer wsdlUpgrader = getWsdlUpgradeTemplates().newTransformer();\n\n // install our problem handler as transformer's error listener\n wsdlUpgrader.setErrorListener(problemHandler.asTraxErrorListener());\n\n // upgrade into memory stream\n ByteArrayOutputStream resultStream = new ByteArrayOutputStream();\n wsdlUpgrader.transform(new DOMSource(document), new StreamResult(resultStream));\n\n // replace existing source with upgraded document\n source.setByteStream(new ByteArrayInputStream(resultStream.toByteArray()));\n\n log.debug(\"upgraded wsdl document: \" + latestImportURI);\n }\n catch (TransformerException e) {\n Problem problem = new Problem(Problem.LEVEL_ERROR, \"wsdl upgrade failed\", e);\n problem.setResource(latestImportURI);\n problemHandler.add(problem);\n }\n }\n else {\n // if the source is a stream, reset it\n InputStream sourceStream = source.getByteStream();\n if (sourceStream != null) {\n try {\n sourceStream.reset();\n }\n catch (IOException e) {\n log.error(\"could not reset source stream: \" + latestImportURI, e);\n }\n }\n }\n }",
"private void parseWSCServiceFile(String fileName) {\n Set<String> inputs = new HashSet<String>();\n Set<String> outputs = new HashSet<String>();\n double[] qos = new double[4];\n\n Properties p = new Properties(inputs, outputs, qos);\n\n try {\n \tFile fXmlFile = new File(fileName);\n \tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n \tDocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n \tDocument doc = dBuilder.parse(fXmlFile);\n\n \tNodeList nList = doc.getElementsByTagName(\"service\");\n\n \tfor (int i = 0; i < nList.getLength(); i++) {\n \t\torg.w3c.dom.Node nNode = nList.item(i);\n \t\tElement eElement = (Element) nNode;\n\n \t\tString name = eElement.getAttribute(\"name\");\n\t\t\t\tqos[TIME] = Double.valueOf(eElement.getAttribute(\"Res\"));\n\t\t\t\tqos[COST] = Double.valueOf(eElement.getAttribute(\"Pri\"));\n\t\t\t\tqos[AVAILABILITY] = Double.valueOf(eElement.getAttribute(\"Ava\"));\n\t\t\t\tqos[RELIABILITY] = Double.valueOf(eElement.getAttribute(\"Rel\"));\n\n\t\t\t\t// Get inputs\n\t\t\t\torg.w3c.dom.Node inputNode = eElement.getElementsByTagName(\"inputs\").item(0);\n\t\t\t\tNodeList inputNodes = ((Element)inputNode).getElementsByTagName(\"instance\");\n\t\t\t\tfor (int j = 0; j < inputNodes.getLength(); j++) {\n\t\t\t\t\torg.w3c.dom.Node in = inputNodes.item(j);\n\t\t\t\t\tElement e = (Element) in;\n\t\t\t\t\tinputs.add(e.getAttribute(\"name\"));\n\t\t\t\t}\n\n\t\t\t\t// Get outputs\n\t\t\t\torg.w3c.dom.Node outputNode = eElement.getElementsByTagName(\"outputs\").item(0);\n\t\t\t\tNodeList outputNodes = ((Element)outputNode).getElementsByTagName(\"instance\");\n\t\t\t\tfor (int j = 0; j < outputNodes.getLength(); j++) {\n\t\t\t\t\torg.w3c.dom.Node out = outputNodes.item(j);\n\t\t\t\t\tElement e = (Element) out;\n\t\t\t\t\toutputs.add(e.getAttribute(\"name\"));\n\t\t\t\t}\n\n p = new Properties(inputs, outputs, qos);\n\n ServiceNode ws = new ServiceNode(name, p);\n serviceMap.put(name, ws);\n inputs = new HashSet<String>();\n outputs = new HashSet<String>();\n qos = new double[4];\n \t}\n \t\tnumServices = serviceMap.size();\n }\n catch(IOException ioe) {\n System.out.println(\"Service file parsing failed...\");\n }\n catch (ParserConfigurationException e) {\n System.out.println(\"Service file parsing failed...\");\n\t\t}\n catch (SAXException e) {\n System.out.println(\"Service file parsing failed...\");\n\t\t}\n\t\tnumServices = serviceMap.size();\n }",
"private static void validate(String fileName, String xSchema) throws Exception {\n \t\ttry {\n\t // parse an XML document into a DOM tree\n\t DocumentBuilder parser =\n\t DocumentBuilderFactory.newInstance().newDocumentBuilder();\n\t Document document = parser.parse(new File(fileName));\n\t\n\t // create a SchemaFactory capable of understanding WXS schemas\n\t SchemaFactory factory =\n\t SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);\n\t\n\t // load a WXS schema, represented by a Schema instance\n\t Source schemaFile = new StreamSource(new File(xSchema));\n\t Schema schema = factory.newSchema(schemaFile);\n\t\n\t // create a Validator object, which can be used to validate\n\t // an instance document\n\t Validator validator = schema.newValidator();\n\t\n\t // validate the DOM tree\n\t\n\t validator.validate(new DOMSource(document));\n \t\t} catch(Exception e) {\n \t\t\tXMLValidate.file = fileName.substring(fileName.lastIndexOf(\"/\") + 1).replaceAll(\".xml\", \"\");\n \t\t\tthrow e;\n \t\t}\n \n }",
"public static void main(String[] args) throws Exception {\n \tString filename = null;\n \tboolean dtdValidate = false;\n \tboolean xsdValidate = false;\n \tString schemaSource = null;\n \t\n \targs[1] = \"/home/users/xblepa/git/labs/java/parser/src/test/data/personal-schema.xml\";\n \n boolean ignoreWhitespace = false;\n boolean ignoreComments = false;\n boolean putCDATAIntoText = false;\n boolean createEntityRefs = false;\n\n\t\t \n\t\tfor (int i = 0; i < args.length; i++) {\n\t\t if (args[i].equals(\"-dtd\")) { \n\t\t \t\tdtdValidate = true;\n\t\t } \n\t\t else if (args[i].equals(\"-xsd\")) {\n\t\t \txsdValidate = true;\n\t\t } \n\t\t else if (args[i].equals(\"-xsdss\")) {\n\t\t if (i == args.length - 1) {\n\t\t usage();\n\t\t }\n\t\t xsdValidate = true;\n\t\t schemaSource = args[++i];\n\t\t }\n\t\t else if (args[i].equals(\"-ws\")) {\n\t ignoreWhitespace = true;\n\t } \n\t else if (args[i].startsWith(\"-co\")) {\n\t ignoreComments = true;\n\t }\n\t else if (args[i].startsWith(\"-cd\")) {\n\t putCDATAIntoText = true;\n\t } \n\t else if (args[i].startsWith(\"-e\")) {\n\t createEntityRefs = true;\n\t // ...\n\t } \n\t\t else {\n\t\t filename = args[i];\n\t\t if (i != args.length - 1) {\n\t\t usage();\n\t\t }\n\t\t }\n\t\t}\n\t\t\n\t\tif (filename == null) {\n\t\t usage();\n\t\t}\n\t \t\n // Next, add the following code to the main() method, to obtain an instance of a factory that can give us a document builder.\n DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n \n dbf.setNamespaceAware(true);\n dbf.setValidating(dtdValidate || xsdValidate);\n \n // Now, add the following code to main() to get an instance of a builder, and use it to parse the specified file.\n DocumentBuilder db = dbf.newDocumentBuilder(); \n \n // The following code configures the document builder to use the error handler defined in Handle Errors. \n OutputStreamWriter errorWriter = new OutputStreamWriter(System.err,outputEncoding);\n db.setErrorHandler(new MyErrorHandler (new PrintWriter(errorWriter, true)));\n\n \n Document doc = db.parse(new File(filename)); \n \n }",
"public void setDTDHandler(DTDHandler handler)\n {\n if (handler == null)\n {\n handler = base;\n }\n this.dtdHandler = handler;\n }",
"public abstract String getLegacyDeltemplateNamespace();",
"public String createNamespace(IProject p, String ns) throws ThinklabException {\r\n \t\t\t\t\r\n \t\tFile ret = new File(getSourceDirectory() + File.separator + \r\n \t\t\t\t\t\t\tns.replace('.', File.separatorChar) + \".tql\");\r\n \t\tFile dir = new File(MiscUtilities.getFilePath(ret.toString()));\r\n \t\t\r\n \t\ttry {\r\n \t\t\tdir.mkdirs();\r\n \t\t\tPrintWriter out = new PrintWriter(ret);\r\n \t\t\tout.println(\"namespace \" + ns + \";\\n\");\r\n \t\t\tout.close();\r\n \t\t} catch (Exception e) {\r\n \t\t\tthrow new ThinklabClientException(e);\r\n \t\t}\r\n \t\t\r\n \t\treturn getSourceFolderNames().iterator().next() + File.separator + \r\n \t\t\t\tns.replace('.', File.separatorChar) + \".tql\";\r\n \t}",
"public static String transformTemplateToOntology(String templateToTransform, String targetNamespace, boolean capitalize) {\n String result = transformTemplateToOntology(templateToTransform, capitalize);\n result = result.replace(\"dbpedia.org\", targetNamespace);\n return result;\n }",
"public String getSchema(File file) {\n\t\tDocument doc = null;\n\t\ttry {\n\t\t\tSAXBuilder sax = new SAXBuilder();\n\t\t\tdoc = sax.build(file);\n\t\t} catch (JDOMException | IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tif(doc != null)\n\t\t\treturn getSchema(doc);\n\t\treturn null;\n\t}",
"@Override\n public void setXMLSchema(URL url) throws XMLPlatformException {\n if (null == url) {\n return;\n }\n if (null == documentBuilderFactory) {\n loadDocumentBuilderFactory();\n }\n try {\n documentBuilderFactory.setAttribute(SCHEMA_LANGUAGE, XML_SCHEMA);\n documentBuilderFactory.setAttribute(JAXP_SCHEMA_SOURCE, url.toString());\n } catch (IllegalArgumentException e) {\n // The attribute isn't supported so do nothing\n } catch (Exception e) {\n XMLPlatformException.xmlPlatformErrorResolvingXMLSchema(url, e);\n }\n }",
"public void setNamespace(String namespace) {\n\t\t\r\n\t}",
"abstract XML addNamespace(Namespace ns);",
"public XmlTransformer(Package pakkage, ImmutableMap<String, String> schemaNamesToFilenames) {\n try {\n this.jaxbContext = initJaxbContext(pakkage, schemaNamesToFilenames.keySet());\n this.schema = loadXmlSchemas(ImmutableList.copyOf(schemaNamesToFilenames.values()));\n } catch (JAXBException e) {\n throw new RuntimeException(e);\n }\n }",
"private void parseWSCServiceFile(String fileName) {\n\t\tSet<String> inputs = new HashSet<String>();\n\t\tSet<String> outputs = new HashSet<String>();\n\t\tdouble[] qos = new double[4];\n\n\t\ttry {\n\t\t\tFile fXmlFile = new File(fileName);\n\t\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n\t\t\tDocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n\t\t\tDocument doc = dBuilder.parse(fXmlFile);\n\n\t\t\tNodeList nList = doc.getElementsByTagName(\"service\");\n\n\t\t\tfor (int i = 0; i < nList.getLength(); i++) {\n\t\t\t\torg.w3c.dom.Node nNode = nList.item(i);\n\t\t\t\tElement eElement = (Element) nNode;\n\n\t\t\t\tString name = eElement.getAttribute(\"name\");\n\t\t\t\tif (!runningOwls) {\n\t\t\t\t\tqos[TIME] = Double.valueOf(eElement.getAttribute(\"Res\"));\n\t\t\t\t\tqos[COST] = Double.valueOf(eElement.getAttribute(\"Pri\"));\n\t\t\t\t\tqos[AVAILABILITY] = Double.valueOf(eElement.getAttribute(\"Ava\"));\n\t\t\t\t\tqos[RELIABILITY] = Double.valueOf(eElement.getAttribute(\"Rel\"));\n\t\t\t\t}\n\n\t\t\t\t// Get inputs\n\t\t\t\torg.w3c.dom.Node inputNode = eElement.getElementsByTagName(\"inputs\").item(0);\n\t\t\t\tNodeList inputNodes = ((Element)inputNode).getElementsByTagName(\"instance\");\n\t\t\t\tfor (int j = 0; j < inputNodes.getLength(); j++) {\n\t\t\t\t\torg.w3c.dom.Node in = inputNodes.item(j);\n\t\t\t\t\tElement e = (Element) in;\n\t\t\t\t\tinputs.add(e.getAttribute(\"name\"));\n\t\t\t\t}\n\n\t\t\t\t// Get outputs\n\t\t\t\torg.w3c.dom.Node outputNode = eElement.getElementsByTagName(\"outputs\").item(0);\n\t\t\t\tNodeList outputNodes = ((Element)outputNode).getElementsByTagName(\"instance\");\n\t\t\t\tfor (int j = 0; j < outputNodes.getLength(); j++) {\n\t\t\t\t\torg.w3c.dom.Node out = outputNodes.item(j);\n\t\t\t\t\tElement e = (Element) out;\n\t\t\t\t\toutputs.add(e.getAttribute(\"name\"));\n\t\t\t\t}\n\n\t\t\t\tNode ws = new Node(name, qos, inputs, outputs);\n\t\t\t\tserviceMap.put(name, ws);\n\t\t\t\tinputs = new HashSet<String>();\n\t\t\t\toutputs = new HashSet<String>();\n\t\t\t\tqos = new double[4];\n\t\t\t}\n\t\t}\n\t\tcatch(IOException ioe) {\n\t\t\tSystem.out.println(\"Service file parsing failed...\");\n\t\t}\n\t\tcatch (ParserConfigurationException e) {\n\t\t\tSystem.out.println(\"Service file parsing failed...\");\n\t\t}\n\t\tcatch (SAXException e) {\n\t\t\tSystem.out.println(\"Service file parsing failed...\");\n\t\t}\n\t}",
"protected void startParsing(String xsdName, String xmlName, String outputFileName){\n boolean isValid = this.inputXSD(xsdName, xmlName, outputFileName);\n if(isValid){\n System.out.println(\"xml data is parsed successfully!\");\n }else {\n System.out.println(\"Program failed to parse xml data!\");\n }\n }",
"public static Document createXsd(Principal principal, CoalesceEntityTemplate template)\n throws ParserConfigurationException\n {\n CoalesceEntity entity = template.createNewEntity();\n\n DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n factory.setNamespaceAware(true);\n\n Document doc = factory.newDocumentBuilder().newDocument();\n\n Element element = doc.createElementNS(NS_XML_URI, \"schema\");\n element.setPrefix(NS_XML);\n doc.appendChild(element);\n\n String nameSpace = createNameSpace(template.getClassName(), template.getName());\n\n element.setAttribute(\"targetNamespace\", nameSpace);\n element.setAttribute(\"xmlns:\" + NS_TARGET, nameSpace);\n element.setAttribute(\"xmlns:jxb\", \"http://java.sun.com/xml/ns/jaxb\");\n element.setAttribute(\"elementFormDefault\", \"qualified\");\n element.setAttribute(\"attributeFormDefault\", \"qualified\");\n element.setAttribute(\"jxb:version\", \"2.1\");\n element.setAttribute(\"version\", template.getVersion());\n\n createComplexType(principal, doc, entity);\n\n try\n {\n // TODO Something with how the Document is created prevents it from\n // being used as a DOMSource. Serializing it and Deserializing it\n // appears to resolve the issue at a performance hit. It would be\n // nice to remove this step.\n return XmlHelper.loadXmlFrom(XmlHelper.formatXml(doc));\n }\n catch (SAXException | IOException e)\n {\n throw new ParserConfigurationException(e.getMessage());\n }\n\n }",
"void setNamespace(String namespace);",
"public static void loadStudRecsFromFile(File file) {\r\n\t\ttry {\r\n\t\t\tJAXBContext context = JAXBContext\r\n\t\t\t\t\t.newInstance(StudRecsWrapper.class);\r\n\t\t\tUnmarshaller um = context.createUnmarshaller();\r\n\t\t\t\r\n\t\t\tStudRecsWrapper wrapper = (StudRecsWrapper) um.unmarshal(file);\r\n\t\t\t\r\n\t\t\tstudRecs.clear();\r\n\t\t\tstudRecs.addAll(wrapper.getStudRecs());\r\n\t\t\tSystem.out.println(\"File loaded!\");\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(\"Cannot load file, does it exist?\");\r\n\t\t}\r\n\t}",
"public static Date isoStringToDate(String d) {\n\t\tDateTime dt = XML_DATE_TIME_FORMAT.parseDateTime(d);\n\t\treturn dt.toDate();\n\t}",
"void xsetNamespace(org.apache.xmlbeans.XmlNMTOKEN namespace);",
"private static String convertToQualifiedName(final String fileName) {\n final String replacedSeparators = fileName.replace(File.separatorChar, '.');\n return replacedSeparators.substring(0, replacedSeparators.length() - \".class\".length());\n }",
"public String getSchema(String fileContent) {\n\t\ttry (StringReader reader = new StringReader(fileContent)) {\n\t\t\tSAXBuilder sax = new SAXBuilder();\n\t\t\tDocument doc = sax.build(reader);\n\t\t\treturn getSchema(doc);\n\t\t} catch (JDOMException | IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}",
"@Override\r\n public DTextArea setDsfNamespace(DNamespace namespace){\r\n \tsuper.setDsfNamespace(namespace) ;\r\n \treturn this ;\r\n }",
"public static void addToXML(CD c)\n\t\t\tthrows TransformerException, FileNotFoundException, SAXException, IOException {\n\t\ttry {\n\t\t\tDocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();\n\t\t\tDocumentBuilder docBuilder = docFactory.newDocumentBuilder();\n\n\t\t\t// root elements\n\t\t\tDocument doc = docBuilder.newDocument();\n\t\t\tElement rootElement;\n\t\t\tString filePath = \"src/Part2_Ex3/CD.xml\";\n\t\t\tFile xmlFile = new File(filePath);\n\n\t\t\tif (xmlFile.isFile()) {\n\t\t\t\tdoc = docBuilder.parse(new FileInputStream(xmlFile));\n\t\t\t\tdoc.getDocumentElement().normalize();\n\t\t\t\trootElement = doc.getDocumentElement();\n\t\t\t} else {\n\t\t\t\trootElement = doc.createElement(\"CDs\");\n\t\t\t\tdoc.appendChild(rootElement);\n\t\t\t}\n\n\t\t\tElement cd = doc.createElement(\"CD\");\n\t\t\trootElement.appendChild(cd);\n\n\t\t\t// id element\n\t\t\tElement id = doc.createElement(\"id\");\n\t\t\tid.appendChild(doc.createTextNode(Integer.toString(c.getId())));\n\t\t\tcd.appendChild(id);\n\t\t\t\n\t\t\t// name\n\t\t\tElement name = doc.createElement(\"name\");\n\t\t\tname.appendChild(doc.createTextNode(c.getName()));\n\t\t\tcd.appendChild(name);\n\n\t\t\t//singer\n\t\t\tElement singer = doc.createElement(\"singer\");\n\t\t\tsinger.appendChild((doc.createTextNode(c.getSinger())));\n\t\t\tcd.appendChild(singer);\n\n\t\t\t// number songs\n\t\t\tElement numbersongs = doc.createElement(\"numbersongs\");\n\t\t\tnumbersongs.appendChild(doc.createTextNode(Integer.toString(c.getNumOfSong())));\n\t\t\tcd.appendChild(numbersongs);\n\t\t\t\n\t\t\t// price\n\t\t\tElement price = doc.createElement(\"price\");\n\t\t\tprice.appendChild(doc.createTextNode(Double.toString(c.getPrice())));\n\t\t\tcd.appendChild(price);\n\t\t\t\n\t\t\t// write the content into xml file\n\t\t\tTransformerFactory transformerFactory = TransformerFactory.newInstance();\n\t\t\tTransformer transformer = transformerFactory.newTransformer();\n\t\t\tDOMSource source = new DOMSource(doc);\n\t\t\tStreamResult result = new StreamResult(xmlFile);\n\t\t\ttransformer.transform(source, result);\n\n\t\t\tSystem.out.println(\"Add completed !\");\n\n\t\t} catch (ParserConfigurationException pce) {\n\t\t\tSystem.out.println(\"Cannot insert new CD. Error: \" + pce.getMessage());\n\t\t}\n\t}",
"private static PriceList getConvertedDocument(String sourceFolderPath, String constSourceFileName) throws ParserConfigurationException, SAXException, IOException {\n String filePath = sourceFolderPath.concat(constSourceFileName);\n File xmlFile = new File(filePath);\n DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n DocumentBuilder dBuilder = factory.newDocumentBuilder();\n Document doc = dBuilder.parse(xmlFile);\n \n \n //create the excel document Java representation\n PriceList priceList = new PriceList(doc.getDocumentElement());\n return priceList;\n }",
"private void write(){\n\t\ttry {\n\t\t\tTransformerFactory transformerFactory = TransformerFactory.newInstance();\n\t\t\tTransformer transformer = transformerFactory.newTransformer();\n\t\t\tDOMSource source = new DOMSource(doc);\n\t\t\t\n\t\t\tString pathSub = ManipXML.class.getResource(path).toString();\n\t\t\tpathSub = pathSub.substring(5, pathSub.length());\n\t\t\tStreamResult result = new StreamResult(pathSub);\n\t\t\t\n\t\t\ttransformer.transform(source, result);\n\t\t} catch (TransformerConfigurationException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (TransformerException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public SchemaValidator(@NotNull Class<?> clz, @NotNull String schemaFile)\r\n throws SAXException {\r\n File localFile = new File(\"src\" + File.separator + \"main\"\r\n + File.separator + \"resources\" + File.separator\r\n + \"model\" + File.separator + \"xsd\"\r\n + File.separator + schemaFile);\r\n Schema schema;\r\n if (localFile.exists()) {\r\n try {\r\n schema = createSchema(new FileInputStream(localFile));\r\n } catch (FileNotFoundException e) {\r\n schema = createSchema(clz.getResourceAsStream(\r\n \"/model/xsd/\" + schemaFile));\r\n }\r\n } else {\r\n schema = createSchema(clz.getResourceAsStream(\r\n \"/model/xsd/\" + schemaFile));\r\n }\r\n validator = schema.newValidator();\r\n validator.setFeature(\r\n \"http://apache.org/xml/features/validation/schema-full-checking\",\r\n true);\r\n }",
"private String updateConcordionNamespacePrefix(Element html, String stylesheetContent) {\n for (int i=0; i<html.getNamespaceDeclarationCount(); i++) {\n String prefix = html.getNamespacePrefix(i);\n if (ConcordionBuilder.NAMESPACE_CONCORDION_2007.equals(html.getNamespaceURI(prefix))) {\n return stylesheetContent.replace(\"concordion\\\\:\", prefix + \"\\\\:\");\n }\n }\n return stylesheetContent;\n }",
"public void setNamespace (\r\n String strNamespace) throws java.io.IOException, com.linar.jintegra.AutomationException;",
"@DSSafe(DSCat.SAFE_OTHERS)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:49.362 -0500\", hash_original_method = \"1F62AD2938072A93E19EAFFCDA555D07\", hash_generated_method = \"E522C6EE17CC779935F0D04DE1F1F350\")\n \npublic NamespaceSupport ()\n {\n reset();\n }",
"private boolean validateXmlFileWithSchema(String xmlFilePath, String xsdFilePath) { \n \tassert xmlFilePath != null && !xmlFilePath.isEmpty();\n \tassert xsdFilePath != null && !xsdFilePath.isEmpty();\n \tassert _schemaFactory != null;\n \tassert _loggerHelper != null;\n \t\n try {\n Schema schema = _schemaFactory.newSchema(new File(xsdFilePath));\n Validator validator = schema.newValidator();\n validator.validate(new StreamSource(new File(xmlFilePath)));\n } catch (IOException | SAXException e) {\n \t_loggerHelper.logError(e.getMessage());\n return false;\n }\n return true;\n }",
"public interface DTDHandler {\n\n /**\n * Receive notification of a notation declaration event. <p/> It is up to\n * the application to record the notation for later reference, if necessary.\n * </p> <p/> If a system identifier is present, and it is a URL, the SAX\n * parser must resolve it fully before passing it to the application. </p>\n * \n * @param name\n * The notation name.\n * @param publicId\n * The notation's public identifier, or null if none was given.\n * @param systemId\n * The notation's system identifier, or null if none was given.\n * @throws org.xml.sax.SAXException\n * Any SAX exception, possibly wrapping another exception.\n * @see #unparsedEntityDecl\n * @see org.xml.sax.AttributeList\n */\n public abstract void notationDecl(String name, String publicId,\n String systemId) throws SAXException;\n\n /**\n * Receive notification of an unparsed entity declaration event. <p/> Note\n * that the notation name corresponds to a notation reported by the\n * notationDecl() event. It is up to the application to record the entity\n * for later reference, if necessary. </p> <p/> If the system identifier is\n * a URL, the parser must resolve it fully before passing it to the\n * application. </p>\n * \n * @param name\n * The unparsed entity's name.\n * @param publicId\n * The entity's public identifier, or null if none was given.\n * @param systemId\n * The entity's system identifier (it must always have one).\n * @param notation\n * name The name of the associated notation.\n * @param notationName\n * @throws org.xml.sax.SAXException\n * Any SAX exception, possibly wrapping another exception.\n * @see #notationDecl\n * @see org.xml.sax.AttributeList\n */\n public abstract void unparsedEntityDecl(String name, String publicId,\n String systemId, String notationName) throws SAXException;\n\n}",
"public FixedSchemaOutputResolver(File outputFile) {\n this.outputFile = requireNonNull(outputFile, \"outputFile\");\n }",
"public void transform(Node source, String outputFileName) throws Exception {\n FileOutputStream outFS = new FileOutputStream(outputFileName);\n Result result = new StreamResult(outFS);\n myTransformer.transform(new DOMSource(source), result);\n outFS.close();\n }",
"public void convertAll() {\n Document dom = null;\n long beginTime = System.currentTimeMillis();\n try {\n log.info(\" ############################### begin import ######################\");\n dom = XMLParser.parseXMLToDOM(context.getResourceAsStream(IMPORT_FILE));\n // XMLParser.DTDValidator(dom);\n Element element = (Element) dom.getElementsByTagName(\"import\").item(0);\n String encoding = element.getAttribute(\"encoding\");\n DataAccessor.encoding = encoding;\n\n NodeList list = element.getChildNodes();\n\n List<Data> clondSources = new ArrayList<Data>();\n for (int i = 0; i < list.getLength(); i++) {\n // datatype node\n Node itemDatatype = list.item(i);\n List<Data> sources = processDatatype(itemDatatype);\n clondSources.addAll(sources);\n }\n NodeService.insertMigrationMappings(clondSources);\n createRelationDataType(clondSources);\n linkRoot(list);\n log.info(String.format(\n \" ---->#######################finished importing [time:%s mins] #############################\",\n (System.currentTimeMillis() - beginTime) / (1000 * 60)));\n NodeService.insertProperties(properties);\n }\n catch (Exception e) {\n log.error(e.getMessage());\n e.printStackTrace();\n }\n }",
"public void addRulesFile(String fileName) {\n\t\tString newFamilyRules = JenaRules.class.getClassLoader().getResource(fileName).getPath();//path of family rules\n\t\tList<Rule> newRules = Rule.rulesFromURL(newFamilyRules);\n\t\tReasoner newReasoner = new GenericRuleReasoner(newRules);\n\t\tthis.infmodel = ModelFactory.createInfModel(newReasoner, infmodel); //create new inference by adding new rules\n\t\tthis.infmodel.removeNsPrefix(this.prefix);\n\t}",
"private static void generateMakefileFromTemplate(String serviceName, String targetFile) {\r\n\t\tClassLoader loader = ServiceGenerator.class.getClassLoader();\r\n\t\tURL makeFileTemplateUrl = loader.getResource(Constants.HE_SERVICE_TEMPLATE_FOLDER + Constants.HE_SERVICE_MAKEFILE_TEMPLATE_NAME);\r\n\r\n\t\t\r\n\t\tSTGroup impl = new STGroupFile(makeFileTemplateUrl, \"UTF-8\", '$', '$');\r\n\t\tST st = impl.getInstanceOf(\"make_file\");\r\n\t\tst.add(\"service_name\", serviceName);\t\t\r\n\t\tString result = st.render();\r\n\t\t\r\n\t\tUtils.writeToFile(result, targetFile);\r\n\t}",
"private void handleNamespaceDeclaration() throws IOException {\r\n if (this.tempMapping != null) {\r\n PrefixMapping pm = null;\r\n for (int i = 0; i < tempMapping.size(); i++) {\r\n pm = (PrefixMapping)tempMapping.get(i);\r\n this.writer.write(\" xmlns\");\r\n // specify a prefix if different from \"\"\r\n if (!\"\".equals(pm.prefix)) {\r\n this.writer.write(':');\r\n this.writer.write(pm.prefix);\r\n }\r\n this.writer.write(\"=\\\"\");\r\n this.writer.write(pm.uri);\r\n this.writer.write(\"\\\"\");\r\n }\r\n this.tempMapping = null;\r\n }\r\n }",
"public WSDL(String targetNamespace) {\r\n\t\tthis(targetNamespace, \"\");\r\n\t}",
"public static String transformTemplateToClass(String templateToTransform, String targetNamespace) {\n\n String transformedTemplate = templateToTransform;\n\n\n if (targetNamespace != null) {\n // check whether entity is already transformed to target targetNamespace\n String namespaceDomain = ResourceBundle.getBundle(\"config\").getString(\"targetnamespace\");\n if (!templateToTransform.contains(namespaceDomain) && templateToTransform.contains(\"dbpedia.org\")) {\n // transform into target targetNamespace\n transformedTemplate = templateToTransform.replaceAll(\"dbpedia.org\", targetNamespace);\n }\n }\n\n // transform into class\n transformedTemplate = transformedTemplate.replace(\"/resource/Template:\", \"/class/\");\n\n // remove infobox information\n transformedTemplate = transformedTemplate.replace(\"infobox_\", \"\");\n transformedTemplate = transformedTemplate.replace(\"_infobox\", \"\");\n transformedTemplate = transformedTemplate.replace(\"Infobox_\", \"\");\n transformedTemplate = transformedTemplate.replace(\"_Infobox\", \"\");\n\n // transform first character of class name to uppercase\n transformedTemplate = transformedTemplate.substring(0, transformedTemplate.indexOf(\"/class/\") + 7)\n + transformedTemplate.substring(transformedTemplate.indexOf(\"/class/\") + 7).substring(0, 1).toUpperCase()\n + transformedTemplate.substring(transformedTemplate.indexOf(\"/class/\") + 7).substring(1);\n\n return transformedTemplate;\n }",
"public static ElementDecl getMatchingXSDElement(QName xsdElementQName, WSDLElement element) {\n\t\tif(xsdElementQName == null) {\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tWSDLDocument document = (WSDLDocument) element.getOwnerDocument();\n\t\t\n\t\tif (document == null) {\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tWSDLDefinitions wsdlDefinition = document.getDocumentDefinitions();\n\t\t\t\t\n\t\tif (wsdlDefinition == null) {\n\t\t\treturn null;\n\t\t}\n \n\t\tElementDecl xsdElement = null;\n\t\t\n\t\t//QName nsQName = NamespaceUtility.normalizeQName(xsdElementQName, element);\n\t\t//xsdElement = wsdlDefinition.getXSDElement(nsQName);\n\t\txsdElement = wsdlDefinition.getXSDElement(xsdElementQName);\n\t\t\n\t\treturn xsdElement;\n\t\t\n\t}",
"public Device readFromDeviceFile(String fileName, String address) {\n\n Element eElement = null;\n File file = new File(SifebUtil.DEV_FILE_DIR + fileName + \".xml\");\n try {\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n Document doc = dBuilder.parse(file);\n doc.getDocumentElement().normalize();\n System.out.println(\"Root element :\" + doc.getDocumentElement().getNodeName());\n NodeList nList = doc.getElementsByTagName(\"Device\");\n Node nNode = nList.item(0);\n eElement = (Element) nNode;\n } catch (ParserConfigurationException | SAXException | IOException e) {\n e.printStackTrace();\n }\n\n return getDevFromElement(eElement, address);\n }",
"public void addDTD(ResourceLocation dtd) throws BuildException {\n if (isReference()) {\n throw noChildrenAllowed();\n }\n\n getElements().addElement(dtd);\n setChecked(false);\n }",
"public void generateTypesForXSD(ParameterMetaData pmd) throws IOException\n {\n QName xmlType = pmd.getXmlType();\n if(xmlType.getNamespaceURI().equals(Constants.NS_SCHEMA_XSD) == false)\n generateType(xmlType, pmd.getJavaType(), buildElementNameMap(pmd));\n\n if (pmd.getOperationMetaData().getStyle() == Style.DOCUMENT || pmd.isInHeader())\n generateElement(pmd.getXmlName(), xmlType);\n\n //Attachment type\n if(pmd.isSwA())\n wsdl.registerNamespaceURI(Constants.NS_SWA_MIME, \"mime\");\n }"
] |
[
"0.71521986",
"0.6878486",
"0.6835679",
"0.6444731",
"0.53701174",
"0.51463366",
"0.51333374",
"0.50691766",
"0.49744278",
"0.47925356",
"0.47421777",
"0.4707456",
"0.46968088",
"0.46598056",
"0.46329674",
"0.4629566",
"0.45710322",
"0.45392552",
"0.45218223",
"0.45110947",
"0.44967946",
"0.44802845",
"0.44578236",
"0.4451908",
"0.44515473",
"0.44242147",
"0.44140965",
"0.44139355",
"0.43767914",
"0.4374871",
"0.4368898",
"0.43656784",
"0.4365303",
"0.4334565",
"0.43286586",
"0.43179607",
"0.43175927",
"0.42872262",
"0.425293",
"0.42204815",
"0.42202166",
"0.42186883",
"0.420882",
"0.42056447",
"0.41967228",
"0.41864562",
"0.4175225",
"0.41751647",
"0.41615102",
"0.41599554",
"0.41591087",
"0.41586593",
"0.415686",
"0.41540763",
"0.41401044",
"0.41377592",
"0.4125343",
"0.41228104",
"0.4121683",
"0.41168296",
"0.4112141",
"0.40927902",
"0.40865302",
"0.40768546",
"0.40757436",
"0.4074726",
"0.40722162",
"0.4049123",
"0.40387958",
"0.4022656",
"0.40174776",
"0.40129027",
"0.40110904",
"0.39885992",
"0.39882892",
"0.3983201",
"0.3976506",
"0.39724424",
"0.39698675",
"0.39678764",
"0.39663512",
"0.39610115",
"0.3952384",
"0.39513052",
"0.39485607",
"0.3934437",
"0.39342853",
"0.39309222",
"0.39275652",
"0.3919264",
"0.39185247",
"0.39182806",
"0.3910604",
"0.39070857",
"0.39057535",
"0.39011955",
"0.3899363",
"0.38985193",
"0.38983265",
"0.38982043"
] |
0.6488222
|
3
|
Convert the given dtd file to the new xsd format with target namespace.
|
public static void convert(final @NonNull String targetNamespace,
final List<TypePattern> listXsdTypePattern, final @NonNull String dtdfile,
final @NonNull String xsdfile) throws IOException
{
OutputStream outStream = new FileOutputStream(xsdfile);
final Writer writer = new Writer();
writer.setTargetNamespace(targetNamespace);
writer.addXsdTypePattern(listXsdTypePattern);
writer.setOutStream(outStream);
writer.parse(new XMLInputSource(null, dtdfile, null));
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public static void convert(final String dtdfile, final String xsdfile) throws IOException\n\t{\n\t\tOutputStream outStream = new FileOutputStream(xsdfile);\n\t\tfinal Writer writer = new Writer();\n\t\twriter.setOutStream(outStream);\n\t\twriter.parse(new XMLInputSource(null, dtdfile, null));\n\t}",
"public static File convert(final @NonNull File dtdfile, final @NonNull File xsdfile)\n\t\tthrows IOException\n\t{\n\t\tOutputStream outStream = new FileOutputStream(xsdfile);\n\t\tfinal Writer writer = new Writer();\n\t\twriter.setOutStream(outStream);\n\t\twriter.parse(new XMLInputSource(null, dtdfile.getAbsolutePath(), null));\n\t\treturn xsdfile;\n\t}",
"public static File convert(final @NonNull String dtdfile, final @NonNull File xsdfile)\n\t\tthrows IOException\n\t{\n\t\tOutputStream outStream = new FileOutputStream(xsdfile);\n\t\tfinal Writer writer = new Writer();\n\t\twriter.setOutStream(outStream);\n\t\twriter.parse(new XMLInputSource(null, dtdfile, null));\n\t\treturn xsdfile;\n\t}",
"public static void convert(final @NonNull String targetNamespace,\n\t\tfinal List<TypePattern> listXsdTypePattern, final @NonNull String dtdfile,\n\t\tfinal @NonNull File xsdfile) throws IOException\n\t{\n\t\tOutputStream outStream = new FileOutputStream(xsdfile);\n\t\tfinal Writer writer = new Writer();\n\t\twriter.setTargetNamespace(targetNamespace);\n\t\twriter.addXsdTypePattern(listXsdTypePattern);\n\t\twriter.setOutStream(outStream);\n\t\twriter.parse(new XMLInputSource(null, dtdfile, null));\n\t}",
"public void setXmlSchema(File file) {\n\t\tDocument doc = null;\n\t\ttry {\n\t\t\tSAXBuilder sax = new SAXBuilder();\n\t\t\tdoc = sax.build(file);\n\t\t} catch (JDOMException | IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tif(doc != null) {\n\t\t\tsetXmlSchema(doc);\n\t\t\ttry(FileOutputStream fileOutputStream = new FileOutputStream(file)) {\n\t\t\t\ttry {\n\t\t\t\t\tXMLOutputter xmlOutputter = new XMLOutputter(Format.getPrettyFormat());\n\t\t\t\t\txmlOutputter.output(doc, fileOutputStream);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"public void removeXmlSchema(File file) {\n\t\tDocument doc = null;\n\t\ttry {\n\t\t\tSAXBuilder sax = new SAXBuilder();\n\t\t\tdoc = sax.build(file);\n\t\t} catch (JDOMException | IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tif(doc != null) {\n\t\t\tElement rootElement = doc.getRootElement();\n\t\t\trootElement.setNamespace(null);\n\t\t\trootElement.removeNamespaceDeclaration(bioNamespace);\n\t\t\trootElement.removeNamespaceDeclaration(xsiNamespace);\n\t\t\trootElement.removeAttribute(\"schemaLocation\", xsiNamespace);\n\t\t\ttry (FileOutputStream fileOutputStream = new FileOutputStream(file)) {\n\t\t\t\ttry {\n\t\t\t\t\tXMLOutputter xmlOutputter = new XMLOutputter(Format.getPrettyFormat());\n\t\t\t\t\txmlOutputter.output(doc, fileOutputStream);\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"public String getXMLSchemaTargetNamespace() {\n String targetNamespace = getPreferenceStore().getString(CONST_DEFAULT_TARGET_NAMESPACE);\n if (!targetNamespace.endsWith(\"/\")) {\n targetNamespace = targetNamespace + \"/\";\n }\n return targetNamespace;\n }",
"public void processDocumentType(DocumentType dtd)\r\n\tthrows Exception\r\n\t{\r\n\tWriter xml = getWriter();\r\n\txml.write(\"<!DOCTYPE \");\r\n\txml.write(dtd.getName());\r\n\txml.write(\" SYSTEM ... \\n \");\r\n\treturn;\r\n\t}",
"public void convert(String inFile, String outFile) throws IOException, JAXBException;",
"public void setTargetNamespace(String targetNamespace)\r\n {\r\n this.targetNamespace = targetNamespace;\r\n }",
"public void generateDTD(InputSource src)\n throws Exception\n {\n DTDParser parser = new DTDParser();\n DTD dtd;\n\n dtd = parser.parseExternalSubset(src, null);\n processElementTypes(dtd);\n System.out.println(createAllTablesQuery);\n FileWriter catq= new FileWriter(\"createAllTables.sql\");\n catq.write(createAllTablesQuery);\n catq.close();\n }",
"public void xsetXsd(org.apache.xmlbeans.XmlString xsd)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(XSD$2, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(XSD$2);\n }\n target.set(xsd);\n }\n }",
"public static WSDLDocument parseWSDL(String input) throws WSDLParserException {\r\n\r\n\t try {\r\n\r\n\t\t\tWSDLDocument wsdlDoc = null;\r\n\r\n\t\t\twsdlDoc = new WSDLDocument();\r\n\r\n\t\t\tSAXBuilder builder = new SAXBuilder();\r\n\t\t\tlog.info(\"WSDL: loading...\" + input);\r\n\t\t\tDocument doc = builder.build(Files.getInputStream(input));\r\n\r\n\t\t\t// Get the root element\r\n\t\t\tElement root = doc.getRootElement();\r\n\r\n\t\t\t// Namespaces\r\n\t\t\tNamespace rootns = root.getNamespace();\r\n\t\t\twsdlDoc.setRootNamespace(rootns);\r\n\r\n\t\t\tList nss = root.getAdditionalNamespaces();\r\n\t\t\tfor (Iterator iter = nss.iterator(); iter.hasNext(); ) {\r\n\t\t\t\tNamespace ns = (Namespace) iter.next();\r\n\t\t\t\twsdlDoc.addAdditionalNamespace(ns);\r\n\t\t\t}\r\n\r\n\t\t\t// XML Schema Type defintions\r\n\r\n\t\t\t// first load utility schemas, which may be needed even in absence\r\n\t\t\t// of an explicite XSD schema defintion\r\n\t\t\tXMLSchemaParser parser = new XMLSchemaParser();\r\n\r\n\t\t\tHashMap addNS = new HashMap();\r\n\t\t\taddNS.put(\"xsd\", Namespace.getNamespace(\"xsd\", XSSchema.NS_XSD));\r\n\t\t\tXSSchema datatypes = parser.parseSchema(Files.getInputStream(\"examples/xs/xs_datatypes.xsd\"), addNS);\r\n\t\t\tXSSchema soapEncoding = parser.parseSchema(Files.getInputStream(\"examples/xs/soapencoding.xsd\"), addNS);\r\n\r\n\t\t\t// now read the schema definitions of the WSDL documen (usually, only one..)\r\n\t\t\tElement types = root.getChild(\"types\", rootns);\r\n\t\t\tif (types != null) {\r\n\t\t\t\tIterator itr = (types.getChildren()).iterator();\r\n\t\t\t\twhile (itr.hasNext()) {\r\n\t\t\t\t\t// copying XML Schema definition to stream\r\n\t\t\t\t\tByteArrayOutputStream os = new ByteArrayOutputStream();\r\n\t\t\t\t\tXMLOutputter outputter = new XMLOutputter();\r\n\t\t\t\t\toutputter.output((Element) itr.next(), os);\r\n\t\t\t\t\tString s = os.toString();\r\n\r\n\t\t\t\t\tXSSchema xs = parser.parseSchema(s, wsdlDoc.getAdditionalNamespaces());\r\n\t\t\t\t\tlog.debug(\"--- XML SCHEMA PARSING RESULT ---\\n\"+xs.toString());\r\n\t\t\t\t\twsdlDoc.addXSDSchema(xs);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tRegistry registry = Registry.getInstance();\r\n\r\n\t\t\twsdlDoc.setName(root.getAttributeValue(\"name\"));\r\n\t\t\twsdlDoc.setTargetNamespace(StrUtils.slashed(root.getAttributeValue(\"targetNamespace\")));\r\n\r\n\t\t\t/*\r\n\t\t\t<message name=\"GetLastTradePriceOutput\">\r\n\t\t\t\t\t<part name=\"body\" element=\"xsd1:TradePrice\"/>\r\n\t\t\t</message>\r\n\t\t\t*/\r\n\t\t\tfor(Iterator iter=root.getChildren(\"message\", NS_WSDL).iterator(); iter.hasNext(); ) {\r\n\t\t\t\tElement messageElem = (Element) iter.next();\r\n\t\t\t\tMessage m = new Message(wsdlDoc);\r\n\t\t\t\tm.setName(messageElem.getAttributeValue(\"name\"));\r\n\t\t\t\twsdlDoc.addMessage(m);\r\n\r\n\t\t\t\tList partList = messageElem.getChildren(\"part\", NS_WSDL);\r\n\t\t\t\tfor(Iterator iter2=partList.iterator(); iter2.hasNext();) {\r\n\t\t\t\t\tElement partElem = (Element) iter2.next();\r\n\r\n\t\t\t\t\tPart part = new Part(wsdlDoc, m);\r\n\t\t\t\t\tpart.setName(partElem.getAttributeValue(\"name\"));\r\n\r\n\t\t\t\t\tString partXSDElement = partElem.getAttributeValue(\"element\");\r\n\t\t\t\t\tString[] partXSDDef = null;\r\n\t\t\t\t\tif(partXSDElement != null) {\r\n\t\t\t\t\t\tpartXSDDef = wsdlDoc.splitQName(partXSDElement, wsdlDoc.getTargetNamespace());\r\n\t\t\t\t\t\tpart.setNamespace(partXSDDef[0]);\r\n\t\t\t\t\t\tpart.setElementName(partXSDDef[1]);\r\n\t\t\t\t\t\t//part.setElementName(partXSDElement);\r\n\t\t\t\t\t}\telse {\r\n\t\t\t\t\t\tif(partList.size() > 1) log.warn(\"WARNING: Violation of Sect. 2.3.1 of WSDL 1.1 spec: if type is used, only one msg part may be specified.\");\r\n\r\n\t\t\t\t\t\tString partXSDType = partElem.getAttributeValue(\"type\");\r\n\t\t\t\t\t\tpartXSDDef = wsdlDoc.splitQName(partXSDType, wsdlDoc.getTargetNamespace());\r\n\t\t\t\t\t\tpart.setNamespace(partXSDDef[0]);\r\n\t\t\t\t\t\tpart.setTypeName(partXSDDef[1]);\r\n\t\t\t\t\t\t//part.setTypeName(partXSDType);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tm.addPart(part);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tm.register();\r\n\t\t\t}\r\n\r\n\t\t\t/*\r\n\t\t\t<portType name=\"StockQuotePortType\">\r\n\t\t\t\t\t<operation name=\"GetLastTradePrice\">\r\n\t\t\t\t\t\t <input message=\"tns:GetLastTradePriceInput\"/>\r\n\t\t\t\t\t\t <output message=\"tns:GetLastTradePriceOutput\"/>\r\n\t\t\t\t\t</operation>\r\n\t\t\t</portType>\r\n\t\t\t*/\r\n\t\t\tfor(Iterator iter=root.getChildren(\"portType\", NS_WSDL).iterator(); iter.hasNext(); ) {\r\n\t\t\t\tElement ptElem = (Element) iter.next();\r\n\t\t\t\tPortType portType = new PortType(wsdlDoc);\r\n\t\t\t\tportType.setName(ptElem.getAttributeValue(\"name\"));\r\n\t\t\t\twsdlDoc.addPortType(portType);\r\n\r\n\t\t\t\tfor(Iterator iter2 = ptElem.getChildren(\"operation\", NS_WSDL).iterator(); iter2.hasNext(); ) {\r\n\t\t\t\t\tElement opElem = (Element) iter2.next();\r\n\t\t\t\t\tOperation operation = new Operation(wsdlDoc, portType);\r\n\t\t\t\t\toperation.setName(opElem.getAttributeValue(\"name\"));\r\n\t\t\t\t\tportType.addOperation(operation);\r\n\r\n\t\t\t\t\tElement inputElem = opElem.getChild(\"input\", NS_WSDL);\r\n\t\t\t\t\tif(inputElem != null) {\r\n\t\t\t\t\t\tString[] msgDef = wsdlDoc.splitQName(inputElem.getAttributeValue(\"message\"), wsdlDoc.getTargetNamespace());\r\n\t\t\t\t\t\tif(msgDef[0] != null && msgDef[1] != null) {\r\n\t\t\t\t\t\t\tMessage inputMsg = (Message) registry.getObject(Registry.WSDL_MESSAGE, Message.createURI(msgDef[0], msgDef[1]));\r\n\t\t\t\t\t\t\tif(inputMsg == null) throw new WSDLParserException(\"Error: message '\"+msgDef+\"' not found.\");\r\n\t\t\t\t\t\t\toperation.setInput(msgDef[0], msgDef[1], inputMsg);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tElement outputElem = opElem.getChild(\"output\", NS_WSDL);\r\n\t\t\t\t\tif(outputElem != null) {\r\n\t\t\t\t\t\tString[] msgDef = wsdlDoc.splitQName(outputElem.getAttributeValue(\"message\"), wsdlDoc.getTargetNamespace());\r\n\t\t\t\t\t\tif(msgDef[0] != null && msgDef[1] != null) {\r\n\t\t\t\t\t\t\tMessage outputMsg = (Message) registry.getObject(Registry.WSDL_MESSAGE, Message.createURI(msgDef[0], msgDef[1]));\r\n\t\t\t\t\t\t\tif(outputMsg == null) throw new WSDLParserException(\"Error: message '\"+msgDef+\"' not found.\");\r\n\t\t\t\t\t\t\toperation.setOutput(msgDef[0], msgDef[1], outputMsg);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tElement faultElem = opElem.getChild(\"fault\", NS_WSDL);\r\n\t\t\t\t\tif(faultElem != null) {\r\n\t\t\t\t\t\tString[] msgDef = wsdlDoc.splitQName(faultElem.getAttributeValue(\"message\"), wsdlDoc.getTargetNamespace());\r\n\t\t\t\t\t\tif(msgDef[0] != null && msgDef[1] != null) {\r\n\t\t\t\t\t\t\tMessage faultMsg = (Message) registry.getObject(Registry.WSDL_MESSAGE, Message.createURI(msgDef[0], msgDef[1]));\r\n\t\t\t\t\t\t\tif(faultMsg == null) throw new WSDLParserException(\"Error: message '\"+msgDef+\"' not found.\");\r\n\t\t\t\t\t\t\toperation.setFault(msgDef[0], msgDef[1], faultMsg);\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\tportType.register(); // recursivly registers pt and its op's\r\n\t\t\t}\r\n\r\n\t\t\t/*\r\n\t\t\t<binding name=\"StockQuoteSoapBinding\" type=\"tns:StockQuotePortType\">\r\n\t\t\t\t\t<soap:binding style=\"document\" transport=\"http://schemas.xmlsoap.org/soap/http\"/>\r\n\t\t\t\t\t<operation name=\"GetLastTradePrice\">\r\n\t\t\t\t\t\t <soap:operation soapAction=\"http://example.com/GetLastTradePrice\"/>\r\n\t\t\t\t\t\t <input>\r\n\t\t\t\t\t\t\t\t <soap:body use=\"literal\"/>\r\n\t\t\t\t\t\t </input>\r\n\t\t\t\t\t\t <output>\r\n\t\t\t\t\t\t\t\t <soap:body use=\"literal\"/>\r\n\t\t\t\t\t\t </output>\r\n\t\t\t\t\t</operation>\r\n\t\t\t</binding>\r\n\t\t\t*/\r\n\t\t\tfor(Iterator iter=root.getChildren(\"binding\", NS_WSDL).iterator(); iter.hasNext(); ) {\r\n\t\t\t\tElement bindingElem = (Element) iter.next();\r\n\t\t\t\tString bindingName = bindingElem.getAttributeValue(\"name\");\r\n\r\n\t\t\t\tString bdgPortTypeStr = bindingElem.getAttributeValue(\"type\");\r\n\t\t\t\tString[] bdDef = wsdlDoc.splitQName(bdgPortTypeStr, wsdlDoc.getTargetNamespace());\r\n\t\t\t\tPortType bdgPortType = (PortType) registry.getObject(Registry.WSDL_PORTTYPE, PortType.createURI(bdDef[0], bdDef[1]));\r\n\t\t\t\tif(bdgPortType == null) throw new WSDLParserException(\"Error: PortType '\"+bdgPortTypeStr+\"' not found in binding '\"+bindingName+\"'.\");\r\n\r\n\t\t\t\tElement soapBindingElem = (Element) bindingElem.getChild(\"binding\", NS_WSDL_SOAP);\r\n\t\t\t\tif(soapBindingElem == null) {\r\n\t\t\t\t\tlog.warn(\"Skipping this binding, currently we only support SOAP bindings\");\r\n\t\t\t\t\tcontinue; // currently we only support SOAP bindings\r\n\t\t\t\t}\r\n\r\n\t\t\t\tSOAPBinding soapBinding = new SOAPBinding(wsdlDoc, bdgPortType);\r\n\t\t\t\tsoapBinding.setName(bindingName);\r\n\t\t\t\t// TODO: handle as boolean constant\r\n\t\t\t\tsoapBinding.setStyle(\"rpc\".equalsIgnoreCase(soapBindingElem.getAttributeValue(\"style\"))\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t? SOAPBinding.STYLE_RPC : SOAPBinding.STYLE_DOCUMENT);\r\n\t\t\t\tsoapBinding.setTransport(soapBindingElem.getAttributeValue(\"transport\"));\r\n\r\n\t\t\t\t//<operation .... >\r\n\t\t\t\tfor(Iterator iter2 = bindingElem.getChildren(\"operation\", NS_WSDL).iterator(); iter2.hasNext(); ) {\r\n\r\n\t\t\t\t\tElement opBdgElem = (Element) iter2.next();\r\n\t\t\t\t\tSOAPOperationBinding opBdg = new SOAPOperationBinding(wsdlDoc, soapBinding);\r\n\t\t\t\t\tString opName = opBdgElem.getAttributeValue(\"name\");\r\n\r\n\t\t\t\t\tlog.debug(\"parsing SOAP binding for operation: \"+opName);\r\n\r\n\t\t\t\t\tString[] opNameDef = wsdlDoc.splitQName(opName, wsdlDoc.getTargetNamespace());\r\n\t\t\t\t\tOperation op = (Operation) registry.getObject(Registry.WSDL_OPERATION, Operation.createURI(bdgPortType.getName(), opNameDef[0], opNameDef[1]));\r\n\t\t\t\t\tif(op == null) throw new WSDLParserException(\"Error: Operation '\"+opName+\"' not found in binding '\"+bindingName+\"'\");\r\n\t\t\t\t\topBdg.setOperation(op);\r\n\t\t\t\t\tsoapBinding.addOperationBinding(opBdg);\r\n\r\n\r\n\t\t\t\t\t//<soap:operation soapAction=\"uri\"? style=\"rpc|document\"?>?\r\n\t\t\t\t\tElement soapOpBdgElem = (Element) opBdgElem.getChild(\"operation\", NS_WSDL_SOAP);\r\n\t\t\t\t\topBdg.setSoapAction(soapOpBdgElem.getAttributeValue(\"soapAction\"));\r\n\t\t\t\t\t/*\r\n\t\t\t\t\tcf. Sect. 3.4 of WSDL 1.1 spec\r\n\t\t\t\t\t*/\r\n\t\t\t\t\tString soapOpStyleStr = soapOpBdgElem.getAttributeValue(\"style\");\r\n\t\t\t\t\tif(soapOpStyleStr == null)\r\n\t\t\t\t\t\topBdg.setStyle(soapBinding.getStyle()); //\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\topBdg.setStyle(soapOpStyleStr.equalsIgnoreCase(\"rpc\") ? SOAPBinding.STYLE_RPC : SOAPBinding.STYLE_DOCUMENT);\r\n\r\n\t\t\t\t\t//<input>\r\n\t\t\t\t\tElement inputBdgElem = (Element) opBdgElem.getChild(\"input\", NS_WSDL);\r\n\t\t\t\t\tif(inputBdgElem != null) {\r\n\t\t\t\t\t\t// for now, skip header def's...\r\n\t\t\t\t\t\tSOAPBodyDef soapBodyDef = parseSOAPBodyDef(inputBdgElem, wsdlDoc, opBdg);\r\n\t\t\t\t\t\t// enforce WSDL specification\r\n\t\t\t\t\t\tif(!soapBodyDef.isConsistentWithMessageParts(opBdg.getOperation().getInputMsg())) throw new WSDLParserException(\"Error: violation of Sect. 3.5 - binding not consistent with message parts\");\r\n\t\t\t\t\t\topBdg.setInputSOAPBodyDef(soapBodyDef);\r\n\r\n\t\t\t\t\t\t// now parse SOAPHeader defs (if existant)\r\n\t\t\t\t\t\topBdg.setInputSOAPHeaderDefs(parseSOAPHeaderDefs(inputBdgElem, wsdlDoc, opBdg));\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t//<output>\r\n\t\t\t\t\tElement outputBdgElem = (Element) opBdgElem.getChild(\"output\", NS_WSDL);\r\n\t\t\t\t\tif(outputBdgElem != null) {\r\n\t\t\t\t\t\t// for now, skip header def's...\r\n\t\t\t\t\t\tSOAPBodyDef soapBodyDef = parseSOAPBodyDef(inputBdgElem, wsdlDoc, opBdg);\r\n\t\t\t\t\t\t// enforce WSDL specification\r\n\t\t\t\t\t\tif(!soapBodyDef.isConsistentWithMessageParts(opBdg.getOperation().getOutputMsg())) throw new WSDLParserException(\"Error: violation of Sect. 3.5 - binding not consistent with message parts\");\r\n\t\t\t\t\t\topBdg.setOutputSOAPBodyDef(soapBodyDef);\r\n\r\n\t\t\t\t\t\t// now parse SOAPHeader defs (if existant)\r\n\t\t\t\t\t\topBdg.setOutputSOAPHeaderDefs(parseSOAPHeaderDefs(inputBdgElem, wsdlDoc, opBdg));\r\n\t\t\t\t\t}\r\n\r\n\r\n\t\t\t\t}\r\n\t\t\t\twsdlDoc.addBinding(soapBinding);\r\n\t\t\t\tsoapBinding.register();\r\n\t\t\t}\r\n\r\n\t\t\t/*\r\n\t\t\t<service name=\"StockQuoteService\">\r\n\t\t\t\t\t<documentation>My first service</documentation>\r\n\t\t\t\t\t<port name=\"StockQuotePort\" binding=\"tns:StockQuoteBinding\">\r\n\t\t\t\t\t\t <soap:address location=\"http://example.com/stockquote\"/>\r\n\t\t\t\t\t</port>\r\n\t\t\t</service>\r\n\t\t\t*/\r\n\r\n\t\t\tfor(Iterator iter=root.getChildren(\"service\", NS_WSDL).iterator(); iter.hasNext(); ) {\r\n\t\t\t\tElement serviceElem = (Element) iter.next();\r\n\r\n\t\t\t\tService service = new Service(wsdlDoc);\r\n\t\t\t\tservice.setName(serviceElem.getAttributeValue(\"name\"));\r\n\r\n\t\t\t\tfor(Iterator iter2=serviceElem.getChildren(\"port\", NS_WSDL).iterator(); iter2.hasNext(); ) {\r\n\t\t\t\t\tElement portElem = (Element) iter2.next();\r\n\r\n\t\t\t\t\tPort port = new Port(wsdlDoc, service);\r\n\t\t\t\t\tport.setName(portElem.getAttributeValue(\"name\"));\r\n\r\n\t\t\t\t\tString bindingStr = portElem.getAttributeValue(\"binding\");\r\n\t\t\t\t\tString[] bindingNameDef = wsdlDoc.splitQName(bindingStr, wsdlDoc.getTargetNamespace());\r\n\t\t\t\t\tBinding binding = (Binding) registry.getObject(Registry.WSDL_BINDING, Binding.createURI(bindingNameDef[0], bindingNameDef[1]));\r\n\t\t\t\t\tif(binding == null) throw new WSDLParserException(\"Binding '\"+bindingStr+\"' not found in service '\"+service.getName()+\"'\");\r\n\t\t\t\t\tport.setBinding(binding);\r\n\r\n\t\t\t\t\t// currently, only SOAP binding supported\r\n\t\t\t\t\tElement soapAddressElem = portElem.getChild(\"address\", NS_WSDL_SOAP);\r\n\t\t\t\t\tport.setAddress(soapAddressElem.getAttributeValue(\"location\"));\r\n\r\n\t\t\t\t\tport.register();\r\n\t\t\t\t\tservice.addPort(port);\r\n\t\t\t\t}\r\n\t\t\t\twsdlDoc.addService(service);\r\n\t\t\t}\r\n\r\n\t\t\tRegistry.getInstance().addObject(Registry.WSDL_DOC, wsdlDoc);\r\n\t\t\treturn wsdlDoc;\r\n\t\t} catch(Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tthrow new WSDLParserException(e.getMessage());\r\n\t\t}\r\n\t}",
"private void renameOriginalDomainConfig() {\n File domXml = getDASDomainXML();\n movedDomXml = new File(domXml.getParentFile(), \"domain.xml.moved\");\n report(\"moved-domain\", domXml.renameTo(movedDomXml));\n }",
"public String getXMLResultXSD() {\n if (!this.initialized) {\n logInitializationError();\n return null;\n }\n try {\n DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n DocumentBuilder builder = factory.newDocumentBuilder();\n DOMImplementation impl = builder.getDOMImplementation();\n\n Document document = impl.createDocument(null, null, null);\n Element root = document.createElement(\"schema\");\n root.setAttribute(\"xmlns\", \"http://www.w3.org/2001/XMLSchema\");\n document.appendChild(root);\n Element resultElement = document.createElement(\"element\");\n resultElement.setAttribute(\"name\", \"result\");\n root.appendChild(resultElement);\n Element complexTypeElement = document.createElement(\"complexType\");\n resultElement.appendChild(complexTypeElement);\n Element sequenceElement = document.createElement(\"sequence\");\n complexTypeElement.appendChild(sequenceElement);\n\n for (TypeMap tSpec : this.serviceSpec.getTypeSpecs()) {\n Element element = document.createElement(\"element\");\n element.setAttribute(\"name\", tSpec.getOutputTag());\n element.setAttribute(\"maxOccurs\", \"unbounded\");\n element.setAttribute(\"minOccurs\", \"0\");\n\n Element complexType = document.createElement(\"complexType\");\n element.appendChild(complexType);\n\n Element simpleContent = document.createElement(\"simpleContent\");\n complexType.appendChild(simpleContent);\n\n Element extension = document.createElement(\"extension\");\n extension.setAttribute(\"base\", \"string\");\n simpleContent.appendChild(extension);\n\n for (Output output : tSpec.getOutputs()) {\n Element attributeElement = document.createElement(\"attribute\");\n extension.appendChild(attributeElement);\n attributeElement.setAttribute(\"name\", output.getAttribute());\n attributeElement.setAttribute(\"type\", \"string\");\n attributeElement.setAttribute(\"use\", \"optional\");\n }\n sequenceElement.appendChild(element);\n }\n\n DOMSource source = new DOMSource(document);\n TransformerFactory tFactory = TransformerFactory.newInstance();\n Transformer transformer = tFactory.newTransformer();\n transformer.setOutputProperty(OutputKeys.METHOD, \"xml\");\n transformer.setOutputProperty(\"{http://xml.apache.org/xslt}indent-amount\", \"4\");\n transformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\n\n StringWriter stringWriter = new StringWriter();\n StreamResult streamResult = new StreamResult(stringWriter);\n transformer.transform(source, streamResult);\n\n return stringWriter.toString();\n } catch (TransformerException e) {\n getLogger().log(Level.SEVERE, \"\", e);\n } catch (ParserConfigurationException e) {\n getLogger().log(Level.SEVERE, \"\", e);\n }\n return null;\n }",
"public static Document newDocument(final File file, boolean useNamespaces) throws IOException, XMLException {\n\t\tfinal InputStream in = new FileInputStream(file);\n\t\treturn XMLHelper.parse(in, useNamespaces);\n\t}",
"public static Document getDocument(File file, boolean namespaceAware) {\r\n Document document = null;\r\n try {\r\n // parse an XML document into a DOM tree\r\n DocumentBuilderFactory documentFactory = DocumentBuilderFactory\r\n .newInstance();\r\n documentFactory.setNamespaceAware(namespaceAware);\r\n // documentFactory.setAttribute(\"http://java.sun.com/xml/jaxp/properties/schemaLanguage\",\r\n // \"http://www.w3.org/2001/XMLSchema\");\r\n DocumentBuilder parser = documentFactory.newDocumentBuilder();\r\n\r\n document = parser.parse(file);\r\n } catch (Exception e) {\r\n log.error(\"getDocument error: \", e);\r\n }\r\n return document;\r\n }",
"public void setUpNewXMLFile(File file) {\n\t\tPrintWriter pw = null;\n\t\ttry {\n\t\t\tpw = new PrintWriter(file, \"UTF-8\");\n\t\t\tpw.write(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?>\\n\");\n\t\t\tpw.write(\"<\" + defaultDocumentElement + \">\\n\");\n\t\t\tpw.write(\"</\" + defaultDocumentElement + \">\\n\");\n\t\t\tpw.close();\n\t\t} catch(Exception e) {\n\t\t\tSystem.out.println(\"Error creating new XML File.\");\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tpw.close();\n\t\t\t} catch(Exception e) {\n\t\t\t\t//Seems like it was already closed.\n\t\t\t}\n\t\t}\n\t}",
"public void generateTypesForXSD(FaultMetaData fmd) throws IOException\n {\n SchemaCreatorIntf sc = javaToXSD.getSchemaCreator();\n //Look at the features\n QName xmlType = fmd.getXmlType();\n if(xmlType.getNamespaceURI().equals(Constants.NS_SCHEMA_XSD) == false)\n generateType(xmlType ,fmd.getJavaType(), null);\n }",
"Rule XsdNamespace() {\n return Sequence(\n \"xsd_namespace\",\n Literal(),\n actions.pushXsdNamespaceNode());\n }",
"private void marshallDocument(Virtualnetworkmanager root, PrintStream outputFile) throws JAXBException, SAXException {\n\t\t\n\t\t// Creating the JAXB context to perform a validation \n\t\tJAXBContext jc;\n\t\t// Creating an instance of the XML Schema \n\t\tSchema schema;\n\t\t\t\t\n\t\ttry {\n\t\t\tjc = JAXBContext.newInstance(PACKAGE);\n\t\t\tschema = SchemaFactory.newInstance(W3C_XML_SCHEMA_NS_URI).newSchema(new File(XSD_NAME));\n\t\t}\n\t\tcatch(IllegalArgumentException e) {\n\t\t\tSystem.err.println(\"Error! No implementation of the schema language is available\");\n\t\t\tthrow e;\n\t\t}\n\t\tcatch(NullPointerException e) {\n\t\t\tSystem.err.println(\"Error! The instance of the schema or the file of the schema is not well created!\\n\");\n\t\t\tthrow new SAXException(\"The schema file is null!\");\n\t\t}\n\t\t\n\t\t// Creating the XML document \t\t\n\t\tMarshaller m = jc.createMarshaller();\n\t\tm.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);\n\t\tm.setProperty(Marshaller.JAXB_SCHEMA_LOCATION, XSD_LOCATION+\" \"+XSD_NAME);\n\t\tm.setSchema(schema);\n\t\tm.marshal(root, outputFile);\n\t\t\n\t}",
"String getTargetNamespace();",
"public Source resolveByNS(String tartgetNamespace)\n throws TransformerException;",
"private boolean ensureXSDTypeNamespaceMappings(Object obj) {\r\n\t\t\r\n\t\tString targetNamespace = null;\r\n\t\t\r\n\t\tif (obj instanceof XSDNamedComponent ) {\r\n\t\t\tXSDNamedComponent namedComponent = (XSDNamedComponent) obj; \r\n\t\t\ttargetNamespace = namedComponent.getTargetNamespace();\r\n\t\t}\r\n\t\t\r\n\t\tif (targetNamespace == null) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\t\r\n\t\t// Now check if the target namespace has a prefix mappings.\r\n\t\tString prefix = BPELUtils.getNamespacePrefix (modelObject, targetNamespace);\r\n\t\tif (prefix != null) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\t\r\n\t\t// We have to map the namespace to a prefix. \r\n\t\tNamespaceMappingDialog dialog = new NamespaceMappingDialog(getShell(),modelObject);\r\n\t\tdialog.setNamespace( targetNamespace );\r\n\t\t\r\n\t\tif (dialog.open() == Window.CANCEL) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\t// define the prefix\r\n\t\tBPELUtils.setPrefix( BPELUtils.getProcess(modelObject), targetNamespace, dialog.getPrefix()); \t\t\r\n\t\t\r\n\t\treturn true;\r\n\t}",
"public void setXsdSchema(final File xsdFile) throws InvalidXsdException {\n\t\ttry {\n\t\t\tsetXsdSchema(new FileInputStream(xsdFile));\n\t\t} catch (final FileNotFoundException e) {\n\t\t\tthrow new InvalidXsdException(\"The specified xsd file '\" + xsdFile\n\t\t\t\t\t+ \"' could not be found.\", e);\n\t\t}\n\t}",
"public void dumpAsXmlFile(String pFileName);",
"private void parseWSCTaxonomyFile(String fileName) {\n\t\ttry {\n\t \tFile fXmlFile = new File(fileName);\n\t \tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n\t \tDocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n\t \tDocument doc = dBuilder.parse(fXmlFile);\n\t \tElement taxonomy = (Element) doc.getChildNodes().item(0);\n\n\t \tprocessTaxonomyChildren(null, taxonomy.getChildNodes());\n\t\t}\n\n\t\tcatch (ParserConfigurationException e) {\n System.out.println(\"Taxonomy file parsing failed...\");\n\t\t}\n\t\tcatch (SAXException e) {\n System.out.println(\"Taxonomy file parsing failed...\");\n\t\t}\n\t\tcatch (IOException e) {\n System.out.println(\"Taxonomy file parsing failed...\");\n\t\t}\n\t}",
"public void testSchemaImport2() throws Exception{\r\n File file = new File(Resources.asURI(\"importBase.xsd\"));\r\n //create a DOM document\r\n DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();\r\n documentBuilderFactory.setNamespaceAware(true);\r\n Document doc = documentBuilderFactory.newDocumentBuilder().\r\n parse(file.toURL().toString());\r\n\r\n XmlSchemaCollection schemaCol = new XmlSchemaCollection();\r\n XmlSchema schema = schemaCol.read(doc,file.toURL().toString(),null);\r\n assertNotNull(schema);\r\n\r\n }",
"public void setPackageNamespaceMap(Map<String,String> map)\n {\n this.packageNamespaceMap = map;\n this.javaToXSD.setPackageNamespaceMap(map);\n }",
"private void restoreOriginalDomainConfig() {\n getDASDomainXML().delete();\n report(\"restored-domain\", movedDomXml.renameTo(getDASDomainXML()));\n }",
"private boolean inputXSD(String xsdName, String xmlName, String outputFileName) {\n ArrayList<String> wholeFile = this.readReturnFileContents(xsdName);\n ArrayList<Integer> match = new ArrayList<Integer>();\n ArrayList<Map> fieldsAttribs = new ArrayList<>();\n match.add(1);\n for(String s:wholeFile){\n if(s.trim().length() != 0){\n match = this.parseXSD(s.trim(), match);\n if(match.get(match.size()-1)==8)\n return false;\n if(match.size()>2){\n if(match.get(match.size()-1) == 4){\n Map tMap = this.getTableFieldsAttribs(s);\n boolean flag = true;\n for (Map cMap: fieldsAttribs){\n if(cMap.get(\"name\").toString().equals(tMap.get(\"name\").toString())){\n flag = false;\n System.out.println(\"***Error- \"+ tMap + \" \\n this element is ignored due to duplicate name attribute in xsd file\");\n }\n }\n if(flag)\n fieldsAttribs.add(tMap);\n }\n }\n }\n\n }\n return this.inputXML(xmlName, fieldsAttribs, outputFileName);\n }",
"void xsetNamespace(org.apache.xmlbeans.XmlNMTOKEN namespace);",
"public void transformToSecondXml();",
"public void setXsd(java.lang.String xsd)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(XSD$2, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(XSD$2);\n }\n target.setStringValue(xsd);\n }\n }",
"private String convertXMLFileToString(File file)\n {\n try{\n DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();\n InputStream inputStream = new FileInputStream(file);\n org.w3c.dom.Document doc = documentBuilderFactory.newDocumentBuilder().parse(inputStream);\n StringWriter stw = new StringWriter();\n Transformer serializer = TransformerFactory.newInstance().newTransformer();\n serializer.transform(new DOMSource(doc), new StreamResult(stw));\n return stw.toString();\n }\n catch (Exception e) {\n \tnew ErrorBox(\"Error Deserializing\", \"XML file could not be deserialized\");\n }\n return null;\n }",
"abstract XML addNamespace(Namespace ns);",
"private void parseWSCTaxonomyFile(String fileName) {\n\t\ttry {\n\t\t\tFile fXmlFile = new File(fileName);\n\t\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n\t\t\tDocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n\t\t\tDocument doc = dBuilder.parse(fXmlFile);\n\t\t\tNodeList taxonomyRoots = doc.getChildNodes();\n\n\t\t\tprocessTaxonomyChildren(null, taxonomyRoots);\n\t\t}\n\n\t\tcatch (ParserConfigurationException e) {\n\t\t\tSystem.err.println(\"Taxonomy file parsing failed...\");\n\t\t}\n\t\tcatch (SAXException e) {\n\t\t\tSystem.err.println(\"Taxonomy file parsing failed...\");\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\tSystem.err.println(\"Taxonomy file parsing failed...\");\n\t\t}\n\t}",
"public FixedSchemaOutputResolver(File outputFile) {\n this.outputFile = requireNonNull(outputFile, \"outputFile\");\n }",
"void xsetTarget(org.apache.xmlbeans.XmlString target);",
"public void createXml(String fileName) { \n\t\tElement root = this.document.createElement(\"TSETInfoTables\"); \n\t\tthis.document.appendChild(root); \n\t\tElement metaDB = this.document.createElement(\"metaDB\"); \n\t\tElement table = this.document.createElement(\"table\"); \n\t\t\n\t\tElement column = this.document.createElement(\"column\");\n\t\tElement columnName = this.document.createElement(\"columnName\");\n\t\tcolumnName.appendChild(this.document.createTextNode(\"test\")); \n\t\tcolumn.appendChild(columnName); \n\t\tElement columnType = this.document.createElement(\"columnType\"); \n\t\tcolumnType.appendChild(this.document.createTextNode(\"INTEGER\")); \n\t\tcolumn.appendChild(columnType); \n\t\t\n\t\ttable.appendChild(column);\n\t\tmetaDB.appendChild(table);\n\t\troot.appendChild(metaDB); \n\t\t\n\t\tTransformerFactory tf = TransformerFactory.newInstance(); \n\t\ttry { \n\t\t\tTransformer transformer = tf.newTransformer(); \n\t\t\tDOMSource source = new DOMSource(document); \n\t\t\ttransformer.setOutputProperty(OutputKeys.ENCODING, \"gb2312\"); \n\t\t\ttransformer.setOutputProperty(OutputKeys.INDENT, \"yes\"); \n\t\t\tPrintWriter pw = new PrintWriter(new FileOutputStream(fileName)); \n\t\t\tStreamResult result = new StreamResult(pw); \n\t\t\ttransformer.transform(source, result); \n\t\t\tlogger.info(\"Generate XML file success!\");\n\t\t} catch (TransformerConfigurationException e) { \n\t\t\tlogger.error(e.getMessage());\n\t\t} catch (IllegalArgumentException e) { \n\t\t\tlogger.error(e.getMessage());\n\t\t} catch (FileNotFoundException e) { \n\t\t\tlogger.error(e.getMessage());\n\t\t} catch (TransformerException e) { \n\t\t\tlogger.error(e.getMessage());\n\t\t} \n\t}",
"private void upgradeWsdlDocumentIfNeeded(InputSource source) {\n DocumentBuilder documentParser = XmlUtil.getDocumentBuilder();\n\n // install our problem handler as document parser's error handler\n documentParser.setErrorHandler(problemHandler.asSaxErrorHandler());\n\n // parse content\n Document document;\n try {\n document = documentParser.parse(source);\n // halt on parse errors\n if (problemHandler.getProblemCount() > 0)\n return;\n }\n catch (IOException e) {\n Problem problem = new Problem(Problem.LEVEL_ERROR, \"document is not readable\", e);\n problem.setResource(latestImportURI);\n problemHandler.add(problem);\n return;\n }\n catch (SAXException e) {\n Problem problem = new Problem(Problem.LEVEL_ERROR, \"document contains invalid xml\", e);\n problem.setResource(latestImportURI);\n problemHandler.add(problem);\n return;\n }\n finally {\n // reset error handling behavior\n documentParser.setErrorHandler(null);\n }\n\n // check whether the wsdl document requires upgrading\n if (hasUpgradableElements(document)) {\n try {\n // create wsdl upgrader\n Transformer wsdlUpgrader = getWsdlUpgradeTemplates().newTransformer();\n\n // install our problem handler as transformer's error listener\n wsdlUpgrader.setErrorListener(problemHandler.asTraxErrorListener());\n\n // upgrade into memory stream\n ByteArrayOutputStream resultStream = new ByteArrayOutputStream();\n wsdlUpgrader.transform(new DOMSource(document), new StreamResult(resultStream));\n\n // replace existing source with upgraded document\n source.setByteStream(new ByteArrayInputStream(resultStream.toByteArray()));\n\n log.debug(\"upgraded wsdl document: \" + latestImportURI);\n }\n catch (TransformerException e) {\n Problem problem = new Problem(Problem.LEVEL_ERROR, \"wsdl upgrade failed\", e);\n problem.setResource(latestImportURI);\n problemHandler.add(problem);\n }\n }\n else {\n // if the source is a stream, reset it\n InputStream sourceStream = source.getByteStream();\n if (sourceStream != null) {\n try {\n sourceStream.reset();\n }\n catch (IOException e) {\n log.error(\"could not reset source stream: \" + latestImportURI, e);\n }\n }\n }\n }",
"@Override\n\tpublic void domove(String filename) {\n\n\t\tFile starfile = new File(\"D://FileRec/\" + filename);\n\n\t\tFile endDirection = new File(\"D://FileRec//docx\");\n\t\tif (!endDirection.exists()) {\n\t\t\tendDirection.mkdirs();\n\t\t}\n\n\t\tFile endfile = new File(endDirection + File.separator + starfile.getName());\n\n\t\ttry {\n\t\t\tif (starfile.renameTo(endfile)) {\n\t\t\t\tSystem.out.println(\"转移成功\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"转移失败,或许是重名\");\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"文件移动出现异常\");\n\t\t}\n\t}",
"private static boolean validate(JAXBContext jaxbCongtext, File file, URL xsdUrl) {\n SchemaFactory schemaFactory = null;\n Schema schema = null;\n Source xmlFile = new StreamSource(file);\n try {\n schemaFactory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);\n schema = schemaFactory.newSchema(xsdUrl);\n Validator validator = schema.newValidator();\n DocumentBuilderFactory db = newSecuDocBuilderFactory();\n db.setNamespaceAware(true);\n\n DocumentBuilder builder = db.newDocumentBuilder();\n Document doc = builder.parse(file);\n\n DOMSource source = new DOMSource(doc);\n DOMResult result = new DOMResult();\n\n validator.validate(source, result);\n LOGGER.debug(xmlFile.getSystemId() + \" is valid\");\n } catch(Exception ex) {\n LOGGER.error(xmlFile.getSystemId() + \" is NOT valid\", ex);\n return false;\n }\n return true;\n }",
"public static String transformTemplateToOntology(String templateToTransform, String targetNamespace, boolean capitalize) {\n String result = transformTemplateToOntology(templateToTransform, capitalize);\n result = result.replace(\"dbpedia.org\", targetNamespace);\n return result;\n }",
"void setNamespace(java.lang.String namespace);",
"public static Document createXsd(Principal principal, CoalesceEntityTemplate template)\n throws ParserConfigurationException\n {\n CoalesceEntity entity = template.createNewEntity();\n\n DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n factory.setNamespaceAware(true);\n\n Document doc = factory.newDocumentBuilder().newDocument();\n\n Element element = doc.createElementNS(NS_XML_URI, \"schema\");\n element.setPrefix(NS_XML);\n doc.appendChild(element);\n\n String nameSpace = createNameSpace(template.getClassName(), template.getName());\n\n element.setAttribute(\"targetNamespace\", nameSpace);\n element.setAttribute(\"xmlns:\" + NS_TARGET, nameSpace);\n element.setAttribute(\"xmlns:jxb\", \"http://java.sun.com/xml/ns/jaxb\");\n element.setAttribute(\"elementFormDefault\", \"qualified\");\n element.setAttribute(\"attributeFormDefault\", \"qualified\");\n element.setAttribute(\"jxb:version\", \"2.1\");\n element.setAttribute(\"version\", template.getVersion());\n\n createComplexType(principal, doc, entity);\n\n try\n {\n // TODO Something with how the Document is created prevents it from\n // being used as a DOMSource. Serializing it and Deserializing it\n // appears to resolve the issue at a performance hit. It would be\n // nice to remove this step.\n return XmlHelper.loadXmlFrom(XmlHelper.formatXml(doc));\n }\n catch (SAXException | IOException e)\n {\n throw new ParserConfigurationException(e.getMessage());\n }\n\n }",
"public void setDTDHandler(DTDHandler handler)\n {\n if (handler == null)\n {\n handler = base;\n }\n this.dtdHandler = handler;\n }",
"private static Document parse(final InputStream in, boolean useNamespaces) throws IOException, XMLException{\n\t\ttry{\n\t\t\tfinal DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n\t\t\tfactory.setNamespaceAware(true);\n\t\t\tfinal DocumentBuilder builder = factory.newDocumentBuilder();\n\t\t\tfinal Document doc = builder.parse(in);\n\t\t\t//\tfactory.setAttribute(name, value)\n\t\t\t//\tfactory.setSchema(Schema)\n\t\t\tfactory.setCoalescing(true);\n\t\t\tfactory.setExpandEntityReferences(true);\n\t\t\tfactory.setIgnoringComments(false);\n\t\t\tif(useNamespaces) factory.setNamespaceAware(true); // WORKAROUND per xalan!\n\t\t\tfactory.setXIncludeAware(true);\n\t\t\tfactory.setValidating(false);\n\t\t\tfactory.setIgnoringComments(true);\n\t\t\t// aggiungo alcune feature per impedire il tentativo di caricamento del DTD da remoto, al fine di validazione\n\t\t\tfactory.setFeature(\"http://xml.org/sax/features/namespaces\", false);\n\t\t\tfactory.setFeature(\"http://xml.org/sax/features/validation\", false);\n\t\t\tfactory.setFeature(\"http://apache.org/xml/features/nonvalidating/load-dtd-grammar\", false);\n\t\t\tfactory.setFeature(\"http://apache.org/xml/features/nonvalidating/load-external-dtd\", false);\n\t\t\tin.close();\n\t\t\treturn doc;\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t\tthrow new XMLException(e);\n\t\t}\n\t}",
"public void addDTD(ResourceLocation dtd) throws BuildException {\n if (isReference()) {\n throw noChildrenAllowed();\n }\n\n getElements().addElement(dtd);\n setChecked(false);\n }",
"public XmlTransformer(Package pakkage, ImmutableMap<String, String> schemaNamesToFilenames) {\n try {\n this.jaxbContext = initJaxbContext(pakkage, schemaNamesToFilenames.keySet());\n this.schema = loadXmlSchemas(ImmutableList.copyOf(schemaNamesToFilenames.values()));\n } catch (JAXBException e) {\n throw new RuntimeException(e);\n }\n }",
"public void transform(Node source, String outputFileName) throws Exception {\n FileOutputStream outFS = new FileOutputStream(outputFileName);\n Result result = new StreamResult(outFS);\n myTransformer.transform(new DOMSource(source), result);\n outFS.close();\n }",
"public org.apache.xmlbeans.XmlString xgetXsd()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(XSD$2, 0);\n return target;\n }\n }",
"public static Element replaceElementNS(@Nonnull final Element element, @Nullable final String namespaceURI, @Nonnull final String qualifiedName) {\n\t\tfinal Document document = element.getOwnerDocument(); //get the owner document\n\t\tfinal Element newElement = document.createElementNS(namespaceURI, qualifiedName); //create the new element\n\t\tappendClonedAttributeNodesNS(newElement, element); //clone the attributes TODO testing\n\t\tappendClonedChildNodes(newElement, element, true); //deep-clone the child nodes of the element and add them to the new element\n\t\tfinal Node parentNode = element.getParentNode(); //get the parent node, which we'll need for the replacement\n\t\tparentNode.replaceChild(newElement, element); //replace the old element with the new one\n\t\treturn newElement; //return the element we created\n\t}",
"public WSDL(String targetNamespace) {\r\n\t\tthis(targetNamespace, \"\");\r\n\t}",
"public void setNamespace(String namespace) {\n\t\t\r\n\t}",
"public String setXmlSchema(String content) {\n\t\ttry(StringReader reader = new StringReader(content)) {\n\t\t\tDocument doc = null;\n\t\t\ttry {\n\t\t\t\tSAXBuilder sax = new SAXBuilder();\n\t\t\t\tdoc = sax.build(reader);\n\t\t\t} catch (JDOMException | IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tif(doc != null) {\n\t\t\t\tsetXmlSchema(doc);\n\n\t\t\t\ttry(StringWriter stringWriter = new StringWriter()) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tXMLOutputter xmlOutputter = new XMLOutputter(Format.getPrettyFormat());\n\t\t\t\t\t\txmlOutputter.output(doc, stringWriter);\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tstringWriter.flush();\n\t\t\t\t\tString result = stringWriter.toString();\n\t\t\t\t\treturn result;\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public String getTargetNamespace() {\n return _targetNamespace;\n }",
"public static void main(String[] args) throws FileNotFoundException,\n\t\t\tIOException, SAXException, TransformerConfigurationException, TransformerFactoryConfigurationError {\n\t\t\n\t\tDocument targetDocument = XMLUtil.getDocument(new FileInputStream(mtasResponse));\n\t\t//System.out.println(XMLUtil.toString(targetDocument));\n\t\tDOMSource xmlSource = new DOMSource(targetDocument);\n\t\tDOMResult tResult = new DOMResult();\n\t\ttry {\n\t\t\tInputStream inputStream = XSLTTransformerFactory.class.getResourceAsStream(xsltFileName);\n\t\t\tTransformer transformer = XSLTTransformerFactory.getTransformer(inputStream);\n\t\t\t\n Map<String, Document> docs = new HashMap<String, Document>();\n \n docs.put(\"sourceDocument\", targetDocument); \n System.out.println(docs.size());\n transformer.setURIResolver(new DocumentSourceResolver(docs));\n \n\t\t\ttransformer.transform(xmlSource, tResult);\n\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\n\t\tDocument transformedResponse = (Document) tResult.getNode();\n\t\tSystem.out.println(XMLUtil.toString(transformedResponse));\n\t}",
"public String createNamespace(IProject p, String ns) throws ThinklabException {\r\n \t\t\t\t\r\n \t\tFile ret = new File(getSourceDirectory() + File.separator + \r\n \t\t\t\t\t\t\tns.replace('.', File.separatorChar) + \".tql\");\r\n \t\tFile dir = new File(MiscUtilities.getFilePath(ret.toString()));\r\n \t\t\r\n \t\ttry {\r\n \t\t\tdir.mkdirs();\r\n \t\t\tPrintWriter out = new PrintWriter(ret);\r\n \t\t\tout.println(\"namespace \" + ns + \";\\n\");\r\n \t\t\tout.close();\r\n \t\t} catch (Exception e) {\r\n \t\t\tthrow new ThinklabClientException(e);\r\n \t\t}\r\n \t\t\r\n \t\treturn getSourceFolderNames().iterator().next() + File.separator + \r\n \t\t\t\tns.replace('.', File.separatorChar) + \".tql\";\r\n \t}",
"private static java.lang.String generatePrefix(java.lang.String namespace) {\n if(namespace.equals(\"http://dto.thirdsdk.api.pms.cms.hikvision.com/xsd\")){\n return \"ns1\";\n }\n return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();\n }",
"public static void addEmployeeToXMLFile(Employee ee) {\n try {\n DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder docBuilder = docFactory.newDocumentBuilder();\n Document doc = docBuilder.newDocument();\n\n Element rootElement;\n File xmlFile = new File(\"src/task2/employee.xml\");\n\n if (xmlFile.isFile()) {\n doc = docBuilder.parse(new FileInputStream(xmlFile));\n doc.getDocumentElement().normalize();\n rootElement = doc.getDocumentElement();\n } else {\n rootElement = doc.createElement(\"department\");\n doc.appendChild(rootElement);\n }\n\n Element employee = doc.createElement(\"employee\");\n rootElement.appendChild(employee);\n\n Element id = doc.createElement(\"id\");\n id.appendChild(doc.createTextNode(ee.getId()));\n employee.appendChild(id);\n\n Element name = doc.createElement(\"name\");\n name.appendChild(doc.createTextNode(ee.getName()));\n employee.appendChild(name);\n\n Element sex = doc.createElement(\"sex\");\n sex.appendChild(doc.createTextNode(Integer.toString(ee.sex)));\n employee.appendChild(sex);\n\n Element dateOfBirth = doc.createElement(\"dateOfBirth\");\n dateOfBirth.appendChild(doc.createTextNode(ee.dateOfBirth));\n employee.appendChild(dateOfBirth);\n\n Element salary = doc.createElement(\"salary\");\n salary.appendChild(doc.createTextNode(Double.toString(ee.salary)));\n employee.appendChild(salary);\n\n Element address = doc.createElement(\"address\");\n address.appendChild(doc.createTextNode(ee.address));\n employee.appendChild(address);\n\n Element idDepartment = doc.createElement(\"idDepartment\");\n idDepartment.appendChild(doc.createTextNode(ee.idDepartment));\n employee.appendChild(idDepartment);\n\n TransformerFactory transformerFactory = TransformerFactory.newInstance();\n Transformer transformer = transformerFactory.newTransformer();\n DOMSource source = new DOMSource(doc);\n StreamResult result = new StreamResult(xmlFile);\n transformer.transform(source, result);\n System.out.println(\"File saved\");\n\n } catch (ParserConfigurationException | SAXException | IOException | DOMException | TransformerException e) {\n System.out.println(\"Error: \" + e.getMessage());\n }\n }",
"public String getTargetNamespace()\r\n {\r\n return targetNamespace;\r\n }",
"UdtType createUdtType();",
"void setNamespace(String namespace);",
"public abstract String getLegacyDeltemplateNamespace();",
"@Override\r\n public DTextArea setDsfNamespace(DNamespace namespace){\r\n \tsuper.setDsfNamespace(namespace) ;\r\n \treturn this ;\r\n }",
"public static void loadStudRecsFromFile(File file) {\r\n\t\ttry {\r\n\t\t\tJAXBContext context = JAXBContext\r\n\t\t\t\t\t.newInstance(StudRecsWrapper.class);\r\n\t\t\tUnmarshaller um = context.createUnmarshaller();\r\n\t\t\t\r\n\t\t\tStudRecsWrapper wrapper = (StudRecsWrapper) um.unmarshal(file);\r\n\t\t\t\r\n\t\t\tstudRecs.clear();\r\n\t\t\tstudRecs.addAll(wrapper.getStudRecs());\r\n\t\t\tSystem.out.println(\"File loaded!\");\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(\"Cannot load file, does it exist?\");\r\n\t\t}\r\n\t}",
"public String changeXMLName(String content, String taskName, String tnsName) throws CoreException {\n DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n Document dom;\n String xmlString = null;\n try {\n dbf.setFeature(XMLConstants.FEATURE_SECURE_PROCESSING, true);\n DocumentBuilder db = dbf.newDocumentBuilder();\n InputSource is = new InputSource(new StringReader(content));\n dom = db.parse(is);\n NodeList taskList = dom.getElementsByTagName(HumantaskEditorConstants.QUALIFIED_TASK_NODE_NAME);\n NodeList tnsList = dom\n .getElementsByTagName(HumantaskEditorConstants.QUALIFIED_HUMAN_INTERACTIONS_NODE_NAME);\n tnsList.item(0).getAttributes().getNamedItem(HumantaskEditorConstants.XMLNS_TNS).setNodeValue(tnsName);\n tnsList.item(0).getAttributes().getNamedItem(HumantaskEditorConstants.TARGET_NAMESPACE)\n .setNodeValue(tnsName);\n for (int taskIndex = 0; taskIndex < taskList.getLength(); taskIndex++) {\n Node task = taskList.item(taskIndex);\n task.getAttributes().getNamedItem(HumantaskEditorConstants.TASK_NAME_ATTRIBUTE).setNodeValue(taskName);\n }\n TransformerFactory transfactory = TransformerFactory.newInstance();\n Transformer transformer = transfactory.newTransformer();\n transformer.setOutputProperty(OutputKeys.METHOD, HumantaskEditorConstants.XML_OUTPUT_METHOD);\n transformer.setOutputProperty(OutputKeys.INDENT, HumantaskEditorConstants.XML_INDENT_YES);\n transformer.setOutputProperty(HumantaskEditorConstants.XML_OUTPUT_PROPERTY_NAME, Integer.toString(2));\n\n StringWriter stringWriter = new StringWriter();\n StreamResult result = new StreamResult(stringWriter);\n DOMSource source = new DOMSource(dom.getDocumentElement());\n\n transformer.transform(source, result);\n xmlString = stringWriter.toString();\n } catch (ParserConfigurationException | SAXException pce) {\n throwCoreException(HumantaskEditorConstants.EXCEPTION_OCCURED_IN_PARSING_XML, pce);\n } catch (IOException ioe) {\n throwCoreException(HumantaskEditorConstants.EXCEPTION_OCCURED_IN_FILE_IO, ioe);\n } catch (TransformerConfigurationException e) {\n throwCoreException(HumantaskEditorConstants.EXCEPTION_OCCURED_IN_TRANSFORM_CONFIG, e);\n } catch (TransformerException e) {\n throwCoreException(HumantaskEditorConstants.EXCEPTION_OCCURED_IN_TRANSFORMING_XML_TO_TEXT, e);\n }\n return xmlString;\n }",
"public SLDStyle(String filename) {\n \n File f = new File(filename);\n setInput(f);\n readXML();\n }",
"public static void addToXML(CD c)\n\t\t\tthrows TransformerException, FileNotFoundException, SAXException, IOException {\n\t\ttry {\n\t\t\tDocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();\n\t\t\tDocumentBuilder docBuilder = docFactory.newDocumentBuilder();\n\n\t\t\t// root elements\n\t\t\tDocument doc = docBuilder.newDocument();\n\t\t\tElement rootElement;\n\t\t\tString filePath = \"src/Part2_Ex3/CD.xml\";\n\t\t\tFile xmlFile = new File(filePath);\n\n\t\t\tif (xmlFile.isFile()) {\n\t\t\t\tdoc = docBuilder.parse(new FileInputStream(xmlFile));\n\t\t\t\tdoc.getDocumentElement().normalize();\n\t\t\t\trootElement = doc.getDocumentElement();\n\t\t\t} else {\n\t\t\t\trootElement = doc.createElement(\"CDs\");\n\t\t\t\tdoc.appendChild(rootElement);\n\t\t\t}\n\n\t\t\tElement cd = doc.createElement(\"CD\");\n\t\t\trootElement.appendChild(cd);\n\n\t\t\t// id element\n\t\t\tElement id = doc.createElement(\"id\");\n\t\t\tid.appendChild(doc.createTextNode(Integer.toString(c.getId())));\n\t\t\tcd.appendChild(id);\n\t\t\t\n\t\t\t// name\n\t\t\tElement name = doc.createElement(\"name\");\n\t\t\tname.appendChild(doc.createTextNode(c.getName()));\n\t\t\tcd.appendChild(name);\n\n\t\t\t//singer\n\t\t\tElement singer = doc.createElement(\"singer\");\n\t\t\tsinger.appendChild((doc.createTextNode(c.getSinger())));\n\t\t\tcd.appendChild(singer);\n\n\t\t\t// number songs\n\t\t\tElement numbersongs = doc.createElement(\"numbersongs\");\n\t\t\tnumbersongs.appendChild(doc.createTextNode(Integer.toString(c.getNumOfSong())));\n\t\t\tcd.appendChild(numbersongs);\n\t\t\t\n\t\t\t// price\n\t\t\tElement price = doc.createElement(\"price\");\n\t\t\tprice.appendChild(doc.createTextNode(Double.toString(c.getPrice())));\n\t\t\tcd.appendChild(price);\n\t\t\t\n\t\t\t// write the content into xml file\n\t\t\tTransformerFactory transformerFactory = TransformerFactory.newInstance();\n\t\t\tTransformer transformer = transformerFactory.newTransformer();\n\t\t\tDOMSource source = new DOMSource(doc);\n\t\t\tStreamResult result = new StreamResult(xmlFile);\n\t\t\ttransformer.transform(source, result);\n\n\t\t\tSystem.out.println(\"Add completed !\");\n\n\t\t} catch (ParserConfigurationException pce) {\n\t\t\tSystem.out.println(\"Cannot insert new CD. Error: \" + pce.getMessage());\n\t\t}\n\t}",
"public static String transformTemplateToClass(String templateToTransform, String targetNamespace) {\n\n String transformedTemplate = templateToTransform;\n\n\n if (targetNamespace != null) {\n // check whether entity is already transformed to target targetNamespace\n String namespaceDomain = ResourceBundle.getBundle(\"config\").getString(\"targetnamespace\");\n if (!templateToTransform.contains(namespaceDomain) && templateToTransform.contains(\"dbpedia.org\")) {\n // transform into target targetNamespace\n transformedTemplate = templateToTransform.replaceAll(\"dbpedia.org\", targetNamespace);\n }\n }\n\n // transform into class\n transformedTemplate = transformedTemplate.replace(\"/resource/Template:\", \"/class/\");\n\n // remove infobox information\n transformedTemplate = transformedTemplate.replace(\"infobox_\", \"\");\n transformedTemplate = transformedTemplate.replace(\"_infobox\", \"\");\n transformedTemplate = transformedTemplate.replace(\"Infobox_\", \"\");\n transformedTemplate = transformedTemplate.replace(\"_Infobox\", \"\");\n\n // transform first character of class name to uppercase\n transformedTemplate = transformedTemplate.substring(0, transformedTemplate.indexOf(\"/class/\") + 7)\n + transformedTemplate.substring(transformedTemplate.indexOf(\"/class/\") + 7).substring(0, 1).toUpperCase()\n + transformedTemplate.substring(transformedTemplate.indexOf(\"/class/\") + 7).substring(1);\n\n return transformedTemplate;\n }",
"public static void saveStudRecsToFile(File file) {\r\n\t\ttry {\r\n\t\t\tJAXBContext context = JAXBContext\r\n\t\t\t\t\t.newInstance(StudRecsWrapper.class);\r\n\t\t\tMarshaller m = context.createMarshaller();\r\n\t\t\tm.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);\r\n\t\t\t\r\n\t\t\tStudRecsWrapper wrapper = new StudRecsWrapper();\r\n\t\t\twrapper.setStudRecs(studRecs);\r\n\t\t\t\r\n\t\t\tm.marshal(wrapper, file);\r\n\t\t\tSystem.out.println(\"File saved!\");\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(\"Cannot save file, check write permissions!\");\r\n\t\t}\r\n\t}",
"private void importXMLSchema(Import bpelImport) {\n \tString namespace = bpelImport.getNamespace();\n \tString location = bpelImport.getLocation();\n \tif (location == null) {\n mLogger.severe(\"Unable to import schema document, import location is null \" + bpelImport);\n throw new XMLParseVisitorException(\"Unable to import schema document, import location is null \" + bpelImport);\n }\n \t\n \tLazyImportVisitorService vService = (LazyImportVisitorService) getVisitorService();\n \tBPELParseContext bpelParseContext = vService.getBPELParseContext();\n \tIXSDResolver xsdResolver = bpelParseContext.getXSDResolver();\n \t\n \tif(xsdResolver == null) {\n \t\tmLogger.severe(\"Unable to import schema document, must specify XSD Resolver \" + bpelImport);\n throw new XMLParseVisitorException(\"Unable to import schema document, must specify XSD Resolver \" + bpelImport);\n \t}\n \t\n \ttry {\n\t \tXMLSchema xsdDocument = xsdResolver.resolve(namespace, location);\n\t \n\t if(xsdDocument == null) {\n\t \tmLogger.severe(\"Unable to import schema document for import \" + bpelImport);\n\t throw new XMLParseVisitorException(\"Unable to import schema document for import \" + bpelImport);\t\n\t }\n\t \n\t bpelImport.setImportedObject(xsdDocument);\n \n } catch (EInsightModelException e) {\n mLogger.log(Level.SEVERE, \"Unable to import xsd document for import \" + bpelImport, e);\n throw new XMLParseVisitorException(\"Unable to import xsd document for import \" + bpelImport, e);\n }\n \n }",
"public void generateTypesForXSD(ParameterMetaData pmd) throws IOException\n {\n QName xmlType = pmd.getXmlType();\n if(xmlType.getNamespaceURI().equals(Constants.NS_SCHEMA_XSD) == false)\n generateType(xmlType, pmd.getJavaType(), buildElementNameMap(pmd));\n\n if (pmd.getOperationMetaData().getStyle() == Style.DOCUMENT || pmd.isInHeader())\n generateElement(pmd.getXmlName(), xmlType);\n\n //Attachment type\n if(pmd.isSwA())\n wsdl.registerNamespaceURI(Constants.NS_SWA_MIME, \"mime\");\n }",
"private void handleNamespaceDeclaration() throws IOException {\r\n if (this.tempMapping != null) {\r\n PrefixMapping pm = null;\r\n for (int i = 0; i < tempMapping.size(); i++) {\r\n pm = (PrefixMapping)tempMapping.get(i);\r\n this.writer.write(\" xmlns\");\r\n // specify a prefix if different from \"\"\r\n if (!\"\".equals(pm.prefix)) {\r\n this.writer.write(':');\r\n this.writer.write(pm.prefix);\r\n }\r\n this.writer.write(\"=\\\"\");\r\n this.writer.write(pm.uri);\r\n this.writer.write(\"\\\"\");\r\n }\r\n this.tempMapping = null;\r\n }\r\n }",
"public interface NSURIResolver extends URIResolver {\n \n /**\n * Called by the processor when it encounters\n * an xsl:include, xsl:import, or document() function and the \n * object can not be resolved by the its relative path.\n * (javax.xml.transform.URIResolver.resolve(String href, String base) \n * has returned null)\n * \n * \n * @param tartgetNamespace of the imported schema.\n *\n * @return A Source object, or null if the namespace cannot be resolved.\n * \n * @throws TransformerException if an error occurs when trying to\n * resolve the URI.\n */\n public Source resolveByNS(String tartgetNamespace)\n throws TransformerException;\n\n}",
"public void close(){\r\n Transformer t = null;\r\n\t\ttry {\r\n\t\t\tt = TransformerFactory.newInstance().newTransformer();\r\n\t\t\tt.setOutputProperty(OutputKeys.METHOD, \"xml\");\r\n\t\t\tt.setOutputProperty(OutputKeys.INDENT, \"yes\"); \r\n\t\t\tt.transform(new DOMSource(document), new StreamResult(new FileOutputStream(XMLFileName))); \t\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n }",
"public final String getTargetNamespace() {\n return fTargetNamespace;\n }",
"UdtRef createUdtRef();",
"public static void editXML(String dim) throws Exception {\n\t\tDocumentBuilderFactory builderFactory = DocumentBuilderFactory.newInstance();\n\t\tDocumentBuilder builder = builderFactory.newDocumentBuilder();\n\t\tString fileName = PropertiesFile.getInstance().getProperty(\"input_qualifier\")+ \".xml\";\n\t\tDocument xmlDocument = builder.parse(new File(getFullyQualifiedFileName(fileName)));\n\n\t\t/*\n\t\t * String expression = \"ConfigFramework/DCDpp/Servers/Server/Zone\"; XPath xPath\n\t\t * = XPathFactory.newInstance().newXPath(); NodeList nodeList = (NodeList)\n\t\t * xPath.compile(expression).evaluate(xmlDocument, XPathConstants.NODESET); Node\n\t\t * zone = nodeList.item(0);\n\t\t * \n\t\t * String zoneRange = zone.getTextContent(); zoneRange = zoneRange.substring(0,\n\t\t * zoneRange.lastIndexOf(\".\") + 1) + dim; zone.setTextContent(zoneRange);\n\t\t */\n\n\t\tTransformerFactory transformerFactory = TransformerFactory.newInstance();\n\t\tTransformer transformer = transformerFactory.newTransformer();\n\t\tDOMSource domSource = new DOMSource(xmlDocument);\n\t\tString s = getOutputFolderName() + \"/\" + fileName;\n\t\tStreamResult streamResult = new StreamResult(new File(s));\n\t\ttransformer.transform(domSource, streamResult);\n\n\t}",
"public interface DTDHandler {\n\n /**\n * Receive notification of a notation declaration event. <p/> It is up to\n * the application to record the notation for later reference, if necessary.\n * </p> <p/> If a system identifier is present, and it is a URL, the SAX\n * parser must resolve it fully before passing it to the application. </p>\n * \n * @param name\n * The notation name.\n * @param publicId\n * The notation's public identifier, or null if none was given.\n * @param systemId\n * The notation's system identifier, or null if none was given.\n * @throws org.xml.sax.SAXException\n * Any SAX exception, possibly wrapping another exception.\n * @see #unparsedEntityDecl\n * @see org.xml.sax.AttributeList\n */\n public abstract void notationDecl(String name, String publicId,\n String systemId) throws SAXException;\n\n /**\n * Receive notification of an unparsed entity declaration event. <p/> Note\n * that the notation name corresponds to a notation reported by the\n * notationDecl() event. It is up to the application to record the entity\n * for later reference, if necessary. </p> <p/> If the system identifier is\n * a URL, the parser must resolve it fully before passing it to the\n * application. </p>\n * \n * @param name\n * The unparsed entity's name.\n * @param publicId\n * The entity's public identifier, or null if none was given.\n * @param systemId\n * The entity's system identifier (it must always have one).\n * @param notation\n * name The name of the associated notation.\n * @param notationName\n * @throws org.xml.sax.SAXException\n * Any SAX exception, possibly wrapping another exception.\n * @see #notationDecl\n * @see org.xml.sax.AttributeList\n */\n public abstract void unparsedEntityDecl(String name, String publicId,\n String systemId, String notationName) throws SAXException;\n\n}",
"public static Document getNamespaceAwareDocument(Document inputDocument) {\r\n return bytesToXml(doc2bytes(inputDocument), true);\r\n }",
"@DOMSupport(DomLevel.TWO)\r\n @BrowserSupport({BrowserType.FIREFOX_2P, BrowserType.OPERA_9P})\r\n\t@Function Attr createAttributeNS(String namespaceURI, String qualifiedName);",
"public void setXmlns(String xmlns)\r\n\t{\r\n\t\tthis.xmlns = xmlns;\r\n\t}",
"private Schema generateDirectiveOutputSchema(Schema inputSchema)\n throws RecordConvertorException {\n List<Schema.Field> outputFields = new ArrayList<>();\n for (Map.Entry<String, Object> field : outputFieldMap.entrySet()) {\n String fieldName = field.getKey();\n Object fieldValue = field.getValue();\n\n Schema existing = inputSchema.getField(fieldName) != null ? inputSchema.getField(fieldName).getSchema() : null;\n Schema generated = fieldValue != null && !isValidSchemaForValue(existing, fieldValue) ?\n schemaGenerator.getSchema(fieldValue, fieldName) : null;\n\n if (generated != null) {\n outputFields.add(Schema.Field.of(fieldName, generated));\n } else if (existing != null) {\n if (!existing.getType().equals(Schema.Type.NULL) && !existing.isNullable()) {\n existing = Schema.nullableOf(existing);\n }\n outputFields.add(Schema.Field.of(fieldName, existing));\n } else {\n outputFields.add(Schema.Field.of(fieldName, Schema.of(Schema.Type.NULL)));\n }\n }\n return Schema.recordOf(\"output\", outputFields);\n }",
"public static void updateSynapseAPI(Document document, File file) throws APIMigrationException {\n try {\n updateHandlers(document, file);\n TransformerFactory transformerFactory = TransformerFactory.newInstance();\n Transformer transformer = transformerFactory.newTransformer();\n transformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\n DOMSource source = new DOMSource(document);\n StreamResult result = new StreamResult(file);\n transformer.transform(source, result);\n } catch (TransformerConfigurationException e) {\n handleException(\"Could not initiate TransformerFactory Builder.\", e);\n } catch (TransformerException e) {\n handleException(\"Could not transform the source.\", e);\n }\n }",
"public SchemaDescriptor getReferencedTableSchemaDescriptor(DataDictionary dd)\n\t\tthrows StandardException;",
"public Name createFullQualifiedTypeAsName(AST ast,\r\n\t\t\tString fullQualifiedUmlTypeName, String sourceDirectoryPackageName) {\r\n\t\tString typeName = packageHelper.getFullPackageName(\r\n\t\t\t\tfullQualifiedUmlTypeName, sourceDirectoryPackageName);\r\n\t\tName name = ast.newName(typeName);\r\n\r\n\t\treturn name;\r\n\t}",
"public void endDTD() throws SAXException {\n this.saxHandler.endDTD();\n }",
"@Override\n public void setXMLSchema(URL url) throws XMLPlatformException {\n if (null == url) {\n return;\n }\n if (null == documentBuilderFactory) {\n loadDocumentBuilderFactory();\n }\n try {\n documentBuilderFactory.setAttribute(SCHEMA_LANGUAGE, XML_SCHEMA);\n documentBuilderFactory.setAttribute(JAXP_SCHEMA_SOURCE, url.toString());\n } catch (IllegalArgumentException e) {\n // The attribute isn't supported so do nothing\n } catch (Exception e) {\n XMLPlatformException.xmlPlatformErrorResolvingXMLSchema(url, e);\n }\n }",
"public void setValidateDTD(final boolean validate)\r\n {\r\n this.validateDTD = validate;\r\n }",
"public static void writeXMLFile(List<CD> lst)\n\t\t\tthrows TransformerException, FileNotFoundException, SAXException, IOException {\n\t\ttry {\n\t\t\tDocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();\n\t\t\tDocumentBuilder docBuilder = docFactory.newDocumentBuilder();\n\n\t\t\t// root elements\n\t\t\tDocument doc = docBuilder.newDocument();\n\t\t\tElement rootElement = doc.createElement(\"CDs\");\n\t\t\tdoc.appendChild(rootElement);\n\t\t\tString filePath = \"src/Part2_Ex3/CD.xml\";\n\t\t\tFile xmlFile = new File(filePath);\n\n\t\t\t\n\t\t\tfor (CD c : lst) {\n\n\t\t\t\tElement cd = doc.createElement(\"CD\");\n\t\t\t\trootElement.appendChild(cd);\n\n\t\t\t\t// id element\n\t\t\t\tElement id = doc.createElement(\"id\");\n\t\t\t\tid.appendChild(doc.createTextNode(Integer.toString(c.getId())));\n\t\t\t\tcd.appendChild(id);\n\t\t\t\t\n\t\t\t\t// name\n\t\t\t\tElement name = doc.createElement(\"name\");\n\t\t\t\tname.appendChild(doc.createTextNode(c.getName()));\n\t\t\t\tcd.appendChild(name);\n\n\t\t\t\t//singer\n\t\t\t\tElement singer = doc.createElement(\"singer\");\n\t\t\t\tsinger.appendChild((doc.createTextNode(c.getSinger())));\n\t\t\t\tcd.appendChild(singer);\n\n\t\t\t\t// number songs\n\t\t\t\tElement numbersongs = doc.createElement(\"numbersongs\");\n\t\t\t\tnumbersongs.appendChild(doc.createTextNode(Integer.toString(c.getNumOfSong())));\n\t\t\t\tcd.appendChild(numbersongs);\n\t\t\t\t\n\t\t\t\t// price\n\t\t\t\tElement price = doc.createElement(\"price\");\n\t\t\t\tprice.appendChild(doc.createTextNode(Double.toString(c.getPrice())));\n\t\t\t\tcd.appendChild(price);\n\t\t\t\t\n\t\t\t\t// write the content into xml file\n\t\t\t\tTransformer transformer = TransformerFactory.newInstance().newTransformer();\n\t\t\t transformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\n\t\t\t transformer.setOutputProperty(OutputKeys.METHOD, \"xml\");\n\t\t\t transformer.setOutputProperty(\"{http://xml.apache.org/xslt}indent-amount\", \"5\");\n\t\t\t DOMSource source = new DOMSource(doc);\n\t\t\t StreamResult result = new StreamResult(new File(filePath));\n\t\t\t transformer.transform(source, result); \n\t\t\t}\n\n\t\t} catch (ParserConfigurationException pce) {\n\t\t\tSystem.out.println(\"Cannot insert new contact. Error: \" + pce.getMessage());\n\t\t}\n\t}",
"public static RDFFormat syntaxForFileName(String fileName) {\n\t\treturn RDFFormat.forFileName(fileName, RDFFormat.RDFXML);\n\t}",
"public void generateCleanVersion(File src, File target) {\n PreprocessorAPI pp = new PreprocessorAPI(new OnlyExpandMacrosInIfsController());\n pp.setInlineIncludes(false);\n pp.setKeepIncludes(true);\n pp.setKeepDefines(true);\n\n pp.preprocess(src, target);\n }",
"public void writeSchematronix(@NonNull final SchematronDefinition definition,\n @NonNull final File destinationFile) throws TransformerException {\n if ((destinationFile.exists() && !Files.isWritable(destinationFile.toPath()))\n || !Files.isWritable(destinationFile.getParentFile().toPath())) {\n throw new IllegalArgumentException(\"The destination file is not writable\");\n }\n\n final Document document = this.documentBuilder.newDocument();\n final Element rootElement = document.createElementNS(SchematronConstants.SCHEMATRON_NAMESPACE, SchematronConstants.ROOT_TAG_NAME);\n rootElement.setAttribute(\"queryBinding\", definition.getQueryBinding());\n document.appendChild(rootElement);\n\n // Add the title if it was defined\n if (definition.getTitle() != null) {\n final Element titleElement =\n document.createElementNS(SchematronConstants.SCHEMATRON_NAMESPACE, SchematronConstants.TITLE_TAG_NAME);\n titleElement.setTextContent(definition.getTitle());\n rootElement.appendChild(titleElement);\n }\n\n // Add namespaces, they don't need any transformation\n for (final Map.Entry<String, String> namespace : definition.getNamespaces().entrySet()) {\n final Element namespaceElement =\n document.createElementNS(SchematronConstants.SCHEMATRON_NAMESPACE, SchematronConstants.NAMESPACE_TAG_NAME);\n namespaceElement.setAttribute(\"prefix\", namespace.getKey());\n namespaceElement.setAttribute(\"uri\", namespace.getValue());\n rootElement.appendChild(namespaceElement);\n }\n\n // Add patterns and rules\n for (final SchematronPattern pattern : definition.getPatterns()) {\n final Element patternElement =\n document.createElementNS(SchematronConstants.SCHEMATRON_NAMESPACE, SchematronConstants.PATTERN_TAG_NAME);\n patternElement.setAttribute(\"id\", pattern.getId());\n\n for (final SchematronRule rule : getSchematronixRulesForPattern(definition, pattern.getId())) {\n final Element ruleElement =\n document.createElementNS(SchematronConstants.SCHEMATRON_NAMESPACE, SchematronConstants.RULE_TAG_NAME);\n ruleElement.setAttribute(\"id\", rule.getId());\n ruleElement.setAttribute(\"context\", rule.getContext());\n\n for (final SchematronRuleChild child : rule.getChildren()) {\n if (child instanceof SchematronAssert) {\n final Element assertElement =\n document.createElementNS(SchematronConstants.SCHEMATRON_NAMESPACE, SchematronConstants.ASSERT_TAG_NAME);\n assertElement.setAttribute(\"test\", ((SchematronAssert) child).getTest());\n assertElement.setAttribute(\"role\", ((SchematronAssert) child).getRole());\n for (final Node messageNode : ((SchematronAssert) child).getMessageNodes()) {\n assertElement.appendChild(document.importNode(messageNode, true));\n }\n ruleElement.appendChild(assertElement);\n } else if (child instanceof SchematronReport) {\n final Element reportElement =\n document.createElementNS(SchematronConstants.SCHEMATRON_NAMESPACE, SchematronConstants.REPORT_TAG_NAME);\n reportElement.setAttribute(\"test\", ((SchematronReport) child).getTest());\n reportElement.setAttribute(\"role\", ((SchematronReport) child).getRole());\n for (final Node messageNode : ((SchematronReport) child).getMessageNodes()) {\n reportElement.appendChild(document.importNode(messageNode, true));\n }\n ruleElement.appendChild(reportElement);\n } else if (child instanceof SchematronLet) {\n final Element letElement =\n document.createElementNS(SchematronConstants.SCHEMATRON_NAMESPACE, SchematronConstants.LET_TAG_NAME);\n letElement.setAttribute(\"name\", ((SchematronLet) child).getName());\n letElement.setAttribute(\"value\", ((SchematronLet) child).getValue());\n ruleElement.appendChild(letElement);\n }\n }\n\n // Only add the rule if it's not empty\n if (ruleElement.getChildNodes().getLength() > 0) {\n patternElement.appendChild(ruleElement);\n }\n }\n\n // Only add the pattern if it's not empty\n if (patternElement.getChildNodes().getLength() > 0) {\n rootElement.appendChild(patternElement);\n }\n }\n\n // Write result to file\n this.xmlTransformer.transform(new DOMSource(document), new StreamResult(destinationFile));\n }",
"public static ElementDecl getMatchingXSDElement(QName xsdElementQName, WSDLElement element) {\n\t\tif(xsdElementQName == null) {\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tWSDLDocument document = (WSDLDocument) element.getOwnerDocument();\n\t\t\n\t\tif (document == null) {\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tWSDLDefinitions wsdlDefinition = document.getDocumentDefinitions();\n\t\t\t\t\n\t\tif (wsdlDefinition == null) {\n\t\t\treturn null;\n\t\t}\n \n\t\tElementDecl xsdElement = null;\n\t\t\n\t\t//QName nsQName = NamespaceUtility.normalizeQName(xsdElementQName, element);\n\t\t//xsdElement = wsdlDefinition.getXSDElement(nsQName);\n\t\txsdElement = wsdlDefinition.getXSDElement(xsdElementQName);\n\t\t\n\t\treturn xsdElement;\n\t\t\n\t}",
"public void convertAll() {\n Document dom = null;\n long beginTime = System.currentTimeMillis();\n try {\n log.info(\" ############################### begin import ######################\");\n dom = XMLParser.parseXMLToDOM(context.getResourceAsStream(IMPORT_FILE));\n // XMLParser.DTDValidator(dom);\n Element element = (Element) dom.getElementsByTagName(\"import\").item(0);\n String encoding = element.getAttribute(\"encoding\");\n DataAccessor.encoding = encoding;\n\n NodeList list = element.getChildNodes();\n\n List<Data> clondSources = new ArrayList<Data>();\n for (int i = 0; i < list.getLength(); i++) {\n // datatype node\n Node itemDatatype = list.item(i);\n List<Data> sources = processDatatype(itemDatatype);\n clondSources.addAll(sources);\n }\n NodeService.insertMigrationMappings(clondSources);\n createRelationDataType(clondSources);\n linkRoot(list);\n log.info(String.format(\n \" ---->#######################finished importing [time:%s mins] #############################\",\n (System.currentTimeMillis() - beginTime) / (1000 * 60)));\n NodeService.insertProperties(properties);\n }\n catch (Exception e) {\n log.error(e.getMessage());\n e.printStackTrace();\n }\n }",
"public String getSchema(File file) {\n\t\tDocument doc = null;\n\t\ttry {\n\t\t\tSAXBuilder sax = new SAXBuilder();\n\t\t\tdoc = sax.build(file);\n\t\t} catch (JDOMException | IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tif(doc != null)\n\t\t\treturn getSchema(doc);\n\t\treturn null;\n\t}",
"public static void main(String[] args) throws Exception {\n \tString filename = null;\n \tboolean dtdValidate = false;\n \tboolean xsdValidate = false;\n \tString schemaSource = null;\n \t\n \targs[1] = \"/home/users/xblepa/git/labs/java/parser/src/test/data/personal-schema.xml\";\n \n boolean ignoreWhitespace = false;\n boolean ignoreComments = false;\n boolean putCDATAIntoText = false;\n boolean createEntityRefs = false;\n\n\t\t \n\t\tfor (int i = 0; i < args.length; i++) {\n\t\t if (args[i].equals(\"-dtd\")) { \n\t\t \t\tdtdValidate = true;\n\t\t } \n\t\t else if (args[i].equals(\"-xsd\")) {\n\t\t \txsdValidate = true;\n\t\t } \n\t\t else if (args[i].equals(\"-xsdss\")) {\n\t\t if (i == args.length - 1) {\n\t\t usage();\n\t\t }\n\t\t xsdValidate = true;\n\t\t schemaSource = args[++i];\n\t\t }\n\t\t else if (args[i].equals(\"-ws\")) {\n\t ignoreWhitespace = true;\n\t } \n\t else if (args[i].startsWith(\"-co\")) {\n\t ignoreComments = true;\n\t }\n\t else if (args[i].startsWith(\"-cd\")) {\n\t putCDATAIntoText = true;\n\t } \n\t else if (args[i].startsWith(\"-e\")) {\n\t createEntityRefs = true;\n\t // ...\n\t } \n\t\t else {\n\t\t filename = args[i];\n\t\t if (i != args.length - 1) {\n\t\t usage();\n\t\t }\n\t\t }\n\t\t}\n\t\t\n\t\tif (filename == null) {\n\t\t usage();\n\t\t}\n\t \t\n // Next, add the following code to the main() method, to obtain an instance of a factory that can give us a document builder.\n DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n \n dbf.setNamespaceAware(true);\n dbf.setValidating(dtdValidate || xsdValidate);\n \n // Now, add the following code to main() to get an instance of a builder, and use it to parse the specified file.\n DocumentBuilder db = dbf.newDocumentBuilder(); \n \n // The following code configures the document builder to use the error handler defined in Handle Errors. \n OutputStreamWriter errorWriter = new OutputStreamWriter(System.err,outputEncoding);\n db.setErrorHandler(new MyErrorHandler (new PrintWriter(errorWriter, true)));\n\n \n Document doc = db.parse(new File(filename)); \n \n }",
"@DELETE\n @Path(\"contexts/{context}/schemas/{id}\")\n @TransactionPolicy(value = TransactionControl.EXPLICIT)\n public void delete(HttpServiceRequest request, HttpServiceResponder responder, @PathParam(\"context\") String namespace,\n @PathParam(\"id\") String id) {\n respond(request, responder, namespace, ns -> {\n NamespacedId namespacedId = new NamespacedId(ns, id);\n TransactionRunners.run(getContext(), context -> {\n SchemaRegistry registry = SchemaRegistry.get(context);\n if (registry.hasSchema(namespacedId)) {\n throw new NotFoundException(\"Id \" + id + \" not found.\");\n }\n registry.delete(namespacedId);\n });\n return new ServiceResponse<Void>(\"Successfully deleted schema \" + id);\n });\n }"
] |
[
"0.71173143",
"0.69661313",
"0.67599225",
"0.6585291",
"0.52290726",
"0.5005988",
"0.49951276",
"0.47888592",
"0.46602353",
"0.4578658",
"0.45344463",
"0.450357",
"0.44785833",
"0.44622374",
"0.44444856",
"0.44399986",
"0.4438201",
"0.44251755",
"0.4416025",
"0.4379896",
"0.43656674",
"0.42541498",
"0.42432055",
"0.42317468",
"0.4198129",
"0.41974026",
"0.4197182",
"0.41511652",
"0.4148257",
"0.41342545",
"0.41307896",
"0.41129035",
"0.41118884",
"0.41053063",
"0.4076984",
"0.4069482",
"0.4056506",
"0.40544462",
"0.4043081",
"0.4030742",
"0.40277895",
"0.40194297",
"0.40043396",
"0.40008888",
"0.3992909",
"0.397416",
"0.3968804",
"0.39661396",
"0.39403754",
"0.39334717",
"0.39325148",
"0.3911839",
"0.390816",
"0.39013648",
"0.38973236",
"0.3881764",
"0.3870619",
"0.3860207",
"0.38567248",
"0.3848716",
"0.38487005",
"0.3847198",
"0.38291168",
"0.38209546",
"0.38083282",
"0.38076395",
"0.38039753",
"0.38033548",
"0.37991148",
"0.37982908",
"0.3797599",
"0.37946633",
"0.37933087",
"0.3786567",
"0.37863767",
"0.37830958",
"0.3779334",
"0.37726915",
"0.37664968",
"0.3756089",
"0.37547007",
"0.37525794",
"0.37302905",
"0.37295794",
"0.3729446",
"0.37264147",
"0.37258205",
"0.37249503",
"0.3722983",
"0.37212515",
"0.37176812",
"0.37146083",
"0.37089583",
"0.37071648",
"0.37068972",
"0.37034813",
"0.37006795",
"0.3687534",
"0.3683454",
"0.36812234"
] |
0.65129954
|
4
|
Convert the given the dtd file(that is the path as String) to the new xsd format.
|
public static void convert(final String dtdfile, final String xsdfile) throws IOException
{
OutputStream outStream = new FileOutputStream(xsdfile);
final Writer writer = new Writer();
writer.setOutStream(outStream);
writer.parse(new XMLInputSource(null, dtdfile, null));
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public static File convert(final @NonNull String dtdfile, final @NonNull File xsdfile)\n\t\tthrows IOException\n\t{\n\t\tOutputStream outStream = new FileOutputStream(xsdfile);\n\t\tfinal Writer writer = new Writer();\n\t\twriter.setOutStream(outStream);\n\t\twriter.parse(new XMLInputSource(null, dtdfile, null));\n\t\treturn xsdfile;\n\t}",
"public static File convert(final @NonNull File dtdfile, final @NonNull File xsdfile)\n\t\tthrows IOException\n\t{\n\t\tOutputStream outStream = new FileOutputStream(xsdfile);\n\t\tfinal Writer writer = new Writer();\n\t\twriter.setOutStream(outStream);\n\t\twriter.parse(new XMLInputSource(null, dtdfile.getAbsolutePath(), null));\n\t\treturn xsdfile;\n\t}",
"public static void convert(final @NonNull String targetNamespace,\n\t\tfinal List<TypePattern> listXsdTypePattern, final @NonNull String dtdfile,\n\t\tfinal @NonNull File xsdfile) throws IOException\n\t{\n\t\tOutputStream outStream = new FileOutputStream(xsdfile);\n\t\tfinal Writer writer = new Writer();\n\t\twriter.setTargetNamespace(targetNamespace);\n\t\twriter.addXsdTypePattern(listXsdTypePattern);\n\t\twriter.setOutStream(outStream);\n\t\twriter.parse(new XMLInputSource(null, dtdfile, null));\n\t}",
"public static void convert(final @NonNull String targetNamespace,\n\t\tfinal List<TypePattern> listXsdTypePattern, final @NonNull String dtdfile,\n\t\tfinal @NonNull String xsdfile) throws IOException\n\t{\n\t\tOutputStream outStream = new FileOutputStream(xsdfile);\n\t\tfinal Writer writer = new Writer();\n\t\twriter.setTargetNamespace(targetNamespace);\n\t\twriter.addXsdTypePattern(listXsdTypePattern);\n\t\twriter.setOutStream(outStream);\n\t\twriter.parse(new XMLInputSource(null, dtdfile, null));\n\t}",
"public void convert(String inFile, String outFile) throws IOException, JAXBException;",
"public void setXmlSchema(File file) {\n\t\tDocument doc = null;\n\t\ttry {\n\t\t\tSAXBuilder sax = new SAXBuilder();\n\t\t\tdoc = sax.build(file);\n\t\t} catch (JDOMException | IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tif(doc != null) {\n\t\t\tsetXmlSchema(doc);\n\t\t\ttry(FileOutputStream fileOutputStream = new FileOutputStream(file)) {\n\t\t\t\ttry {\n\t\t\t\t\tXMLOutputter xmlOutputter = new XMLOutputter(Format.getPrettyFormat());\n\t\t\t\t\txmlOutputter.output(doc, fileOutputStream);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"private String convertXMLFileToString(File file)\n {\n try{\n DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();\n InputStream inputStream = new FileInputStream(file);\n org.w3c.dom.Document doc = documentBuilderFactory.newDocumentBuilder().parse(inputStream);\n StringWriter stw = new StringWriter();\n Transformer serializer = TransformerFactory.newInstance().newTransformer();\n serializer.transform(new DOMSource(doc), new StreamResult(stw));\n return stw.toString();\n }\n catch (Exception e) {\n \tnew ErrorBox(\"Error Deserializing\", \"XML file could not be deserialized\");\n }\n return null;\n }",
"public void processDocumentType(DocumentType dtd)\r\n\tthrows Exception\r\n\t{\r\n\tWriter xml = getWriter();\r\n\txml.write(\"<!DOCTYPE \");\r\n\txml.write(dtd.getName());\r\n\txml.write(\" SYSTEM ... \\n \");\r\n\treturn;\r\n\t}",
"public void xsetXsd(org.apache.xmlbeans.XmlString xsd)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(XSD$2, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(XSD$2);\n }\n target.set(xsd);\n }\n }",
"public void setXsd(java.lang.String xsd)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(XSD$2, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(XSD$2);\n }\n target.setStringValue(xsd);\n }\n }",
"private boolean inputXSD(String xsdName, String xmlName, String outputFileName) {\n ArrayList<String> wholeFile = this.readReturnFileContents(xsdName);\n ArrayList<Integer> match = new ArrayList<Integer>();\n ArrayList<Map> fieldsAttribs = new ArrayList<>();\n match.add(1);\n for(String s:wholeFile){\n if(s.trim().length() != 0){\n match = this.parseXSD(s.trim(), match);\n if(match.get(match.size()-1)==8)\n return false;\n if(match.size()>2){\n if(match.get(match.size()-1) == 4){\n Map tMap = this.getTableFieldsAttribs(s);\n boolean flag = true;\n for (Map cMap: fieldsAttribs){\n if(cMap.get(\"name\").toString().equals(tMap.get(\"name\").toString())){\n flag = false;\n System.out.println(\"***Error- \"+ tMap + \" \\n this element is ignored due to duplicate name attribute in xsd file\");\n }\n }\n if(flag)\n fieldsAttribs.add(tMap);\n }\n }\n }\n\n }\n return this.inputXML(xmlName, fieldsAttribs, outputFileName);\n }",
"public static WSDLDocument parseWSDL(String input) throws WSDLParserException {\r\n\r\n\t try {\r\n\r\n\t\t\tWSDLDocument wsdlDoc = null;\r\n\r\n\t\t\twsdlDoc = new WSDLDocument();\r\n\r\n\t\t\tSAXBuilder builder = new SAXBuilder();\r\n\t\t\tlog.info(\"WSDL: loading...\" + input);\r\n\t\t\tDocument doc = builder.build(Files.getInputStream(input));\r\n\r\n\t\t\t// Get the root element\r\n\t\t\tElement root = doc.getRootElement();\r\n\r\n\t\t\t// Namespaces\r\n\t\t\tNamespace rootns = root.getNamespace();\r\n\t\t\twsdlDoc.setRootNamespace(rootns);\r\n\r\n\t\t\tList nss = root.getAdditionalNamespaces();\r\n\t\t\tfor (Iterator iter = nss.iterator(); iter.hasNext(); ) {\r\n\t\t\t\tNamespace ns = (Namespace) iter.next();\r\n\t\t\t\twsdlDoc.addAdditionalNamespace(ns);\r\n\t\t\t}\r\n\r\n\t\t\t// XML Schema Type defintions\r\n\r\n\t\t\t// first load utility schemas, which may be needed even in absence\r\n\t\t\t// of an explicite XSD schema defintion\r\n\t\t\tXMLSchemaParser parser = new XMLSchemaParser();\r\n\r\n\t\t\tHashMap addNS = new HashMap();\r\n\t\t\taddNS.put(\"xsd\", Namespace.getNamespace(\"xsd\", XSSchema.NS_XSD));\r\n\t\t\tXSSchema datatypes = parser.parseSchema(Files.getInputStream(\"examples/xs/xs_datatypes.xsd\"), addNS);\r\n\t\t\tXSSchema soapEncoding = parser.parseSchema(Files.getInputStream(\"examples/xs/soapencoding.xsd\"), addNS);\r\n\r\n\t\t\t// now read the schema definitions of the WSDL documen (usually, only one..)\r\n\t\t\tElement types = root.getChild(\"types\", rootns);\r\n\t\t\tif (types != null) {\r\n\t\t\t\tIterator itr = (types.getChildren()).iterator();\r\n\t\t\t\twhile (itr.hasNext()) {\r\n\t\t\t\t\t// copying XML Schema definition to stream\r\n\t\t\t\t\tByteArrayOutputStream os = new ByteArrayOutputStream();\r\n\t\t\t\t\tXMLOutputter outputter = new XMLOutputter();\r\n\t\t\t\t\toutputter.output((Element) itr.next(), os);\r\n\t\t\t\t\tString s = os.toString();\r\n\r\n\t\t\t\t\tXSSchema xs = parser.parseSchema(s, wsdlDoc.getAdditionalNamespaces());\r\n\t\t\t\t\tlog.debug(\"--- XML SCHEMA PARSING RESULT ---\\n\"+xs.toString());\r\n\t\t\t\t\twsdlDoc.addXSDSchema(xs);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tRegistry registry = Registry.getInstance();\r\n\r\n\t\t\twsdlDoc.setName(root.getAttributeValue(\"name\"));\r\n\t\t\twsdlDoc.setTargetNamespace(StrUtils.slashed(root.getAttributeValue(\"targetNamespace\")));\r\n\r\n\t\t\t/*\r\n\t\t\t<message name=\"GetLastTradePriceOutput\">\r\n\t\t\t\t\t<part name=\"body\" element=\"xsd1:TradePrice\"/>\r\n\t\t\t</message>\r\n\t\t\t*/\r\n\t\t\tfor(Iterator iter=root.getChildren(\"message\", NS_WSDL).iterator(); iter.hasNext(); ) {\r\n\t\t\t\tElement messageElem = (Element) iter.next();\r\n\t\t\t\tMessage m = new Message(wsdlDoc);\r\n\t\t\t\tm.setName(messageElem.getAttributeValue(\"name\"));\r\n\t\t\t\twsdlDoc.addMessage(m);\r\n\r\n\t\t\t\tList partList = messageElem.getChildren(\"part\", NS_WSDL);\r\n\t\t\t\tfor(Iterator iter2=partList.iterator(); iter2.hasNext();) {\r\n\t\t\t\t\tElement partElem = (Element) iter2.next();\r\n\r\n\t\t\t\t\tPart part = new Part(wsdlDoc, m);\r\n\t\t\t\t\tpart.setName(partElem.getAttributeValue(\"name\"));\r\n\r\n\t\t\t\t\tString partXSDElement = partElem.getAttributeValue(\"element\");\r\n\t\t\t\t\tString[] partXSDDef = null;\r\n\t\t\t\t\tif(partXSDElement != null) {\r\n\t\t\t\t\t\tpartXSDDef = wsdlDoc.splitQName(partXSDElement, wsdlDoc.getTargetNamespace());\r\n\t\t\t\t\t\tpart.setNamespace(partXSDDef[0]);\r\n\t\t\t\t\t\tpart.setElementName(partXSDDef[1]);\r\n\t\t\t\t\t\t//part.setElementName(partXSDElement);\r\n\t\t\t\t\t}\telse {\r\n\t\t\t\t\t\tif(partList.size() > 1) log.warn(\"WARNING: Violation of Sect. 2.3.1 of WSDL 1.1 spec: if type is used, only one msg part may be specified.\");\r\n\r\n\t\t\t\t\t\tString partXSDType = partElem.getAttributeValue(\"type\");\r\n\t\t\t\t\t\tpartXSDDef = wsdlDoc.splitQName(partXSDType, wsdlDoc.getTargetNamespace());\r\n\t\t\t\t\t\tpart.setNamespace(partXSDDef[0]);\r\n\t\t\t\t\t\tpart.setTypeName(partXSDDef[1]);\r\n\t\t\t\t\t\t//part.setTypeName(partXSDType);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tm.addPart(part);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tm.register();\r\n\t\t\t}\r\n\r\n\t\t\t/*\r\n\t\t\t<portType name=\"StockQuotePortType\">\r\n\t\t\t\t\t<operation name=\"GetLastTradePrice\">\r\n\t\t\t\t\t\t <input message=\"tns:GetLastTradePriceInput\"/>\r\n\t\t\t\t\t\t <output message=\"tns:GetLastTradePriceOutput\"/>\r\n\t\t\t\t\t</operation>\r\n\t\t\t</portType>\r\n\t\t\t*/\r\n\t\t\tfor(Iterator iter=root.getChildren(\"portType\", NS_WSDL).iterator(); iter.hasNext(); ) {\r\n\t\t\t\tElement ptElem = (Element) iter.next();\r\n\t\t\t\tPortType portType = new PortType(wsdlDoc);\r\n\t\t\t\tportType.setName(ptElem.getAttributeValue(\"name\"));\r\n\t\t\t\twsdlDoc.addPortType(portType);\r\n\r\n\t\t\t\tfor(Iterator iter2 = ptElem.getChildren(\"operation\", NS_WSDL).iterator(); iter2.hasNext(); ) {\r\n\t\t\t\t\tElement opElem = (Element) iter2.next();\r\n\t\t\t\t\tOperation operation = new Operation(wsdlDoc, portType);\r\n\t\t\t\t\toperation.setName(opElem.getAttributeValue(\"name\"));\r\n\t\t\t\t\tportType.addOperation(operation);\r\n\r\n\t\t\t\t\tElement inputElem = opElem.getChild(\"input\", NS_WSDL);\r\n\t\t\t\t\tif(inputElem != null) {\r\n\t\t\t\t\t\tString[] msgDef = wsdlDoc.splitQName(inputElem.getAttributeValue(\"message\"), wsdlDoc.getTargetNamespace());\r\n\t\t\t\t\t\tif(msgDef[0] != null && msgDef[1] != null) {\r\n\t\t\t\t\t\t\tMessage inputMsg = (Message) registry.getObject(Registry.WSDL_MESSAGE, Message.createURI(msgDef[0], msgDef[1]));\r\n\t\t\t\t\t\t\tif(inputMsg == null) throw new WSDLParserException(\"Error: message '\"+msgDef+\"' not found.\");\r\n\t\t\t\t\t\t\toperation.setInput(msgDef[0], msgDef[1], inputMsg);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tElement outputElem = opElem.getChild(\"output\", NS_WSDL);\r\n\t\t\t\t\tif(outputElem != null) {\r\n\t\t\t\t\t\tString[] msgDef = wsdlDoc.splitQName(outputElem.getAttributeValue(\"message\"), wsdlDoc.getTargetNamespace());\r\n\t\t\t\t\t\tif(msgDef[0] != null && msgDef[1] != null) {\r\n\t\t\t\t\t\t\tMessage outputMsg = (Message) registry.getObject(Registry.WSDL_MESSAGE, Message.createURI(msgDef[0], msgDef[1]));\r\n\t\t\t\t\t\t\tif(outputMsg == null) throw new WSDLParserException(\"Error: message '\"+msgDef+\"' not found.\");\r\n\t\t\t\t\t\t\toperation.setOutput(msgDef[0], msgDef[1], outputMsg);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tElement faultElem = opElem.getChild(\"fault\", NS_WSDL);\r\n\t\t\t\t\tif(faultElem != null) {\r\n\t\t\t\t\t\tString[] msgDef = wsdlDoc.splitQName(faultElem.getAttributeValue(\"message\"), wsdlDoc.getTargetNamespace());\r\n\t\t\t\t\t\tif(msgDef[0] != null && msgDef[1] != null) {\r\n\t\t\t\t\t\t\tMessage faultMsg = (Message) registry.getObject(Registry.WSDL_MESSAGE, Message.createURI(msgDef[0], msgDef[1]));\r\n\t\t\t\t\t\t\tif(faultMsg == null) throw new WSDLParserException(\"Error: message '\"+msgDef+\"' not found.\");\r\n\t\t\t\t\t\t\toperation.setFault(msgDef[0], msgDef[1], faultMsg);\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\tportType.register(); // recursivly registers pt and its op's\r\n\t\t\t}\r\n\r\n\t\t\t/*\r\n\t\t\t<binding name=\"StockQuoteSoapBinding\" type=\"tns:StockQuotePortType\">\r\n\t\t\t\t\t<soap:binding style=\"document\" transport=\"http://schemas.xmlsoap.org/soap/http\"/>\r\n\t\t\t\t\t<operation name=\"GetLastTradePrice\">\r\n\t\t\t\t\t\t <soap:operation soapAction=\"http://example.com/GetLastTradePrice\"/>\r\n\t\t\t\t\t\t <input>\r\n\t\t\t\t\t\t\t\t <soap:body use=\"literal\"/>\r\n\t\t\t\t\t\t </input>\r\n\t\t\t\t\t\t <output>\r\n\t\t\t\t\t\t\t\t <soap:body use=\"literal\"/>\r\n\t\t\t\t\t\t </output>\r\n\t\t\t\t\t</operation>\r\n\t\t\t</binding>\r\n\t\t\t*/\r\n\t\t\tfor(Iterator iter=root.getChildren(\"binding\", NS_WSDL).iterator(); iter.hasNext(); ) {\r\n\t\t\t\tElement bindingElem = (Element) iter.next();\r\n\t\t\t\tString bindingName = bindingElem.getAttributeValue(\"name\");\r\n\r\n\t\t\t\tString bdgPortTypeStr = bindingElem.getAttributeValue(\"type\");\r\n\t\t\t\tString[] bdDef = wsdlDoc.splitQName(bdgPortTypeStr, wsdlDoc.getTargetNamespace());\r\n\t\t\t\tPortType bdgPortType = (PortType) registry.getObject(Registry.WSDL_PORTTYPE, PortType.createURI(bdDef[0], bdDef[1]));\r\n\t\t\t\tif(bdgPortType == null) throw new WSDLParserException(\"Error: PortType '\"+bdgPortTypeStr+\"' not found in binding '\"+bindingName+\"'.\");\r\n\r\n\t\t\t\tElement soapBindingElem = (Element) bindingElem.getChild(\"binding\", NS_WSDL_SOAP);\r\n\t\t\t\tif(soapBindingElem == null) {\r\n\t\t\t\t\tlog.warn(\"Skipping this binding, currently we only support SOAP bindings\");\r\n\t\t\t\t\tcontinue; // currently we only support SOAP bindings\r\n\t\t\t\t}\r\n\r\n\t\t\t\tSOAPBinding soapBinding = new SOAPBinding(wsdlDoc, bdgPortType);\r\n\t\t\t\tsoapBinding.setName(bindingName);\r\n\t\t\t\t// TODO: handle as boolean constant\r\n\t\t\t\tsoapBinding.setStyle(\"rpc\".equalsIgnoreCase(soapBindingElem.getAttributeValue(\"style\"))\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t? SOAPBinding.STYLE_RPC : SOAPBinding.STYLE_DOCUMENT);\r\n\t\t\t\tsoapBinding.setTransport(soapBindingElem.getAttributeValue(\"transport\"));\r\n\r\n\t\t\t\t//<operation .... >\r\n\t\t\t\tfor(Iterator iter2 = bindingElem.getChildren(\"operation\", NS_WSDL).iterator(); iter2.hasNext(); ) {\r\n\r\n\t\t\t\t\tElement opBdgElem = (Element) iter2.next();\r\n\t\t\t\t\tSOAPOperationBinding opBdg = new SOAPOperationBinding(wsdlDoc, soapBinding);\r\n\t\t\t\t\tString opName = opBdgElem.getAttributeValue(\"name\");\r\n\r\n\t\t\t\t\tlog.debug(\"parsing SOAP binding for operation: \"+opName);\r\n\r\n\t\t\t\t\tString[] opNameDef = wsdlDoc.splitQName(opName, wsdlDoc.getTargetNamespace());\r\n\t\t\t\t\tOperation op = (Operation) registry.getObject(Registry.WSDL_OPERATION, Operation.createURI(bdgPortType.getName(), opNameDef[0], opNameDef[1]));\r\n\t\t\t\t\tif(op == null) throw new WSDLParserException(\"Error: Operation '\"+opName+\"' not found in binding '\"+bindingName+\"'\");\r\n\t\t\t\t\topBdg.setOperation(op);\r\n\t\t\t\t\tsoapBinding.addOperationBinding(opBdg);\r\n\r\n\r\n\t\t\t\t\t//<soap:operation soapAction=\"uri\"? style=\"rpc|document\"?>?\r\n\t\t\t\t\tElement soapOpBdgElem = (Element) opBdgElem.getChild(\"operation\", NS_WSDL_SOAP);\r\n\t\t\t\t\topBdg.setSoapAction(soapOpBdgElem.getAttributeValue(\"soapAction\"));\r\n\t\t\t\t\t/*\r\n\t\t\t\t\tcf. Sect. 3.4 of WSDL 1.1 spec\r\n\t\t\t\t\t*/\r\n\t\t\t\t\tString soapOpStyleStr = soapOpBdgElem.getAttributeValue(\"style\");\r\n\t\t\t\t\tif(soapOpStyleStr == null)\r\n\t\t\t\t\t\topBdg.setStyle(soapBinding.getStyle()); //\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\topBdg.setStyle(soapOpStyleStr.equalsIgnoreCase(\"rpc\") ? SOAPBinding.STYLE_RPC : SOAPBinding.STYLE_DOCUMENT);\r\n\r\n\t\t\t\t\t//<input>\r\n\t\t\t\t\tElement inputBdgElem = (Element) opBdgElem.getChild(\"input\", NS_WSDL);\r\n\t\t\t\t\tif(inputBdgElem != null) {\r\n\t\t\t\t\t\t// for now, skip header def's...\r\n\t\t\t\t\t\tSOAPBodyDef soapBodyDef = parseSOAPBodyDef(inputBdgElem, wsdlDoc, opBdg);\r\n\t\t\t\t\t\t// enforce WSDL specification\r\n\t\t\t\t\t\tif(!soapBodyDef.isConsistentWithMessageParts(opBdg.getOperation().getInputMsg())) throw new WSDLParserException(\"Error: violation of Sect. 3.5 - binding not consistent with message parts\");\r\n\t\t\t\t\t\topBdg.setInputSOAPBodyDef(soapBodyDef);\r\n\r\n\t\t\t\t\t\t// now parse SOAPHeader defs (if existant)\r\n\t\t\t\t\t\topBdg.setInputSOAPHeaderDefs(parseSOAPHeaderDefs(inputBdgElem, wsdlDoc, opBdg));\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t//<output>\r\n\t\t\t\t\tElement outputBdgElem = (Element) opBdgElem.getChild(\"output\", NS_WSDL);\r\n\t\t\t\t\tif(outputBdgElem != null) {\r\n\t\t\t\t\t\t// for now, skip header def's...\r\n\t\t\t\t\t\tSOAPBodyDef soapBodyDef = parseSOAPBodyDef(inputBdgElem, wsdlDoc, opBdg);\r\n\t\t\t\t\t\t// enforce WSDL specification\r\n\t\t\t\t\t\tif(!soapBodyDef.isConsistentWithMessageParts(opBdg.getOperation().getOutputMsg())) throw new WSDLParserException(\"Error: violation of Sect. 3.5 - binding not consistent with message parts\");\r\n\t\t\t\t\t\topBdg.setOutputSOAPBodyDef(soapBodyDef);\r\n\r\n\t\t\t\t\t\t// now parse SOAPHeader defs (if existant)\r\n\t\t\t\t\t\topBdg.setOutputSOAPHeaderDefs(parseSOAPHeaderDefs(inputBdgElem, wsdlDoc, opBdg));\r\n\t\t\t\t\t}\r\n\r\n\r\n\t\t\t\t}\r\n\t\t\t\twsdlDoc.addBinding(soapBinding);\r\n\t\t\t\tsoapBinding.register();\r\n\t\t\t}\r\n\r\n\t\t\t/*\r\n\t\t\t<service name=\"StockQuoteService\">\r\n\t\t\t\t\t<documentation>My first service</documentation>\r\n\t\t\t\t\t<port name=\"StockQuotePort\" binding=\"tns:StockQuoteBinding\">\r\n\t\t\t\t\t\t <soap:address location=\"http://example.com/stockquote\"/>\r\n\t\t\t\t\t</port>\r\n\t\t\t</service>\r\n\t\t\t*/\r\n\r\n\t\t\tfor(Iterator iter=root.getChildren(\"service\", NS_WSDL).iterator(); iter.hasNext(); ) {\r\n\t\t\t\tElement serviceElem = (Element) iter.next();\r\n\r\n\t\t\t\tService service = new Service(wsdlDoc);\r\n\t\t\t\tservice.setName(serviceElem.getAttributeValue(\"name\"));\r\n\r\n\t\t\t\tfor(Iterator iter2=serviceElem.getChildren(\"port\", NS_WSDL).iterator(); iter2.hasNext(); ) {\r\n\t\t\t\t\tElement portElem = (Element) iter2.next();\r\n\r\n\t\t\t\t\tPort port = new Port(wsdlDoc, service);\r\n\t\t\t\t\tport.setName(portElem.getAttributeValue(\"name\"));\r\n\r\n\t\t\t\t\tString bindingStr = portElem.getAttributeValue(\"binding\");\r\n\t\t\t\t\tString[] bindingNameDef = wsdlDoc.splitQName(bindingStr, wsdlDoc.getTargetNamespace());\r\n\t\t\t\t\tBinding binding = (Binding) registry.getObject(Registry.WSDL_BINDING, Binding.createURI(bindingNameDef[0], bindingNameDef[1]));\r\n\t\t\t\t\tif(binding == null) throw new WSDLParserException(\"Binding '\"+bindingStr+\"' not found in service '\"+service.getName()+\"'\");\r\n\t\t\t\t\tport.setBinding(binding);\r\n\r\n\t\t\t\t\t// currently, only SOAP binding supported\r\n\t\t\t\t\tElement soapAddressElem = portElem.getChild(\"address\", NS_WSDL_SOAP);\r\n\t\t\t\t\tport.setAddress(soapAddressElem.getAttributeValue(\"location\"));\r\n\r\n\t\t\t\t\tport.register();\r\n\t\t\t\t\tservice.addPort(port);\r\n\t\t\t\t}\r\n\t\t\t\twsdlDoc.addService(service);\r\n\t\t\t}\r\n\r\n\t\t\tRegistry.getInstance().addObject(Registry.WSDL_DOC, wsdlDoc);\r\n\t\t\treturn wsdlDoc;\r\n\t\t} catch(Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tthrow new WSDLParserException(e.getMessage());\r\n\t\t}\r\n\t}",
"private static boolean validate(JAXBContext jaxbCongtext, File file, URL xsdUrl) {\n SchemaFactory schemaFactory = null;\n Schema schema = null;\n Source xmlFile = new StreamSource(file);\n try {\n schemaFactory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);\n schema = schemaFactory.newSchema(xsdUrl);\n Validator validator = schema.newValidator();\n DocumentBuilderFactory db = newSecuDocBuilderFactory();\n db.setNamespaceAware(true);\n\n DocumentBuilder builder = db.newDocumentBuilder();\n Document doc = builder.parse(file);\n\n DOMSource source = new DOMSource(doc);\n DOMResult result = new DOMResult();\n\n validator.validate(source, result);\n LOGGER.debug(xmlFile.getSystemId() + \" is valid\");\n } catch(Exception ex) {\n LOGGER.error(xmlFile.getSystemId() + \" is NOT valid\", ex);\n return false;\n }\n return true;\n }",
"public void removeXmlSchema(File file) {\n\t\tDocument doc = null;\n\t\ttry {\n\t\t\tSAXBuilder sax = new SAXBuilder();\n\t\t\tdoc = sax.build(file);\n\t\t} catch (JDOMException | IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tif(doc != null) {\n\t\t\tElement rootElement = doc.getRootElement();\n\t\t\trootElement.setNamespace(null);\n\t\t\trootElement.removeNamespaceDeclaration(bioNamespace);\n\t\t\trootElement.removeNamespaceDeclaration(xsiNamespace);\n\t\t\trootElement.removeAttribute(\"schemaLocation\", xsiNamespace);\n\t\t\ttry (FileOutputStream fileOutputStream = new FileOutputStream(file)) {\n\t\t\t\ttry {\n\t\t\t\t\tXMLOutputter xmlOutputter = new XMLOutputter(Format.getPrettyFormat());\n\t\t\t\t\txmlOutputter.output(doc, fileOutputStream);\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"public void generateTypesForXSD(FaultMetaData fmd) throws IOException\n {\n SchemaCreatorIntf sc = javaToXSD.getSchemaCreator();\n //Look at the features\n QName xmlType = fmd.getXmlType();\n if(xmlType.getNamespaceURI().equals(Constants.NS_SCHEMA_XSD) == false)\n generateType(xmlType ,fmd.getJavaType(), null);\n }",
"public void setXsdSchema(final File xsdFile) throws InvalidXsdException {\n\t\ttry {\n\t\t\tsetXsdSchema(new FileInputStream(xsdFile));\n\t\t} catch (final FileNotFoundException e) {\n\t\t\tthrow new InvalidXsdException(\"The specified xsd file '\" + xsdFile\n\t\t\t\t\t+ \"' could not be found.\", e);\n\t\t}\n\t}",
"public void generateDTD(InputSource src)\n throws Exception\n {\n DTDParser parser = new DTDParser();\n DTD dtd;\n\n dtd = parser.parseExternalSubset(src, null);\n processElementTypes(dtd);\n System.out.println(createAllTablesQuery);\n FileWriter catq= new FileWriter(\"createAllTables.sql\");\n catq.write(createAllTablesQuery);\n catq.close();\n }",
"public void testSchemaImport2() throws Exception{\r\n File file = new File(Resources.asURI(\"importBase.xsd\"));\r\n //create a DOM document\r\n DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();\r\n documentBuilderFactory.setNamespaceAware(true);\r\n Document doc = documentBuilderFactory.newDocumentBuilder().\r\n parse(file.toURL().toString());\r\n\r\n XmlSchemaCollection schemaCol = new XmlSchemaCollection();\r\n XmlSchema schema = schemaCol.read(doc,file.toURL().toString(),null);\r\n assertNotNull(schema);\r\n\r\n }",
"public String setXmlSchema(String content) {\n\t\ttry(StringReader reader = new StringReader(content)) {\n\t\t\tDocument doc = null;\n\t\t\ttry {\n\t\t\t\tSAXBuilder sax = new SAXBuilder();\n\t\t\t\tdoc = sax.build(reader);\n\t\t\t} catch (JDOMException | IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tif(doc != null) {\n\t\t\t\tsetXmlSchema(doc);\n\n\t\t\t\ttry(StringWriter stringWriter = new StringWriter()) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tXMLOutputter xmlOutputter = new XMLOutputter(Format.getPrettyFormat());\n\t\t\t\t\t\txmlOutputter.output(doc, stringWriter);\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tstringWriter.flush();\n\t\t\t\t\tString result = stringWriter.toString();\n\t\t\t\t\treturn result;\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"void bukaXoxo(){\r\n FileInputStream xx = null;\r\n try {\r\n xx = new FileInputStream(\"xoxo.xml\");\r\n // harus diingat objek apa yang dahulu disimpan di file \r\n // program untuk membaca harus sinkron dengan program\r\n // yang dahulu digunakan untuk menyimpannya\r\n int isi;\r\n char charnya;\r\n String stringnya;\r\n // isi file dikembalikan menjadi string\r\n stringnya =\"\";\r\n while ((isi = xx.read()) != -1) {\r\n charnya= (char) isi;\r\n stringnya = stringnya + charnya;\r\n } \r\n // string isi file dikembalikan menjadi larik double\r\n resi = (String) xstream.fromXML(stringnya);\t \r\n }\r\n catch (Exception e){\r\n System.err.println(\"test: \"+e.getMessage());\r\n }\r\n finally{\r\n if(xx != null){\r\n try{\r\n xx.close();\r\n }\r\n catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n } \r\n } \r\n \r\n }",
"public String getXsdFileName();",
"public String getXMLResultXSD() {\n if (!this.initialized) {\n logInitializationError();\n return null;\n }\n try {\n DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n DocumentBuilder builder = factory.newDocumentBuilder();\n DOMImplementation impl = builder.getDOMImplementation();\n\n Document document = impl.createDocument(null, null, null);\n Element root = document.createElement(\"schema\");\n root.setAttribute(\"xmlns\", \"http://www.w3.org/2001/XMLSchema\");\n document.appendChild(root);\n Element resultElement = document.createElement(\"element\");\n resultElement.setAttribute(\"name\", \"result\");\n root.appendChild(resultElement);\n Element complexTypeElement = document.createElement(\"complexType\");\n resultElement.appendChild(complexTypeElement);\n Element sequenceElement = document.createElement(\"sequence\");\n complexTypeElement.appendChild(sequenceElement);\n\n for (TypeMap tSpec : this.serviceSpec.getTypeSpecs()) {\n Element element = document.createElement(\"element\");\n element.setAttribute(\"name\", tSpec.getOutputTag());\n element.setAttribute(\"maxOccurs\", \"unbounded\");\n element.setAttribute(\"minOccurs\", \"0\");\n\n Element complexType = document.createElement(\"complexType\");\n element.appendChild(complexType);\n\n Element simpleContent = document.createElement(\"simpleContent\");\n complexType.appendChild(simpleContent);\n\n Element extension = document.createElement(\"extension\");\n extension.setAttribute(\"base\", \"string\");\n simpleContent.appendChild(extension);\n\n for (Output output : tSpec.getOutputs()) {\n Element attributeElement = document.createElement(\"attribute\");\n extension.appendChild(attributeElement);\n attributeElement.setAttribute(\"name\", output.getAttribute());\n attributeElement.setAttribute(\"type\", \"string\");\n attributeElement.setAttribute(\"use\", \"optional\");\n }\n sequenceElement.appendChild(element);\n }\n\n DOMSource source = new DOMSource(document);\n TransformerFactory tFactory = TransformerFactory.newInstance();\n Transformer transformer = tFactory.newTransformer();\n transformer.setOutputProperty(OutputKeys.METHOD, \"xml\");\n transformer.setOutputProperty(\"{http://xml.apache.org/xslt}indent-amount\", \"4\");\n transformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\n\n StringWriter stringWriter = new StringWriter();\n StreamResult streamResult = new StreamResult(stringWriter);\n transformer.transform(source, streamResult);\n\n return stringWriter.toString();\n } catch (TransformerException e) {\n getLogger().log(Level.SEVERE, \"\", e);\n } catch (ParserConfigurationException e) {\n getLogger().log(Level.SEVERE, \"\", e);\n }\n return null;\n }",
"private static void validate(String fileName, String xSchema) throws Exception {\n \t\ttry {\n\t // parse an XML document into a DOM tree\n\t DocumentBuilder parser =\n\t DocumentBuilderFactory.newInstance().newDocumentBuilder();\n\t Document document = parser.parse(new File(fileName));\n\t\n\t // create a SchemaFactory capable of understanding WXS schemas\n\t SchemaFactory factory =\n\t SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);\n\t\n\t // load a WXS schema, represented by a Schema instance\n\t Source schemaFile = new StreamSource(new File(xSchema));\n\t Schema schema = factory.newSchema(schemaFile);\n\t\n\t // create a Validator object, which can be used to validate\n\t // an instance document\n\t Validator validator = schema.newValidator();\n\t\n\t // validate the DOM tree\n\t\n\t validator.validate(new DOMSource(document));\n \t\t} catch(Exception e) {\n \t\t\tXMLValidate.file = fileName.substring(fileName.lastIndexOf(\"/\") + 1).replaceAll(\".xml\", \"\");\n \t\t\tthrow e;\n \t\t}\n \n }",
"public String getSchema(File file) {\n\t\tDocument doc = null;\n\t\ttry {\n\t\t\tSAXBuilder sax = new SAXBuilder();\n\t\t\tdoc = sax.build(file);\n\t\t} catch (JDOMException | IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tif(doc != null)\n\t\t\treturn getSchema(doc);\n\t\treturn null;\n\t}",
"public static RDFFormat syntaxForFileName(String fileName) {\n\t\treturn RDFFormat.forFileName(fileName, RDFFormat.RDFXML);\n\t}",
"private boolean validateXmlFileWithSchema(String xmlFilePath, String xsdFilePath) { \n \tassert xmlFilePath != null && !xmlFilePath.isEmpty();\n \tassert xsdFilePath != null && !xsdFilePath.isEmpty();\n \tassert _schemaFactory != null;\n \tassert _loggerHelper != null;\n \t\n try {\n Schema schema = _schemaFactory.newSchema(new File(xsdFilePath));\n Validator validator = schema.newValidator();\n validator.validate(new StreamSource(new File(xmlFilePath)));\n } catch (IOException | SAXException e) {\n \t_loggerHelper.logError(e.getMessage());\n return false;\n }\n return true;\n }",
"public static Date isoStringToDate(String d) {\n\t\tDateTime dt = XML_DATE_TIME_FORMAT.parseDateTime(d);\n\t\treturn dt.toDate();\n\t}",
"public void setValidateDTD(final boolean validate)\r\n {\r\n this.validateDTD = validate;\r\n }",
"public static void main(String[] args) throws Exception {\n \tString filename = null;\n \tboolean dtdValidate = false;\n \tboolean xsdValidate = false;\n \tString schemaSource = null;\n \t\n \targs[1] = \"/home/users/xblepa/git/labs/java/parser/src/test/data/personal-schema.xml\";\n \n boolean ignoreWhitespace = false;\n boolean ignoreComments = false;\n boolean putCDATAIntoText = false;\n boolean createEntityRefs = false;\n\n\t\t \n\t\tfor (int i = 0; i < args.length; i++) {\n\t\t if (args[i].equals(\"-dtd\")) { \n\t\t \t\tdtdValidate = true;\n\t\t } \n\t\t else if (args[i].equals(\"-xsd\")) {\n\t\t \txsdValidate = true;\n\t\t } \n\t\t else if (args[i].equals(\"-xsdss\")) {\n\t\t if (i == args.length - 1) {\n\t\t usage();\n\t\t }\n\t\t xsdValidate = true;\n\t\t schemaSource = args[++i];\n\t\t }\n\t\t else if (args[i].equals(\"-ws\")) {\n\t ignoreWhitespace = true;\n\t } \n\t else if (args[i].startsWith(\"-co\")) {\n\t ignoreComments = true;\n\t }\n\t else if (args[i].startsWith(\"-cd\")) {\n\t putCDATAIntoText = true;\n\t } \n\t else if (args[i].startsWith(\"-e\")) {\n\t createEntityRefs = true;\n\t // ...\n\t } \n\t\t else {\n\t\t filename = args[i];\n\t\t if (i != args.length - 1) {\n\t\t usage();\n\t\t }\n\t\t }\n\t\t}\n\t\t\n\t\tif (filename == null) {\n\t\t usage();\n\t\t}\n\t \t\n // Next, add the following code to the main() method, to obtain an instance of a factory that can give us a document builder.\n DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n \n dbf.setNamespaceAware(true);\n dbf.setValidating(dtdValidate || xsdValidate);\n \n // Now, add the following code to main() to get an instance of a builder, and use it to parse the specified file.\n DocumentBuilder db = dbf.newDocumentBuilder(); \n \n // The following code configures the document builder to use the error handler defined in Handle Errors. \n OutputStreamWriter errorWriter = new OutputStreamWriter(System.err,outputEncoding);\n db.setErrorHandler(new MyErrorHandler (new PrintWriter(errorWriter, true)));\n\n \n Document doc = db.parse(new File(filename)); \n \n }",
"public void dumpAsXmlFile(String pFileName);",
"public SLDStyle(String filename) {\n \n File f = new File(filename);\n setInput(f);\n readXML();\n }",
"public static void addEmployeeToXMLFile(Employee ee) {\n try {\n DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder docBuilder = docFactory.newDocumentBuilder();\n Document doc = docBuilder.newDocument();\n\n Element rootElement;\n File xmlFile = new File(\"src/task2/employee.xml\");\n\n if (xmlFile.isFile()) {\n doc = docBuilder.parse(new FileInputStream(xmlFile));\n doc.getDocumentElement().normalize();\n rootElement = doc.getDocumentElement();\n } else {\n rootElement = doc.createElement(\"department\");\n doc.appendChild(rootElement);\n }\n\n Element employee = doc.createElement(\"employee\");\n rootElement.appendChild(employee);\n\n Element id = doc.createElement(\"id\");\n id.appendChild(doc.createTextNode(ee.getId()));\n employee.appendChild(id);\n\n Element name = doc.createElement(\"name\");\n name.appendChild(doc.createTextNode(ee.getName()));\n employee.appendChild(name);\n\n Element sex = doc.createElement(\"sex\");\n sex.appendChild(doc.createTextNode(Integer.toString(ee.sex)));\n employee.appendChild(sex);\n\n Element dateOfBirth = doc.createElement(\"dateOfBirth\");\n dateOfBirth.appendChild(doc.createTextNode(ee.dateOfBirth));\n employee.appendChild(dateOfBirth);\n\n Element salary = doc.createElement(\"salary\");\n salary.appendChild(doc.createTextNode(Double.toString(ee.salary)));\n employee.appendChild(salary);\n\n Element address = doc.createElement(\"address\");\n address.appendChild(doc.createTextNode(ee.address));\n employee.appendChild(address);\n\n Element idDepartment = doc.createElement(\"idDepartment\");\n idDepartment.appendChild(doc.createTextNode(ee.idDepartment));\n employee.appendChild(idDepartment);\n\n TransformerFactory transformerFactory = TransformerFactory.newInstance();\n Transformer transformer = transformerFactory.newTransformer();\n DOMSource source = new DOMSource(doc);\n StreamResult result = new StreamResult(xmlFile);\n transformer.transform(source, result);\n System.out.println(\"File saved\");\n\n } catch (ParserConfigurationException | SAXException | IOException | DOMException | TransformerException e) {\n System.out.println(\"Error: \" + e.getMessage());\n }\n }",
"public SchemaValidator(@NotNull Class<?> clz, @NotNull String schemaFile)\r\n throws SAXException {\r\n File localFile = new File(\"src\" + File.separator + \"main\"\r\n + File.separator + \"resources\" + File.separator\r\n + \"model\" + File.separator + \"xsd\"\r\n + File.separator + schemaFile);\r\n Schema schema;\r\n if (localFile.exists()) {\r\n try {\r\n schema = createSchema(new FileInputStream(localFile));\r\n } catch (FileNotFoundException e) {\r\n schema = createSchema(clz.getResourceAsStream(\r\n \"/model/xsd/\" + schemaFile));\r\n }\r\n } else {\r\n schema = createSchema(clz.getResourceAsStream(\r\n \"/model/xsd/\" + schemaFile));\r\n }\r\n validator = schema.newValidator();\r\n validator.setFeature(\r\n \"http://apache.org/xml/features/validation/schema-full-checking\",\r\n true);\r\n }",
"private void importXMLSchema(Import bpelImport) {\n \tString namespace = bpelImport.getNamespace();\n \tString location = bpelImport.getLocation();\n \tif (location == null) {\n mLogger.severe(\"Unable to import schema document, import location is null \" + bpelImport);\n throw new XMLParseVisitorException(\"Unable to import schema document, import location is null \" + bpelImport);\n }\n \t\n \tLazyImportVisitorService vService = (LazyImportVisitorService) getVisitorService();\n \tBPELParseContext bpelParseContext = vService.getBPELParseContext();\n \tIXSDResolver xsdResolver = bpelParseContext.getXSDResolver();\n \t\n \tif(xsdResolver == null) {\n \t\tmLogger.severe(\"Unable to import schema document, must specify XSD Resolver \" + bpelImport);\n throw new XMLParseVisitorException(\"Unable to import schema document, must specify XSD Resolver \" + bpelImport);\n \t}\n \t\n \ttry {\n\t \tXMLSchema xsdDocument = xsdResolver.resolve(namespace, location);\n\t \n\t if(xsdDocument == null) {\n\t \tmLogger.severe(\"Unable to import schema document for import \" + bpelImport);\n\t throw new XMLParseVisitorException(\"Unable to import schema document for import \" + bpelImport);\t\n\t }\n\t \n\t bpelImport.setImportedObject(xsdDocument);\n \n } catch (EInsightModelException e) {\n mLogger.log(Level.SEVERE, \"Unable to import xsd document for import \" + bpelImport, e);\n throw new XMLParseVisitorException(\"Unable to import xsd document for import \" + bpelImport, e);\n }\n \n }",
"@Test\n public void testInsertServiceVersion() {\n File file = new File(\"./wsdlfile/M1.wsdl\") ;\n String wsdlclob = FileUtil.file2String(file, \"utf-8\");\n int result = OracleDBUtil.insertServiceVersion(new ServiceVersion(7, 1, \"./wsdlfile/M1.wsdl\",wsdlclob ));\n assertEquals(1, result);\n }",
"public static Schematic schematicFromAtoms(File file) {\n try {\n FileInputStream fileInputStream = new FileInputStream(file);\n ObjectInputStream objectInputStream = new ObjectInputStream(fileInputStream);\n\n return schematicFromJson(objectInputStream.readUTF());\n\n } catch (IOException err) {\n err.printStackTrace();\n return null;\n }\n }",
"private void upgradeWsdlDocumentIfNeeded(InputSource source) {\n DocumentBuilder documentParser = XmlUtil.getDocumentBuilder();\n\n // install our problem handler as document parser's error handler\n documentParser.setErrorHandler(problemHandler.asSaxErrorHandler());\n\n // parse content\n Document document;\n try {\n document = documentParser.parse(source);\n // halt on parse errors\n if (problemHandler.getProblemCount() > 0)\n return;\n }\n catch (IOException e) {\n Problem problem = new Problem(Problem.LEVEL_ERROR, \"document is not readable\", e);\n problem.setResource(latestImportURI);\n problemHandler.add(problem);\n return;\n }\n catch (SAXException e) {\n Problem problem = new Problem(Problem.LEVEL_ERROR, \"document contains invalid xml\", e);\n problem.setResource(latestImportURI);\n problemHandler.add(problem);\n return;\n }\n finally {\n // reset error handling behavior\n documentParser.setErrorHandler(null);\n }\n\n // check whether the wsdl document requires upgrading\n if (hasUpgradableElements(document)) {\n try {\n // create wsdl upgrader\n Transformer wsdlUpgrader = getWsdlUpgradeTemplates().newTransformer();\n\n // install our problem handler as transformer's error listener\n wsdlUpgrader.setErrorListener(problemHandler.asTraxErrorListener());\n\n // upgrade into memory stream\n ByteArrayOutputStream resultStream = new ByteArrayOutputStream();\n wsdlUpgrader.transform(new DOMSource(document), new StreamResult(resultStream));\n\n // replace existing source with upgraded document\n source.setByteStream(new ByteArrayInputStream(resultStream.toByteArray()));\n\n log.debug(\"upgraded wsdl document: \" + latestImportURI);\n }\n catch (TransformerException e) {\n Problem problem = new Problem(Problem.LEVEL_ERROR, \"wsdl upgrade failed\", e);\n problem.setResource(latestImportURI);\n problemHandler.add(problem);\n }\n }\n else {\n // if the source is a stream, reset it\n InputStream sourceStream = source.getByteStream();\n if (sourceStream != null) {\n try {\n sourceStream.reset();\n }\n catch (IOException e) {\n log.error(\"could not reset source stream: \" + latestImportURI, e);\n }\n }\n }\n }",
"public org.apache.xmlbeans.XmlString xgetXsd()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(XSD$2, 0);\n return target;\n }\n }",
"public void transformToSecondXml();",
"public void setUpNewXMLFile(File file) {\n\t\tPrintWriter pw = null;\n\t\ttry {\n\t\t\tpw = new PrintWriter(file, \"UTF-8\");\n\t\t\tpw.write(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?>\\n\");\n\t\t\tpw.write(\"<\" + defaultDocumentElement + \">\\n\");\n\t\t\tpw.write(\"</\" + defaultDocumentElement + \">\\n\");\n\t\t\tpw.close();\n\t\t} catch(Exception e) {\n\t\t\tSystem.out.println(\"Error creating new XML File.\");\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tpw.close();\n\t\t\t} catch(Exception e) {\n\t\t\t\t//Seems like it was already closed.\n\t\t\t}\n\t\t}\n\t}",
"private boolean validate() {\r\n\t\ttry {\r\n\t\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\r\n\t\t\t//validate the schema\r\n\t\t\tdbFactory.setValidating(true);\r\n\t\t\tDocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\r\n\t\t\t//handling errors\r\n\t\t\tdBuilder.setErrorHandler(new ErrorHandler() {\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void error(SAXParseException arg0) throws SAXException {\r\n\t\t\t\t\tthrow new SAXException();\r\n\t\t\t\t}\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void fatalError(SAXParseException arg0) throws SAXException {\r\n\t\t\t\t\tthrow new SAXException();\r\n\t\t\t\t}\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void warning(SAXParseException arg0) throws SAXException {\r\n\t\t\t\t\tthrow new SAXException();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t});\r\n\t\t\tFile file = new File(tempPath);\r\n\t\t\tFileInputStream fis = new FileInputStream(file);\r\n\t\t\tDocument doc = dBuilder.parse(fis);\r\n\t\t\t//if it matches the schema then parse the temp xml file into the original xml file\r\n\t\t\tdoc.setXmlStandalone(true);\r\n\t\t\tTransformerFactory tf = TransformerFactory.newInstance();\r\n\t\t\tTransformer transformer = tf.newTransformer();\r\n\t\t\ttransformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\r\n\t\t\ttransformer.setOutputProperty(OutputKeys.ENCODING, \"ISO-8859-1\");\r\n\t\t\tDOMImplementation domImp = doc.getImplementation();\r\n\t\t\tDocumentType docType = domImp.createDocumentType(\"doctype\", \"SYSTEM\", new File(path).getName().substring(0, new File(path).getName().length() - 4) + \".dtd\");\r\n\t\t\ttransformer.setOutputProperty(OutputKeys.DOCTYPE_SYSTEM, docType.getSystemId());\r\n\t\t\tDOMSource domSource = new DOMSource(doc);\r\n\t\t\tFileOutputStream fos = new FileOutputStream(new File(path));\r\n\t\t\ttransformer.transform(domSource, new StreamResult(fos));\r\n\t\t\tfos.close();\r\n\t\t\tfis.close();\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tcatch (ParserConfigurationException e) {\r\n\t\t\ttry {\r\n\t\t\t\tthrow new ParserConfigurationException();\r\n\t\t\t} catch (RuntimeException | ParserConfigurationException err) {\r\n\t\t\t}\r\n\t\t} catch (TransformerConfigurationException e) {\r\n\t\t\ttry {\r\n\t\t\t\tthrow new TransformerConfigurationException();\r\n\t\t\t} catch (RuntimeException | TransformerConfigurationException err) {\r\n\t\t\t}\r\n\t\t} catch (TransformerException e) {\r\n\t\t\ttry {\r\n\t\t\t\tthrow new TransformerException(e);\r\n\t\t\t} catch (RuntimeException | TransformerException err) {\r\n\t\t\t}\r\n\t\t} catch (SAXException e) {\r\n\t\t\ttry {\r\n\t\t\t\tthrow new SAXException();\r\n\t\t\t} catch (RuntimeException | SAXException err) {\r\n\t\t\t}\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\ttry {\r\n\t\t\t\tthrow new IOException();\r\n\t\t\t} catch (RuntimeException | IOException err) {\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"@Override\n\tpublic Definitions convertToXmlBean(String xmlstring) {\n\t\tfinal InputStream stream = string2InputStream(xmlstring);\n\t\ttry {\n\t\t\tfinal JAXBContext jaxbContext = JAXBContext.newInstance(Definitions.class);\n\n\t\t\tfinal Unmarshaller jaxbUnmarshaller = jaxbContext.createUnmarshaller();\n\t\t\tjaxbUnmarshaller.setSchema(getToscaSchema());\n\n\t\t\treturn (Definitions) jaxbUnmarshaller.unmarshal(stream);\n\t\t} catch (final JAXBException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}",
"public static void addToXML(CD c)\n\t\t\tthrows TransformerException, FileNotFoundException, SAXException, IOException {\n\t\ttry {\n\t\t\tDocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();\n\t\t\tDocumentBuilder docBuilder = docFactory.newDocumentBuilder();\n\n\t\t\t// root elements\n\t\t\tDocument doc = docBuilder.newDocument();\n\t\t\tElement rootElement;\n\t\t\tString filePath = \"src/Part2_Ex3/CD.xml\";\n\t\t\tFile xmlFile = new File(filePath);\n\n\t\t\tif (xmlFile.isFile()) {\n\t\t\t\tdoc = docBuilder.parse(new FileInputStream(xmlFile));\n\t\t\t\tdoc.getDocumentElement().normalize();\n\t\t\t\trootElement = doc.getDocumentElement();\n\t\t\t} else {\n\t\t\t\trootElement = doc.createElement(\"CDs\");\n\t\t\t\tdoc.appendChild(rootElement);\n\t\t\t}\n\n\t\t\tElement cd = doc.createElement(\"CD\");\n\t\t\trootElement.appendChild(cd);\n\n\t\t\t// id element\n\t\t\tElement id = doc.createElement(\"id\");\n\t\t\tid.appendChild(doc.createTextNode(Integer.toString(c.getId())));\n\t\t\tcd.appendChild(id);\n\t\t\t\n\t\t\t// name\n\t\t\tElement name = doc.createElement(\"name\");\n\t\t\tname.appendChild(doc.createTextNode(c.getName()));\n\t\t\tcd.appendChild(name);\n\n\t\t\t//singer\n\t\t\tElement singer = doc.createElement(\"singer\");\n\t\t\tsinger.appendChild((doc.createTextNode(c.getSinger())));\n\t\t\tcd.appendChild(singer);\n\n\t\t\t// number songs\n\t\t\tElement numbersongs = doc.createElement(\"numbersongs\");\n\t\t\tnumbersongs.appendChild(doc.createTextNode(Integer.toString(c.getNumOfSong())));\n\t\t\tcd.appendChild(numbersongs);\n\t\t\t\n\t\t\t// price\n\t\t\tElement price = doc.createElement(\"price\");\n\t\t\tprice.appendChild(doc.createTextNode(Double.toString(c.getPrice())));\n\t\t\tcd.appendChild(price);\n\t\t\t\n\t\t\t// write the content into xml file\n\t\t\tTransformerFactory transformerFactory = TransformerFactory.newInstance();\n\t\t\tTransformer transformer = transformerFactory.newTransformer();\n\t\t\tDOMSource source = new DOMSource(doc);\n\t\t\tStreamResult result = new StreamResult(xmlFile);\n\t\t\ttransformer.transform(source, result);\n\n\t\t\tSystem.out.println(\"Add completed !\");\n\n\t\t} catch (ParserConfigurationException pce) {\n\t\t\tSystem.out.println(\"Cannot insert new CD. Error: \" + pce.getMessage());\n\t\t}\n\t}",
"public void createXml(String fileName) { \n\t\tElement root = this.document.createElement(\"TSETInfoTables\"); \n\t\tthis.document.appendChild(root); \n\t\tElement metaDB = this.document.createElement(\"metaDB\"); \n\t\tElement table = this.document.createElement(\"table\"); \n\t\t\n\t\tElement column = this.document.createElement(\"column\");\n\t\tElement columnName = this.document.createElement(\"columnName\");\n\t\tcolumnName.appendChild(this.document.createTextNode(\"test\")); \n\t\tcolumn.appendChild(columnName); \n\t\tElement columnType = this.document.createElement(\"columnType\"); \n\t\tcolumnType.appendChild(this.document.createTextNode(\"INTEGER\")); \n\t\tcolumn.appendChild(columnType); \n\t\t\n\t\ttable.appendChild(column);\n\t\tmetaDB.appendChild(table);\n\t\troot.appendChild(metaDB); \n\t\t\n\t\tTransformerFactory tf = TransformerFactory.newInstance(); \n\t\ttry { \n\t\t\tTransformer transformer = tf.newTransformer(); \n\t\t\tDOMSource source = new DOMSource(document); \n\t\t\ttransformer.setOutputProperty(OutputKeys.ENCODING, \"gb2312\"); \n\t\t\ttransformer.setOutputProperty(OutputKeys.INDENT, \"yes\"); \n\t\t\tPrintWriter pw = new PrintWriter(new FileOutputStream(fileName)); \n\t\t\tStreamResult result = new StreamResult(pw); \n\t\t\ttransformer.transform(source, result); \n\t\t\tlogger.info(\"Generate XML file success!\");\n\t\t} catch (TransformerConfigurationException e) { \n\t\t\tlogger.error(e.getMessage());\n\t\t} catch (IllegalArgumentException e) { \n\t\t\tlogger.error(e.getMessage());\n\t\t} catch (FileNotFoundException e) { \n\t\t\tlogger.error(e.getMessage());\n\t\t} catch (TransformerException e) { \n\t\t\tlogger.error(e.getMessage());\n\t\t} \n\t}",
"public static Document getDocument(File file, boolean namespaceAware) {\r\n Document document = null;\r\n try {\r\n // parse an XML document into a DOM tree\r\n DocumentBuilderFactory documentFactory = DocumentBuilderFactory\r\n .newInstance();\r\n documentFactory.setNamespaceAware(namespaceAware);\r\n // documentFactory.setAttribute(\"http://java.sun.com/xml/jaxp/properties/schemaLanguage\",\r\n // \"http://www.w3.org/2001/XMLSchema\");\r\n DocumentBuilder parser = documentFactory.newDocumentBuilder();\r\n\r\n document = parser.parse(file);\r\n } catch (Exception e) {\r\n log.error(\"getDocument error: \", e);\r\n }\r\n return document;\r\n }",
"public static void validateXMLSchema(String xsdPath, Source xml) throws IllegalArgumentException\n {\n try\n {\n SchemaFactory factory = SchemaFactory.newInstance(\"http://www.w3.org/2001/XMLSchema\");\n Schema schema = factory.newSchema(new File(xsdPath));\n Validator validator = schema.newValidator();\n validator.validate(xml);\n }\n catch (SAXException | IOException e)\n {\n throw new IllegalArgumentException(\"Invalid Entity XML\", e);\n }\n }",
"public String getSchema(String fileContent) {\n\t\ttry (StringReader reader = new StringReader(fileContent)) {\n\t\t\tSAXBuilder sax = new SAXBuilder();\n\t\t\tDocument doc = sax.build(reader);\n\t\t\treturn getSchema(doc);\n\t\t} catch (JDOMException | IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}",
"private void renameOriginalDomainConfig() {\n File domXml = getDASDomainXML();\n movedDomXml = new File(domXml.getParentFile(), \"domain.xml.moved\");\n report(\"moved-domain\", domXml.renameTo(movedDomXml));\n }",
"public void loadData(){\n try {\n entities.clear();\n\n DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder documentBuilder = documentBuilderFactory.newDocumentBuilder();\n Document document = documentBuilder.parse(fileName);\n\n Node root = document.getDocumentElement();\n NodeList nodeList = root.getChildNodes();\n for (int i = 0; i < nodeList.getLength(); i++){\n Node node = nodeList.item(i);\n if (node.getNodeType() == Node.ELEMENT_NODE){\n Element element = (Element) node;\n Department department = createDepartmentFromElement(element);\n try{\n super.save(department);\n } catch (RepositoryException | ValidatorException e) {\n e.printStackTrace();\n }\n }\n }\n } catch (SAXException | ParserConfigurationException | IOException e) {\n e.printStackTrace();\n }\n }",
"public static void editXML(String dim) throws Exception {\n\t\tDocumentBuilderFactory builderFactory = DocumentBuilderFactory.newInstance();\n\t\tDocumentBuilder builder = builderFactory.newDocumentBuilder();\n\t\tString fileName = PropertiesFile.getInstance().getProperty(\"input_qualifier\")+ \".xml\";\n\t\tDocument xmlDocument = builder.parse(new File(getFullyQualifiedFileName(fileName)));\n\n\t\t/*\n\t\t * String expression = \"ConfigFramework/DCDpp/Servers/Server/Zone\"; XPath xPath\n\t\t * = XPathFactory.newInstance().newXPath(); NodeList nodeList = (NodeList)\n\t\t * xPath.compile(expression).evaluate(xmlDocument, XPathConstants.NODESET); Node\n\t\t * zone = nodeList.item(0);\n\t\t * \n\t\t * String zoneRange = zone.getTextContent(); zoneRange = zoneRange.substring(0,\n\t\t * zoneRange.lastIndexOf(\".\") + 1) + dim; zone.setTextContent(zoneRange);\n\t\t */\n\n\t\tTransformerFactory transformerFactory = TransformerFactory.newInstance();\n\t\tTransformer transformer = transformerFactory.newTransformer();\n\t\tDOMSource domSource = new DOMSource(xmlDocument);\n\t\tString s = getOutputFolderName() + \"/\" + fileName;\n\t\tStreamResult streamResult = new StreamResult(new File(s));\n\t\ttransformer.transform(domSource, streamResult);\n\n\t}",
"private String writeValidXMLFile() throws java.io.IOException {\n String sFileName = \"\\\\testfile1.xml\";\n FileWriter oOut = new FileWriter(sFileName);\n\n oOut.write(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?>\");\n oOut.write(\"<paramFile fileCode=\\\"06010101\\\">\");\n oOut.write(\"<plot>\");\n oOut.write(\"<timesteps>3</timesteps>\");\n oOut.write(\"<yearsPerTimestep>1</yearsPerTimestep>\");\n oOut.write(\"<randomSeed>1</randomSeed>\");\n oOut.write(\"<plot_lenX>200.0</plot_lenX>\");\n oOut.write(\"<plot_lenY>200.0</plot_lenY>\");\n oOut.write(\"<plot_precip_mm_yr>1150.645781</plot_precip_mm_yr>\");\n oOut.write(\"<plot_temp_C>12.88171785</plot_temp_C>\");\n oOut.write(\"<plot_latitude>55.37</plot_latitude>\");\n oOut.write(\"</plot>\");\n oOut.write(\"<trees>\");\n oOut.write(\"<tr_speciesList>\");\n oOut.write(\"<tr_species speciesName=\\\"Species_1\\\" />\");\n oOut.write(\"<tr_species speciesName=\\\"Species_2\\\" />\");\n oOut.write(\"<tr_species speciesName=\\\"Species_3\\\" />\");\n oOut.write(\"<tr_species speciesName=\\\"Species_4\\\" />\");\n oOut.write(\"<tr_species speciesName=\\\"Species_5\\\" />\");\n oOut.write(\"</tr_speciesList>\");\n oOut.write(\"<tr_seedDiam10Cm>0.1</tr_seedDiam10Cm>\");\n oOut.write(\"<tr_minAdultDBH>\");\n oOut.write(\"<tr_madVal species=\\\"Species_1\\\">10.0</tr_madVal>\");\n oOut.write(\"<tr_madVal species=\\\"Species_2\\\">10.0</tr_madVal>\");\n oOut.write(\"<tr_madVal species=\\\"Species_3\\\">10.0</tr_madVal>\");\n oOut.write(\"<tr_madVal species=\\\"Species_4\\\">10.0</tr_madVal>\");\n oOut.write(\"<tr_madVal species=\\\"Species_5\\\">10.0</tr_madVal>\");\n oOut.write(\"</tr_minAdultDBH>\");\n oOut.write(\"<tr_maxSeedlingHeight>\");\n oOut.write(\"<tr_mshVal species=\\\"Species_1\\\">1.35</tr_mshVal>\");\n oOut.write(\"<tr_mshVal species=\\\"Species_2\\\">1.35</tr_mshVal>\");\n oOut.write(\"<tr_mshVal species=\\\"Species_3\\\">1.35</tr_mshVal>\");\n oOut.write(\"<tr_mshVal species=\\\"Species_4\\\">1.35</tr_mshVal>\");\n oOut.write(\"<tr_mshVal species=\\\"Species_5\\\">1.35</tr_mshVal>\");\n oOut.write(\"</tr_maxSeedlingHeight>\");\n oOut.write(\"<tr_sizeClasses>\");\n oOut.write(\"<tr_sizeClass sizeKey=\\\"s1.0\\\"/>\");\n oOut.write(\"<tr_sizeClass sizeKey=\\\"s10.0\\\"/>\");\n oOut.write(\"<tr_sizeClass sizeKey=\\\"s20.0\\\"/>\");\n oOut.write(\"<tr_sizeClass sizeKey=\\\"s30.0\\\"/>\");\n oOut.write(\"<tr_sizeClass sizeKey=\\\"s40.0\\\"/>\");\n oOut.write(\"<tr_sizeClass sizeKey=\\\"s50.0\\\"/>\");\n oOut.write(\"</tr_sizeClasses>\");\n oOut.write(\"<tr_initialDensities>\");\n oOut.write(\"<tr_idVals whatSpecies=\\\"Species_1\\\">\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s20.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s30.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s40.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s50.0\\\">250</tr_initialDensity>\");\n oOut.write(\"</tr_idVals>\");\n oOut.write(\"<tr_idVals whatSpecies=\\\"Species_1\\\">\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s20.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s30.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s40.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s50.0\\\">250</tr_initialDensity>\");\n oOut.write(\"</tr_idVals>\");\n oOut.write(\"<tr_idVals whatSpecies=\\\"Species_2\\\">\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s20.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s30.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s40.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s50.0\\\">250</tr_initialDensity>\");\n oOut.write(\"</tr_idVals>\");\n oOut.write(\"<tr_idVals whatSpecies=\\\"Species_3\\\">\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s20.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s30.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s40.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s50.0\\\">250</tr_initialDensity>\");\n oOut.write(\"</tr_idVals>\");\n oOut.write(\"<tr_idVals whatSpecies=\\\"Species_4\\\">\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s20.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s30.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s40.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s50.0\\\">250</tr_initialDensity>\");\n oOut.write(\"</tr_idVals>\");\n oOut.write(\"<tr_idVals whatSpecies=\\\"Species_5\\\">\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s20.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s30.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s40.0\\\">250</tr_initialDensity>\");\n oOut.write(\"<tr_initialDensity sizeClass=\\\"s50.0\\\">250</tr_initialDensity>\");\n oOut.write(\"</tr_idVals>\");\n oOut.write(\"</tr_initialDensities>\");\n oOut.write(\"</trees>\");\n oOut.write(\"<allometry>\");\n oOut.write(\"<tr_canopyHeight>\");\n oOut.write(\"<tr_chVal species=\\\"Species_1\\\">39.48</tr_chVal>\");\n oOut.write(\"<tr_chVal species=\\\"Species_2\\\">39.48</tr_chVal>\");\n oOut.write(\"<tr_chVal species=\\\"Species_3\\\">39.48</tr_chVal>\");\n oOut.write(\"<tr_chVal species=\\\"Species_4\\\">39.48</tr_chVal>\");\n oOut.write(\"<tr_chVal species=\\\"Species_5\\\">39.48</tr_chVal>\");\n oOut.write(\"</tr_canopyHeight>\");\n oOut.write(\"<tr_stdAsympCrownRad>\");\n oOut.write(\"<tr_sacrVal species=\\\"Species_1\\\">0.0549</tr_sacrVal>\");\n oOut.write(\"<tr_sacrVal species=\\\"Species_2\\\">0.0549</tr_sacrVal>\");\n oOut.write(\"<tr_sacrVal species=\\\"Species_3\\\">0.0549</tr_sacrVal>\");\n oOut.write(\"<tr_sacrVal species=\\\"Species_4\\\">0.0549</tr_sacrVal>\");\n oOut.write(\"<tr_sacrVal species=\\\"Species_5\\\">0.0549</tr_sacrVal>\");\n oOut.write(\"</tr_stdAsympCrownRad>\");\n oOut.write(\"<tr_stdCrownRadExp>\");\n oOut.write(\"<tr_screVal species=\\\"Species_1\\\">1.0</tr_screVal>\");\n oOut.write(\"<tr_screVal species=\\\"Species_2\\\">1.0</tr_screVal>\");\n oOut.write(\"<tr_screVal species=\\\"Species_3\\\">1.0</tr_screVal>\");\n oOut.write(\"<tr_screVal species=\\\"Species_4\\\">1.0</tr_screVal>\");\n oOut.write(\"<tr_screVal species=\\\"Species_5\\\">1.0</tr_screVal>\");\n oOut.write(\"</tr_stdCrownRadExp>\");\n oOut.write(\"<tr_conversionDiam10ToDBH>\");\n oOut.write(\"<tr_cdtdVal species=\\\"Species_1\\\">0.8008</tr_cdtdVal>\");\n oOut.write(\"<tr_cdtdVal species=\\\"Species_2\\\">0.8008</tr_cdtdVal>\");\n oOut.write(\"<tr_cdtdVal species=\\\"Species_3\\\">0.8008</tr_cdtdVal>\");\n oOut.write(\"<tr_cdtdVal species=\\\"Species_4\\\">0.8008</tr_cdtdVal>\");\n oOut.write(\"<tr_cdtdVal species=\\\"Species_5\\\">0.8008</tr_cdtdVal>\");\n oOut.write(\"</tr_conversionDiam10ToDBH>\");\n oOut.write(\"<tr_interceptDiam10ToDBH>\");\n oOut.write(\"<tr_idtdVal species=\\\"Species_1\\\">0</tr_idtdVal>\");\n oOut.write(\"<tr_idtdVal species=\\\"Species_2\\\">0</tr_idtdVal>\");\n oOut.write(\"<tr_idtdVal species=\\\"Species_3\\\">0</tr_idtdVal>\");\n oOut.write(\"<tr_idtdVal species=\\\"Species_4\\\">0</tr_idtdVal>\");\n oOut.write(\"<tr_idtdVal species=\\\"Species_5\\\">0</tr_idtdVal>\");\n oOut.write(\"</tr_interceptDiam10ToDBH>\");\n oOut.write(\"<tr_stdAsympCrownHt>\");\n oOut.write(\"<tr_sachVal species=\\\"Species_1\\\">0.389</tr_sachVal>\");\n oOut.write(\"<tr_sachVal species=\\\"Species_2\\\">0.389</tr_sachVal>\");\n oOut.write(\"<tr_sachVal species=\\\"Species_3\\\">0.389</tr_sachVal>\");\n oOut.write(\"<tr_sachVal species=\\\"Species_4\\\">0.389</tr_sachVal>\");\n oOut.write(\"<tr_sachVal species=\\\"Species_5\\\">0.389</tr_sachVal>\");\n oOut.write(\"</tr_stdAsympCrownHt>\");\n oOut.write(\"<tr_stdCrownHtExp>\");\n oOut.write(\"<tr_scheVal species=\\\"Species_1\\\">1.0</tr_scheVal>\");\n oOut.write(\"<tr_scheVal species=\\\"Species_2\\\">1.0</tr_scheVal>\");\n oOut.write(\"<tr_scheVal species=\\\"Species_3\\\">1.0</tr_scheVal>\");\n oOut.write(\"<tr_scheVal species=\\\"Species_4\\\">1.0</tr_scheVal>\");\n oOut.write(\"<tr_scheVal species=\\\"Species_5\\\">1.0</tr_scheVal>\");\n oOut.write(\"</tr_stdCrownHtExp>\");\n oOut.write(\"<tr_slopeOfHeight-Diam10>\");\n oOut.write(\"<tr_sohdVal species=\\\"Species_1\\\">0.03418</tr_sohdVal>\");\n oOut.write(\"<tr_sohdVal species=\\\"Species_2\\\">0.03418</tr_sohdVal>\");\n oOut.write(\"<tr_sohdVal species=\\\"Species_3\\\">0.03418</tr_sohdVal>\");\n oOut.write(\"<tr_sohdVal species=\\\"Species_4\\\">0.03418</tr_sohdVal>\");\n oOut.write(\"<tr_sohdVal species=\\\"Species_5\\\">0.03418</tr_sohdVal>\");\n oOut.write(\"</tr_slopeOfHeight-Diam10>\");\n oOut.write(\"<tr_slopeOfAsymHeight>\");\n oOut.write(\"<tr_soahVal species=\\\"Species_1\\\">0.0299</tr_soahVal>\");\n oOut.write(\"<tr_soahVal species=\\\"Species_2\\\">0.0299</tr_soahVal>\");\n oOut.write(\"<tr_soahVal species=\\\"Species_3\\\">0.0299</tr_soahVal>\");\n oOut.write(\"<tr_soahVal species=\\\"Species_4\\\">0.0299</tr_soahVal>\");\n oOut.write(\"<tr_soahVal species=\\\"Species_5\\\">0.0299</tr_soahVal>\");\n oOut.write(\"</tr_slopeOfAsymHeight>\");\n oOut.write(\"<tr_whatSeedlingHeightDiam>\");\n oOut.write(\"<tr_wsehdVal species=\\\"Species_1\\\">0</tr_wsehdVal>\");\n oOut.write(\"<tr_wsehdVal species=\\\"Species_2\\\">0</tr_wsehdVal>\");\n oOut.write(\"<tr_wsehdVal species=\\\"Species_3\\\">0</tr_wsehdVal>\");\n oOut.write(\"<tr_wsehdVal species=\\\"Species_4\\\">0</tr_wsehdVal>\");\n oOut.write(\"<tr_wsehdVal species=\\\"Species_5\\\">0</tr_wsehdVal>\");\n oOut.write(\"</tr_whatSeedlingHeightDiam>\");\n oOut.write(\"<tr_whatSaplingHeightDiam>\");\n oOut.write(\"<tr_wsahdVal species=\\\"Species_1\\\">0</tr_wsahdVal>\");\n oOut.write(\"<tr_wsahdVal species=\\\"Species_2\\\">0</tr_wsahdVal>\");\n oOut.write(\"<tr_wsahdVal species=\\\"Species_3\\\">0</tr_wsahdVal>\");\n oOut.write(\"<tr_wsahdVal species=\\\"Species_4\\\">0</tr_wsahdVal>\");\n oOut.write(\"<tr_wsahdVal species=\\\"Species_5\\\">0</tr_wsahdVal>\");\n oOut.write(\"</tr_whatSaplingHeightDiam>\");\n oOut.write(\"<tr_whatAdultHeightDiam>\");\n oOut.write(\"<tr_wahdVal species=\\\"Species_1\\\">0</tr_wahdVal>\");\n oOut.write(\"<tr_wahdVal species=\\\"Species_2\\\">0</tr_wahdVal>\");\n oOut.write(\"<tr_wahdVal species=\\\"Species_3\\\">0</tr_wahdVal>\");\n oOut.write(\"<tr_wahdVal species=\\\"Species_4\\\">0</tr_wahdVal>\");\n oOut.write(\"<tr_wahdVal species=\\\"Species_5\\\">0</tr_wahdVal>\");\n oOut.write(\"</tr_whatAdultHeightDiam>\");\n oOut.write(\"<tr_whatAdultCrownRadDiam>\");\n oOut.write(\"<tr_wacrdVal species=\\\"Species_1\\\">0</tr_wacrdVal>\");\n oOut.write(\"<tr_wacrdVal species=\\\"Species_2\\\">0</tr_wacrdVal>\");\n oOut.write(\"<tr_wacrdVal species=\\\"Species_3\\\">0</tr_wacrdVal>\");\n oOut.write(\"<tr_wacrdVal species=\\\"Species_4\\\">0</tr_wacrdVal>\");\n oOut.write(\"<tr_wacrdVal species=\\\"Species_5\\\">0</tr_wacrdVal>\");\n oOut.write(\"</tr_whatAdultCrownRadDiam>\");\n oOut.write(\"<tr_whatAdultCrownHeightHeight>\");\n oOut.write(\"<tr_wachhVal species=\\\"Species_1\\\">0</tr_wachhVal>\");\n oOut.write(\"<tr_wachhVal species=\\\"Species_2\\\">0</tr_wachhVal>\");\n oOut.write(\"<tr_wachhVal species=\\\"Species_3\\\">0</tr_wachhVal>\");\n oOut.write(\"<tr_wachhVal species=\\\"Species_4\\\">0</tr_wachhVal>\");\n oOut.write(\"<tr_wachhVal species=\\\"Species_5\\\">0</tr_wachhVal>\");\n oOut.write(\"</tr_whatAdultCrownHeightHeight>\");\n oOut.write(\"<tr_whatSaplingCrownRadDiam>\");\n oOut.write(\"<tr_wscrdVal species=\\\"Species_1\\\">0</tr_wscrdVal>\");\n oOut.write(\"<tr_wscrdVal species=\\\"Species_2\\\">0</tr_wscrdVal>\");\n oOut.write(\"<tr_wscrdVal species=\\\"Species_3\\\">0</tr_wscrdVal>\");\n oOut.write(\"<tr_wscrdVal species=\\\"Species_4\\\">0</tr_wscrdVal>\");\n oOut.write(\"<tr_wscrdVal species=\\\"Species_5\\\">0</tr_wscrdVal>\");\n oOut.write(\"</tr_whatSaplingCrownRadDiam>\");\n oOut.write(\"<tr_whatSaplingCrownHeightHeight>\");\n oOut.write(\"<tr_wschhVal species=\\\"Species_1\\\">0</tr_wschhVal>\");\n oOut.write(\"<tr_wschhVal species=\\\"Species_2\\\">0</tr_wschhVal>\");\n oOut.write(\"<tr_wschhVal species=\\\"Species_3\\\">0</tr_wschhVal>\");\n oOut.write(\"<tr_wschhVal species=\\\"Species_4\\\">0</tr_wschhVal>\");\n oOut.write(\"<tr_wschhVal species=\\\"Species_5\\\">0</tr_wschhVal>\");\n oOut.write(\"</tr_whatSaplingCrownHeightHeight>\");\n oOut.write(\"</allometry>\");\n oOut.write(\"<behaviorList>\");\n oOut.write(\"<behavior>\");\n oOut.write(\"<behaviorName>QualityVigorClassifier</behaviorName>\");\n oOut.write(\"<version>1</version>\");\n oOut.write(\"<listPosition>1</listPosition>\");\n oOut.write(\"<applyTo species=\\\"Species_2\\\" type=\\\"Adult\\\"/>\");\n oOut.write(\"<applyTo species=\\\"Species_3\\\" type=\\\"Adult\\\"/>\");\n oOut.write(\"<applyTo species=\\\"Species_4\\\" type=\\\"Adult\\\"/>\");\n oOut.write(\"<applyTo species=\\\"Species_5\\\" type=\\\"Adult\\\"/>\");\n oOut.write(\"</behavior>\");\n oOut.write(\"</behaviorList>\");\n oOut.write(\"<QualityVigorClassifier1>\");\n oOut.write(\"<ma_classifierInitialConditions>\");\n oOut.write(\"<ma_classifierSizeClass>\");\n oOut.write(\"<ma_classifierBeginDBH>10</ma_classifierBeginDBH>\");\n oOut.write(\"<ma_classifierEndDBH>20</ma_classifierEndDBH>\");\n oOut.write(\"<ma_classifierProbVigorous>\");\n oOut.write(\"<ma_cpvVal species=\\\"Species_2\\\">0.78</ma_cpvVal>\");\n oOut.write(\"<ma_cpvVal species=\\\"Species_3\\\">0.88</ma_cpvVal>\");\n oOut.write(\"<ma_cpvVal species=\\\"Species_4\\\">0</ma_cpvVal>\");\n oOut.write(\"<ma_cpvVal species=\\\"Species_5\\\">0.61</ma_cpvVal>\");\n oOut.write(\"</ma_classifierProbVigorous>\");\n oOut.write(\"<ma_classifierProbSawlog>\");\n oOut.write(\"<ma_cpsVal species=\\\"Species_2\\\">0.33</ma_cpsVal>\");\n oOut.write(\"<ma_cpsVal species=\\\"Species_3\\\">0.64</ma_cpsVal>\");\n oOut.write(\"<ma_cpsVal species=\\\"Species_4\\\">1</ma_cpsVal>\");\n oOut.write(\"<ma_cpsVal species=\\\"Species_5\\\">0.55</ma_cpsVal>\");\n oOut.write(\"</ma_classifierProbSawlog>\");\n oOut.write(\"</ma_classifierSizeClass>\");\n oOut.write(\"<ma_classifierSizeClass>\");\n oOut.write(\"<ma_classifierBeginDBH>20</ma_classifierBeginDBH>\");\n oOut.write(\"<ma_classifierEndDBH>30</ma_classifierEndDBH>\");\n oOut.write(\"<ma_classifierProbVigorous>\");\n oOut.write(\"<ma_cpvVal species=\\\"Species_2\\\">0.33</ma_cpvVal>\");\n oOut.write(\"<ma_cpvVal species=\\\"Species_3\\\">0.81</ma_cpvVal>\");\n oOut.write(\"<ma_cpvVal species=\\\"Species_4\\\">0.64</ma_cpvVal>\");\n oOut.write(\"<ma_cpvVal species=\\\"Species_5\\\">0.32</ma_cpvVal>\");\n oOut.write(\"</ma_classifierProbVigorous>\");\n oOut.write(\"<ma_classifierProbSawlog>\");\n oOut.write(\"<ma_cpsVal species=\\\"Species_2\\\">0.32</ma_cpsVal>\");\n oOut.write(\"<ma_cpsVal species=\\\"Species_3\\\">0.69</ma_cpsVal>\");\n oOut.write(\"<ma_cpsVal species=\\\"Species_4\\\">0.33</ma_cpsVal>\");\n oOut.write(\"<ma_cpsVal species=\\\"Species_5\\\">0.58</ma_cpsVal>\");\n oOut.write(\"</ma_classifierProbSawlog>\");\n oOut.write(\"</ma_classifierSizeClass>\");\n oOut.write(\"<ma_classifierSizeClass>\");\n oOut.write(\"<ma_classifierBeginDBH>30</ma_classifierBeginDBH>\");\n oOut.write(\"<ma_classifierEndDBH>40</ma_classifierEndDBH>\");\n oOut.write(\"<ma_classifierProbVigorous>\");\n oOut.write(\"<ma_cpvVal species=\\\"Species_2\\\">0.34</ma_cpvVal>\");\n oOut.write(\"<ma_cpvVal species=\\\"Species_3\\\">0.57</ma_cpvVal>\");\n oOut.write(\"<ma_cpvVal species=\\\"Species_4\\\">0.26</ma_cpvVal>\");\n oOut.write(\"<ma_cpvVal species=\\\"Species_5\\\">0.46</ma_cpvVal>\");\n oOut.write(\"</ma_classifierProbVigorous>\");\n oOut.write(\"<ma_classifierProbSawlog>\");\n oOut.write(\"<ma_cpsVal species=\\\"Species_2\\\">0.13</ma_cpsVal>\");\n oOut.write(\"<ma_cpsVal species=\\\"Species_3\\\">0.36</ma_cpsVal>\");\n oOut.write(\"<ma_cpsVal species=\\\"Species_4\\\">0.66</ma_cpsVal>\");\n oOut.write(\"<ma_cpsVal species=\\\"Species_5\\\">0.45</ma_cpsVal>\");\n oOut.write(\"</ma_classifierProbSawlog>\");\n oOut.write(\"</ma_classifierSizeClass>\");\n oOut.write(\"</ma_classifierInitialConditions>\");\n oOut.write(\"<ma_classifierVigBeta0>\");\n oOut.write(\"<ma_cvb0Val species=\\\"Species_2\\\">0.1</ma_cvb0Val>\");\n oOut.write(\"<ma_cvb0Val species=\\\"Species_3\\\">0</ma_cvb0Val>\");\n oOut.write(\"<ma_cvb0Val species=\\\"Species_4\\\">0.3</ma_cvb0Val>\");\n oOut.write(\"<ma_cvb0Val species=\\\"Species_5\\\">0.4</ma_cvb0Val>\");\n oOut.write(\"</ma_classifierVigBeta0>\");\n oOut.write(\"<ma_classifierVigBeta11>\");\n oOut.write(\"<ma_cvb11Val species=\\\"Species_2\\\">0.2</ma_cvb11Val>\");\n oOut.write(\"<ma_cvb11Val species=\\\"Species_3\\\">2.35</ma_cvb11Val>\");\n oOut.write(\"<ma_cvb11Val species=\\\"Species_4\\\">0.1</ma_cvb11Val>\");\n oOut.write(\"<ma_cvb11Val species=\\\"Species_5\\\">2.43</ma_cvb11Val>\");\n oOut.write(\"</ma_classifierVigBeta11>\");\n oOut.write(\"<ma_classifierVigBeta12>\");\n oOut.write(\"<ma_cvb12Val species=\\\"Species_2\\\">-2.3</ma_cvb12Val>\");\n oOut.write(\"<ma_cvb12Val species=\\\"Species_3\\\">1.12</ma_cvb12Val>\");\n oOut.write(\"<ma_cvb12Val species=\\\"Species_4\\\">0.32</ma_cvb12Val>\");\n oOut.write(\"<ma_cvb12Val species=\\\"Species_5\\\">1.3</ma_cvb12Val>\");\n oOut.write(\"</ma_classifierVigBeta12>\");\n oOut.write(\"<ma_classifierVigBeta13>\");\n oOut.write(\"<ma_cvb13Val species=\\\"Species_2\\\">0.13</ma_cvb13Val>\");\n oOut.write(\"<ma_cvb13Val species=\\\"Species_3\\\">1</ma_cvb13Val>\");\n oOut.write(\"<ma_cvb13Val species=\\\"Species_4\\\">-0.2</ma_cvb13Val>\");\n oOut.write(\"<ma_cvb13Val species=\\\"Species_5\\\">1</ma_cvb13Val>\");\n oOut.write(\"</ma_classifierVigBeta13>\");\n oOut.write(\"<ma_classifierVigBeta14>\");\n oOut.write(\"<ma_cvb14Val species=\\\"Species_2\\\">0.9</ma_cvb14Val>\");\n oOut.write(\"<ma_cvb14Val species=\\\"Species_3\\\">0</ma_cvb14Val>\");\n oOut.write(\"<ma_cvb14Val species=\\\"Species_4\\\">-1</ma_cvb14Val>\");\n oOut.write(\"<ma_cvb14Val species=\\\"Species_5\\\">0</ma_cvb14Val>\");\n oOut.write(\"</ma_classifierVigBeta14>\");\n oOut.write(\"<ma_classifierVigBeta15>\");\n oOut.write(\"<ma_cvb15Val species=\\\"Species_2\\\">1</ma_cvb15Val>\");\n oOut.write(\"<ma_cvb15Val species=\\\"Species_3\\\">0.25</ma_cvb15Val>\");\n oOut.write(\"<ma_cvb15Val species=\\\"Species_4\\\">1</ma_cvb15Val>\");\n oOut.write(\"<ma_cvb15Val species=\\\"Species_5\\\">-0.45</ma_cvb15Val>\");\n oOut.write(\"</ma_classifierVigBeta15>\");\n oOut.write(\"<ma_classifierVigBeta16>\");\n oOut.write(\"<ma_cvb16Val species=\\\"Species_2\\\">1</ma_cvb16Val>\");\n oOut.write(\"<ma_cvb16Val species=\\\"Species_3\\\">0.36</ma_cvb16Val>\");\n oOut.write(\"<ma_cvb16Val species=\\\"Species_4\\\">0</ma_cvb16Val>\");\n oOut.write(\"<ma_cvb16Val species=\\\"Species_5\\\">0.46</ma_cvb16Val>\");\n oOut.write(\"</ma_classifierVigBeta16>\");\n oOut.write(\"<ma_classifierVigBeta2>\");\n oOut.write(\"<ma_cvb2Val species=\\\"Species_2\\\">0.01</ma_cvb2Val>\");\n oOut.write(\"<ma_cvb2Val species=\\\"Species_3\\\">0.02</ma_cvb2Val>\");\n oOut.write(\"<ma_cvb2Val species=\\\"Species_4\\\">0.04</ma_cvb2Val>\");\n oOut.write(\"<ma_cvb2Val species=\\\"Species_5\\\">0.1</ma_cvb2Val>\");\n oOut.write(\"</ma_classifierVigBeta2>\");\n oOut.write(\"<ma_classifierVigBeta3>\");\n oOut.write(\"<ma_cvb3Val species=\\\"Species_2\\\">0.001</ma_cvb3Val>\");\n oOut.write(\"<ma_cvb3Val species=\\\"Species_3\\\">0.2</ma_cvb3Val>\");\n oOut.write(\"<ma_cvb3Val species=\\\"Species_4\\\">0.3</ma_cvb3Val>\");\n oOut.write(\"<ma_cvb3Val species=\\\"Species_5\\\">0.4</ma_cvb3Val>\");\n oOut.write(\"</ma_classifierVigBeta3>\");\n oOut.write(\"<ma_classifierQualBeta0>\");\n oOut.write(\"<ma_cqb0Val species=\\\"Species_2\\\">0.25</ma_cqb0Val>\");\n oOut.write(\"<ma_cqb0Val species=\\\"Species_3\\\">1.13</ma_cqb0Val>\");\n oOut.write(\"<ma_cqb0Val species=\\\"Species_4\\\">0</ma_cqb0Val>\");\n oOut.write(\"<ma_cqb0Val species=\\\"Species_5\\\">1.15</ma_cqb0Val>\");\n oOut.write(\"</ma_classifierQualBeta0>\");\n oOut.write(\"<ma_classifierQualBeta11>\");\n oOut.write(\"<ma_cqb11Val species=\\\"Species_2\\\">0.36</ma_cqb11Val>\");\n oOut.write(\"<ma_cqb11Val species=\\\"Species_3\\\">0</ma_cqb11Val>\");\n oOut.write(\"<ma_cqb11Val species=\\\"Species_4\\\">0.4</ma_cqb11Val>\");\n oOut.write(\"<ma_cqb11Val species=\\\"Species_5\\\">0</ma_cqb11Val>\");\n oOut.write(\"</ma_classifierQualBeta11>\");\n oOut.write(\"<ma_classifierQualBeta12>\");\n oOut.write(\"<ma_cqb12Val species=\\\"Species_2\\\">0.02</ma_cqb12Val>\");\n oOut.write(\"<ma_cqb12Val species=\\\"Species_3\\\">10</ma_cqb12Val>\");\n oOut.write(\"<ma_cqb12Val species=\\\"Species_4\\\">0.3</ma_cqb12Val>\");\n oOut.write(\"<ma_cqb12Val species=\\\"Species_5\\\">30</ma_cqb12Val>\");\n oOut.write(\"</ma_classifierQualBeta12>\");\n oOut.write(\"<ma_classifierQualBeta13>\");\n oOut.write(\"<ma_cqb13Val species=\\\"Species_2\\\">0.2</ma_cqb13Val>\");\n oOut.write(\"<ma_cqb13Val species=\\\"Species_3\\\">10</ma_cqb13Val>\");\n oOut.write(\"<ma_cqb13Val species=\\\"Species_4\\\">-0.3</ma_cqb13Val>\");\n oOut.write(\"<ma_cqb13Val species=\\\"Species_5\\\">30</ma_cqb13Val>\");\n oOut.write(\"</ma_classifierQualBeta13>\");\n oOut.write(\"<ma_classifierQualBeta14>\");\n oOut.write(\"<ma_cqb14Val species=\\\"Species_2\\\">-0.2</ma_cqb14Val>\");\n oOut.write(\"<ma_cqb14Val species=\\\"Species_3\\\">10</ma_cqb14Val>\");\n oOut.write(\"<ma_cqb14Val species=\\\"Species_4\\\">-0.4</ma_cqb14Val>\");\n oOut.write(\"<ma_cqb14Val species=\\\"Species_5\\\">30</ma_cqb14Val>\");\n oOut.write(\"</ma_classifierQualBeta14>\");\n oOut.write(\"<ma_classifierQualBeta2>\");\n oOut.write(\"<ma_cqb2Val species=\\\"Species_2\\\">-0.2</ma_cqb2Val>\");\n oOut.write(\"<ma_cqb2Val species=\\\"Species_3\\\">10</ma_cqb2Val>\");\n oOut.write(\"<ma_cqb2Val species=\\\"Species_4\\\">0</ma_cqb2Val>\");\n oOut.write(\"<ma_cqb2Val species=\\\"Species_5\\\">30</ma_cqb2Val>\");\n oOut.write(\"</ma_classifierQualBeta2>\");\n oOut.write(\"<ma_classifierQualBeta3>\");\n oOut.write(\"<ma_cqb3Val species=\\\"Species_2\\\">1</ma_cqb3Val>\");\n oOut.write(\"<ma_cqb3Val species=\\\"Species_3\\\">10</ma_cqb3Val>\");\n oOut.write(\"<ma_cqb3Val species=\\\"Species_4\\\">0.1</ma_cqb3Val>\");\n oOut.write(\"<ma_cqb3Val species=\\\"Species_5\\\">30</ma_cqb3Val>\");\n oOut.write(\"</ma_classifierQualBeta3>\");\n oOut.write(\"<ma_classifierNewAdultProbVigorous>\");\n oOut.write(\"<ma_cnapvVal species=\\\"Species_2\\\">0.1</ma_cnapvVal>\");\n oOut.write(\"<ma_cnapvVal species=\\\"Species_3\\\">0.25</ma_cnapvVal>\");\n oOut.write(\"<ma_cnapvVal species=\\\"Species_4\\\">0.5</ma_cnapvVal>\");\n oOut.write(\"<ma_cnapvVal species=\\\"Species_5\\\">0.74</ma_cnapvVal>\");\n oOut.write(\"</ma_classifierNewAdultProbVigorous>\");\n oOut.write(\"<ma_classifierNewAdultProbSawlog>\");\n oOut.write(\"<ma_cnapsVal species=\\\"Species_2\\\">0.9</ma_cnapsVal>\");\n oOut.write(\"<ma_cnapsVal species=\\\"Species_3\\\">0.25</ma_cnapsVal>\");\n oOut.write(\"<ma_cnapsVal species=\\\"Species_4\\\">0.3</ma_cnapsVal>\");\n oOut.write(\"<ma_cnapsVal species=\\\"Species_5\\\">0.74</ma_cnapsVal>\");\n oOut.write(\"</ma_classifierNewAdultProbSawlog>\");\n oOut.write(\"<ma_classifierDeciduous>\");\n oOut.write(\"<ma_cdVal species=\\\"Species_2\\\">1</ma_cdVal>\");\n oOut.write(\"<ma_cdVal species=\\\"Species_3\\\">0</ma_cdVal>\");\n oOut.write(\"<ma_cdVal species=\\\"Species_4\\\">1</ma_cdVal>\");\n oOut.write(\"<ma_cdVal species=\\\"Species_5\\\">0</ma_cdVal>\");\n oOut.write(\"</ma_classifierDeciduous>\");\n oOut.write(\"</QualityVigorClassifier1>\");\n oOut.write(\"</paramFile>\");\n\n oOut.close();\n return sFileName;\n }",
"public CommandProcessXML(String filePath){\n _xmlFile = new File(filePath);\n _dbFactory = DocumentBuilderFactory.newInstance();\n }",
"private static PriceList getConvertedDocument(String sourceFolderPath, String constSourceFileName) throws ParserConfigurationException, SAXException, IOException {\n String filePath = sourceFolderPath.concat(constSourceFileName);\n File xmlFile = new File(filePath);\n DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n DocumentBuilder dBuilder = factory.newDocumentBuilder();\n Document doc = dBuilder.parse(xmlFile);\n \n \n //create the excel document Java representation\n PriceList priceList = new PriceList(doc.getDocumentElement());\n return priceList;\n }",
"@Test\n public void testCDXML() {\n \tString infile = \"src/test/resources/examples/cdx/r19.cdxml\";\n \tString outfile = \"src/test/resources/examples/cdx/r19.cml\";\n \tString reffile = \"src/test/resources/examples/cdx/r19.ref.cml\";\n \tString[] args = {\"-i \"+infile+\" -o \"+outfile};\n \ttry {\n \t\tConverterCli.main(args);\n \t} catch (Exception e) {\n \t\te.printStackTrace();\n \t\tAssert.fail(\"Should not throw \"+ e);\n \t}\n\t\tJumboTestUtils.assertEqualsIncludingFloat(\"CDXML\", \n\t\t\t\tCMLUtil.parseQuietlyToDocument(new File(outfile)).getRootElement(), \n\t\t\t\tCMLUtil.parseQuietlyToDocument(new File(reffile)).getRootElement(), \n\t\t\t\ttrue, 0.00000001);\n }",
"public static Patent transform(String patentxml) {\n\t\t patentxml = patentxml.trim();\n\t\t //patentxml = patentxml.replace(\"<!DOCTYPE math PUBLIC \\\"-//W3C//DTD MathML 3.0//EN\\\" \\\"http://www.w3.org/Math/DTD/mathml3/mathml3.dtd\\\">\", \"<!DOCTYPE PATDOC [<!ENTITY nbsp \\\" \\\" ><!ENTITY iexcl \\\"¡\\\" ><!ENTITY cent \\\"¢\\\" ><!ENTITY pound \\\"£\\\" ><!ENTITY curren \\\"¤\\\" ><!ENTITY yen \\\"¥\\\" ><!ENTITY brvbar \\\"¦\\\" ><!ENTITY sect \\\"§\\\" ><!ENTITY uml \\\"¨\\\" ><!ENTITY copy \\\"©\\\" ><!ENTITY ordf \\\"ª\\\" ><!ENTITY laquo \\\"«\\\" ><!ENTITY not \\\"¬\\\" ><!ENTITY shy \\\"­\\\" ><!ENTITY reg \\\"®\\\" ><!ENTITY macr \\\"¯\\\" ><!ENTITY deg \\\"°\\\" ><!ENTITY plusmn \\\"±\\\" ><!ENTITY sup2 \\\"²\\\" ><!ENTITY sup3 \\\"³\\\" ><!ENTITY acute \\\"´\\\" ><!ENTITY micro \\\"µ\\\" ><!ENTITY para \\\"¶\\\" ><!ENTITY middot \\\"·\\\" ><!ENTITY cedil \\\"¸\\\" ><!ENTITY sup1 \\\"¹\\\" ><!ENTITY ordm \\\"º\\\" ><!ENTITY raquo \\\"»\\\" ><!ENTITY frac14 \\\"¼\\\" ><!ENTITY frac12 \\\"½\\\" ><!ENTITY frac34 \\\"¾\\\" ><!ENTITY iquest \\\"¿\\\" ><!ENTITY Agrave \\\"À\\\" ><!ENTITY Aacute \\\"Á\\\" ><!ENTITY Acirc \\\"Â\\\" ><!ENTITY Atilde \\\"Ã\\\" ><!ENTITY Auml \\\"Ä\\\" ><!ENTITY Aring \\\"Å\\\" ><!ENTITY AElig \\\"Æ\\\" ><!ENTITY Ccedil \\\"Ç\\\" ><!ENTITY Egrave \\\"È\\\" ><!ENTITY Eacute \\\"É\\\" ><!ENTITY Ecirc \\\"Ê\\\" ><!ENTITY Euml \\\"Ë\\\" ><!ENTITY Igrave \\\"Ì\\\" ><!ENTITY Iacute \\\"Í\\\" ><!ENTITY Icirc \\\"Î\\\" ><!ENTITY Iuml \\\"Ï\\\" ><!ENTITY ETH \\\"Ð\\\" ><!ENTITY Ntilde \\\"Ñ\\\" ><!ENTITY Ograve \\\"Ò\\\" ><!ENTITY Oacute \\\"Ó\\\" ><!ENTITY Ocirc \\\"Ô\\\" ><!ENTITY Otilde \\\"Õ\\\" ><!ENTITY Ouml \\\"Ö\\\" ><!ENTITY times \\\"×\\\" ><!ENTITY Oslash \\\"Ø\\\" ><!ENTITY Ugrave \\\"Ù\\\" ><!ENTITY Uacute \\\"Ú\\\" ><!ENTITY Ucirc \\\"Û\\\" ><!ENTITY Uuml \\\"Ü\\\" ><!ENTITY Yacute \\\"Ý\\\" ><!ENTITY THORN \\\"Þ\\\" ><!ENTITY szlig \\\"ß\\\" ><!ENTITY agrave \\\"à\\\" ><!ENTITY aacute \\\"á\\\" ><!ENTITY acirc \\\"â\\\" ><!ENTITY atilde \\\"ã\\\" ><!ENTITY auml \\\"ä\\\" ><!ENTITY aring \\\"å\\\" ><!ENTITY aelig \\\"æ\\\" ><!ENTITY ccedil \\\"ç\\\" ><!ENTITY egrave \\\"è\\\" ><!ENTITY eacute \\\"é\\\" ><!ENTITY ecirc \\\"ê\\\" ><!ENTITY euml \\\"ë\\\" ><!ENTITY igrave \\\"ì\\\" ><!ENTITY iacute \\\"í\\\" ><!ENTITY icirc \\\"î\\\" ><!ENTITY iuml \\\"ï\\\" ><!ENTITY eth \\\"ð\\\" ><!ENTITY ntilde \\\"ñ\\\" ><!ENTITY ograve \\\"ò\\\" ><!ENTITY oacute \\\"ó\\\" ><!ENTITY ocirc \\\"ô\\\" ><!ENTITY otilde \\\"õ\\\" ><!ENTITY ouml \\\"ö\\\" ><!ENTITY divide \\\"÷\\\" ><!ENTITY oslash \\\"ø\\\" ><!ENTITY ugrave \\\"ù\\\" ><!ENTITY uacute \\\"ú\\\" ><!ENTITY ucirc \\\"û\\\" ><!ENTITY uuml \\\"ü\\\" ><!ENTITY yacute \\\"ý\\\" ><!ENTITY thorn \\\"þ\\\" ><!ENTITY yuml \\\"ÿ\\\" > <!ENTITY lt \\\"&#60;\\\" > <!ENTITY gt \\\">\\\" > <!ENTITY amp \\\"&#38;\\\" > <!ENTITY apos \\\"'\\\" > <!ENTITY quot \\\""\\\" > <!ENTITY OElig \\\"Œ\\\" > <!ENTITY oelig \\\"œ\\\" > <!ENTITY Scaron \\\"Š\\\" > <!ENTITY scaron \\\"š\\\" > <!ENTITY Yuml \\\"Ÿ\\\" > <!ENTITY circ \\\"ˆ\\\" > <!ENTITY tilde \\\"˜\\\" > <!ENTITY ensp \\\" \\\" > <!ENTITY emsp \\\" \\\" > <!ENTITY thinsp \\\" \\\" > <!ENTITY zwnj \\\"‌\\\" > <!ENTITY zwj \\\"‍\\\" > <!ENTITY lrm \\\"‎\\\" > <!ENTITY rlm \\\"‏\\\" > <!ENTITY ndash \\\"–\\\" > <!ENTITY mdash \\\"—\\\" > <!ENTITY lsquo \\\"‘\\\" > <!ENTITY rsquo \\\"’\\\" > <!ENTITY sbquo \\\"‚\\\" > <!ENTITY ldquo \\\"“\\\" > <!ENTITY rdquo \\\"”\\\" > <!ENTITY bdquo \\\"„\\\" > <!ENTITY dagger \\\"†\\\" > <!ENTITY Dagger \\\"‡\\\" > <!ENTITY permil \\\"‰\\\" > <!ENTITY lsaquo \\\"‹\\\" > <!ENTITY rsaquo \\\"›\\\" > <!ENTITY euro \\\"€\\\" > <!ENTITY minus \\\"+\\\" > <!ENTITY plus \\\"+\\\" > <!ENTITY equals \\\"=\\\" > <!ENTITY af \\\"\\\" > <!ENTITY it \\\"\\\" ><!ENTITY fnof \\\"ƒ\\\" > <!ENTITY Alpha \\\"Α\\\" > <!ENTITY Beta \\\"Β\\\" > <!ENTITY Gamma \\\"Γ\\\" > <!ENTITY Delta \\\"Δ\\\" > <!ENTITY Epsilon \\\"Ε\\\" > <!ENTITY Zeta \\\"Ζ\\\" > <!ENTITY Eta \\\"Η\\\" > <!ENTITY Theta \\\"Θ\\\" > <!ENTITY Iota \\\"Ι\\\" > <!ENTITY Kappa \\\"Κ\\\" > <!ENTITY Lambda \\\"Λ\\\" > <!ENTITY Mu \\\"Μ\\\" > <!ENTITY Nu \\\"Ν\\\" > <!ENTITY Xi \\\"Ξ\\\" > <!ENTITY Omicron \\\"Ο\\\" > <!ENTITY Pi \\\"Π\\\" > <!ENTITY Rho \\\"Ρ\\\" > <!ENTITY Sigma \\\"Σ\\\" > <!ENTITY Tau \\\"Τ\\\" > <!ENTITY Upsilon \\\"Υ\\\" > <!ENTITY Phi \\\"Φ\\\" > <!ENTITY Chi \\\"Χ\\\" > <!ENTITY Psi \\\"Ψ\\\" > <!ENTITY Omega \\\"Ω\\\" > <!ENTITY alpha \\\"α\\\" > <!ENTITY beta \\\"β\\\" > <!ENTITY gamma \\\"γ\\\" > <!ENTITY delta \\\"δ\\\" > <!ENTITY epsilon \\\"ε\\\" > <!ENTITY zeta \\\"ζ\\\" > <!ENTITY eta \\\"η\\\" > <!ENTITY theta \\\"θ\\\" > <!ENTITY iota \\\"ι\\\" > <!ENTITY kappa \\\"κ\\\" > <!ENTITY lambda \\\"λ\\\" > <!ENTITY mu \\\"μ\\\" > <!ENTITY nu \\\"ν\\\" > <!ENTITY xi \\\"ξ\\\" > <!ENTITY omicron \\\"ο\\\" > <!ENTITY pi \\\"π\\\" > <!ENTITY rho \\\"ρ\\\" > <!ENTITY sigmaf \\\"ς\\\" > <!ENTITY sigma \\\"σ\\\" > <!ENTITY tau \\\"τ\\\" > <!ENTITY upsilon \\\"υ\\\" > <!ENTITY phi \\\"φ\\\" > <!ENTITY chi \\\"χ\\\" > <!ENTITY psi \\\"ψ\\\" > <!ENTITY omega \\\"ω\\\" > <!ENTITY thetasym \\\"ϑ\\\" > <!ENTITY upsih \\\"ϒ\\\" > <!ENTITY piv \\\"ϖ\\\" > <!ENTITY bull \\\"•\\\" > <!ENTITY hellip \\\"…\\\" > <!ENTITY prime \\\"′\\\" > <!ENTITY Prime \\\"″\\\" > <!ENTITY oline \\\"‾\\\" > <!ENTITY frasl \\\"⁄\\\" > <!ENTITY weierp \\\"℘\\\" > <!ENTITY image \\\"ℑ\\\" > <!ENTITY real \\\"ℜ\\\" > <!ENTITY trade \\\"™\\\" > <!ENTITY alefsym \\\"ℵ\\\" > <!ENTITY larr \\\"←\\\" > <!ENTITY uarr \\\"↑\\\" > <!ENTITY rarr \\\"→\\\" > <!ENTITY darr \\\"↓\\\" > <!ENTITY harr \\\"↔\\\" > <!ENTITY crarr \\\"↵\\\" > <!ENTITY lArr \\\"⇐\\\" > <!ENTITY uArr \\\"⇑\\\" > <!ENTITY rArr \\\"⇒\\\" > <!ENTITY dArr \\\"⇓\\\" > <!ENTITY hArr \\\"⇔\\\" > <!ENTITY forall \\\"∀\\\" > <!ENTITY part \\\"∂\\\" > <!ENTITY exist \\\"∃\\\" > <!ENTITY empty \\\"∅\\\" > <!ENTITY nabla \\\"∇\\\" > <!ENTITY isin \\\"∈\\\" > <!ENTITY notin \\\"∉\\\" > <!ENTITY ni \\\"∋\\\" > <!ENTITY prod \\\"∏\\\" > <!ENTITY sum \\\"∑\\\" > <!ENTITY minus \\\"−\\\" > <!ENTITY lowast \\\"∗\\\" > <!ENTITY radic \\\"√\\\" > <!ENTITY prop \\\"∝\\\" > <!ENTITY infin \\\"∞\\\" > <!ENTITY ang \\\"∠\\\" > <!ENTITY and \\\"∧\\\" > <!ENTITY or \\\"∨\\\" > <!ENTITY cap \\\"∩\\\" > <!ENTITY cup \\\"∪\\\" > <!ENTITY int \\\"∫\\\" > <!ENTITY there4 \\\"∴\\\" > <!ENTITY sim \\\"∼\\\" > <!ENTITY cong \\\"≅\\\" > <!ENTITY asymp \\\"≈\\\" > <!ENTITY ne \\\"≠\\\" > <!ENTITY equiv \\\"≡\\\" > <!ENTITY le \\\"≤\\\" > <!ENTITY ge \\\"≥\\\" > <!ENTITY sub \\\"⊂\\\" > <!ENTITY sup \\\"⊃\\\" > <!ENTITY nsub \\\"⊄\\\" > <!ENTITY sube \\\"⊆\\\" > <!ENTITY supe \\\"⊇\\\" > <!ENTITY oplus \\\"⊕\\\" > <!ENTITY otimes \\\"⊗\\\" > <!ENTITY perp \\\"⊥\\\" > <!ENTITY sdot \\\"⋅\\\" > <!ENTITY lceil \\\"⌈\\\" > <!ENTITY rceil \\\"⌉\\\" > <!ENTITY lfloor \\\"⌊\\\" > <!ENTITY rfloor \\\"⌋\\\" > <!ENTITY lang \\\"〈\\\" > <!ENTITY rang \\\"〉\\\" > <!ENTITY loz \\\"◊\\\" > <!ENTITY spades \\\"♠\\\" > <!ENTITY clubs \\\"♣\\\" > <!ENTITY hearts \\\"♥\\\" > <!ENTITY diams \\\"♦\\\" > <!ENTITY lcub \\\"\\\" > <!ENTITY rcub \\\"\\\" > <!ENTITY excl \\\"\\\" > <!ENTITY quest \\\"\\\" > <!ENTITY num \\\"\\\" >]>\");\n\t\t //patentxml = patentxml.replace(\"<!DOCTYPE math PUBLIC \\\"-//W3C//DTD MathML 3.0//EN\\\" \\\"http://www.w3.org/Math/DTD/mathml3/mathml3.dtd\\\">\", \"<!DOCTYPE math PUBLIC \\\"-//W3C//DTD MathML 2.0//EN\\\" \\\"dtds/mathml2.dtd\\\">\");\n\t\t patentxml = patentxml.replace(\"<!DOCTYPE math PUBLIC \\\"-//W3C//DTD MathML 3.0//EN\\\" \\\"http://www.w3.org/Math/DTD/mathml3/mathml3.dtd\\\">\", \"<!DOCTYPE math PUBLIC \\\"-//W3C//DTD MathML 2.0//EN\\\" \\\"http://10.18.203.79:7070/solr/dtds/mathml2.dtd\\\">\");\n\t\t Patent parsedPatent = null;\n\t if(patentxml.contains(\"us-patent-grant\") && patentxml.contains(\"dtd-version=\\\"v4.5 2014-04-03\\\"\")==true) { // patent xml is grant in DTD v4.5\n\t\t\t\tparsedPatent = parseGrantv45(patentxml);\t\t \n\t }\n\t else if(patentxml.contains(\"us-patent-grant\") && patentxml.contains(\"dtd-version=\\\"v4.4 2013-05-16\\\"\")==true) { // patent xml is grant in DTD v4.4\n\t \tparsedPatent = parseGrantv44(patentxml);\n\t }\n\t else if(patentxml.contains(\"us-patent-grant\") && patentxml.contains(\"dtd-version=\\\"v4.3 2012-12-04\\\"\")==true) { // patent xml is grant in DTD v4.3\n\t \tparsedPatent = parseGrantv43(patentxml);\n\t }\n\t else if(patentxml.contains(\"us-patent-grant\") && patentxml.contains(\"dtd-version=\\\"v4.2 2006-08-23\\\"\")==true) { // patent xml is grant in DTD v4.2\n\t \tparsedPatent = parseGrantv42(patentxml);\n\t }\t\n\t else if(patentxml.contains(\"us-patent-grant\") && patentxml.contains(\"dtd-version=\\\"v4.1 2005-08-25\\\"\")==true) { // patent xml is grant in DTD v4.5\n\t \tparsedPatent = parseGrantv41(patentxml);\n\t }\n\t else if(patentxml.contains(\"us-patent-grant\") && patentxml.contains(\"dtd-version=\\\"v40 2004-12-02\\\"\")==true) { // patent xml is grant in DTD v4.0\n\t \tparsedPatent = parseGrantv40_041202(patentxml);\n\t }\n\t else if(patentxml.contains(\"<PATDOC DTD=\\\"2.5\\\"\")==true) { // patent xml is grant in DTD v2.5\n\t \tparsedPatent = parseGrantv25(patentxml);\t\t \t\t\t\t \n\t }\n\t else if(patentxml.contains(\"<PATDOC DTD=\\\"2.4\\\"\")==true) { // patent xml is grant in DTD v2.5\n\t \tparsedPatent = parseGrantv24(patentxml);\t\t \t\t\t\t \n\t }\n\t else if(patentxml.contains(\"us-patent-application\") && patentxml.contains(\"dtd-version=\\\"v4.4 2014-04-03\\\"\")==true) { // patent xml is application in DTD v4.4\n\t \tparsedPatent = parseApplicationv44(patentxml);\t\t \n\t }\n\t else if(patentxml.contains(\"us-patent-application\") && patentxml.contains(\"dtd-version=\\\"v4.3 2012-12-04\\\"\")==true) { // patent xml is application in DTD v4.4\n\t \tparsedPatent = parseApplicationv43(patentxml);\n\t }\n\t else if(patentxml.contains(\"us-patent-application\") && patentxml.contains(\"dtd-version=\\\"v4.2 2006-08-23\\\"\")==true) { // patent xml is application in DTD v4.4\n\t \tparsedPatent = parseApplicationv42(patentxml);\n\t }\n\t else if(patentxml.contains(\"us-patent-application\") && patentxml.contains(\"dtd-version=\\\"v4.1 2005-08-25\\\"\")==true) { // patent xml is application in DTD v4.4\n\t \tparsedPatent = parseApplicationv41(patentxml);\n\t }\t \t \n\t else if(patentxml.contains(\"us-patent-application\") && patentxml.contains(\"dtd-version=\\\"v4.0 2004-12-02\\\"\")==true) { // patent xml is application in DTD v4.4\n\t \tparsedPatent = parseApplicationv40_041202(patentxml);\n\t }\n\t else if(patentxml.contains(\"us-patent-application\") && patentxml.contains(\"dtd-version=\\\"v4.0 2004-10-28\\\"\")==true) { // patent xml is application in DTD v4.4\n\t \tparsedPatent = parseApplicationv40_041028(patentxml);\n\t }\n\t else if(patentxml.contains(\"us-patent-application\") && patentxml.contains(\"dtd-version=\\\"v4.0 2004-09-27\\\"\")==true) { // patent xml is application in DTD v4.4\n\t \tparsedPatent = parseApplicationv40_040927(patentxml);\n\t }\n\t else if(patentxml.contains(\"us-patent-application\") && patentxml.contains(\"dtd-version=\\\"v4.0 2004-09-08\\\"\")==true) { // patent xml is application in DTD v4.4\n\t \tparsedPatent = parseApplicationv40_040908(patentxml);\n\t }\n\t else if(patentxml.contains(\"us-patent-application\") && patentxml.contains(\"dtd-version=\\\"v4.0 2004-04-15\\\"\")==true) { // patent xml is application in DTD v4.4\n\t \tparsedPatent = parseApplicationv40_040415(patentxml);\n\t }\n\t else if(patentxml.indexOf(\"<!DOCTYPE patent-application-publication\")==0 && patentxml.contains(\"pap-v16-2002-01-01.dtd\")==true) { // patent xml is application in DTD v1.6\n\t \tparsedPatent = parseApplicationv16(patentxml);\n\t }\n\t\t return parsedPatent==null? new Patent():parsedPatent;\n\t }",
"private void parseWSCTaxonomyFile(String fileName) {\n\t\ttry {\n\t \tFile fXmlFile = new File(fileName);\n\t \tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n\t \tDocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n\t \tDocument doc = dBuilder.parse(fXmlFile);\n\t \tElement taxonomy = (Element) doc.getChildNodes().item(0);\n\n\t \tprocessTaxonomyChildren(null, taxonomy.getChildNodes());\n\t\t}\n\n\t\tcatch (ParserConfigurationException e) {\n System.out.println(\"Taxonomy file parsing failed...\");\n\t\t}\n\t\tcatch (SAXException e) {\n System.out.println(\"Taxonomy file parsing failed...\");\n\t\t}\n\t\tcatch (IOException e) {\n System.out.println(\"Taxonomy file parsing failed...\");\n\t\t}\n\t}",
"public static void loadStudRecsFromFile(File file) {\r\n\t\ttry {\r\n\t\t\tJAXBContext context = JAXBContext\r\n\t\t\t\t\t.newInstance(StudRecsWrapper.class);\r\n\t\t\tUnmarshaller um = context.createUnmarshaller();\r\n\t\t\t\r\n\t\t\tStudRecsWrapper wrapper = (StudRecsWrapper) um.unmarshal(file);\r\n\t\t\t\r\n\t\t\tstudRecs.clear();\r\n\t\t\tstudRecs.addAll(wrapper.getStudRecs());\r\n\t\t\tSystem.out.println(\"File loaded!\");\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(\"Cannot load file, does it exist?\");\r\n\t\t}\r\n\t}",
"void schema(String schema);",
"void schema(String schema);",
"private ArrayList<Integer> parseXSD(String s, ArrayList<Integer> match){\n String xmlversion = \"((\\\\<\\\\?)\\\\s*(xml)\\\\s+(version)\\\\s*(=)\\\\s*(\\\".*?\\\")\\\\s*(\\\\?\\\\>))\";\n String attribDefault = \"((attributeFormDefault)\\\\s*(=)\\\\s*(\\\"qualified\\\"))\";\n String elementDefault = \"((elementFormDefault)\\\\s*(=)\\\\s*(\\\"qualified\\\"))\";\n String schema1 = \"^(\\\\<(schema)\\\\s+\"+ attribDefault + \"\\\\s+\" + elementDefault + \"\\\\s*(\\\\>))$\";\n String schema2 = \"^(\\\\<(schema)\\\\s+\"+ elementDefault + \"\\\\s+\" + attribDefault + \"\\\\s*(\\\\>))$\";\n String tableName = \"^((<xsd:complexType)\\\\s+(name)\\\\s*(=)\\\\s*(\\\".+\\\")\\\\s*(\\\\>))$\";\n String name = \"(name(\\\\s*)(=)\\\\4(\\\\\\\"\\\\w+?\\\\\\\")\\\\2)\";\n String type = \"(type\\\\4\\\\5\\\\4(\\\\\\\"(xsd:)(string|int(eger)?|(date)|(decimal))\\\\\\\")\\\\2)\";\n String date = \"(\\\\2fraction\\\\4\\\\5\\\\4(\\\\\\\"\\\\d+\\\\\\\")\\\\4)\";\n String fraction = \"(\\\\2date\\\\4\\\\5\\\\4(\\\\\\\"mm\\\\/dd\\\\/(yy)?yy\\\\\\\"))\";\n String maxo = \"(maxOccurs\\\\4\\\\5(\\\\\\\"\\\\d+\\\\\\\")\\\\2)\";\n String mino = \"(minOccurs\\\\4\\\\5\\\\4(\\\\\\\"\\\\d+\\\\\\\")\\\\4)\";\n String field3 = \"^(<xsd:\\\\w+?(\\\\s+)\" + name + type + maxo + mino + \"\\\\4\" + fraction + \"?\\\\s*\" + date+ \"?\\\\s*(\\\\/>))$\";\n String field4 = \"^(<xsd:\\\\w+?(\\\\s+)\" + type + name + maxo + mino + \"\\\\4\" + fraction + \"?\\\\s*\" + date+ \"?\\\\s*(\\\\/>))$\";\n String field1 = \"^(<xsd:\\\\w+?(\\\\s+)name(\\\\s*)(=)\\\\3(\\\"\\\\w+?\\\")\\\\2(type\\\\3\\\\4\\\\3(\\\"(xsd:)(string|int(eger)?|(date)|(decimal))\\\")\\\\2)(maxOccurs\\\\3\\\\4(\\\"\\\\d+\\\")\\\\2)(minOccurs\\\\3\\\\4\\\\3(\\\"\\\\d+\\\")\\\\3)\\\\3(\\\\2fraction\\\\3\\\\4\\\\3(\\\"\\\\d+\\\")\\\\3)?\\\\s*(\\\\2date\\\\3\\\\4\\\\3(\\\"mm\\\\/dd\\\\/(yy)?yy\\\"))?\\\\s*(\\\\/>))$\";\n String field2 = \"^(<xsd:\\\\w+?(\\\\s+)name(\\\\s*)(=)\\\\3(\\\"\\\\w+?\\\")\\\\2(type\\\\3\\\\4\\\\3(\\\"(xsd:)(string|int(eger)?|(date)|(decimal))\\\")\\\\2)(minOccurs\\\\3\\\\4\\\\3(\\\"\\\\d+\\\")\\\\2)(maxOccurs\\\\3\\\\4(\\\"\\\\d+\\\")\\\\3)\\\\3(\\\\2fraction\\\\3\\\\4\\\\3(\\\"\\\\d+\\\")\\\\3)?\\\\s*(\\\\2date\\\\3\\\\4\\\\3(\\\"mm\\\\/dd\\\\/(yy)?yy\\\"))?\\\\s*(\\\\/>))$\";\n String closeTable = \"^(<\\\\/xsd:complexType>)$\";\n String closeSchema = \"^(<\\\\/schema>)$\";\n String error = \"***Error- \";\n int last = match.size()-1;\n if (match.get(last) == 1){\n// Matcher m = Pattern.compile(xmlversion).matcher(s);\n// boolean b = m.find();\n if(s.matches(xmlversion)){\n match.add(2);\n }else {\n System.out.println(error + \"xml version tag should be on the very top of xsd file.\");\n match.add(8);\n }\n } else if(match.get(last)==2){\n Matcher m = Pattern.compile(schema1).matcher(s);\n boolean b = m.find();\n if(b){\n match.add(3);\n }else {\n Matcher m2 = Pattern.compile(schema2).matcher(s);\n boolean b2 = m2.find();\n if(b2) {\n match.add(3);\n }else {\n System.out.println(error + \"no schema tag provided in xsd file.\");\n match.add(8);\n }\n }\n } else if(match.get(last)==3){\n Matcher m = Pattern.compile(tableName).matcher(s);\n boolean b = m.find();\n if(b){\n match.add(4);\n }else {\n System.out.println(error + \"no complexType provided in xsd file\");\n match.add(8);\n }\n } else if(match.get(last) == 4){\n Matcher m = Pattern.compile(field1).matcher(s);\n boolean b = m.find();\n if(b){\n if(XSDErrorChecks(m.group())){\n match.add(8);\n }else {\n match.add(4);\n }\n }else {\n Matcher m2 = Pattern.compile(field2).matcher(s);\n boolean b2 = m2.find();\n if(b2) {\n if(XSDErrorChecks(m2.group()))\n match.add(8);\n else {match.add(4);}\n }else {\n Matcher m3 = Pattern.compile(closeTable).matcher(s);\n boolean b3 = m3.find();\n if(b3){\n match.add(5);\n match.add(6);\n }else {\n if(s.matches(\"(.*)(xsd:element)(.*)\")){\n System.out.println(error + \"xsd:element syntax\");\n }else if(match.get(last)==4 && match.get(last-1)==4){\n System.out.println(error + \"complexType tag is not closed properly\");\n }else {\n System.out.println(error + \"no elements are provided under complexType in xsd file\");\n }\n match.add(8);\n }\n }\n }\n } else if(match.get(last) == 6){\n Matcher m = Pattern.compile(closeSchema).matcher(s);\n boolean b = m.find();\n if(b){\n match.add(7);\n }else {\n System.out.println(error + \"schema tag not closed in xsd file\"); match.add(8);\n }\n } else if(match.get(last) == 7){\n System.out.println(error + s + \" string is found after closed schema tag. \\n Program ignores everything after closed schema tag.\");\n match.add(8);\n }\n return match;\n }",
"FormattedSmartPlaylist readFromFile(File file) throws JAXBException, FileNotFoundException;",
"String getSchemaFile();",
"private void _writeDatatypeAware(final DatatypeAware datatyped) throws IOException {\n final String datatype = datatyped.getDatatype().getReference();\n String value = XSD.ANY_URI.equals(datatype) ? datatyped.locatorValue().toExternalForm()\n : datatyped.getValue();\n _writeKeyValue(\"value\", value);\n if (!XSD.STRING.equals(datatype)) {\n _writeKeyValue(\"datatype\", datatyped.getDatatype().toExternalForm());\n }\n }",
"@Override\n public void setXMLSchema(URL url) throws XMLPlatformException {\n if (null == url) {\n return;\n }\n if (null == documentBuilderFactory) {\n loadDocumentBuilderFactory();\n }\n try {\n documentBuilderFactory.setAttribute(SCHEMA_LANGUAGE, XML_SCHEMA);\n documentBuilderFactory.setAttribute(JAXP_SCHEMA_SOURCE, url.toString());\n } catch (IllegalArgumentException e) {\n // The attribute isn't supported so do nothing\n } catch (Exception e) {\n XMLPlatformException.xmlPlatformErrorResolvingXMLSchema(url, e);\n }\n }",
"@Override\n\tpublic void domove(String filename) {\n\n\t\tFile starfile = new File(\"D://FileRec/\" + filename);\n\n\t\tFile endDirection = new File(\"D://FileRec//docx\");\n\t\tif (!endDirection.exists()) {\n\t\t\tendDirection.mkdirs();\n\t\t}\n\n\t\tFile endfile = new File(endDirection + File.separator + starfile.getName());\n\n\t\ttry {\n\t\t\tif (starfile.renameTo(endfile)) {\n\t\t\t\tSystem.out.println(\"转移成功\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"转移失败,或许是重名\");\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"文件移动出现异常\");\n\t\t}\n\t}",
"private void loadFile() {\n String xmlContent = \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?><atomic-mass-table mass-units=\\\"u\\\" abundance-units=\\\"Mole Fraction\\\"><entry symbol=\\\"H\\\" atomic-number=\\\"1\\\"> <natural-abundance> <mass value=\\\"1.00794\\\" error=\\\"0.00007\\\" /> <isotope mass-number=\\\"1\\\"> <mass value=\\\"1.0078250319\\\" error=\\\"0.00000000006\\\" /> <abundance value=\\\"0.999885\\\" error=\\\"0.000070\\\" /> </isotope> <isotope mass-number=\\\"2\\\"> <mass value=\\\"2.0141017779\\\" error=\\\"0.0000000006\\\" /> <abundance value=\\\"0.000115\\\" error=\\\"0.000070\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"He\\\" atomic-number=\\\"2\\\"> <natural-abundance> <mass value=\\\"4.002602\\\" error=\\\"0.000002\\\" /> <isotope mass-number=\\\"3\\\"> <mass value=\\\"3.0160293094\\\" error=\\\"0.0000000012\\\" /> <abundance value=\\\"0.00000134\\\" error=\\\"0.00000003\\\" /> </isotope> <isotope mass-number=\\\"4\\\"> <mass value=\\\"4.0026032497\\\" error=\\\"0.0000000015\\\" /> <abundance value=\\\"0.99999866\\\" error=\\\"0.00000003\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Li\\\" atomic-number=\\\"3\\\"> <natural-abundance> <mass value=\\\"6.9421\\\" error=\\\"0.002\\\" /> <isotope mass-number=\\\"3\\\"> <mass value=\\\"6.0151223\\\" error=\\\"0.0000005\\\" /> <abundance value=\\\"0.0759\\\" error=\\\"0.0004\\\" /> </isotope> <isotope mass-number=\\\"7\\\"> <mass value=\\\"7.0160041\\\" error=\\\"0.0000005\\\" /> <abundance value=\\\"0.9241\\\" error=\\\"0.0004\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Be\\\" atomic-number=\\\"4\\\"> <natural-abundance> <mass value=\\\"9.012182\\\" error=\\\"0.000003\\\" /> <isotope mass-number=\\\"9\\\"> <mass value=\\\"9.0121822\\\" error=\\\"0.0000004\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"B\\\" atomic-number=\\\"5\\\"> <natural-abundance> <mass value=\\\"10.881\\\" error=\\\"0.007\\\" /> <isotope mass-number=\\\"10\\\"> <mass value=\\\"10.0129371\\\" error=\\\"0.0000003\\\" /> <abundance value=\\\"0.199\\\" error=\\\"0.007\\\" /> </isotope> <isotope mass-number=\\\"11\\\"> <mass value=\\\"11.0093055\\\" error=\\\"0.0000004\\\" /> <abundance value=\\\"0.801\\\" error=\\\"0.007\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"C\\\" atomic-number=\\\"6\\\"> <natural-abundance> <mass value=\\\"12.0107\\\" error=\\\"0.0008\\\" /> <isotope mass-number=\\\"12\\\"> <mass value=\\\"12\\\" error=\\\"0\\\" /> <abundance value=\\\"0.9893\\\" error=\\\"0.0008\\\" /> </isotope> <isotope mass-number=\\\"13\\\"> <mass value=\\\"13.003354838\\\" error=\\\"0.000000005\\\" /> <abundance value=\\\"0.0107\\\" error=\\\"0.0008\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"N\\\" atomic-number=\\\"7\\\"> <natural-abundance> <mass value=\\\"14.0067\\\" error=\\\"0.0002\\\" /> <isotope mass-number=\\\"14\\\"> <mass value=\\\"14.0030740074\\\" error=\\\"0.0000000018\\\" /> <abundance value=\\\"0.99636\\\" error=\\\"0.00020\\\" /> </isotope> <isotope mass-number=\\\"15\\\"> <mass value=\\\"15.000108973\\\" error=\\\"0.000000012\\\" /> <abundance value=\\\"0.00364\\\" error=\\\"0.00020\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"O\\\" atomic-number=\\\"8\\\"> <natural-abundance> <mass value=\\\"15.9994\\\" error=\\\"0.0003\\\" /> <isotope mass-number=\\\"16\\\"> <mass value=\\\"15.9949146223\\\" error=\\\"0.0000000025\\\" /> <abundance value=\\\"0.99759\\\" error=\\\"0.00016\\\" /> </isotope> <isotope mass-number=\\\"17\\\"> <mass value=\\\"16.99913150\\\" error=\\\"0.00000022\\\" /> <abundance value=\\\"0.00038\\\" error=\\\"0.00001\\\" /> </isotope> <isotope mass-number=\\\"18\\\"> <mass value=\\\"17.9991604\\\" error=\\\"0.0000009\\\" /> <abundance value=\\\"0.00205\\\" error=\\\"0.00014\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"F\\\" atomic-number=\\\"9\\\"> <natural-abundance> <mass value=\\\"18.9984032\\\" error=\\\"0.0000005\\\" /> <isotope mass-number=\\\"19\\\"> <mass value=\\\"18.99840320\\\" error=\\\"0.00000007\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ne\\\" atomic-number=\\\"10\\\"> <natural-abundance> <mass value=\\\"20.1797\\\" error=\\\"0.0006\\\" /> <isotope mass-number=\\\"20\\\"> <mass value=\\\"19.992440176\\\" error=\\\"0.000000003\\\" /> <abundance value=\\\"0.9048\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"21\\\"> <mass value=\\\"20.99384674\\\" error=\\\"0.00000004\\\" /> <abundance value=\\\"0.0027\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"22\\\"> <mass value=\\\"21.99138550\\\" error=\\\"0.00000025\\\" /> <abundance value=\\\"0.0925\\\" error=\\\"0.0003\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Na\\\" atomic-number=\\\"11\\\"> <natural-abundance> <mass value=\\\"22.989770\\\" error=\\\"0.000002\\\" /> <isotope mass-number=\\\"23\\\"> <mass value=\\\"22.98976966\\\" error=\\\"0.00000026\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Mg\\\" atomic-number=\\\"12\\\"> <natural-abundance> <mass value=\\\"24.3050\\\" error=\\\"0.0006\\\" /> <isotope mass-number=\\\"24\\\"> <mass value=\\\"23.98504187\\\" error=\\\"0.00000026\\\" /> <abundance value=\\\"0.7899\\\" error=\\\"0.0004\\\" /> </isotope> <isotope mass-number=\\\"25\\\"> <mass value=\\\"24.98583700\\\" error=\\\"0.00000026\\\" /> <abundance value=\\\"0.1000\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"26\\\"> <mass value=\\\"25.98259300\\\" error=\\\"0.00000026\\\" /> <abundance value=\\\"0.1101\\\" error=\\\"0.0003\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Al\\\" atomic-number=\\\"13\\\"> <natural-abundance> <mass value=\\\"26.981538\\\" error=\\\"0.000002\\\" /> <isotope mass-number=\\\"27\\\"> <mass value=\\\"26.98153841\\\" error=\\\"0.00000024\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Si\\\" atomic-number=\\\"14\\\"> <natural-abundance> <mass value=\\\"28.0855\\\" error=\\\"0.0003\\\" /> <isotope mass-number=\\\"28\\\"> <mass value=\\\"27.97692649\\\" error=\\\"0.00000022\\\" /> <abundance value=\\\"0.92223\\\" error=\\\"0.00019\\\" /> </isotope> <isotope mass-number=\\\"29\\\"> <mass value=\\\"28.97649468\\\" error=\\\"0.00000022\\\" /> <abundance value=\\\"0.04685\\\" error=\\\"0.00008\\\" /> </isotope> <isotope mass-number=\\\"30\\\"> <mass value=\\\"29.97377018\\\" error=\\\"0.00000022\\\" /> <abundance value=\\\"0.03092\\\" error=\\\"0.00011\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"P\\\" atomic-number=\\\"15\\\"> <natural-abundance> <mass value=\\\"30.973761\\\" error=\\\"0.000002\\\" /> <isotope mass-number=\\\"31\\\"> <mass value=\\\"30.97376149\\\" error=\\\"0.00000027\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"S\\\" atomic-number=\\\"16\\\"> <natural-abundance> <mass value=\\\"32.065\\\" error=\\\"0.005\\\" /> <isotope mass-number=\\\"32\\\"> <mass value=\\\"31.97207073\\\" error=\\\"0.00000015\\\" /> <abundance value=\\\"0.9499\\\" error=\\\"0.0026\\\" /> </isotope> <isotope mass-number=\\\"33\\\"> <mass value=\\\"32.97145854\\\" error=\\\"0.00000015\\\" /> <abundance value=\\\"0.0075\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"34\\\"> <mass value=\\\"33.96786687\\\" error=\\\"0.00000014\\\" /> <abundance value=\\\"0.0425\\\" error=\\\"0.0024\\\" /> </isotope> <isotope mass-number=\\\"36\\\"> <mass value=\\\"35.96708088\\\" error=\\\"0.00000025\\\" /> <abundance value=\\\"0.0001\\\" error=\\\"0.0001\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Cl\\\" atomic-number=\\\"17\\\"> <natural-abundance> <mass value=\\\"35.453\\\" error=\\\"0.002\\\" /> <isotope mass-number=\\\"35\\\"> <mass value=\\\"34.96885271\\\" error=\\\"0.00000004\\\" /> <abundance value=\\\"0.7576\\\" error=\\\"0.0010\\\" /> </isotope> <isotope mass-number=\\\"37\\\"> <mass value=\\\"36.96590260\\\" error=\\\"0.00000005\\\" /> <abundance value=\\\"0.2424\\\" error=\\\"0.0010\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ar\\\" atomic-number=\\\"18\\\"> <natural-abundance> <mass value=\\\"39.948\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"36\\\"> <mass value=\\\"35.96754626\\\" error=\\\"0.00000027\\\" /> <abundance value=\\\"0.0003365\\\" error=\\\"0.000030\\\" /> </isotope> <isotope mass-number=\\\"38\\\"> <mass value=\\\"37.9627322\\\" error=\\\"0.0000005\\\" /> <abundance value=\\\"0.000632\\\" error=\\\"0.000005\\\" /> </isotope> <isotope mass-number=\\\"40\\\"> <mass value=\\\"39.962383124\\\" error=\\\"0.000000005\\\" /> <abundance value=\\\"0.996003\\\" error=\\\"0.000030\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"K\\\" atomic-number=\\\"19\\\"> <natural-abundance> <mass value=\\\"39.0983\\\" error=\\\"0.0001\\\" /> <isotope mass-number=\\\"39\\\"> <mass value=\\\"38.9637069\\\" error=\\\"0.0000003\\\" /> <abundance value=\\\"0.932581\\\" error=\\\"0.000044\\\" /> </isotope> <isotope mass-number=\\\"40\\\"> <mass value=\\\"39.96399867\\\" error=\\\"0.00000029\\\" /> <abundance value=\\\"0.000117\\\" error=\\\"0.000001\\\" /> </isotope> <isotope mass-number=\\\"41\\\"> <mass value=\\\"40.96182597\\\" error=\\\"0.00000028\\\" /> <abundance value=\\\"0.067302\\\" error=\\\"0.000044\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ca\\\" atomic-number=\\\"20\\\"> <natural-abundance> <mass value=\\\"40.078\\\" error=\\\"0.004\\\" /> <isotope mass-number=\\\"40\\\"> <mass value=\\\"39.9625912\\\" error=\\\"0.0000003\\\" /> <abundance value=\\\"0.96941\\\" error=\\\"0.00156\\\" /> </isotope> <isotope mass-number=\\\"42\\\"> <mass value=\\\"41.9586183\\\" error=\\\"0.0000004\\\" /> <abundance value=\\\"0.00647\\\" error=\\\"0.00023\\\" /> </isotope> <isotope mass-number=\\\"43\\\"> <mass value=\\\"42.9587668\\\" error=\\\"0.0000005\\\" /> <abundance value=\\\"0.00135\\\" error=\\\"0.00010\\\" /> </isotope> <isotope mass-number=\\\"44\\\"> <mass value=\\\"43.9554811\\\" error=\\\"0.0000009\\\" /> <abundance value=\\\"0.02086\\\" error=\\\"0.00110\\\" /> </isotope> <isotope mass-number=\\\"46\\\"> <mass value=\\\"45.9536927\\\" error=\\\"0.0000025\\\" /> <abundance value=\\\"0.00004\\\" error=\\\"0.00003\\\" /> </isotope> <isotope mass-number=\\\"48\\\"> <mass value=\\\"47.952533\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.00187\\\" error=\\\"0.00021\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Sc\\\" atomic-number=\\\"21\\\"> <natural-abundance> <mass value=\\\"44.955910\\\" error=\\\"0.000008\\\" /> <isotope mass-number=\\\"45\\\"> <mass value=\\\"44.9559102\\\" error=\\\"0.0000012\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ti\\\" atomic-number=\\\"22\\\"> <natural-abundance> <mass value=\\\"47.867\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"46\\\"> <mass value=\\\"45.9526295\\\" error=\\\"0.0000012\\\" /> <abundance value=\\\"0.0825\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"47\\\"> <mass value=\\\"46.9517637\\\" error=\\\"0.0000010\\\" /> <abundance value=\\\"0.0744\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"48\\\"> <mass value=\\\"47.9479470\\\" error=\\\"0.0000010\\\" /> <abundance value=\\\"0.7372\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"49\\\"> <mass value=\\\"48.9478707\\\" error=\\\"0.0000010\\\" /> <abundance value=\\\"0.0541\\\" error=\\\"0.0002\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"V\\\" atomic-number=\\\"23\\\"> <natural-abundance> <mass value=\\\"50.9415\\\" error=\\\"0.0001\\\" /> <isotope mass-number=\\\"50\\\"> <mass value=\\\"49.9471627\\\" error=\\\"0.0000014\\\" /> <abundance value=\\\"0.00250\\\" error=\\\"0.00004\\\" /> </isotope> <isotope mass-number=\\\"51\\\"> <mass value=\\\"50.9439635\\\" error=\\\"0.0000014\\\" /> <abundance value=\\\"0.99750\\\" error=\\\"0.00004\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Cr\\\" atomic-number=\\\"24\\\"> <natural-abundance> <mass value=\\\"51.9961\\\" error=\\\"0.0006\\\" /> <isotope mass-number=\\\"50\\\"> <mass value=\\\"49.9460495\\\" error=\\\"0.0000014\\\" /> <abundance value=\\\"0.04345\\\" error=\\\"0.00013\\\" /> </isotope> <isotope mass-number=\\\"52\\\"> <mass value=\\\"51.9405115\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.83789\\\" error=\\\"0.00018\\\" /> </isotope> <isotope mass-number=\\\"53\\\"> <mass value=\\\"52.9406534\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.09501\\\" error=\\\"0.00017\\\" /> </isotope> <isotope mass-number=\\\"54\\\"> <mass value=\\\"53.938846\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.02365\\\" error=\\\"0.00007\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Mn\\\" atomic-number=\\\"25\\\"> <natural-abundance> <mass value=\\\"54.938049\\\" error=\\\"0.000009\\\" /> <isotope mass-number=\\\"55\\\"> <mass value=\\\"54.9380493\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Fe\\\" atomic-number=\\\"26\\\"> <natural-abundance> <mass value=\\\"55.845\\\" error=\\\"0.002\\\" /> <isotope mass-number=\\\"54\\\"> <mass value=\\\"53.9396147\\\" error=\\\"0.0000014\\\" /> <abundance value=\\\"0.05845\\\" error=\\\"0.00035\\\" /> </isotope> <isotope mass-number=\\\"56\\\"> <mass value=\\\"55.9349418\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.91754\\\" error=\\\"0.00036\\\" /> </isotope> <isotope mass-number=\\\"57\\\"> <mass value=\\\"56.9353983\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.02119\\\" error=\\\"0.00010\\\" /> </isotope> <isotope mass-number=\\\"58\\\"> <mass value=\\\"57.9332801\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.00282\\\" error=\\\"0.00004\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Co\\\" atomic-number=\\\"27\\\"> <natural-abundance> <mass value=\\\"58.933200\\\" error=\\\"0.000009\\\" /> <isotope mass-number=\\\"59\\\"> <mass value=\\\"59.9331999\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ni\\\" atomic-number=\\\"28\\\"> <natural-abundance> <mass value=\\\"58.6934\\\" error=\\\"0.0002\\\" /> <isotope mass-number=\\\"58\\\"> <mass value=\\\"57.9353477\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.680769\\\" error=\\\"0.000089\\\" /> </isotope> <isotope mass-number=\\\"60\\\"> <mass value=\\\"59.9307903\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.262231\\\" error=\\\"0.000077\\\" /> </isotope> <isotope mass-number=\\\"61\\\"> <mass value=\\\"60.9310601\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.011399\\\" error=\\\"0.000006\\\" /> </isotope> <isotope mass-number=\\\"62\\\"> <mass value=\\\"61.9283484\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.0036345\\\" error=\\\"0.000017\\\" /> </isotope> <isotope mass-number=\\\"64\\\"> <mass value=\\\"63.9279692\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.009256\\\" error=\\\"0.000009\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Cu\\\" atomic-number=\\\"29\\\"> <natural-abundance> <mass value=\\\"63.546\\\" error=\\\"0.003\\\" /> <isotope mass-number=\\\"63\\\"> <mass value=\\\"62.9296007\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.6915\\\" error=\\\"0.0015\\\" /> </isotope> <isotope mass-number=\\\"65\\\"> <mass value=\\\"64.9277938\\\" error=\\\"0.0000019\\\" /> <abundance value=\\\"0.3085\\\" error=\\\"0.0015\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Zn\\\" atomic-number=\\\"30\\\"> <natural-abundance> <mass value=\\\"65.409\\\" error=\\\"0.004\\\" /> <isotope mass-number=\\\"64\\\"> <mass value=\\\"63.9291461\\\" error=\\\"0.0000018\\\" /> <abundance value=\\\"0.48268\\\" error=\\\"0.00321\\\" /> </isotope> <isotope mass-number=\\\"66\\\"> <mass value=\\\"65.9260364\\\" error=\\\"0.0000017\\\" /> <abundance value=\\\"0.27975\\\" error=\\\"0.00077\\\" /> </isotope> <isotope mass-number=\\\"67\\\"> <mass value=\\\"66.9271305\\\" error=\\\"0.0000017\\\" /> <abundance value=\\\"0.04102\\\" error=\\\"0.00021\\\" /> </isotope> <isotope mass-number=\\\"68\\\"> <mass value=\\\"67.9248473\\\" error=\\\"0.0000017\\\" /> <abundance value=\\\"0.19024\\\" error=\\\"0.00123\\\" /> </isotope> <isotope mass-number=\\\"70\\\"> <mass value=\\\"69.925325\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.00631\\\" error=\\\"0.00009\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ga\\\" atomic-number=\\\"31\\\"> <natural-abundance> <mass value=\\\"69.723\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"69\\\"> <mass value=\\\"68.925581\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.60108\\\" error=\\\"0.00009\\\" /> </isotope> <isotope mass-number=\\\"71\\\"> <mass value=\\\"70.9247073\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.39892\\\" error=\\\"0.00009\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ge\\\" atomic-number=\\\"32\\\"> <natural-abundance> <mass value=\\\"72.64\\\" error=\\\"0.01\\\" /> <isotope mass-number=\\\"70\\\"> <mass value=\\\"69.9242500\\\" error=\\\"0.0000019\\\" /> <abundance value=\\\"0.2038\\\" error=\\\"0.0018\\\" /> </isotope> <isotope mass-number=\\\"72\\\"> <mass value=\\\"71.9220763\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.2731\\\" error=\\\"0.0026\\\" /> </isotope> <isotope mass-number=\\\"73\\\"> <mass value=\\\"72.9234595\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.0776\\\" error=\\\"0.0008\\\" /> </isotope> <isotope mass-number=\\\"74\\\"> <mass value=\\\"73.9211784\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.3672\\\" error=\\\"0.0015\\\" /> </isotope> <isotope mass-number=\\\"76\\\"> <mass value=\\\"75.9214029\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.0783\\\" error=\\\"0.0007\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"As\\\" atomic-number=\\\"33\\\"> <natural-abundance> <mass value=\\\"74.92160\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"75\\\"> <mass value=\\\"74.9215966\\\" error=\\\"0.0000018\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Se\\\" atomic-number=\\\"34\\\"> <natural-abundance> <mass value=\\\"78.96\\\" error=\\\"0.03\\\" /> <isotope mass-number=\\\"74\\\"> <mass value=\\\"73.9224767\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.0089\\\" error=\\\"0.0004\\\" /> </isotope> <isotope mass-number=\\\"76\\\"> <mass value=\\\"75.9192143\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.0937\\\" error=\\\"0.0029\\\" /> </isotope> <isotope mass-number=\\\"77\\\"> <mass value=\\\"76.9199148\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.0763\\\" error=\\\"0.0016\\\" /> </isotope> <isotope mass-number=\\\"78\\\"> <mass value=\\\"77.9173097\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.2377\\\" error=\\\"0.0028\\\" /> </isotope> <isotope mass-number=\\\"80\\\"> <mass value=\\\"79.9165221\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.4961\\\" error=\\\"0.0041\\\" /> </isotope> <isotope mass-number=\\\"82\\\"> <mass value=\\\"81.9167003\\\" error=\\\"0.0000022\\\" /> <abundance value=\\\"0.0873\\\" error=\\\"0.0022\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Br\\\" atomic-number=\\\"35\\\"> <natural-abundance> <mass value=\\\"79.904\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"79\\\"> <mass value=\\\"78.9183379\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.5069\\\" error=\\\"0.0007\\\" /> </isotope> <isotope mass-number=\\\"81\\\"> <mass value=\\\"80.916291\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.4931\\\" error=\\\"0.0007\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Kr\\\" atomic-number=\\\"36\\\"> <natural-abundance> <mass value=\\\"83.798\\\" error=\\\"0.002\\\" /> <isotope mass-number=\\\"78\\\"> <mass value=\\\"77.920388\\\" error=\\\"0.000007\\\" /> <abundance value=\\\"0.00355\\\" error=\\\"0.00003\\\" /> </isotope> <isotope mass-number=\\\"80\\\"> <mass value=\\\"79.916379\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.02286\\\" error=\\\"0.00010\\\" /> </isotope> <isotope mass-number=\\\"82\\\"> <mass value=\\\"81.9134850\\\" error=\\\"0.0000028\\\" /> <abundance value=\\\"0.11593\\\" error=\\\"0.00031\\\" /> </isotope> <isotope mass-number=\\\"83\\\"> <mass value=\\\"82.914137\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.11500\\\" error=\\\"0.00019\\\" /> </isotope> <isotope mass-number=\\\"84\\\"> <mass value=\\\"83.911508\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.56987\\\" error=\\\"0.00015\\\" /> </isotope> <isotope mass-number=\\\"86\\\"> <mass value=\\\"85.910615\\\" error=\\\"0.000005\\\" /> <abundance value=\\\"0.17279\\\" error=\\\"0.00041\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Rb\\\" atomic-number=\\\"37\\\"> <natural-abundance> <mass value=\\\"85.4678\\\" error=\\\"0.0003\\\" /> <isotope mass-number=\\\"85\\\"> <mass value=\\\"84.9117924\\\" error=\\\"0.0000027\\\" /> <abundance value=\\\"0.7217\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"87\\\"> <mass value=\\\"86.9091858\\\" error=\\\"0.0000028\\\" /> <abundance value=\\\"0.2783\\\" error=\\\"0.0002\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Sr\\\" atomic-number=\\\"38\\\"> <natural-abundance> <mass value=\\\"87.62\\\" error=\\\"0.01\\\" /> <isotope mass-number=\\\"84\\\"> <mass value=\\\"83.913426\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.0056\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"86\\\"> <mass value=\\\"85.9092647\\\" error=\\\"0.0000025\\\" /> <abundance value=\\\"0.0986\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"87\\\"> <mass value=\\\"86.9088816\\\" error=\\\"0.0000025\\\" /> <abundance value=\\\"0.0700\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"88\\\"> <mass value=\\\"87.9056167\\\" error=\\\"0.0000025\\\" /> <abundance value=\\\"0.8258\\\" error=\\\"0.0001\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Y\\\" atomic-number=\\\"39\\\"> <natural-abundance> <mass value=\\\"88.90585\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"89\\\"> <mass value=\\\"88.9058485\\\" error=\\\"0.0000026\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Zr\\\" atomic-number=\\\"40\\\"> <natural-abundance> <mass value=\\\"91.224\\\" error=\\\"0.002\\\" /> <isotope mass-number=\\\"90\\\"> <mass value=\\\"89.9047022\\\" error=\\\"0.0000024\\\" /> <abundance value=\\\"0.5145\\\" error=\\\"0.0040\\\" /> </isotope> <isotope mass-number=\\\"91\\\"> <mass value=\\\"90.9056434\\\" error=\\\"0.0000023\\\" /> <abundance value=\\\"0.1122\\\" error=\\\"0.0005\\\" /> </isotope> <isotope mass-number=\\\"92\\\"> <mass value=\\\"91.9050386\\\" error=\\\"0.0000023\\\" /> <abundance value=\\\"0.1715\\\" error=\\\"0.0008\\\" /> </isotope> <isotope mass-number=\\\"94\\\"> <mass value=\\\"93.9063144\\\" error=\\\"0.0000026\\\" /> <abundance value=\\\"0.1738\\\" error=\\\"0.0028\\\" /> </isotope> <isotope mass-number=\\\"96\\\"> <mass value=\\\"95.908275\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0280\\\" error=\\\"0.0009\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Nb\\\" atomic-number=\\\"41\\\"> <natural-abundance> <mass value=\\\"92.90638\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"93\\\"> <mass value=\\\"92.9063762\\\" error=\\\"0.0000024\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Mo\\\" atomic-number=\\\"42\\\"> <natural-abundance> <mass value=\\\"95.94\\\" error=\\\"0.02\\\" /> <isotope mass-number=\\\"92\\\"> <mass value=\\\"91.906810\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.1477\\\" error=\\\"0.0031\\\" /> </isotope> <isotope mass-number=\\\"94\\\"> <mass value=\\\"93.9050867\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.0923\\\" error=\\\"0.0010\\\" /> </isotope> <isotope mass-number=\\\"95\\\"> <mass value=\\\"94.9058406\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.1590\\\" error=\\\"0.0009\\\" /> </isotope> <isotope mass-number=\\\"96\\\"> <mass value=\\\"95.9046780\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.1668\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"97\\\"> <mass value=\\\"96.9030201\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.0956\\\" error=\\\"0.0005\\\" /> </isotope> <isotope mass-number=\\\"98\\\"> <mass value=\\\"97.9054069\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.2419\\\" error=\\\"0.0026\\\" /> </isotope> <isotope mass-number=\\\"100\\\"> <mass value=\\\"99.907476\\\" error=\\\"0.000006\\\" /> <abundance value=\\\"0.0967\\\" error=\\\"0.0020\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ru\\\" atomic-number=\\\"44\\\"> <natural-abundance> <mass value=\\\"101.07\\\" error=\\\"0.02\\\" /> <isotope mass-number=\\\"96\\\"> <mass value=\\\"95.907604\\\" error=\\\"0.000009\\\" /> <abundance value=\\\"0.0554\\\" error=\\\"0.0014\\\" /> </isotope> <isotope mass-number=\\\"98\\\"> <mass value=\\\"97.905287\\\" error=\\\"0.000007\\\" /> <abundance value=\\\"0.0187\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"99\\\"> <mass value=\\\"98.9059385\\\" error=\\\"0.0000022\\\" /> <abundance value=\\\".01276\\\" error=\\\"0.0014\\\" /> </isotope> <isotope mass-number=\\\"100\\\"> <mass value=\\\"99.9042189\\\" error=\\\"0.0000022\\\" /> <abundance value=\\\"0.1260\\\" error=\\\"0.0007\\\" /> </isotope> <isotope mass-number=\\\"101\\\"> <mass value=\\\"100.9055815\\\" error=\\\"0.0000022\\\" /> <abundance value=\\\"0.1706\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"102\\\"> <mass value=\\\"101.9043488\\\" error=\\\"0.0000022\\\" /> <abundance value=\\\"0.3155\\\" error=\\\"0.0014\\\" /> </isotope> <isotope mass-number=\\\"104\\\"> <mass value=\\\"103.905430\\\" error=\\\".01862\\\" /> <abundance value=\\\"0.1862\\\" error=\\\"0.0027\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Rh\\\" atomic-number=\\\"45\\\"> <natural-abundance> <mass value=\\\"1025.90550\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"103\\\"> <mass value=\\\"102.905504\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Pd\\\" atomic-number=\\\"46\\\"> <natural-abundance> <mass value=\\\"106.42\\\" error=\\\"0.01\\\" /> <isotope mass-number=\\\"102\\\"> <mass value=\\\"101.905607\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0102\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"104\\\"> <mass value=\\\"103.904034\\\" error=\\\"0.000005\\\" /> <abundance value=\\\"0.1114\\\" error=\\\"0.0008\\\" /> </isotope> <isotope mass-number=\\\"105\\\"> <mass value=\\\"104.905083\\\" error=\\\"0.000005\\\" /> <abundance value=\\\"0.2233\\\" error=\\\"0.0008\\\" /> </isotope> <isotope mass-number=\\\"106\\\"> <mass value=\\\"105.903484\\\" error=\\\"0.000005\\\" /> <abundance value=\\\"0.2733\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"108\\\"> <mass value=\\\"107.903895\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.2646\\\" error=\\\"0.0009\\\" /> </isotope> <isotope mass-number=\\\"110\\\"> <mass value=\\\"109.905153\\\" error=\\\"0.000012\\\" /> <abundance value=\\\"0.1172\\\" error=\\\"0.0009\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ag\\\" atomic-number=\\\"47\\\"> <natural-abundance> <mass value=\\\"107.8682\\\" error=\\\"0.0002\\\" /> <isotope mass-number=\\\"107\\\"> <mass value=\\\"106.905093\\\" error=\\\"0.000006\\\" /> <abundance value=\\\"0.51839\\\" error=\\\"0.00008\\\" /> </isotope> <isotope mass-number=\\\"109\\\"> <mass value=\\\"108.904756\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.48161\\\" error=\\\"0.00008\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Cd\\\" atomic-number=\\\"48\\\"> <natural-abundance> <mass value=\\\"112.411\\\" error=\\\"0.008\\\" /> <isotope mass-number=\\\"106\\\"> <mass value=\\\"105.906458\\\" error=\\\"0.000006\\\" /> <abundance value=\\\"0.0125\\\" error=\\\"0.0006\\\" /> </isotope> <isotope mass-number=\\\"108\\\"> <mass value=\\\"107.904183\\\" error=\\\"0.000006\\\" /> <abundance value=\\\"0.0089\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"110\\\"> <mass value=\\\"109.903006\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1249\\\" error=\\\"0.0018\\\" /> </isotope> <isotope mass-number=\\\"111\\\"> <mass value=\\\"110.904182\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1280\\\" error=\\\"0.0012\\\" /> </isotope> <isotope mass-number=\\\"112\\\"> <mass value=\\\"111.9027577\\\" error=\\\"0.0000030\\\" /> <abundance value=\\\"0.2413\\\" error=\\\"0.0021\\\" /> </isotope> <isotope mass-number=\\\"113\\\"> <mass value=\\\"112.9044014\\\" error=\\\"0.0000030\\\" /> <abundance value=\\\"0.1222\\\" error=\\\"0.0012\\\" /> </isotope> <isotope mass-number=\\\"114\\\"> <mass value=\\\"113.9033586\\\" error=\\\"0.0000030\\\" /> <abundance value=\\\"0.2873\\\" error=\\\"0.0042\\\" /> </isotope> <isotope mass-number=\\\"116\\\"> <mass value=\\\"115.904756\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0749\\\" error=\\\"0.0018\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"In\\\" atomic-number=\\\"49\\\"> <natural-abundance> <mass value=\\\"114.818\\\" error=\\\"0.003\\\" /> <isotope mass-number=\\\"113\\\"> <mass value=\\\"112.904062\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.0429\\\" error=\\\"0.0005\\\" /> </isotope> <isotope mass-number=\\\"115\\\"> <mass value=\\\"114.903879\\\" error=\\\"0.000040\\\" /> <abundance value=\\\"0.9571\\\" error=\\\"0.0005\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Sn\\\" atomic-number=\\\"50\\\"> <natural-abundance> <mass value=\\\"118.710\\\" error=\\\"0.007\\\" /> <isotope mass-number=\\\"112\\\"> <mass value=\\\"111.904822\\\" error=\\\"0.000005\\\" /> <abundance value=\\\"0.0097\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"114\\\"> <mass value=\\\"113.902783\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0066\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"115\\\"> <mass value=\\\"114.903347\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0034\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"116\\\"> <mass value=\\\"115.901745\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1454\\\" error=\\\"0.0009\\\" /> </isotope> <isotope mass-number=\\\"117\\\"> <mass value=\\\"116.902955\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0768\\\" error=\\\"0.0007\\\" /> </isotope> <isotope mass-number=\\\"118\\\"> <mass value=\\\"117.901608\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2422\\\" error=\\\"0.0009\\\" /> </isotope> <isotope mass-number=\\\"119\\\"> <mass value=\\\"118.903311\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0859\\\" error=\\\"0.0004\\\" /> </isotope> <isotope mass-number=\\\"120\\\"> <mass value=\\\"119.9021985\\\" error=\\\"0.0000027\\\" /> <abundance value=\\\"0.3258\\\" error=\\\"0.0009\\\" /> </isotope> <isotope mass-number=\\\"122\\\"> <mass value=\\\"121.9034411\\\" error=\\\"0.0000029\\\" /> <abundance value=\\\"0.0463\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"124\\\"> <mass value=\\\"123.9052745\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.0579\\\" error=\\\"0.0005\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Sb\\\" atomic-number=\\\"51\\\"> <natural-abundance> <mass value=\\\"121.760\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"121\\\"> <mass value=\\\"120.9038222\\\" error=\\\"0.0000026\\\" /> <abundance value=\\\"0.5721\\\" error=\\\"0.0005\\\" /> </isotope> <isotope mass-number=\\\"123\\\"> <mass value=\\\"122.9042160\\\" error=\\\"0.0000022\\\" /> <abundance value=\\\"0.4279\\\" error=\\\"0.0005\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Te\\\" atomic-number=\\\"52\\\"> <natural-abundance> <mass value=\\\"127.60\\\" error=\\\"0.03\\\" /> <isotope mass-number=\\\"120\\\"> <mass value=\\\"119.904026\\\" error=\\\"0.000011\\\" /> <abundance value=\\\"0.0009\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"122\\\"> <mass value=\\\"121.9030558\\\" error=\\\"0.0000029\\\" /> <abundance value=\\\"0.0255\\\" error=\\\"0.0012\\\" /> </isotope> <isotope mass-number=\\\"123\\\"> <mass value=\\\"122.9042711\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.0089\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"124\\\"> <mass value=\\\"123.9028188\\\" error=\\\"0.0000016\\\" /> <abundance value=\\\"0.0474\\\" error=\\\"0.0014\\\" /> </isotope> <isotope mass-number=\\\"125\\\"> <mass value=\\\"124.9044241\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.0707\\\" error=\\\"0.0015\\\" /> </isotope> <isotope mass-number=\\\"126\\\"> <mass value=\\\"125.9033049\\\" error=\\\"0.0000020\\\" /> <abundance value=\\\"0.1884\\\" error=\\\"0.0025\\\" /> </isotope> <isotope mass-number=\\\"128\\\"> <mass value=\\\"127.9044615\\\" error=\\\"0.0000019\\\" /> <abundance value=\\\"0.3174\\\" error=\\\"0.0008\\\" /> </isotope> <isotope mass-number=\\\"130\\\"> <mass value=\\\"129.9062229\\\" error=\\\"0.0000021\\\" /> <abundance value=\\\"0.3408\\\" error=\\\"0.0062\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"I\\\" atomic-number=\\\"53\\\"> <natural-abundance> <mass value=\\\"126.90447\\\" error=\\\"0.00003\\\" /> <isotope mass-number=\\\"127\\\"> <mass value=\\\"126.904468\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Xe\\\" atomic-number=\\\"54\\\"> <natural-abundance> <mass value=\\\"131.293\\\" error=\\\"0.006\\\" /> <isotope mass-number=\\\"124\\\"> <mass value=\\\"123.9058954\\\" error=\\\"0.0000021\\\" /> <abundance value=\\\"0.000952\\\" error=\\\"0.000003\\\" /> </isotope> <isotope mass-number=\\\"126\\\"> <mass value=\\\"125.904268\\\" error=\\\"0.000007\\\" /> <abundance value=\\\"0.000890\\\" error=\\\"0.000002\\\" /> </isotope> <isotope mass-number=\\\"128\\\"> <mass value=\\\"127.9035305\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.019102\\\" error=\\\"0.000008\\\" /> </isotope> <isotope mass-number=\\\"129\\\"> <mass value=\\\"128.9047799\\\" error=\\\"0.0000009\\\" /> <abundance value=\\\"0.264006\\\" error=\\\"0.000082\\\" /> </isotope> <isotope mass-number=\\\"130\\\"> <mass value=\\\"129.9035089\\\" error=\\\"0.0000011\\\" /> <abundance value=\\\"0.040710\\\" error=\\\"0.000013\\\" /> </isotope> <isotope mass-number=\\\"131\\\"> <mass value=\\\"130.9050828\\\" error=\\\"0.0000018\\\" /> <abundance value=\\\"0.212324\\\" error=\\\"0.000030\\\" /> </isotope> <isotope mass-number=\\\"132\\\"> <mass value=\\\"131.9041546\\\" error=\\\"0.0000015\\\" /> <abundance value=\\\"0.269086\\\" error=\\\"0.000033\\\" /> </isotope> <isotope mass-number=\\\"134\\\"> <mass value=\\\"133.9053945\\\" error=\\\"0.0000009\\\" /> <abundance value=\\\"0.104357\\\" error=\\\"0.000021\\\" /> </isotope> <isotope mass-number=\\\"136\\\"> <mass value=\\\"135.907220\\\" error=\\\"0.000008\\\" /> <abundance value=\\\"0.088573\\\" error=\\\"0.000044\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Cs\\\" atomic-number=\\\"55\\\"> <natural-abundance> <mass value=\\\"132.90545\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"133\\\"> <mass value=\\\"132.905447\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ba\\\" atomic-number=\\\"56\\\"> <natural-abundance> <mass value=\\\"137.327\\\" error=\\\"0.007\\\" /> <isotope mass-number=\\\"130\\\"> <mass value=\\\"129.906311\\\" error=\\\"0.000007\\\" /> <abundance value=\\\"0.00106\\\" error=\\\"0.00001\\\" /> </isotope> <isotope mass-number=\\\"132\\\"> <mass value=\\\"131.905056\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.00101\\\" error=\\\"0.00001\\\" /> </isotope> <isotope mass-number=\\\"134\\\"> <mass value=\\\"133.904504\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.02417\\\" error=\\\"0.00018\\\" /> </isotope> <isotope mass-number=\\\"135\\\"> <mass value=\\\"134.905684\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.000003\\\" error=\\\"0.00012\\\" /> </isotope> <isotope mass-number=\\\"136\\\"> <mass value=\\\"135.904571\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.07854\\\" error=\\\"0.00024\\\" /> </isotope> <isotope mass-number=\\\"137\\\"> <mass value=\\\"136.905822\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.11232\\\" error=\\\"0.00024\\\" /> </isotope> <isotope mass-number=\\\"138\\\"> <mass value=\\\"137.905242\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.71698\\\" error=\\\"0.00042\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"La\\\" atomic-number=\\\"57\\\"> <natural-abundance> <mass value=\\\"138.9055\\\" error=\\\"0.0002\\\" /> <isotope mass-number=\\\"138\\\"> <mass value=\\\"137.907108\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.00090\\\" error=\\\"0.00001\\\" /> </isotope> <isotope mass-number=\\\"139\\\"> <mass value=\\\"138.906349\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.99910\\\" error=\\\"0.00001\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ce\\\" atomic-number=\\\"58\\\"> <natural-abundance> <mass value=\\\"140.116\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"136\\\"> <mass value=\\\"135.907140\\\" error=\\\"0.000050\\\" /> <abundance value=\\\"0.00185\\\" error=\\\"0.00002\\\" /> </isotope> <isotope mass-number=\\\"138\\\"> <mass value=\\\"137.905986\\\" error=\\\"0.000011\\\" /> <abundance value=\\\"0.00251\\\" error=\\\"0.00002\\\" /> </isotope> <isotope mass-number=\\\"140\\\"> <mass value=\\\"139.905\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.88450\\\" error=\\\"0.00051\\\" /> </isotope> <isotope mass-number=\\\"142\\\"> <mass value=\\\"141.909241\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.11114\\\" error=\\\"0.00051\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Pr\\\" atomic-number=\\\"59\\\"> <natural-abundance> <mass value=\\\"140.90765\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"141\\\"> <mass value=\\\"140.907648\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Nd\\\" atomic-number=\\\"60\\\"> <natural-abundance> <mass value=\\\"144.24\\\" error=\\\"0.03\\\" /> <isotope mass-number=\\\"142\\\"> <mass value=\\\"141.907719\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.272\\\" error=\\\"0.005\\\" /> </isotope> <isotope mass-number=\\\"143\\\"> <mass value=\\\"142.909810\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.122\\\" error=\\\"0.002\\\" /> </isotope> <isotope mass-number=\\\"144\\\"> <mass value=\\\"143.910083\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.238\\\" error=\\\"0.003\\\" /> </isotope> <isotope mass-number=\\\"145\\\"> <mass value=\\\"144.912569\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.083\\\" error=\\\"0.001\\\" /> </isotope> <isotope mass-number=\\\"146\\\"> <mass value=\\\"145.913113\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.172\\\" error=\\\"0.003\\\" /> </isotope> <isotope mass-number=\\\"148\\\"> <mass value=\\\"147.916889\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.057\\\" error=\\\"0.001\\\" /> </isotope> <isotope mass-number=\\\"150\\\"> <mass value=\\\"149.920887\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.056\\\" error=\\\"0.002\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Sm\\\" atomic-number=\\\"62\\\"> <natural-abundance> <mass value=\\\"150.36\\\" error=\\\"0.03\\\" /> <isotope mass-number=\\\"144\\\"> <mass value=\\\"143.911996\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.0307\\\" error=\\\"0.0007\\\" /> </isotope> <isotope mass-number=\\\"147\\\"> <mass value=\\\"146.914894\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1499\\\" error=\\\"0.0018\\\" /> </isotope> <isotope mass-number=\\\"148\\\"> <mass value=\\\"147.914818\\\" error=\\\"0.1124\\\" /> <abundance value=\\\"0.1124\\\" error=\\\"0.0010\\\" /> </isotope> <isotope mass-number=\\\"149\\\"> <mass value=\\\"148.917180\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1382\\\" error=\\\"0.0007\\\" /> </isotope> <isotope mass-number=\\\"150\\\"> <mass value=\\\"149.917272\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0738\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"152\\\"> <mass value=\\\"151.919729\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2675\\\" error=\\\"0.0016\\\" /> </isotope> <isotope mass-number=\\\"154\\\"> <mass value=\\\"153.922206\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2275\\\" error=\\\"0.0029\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Eu\\\" atomic-number=\\\"63\\\"> <natural-abundance> <mass value=\\\"151.964\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"151\\\"> <mass value=\\\"150.919846\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.4781\\\" error=\\\"0.0006\\\" /> </isotope> <isotope mass-number=\\\"153\\\"> <mass value=\\\"152.921227\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.5219\\\" error=\\\"0.0006\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Gd\\\" atomic-number=\\\"64\\\"> <natural-abundance> <mass value=\\\"157.25\\\" error=\\\"0.03\\\" /> <isotope mass-number=\\\"152\\\"> <mass value=\\\"151.919789\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0020\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"154\\\"> <mass value=\\\"153.920862\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0218\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"155\\\"> <mass value=\\\"154.922619\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1480\\\" error=\\\"0.0012\\\" /> </isotope> <isotope mass-number=\\\"156\\\"> <mass value=\\\"155.922120\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2047\\\" error=\\\"0.0009\\\" /> </isotope> <isotope mass-number=\\\"157\\\"> <mass value=\\\"156.923957\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1565\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"158\\\"> <mass value=\\\"157.924101\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2484\\\" error=\\\"0.0007\\\" /> </isotope> <isotope mass-number=\\\"160\\\"> <mass value=\\\"159.927051\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2186\\\" error=\\\"0.0019\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Tb\\\" atomic-number=\\\"65\\\"> <natural-abundance> <mass value=\\\"158.92534\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"159\\\"> <mass value=\\\"158.925343\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Dy\\\" atomic-number=\\\"66\\\"> <natural-abundance> <mass value=\\\"162.500\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"156\\\"> <mass value=\\\"155.924278\\\" error=\\\"0.000007\\\" /> <abundance value=\\\"0.00056\\\" error=\\\"0.00003\\\" /> </isotope> <isotope mass-number=\\\"158\\\"> <mass value=\\\"157.924405\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.00095\\\" error=\\\"0.00003\\\" /> </isotope> <isotope mass-number=\\\"160\\\"> <mass value=\\\"159.925194\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.02329\\\" error=\\\"0.00018\\\" /> </isotope> <isotope mass-number=\\\"161\\\"> <mass value=\\\"160.926930\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.18889\\\" error=\\\"0.00042\\\" /> </isotope> <isotope mass-number=\\\"162\\\"> <mass value=\\\"161.926795\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.25475\\\" error=\\\"0.00036\\\" /> </isotope> <isotope mass-number=\\\"163\\\"> <mass value=\\\"162.928728\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.24896\\\" error=\\\"0.00042\\\" /> </isotope> <isotope mass-number=\\\"164\\\"> <mass value=\\\"163.929171\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.28260\\\" error=\\\"0.00054\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ho\\\" atomic-number=\\\"67\\\"> <natural-abundance> <mass value=\\\"164.93032\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"165\\\"> <mass value=\\\"164.930319\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Er\\\" atomic-number=\\\"68\\\"> <natural-abundance> <mass value=\\\"167.259\\\" error=\\\"0.003\\\" /> <isotope mass-number=\\\"162\\\"> <mass value=\\\"161.928775\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.00139\\\" error=\\\"0.00005\\\" /> </isotope> <isotope mass-number=\\\"164\\\"> <mass value=\\\"163.929197\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.01601\\\" error=\\\"0.00003\\\" /> </isotope> <isotope mass-number=\\\"166\\\"> <mass value=\\\"165.930290\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.33503\\\" error=\\\"0.00036\\\" /> </isotope> <isotope mass-number=\\\"167\\\"> <mass value=\\\"166.932046\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.22869\\\" error=\\\"0.00009\\\" /> </isotope> <isotope mass-number=\\\"168\\\"> <mass value=\\\"167.932368\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.26978\\\" error=\\\"0.00018\\\" /> </isotope> <isotope mass-number=\\\"170\\\"> <mass value=\\\"169.935461\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.14910\\\" error=\\\"0.00036\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Tm\\\" atomic-number=\\\"69\\\"> <natural-abundance> <mass value=\\\"168.93421\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"169\\\"> <mass value=\\\"168.934211\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Yb\\\" atomic-number=\\\"70\\\"> <natural-abundance> <mass value=\\\"173.04\\\" error=\\\"0.03\\\" /> <isotope mass-number=\\\"168\\\"> <mass value=\\\"167.933895\\\" error=\\\"0.000005\\\" /> <abundance value=\\\"0.0013\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"170\\\"> <mass value=\\\"169.934759\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0304\\\" error=\\\"0.0015\\\" /> </isotope> <isotope mass-number=\\\"171\\\"> <mass value=\\\"170.936323\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1428\\\" error=\\\"0.0057\\\" /> </isotope> <isotope mass-number=\\\"172\\\"> <mass value=\\\"171.936378\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2183\\\" error=\\\"0.0067\\\" /> </isotope> <isotope mass-number=\\\"173\\\"> <mass value=\\\"172.938207\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1613\\\" error=\\\"0.0027\\\" /> </isotope> <isotope mass-number=\\\"174\\\"> <mass value=\\\"173.938858\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.3183\\\" error=\\\"0.0092\\\" /> </isotope> <isotope mass-number=\\\"176\\\"> <mass value=\\\"175.942569\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1276\\\" error=\\\"0.0041\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Lu\\\" atomic-number=\\\"71\\\"> <natural-abundance> <mass value=\\\"174.967\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"175\\\"> <mass value=\\\"174.9407682\\\" error=\\\"0.0000028\\\" /> <abundance value=\\\"0.9741\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"176\\\"> <mass value=\\\"175.9426827\\\" error=\\\"0.0000028\\\" /> <abundance value=\\\"0.0259\\\" error=\\\"0.0002\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Hf\\\" atomic-number=\\\"72\\\"> <natural-abundance> <mass value=\\\"178.49\\\" error=\\\"0.02\\\" /> <isotope mass-number=\\\"174\\\"> <mass value=\\\"173.940042\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.0016\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"176\\\"> <mass value=\\\"175.941403\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0526\\\" error=\\\"0.0007\\\" /> </isotope> <isotope mass-number=\\\"177\\\"> <mass value=\\\"176.9432204\\\" error=\\\"0.0000027\\\" /> <abundance value=\\\"0.1860\\\" error=\\\"0.0009\\\" /> </isotope> <isotope mass-number=\\\"178\\\"> <mass value=\\\"177.9436981\\\" error=\\\"0.0000027\\\" /> <abundance value=\\\"0.2728\\\" error=\\\"0.0007\\\" /> </isotope> <isotope mass-number=\\\"179\\\"> <mass value=\\\"178.9488154\\\" error=\\\"0.0000027\\\" /> <abundance value=\\\"0.1362\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"180\\\"> <mass value=\\\"179.9465488\\\" error=\\\"0.0000027\\\" /> <abundance value=\\\"0.3508\\\" error=\\\"0.0016\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ta\\\" atomic-number=\\\"73\\\"> <natural-abundance> <mass value=\\\"180.9479\\\" error=\\\"0.0001\\\" /> <isotope mass-number=\\\"180\\\"> <mass value=\\\"179.947466\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.00012\\\" error=\\\"0.00002\\\" /> </isotope> <isotope mass-number=\\\"181\\\"> <mass value=\\\"180.947996\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.99988\\\" error=\\\"0.00002\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"W\\\" atomic-number=\\\"74\\\"> <natural-abundance> <mass value=\\\"183.84\\\" error=\\\"0.01\\\" /> <isotope mass-number=\\\"180\\\"> <mass value=\\\"179.946706\\\" error=\\\"0.000005\\\" /> <abundance value=\\\"0.0012\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"182\\\"> <mass value=\\\"181.948205\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.265\\\" error=\\\"0.0016\\\" /> </isotope> <isotope mass-number=\\\"183\\\"> <mass value=\\\"182.9502242\\\" error=\\\"0.0000030\\\" /> <abundance value=\\\"0.1431\\\" error=\\\"0.0004\\\" /> </isotope> <isotope mass-number=\\\"184\\\"> <mass value=\\\"183.9509323\\\" error=\\\"0.0000030\\\" /> <abundance value=\\\"0.3064\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"186\\\"> <mass value=\\\"185.954362\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2843\\\" error=\\\"0.0019\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Re\\\" atomic-number=\\\"75\\\"> <natural-abundance> <mass value=\\\"186.207\\\" error=\\\"0.001\\\" /> <isotope mass-number=\\\"185\\\"> <mass value=\\\"184.952955\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.3740\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"187\\\"> <mass value=\\\"186.9557505\\\" error=\\\"0.0000030\\\" /> <abundance value=\\\"0.6260\\\" error=\\\"0.0002\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Os\\\" atomic-number=\\\"76\\\"> <natural-abundance> <mass value=\\\"190.23\\\" error=\\\"0.03\\\" /> <isotope mass-number=\\\"184\\\"> <mass value=\\\"183.952491\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0002\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"186\\\"> <mass value=\\\"185.953838\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0159\\\" error=\\\"0.0003\\\" /> </isotope> <isotope mass-number=\\\"187\\\"> <mass value=\\\"186.9557476\\\" error=\\\"0.0000030\\\" /> <abundance value=\\\"0.0196\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"188\\\"> <mass value=\\\"187.9558357\\\" error=\\\"0.0000030\\\" /> <abundance value=\\\"0.1324\\\" error=\\\"0.0008\\\" /> </isotope> <isotope mass-number=\\\"189\\\"> <mass value=\\\"188.958145\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1615\\\" error=\\\"0.0005\\\" /> </isotope> <isotope mass-number=\\\"190\\\"> <mass value=\\\"189.958445\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2626\\\" error=\\\"0.0002\\\" /> </isotope> <isotope mass-number=\\\"192\\\"> <mass value=\\\"191.961479\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.4078\\\" error=\\\"0.0019\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Ir\\\" atomic-number=\\\"77\\\"> <natural-abundance> <mass value=\\\"192.217\\\" error=\\\"0.003\\\" /> <isotope mass-number=\\\"191\\\"> <mass value=\\\"190.960591\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.373\\\" error=\\\"0.002\\\" /> </isotope> <isotope mass-number=\\\"193\\\"> <mass value=\\\"192.962923\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.627\\\" error=\\\"0.002\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Pt\\\" atomic-number=\\\"78\\\"> <natural-abundance> <mass value=\\\"195.078\\\" error=\\\"0.002\\\" /> <isotope mass-number=\\\"190\\\"> <mass value=\\\"189.959930\\\" error=\\\"0.000007\\\" /> <abundance value=\\\"0.00014\\\" error=\\\"0.00001\\\" /> </isotope> <isotope mass-number=\\\"192\\\"> <mass value=\\\"191.961035\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.00782\\\" error=\\\"0.00007\\\" /> </isotope> <isotope mass-number=\\\"194\\\"> <mass value=\\\"193.962663\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.32967\\\" error=\\\"0.00099\\\" /> </isotope> <isotope mass-number=\\\"195\\\"> <mass value=\\\"194.964774\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.33832\\\" error=\\\"0.00010\\\" /> </isotope> <isotope mass-number=\\\"196\\\"> <mass value=\\\"195.964934\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.25242\\\" error=\\\"0.00041\\\" /> </isotope> <isotope mass-number=\\\"198\\\"> <mass value=\\\"197.967875\\\" error=\\\"0.000005\\\" /> <abundance value=\\\"0.07163\\\" error=\\\"0.00055\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Au\\\" atomic-number=\\\"79\\\"> <natural-abundance> <mass value=\\\"196.96655\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"197\\\"> <mass value=\\\"196.966551\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Hg\\\" atomic-number=\\\"80\\\"> <natural-abundance> <mass value=\\\"200.59\\\" error=\\\"0.02\\\" /> <isotope mass-number=\\\"196\\\"> <mass value=\\\"195.965814\\\" error=\\\"0.000004\\\" /> <abundance value=\\\"0.0015\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"198\\\"> <mass value=\\\"197.966752\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0997\\\" error=\\\"0.0020\\\" /> </isotope> <isotope mass-number=\\\"199\\\"> <mass value=\\\"198.968262\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1687\\\" error=\\\"0.0022\\\" /> </isotope> <isotope mass-number=\\\"200\\\"> <mass value=\\\"199.968309\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2310\\\" error=\\\"0.0019\\\" /> </isotope> <isotope mass-number=\\\"201\\\"> <mass value=\\\"200.970285\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.1318\\\" error=\\\"0.0009\\\" /> </isotope> <isotope mass-number=\\\"202\\\"> <mass value=\\\"201.970625\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2986\\\" error=\\\"0.0026\\\" /> </isotope> <isotope mass-number=\\\"204\\\"> <mass value=\\\"203.973475\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.0687\\\" error=\\\"0.0015\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Tl\\\" atomic-number=\\\"81\\\"> <natural-abundance> <mass value=\\\"204.3833\\\" error=\\\"0.0002\\\" /> <isotope mass-number=\\\"203\\\"> <mass value=\\\"202.972329\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.2952\\\" error=\\\"0.0001\\\" /> </isotope> <isotope mass-number=\\\"205\\\"> <mass value=\\\"204.974412\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.7048\\\" error=\\\"0.0001\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Pb\\\" atomic-number=\\\"82\\\"> <natural-abundance> <mass value=\\\"207.2\\\" error=\\\"0.1\\\" /> <isotope mass-number=\\\"204\\\"> <mass value=\\\"203.973028\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.014\\\" error=\\\"0.001\\\" /> </isotope> <isotope mass-number=\\\"206\\\"> <mass value=\\\"205.974449\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.241\\\" error=\\\"0.001\\\" /> </isotope> <isotope mass-number=\\\"207\\\"> <mass value=\\\"206.975880\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.221\\\" error=\\\"0.001\\\" /> </isotope> <isotope mass-number=\\\"208\\\"> <mass value=\\\"207.976636\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"0.524\\\" error=\\\"0.001\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Bi\\\" atomic-number=\\\"83\\\"> <natural-abundance> <mass value=\\\"208.98038\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"209\\\"> <mass value=\\\"208.980384\\\" error=\\\"0.000003\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Th\\\" atomic-number=\\\"90\\\"> <natural-abundance> <mass value=\\\"232.0381\\\" error=\\\"0.0001\\\" /> <isotope mass-number=\\\"232\\\"> <mass value=\\\"232.0380495\\\" error=\\\"0.0000022\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"Pa\\\" atomic-number=\\\"91\\\"> <natural-abundance> <mass value=\\\"231.03588\\\" error=\\\"0.00002\\\" /> <isotope mass-number=\\\"231\\\"> <mass value=\\\"231.03588\\\" error=\\\"0.00002\\\" /> <abundance value=\\\"1\\\" error=\\\"0\\\" /> </isotope> </natural-abundance> </entry><entry symbol=\\\"U\\\" atomic-number=\\\"92\\\"> <natural-abundance> <mass value=\\\"238.02891\\\" error=\\\"0.00003\\\" /> <isotope mass-number=\\\"234\\\"> <mass value=\\\"234.0409447\\\" error=\\\"0.0000022\\\" /> <abundance value=\\\"0.000054\\\" error=\\\"0.000005\\\" /> </isotope> <isotope mass-number=\\\"235\\\"> <mass value=\\\"235.0439222\\\" error=\\\"0.0000021\\\" /> <abundance value=\\\"0.007204\\\" error=\\\"0.000006\\\" /> </isotope> <isotope mass-number=\\\"238\\\"> <mass value=\\\"238.0507835\\\" error=\\\"0.0000022\\\" /> <abundance value=\\\"0.992742\\\" error=\\\"0.000010\\\" /> </isotope> </natural-abundance> </entry></atomic-mass-table>\";\n try {\n// this.document = DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(in);\n this.document = XMLParser.parse(xmlContent);\n } catch (Exception e) {\n throw new RuntimeException(\"Error reading atomic_system.xml.\");\n }\n\n NodeList nodes = document.getElementsByTagName(\"entry\");\n\n for (int i = 0; i < nodes.getLength(); i++) {\n Node node = nodes.item(i);\n\n String symbol = node.getAttributes().getNamedItem(\"symbol\").getNodeValue();\n\n entries.put(symbol, new Entry(node));\n }\n }",
"public void generateTypesForXSD(ParameterMetaData pmd) throws IOException\n {\n QName xmlType = pmd.getXmlType();\n if(xmlType.getNamespaceURI().equals(Constants.NS_SCHEMA_XSD) == false)\n generateType(xmlType, pmd.getJavaType(), buildElementNameMap(pmd));\n\n if (pmd.getOperationMetaData().getStyle() == Style.DOCUMENT || pmd.isInHeader())\n generateElement(pmd.getXmlName(), xmlType);\n\n //Attachment type\n if(pmd.isSwA())\n wsdl.registerNamespaceURI(Constants.NS_SWA_MIME, \"mime\");\n }",
"private static boolean verifyXML(String fileName) throws IOException {\n\t\tSchemaFactory sf = SchemaFactory.newInstance(W3C_XML_SCHEMA);\n\t\tStreamSource xsdFile = new StreamSource(ResourceUtils.getResourceStream(XSD_FILE_PATH));\n\t\tStreamSource xmlFile = new StreamSource(new File(fileName));\n\t\tboolean validXML = false;\n\t\ttry {\n\t\t\tSchema schema = sf.newSchema(xsdFile);\n\t\t\tValidator validator = schema.newValidator();\n\t\t\ttry {\n\t\t\t\tvalidator.validate(xmlFile);\n\t\t\t\tvalidXML = true;\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tif (!validXML) {\n\t\t\t\tnew IOException(\"File isn't valid against the xsd\");\n\t\t\t}\n\t\t} catch (SAXException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\txsdFile.getInputStream().close();\n\t\t\t// When using a file, this may be null\n\t\t\tif (xmlFile.getInputStream() != null)\n\t\t\t\txmlFile.getInputStream().close();\n\t\t}\n\t\treturn validXML;\n\t}",
"private void loadGeneratedSchema(SchemaDefinition sd) throws ResultException, DmcValueException, DmcNameClashException {\n \t\n \tfor(String schemaName : sd.dependsOnSchemaClasses.keySet()){\n \t\tString schemaClassName = sd.dependsOnSchemaClasses.get(schemaName);\n \t\t\n\t\t\tSchemaDefinition depSchema = isSchema(schemaName);\n\t\t\t\n\t\t\tif (depSchema == null){\n\t\t\t\tClass<?> schemaClass = null;\n\t\t\t\t\n try{\n \tschemaClass = Class.forName(schemaClassName);\n }\n catch(Exception e){\n \tResultException ex = new ResultException();\n \tex.result.addResult(Result.FATAL,\"Couldn't load generated schema class: \" + schemaClassName);\n ex.result.lastResult().moreMessages(e.getMessage());\n ex.result.lastResult().moreMessages(DebugInfo.extractTheStack(e));\n throw(ex);\n }\n\n try{\n \tdepSchema = (SchemaDefinition) schemaClass.newInstance();\n }\n catch(Exception e){\n \tResultException ex = new ResultException();\n \tex.result.addResult(Result.FATAL,\"Couldn't instantiate Java class: \" + schemaClassName);\n \tex.result.lastResult().moreMessages(\"This may be because the class doesn't have a constructor that takes no arguments.\");\n \tex.result.lastResult().moreMessages(\"Or it may be that the class isn't derived from SchemaDefinition.\");\n \tthrow(ex);\n }\n\n loadGeneratedSchema(depSchema);\n\t\t\t}\n\n \t}\n \t\n \tSchemaDefinition theInstance = sd.getInstance();\n \t\n manageSchemaInternal(theInstance);\n \n resolveReferences(theInstance,this);\n \n \t// Now that everything's resolved, we have some unfinished business to take care of\n \tIterator<AttributeDefinition> adl = sd.getAttributeDefList();\n \tresolveNameTypes(adl);\n }",
"public SchemaValidator(@NotNull InputStream schemaFile) throws SAXException {\r\n Schema schema = createSchema(schemaFile);\r\n validator = schema.newValidator();\r\n validator.setFeature(\r\n \"http://apache.org/xml/features/validation/schema-full-checking\",\r\n true);\r\n }",
"public void addDTD(ResourceLocation dtd) throws BuildException {\n if (isReference()) {\n throw noChildrenAllowed();\n }\n\n getElements().addElement(dtd);\n setChecked(false);\n }",
"public void setDTDHandler(DTDHandler handler)\n {\n if (handler == null)\n {\n handler = base;\n }\n this.dtdHandler = handler;\n }",
"public static Document fileToSciXML(File f) throws Exception {\n\t\tString name = f.getName();\n\t\tif(name.endsWith(\".xml\")) {\n\t\t\tDocument doc = new Builder().build(f);\n\t\t\t/* is this an RSC document? */\n\t\t\tif(PubXMLToSciXML.isRSCDoc(doc)) {\n\t\t\t\tPubXMLToSciXML rtsx = new PubXMLToSciXML(doc);\n\t\t\t\tdoc = rtsx.getSciXML();\n\t\t\t}\n\t\t\treturn doc;\n\t\t} else if(name.endsWith(\".html\") || name.endsWith(\".htm\")) {\n\t\t\treturn TextToSciXML.textToSciXML(HtmlCleaner.cleanHTML(FileTools.readTextFile(f)));\n\t\t} else if(name.matches(\"source_file_\\\\d+_\\\\d+.src\")) {\n\t\t\treturn TextToSciXML.bioIEAbstractToXMLDoc(FileTools.readTextFile(f));\n\t\t} else {\n\t\t\t/* Assume plain text */\n\t\t\treturn TextToSciXML.textToSciXML(FileTools.readTextFile(f));\n\t\t}\n\t}",
"@Test\n\tpublic void testValidateAgainstXSD() throws Exception {\n\t\t// This XML is for the save event type\n\t\t\t\tString fullFilePath = System.getProperty(\"user.dir\") + \"\\\\Resources\\\\TestFiles\\\\Saves\\\\SAVE_TestSaveName.xml\";\n\n\t\t\t\t// Create the XML document\n\t\t\t\tDocument document = XMLUtils.convertByteArrayToDocument(Files.readAllBytes(new File(fullFilePath).toPath()));\n\n\t\tPropertyManager.setXSDLocation(\"C:\\\\Users\\\\Daniel\\\\Documents\\\\Uni\\\\TeamProject\\\\GitCopy\\\\TeamProjectVirusGame\\\\Resources\\\\XSD/VirusGameXSD.xsd\");\n\t\t\n\t\t// Call the method in test\n\t\tXSDValidator.validateAgainstXSD(document);\n\t}",
"private void restoreOriginalDomainConfig() {\n getDASDomainXML().delete();\n report(\"restored-domain\", movedDomXml.renameTo(getDASDomainXML()));\n }",
"protected void startParsing(String xsdName, String xmlName, String outputFileName){\n boolean isValid = this.inputXSD(xsdName, xmlName, outputFileName);\n if(isValid){\n System.out.println(\"xml data is parsed successfully!\");\n }else {\n System.out.println(\"Program failed to parse xml data!\");\n }\n }",
"public void convertAll() {\n Document dom = null;\n long beginTime = System.currentTimeMillis();\n try {\n log.info(\" ############################### begin import ######################\");\n dom = XMLParser.parseXMLToDOM(context.getResourceAsStream(IMPORT_FILE));\n // XMLParser.DTDValidator(dom);\n Element element = (Element) dom.getElementsByTagName(\"import\").item(0);\n String encoding = element.getAttribute(\"encoding\");\n DataAccessor.encoding = encoding;\n\n NodeList list = element.getChildNodes();\n\n List<Data> clondSources = new ArrayList<Data>();\n for (int i = 0; i < list.getLength(); i++) {\n // datatype node\n Node itemDatatype = list.item(i);\n List<Data> sources = processDatatype(itemDatatype);\n clondSources.addAll(sources);\n }\n NodeService.insertMigrationMappings(clondSources);\n createRelationDataType(clondSources);\n linkRoot(list);\n log.info(String.format(\n \" ---->#######################finished importing [time:%s mins] #############################\",\n (System.currentTimeMillis() - beginTime) / (1000 * 60)));\n NodeService.insertProperties(properties);\n }\n catch (Exception e) {\n log.error(e.getMessage());\n e.printStackTrace();\n }\n }",
"LinkedList<Data> getDataConfirm(){\r\n FileInputStream xx = null;\r\n try {\r\n xx = new FileInputStream(\"dataConfirm.xml\");\r\n // harus diingat objek apa yang dahulu disimpan di file \r\n // program untuk membaca harus sinkron dengan program\r\n // yang dahulu digunakan untuk menyimpannya\r\n int isi;\r\n char charnya;\r\n String stringnya;\r\n // isi file dikembalikan menjadi string\r\n stringnya =\"\";\r\n while ((isi = xx.read()) != -1) {\r\n charnya= (char) isi;\r\n stringnya = stringnya + charnya;\r\n } \r\n // string isi file dikembalikan menjadi larik double\r\n return (LinkedList<Data>) xstream.fromXML(stringnya);\t \r\n }\r\n catch (Exception e){\r\n System.err.println(\"test: \"+e.getMessage());\r\n }\r\n finally{\r\n if(xx != null){\r\n try{\r\n xx.close();\r\n }\r\n catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n } \r\n } \r\n return null;\r\n \r\n }",
"public TypedFile getTypedFile(String path) {\r\n\tTypedFile f = new TypedFile(path);\r\n\tdeduceAndSetTypeOfFile(f);\r\n\treturn f;\r\n }",
"public static DSSchemaIFace readSchemaDef(String aFileName) {\n\n\t\tDSSchemaIFace schemaDef = null;\n\t\ttry {\n\t\t\tschemaDef = processDOM(DBUIUtils.readXMLFile2DOM(aFileName));\n\t\t\t// Debug\n\t\t\t/*\n\t\t\t * if (schemaDef != null) {\n\t\t\t * System.out.println(\"[\\n\"+emitXML(schemaDef)+\"\\n]\\n\"); }\n\t\t\t */\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(e);\n\t\t}\n\n\t\treturn schemaDef;\n\t}",
"@Test(expected = XMLValidationException.class)\n\tpublic void testValidateAgainstXSDInvalidXML() throws XMLParseException, XMLValidationException {\n\t\tString testXML = \"<Content>\" + \n\t\t\t\t\"\t<InvalidTagName>\" + \n\t\t\t\t\"\t\t<SaveName>TestSaveName</SaveName>\" + \n\t\t\t\t\"\t\t<Seed>TestSeed</Seed>\" + \n\t\t\t\t\"\t\t<DayNumber>42</DayNumber>\" + \n\t\t\t\t\"\t</InvalidTagName>\" + \n\t\t\t\t\"</Content>\";\n\t\t\n\t\t// Convert the testXML to a byte array for the method in test\n\t\tbyte[] xmlBytes = testXML.getBytes();\n\t\t\n\t\t// Call the method in test\n\t\tDocument document = XMLUtils.convertByteArrayToDocument(xmlBytes);\n\t\t\n\t\tPropertyManager.setXSDLocation(\"C:\\\\Users\\\\Daniel\\\\Documents\\\\Uni\\\\TeamProject\\\\GitCopy\\\\TeamProjectVirusGame\\\\Resources\\\\XSD/VirusGameXSD.xsd\");\n\t\t\n\t\t// Call the method in test\n\t\tXSDValidator.validateAgainstXSD(document);\n\t}",
"public void convert(String filePath) {\n Cob2CustomerDataConverter converter = new Cob2CustomerDataConverter();\n\n // Get mainframe data (file, RPC, JMS, ...)\n byte[] hostData = readSampleData(filePath);\n\n // Convert the mainframe data to JAXB\n FromHostResult < CustomerData > result = converter.convert(\n hostData);\n\n // Print out the results\n print(result);\n\n }",
"public interface DTDHandler {\n\n /**\n * Receive notification of a notation declaration event. <p/> It is up to\n * the application to record the notation for later reference, if necessary.\n * </p> <p/> If a system identifier is present, and it is a URL, the SAX\n * parser must resolve it fully before passing it to the application. </p>\n * \n * @param name\n * The notation name.\n * @param publicId\n * The notation's public identifier, or null if none was given.\n * @param systemId\n * The notation's system identifier, or null if none was given.\n * @throws org.xml.sax.SAXException\n * Any SAX exception, possibly wrapping another exception.\n * @see #unparsedEntityDecl\n * @see org.xml.sax.AttributeList\n */\n public abstract void notationDecl(String name, String publicId,\n String systemId) throws SAXException;\n\n /**\n * Receive notification of an unparsed entity declaration event. <p/> Note\n * that the notation name corresponds to a notation reported by the\n * notationDecl() event. It is up to the application to record the entity\n * for later reference, if necessary. </p> <p/> If the system identifier is\n * a URL, the parser must resolve it fully before passing it to the\n * application. </p>\n * \n * @param name\n * The unparsed entity's name.\n * @param publicId\n * The entity's public identifier, or null if none was given.\n * @param systemId\n * The entity's system identifier (it must always have one).\n * @param notation\n * name The name of the associated notation.\n * @param notationName\n * @throws org.xml.sax.SAXException\n * Any SAX exception, possibly wrapping another exception.\n * @see #notationDecl\n * @see org.xml.sax.AttributeList\n */\n public abstract void unparsedEntityDecl(String name, String publicId,\n String systemId, String notationName) throws SAXException;\n\n}",
"public void ValidateSchema(String DFDLSchema, String Data)\n\t{\n\t\ttry\n\t\t{\n\t\t\t/*\n\t\t\t * Create an instance of Daffodil Compiler. Set validateDFDLSchemas method to true. \n\t\t\t */\n\t\t\tCompiler c = Daffodil.compiler();\n\t\t\tc.setValidateDFDLSchemas(true);\n\n\t\t\t/*\n\t\t\t * Get a URL for the example schema resource. \n\t\t\t */\n\t\t\tURL schemaUrl = getClass().getResource(\"/DFDLSchemas/\" + DFDLSchema);\n\t\t\t\n\t\t\t/*\n\t\t\t * Pass the URI using schemaUrl and pass it to a file.\n\t\t\t * Create an instance of a ProcessorFactory and compile file from the url.\n\t\t\t */\n\t\t\tFile schemaFiles = new File(schemaUrl.toURI());\n\t\t\tProcessorFactory pf = c.compileFile(schemaFiles);\n\n\t\t\t/*\n\t\t\t * Check if there is an error with the ProcessorFactory.\n\t\t\t */\t\t\n\t\t\tif (pf.isError()) \n\t\t\t{\n\t\t\t\tlogger.Log(\"Processor Factory error\");\n\t\t\t}\n\n\t\t\t/*\n\t\t\t * Get a DataProcessor from the ProcessorFactory. \n\t\t\t * We use an XPath here.\n\t\t\t */\n\t\t\tDataProcessor dp = pf.onPath(\"/\");\n\n\t\t\t/*\n\t\t\t * Check if there is an error with the DataProcessor.\n\t\t\t */\n\t\t\tif (dp.isError()) \n\t\t\t{\n\t\t\t\tlogger.Log(\"Data Processor error\");\n\t\t\t}\n\n\t\t\t/*\n\t\t\t * Get a URL for the example schema resource. \n\t\t\t */\n\t\t\tURL dataUrl = getClass().getResource(\"/TestFiles/\" + Data);\n\t\t\t\n\t\t\t/*\n\t\t\t * Get a File for the test data.\n\t\t\t */\n\t\t\tFile dataFile = new File(dataUrl.toURI());\n\t\t\tFileInputStream fis = new FileInputStream(dataFile);\n\t\t\tReadableByteChannel rbc = Channels.newChannel(fis);\n\n\t\t\t/*\n\t\t\t * We try to parse the sample data.\n\t\t\t */\n\t\t\tParseResult output = dp.parse(rbc);\n\t\t\t\n\t\t\t/*\n\t\t\t * Print the output from the parse result in the console in an XML format.\n\t\t\t */\n\t\t\tDocument doc = output.result();\n\t\t\tXMLOutputter xo = new XMLOutputter();\n\t\t\txo.setFormat(Format.getPrettyFormat());\n\t\t\txo.output(doc, System.out);\n\t\t}\n\t\tcatch(IOException e)\n\t\t{\n\t\t\tlogger.Log(e.getMessage());\n\t\t} \n\t\tcatch (URISyntaxException e) \n\t\t{\n\t\t\tlogger.Log(e.getMessage());\n\t\t}\n\t}",
"@Override\n\tpublic Document loadDocument(String file) {\n\t\tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n\t\tdbf.setNamespaceAware(true);\n\t\tDocumentBuilder db;\n\t\ttry {\n\t\t\tdb = dbf.newDocumentBuilder();\n\t\t\tDocument document = db.parse(new File(file));\n\t\t\treturn document;\n\t\t} catch (ParserConfigurationException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t} catch (SAXException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t} catch (FactoryConfigurationError e) {\n\t\t\t// TODO: handle exception\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\n\t}",
"public static void writeXMLFile(List<CD> lst)\n\t\t\tthrows TransformerException, FileNotFoundException, SAXException, IOException {\n\t\ttry {\n\t\t\tDocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();\n\t\t\tDocumentBuilder docBuilder = docFactory.newDocumentBuilder();\n\n\t\t\t// root elements\n\t\t\tDocument doc = docBuilder.newDocument();\n\t\t\tElement rootElement = doc.createElement(\"CDs\");\n\t\t\tdoc.appendChild(rootElement);\n\t\t\tString filePath = \"src/Part2_Ex3/CD.xml\";\n\t\t\tFile xmlFile = new File(filePath);\n\n\t\t\t\n\t\t\tfor (CD c : lst) {\n\n\t\t\t\tElement cd = doc.createElement(\"CD\");\n\t\t\t\trootElement.appendChild(cd);\n\n\t\t\t\t// id element\n\t\t\t\tElement id = doc.createElement(\"id\");\n\t\t\t\tid.appendChild(doc.createTextNode(Integer.toString(c.getId())));\n\t\t\t\tcd.appendChild(id);\n\t\t\t\t\n\t\t\t\t// name\n\t\t\t\tElement name = doc.createElement(\"name\");\n\t\t\t\tname.appendChild(doc.createTextNode(c.getName()));\n\t\t\t\tcd.appendChild(name);\n\n\t\t\t\t//singer\n\t\t\t\tElement singer = doc.createElement(\"singer\");\n\t\t\t\tsinger.appendChild((doc.createTextNode(c.getSinger())));\n\t\t\t\tcd.appendChild(singer);\n\n\t\t\t\t// number songs\n\t\t\t\tElement numbersongs = doc.createElement(\"numbersongs\");\n\t\t\t\tnumbersongs.appendChild(doc.createTextNode(Integer.toString(c.getNumOfSong())));\n\t\t\t\tcd.appendChild(numbersongs);\n\t\t\t\t\n\t\t\t\t// price\n\t\t\t\tElement price = doc.createElement(\"price\");\n\t\t\t\tprice.appendChild(doc.createTextNode(Double.toString(c.getPrice())));\n\t\t\t\tcd.appendChild(price);\n\t\t\t\t\n\t\t\t\t// write the content into xml file\n\t\t\t\tTransformer transformer = TransformerFactory.newInstance().newTransformer();\n\t\t\t transformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\n\t\t\t transformer.setOutputProperty(OutputKeys.METHOD, \"xml\");\n\t\t\t transformer.setOutputProperty(\"{http://xml.apache.org/xslt}indent-amount\", \"5\");\n\t\t\t DOMSource source = new DOMSource(doc);\n\t\t\t StreamResult result = new StreamResult(new File(filePath));\n\t\t\t transformer.transform(source, result); \n\t\t\t}\n\n\t\t} catch (ParserConfigurationException pce) {\n\t\t\tSystem.out.println(\"Cannot insert new contact. Error: \" + pce.getMessage());\n\t\t}\n\t}",
"public static Schema getSchema(final String schemaURL) {\r\n Schema s = null;\r\n try {\r\n final URL url = FileUtils.getResource(schemaURL);\r\n \t\r\n final File file = FileUtils.getFile(schemaURL);\r\n \r\n\r\n if (logB.isInfoEnabled()) {\r\n logB.info(\"XmlFactory.getSchema : retrieve schema and compile it : \" + schemaURL);\r\n }\r\n\r\n // 2. Compile the schema.\r\n final long start = System.nanoTime();\r\n\r\n SchemaFactory sf = getSchemaFactory();\r\n s = sf.newSchema(url);\r\n \r\n\r\n TimerFactory.getTimer(\"XmlFactory.getSchema[\" + schemaURL + \"]\").addMilliSeconds(start, System.nanoTime());\r\n\r\n if (logB.isInfoEnabled()) {\r\n logB.info(\"XmlFactory.getSchema : schema ready : \" + s);\r\n }\r\n\r\n } catch (final SAXException se) {\r\n throw new IllegalStateException(\"XmlFactory.getSchema : unable to create a Schema for : \" + schemaURL, se);\r\n/* } catch (final MalformedURLException mue) {\r\n throw new IllegalStateException(\"XmlFactory.getSchema : unable to create a Schema for : \" + schemaURL, mue);\r\n*/ }\r\n return s;\r\n }",
"public static DSSchemaIFace parseSchemaDef(String aXMLSchemaStr) {\n\n\t\tDSSchemaIFace schemaDef = null;\n\t\ttry {\n\t\t\t// System.out.println(\"the schema string is \"+aXMLSchemaStr);\n\t\t\tschemaDef = processDOM(DBUIUtils.convertXMLStr2DOM(aXMLSchemaStr));\n\t\t\t// Debug\n\t\t\t/*\n\t\t\t * if (schemaDef != null) {\n\t\t\t * System.out.println(\"[\\n\"+emitXML(schemaDef)+\"\\n]\\n\"); }\n\t\t\t */\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(e);\n\t\t}\n\n\t\treturn schemaDef;\n\t}",
"public Device readFromDeviceFile(String fileName, String address) {\n\n Element eElement = null;\n File file = new File(SifebUtil.DEV_FILE_DIR + fileName + \".xml\");\n try {\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n Document doc = dBuilder.parse(file);\n doc.getDocumentElement().normalize();\n System.out.println(\"Root element :\" + doc.getDocumentElement().getNodeName());\n NodeList nList = doc.getElementsByTagName(\"Device\");\n Node nNode = nList.item(0);\n eElement = (Element) nNode;\n } catch (ParserConfigurationException | SAXException | IOException e) {\n e.printStackTrace();\n }\n\n return getDevFromElement(eElement, address);\n }",
"public static void testValidity(File xmlFile, StreamSource schemaFileSource) throws SAXException, IOException{\n\n SchemaFactory factory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);\n\n\t\tSchema schema = factory.newSchema(schemaFileSource);\n\n Validator validator = schema.newValidator();\n\n Source xmlFileSource = new StreamSource(xmlFile);\n\n validator.validate(xmlFileSource);\n\n\t \n\t}",
"public java.lang.String getXsd()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(XSD$2, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }",
"public void createGraphFromFile(String newDataFileName) throws IOException {\n\n File inFile = new File(newDataFileName); /* XML */\n\n Scanner sc = new Scanner(inFile);\n String line = sc.nextLine();/*Pass the first line */\n\n /* Until Start of the Edges */\n while (line.compareTo(\" <Edges>\") != 0) {\n /* Take the next line */\n line = sc.nextLine();\n }\n\n /* Take the next line */\n line = sc.nextLine();\n\n /* Until End of the Edges */\n while (line.compareTo(\" </Edges>\") != 0) {\n\n /* Add element in the Linked List */\n insert(loadEdgesFromString(line));\n\n /* Take the next line */\n line = sc.nextLine();\n }\n\n /* Close the file */\n sc.close();\n }",
"private String transformPath(String pathStr, String pathPrefix) {\n String result = pathStr;\n if (DEBUG) {\n System.out.println(\" IN pathStr : \" + result);\n }\n Matcher m;\n for (int i = 0; i < LdmlConvertRules.PATH_TRANSFORMATIONS.length; i++) {\n m = LdmlConvertRules.PATH_TRANSFORMATIONS[i].pattern.matcher(pathStr);\n if (m.matches()) {\n result = m.replaceFirst(LdmlConvertRules.PATH_TRANSFORMATIONS[i].replacement);\n break;\n }\n }\n result = result.replaceFirst(\"/ldml/\", pathPrefix);\n result = result.replaceFirst(\"/supplementalData/\", pathPrefix);\n\n if (DEBUG) {\n System.out.println(\"OUT pathStr : \" + result);\n }\n return result;\n }",
"public XmlTransformer(Package pakkage, ImmutableMap<String, String> schemaNamesToFilenames) {\n try {\n this.jaxbContext = initJaxbContext(pakkage, schemaNamesToFilenames.keySet());\n this.schema = loadXmlSchemas(ImmutableList.copyOf(schemaNamesToFilenames.values()));\n } catch (JAXBException e) {\n throw new RuntimeException(e);\n }\n }",
"private void marshallDocument(Virtualnetworkmanager root, PrintStream outputFile) throws JAXBException, SAXException {\n\t\t\n\t\t// Creating the JAXB context to perform a validation \n\t\tJAXBContext jc;\n\t\t// Creating an instance of the XML Schema \n\t\tSchema schema;\n\t\t\t\t\n\t\ttry {\n\t\t\tjc = JAXBContext.newInstance(PACKAGE);\n\t\t\tschema = SchemaFactory.newInstance(W3C_XML_SCHEMA_NS_URI).newSchema(new File(XSD_NAME));\n\t\t}\n\t\tcatch(IllegalArgumentException e) {\n\t\t\tSystem.err.println(\"Error! No implementation of the schema language is available\");\n\t\t\tthrow e;\n\t\t}\n\t\tcatch(NullPointerException e) {\n\t\t\tSystem.err.println(\"Error! The instance of the schema or the file of the schema is not well created!\\n\");\n\t\t\tthrow new SAXException(\"The schema file is null!\");\n\t\t}\n\t\t\n\t\t// Creating the XML document \t\t\n\t\tMarshaller m = jc.createMarshaller();\n\t\tm.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);\n\t\tm.setProperty(Marshaller.JAXB_SCHEMA_LOCATION, XSD_LOCATION+\" \"+XSD_NAME);\n\t\tm.setSchema(schema);\n\t\tm.marshal(root, outputFile);\n\t\t\n\t}",
"public static void saveStudRecsToFile(File file) {\r\n\t\ttry {\r\n\t\t\tJAXBContext context = JAXBContext\r\n\t\t\t\t\t.newInstance(StudRecsWrapper.class);\r\n\t\t\tMarshaller m = context.createMarshaller();\r\n\t\t\tm.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);\r\n\t\t\t\r\n\t\t\tStudRecsWrapper wrapper = new StudRecsWrapper();\r\n\t\t\twrapper.setStudRecs(studRecs);\r\n\t\t\t\r\n\t\t\tm.marshal(wrapper, file);\r\n\t\t\tSystem.out.println(\"File saved!\");\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(\"Cannot save file, check write permissions!\");\r\n\t\t}\r\n\t}",
"public void saveData(){\n try{\n DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder documentBuilder = documentBuilderFactory.newDocumentBuilder();\n Document document = documentBuilder.newDocument();\n\n Element rootElement = document.createElement(\"departments\");\n document.appendChild(rootElement);\n for (Department department : entities){\n Element dep = document.createElement(\"department\");\n rootElement.appendChild(dep);\n\n dep.setAttribute(\"id\", department.getId().toString());\n dep.appendChild(createElementFromDepartment(\n document, \"name\", department.getName()));\n dep.appendChild(createElementFromDepartment(\n document, \"numberOfPlaces\", department.getNumberOfPlaces().toString()));\n }\n\n DOMSource domSource = new DOMSource(document);\n StreamResult streamResult = new StreamResult(fileName);\n TransformerFactory transformerFactory = TransformerFactory.newInstance();\n Transformer transformer = transformerFactory.newTransformer();\n transformer.transform(domSource, streamResult);\n\n } catch (ParserConfigurationException | TransformerException e) {\n e.printStackTrace();\n }\n }",
"public static Petrinet loadXML(String filename) {\n\t\tIPetrinet ipn = loadXMLInteractive(filename);\n\t\tif(ipn != null) return PetrinetTransform.convert(ipn);\n\t\treturn null;\n\t}",
"public List validateSLD(InputStream xml, ServletContext servContext) {\n \t// a riminder not to use the data directory for the schemas\n \t//String url = GeoserverDataDirectory.getGeoserverDataDirectory(servContext).toString();\n \tFile schemaFile = new File(servContext.getRealPath(\"/\"),\n \"/schemas/sld/StyledLayerDescriptor.xsd\");\n \n try {\n return validateSLD(xml, schemaFile.toURL().toString());\n } catch (Exception e) {\n ArrayList al = new ArrayList();\n al.add(new SAXException(e));\n \n return al;\n }\n }",
"@Test(expected = XMLValidationException.class)\n\tpublic void testValidateAgainstXSDNoXSDFound() throws XMLValidationException, XMLParseException {\n\t\tString testXML = \"<Content>\" + \n\t\t\t\t\"\t<InvalidTagName>\" + \n\t\t\t\t\"\t\t<SaveName>TestSaveName</SaveName>\" + \n\t\t\t\t\"\t\t<Seed>TestSeed</Seed>\" + \n\t\t\t\t\"\t\t<DayNumber>42</DayNumber>\" + \n\t\t\t\t\"\t</InvalidTagName>\" + \n\t\t\t\t\"</Content>\";\n\t\t\n\t\t// Convert the testXML to a byte array for the method in test\n\t\tbyte[] xmlBytes = testXML.getBytes();\n\t\t\n\t\t// Call the method in test\n\t\tDocument document = XMLUtils.convertByteArrayToDocument(xmlBytes);\n\t\t\n\t\tPropertyManager.setXSDLocation(\"InvalidPath\");\n\t\t\n\t\t// Call the method in test\n\t\tXSDValidator.validateAgainstXSD(document);\n\t}"
] |
[
"0.7430399",
"0.7398327",
"0.61082697",
"0.6067268",
"0.54835266",
"0.5408676",
"0.5173845",
"0.51553625",
"0.5011881",
"0.49390298",
"0.49158886",
"0.48648763",
"0.48005846",
"0.47842363",
"0.47756407",
"0.47728336",
"0.4723275",
"0.4682279",
"0.46539038",
"0.46485835",
"0.46104187",
"0.4591473",
"0.45595413",
"0.4518913",
"0.4499162",
"0.4489691",
"0.44776613",
"0.44672066",
"0.44633642",
"0.44447216",
"0.44440377",
"0.44245648",
"0.44215074",
"0.43890268",
"0.43846962",
"0.43807104",
"0.43768898",
"0.43752813",
"0.4374303",
"0.4373242",
"0.43566716",
"0.43548846",
"0.43472588",
"0.43470436",
"0.43299797",
"0.43295342",
"0.43111306",
"0.4300957",
"0.4293892",
"0.42938578",
"0.42734337",
"0.42578873",
"0.42540777",
"0.42445636",
"0.42327142",
"0.42307857",
"0.42263442",
"0.4220321",
"0.4220321",
"0.42177188",
"0.4213521",
"0.4208934",
"0.4204112",
"0.41933677",
"0.41815117",
"0.4179052",
"0.4178109",
"0.41726217",
"0.41688943",
"0.41609526",
"0.41538063",
"0.4150611",
"0.4140416",
"0.41386256",
"0.41297075",
"0.4128999",
"0.41282198",
"0.41281775",
"0.4126974",
"0.41237542",
"0.4123174",
"0.4115393",
"0.4115211",
"0.41101497",
"0.4092619",
"0.40840203",
"0.40805182",
"0.40805006",
"0.40775153",
"0.40739202",
"0.4073146",
"0.4066027",
"0.40592358",
"0.4035079",
"0.4030242",
"0.4024047",
"0.40236378",
"0.40216413",
"0.40188742",
"0.4018166"
] |
0.7666098
|
0
|
TODO Autogenerated method stub
|
public static void main(String[] args) {
System.setProperty("webdriver.gecko.driver",
"F:\\Java Files\\Browser Drivers\\geckodriver-v0.19.0-win64\\geckodriver.exe");
FirefoxDriver driver = new FirefoxDriver();
driver.get("https://www.facebook.com/login/");
WebElement password, login, scroll;
driver.findElement(By.id("email")).sendKeys("[email protected]");
password = driver.findElement(By.id("pass"));
password.sendKeys("shanjayjo");
login = driver.findElement(By.xpath(".//*[@id='loginbutton']"));
login.click();
scroll = driver.findElement(By.xpath(".//*[@id='userNavigationLabel']"));
scroll.click();
}
|
{
"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
|
Rolls to left or right or returns to level if not currently turning). We set the roll rate such that after turning thru' 1 radian the roll is at its max value.
|
private void updateRoll(float dt) {
rollRate = (speed / turnRadius) * rollMax;
// special case if speed is zero - glider landed but still has
// to roll level !
if (speed == 0) {
rollRate = 1 / 1 * rollMax;
}
if (nextTurn != 0) {
// turning
roll += nextTurn * rollRate * dt;
if (roll > rollMax)
roll = rollMax;
if (roll < -rollMax)
roll = -rollMax;
} else if (roll != 0) {
// roll back towards level
float droll = rollRate * dt;
if (roll > droll) {
roll -= droll;
} else if (roll < -droll) {
roll += droll;
} else {
roll = 0;
}
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void roll() {\n\t\tthis.currentValue = ThreadLocalRandom.current().nextInt(1, this.numSides + 1);\n\t}",
"@BinderThread\n public void setRoll(float roll) {\n this.roll = -roll;\n }",
"public final flipsParser.roll_return roll() throws RecognitionException {\n flipsParser.roll_return retval = new flipsParser.roll_return();\n retval.start = input.LT(1);\n\n CommonTree root_0 = null;\n\n Token string_literal163=null;\n Token string_literal164=null;\n Token To165=null;\n Token string_literal167=null;\n Token string_literal168=null;\n Token string_literal170=null;\n Token string_literal171=null;\n flipsParser.angularValueWithRate_return angularValueWithRate166 = null;\n\n flipsParser.angularValueWithRate_return angularValueWithRate169 = null;\n\n\n CommonTree string_literal163_tree=null;\n CommonTree string_literal164_tree=null;\n CommonTree To165_tree=null;\n CommonTree string_literal167_tree=null;\n CommonTree string_literal168_tree=null;\n CommonTree string_literal170_tree=null;\n CommonTree string_literal171_tree=null;\n RewriteRuleTokenStream stream_To=new RewriteRuleTokenStream(adaptor,\"token To\");\n RewriteRuleTokenStream stream_158=new RewriteRuleTokenStream(adaptor,\"token 158\");\n RewriteRuleTokenStream stream_157=new RewriteRuleTokenStream(adaptor,\"token 157\");\n RewriteRuleTokenStream stream_156=new RewriteRuleTokenStream(adaptor,\"token 156\");\n RewriteRuleTokenStream stream_155=new RewriteRuleTokenStream(adaptor,\"token 155\");\n RewriteRuleSubtreeStream stream_angularValueWithRate=new RewriteRuleSubtreeStream(adaptor,\"rule angularValueWithRate\");\n try {\n // flips.g:323:2: ( ( 'rol' | 'roll' ) To angularValueWithRate -> ^( ROLL FIXED angularValueWithRate ) | ( 'rol' | 'roll' ) angularValueWithRate -> ^( ROLL RELATIVE angularValueWithRate ) | ( 'lvl' | 'level' ) -> ^( ROLL LEVEL ) )\n int alt66=3;\n switch ( input.LA(1) ) {\n case 155:\n {\n int LA66_1 = input.LA(2);\n\n if ( (LA66_1==At||(LA66_1>=FloatingPointLiteral && LA66_1<=HexLiteral)||(LA66_1>=340 && LA66_1<=341)) ) {\n alt66=2;\n }\n else if ( (LA66_1==To) ) {\n alt66=1;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 66, 1, input);\n\n throw nvae;\n }\n }\n break;\n case 156:\n {\n int LA66_2 = input.LA(2);\n\n if ( (LA66_2==To) ) {\n alt66=1;\n }\n else if ( (LA66_2==At||(LA66_2>=FloatingPointLiteral && LA66_2<=HexLiteral)||(LA66_2>=340 && LA66_2<=341)) ) {\n alt66=2;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 66, 2, input);\n\n throw nvae;\n }\n }\n break;\n case 157:\n case 158:\n {\n alt66=3;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 66, 0, input);\n\n throw nvae;\n }\n\n switch (alt66) {\n case 1 :\n // flips.g:323:4: ( 'rol' | 'roll' ) To angularValueWithRate\n {\n // flips.g:323:4: ( 'rol' | 'roll' )\n int alt63=2;\n int LA63_0 = input.LA(1);\n\n if ( (LA63_0==155) ) {\n alt63=1;\n }\n else if ( (LA63_0==156) ) {\n alt63=2;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 63, 0, input);\n\n throw nvae;\n }\n switch (alt63) {\n case 1 :\n // flips.g:323:5: 'rol'\n {\n string_literal163=(Token)match(input,155,FOLLOW_155_in_roll1601); \n stream_155.add(string_literal163);\n\n\n }\n break;\n case 2 :\n // flips.g:323:11: 'roll'\n {\n string_literal164=(Token)match(input,156,FOLLOW_156_in_roll1603); \n stream_156.add(string_literal164);\n\n\n }\n break;\n\n }\n\n To165=(Token)match(input,To,FOLLOW_To_in_roll1606); \n stream_To.add(To165);\n\n pushFollow(FOLLOW_angularValueWithRate_in_roll1608);\n angularValueWithRate166=angularValueWithRate();\n\n state._fsp--;\n\n stream_angularValueWithRate.add(angularValueWithRate166.getTree());\n\n\n // AST REWRITE\n // elements: angularValueWithRate\n // token labels: \n // rule labels: retval\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 324:2: -> ^( ROLL FIXED angularValueWithRate )\n {\n // flips.g:324:5: ^( ROLL FIXED angularValueWithRate )\n {\n CommonTree root_1 = (CommonTree)adaptor.nil();\n root_1 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(ROLL, \"ROLL\"), root_1);\n\n adaptor.addChild(root_1, (CommonTree)adaptor.create(FIXED, \"FIXED\"));\n adaptor.addChild(root_1, stream_angularValueWithRate.nextTree());\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n retval.tree = root_0;\n }\n break;\n case 2 :\n // flips.g:325:4: ( 'rol' | 'roll' ) angularValueWithRate\n {\n // flips.g:325:4: ( 'rol' | 'roll' )\n int alt64=2;\n int LA64_0 = input.LA(1);\n\n if ( (LA64_0==155) ) {\n alt64=1;\n }\n else if ( (LA64_0==156) ) {\n alt64=2;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 64, 0, input);\n\n throw nvae;\n }\n switch (alt64) {\n case 1 :\n // flips.g:325:5: 'rol'\n {\n string_literal167=(Token)match(input,155,FOLLOW_155_in_roll1625); \n stream_155.add(string_literal167);\n\n\n }\n break;\n case 2 :\n // flips.g:325:11: 'roll'\n {\n string_literal168=(Token)match(input,156,FOLLOW_156_in_roll1627); \n stream_156.add(string_literal168);\n\n\n }\n break;\n\n }\n\n pushFollow(FOLLOW_angularValueWithRate_in_roll1630);\n angularValueWithRate169=angularValueWithRate();\n\n state._fsp--;\n\n stream_angularValueWithRate.add(angularValueWithRate169.getTree());\n\n\n // AST REWRITE\n // elements: angularValueWithRate\n // token labels: \n // rule labels: retval\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 326:2: -> ^( ROLL RELATIVE angularValueWithRate )\n {\n // flips.g:326:5: ^( ROLL RELATIVE angularValueWithRate )\n {\n CommonTree root_1 = (CommonTree)adaptor.nil();\n root_1 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(ROLL, \"ROLL\"), root_1);\n\n adaptor.addChild(root_1, (CommonTree)adaptor.create(RELATIVE, \"RELATIVE\"));\n adaptor.addChild(root_1, stream_angularValueWithRate.nextTree());\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n retval.tree = root_0;\n }\n break;\n case 3 :\n // flips.g:327:4: ( 'lvl' | 'level' )\n {\n // flips.g:327:4: ( 'lvl' | 'level' )\n int alt65=2;\n int LA65_0 = input.LA(1);\n\n if ( (LA65_0==157) ) {\n alt65=1;\n }\n else if ( (LA65_0==158) ) {\n alt65=2;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 65, 0, input);\n\n throw nvae;\n }\n switch (alt65) {\n case 1 :\n // flips.g:327:5: 'lvl'\n {\n string_literal170=(Token)match(input,157,FOLLOW_157_in_roll1647); \n stream_157.add(string_literal170);\n\n\n }\n break;\n case 2 :\n // flips.g:327:11: 'level'\n {\n string_literal171=(Token)match(input,158,FOLLOW_158_in_roll1649); \n stream_158.add(string_literal171);\n\n\n }\n break;\n\n }\n\n\n\n // AST REWRITE\n // elements: \n // token labels: \n // rule labels: retval\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 328:2: -> ^( ROLL LEVEL )\n {\n // flips.g:328:5: ^( ROLL LEVEL )\n {\n CommonTree root_1 = (CommonTree)adaptor.nil();\n root_1 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(ROLL, \"ROLL\"), root_1);\n\n adaptor.addChild(root_1, (CommonTree)adaptor.create(LEVEL, \"LEVEL\"));\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n retval.tree = root_0;\n }\n break;\n\n }\n retval.stop = input.LT(-1);\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n \tretval.tree = (CommonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n\n }\n finally {\n }\n return retval;\n }",
"public Builder setRoll(float value) {\n bitField0_ |= 0x00000080;\n roll_ = value;\n onChanged();\n return this;\n }",
"public Builder setRoll(float value) {\n bitField0_ |= 0x00000020;\n roll_ = value;\n onChanged();\n return this;\n }",
"public int roll()\n {\n int r = (int)(Math.random() * sides) + 1;\n return r;\n }",
"private void roll() {\n value = (int) (Math.random() * MAXVALUE) + 1;\n }",
"public int roll() {\n this.assuerNN_random();\n //Roll once\n int result = random.nextInt(this.sides)+1;\n //TODO Save the roll somewhere\n\n //Return the roll\n return result;\n }",
"float getRoll();",
"float getRoll();",
"public int roll() {\n Random r;\n if (hasSeed) {\n r = new Random();\n }\n else {\n r = new Random();\n }\n prevRoll = r.nextInt(range) + 1;\n return prevRoll;\n }",
"public void roll(){\n roll(new boolean[]{true,true,true,true,true});\n }",
"public float getRoll() {\n return roll_;\n }",
"public float getRoll() {\n return roll_;\n }",
"public int roll(int roll) {\n \t\tappendAction(R.string.player_roll, Integer.toString(roll));\n \t\tboard.roll(roll);\n \n \t\treturn roll;\n \t}",
"public void roll()\r\n\t{\r\n\t\tRandom rand = new Random();\r\n\r\n\t\trollNumber = rand.nextInt(numOfSides) + 1;\r\n\t}",
"public void roll(){\n Random rand = new Random();\n this.rollVal = rand.nextInt(this.faces) + 1;\n }",
"public float getRoll() {\n return roll_;\n }",
"public float getRoll() {\n return roll_;\n }",
"public void roll()\r\n\t{\r\n\t\tthis.value = rnd.nextInt(6) + 1;\r\n\t}",
"public int roll() {\n\t\treturn 3;\n\t}",
"public void setPlayerRoll10()\r\n {\r\n \r\n roll1 = ((int)(Math.random() * 100) % HIGHEST_DIE_VALUE10 + LOWEST_DIE_VALUE10);\r\n }",
"public Builder clearRoll() {\n bitField0_ = (bitField0_ & ~0x00000080);\n roll_ = 0F;\n onChanged();\n return this;\n }",
"public void reRoll() {\n this.result = this.roll();\n this.isSix = this.result == 6;\n }",
"public double setLeftRumble(double speed) {\n\t\tsetRumble(GenericHID.RumbleType.kLeftRumble, speed);\n\t\treturn speed;\n\t}",
"public Builder clearRoll() {\n bitField0_ = (bitField0_ & ~0x00000020);\n roll_ = 0F;\n onChanged();\n return this;\n }",
"public void roll() {\n if(!frozen) {\n this.value = ((int)(Math.random() * numSides + 1));\n }\n }",
"public void rollStats() {\n\t\tRandom roll = new Random();\n\t\tint rolled;\n\t\tint sign;\n\t\t\n\t\t\n\t\trolled = roll.nextInt(4);\n\t\tsign = roll.nextInt(2);\n\t\tif (sign == 0) {\n\t\t\tsetMaxHealth(getMaxHealth() + rolled*(getDifficulty()+5/5));\n\t\t\tsetHealth(getMaxHealth());\n\t\t} else {\n\t\t\tsetMaxHealth(getMaxHealth() - rolled*(getDifficulty()+5/5));\n\t\t\tsetHealth(getMaxHealth());\n\t\t}\n\t\t\n\t\trolled = roll.nextInt(2);\n\t\tsign = roll.nextInt(2);\n\t\tif (sign == 0) {\n\t\t\tsetAttack(getAttack() + rolled*(getDifficulty()+5/5));\n\t\t} else {\n\t\t\tsetAttack(getAttack() - rolled*(getDifficulty()+5/5));\n\t\t}\n\t\t\n\t\trolled = roll.nextInt(2);\n\t\tsign = roll.nextInt(2);\n\t\tif (sign == 0) {\n\t\t\tsetDefense(getDefense() + rolled*(getDifficulty()+5/5));\n\t\t} else {\n\t\t\tsetDefense(getDefense() - rolled*(getDifficulty()+5/5));\n\t\t}\n\t\t\n\t\trolled = roll.nextInt(2);\n\t\tsign = roll.nextInt(2);\n\t\tif (sign == 0) {\n\t\t\tsetSpeed(getSpeed() + rolled*(getDifficulty()+5/5));\n\t\t} else {\n\t\t\tsetSpeed(getSpeed() - rolled*(getDifficulty()+5/5));\n\t\t}\n\t\t\n\t}",
"public void setPlayerRoll20()\r\n {\r\n \r\n roll2 = ((int)(Math.random() * 100) % HIGHEST_DIE_VALUE20 + LOWEST_DIE_VALUE20);\r\n \r\n }",
"public void turnLeft() {\r\n setDirection( modulo( myDirection-1, 4 ) );\r\n }",
"public void turnRight() {\r\n setDirection( modulo( myDirection+1, 4 ) );\r\n }",
"int roll();",
"public void roll(){\n currentValue = rand.nextInt(6)+1;\n }",
"public synchronized double getRoll() {\n\t\tif (isConnected) {\n\t\t\treturn gyro.getRoll();\n\t\t}\n\t\telse {\n\t\t\treturn 0;\n\t\t}\n\t}",
"public int roll() {\n Random random = new Random();\n faceValue = random.nextInt(sides)+1;\n return faceValue;\n }",
"@Override\r\n\tpublic double getRollRightHand() {\n\t\treturn rechtRoll;\r\n\t}",
"public void setRolled(boolean rolled) {\n\t\tthis.rolled = rolled;\n\t\trepaint();\n\t}",
"RollingResult roll(Player player);",
"public void turnRight() {\n\t\tthis.setSteeringDirection(getSteeringDirection()+5);\n\t}",
"public double setRightRumble(double speed) {\n\t\tsetRumble(GenericHID.RumbleType.kRightRumble, speed);\n\t\treturn speed;\n\t}",
"public int roll(int max)\n {\n // roll between 1 and the max\n int r = (int)(Math.random() * max) + 1;\n return r;\n }",
"@Override\r\n\tpublic void rotateRight() {\n\t\tfinal int THETA = 10;\r\n\t\tint dir = this.getDirection();\r\n\t\tthis.setDirection(dir + THETA);\r\n\t\t\r\n\t}",
"public void turnRight ()\n\t{\n\t\t//changeFallSpeed (1);\n\t\tturnInt = 1;\n\t}",
"public int roll(){\r\n myFaceValue = (int)(Math.random() * myNumSides) + 1;\r\n return myFaceValue;\r\n }",
"@Override\r\n\tpublic void rotateLeft() {\n\t\tfinal int THETA = 10;\r\n\t\tint dir = this.getDirection();\r\n\t\tthis.setDirection(dir - THETA);\r\n\t\t\r\n\t}",
"public double getRolledHeading() {\n double heading = 360.0 - getRawHeading();\n if (lastHeading < 100 && heading > 300) {\n rotationAmt--;\n } else if (heading < 100 && lastHeading > 300) {\n rotationAmt++;\n }\n lastHeading = heading;\n return heading + rotationAmt * 360.0;\n }",
"public void rollAtk() {\n rollAtk = roll();\n }",
"public void roll() { \n this.value = (int)(Math.random() * this.faces()) + 1; \n }",
"@Override\n default void appendRollRotation(double roll)\n {\n AxisAngleTools.appendRollRotation(this, roll, this);\n }",
"public void roll() {\n int number = new Random().nextInt(MAXIMUM_FACE_NUMBER);\n FaceValue faceValue = FaceValue.values()[number];\n setFaceValue(faceValue);\n }",
"private void rotateRight() {\n robot.leftBack.setPower(TURN_POWER);\n robot.leftFront.setPower(TURN_POWER);\n robot.rightBack.setPower(-TURN_POWER);\n robot.rightFront.setPower(-TURN_POWER);\n }",
"private void adjustPower (TurnType dir,\n float p) {\n float adjust = Math.signum(p) * gyroSensor.adjustDirection();\n // with RUN_TO_POSITION sign of power is ignored\n // we have to clip so that (1 + adjust) and (1 - adjust) have the same sign\n adjust = Range.clip(adjust, -1, 1);\n // BNO055 positive for left turn\n float pwrl = p * (1 - adjust);\n float pwrr = p * (1 + adjust);\n\n float max = Math.max(Math.abs(pwrl), Math.abs(pwrr));\n if (max > 1f) {\n // scale to 1\n pwrl = pwrl / max;\n pwrr = pwrr / max;\n }\n setPower(pwrl,\n pwrr,\n dir);\n /*if (dir == TurnType.STRAFE) {\n long timeStamp = System.currentTimeMillis();\n if (timeStamp - logTimeStamp > 25) {\n RobotLog.i(\"Power left:\" + pwrl + \" right:\" + pwrr);\n logTimeStamp = timeStamp;\n }\n }*/\n }",
"public int roll() {\n return random.nextInt(6) + 1;\n }",
"public int generateRoll() {\n\t\tint something = (int) (Math.random() * 100) + 1;\n\t\tif (something <= 80) {\n\t\t\tint allNumRoll = (int) (Math.random() * getNumSides()) + 1;\n\t\t\tint roll = allNumRoll * 2 - 1;\n\t\t\treturn roll;\n\t\t} else {\n\t\t\tint allNumRoll = (int) (Math.random() * getNumSides()) + 1;\n\t\t\tint roll = allNumRoll * 2;\t\t\n\t\t\treturn roll;\n\t\t}\n\t}",
"private void setRoller(Roller w) {\n if (currentRoller == null) {\n currentRoller = w;\n world.addStepListener(currentRoller);\n }\n }",
"public void turnLeft() {\n\t\tthis.setSteeringDirection(getSteeringDirection()-5);\n\t\t}",
"public void turnLeft ()\n\t{\n\t\t//changeFallSpeed (-1);\n\t\tturnInt = -1;\n\t}",
"public void roll ()\n {\n //sets faceValue to an int between 1 - numFaces (both inclusive)\n faceValue = (int)(Math.random() * numFaces + 1);\n }",
"void roll(int noOfPins);",
"@Override\r\n\tpublic void rotateRight() {\n\t\tsetDirection((this.getDirection() + 1) % 4);\r\n\t}",
"public void roll(double angle) {\n left = rotateVectorAroundAxis(left, heading, angle);\r\n up = rotateVectorAroundAxis(up, heading, angle);\r\n\r\n }",
"@Override\n public int rollNumber() throws ModelException {\n // the range is 10 (2 - 12)\n final int ROLL_NUMBERS_RANGE = 10;\n final int MINIMUM_ROLL = 2;\n final Random randomNumberGenerator = new Random();\n\n int rolledNumber = randomNumberGenerator.nextInt(ROLL_NUMBERS_RANGE) + MINIMUM_ROLL;\n assert rolledNumber >= 2 && rolledNumber <= 12;\n\n IPlayer p = GameModelFacade.instance().getLocalPlayer();\n if (GameModelFacade.instance().getGame().getGameState() != GameState.Rolling || !p.equals(GameModelFacade.instance().getGame().getCurrentPlayer())) {\n throw new ModelException(\"Preconditions for action not met.\");\n }\n\n try {\n String clientModel = m_theProxy.rollNumber(p.getIndex(), rolledNumber);\n new ModelInitializer().initializeClientModel(clientModel, m_theProxy.getPlayerId());\n }\n catch (NetworkException e) {\n throw new ModelException(e);\n }\n\n return rolledNumber;\n }",
"void roll(int pins);",
"@Override\n public void turnRight(Double angle) {\n turnLeft(angle * -1);\n }",
"private void driveLeft() {\n setSpeed(MIN_SPEED, MAX_SPEED);\n }",
"public void switchPowerLevel()\n {\n // If power level is 1, set this.powerLevel to 3 - 1 = 2.\n // If power level is 2, set this.powerLevel to 3 - 2 = 1.\n this.powerLevel = (3 - this.powerLevel);\n }",
"public void roll() {\n\t\tthis.faceValue = (int)(NUM_SIDES*Math.random()) + 1;\n\t}",
"public final void mROLL() throws RecognitionException\n\t{\n\t\ttry\n\t\t{\n\t\t\tfinal int _type = AshvmLexer.ROLL;\n\t\t\tfinal int _channel = BaseRecognizer.DEFAULT_TOKEN_CHANNEL;\n\t\t\t// D:\\\\Programmieren\\\\projects\\\\ashvm\\\\Ashvm.g:741:6: ( 'roll' )\n\t\t\t// D:\\\\Programmieren\\\\projects\\\\ashvm\\\\Ashvm.g:741:8: 'roll'\n\t\t\t{\n\t\t\t\tthis.match(\"roll\");\n\n\t\t\t}\n\n\t\t\tthis.state.type = _type;\n\t\t\tthis.state.channel = _channel;\n\t\t}\n\t\tfinally\n\t\t{\n\t\t}\n\t}",
"public void setRoll(double aValue)\n{\n if(aValue==getRoll()) return;\n repaint();\n firePropertyChange(\"Roll\", getRSS().roll, getRSS().roll = aValue, -1);\n}",
"public int rollMult(){\r\n\t\treturn dieClass.rollMultiplier();\r\n\t}",
"@Override\r\n\tpublic double getRollLeftHand() {\n\t\treturn linkRoll;\r\n\t}",
"public void turnRight(int ticks){\n\t\tposition = (position - ticks)%40;\n\t\tif (position < 0)\n\t\t\tposition+=40;\n\t\tcount++;\n\t\tcheckTurn(ticks);\n\t}",
"private void reactToRoll(){\r\n\t\troll.setEnabled(false);\r\n\t\tsubmit.setEnabled(true);\r\n\t\tagain.setEnabled(false);\r\n\t\tnoMore.setEnabled(false);\r\n\t\tif(!didBust){\r\n\t\t\tstatusLabel.setText(\"Choose your first dice pair!\");\r\n\t\t} else {\r\n\t\t\tstatusLabel.setText(\"Oh no! Better luck next time.\");\r\n\t\t\tsubmit.setText(\"Oops! Busted!\");\r\n\t\t}\r\n\t\tupdate();\r\n\t}",
"public int getWeightRoll() {\n\t\tint result = 0;\n\t\tRaces racesDropDownText = (Races) race.getSelectedItem();\n\t\tString stringDropDownText = (String) gender.getSelectedItem();\n\n\t\tif (racesDropDownText.equals(Races.DWARF)) {\n\t\t\tif (stringDropDownText.equals(\"Female\")) {\n\t\t\t\tresult = (setRollResult(Races.DWARF.getWeightDiceAmount(), Races.DWARF.getFemaleWeightDiceSides())\n\t\t\t\t\t\t* Races.DWARF.getWeightMultiplier() + Races.DWARF.getBaseFemaleWeight());\n\t\t\t} else if (stringDropDownText.equals(\"Male\")) {\n\t\t\t\tresult = (setRollResult(Races.DWARF.getWeightDiceAmount(), Races.DWARF.getMaleWeightDiceSides())\n\t\t\t\t\t\t* Races.DWARF.getWeightMultiplier() + Races.DWARF.getBaseMaleWeight());\n\t\t\t}\n\t\t} else if (racesDropDownText.equals(Races.ELF)) {\n\t\t\tif (stringDropDownText.equals(\"Female\")) {\n\t\t\t\tresult = (setRollResult(Races.ELF.getWeightDiceAmount(), Races.ELF.getFemaleWeightDiceSides())\n\t\t\t\t\t\t* Races.ELF.getWeightMultiplier() + Races.ELF.getBaseFemaleWeight());\n\t\t\t} else if (stringDropDownText.equals(\"Male\")) {\n\t\t\t\tresult = (setRollResult(Races.DWARF.getWeightDiceAmount(), Races.DWARF.getMaleWeightDiceSides())\n\t\t\t\t\t\t* Races.ELF.getWeightMultiplier() + Races.ELF.getBaseMaleWeight());\n\t\t\t}\n\t\t} else if (racesDropDownText.equals(Races.GNOME)) {\n\t\t\tif (stringDropDownText.equals(\"Female\")) {\n\t\t\t\tresult = (setRollResult(Races.GNOME.getWeightDiceAmount(), Races.GNOME.getFemaleWeightDiceSides())\n\t\t\t\t\t\t* Races.GNOME.getWeightMultiplier() + Races.GNOME.getBaseFemaleWeight());\n\t\t\t} else if (stringDropDownText.equals(\"Male\")) {\n\t\t\t\tresult = (setRollResult(Races.GNOME.getWeightDiceAmount(), Races.GNOME.getMaleWeightDiceSides())\n\t\t\t\t\t\t* Races.GNOME.getWeightMultiplier() + Races.GNOME.getBaseMaleWeight());\n\t\t\t}\n\t\t} else if (racesDropDownText.equals(Races.HALFELF)) {\n\t\t\tif (stringDropDownText.equals(\"Female\")) {\n\t\t\t\tresult = (setRollResult(Races.HALFELF.getWeightDiceAmount(), Races.HALFELF.getFemaleWeightDiceSides())\n\t\t\t\t\t\t* Races.HALFELF.getWeightMultiplier() + Races.HALFELF.getBaseFemaleWeight());\n\t\t\t} else if (stringDropDownText.equals(\"Male\")) {\n\t\t\t\tresult = (setRollResult(Races.HALFELF.getWeightDiceAmount(), Races.HALFELF.getMaleWeightDiceSides())\n\t\t\t\t\t\t* Races.HALFELF.getWeightMultiplier() + Races.HALFELF.getBaseMaleWeight());\n\t\t\t}\n\t\t} else if (racesDropDownText.equals(Races.HALFORC)) {\n\t\t\tif (stringDropDownText.equals(\"Female\")) {\n\t\t\t\tresult = (setRollResult(Races.HALFORC.getWeightDiceAmount(), Races.HALFORC.getFemaleWeightDiceSides())\n\t\t\t\t\t\t* Races.HALFORC.getWeightMultiplier() + Races.HALFORC.getBaseFemaleWeight());\n\t\t\t} else if (stringDropDownText.equals(\"Male\")) {\n\t\t\t\tresult = (setRollResult(Races.HALFORC.getWeightDiceAmount(), Races.HALFORC.getMaleWeightDiceSides())\n\t\t\t\t\t\t* Races.HALFORC.getWeightMultiplier() + Races.HALFORC.getBaseMaleWeight());\n\t\t\t}\n\t\t} else if (racesDropDownText.equals(Races.HALFLING)) {\n\t\t\tif (stringDropDownText.equals(\"Female\")) {\n\t\t\t\tresult = (setRollResult(Races.HALFLING.getWeightDiceAmount(), Races.HALFLING.getFemaleWeightDiceSides())\n\t\t\t\t\t\t* Races.HALFLING.getWeightMultiplier() + Races.HALFLING.getBaseFemaleWeight());\n\t\t\t} else if (stringDropDownText.equals(\"Male\")) {\n\t\t\t\tresult = (setRollResult(Races.HALFLING.getWeightDiceAmount(), Races.HALFLING.getMaleWeightDiceSides())\n\t\t\t\t\t\t* Races.HALFLING.getWeightMultiplier() + Races.HALFLING.getBaseMaleWeight());\n\t\t\t}\n\t\t} else if (racesDropDownText.equals(Races.HUMAN)) {\n\t\t\tif (stringDropDownText.equals(\"Female\")) {\n\t\t\t\tresult = (setRollResult(Races.HUMAN.getWeightDiceAmount(), Races.HUMAN.getFemaleWeightDiceSides())\n\t\t\t\t\t\t* Races.HUMAN.getWeightMultiplier() + Races.HUMAN.getBaseFemaleWeight());\n\t\t\t} else if (stringDropDownText.equals(\"Male\")) {\n\t\t\t\tresult = (setRollResult(Races.HUMAN.getWeightDiceAmount(), Races.HUMAN.getMaleWeightDiceSides())\n\t\t\t\t\t\t* Races.HUMAN.getWeightMultiplier() + Races.HUMAN.getBaseMaleWeight());\n\t\t\t}\n\t\t}\n\n\t\treturn result;\n\t}",
"private void driveRight() {\n setSpeed(MAX_SPEED, MIN_SPEED);\n }",
"private void rotateLeft() {\n robot.leftBack.setPower(-TURN_POWER);\n robot.leftFront.setPower(-TURN_POWER);\n robot.rightBack.setPower(TURN_POWER);\n robot.rightFront.setPower(TURN_POWER);\n }",
"public void setTurnRate (float rate)\n {\n if (rate > 0) {\n _turnRate = rate;\n } else {\n clearTurnRate();\n }\n }",
"private void right() {\n lastMovementOp = Op.RIGHT;\n rotate(TURNING_ANGLE);\n }",
"@Override\r\n\tpublic void rotateLeft() {\n\t\tsetDirection((this.getDirection() + 3) % 4);\r\n\t}",
"private RollType rollType(Roll roll) {\n return lastRoll(roll) ? RollType.LAST_ROLL :\n roll.isSpare() ? SPARE :\n roll.isStrike() ? STRIKE :\n RollType.get(roll.getThrowForFrame());\n }",
"protected void setLeftMotorSpeed(int speed) {\n if (speed < 10 && speed > -10) {\n leftSpeed = speed;\n }\n }",
"@Override\r\n\tpublic int rollDice() {\n\t\treturn 0;\r\n\t}",
"public int roll() \r\n {\r\n \r\n die1FaceValue = die1.roll();\r\n die2FaceValue = die2.roll();\r\n \r\n diceTotal = die1FaceValue + die2FaceValue;\r\n \r\n return diceTotal;\r\n }",
"public void liftArm(){armLifty.set(-drivePad.getThrottle());}",
"public int getRollVal(){\n return this.rollVal;\n }",
"public void moveLeft(int speed)\n {\n if(getRotation()==0)\n {\n turn(180);\n move(speed);\n }\n else if(getRotation()==90)\n {\n turn(90);\n move(speed);\n }\n else if(getRotation()==180)\n {\n move(speed);\n }\n else if(getRotation()==270)\n {\n turn(-90);\n move(speed);\n }\n }",
"public int roll()\r\n\t{\r\n\t return die1.roll() + die2.roll();\r\n \t}",
"public int rollResult(){\r\n return rand.nextInt(6) + 1;\r\n }",
"public void onRollClick() {\n game.TakeTurn(player1);\n game.TakeTurn(computer);\n undoButton.setDisable(false);\n resetButton.setDisable(false);\n updateFields(\"player\");\n updateFields(\"computer\");\n setLeadPlayerImage();\n checkGame();\n }",
"public void rollRandom() {\n\t\tthis.strength = randomWithRange();\r\n\t\tthis.wisdom = randomWithRange();\r\n\t\tthis.dexterity = randomWithRange();\r\n\t\tthis.constitution = randomWithRange();\r\n\t\tthis.intelligence = randomWithRange();\r\n\t\tthis.charisma = randomWithRange();\r\n\t}",
"@Override\n default void prependRollRotation(double roll)\n {\n AxisAngleTools.prependRollRotation(roll, this, this);\n }",
"int getAttackRoll();",
"public void spinLeft(double speed) {\r\n \tspeed = Math.abs(speed);\r\n \tleftTopMotor.set(-1 * speed);\r\n \tleftBottomMotor.set(-1 * speed);\r\n \trightTopMotor.set(-1 * speed);\r\n \trightBottomMotor.set(-1 * speed);\r\n }",
"public void buttonRoll() {\n\t\troll2(player1, player2);\n\t\t}",
"public void setBankroll(double money) {\n bankroll += money;\n if (bankroll <= 0){\n activePlayer = false;\n }\n }",
"public void turnAbsolute(int target)\n {\n int heading = 360 - mrGyro.getHeading(); //Set variables to gyro readings\n double turnSpeed = 0.15;\n\n while (Math.abs(heading - target) > 45)\n { //Continue while the robot direction is further than three degrees from the target\n if (heading > target) //if gyro is positive, we will turn right\n {\n movePower(\"left\", 0.5, 0.01);\n }\n\n if (heading < target)\n {\n movePower(\"right\", 0.5, 0.01);\n }\n heading = 360 - mrGyro.getHeading(); //Set variables to gyro readings\n telemetry.addData(\"heading\", String.format(\"%03d\", heading));\n telemetry.update();\n }\n while (Math.abs(heading - target) > 10)\n { //Continue while the robot direction is further than three degrees from the target\n if (heading > target) //if gyro is positive, we will turn right\n {\n movePower(\"left\", 0.1, 0.01);\n }\n\n if (heading < target)\n {\n movePower(\"right\", 0.1, 0.01);\n }\n heading = 360 - mrGyro.getHeading(); //Set variables to gyro readings\n telemetry.addData(\"heading\", String.format(\"%03d\", heading));\n telemetry.update();\n }\n while (Math.abs(heading - target) > 5)\n { //Continue while the robot direction is further than three degrees from the target\n if (heading > target) //if gyro is positive, we will turn right\n {\n movePower(\"left\", 0.01, 0.01);\n }\n\n if (heading < target)\n {\n movePower(\"right\", 0.01, 0.01);\n }\n heading = 360 - mrGyro.getHeading(); //Set variables to gyro readings\n telemetry.addData(\"heading\", String.format(\"%03d\", heading));\n telemetry.update();\n }\n stop();\n }",
"public double getTurnRate() {\n return m_gyro.getRate() * (DriveConstants.kGyroReversed ? -1.0 : 1.0);\n }",
"protected void rotateTo(double target) {\n robot.rightFront.setDirection(REVERSE);\n robot.rightBack.setDirection(REVERSE);\n\n while (opModeIsActive() && robot.rightFront.getDirection() != REVERSE) {\n idle();\n }\n\n if (target < 0) target += 360;\n\n double heading = get360Heading();\n while (opModeIsActive() && !withinRange(heading, target)) {\n // Run Dubberke-Richards logic\n if (Math.abs(heading - target) <= 180) {\n if (heading-target >= 0) {\n rotateRight();\n } else {\n rotateLeft();\n }\n } else { // |heading-target| > 180\n if (heading-target<0) {\n rotateRight();\n } else {\n rotateLeft();\n }\n }\n\n // Update heading for next loop\n heading = get360Heading();\n\n telemetry.addData(\"Heading\", heading);\n telemetry.update();\n }\n\n halt();\n }",
"public static int rollStrength(){\n num1 = (int)(Math.random()*(20-0+1)+0);\n return num1;\n }",
"public void moveRight() {\n speedX += (speedX < 0) ? acceleration * 2 : acceleration;\n if (speedX > maxSpeed) {\n speedX = maxSpeed;\n }\n direction = Direction.RIGHT;\n }"
] |
[
"0.6712591",
"0.6612917",
"0.66037613",
"0.6490554",
"0.6398925",
"0.61729807",
"0.6144159",
"0.60966283",
"0.6082757",
"0.6082757",
"0.6081121",
"0.59745693",
"0.59743285",
"0.59743285",
"0.59537923",
"0.59491694",
"0.59391946",
"0.5938416",
"0.5938416",
"0.59329945",
"0.5926233",
"0.59154314",
"0.58188206",
"0.58148354",
"0.5812064",
"0.58082813",
"0.5764966",
"0.5755812",
"0.5751905",
"0.57356906",
"0.5726451",
"0.57214487",
"0.5711883",
"0.57099783",
"0.5709259",
"0.5705529",
"0.56949496",
"0.5691943",
"0.5653191",
"0.56439626",
"0.56154233",
"0.56058264",
"0.5573905",
"0.55660176",
"0.5539787",
"0.55392027",
"0.54772335",
"0.54757655",
"0.5472039",
"0.5463524",
"0.54519457",
"0.544168",
"0.5430866",
"0.54295826",
"0.5427566",
"0.5422462",
"0.54173166",
"0.54142857",
"0.54023606",
"0.54023224",
"0.53711087",
"0.5362067",
"0.5349102",
"0.53418064",
"0.5341752",
"0.53410614",
"0.53354853",
"0.5327172",
"0.53204644",
"0.53158206",
"0.53151953",
"0.527533",
"0.5274037",
"0.526574",
"0.5263747",
"0.5256012",
"0.52521485",
"0.52351254",
"0.5230364",
"0.52279794",
"0.5208515",
"0.5208368",
"0.51924205",
"0.51878923",
"0.5180056",
"0.516659",
"0.516375",
"0.51333755",
"0.51298165",
"0.5121062",
"0.51205534",
"0.51180106",
"0.51078093",
"0.5104775",
"0.5094554",
"0.50883174",
"0.5088257",
"0.5086225",
"0.5085268",
"0.5084391"
] |
0.7013313
|
0
|
if no change, just bail
|
public void setClockState ( ClockState clockState )
{
if (this.clockState == clockState)
return;
this.clockState = clockState;
fireSourceChanged(ISources.WORKBENCH, CLOCK_STATE_ID, getClockStateStr());
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private void changed() {\n // Ok to have a race here, see the field javadoc.\n if (!changed)\n changed = true;\n }",
"@Override\n\tfinal public boolean hasDoneChanges() {\n\t\treturn false;\n\t}",
"public void isChanged()\n\t{\n\t\tchange = true;\n\t}",
"void updateIfNeeded()\n throws Exception;",
"private void verifyChanges() {\n System.out.println(\"Verify changes\"); \n }",
"public void reportIrreversibleChange() {\r\n Assert.isTrue(isReceiving());\r\n irreversibleChangeReported = true;\r\n }",
"public boolean hasUpdate(VehicleState change) {\n\n return !this.equals(change);\n }",
"public boolean willNotBeResurrected() {\n return state == State.FRESH || state == State.ERROR;\n }",
"@Override\n public boolean callCheck() {\n return last == null;\n }",
"public int logic2()\r\n\t{\r\n\t\tint changesMade = 0;\r\n\t\t\t\r\n\t\treturn changesMade;\r\n\t}",
"@Override\n\tpublic boolean erTom() {\n\t\treturn (bak == null);\n\t}",
"private static boolean checkIfToUpdateAfterCreateFailed(LocalRegion rgn, EntryEventImpl ev) {\n boolean doUpdate = true;\n if (ev.oldValueIsDestroyedToken()) {\n if (rgn.getVersionVector() != null && ev.getVersionTag() != null) {\n rgn.getVersionVector().recordVersion(\n (InternalDistributedMember) ev.getDistributedMember(), ev.getVersionTag());\n }\n doUpdate = false;\n }\n if (ev.isConcurrencyConflict()) {\n if (logger.isDebugEnabled()) {\n logger.debug(\"basicUpdate failed with CME, not to retry:\" + ev);\n }\n doUpdate = false;\n }\n return doUpdate;\n }",
"public boolean hasChanges() {\n return !(changed.isEmpty() && defunct.isEmpty());\n }",
"@Override\n\tpublic boolean update() {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean update() {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean update() {\n\t\treturn false;\n\t}",
"public boolean hasChanges();",
"public final void CanNotBeChanged () {\n\t\tSystem.out.println(\"Can not be Changed\");\n\t}",
"private void modificationCheck() {\n if (this.expectedMod != modCount) {\n throw new ConcurrentModificationException(\"The Simple Array List was changed its structure!\");\n }\n }",
"protected synchronized void clearChanged() {\n changed = false;\n }",
"public int logic3()\r\n\t{\r\n\t\r\n\t\tint changesMade = 0;\r\n\t\treturn changesMade;\r\n\t}",
"public boolean proceedOnErrors() {\n return false;\n }",
"public int logic1()\r\n\t{\r\n\t\tint changesMade = 0;\r\n\r\n\t\t\r\n\t\treturn changesMade;\r\n\t\t\t\t\t\r\n\t}",
"boolean hasChangeStatus();",
"public boolean refresh() {\n/* 153 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"private void setNewStatusIfNeeded() {\n \t\tfor(FileDiffDirectory dir : directories ) {\n \t\t\tif (dir.getState() != DiffState.SAME) {\n \t\t\t\tsetState(DiffState.CHANGED);\n \t\t\t\treturn;\n \t\t\t}\n \t\t}\n \t\t\n \t\tfor(FileDiffFile file : files ) {\n \t\t\tif (file.getState() != DiffState.SAME) {\n \t\t\t\tsetState(DiffState.CHANGED);\n \t\t\t\treturn;\n \t\t\t}\n \t\t}\n \t}",
"private boolean OK() {\r\n return in == saves[save-1];\r\n }",
"@Override\r\n\tpublic boolean runAgain(CompilationUnit unit) {\n\t\treturn false;\r\n\t}",
"public boolean checkChangeDetection() throws Exception{\n\t\t\tint length = -1 ;\n\t\t\tFuzzyRule ruleRemove = null ;\n\t\t\tfor (FuzzyRule rule: rs){\n\t\t\t\tif (rule.getChangeStatus()){\n\t\t\t\t\tif (rule.getHistory().size()>length){\n\t\t\t\t\t\tlength = rule.getHistory().size() ;\n\t\t\t\t\t\tif (rule!=defaultRule)\n\t\t\t\t\t\t\truleRemove = rule ;\n\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tboolean drift = false ;\n\t\t\tif (ruleRemove!=null && rs.size()>1){\n\t\t\t\tif (chooseSingleRuleOption.isSet()) {\n\t\t\t\t\trs.remove(ruleRemove) ;\t\t\t\t\t\n\t\t\t\t}else {\n\t\t\t\t\tfor (FuzzyRule rule: rs){ \n\t\t\t\t\t\tif (rule!=ruleRemove){\n\t\t\t\t\t\t\tboolean tempDrift = rule.mergeWithSibling(ruleRemove) ;\n\t\t\t\t\t\t\tif (tempDrift){\n\t\t\t\t\t\t\t\trule.clearExtendedCandidates();\n\t\t\t\t\t\t\t\trule.clearStats();\n\t\t\t\t\t\t\t\trule.buildExtendedCandidates();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t drift = drift || tempDrift ;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\trs.remove(ruleRemove) ;\n\t\t\t\t}\n\t\t\t}\t\t\t\n\t\t\treturn drift ;\n\t\t}",
"public int logic4()\r\n\t{\r\n\t\tint changesMade = 0;\r\n\t\treturn changesMade;\r\n\t}",
"private boolean returnChange() {\n if (userMoney >= 0) {\n userMoney -= userMoney;\n return true;\n } else {\n return false;\n }\n }",
"private boolean commitChecker() {\n\t\tFile file = new File(stagePath);\n\t\tFile[] files = file.listFiles();\n\t\tif (files.length == 0 && untrackedFiles.size() == 0) {\n\t\t\tSystem.out.println(\"No changes added to the commit.\");\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"private boolean userMadeChanges() {\n\t\treturn userMadeChanges(null);\n\t}",
"@Override\n\tpublic boolean updateStatus() {\n\t\treturn false;\n\t}",
"@Override\n public boolean redo() {\n // nothing required to be done\n return false;\n }",
"@Override\n\tpublic boolean hasChanged() {\n\t\treturn this.changed;\n\t}",
"void checkAndUpdateBoundary(Integer requiredChange);",
"protected void failed()\r\n {\r\n //overwrite\r\n }",
"void changed ( boolean isEmpty ) ;",
"protected boolean processChannelListChanged(String change, int channelNumber) {\n return false;\n }",
"private void doOneUpdateStep(){\r\n SparseFractalSubTree target = null; //stores the tree which will receive the update\r\n for (int i = 0; i < subTrees.length - 1; i++) { //top tree never receives an update (reason for -1)\r\n SparseFractalSubTree subTree = subTrees[i];\r\n if (!subTree.hasStopped()) { //not permanently or temporary finished\r\n if (target != null) { //are we the first tree who can receive an update\r\n if ((subTree.getTailHeight() < target.getTailHeight())) { //are we a better candidate then the last one?\r\n target = subTree;\r\n }\r\n } else { //we are the first not finished subtree, so we receive the update if no better candidate is found\r\n target = subTree;\r\n }\r\n\r\n }\r\n }\r\n assert (target != null);\r\n assert (check(target)); //check all the assumptions\r\n\r\n measureDynamicSpace(); //measure\r\n\r\n target.updateTreeHashLow(); //apply a update to the target\r\n }",
"public boolean hasChanged();",
"public boolean hasChanged();",
"public boolean wasChangeDetected() {\n return bChangeDetected;\n }",
"boolean isOssModified();",
"public boolean changeMade()\n {\n return isChanged;\n }",
"private void checkStatus()\n {\n // If the last command failed\n if(!project.getLastCommandStatus())\n {\n view.alert(\"Error: \" + project.getLastCommandStatusMessage());\n\t\t}\n\t\telse\n\t\t{\n\t\t\tCommand lastCmd = project.getLastCommand();\n\t\t\tif (lastCmd != null && lastCmd.hasOptionalState())\n\t\t\t{\n\t\t\t\tview.loadFromJSON(lastCmd.getOptionalState());\n\t\t\t\tview.onUpdate(project.getProjectSnapshot(), false);\n\t\t\t}\n\t\t}\n }",
"void changed(State state, Exception e);",
"private void checkIsBetterSolution() {\n if (solution == null) {\n solution = generateSolution();\n //Si la solucion que propone esta iteracion es mejor que las anteriores la guardamos como mejor solucion\n } else if (getHealthFromAvailableWorkers(availableWorkersHours, errorPoints.size()) < solution.getHealth()) {\n solution = generateSolution();\n }\n }",
"public void checkFinish()\t{\n\t\tif(readCompareResult() == true)\t{\n\t\t\tfinished = true;\n\t\t}\n\t}",
"public boolean jumpMayBeChanged() {\n\t\treturn (subBlocks[1].jump != null || subBlocks[1].jumpMayBeChanged());\n\t}",
"public boolean breakCheck() {\n\t\tnotBroken=false;\n\t\treturn true;\n\t}",
"@Override\n public WorkflowStep fail() {\n this.boardChangeDetected = 0;\n QQTetris.calculationThread.cancel();\n return INITIAL_BOARD.execute(false);\n }",
"public void testWithUndefinedSelection() {\n final TestUpdateSettings settings = new TestUpdateSettings(ChannelStatus.EAP);\n //first time load\n UpdateStrategy strategy = new UpdateStrategy(9, BuildNumber.fromString(\"IU-98.520\"), UpdatesInfoXppParserTest.InfoReader.read(\"idea-same.xml\"), settings);\n\n final CheckForUpdateResult result1 = strategy.checkForUpdates();\n Assert.assertEquals(UpdateStrategy.State.LOADED, result1.getState());\n Assert.assertNull(result1.getNewBuildInSelectedChannel());\n }",
"@Override\n\tpublic void endCheck() {\n\t}",
"public boolean hasChanges() {\n return Math.abs(this.x) > 1.0E-5f || Math.abs(this.y) > 1.0E-5f || Math.abs(this.scale - this.minimumScale) > 1.0E-5f || Math.abs(this.rotation) > 1.0E-5f || Math.abs(this.orientation) > 1.0E-5f;\n }",
"final void resetChanged() {\n this.changed = false;\n }",
"@Override\r\n\tpublic int update() throws Exception {\n\t\treturn 0;\r\n\t}",
"@Test\n\tpublic void return_change_0_test() {\n\t\t//Arrange\n\t\tint[] arrays = new int[4];\n\t\t\n\t\t\n\t\t//Act\n\t\tint[] actualOutput = testSteve.returnChange(0);\n\t\t\n\t\t//Assert\n\t\tAssert.assertArrayEquals(arrays, actualOutput);\n\t}",
"public void chg() {\n currentChangeStep = 3;\n }",
"@Override\n public boolean isOutdated() {\n return false;\n }",
"private void doBasicUpdate(){\n for (int i = 0; i < subTrees.length - 1; i++) { //top tree never receives an update (reason for -1)\r\n if(!subTrees[i].hasStopped()) {\r\n doOneUpdateStep() ;\r\n }\r\n }\r\n }",
"private boolean solutionChecker() {\n\t\t// TODO\n\t\treturn false;\n\n\t}",
"public void chgOk() {\n Valid v = new Valid();\n try {\n v.startValidations();\n v.NB(\"Company name\", chgEntity.getName());\n v.NB(\"Contact\", chgEntity.getContact());\n if (v.isErrors()) return;\n chgEntity.update(dbc);\n applicationBean.setCompaniesStale();\n initializeChg();\n } catch (Exception e) {\n String em = \"chgOK() \" + e.getMessage();\n syslog.warn(em);\n FacesUtil.addErrorMessage(em);\n }\n }",
"@Override\n public boolean exitChecker() {\n return false;\n }",
"private void analyseSelf(final Result result) {\r\n\t\tfor (final AbstractChangeSetModule module : ModuleManager.getInstance().getChangeSetModules()) {\r\n\t\t\ttry {\r\n\t\t\t\tmodule.execute(changeSetDAO, result);\r\n\t\t\t} catch (Exception exception) { //NOPMD\r\n\t\t\t\tmodule.publishError(result, exception);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"protected boolean continueOnWriteError() {\n/* 348 */ return true;\n/* */ }",
"private boolean isDirty()\r\n {\r\n //\r\n return _modified;\r\n }",
"@Override\r\n\tpublic boolean voidIt() {\n\t\treturn false;\r\n\t}",
"public boolean hasStatusChanged() {\n return typeCase_ == 5;\n }",
"public boolean hasStatusChanged() {\n return typeCase_ == 5;\n }",
"protected synchronized void setChanged() {\n changed = true;\n }",
"private void checkChanges() {\n CertificationStyleWrapper wrapper = (CertificationStyleWrapper) cbCertificationStyle.getSelectedItem();\n if (wrapper != null && settings.getCertificationStyle() != wrapper.style) {\n settings.setCertificationStyle(wrapper.style);\n }\n\n // set NFO filenames\n settings.clearNfoFilenames();\n if (chckbxTvShowNfo1.isSelected()) {\n settings.addNfoFilename(TvShowNfoNaming.TV_SHOW);\n }\n\n settings.clearEpisodeNfoFilenames();\n if (chckbxEpisodeNfo1.isSelected()) {\n settings.addEpisodeNfoFilename(TvShowEpisodeNfoNaming.FILENAME);\n }\n }",
"private void getStatus() {\n\t\t\n\t}",
"@Override\n public boolean continuePastError() {\n return false;\n }",
"protected boolean processDeltaBoard(DeltaBoardStruct data){return false;}",
"@Override\n\t\t\tpublic void onFail() {\n\t\t\t\tcallBack.onCheckUpdate(-1, null); // 检查出错\n\t\t\t}",
"@Override\n\tprotected boolean isStoppingConditionReached() {\n\t\t\n\t\tboolean flag = iteration > maxIteration || \n\t\t\t\tlocalSearchTime > maxLocalSearchTime || \n\t\t\t\t!isUpdate;\n\t\tisUpdate = false ;\n\t\treturn flag ;\n\t}",
"@Override\n public void errorOnUpdate(String buxError) {\n }",
"protected void errorIfStarted() {\r\n if (HasStarted) {\r\n throw new Error(\"Cannot change settings, algorithm has started.\");\r\n }\r\n }",
"long getLastChanged();",
"public synchronized boolean hasChanged() {\n return changed;\n }",
"public boolean isChangeType()\n {\n return hasChanges;\n }",
"boolean shouldModify();",
"private static boolean needsUpdate(File file, File oldFile, JsonObject old_manifest, JsonObject obj, long size, String hash) {\n try {\n boolean check1 = !oldFile.exists();\n if (check1) return true;\n boolean check2 = !file.exists();\n if (check2) return true;\n boolean check3 = file.length() != size;\n if (check3) return true;\n boolean check4 = old_manifest == null;\n if (check4) return true;\n boolean check5 = old_manifest.get(\"files\") == null;\n if (check5) return true;\n boolean check6 = getHashFromPath(old_manifest.get(\"files\").getAsJsonArray(), obj.get(\"path\").getAsString()) == null;\n if (check6) return true;\n boolean check7 = !getHashFromPath(old_manifest.get(\"files\").getAsJsonArray(), obj.get(\"path\").getAsString()).equals(hash);\n if (check7) return true;\n\n return false;\n } catch (Exception ex) {\n StringWriter sw = new StringWriter();\n PrintWriter pw = new PrintWriter(sw);\n ex.printStackTrace(pw);\n log(sw.toString());\n return true;\n }\n }",
"private boolean checkForNewData ()\n\t{\t\t\n\t\tLOG.info(\"Checking trigger source '\" + config.getTriggerSource() + \".\" + \n\t\t\t\tconfig.getTriggerTable() + \".\" + config.getTriggerColumn() + \"'\");\n\t\t\n\t\t// get value from source\n\t\tObject newValue = null;\n\t\tint colType = -1;\n\t\ttry \n\t\t{\n\t\t\tSourceDatabase sourceDatabase = CopyToolConnectionManager.getInstance().getSourceDatabase(config.getTriggerSource());\n\t\t\t\n\t\t\tStatement selectStmt =\n\t\t\t\t\tCopyToolConnectionManager.getInstance().getSourceConnection(config.getTriggerSource()).createStatement();\n\t\t\t\n\t\t\tString triggerDate = sourceDatabase.getDatabaseType().getSelectTriggerColumnQuery(config.getTriggerTable(), config.getTriggerColumn());\n\t\t\tResultSet res = selectStmt.executeQuery(triggerDate);\n\t\t\t\n\t\t\t// no rows in table? then we cannot determine any indication\n\t\t\t// so we return indication of new data\n\t\t\tif (!res.next()) return true;\t\t\t\n\t\t\t\n\t\t\tResultSetMetaData info = res.getMetaData();\n\t\t\t\n\t\t\tcolType = info.getColumnType(1);\n\t\t\t\t\t\t\n\t\t\tif (colType == Types.BIGINT || colType == Types.INTEGER)\n\t\t\t{\n\t\t\t\tcolType = Types.BIGINT;\n\t\t\t\tnewValue = res.getLong(1);\n\t\t\t}\n\t\t\telse if (colType == Types.DATE)\n\t\t\t{\n\t\t\t\tnewValue = res.getDate(1);\n\t\t\t}\n\t\t\telse if (colType == Types.TIMESTAMP)\n\t\t\t{\n\t\t\t\tnewValue = res.getTimestamp(1);\n\t\t\t}\n\t\t\t\n\t\t\tres.close();\n\t\t\tselectStmt.close();\n\t\t}\n\t\tcatch (SQLException e)\n\t\t{\n\t\t\tLOG.warn(\"SQLException when trying to access scheduling source\", e);\n\t\t\t\n\t\t\t// return indication of new data since we don't know for sure\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif (newValue == null)\n\t\t{\n\t\t\t// return indication of new data since we don't know for sure\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\t// load existing value from disk\n\t\tFile jobFile = getLastRunFile();\n\t\t\n\t\tBufferedReader br = null;\n\t\tString oldValue = null;\n\t\tString oldColType = null;\n\t\tString oldConfigChecksum = null;\n\t\tif (jobFile.exists()) \n\t\t{\n\t\t\ttry {\n\t\t\t\tbr = new BufferedReader(new FileReader(jobFile));\n\t\t\t\toldValue = br.readLine();\n\t\t\t\toldColType = br.readLine();\n\t\t\t\toldConfigChecksum = br.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\t// ignore\n\t\t\t\tLOG.warn(\"Unable to read existing lastrun info\", e);\n\t\t\t} finally {\n\t\t try {\n\t\t \tif (br != null)\n\t\t \t\tbr.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// ignore\n\t\t\t\t}\n\t\t }\n\t\t}\n\t\t\n\t\t// set last run properties\n\t\tthis.lastRunValue = newValue;\n\t\tthis.lastRunColType = colType;\n\t \n\t if (StringUtils.isEmpty(oldValue) || StringUtils.isEmpty(oldColType) || StringUtils.isEmpty(oldConfigChecksum))\n\t {\n\t \t// return indication of new data since we don't know for sure\n\t\t\treturn true;\n\t }\n\t \n\t // check if we are dealing with the same type of data\n\t if (!oldColType.equals(String.valueOf(colType)))\n\t {\n\t \t// return indication of new data since we don't know for sure\n\t \treturn true;\n\t }\n\t \n\t // check if we are dealing with the same config\n\t if (!oldConfigChecksum.equals(config.getConfigChecksum()))\n\t {\n\t \t// return indication of new data since we don't know for sure\n\t \treturn true;\n\t }\n\t \n\t LOG.info(\"Stored last run value: \" + oldValue);\n\t LOG.info(\"Current last run value: \" + newValue);\n\t \n\t // check if there is newer data\n\t if (colType == Types.BIGINT)\n\t {\n\t \tLong oldNum = Long.valueOf(oldValue);\n\t \tLong newNum = (Long) newValue;\n\t \t\n\t \t// is new ID / long bigger than current?\n\t \t// then we have new data\n\t \tif (newNum > oldNum)\n\t \t\treturn true;\n\t }\n\t else if (colType == Types.DATE)\n\t {\n\t \tDate oldDate = Date.valueOf(oldValue);\n\t \tDate newDate = (Date) newValue;\n\t \t\n\t \t// is newer date after older date?\n\t \t// then we have new data\n\t \tif (newDate.after(oldDate))\n\t \t\treturn true;\n\t }\n\t else if (colType == Types.TIMESTAMP)\n\t {\n\t \tTimestamp oldTS = Timestamp.valueOf(oldValue);\n\t \tTimestamp newTS = (Timestamp) newValue;\n\t \t\n\t \t// is newer timestamp after older timestamp?\n\t \t// then we have new data\n\t \tif (newTS.after(oldTS))\n\t \t\treturn true;\n\t }\n\t\t\n\t // no new data\n\t\treturn false;\n\t}",
"@Override\n\tpublic void check() {\n\t\t\n\t}",
"@Override\n\tpublic void check() {\n\t\t\n\t}",
"public boolean nextState() {\n\t\treturn false;\n\t}",
"public boolean changed() {\r\n\t\treturn changed;\r\n\t}",
"@Override\n\tpublic int update() {\n\t\treturn 0;\n\t}",
"@Test(expected = ChangeException.class)\n public void testGiveChangeException()throws ChangeException{\n instance.scanItem(0.55);\n instance.scanItem(1.27);\n instance.giveChange();\n }",
"@Override\n public boolean isDirty() {\n return false;\n }",
"final void checkForComodification() {\n\t}",
"SolutionChange getPreviousChange();",
"@Test\r\n\tpublic void testChangeTheOriginalChooseIsBetterThanNotChange() {\r\n\t\tMontyHall monty = new MontyHall();\r\n\t\tmonty.setChanged(true);\r\n\t\tfloat rateOfChange = monty.rateOfWinThePrizeWithChangeTheOriginalChoose(10);\r\n\t\tmonty.setChanged(false);\r\n\t\tfloat rateOfNotChange = monty.rateOfWinThePrizeWithoutChangeTheOriginalChoose(10);\r\n\t\tassertTrue(rateOfChange > rateOfNotChange);\r\n\r\n\t\t/* count is 100 */\r\n\t\tmonty.setChanged(true);\r\n\t\trateOfChange = monty.rateOfWinThePrizeWithChangeTheOriginalChoose(100);\r\n\t\tmonty.setChanged(false);\r\n\t\trateOfNotChange = monty.rateOfWinThePrizeWithoutChangeTheOriginalChoose(100);\r\n\t\tassertTrue(rateOfChange > rateOfNotChange);\r\n\r\n\t\t/* count is 10000 */\r\n\t\tmonty.setChanged(true);\r\n\t\trateOfChange = monty.rateOfWinThePrizeWithChangeTheOriginalChoose(10000);\r\n\t\tmonty.setChanged(false);\r\n\t\trateOfNotChange = monty.rateOfWinThePrizeWithoutChangeTheOriginalChoose(10000);\r\n\t\tassertTrue(rateOfChange > rateOfNotChange);\r\n\r\n\t\t/* count is 1000000 */\r\n\t\tmonty.setChanged(true);\r\n\t\trateOfChange = monty.rateOfWinThePrizeWithChangeTheOriginalChoose(1000000);\r\n\t\tmonty.setChanged(false);\r\n\t\trateOfNotChange = monty.rateOfWinThePrizeWithoutChangeTheOriginalChoose(1000000);\r\n\t\tassertTrue(rateOfChange > rateOfNotChange);\r\n\t}",
"default boolean pollOnExecutionFailed() {\n return false;\n }",
"public void checkForMod() {\n if (modCount != expectedModCount) {\n throw new ConcurrentModificationException();\n }\n }",
"static private <T> boolean setIfDifferent(Channel<T> ch, T value) throws CAException, TimeoutException {\n if (!value.equals(ch.getFirst())) {\n ch.setValue(value);\n return true;\n } else {\n return false;\n }\n }",
"@Test\n public void testTargetChangedNoModification() throws Exception {\n when(mockDifferentiator.isNew(Mockito.any(ByteBuffer.class))).thenReturn(false);\n final ConfigurationChangeNotifier testNotifier = mock(ConfigurationChangeNotifier.class);\n\n // In this case the WatchKey is null because there were no events found\n establishMockEnvironmentForChangeTests(null);\n\n verify(testNotifier, Mockito.never()).notifyListeners(Mockito.any(ByteBuffer.class));\n }",
"public boolean isChanged()\r\n\t{\r\n\t\treturn changed;\r\n\t}"
] |
[
"0.62397957",
"0.5933342",
"0.5915903",
"0.5871362",
"0.5851741",
"0.58215344",
"0.58068985",
"0.5806037",
"0.5751676",
"0.57025725",
"0.5684447",
"0.56773484",
"0.5675993",
"0.56505936",
"0.56505936",
"0.56505936",
"0.5648626",
"0.5635684",
"0.56223935",
"0.5621611",
"0.5621019",
"0.56190586",
"0.56041545",
"0.56038344",
"0.5567455",
"0.55205214",
"0.5513176",
"0.5510487",
"0.54993236",
"0.5488356",
"0.5482589",
"0.54685897",
"0.54597723",
"0.54551315",
"0.54467326",
"0.5445237",
"0.54151547",
"0.5371153",
"0.5366699",
"0.5340276",
"0.5333128",
"0.5332828",
"0.5332828",
"0.53321385",
"0.5321488",
"0.5320568",
"0.5316932",
"0.5315802",
"0.53094167",
"0.53060013",
"0.5293107",
"0.52875966",
"0.52850926",
"0.5284319",
"0.52823776",
"0.52788657",
"0.5274541",
"0.52698314",
"0.52631855",
"0.52463675",
"0.52449846",
"0.5242894",
"0.5238436",
"0.522764",
"0.52257097",
"0.52202386",
"0.5214473",
"0.5187029",
"0.51852846",
"0.518431",
"0.51841897",
"0.51840377",
"0.51828796",
"0.51822513",
"0.51745117",
"0.517417",
"0.5173935",
"0.5173451",
"0.5171447",
"0.51712906",
"0.5167561",
"0.5165584",
"0.51624066",
"0.5161179",
"0.5154118",
"0.5151097",
"0.51448965",
"0.51448965",
"0.51403517",
"0.5135944",
"0.5129337",
"0.51275504",
"0.5126349",
"0.51261395",
"0.51259834",
"0.5121372",
"0.51211816",
"0.51161945",
"0.51145804",
"0.5111426",
"0.5109013"
] |
0.0
|
-1
|
Inflate the menu; this adds items to the action bar if it is present.
|
@Override
public boolean onCreateOptionsMenu(Menu menu) {
getSupportMenuInflater().inflate(R.menu.activity_display_selected_scripture,
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
|
Methods to set custom bank behavior from a config.yml / Daily interest rate is computed as the compounding rate that will double the player's account value in the specified number of days, r = 2 ^ (1/days)
|
public boolean setInterest( int days ) {
// Interest is disabled by setting the rate to 0
if (days == 0) {
rate = 0;
BankMaster.plugin.getLogger().info("interest is disabled.");
return true;
}
// Double-up days can't be negative or more than a year
if (days < 0 || days > 365)
return false;
rate = Math.pow(2, 1.0/days);
Bukkit.getLogger().info("BankMaster interest rate = " + rate);
return true;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setRate(double annualRate) {\nmonthlyInterestRate = annualRate / 100.0 / MONTHS;\n}",
"void setBalance(double value);",
"private float caculateAmount(float amountIn) {\n float amount = amountIn;\n if (1 == OppoBrightUtils.mBrightnessBitsConfig) {\n OppoBrightUtils oppoBrightUtils = this.mOppoBrightUtils;\n if (OppoBrightUtils.mUseAutoBrightness && this.mAnimatedValue <= ((float) mSlowAnimtionBrightnessVaule)) {\n OppoBrightUtils oppoBrightUtils2 = this.mOppoBrightUtils;\n if (!OppoBrightUtils.mUseWindowBrightness && amountIn < 1.0f) {\n amount = 1.0f;\n }\n }\n } else if (2 == OppoBrightUtils.mBrightnessBitsConfig) {\n OppoBrightUtils oppoBrightUtils3 = this.mOppoBrightUtils;\n if (OppoBrightUtils.mUseAutoBrightness && this.mAnimatedValue <= ((float) mSlowAnimtionBrightnessVaule)) {\n OppoBrightUtils oppoBrightUtils4 = this.mOppoBrightUtils;\n if (!OppoBrightUtils.mUseWindowBrightness && this.mTargetValue < this.mCurrentValue && this.mRate != OppoBrightUtils.BRIGHTNESS_RAMP_RATE_FAST) {\n amount = 0.5f;\n if (OppoBrightUtils.mScreenGlobalHBMSupport && this.mAnimatedValue > ((float) OppoBrightUtils.mMaxBrightness) && ((double) 0.5f) < 4.0d) {\n amount = 4.0f;\n }\n }\n }\n } else if (3 == OppoBrightUtils.mBrightnessBitsConfig) {\n OppoBrightUtils oppoBrightUtils5 = this.mOppoBrightUtils;\n if (OppoBrightUtils.mUseAutoBrightness && this.mAnimatedValue <= ((float) mSlowAnimtionBrightnessVaule)) {\n OppoBrightUtils oppoBrightUtils6 = this.mOppoBrightUtils;\n if (!OppoBrightUtils.mUseWindowBrightness && this.mTargetValue < this.mCurrentValue && this.mRate != OppoBrightUtils.BRIGHTNESS_RAMP_RATE_FAST) {\n amount = 0.3f;\n }\n }\n } else {\n OppoBrightUtils oppoBrightUtils7 = this.mOppoBrightUtils;\n if (OppoBrightUtils.mUseAutoBrightness && this.mAnimatedValue <= ((float) mSlowAnimtionBrightnessVaule)) {\n OppoBrightUtils oppoBrightUtils8 = this.mOppoBrightUtils;\n if (!OppoBrightUtils.mUseWindowBrightness && this.mTargetValue < this.mCurrentValue && this.mRate != OppoBrightUtils.BRIGHTNESS_RAMP_RATE_FAST) {\n amount = 0.1f;\n }\n }\n }\n if (!DisplayPowerController.mScreenDimQuicklyDark) {\n return amount;\n }\n if (4 == OppoBrightUtils.mBrightnessBitsConfig) {\n return 30.0f;\n }\n if (3 == OppoBrightUtils.mBrightnessBitsConfig) {\n return 20.0f;\n }\n if (2 == OppoBrightUtils.mBrightnessBitsConfig) {\n return 10.0f;\n }\n return 2.0f;\n }",
"public SavingsAccount(double rate) //setting interest rate with constructor\r\n { \r\n interestRate = rate;\r\n }",
"public double getRate( ) {\nreturn monthlyInterestRate * 100.0 * MONTHS;\n}",
"public void applyInterest()\n {\n deposit( (getBalance()* getInterestRate()) /12);\n }",
"public abstract void setRate();",
"@Override\n public void withdraw(double amount) //Overridden method\n {\n elapsedPeriods++;\n \n if(elapsedPeriods<maturityPeriods)\n {\n double fees = getBalance()*(interestPenaltyRate/100)*elapsedPeriods;\n super.withdraw(fees);//withdraw the penalty\n super.withdraw(amount);//withdraw the actual amount\n \n }\n \n }",
"public void setMyIncomeMultiplier(float factor) throws CallbackAIException;",
"public void setRate();",
"public void applyInterest(double rate) {\n if ((rate > 0) && (balance < 0)) {\n withdraw((int) (-balance*rate));\n } \n if ((rate > 0) && (balance > 0)) {\n deposit((int) (balance*rate));\n }\n }",
"public abstract void setDiscountRate(double discountRate);",
"public interface DiscountStrategy {\n /**\n * 会员折扣策略\n * @param level\n * @param money\n * @return\n */\n double getDiscountPrice(int level,double money);\n}",
"void setIncome(double amount);",
"public void setRate(int rate) { this.rate = rate; }",
"public void setBalance(double bal){\n balance = bal;\r\n }",
"void setCurrencyCalculatorConfig(CurrencyCalculatorConfig config);",
"public void setDailyMaxWithdraw(double amount){\n this.dailyMaxWithdraw = amount;\n }",
"public void setDecayRate(double newDecayRate ){\n\n decayRate= newDecayRate;\n}",
"double getRate();",
"public Savings_Account (int account_num, double initial_balance, double interest_rate) \r\n {\r\n\r\n super (account_num, initial_balance);\r\n\r\n rate = interest_rate;\r\n\r\n }",
"public TimeDepositAccount(double interestRate, double balance, int maturityPeriods, double interestPenaltyRate) // constructor\n {\n super(interestRate,balance);\n this.elapsedPeriods=0;\n this.maturityPeriods=maturityPeriods;\n this.interestPenaltyRate = interestPenaltyRate;\n \n \n }",
"@Override\n public double calculatePayDay()\n {\n double perWeekEarned = hourlyRate * hoursPerWeek;\n return (double)Math.round(perWeekEarned * 100) / 100;\n }",
"public void setPeriod(int periodInYears) {\nnumberOfPayments = periodInYears * MONTHS;\n}",
"abstract public double getBegBal(int yr);",
"@Override\n public double calculateInterest(double amount) {\n\t\treturn ( hasWithdrawalInPast10Days() ? 0.001 : 0.05 ) * amount;\n }",
"public void InitializeBalance(BigDecimal valor){\n \r\n ChekingAccount chekAc=pRepository.GetChekingAccount();\r\n chekAc.setSaldoInicial(valor);\r\n pRepository.SaveChekingAccount(chekAc);\r\n \r\n }",
"abstract double calculateCurrentDiscountRate();",
"public void deposit(double value){\r\n balance += value;\r\n}",
"public abstract double getDiscountRate();",
"public void setAmount(double amount) {\nloanAmount = amount;\n}",
"double getBalance();",
"double getBalance();",
"@Override\n public double interestEarned(double amount, Date dateOfLastWithdrawal) {\n double result;\n\n if (amount <= 1000) {\n result = amount * 0.02;\n } else if (amount <= 2000) {\n result = 20 + (amount - 1000) * 0.05;\n } else {\n result = 70 + (amount - 2000) * 0.1;\n }\n\n Date currentDateBefore10Days = DateProvider.getInstance().getCurrentDateBefore10Days();\n if (dateOfLastWithdrawal != null && dateOfLastWithdrawal.before(currentDateBefore10Days)) {\n result = result * 1.05;\n }\n\n return result;\n }",
"public void payEconomical() {\n if (this.balance >= 2.50) {\n this.balance -= 2.50;\n }\n }",
"double calculate(Coupon coupon, double payable);",
"float getVacationAccrualRate();",
"public void setAmount(int moneyOption);",
"public interface BudgetRateAndBaseService {\n\n /**\n * Calculates the applicable F & A rate for the given award. This should be\n * the F&A rate based on the start date of the award's budget.\n *\n * @param award\n * the award to calculate the applicable rate for\n * @return a BudgetDecimal representing the rate, or null or no rate for the\n * given affective date could be found\n * @throws IllegalArgumentException\n * if the given award is null\n * @throws IllegalArgumentException\n * if the given award does not have a budget\n * @throws IllegalStateException\n * if the located budget does not have a start date\n */\n ScaleTwoDecimal calculateApplicableFandARate(Award award);\n\n}",
"public static void main(String[] args) {\n\t\tSystem.out.println(Payroll.OVERTIME_RATE);\n\t\tSystem.out.println(Payroll.REGULAR_WEEK);\n\t\tSystem.out.println(Payroll.LEVEL_ONE_PAY);\n\t\tSystem.out.println(Payroll.LEVEL_TWO_PAY);\n\t\tSystem.out.println(Payroll.LEVEL_THREE_PAY);\n\t\tSystem.out.println(Payroll.PayLevel.ONE);\n\t\tSystem.out.println(Payroll.PayLevel.TWO);\n\t\tSystem.out.println(Payroll.PayLevel.THREE);\n\t\tSystem.out.println();\n\t\t\n\t\tSystem.out.println(Payroll.calculatePay(1, Payroll.PayLevel.ONE));\n\t\tSystem.out.println(Payroll.calculatePay(10, Payroll.PayLevel.TWO));\n\t\tSystem.out.println(Payroll.calculatePay(20, Payroll.PayLevel.THREE));\n\t\tSystem.out.println(Payroll.calculatePay(70, Payroll.PayLevel.TWO));\n\t\t\n\t\ttry {\n\t\t\t System.out.println(Payroll.calculatePay(100, Payroll.PayLevel.TWO));\n\t\t\t} catch (IllegalArgumentException ex) {\n\t\t\t System.out.println(\"failure\");\n\t\t\t}\n\t\t\n\t\tPayroll.REGULAR_WEEK = 20;\n\t\tSystem.out.println(Payroll.calculatePay(25, Payroll.PayLevel.TWO));\n\t\t\n\t\tPayroll.OVERTIME_RATE = 2;\n\t\tPayroll.REGULAR_WEEK = 40;\n\t\tSystem.out.println(Payroll.calculatePay(35, Payroll.PayLevel.TWO));\n\t\t\n\t\tPayroll.OVERTIME_RATE = 1.75;\n\t\tPayroll.REGULAR_WEEK = 40;\n\t\tPayroll.LEVEL_ONE_PAY = 12;\n\t\tSystem.out.println(Payroll.calculatePay(35, Payroll.PayLevel.ONE));\n\t\t\n\t\tPayroll.OVERTIME_RATE = 1.75;\n\t\tPayroll.REGULAR_WEEK = 25;\n\t\tPayroll.LEVEL_TWO_PAY = 30;\n\t\tSystem.out.println(Payroll.calculatePay(35, Payroll.PayLevel.TWO));\n\t\t\n\t\tPayroll.OVERTIME_RATE = 1.75;\n\t\tPayroll.REGULAR_WEEK = 40;\n\t\tPayroll.LEVEL_THREE_PAY = 50;\n\t\tSystem.out.println(Payroll.calculatePay(10, Payroll.PayLevel.THREE));\n\t}",
"public void companyPayRoll(){\n calcTotalSal();\n updateBalance();\n resetHoursWorked();\n topBudget();\n }",
"public BigDecimal getLBR_TaxDeferralRate();",
"public double calcInterest(){\n double interest = (interestRate + 1) * balance;\n return interest;\n }",
"public void enterPayment(int coinCount, Coin coinType)\n {\n balance = balance + coinType.getValue() * coinCount;\n // your code here\n \n }",
"public void setInterest(double rate)\n {\n interestRate = rate;\n }",
"private double getBalance() { return balance; }",
"void setExpenses(double amount);",
"private void setBalance(double balance) {\n this.balance = balance;\n }",
"abstract protected BigDecimal getBasicTaxRate();",
"public String myAfterBalanceAmount() {\r\n\t\tint count=0;\r\n\t\tList<SavingAccount> acc = null;\r\n\t\ttry {\r\n\t\t\tSystem.out.println(\"Before Repeat\");\r\n\t\t\tacc = getSavingAccountList();\r\n\r\n\t\t\tfor (SavingAccount savingAcc : acc) {\r\n\t\t\t\tif (!(\"0\".equals(savingAcc.getState()))) {\r\n\t\t\t\t\tif (savingAcc.getState().equals(\"active\")) {\r\n\t\t\t\t\t\tint maxRepeat = Integer.parseInt(savingAcc\r\n\t\t\t\t\t\t\t\t.getRepeatable());\r\n\r\n\t\t\t\t\t\tDate date = new Date();\r\n\t\t\t\t\t\tDate systemDate = savingAccSer\r\n\t\t\t\t\t\t\t\t.convertStringToDateDDmmYYYY(savingAccSer\r\n\t\t\t\t\t\t\t\t\t\t.convertDateToStringDDmmYYYY(date));\r\n\r\n\t\t\t\t\t\tDate dateEnd = savingAccSer\r\n\t\t\t\t\t\t\t\t.convertStringToDateDDmmYYYY(savingAcc\r\n\t\t\t\t\t\t\t\t\t\t.getDateEnd());\r\n\r\n\t\t\t\t\t\tif (systemDate.getTime() == dateEnd.getTime()) {\r\n\t\t\t\t\t\t\tDate newEndDate = DateUtils.addMonths(systemDate,\r\n\t\t\t\t\t\t\t\t\tsavingAcc.getInterestRateId().getMonth());\r\n\r\n\t\t\t\t\t\t\tfloat balance = savingAcc.getBalanceAmount();\r\n\t\t\t\t\t\t\tfloat interest = savingAcc.getInterestRateId()\r\n\t\t\t\t\t\t\t\t\t.getInterestRate();\r\n\r\n\t\t\t\t\t\t\tint month = savingAcc.getInterestRateId()\r\n\t\t\t\t\t\t\t\t\t.getMonth();\r\n\t\t\t\t\t\t\tint days = Days\r\n\t\t\t\t\t\t\t\t\t.daysBetween(\r\n\t\t\t\t\t\t\t\t\t\t\tnew DateTime(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tsavingAccSer\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.convertStringToDate(savingAcc\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getDateStart())),\r\n\t\t\t\t\t\t\t\t\t\t\tnew DateTime(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tsavingAccSer\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.convertStringToDate(savingAcc\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getDateEnd())))\r\n\t\t\t\t\t\t\t\t\t.getDays();\r\n\t\t\t\t\t\t\tfloat amountAll = balance\r\n\t\t\t\t\t\t\t\t\t+ (balance * ((interest / (100)) / 360) * days);\r\n\t\t\t\t\t\t\tsavingAcc.setDateStart(savingAccSer\r\n\t\t\t\t\t\t\t\t\t.convertDateToString(systemDate));\r\n\t\t\t\t\t\t\tsavingAcc.setDateEnd(savingAccSer\r\n\t\t\t\t\t\t\t\t\t.convertDateToString(newEndDate));\r\n\t\t\t\t\t\t\tsavingAcc.setBalanceAmount(amountAll);\r\n\t\t\t\t\t\t\tsavingAcc.setRepeatable(\"\" + (maxRepeat + 1));\r\n\t\t\t\t\t\t\tupdateSavingAccount(savingAcc);\r\n\t\t\t\t\t\t\tcount+=1;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t\tSystem.out.println(\"Successfully!! \"+ count +\" Saving Account has been updated. Minh Map!!!\");\r\n\t\t\t\r\n\t\t\treturn \"success\";\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tSystem.out.println(\"Exception\");\r\n\r\n\t\t}\r\n\t\treturn \"Fail\";\r\n\t}",
"public DepreciatingPolicy(float amount, float rate){\r\n super(amount);\r\n this.rate = rate*100;\r\n }",
"private float setBankAbsorption(HashMap content) {\n\t\tfloat change = calculateAbsorption();\n this.bankDamageModifier = baseDamageModifier + change;\n//System.out.println(\"bank: \" + this.bankDamageModifier);\n content.put(\"bank_damage_modifier\", \"\" + this.bankDamageModifier);\n\t\treturn change*ABSORPTION_PRICE_MULTIPLIER;\n }",
"public void setSaldoBank(double saldoBank) {\n this.saldoBank = saldoBank;\n }",
"private void setWallet(int dollars) {\n\t\twallet += dollars;\n\t}",
"private Account_Type(int rate) {\r\n\tthis.rate=rate;\r\n\t}",
"public static void main(String[] args){\n //create 2 SavingsAccount objects saver1 and saver2\n SavingsAccount saver1 = new SavingsAccount(2000.00);\n SavingsAccount saver2 = new SavingsAccount(3000.00);\n //set initial int rate at 4%\n SavingsAccount.modifyInterestRate(0.04);\n //calc monthly int for 12 months, set new balances and print new balances\n System.out.println(\"-Month----------Saver 1----------Saver 2----Interest Rate-\");\n for(int i = 1; i < 13; i++){\n //call each objects calc monthly int method 12 times\n saver1.calculateMonthlyInterest();\n saver2.calculateMonthlyInterest();\n //if statements are for proper table formatting, just visual whitespace changes\n if(i<=9) {\n System.out.printf(\" %d $%.02f $%.02f %.02f%%\\n\", i, saver1.getSavingBalance(), saver2.getSavingBalance(), (saver1.getInterestRate()*100.0));\n }\n else{\n System.out.printf(\" %d $%.02f $%.02f %.02f%%\\n\", i, saver1.getSavingBalance(), saver2.getSavingBalance(), (saver1.getInterestRate()*100.0));\n }\n }\n //set int rate to 5%\n SavingsAccount.modifyInterestRate(0.05);\n //calc next months int and print new balances\n saver1.calculateMonthlyInterest();\n saver2.calculateMonthlyInterest();\n System.out.printf(\" 13 $%.02f $%.02f %.02f%%\\n\", saver1.getSavingBalance(), saver2.getSavingBalance(),(saver1.getInterestRate()*100.0));\n System.out.println(\"\");\n }",
"public interface DiscountStrategy {\n\n /**\n * Returns the discount amount given a quantity and a price.\n * @param qty\n * @param price\n * @return a double value for discount amount\n */\n public abstract double getDiscount(int qty, double price);\n \n /**\n * A getter for the discount rate\n * @return a double value\n */\n public abstract double getDiscountRate();\n\n /*\n * Setter for the discount rate.\n */\n public abstract void setDiscountRate(double discountRate);\n \n}",
"public void setBalance(Double balance) {\r\n this.balance = balance;\r\n }",
"@Override\n public double calculatePay ()\n {\n double commissionPay = this.sales * this.rate / 100;\n return commissionPay;\n }",
"public int getCustomInformationTransferRate();",
"public void setAmountBank(double amountBank) {\n this.amountBank = amountBank;\n }",
"int getMortgageRate();",
"public static void main(String[] args) {\n SavingsAccount saver1=new SavingsAccount(2000);\n SavingsAccount saver2=new SavingsAccount(3000);\n int b,i;\n SavingsAccount.modifyInterestRate(4);//Enter this as a percentage number e.g 4 percent or 3.5 as oppposed to .04 or .035\n System.out.println(\"Here is the balance sheet for Saver 1: 4% Interest Rate\\n\");\n for(i=1;i<=12;i++) {//This is the list for saver 1\n\t saver1.calculateMonthlyInterest();\n\t System.out.println(\"Month\\t\"+i+String.format(\"\\t%2f\",saver1.getSavingBalance()));\n }\n System.out.println(\"\\nHere is the balance sheet for saver 2: 4% Interest Rate\\n\");\n for(i=1;i<=12;i++) {\n\t saver2.calculateMonthlyInterest();\n System.out.println(\"Month\\t\"+i+String.format(\"\\t%2f\",saver2.getSavingBalance()));\n }\n \n SavingsAccount.modifyInterestRate(5);//from here just copy and paste the saver1 and saver 2 loops\n System.out.println(\"Here is new balance sheet for Saver 1: 5% Interest Rate\\n\");\n for(i=1;i<=12;i++) {//This is the list for saver 1\n\t saver1.calculateMonthlyInterest();\n\t System.out.println(\"Month\\t\"+i+String.format(\"\\t%2f\",saver1.getSavingBalance()));\n }\n System.out.println(\"\\nHere is new balance sheet for Saver 1: 5% Interest Rate\\\\n\");\n for(i=1;i<=12;i++) {\n\t saver2.calculateMonthlyInterest();\n System.out.println(\"Month\\t\"+i+String.format(\"\\t%2f\",saver2.getSavingBalance()));\n }\n \n \n\t}",
"public void updateRate(double r){\r\n rate *= r;\r\n }",
"public interface ExchangeRateService {\n BigDecimal exchange(Currency curr1, Currency curr2, BigDecimal amount);\n}",
"void updateBalance(int amount){ \n\t\tbalance = amount;\n\t}",
"public Bonus_Saver_Account (int account_num,double initial_balance, double interest_rate)\r\n {\r\n\r\n super (account_num, initial_balance, interest_rate);\r\n\r\n }",
"public void GetInterest() {\n\t\tSystem.out.println(\"balance=\"+bal);\r\n\t\tinterest_rate=((bal/100)*10);\r\n\t\t\r\n\t\tSystem.out.println(\"Interest :- \"+ interest_rate);\r\n\t\tbal=(int) (bal+interest_rate);\r\n\t\tSystem.out.println(\"Balance after interest:- \"+bal );\r\n\t}",
"void payBills();",
"public void calcInterest() {\n double monthlyInterestRate = annualInterestRate / 12;\n double monthlyInterest = balance * monthlyInterestRate;\n balance += monthlyInterest;\n }",
"public void updateBalance(UUID accountId, double amount) {\n Account account = repository.getAccount(accountId);\n account.updateBalance(amount);\n repository.save(account);\n }",
"public interface Account {\n\t\n//\t\n//\t\tMoney money;\n//\t\tInterestRate interestRate;\n//\t\tPeriod interestPeriod;\n\t\t\n\t\tpublic int deposit(int depositAmmount);\n//\t\t{\n//\t\t\treturn money.getMoney()+depositAmmount;\n//\t\t}\n\t\t\n\t\tpublic int withdrawl(int withdrawAmmount);\n//\t\t{\n//\t\t\treturn money.getMoney()-withdrawAmmount;\n//\t\t}\n\t\t\n\t\tpublic int getBalance();\n//\t\t{\n//\t\t\treturn money.getMoney()*interestRate.getInterestRate()*interestPeriod.getPeriod()/100;\n//\t\t}\n\t}",
"public double pay(){\n\t\treturn payRate;\n\t}",
"@Override\r\n\tpublic double calculate(double account, double money) {\n\t\treturn account-money;\r\n\t}",
"int getRent(Player owner, int tenantDiceRoll);",
"public int getChargeRate();",
"public abstract double getDepositDiscount();",
"public interface Payment {\n\n public static final Double BASE_FARE = 5.41;\n\n public double generateBill(Double distance);\n\n}",
"public void setCombatDensityRate(int value) {\n this.combatDensityRate = value;\n }",
"public Account getUpdatedAccount(Player p) {\n\n\t\tAccount a = getAccount(p);\n\t\tif (a != null) {\n\n\t\t\t// update Account with pending interest\n\n\t\t\tDate today = new Date();\n\t\t\tlong now = today.getTime() / 86400000 ;\n\t\t\t/* 'now' is an integral number of days since epoch.\n\t\t\t * There are 86,400 seconds in a day, and 1000 'ticks' in a getTime() value.\n\t\t\t * Interest is considered to compound at midnight\n\t\t\t */\n\t\t\t\n\t\t\t// Update account with accumulated interest, if applicable\n\t\t\t\n\t\t\tif (a.lastUpdate > 0 && rate > 1.0) {\n\t\t\t\tlong periods = now - a.lastUpdate;\n\t\t\t\tif (periods > 0) {\n\t\t\t\t\tBigDecimal oldamt = a.money;\n\t\t\t\t\tdouble newamt = oldamt.doubleValue() * Math.pow(rate, periods);\n\t\t\t\t\ta.money = new BigDecimal(newamt, context);\n\t\t\t\t\ta.money = a.money.setScale(Currency.getDecimals(), RoundingMode.HALF_UP);\n\t\t\t\t\tif (a.money.compareTo(maxMoney) > 0)\n\t\t\t\t\t\ta.money = maxMoney;\n\t\t\t\t\tBigDecimal interest = a.money.subtract(oldamt);\n\t\t\t\t\t\n\t\t\t\t\tp.sendMessage(ChatColor.YELLOW + \"Interest applied: \" + interest);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\ta.lastUpdate = now;\n\t\t\t\n\t\t}\n\t\treturn a;\n\t}",
"protected InterestRate() {\n\t}",
"void setDiscount(BigDecimal discount);",
"public double pay()\r\n{\r\ndouble pay = hoursWorked * payRate;\r\nhoursWorked = 0;\r\nreturn pay;\r\n//IMPLEMENT THIS\r\n}",
"public abstract double pay(BikesType type, double rideDuration);",
"public void setBankroll(double money) {\n bankroll += money;\n if (bankroll <= 0){\n activePlayer = false;\n }\n }",
"public void setRate(Integer rate) {\r\n this.rate = rate;\r\n }",
"@Test\n public void testInterestInitialization ()\n {\n TreeMap<String, String> map = new TreeMap<String, String>();\n map.put(\"accounting.accountingService.minInterest\", \"0.01\");\n map.put(\"accounting.accountingService.maxInterest\", \"0.20\");\n map.put(\"accounting.accountingService.bankInterest\", \"0.008\");\n MapConfiguration mapConfig = new MapConfiguration(map);\n config.setConfiguration(mapConfig);\n\n accountingService.initialize(comp, new ArrayList<String>());\n assertEquals(0.008, accountingService.getBankInterest(), 1e-6, \"correct bank interest\");\n }",
"public interface DiscountStrategy {\r\n \r\n /**\r\n * returns the discount type\r\n * @return \r\n */\r\n public double getDiscount();\r\n \r\n /**\r\n * returns the discounted price\r\n * @param itemPrice the items normal price\r\n * @return the discounted price\r\n */\r\n public double getDiscountedPrice(double itemPrice);\r\n}",
"double getMonthlyInterestRate(){\r\n\t\treturn annualInterestRate/12;\r\n\t}",
"@Override\r\n\tpublic void operateAmount(String AccountID, BigDecimal amount) {\n\r\n\t}",
"private void savingAccountInterest(){\n if(this.watch.checkElapsedTime() >= 30){\n this.watch.stop(); // stopping stopwatch\n this.timeInterval = this.watch.elapsedTime(); // saving elapsed time in variable\n System.out.println(\"this.timeInterval == \"+this.timeInterval);\n this.bal += this.bal * 0.05 * Math.floor(this.timeInterval/30); // incrementing balance by 5% every 30 seconds\n this.watch.start();\n }\n }",
"public void setAbsorbtionRatePerMinute(double r) {\n this.absorbtionRatePerMinute = r;\n }",
"public BigDecimal getLBR_TaxRate();",
"public double calculatePay() \r\n\t{\r\n\t\treturn (payRate*hoursWorked);\r\n\t}",
"public double calculateRate() {\n\t\tdouble rate = 0;\n\t\tfor (int i = 0; i < upgrades.size(); i++) {\n\t\t\trate += upgrades.get(i).getProduction();\n\t\t}\n\t\tbrain.setRate(rate);\n\t\treturn rate;\n\t}",
"public void setBalance(double balance){\n\t\tthis.balance = balance;\n\t}",
"public void setInitilaCash(int noOfBills) throws java.lang.Exception;",
"public BigDecimal getLBR_TaxRateCredit();",
"private void calcBills() {\n\t\tint changeDueRemaining = (int) this.changeDue;\n\n\t\tif (changeDueRemaining >= 20) {\n\t\t\tthis.twenty += changeDueRemaining / 20;\n\t\t\tchangeDueRemaining = changeDueRemaining % 20;\n\t\t}\n\t\tif (changeDueRemaining >= 10) {\n\t\t\tthis.ten += changeDueRemaining / 10;\n\t\t\tchangeDueRemaining = changeDueRemaining % 10;\n\t\t}\n\t\tif (changeDueRemaining >= 5) {\n\t\t\tthis.five += changeDueRemaining / 5;\n\t\t\tchangeDueRemaining = changeDueRemaining % 5;\n\t\t}\n\t\tif (changeDueRemaining >= 1) {\n\t\t\tthis.one += changeDueRemaining;\n\t\t}\n\t}",
"@Override\n public double payment(double amount) {\n return amount * 98 / 100 ;\n }"
] |
[
"0.63364094",
"0.60411775",
"0.5812358",
"0.577793",
"0.5746189",
"0.57412785",
"0.5721142",
"0.57201767",
"0.56772006",
"0.5675136",
"0.5617488",
"0.56072575",
"0.5604887",
"0.55484635",
"0.5459468",
"0.54545325",
"0.5452762",
"0.5444391",
"0.54431814",
"0.5434134",
"0.5430136",
"0.54175377",
"0.541604",
"0.54088295",
"0.5403289",
"0.5397735",
"0.5373122",
"0.53635293",
"0.5324721",
"0.5319949",
"0.5318954",
"0.53173125",
"0.53173125",
"0.5311309",
"0.53087837",
"0.5276483",
"0.5261356",
"0.52385634",
"0.52078575",
"0.5204675",
"0.5185316",
"0.51699835",
"0.51688755",
"0.51638234",
"0.51625216",
"0.5162022",
"0.515507",
"0.5153042",
"0.5145304",
"0.5144119",
"0.51265657",
"0.51043195",
"0.5103524",
"0.5101993",
"0.5100287",
"0.50914836",
"0.50886124",
"0.5081275",
"0.50792676",
"0.50770783",
"0.5076938",
"0.50767744",
"0.5073268",
"0.50666195",
"0.5051079",
"0.5044689",
"0.5044395",
"0.50401396",
"0.50388086",
"0.5037714",
"0.5035025",
"0.5033406",
"0.50276595",
"0.50255585",
"0.50166786",
"0.50133103",
"0.5011372",
"0.5007842",
"0.50056946",
"0.5001936",
"0.49990708",
"0.499847",
"0.49922577",
"0.499003",
"0.49856007",
"0.4983801",
"0.49812418",
"0.49742305",
"0.49641654",
"0.49638215",
"0.496268",
"0.49625108",
"0.49609834",
"0.49591684",
"0.4958673",
"0.49539858",
"0.49462238",
"0.4944521",
"0.49418426",
"0.49334112"
] |
0.53232163
|
29
|
/ findAccount Returns the requested account if in the inmemory list, otherwise reads the account.yml file and adds to the list
|
public Account getAccount(Player p) {
if (p == null)
return null; // safety
// If the account is in memory, return it
for ( Account a : accounts) {
if (a.isFor(p.getUniqueId()))
return a;
}
// spawn a new account object with default values
Account acct = new Account(p.getName(), p.getUniqueId());
// load account status from yml file, if it exists
acct.openAccount();
// append to the bank list
accounts.add(acct);
return acct;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public Account findAccount() {\n Account[] accounts = accountManager.getAccountsByType(ACCOUNT_TYPE);\n\n // only one matching account - use it, and remember it for the next time.\n if (accounts.length == 1) {\n persistAccountName(accounts[0].name);\n return accounts[0];\n }\n\n // No accounts, create one and use it if created, otherwise we have no account to use\n\n if (accounts.length == 0) {\n String accountName = createAccount();\n if (accountName != null) {\n persistAccountName(accountName);\n return accountManager.getAccountsByType(ACCOUNT_TYPE)[0];\n } else {\n Log.i(LOG_TAG, \"User failed to create a valid account\");\n return null;\n }\n }\n\n // Still valid previously chosen account - use it\n\n Account account;\n String accountName = getPersistedAccountName();\n if (accountName != null && (account = chooseAccount(accountName, accounts)) != null) {\n return account;\n }\n\n // Either there is no saved account name, or our saved account vanished\n // Have the user select the account\n\n accountName = selectAccount(accounts);\n if (accountName != null) {\n persistAccountName(accountName);\n return chooseAccount(accountName, accounts);\n }\n\n // user didn't choose an account at all!\n Log.i(LOG_TAG, \"User failed to choose an account\");\n return null;\n }",
"private Account findAccount(String name, String email) throws AccountNotFoundException {\n for (Account current: accounts) {\n if (name.equals(current.getName()) && email.equals(current.getEmail())) {\n return current;\n }\n }\n throw new AccountNotFoundException();\n }",
"public BankAccountInterface getAccount(String accountID){\n BankAccountInterface account = null;\n for(int i = 0; i < accounts.size(); i++){\n if(accounts.get(i).getAccountID().equals(accountID)){\n account = accounts.get(i);\n break;\n } \n }\n return account;\n }",
"public Account findAccount(String login) {\r\n\t\tfor (Account account : listOfAccounts)\r\n\t\t\tif (account.getLogin().equals(login)) return account;\r\n\t\treturn null;\r\n\t}",
"@Override\r\n\tpublic Account findByName(String name) {\n\t\treturn null;\r\n\t}",
"Account getAccount();",
"public static Account getAccount(String accountId) {\r\n return (accounts.get(accountId));\r\n }",
"private int find(Account account) {\r\n\t\tfor ( int i = 0 ; i < accounts.length; i++ ) {\t\t\r\n\t\t\tif ( accounts[i] != null && accounts[i].equals(account) ) { //check if accountDB isn't empty, and if the item is the one we want\r\n\t\t\t\treturn i; //return the index of the item needed\r\n\t\t\t}\r\n\t\t}\t\r\n\t\treturn -1;\r\n\t}",
"public static void UserAccounts() throws FileNotFoundException{\n\t\tScanner input = new Scanner(new File(AccountFile));\t\t\t\t//Creats objects and adds to array list.\r\n\t\t\r\n\t\twhile (input.hasNextLine()) {\t\t\t\t\t\t\t\t\t//Loops as long as there is another line\r\n\t\t\t\r\n\t\t\tString line = input.nextLine();\r\n\t\t\tif(line.equals(\"ADMIN\")) {\t\t\t\t\t\t\t\t\t//Checks if the data is for Admin, creats admin object\r\n\t\t\t\tString AdminUsername = input.nextLine();\r\n\t\t\t\tString AdminPassword = input.nextLine();\r\n\t\t\t\t\r\n\t\t\t\tAdmin admin = new Admin(AdminUsername, AdminPassword);\r\n\t\t\t\taccounts.add(admin);\r\n\t\t\t\t\r\n\t\t\t} if(line.equals(\"COORDINATOR\")){\r\n\t\t\t\tString coordinatorUsername = input.nextLine();\r\n\t\t\t\tString coordinatorPassword = input.nextLine();\r\n\t\t\t\t\r\n\t\t\t\tCoordinator coordinator = new Coordinator(coordinatorUsername, coordinatorPassword);\r\n\t\t\t\taccounts.add(coordinator);\r\n\r\n\t\t\t} if(line.equals(\"APPROVER\")){\r\n\t\t\t\tString approverUsername = input.nextLine();\r\n\t\t\t\tString approverPassword = input.nextLine();\r\n\t\t\t\t\r\n\t\t\t\tApprover approver = new Approver(approverUsername, approverPassword);\r\n\t\t\t\taccounts.add(approver);\r\n\r\n\t\t\t} if(line.equals(\"CASUAL\")){\r\n\t\t\t\tString casualUsername = input.nextLine();\r\n\t\t\t\tString casualPassword = input.nextLine();\r\n\t\t\t\t\r\n\t\t\t\tCasualStaff casual = new CasualStaff(casualUsername, casualPassword);\r\n\t\t\t\taccounts.add(casual);\r\n\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} loginSystem();\r\n\t}",
"public BellvilleAccountant read(String account){\n BellvilleAccountant bellAccount = findAccountant(account);\r\n return bellAccount;\r\n }",
"private Account getAccount( int accountNumber )\n {\n for( Account currentAccount : accounts )\n {\n if( currentAccount.getAccountNumber() == accountNumber )\n {\n return currentAccount;\n }\n \n }\n return null;\n }",
"java.lang.String getAccount();",
"public Account searchAccounts(Account account) {\n\t\treturn null;\r\n\t}",
"@Override\n\tpublic Account findAccountByAccountId(int accountId) throws SQLException {\n\t\tConnection connect = db.getConnection();\n\t\tString selectQuery = \"select * from accounts where id=?\";\n\t\tPreparedStatement prepStmt = connect.prepareStatement(selectQuery);\n\t\tprepStmt.setInt(1, accountId);\n\t\tResultSet rs = prepStmt.executeQuery();\n\t\tAccount a = null;\n\t\twhile (rs.next()) {\n\t\t\ta = new Account(rs.getInt(1), rs.getString(2), rs.getDouble(3));\n\t\t}\n\t\treturn a;\n\n\t}",
"Account getAccount(int id);",
"public Account getExistingAccount(String accountId) {\n return this.currentBlock.getAccount(accountId);\n }",
"@Override\n\tpublic List<Account> findAccountByIdUser(int id) {\n\t\treturn null;\n\t}",
"public Account findById(String num) {\n\t\treturn null;\n\t}",
"private void ReadInAccounts() {\n\t\tLog.d(\"SelectAccountActivity.ReadInAccounts\", \"checking for file\" + AccountMan.CheckForFile());\n\t\taccounts = AccountMan.GetAccounts();\n\t\t//Comment out this line and uncomment the line above after purging the excess accounts\n\t\t//accounts = AccountMan.PurgeDuplicateAccounts(AccountMan.GetAccounts());\n\t\tLog.d(\"SelectAccountActivity.ReadInAccounts\", String.valueOf(accounts.size()));\n\t}",
"private int find(Account account) {\n StringTokenizer targetTokens = new StringTokenizer(account.toString(), \"*\");\n String targetAccType = targetTokens.nextToken();\n String targetProfileHolder = targetTokens.nextToken();\n for (int i = 0; i < size; i++) {\n StringTokenizer tokens = new StringTokenizer(accounts[i].toString(), \"*\");\n if (targetAccType.equals(tokens.nextToken())) {\n if (targetProfileHolder.equals(tokens.nextToken())) {\n return i;\n }\n }\n }\n return -1;\n }",
"@Override\n\tpublic Account getAccount(Integer id) {\n\t\tfor(Account account:accountList) {\n\t\t\tif(id.compareTo(account.returnAccountNumber()) == 0 ) {\n\t\t\t\treturn account;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn null;\n\t}",
"private int find(Account account) { \n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tif(account.equals(accounts[i])) {\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn -1;\n\t}",
"@Override\n\tpublic Optional<Account> findAccountById(Long id) {\n\t\treturn accountRepository.findById(id);\n\t}",
"public AccountInterface getAccount(String _address) {\n\t\tfor (AccountInterface account: accounts) {\n\t\t\tif (account.getAddress().equals(_address))\n\t\t\t\treturn account;\n\t\t}\n\t\treturn null;\t\t\n\t}",
"public CarerAccount getAccountWithUsername(String search){\n\t\tCarerAccount item = null;\n\n\t\tint count = 0;\n for (int i = 0; i < CarerAccounts.size(); ++i) {\n if (CarerAccounts.get(i).getUsername().equals(search)){\n\t\t\t\tcount++;\n item = CarerAccounts.get(i);\n\t\t\t}\n\t\t}\n\t\treturn item;\n\t}",
"PaymentAccountScope find(final long accountID);",
"public Account getAccountByOwnerAndName(String user,String accountName);",
"public Account load() throws IOException {\n Account account = new Account();\n try {\n FileReader fileReader = new FileReader(fileName);\n BufferedReader bufferedReader = new BufferedReader(fileReader);\n String line;\n while ((line = bufferedReader.readLine()) != null) {\n //if (line.contains(\"#\")) { continue; }\n String[] info = line.split(\" @ \");\n\n switch (info[0]) {\n case \"INIT\":\n account.setToInitialize(Boolean.parseBoolean(info[1]));\n break;\n case \"BS\":\n account.setBaseSavings(Float.parseFloat((info[1])));\n break;\n case \"INC\":\n parseIncome(info, account);\n break;\n case \"EXP\":\n parseExpenditure(info, account);\n break;\n case \"G\":\n parseGoal(info, account);\n break;\n case \"INS\":\n parseInstalment(info, account);\n break;\n case \"LOA\":\n parseLoan(info, account);\n break;\n case \"BAN\":\n parseBankAccount(info, account);\n break;\n default:\n throw new DukeException(\"OOPS!! Your file has been corrupted/ input file is invalid!\");\n }\n }\n bufferedReader.close();\n } catch (FileNotFoundException err) {\n final File parentDir = new File(\"dataFG\");\n parentDir.mkdir();\n final String hash = \"moneyAccount\";\n final String fileName = hash + \".txt\";\n final File file = new File(parentDir, fileName);\n file.createNewFile();\n } catch (IOException | DateTimeParseException | DukeException e) {\n e.printStackTrace();\n }\n return account;\n }",
"@Override\n\tpublic AccountBean[] findByName(String name) {\n\t\treturn null;\n\t}",
"private Account getAccount(int accountNumber) {\r\n // loop through accounts searching for matching account number\r\n for (Account currentAccount : accounts) {\r\n // return current account if match found\r\n if (currentAccount.getAccountNumber() == accountNumber) {\r\n return currentAccount;\r\n }\r\n }\r\n\r\n return null; // if no matching account was found, return null\r\n }",
"Account getAccount(Integer accountNumber);",
"List<Account> findAccountByRole(UserRole role);",
"List<Account> getAccounts(String login);",
"@Override\npublic Account findById(int accountid) {\n\treturn accountdao.findById(accountid);\n}",
"public int findAccount(String accountID) {\n // Assumes account does not exist until found\n int accPos = -1;\n for (AccountModel a : accounts) {\n if (a.getName().equals(accountID)) {\n accPos = accounts.indexOf(a);\n }\n }\n return accPos;\n }",
"Account findById(int id);",
"public final AfAccount getAccount(String accountName) {\n return _accounts.get(accountName);\n }",
"public List<Account> find(Integer start, Integer limit) {\n\t\treturn null;\n\t}",
"public void searchByAccount() {\n\t\t\n\t\tlog.log(Level.INFO, \"Please Enter the account number you want to search: \");\n\t\tint searchAccountNumber = scan.nextInt();\n\t\tbankop.search(searchAccountNumber);\n\n\t}",
"public HDAddressDescription findAddress(Address addr) {\n HDAddressDescription retval = null;\n for (HDAccount acct : mAccounts) {\n retval = acct.findAddress(addr);\n if (retval != null)\n return retval;\n }\n return retval;\n }",
"@Override\n\tpublic Person getPersonByAccount(String account) {\n\t\tString hql = \"from \" + Common.TABLE_PERSON + \" where account = ?\";\n\t\tString pro[] = new String[1];\n\t\tpro[0] = account;\n\t\tPerson p = (Person) dao.loadObject(hql,pro);\n\t\tif(p != null)\n\t\t\treturn p;\n\t\treturn null;\n\t}",
"private void loadAccounts() {\n JsonReader jsonReader = null;\n try {\n jsonReader = new JsonReader(parkinglots, \"account\");\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n try {\n accounts = jsonReader.findall();\n } catch (IOException | ParseException e) {\n e.printStackTrace();\n }\n }",
"public MnoAccount getAccountById(String id);",
"public static Account getAccountDetails(int accountId) throws SQLException {\n boolean cdt1 = Checker.checkValidUserAccountAccountId(accountId);\n // if it is a account id, establish a connection\n if (cdt1) {\n EnumMapRolesAndAccounts map = new EnumMapRolesAndAccounts();\n map.createEnumMap();\n Connection connection = DatabaseDriverHelper.connectOrCreateDataBase();\n ResultSet results = DatabaseSelector.getAccountDetails(accountId, connection);\n while (results.next()) {\n // get the account details\n String name = results.getString(\"NAME\");\n BigDecimal balance = new BigDecimal(results.getString(\"BALANCE\"));\n // make an account class (either chequing, savings, or tfsa) based on the type\n if (DatabaseSelectHelper.getAccountType(accountId) == map.accountTypes.get(AccountTypes.CHEQUING)) {\n ChequingAccount chequing = new ChequingAccountImpl(accountId, name, balance);\n connection.close();\n return chequing;\n } else if (DatabaseSelectHelper.getAccountType(accountId) == map.accountTypes.get(AccountTypes.SAVINGS)) {\n SavingsAccount savings = new SavingsAccountImpl(accountId, name, balance);\n connection.close();\n return savings;\n } else if (DatabaseSelectHelper.getAccountType(accountId) == map.accountTypes.get(AccountTypes.TFSA)) {\n TFSA tfsa = new TFSAImpl(accountId, name, balance);\n connection.close();\n return tfsa;\n } else if (DatabaseSelectHelper.getAccountType(accountId) == map.accountTypes.get(AccountTypes.RESTRICTEDSAVING)) {\n RestrictedSavingsAccount rsa = new RestrictedSavingsAccountImpl(accountId, name, balance);\n connection.close();\n return rsa;\n } else if (DatabaseSelectHelper.getAccountType(accountId) == map.accountTypes.get(AccountTypes.BALANCEOWING)) {\n BalanceOwingAccount boa = new BalanceOwingAccountImpl(accountId, name, balance);\n connection.close();\n return boa;\n }\n }\n }\n return null;\n }",
"AccountDetail getAccount(String number) throws Exception;",
"@Override\r\n\tpublic boolean findLogin(Account account) throws Exception {\n\t\tboolean flag = false;\r\n\t\ttry {\r\n\t\t\tflag = this.dao.findLogin(account);\r\n\t\t}catch(Exception e) {\r\n\t\t\tthrow e;\r\n\t\t}finally {\r\n\t\t\tthis.dbc.close();\r\n\t\t}\r\n\t\treturn flag;\r\n\t}",
"UserAccount getUserAccountById(long id);",
"public abstract GDataAccount getAccount(String account) throws ServiceException;",
"public Account getAccount(Integer id) {\n if (!accounts.containsKey(id)) {\n throw new NotFoundException(\"Not found\");\n }\n\n AccountEntry entry = accounts.get(id);\n if (entry == null) {\n throw new NotFoundException(\"Not found\");\n }\n\n // concurrency: optimistic, entry may already be excluded from accounts\n Lock itemLock = entry.lock.readLock();\n try {\n itemLock.lock();\n return entry.data;\n } finally {\n itemLock.unlock();\n }\n }",
"public String getAccount() {\r\n\t\treturn account;\r\n\t}",
"public Account getAccount(int index) {\n\n\t\ttry {\n\t\t\treturn accounts.get(index);\n\t\t} catch (IndexOutOfBoundsException ex) {\n\t\t\treturn null;\n\t\t}\n\t}",
"public LocalAccount\t\tgetAccount();",
"public Account getAccount(byte[] address) {\n String addressAsHex = SHA3Util.digestToHex(address);\n Account account = accounts.get(addressAsHex);\n if (account == null) {\n account = createAccount(address);\n accounts.put(addressAsHex, account);\n }\n return account;\n }",
"public String getAccount() {\r\n return account;\r\n }",
"@Override\n\tpublic Account getAccount(Bank bank, String username) {\n\t\tif (cache.contains(bank)){\n\t\t\tfor (Account accountInBank : bank.getAccounts()) {\n\t\t\t\tif (accountInBank.getUsername().equals(username)) {\n\t\t\t\t\treturn accountInBank;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"@Override\r\n\tpublic Account findById(int id) {\n\t\tAccount account=accountMapper.findById(id);\t\r\n\t\t\r\n\t\treturn account;\r\n\t\r\n\t}",
"@Override\n\tpublic List<Account> searchAccountById(String key) {\n\t\treturn m_managementDao.findByAccountIdContaining(key);\n\t}",
"public void setAccount(String account) {\n this.account = account;\n }",
"public void setAccount(String account) {\n this.account = account;\n }",
"public void setAccount(String account) {\n this.account = account;\n }",
"public void setAccount(String account) {\n this.account = account;\n }",
"public CarerAccount getAccountWithID(int search){\n\t\tCarerAccount item = null;\n\n\t\tint count = 0;\n for (int i = 0; i < CarerAccounts.size(); ++i) {\n if (CarerAccounts.get(i).getID() == search){\n\t\t\t\tcount++;\n item = CarerAccounts.get(i);\n\t\t\t}\n\t\t}\n\t\treturn item;\n\t}",
"public String getAccount() {\n return account;\n }",
"public String getAccount() {\n return account;\n }",
"public String getAccount() {\n return account;\n }",
"public String getAccount() {\n return account;\n }",
"public String getAccount() {\n return account;\n }",
"public String getAccount() {\n return account;\n }",
"public String getAccount() {\n return account;\n }",
"public String getAccount() {\n return account;\n }",
"public String getAccount() {\n return account;\n }",
"public String getAccount() {\n return account;\n }",
"public String getAccount(){\n\t\treturn account;\n\t}",
"private static void lookupAccount(String email) {\n\t\t\n\t}",
"public List<Account> getAccounts(String customerName){\n List<Account> accounts = new ArrayList<>();\n try {\n accounts = getAccountsFromFile();\n } catch (Exception e) {\n System.out.println(messageService.unexpectedError(e));\n }\n System.out.println(accounts.stream().filter(a -> a.getCustomerName().equals(customerName))\n .collect(Collectors.toList()));\n return accounts.stream().filter(a -> a.getCustomerName().equals(customerName))\n .collect(Collectors.toList());\n }",
"private CreditCardAccount selectCreditcardAccount (final String sharedSecret,\r\n final String accountNumber,\r\n final List<CreditCardAccount> accountList) {\r\n\r\n for (CreditCardAccount account : accountList) {\r\n String decryptAccount = securityEncryptionUtil.decrypt( account.getEncryptedAccountNumber(), sharedSecret);\r\n if (accountNumber.equals(decryptAccount)) {\r\n return account;\r\n }\r\n\r\n final List<CreditCardMemberAccount> memberList = account.getCreditCardMemberAccountList();\r\n if (memberList != null && !memberList.isEmpty()){\r\n for (CreditCardMemberAccount member : memberList) {\r\n String decryptMember = securityEncryptionUtil.decrypt( member.getEncryptedAccountNumber(), sharedSecret);\r\n if (accountNumber.equals(decryptMember)) { return account; }\r\n }\r\n }\r\n }\r\n return null;\r\n }",
"@Override\r\n\tpublic BankAccount checkAccount(int accountNo) {\n\t\tfor (BankAccount acc : bankAccount)\r\n\t\t{\r\n\t\t\tif (acc.getAccNum() == accountNo)\r\n\t\t\t\treturn acc;\r\n\t\t}\r\n\t\t\r\n\t\treturn null;\r\n\t}",
"Optional<Account> findById(Long id);",
"public boolean hasAccount(int account){\n boolean result;\n if(cache.get(account) != null) return true;\n try {\n Statement s = rawDataSource.getConnection().createStatement();\n ResultSet res = s.executeQuery(\n \"SELECT ACCOUNT_ID FROM APP.ACCOUNTS WHERE ACCOUNT_ID = \"+account);\n result = res.next();\n } catch (SQLException ex) {\n return false;\n }\n\n return result;\n }",
"public static ATMAccount LogIn() throws FileNotFoundException, IOException, InterruptedException {\r\n\t\tATMAccount account = null;\r\n\t\tSystem.out.println(\"Enter your account ID:\");\r\n\t\tint intaccID;\r\n\t\tintaccID = userInput.nextInt();\r\n\t\tString accID = intaccID + \"\";\r\n\t\tString[] dataGrabbed = new String[4];\r\n\t\tFile thisFile = new File(\"accountsdb.txt\");\r\n\t\taccountsdbReader = new Scanner(thisFile);\r\n\r\n\t\tif (thisFile.exists()) {\r\n\t\t\twhile (accountsdbReader.hasNextLine()) {\r\n\t\t\t\tString accountIDHolder = accountsdbReader.findInLine(accID);\r\n\t\t\t\tif (accountIDHolder == null) {\r\n\r\n\t\t\t\t\taccountsdbReader.nextLine();\r\n\t\t\t\t} else if (accountIDHolder.equals(accID)) {\r\n\t\t\t\t\tfor (int i = 1; i < dataGrabbed.length; i++) {\r\n\t\t\t\t\t\tif (accountsdbReader.hasNext())\r\n\t\t\t\t\t\t\tdataGrabbed[i] = accountsdbReader.next();\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if ((!(accountsdbReader.hasNextLine()) && account == null)) {\r\n\t\t\t\t\tSystem.out.println(\"This account does not exist!\");\r\n\t\t\t\t\tATMStartScreen();\r\n\t\t\t\t}\r\n\r\n\t\t\t\tdataGrabbed[0] = accID;\r\n\r\n\t\t\t}\r\n\t\t\tint validationLoop = 3;\r\n\t\t\tString pinValidity;\r\n\t\t\tuserInput.nextLine();\r\n\t\t\tdo {\r\n\t\t\t\tSystem.out.println(\"Please enter your 4 digit pin in order to access your account:\");\r\n\t\t\t\tpinValidity = userInput.nextLine();\r\n\t\t\t\tif (pinValidity.equals(dataGrabbed[3])) {\r\n\t\t\t\t\tSystem.out.println(\"PIN Confirmed!\");\r\n\t\t\t\t\tSystem.out.println(\"Displaying account options...\");\r\n\t\t\t\t\taccount = new ATMAccount(Integer.parseInt(dataGrabbed[0]), dataGrabbed[1],\r\n\t\t\t\t\t\t\tInteger.parseInt(dataGrabbed[3]), Double.parseDouble(dataGrabbed[2]));\r\n\r\n\t\t\t\t\treturn account;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tSystem.out.println(\"PIN Declined!\");\r\n\t\t\t\t\tSystem.out.println(\"You have \" + validationLoop + \" attempts remaining.\");\r\n\r\n\t\t\t\t}\r\n\t\t\t\tvalidationLoop--;\r\n\t\t\t} while (!pinValidity.equals(dataGrabbed[3]) && validationLoop != -1);\r\n\t\t\tSystem.out.println(\"You have exhausted all of your attempts you will now return to the main menu.\");\r\n\t\t} else {\r\n\t\t\t// Return to StartScreen before being able to return null account\r\n\t\t\tSystem.out.println(\"File was not found!\");\r\n\t\t\tSystem.out.println(\"Returning to main menu...\");\r\n\t\t\tATMStartScreen();\r\n\t\t}\r\n\t\tSystem.out.println(\"Returning to main menu...\");\r\n\t\tATMStartScreen();\r\n\t\treturn null;\r\n\r\n\t}",
"public Account getAccountByAccountNo(int accNo) {\n Account account = accountRepository.findByAccountNo(accNo);\n return account;\n }",
"public Account getInputOfUsersAccount() {\n\n\t\tString accountNumber = InputsValidator.getAccountFromPerson(\"Enter account:\");\n\n\t\tif (!log.isAccountInList(accountNumber)) {\n\t\t\tSystem.out.println(\"Account \" + accountNumber + \" dosn't exist!\");\n\t\t\tAdminMenu.getAdminMenu();\n\t\t}\n\t\tAccount accountForEditOrDelete = infos.getAccount(accountNumber);\n\t\treturn accountForEditOrDelete;\n\t}",
"public void setAccount(String account) {\r\n\t\tthis.account = account;\r\n\t}",
"@Override\n\tpublic Account createAccount(Account account) {\n\t\tif(account != null) {\n\t\t\taccountList.add(account);\n\t\t\treturn account;\n\t\t}\n\t\t\n\t\treturn null;\n\t}",
"public Account getAccount(String name) {\n\t\tPlayer p = Bukkit.getPlayer(name);\n\t\tif (p == null)\n\t\t\treturn null;\n\t\treturn getAccount(p);\n\t}",
"public BankAccount lookUp(String name){\n\t\t// create an Entry with the given name, a \"dummy\" accountNumber (1) and zero balance\n\t\t// This \"dummy\" accountNumber will be ignored when executing getData\n\t\tBankAccount lookFor = new BankAccount(name, 1, 0);\n\t\treturn (BankAccount)namesTree.findData(lookFor);\n\t}",
"AccountModel findById(String accountNumber) throws AccountException;",
"public void addAccount(Account account){\n if(accounts == null){\n accounts = new HashSet<>();\n }\n accounts.add(account);\n }",
"Account findByAccountType(String accountType);",
"public Account getAccount() {\r\n\t\treturn account;\r\n\t}",
"Optional<Account> getAccountByUsername(String username);",
"private void loadCheckingAccounts(String checkingAccountFileName)\n {\n try\n {\n /* Open the file to read */\n File inputFile = new File(checkingAccountFileName);\n\n /* Create a scanner to begin reading from file */\n Scanner input = new Scanner(inputFile);\n\n while (input.hasNextLine())\n {\n //reading...\n String currentLine = input.nextLine();\n\n //parse on commas\n String[] splitLine = currentLine.split(\",\");\n\n //DateFormat class to parse Date from file\n DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT);\n\n //parsing out data...\n int accountId = Integer.parseInt(splitLine[0]);\n double balance = Double.parseDouble(splitLine[1]);\n String ssn = splitLine[2];\n double interestRate = Double.parseDouble(splitLine[3]);\n Date dateOpened = dateFormat.parse(splitLine[4]);\n int overdraftSavingsAccountId = Integer.parseInt(splitLine[5]);\n boolean isGoldDiamond = Boolean.parseBoolean(splitLine[6]);\n\n Checking checkingAccount = new Checking(accountId,\n balance,\n ssn,\n interestRate,\n dateOpened,\n overdraftSavingsAccountId,\n isGoldDiamond);\n\n ArrayList<Transaction> accountTransactions = transactionHashMap.get(accountId);\n checkingAccount.setTransactions(accountTransactions);\n\n //add checking account...\n accounts.add(checkingAccount);\n }\n\n input.close();\n\n } catch (Exception e)\n {\n e.printStackTrace();\n }\n }",
"private void loadUsers() throws IOException {\n File accounts = new File(\"accounts.txt\");\n if (!accounts.exists()) {\n accounts.createNewFile();\n }\n\n FileInputStream fileInputStream = new FileInputStream(accounts);\n BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(fileInputStream));\n\n for (String line = bufferedReader.readLine(); line != null; line = bufferedReader.readLine()) {\n String[] pair = line.split(\":\");\n userAccounts.put(pair[0], pair[1]);\n }\n }",
"@Override\r\n\tpublic Account findById(int id) {\n\t\treturn daoref.findById(id);\r\n\t}",
"protected static Account userOwnsAccount(Integer accountId, Integer userId) {\n ArrayList<Account> accounts;\n try {\n accounts = AccountDatabase.retrieveAccounts(userId);\n } catch (Exception e) {\n return null;\n }\n\n for (Account accountCandidate : accounts) {\n if (accountCandidate.accountId.equals(accountId)) {\n return accountCandidate;\n }\n }\n return null;\n }",
"public Account getAccount(int accound_index){\n return accounts[accound_index];\n }",
"java.lang.String getAccountId();",
"java.lang.String getAccountId();",
"java.lang.String getAccountId();",
"public CDAccount addAccount(CDAccount account, Integer id) throws AccountNotFoundException {\n\t\tUser holder = userService.findById(id); // use id given to locate holder\n\t\tholder.setCdAccounts(Arrays.asList(account)); \t\t // use Arrays class to convert array of account to List \n\t\taccount.setUser(holder); \t\t\t\t\t // set list of cd accounts to belong to holder\n\t\trepository.save(account);\t\t\t\t\t\t\t // add given account to that holder's list of cd accounts\n\t\treturn account;\n\t}"
] |
[
"0.6454845",
"0.642638",
"0.632937",
"0.6303105",
"0.6202832",
"0.6108664",
"0.60661876",
"0.60463935",
"0.6030214",
"0.60141504",
"0.60117114",
"0.597735",
"0.5950357",
"0.59342885",
"0.59001493",
"0.5878598",
"0.5876806",
"0.5873594",
"0.5871469",
"0.58691907",
"0.5863382",
"0.58469564",
"0.5836488",
"0.581395",
"0.5785842",
"0.57724696",
"0.5764407",
"0.5756478",
"0.5753656",
"0.5751854",
"0.574621",
"0.5745622",
"0.568662",
"0.5680778",
"0.56762433",
"0.5663922",
"0.5654599",
"0.5609121",
"0.5607026",
"0.5563214",
"0.5562513",
"0.5559794",
"0.5559733",
"0.55434847",
"0.55430853",
"0.55417734",
"0.55322397",
"0.5529619",
"0.55237037",
"0.552081",
"0.5518327",
"0.5509446",
"0.5508878",
"0.55023223",
"0.5497128",
"0.54791605",
"0.5479134",
"0.54775673",
"0.54775673",
"0.54775673",
"0.54775673",
"0.5460001",
"0.54588723",
"0.54588723",
"0.54588723",
"0.54588723",
"0.54588723",
"0.54588723",
"0.54588723",
"0.54588723",
"0.54588723",
"0.54588723",
"0.545207",
"0.5449443",
"0.5449344",
"0.54474086",
"0.54473233",
"0.543283",
"0.5426531",
"0.54191303",
"0.54147774",
"0.539583",
"0.5392176",
"0.5390972",
"0.5390031",
"0.538401",
"0.53744036",
"0.53702205",
"0.5338424",
"0.5332238",
"0.5330578",
"0.5327062",
"0.53152245",
"0.5309824",
"0.52984715",
"0.52980983",
"0.52932245",
"0.52932245",
"0.52932245",
"0.5285008"
] |
0.6116623
|
5
|
/ getAccount called from an admin command: This version does not apply interest to the player's account
|
public Account getAccount(String name) {
Player p = Bukkit.getPlayer(name);
if (p == null)
return null;
return getAccount(p);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"java.lang.String getAccount();",
"Account getAccount();",
"public Account getAccount(Player p) {\n\t\tif (p == null)\n\t\t\treturn null; // safety\n\t\t// If the account is in memory, return it\n\t\tfor ( Account a : accounts) {\n\t\t\tif (a.isFor(p.getUniqueId()))\n\t\t\t\treturn a;\n\t\t}\n\t\t// spawn a new account object with default values\n\t\tAccount acct = new Account(p.getName(), p.getUniqueId());\n\t\t// load account status from yml file, if it exists\n\t\tacct.openAccount();\n\t\t// append to the bank list\n\t\taccounts.add(acct);\n\t\treturn acct;\n\t}",
"public String getAccount() {\r\n return account;\r\n }",
"public LocalAccount\t\tgetAccount();",
"public String getAccount() {\n return account;\n }",
"public String getAccount() {\n return account;\n }",
"public String getAccount() {\n return account;\n }",
"public String getAccount() {\n return account;\n }",
"public String getAccount() {\n return account;\n }",
"public String getAccount() {\n return account;\n }",
"public String getAccount() {\n return account;\n }",
"public String getAccount() {\n return account;\n }",
"public String getAccount() {\n return account;\n }",
"public String getAccount() {\n return account;\n }",
"public String getAccount() {\r\n\t\treturn account;\r\n\t}",
"java.lang.String getAccountId();",
"java.lang.String getAccountId();",
"java.lang.String getAccountId();",
"public String getAccount(){\n\t\treturn account;\n\t}",
"public Account getAccount() {\r\n\t\treturn account;\r\n\t}",
"public Account getAccount() {\n return account;\n }",
"public Account getAccount() {\n return account;\n }",
"GlAccount getGlAccount();",
"public abstract GDataAccount getAccount(String account) throws ServiceException;",
"public static Account getAccount(String accountId) {\r\n return (accounts.get(accountId));\r\n }",
"public AccountInfo getAccount()\n {\n if(accountInfo == null)\n {\n System.out.println(\"You need to generate an account before getting the details.\");\n return null;\n }\n return accountInfo;\n }",
"public MnoAccount getAccountById(String id);",
"public Promise<Result> getAccount(final int accountId) throws APIException\n\t{\n\t\treturn accountAction(accountId, new PromiseCallback() {\n\t\t\t@Override\n\t\t\tpublic Promise<Result> execute() throws APIException\n\t\t\t{\n\t\t\t\tAccount a = Account.findById(accountId, true);\n\n\t\t\t\t//TODO hacer un serializer como la gente\n\t\t\t\tJSONSerializer serializer = new JSONSerializer()\n\t\t\t\t\t\t.include(\"tags\", \"invites\", \"gateways.name\", \"gateways.gatewayId\", \"users.firstName\", \"users.id\", \"users.lastName\", \"users.emailAddress\", \"users.phone\", \"users.permissions.*\", \"oem.*\", \"owner.accounts.id\", \"owner.accounts.owner.firstName\", \"owner.accounts.owner.lastName\",\n\t\t\t\t\t\t\t\t\"owner.accounts.companyName\")\n\t\t\t\t\t\t.exclude(\"*.class\", \"tags.possibleAlertMetadatas\", \"gateways.*\", \"users.*\", \"owner.accounts.kabaPassword\", \"kabaPassword\").prettyPrint(true);\n\n\t\t\t\treturn json(serializer.serialize(a));\n\t\t\t}\n\t\t});\n\t}",
"Account getAccount(Long recvWindow, Long timestamp);",
"Account getAccount(int id);",
"Account getAccount(Integer accountNumber);",
"public String getCurrentUserAccount();",
"com.google.protobuf.ByteString\n getAccountBytes();",
"public\n Account\n getAccount()\n {\n return itsAccount;\n }",
"public java.lang.String getAccount() {\n java.lang.Object ref = account_;\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 account_ = s;\n return s;\n }\n }",
"public java.lang.String getAccount() {\n java.lang.Object ref = account_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n account_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getAccount() {\n java.lang.Object ref = account_;\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 account_ = s;\n }\n return s;\n }\n }",
"String getTradingAccount();",
"Long getAccountId();",
"public Account getAccount(int accound_index){\n return accounts[accound_index];\n }",
"public java.lang.String getAccount() {\n java.lang.Object ref = account_;\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 account_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"AccountDetail getAccount(String number) throws Exception;",
"net.nyhm.protonet.example.proto.AccountProto.Account getAccount();",
"net.nyhm.protonet.example.proto.AccountProto.Account getAccount();",
"public Account getAccountByOwnerAndName(String user,String accountName);",
"java.lang.String getLoginAccount();",
"java.lang.String getLoginAccount();",
"public Account getUpdatedAccount(Player p) {\n\n\t\tAccount a = getAccount(p);\n\t\tif (a != null) {\n\n\t\t\t// update Account with pending interest\n\n\t\t\tDate today = new Date();\n\t\t\tlong now = today.getTime() / 86400000 ;\n\t\t\t/* 'now' is an integral number of days since epoch.\n\t\t\t * There are 86,400 seconds in a day, and 1000 'ticks' in a getTime() value.\n\t\t\t * Interest is considered to compound at midnight\n\t\t\t */\n\t\t\t\n\t\t\t// Update account with accumulated interest, if applicable\n\t\t\t\n\t\t\tif (a.lastUpdate > 0 && rate > 1.0) {\n\t\t\t\tlong periods = now - a.lastUpdate;\n\t\t\t\tif (periods > 0) {\n\t\t\t\t\tBigDecimal oldamt = a.money;\n\t\t\t\t\tdouble newamt = oldamt.doubleValue() * Math.pow(rate, periods);\n\t\t\t\t\ta.money = new BigDecimal(newamt, context);\n\t\t\t\t\ta.money = a.money.setScale(Currency.getDecimals(), RoundingMode.HALF_UP);\n\t\t\t\t\tif (a.money.compareTo(maxMoney) > 0)\n\t\t\t\t\t\ta.money = maxMoney;\n\t\t\t\t\tBigDecimal interest = a.money.subtract(oldamt);\n\t\t\t\t\t\n\t\t\t\t\tp.sendMessage(ChatColor.YELLOW + \"Interest applied: \" + interest);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\ta.lastUpdate = now;\n\t\t\t\n\t\t}\n\t\treturn a;\n\t}",
"public AccountInfo getAccountInfo() {\n return accountInfo;\n }",
"public String viewAccount() {\n ConversationContext<Account> ctx = AccountController.newEditContext(getPart().getAccount());\n ctx.setLabelWithKey(\"part_account\");\n getCurrentConversation().setNextContextSubReadOnly(ctx);\n return ctx.view();\n }",
"UserAccount getUserAccountById(long id);",
"public String getAccount() {\n\t\treturn getUsername() + \":\" + getPassword() + \"@\" + getUsername();\n\t}",
"public com.google.protobuf.ByteString\n getAccountBytes() {\n java.lang.Object ref = account_;\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 account_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public Account getAccount(int accountid) {\n\t\treturn userDao.getAccount(accountid);\r\n\t}",
"public String getAccountName() {\r\n return accountName;\r\n }",
"public com.google.protobuf.ByteString\n getAccountBytes() {\n java.lang.Object ref = account_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n account_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"@AfterPermissionGranted(REQUEST_PERMISSION_GET_ACCOUNTS)\n private void chooseAccount() {\n if (EasyPermissions.hasPermissions(\n this, Manifest.permission.GET_ACCOUNTS)) {\n String accountName = getPreferences(Context.MODE_PRIVATE)\n .getString(PREF_ACCOUNT_NAME, null);\n if (accountName != null) {\n mCredential.setSelectedAccountName(accountName);\n getResultsFromApi(this);\n } else {\n // Start a dialog from which the user can choose an account\n startActivityForResult(\n mCredential.newChooseAccountIntent(),\n REQUEST_ACCOUNT_PICKER);\n }\n } else {\n // Request the GET_ACCOUNTS permission via a user dialog\n EasyPermissions.requestPermissions(this, getString(R.string.str_needs_account),\n REQUEST_PERMISSION_GET_ACCOUNTS, Manifest.permission.GET_ACCOUNTS);\n }\n }",
"public String getAccountName() {\n return this.accountName;\n }",
"public static String getUserAccount(String account){\n return \"select ui_account from user_information where ui_account = '\"+account+\"'\";\n }",
"public String getAccountName() {\n return accountName;\n }",
"public String getAccountName() {\n return accountName;\n }",
"public String getAccountName() {\n return accountName;\n }",
"public com.huawei.www.bme.cbsinterface.cbs.businessmgr.Account getAccount() {\r\n return account;\r\n }",
"public com.google.protobuf.ByteString\n getAccountBytes() {\n java.lang.Object ref = account_;\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 account_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getAccountBytes() {\n java.lang.Object ref = account_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n account_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public UserAccount getUser(long accountId) {\n\t\treturn null;\n\t}",
"public int getAccountId() {\n return accountId;\n }",
"public CloudStackAccount getCurrentAccount() throws Exception {\n if (currentAccount != null) {\n // verify this is the same account!!!\n for (CloudStackUser user : currentAccount.getUser()) {\n if (user.getSecretkey() != null && user.getSecretkey().equalsIgnoreCase(UserContext.current().getSecretKey())) {\n return currentAccount;\n }\n }\n }\n // otherwise let's find this user/account\n List<CloudStackAccount> accounts = getApi().listAccounts(null, null, null, null, null, null, null, null);\n for (CloudStackAccount account : accounts) {\n CloudStackUser[] users = account.getUser();\n for (CloudStackUser user : users) {\n String userSecretKey = user.getSecretkey();\n if (userSecretKey != null && userSecretKey.equalsIgnoreCase(UserContext.current().getSecretKey())) {\n currentAccount = account;\n return account;\n }\n }\n }\n // if we get here, there is something wrong...\n return null;\n }",
"protected final Account getAccount() {\n\t\treturn getRegisterView().getAccount();\n\t}",
"@GET\n @Path(\"/{accountID}\")\n @Produces(MediaType.APPLICATION_JSON)\n public Account getAccount(@PathParam(\"accountID\") int a_id ) {\n \tSystem.out.println(\"get Account by ID: \"+a_id );\n\treturn AccountService.getAccount(a_id);\n }",
"public Account getExistingAccount(String accountId) {\n return this.currentBlock.getAccount(accountId);\n }",
"String getAccountID();",
"String getAccountID();",
"public String getAccountId() {\n return accountId;\n }",
"public String getAccountId() {\n return accountId;\n }",
"public static Account grabAccount(String playerName, String accountno) {\n\t\treturn getAccountant(playerName).getAccountByNumber(accountno);\n\t}",
"public String getAccountId() {\n return this.accountId;\n }",
"@AfterPermissionGranted(REQUEST_PERMISSION_GET_ACCOUNTS)\r\n private void chooseAccount() {\r\n if (EasyPermissions.hasPermissions(\r\n getActivity(), Manifest.permission.GET_ACCOUNTS)) {\r\n String accountName = getActivity().getPreferences(Context.MODE_PRIVATE)\r\n .getString(PREF_ACCOUNT_NAME, null);\r\n\r\n if (accountName != null) {\r\n mCredential.setSelectedAccountName(accountName);\r\n Log.i(accountName,\"accountName:\");\r\n getResultsFromApi();\r\n } else {\r\n // Start a dialog from which the user can choose an account\r\n startActivityForResult(\r\n mCredential.newChooseAccountIntent(),\r\n REQUEST_ACCOUNT_PICKER);\r\n }\r\n } else {\r\n // Request the GET_ACCOUNTS permission via a user dialog\r\n EasyPermissions.requestPermissions(\r\n this,\r\n \"This app needs to access your Google account (via Contacts).\",\r\n REQUEST_PERMISSION_GET_ACCOUNTS,\r\n Manifest.permission.GET_ACCOUNTS);\r\n }\r\n }",
"public BankAccountInterface getAccount(String accountID){\n BankAccountInterface account = null;\n for(int i = 0; i < accounts.size(); i++){\n if(accounts.get(i).getAccountID().equals(accountID)){\n account = accounts.get(i);\n break;\n } \n }\n return account;\n }",
"public final AfAccount getAccount(String accountName) {\n return _accounts.get(accountName);\n }",
"public long getAccountId()\r\n/* 115: */ {\r\n/* 116:121 */ return this.accountId;\r\n/* 117: */ }",
"public Integer getAccountId() {\n return accountId;\n }",
"public Integer getAccountId() {\n return accountId;\n }",
"@Override\r\n\tpublic AccountDTO getAccount(String email) {\n\t\treturn accountDao.getAccount(email);\r\n\t}",
"@Override\n\tpublic Account getAccount(String username) {\n\t\treturn map.get(username);\n\t}",
"public Integer getAccountId() {\n return this.accountId;\n }",
"public static Account getCurrentAccount() {\r\n\t\treturn currentAccount;\r\n\t}",
"public long getAccountId() {\n return accountId;\n }",
"java.lang.String getAccountNumber();",
"public net.nyhm.protonet.example.proto.AccountProto.Account getAccount() {\n if (accountBuilder_ == null) {\n return account_ == null ? net.nyhm.protonet.example.proto.AccountProto.Account.getDefaultInstance() : account_;\n } else {\n return accountBuilder_.getMessage();\n }\n }",
"public net.nyhm.protonet.example.proto.AccountProto.Account getAccount() {\n if (accountBuilder_ == null) {\n return account_ == null ? net.nyhm.protonet.example.proto.AccountProto.Account.getDefaultInstance() : account_;\n } else {\n return accountBuilder_.getMessage();\n }\n }",
"@Override\n\tpublic Account getAccount(Integer id) {\n\t\tfor(Account account:accountList) {\n\t\t\tif(id.compareTo(account.returnAccountNumber()) == 0 ) {\n\t\t\t\treturn account;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn null;\n\t}",
"public Long getAccountId() {\n return accountId;\n }",
"public Account getInputOfUsersAccount() {\n\n\t\tString accountNumber = InputsValidator.getAccountFromPerson(\"Enter account:\");\n\n\t\tif (!log.isAccountInList(accountNumber)) {\n\t\t\tSystem.out.println(\"Account \" + accountNumber + \" dosn't exist!\");\n\t\t\tAdminMenu.getAdminMenu();\n\t\t}\n\t\tAccount accountForEditOrDelete = infos.getAccount(accountNumber);\n\t\treturn accountForEditOrDelete;\n\t}",
"User getPlayerTurn() throws RemoteException;",
"public String getUserAccount() {\n return sessionData.getUserAccount();\n }",
"@AfterPermissionGranted(REQUEST_PERMISSION_GET_ACCOUNTS)\n private void chooseAccount() {\n if (EasyPermissions.hasPermissions(\n this, Manifest.permission.GET_ACCOUNTS)) {\n String accountName = getPreferences(Context.MODE_PRIVATE)\n .getString(PREF_ACCOUNT_NAME, null);\n if (accountName != null) {\n mCredential.setSelectedAccountName(accountName);\n getResultsFromApi();\n } else {\n // Start a dialog from which the user can choose an account\n startActivityForResult(\n mCredential.newChooseAccountIntent(),\n REQUEST_ACCOUNT_PICKER);\n }\n } else {\n // Request the GET_ACCOUNTS permission via a user dialog\n EasyPermissions.requestPermissions(\n this,\n \"This app needs to access your Google account (via Contacts).\",\n REQUEST_PERMISSION_GET_ACCOUNTS,\n Manifest.permission.GET_ACCOUNTS);\n }\n }",
"public String getAccountId() {\n return mAccountId;\n }",
"public Account findAccount() {\n Account[] accounts = accountManager.getAccountsByType(ACCOUNT_TYPE);\n\n // only one matching account - use it, and remember it for the next time.\n if (accounts.length == 1) {\n persistAccountName(accounts[0].name);\n return accounts[0];\n }\n\n // No accounts, create one and use it if created, otherwise we have no account to use\n\n if (accounts.length == 0) {\n String accountName = createAccount();\n if (accountName != null) {\n persistAccountName(accountName);\n return accountManager.getAccountsByType(ACCOUNT_TYPE)[0];\n } else {\n Log.i(LOG_TAG, \"User failed to create a valid account\");\n return null;\n }\n }\n\n // Still valid previously chosen account - use it\n\n Account account;\n String accountName = getPersistedAccountName();\n if (accountName != null && (account = chooseAccount(accountName, accounts)) != null) {\n return account;\n }\n\n // Either there is no saved account name, or our saved account vanished\n // Have the user select the account\n\n accountName = selectAccount(accounts);\n if (accountName != null) {\n persistAccountName(accountName);\n return chooseAccount(accountName, accounts);\n }\n\n // user didn't choose an account at all!\n Log.i(LOG_TAG, \"User failed to choose an account\");\n return null;\n }"
] |
[
"0.74487793",
"0.7260252",
"0.6755064",
"0.6682947",
"0.66555417",
"0.66508466",
"0.66508466",
"0.66508466",
"0.66508466",
"0.66508466",
"0.66508466",
"0.66508466",
"0.66508466",
"0.66508466",
"0.66508466",
"0.6579193",
"0.65590394",
"0.65590394",
"0.65590394",
"0.6553909",
"0.6544769",
"0.6528125",
"0.6528125",
"0.65270567",
"0.6524251",
"0.6513241",
"0.6470467",
"0.6466245",
"0.644991",
"0.6426687",
"0.63591",
"0.63216287",
"0.63057023",
"0.6264195",
"0.62489873",
"0.62421685",
"0.62161493",
"0.61885",
"0.61867607",
"0.6180719",
"0.61681515",
"0.6167947",
"0.615262",
"0.61272717",
"0.61272717",
"0.61263484",
"0.6124432",
"0.6124432",
"0.60944796",
"0.6077605",
"0.60703194",
"0.60466015",
"0.60184836",
"0.6010285",
"0.6000461",
"0.5986722",
"0.59761924",
"0.59760976",
"0.5973968",
"0.59731144",
"0.595486",
"0.595486",
"0.595486",
"0.59509027",
"0.59430283",
"0.5939645",
"0.5934201",
"0.5929904",
"0.592649",
"0.59153265",
"0.591033",
"0.5908845",
"0.5905731",
"0.5905731",
"0.58991283",
"0.58991283",
"0.589852",
"0.5894297",
"0.5893999",
"0.5886485",
"0.58799464",
"0.58788365",
"0.5873212",
"0.5873212",
"0.5832567",
"0.5832567",
"0.58292514",
"0.58263224",
"0.5824742",
"0.5822383",
"0.581979",
"0.581979",
"0.5813434",
"0.57936525",
"0.57925034",
"0.5785932",
"0.57732177",
"0.5767372",
"0.5766087",
"0.575513"
] |
0.7083671
|
2
|
/ getUpdatedAccount apply accrued interest
|
public Account getUpdatedAccount(Player p) {
Account a = getAccount(p);
if (a != null) {
// update Account with pending interest
Date today = new Date();
long now = today.getTime() / 86400000 ;
/* 'now' is an integral number of days since epoch.
* There are 86,400 seconds in a day, and 1000 'ticks' in a getTime() value.
* Interest is considered to compound at midnight
*/
// Update account with accumulated interest, if applicable
if (a.lastUpdate > 0 && rate > 1.0) {
long periods = now - a.lastUpdate;
if (periods > 0) {
BigDecimal oldamt = a.money;
double newamt = oldamt.doubleValue() * Math.pow(rate, periods);
a.money = new BigDecimal(newamt, context);
a.money = a.money.setScale(Currency.getDecimals(), RoundingMode.HALF_UP);
if (a.money.compareTo(maxMoney) > 0)
a.money = maxMoney;
BigDecimal interest = a.money.subtract(oldamt);
p.sendMessage(ChatColor.YELLOW + "Interest applied: " + interest);
}
}
a.lastUpdate = now;
}
return a;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"void updateAccount();",
"int updateAccountInfo(Account account);",
"Account.Update update();",
"Account apply();",
"void updateAccount(Account account);",
"public void update(Account account) {\n\t\t\n\t}",
"public Account update(Account user);",
"Account apply(Context context);",
"public void testUpdateAccount(){\n\t\tint id = 10 ;\n\t\tAccount acc = this.bean.findAccountById(id ) ;\n\t\tacc.setDatetime(CommUtil.getNowDate()) ;\n\t\tint r = this.bean.updateAccount(acc) ;\n\t\tAssert.assertEquals(r, 1) ;\n\t}",
"public void updateAccount() {\r\n\t\t\r\n\t\t//update all totals\r\n\t\ttotalYouOwe = 0.0;\r\n\t\ttotalOwedToYou = 0.0;\r\n\t\tbalance = 0.0;\r\n\t\tnetBalance = 0.0;\r\n\t\t\r\n\t\t//totalYouOwe and totalOwedToYou\r\n\t\tfor (Event e : events) {\r\n\t\t\tif (e.isParticipantByGID(GID)) {\r\n\t\t\t\tif (e.getParticipantByGID(GID).getBalance() > 0) {\r\n\t\t\t\t\ttotalOwedToYou = totalOwedToYou + e.getParticipantByGID(GID).getBalance(); \r\n\t\t\t\t} else {\r\n\t\t\t\t\ttotalYouOwe = totalYouOwe + (-e.getParticipantByGID(GID).getBalance());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//netBalance/balance - the same in current implementation\r\n\t\tnetBalance = totalOwedToYou - totalYouOwe;\r\n\t\tbalance = totalOwedToYou - totalYouOwe;\r\n\t\t\r\n\t\tupdatePastRelations();\r\n\t}",
"private void updateAccountStatus() {\n\r\n }",
"public String myAfterBalanceAmount() {\r\n\t\tint count=0;\r\n\t\tList<SavingAccount> acc = null;\r\n\t\ttry {\r\n\t\t\tSystem.out.println(\"Before Repeat\");\r\n\t\t\tacc = getSavingAccountList();\r\n\r\n\t\t\tfor (SavingAccount savingAcc : acc) {\r\n\t\t\t\tif (!(\"0\".equals(savingAcc.getState()))) {\r\n\t\t\t\t\tif (savingAcc.getState().equals(\"active\")) {\r\n\t\t\t\t\t\tint maxRepeat = Integer.parseInt(savingAcc\r\n\t\t\t\t\t\t\t\t.getRepeatable());\r\n\r\n\t\t\t\t\t\tDate date = new Date();\r\n\t\t\t\t\t\tDate systemDate = savingAccSer\r\n\t\t\t\t\t\t\t\t.convertStringToDateDDmmYYYY(savingAccSer\r\n\t\t\t\t\t\t\t\t\t\t.convertDateToStringDDmmYYYY(date));\r\n\r\n\t\t\t\t\t\tDate dateEnd = savingAccSer\r\n\t\t\t\t\t\t\t\t.convertStringToDateDDmmYYYY(savingAcc\r\n\t\t\t\t\t\t\t\t\t\t.getDateEnd());\r\n\r\n\t\t\t\t\t\tif (systemDate.getTime() == dateEnd.getTime()) {\r\n\t\t\t\t\t\t\tDate newEndDate = DateUtils.addMonths(systemDate,\r\n\t\t\t\t\t\t\t\t\tsavingAcc.getInterestRateId().getMonth());\r\n\r\n\t\t\t\t\t\t\tfloat balance = savingAcc.getBalanceAmount();\r\n\t\t\t\t\t\t\tfloat interest = savingAcc.getInterestRateId()\r\n\t\t\t\t\t\t\t\t\t.getInterestRate();\r\n\r\n\t\t\t\t\t\t\tint month = savingAcc.getInterestRateId()\r\n\t\t\t\t\t\t\t\t\t.getMonth();\r\n\t\t\t\t\t\t\tint days = Days\r\n\t\t\t\t\t\t\t\t\t.daysBetween(\r\n\t\t\t\t\t\t\t\t\t\t\tnew DateTime(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tsavingAccSer\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.convertStringToDate(savingAcc\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getDateStart())),\r\n\t\t\t\t\t\t\t\t\t\t\tnew DateTime(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tsavingAccSer\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.convertStringToDate(savingAcc\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getDateEnd())))\r\n\t\t\t\t\t\t\t\t\t.getDays();\r\n\t\t\t\t\t\t\tfloat amountAll = balance\r\n\t\t\t\t\t\t\t\t\t+ (balance * ((interest / (100)) / 360) * days);\r\n\t\t\t\t\t\t\tsavingAcc.setDateStart(savingAccSer\r\n\t\t\t\t\t\t\t\t\t.convertDateToString(systemDate));\r\n\t\t\t\t\t\t\tsavingAcc.setDateEnd(savingAccSer\r\n\t\t\t\t\t\t\t\t\t.convertDateToString(newEndDate));\r\n\t\t\t\t\t\t\tsavingAcc.setBalanceAmount(amountAll);\r\n\t\t\t\t\t\t\tsavingAcc.setRepeatable(\"\" + (maxRepeat + 1));\r\n\t\t\t\t\t\t\tupdateSavingAccount(savingAcc);\r\n\t\t\t\t\t\t\tcount+=1;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t\tSystem.out.println(\"Successfully!! \"+ count +\" Saving Account has been updated. Minh Map!!!\");\r\n\t\t\t\r\n\t\t\treturn \"success\";\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tSystem.out.println(\"Exception\");\r\n\r\n\t\t}\r\n\t\treturn \"Fail\";\r\n\t}",
"@Override\r\n\tpublic void update(Account account) throws ServiceException {\n\r\n\t}",
"public void giveInterest(int accountId) throws SQLException,\n ConnectionFailedException,\n DatabaseInsertException {\n if (this.currentUserAuthenticated && this.currentCustomerAuthenticated) {\n // find if the account belongs to the user\n //List<Integer> accountIds = DatabaseSelectHelper.getAccountIds(this.currentUser.getId());\n boolean contains = false;\n int i = 0;\n List<Account> customerAccountList = this.currentCustomer.getAccounts();\n for (Account e : customerAccountList) {\n if (e.getId() == accountId) {\n contains = true;\n break;\n }\n i++;\n }\n \n if (contains) {\n // find out which account type it is\n // add interest to the account and update the balance\n // update database\n int role = DatabaseSelectHelper.getAccountType(accountId);\n BigDecimal interestRate = new BigDecimal(\"0\");\n // calculate balance after interest rate\n interestRate = DatabaseSelectHelper.getInterestRate(role).add(new BigDecimal(\"1\"));\n BigDecimal oldBalance = DatabaseSelectHelper.getBalance(accountId);\n BigDecimal newBalance = oldBalance.multiply(interestRate);\n newBalance = newBalance.setScale(2, RoundingMode.HALF_UP);\n DatabaseSelectHelper.getAccountDetails(accountId).addInterest();\n DatabaseUpdateHelper.updateAccountBalance(newBalance, accountId);\n \n this.currentCustomer.getAccounts().get(i).setBalance(newBalance);\n \n String msg = \"An interest rate has been added to your account: $\" + interestRate;\n int msgId = DatabaseInsertHelper.insertMessage(currentCustomer.getId(), msg);\n \n Message message = new MessageImpl(msgId, msg, false);\n currentCustomer.getMessagingCentre().addMessage(message);\n \n }\n }\n }",
"public Account getAccountForEditBalance() {\n\t\tAccount account = getInputOfUsersAccount();\n\t\tSystem.out.println(\"Account: \" + account.getAccountNumber() + \" Balance: \" + account.getBalance());\n\n\t\tdouble balance = Inputs.getUserDoubleInput(\"Enter new balance:\");\n\t\taccount.setBalance(balance);\n\t\treturn account;\n\t}",
"public void interestIncrease(){\r\n for (SavingsAccount account : saving){\r\n if (account == null){\r\n break;\r\n }\r\n account.addInterest();\r\n }\r\n }",
"public void applyInterest()\n {\n deposit( (getBalance()* getInterestRate()) /12);\n }",
"@Test\n @Order(14)\n void update_account_2() {\n Account first = client.getAccounts().iterator().next();\n\n // mismatch is a copy, but with different client Id\n // we use client2 because it's valid in the database\n Account mismatch = new Account(first.getId(), first.getAmount()+200, client2.getId());\n Account nullCheck = service.updateAccount(mismatch);\n Assertions.assertNull(nullCheck);\n\n // get the account with the id we used to check, should not have changed\n Account check = service.getAccount(client.getId(), mismatch.getId());\n Assertions.assertEquals(first.getAmount(), check.getAmount(), 0.1);\n }",
"@Override\npublic void update(Account account) {\n\taccountdao.update(account);\n}",
"public static String payCurrentBill(String account){\n return \"update current_bills set cb_paid = 1 where cb_account = '\"+account+\"'\";\n }",
"@Override\n\tpublic Account updateAccount(Integer id, String type) {\n\t\tfor(Account account:accountList) {\n\t\t\tif(id.compareTo(account.returnAccountNumber()) == 0 ) {\n\t\t\t\taccount.updateAccountType(type);\n\t\t\t\treturn account;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn null;\n\t}",
"private void updateUserAccount() {\n final UserDetails details = new UserDetails(HomeActivity.this);\n //Get Stored User Account\n final Account user_account = details.getUserAccount();\n //Read Updates from Firebase\n final Database database = new Database(HomeActivity.this);\n DatabaseReference user_ref = database.getUserReference().child(user_account.getUser().getUser_id());\n user_ref.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n //Read Account Balance\n String account_balance = dataSnapshot.child(Database.USER_ACC_BALANCE).getValue().toString();\n //Read Expire date\n String expire_date = dataSnapshot.child(Database.USER_ACC_SUB_EXP_DATE).getValue().toString();\n //Read Bundle Type\n String bundle_type = dataSnapshot.child(Database.USER_BUNDLE_TYPE).getValue().toString();\n //Attach new Values to the Account Object\n user_account.setBalance(Double.parseDouble(account_balance));\n //Attach Expire date\n user_account.setExpire_date(expire_date);\n //Attach Bundle Type\n user_account.setBundle_type(bundle_type);\n //Update Local User Account\n details.updateUserAccount(user_account);\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n //No Implementation\n }\n });\n }",
"Account getAccount();",
"public ApAccountRec updateApAccount(ApAccountRec acntRec,String view){\n \n if(!trans.isActive()){\n trans.begin();\n }\n ApAccount acnt = this.buildApAccount(acntRec, view);\n if(acntRec.getId() == null){\n acntRec.setId(acnt.getId());\n }\n LOGGER.log(INFO, \"ApAccountDM.updateApAccount returns id {0}\", acntRec.getId());\n trans.commit();\n return acntRec;\n}",
"void update(Account... accounts);",
"public abstract void updateAccount(JSONObject account);",
"Account refresh(Context context);",
"@Override\r\n\tpublic int updateAccountByPrimaryKeySelective(Account account) {\n\t\treturn this.accountMapper.updateAccountByPrimaryKeySelective(account);\r\n\t\t\r\n\t}",
"@PreAuthorize(\"hasRole('ROLE_USER')\")\r\n\tpublic void updateUserAccount(UserAccount account);",
"String updateClientAccount(ClientAccount account) throws ServiceException;",
"Account refresh();",
"int updateByPrimaryKeySelective(FinanceAccount record);",
"public interface Account {\n\t\n//\t\n//\t\tMoney money;\n//\t\tInterestRate interestRate;\n//\t\tPeriod interestPeriod;\n\t\t\n\t\tpublic int deposit(int depositAmmount);\n//\t\t{\n//\t\t\treturn money.getMoney()+depositAmmount;\n//\t\t}\n\t\t\n\t\tpublic int withdrawl(int withdrawAmmount);\n//\t\t{\n//\t\t\treturn money.getMoney()-withdrawAmmount;\n//\t\t}\n\t\t\n\t\tpublic int getBalance();\n//\t\t{\n//\t\t\treturn money.getMoney()*interestRate.getInterestRate()*interestPeriod.getPeriod()/100;\n//\t\t}\n\t}",
"@Override\n\tpublic void updateAccount(String pwd, String field, String company) {\n\t}",
"void updateAccount(int id, double accountBalance, String account) {\n // Update only the required keys\n sql = \"UPDATE CashiiDB2 \" + \"SET \" + account + \" ='\" + accountBalance + \"' WHERE AccountNum in ('\" + id + \"')\";\n try {\n st.executeUpdate(sql);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }",
"Update withProperties(AccountProperties properties);",
"@Test\n\tpublic void updateAccount() throws Exception {\n\n\t\tFacebookAdaccountBuilder fbAccount = SocialEntity\n\t\t\t\t.facebookAccount(accessToken);\n\t\tfbAccount.addAccount(\"New Test AdAccount\", \"USD\", 1);\n\t\t// fbAccount.create();\n\n\t\tfbAccount.updateAccountName(\"275668082617836\",\n\t\t\t\t\"Update Test New AdAccount\");\n\t\tfbAccount.updateAccountName(\"1419302888335966\",\n\t\t\t\t\"Batch AdAccount Name Update\");\n\t\tSystem.out.println(fbAccount.update());\n\t}",
"public void AddToAccountInfo();",
"public void updateBalance(int account_id, int final_amount){\n dbUpdate(\"update ACCOUNTS set BALANCE = \"+ final_amount + \" where ACCOUNT_ID = \" + account_id);\n cache.add(new Account(account_id, final_amount));\n }",
"@Override\n\tpublic void updateStockAccountInfo(StockAccount account) {\n\t\t\n\t}",
"int updateByPrimaryKey(FinanceAccount record);",
"public Account getAccount() {\n return account;\n }",
"public Account getAccount() {\n return account;\n }",
"private void handleAccountUpdateOnPre() {\n }",
"int updateByExample(CusBankAccount record, CusBankAccountExample example);",
"interface Update\n extends UpdateStages.WithTags,\n UpdateStages.WithKind,\n UpdateStages.WithSku,\n UpdateStages.WithIdentity,\n UpdateStages.WithProperties {\n /**\n * Executes the update request.\n *\n * @return the updated resource.\n */\n Account apply();\n\n /**\n * Executes the update request.\n *\n * @param context The context to associate with this operation.\n * @return the updated resource.\n */\n Account apply(Context context);\n }",
"int updateByPrimaryKeySelective(Account record);",
"public void add_interest ()\r\n {\r\n\r\n balance += balance * (rate + BONUS_RATE);\r\n System.out.println (\"Interest added to account: \" + account);\r\n System.out.println (\"Current Balance: \" + balance);\r\n System.out.println();\r\n\r\n }",
"public void GetInterest() {\n\t\tSystem.out.println(\"balance=\"+bal);\r\n\t\tinterest_rate=((bal/100)*10);\r\n\t\t\r\n\t\tSystem.out.println(\"Interest :- \"+ interest_rate);\r\n\t\tbal=(int) (bal+interest_rate);\r\n\t\tSystem.out.println(\"Balance after interest:- \"+bal );\r\n\t}",
"public void add_interest () \r\n {\r\n balance += balance * rate;\r\n System.out.println (\"Interest added to account: \" + account);\r\n System.out.println (\"Current Balance: \" + balance);\r\n System.out.println();\r\n\r\n }",
"java.lang.String getAccount();",
"int updateByPrimaryKey(Account record);",
"int updateByPrimaryKey(Account record);",
"public static String updateLate(String account){\n return \"update current_bills set cb_late = 1 where cb_account = '\"+account+\"'\";\n }",
"int updateByExampleSelective(CusBankAccount record, CusBankAccountExample example);",
"public\n Account\n getAccount()\n {\n return itsAccount;\n }",
"Account getAccount(int id);",
"public Account getAccount() {\r\n\t\treturn account;\r\n\t}",
"public abstract void updateAccount(final GDataAccount account)\n throws ServiceException;",
"public Account getAccount(int accound_index){\n return accounts[accound_index];\n }",
"@Override\n\tpublic void modifyAccount(Account account, Customer customer) {\n\t\t\n\t}",
"public static void extract_money(){\n TOTALCMONEY = TOTALCMONEY - BALANCERETRIEVE; //the total cashier money equals the total cashier money minus the retrieve request\r\n BALANCE = BALANCE - BALANCERETRIEVE; //the user balance equals the account minus the retrieve request\r\n }",
"private void updateDatabaseAccountBalance() {\n\t\tString sql = \"UPDATE account SET balance = \" + this.balance + \" \";\n\t\tsql += \"WHERE accountID = '\" + this.accountID + \"';\";\n\n\t\tDbUtilities db = new MySqlUtilities();\n\t\tdb.executeQuery(sql);\n\t}",
"private void updateAccountToHashMap(Account updatedAccount) {\n activity.getAccountHashMap().put(updatedAccount.getAccountId(), updatedAccount);\n }",
"public Saving updateSavingBalanceByAddingInterests(Long id){\n Optional<Saving> optionalSaving = savingRepository.findById(id);\n\n if(optionalSaving.isPresent()){\n LocalDateTime today = LocalDateTime.now();\n long diff = Math.abs(ChronoUnit.YEARS.between(today, optionalSaving.get().getAdditionLastInterestDate()));\n if(diff > 0){\n BigDecimal newBalance = optionalSaving.get().getBalance().multiply(optionalSaving.get().getInterestRate().add(new BigDecimal(1)).pow((int) diff));\n transactionService.saveTransaction(TransactionType.INTEREST, newBalance.subtract(optionalSaving.get().getBalance()), optionalSaving.get().getId(), ReturnType.SAVING, optionalSaving.get().getPrimaryOwner(), optionalSaving.get().getId(), ReturnType.SAVING, optionalSaving.get().getPrimaryOwner());\n optionalSaving.get().setBalance(newBalance);\n optionalSaving.get().setAdditionLastInterestDate(today);\n }\n return savingRepository.save(optionalSaving.get());\n }else{\n throw new ResponseStatusException(HttpStatus.NOT_FOUND, \"The saving account with the given id does not exist\");\n }\n }",
"Long getUserUpdated();",
"@Override\n public void updateBalanceInfo(Long accountId, BigDecimal amountToAdd) {\n repositoryService.updateBalanceInfo(accountId, amountToAdd);\n AccountInfo accountInfo = repositoryService.fetchAccountInfo(accountId).orElseThrow();\n update(\"accounts\", Long.class, AccountInfo.class, accountId, accountInfo);\n }",
"public void calcInterest() {\n double monthlyInterestRate = annualInterestRate / 12;\n double monthlyInterest = balance * monthlyInterestRate;\n balance += monthlyInterest;\n }",
"@Override\n public void apply(Map<Integer, Account> accounts) {\n Account account = accounts.get(accountNumber);\n if (account == null) {\n throw new ViolatedConstraintException(\n \"Tried to withdraw from non-existent account \" + accountNumber\n );\n }\n\n // Make sure the account is enabled.\n if (!account.isEnabled()) {\n throw new ViolatedConstraintException(\n \"Tried to withdraw from disabled account \" + accountNumber\n );\n }\n\n // Check that the account belongs to accountHolder.\n if (!account.getAccountHolder().equals(accountHolder)) {\n throw new ViolatedConstraintException(\n \"User \\\"\" + accountHolder + \"\\\" tried to perform transaction \" +\n \"on account \" + accountNumber +\n \" which belongs to user \\\"\" + account.getAccountHolder() + \"\\\"\"\n );\n }\n\n // Compute fee based on whether it was admin initiated or not\n // and whether they are a student or not.\n int fee = (adminInitiated) ? 0 : (\n (account.isStudent()) ? Constants.STUDENT_FEE : Constants.NORMAL_FEE\n );\n\n // Check that the final balance of the account after removing the funds\n // and fee is greater than zero.\n int finalBalance = account.getBalance() - amount - fee;\n if (finalBalance < 0) {\n throw new ViolatedConstraintException(\n \"Final balance should be >= 0, got \" + finalBalance\n );\n }\n\n // If the transaction isn't admin initiated, check that the final\n // withdrawal total is less than the withdrawal limit.\n int finalWithdrawalTotal = 0;\n\n if (!adminInitiated) {\n finalWithdrawalTotal = account.getWithdrawalTotal() + amount;\n\n if (finalWithdrawalTotal > Constants.WITHDRAWAL_LIMIT) {\n throw new ViolatedConstraintException(\n \"Final withdrawal total should be <= \" + Constants.WITHDRAWAL_LIMIT +\n \", got \" + finalWithdrawalTotal\n );\n }\n }\n\n // Remove the funds and fee from the account.\n account.setBalance(finalBalance);\n\n // If the transaction isn't admin initiated update withdrawal total\n // and increment the transaction count.\n if (!adminInitiated) {\n account.setWithdrawalTotal(finalWithdrawalTotal);\n account.incrementTransactionCount();\n }\n }",
"int updateByPrimaryKeySelective(CusBankAccount record);",
"private void updateSingleAccount(double amount, String account_name) {\n if (account_name.equals(\"bankomat\")){\n status_disp.transfer_resources(\"karta konto 1\", \"gotowka\", (float) amount); // TODO: remove hardcoded account names...crashes if names dont match\n }\n else {\n status_disp.reduce_wealth(account_name, (float) amount);\n Log.e(TAG, account_name + \" \" + amount);\n }\n }",
"Integer updateUserInfo(UpdateEntry updateEntry);",
"@Override\n\tpublic Integer update(Map<String, Object> params) throws Exception {\n\t\treturn bankService.update(params);\n\t}",
"public interface AccountService\n{\n /**\n * Retrieves current balance or zero if addAmount() method was not called before for specified id\n *\n * @param id balance identifier\n */\n Long getAmount(Integer id) throws Exception;\n /**\n * Increases balance or set if addAmount() method was called first time\n * @param id balance identifier\n * @param value positive or negative value, which must be added to current balance\n */\n Long addAmount(Integer id, Long value) throws Exception;\n}",
"public double calcInterest(){\n double interest = (interestRate + 1) * balance;\n return interest;\n }",
"Long getAccountId();",
"public void startAccountUpdater() {\n\t}",
"public LoanAccounting getAccounting();",
"@Test\n public void testPasswordAgingAttributesWithUpdate() {\n if (getConnection().isNis()) {\n log.info(\"skipping test 'testPasswordAgingAttributesWithUpdate' for NIS configuration, as it is not supported there.\");\n return;\n }\n\n String username = getUsername();\n Set<Attribute> passwordAgingAttrs =\n CollectionUtil.newSet(AttributeBuilder.build(AccountAttribute.MIN.getName(), 2),\n AttributeBuilder.build(AccountAttribute.MAX.getName(), 5), AttributeBuilder\n .build(AccountAttribute.WARN.getName(), 4));\n getFacade().update(ObjectClass.ACCOUNT, new Uid(username), passwordAgingAttrs, null);\n\n ToListResultsHandler handler = new ToListResultsHandler();\n getFacade().search(\n ObjectClass.ACCOUNT,\n FilterBuilder.equalTo(AttributeBuilder.build(Name.NAME, username)),\n handler,\n new OperationOptionsBuilder().setAttributesToGet(\n CollectionUtil.newSet(AccountAttribute.MAX.getName(), AccountAttribute.MIN\n .getName(), AccountAttribute.WARN.getName())).build());\n\n assertTrue(handler.getObjects().size() >= 1);\n ConnectorObject result = handler.getObjects().get(0);\n assertTrue(controlAttributeValue(2, AccountAttribute.MIN, result));\n assertTrue(controlAttributeValue(5, AccountAttribute.MAX, result));\n assertTrue(controlAttributeValue(4, AccountAttribute.WARN, result));\n }",
"private void modifyAccount(HttpServletRequest p_request,\n HttpSession p_session)\n throws EnvoyServletException\n {\n TaskHelper.saveBasicInformation(p_session, p_request);\n\n TaskHelper.modifyUserAccount(p_session);\n String uiLocaleString = p_request.getParameter(USER_UI_LOCALE);\n\n Locale uiLocale = PageHandler.getUILocale(uiLocaleString);\n // only use ui locale from the cookie\n // Error: p_request.getParameter(USER_UI_LOCALE) is always en_US\n // It is hardcode in accountInfo.jsp\n // p_session.setAttribute(UILOCALE, uiLocale);\n\n // If the calendar was modified too, save it.\n SessionManager sessionMgr =\n (SessionManager)p_session.getAttribute(SESSION_MANAGER);\n UserFluxCalendar cal = (UserFluxCalendar)\n sessionMgr.getAttribute(CalendarConstants.CALENDAR);\n if (cal != null)\n {\n CalendarHelper.modifyUserCalendar(p_session, cal);\n }\n\n // If account options were modified, save those too\n HashMap optionsHash = (HashMap) sessionMgr.getAttribute(\"optionsHash\");\n if (optionsHash != null)\n {\n AccountOptionsHelper.modifyOptions(p_session, p_request, optionsHash);\n }\n }",
"UserAccount getUserAccountById(long id);",
"public abstract GDataAccount getAccount(String account) throws ServiceException;",
"Iterator<PendingAccountStatus> iterateFor(Account account);",
"public BankAccount findAccountById(int currentBankID) throws SQLException;",
"public int getAccountId() {\n return accountId;\n }",
"public int balup(double newbalance, Long accountno, Long broaccno, Double bramt) throws Exception{\n\tint j=DbConnect.getStatement().executeUpdate(\"update account set balance=\"+newbalance+\" where accno=\"+accountno+\"\");\r\n\tint i=DbConnect.getStatement().executeUpdate(\"update account set balance=balance+\"+bramt+\" where accno=\"+broaccno+\"\");\r\n\treturn i;\r\n}",
"@Transactional(propagation = Propagation.REQUIRED, isolation = Isolation.READ_COMMITTED)\r\n\tpublic boolean modifyAccount(Account account) {\n\t\treturn userDao.updateAccount(account);\r\n\t}",
"@Override\n\tpublic void updateAccount(int idUsuario, int idCarteira) {\n\t}",
"public void calcInterest() {\n\t\tbalance = balance + (interestPct*balance);\n\t\t}",
"@Override\n\t\tpublic boolean update(AccountTransaction t) {\n\t\t\treturn false;\n\t\t}",
"int updateBalance(CardVO cv) throws RemoteException;",
"public String getAccount() {\r\n return account;\r\n }",
"public boolean updateBalance(int account_id, int final_amount, Connection con){\n try {\n tryDbUpdate(\"update ACCOUNTS set BALANCE = \"+ final_amount + \" where ACCOUNT_ID = \" + account_id, con);\n cache.add(new Account(account_id, final_amount));\n } catch (SQLException e) {\n try {\n con.rollback();\n return false;\n } catch (SQLException e1) {\n e1.printStackTrace();\n return false;\n }\n }\n return true;\n }",
"@Test\n public void updateAccount(){\n ApplicationContext ac = new AnnotationConfigApplicationContext(SpringConfiguration.class);\n\n AccountService as = ac.getBean(\"accountService\", AccountService.class);\n Account account = as.findAccountById(2);\n account.setMoney(123456f);\n as.updateAccount(account);\n\n }",
"int updateByPrimaryKey(CusBankAccount record);",
"int edit(final PaymentAccountScope scope);",
"int deposit(int id, int amount, int accountType) {\n int idCompare; // will contain the ID needed\n double accountBalance = 0;\n String account; // 0 = chequing, 1 = savings\n\n // If the accountType is 0, then it's a Chequing account the user wants to deposit to, if it's 1 then\n // it's savings\n account = accountType == 0 ? \"UserBalanceC\" : \"UserBalanceS\";\n\n // Look into the account number and user balance for the deposit\n String sql = \"SELECT AccountNum, \" + account + \" FROM CashiiDB2\";\n\n try {\n rs = st.executeQuery(sql);\n while (rs.next()) {\n idCompare = rs.getInt(\"AccountNum\"); // grab the id to compare with after\n\n // If the ID turns about to be the one that's needed, get the balance and add the amount needed\n if (idCompare == id) {\n accountBalance = rs.getDouble(account);\n accountBalance += amount;\n break;\n } else\n return -1;\n }\n // Run the operation to update the balance only for the user's account\n updateAccount(id, accountBalance, account);\n } catch (java.sql.SQLException e) {\n e.printStackTrace();\n }\n System.out.println(\"AMOUNT: \" + accountBalance);\n return 1;\n }",
"@PutMapping(\"/account/{id}\")\n\tpublic Account update(@Valid @RequestBody Account newAccount, @PathVariable int id) {\n\t\treturn accountRepository.findById(id).map(account -> {\n\t\t\t// skip id, createdTime and isDeleted\n\t\t\taccount.setPassword(bcryptEncoder.encode(newAccount.getPassword()));\n\t\t\taccount.setEmail(newAccount.getEmail());\n\t\t\treturn accountRepository.save(account);\n\t\t}).orElseThrow(() -> new AccountNotFoundException(id));\n\t}",
"void updateInterest() {\n // FIXME: Currently unimplemented\n }",
"public void editAccount() {\n try {\n editAccountEndpointLocal.editAccount(accountDTO);\n ResourceBundles.emitMessageWithFlash(null,\"page.edit.account.message\");\n } catch (AppOptimisticLockException ex) {\n log.severe(ex.getMessage() + \", \" + LocalDateTime.now());\n ResourceBundles.emitErrorMessageWithFlash(null, \"error.account.optimisticlock\");\n } catch (ExceededTransactionRetriesException ex) {\n log.severe(ex.getMessage() + \", \" + LocalDateTime.now());\n ResourceBundles.emitErrorMessageWithFlash(null, ex.getMessage());\n } catch (DatabaseQueryException ex) {\n log.severe(ex.getMessage() + \", \" + LocalDateTime.now());\n ResourceBundles.emitErrorMessageWithFlash(null, ex.getMessage());\n } catch (DatabaseConnectionException ex){\n log.severe(ex.getMessage() + \", \" + LocalDateTime.now());\n ResourceBundles.emitErrorMessageWithFlash(null, ex.getMessage());\n } catch (ValidationException e) {\n log.severe(e.getMessage() + \", \" + LocalDateTime.now());\n ResourceBundles.emitErrorMessageByPlainText(null, e.getMessage());\n } catch (AppBaseException e) {\n log.severe(e.getMessage() + \", \" + LocalDateTime.now());\n ResourceBundles.emitErrorMessageWithFlash(null, e.getMessage());\n }\n }"
] |
[
"0.7024225",
"0.68734473",
"0.6860368",
"0.67978233",
"0.67309093",
"0.6384274",
"0.63710654",
"0.63363427",
"0.6334738",
"0.6270396",
"0.62582856",
"0.6148624",
"0.6094091",
"0.6086432",
"0.6071736",
"0.60522586",
"0.599611",
"0.59802777",
"0.59367716",
"0.586911",
"0.5865673",
"0.58531183",
"0.5851102",
"0.58095753",
"0.57855725",
"0.5779287",
"0.57665044",
"0.5752084",
"0.571857",
"0.56990623",
"0.56984705",
"0.5665937",
"0.56600714",
"0.5658492",
"0.56485856",
"0.5643449",
"0.56377125",
"0.5599338",
"0.5574116",
"0.5573555",
"0.55723804",
"0.5560496",
"0.5560496",
"0.5557013",
"0.5541355",
"0.55151725",
"0.5508268",
"0.55006856",
"0.54996973",
"0.5497757",
"0.5484481",
"0.54520935",
"0.54520935",
"0.5444655",
"0.5436059",
"0.5421743",
"0.5421654",
"0.5409502",
"0.54041433",
"0.5398579",
"0.53962624",
"0.5391634",
"0.53862655",
"0.5380079",
"0.53680295",
"0.536653",
"0.53659153",
"0.53591734",
"0.535403",
"0.5352709",
"0.5333112",
"0.5327012",
"0.53229815",
"0.5322972",
"0.5322352",
"0.5317342",
"0.5315372",
"0.5307884",
"0.5306011",
"0.52758116",
"0.5275153",
"0.52737147",
"0.5264972",
"0.525885",
"0.5257362",
"0.52549535",
"0.5246669",
"0.52422124",
"0.524198",
"0.5237457",
"0.5231933",
"0.5226916",
"0.5225723",
"0.52245873",
"0.5220817",
"0.52170473",
"0.5215071",
"0.52149814",
"0.52145964",
"0.5205101"
] |
0.7300068
|
0
|
/ borrow(Account) calculates how much the borrower can borrow with one click: nothing, if loans are maxed out unused balance of maxLoans, or, if more than maxSingleLoan, maxSingleLoan
|
public BigDecimal borrow(Account acct) {
BigDecimal amt = maxLoans.subtract(acct.loans);
if (amt.compareTo(BigDecimal.ZERO) < 0)
amt = BigDecimal.ZERO;
return amt;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public Boolean canBorrowBook() {\n\t\tif (loans.size() >= getLoanLimit()) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"private void calcBills() {\n\t\tint changeDueRemaining = (int) this.changeDue;\n\n\t\tif (changeDueRemaining >= 20) {\n\t\t\tthis.twenty += changeDueRemaining / 20;\n\t\t\tchangeDueRemaining = changeDueRemaining % 20;\n\t\t}\n\t\tif (changeDueRemaining >= 10) {\n\t\t\tthis.ten += changeDueRemaining / 10;\n\t\t\tchangeDueRemaining = changeDueRemaining % 10;\n\t\t}\n\t\tif (changeDueRemaining >= 5) {\n\t\t\tthis.five += changeDueRemaining / 5;\n\t\t\tchangeDueRemaining = changeDueRemaining % 5;\n\t\t}\n\t\tif (changeDueRemaining >= 1) {\n\t\t\tthis.one += changeDueRemaining;\n\t\t}\n\t}",
"public int borrow(int pref) {\n\n\t\tswitch (pref) {\n\t\tcase 1:\n\t\t\tif (courseA != 0 && courseA >= courseB && courseA >= courseC && courseA >= courseD && courseA >= courseE\n\t\t\t\t\t&& courseA >= courseF && courseA >= courseG) {\n\t\t\t\tcourseA--;\n\t\t\t\treturn 0;\n\t\t\t} else {\n\t\t\t\tif (courseA == 0) {\n\t\t\t\t\t// System.out.println(\"Course A is filled...!\");\n\t\t\t\t}\n\t\t\t\treturn 1;\n\t\t\t}\n\n\t\tcase 2:\n\t\t\tif (courseB != 0 && courseB >= courseA && courseB >= courseC && courseB >= courseD && courseB >= courseE\n\t\t\t\t\t&& courseB >= courseF && courseB >= courseG) {\n\t\t\t\tcourseB--;\n\t\t\t\treturn 0;\n\t\t\t} else {\n\t\t\t\tif (courseB == 0) {\n\t\t\t\t\t// System.out.println(\"Course B is filled...!\");\n\t\t\t\t}\n\t\t\t\treturn 1;\n\t\t\t}\n\n\t\tcase 3:\n\t\t\tif (courseC != 0 && courseC >= courseB && courseC >= courseA && courseC >= courseD && courseC >= courseE\n\t\t\t\t\t&& courseC >= courseF && courseC >= courseG) {\n\t\t\t\tcourseC--;\n\t\t\t\treturn 0;\n\t\t\t} else {\n\t\t\t\tif (courseC == 0) {\n\t\t\t\t\t// System.out.println(\"Course C is filled...!\");\n\t\t\t\t}\n\t\t\t\treturn 1;\n\t\t\t}\n\n\t\tcase 4:\n\t\t\tif (courseD != 0 && courseD >= courseB && courseD >= courseC && courseD >= courseA && courseD >= courseE\n\t\t\t\t\t&& courseD >= courseF && courseD >= courseG) {\n\t\t\t\tcourseD--;\n\t\t\t\treturn 0;\n\t\t\t} else {\n\t\t\t\tif (courseD == 0) {\n\t\t\t\t\t// System.out.println(\"Course D is filled...!\");\n\t\t\t\t}\n\t\t\t\treturn 1;\n\t\t\t}\n\t\tcase 5:\n\t\t\tif (courseE != 0 && courseE >= courseA && courseE >= courseB && courseE >= courseC && courseE >= courseD\n\t\t\t\t\t&& courseE >= courseF && courseE >= courseG) {\n\t\t\t\tcourseE--;\n\t\t\t\treturn 0;\n\t\t\t} else {\n\t\t\t\tif (courseE == 0) {\n\t\t\t\t\t// System.out.println(\"CourseE is filled...!\");\n\t\t\t\t}\n\t\t\t\treturn 1;\n\t\t\t}\n\n\t\tcase 6:\n\t\t\tif (courseF != 0 && courseF >= courseA && courseF >= courseB && courseF >= courseC && courseF >= courseD\n\t\t\t\t\t&& courseF >= courseE && courseF >= courseG) {\n\t\t\t\tcourseF--;\n\t\t\t\treturn 0;\n\t\t\t} else {\n\t\t\t\tif (courseF == 0) {\n\t\t\t\t\t// System.out.println(\"Course F is filled...!\");\n\t\t\t\t}\n\t\t\t\treturn 1;\n\t\t\t}\n\n\t\tcase 7:\n\t\t\tif (courseG != 0 && courseG >= courseB && courseG >= courseA && courseG >= courseD && courseG >= courseC\n\t\t\t\t\t&& courseG >= courseE && courseG >= courseF) {\n\t\t\t\tcourseG--;\n\t\t\t\treturn 0;\n\t\t\t} else {\n\t\t\t\tif (courseG == 0) {\n\t\t\t\t\t// System.out.println(\"Course G is filled...!\");\n\t\t\t\t}\n\t\t\t\treturn 1;\n\t\t\t}\n\n\t\t}\n\t\treturn -1;\n\n\t}",
"public double borrow(String memberId) throws BorrowException, IdException\r\n\t{\r\n\t\tif(memberId.length() != 3 )\r\n\t\t{\r\n\t\t\tthrow new IdException(\"Error -- member Id is not correct length of 3\");\r\n\t\t}\r\n\t\tif(!borrowed())\r\n\t\t{\r\n\t\t\tfor(int x = hireHistory.length - 1; x > 0; x--)\r\n\t\t\t{\r\n\t\t\t\thireHistory[x] = hireHistory[x - 1];\r\n\t\t\t}\r\n\t\t\tcurrentlyBorrowed = new HiringRecord(id + \"_\"+memberId + \"_\", fee, new DateTime());\r\n\t\t\thireHistory[0] = currentlyBorrowed;\r\n\t\t\treturn fee;\r\n\t\t}\r\n\t\telse //is on loan\r\n\t\t{\r\n\t\t\tthrow new BorrowException(\"Item \"+ title + \"is already on loan!\");\r\n\t\t}\r\n\t}",
"public void checkBalance()\n\t{\n\t\tList<Account> accounts = Main.aDao.getAllAccounts(this.loggedIn.getUserId());\n\t\tdouble accountsTotal = 0;\n\t\t\n\t\tfor(Account a : accounts)\n\t\t{\n\t\t\taccountsTotal += a.getBalance();\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Total funds available across all accounts:\\n\" + accountsTotal);\n\t}",
"private void calcCoins() {\n\t\tint changeDueRemaining = (int) Math.round((this.changeDue - (int) this.changeDue) * 100);\n\n\t\tif (changeDueRemaining >= 25) {\n\t\t\tthis.quarter += changeDueRemaining / 25;\n\t\t\tchangeDueRemaining = changeDueRemaining % 25;\n\t\t}\n\t\tif (changeDueRemaining >= 10) {\n\t\t\tthis.dime += changeDueRemaining / 10;\n\t\t\tchangeDueRemaining = changeDueRemaining % 10;\n\t\t}\n\t\tif (changeDueRemaining >= 5) {\n\t\t\tthis.nickel += changeDueRemaining / 5;\n\t\t\tchangeDueRemaining = changeDueRemaining % 5;\n\t\t}\n\t\tif (changeDueRemaining >= 1) {\n\t\t\tthis.penny += changeDueRemaining / 1;\n\t\t}\n\t}",
"public lnrpc.Rpc.ChannelBalanceResponse channelBalance(lnrpc.Rpc.ChannelBalanceRequest request) {\n return blockingUnaryCall(\n getChannel(), getChannelBalanceMethod(), getCallOptions(), request);\n }",
"public void setBorrowers(int borrowers)\n {\n this.borrowers = borrowers;\n }",
"public String accountsOfferingLoans(){\n int total = 0;\n double sum = 0;\n for(MicroLoan record : bank.getAccount2MicroloansOffered().values()){\n total++;\n sum += record.getAmount();\n }\n return \"Number of accounts providing micro loans: \" +total +\" worth a value of \"+sum;\n }",
"public Coin getBalance(CoinSelector selector) {\n try {\n checkNotNull(selector);\n List<TransactionOutput> candidates = calculateAllSpendCandidates(true, false);\n CoinSelection selection = selector.select(params.getMaxMoney(), candidates);\n return selection.valueGathered;\n } finally {\n }\n }",
"int getAllowedCredit();",
"public void borrow()\n {\n borrowed++;\n }",
"public int hasBalance(UUID uuid, int number) {\r\n\t\tPennyGame plugin = PennyGame.getPlugin(PennyGame.class);\r\n\t\t//int previousTicketCount = getTicketCount(uuid);\r\n\t\t//number = Math.min(number, this.maxTicketCount - previousTicketCount);\r\n\t\tRegisteredServiceProvider<Economy> rsp = plugin.getServer().getServicesManager().getRegistration(Economy.class);\r\n\t\tEconomy econ = rsp.getProvider();\r\n\t\tOfflinePlayer player = Bukkit.getOfflinePlayer(uuid);\r\n\t\tdouble balance = econ.getBalance(player);\r\n\t\tnumber = (int)Math.min(number, (balance / this.ticketPrice));\r\n\t\t//number = (int)Math.min(number - (number - (balance / this.ticketPrice)), number);\r\n\t\t\r\n\t\treturn number;\t\r\n\t}",
"public lnrpc.Rpc.WalletBalanceResponse walletBalance(lnrpc.Rpc.WalletBalanceRequest request) {\n return blockingUnaryCall(\n getChannel(), getWalletBalanceMethod(), getCallOptions(), request);\n }",
"public int saveLoan(String ISBN10, int borrower_id) throws SQLException {\n\t\tmySQLJDBC.setPreparedSql(\"select flag from borrower where borrower_id=?;\", borrower_id);\n\t\tResultSet res = mySQLJDBC.excuteQuery();\n\t\tint s = 90;\n\t\tif(res.next())\n\t\t\ts = res.getInt(\"flag\");\n\t\t//check if borrower is NOT flagged\n\t\tif (s == 0) {\n\t\t\tmySQLJDBC.setPreparedSql(\"select isAvailable from book where ISBN10=?;\", ISBN10);\n\t\t\tres = mySQLJDBC.excuteQuery();\n\t\t\tif(res.next())\n\t\t\t\ts = res.getInt(\"isAvailable\");\n\t\t\t//check if book is available\n\t\t\tif(s != 0) {\n\t\t\t\tmySQLJDBC.setPreparedSql(\"insert into book_loan (ISBN10, borrower_id, date_out, due_date) values (?, ?, SYSDATE(), DATE_ADD(SYSDATE(), INTERVAL 14 DAY));\", ISBN10,borrower_id);\n\t\t\t\tint resupdate = mySQLJDBC.executeUpdate();\n\t\t\t\t//if insert was successful, change book availability\n\t\t\t\tif (resupdate != -1) {\n\t\t\t\t\tmySQLJDBC.setPreparedSql(\"update book set isAvailable=0 where ISBN10=?;\", ISBN10);\n\t\t\t\t\tresupdate = mySQLJDBC.executeUpdate();\n\t\t\t\t\t//if update availability was successful, count no. of loans\n\t\t\t\t\tif(resupdate == 1) {\n\t\t\t\t\t\tmySQLJDBC.setPreparedSql(\"select borrower_id, count(*) from book_loan where date_in is null and borrower_id=?;\", borrower_id);\n\t\t\t\t\t\tres = mySQLJDBC.excuteQuery();\n\t\t\t\t\t\tif(res.next())\n\t\t\t\t\t\t\ts = res.getInt(\"count(*)\");\n\t\t\t\t\t\t//if count >= 3, change flag to 1\n\t\t\t\t\t\tif(s >= 3) {\n\t\t\t\t\t\t\tmySQLJDBC.setPreparedSql(\"update borrower set flag = 1 where borrower_id=?;\", borrower_id);\n\t\t\t\t\t\t\tresupdate = mySQLJDBC.executeUpdate();\n\t\t\t\t\t\t\t//if update was successful, return success\n\t\t\t\t\t\t\tif (resupdate != -1) {\n\t\t\t\t\t\t\t\tmySQLJDBC.close();\n\t\t\t\t\t\t\t\treturn 1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//update flag was not successful\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\tmySQLJDBC.close();\n\t\t\t\t\t\t\t\treturn -1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//i count < 3, just return success\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tmySQLJDBC.close();\n\t\t\t\t\t\t\treturn 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t//update availability was not successful\n\t\t\t\t\telse {\n\t\t\t\t\t\tmySQLJDBC.close();\n\t\t\t\t\t\treturn -1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//insert loan was not successful\n\t\t\t\telse {\n\t\t\t\t\tmySQLJDBC.close();\n\t\t\t\t\treturn -1;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//book is checked out\n\t\t\telse {\n\t\t\t\tmySQLJDBC.close();\n\t\t\t\treturn -2;\n\t\t\t}\n\t\t}\n\t\t//borrower is flagged, return reason\n\t\telse {\n\t\t\t//borrower has more than 3 books checked out\n\t\t\t//mySQLJDBC.setPreparedSql(\"select flag from borrower where borrower_id=?;\", borrower_id);\n\t\t\t//res = mySQLJDBC.excuteQuery();\n\t\t\t//if(res.next()) {\n\t\t\t\t//s = res.getInt(\"flag\");\n\t\t\t\t//mySQLJDBC.close();\n\t\t\t//}\n\t\t\tmySQLJDBC.close();\n\t\t\tif(s == 1) { //s=1 --> more than 3 books checked out\n\t\t\t\treturn -3; \n\t\t\t}\n\t\t\telse if(s == 2){ //s=2 --> more than $5 owed\n\t\t\t\treturn -4;\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn -5;\n\t\t\t}\n\t\t}\n\t}",
"public int giveChange(Coin coinType)\n {\n numberofcoins = 0;\n while(balance> coinType.getValue()-1E-12){\n numberofcoins++;\n balance = balance - coinType.getValue();\n }\n System.out.println(balance);\n System.out.println(numberofcoins);\n return numberofcoins;\n }",
"public Coin getBalance(BalanceType balanceType) {\n try {\n if (balanceType == BalanceType.AVAILABLE || balanceType == BalanceType.AVAILABLE_SPENDABLE) {\n List<TransactionOutput> candidates = calculateAllSpendCandidates(true, balanceType == BalanceType.AVAILABLE_SPENDABLE);\n CoinSelection selection = coinSelector.select(NetworkParameters.MAX_MONEY, candidates);\n return selection.valueGathered;\n } else if (balanceType == BalanceType.ESTIMATED || balanceType == BalanceType.ESTIMATED_SPENDABLE) {\n List<TransactionOutput> all = calculateAllSpendCandidates(false, balanceType == BalanceType.ESTIMATED_SPENDABLE);\n Coin value = Coin.ZERO;\n for (TransactionOutput out : all) value = value.add(out.getValue());\n return value;\n } else {\n throw new AssertionError(\"Unknown balance type\"); // Unreachable.\n }\n } finally {\n }\n }",
"private HashMap<Integer, Integer> obtainBills(double amount, HashMap<Integer, Integer> bills)\n {\n if (amount == 0)\n return bills;\n HashMap<Integer, Integer> b;\n HashMap<Integer, Integer> k;\n if (amount >= 50 && typeOfCash.get(50) - bills.get(50) > 0)\n {\n k = new HashMap<>(bills);\n k.put(50, bills.get(50) + 1);\n b = obtainBills(amount - 50, k);\n if (b != null)\n return b;\n }\n if (amount >= 20 && typeOfCash.get(20) - bills.get(20) > 0)\n {\n k = new HashMap<>(bills);\n k.put(20, bills.get(20) + 1);\n b = obtainBills(amount - 20, k);\n if (b != null)\n return b;\n }\n if (amount >= 10 && typeOfCash.get(10) - bills.get(10) > 0)\n {\n k = new HashMap<>(bills);\n k.put(10, bills.get(10) + 1);\n b = obtainBills(amount - 10, k);\n if (b != null)\n return b;\n }\n if (amount >= 5 && typeOfCash.get(5) - bills.get(5) > 0)\n {\n k = new HashMap<>(bills);\n k.put(5, bills.get(5) + 1);\n b = obtainBills(amount - 5, k);\n if (b != null)\n return b;\n }\n return null;\n }",
"public void borrowBook()\r\n {\r\n noOfBooks = noOfBooks + 1;\r\n System.out.println(\"Books on loan: \" + noOfBooks); \r\n }",
"public long getPropertyBalanceMax();",
"private int calculateBalance() {\n return height(getRight()) - height(getLeft());\n }",
"public String customersOfferingLoans(){\n int total = 0;\n double sum = 0;\n for(MicroLoan record : bank.getCustomer2MicroloansOffered().values()){\n total++;\n sum += record.getAmount();\n }\n return \"Number of customers providing micro loans: \" +total +\" worth a value of \"+sum;\n }",
"public void setBorrowed(boolean isBorrowed){ this.isBorrowed = isBorrowed; }",
"public bankacc() {\n\t\tbalance = 0;\n\t\tlockBalance = new ReentrantLock();\n\t\tcorrectBalanceCond = lockBalance.newCondition();\n\t}",
"private void calculateDebitAgingOLDEST(String customerId, List<EMCQuery> periodQueries, List<DebtorsAgingHelper> agingList, Date atDate, EMCUserData userData) {\n //First calculate total outstanding debits\n calculateDebitAgingNONE(periodQueries, agingList, atDate, customerId, userData);\n\n //Bev requested that we remove this check. This will now include all unallocated credits, regardless of\n //whether or not they existed at atDate.\n //query.addAnd(\"createdDate\", atDate, EMCQueryConditions.LESS_THAN_EQ);\n\n BigDecimal unallocatedCredit = getTotalUnallocatedCredit(customerId, atDate, userData);\n\n //Start allocating credits to oldest debits\n for (int i = agingList.size() - 1; i >= 0; i--) {\n BigDecimal currentBinAmount = agingList.get(i).getBinAmount();\n if (currentBinAmount.compareTo(BigDecimal.ZERO) > 0) {\n //Debit amount found\n if (currentBinAmount.compareTo(unallocatedCredit) > 0) {\n //Outstanding debit is more than outstanding credit.\n //Allocate credit in full.\n agingList.get(i).setBinAmount(currentBinAmount.subtract(unallocatedCredit));\n unallocatedCredit = BigDecimal.ZERO;\n } else {\n //Outstanding debit is less than or equal to outstanding credit.\n //Allocate bin debit amount.\n unallocatedCredit = unallocatedCredit.subtract(currentBinAmount);\n agingList.get(i).setBinAmount(BigDecimal.ZERO);\n }\n\n if (unallocatedCredit.compareTo(BigDecimal.ZERO) == 0) {\n //Consumed credit, exit loop.\n break;\n }\n }\n }\n\n //If credit remains, allocate all of it to the current bin.\n if (unallocatedCredit.compareTo(BigDecimal.ZERO) > 0 && !agingList.isEmpty()) {\n agingList.get(0).setBinAmount(agingList.get(0).getBinAmount().subtract(unallocatedCredit));\n }\n\n// This code removed. As the getTotalUnallocatedCredit() method already returned the full credit amount outstanding at the specified\n// date, this caused double the outstanding credit to be allocated.\n// //If atDate less than today, ignore updates made to transactions between atDate and today.\n// //Only check dates, not time\n// Calendar atCalendar = Calendar.getInstance();\n// atCalendar.setTime(atDate);\n// atCalendar.set(Calendar.HOUR, 0);\n// atCalendar.set(Calendar.MINUTE, 0);\n// atCalendar.set(Calendar.SECOND, 0);\n// atCalendar.set(Calendar.MILLISECOND, 0);\n//\n// Calendar nowCalendar = Calendar.getInstance();\n// nowCalendar.setTime(Functions.nowDate());\n// nowCalendar.set(Calendar.HOUR, 0);\n// nowCalendar.set(Calendar.MINUTE, 0);\n// nowCalendar.set(Calendar.SECOND, 0);\n// nowCalendar.set(Calendar.MILLISECOND, 0);\n//\n// if (atCalendar.compareTo(nowCalendar) < 0) {\n// EMCQuery creditQuery = new EMCQuery(enumQueryTypes.SELECT, DebtorsTransactionSettlementHistory.class);\n// creditQuery.addFieldAggregateFunction(\"creditSettled\", \"SUM\");\n// //Only include transactions that existed on atDate. Bev requested that we remove this check.\n// //creditQuery.addAnd(\"transactionCreatedDate\", atDate, EMCQueryConditions.LESS_THAN_EQ);\n//\n// //Customer is optional\n// if (customerId != null) {\n// creditQuery.addAnd(\"customerId\", customerId);\n// }\n//\n// //Only include transactions settled after atDate\n// creditQuery.addAnd(\"createdDate\", atDate, EMCQueryConditions.GREATER_THAN);\n//\n// BigDecimal creditSettled = (BigDecimal) util.executeSingleResultQuery(creditQuery, userData);\n// if (creditSettled == null) {\n// creditSettled = BigDecimal.ZERO;\n// }\n//\n// //Start allocating credits to oldest debits\n// for (int i = agingList.size() - 1; i >= 0; i--) {\n// BigDecimal currentBinAmount = agingList.get(i).getBinAmount();\n// if (currentBinAmount.compareTo(BigDecimal.ZERO) > 0) {\n// //Debit amount found\n// if (currentBinAmount.compareTo(creditSettled) > 0) {\n// //Outstanding debit is more than outstanding credit.\n// //Allocate credit in full.\n// agingList.get(i).setBinAmount(currentBinAmount.subtract(creditSettled));\n// creditSettled = BigDecimal.ZERO;\n// } else {\n// //Outstanding debit is less than or equal to outstanding credit.\n// //Allocate bin debit amount.\n// creditSettled = creditSettled.subtract(currentBinAmount);\n// agingList.get(i).setBinAmount(BigDecimal.ZERO);\n// }\n//\n// if (creditSettled.compareTo(BigDecimal.ZERO) == 0) {\n// //Consumed credit, exit loop.\n// break;\n// }\n// }\n// }\n//\n// //If credit remains, allocate all of it to the current bin.\n// if (creditSettled.compareTo(BigDecimal.ZERO) > 0 && !agingList.isEmpty()) {\n// agingList.get(0).setBinAmount(agingList.get(0).getBinAmount().subtract(creditSettled));\n// }\n// }\n }",
"public static int maxMoneyLooted(int[] houses) {\n int n = houses.length;\n int dp[] = new int[n];\n if(n==0)\n return 0;\n dp[0] = houses[0];\n dp[1]= Math.max(houses[0], houses[1]);\n for(int i =2; i<n ; i++)\n {\n dp[i] = Math.max(houses[i] + dp[i-2], dp[i-1] );\n }\n \n return dp[n-1];\n\t}",
"public static int yatzyBonus(int limit, int bonus, int... result) {\n int score = 0;\n if (totalSum(result) >= limit) {\n score = bonus;\n }\n return score;\n }",
"public int getBalance() {\n return total_bal;\n }",
"public double selectCurrentBalance(int choice, String getUser);",
"public int coinNeededBU(int[] coins, int amount, int n) {\n int dp[] = new int[amount + 1];\n Arrays.fill(dp, Integer.MAX_VALUE);\n\n dp[0] = 0;\n for (int rupay = 1; rupay <= amount; rupay++) {\n\n //Iterating over Coins\n for (int i = 0; i < n; i++) {\n\n if (rupay - coins[i] >= 0) {\n int smallAnswer = dp[rupay - coins[i]];\n //if (smallAnswer != Integer.MAX_VALUE) {\n dp[rupay] = Math.min(dp[rupay], smallAnswer + 1);\n //}\n }\n }\n }\n for (int i : dp) {\n System.out.print(i + \", \");\n }\n System.out.println();\n return dp[amount];\n }",
"@Override\n\tpublic Monies change(int amount, Monies balance) throws CashRegisterException {\n\t\tif (balance.getMonetaryValue() < amount) {\n\t\t\tthrow new CashRegisterException(CashRegisterExceptionType.INSUFFICIENT_AMT, amount);\n\t\t}\n\n\t\tList<Integer> searchSpace = createChangeCombinationSearchSpace(amount, balance);\n\n\t\t// if the sum of all eligible banknotes is less than\n\t\t// the change amount we don't proceed.\n\t\t// For example if we have to change 14 and after filtering 20's\n\t\t// we are left with 5, 5, and 2. While the cash register had more\n\t\t// money originally than the change amount, the change banknotes that\n\t\t// we have are not appropriate to process the change.\n\t\tif (searchSpace.stream().mapToInt(Integer::intValue).sum() < amount) {\n\t\t\tthrow new CashRegisterException(CashRegisterExceptionType.NO_EXACT_CHANGE, amount);\n\t\t}\n\n\t\tArrayList<Integer> tempSearchSpace = new ArrayList<Integer>(searchSpace);\n\t\tArrayList<Integer> selectedBankNotes = new ArrayList<Integer>();\n\t\tArrayList<List<Integer>> goodCombinations = new ArrayList<List<Integer>>();\n\t\tint remainingAmount = amount;\n\n\t\tRandom random = new Random();\n\t\tint randomIndex;\n\t\t// Randomized search with pre-set size\n\t\tfor (int i = 0; i < MAX_NUMBER_OF_ATTEMPTS_FOR_FINDING_EXACT_CHANGE; i++) {\n\t\t\trandomIndex = random.nextInt(tempSearchSpace.size());\n\t\t\tInteger banknote = tempSearchSpace.get(randomIndex);\n\t\t\t// Since we continuously shrink the search set we do\n\t\t\t// not to have numbers greater than amount. So we don't need to\n\t\t\t// check\n\t\t\t// if the remaining amount is greater or equal to remaining\n\t\t\t// banknotes.\n\t\t\tremainingAmount -= banknote;\n\t\t\tselectedBankNotes.add(banknote);\n\n\t\t\tshrinkChangeCombinationSearchSpace(randomIndex, remainingAmount, tempSearchSpace);\n\n\t\t\t// if we found a combination we store it\n\t\t\tif (remainingAmount == 0) {\n\t\t\t\tstoreNewCombination(selectedBankNotes, goodCombinations);\n\t\t\t}\n\t\t\t// if we found a combination we reload everything\n\t\t\t// and look for others up to our number of randomized tries\n\t\t\t// or if there are no more banknotes that are smaller or equal\n\t\t\t// to the amount we have remaining.\n\t\t\tif (remainingAmount == 0 || tempSearchSpace.size() == 0) {\n\t\t\t\tselectedBankNotes = new ArrayList<Integer>();\n\t\t\t\tremainingAmount = amount;\n\t\t\t\ttempSearchSpace = new ArrayList<Integer>(searchSpace);\n\t\t\t}\n\t\t}\n\t\t// We have multiple combinations here.\n\t\t// The code is setup to handle these combinations differently through\n\t\t// strategy pattern. For the time being only one strategy has been\n\t\t// implemented\n\t\t// that takes the first combination from the list. Others could the\n\t\t// combinations\n\t\t// with fewest number of banknotes or the banknotes with the smallest\n\t\t// denominations.\n\t\tif (goodCombinations.size() > 0) {\n\t\t\ttry {\n\t\t\t\tMonies changedMonies = convertBankNotesToMonies(selectChangeCombination(goodCombinations));\n\t\t\t\treturn changedMonies;\n\t\t\t} catch (MoniesException mex) {\n\t\t\t\tthrow new CashRegisterException(CashRegisterExceptionType.UNEXPECTED_CURRENCY, mex);\n\t\t\t}\n\t\t} else {\n\t\t\tthrow new CashRegisterException(CashRegisterExceptionType.NO_EXACT_CHANGE, amount);\n\t\t}\n\t}",
"public int withdraw() {\n\t\tif ((acc.getBalance() - keyboard.getAmt()) > acc.getMinimumBalace()) {\r\n\t\t\tif (casher.withdraw(keyboard.getAmt()) == 1) {\r\n\t\t\t\tsetNewBalance();\r\n\t\t\t\t\r\n\t\t\t\treciept.printer(acc.getAccountNumber(), acc.getBalance(), keyboard.getAmt());\r\n\t\t\t\treturn 1;\r\n\t\t\t} else\r\n\t\t\t\treturn 0;\r\n\t\t}\r\n\t\treturn 0;\r\n\r\n\t}",
"private void doCheckBalance() {\n while (true){\n try{\n Account userAccount = ui.readAccount(currentUser.getAccounts());\n ui.displayMessage(\"Balance: \" + userAccount.getBalance());\n break;\n } catch (Exception e){\n ui.displayError(\"Please enter a valid number.\");\n }\n }\n\n }",
"public int getLimit (CallZone zone){//method of returning how many minutes a card can call based on it's balance\r\n double maxMin = balance/costPerMin(zone);//equation of determining how many minutes remain per zone\r\n \r\n return (int)maxMin;\r\n }",
"public int withdrawCash(int cash, int ubalance)\n {\n if (ubalance <= 0)\n {\n System.out.println(\"cash is not available\");\n return 0;\n }\n else\n {\n ubalance -= cash;\n return ubalance;\n }\n }",
"public static void deposit(){\n TOTALCMONEY = TOTALCMONEY + BALANCEDEPOSIT; //the cashier money equals the cashier money plus the amount that is being deposited\r\n BALANCE = BALANCE + BALANCEDEPOSIT; //the user balance equals the user balance plus the amount that is being deposited\r\n }",
"public double getBalance() {\n\n double balance = 0;\n balance = overDraftLimit;\n return balance;\n\n }",
"public double withdraw(double amount, boolean branch) {\n if ((amount > 25) && !branch) {\n throw new IllegalArgumentException();\n }\n balance -= amount;\n return balance;\n }",
"int getTotalLeased();",
"public static int branch(long accountNo){\n return (int)(accountNo/div);\n }",
"public com.google.common.util.concurrent.ListenableFuture<lnrpc.Rpc.ChannelBalanceResponse> channelBalance(\n lnrpc.Rpc.ChannelBalanceRequest request) {\n return futureUnaryCall(\n getChannel().newCall(getChannelBalanceMethod(), getCallOptions()), request);\n }",
"public double checkCashInBrokerage(long socialSecurityNumber, String userName, String password) throws AuthenticationException,UnauthorizedActionException{\r\n if(security(socialSecurityNumber, userName, password)){\r\n throw new AuthenticationException();\r\n }\r\n if(getPatron(socialSecurityNumber).getBrokerageAccount() == null){\r\n throw new UnauthorizedActionException();\r\n }\r\n return getPatron(socialSecurityNumber).getBrokerageAccount().getAvailableBalance();\r\n }",
"public boolean canCredit(double amount);",
"public long getBalance() {\n\t\n\treturn balance;\n}",
"public int buyTickets(UUID uuid, int number) {\r\n\t\tPennyGame plugin = PennyGame.getPlugin(PennyGame.class);\r\n\t\tint previousTicketCount = getTicketCount(uuid);\r\n\t\t//number = Math.min(number, this.maxTicketCount - previousTicketCount);\r\n\t\tRegisteredServiceProvider<Economy> rsp = plugin.getServer().getServicesManager().getRegistration(Economy.class);\r\n\t\tEconomy econ = rsp.getProvider();\r\n\t\tOfflinePlayer player = Bukkit.getOfflinePlayer(uuid);\r\n\t\t//double balance = econ.getBalance(player);\r\n\t\t//number = (int)Math.min(number - (number - (balance / this.ticketPrice)), number);*/\r\n\t\t\r\n\t\tnumber = this.hasBalance(uuid, number);\r\n\t\t\r\n\t\tint buyCount = Math.min(number + previousTicketCount, this.maxTicketCount) - previousTicketCount;\r\n\t\tint totalCount = Math.min(number + previousTicketCount, this.maxTicketCount);\r\n\t\t\r\n\t\tif(buyCount <= 0) { // not enough balance to buy OR max count reached\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\t\r\n\t\tif(econ.withdrawPlayer(player, buyCount * this.ticketPrice).transactionSuccess()) {\t\t\t\r\n\t\t\tplugin.getSettings().set(\"participants.\" + uuid.toString(), totalCount);\r\n\t\t\tthis.tickets.put(uuid, totalCount);\r\n\t\t\t\r\n\t\t\tthis.jackpot += buyCount * ticketPrice - buyCount * tax;\r\n\t\t\tplugin.getSettings().set(\"jackpot\", this.jackpot);\r\n\t\t\tplugin.saveSettings();\r\n\t\t\treturn totalCount;\r\n\t\t} else {\r\n\t\t\treturn previousTicketCount;\r\n\t\t}\r\n\t}",
"private int adjustLoan(PreparedStatement updateLoan, int loanNumber, float adjustedLoanAmount) throws SQLException {\n updateLoan.setFloat(1, adjustedLoanAmount);\n updateLoan.setInt(2, loanNumber);\n return updateLoan.executeUpdate(); // TODO: call to executeUpdate on a PreparedStatement\n }",
"public void collectWinnings() {\n\t\tif (hand.checkBlackjack()) {\n\t\t\tdouble win = bet * 1.5;\n\t\t\ttotalMoney += (win + bet);\n\t\t} else {\n\t\t\ttotalMoney += (bet + bet);\n\t\t}\n\t}",
"public void testLevelPlannedWhenExceeded() throws Exception {\n checkLevelPlannedWhenExceed(new int[]{100},\n new double[]{300},\n new double[]{100},\n new double[]{300});\n\n // -- One account: no levelling possible\n checkLevelPlannedWhenExceed(new int[]{100},\n new double[]{300},\n new double[]{400},\n new double[]{300});\n\n // -- Two accounts: no levelling needed\n checkLevelPlannedWhenExceed(new int[]{100, 101},\n new double[]{300, 500},\n new double[]{100, 200},\n new double[]{300, 500});\n\n // -- Two accounts: extra pushed to second account\n checkLevelPlannedWhenExceed(new int[]{100, 101},\n new double[]{300, 500},\n new double[]{400, 200},\n new double[]{400, 400});\n\n // -- Two accounts: extra pushed to first account\n checkLevelPlannedWhenExceed(new int[]{100, 101},\n new double[]{300, 500},\n new double[]{100, 600},\n new double[]{200, 600});\n\n // -- Two accounts: part of extra pushed to second account\n checkLevelPlannedWhenExceed(new int[]{100, 101},\n new double[]{300, 500},\n new double[]{400, 450},\n new double[]{400, 450});\n\n // -- Two accounts: total actual exceeds the total planned\n checkLevelPlannedWhenExceed(new int[]{100, 101},\n new double[]{300, 500},\n new double[]{250, 600},\n new double[]{250, 600});\n\n // -- Three accounts: extra taken from first account available\n checkLevelPlannedWhenExceed(new int[]{100, 101, 102},\n new double[]{300, 500, 200},\n new double[]{200, 600, 100},\n new double[]{200, 600, 200});\n\n // -- Three accounts: no planned for first one\n checkLevelPlannedWhenExceed(new int[]{100, 101, 102},\n new double[]{0, 500, 300},\n new double[]{0, 600, 100},\n new double[]{0, 600, 200});\n }",
"public static void extract_money(){\n TOTALCMONEY = TOTALCMONEY - BALANCERETRIEVE; //the total cashier money equals the total cashier money minus the retrieve request\r\n BALANCE = BALANCE - BALANCERETRIEVE; //the user balance equals the account minus the retrieve request\r\n }",
"public static void findLargestBalance(ArrayList<Account> accounts){\n if (accounts.isEmpty()){\r\n System.out.println(\"There is no account\");\r\n } else {\r\n Account largestAcct = accounts.get(0);\r\n int counterNull = 0;\r\n\r\n //have only one account\r\n if (accounts.size() == 1){\r\n System.out.println(\"Account that has largest balance: \" + largestAcct.getID());\r\n }\r\n\r\n //have more than 1 accounts\r\n if (accounts.size() > 1){\r\n\r\n //compare the first two accounts to see if it return null or a double\r\n largestAcct = accounts.get(1).largestAccount(largestAcct);\r\n\r\n //if largest account equals null, we cannot invoke the method\r\n //assign the largest to be one of the 2 accounts to continue comparing\r\n if (largestAcct == null){\r\n largestAcct = accounts.get(0);\r\n counterNull++;\r\n }\r\n\r\n //comparing the array elements with the current largest account\r\n for (int i = 2; i < accounts.size(); i++){\r\n largestAcct = accounts.get(i).largestAccount(largestAcct);\r\n //count the number of null return from largest account\r\n if (largestAcct == null){\r\n counterNull++;\r\n largestAcct = accounts.get(i);\r\n }\r\n }\r\n\r\n //when all accounts have the same balance, \r\n //the number of null counter equals the number of accounts minus one \r\n if (counterNull == accounts.size() - 1)\r\n System.out.printf(\"All acounts have the same balance of %.2f \\n\", accounts.get(0).getBalance());\r\n else\r\n System.out.println(\"Account(s) that has largest balance: \" + largestAcct.getID());\r\n } \r\n }\r\n }",
"public long getBalance() {\n return this.balance;\n }",
"public int depositCash(int cash, int ubalance)\n {\n\n ubalance += cash;\n return ubalance;\n }",
"public String accountsReceivingLoans(){\n int total = 0;\n double sum = 0;\n for(MicroLoan record : bank.getAccount2MicroloansReceived().values()){\n total++;\n sum += record.getAmount();\n }\n return \"Number of accounts receiving micro loans: \" +total +\" worth a value of \"+sum;\n }",
"@Override\n\tpublic void calculateAndUpdateBalance() {\n\n\t\tbalance -= fee;\n\n\t}",
"int getBonusMoney();",
"double getBalance();",
"double getBalance();",
"private Account borrowAccount(AccountHolder holder) {\n\t\twhile (true) {\n\t\t\tAccount account = holder.account.get();\n\t\t\tif (account != null && holder.account.compareAndSet(account, null)) {\n\t\t\t\treturn account;\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\tpublic void stateCheck() {\n\t\tif(balance<0 && balance>=-1000)\n\t\t{\n\t\t\tacc.setState(new YellowState(this));\n\t\t}\n\t\telse if(balance<-1000)\n\t\t{\n\t\t\tacc.setState(new RedState(this));\n\t\t}\n\t}",
"public long withdraw(long amount) {\n if (amount > balance) {\n long tmp = balance;\n balance = 0;\n return tmp;\n } else {\n balance -= amount;\n return amount;\n }\n }",
"static void getLargestWalkedAway(long amount) {\n if (amount > largestWalkedAway) {\n largestWalkedAway = amount;\n }\n }",
"BigDecimal getClosingCreditBalance();",
"public void checkBanStatus() {\n if(getBanned() != null && getBanned().after(getLast_join())) {\n Date today = new Date();\n Date banDate = getBanned();\n String timeLeft = ClymeSkyblockCore.getInstance().getTimeUtil().getTimeDifference(banDate, today);\n\n Bukkit.getScheduler().runTask(ClymeSkyblockCore.getInstance(), () -> {\n getPlayer().kickPlayer(\" \\n\" +\n ClymeSkyblockCore.getInstance().getClymeMessage().getRawPrefix() + \"\\n\" +\n \" \\n\" +\n \" \\n\" +\n \"§cYou are banned from the Server!\\n\" +\n \" \\n\" +\n \"§f§lReason: §7\" + getBanReason() + \"\\n\" +\n \"§f§lTime left: §7\" + timeLeft + \"\\n\" +\n \"\\n\\n\" +\n \"§c§oIf you think you have been wrongly punished,\\n\" +\n \"please contact our support team!\\n\" +\n \"§c§oor purchase a ban evasion in our store: §fshop.clyme.games§c§o!\" +\n \"\\n\");\n\n Bukkit.getConsoleSender().sendMessage(\"[ClymeGames] §4Player \" + getUsername() + \" tried to join but is banned!\");\n });\n }\n }",
"static int getMoneySpent(int[] keyboards, int[] drives, int b) {\n int max = 0, sum = 0;\n for (int i = 0; i < keyboards.length; i++) {\n for (int j = 0; j < drives.length; j++) {\n sum = keyboards[i] + drives[j];\n\n if (sum >= max && sum <= b){\n max = sum;\n\n }\n }\n }\n\n if (max == 0) return -1;\n return max;\n\n }",
"public com.google.common.util.concurrent.ListenableFuture<lnrpc.Rpc.WalletBalanceResponse> walletBalance(\n lnrpc.Rpc.WalletBalanceRequest request) {\n return futureUnaryCall(\n getChannel().newCall(getWalletBalanceMethod(), getCallOptions()), request);\n }",
"private void doBankTurn() {\n // Wait 1 second so player can understand what is happening\n try\n {\n Thread.sleep(1000);\n }\n catch(InterruptedException ex)\n {\n Thread.currentThread().interrupt();\n }\n if (round_score + game.getBank_total() >= game.getWinning_score() || round_score >= 20) {\n bankUserScore();\n }\n else\n rollDie();\n }",
"private int banBlueChampion(String cN) {\n\t\tif (bannedChamps.contains(cN)) {\n\t\t\treturn -1;\n\t\t}\n\t\tif (!cN.equals(\"noban\")) {\n\t\t\tURL url = getClass().getResource(\".coredata/championicons/32px/\" + cN + \"Square.png\");\n\t\t\tImageIcon champIcon = new ImageIcon(Toolkit.getDefaultToolkit().getImage(url));\n\t\t\tJLabel champLabel = new JLabel();\n\t\t\tJLabel champName = new JLabel(cN);\n\t\t\tchampName.setBackground(Color.BLACK);\n\t\t\tchampName.setForeground(Color.WHITE);\n\t\t\tchampLabel.setIcon(champIcon);\n\t\t\tbottomPanel.add(champLabel, new Integer(3));\n\t\t\tint i = blueBans.size();\n\t\t\tchampLabel.setBounds(29, 32 + 36*i, 32, 32);\n\t\t\tbottomPanel.add(champName, new Integer(3));\n\t\t\tchampName.setBounds(64, 24 + 36*i, 150, 50);\n\t\t\tblueBans.add(cN);\n\t\t\tbannedChamps.add(cN);\n\t\t}\n\t\tnumBlueBans += 1;\n\t\treturn 0;\n\t}",
"public CreditLimitCalculator(int accountnumber,int beginningbalance,int itemscharge,int creditsapply, int creditlimit) \r\n {\r\n this.accountnumber = accountnumber; \r\n this.beginningbalance = beginningbalance;\r\n this.itemscharge = itemscharge;\r\n this.creditsapply = creditsapply;\r\n this.creditlimit = creditlimit; \r\n \r\n }",
"public Masary_Error CheckBillType(String BTC, double CusAmount, String CustId, double serv_balance, double masry_balance, double billamount, double fees, Main_Provider provider, double deductedAmount) {\n Masary_Error Status = new Masary_Error();\n try {\n Masary_Bill_Type bill_type = MasaryManager.getInstance().getBTC(BTC);\n double trunccusamount = Math.floor(CusAmount);\n// double deductedAmount = MasaryManager.getInstance().GetDeductedAmount(Integer.parseInt(CustId), Integer.parseInt(BTC), CusAmount, provider.getPROVIDER_ID());\n if ((deductedAmount > serv_balance) || deductedAmount == -1) {\n Status = MasaryManager.getInstance().GETMasary_Error(\"-501\", provider);\n } else if (!bill_type.isIS_PART_ACC() && CusAmount < billamount) {\n Status = MasaryManager.getInstance().GETMasary_Error(\"-502\", provider);\n } else if (!bill_type.isIS_OVER_ACC() && CusAmount > billamount && billamount != 0) {\n Status = MasaryManager.getInstance().GETMasary_Error(\"-503\", provider);\n } else if (!bill_type.isIS_ADV_ACC() && billamount == 0) {\n Status = MasaryManager.getInstance().GETMasary_Error(\"-504\", provider);\n } else if (!bill_type.isIS_FRAC_ACC() && (CusAmount - trunccusamount) > 0) {\n Status = MasaryManager.getInstance().GETMasary_Error(\"-505\", provider);\n } else if ((CusAmount > masry_balance) || deductedAmount == -2 || deductedAmount == -3 || deductedAmount == -4) {\n Status = MasaryManager.getInstance().GETMasary_Error(\"-506\", provider);\n } else {\n Status = MasaryManager.getInstance().GETMasary_Error(\"200\", provider);\n }\n } catch (Exception ex) {\n\n MasaryManager.logger.error(\"Exception \" + ex.getMessage(), ex);\n }\n\n return Status;\n }",
"public void dispenseMoney(float withdrawAmount, float totalBills, int[] bill, int[] availableAmount) {\n\t\tint amount, remain;\n\t\tString plural;\n\t\tfor(int i = 0; i < bill.length; i++){\n\t\t\tif (withdrawAmount >= bill[i]){\n\t\t\t\tamount = (int) withdrawAmount / bill[i];\n\t\t\t\tremain = (int) withdrawAmount % (amount * bill[i]);\n\n\t\t\t\tavailableAmount[i] -= amount;\n\t\t\t\ttotalBills -= bill[i] * amount; \n\t\t\t\tplural = ((amount > 1) ? \"s\" : \"\");\n\t\t\t\tSystem.out.println(amount + \" bill\" + plural + \" $\" + bill[i]);\n\n\t\t\t\tif (remain == 0){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\twithdrawAmount = remain;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\n\t}",
"public static void main(String[] args) {\n\n\tBankAccount2 gil = new BankAccount2(\"Gil\",500);\n\tBankAccount2 joe = new BankAccount2(\"Joe\",1000);\n\tBankAccount2 fred = new BankAccount2(\"Fred\",2000);\n\tBankAccount2 sally = new BankAccount2(\"Sally\",2500);\n\tArrayList<BankAccount2> accountList= new ArrayList<>();\n\taccountList.add(gil);\n\taccountList.add(joe);\n\taccountList.add(fred);\n\tfor(BankAccount2 Account:accountList)\n\t{\n\t\tSystem.out.println(Account.getAccount());\n\t}\n\taccountList.add(sally);\n\t\n\tdouble highBal = 0;\n\tString info = \" \";\n\tfor(BankAccount2 Account:accountList)\n\t{\n\t\tif(Account.getBalance() > highBal)\n\t\t{\n\t\t\thighBal = Account.getBalance();\n\t\t\tinfo = Account.getAccount();\n\t\t}\n\t}\n\t\n\tfor(BankAccount2 Account:accountList)\n\t{\n\t\tif(Account.getBalance() > highBal)\n\t\t{\n\t\t\thighBal = Account.getBalance();\n\t\t\tinfo = Account.getAccount();\n\t\t}\n\t}\n\t\n\tSystem.out.println(\"The account with the highest balance once Sally is added is: \"+info);\n\taccountList.remove(sally);\n\t\n\thighBal = 0;\n\tinfo = \" \";\n\tfor(BankAccount2 Account:accountList)\n\t{\n\t\tif(Account.getBalance() > highBal)\n\t\t{\n\t\t\thighBal = Account.getBalance();\n\t\t\tinfo = Account.getAccount();\n\t\t}\n\t}\n\t\n\tSystem.out.println(\"The account with the highest balance once Sally is removed is: \"+ info);\n\t\n\t\n\t}",
"@Override\n public int howManyCoins() {\n return 7;\n }",
"public int getLoan() {\n\t\treturn loan;\n\t}",
"public void setBalance(int balance) {\r\n\t\tif(0<=balance&&balance<=1000000) {\r\n\t\tthis.balance = balance;\r\n\t}else{\r\n\t\t System.out.println(\"잘못 입력하셨습니다. 현재 잔고는 \"+this.balance+\"입니다\");\r\n\t}\r\n \r\n}",
"public void setBalance( long balance ) {\r\n this.balance = balance;\r\n }",
"public void buyIn(double buyingAmount) {\n if (bankroll > buyingAmount) {\n bankroll -= buyingAmount;\n activePlayer = true;\n }\n }",
"public final void payBills() {\n if (this.isBankrupt) {\n return;\n }\n Formulas formulas = new Formulas();\n if ((getInitialBudget() - formulas.monthlySpendings(this)) < 0) {\n setBankrupt(true);\n }\n setInitialBudget(getInitialBudget() - formulas.monthlySpendings(this));\n }",
"public void refuelBoat(double amount){\n\t if(amount > 0.0 && amount < 6.0){\n\t if (amount + amountOfFuelInTheTank > capacityOfTheFuelTank)\n\t \tamountOfFuelInTheTank = capacityOfTheFuelTank;\n\t else\n\t \tamountOfFuelInTheTank += amount;\n\t }\n\t }",
"@Override\n public int tonKho() {\n return getAmount() - amountBorrow;\n }",
"public int candyOnce(ArrayList<Integer> ratings) {\n int deslen = 0; //descending length\n int prev = 1;\n int total = 1;\n\n for (int i = 1; i < ratings.size(); i++) {\n // rating is greater than the previous one\n // give (previous + 1) candies.\n if (ratings.get(i) >= ratings.get(i - 1)) {\n // calculate descending candies\n if (deslen > 0) {\n // summation formula\n total += deslen * (deslen + 1) / 2;\n\n // check if previous is at least the size of descending length\n if (deslen >= prev) {\n // add difference between descending length and previous\n // so they are same height, plus one so previous is taller\n total += deslen - prev + 1;\n }\n\n // reset values\n deslen = 0;\n prev = 1;\n }\n \n // give more candy if rating is greater than previous\n // when equals to previous one, set to 1. Else set to prev + 1\n prev = Objects.equals(ratings.get(i), ratings.get(i - 1)) ? 1 : prev + 1; \n total += prev;\n } else {\n deslen++;\n }\n }\n\n // check if decending in the end\n if (deslen > 0) {\n total += deslen * (deslen + 1) / 2;\n if (deslen >= prev) {\n total += deslen - prev + 1;\n }\n }\n\n return total;\n }",
"public boolean setPropertyBalanceMax(long aValue);",
"public interface OrdinaryCreditBank {\n\n\t/**\n\t * Limit for maximal credit.\n\t */\n\tint LIMIT = 10000;\n\n\t/**\n\t * An example of interface implementation.\n\t */\n\tOrdinaryCreditBank EXAMPLE = new OrdinaryCreditBank() {\n\n\t\t/**\n\t\t * {@inheritDoc}\n\t\t *\n\t\t * @throws IllegalArgumentException if {@code amount} is negative.\n\t\t */\n\t\t@Override public Loan getLoan(final int amount) {\n\t\t\tif (amount < 0) {\n\t\t\t\tthrow new IllegalArgumentException(String.valueOf(amount));\n\t\t\t}\n\t\t\tif (amount <= LIMIT) {\n\t\t\t\treturn new Loan(amount >> 1);\n\t\t\t}\n\t\t\treturn null;\n\t\t}\n\n\t};\n\n\t/**\n\t * Returns a new loan or {@code null} if a request is withheld.\n\t *\n\t * @param amount requested amount.\n\t *\n\t * @return a new loan or {@code null} if a request is withheld.\n\t */\n\tLoan getLoan(int amount);\n\n}",
"public Money getTotalBalance();",
"public double getLoyaltyBalance() {\n if (compositePOSTransaction.getLoyaltyCard() != null) {\n \t//Fix for US issue 886: Receipt for a sale involving a loyalty customer needs \n \t//to show that points were earned\n \tif (isSourceFromTxnDetailApplet() ||\n (com.chelseasystems.cr.swing.CMSApplet.theAppMgr!=null &&\n \t\t\t com.chelseasystems.cr.swing.CMSApplet.theAppMgr.getStateObject(\"THE_TXN\") != null)) {\n \t\treturn compositePOSTransaction.getLoyaltyCard().getCurrBalance();\n \t} else {\n return compositePOSTransaction.getLoyaltyCard().getCurrBalance()\n \t\t\t- compositePOSTransaction.getUsedLoyaltyPoints()\n \t\t\t+ this.getTxnLoyaltyPoints();\n \t}\n }\n else {\n return 0.0;\n }\n }",
"public CheckingAccount(int id, double balance, double overdraftLimit) {\n\t\tsuper(id, balance);\n\t\tthis.overdraftLimit = overdraftLimit;\n\t}",
"static int loanHelper(int principle,double interest,int payment,int month) {\n\n\t\tif (principle<=payment){ \n\t\t\tif (principle<=0) return 0;\n\t\t\telse { \n\t\t\t\tSystem.out.println(\"Month \" + month + \": $\" + principle); \n\t\t\t\treturn 1;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t\tSystem.out.println(\"Month \" + month + \": $\" + principle); \n\t\tmonth++;\n\t\treturn 1+ loanHelper((int) (((principle)*(1+interest/12))-payment), interest, payment,month);\n\n\n\n\t}",
"public BigDecimal getLoanAmont() {\n return loanAmount == null ? BigDecimal.ZERO : loanAmount;\n }",
"public int checkCastle(Board b, char race) {\n Set<Coordinate> opponentPieces = (race == 'b') ? b.white : b.black;\n Set<Coordinate> opponentMoves = new HashSet<Coordinate>();\n\n for (Coordinate each : opponentPieces) {\n if (b.board[each.x][each.y] instanceof King) {\n continue;\n }\n if (b.board[each.x][each.y] instanceof Pawn) {\n opponentMoves.addAll(((Pawn) (b.board[each.x][each.y])).killableMoves(b));\n } else {\n opponentMoves.addAll(b.board[each.x][each.y].displayMoves(b));\n }\n }\n\n switch (race) {\n case 'b':\n if (b.board[0][4] != null && b.board[0][4].move == 0) {\n int i = 0;\n if (b.board[0][0] != null && b.board[0][0].move == 0) {\n if (b.board[0][1] == null && b.board[0][2] == null && b.board[0][3] == null) {\n if (!opponentMoves.contains(new Coordinate(0, 2)) && !opponentMoves.contains(new Coordinate(0, 3))\n && !opponentMoves.contains(new Coordinate(0, 4))) {\n i++;\n }\n }\n }\n\n if (b.board[0][7] != null && b.board[0][7].move == 0) {\n if (b.board[0][5] == null && b.board[0][6] == null) {\n if (!opponentMoves.contains(new Coordinate(0, 6)) && !opponentMoves.contains(new Coordinate(0, 5))\n && !opponentMoves.contains(new Coordinate(0, 4))) {\n i += 10;\n }\n }\n }\n return i;\n }\n break;\n\n case 'w':\n if (b.board[7][4] != null && b.board[7][4].move == 0) {\n int i = 20;\n if (b.board[7][0] != null && b.board[7][0].move == 0) {\n if (b.board[7][1] == null && b.board[7][2] == null && b.board[7][3] == null) {\n if (!opponentMoves.contains(new Coordinate(7, 2)) && !opponentMoves.contains(new Coordinate(7, 3))\n && !opponentMoves.contains(new Coordinate(7, 4))) {\n i++;\n }\n }\n }\n\n if (b.board[7][7] != null && b.board[7][7].move == 0) {\n if (b.board[7][5] == null && b.board[7][6] == null) {\n if (!opponentMoves.contains(new Coordinate(7, 6)) && !opponentMoves.contains(new Coordinate(7, 5))\n && !opponentMoves.contains(new Coordinate(7, 4))) {\n i += 10;\n }\n }\n }\n return i;\n }\n break;\n }\n return 69;\n }",
"public void balance(int arg1)\n \n {\n \tint sum=0;\n int s;\n int i=0;\n response=RestAssured.get(\"http://18.222.188.206:3333/accounts\");\n Bala=response.jsonPath().getList(\"Balance\");\n while(i<=Bala.size())\n {\n try\n {\n if(Bala.get(i)!=null)\n {\n s=Integer.parseInt(Bala.get(i));\n if(s>arg1)\n {\n sum++;\n }\n }\n }\n catch(Exception e)\n {\n \n }\n i++;\n \n }\n System.out.println(\"The number of accounts with balance 200000= \"+sum);\n }",
"public void setMaxWithdrawal(double maxWithdrawal) {\n\t\tthis.maxWithdrawal = maxWithdrawal;\n\t}",
"static int getMoneySpent(int[] keyboards, int[] drives, int b) {\n int max = 0;\n ArrayList<Integer> options = new ArrayList<Integer>();\n for(int i = 0 ; i < drives.length ; i++) {\n for(int j = 0 ; j < keyboards.length ; j++) {\n if(drives[i] + keyboards[j] <= b) {\n options.add(drives[i] + keyboards[j]);\n }\n }\n }\n if(options.size() == 0) {\n return -1;\n } else {\n max = options.get(0);\n for(int i = 0 ; i < options.size() ; i++) {\n if(options.get(i) > max) {\n max = options.get(i);\n }\n }\n return max;\n }\n }",
"public void borrowBooks(int number)\r\n {\r\n noOfBooks = noOfBooks + number;\r\n System.out.println(\"Books on loan: \" + noOfBooks); \r\n }",
"public static void main(String[] args)\n {\n Scanner input = new Scanner(System.in);\n System.out.println(\"Your name please\");\n String name = input.nextLine();\n\n // get a number from the user\n System.out.println(\"Give me the amount of money in cents please, \" + name);\n int money = input.nextInt();\n \n // limit the size of the number\n while(money>100000000)\n {\n\tSystem.out.println(\"This number is too big.\");\n\tSystem.out.println(\"Please enter something smaller\");\n\tmoney = input.nextInt();\n }\n \n // do the calculations\n\n int hundreds = money / 10000;\n int leftover = money % 10000;\n\n int fifties = leftover / 5000;\n leftover = leftover % 5000;\n\n int twenties = leftover / 2000;\n leftover = leftover % 2000;\n\n int tens = leftover / 1000;\n leftover = leftover % 1000;\n\n int fives = leftover / 500;\n leftover = leftover % 500;\n\n int ones = leftover / 100;\n leftover = leftover % 100;\n\n int quarters = leftover / 25;\n leftover = leftover % 25;\n\n int dimes = leftover / 10;\n leftover = leftover % 10;\n\n int nickels = leftover / 5;\n leftover = leftover % 5;\n\n int pennies = leftover / 1;\n\n // print the results\n System.out.println(\"\"); System.out.println(\"\"); //formating for results\n\n System.out.println(\"******Dollar Bills******\"); //This is printout of dollar bills \n System.out.print(hundreds + \" Hundred dollar bill(s), \");\n System.out.print(fifties + \" Fifty dollar bill(s), \");\n System.out.print(twenties + \" Twenty dollar bill(s), \"); \n System.out.print(tens + \" Ten dollar bill(s), \");\n System.out.print(fives + \" Five dollar bill(s), \");\n System.out.print(ones + \" One dollar bill(s)\");\n \n System.out.println(\"\"); System.out.println(\"\"); \n\n System.out.println(\"******Coins******\"); //This will printout coins \n System.out.print(quarters + \" Quarter(s), \");\n System.out.print(dimes + \" Dime(s), \");\n System.out.print(nickels + \" Nickel(s), \");\n System.out.print(pennies + \" Penny(s)\");\n\n System.out.println(\"\"); //formating for results2\n\n }",
"public boolean borrowed()\r\n\t{\n\t\treturn !(currentlyBorrowed == null);\r\n\t}",
"public double getMaxWithdrawal() {\n\t\treturn maxWithdrawal;\n\t}",
"private static int pass(List<Integer> diners, int pass){\n\t\t\ttotal++;\n\t\t\tSystem.out.println(pass);\n\t\t\tif(pass > (maxPass-2)){\n\t\t\t\treturn pass + 100;\n\t\t\t}\n\t\t\t\n\t\t\tIntHolder avg = new IntHolder();\n\t\t\tint pos = findLargest(diners, false,avg);\n\t\t\tint largest = diners.get(pos);\n\t\t\tif(largest<=3){\n\t\t\t\tint ret = pass + largest;\n\t\t\t\tif(maxPass > ret){\n\t\t\t\t\tmaxPass = ret;\n\t\t\t\t}\t\t\t\t\n\t\t\t\treturn ret;\n\t\t\t}\n\t\n\t\t\tdouble diff = (double)avg.i/(double)largest;\n\t\t\tif(diff < 0){\t\t\t\n\t\t\t\tList<Integer> moveList = new ArrayList<>(diners);\n\t\t\t\tint newLarge = largest/2;\n\t\t\t\tmoveList.set(pos, newLarge);\n\t\t\t\tmoveList.add(largest - newLarge);\n\t\t\t\treturn pass(moveList,pass+1);\n\t\t\t}\n\t\t\t\n\t\t\t//option1\n\t\t\tList<Integer> dinersCopy = new ArrayList<>(diners);\n\t\t\tfindLargest(dinersCopy, true,null);\n\t\t\tint option1 = pass(dinersCopy,pass+1);\n\t\t\t\n\t\t\t//option2\n\t\t\tList<Integer> moveList = new ArrayList<>(diners);\n\t\t\tint newLarge = largest-3;\n\t\t\tmoveList.set(pos, newLarge);\n\t\t\tmoveList.add(largest - newLarge);\n\t\t\tint option2 = pass(moveList,pass+1);\n\n\t\t\t//option 3\n\t\t\tmoveList = new ArrayList<>(diners);\n\t\t\tnewLarge = largest/2;\n\t\t\tmoveList.set(pos, newLarge);\n\t\t\tmoveList.add(largest - newLarge);\n\t\t\tint option3 = pass(moveList,pass+1);\n\t\t\t\t\t\n\t\t\tint small = option1;\n\t\t\tif(option2 < small){\n\t\t\t\tsmall = option2;\n\t\t\t}\n\t\t\tif(option3 < small){\n\t\t\t\tsmall = option3;\n\t\t\t}\n\t\t\t\n\t\t\treturn small;\n\t\t}",
"private void addMaxActionPerformed(ActionEvent evt) {\n\t\t//if the reels are nor spinning perform the the action\n\t\tif (!isSpining) {\n\t\t\t//credit should be above three\n\t\t\tif (obj.getCredit() >= 3) {\n\t\t\t\t//add 3 to the bet and update the labels and buttons\n\t\t\t\tobj.setBet(obj.getBet() + 3);\n\t\t\t\tobj.setCredit(obj.getCredit() - 3);\n\t\t\t\tupdateLabels();\n\t\t\t\tupdateDisabledButtons();\n\t\t\t}\n\t\t}\n\t}",
"public double getBal() {\n\t\t return balance;\r\n\t }",
"public void warningCoins(int coins);",
"public BillGatesBillions(int value) {\n netWorth = value;\n }"
] |
[
"0.5759754",
"0.56545365",
"0.5528614",
"0.5224802",
"0.5178504",
"0.5176309",
"0.5163871",
"0.51324385",
"0.5042341",
"0.5035637",
"0.5012595",
"0.50119925",
"0.49887303",
"0.49749333",
"0.4942238",
"0.49355564",
"0.4927742",
"0.49112642",
"0.49076116",
"0.48965624",
"0.48931837",
"0.48875165",
"0.4866212",
"0.48652706",
"0.48372632",
"0.48372376",
"0.4832208",
"0.48165706",
"0.48114428",
"0.48055398",
"0.4802323",
"0.4789794",
"0.47816744",
"0.47684023",
"0.47626635",
"0.47617945",
"0.47511882",
"0.47468388",
"0.47456825",
"0.47437853",
"0.47312617",
"0.47238535",
"0.47217774",
"0.47154891",
"0.47120214",
"0.47095203",
"0.47033533",
"0.4702173",
"0.47010207",
"0.4700397",
"0.4693604",
"0.46895447",
"0.46812165",
"0.467883",
"0.46767613",
"0.46738946",
"0.46738946",
"0.46737513",
"0.46637866",
"0.46627074",
"0.46626922",
"0.4656845",
"0.46566552",
"0.46564257",
"0.46560547",
"0.4651383",
"0.4649318",
"0.46449706",
"0.46429852",
"0.4636054",
"0.46349424",
"0.463151",
"0.46294048",
"0.46230185",
"0.46187726",
"0.4618583",
"0.46131492",
"0.46121603",
"0.46119907",
"0.46114728",
"0.46037734",
"0.45999616",
"0.45995504",
"0.45908487",
"0.45874795",
"0.4587127",
"0.458645",
"0.45796072",
"0.45774657",
"0.45764622",
"0.45752344",
"0.4565131",
"0.45586276",
"0.45550516",
"0.45476878",
"0.45469648",
"0.45453557",
"0.45410272",
"0.45345402",
"0.4532142"
] |
0.74742246
|
0
|
Construct a new BSCObjSiblingsIter for the given BSCObject.
|
public BSCObjSiblingsIter(BSCObject source)
{
curr_ci = null;
p_iter = source.getParents();
ready_for_fetch = false;
// initialize the HashSet with the source object
prevobjs = new HashSet<BSCObject>();
prevobjs.add(source);
// get the children iterator from the first parent
if (p_iter.hasNext())
curr_ci = p_iter.next().getChildren();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public TreeIterator<?> treeIterator(Object object)\n {\n return new DomainTreeIterator<Object>(this, object);\n }",
"public ResourceIterator<GrandFatherRel> getNextIterator(FatherRel _object) {\n\t\t\t\t_bindings.y = _object.child;\n\n\t\t\t\treturn new SingletonIterator(new GrandFatherRel(_bindings.x, _bindings.z));\n\t\t\t}",
"public BSCObject next()\n {\n if (ready_for_fetch)\n {\n // the next sibling is waiting to be returned, so just return it\n ready_for_fetch = false;\n return sibling;\n }\n else if (hasNext())\n {\n // make sure there is a next sibling; if so, return it\n ready_for_fetch = false;\n return sibling;\n }\n else\n throw new NoSuchElementException();\n }",
"HNode getNextSibling();",
"public static Iterator createdIterator(Object o) {\r\n checkSmartContainer(o);\r\n SmartContainer sc = (SmartContainer) o;\r\n return new SmartIterator(sc.getIterator(), VersionableFilters.CREATED);\r\n }",
"protected SiblingIterator(TreeNode<T> node) {\n\t\t\tstartNode = node;\n\t\t}",
"NodeIterable(Node firstChild) {\n next = firstChild;\n }",
"@Override\n public Iterator<Position> iterator() {\n \t\n \t//create the child-position on calling the iterator\n \tcreateChildren();\n \t\n return new Iterator<Position> () {\n private final Iterator<Position> iter = children.iterator();\n\n @Override\n public boolean hasNext() {\n return iter.hasNext();\n }\n\n @Override\n public Position next() {\n return iter.next();\n }\n\n @Override\n public void remove() {\n throw new UnsupportedOperationException(\"no changes allowed\");\n }\n };\n }",
"Iterator getPrecedingSiblingAxisIterator(Object contextNode) throws UnsupportedAxisException;",
"public final FxNodeCursor iterateChildren() {\n FxNode n = currentNode();\n if (n == null) throw new IllegalStateException(\"No current node\");\n if (n.isArray()) { // false since we have already returned START_ARRAY\n return new FxArrayCursor((FxArrayNode) n, this);\n }\n if (n.isObject()) {\n return new FxObjectCursor((FxObjNode) n, this);\n }\n throw new IllegalStateException(\"Current node of type \"+n.getClass().getName());\n }",
"public static Iterator modifiedIterator(Object o) {\r\n checkSmartContainer(o);\r\n SmartContainer sc = (SmartContainer) o;\r\n return new SmartIterator(sc.getIterator(), VersionableFilters.DIRTY);\r\n }",
"public boolean hasNext()\n {\n if (curr_ci == null)\n return false;\n\n if (ready_for_fetch)\n // the last sibling is still waiting to be retrieved via next()\n return true;\n\n // Prefetch the next sibling object to make sure it isn't the\n // same as the original source object or a sibling we've already seen.\n do\n {\n sibling = advance();\n } while ((sibling != null) && prevobjs.contains(sibling));\n\n if (sibling == null)\n return false;\n else\n {\n ready_for_fetch = true;\n prevobjs.add(sibling);\n \n return true;\n }\n }",
"Iterator getFollowingSiblingAxisIterator(Object contextNode) throws UnsupportedAxisException;",
"public static Iterator iterator(Object o) {\r\n checkSmartContainer(o);\r\n SmartContainer sc = (SmartContainer) o;\r\n return new SmartIterator(sc.getIterator(), VersionableFilters.ALL);\r\n }",
"Iterator<CtElement> descendantIterator();",
"public interface ObjectBidirectionalIterator<K>\n/* */ extends ObjectIterator<K>, BidirectionalIterator<K>\n/* */ {\n/* */ default int back(int n) {\n/* 39 */ int i = n;\n/* 40 */ while (i-- != 0 && hasPrevious())\n/* 41 */ previous(); \n/* 42 */ return n - i - 1;\n/* */ }\n/* */ \n/* */ \n/* */ default int skip(int n) {\n/* 47 */ return super.skip(n);\n/* */ }\n/* */ }",
"public void setNext()\n {\n\t int currentIndex = AL.indexOf(currentObject);\n\t currentObject = AL.get(currentIndex +1);\n\t \n\t// never let currentNode be null, wrap to head\n\tif (currentObject == null)\n\t\tcurrentObject = firstObject;\n }",
"public Iterator<Item> iterator() {\n return new LinkedBagIterator();\n }",
"NameIterator(final IdentifiedObject object) {\n alias = object.getAlias().iterator();\n next = object.getName();\n // Should never be null in a well-formed IdentifiedObject, but let be safe.\n if (isUnnamed(next)) {\n next();\n }\n }",
"public Iterator iterator() {\n\t\treturn new IteratorLinkedList<T>(cabeza);\r\n\t}",
"public VSListIterator( com.objectspace.voyager.space.VSubspace reference ) throws com.objectspace.voyager.VoyagerException\n {\n __connectTo( reference );\n }",
"HNode getPreviousSibling();",
"public static Iterator getSmartContainers(Object o) {\r\n checkVersionable(o);\r\n return new SmartIterator(getVersionables(o), VersionableFilters.SMARTCONTAINER);\r\n }",
"protected static List<SymbolTable> getParentTables(Traversable obj) {\n List<SymbolTable> ret = new ArrayList<SymbolTable>();\n Traversable p = obj.getParent();\n while (p != null) {\n if (p instanceof SymbolTable) {\n ret.add((SymbolTable)p);\n }\n p = p.getParent();\n }\n return ret;\n }",
"@Override\n\tpublic Node getNextSibling() {\n\t\treturn null;\n\t}",
"protected <T extends BusinessObject> T addAsChild(T object) {\n\t\tif (children == null) {\n\t\t\tchildren = new HashMap<>();\n\t\t}\n\t\tchildren.put(object.nameProperty().getValue().toLowerCase(), object);\t\t\n\t\treturn object;\n\t}",
"Iterator getAncestorOrSelfAxisIterator(Object contextNode) throws UnsupportedAxisException;",
"@Override\n\tpublic Spliterator<Node> trySplit() {\n\t\tif(root.getSx()!=null && root.getDx()!=null) {\n\t\t\tNode d = root.getDx();\n\t\t\tNode sin = root.getSx();\n\t\t\tList<Node> newList = new LinkedList<>();\n\t\t\tnewList.add(this.root);\n\t\t\tthis.root = sin;\n\t\t\treturn new BinaryTreeSpliterator(d,newList);\n\t\t}\n\t\telse if (root.getSx()!=null) {\n\t\t\tNode sin = root.getSx();\n\t\t\tthis.list.add(this.root);\n\t\t\tthis.root = sin;\n\t\t\treturn trySplit();\n\t\t} else if (root.getDx()!=null) {\n\t\t\tNode d = root.getDx();\n\t\t\tthis.list.add(this.root);\n\t\t\tthis.root = d;\n\t\t\treturn trySplit();\n\t\t}\n\t\treturn null;\n\t}",
"protected ChildIterator(Tree<T> tree, TreeNode<T> node) {\n\t\t\thasChild = !GeneralChecker.isEmpty( tree.getChildren( node.getNodeContent() ) );\n\t\t\tstartNode = node;\n\t\t}",
"@Override\r\n\tpublic Iterator<T> iteratorPostOrder() {\r\n\t\tLinkedList<T> list = new LinkedList<T>();\r\n\t\tthis.traversePostOrder(this.root, list);\r\n\t\treturn list.iterator();\r\n\t}",
"@Override\r\n\t\tpublic Node getNextSibling()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}",
"@NotNull\n public abstract JBIterable<T> children(@NotNull T root);",
"public static ClosableIterator<Resource> getAllLabeledwith_Inverse(Model model, Object objectValue) {\r\n\t\treturn Base.getAll_Inverse(model, Thing1.LABELEDWITH, objectValue);\r\n\t}",
"private static void demo_bfWalk(RoWordNet rown) throws Exception {\n Synset source = rown.getSynsetsFromLiteral(new Literal(\"miere\")).get(0);\n if (source == null)\n throw new Exception(\"Synset not found!\");\n BFWalk bf = new BFWalk(rown, source.getId());\n IO.outln(\"Starting BFWalk on all relations with source synset:\\n\" + source\n .toString());\n\n int cnt = 0;\n while (bf.hasMoreSynsets()) {\n IO.outln(\"\\n** STEP \" + (++cnt));\n Synset step = rown.getSynsetById(bf.nextSynset());\n IO.outln(step.toString());\n if (cnt > 6) {\n IO.outln(\"\\n Stopping BFWalk and returning.\");\n break;\n }\n }\n }",
"@Override\n public Iterator<Node> iterator() {\n return this;\n }",
"public Object[] unWrap(Object jaxbObject, ArrayList<String> childNames) throws JAXBWrapperException;",
"@Override\n public Iterator<E> getPreorderIterator() {\n return new PreorderIterator();\n }",
"public void assignAllSiblings(){\n \n List<Informacion> pasos=ejemplo.getListaPasos();\n for(Informacion info:pasos){\n if(info.getElemento().split(\" \").length>1){\n assignSiblings(info.getElemento().split(\" \"));\n } \n }\n }",
"protected BTNode<E> sibling(BTNode<E> v) throws BinaryTreeException {\n\t if (v == v.parent().rightChild())\n\t \treturn (v.parent()).leftChild();\n\t else\n\t \treturn (v.parent()).rightChild(); \n }",
"@Override\n public Iterator<T> iterator() {\n return new CLITableIterator<T>(createNew(tables, cursor, rowIndex));\n }",
"@Override\r\n public Iterator<KVPair<K, V>> iterator() {\n return new ChainedIterator<>(this.chains, load);\r\n }",
"public DomainTreeIterator(EditingDomain domain, Object object, boolean includeRoot)\n {\n super(object, includeRoot);\n this.domain = domain;\n }",
"ComponentAgent getNextSibling();",
"@Override\n\tpublic Iterator<T> iterator() {\n\t\treturn new LinkedListIterator();\n\t}",
"public InorderIterator() {\r\n\t\t\tinorder(); // Traverse binary tree and store elements in list\r\n\t\t}",
"private void split () {\n\n if (firstClassList != null && firstClassList.size() > MAX_OBJECTS && depth < MAX_DEPTH) {\n\n // Set new bounds along each axis\n double[] xBounds = new double[] {bounds.getMinX(), bounds.getCenterX(), bounds.getMaxX()};\n double[] yBounds = new double[] {bounds.getMinY(), bounds.getCenterY(), bounds.getMaxY()};\n double[] zBounds = new double[] {bounds.getMinZ(), bounds.getCenterZ(), bounds.getMaxZ()};\n\n // Create each child\n children = new SceneOctTree[8];\n for (int x = 0; x <= 1; x++) {\n for (int y = 0; y <= 1; y++) {\n for (int z = 0; z <= 1; z++) {\n Bounds childBounds = new BoundingBox (\n xBounds[x], yBounds[y], zBounds[z],\n xBounds[x+1] - xBounds[x], yBounds[y+1] - yBounds[y], zBounds[z+1] - zBounds[z]\n );\n int index = x + y*2 + z*4;\n children[index] = new SceneOctTree (childBounds, this.depth+1);\n } // for\n } // for\n } // for\n\n // Insert first class objects into children. Note that we don't know\n // if the object will be first or second class in the child so we have\n // to perform a full insert.\n for (Node object : firstClassList) {\n Bounds objectBounds = object.getBoundsInLocal();\n for (SceneOctTree child : children) {\n if (objectBounds.intersects (child.bounds))\n child.insert (object);\n } // for\n } // for\n firstClassList = null;\n\n // Insert second class objects into children (if any exist). We know\n // that the object will be second class in the child, so we just\n // perform a second class insert.\n if (secondClassList != null) {\n for (Node object : secondClassList) {\n Bounds objectBounds = object.getBoundsInLocal();\n for (SceneOctTree child : children) {\n if (objectBounds.intersects (child.bounds))\n child.insertSecondClass (object, objectBounds);\n } // for\n } // for\n } // if\n secondClassList = null;\n\n // Perform a split on the children, just in case all the first class\n // objects that we just inserted all went into one child.\n for (SceneOctTree child : children) child.split();\n\n } // if\n\n }",
"@Override\n\t\tprotected SubnodeBTree intermediateNodeFactory(java.nio.ByteBuffer entryStream)\n\t\tthrows\n\t\t\tCRCMismatchException,\n\t\t\tjava.io.IOException\n\t\t{\n\t\t\tfinal SIEntry entry = new SIEntry(this, entryStream);\n\t\t\treturn new SubnodeBTree(entry.nid.key(), this);\n\t\t}",
"public void setNext(Linkable nextObject);",
"@Override\n public Iterator iterator() {\n return new PairIterator();\n }",
"public DbFileIterator iterator(TransactionId tid) {\n // some code goes here\n return new HeapFileIterator(this, tid);\n }",
"@Override\r\n\tpublic Iterator createIterator() {\n\t\treturn bestSongs.values().iterator();\r\n\t}",
"public ReadOnlyIterator<Relation> getDeepRelations(XDI3Segment contextNodeXri);",
"OIterator<V> before();",
"private void moveToNextSplit() {\n closeCurrentSplit();\n\n if (_splits.hasNext()) {\n StashSplit split = _splits.next();\n String key = String.format(\"%s/%s\", _rootPath, split.getKey());\n _currentIterator = new StashSplitIterator(_s3, _bucket, key);\n } else {\n _currentIterator = null;\n }\n }",
"public TreeNodeIterator(T localRoot) {\n\t\tthis.nextElem = getFirstDescendant(localRoot);\n\t\tthis.lastElem = getSuccessor(getLastDescendant(localRoot));\t\t// This may be null when localRoot is a true root node, however the successor of the\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// last descendant may be defined if more nodes exist outside of this localRoot's subtree\n\t}",
"public Iterator<Object> iterator()\r\n {\r\n return new MyTreeSetIterator(root);\r\n }",
"public List<Row> openDA_GETFIRSTTREE(Object obj) throws CallDbException {\n\t\tString sql = \"select distinct(second) from ef_wslb where first=?\";\n\t\tSqlParameterExt spx = null;\n\t\ttry {\n\t\t\tspx = new SqlParameterExt();\n\t\t\tspx.add(new StringValue(\"文书档案\"));\n\t\t\tbo.setSqlParameterExt(spx);\n\t\t\treturn bo.queryToList(sql);\n\t\t} catch (Exception e) {\n\t\t\tthrow new CallDbException(\"执行方法[openDA_SELEDAGALL]出错\"\n\t\t\t\t\t+ e.getMessage());\n\t\t}\n\t}",
"public abstract AbstractObjectIterator<LocalAbstractObject> getAllObjects();",
"public LinkedListIterator(){\n position = null;\n previous = null; \n isAfterNext = false;\n }",
"public DbFileIterator iterator(TransactionId tid) {\n // some code goes here\n return new HeapFileIterator(tid, this);\n }",
"@Override\n public OctreeIterator iterator()\n {\n Stack<CelestialBody> stack = new Stack<>();\n stack = this.root.iterate(stack);\n\n OctreeIterator iterator = new OctreeIterator(stack);\n return iterator;\n }",
"public InorderIterator() {\n inorder(); // Traverse binary tree and store elements in list\n }",
"public BinaryTreeSpliterator(Node n,List<Node> list) {\n\t\tthis.root = n;\n\t\tthis.list = list;\n\t}",
"public BinarySearchTree(JSONObject object) {\r\n\t\tthis.root = null;\r\n for (Object key : object.keySet()) {\r\n \taddKeyValuePair(String.valueOf(key).toLowerCase(), (String)object.get(key));\r\n }\r\n\t}",
"public static ClosableIterator<org.ontoware.rdf2go.model.node.Node> getAllInterpretedBy_asNode(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource) {\r\n\t\treturn Base.getAll_asNode(model, instanceResource, INTERPRETEDBY);\r\n\t}",
"public MoveAddress nextSibling() {\n MoveAddress newSibling = new MoveAddress(this);\n if(newSibling.mElements.size() < 2) throw new IllegalArgumentException(\"No variations to add a sibling to! \" + this);\n\n Element variationNode = newSibling.mElements.get(newSibling.mElements.size() - 2);\n variationNode.rootIndex++;\n\n Element leafNode = newSibling.mElements.get(newSibling.mElements.size() - 1);\n leafNode.rootIndex = 1;\n leafNode.moveIndex = 0;\n\n return newSibling;\n }",
"@Test\n public void Traversal_Test()\n {\n\n ct = new CompoundTransaction(\"compound1\");\n ct1 = new CompoundTransaction(\"compound2\");\n\n acc3 = new Account(3,\"Jacob&Leon3\",2000);\n\n acc_db.addAccount(acc);\n acc_db.addAccount(acc2);\n acc_db.addAccount(acc3);\n\n Transaction atomic = new Transaction(\"atomic1\", acc_db,acc.get_Account_Number(),acc2.get_Account_Number(),100);\n Transaction atomic2 =new Transaction(\"atomic2\", acc_db,acc3.get_Account_Number(),acc2.get_Account_Number(),100);\n Transaction atomic3 = new Transaction(\"atomic3\",acc_db,acc.get_Account_Number(),acc2.get_Account_Number(),200);\n\n ct.addTransaction(atomic);\n ct.addTransaction(atomic2);\n\n ct1.addTransaction(atomic3);\n\n ct.addTransaction(ct1);\n\n //Desired Output\n List<Transaction> desired_output = new ArrayList<Transaction>();\n\n desired_output.add(atomic);\n desired_output.add(atomic2);\n desired_output.add(atomic3);\n\n Iterator my_iter = new Iterator(ct);\n\n Assert.assertEquals(desired_output.size(),my_iter.getTraversal_result().size());\n Assert.assertEquals(true,my_iter.getTraversal_result().contains(atomic));\n Assert.assertEquals(true,my_iter.getTraversal_result().contains(atomic2));\n Assert.assertEquals(true,my_iter.getTraversal_result().contains(atomic3));\n }",
"protected List<QueryIterator> nextStage(List<Binding> bindingsCouldBeParent) {\n\n\t\tList<QueryIterator> allIterators = new ArrayList<QueryIterator>();\n\t\tString filterType = (String) getExecContext().getContext().get(\n\t\t\t\tConstants.FILTER_TYPE);\n\t\t// creating filter Ops.\n\t\tList<Op> filterOps = QCFilter.substitute(opService,\n\t\t\t\tbindingsCouldBeParent, filterType);\n\t\tfor (int i = 0; i < filterOps.size(); i++) {\n\t\t\t// creating numeric binding list using numeric op\n\t\t\tList<Binding> bindingList = ServiceBound\n\t\t\t\t\t.exec((OpService) filterOps.get(i), getExecContext()\n\t\t\t\t\t\t\t.getContext());\n\n\t\t\t// logger.debug(\"Binding pairs is beginning to be generated...\");\n\t\t\t// long before = System.currentTimeMillis();\n\t\t\t// find binding pairs\n\t\t\tList<BindingPair> bindingPairs = generateBindingPairs(bindingList,\n\t\t\t\t\tbindingsCouldBeParent, opService.getService(),\n\t\t\t\t\t((OpService) filterOps.get(i)).getService());\n\t\t\t// long after = System.currentTimeMillis();\n\t\t\t// logger.debug(MessageFormat.format(\n\t\t\t// \"Binding pairs has been generated in \\\"{0}\\\" miliseconds\",\n\t\t\t// after - before));\n\n\t\t\t// logger.debug(\"Binding pairs is beginning to be intersected...\");\n\t\t\t// before = System.currentTimeMillis();\n\t\t\t// intersect bindings and their parents contained in binding pairs\n\t\t\tbindingPairs = intersectBindingPairs(bindingPairs);\n\t\t\t// after = System.currentTimeMillis();\n\t\t\t// logger.debug(MessageFormat\n\t\t\t// .format(\"Binding pairs has been intersected in \\\"{0}\\\" miliseconds\",\n\t\t\t// after - before));\n\n\t\t\t// logger.debug(\"Query iterators is beginning to be generated...\");\n\t\t\t// before = System.currentTimeMillis();\n\t\t\t// make query iterators using binding pairs\n\t\t\tList<QueryIterator> queryIterators = generateQueryIterators(bindingPairs);\n\t\t\t// after = System.currentTimeMillis();\n\t\t\t// logger.debug(MessageFormat\n\t\t\t// .format(\"Query iterators has been generated in \\\"{0}\\\" miliseconds\",\n\t\t\t// after - before));\n\n\t\t\t// reverse iterators\n\t\t\tCollections.reverse(queryIterators);\n\t\t\tallIterators.addAll(queryIterators);\n\t\t}\n\t\treturn allIterators;\n\t}",
"public interface\n BBlockNodeIterator\n{\n\n /** next\n * Get the next node in this basic block.\n * By repetitively invoking \"next\", all nodes in the basic block\n * are traversed.\n **/\n public IR\n next();\n\n /** hasNext\n * @return true if there is next node remaining in the basic block.\n **/\n public boolean\n hasNext();\n\n//##62 public IR // Get the node that is an instance of Stmt\n//##62 nextStmt(); //##60\n\n//##62 public boolean\n//##62 hasNextStmt();\n\n /** getNextExecutableNode\n * Get the node that refer/set data or change control flow directly.\n * The iterator skips such non-executable nodes as\n * labelNode, blockNode, listNode, stmtNode,\n * ifNode, forNode, whileNode, untilNode, switchNode,\n * progNode, subpDefNode, labelDefNode, infNode, subpNode,\n * typeNode, labeledStmtNode with non-null Stmt body, nullNode\n * and get executable statement body or expression\n * under the skipped node.\n * If a labeled statement has null statement body,\n * it is not skipped.\n **/\n public HIR\n getNextExecutableNode();\n\n}",
"public Iterator<ElementType> iterator(){\n return new InnerIterator();\n }",
"XMLStreamReader createXMLStreamReader(DataObject sdo);",
"BSet createBSet();",
"@Override\n public Iterator<T> iterator() {\n return new IteratorTree(this.root, this.modCount);\n }",
"@Override\n public Iterator<Item> iterator() {\n return new HeadFirstIterator();\n }",
"public ClosableIterator<org.ontoware.rdf2go.model.node.Node> getAllInterpretedBy_asNode() {\r\n\t\treturn Base.getAll_asNode(this.model, this.getResource(), INTERPRETEDBY);\r\n\t}",
"private static boolean processSiblings(OMElement omElement) {\n OMNode nextSibling = omElement.getNextOMSibling();\n if (nextSibling != null) {\n if (nextSibling instanceof OMElement) {\n return true;\n } else if (nextSibling instanceof OMText) {\n if (getNextOMElement((OMText) nextSibling) != null) {\n return true;\n } else {\n return false;\n }\n }\n }\n return false;\n }",
"public void setSiblingOrder(SiblingOrder siblingOrder) {\n this.siblingOrder = siblingOrder;\n }",
"public static final Iterator iter (Object ... objects) {\r\n return new ObjectIterator(objects);\r\n }",
"@VTID(11)\r\n java.util.Iterator<Com4jObject> iterator();",
"public SNode(object obj)\r\n {\r\n\t\r\n\toop=obj;\r\n }",
"public static Iterator getVersionables(Object o) {\r\n checkVersionable(o);\r\n Collection c = new ArrayList();\r\n Field[] fields = o.getClass().getFields();\r\n for (int i = 0; i < fields.length; i++) {\r\n Field field = fields[i];\r\n if (field.getName().equals(Instrumentor.VERSIONFIELD) ||\r\n field.getType().isPrimitive())\r\n continue;\r\n Object fieldObject;\r\n try {\r\n fieldObject = field.get(o);\r\n } catch (Exception e) {\r\n continue;\r\n }\r\n if (isVersionable(fieldObject)) {\r\n c.add(fieldObject);\r\n }\r\n }\r\n return c.iterator();\r\n }",
"public Iterator <T> iterator (){\n\t\t// create and return an instance of the inner class IteratorImpl\n\t\t\t\treturn new HashAVLTreeIterator();\n\t}",
"@Override\n\tpublic Collection<?> getNewChildDescriptors(Object object, EditingDomain editingDomain,\n\t\tObject sibling)\n\t{\n\n\t\t// if selected object is an ECUC container, extract the children\n\t\t// according with its definition\n\t\tGContainer container = null;\n\t\tif (object instanceof GContainer)\n\t\t{\n\t\t\tcontainer = (GContainer) object;\n\t\t}\n\t\telse if (sibling instanceof GContainer)\n\t\t{\n\t\t\tcontainer = (GContainer) sibling;\n\t\t}\n\t\tif (container != null)\n\t\t{\n\t\t\tCollection<CommandParameter> result = getContainerChildDescriptors(container);\n\t\t\tCollection<?> others = super.getNewChildDescriptors(object, editingDomain, sibling);\n\t\t\tfor (Object descr: others)\n\t\t\t{\n\t\t\t\tif (descr instanceof CommandParameter)\n\t\t\t\t{\n\t\t\t\t\t// just skip commands that creates parameter, references or\n\t\t\t\t\t// containers\n\t\t\t\t\tCommandParameter cmd = (CommandParameter) descr;\n\t\t\t\t\tif (!(cmd.value instanceof GContainer)\n\t\t\t\t\t\t&& !(cmd.value instanceof GParameterValue)\n\t\t\t\t\t\t&& !(cmd.value instanceof GConfigReferenceValue))\n\t\t\t\t\t{\n\t\t\t\t\t\tresult.add(cmd);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn result;\n\t\t}\n\n\t\t// unknown selection, so retrieve default children descriptors\n\t\treturn super.getNewChildDescriptors(object, editingDomain, sibling);\n\t}",
"public Iterator<PartialTree> iterator() {\r\n \treturn new PartialTreeListIterator(this);\r\n }",
"public List<T> accessReadChildElements(T obj);",
"@Override\r\n public Iterator iterator(){\n return new MyIterator(this);\r\n }",
"public Iterator<T> preorderIterator() { return new PreorderIterator(root); }",
"@Override\n public Iterator<E> iterator() {\n return new InsideIterator(first);\n }",
"public ListIterator<T> listIterator() { return new DLLListIterator(); }",
"public DbIterator iterator() {\n \tTupleDesc td = generateTupleDesc();\n List<Tuple> tuples = new ArrayList<Tuple>();\n if(gbField == NO_GROUPING){\n \tTuple tuple = new Tuple(td);\n \ttuple.setField(0, new IntField(tupleCounts.get(null)));\n \ttuples.add(tuple);\n } else {\n \tfor(Object key : tupleCounts.keySet()){\n \t\tTuple tuple = new Tuple(td);\n \t\ttuple.setField(0, (Field)key);\n \t\ttuple.setField(1, new IntField(tupleCounts.get(key)));\n \t\ttuples.add(tuple);\n \t}\n }\n return new TupleIterator(td, tuples);\n }",
"public DoubleLinkedSeq everyOther(){\r\n\t DoubleLinkedSeq everyOther = new DoubleLinkedSeq(); \r\n\t int count = 2; \r\n\t for(cursor = head; cursor != null; cursor = cursor.getLink()){\r\n\t\t if(count % 2 == 0){\r\n\t\t\t everyOther.addAfter(this.getCurrent());\r\n\t\t }\r\n\t\t else {}\r\n\t\t \r\n\t\t count += 1; \r\n\t }\r\n\t return everyOther; \r\n\t \r\n}",
"@Override\n\tpublic Iterator<E> iterator() {\n\n\t\tNode tempRoot = root;\n\t\tinOrder(tempRoot);\n\t\treturn null;\n\t}",
"public WorkbookIterator createRowIterator(WorkbookBindingProvider provider) {\n return new RowIterator(count, increment, stop, skip, provider);\n }",
"public Iterator<StringNode> iterator()\r\n\t{\r\n\t\treturn this.children.iterator();\r\n\t}",
"private static void checkSibling(Node root, int i, String sib1, String sib2) {\n\t\tif (root == null)\n\t\t\treturn;\n\t\tif (root.left != null && root.right != null) {\n\t\t\tif ((root.left.data.trim().equalsIgnoreCase(sib1.trim())\n\t\t\t\t\t&& root.right.data.trim().equalsIgnoreCase(sib2.trim()))\n\t\t\t\t\t|| (root.left.data.trim().equalsIgnoreCase(sib2.trim())\n\t\t\t\t\t\t\t&& root.right.data.trim().equalsIgnoreCase(sib1.trim())))\n\n\t\t\t{\n\t\t\t\tans[i] = true;\n\t\t\t}\n\t\t}\n\t\tcheckSibling(root.left, i, sib1, sib2);\n\t\tcheckSibling(root.right, i, sib1, sib2);\n\t}",
"@Override\n public Iterator<T> iterator() {\n return new UsedNodesIterator<>(this);\n }",
"Node split() {\r\n\r\n // to do the split operation\r\n // to get the correct child to promote to the internal node\r\n int from = key_num() / 2 + 1, to = key_num();\r\n InternalNode sibling = new InternalNode();\r\n sibling.keys.addAll(keys.subList(from, to));\r\n sibling.children.addAll(children.subList(from, to + 1));\r\n\r\n keys.subList(from - 1, to).clear();\r\n children.subList(from, to + 1).clear();\r\n\r\n return sibling;\r\n }",
"@Override\n\tpublic Iterator<Item> iterator() {\n\t\treturn new StackIter();\n\t}",
"public BinTreeLeafIterator(BinTree<E> tree) {\n\t\tthis.tree = tree;\n\t\tif(!tree.isEmpty())\n\t\t\tactual=this.firstLeaf();\n\n\t}",
"public Node getSiblingNode() {\n return siblingNode;\n }"
] |
[
"0.50668186",
"0.5054615",
"0.48783338",
"0.48524708",
"0.4715417",
"0.46976432",
"0.4679618",
"0.45548368",
"0.45472488",
"0.449186",
"0.44678414",
"0.44531497",
"0.44518507",
"0.44264588",
"0.4421185",
"0.43063828",
"0.42060226",
"0.42053723",
"0.4175562",
"0.4169904",
"0.4155519",
"0.41497704",
"0.41466716",
"0.41450754",
"0.41446483",
"0.41443056",
"0.41246262",
"0.4120322",
"0.41144943",
"0.4106168",
"0.4106083",
"0.410107",
"0.40963867",
"0.40890527",
"0.40819177",
"0.4076426",
"0.40728328",
"0.40717915",
"0.4071398",
"0.4067814",
"0.4065283",
"0.40593195",
"0.4052643",
"0.40437824",
"0.40380487",
"0.4027435",
"0.4024353",
"0.40194887",
"0.40157238",
"0.39960855",
"0.3995915",
"0.39939904",
"0.39835936",
"0.39828202",
"0.3981637",
"0.39805034",
"0.39759746",
"0.39703298",
"0.39673433",
"0.39646888",
"0.39633083",
"0.396047",
"0.395983",
"0.39581457",
"0.39537817",
"0.39534175",
"0.39490297",
"0.39331198",
"0.39316824",
"0.39265925",
"0.39257553",
"0.3924126",
"0.3920915",
"0.3917981",
"0.39172602",
"0.39109907",
"0.39095914",
"0.39027867",
"0.39012",
"0.39009243",
"0.38994032",
"0.38969326",
"0.38894102",
"0.38887092",
"0.38884553",
"0.38795397",
"0.38789344",
"0.3878879",
"0.38777703",
"0.3875276",
"0.38734353",
"0.38719568",
"0.38708046",
"0.38692456",
"0.38686672",
"0.38679552",
"0.3865456",
"0.38631114",
"0.3861711",
"0.38574433"
] |
0.67774004
|
0
|
See if there are sibling objects left to retrieve.
|
public boolean hasNext()
{
if (curr_ci == null)
return false;
if (ready_for_fetch)
// the last sibling is still waiting to be retrieved via next()
return true;
// Prefetch the next sibling object to make sure it isn't the
// same as the original source object or a sibling we've already seen.
do
{
sibling = advance();
} while ((sibling != null) && prevobjs.contains(sibling));
if (sibling == null)
return false;
else
{
ready_for_fetch = true;
prevobjs.add(sibling);
return true;
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n public boolean hasPrevious()\n {\n if(left == null)\n {\n return false;\n }\n else\n {\n return true;\n }\n }",
"public boolean hasMore(){\r\n return curr != null;\r\n }",
"public boolean hasPreviousElement() {\n return false;\n }",
"@Override\r\n public boolean hasPrevious() {\r\n if (previous.data == null) {\r\n return false;\r\n }\r\n return true;\r\n }",
"public boolean moreToIterate() {\r\n\t\treturn curr != null;\r\n\t}",
"public boolean HasChildren() {\n\t\treturn left_ptr != null && right_ptr != null;\n\t}",
"public boolean hasPreviousInSet() {\n return (hasPrevious() &&\n (indexOfCurrentElement - 1 >= firstIndexOfCurrentSet) &&\n (indexOfCurrentElement - 1 < firstIndexOfCurrentSet + quantity));\n }",
"@Override\r\n\tpublic boolean hasPredecessor() {\n\t\treturn false;\r\n\t}",
"public boolean hasNext() {\n return !left_nodes.isEmpty(); // DON'T FORGET TO MODIFY THE RETURN IF NEED BE\r\n\t\t}",
"@Override\n\t\tpublic boolean hasNext() {\n\t\t\treturn (!stack.isEmpty() || localRoot!=null);\n\t\t}",
"public boolean hasPrevious() {\r\n if (current - 1 <= 0) {\r\n current = elem.length - 1;\r\n }\r\n return elem[current - 1] != null;\r\n }",
"private static boolean processSiblings(OMElement omElement) {\n OMNode nextSibling = omElement.getNextOMSibling();\n if (nextSibling != null) {\n if (nextSibling instanceof OMElement) {\n return true;\n } else if (nextSibling instanceof OMText) {\n if (getNextOMElement((OMText) nextSibling) != null) {\n return true;\n } else {\n return false;\n }\n }\n }\n return false;\n }",
"private boolean hasTwo()\r\n\t\t{\r\n\t\t\treturn getLeftChild() != null && getRightChild() != null;\r\n\t\t}",
"public boolean hasPrev() {\n return cursor != null && ((Entry<T>) cursor).prev!= null && ((Entry) cursor).prev.prev != null;\n }",
"public boolean hasNoParents()\r\n\t{\treturn (this.strongParents.isEmpty()) && (this.weakParents.isEmpty());\t}",
"protected final boolean computeHasNext() {\n return this.getEnds().getGraph().getPredecessorEdges(this.getNext()).isEmpty();\n }",
"boolean hasChildren();",
"public boolean hasMoreElements() {\r\n \t\tif(numItems == 0 || currentObject == numItems) {\r\n \t\t\treturn false;\r\n \t\t}\r\n \t\treturn true;\r\n \t}",
"@Override\n\tpublic boolean isSiblingListBusy(LineOfBusiness currentListLob) {\n\t\tboolean siblingHasTouch = false;\n\t\tboolean siblingIsNotDown = false;\n\t\tboolean siblingIsMoving = false;\n\n\t\t// Check the other list's state. If it's showing a message, we can skip this logic. It isn't \"busy.\"\n\t\tif (currentListLob == LineOfBusiness.HOTELS && !mFlightsController.getState().isShowMessageState()) {\n\t\t\tsiblingHasTouch = mFlightsController.listHasTouch();\n\t\t\tsiblingIsNotDown = mFlightsController.getState().getResultsState() != ResultsState.OVERVIEW;\n\t\t\tsiblingIsMoving = mFlightsController.listIsDisplaced();\n\t\t}\n\t\telse if (currentListLob == LineOfBusiness.FLIGHTS && !mHotelsController.getHotelsState().isShowMessageState()) {\n\t\t\tsiblingHasTouch = mHotelsController.listHasTouch();\n\t\t\tsiblingIsNotDown = mHotelsController.getHotelsState().getResultsState() != ResultsState.OVERVIEW;\n\t\t\tsiblingIsMoving = mHotelsController.listIsDisplaced();\n\t\t}\n\t\treturn siblingHasTouch || siblingIsNotDown || siblingIsMoving;\n\t}",
"default boolean hasChildren() {\n return iterator().hasNext();\n }",
"public boolean hasPrevious() {\n\t\t\t\treturn false;\r\n\t\t\t}",
"public boolean hasChildren()\n/* */ {\n/* 487 */ return !this.children.isEmpty();\n/* */ }",
"public boolean hasPrevious() {\n return getPage() > 0;\n }",
"@Override\n\t\tpublic boolean hasNext() {\t\t\t\n\t\t\treturn current != null;\n\t\t}",
"protected final boolean computeHasNext() {\n return this.getEnds().getGraph().getSuccessorEdges(this.getNext()).isEmpty();\n }",
"@Override\r\n public boolean hasMoreObjects() {\r\n return hasMore;\r\n }",
"boolean hasGte();",
"public boolean hasPreviousSet() { \n return (firstIndexOfCurrentSet > firstIndex);\n }",
"public boolean hasMore()\n\t{\n\t\treturn numLeft.compareTo(BigInteger.ZERO) == 1;\n\t}",
"public boolean hasNeighbours() {\n\t\tif (this.eltZero != null || this.eltOne != null || this.eltTwo != null)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}",
"boolean hasPrevious();",
"boolean hasPrevious();",
"boolean hasPrevious();",
"boolean hasPrevious();",
"@Override\r\n\t\tpublic boolean hasPrevious() {\n\t\t\treturn false;\r\n\t\t}",
"public boolean hasMore () {\n\t return numLeft.compareTo (BigInteger.ZERO) == 1;\n\t }",
"public boolean hasLeft() {\r\n\t\treturn left != null;\r\n\t}",
"public boolean hasPrevious() {\r\n \treturn index > 0; \r\n }",
"public boolean hasNext() { return (current != null && current.item != null); }",
"public boolean isOverflow() {\n\t\treturn (children.size() >= degree + 1) || (data.size() >= degree);\n\t}",
"public boolean hasPrevious() \n\t{\n\t\tboolean res = false;\n\t\tif(actual != null) {\n\n\t\t\tif(esUltimo && actual != null)\n\t\t\t\tres=true;\n\t\t\telse {\n\t\t\t\tres = actual.darAnterior() != null;\n\t\t\t}\n\t\t}\n\t\treturn res;\n\t}",
"public boolean hasPrevious()\n {\n // TODO: implement this method\n return false;\n }",
"public boolean hasMore() {\n return numLeft.compareTo(BigInteger.ZERO) == 1;\n }",
"@Override\r\n public boolean hasPrevious() {\n return returned.prev != header;\r\n }",
"boolean hasChildNodes();",
"boolean hasParentalStatus();",
"@Override\n public Set<Edge<PhysicalObject>> getRelationBetweenObjects() {\n assert false : \"shouldn't call this method\";\n return null;\n }",
"public boolean hasNext() {\n\t\t\tif (pointerIndex == (gameObjects.size() - 1) )\n\t\t\t\treturn false;\n\t\t\telse if (gameObjects.size ( ) <= 0)\n\t\t\t\treturn false;\n\t\t\treturn true;\n\t\t}",
"@Override\n public boolean hasNext() {\n\n return curr.nextNode != null && curr.nextNode != tail;\n }",
"boolean isEmpty() {\n return (bottom < top.getReference());\n }",
"public boolean containsChild() {\n return !(getChildList().isEmpty());\n }",
"private boolean canDoLeftTransfer(TFNode node) throws TFNodeException {\r\n TFNode parent = node.getParent();\r\n if (parent == null) {\r\n throw new TFNodeException(\"Node has no parent and therefore no sibling\");\r\n }\r\n\r\n // Must have a left sibling\r\n if (WCIT(node) > 0) {\r\n // That sibling must have two or more items in it\r\n TFNode leftSibling = parent.getChild(WCIT(node) - 1);\r\n if (leftSibling.getNumItems() > 1) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }",
"@Override\r\n\t\tpublic boolean hasNext() {\r\n\t\t\t\r\n\t\t\treturn currentNode.nextNode != null;\r\n\t\t}",
"public boolean hasPrevious() {\n return position > 0;\n }",
"private boolean check_only_call_relatives(Element element){\n\t\tArrayList<Element> relatives = new ArrayList<Element>();\n\t\tfor(Element elem_called : element.getRefFromThis()){\n\t\t\t//if they are brothers\n\t\t\tif(element.getParentName() != null && elem_called.getParentName() != null && element.getParentName().equals(elem_called.getParentName())){\n\t\t\t\trelatives.add(elem_called);\n\t\t\t}\n\t\t\t//if they are son - father\n\t\t\tif(element.getParentName() != null && element.getParentName().equals(elem_called.getIdentifier())){\n\t\t\t\trelatives.add(elem_called);\n\t\t\t}\t\t\t\n\t\t}\n\t\tif (relatives.size() == element.getRefFromThis().size()){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"@CheckReturnValue\n public boolean hasPrevious() {\n return offset > 0;\n }",
"public boolean isLeashed ( ) {\n\t\treturn extract ( handle -> handle.isLeashed ( ) );\n\t}",
"@Override\r\n\t\tpublic boolean hasNext() {\n\t\t\treturn current!=null;\r\n\t\t}",
"@Override\n public boolean hasNext() {\n setCurrent();\n return current != null;\n }",
"public boolean hasPrevious() {\n\t\t\treturn previousPosition < vector.size();\n\t\t}",
"public boolean hasNext() {\n for (; pos < elem.length; pos++) {\n if (merges(elem[pos])) {\n elem[pos].setUsed();\n continue;\n }\n\n return true;\n }\n\n return false;\n }",
"public boolean hasPrevious() {\n\t\tif(prevIndex > -1) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"private static boolean inOrderTraversal(Node current) {\n //Break if the node is null\n if(current == null) {\n return false;\n }\n //Recursively check the left child, then the current node, then finally the right child\n else {\n inOrderTraversal(current.getLeftChild());\n inorder.add(current);\n inOrderTraversal(current.getRightChild());\n }\n return true;\n }",
"public boolean hasChildren()\n\t{\n\t\treturn !getChildren().isEmpty();\n\t}",
"private boolean checkNext(){\n boolean ret = this.hasNext;\n if ((this.allStatesIterator.hasNext()) || (this.allSubsetsIterator.hasNext()) || (this.allTransitionsIterator.hasNext())){\n hasNext = true;\n return hasNext;\n }\n hasNext = false;\n return ret;\n }",
"public boolean checkLastNodeStatus()\r\n {\r\n return visitedNodes.isEmpty();\r\n }",
"private boolean hasLeftChild(int index) {\n return leftChild(index) <= size;\n }",
"public boolean containsIncomingRelations();",
"boolean hasParent();",
"boolean hasParent();",
"public boolean hasNext() {\r\n\t\treturn curr != null;\r\n\t}",
"@Override\r\n\tpublic boolean hasLeftChild() {\n\t\treturn left!=null;\r\n\t}",
"private boolean valid(Cell[] siblings, Point p)\n\t{\n\t\tint c = 0;\n\t\tfor (int i = 0; i < siblings.length; i++) {\n\t\t\tif (siblings[i] == Cell.EMPTY)\n\t\t\t\tc++;\n\t\t\tif (siblings[i] == null && crossPoint != null)\n\t\t\t{\n\t\t\t\tcrossPoint = p;\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn c == 3;\n\t}",
"@Override\n public boolean hasNext() {\n return j < size; // size is field of outer instance\n }",
"@Override\n public boolean hasNext() {\n return null != current;\n }",
"public boolean hasFront();",
"public boolean hasNext() {\n return neste.neste != null;\n }",
"public boolean hasNext() {\n\t\tMemoryBlock dummyTail = new MemoryBlock(-1, -1); // Dummy for tail\n\t\tboolean hasNext = (current.next.block.equals(dummyTail));\n\t\treturn (!hasNext);\n\t}",
"@Override\r\n\t\t\tpublic boolean hasNext() {\n\t\t\t\tnodo<T> sig = sentinel;\r\n\t\t\t\tsentinel = sentinel.getNext();\r\n\t\t\t\treturn (sentinel != null) ? true : false;\r\n\t\t\t}",
"public boolean continueTraversal() \r\n\t{\r\n\treturn true;\r\n\t}",
"@Override\n public boolean hasNext() {\n return this.nextObject != null;\n }",
"@Override\n public boolean checkForBinarySearchTree() {\n if (this.rootNode == null)\n return true;\n \n ArrayList<K> inorderTraverse = inOrdorTraverseBST();\n for (int i=1; i<inorderTraverse.size(); i++) {\n if(inorderTraverse.get(i-1).compareTo(inorderTraverse.get(i)) == 1)\n return false;\n }\n \n return true;\n }",
"public boolean areAdjacent() {\n return areAdjacent;\n }",
"private boolean isLeaf()\r\n\t\t{\r\n\t\t\treturn getLeftChild() == null && getRightChild() == null;\r\n\t\t}",
"@Override\n public boolean currentHasChildren() {\n return ! ((FxContainerNode) currentNode()).isEmpty();\n }",
"@Override\n public boolean currentHasChildren() {\n return ! ((FxContainerNode) currentNode()).isEmpty();\n }",
"@Override\r\n public boolean hasNext() {\r\n return node.next() != tail;\r\n }",
"public boolean hasNextHop()\n {\n return getHopCount() < route.size()-1;\n }",
"@Override\n\tpublic boolean hasNext() {\n\t return current != null;\n\t}",
"@Override\n\t\tpublic boolean hasMoreElements() {\n\t\t\treturn cursor != size();\n\t\t}",
"private boolean hasNext(){\n return current !=null;\n\n }",
"@Override\r\n\t\tpublic boolean hasNext() {\r\n\t\t\tif (first.next == null) {\r\n\t\t\t\treturn false;\r\n\t\t\t} else\r\n\t\t\t\treturn true;\r\n\t\t}",
"@Override\r\n \tpublic boolean hasChildren() {\n \t\treturn getChildren().length > 0;\r\n \t}",
"public boolean hasNext()\n {\n\treturn current != null; \n }",
"public final boolean hasNext() {\n return branch < max_branching;\n }",
"public boolean hasNext() {\n if (nextRecord != null) {\n return true;\n }\n\n try {\n while (true) {\n if (leftRecord == null) {\n if (LBIter.hasNext()) {\n // If left page still has records to give, then just get the\n // next one and restart right block iter.\n\n leftRecord = LBIter.next();\n RBIter = getBlockIterator(getRightTableName(),\n new Page[]{currentRightPage});\n } else {\n // Current left page is exhausted. Restart it with the next\n // right page (if there is one).\n\n if (!RPIter.hasNext()) {\n // Right page relation is exhausted. Need to restart it with\n // LPIter on the next page (if there is one).\n\n currentLeftPages = new Page[numBuffers];\n for (int i = 0; i < numBuffers; i++) {\n currentLeftPages[i] = LPIter.hasNext() ? LPIter.next() : null;\n }\n\n // Remove null values from currentLeftPages\n currentLeftPages = Arrays.stream(currentLeftPages)\n .filter(x -> x != null)\n .toArray(Page[]::new);\n\n LBIter = getBlockIterator(getLeftTableName(), currentLeftPages);\n if (!LBIter.hasNext()) {\n return false;\n }\n\n leftRecord = LBIter.next();\n RPIter = getPageIterator(getRightTableName()); // Restart RP\n RPIter.next(); // Consume header page\n } else {\n LBIter = getBlockIterator(getLeftTableName(), currentLeftPages);\n assert LBIter.hasNext() : \"LBIter degenerate\";\n leftRecord = LBIter.next();\n }\n\n currentRightPage = RPIter.next();\n RBIter = getBlockIterator(getRightTableName(),\n new Page[]{currentRightPage});\n }\n }\n while (RBIter.hasNext()) {\n Record rightRecord = RBIter.next();\n DataBox leftJoinValue = leftRecord.getValues().get(getLeftColumnIndex());\n DataBox rightJoinValue = rightRecord.getValues().get(getRightColumnIndex());\n if (leftJoinValue.equals(rightJoinValue)) {\n List<DataBox> leftValues = new ArrayList<>(leftRecord.getValues());\n List<DataBox> rightValues = new ArrayList<>(rightRecord.getValues());\n leftValues.addAll(rightValues);\n nextRecord = new Record(leftValues);\n return true;\n }\n }\n leftRecord = null;\n }\n } catch (DatabaseException e) {\n System.err.println(\"Caught database error \" + e.getMessage());\n return false;\n }\n //throw new UnsupportedOperationException(\"hw3: TODO\");\n }",
"public boolean hasNext() {\n\t\t\treturn current != null;\n\t\t}",
"boolean hasNextNode()\r\n\t{\n\t\tif (getLink() == null) return false;\r\n\t\telse return true;\r\n\t}",
"public boolean hasNext() {\n\t\t\treturn current != null;\r\n\t\t}",
"@Override\n\t\tpublic boolean hasNext() {\n\t\t\treturn _current < (_items.length -1);\n\t\t}"
] |
[
"0.6711912",
"0.64158875",
"0.61854804",
"0.6138459",
"0.60715425",
"0.6031415",
"0.6018629",
"0.59951997",
"0.5994811",
"0.5985154",
"0.5965915",
"0.59652454",
"0.59467876",
"0.59321916",
"0.5917681",
"0.59037197",
"0.58771944",
"0.5850256",
"0.58500504",
"0.5795182",
"0.57885617",
"0.57864755",
"0.5775293",
"0.5766114",
"0.5765929",
"0.57573044",
"0.5749809",
"0.57478833",
"0.57437384",
"0.5736837",
"0.57338935",
"0.57338935",
"0.57338935",
"0.57338935",
"0.56922966",
"0.56761146",
"0.5673678",
"0.56666404",
"0.5666088",
"0.5658988",
"0.56428015",
"0.56371117",
"0.5634908",
"0.5632689",
"0.56132823",
"0.5605988",
"0.559396",
"0.55923676",
"0.5584774",
"0.5575246",
"0.55723685",
"0.5571624",
"0.5562425",
"0.55546194",
"0.55372316",
"0.5531435",
"0.5531092",
"0.5516608",
"0.54981935",
"0.5495847",
"0.54953176",
"0.5493554",
"0.54910237",
"0.54881096",
"0.5477467",
"0.5475817",
"0.54699534",
"0.54687285",
"0.5463696",
"0.5463696",
"0.5456934",
"0.5448657",
"0.54469573",
"0.5445126",
"0.5430607",
"0.5423793",
"0.54231954",
"0.54178053",
"0.5413238",
"0.5408007",
"0.5406952",
"0.5404464",
"0.54039353",
"0.5401711",
"0.54011774",
"0.54011774",
"0.5400964",
"0.54003495",
"0.53984326",
"0.53972405",
"0.5397128",
"0.539276",
"0.5384833",
"0.53785324",
"0.5373047",
"0.5368434",
"0.53635514",
"0.5359774",
"0.5358058",
"0.53533834"
] |
0.69639707
|
0
|
Get the next sibling BSCObject from this iterator.
|
public BSCObject next()
{
if (ready_for_fetch)
{
// the next sibling is waiting to be returned, so just return it
ready_for_fetch = false;
return sibling;
}
else if (hasNext())
{
// make sure there is a next sibling; if so, return it
ready_for_fetch = false;
return sibling;
}
else
throw new NoSuchElementException();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"HNode getNextSibling();",
"@Override\r\n\t\tpublic Node getNextSibling()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}",
"@Override\n\tpublic Node getNextSibling() {\n\t\treturn null;\n\t}",
"public Object next()\n {\n if(!hasNext())\n {\n throw new NoSuchElementException();\n //return null;\n }\n previous= position; //Remember for remove;\n isAfterNext = true; \n if(position == null) \n {\n position = first;// true == I have not called next \n }\n else\n {\n position = position.next;\n }\n return position.data;\n }",
"private Object getNextElement()\n {\n return __m_NextElement;\n }",
"public Object getNext() {\n\t\tif (current != null) {\n\t\t\tcurrent = current.next; // Get the reference to the next item\n\t\t}\n\t\treturn current == null ? null : current.item;\n\t}",
"@Override\n\t\tpublic Item next() {\n\t\t\tItem item=current.item;\n\t\t\tcurrent=current.next;\n\t\t\treturn item;\n\t\t}",
"public DependencyElement next() {\n\t\treturn next;\n\t}",
"public HL7DataTree next() {\n final int size = Util.size(this.list), i = this.next == null ? size : this.list.indexOf(this.next) + 1;\n final HL7DataTree curr = this.next;\n \n this.next = i == size ? more() : this.list.get(i);\n \n return curr;\n }",
"Object getNextElement() throws NoSuchElementException;",
"public emxPDFDocument_mxJPO getNext()\r\n {\r\n /*\r\n * Author : DJ\r\n * Date : 02/04/2003\r\n * Notes :\r\n * History :\r\n */\r\n return (emxPDFDocument_mxJPO)super.removeFirst();\r\n }",
"@Override\n public Object next() {\n Object retval = this.nextObject;\n advance();\n return retval;\n }",
"public Item next(){\n if(current==null) {\n throw new NoSuchElementException();\n }\n\n Item item = (Item) current.item;\n current=current.next;\n return item;\n }",
"public Processo next() {\n Node temp = first;\n if (first == null) {\n last = null;\n }\n return temp.processo;\n }",
"public BSCObjSiblingsIter(BSCObject source)\n {\n curr_ci = null;\n p_iter = source.getParents();\n ready_for_fetch = false;\n \n // initialize the HashSet with the source object\n prevobjs = new HashSet<BSCObject>();\n prevobjs.add(source);\n\n // get the children iterator from the first parent\n if (p_iter.hasNext())\n curr_ci = p_iter.next().getChildren();\n }",
"@Override\n public Node next() {\n if (next == null) {\n throw new NoSuchElementException();\n }\n Node current = next;\n next = next.getNextSibling();\n return current;\n }",
"ComponentAgent getNextSibling();",
"public T nextElement() {\r\n\t\treturn items[currentObject++];\r\n \t}",
"public Nodo getnext ()\n\t\t{\n\t\t\treturn next;\n\t\t\t\n\t\t}",
"public T getNextElement();",
"public ListElement<T> getNext()\n\t{\n\t\treturn next;\n\t}",
"public T next()\n {\n T data = current.item;\n current = current.next;\n return data;\n }",
"public E next() {\r\n\r\n\t\tE result = null;\r\n\t\tif (hasNext()) {\r\n\t\t\tresult = links.get(counter);\r\n\t\t\tcounter++;\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"@Override\r\n\t\tpublic Package next() {\r\n\t\t\tif (first.next == null)\r\n\t\t\t\treturn null;\r\n\t\t\telse\r\n\t\t\t\treturn first.next;\r\n\r\n\t\t}",
"public Node getSiblingNode() {\n return siblingNode;\n }",
"public SimpleNode getNext() {\n return next;\n }",
"public Node<S> getNext() { return next; }",
"public Prism getNext() {\r\n\t\treturn next;\r\n\t}",
"@Override\n public Integer next() {\n if (next != null) {\n Integer next = this.next;\n this.next = null;\n return next;\n\n }\n\n return iterator.next();\n }",
"@Override\n\tpublic Item next() {\n\t\tindex = findNextElement();\n\n\t\tif (index == -1)\n\t\t\treturn null;\n\t\treturn items.get(index);\n\t}",
"public ListElement getNext()\n\t {\n\t return this.next;\n\t }",
"public T next()\r\n { \r\n if (next == null)\r\n throw new NoSuchElementException(\"Attempt to\" +\r\n \" call next when there's no next element.\");\r\n\r\n prev = next;\r\n next = next.next;\r\n return prev.data;\r\n }",
"HNode getPreviousSibling();",
"@Override\n public Object next()\n {\n if (current != null && current.next != null)\n {\n current = current.next; // Move to the next element in bucket\n }\n else // Move to next bucket\n {\n do\n {\n bucketIndex++;\n if (bucketIndex == buckets.length)\n {\n throw new NoSuchElementException();\n }\n current = buckets[bucketIndex];\n }\n while (current == null);\n }\n return current.data;\n }",
"public ObjectListNode getNext() {\n return next;\n }",
"public T next() {\n T temp = this.curr.next.getData();\n this.curr = this.curr.next;\n return temp;\n }",
"public E getNext() {\n\t\tif (!super.isEmpty()) {\n\t\t\tif (index >= this.size() - 1)\n\t\t\t\tindex = -1;\n\t\t\treturn this.get(++index);\n\t\t}\n\t\treturn null;\n\t}",
"public DNode getNext() { return next; }",
"public T next() {\n T temp = this.curr.getData();\n this.curr = this.curr.getNext();\n return temp;\n }",
"protected Tuple fetchNext() throws NoSuchElementException, TransactionAbortedException, DbException {\n\t\t// some code goes here\n\t\tTuple ret;\n\t\twhile (childOperator.hasNext()) {\n\t\t\tret = childOperator.next();\n\t\t\tif (pred.filter(ret))\n\t\t\t\treturn ret;\n\t\t}\n\t\treturn null;\n\t}",
"public E next()\n {\n if (hasNext())\n {\n E item = currentNode.data();\n currentNode = currentNode.next();\n count--;\n return item;\n }\n else\n {\n throw new NoSuchElementException(\"There isnt another element\");\n\n }\n }",
"public Node getNext()\n {\n return this.next;\n }",
"public K next()\n {\n\tif (hasNext()) {\n\t K element = current.data();\n\t current = current.next(0);\n\t return element; \n\t} else {\n\t return null; \n\t}\n }",
"public SlideNode getNext() {\n\t\treturn next;\n\t}",
"public Item next() {\n\t\t\tif (!hasNext())\n\t\t\t\treturn null;\n lastAccessed = current;\n Item item = current.item;\n current = current.next; \n index++;\n return item;\n\t\t}",
"public Wagon<T> getNext() {\n\t\treturn next;\n\t}",
"public ListNode<Item> getNext() {\n return this.next;\n }",
"public Player getNext(){\n\t\treturn this.players.get(this.nextElem);\n\t}",
"public Object getNext() { \t\n\t\t\tcurrIndex++;\t \n\t\t\treturn collection.elementAt(currIndex);\n\t\t}",
"public MyNode<? super E> getNext()\n\t{\n\t\treturn this.next;\n\t}",
"public T next()\n\t\t{\n\t\t\tif(hasNext())\n\t\t\t{\n\t\t\t\tT currentData = current.getData(); //the data that will be returned\n\t\t\t\t\n\t\t\t\t// must continue to keep track of the Node that is in front of\n\t\t\t\t// the current Node whose data is must being returned , in case\n\t\t\t\t// its nextNode must be reset to skip the Node whose data is\n\t\t\t\t// just being returned\n\t\t\t\tbeforePrevious = previous;\n\t\t\t\t\n\t\t\t\t// must continue keep track of the Node that is referencing the\n\t\t\t\t// data that was just returned in case the user wishes to remove()\n\t\t\t\t// the data that was just returned\n\t\t\t\t\n\t\t\t\tprevious = current; // get ready to point to the Node with the next data value\n\t\t\t\t\n\t\t\t\tcurrent = current.getNext(); // move to next Node in the chain, get ready to point to the next data item in the list\n\t\t\t\t\n\t\t\t\tthis.removeCalled = false;\n\t\t\t\t// it's now pointing to next value in the list which is not the one that may have been removed\n\t\t\t\t\n\t\t\t\treturn currentData;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tthrow new NoSuchElementException();\n\t\t\t}\n\t\t}",
"public Object next()\n {\n return _iterator.next();\n }",
"public TreeNode getNextSibling ()\r\n {\r\n if (parent != null) {\r\n int index = parent.children.indexOf(this);\r\n\r\n if (index < (parent.children.size() - 1)) {\r\n return parent.children.get(index + 1);\r\n }\r\n }\r\n\r\n return null;\r\n }",
"public Vertex getNext() {\n\t\treturn next;\n\t}",
"public MoveAddress nextSibling() {\n MoveAddress newSibling = new MoveAddress(this);\n if(newSibling.mElements.size() < 2) throw new IllegalArgumentException(\"No variations to add a sibling to! \" + this);\n\n Element variationNode = newSibling.mElements.get(newSibling.mElements.size() - 2);\n variationNode.rootIndex++;\n\n Element leafNode = newSibling.mElements.get(newSibling.mElements.size() - 1);\n leafNode.rootIndex = 1;\n leafNode.moveIndex = 0;\n\n return newSibling;\n }",
"@Override\n public Item next() {\n if(!hasNext()) throw new NoSuchElementException(\"Failed to perform next because hasNext returned false!\");\n Item item = current.data;\n current = current.next;\n return item;\n }",
"public ShapeNode getNext()\n {\n return next;\n }",
"public Object next()throws NullPointerException\r\n {\r\n if(hasNext())\r\n return e.get(index+1);\r\n else\r\n throw new NullPointerException();\r\n }",
"@Nonnull\n public Optional<ENTITY> next()\n {\n currentItem = Optional.of(items.get(++index));\n update();\n return currentItem;\n }",
"public Node getNext() { return next; }",
"public Node getNext() {\t\t//O(1)\n\t\treturn next;\n\t}",
"public Node returnNextChild(){\n try{\n return children.get(counter);\n }catch(Exception ex){\n return null;\n }\n }",
"public Node getNext(){\n\t\t\treturn next;\n\t\t}",
"public node getNext() {\n\t\t\treturn next;\n\t\t}",
"private E next() {\n\t\tif (hasNext()) {\n\t\t\tE temp = iterator.data;\n\t\t\titerator = iterator.next;\n\t\t\treturn temp;\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}",
"public void _next() {\n Object o;\n try {\n o = iter.next();\n } catch (NoSuchElementException e) {\n has_next = 0;\n return;\n }\n // resolve object\n if (o == null) {\n has_next = 1;\n next = null;\n } else if (o instanceof IdentityIF) {\n try {\n o = txn.getObject((IdentityIF)o, true);\n if (o == null) {\n _next();\n } else {\n has_next = 1;\n next = (F) o;\n }\n } catch (Throwable t) {\n has_next = -1;\n next = null;\n }\n } else {\n has_next = 1;\n next = (F) o;\n }\n }",
"public Item next() throws XPathException {\n while (true) {\n NodeInfo next = (NodeInfo)iterator.next();\n if (next == null) {\n current = null;\n position = -1;\n return null;\n }\n if (current != null && next.isSameNodeInfo(current)) {\n continue;\n } else {\n position++;\n current = next;\n return current;\n }\n }\n }",
"public Node getNext()\r\n\t{\r\n\t\treturn next;\r\n\t}",
"public Node getNext()\r\n\t{\r\n\t\treturn next;\r\n\t}",
"public C getNext();",
"public Node getNext() {\n return next;\n }",
"public Item next() throws XPathException {\n curr = base.next();\n if (curr == null) {\n pos = -1;\n } else {\n pos++;\n }\n return curr;\n }",
"public Node getNext(){\n\t\treturn next;\n\t}",
"@Override\n public T next() {\n T n = null;\n if (hasNext()) {\n // Give it to them.\n n = next;\n next = null;\n // Step forward.\n it = it.next;\n stop -= 1;\n } else {\n // Not there!!\n throw new NoSuchElementException();\n }\n return n;\n }",
"public CommitNode getNext(){\r\n\t\treturn next;\r\n\t}",
"public Node getNext() {\n\t\treturn this.next;\n\t}",
"public Node getNext() {\n return next;\n }",
"@Override\r\n public BankAccount next() {\r\n \t//check if the list of the bank accounts is empty \r\n if(!hasNext())\r\n \tthrow new NoSuchElementException();\r\n //if the list is not empty remove the first link and return it \r\n else {\r\n \tcurrent = bankAccounts.get(0);\r\n \tbankAccounts.remove(0);\r\n \treturn current;\r\n }\r\n }",
"@Override\n public Integer next() {\n Integer result = null;\n if (checkCurrentIterator(this.currentIterator) && this.currentIterator.hasNext()) {\n while (this.currentIterator.hasNext()) {\n return this.currentIterator.next();\n }\n } else if (it.hasNext()) {\n this.currentIterator = getIterator(it);\n return this.next();\n }\n return result;\n }",
"ComponentAgent getPreviousSibling();",
"public Node getNext() {\r\n\t\treturn next;\r\n\t}",
"public Object nextElement() {\n/* 75 */ return this.iterator.next();\n/* */ }",
"Node<T> getNext() {\n\t\t\treturn nextNode;\n\t\t}",
"@Override\n\t\tpublic Node next() {\n\t\t\tif (this.next == null) {\n\t\t\t\treturn null;\n\t\t\t} else {\n\t\t\t\tNode element = this.next;\n\t\t\t\tthis.next = (Node) this.next.getNextNode();\n\t\t\t\treturn (Node) element;\n\t\t\t}\n\t\t}",
"public Node getNext() {\n\t\treturn next;\n\t}",
"public Node getNext()\n\t{\n\t\treturn next;\n\t}",
"public Node getNext()\n\t{\n\t\treturn next;\n\t}",
"public Item next() {\r\n if (!hasNext()) throw new NoSuchElementException();\r\n lastAccessed = current;\r\n Item item = current.item;\r\n current = current.next;\r\n index++;\r\n return item;\r\n }",
"@Override\r\n public Object next() {\r\n V value = (V) currentCell.value;\r\n currentCell = currentCell.next;\r\n return value;\r\n }",
"public Linkable next();",
"public Node<E> getNext() { return next; }",
"public Node<T> getNext() {\n return this.next;\n }",
"public Cell getNext()\n { return next; }",
"public Element<T> getNextElement() \n\t{\n\t\treturn nextElement;\n\t}",
"@Override\n public Integer next() {\n if (hasTop) {\n hasTop = false;\n return top;\n }\n return it.next();\n }",
"public Node<E> getNext() {\r\n\t\treturn next;\r\n\t}",
"public void setNext(Linkable nextObject);",
"public Node<T> getNext() {\n\t\treturn next;\n\t}",
"public GameNode getNext() {\n return this.next;\n }",
"public T getNext()\n {\n T elem = handler.getTop();\n handler.pop();\n return elem;\n }"
] |
[
"0.6948655",
"0.67599636",
"0.6677015",
"0.6649028",
"0.65547264",
"0.6536252",
"0.6522368",
"0.6451364",
"0.6430473",
"0.64301294",
"0.64205056",
"0.6383018",
"0.63815165",
"0.6380677",
"0.6380144",
"0.6372024",
"0.63629645",
"0.63454175",
"0.6322962",
"0.6303349",
"0.6298827",
"0.6291889",
"0.62791663",
"0.6266377",
"0.62608385",
"0.62577987",
"0.62331796",
"0.62184805",
"0.6216222",
"0.6207951",
"0.62060666",
"0.62056303",
"0.62050503",
"0.6204092",
"0.61894345",
"0.6180733",
"0.6179805",
"0.61788857",
"0.6172703",
"0.6165659",
"0.616065",
"0.61536145",
"0.61513275",
"0.6144594",
"0.6133384",
"0.61307573",
"0.6130746",
"0.612918",
"0.6125742",
"0.61234957",
"0.61078894",
"0.61054754",
"0.61039233",
"0.60875213",
"0.60835314",
"0.60820174",
"0.60819167",
"0.6067429",
"0.60599273",
"0.60531396",
"0.60519475",
"0.60519266",
"0.6049996",
"0.60461545",
"0.6041222",
"0.6032759",
"0.6031953",
"0.60318613",
"0.60318613",
"0.60146606",
"0.6013308",
"0.60130924",
"0.6008487",
"0.60077524",
"0.600763",
"0.60057485",
"0.6002265",
"0.60013676",
"0.5999156",
"0.59919417",
"0.59915406",
"0.5990893",
"0.5988754",
"0.59809285",
"0.59774595",
"0.5976815",
"0.5976815",
"0.5969414",
"0.5965139",
"0.59579307",
"0.59569275",
"0.59488606",
"0.5946681",
"0.59318686",
"0.59271926",
"0.59271497",
"0.59242105",
"0.59220505",
"0.5919744",
"0.5912368"
] |
0.804942
|
0
|
The traversal depth relative to the starting object. Always 0 for BSCObjSiblingsIter.
|
@Override
public int getDepth() {
return 0;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public int getDepth()\n {\n return traversalStack.size();\n }",
"public int depth() {\r\n\t\treturn this.depth;\r\n\t}",
"public int depth() {\n return parts.length - (isIndex() ? 0 : 1);\n }",
"public int depth ();",
"public int getDepth();",
"public int getDepth() {\n return depth_;\n }",
"public int getDepth() {\n return depth_;\n }",
"public int getDepth(){\n\t\treturn depth;\n\t}",
"public int getDepth(){\n\t\treturn _depth;\n\t}",
"public int getDepth() {\r\n\t\tint depth = 0;\r\n\t\tSearchNode<S, A> ancestor = this;\r\n\t\twhile(ancestor.parent != null) {\r\n\t\t\tdepth++;\r\n\t\t\tancestor = ancestor.parent;\r\n\t\t}\r\n\t\treturn depth;\r\n\t}",
"public static int getDepth() {\n return depth;\n }",
"public int getDepth() {\r\n return depth;\r\n }",
"public int getDepth() {\n return depth;\n }",
"int getDepth();",
"public int getDepth()\n {\n return depth; \n }",
"public int getDepth()\n {\n return m_Depth;\n }",
"public int getDepth(){\r\n return this.depth;\r\n }",
"int depth();",
"int depth();",
"public int depth() {\n\t\treturn depthHelp(root);\r\n\t}",
"private int setDepth() {\n int getDepth = depth;\n if (depth != -1) {\n getDepth = depth + 1;\n }\n return getDepth;\n }",
"int getDepthIndex() {\n return depthIndex;\n }",
"int getRecursionDepth();",
"public int depth() { return Math.max(left.depth(), right.depth()) + 1; }",
"public double getDepth();",
"public int depth(){\n\t\tint depth = 0;\n\t\tif(this.isEmpty()){\n\t\t\treturn depth;\n\t\t} else {\n\t\t\tdepth= 1;\n\t\t}\n\t\tQueue queue = new Queue();\n\t\tqueue.enqueue(this);\n\t\t\n\t\twhile(!queue.isEmpty()){\n\t\t\tBinaryTree tree = (BinaryTree) queue.dequeue();\n\t\t\tif(tree.left.getElement()!=null){\n\t\t\t\tqueue.enqueue(tree.left);\n\t\t\t\tdepth++;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn depth;\n\t}",
"int getNewDepth() {\n return mNewDepth;\n }",
"int getOldDepth() {\n return mOldDepth;\n }",
"@Override\r\n public int getDepth() {\r\n final int len = getPath().length();\r\n if (len == 0 || len == 1 && getPath().charAt(0) == SEPARATOR_CHAR) {\r\n return 0;\r\n }\r\n int depth = 1;\r\n for (int pos = 0; pos > -1 && pos < len; depth++) {\r\n pos = getPath().indexOf(SEPARATOR_CHAR, pos + 1);\r\n }\r\n return depth;\r\n }",
"public String getnDepth() {\n return nDepth;\n }",
"public int getDepth() {\n return getDepthRecursive(root);\n\n }",
"public int getRecursionDepth() {\n return recursionDepth_;\n }",
"public float getDepth() {\n return depth_;\n }",
"public float getDepth() {\n return depth_;\n }",
"public float getDepth() {\n return depth_;\n }",
"public float getDepth() {\n return depth_;\n }",
"public int getRecursionDepth() {\n return recursionDepth_;\n }",
"@Override\n public int getDepth() {\n return 680;\n }",
"int depth(BTNode node) {\n int d = 0;\n while (node != root) {\n node = node.parent;\n d++;\n }\n return d;\n }",
"@Override\n public int getDepth() {\n return getSuperContainer().getDepth();\n }",
"private int depth()\r\n\t{\r\n\t\t// If tree is empty then there are 0 levels\r\n\t\tif(isEmpty())\r\n\t\t{\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\t// Tree is not empty so use recursive depth method starting at Root level 1 to figure out depth\r\n\t\treturn depth(getRoot(), 1);\r\n\t}",
"public int getMinDepth() {\n return minDepth;\n }",
"public List<Long> depthTraverse(){\n return depthTraverseGen(null);\n }",
"public JSONObject getDepth() throws Exception;",
"public float getDepth() {\n return depth;\n }",
"@Override\n\tpublic Integer getDepth()\n\t{\n\t\treturn null;\n\t}",
"public int depth(){\n if(root!=null){ // มี node ใน tree\n return height(root);\n }\n else {return -1;}\n }",
"float getDepth();",
"float getDepth();",
"protected void incrementDepthLimit() {\n currDepthLimit++;\n }",
"public int getNodeDepth() {\n int depth = 0;\n TreeNode tn = this;\n \n while(tn.getFather() != null) {\n tn = tn.getFather();\n depth++;\n }\n \n return depth;\n }",
"int getTemporaryMaxDepth();",
"private static int nodeDepthsIterativeQueue(Node root) {\n\t\tQueue<Level>q = new LinkedList<>();\n\t\tint result = 0;\n\t\tq.add(new Level(root, 0));\n\t\twhile(!q.isEmpty()) {\n\t\t\tLevel curr = q.poll();\n\t\t\tif(curr.root == null)\n\t\t\t\tcontinue;\n\t\t\tresult += curr.depth;\n\t\t\tSystem.out.println(curr.toString());\n\t\t\tq.add(new Level(curr.root.left, curr.depth + 1));\n\t\t\tq.add(new Level(curr.root.right, curr.depth + 1));\n\t\t}\n\t\treturn result;\n\t}",
"void incrementOldDepth() {\n mOldDepth++;\n }",
"public float getDepth() {\r\n\t\treturn Float.parseFloat(getProperty(\"depth\").toString());\t\r\n\t}",
"public void increaseDepth() {\n currentDepth++;\n }",
"void incrementNewDepth() {\n mNewDepth++;\n }",
"int maxDepth();",
"public int calculateNodeDepth(Node startNode) {\n\t\tint depthCounter = 0;\n\t\t// start from zero\n\t\tif (!(startNode == this.mRoot)) {\n\t\t\twhile (startNode.getParent() != this.mRoot) {\n\t\t\t\tstartNode = startNode.getParent();\n\t\t\t\tdepthCounter++;\n\t\t\t\t// count upwards while the node's parent is not root\n\t\t\t}\n\t\t} else {\n\t\t\treturn 0;\n\t\t}\n\t\treturn depthCounter;\n\t\t// return the count\n\t}",
"public int depth ( BinTree tree){\n\t\tint x = 1; \n\t\twhile( tree.left != null){\n\t\t\ttree= tree.left;\n\t\t\tx++;\n\t\t}\n\t\treturn x;\n\t}",
"int depthNoR(Node root) {\n\t\tNode endOfLevelMarker = new Node(-100);\n\n\t\tQueue<Node> s = new LinkedList<Node>();\n\t\t\n\t\ts.add(root);\n\t\ts.add(endOfLevelMarker);\n\n\t\tint depth = 0;\n\n\n\t\twhile (!s.isEmpty()) {\n\t\t\tNode k = s.poll();\n\n\t\t\tif (k != null) {\n\t\t\t\tif (k.data == -100) {\n\t\t\t\t\tdepth++;\n\t\t\t\t\tif (!s.isEmpty()) { // It was the last node. Without this check we will keep putting and popping marker forever.\n\t\t\t\t\t\ts.add(endOfLevelMarker);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif (k.left != null) {\n\t\t\t\t\t\ts.add(k.left);\n\t\t\t\t\t}\n\t\t\t\t\tif (k.right != null) {\n\t\t\t\t\t\ts.add(k.right);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t\treturn depth;\n\t}",
"public int getAncestorCount() { return _parent!=null? getParent().getAncestorCount() + 1 : 0; }",
"private static int nodeDepthsIterativeStack(Node root) {\n\t\tStack<Level>st = new Stack<>();\n\t\tst.add(new Level(root, 0));\n\t\tint result = 0;\n\t\twhile(!st.isEmpty()) {\n\t\t\tLevel curr = st.pop();\n\t\t\tif(curr.root == null)\n\t\t\t\tcontinue;\n\t\t\tSystem.out.println(curr.toString());\n\t\t\tresult += curr.depth;\n\t\t\t// Push right before left to process the nodes in inorder fashion.\n\t\t\tst.push(new Level(curr.root.right, curr.depth+1));\n\t\t\tst.push(new Level(curr.root.left, curr.depth+1));\n\t\t}\n\t\treturn result;\n\t}",
"default int nestingDepth() {\n return 0;\n }",
"public final int getNestingDepth() {\n return m_nestingDepth;\n }",
"public int maxDepth() {\n return maxDepth;\n }",
"@Override\r\n\tpublic int getMaxDepth() {\r\n\t\tint profundidad = 1;// Profundidad inicial, como es la raiz es 1\r\n\t\treturn getMaxDepthRec(raiz, profundidad, profundidad);\r\n\t}",
"private void computeClassDepth(Class toTag, int depth) {\n\t\t// Check transitive relations\n\t\tif (toTag.getDepth() > depth)\n\t\t\tdepth = toTag.getDepth();\n\n\t\t// Tag class\n\t\ttoTag.setDepth(depth);\n\t\tdepth++;\n\n\t\t// Explore childs\n\t\tfor (Class child : toTag.getSubClasses()) {\n\t\t\tcomputeClassDepth(child, depth);\n\t\t}\n\t}",
"public int maxDepth() {\n return maxDepth;\n }",
"public int getTreeDepth() {\r\n\t\tmaxDepth = 0;\r\n\t\treturn getTreeDepth(root, 0);\r\n\t}",
"@Override\r\n\tpublic double getDepth()\r\n\t{\r\n\r\n\t\tList<Entity> roots = new Stack<Entity>();\r\n\t\troots.addAll(getRoots());\r\n\r\n\t\tif (roots.size() == 0) {\r\n\t\t\tlogger.error(\"There is no root for this lexical semantic resource.\");\r\n\t\t\treturn Double.NaN;\r\n\t\t}\r\n\t\telse if (roots.size() > 1) {\r\n\t\t\tlogger.error(\"There are several roots for this lexical semantic resource.\");\r\n\t\t\treturn Double.NaN;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tEntity root = roots.get(0);\r\n\t\t\t// return getEccentricity(root);\r\n\r\n\t\t\tdouble maxPathLength = 0.0;\r\n\t\t\tdouble[] returnValues = computeShortestPathLengths(root, 0.0,\r\n\t\t\t\t\tmaxPathLength, new HashSet<Entity>());\r\n\t\t\tmaxPathLength = returnValues[1];\r\n\t\t\treturn maxPathLength;\r\n\t\t}\r\n\t}",
"boolean hasDepth();",
"boolean hasDepth();",
"public int minDepth() {\r\n\t\tint height = Integer.MAX_VALUE;\r\n\t\tif (left != null)\r\n\t\t\theight = Math.min(height, left.height() + 1);\r\n\t\tif (right != null)\r\n\t\t\theight = Math.min(height, right.height() + 1);\r\n\t\tif (left == null && right == null)\r\n\t\t\theight = 0;\r\n\t\treturn height;\r\n\t}",
"public byte getBitDepth();",
"public Integer getMaxDepth() {\n return this.maxDepth;\n }",
"public int getMaxDepth() {\n return maxDepth;\n }",
"public int getDepth() {\n if (isLiveOrCompiled())\n if(!this.getCapability(ImageComponent.ALLOW_SIZE_READ))\n throw new CapabilityNotSetException(J3dI18N.getString(\"ImageComponent3D0\"));\n return ((ImageComponent3DRetained)this.retained).getDepth();\n }",
"public int getNestLevel () {\n return nestLevel;\n }",
"int getMax_depth();",
"public int getNestingLevel() {\n\t\treturn map.size();\n\t}",
"public List<Long> depthTraverse(Long start){\n return depthTraverseGen(start);\n }",
"public int getBufferDepth() {\n return (this.bufferDepth);\n }",
"public int getLevel() {\n\t\treturn 1 + this.iter / this.levelfk;\n\t}",
"public boolean hasRecursionDepth() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public int getMaxDepth() {\r\n\t\treturn maxDepth;\r\n\t}",
"public boolean hasRecursionDepth() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }",
"public String getFrontNeckDepth() {\r\n\t\treturn frontNeckDepth;\r\n\t}",
"public int order()\n\t{\n\t\treturn null == _children ? 0 : _children.size();\n\t}",
"public Double getWellDepth() {\n\t\treturn wellDepth;\n\t}",
"public boolean hasDepth() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }",
"public boolean hasDepth() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public int getMessage_depth() {\r\n\t\treturn this.message_depth;\r\n\t}",
"public final void incNodeCount() {\n nodeCount++;\n if (depth > maxDepth) {\n maxDepth = depth;\n }\n }",
"public int size() {\r\n\t\tint i = 0;\r\n\t\tif (this.value != 0) {\r\n\t\t\ti++;\r\n\t\t\tif(this.leftChild != null) {\r\n\t\t\t\ti = i + this.leftChild.size();\r\n\t\t\t}\r\n\t\t\tif(rightChild != null){\r\n\t\t\t\ti = i + this.rightChild.size();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn i; \r\n\t}",
"public void depthFirstTraverse() {\n\t\tInteger first = (Integer) edges.keySet().toArray()[0];\n\t\t// track whether vertex was visited\n\t\tHashMap<Integer, Boolean> visited = buildVisited();\n\t\tdepthFirstTraverse(first, visited);\n\t}",
"public boolean hasDepth() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"protected void incrementNesting() {\n m_nestingDepth++;\n }",
"public boolean hasDepth() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }",
"@Override\n\tpublic int size() {\n\t\tmodCount = root.numChildren();\n\t\treturn modCount;\n\t}"
] |
[
"0.74299127",
"0.71411073",
"0.7102077",
"0.7097165",
"0.7086015",
"0.70786107",
"0.70661235",
"0.70391685",
"0.702837",
"0.70257115",
"0.70250684",
"0.7011346",
"0.6977555",
"0.6965139",
"0.69284385",
"0.69250995",
"0.6801667",
"0.6801175",
"0.6801175",
"0.6743657",
"0.67176354",
"0.6702925",
"0.660733",
"0.65507245",
"0.65127987",
"0.6503896",
"0.6466363",
"0.6444739",
"0.6433467",
"0.6429673",
"0.6393744",
"0.6371912",
"0.63559",
"0.6344339",
"0.6342358",
"0.6342358",
"0.6316204",
"0.631453",
"0.6285895",
"0.62734616",
"0.62629384",
"0.62593067",
"0.6232431",
"0.6209675",
"0.6197511",
"0.6153203",
"0.61492354",
"0.61402595",
"0.61402595",
"0.6114503",
"0.60859853",
"0.6081327",
"0.6059038",
"0.60427684",
"0.6042044",
"0.6040662",
"0.6021391",
"0.5987554",
"0.59763265",
"0.59715074",
"0.5969775",
"0.590855",
"0.5904862",
"0.59018666",
"0.5897664",
"0.58658874",
"0.58640146",
"0.5854845",
"0.5840251",
"0.5829809",
"0.5806945",
"0.5746339",
"0.5746339",
"0.57027334",
"0.5702269",
"0.57009673",
"0.56794596",
"0.5676337",
"0.56726843",
"0.56709975",
"0.566344",
"0.56434524",
"0.56185704",
"0.5609685",
"0.5598044",
"0.55954564",
"0.55929065",
"0.5588395",
"0.556317",
"0.5546306",
"0.5545116",
"0.55435854",
"0.5529449",
"0.5526036",
"0.552475",
"0.55140626",
"0.55110365",
"0.5500922",
"0.55003494",
"0.54993236"
] |
0.6281421
|
39
|
TODO(patcoleman): Consider overriding handleBackspaceAfterNode so that buttons are harder to delete.
|
@Override
public boolean handleClick(ContentElement element, EditorEvent event) {
ContentNode last = element.getLastChild();
ContentNode events = (last != null && ContentEvents.isContentEvents(last)) ?
last : null;
if (events != null && NodeEventRouter.INSTANCE.handleClick(events, event)) {
return true;
} else {
return false;
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n public boolean handleBackspaceAfterNode(ContentElement element, EditorEvent event) {\n return true;\n }",
"@Override\r\n\t\t\tpublic void onBackspace() {\n\t\t\t\tEmojiKeyboard.backspace(mEditEmojicon);\r\n\t\t\t}",
"public void backSpace(){\n if(currentText != null) {\n //The saved character index should no longer be restored\n savedCharacterIndex = -1;\n\n //If a character is being removed from a single line\n if (characterIndex > 0) {\n currentText = codeWindow.getTextLineController().backspace(currentText, characterIndex, true);\n characterIndex--;\n }\n //If a newline character is being removed two lines need to be merged\n else if (lineIndex > 0) {\n characterIndex = codeWindow.getTextLineController().getCodeWindowTextLines().get(lineIndex - 1).getCharacterEdges().length - 1;\n currentText = codeWindow.getTextLineController().merge(codeWindow.getTextLineController().getCodeWindowTextLines().get(lineIndex - 1), currentText, codeWindow);\n lineIndex--;\n }\n //The cursors character or line index changed, update accordingly\n updatePosition();\n }\n }",
"public boolean backspace(View view, Editable content, int keyCode, KeyEvent event) {\n/* 50 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"private String backspace() {\n this.redos.clear();\n this.undos.push(History.copy(this));\n\n if (selection != null) {\n sb.delete(selection.start, selection.end);\n list.subList(selection.start, selection.end).clear();\n\n cursor = selection.start;\n selection = null;\n } else {\n if (cursor != 0) {\n sb.deleteCharAt(cursor - 1);\n list.remove(cursor - 1);\n\n cursor = cursor - 1;\n }\n }\n\n //return sb.toString();\n return printList();\n }",
"@Override\n\tpublic void backspace()\n\t{\n\t\tif (!isAtStart()) left.pop();\n\t}",
"@Override\n public boolean handleDeleteBeforeNode(ContentElement element, EditorEvent event) {\n return true;\n }",
"@Override\n\tprotected void handleTab() {\n\t\thandleSpace();\n\t}",
"@Override\n\t\tpublic void keyReleased(KeyEvent e) {\n\t\t\tthis.convert();\n\t\t\tif ( firstTextField.getText().equals(\"\") && e.getKeyCode() == KeyEvent.VK_BACK_SPACE )\n\t\t\t\tsecondTextField.setText(\"\");\n\t\t\telse if ( secondTextField.getText().equals(\"\") && e.getKeyCode() == KeyEvent.VK_BACK_SPACE )\n\t\t\t\tfirstTextField.setText(\"\");\n\t\t}",
"@Override\n protected void handleEscapeKeyPressed() {\n\n }",
"@Override\n\tpublic void keyPressed(KeyEvent e) {\n\t\tif (e.isActionKey()) {\n\t\t\tSquare a = (Square) KeyboardFocusManager.getCurrentKeyboardFocusManager().getFocusOwner();\n\t\t\tmoveFromTo(e, a).grabFocus();\n\t\t}\n\t\telse if (e.getKeyCode() == KeyEvent.VK_BACK_SPACE) {\n\t\t\tSquare a = (Square) e.getSource();\n\t\t\tcontroller.input(a.getRow(), a.getCol(), '0');\n\t\t\ta.setText(\"\");\n\t\t}\n\t}",
"public void buttonBackSpaceOnClick(View view){\n char[] CharacterOfString ;\n String Word = (String) display.getText();\n CharacterOfString = Word.toCharArray();\n Word=\"\";\n for (int count = 0; CharacterOfString.length-1 > count; count++){\n Word+=CharacterOfString[count];\n }\n /* for(char SingleChar: CharacterOfString){\n if(CharacterOfString[CharacterOfString.length-1]!= SingleChar)\n Word+=SingleChar;\n }*/\n display.setText(Word);\n\n }",
"public void keyBackIsPressed(){}",
"@Override\n\tprotected void handleSpace() {\n\t\tif (isInClearText()) {\n\t\t\tsaveToken();\n\t\t}\n\t}",
"@Override\n\tpublic Button getEraseFunctionButton() {\n\t\treturn functionButtonBar.getEraseButton();\n\t}",
"@Override\n\tpublic void onBackKeyPressed() {\n\t\treturn;\n\t}",
"@Override\n\tpublic void onBackKeyPressed() {\n\treturn;\t\n\t}",
"public void setOnEmojiconBackspaceClickedListener(OnEmojiconBackspaceClickedListener listener) {\n this.onEmojiconBackspaceClickedListener = listener;\n }",
"@Override\r\n\tprotected ActionListener deleteBtnAction() {\n\t\treturn null;\r\n\t}",
"private void deleteBtnMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_deleteBtnMouseExited\n deleteBtn.setBackground(Color.decode(\"#4fc482\"));\n }",
"public void delete(){\n if(currentText != null) {\n //The saved character index should no longer be restored\n savedCharacterIndex = -1;\n\n //If a character is being removed from a single line\n if (characterIndex < currentText.getCharacterEdges().length - 1) {\n currentText = codeWindow.getTextLineController().backspace(currentText, characterIndex, false);\n }\n //If a newline character is being removed two lines need to be merged\n else if (lineIndex < texts.size() - 1) {\n currentText = codeWindow.getTextLineController().merge(currentText, codeWindow.getTextLineController().getCodeWindowTextLines().get(lineIndex + 1), codeWindow);\n }\n //The cursors position is unchanged\n }\n }",
"private void txtContentKeyPressed(java.awt.event.KeyEvent evt) {\n lastSave=false;\n if (evt.getKeyCode() == 8 || evt.getKeyCode() == 127) {\n BackSpace(evt);\n } else {\n if (evt.getKeyCode() == 17) {\n lastCtrl = true;\n } else if (lastCtrl == true && evt.getKeyCode() > 0 && evt.getKeyCode() < 32) {\n lastBack = true;\n /// bấm nhầm crtl shift xong bấm lại ctrl z vẫn ăn\n // System.out.println(\"hello\");\n } \n else if (lastCtrl == true && lastBack == true && evt.getKeyCode() == 90) {\n// if (lastDelete == true) {\n// getRecovery(true);\n// lastDelete = false;\n// } else {\n// getRecovery(false);\n// }\n\n } else {\n //System.out.println(evt.getKeyCode());\n charRepository.clear();\n lastBack = false;\n }\n }\n \n \n int pos=txtContent.getCaretPosition();\n statusBar.loadStatus(pos, this);\n \n\n\n }",
"public abstract boolean onBackPressed(boolean isSystemBackKey);",
"@Override\n\tpublic void keyBack() {\n\t\t\n\t}",
"@Override\n\tpublic void onPreNodeDelete(NodeModel oldParent, NodeModel selectedNode, int index) {\n\n\t}",
"private void Button_BackSpaceActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Button_BackSpaceActionPerformed\n // TODO add your handling code here:\n if(display.getText().length()!=0)\n {\n if(display.getText().charAt(display.getText().length()-1) == '.')\n {\n period = false;\n } \n \n display.setText(display.getText().substring(0, display.getText().length()-1));\n }\n if(display.getText() == null || display.getText().equals(\"\")) \n {\n display.setText(\"0\");\n }\n \n }",
"private static void OnDelete(Object sender, ExecutedRoutedEventArgs args)\r\n { \r\n TextEditor This = TextEditor._GetTextEditor(sender); \r\n\r\n if (This == null || !This._IsEnabled || This.IsReadOnly || !This._IsSourceInScope(args.Source)) \r\n {\r\n return;\r\n }\r\n\r\n TextEditorTyping._FlushPendingInputItems(This);\r\n\r\n // Note, that Delete and Backspace keys behave differently. \r\n ((TextSelection)This.Selection).ClearSpringloadFormatting();\r\n\r\n // Forget previously suggested horizontal position\r\n TextEditorSelection._ClearSuggestedX(This);\r\n\r\n using (This.Selection.DeclareChangeBlock()) \r\n {\r\n ITextPointer position = This.Selection.End; \r\n if (This.Selection.IsEmpty) \r\n {\r\n ITextPointer deletePosition = position.GetNextInsertionPosition(LogicalDirection.Forward); \r\n\r\n if (deletePosition == null)\r\n {\r\n // Nothing to delete. \r\n return;\r\n } \r\n\r\n if (TextPointerBase.IsAtRowEnd(deletePosition))\r\n { \r\n // Backspace and delete are a no-op at row end positions.\r\n return;\r\n }\r\n\r\n if (position is TextPointer && !IsAtListItemStart(deletePosition) &&\r\n HandleDeleteWhenStructuralBoundaryIsCrossed(This, (TextPointer)position, (TextPointer)deletePosition)) \r\n { \r\n // We are crossing structural boundary and\r\n // selection was updated in HandleDeleteWhenStructuralBoundaryIsCrossed. \r\n return;\r\n }\r\n\r\n // Selection is empty, extend selection forward to delete the following char. \r\n This.Selection.ExtendToNextInsertionPosition(LogicalDirection.Forward);\r\n } \r\n\r\n // Delete selected text.\r\n This.Selection.Text = String.Empty; \r\n }\r\n }",
"@Override\n\t\tpublic boolean handleBackPressed() {\n\t\t\treturn false;\n\t\t}",
"@FXML\n private void handlePreviousCommandTextPrevious() {\n commandBox.selectPreviousCommandTextPrevious();\n }",
"private void displayBackButton() {\n RegularButton backButton = new RegularButton(\"BACK\", 200, 600);\n\n backButton.setOnAction(e -> backButtonAction());\n\n sceneNodes.getChildren().add(backButton);\n }",
"private JButton getBtnBack() {\r\n\t\tif (btnBack == null) {\r\n\t\t\tbtnBack = new JButton();\r\n\t\t\tbtnBack.setText(\"<\");\r\n\t\t\tbtnBack.setToolTipText(\"Back\");\r\n\t\t\tbtnBack.addActionListener(new java.awt.event.ActionListener() {\r\n\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\r\n\t\t\t\t\tif(historyIndex > 0) {\r\n\t\t\t\t\t\thistoryIndex --;\r\n\t\t\t\t\t\tgoTo(history.get(historyIndex), HistoryManagement.NAVIGATE);\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 btnBack;\r\n\t}",
"@Override\n\tpublic void keyPressed(KeyEvent e) {\n\t\tif (e.getKeyCode() == KeyEvent.VK_BACK_SPACE && !words.isEmpty()) {\n\t\t\tgone = words.pop();\n\t\tdelete.push(gone);\n\t\t\t\n\t\t}\n\t\telse if (e.getKeyCode() == KeyEvent.VK_1 && !delete.isEmpty()) {\n\t\n\t\t\twords.push(delete.pop());\n\t\t\t\n\t\t\t\n\t\t\t\n\n\t\t} else {\n\t\t\twords.push(Character.toString(e.getKeyChar()));\n\t\t}\n\t\ttype = \"\";\n\t\tfor (String o : words) {\n\t\t\ttype = type + o;\n\t\t}\n\t\tlabel.setText(type);\n\t\tpanel.repaint();\n\n\t}",
"@SuppressWarnings(\"deprecation\")\n void updateFocusTraversalKeys() {\n /*\n * Fix for 4514331 Non-editable JTextArea and similar\n * should allow Tab to keyboard - accessibility\n */\n EditorKit editorKit = getEditorKit(editor);\n if (editorKit instanceof DefaultEditorKit) {\n Set<AWTKeyStroke> storedForwardTraversalKeys = editor.\n getFocusTraversalKeys(KeyboardFocusManager.\n FORWARD_TRAVERSAL_KEYS);\n Set<AWTKeyStroke> storedBackwardTraversalKeys = editor.\n getFocusTraversalKeys(KeyboardFocusManager.\n BACKWARD_TRAVERSAL_KEYS);\n Set<AWTKeyStroke> forwardTraversalKeys =\n new HashSet<AWTKeyStroke>(storedForwardTraversalKeys);\n Set<AWTKeyStroke> backwardTraversalKeys =\n new HashSet<AWTKeyStroke>(storedBackwardTraversalKeys);\n if (editor.isEditable()) {\n forwardTraversalKeys.\n remove(KeyStroke.getKeyStroke(KeyEvent.VK_TAB, 0));\n backwardTraversalKeys.\n remove(KeyStroke.getKeyStroke(KeyEvent.VK_TAB,\n InputEvent.SHIFT_MASK));\n } else {\n forwardTraversalKeys.add(KeyStroke.\n getKeyStroke(KeyEvent.VK_TAB, 0));\n backwardTraversalKeys.\n add(KeyStroke.\n getKeyStroke(KeyEvent.VK_TAB, InputEvent.SHIFT_MASK));\n }\n LookAndFeel.installProperty(editor,\n \"focusTraversalKeysForward\",\n forwardTraversalKeys);\n LookAndFeel.installProperty(editor,\n \"focusTraversalKeysBackward\",\n backwardTraversalKeys);\n }\n\n }",
"public void keyPressed(KeyEvent event) {\n if (originalValue == null) {\n originalValue = node.getText();\n }\n if (event.getKeyCode() == KeyEvent.VK_ESCAPE) { // Esc needs to stop editing -- the same as loosing focus\n node.setText(originalValue);\n stopEditing();\n } else if (event.getKeyCode() == KeyEvent.VK_ENTER) { // Enter\n stopEditing();\n }\n }",
"public boolean forwardDelete(View view, Editable content, int keyCode, KeyEvent event) {\n/* 61 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"@FXML\n private void handlePreviousCommandTextNext() {\n commandBox.selectPreviousCommandTextNext();\n }",
"@Override\n\tpublic void processKeyPressed(KeyEvent e) {\n\t\tsuper.processKeyPressed(e);\n\t\tif (e.isConsumed())\n\t\t\treturn;\n\n\t\tif (e.getKeyCode() == KeyEvent.VK_TAB)\n\t\t\tgameText.keyPressed();\n\t}",
"public static void undoButton(){\n\t\tundoMoveClass.undoButtonHelper(board);\n\t}",
"@Override\n\tpublic boolean onKeyUp(int keyCode, KeyEvent event) {\n\t\tif (keyCode == KeyEvent.KEYCODE_BACK)\n\t\t\tStaticUtils.toaster(this, \"No escape\");\n\t\treturn true;\n\t}",
"@Override\r\n\tprotected ActionListener insertBtnAction() {\n\t\treturn null;\r\n\t}",
"public void handleKeyPressEscape() {\r\n\t\thandleKeyPressed(0, Input.KEY_ESCAPE);\t\r\n\t}",
"@Override\r\n\tpublic void onBackPressed() {\n\t\tgame.getController().undoLastMove();\r\n\t}",
"@FXML\r\n private void handleBackButton() {\r\n\r\n CommonFunctions.showAdminMenu(backButton);\r\n\r\n }",
"@Override\r\n\tpublic void backButton() {\n\t\t\r\n\t}",
"@Override\n\tprotected void titleBtnBack() {\n\t\tsuper.titleBtnBack();\n\t}",
"public void keyTraversed(TraverseEvent e) {\n \t\t\t\tif (e.detail == SWT.TRAVERSE_ESCAPE\n \t\t\t\t\t|| e.detail == SWT.TRAVERSE_RETURN) {\n \t\t\t\t\te.doit = false;\n \t\t\t\t}\n \t\t\t}",
"public void performDelete() {\n \t\tif (text.getSelectionCount() > 0)\n \t\t\ttext.insert(StringStatics.BLANK);\n \t\telse {\n \t\t\t// remove the next character\n \t\t\tint pos = text.getCaretPosition();\n \t\t\tif (pos < text.getCharCount()) {\n \t\t\t\ttext.setSelection(pos, pos + 1);\n \t\t\t\ttext.insert(StringStatics.BLANK);\n \t\t\t}\n \t\t}\n \t\tcheckSelection();\n \t\tcheckDeleteable();\n \t\tcheckSelectable();\n \t}",
"@Override\n public void keyPressed(KeyEvent keyEvent) {\n int keyCode = keyEvent.getKeyCode();\n if(keyCode==KeyEvent.VK_SPACE)obsluga_naboi();\n if(keyCode==KeyEvent.VK_ESCAPE)gra();\n b.keyPressed(keyEvent);\n }",
"@Override\n public void clickDelete() {\n if (view.length() > 0) {\n view.setText(view.getText().subSequence(0, view.length() - 1));\n view.setSelection(view.getText().length());\n }\n }",
"@FXML\n public void handleKeyRelease() {\n String text = nameField.getText();\n boolean disableButtons = text.isEmpty() || text.trim().isEmpty(); //.trim() is used to set the button disable for space input\n helloButton.setDisable(disableButtons);\n byeButton.setDisable(disableButtons);\n }",
"public boolean onBackPressed() {\n \treturn m_renderer.onBackPressed();\n }",
"@Override\n\t\t\tpublic void keyReleased(KeyEvent arg0) {\n\t\t\t\tif (arg0.isActionKey() || arg0.getKeyCode() == KeyEvent.VK_ENTER\n\t\t\t\t\t\t|| arg0.getKeyCode() == KeyEvent.VK_BACK_SPACE) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tchar c = arg0.getKeyChar();\n\t\t\t\tif (c != '0' && c != '1' && c != '2' && c != '3' && c != '4' && c != '5' && c != '6' && c != '7' && c != '8'\n\t\t\t\t\t\t&& c != '9') {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Dozvoljen je unos samo brojeva!\");\n\t\t\t\t\tJTextField txt = (JTextField) arg0.getComponent();\n\t\t\t\t\ttxt.setText(txt.getText().substring(0, txt.getText().length() - 1));\n\n\t\t\t\t}\n\t\t\t}",
"private static void OnQueryStatusTabBackward(Object sender, CanExecuteRoutedEventArgs args)\r\n { \r\n TextEditor This = TextEditor._GetTextEditor(sender);\r\n if (This != null && This.AcceptsTab) \r\n { \r\n args.CanExecute = true;\r\n } \r\n else\r\n {\r\n args.ContinueRouting = true;\r\n } \r\n }",
"protected void drawBackButton() {\n backButton = new TextButton(\"Back\", skin);\n stage.addActor(backButton);\n\n setPrevious();\n }",
"private void deleteBtnMouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_deleteBtnMouseReleased\n deleteBtn.setBackground(Color.decode(\"#4fc482\"));\n }",
"@Override\n public void keyPressed(KeyEvent e) {\n if (!table.isEnabled())\n return;\n \n // if the table doesn't own the focus, break early\n if (!table.isFocusOwner())\n return;\n \n // if the key pressed is not the space bar, break early\n if (e.getKeyCode() != KeyEvent.VK_SPACE || e.getModifiers() != 0)\n return;\n \n final int row = table.getSelectionModel().getLeadSelectionIndex();\n final int column = table.getColumnModel().getSelectionModel().getLeadSelectionIndex();\n \n // ensure a valid row has focus\n if (row == -1)\n return;\n \n // if a column is selected, ensure it is the hierarchy column\n if (column != -1 && table.convertColumnIndexToModel(column) != hierarchyColumnModelIndex)\n return;\n \n treeList.getReadWriteLock().writeLock().lock();\n try {\n // if the row is expandable, toggle its expanded state\n if (treeList.getAllowsChildren(row)) {\n final Runnable r = TreeTableUtilities.toggleExpansion(table, treeList, row);\n if (restoreStateRunnable == null)\n restoreStateRunnable = r;\n }\n } finally {\n treeList.getReadWriteLock().writeLock().unlock();\n }\n }",
"public void BackBtn(MouseEvent event) {\n\t}",
"@Override\r\n\tpublic void onBackPressed() {\n\t\tbackButtonHandler();\r\n\t\treturn;\r\n\t}",
"@Override\n\tpublic void backButton() {\n\n\t}",
"@Override\r\n\t\t\tpublic boolean keyDown(int keyCode) {\r\n\t\t\t\tif (keyCode == Keys.BACK) {\r\n\t\t\t\t\tkeyBackIsPressed();\r\n\t\t\t\t}\r\n\t\t\t\treturn super.keyDown(keyCode);\r\n\t\t\t}",
"@Override\r\n\tpublic void onBackPressed()\r\n\t{\r\n\t\tif (flipper.getDisplayedChild() != 0)\r\n\t\t{\r\n\t\t\tflipper.showPrevious();\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tsuper.onBackPressed();\r\n\t\t}\r\n\t}",
"private void deleteBtnMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_deleteBtnMousePressed\n deleteBtn.setBackground(Color.decode(\"#1e5837\"));\n }",
"@Override\r\n\tpublic void keyReleased(KeyEvent e)\r\n\t{\n\t\tif (e.getKeyCode() == KeyEvent.VK_SPACE)\r\n\t\t{\r\n\t\t\tjump();\r\n\t\t}\r\n\t}",
"@Override\n\tpublic void removeLabelCharacter() {\n\t\tif (!editingLabel()) return;\n\t\tgetLabelState().setViewLabel(getCurrentViewLabel());\n\t\tgetLabelState().removeCharacter();\n\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tupdateHistoryButtonText(\"\"); \n\t}",
"@Override\r\n\tpublic void keyReleased(KeyEvent e) {\n\t\tint keyCode = e.getKeyCode();\r\n\t\tif (keyCode == KeyEvent.VK_SPACE)\r\n\t\t\tSystem.exit(0);\r\n\r\n\t}",
"private void prevHistoryEntry()\n {\n if (this.historyPos > 0) {\n this.historyPos--;\n this.textInput.setText(this.history.get(this.historyPos));\n this.textInput.setSelection(this.history.get(this.historyPos).length());\n }\n }",
"@Override\r\n\t\t\tpublic void keyPressed(KeyEvent arg0) {\n\t\t\t\tif((int)arg0.getKeyChar() == 10)\r\n\t\t\t\t{\r\n\t\t\t\t\tsaveAction();\r\n\t\t\t\t}\r\n\t\t\t}",
"void handleChildRemove(MPartSashContainerElement element) {\n\t}",
"protected final void removeChar()\n\t{\n\t\tif (showCaret && displayingCaret)\n\t\t{\n\t\t\tif (text.getText().length() > 1) text.setText(text.getText().substring(0, text.getText().length() - 2) + \"|\");\n\t\t}\n\t\telse if (text.getText().length() > 1) text.setText(text.getText().substring(0, text.getText().length() - 2) + \" \");\n\t}",
"private static void OnDeleteNextWord(Object sender, ExecutedRoutedEventArgs args)\r\n { \r\n TextEditor This = TextEditor._GetTextEditor(sender); \r\n\r\n if (This == null || !This._IsEnabled || This.IsReadOnly) \r\n {\r\n return;\r\n }\r\n\r\n if (This.Selection.IsTableCellRange)\r\n { \r\n return; \r\n }\r\n\r\n TextEditorTyping._FlushPendingInputItems(This);\r\n\r\n ITextPointer wordBoundary = This.Selection.End.CreatePointer();\r\n\r\n // When selection is not empty the command deletes selected content\r\n // without extending it to the word bopundary. For empty selection \r\n // the command deletes a content from caret position to \r\n // nearest word boundary in a given direction\r\n if (This.Selection.IsEmpty) \r\n {\r\n TextPointerBase.MoveToNextWordBoundary(wordBoundary, LogicalDirection.Forward);\r\n }\r\n\r\n if (TextRangeEditTables.IsTableStructureCrossed(This.Selection.Start, wordBoundary))\r\n { \r\n return; \r\n }\r\n\r\n ITextRange textRange = new TextRange(This.Selection.Start, wordBoundary);\r\n\r\n // When a range is TableCellRange we do not want to make deletions\r\n if (textRange.IsTableCellRange) \r\n {\r\n return; \r\n } \r\n\r\n if (!textRange.IsEmpty) \r\n {\r\n using (This.Selection.DeclareChangeBlock())\r\n {\r\n // Note asymetry with Backspace: we do not load springload formatting here \r\n if (This.AcceptsRichContent)\r\n { \r\n ((TextSelection)This.Selection).ClearSpringloadFormatting(); \r\n }\r\n\r\n This.Selection.Select(textRange.Start, textRange.End);\r\n\r\n // Delete selected text\r\n This.Selection.Text = String.Empty; \r\n }\r\n } \r\n }",
"@Override\n\tpublic void keyPressed(KeyEvent e) \n\t{\n\t\tint key = e.getKeyCode();\n\t\tif(key == e.VK_SPACE)\n\t\t{\n\t\t\thome = false;\n\t\t\tinstruction = false;\n\t\t}\n\t\tif(key == e.VK_R)\n\t\t{\n\t\t\thome = true;\n\t\t}\n\t\tif(key == e.VK_Z)\n\t\t{\n\t\t\thome = false;\n\t\t}\n\t\tif(key == e.VK_B)\n\t\t{\n\t\t\thome = true;\n\t\t}\n\t}",
"@Override\r\n public void keyReleased(KeyEvent e) {\r\n int key = e.getKeyCode();\r\n if (key == KeyEvent.VK_SPACE) {\r\n System.out.println(\"VK_SPACE\"); //Se va usar posteriormente \r\n }\r\n }",
"@Override\n public void beforeTextChanged(CharSequence s, int start, int count, int after) {\n cursorComplement = s.length() - campoTelefono.getSelectionStart();\n //we check if the user ir inputing or erasing a character\n if (count > after) {\n backspacingFlag = true;\n } else {\n backspacingFlag = false;\n }\n }",
"@Override\n public void handleOnBackPressed() {\n }",
"@Override\n public boolean onKey(View v, int keyCode, KeyEvent event) {\n if (keyCode == KeyEvent.KEYCODE_DEL) {\n // this is for backspace\n edtCodeNumber1.setText(\"\");\n } else if(edtCodeNumber1.getText().toString().length() == 1) {\n edtCodeNumber2.requestFocus();\n }\n return false;\n }",
"protected void handleBack(ActionEvent event) {\n\t}",
"@Override\n public void onBackPressed() {\n this.getParent().onBackPressed();\n }",
"@Override\n public void onBackPressed() {\n this.getParent().onBackPressed();\n }",
"@Override\n public boolean onKey(View v, int keyCode, KeyEvent event) {\n if (keyCode == KeyEvent.KEYCODE_DEL) {\n // this is for backspace\n edtCodeNumber5.setText(\"\");\n\n Handler handler = new Handler();\n handler.postDelayed(new Runnable() {\n public void run() {\n // do something\n edtCodeNumber5.requestFocus();\n }\n }, 50);\n }\n return false;\n }",
"@Override\n public boolean onKeyPreIme(int keyCode, KeyEvent event) {\n if (keyCode == KEYCODE_BACK) clearFocus();\n return super.onKeyPreIme(keyCode, event);\n }",
"@Override\n public void onDirectUpKeyPress() {\n \n }",
"@Override\n public void onDirectUpKeyPress() {\n \n }",
"@Override\r\n\tprotected void onBoDelete() throws Exception {\n\t\tsuper.onBoDelete();\r\n\t\t// 修改按钮属性\r\n\t\tif(myaddbuttun){\r\n\t\t\tgetButtonManager().getButton(IBillButton.Add).setEnabled(true);\r\n\t\t\tmyaddbuttun=true;\r\n\t\t\t// 转到卡片面,实现按钮的属性转换\r\n\t\t\tgetBillUI().setCardUIState();\r\n\t\t\tsuper.onBoReturn();\r\n\t\t}else{\r\n\t\t\tgetButtonManager().getButton(IBillButton.Add).setEnabled(false);\r\n\t\t\tmyaddbuttun=false;\r\n\t\t\t// 转到卡片面,实现按钮的属性转换\r\n\t\t\tgetBillUI().setCardUIState();\r\n\t\t\tsuper.onBoReturn();\r\n\t\t}\r\n\t}",
"private void escActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_escActionPerformed\n back();\n dispose();\n }",
"public boolean pressTab() {\n\t\treturn false;\n\t}",
"private void deleteBtnMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_deleteBtnMouseEntered\n deleteBtn.setBackground(Color.decode(\"#339966\"));\n }",
"@Override\r\n\tprotected void doF9() {\n\t\t\r\n\t}",
"protected void processKeyEvent(KeyEvent event) {\n if(event.getType() == KeyEvent.KeyReleased) return;\n \n //Paste\n if(event.getKeyCode().equals(KeyEvent.KeyCode.KEY_V) && event.isSystemPressed()) {\n insertText(OSUtil.getClipboardAsString());\n return;\n }\n\n //Copy\n if(event.getKeyCode().equals(KeyEvent.KeyCode.KEY_C) && event.isSystemPressed()) {\n if(selection.isActive() && selection.getLength() > 0) {\n OSUtil.setStringToClipboard(selection.getSelectedText());\n }\n return;\n }\n\n //Cut\n if(event.getKeyCode().equals(KeyEvent.KeyCode.KEY_X) && event.isSystemPressed()) {\n if(selection.isActive() && selection.getLength() > 0) {\n OSUtil.setStringToClipboard(selection.getSelectedText());\n insertText(\"\");\n }\n return;\n }\n\n //Enter\n if(allowMultiLine && event.getKeyCode() == KeyEvent.KeyCode.KEY_ENTER) {\n insertText(\"\\n\");\n return;\n }\n\n //backspace and delete\n boolean bs = event.getKeyCode() == KeyEvent.KeyCode.KEY_BACKSPACE;\n boolean del = event.getKeyCode() == KeyEvent.KeyCode.KEY_DELETE;\n if( bs || del) {\n\n //if backspace and at start, do nothing\n if(bs && cursor.getRow() == 0 && cursor.getCol()==0) return;\n //if delete and at end, do nothing\n if(del && cursor.atEndOfText()) {\n return;\n }\n\n //if text is empty do nothing\n String t = getText();\n if(t.length() == 0) return;\n\n if(selection.isActive()) {\n String[] parts = cursor.splitSelectedText();\n setText(parts[0]+parts[2]);\n cursor.setIndex(parts[0].length());\n selection.clear();\n } else {\n //split, then remove text in the middle\n int splitPoint = cursor.getIndex();\n int altSplitPoint = cursor.rowColToIndex(cursor.getRow(),cursor.getCol());\n String[] parts = cursor.splitText(splitPoint);\n if(del) {\n parts[1] = parts[1].substring(1);\n }\n if(bs) {\n parts[0] = parts[0].substring(0,cursor.getIndex()-1);\n }\n setText(parts[0]+parts[1]);\n if(bs) {\n cursor.moveLeft(1);\n }\n }\n return;\n }\n\n //left arrow\n if(event.getKeyCode() == KeyEvent.KeyCode.KEY_LEFT_ARROW) {\n if(event.isShiftPressed()) {\n if(!selection.isActive()) {\n selection.clear();\n selection.setStart(cursor.getIndex());\n selection.setEnd(cursor.getIndex());\n }\n //extend selection only if this wouldn't make us wrap backward\n if(!cursor.atStartOfLine()) {\n selection.setEnd(selection.getEnd()-1);\n }\n } else {\n selection.clear();\n }\n cursor.moveLeft(1);\n setDrawingDirty();\n return;\n }\n\n //right arrow\n if(event.getKeyCode() == KeyEvent.KeyCode.KEY_RIGHT_ARROW) {\n if(event.isShiftPressed()) {\n if(!selection.isActive()) {\n selection.clear();\n selection.setStart(cursor.getIndex());\n selection.setEnd(cursor.getIndex());\n }\n //extend selection only it this wouldn't make us wrap forward\n if(!cursor.atEndOfLine()) {\n selection.setEnd(selection.getEnd()+1);\n }\n } else {\n selection.clear();\n }\n cursor.moveRight(1);\n setDrawingDirty();\n }\n\n //up arrow\n if(event.getKeyCode() == KeyEvent.KeyCode.KEY_UP_ARROW) {\n if(allowMultiLine) {\n cursor.moveUp(1);\n } else {\n if(event.isShiftPressed()) {\n if(!selection.isActive()) {\n selection.clear();\n selection.setStart(0);\n selection.setEnd(cursor.getIndex());\n } else {\n selection.setEnd(0);\n }\n }\n cursor.moveStart();\n }\n setDrawingDirty();\n }\n\n if(event.getKeyCode() == KeyEvent.KeyCode.KEY_DOWN_ARROW) {\n if(allowMultiLine) {\n cursor.moveDown(1);\n } else {\n if(event.isShiftPressed()) {\n if(!selection.isActive()) {\n selection.clear();\n selection.setStart(cursor.getIndex());\n selection.setEnd(getText().length());\n } else {\n selection.setEnd(getText().length());\n }\n }\n cursor.moveEnd();\n }\n setDrawingDirty();\n }\n\n if(event.getKeyCode() == KeyEvent.KeyCode.KEY_TAB) {\n if(event.isShiftPressed()) {\n Core.getShared().getFocusManager().gotoPrevFocusableNode();\n } else {\n Core.getShared().getFocusManager().gotoNextFocusableNode();\n }\n }\n\n}",
"@Override\n\tpublic boolean onBackPressed() {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean onBackPressed() {\n\t\treturn false;\n\t}",
"@Override\n public void onDirectRightKeyPress() {\n \n }",
"@Override\n public void onDirectRightKeyPress() {\n \n }",
"public void goBack() {\n setEditor(currentEditor.getParentEditor());\n }",
"@Override\n public void onBackPressed() {\n\n if( edf != null ) {\n if( edf.onBackPressed() ) {\n super.onBackPressed();\n }\n }\n }",
"@Override\n\tpublic ToolStripButton getRemoveTabButton() {\n\t\treturn removeTabButton;\n\t}",
"@Override\n public void beforeTextChanged(CharSequence s, int start, int count, int after) {\n cursorComplement = s.length() - mEditTextPhoneNumber.getSelectionStart();\n //we check if the user ir inputing or erasing a character\n if (count > after) {\n backspacingFlag = true;\n } else {\n backspacingFlag = false;\n }\n }",
"public JButton getBtnBack(){\n\t\treturn btnBack;\n\t}",
"private void addBackButton() {\n\t\tbackButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tlayer.show(userViewPort, \"WebBrowser\");\n\t\t\t\tmenuBar.remove(backButton);\n\t\t\t\tmenuBar.remove(removeButton);\n\t\t\t\tmenuBar.revalidate();\n\t\t\t\tviewMode = 3;\n\t\t\t}\n\t\t});\n\t\tmenuBar.add(backButton);\n\t\tmenuBar.revalidate();\n\t}",
"private void setupBackButton(){\n\t\tImageIcon back_button_image = new ImageIcon(parent_frame.getResourceFileLocation() + \"back.png\");\n\t\tJButton back_button = new JButton(\"\", back_button_image);\n\t\tback_button.setBorderPainted(false);\n\t\tback_button.setContentAreaFilled(false);\n\t\tback_button.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tboolean leave_result = askToLeave();\n\t\t\t\tif (leave_result){\n\t\t\t\t\t//no point speaking any more words if exiting\n\t\t\t\t\tparent_frame.getFestival().emptyWorkerQueue();\n\t\t\t\t\tparent_frame.changePanel(PanelID.MainMenu);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tback_button.addMouseListener(new VoxMouseAdapter(back_button,null));\n\t\tadd(back_button);\n\t\tback_button.setBounds(1216, 598, 100, 100);\n\t}",
"public void buttonRemoveTab(ActionEvent actionEvent) {\n }"
] |
[
"0.85543597",
"0.712575",
"0.6395315",
"0.63719296",
"0.6281144",
"0.5812479",
"0.57699025",
"0.56657195",
"0.5633909",
"0.56091887",
"0.5495115",
"0.54698944",
"0.5419592",
"0.5350983",
"0.53023964",
"0.529071",
"0.5284202",
"0.5251785",
"0.52340865",
"0.5231645",
"0.523063",
"0.5221261",
"0.5206491",
"0.5190884",
"0.5186565",
"0.5180272",
"0.51747286",
"0.5167107",
"0.51418084",
"0.51272506",
"0.51064783",
"0.5098978",
"0.5098386",
"0.50836706",
"0.50792146",
"0.5060077",
"0.50510913",
"0.50443274",
"0.50439394",
"0.50065637",
"0.4999393",
"0.49987295",
"0.49931177",
"0.499277",
"0.49905485",
"0.4983452",
"0.4975945",
"0.4957028",
"0.49494398",
"0.4945915",
"0.4944712",
"0.49431348",
"0.49348742",
"0.49338728",
"0.49324492",
"0.49015978",
"0.48920822",
"0.4890487",
"0.4889815",
"0.48897207",
"0.48844424",
"0.48752582",
"0.48717427",
"0.4862756",
"0.48475623",
"0.48463947",
"0.4845543",
"0.48415554",
"0.4826973",
"0.48224032",
"0.4822306",
"0.4806637",
"0.48015583",
"0.47973627",
"0.47958773",
"0.47925496",
"0.47906417",
"0.47882944",
"0.47882944",
"0.47839493",
"0.4762846",
"0.47503743",
"0.47503743",
"0.47483498",
"0.47454667",
"0.47418192",
"0.47367495",
"0.47275463",
"0.47242278",
"0.4722311",
"0.4722311",
"0.47189286",
"0.47189286",
"0.47065276",
"0.47026676",
"0.46975362",
"0.4697389",
"0.4691335",
"0.46886528",
"0.46759272",
"0.4674331"
] |
0.0
|
-1
|
Registers subclass with ContentElement
|
public static void register(
final ElementHandlerRegistry registry) {
registry.registerEventHandler(TAGNAME, NODE_EVENT_HANDLER);
registry.registerRenderingMutationHandler(TAGNAME, RENDERING_MUTATION_HANDLER);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"protected abstract void registerSuperTypes();",
"protected abstract Component addContent();",
"@SuppressWarnings(\"unchecked\")\n public void register()\n {\n this.phpProcessor.registerProcessorExtension(this);\n \n // Register the node type if specified\n if (this.nodeType != null)\n {\n try\n {\n QName type = QName.createQName(this.nodeType);\n Class clazz = Class.forName(this.extensionClass); \n this.nodeFactory.addNodeType(type, clazz);\n }\n catch (ClassNotFoundException exception)\n {\n throw new PHPProcessorException(\"Unable to load node type (\" + this.extensionClass + \")\", exception);\n }\n }\n }",
"public <T> void registerInheritableItem(Class<T> clazz, ICapabilityConstructor<?, ?, ? extends ItemStack> constructor) {\n checkNotBaked();\n capabilityConstructorsItemSuper.add(\n Pair.<Class<?>, ICapabilityConstructor<?, ?, ?>>of(clazz, constructor));\n\n if (!registeredItemStackEventListener) {\n registeredItemStackEventListener = true;\n MinecraftForge.EVENT_BUS.register(new ItemStackEventListener());\n }\n }",
"public <K, V> void registerInheritableTile(Class<K> clazz, ICapabilityConstructor<?, V, V> constructor) {\n checkNotBaked();\n capabilityConstructorsTileSuper.add(\n Pair.<Class<?>, ICapabilityConstructor<?, ?, ?>>of(clazz, constructor));\n\n if (!registeredTileEventListener) {\n registeredTileEventListener = true;\n MinecraftForge.EVENT_BUS.register(new TileEventListener());\n }\n }",
"public <K, V> void registerInheritableEntity(Class<K> clazz, ICapabilityConstructor<?, V, V> constructor) {\n checkNotBaked();\n capabilityConstructorsEntitySuper.add(\n Pair.<Class<?>, ICapabilityConstructor<?, ?, ?>>of(clazz, constructor));\n\n if (!registeredEntityEventListener) {\n registeredEntityEventListener = true;\n MinecraftForge.EVENT_BUS.register(new EntityEventListener());\n }\n }",
"public void extend(String classQName, String[] extendedIdentifiers) {\r\n\t\tif (!regMap.containsKey(classQName)) {\r\n\t\t\tthrow new AutomationException(\"There is no [\" + classQName\r\n\t\t\t\t\t+ \"] in Widget Registory.\");\r\n\t\t}\r\n\t\tRegEntry regEntry = regMap.get(classQName);\r\n\t\tregEntry.addIdentifiers(extendedIdentifiers);\r\n\t\tregister(classQName, regEntry);\r\n\t}",
"public void addChild(Element child) {\n super.addChild(child);\n if (child instanceof LbInstances) lbInstances = (LbInstances)child;\n else if (child instanceof DataInstances) dataInstances = (DataInstances)child;\n }",
"public void addElement() {\n\t\tXmlNode newNode = new XmlNode(rootNode, this);// make a new default-type field\n\t\taddElement(newNode);\n\t}",
"@Override\n\tpublic void extends_(JDefinedClass cls) {\n\n\t}",
"public void setSubtype(typekey.LocationNamedInsured value);",
"public void inAClass(AClass node) {\n TIdentifier id = node.getIdentifier();\n \n if (node.getExtension() == null && \n ! id.getText().equals(\"Object\")) {\n node.setExtension(\n new AExtension(new TIdentifier(\"Object\",id.getLine(),id.getPos())));\n }\n }",
"void registerPart(String uniqueName, Object part, Class<?>... implementedInterfaces);",
"public void addContentType( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.add(this.model, this.getResource(), CONTENTTYPE, value);\r\n\t}",
"void addElement(String newSubResourceName, ResourceBase newSubResource);",
"public void register(GameObject gameObject) {\r\n\t\tsuper.register((Object)gameObject);\r\n\t}",
"void registerPart(Object part, Class<?>... implementedInterfaces);",
"InstrumentedType.WithFlexibleName subclass(String name, int modifiers, TypeDescription.Generic superClass);",
"@Override\n\tpublic void registerPrimaryTypes() {\n\t\tobjectType = registerJavaType(getBuilder().getName(), ClassType.CLASS);\n\t}",
"void registerParent( DefinitionDependency dependency );",
"org.landxml.schema.landXML11.BridgeElementDocument.BridgeElement addNewBridgeElement();",
"public void addChild(Element child) {\n super.addChild(child);\n }",
"public void addChild(Element child) {\n super.addChild(child);\n }",
"public void addChild(Element child) {\n super.addChild(child);\n }",
"public void addChild(Element child) {\n super.addChild(child);\n }",
"public void addChild(Element child) {\n super.addChild(child);\n }",
"public void addChild(Element child) {\n super.addChild(child);\n }",
"public void addChild(Element child) {\n super.addChild(child);\n }",
"protected abstract Content newContent();",
"public void addChild( ChildType child );",
"@Override\n public abstract void addToXmlElement(Element element);",
"void addPlugin(BaseComponentPlugin baseComponent);",
"@Override\r\n\tpublic void register() {\n\t\t\r\n\t}",
"protected abstract void onElementRegistered(Level level, T element);",
"@Override\r\n\tpublic void addMe() {\n\t\t\r\n\t}",
"public static void addContentType( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.add(model, instanceResource, CONTENTTYPE, value);\r\n\t}",
"public IInputType createInputType(IInputType superClass, String Id, String name, boolean isExtensionElement);",
"private StaticContent() {\r\n super(IStaticContent.TYPE_ID);\r\n }",
"@Override\n protected void checkSubclass() {\n }",
"void addTypes(EntryRep bits) {\n\tString classFor = bits.classFor();\n\tString[] superclasses = bits.superclasses();\n\n\t//The given EntryRep will add its className to the\n\t//subtype list of all its supertypes.\n\n\tString prevClass = classFor;\n\tfor (int i = 0; i < superclasses.length; i++) {\n\t if (!addKnown(superclasses[i], prevClass)) {\n\t\treturn;\n\t }\n\t prevClass = superclasses[i];\n\t}\n\n\t// If we are here prevClass must have java.Object as its\n\t// direct superclass (we don't store \"java.Object\" in\n\t// EntryRep.superclasses since that would be redundant) and\n\t// prevClass is not already in the the tree. Place it in the\n\t// \"net.jini.core.entry.Entry\" bucket so it does not get lost\n\t// if it does not have any sub-classes.\n\t//\n\t// Fix suggested by Lutz Birkhahn <[email protected]>\n\taddKnown(ROOT, prevClass);\n }",
"@Override\n\t\tpublic void add(TiUIView child)\n\t\t{\n\t\t\tfinal View nativeView = getNativeView();\n\t\t\tif (nativeView != null) {\n\t\t\t\tsetNativeView(this.content);\n\t\t\t\tsuper.add(child);\n\t\t\t\tsetNativeView(nativeView);\n\t\t\t} else {\n\t\t\t\tsuper.add(child);\n\t\t\t}\n\t\t}",
"public Register() {\n\t\tsuper();\n\t}",
"public abstract void addFeatureClasses(FeatureClassContainer container);",
"public void register(String classQName, RegEntry regEntry) {\r\n\t\tregMap.put(classQName, regEntry);\r\n\t}",
"public abstract void register();",
"HateosContentType() {\n super();\n }",
"abstract protected void addExtras();",
"void registerInstantiating (ClassType c) {\r\n if (instantiating_classes == null) \r\n instantiating_classes = new ClassList ();\r\n else if (instantiating_classes.contains (c)) \r\n return;\r\n\r\n instantiating_classes.add (c);\r\n }",
"@Override\r\n\tpublic OpnetObject addChild(String tag, Attributes attr) throws SAXException {\n\t\treturn new UnknownOpnetObject(tag);\r\n\t}",
"public void addContentType(java.lang.String value) {\r\n\t\tBase.add(this.model, this.getResource(), CONTENTTYPE, value);\r\n\t}",
"@Override\n\tprotected void customizeRegistration(Dynamic registration) {\n\tsuper.customizeRegistration(registration);\n\t}",
"@Override\n\tpublic void registerPrimaryTypes() {\n\t\tclassType = registerJavaType(getBean().getName(), CLASS);\n\t\tinterfaceType = registerJavaType(\"I\" + getBean().getName(), INTERFACE);\n\n\t\t// Provide lookup\n\t\tbean.setTypes(classType, interfaceType);\n\n\t\tsetExtends(classType, interfaceType);\n\t}",
"protected abstract M createNewElement();",
"public void setContent(T content);",
"public static void register(Class cl) {\n while (cl != null && cl != Object.class) {\n registerInternal(cl);\n cl = cl.getSuperclass();\n }\n }",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"public ExtraJaxbClassModel setClazz(Class<?> clazz);",
"void setSubtype(WC7Modifier value);",
"public void addSubNode(ClassNode sub) {\n\t\tif (!children.contains(sub)) {\n\t\t\tObject source = this.getSource();\n\t\t\tif (source instanceof OClass) {\n\t\t\t\tOClass c = (OClass) source;\n\t\t\t\tif (!(sub.getSource() instanceof OClass)\n\t\t\t\t\t\t&& !(sub.getSource() instanceof OInstance))\n\t\t\t\t\tthrow new GateRuntimeException(\n\t\t\t\t\t\t\t\"The sub node's source is not an instance of TClass or OInstance\");\n\t\t\t\tif (sub.getSource() instanceof OClass) {\n\t\t\t\t\tOClass sc = (OClass) sub.getSource();\n\t\t\t\t\tc.addSubClass(sc);\n\t\t\t\t\t// this code originally used the deprecated method\n\t\t\t\t\t// addOClass(URI, byte)\n\t\t\t\t\t// with the byte constant indicating a class, without\n\t\t\t\t\t// checking for\n\t\t\t\t\t// sc not being an anonymous class.\n\t\t\t\t\tc.getOntology().addOClass((OURI) sc.getONodeID());\n\t\t\t\t\tchildren.add(sub);\n\t\t\t\t}\n\t\t\t\tif (sub.getSource() instanceof OInstance\n\t\t\t\t\t\t&& c.getOntology() instanceof Ontology) {\n\t\t\t\t\tOInstance inst = (OInstance) sub.getSource();\n\t\t\t\t\tif (!((Ontology) c.getOntology()).containsOInstance(inst\n\t\t\t\t\t\t\t.getOURI())) {\n\t\t\t\t\t\tIterator<OClass> instClasses = inst.getOClasses(\n\t\t\t\t\t\t\t\tOConstants.Closure.DIRECT_CLOSURE).iterator();\n\t\t\t\t\t\twhile (instClasses.hasNext()) {\n\t\t\t\t\t\t\t((Ontology) c.getOntology()).addOInstance(\n\t\t\t\t\t\t\t\t\tinst.getOURI(), instClasses.next());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tchildren.add(sub);\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\tif (source instanceof Ontology) {\n\t\t\t\t\tOntology o = (Ontology) source;\n\t\t\t\t\tif (!(sub.getSource() instanceof OClass))\n\t\t\t\t\t\tthrow new GateRuntimeException(\n\t\t\t\t\t\t\t\t\"The sub node's source is not an instance of TClass\");\n\t\t\t\t\tOClass sc = (OClass) sub.getSource();\n\t\t\t\t\to.addOClass((OURI) sc.getONodeID());\n\t\t\t\t\tchildren.add(sub);\n\t\t\t\t} else {\n\t\t\t\t\tthrow new GateRuntimeException(\n\t\t\t\t\t\t\t\"cannot add a sub node to something which \"\n\t\t\t\t\t\t\t\t\t+ \"is neither an Ontology neither an TClass\");\n\t\t\t\t} // else\n\t\t\t} // else\n\t\t} // if ! contains\n\t}",
"@Override\n public void register() {\n }",
"public <T extends Item> void registerItem(Class<T> clazz, ICapabilityConstructor<?, T, ItemStack> constructor) {\n checkNotBaked();\n List<ICapabilityConstructor<?, ? extends Item, ? extends ItemStack>> constructors = capabilityConstructorsItem.get(clazz);\n if (constructors == null) {\n constructors = Lists.newArrayList();\n capabilityConstructorsItem.put(clazz, constructors);\n }\n constructors.add(constructor);\n\n if (!registeredItemStackEventListener) {\n registeredItemStackEventListener = true;\n MinecraftForge.EVENT_BUS.register(new ItemStackEventListener());\n }\n }",
"@Override\n protected void checkSubclass() {\n }",
"@Override\n protected void checkSubclass() {\n }",
"@Override\n protected void checkSubclass() {\n }",
"protected void addClass ( Class<? extends Object> c ) {\n if ( log.isDebugEnabled() ) {\n log.debug(\"Adding class: \" + c.getName()); //$NON-NLS-1$\n }\n synchronized ( this.dynamicEntityClasses ) {\n this.dynamicEntityClasses.add(c);\n }\n\n }",
"@Override\npublic void add(VirtualContainer parent, VirtualComponent comp,\n\t\tObjectAdapter childAdapter) {\n\t\n}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"public void register() {\n\t\tworkbenchWindow.getPartService().addPartListener(this);\n\t}",
"@Override\npublic void add(VirtualContainer parent, VirtualComponent comp, int pos) {\n\t\n}",
"org.landxml.schema.landXML11.ClassificationDocument.Classification addNewClassification();",
"public synchronized void registerObject(String name, Object child,\r\n Object object)\r\n throws IllegalArgumentException,\r\n NullPointerException\r\n {\r\n if (object == null)\r\n {\r\n throw new NullPointerException(\"ResourceManager.registerObject(): \"+\r\n \"parent object is null\");\r\n }\r\n\r\n // determine the absolute name of the parent\r\n String parentName = retrieveAbsoluteName(object);\r\n\r\n if (parentName == null)\r\n {\r\n throw new IllegalArgumentException(\"ResourceManager.registerObject(): \"+\r\n \"parent not registered with manager\");\r\n }\r\n else\r\n {\r\n // register the object under the fully qualified name\r\n registerObject(child, parentName+TIGHT_BINDING+name);\r\n }\r\n }",
"@Override\n\tpublic void add() {\n\t\t\n\t}"
] |
[
"0.65712696",
"0.6022996",
"0.59465665",
"0.5889638",
"0.5639392",
"0.5513835",
"0.5510819",
"0.54754823",
"0.54510844",
"0.54094666",
"0.5333603",
"0.53330976",
"0.52777505",
"0.52773505",
"0.51891565",
"0.5182569",
"0.51648813",
"0.51497585",
"0.51486903",
"0.5147938",
"0.51364577",
"0.5132135",
"0.5132135",
"0.5132135",
"0.5132135",
"0.5132135",
"0.5132135",
"0.5132135",
"0.50848234",
"0.50819886",
"0.5077656",
"0.50776416",
"0.5068968",
"0.50645745",
"0.5058417",
"0.50490624",
"0.5031245",
"0.50233346",
"0.50156105",
"0.5012276",
"0.50090796",
"0.50077724",
"0.4996239",
"0.49950933",
"0.49904364",
"0.4983076",
"0.49772626",
"0.49728268",
"0.49674067",
"0.4962923",
"0.494888",
"0.4945471",
"0.4937938",
"0.49352607",
"0.49263558",
"0.49261764",
"0.49261764",
"0.49261764",
"0.49261764",
"0.49261764",
"0.49261764",
"0.49261764",
"0.49261764",
"0.49261764",
"0.49261764",
"0.49261764",
"0.49261764",
"0.49261764",
"0.49261764",
"0.49261764",
"0.49261764",
"0.49261764",
"0.49217638",
"0.49141738",
"0.49127045",
"0.49078012",
"0.48999336",
"0.48847556",
"0.48847556",
"0.48847556",
"0.48813248",
"0.48806953",
"0.4877866",
"0.4877866",
"0.4877866",
"0.4877866",
"0.4877866",
"0.4877866",
"0.4877866",
"0.4877866",
"0.4877866",
"0.4877866",
"0.4877866",
"0.4877866",
"0.4877866",
"0.4877866",
"0.48761246",
"0.4866472",
"0.48454258",
"0.48425898",
"0.4834434"
] |
0.0
|
-1
|
Admin admin = (Admin) session.getAttribute("admin"); String type = admin.getType(); List participants = participantService.getAvailable(type); List children = participantService.getAvailableChildren(type); model.addAttribute("participants", participants); model.addAttribute("children", children);
|
@GetMapping("/room")
public String room(Model model) {
return "room";
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@RequestMapping(value=\"/admin/resource/type/list\")\n\tpublic String teacherResouType(Model model,HttpSession session){\n\t\tlogger.info(\"#### Into TeacherResouType ####\");\n\t\tUserInfo userInfo = (UserInfo) session.getAttribute(GlobalDefs.SESSION_USER_INFO);\n\t\tList<ResourceType> list = resourceTypeService.getTypeByTypeStatus(GlobalDefs.STATUS_RESOURCETYPE);\n\t\tmodel.addAttribute(\"list\", list);\n\t\tif (userInfo.getUser().getRole().equals(\"teacher\")) {\n\t\t\treturn \"admin.teacher.resource.type.list\";\n\t\t} else if (userInfo.getUser().getRole().equals(\"enterprise\")) {\n\t\t\treturn \"admin.enterprise.resource.type.list\";\n\t\t} else {\n\t\t\treturn \"404\";\n\t\t}\n\t}",
"@GetMapping(\"/listAllDirectors\")\n public String showAllDirectors(Model model) {\n\n// Director director = directorRepo.findOne(new Long(1));\n Iterable <Director> directorlist = directorRepo.findAll();\n\n model.addAttribute(\"alldirectors\", directorlist);\n return \"listAllDirectors\";\n }",
"public void ShowInTeacherList(){\n \n for (TeacherBean tb : t_list) {\n this.t_model.addElement(tb); \n }\n}",
"@GetMapping(\"/showStudents\")\n public String showStudents(HttpSession session, Model model) {\n //Get a list of students from the controller\n List<Student_gra_84> students = studentDaoImpl.getAllStudents();\n\n\n //Add the results to the model\n model.addAttribute(\"students\", students);\n return \"showStudents\";\n }",
"@RequestMapping(path = \"/sigQuotaSelectionCons\", method = RequestMethod.GET)\n public String getAllSelectionDetailsCons(Model model) {\n \n List<SigQuotaSelection> allSigQuotaSelection = (List<SigQuotaSelection>) sigQuotaSelectionService.findAll();\n model.addAttribute(\"allSigQuotaSelection\", allSigQuotaSelection);\n model.addAttribute(\"sigQuotaSelection\", new SigQuotaSelection()); \n model.addAttribute(\"sigQuotaLocaliteView\", new SigQuotaLocaliteView()); \n User user = (User)SecurityContextHolder.getContext().getAuthentication().getPrincipal();\n\tmodel.addAttribute(\"user\", user);\n return \"admin/sigQuotaSelectionCons.html\";\n }",
"@ResponseBody\n @RequestMapping(value=\"/trainer/data\")\n public LinkedList<Trainer> showTrainer(){\n dbManager.initializeDatabase();\n LinkedList<Trainer> trainerList=dbManager.getTrainerList();\n dbManager.closeDatabase();\n return trainerList;\n }",
"@GetMapping(\"/users/followerList\")\n public String getFollowerList(Model model, HttpSession session){\n Long id = ((User) session.getAttribute(\"user\")).getId();\n List<User> userList = userService.getUserById(id).getUserList();\n model.addAttribute(\"followerList\",userList);\n\n return \"followerList\";\n }",
"@RequestMapping(\"/showleaverequest\")\npublic String showLeaveList(HttpSession session)\n{\n\tArrayList<EmployeeLeaveRequestModel> elr=els.getAllDetails();\n\tsession.setAttribute(\"leaves\", elr );\n\tSystem.out.println(elr.size());\n\treturn \"EmployeeLeaveList.jsp\";\n\n}",
"@RequestMapping(value=\"/admin/resource/new\")\n\tpublic String teacherResouAdd(HttpSession session,Model model ){\n\t\tlogger.info(\"#####Into TeacherResouInfoAdd#####\");\n\t\tList<ResourceType> listType = resourceTypeService.getTypeByTypeStatus(GlobalDefs.STATUS_RESOURCETYPE);\n\t\tUserInfo userInfo = (UserInfo) session.getAttribute(GlobalDefs.SESSION_USER_INFO);\n\t\tmodel.addAttribute(\"type\", listType);\n\t\tif (userInfo.getUser().getRole().equals(\"teacher\")) {\n\t\t\treturn \"admin.teacher.resource.new\";\n\t\t} else if (userInfo.getUser().getRole().equals(\"enterprise\")) {\n\t\t\treturn \"admin.enterprise.resource.new\";\n\t\t} else {\n\t\t\treturn \"404\";\n\t\t}\n\t}",
"@GetMapping (\"/pertenezco\")\n public String pertenezco(Authentication authentication,Model model){\n User sessionUser = (User)authentication.getPrincipal();\n try{\n List<GrupoPertenezcoDTO> grupoPertenezcoDTO = grupoService.listAllUser(sessionUser.getId())\n .stream()\n .map(grupo -> modelMapper.map(grupo,GrupoPertenezcoDTO.class))\n .collect(Collectors.toList());\n model.addAttribute(\"grupoPertenezco\", grupoPertenezcoDTO);\n return \"/grupos/pertenezco\";\n }catch (Exception e){\n LOG.log(Level.WARNING,\"grupos/pertenezco\" + e.getMessage());\n return \"/error\";\n }\n\n }",
"@RequestMapping(\"/orderHistory\")\n public String orderHistory(Model model, Principal principal, Authentication authentication){\n model.addAttribute(\"categories\", categoryRepository.findAll());\n model.addAttribute(\"products\", productRepository.findAll());\n model.addAttribute(\"users\", userRepository.findAll());\n model.addAttribute(\"carts\", cartRepository.findAll());\n /*model.addAttribute(\"user_id\", userRepository.findByUsername(principal.getName()).getId());*/\n model.addAttribute(\"user_id\", userService.getUser().getId());\n\n\n User currentUser = userService.getUser();\n Set<Cart> currentUserCarts = currentUser.getCarts();\n\n\n model.addAttribute(\"currentUser\", currentUser);\n model.addAttribute(\"currentUserCarts\", currentUserCarts);\n\n\n\n\n return \"orderHistory\";\n }",
"@RequestMapping(value = \"/backoffice/accounts\")\n\tpublic String listAccountsAdmin(Model model) {\n\n\t\tmodel.addAttribute(\"listeAdmin\", adminDao.chercherTout());\n\t\tmodel.addAttribute(\"listeCandidat\", candidatDao.chercherTout());\n\n\t\treturn \"backoffice/accounts\";\n\t}",
"@RequestMapping(value=\"/admin\" , method= RequestMethod.GET)\n\tpublic String adminPage(ModelMap model) { \n\t\t\n\t\tmodel.addAttribute(\"user\",getUserData());\n\t\treturn\"admin\";\n\t}",
"@RequestMapping(value = \"classroom\", method = RequestMethod.GET)\n public ModelAndView displayClassroom() {\n ModelAndView mv = new ModelAndView();\n\n //open the database and get all the classrooms and store them in a linked list\n dbManager.initializeDatabase();\n StringBuilder sb = new StringBuilder();\n LinkedList<Classroom> classroomLinkedList=dbManager.getClassroomList();\n\n //loop through all the classroom in the list and make them displayable in a tabular form\n //the table header is already set up in the 'classroom.jsp' page\n //add a edit and delete button to each classroom\n sb.append(\"<tr>\");\n for (Classroom classroom:classroomLinkedList) {\n sb.append(\"<tr data-id='\"+classroom.getId()+\"'><td>\"+classroom.getName()+\"</td><td>\"+classroom.getCity()+\"</td>\");\n sb.append(\"<td>\"+classroom.getAddress()+\"</td><td>\"+classroom.getCapacity()+\"</td><td>\"+classroom.getType()+\"</td>\");\n sb.append(\"<td>\"+classroom.getProjector()+\"</td><td>\"+classroom.getStudentComp()+\"</td><td>\"+classroom.getWhiteboard()+\"</td>\");\n sb.append(\"<td>\"+classroom.getAudioRecording()+\"</td><td>\"+classroom.getVideoRecording()+\"</td>\");\n sb.append(\"<td>\"+classroom.getWheelchairAccess()+\"</td><td>\"+classroom.getListeningSystem()+\"</td>\");\n sb.append(\"<td><button class='btn btn-danger btn-delete' data-name='\"+classroom.getName()+\"' id='\"+classroom.getId()+\"'>Delete</button>\");\n sb.append(\"<button class='btn btn-info btn-edit' data-name='\"+classroom.getName()+\"' id='\"+classroom.getId()+\"'>Edit</button></td></tr>\");\n }\n\n //close the database connection and display the page\n dbManager.closeDatabase();\n mv.addObject(\"table\", sb.toString());\n mv.setViewName(\"classroom\");\n\n return mv;\n }",
"@GetMapping(\"/triplist.html\")\r\n public String showTripList(Model model) {\n\t\tTrips trips = new Trips();\r\n\t\tString currentUserName = SecurityContextHolder.getContext().getAuthentication().getName();\r\n\t\t// if admin user, return all the trip records\r\n\t\tif(\"admin\".equalsIgnoreCase(currentUserName)) {\r\n\t\t\ttrips.getTripList().addAll(tripRepository.findAll());\r\n\t\t} else {\r\n \t// if an ordinary user, return only the trip records of the logged in employee\r\n\t\t\tint empId=Integer.parseInt(currentUserName);\r\n\t\t\ttrips.getTripList().addAll(tripRepository.findByEmpId(empId));\r\n\t\t}\r\n model.addAttribute(\"trips\", trips);\r\n return \"trips\";\r\n\t}",
"@RequestMapping(value = \"/tutorlist\", method = RequestMethod.GET)\n\tpublic String listTutors(ModelMap model)\n\t{\n\t\tList<User> users = userService.findAllTutors();\n\t\tmodel.addAttribute(\"users\", users);\n\t\tmodel.addAttribute(\"loggedinuser\", getPrincipalUsername());\n\t\treturn \"tutorslist\";\n\t}",
"@GetMapping(\"/listRoom\")\r\n\tpublic String listRooms(Model theModel) {\n\t\tList<Room> theRooms = roomService.findAll();\r\n\t\t\r\n\t\t// add to the spring model\r\n\t\ttheModel.addAttribute(\"rooms\", theRooms);\r\n\t\t\r\n\t\treturn \"/rooms/list-rooms\";\r\n\t}",
"public void getGHUnitList(Model model) throws Exception {\n\t\tHashMap<String, Object> reqMap = (HashMap<String, Object>) model.asMap().get(\"pageMap\");\n\t\tHashMap<String, Object> resultMap = setGridListParamaters(reqMap);\n\t\tList<HashMap<String, Object>> list = workUnitDao.getGHUnitList(reqMap); \n\t\tresultMap.put(\"DATA_LIST\", list);\n\t\tSystem.out.println(\"!!!!!!!!!!!!!!\"+list);\n\t\tmodel.addAttribute(\"DATA_LIST\", list);\n\t\tmodel.addAttribute(\"totalCnt\", list.size());\n\t\tmodel.addAttribute(\"gridData\", getGridDataJson(resultMap, false));\n\t}",
"@RequestMapping(\"chooseRdpOrConsoleGloab\")\n @ResponseBody\n public String chooseRdpOrConsoleGloab(@RequestParam(value = \"rdpOrConsole\", required = false) String rdpOrConsole,\n ModelMap map, HttpServletRequest request) {\n \t_LOG.info(\"chooseRdpOrConsoleGloab().............................\");\n HttpSession session = request.getSession();\n User user = (User) session.getAttribute(\"user\");\n String instructorName = user.getUserName();\n \n if(user.getType().equals(\"attendees\")){\n \t_LOG.info(\"returning attendees..............\");\n \treturn \"<html><script>alert(\\\"You are Not Authorized User\\\");</script></html>\";\n }\n \n ApplicationContainer applicationContainer = ApplicationContainer.getInstance();\n\n String contextDataKey = user.getEventId() + Event.contextDataFlag;\n List<VAppModel> vAppModelList = (List<VAppModel>) applicationContainer.getObject(contextDataKey);\n\n InstructorGloab gloabInstructor = new InstructorGloab();\n gloabInstructor.setInstructorName(instructorName);\n gloabInstructor.setGloabOption(true);\n\n for (int i = 0; i < vAppModelList.size(); i++) {\n for (int j = 0; j < vAppModelList.get(i).getVmModelList().size(); j++) {\n if (vAppModelList.get(i).getVmModelList().get(j).getIsWindows() != null\n //&& vAppModelList.get(i).getVmModelList().get(j).getIsWindows() == true) {\n \t) {\n if (rdpOrConsole.equals(\"showRdp\")) {\n\n vAppModelList.get(i).getVmModelList().get(j).setVmRdp(true);\n vAppModelList.get(i).getVmModelList().get(j).setVmConsole(false);\n gloabInstructor.setGloabConsole(false);\n gloabInstructor.setGloabRdp(true);\n } else if (rdpOrConsole.equals(\"showConsole\")) {\n\n vAppModelList.get(i).getVmModelList().get(j).setVmConsole(true);\n vAppModelList.get(i).getVmModelList().get(j).setVmRdp(false);\n gloabInstructor.setGloabConsole(true);\n gloabInstructor.setGloabRdp(false);\n } else if (rdpOrConsole.equals(\"showBoth\")) {\n vAppModelList.get(i).getVmModelList().get(j).setVmConsole(true);\n vAppModelList.get(i).getVmModelList().get(j).setVmRdp(true);\n gloabInstructor.setGloabConsole(true);\n gloabInstructor.setGloabRdp(true);\n }\n } else {\n vAppModelList.get(i).getVmModelList().get(j).setVmRdp(false);\n vAppModelList.get(i).getVmModelList().get(j).setVmConsole(true);\n }\n\n }\n }\n\n session.setAttribute(\"instructorGloabOption\", gloabInstructor);\n applicationContainer.setObject(contextDataKey, vAppModelList);\n return \"ok\";\n }",
"@RequestMapping(path = \"/sigQuotaSelection\", method = RequestMethod.GET)\n public String getAllSigQuotaSelection(Model model/*, @PathVariable(value = \"idSelection\") String idSelection*/) {\n \n List<SigQuotaSelection> allSigQuotaSelection = (List<SigQuotaSelection>) sigQuotaSelectionService.quotatSelectionRetrait();\n model.addAttribute(\"allSigQuotaSelection\", allSigQuotaSelection);\n model.addAttribute(\"sigQuotaSelection\", new SigQuotaSelection()); \n model.addAttribute(\"sigQuotaLocalite\", new SigQuotaLocalite()); \n User user = (User)SecurityContextHolder.getContext().getAuthentication().getPrincipal();\n\tmodel.addAttribute(\"user\", user);\n return \"admin/sigQuotaSelection.html\";\n }",
"@RequestMapping(value=\"testsConfigureByTrainer\",method=RequestMethod.GET)\n\t\tpublic String testsConfigureByTrainer(HttpSession session,Model model) {\n\t\t\tString loggedUserid=getUserIdFromSession(session).getLoginId();\n\t\t\tList<TestConfiguration> testConfigurationsList=adminService.findConfiguredTestByTrainer(loggedUserid);\n\t\t\tmodel.addAttribute(\"testConfigurationsList\",testConfigurationsList);\n\t\t\treturn AdminNavigationPage.ADMIN_BASE+AdminNavigationPage.AVAILABLE_ALL_ONLINE_TEST_PAGE;\t\n\t\t}",
"@RequestMapping(value=\"/listar\", method=RequestMethod.GET)\r\n\tpublic String listar(Model model) {\t\t\r\n\t\tmodel.addAttribute(\"titulo\", \"Listado de Pacientes\");\r\n\t\tmodel.addAttribute(\"pacientes\", pacienteService.findAll());\r\n\t\treturn \"listar\";\r\n\t}",
"@RequestMapping(\"findGoods\")\n public String findGoods(Model model){\n model.addAttribute(\"list\",goodsService.findGoods());\n return \"index\";\n }",
"@RequestMapping(value = \"parent-catalog\", method = RequestMethod.GET)\n public String parentcatalog(HttpSession session, RedirectAttributes attributes, Model model) {\n if (session.getAttribute(\"InfoAdmin\") == null) {\n attributes.addFlashAttribute(\"error\", \"Vui lòng đăng nhập để tiếp tục !!\");\n return \"redirect:login.htm\";\n }\n List<Feedbacks> listFeedback = feedbacksDAO.notifyFeedback();\n int countNotifyFeedback = feedbacksDAO.countNotifyFeedback();\n if (countNotifyFeedback >= 0) {\n model.addAttribute(\"countNotifyFeedback\", countNotifyFeedback);\n }\n List<Orders> listOrder = ordersDAO.notifyOrder();\n int countNotifyOrder = ordersDAO.countNotifyOrder();\n if (countNotifyOrder >= 0) {\n model.addAttribute(\"countNotifyOrder\", countNotifyOrder);\n }\n model.addAttribute(\"listOrder\", listOrder);\n List<Catalogs> catalogses = dao.getAllParentCatalogs();\n List<Catalogs> catalogNoParent = dao.getAllCatalogsNoParent();\n model.addAttribute(\"catalogs\", catalogses);\n model.addAttribute(\"listFeedback\", listFeedback);\n model.addAttribute(\"catalogNoParent\", catalogNoParent);\n return \"admin/catalog-parent-list\";\n }",
"@RequestMapping(value = {\"/admin2543/view_component_groups\"}, method = RequestMethod.GET)\n public String view_component_groups(Model model) { \n List<ComponentGroup> componentGroups = componentGroupDAO.getAllComponentGroups();\n \n model.addAttribute(\"componentGroup\", new ComponentGroup());\n model.addAttribute(\"componentsGroup\", componentGroups);\n return \"admin2543/component_group\";\n }",
"@RequestMapping(\"/showallemployee\")\npublic String viewEmployee(HttpSession session)\n{\nArrayList<EmployeeRegmodel> alist = ergserv.getAllDetails();\nsession.setAttribute(\"aetall\", alist);\nSystem.out.println(alist.size());\nreturn \"showAllEmployee.jsp\";\n\n\n}",
"@GetMapping(\"/admin\")\n public String admin(Model model){\n String nextPage = \"login\";\n User currentUser = (User) model.getAttribute(\"currentUser\");\n if (isValid(currentUser))\n nextPage = \"adminpage\";\n else{\n User user = new User();\n model.addAttribute(\"currentUser\", null);\n model.addAttribute(\"newUser\", user);\n }\n return nextPage;\n }",
"@GetMapping(\"/adminShowList\")\n public String adminSList(@RequestParam(required = false, value=\"creator\") String userFilter, Model model){\n String nextPage = \"login\";\n User currentUser = (User) model.getAttribute(\"currentUser\");\n if (isValid(currentUser)){\n nextPage = \"adminShowList\";\n if (userFilter == null || userFilter.length() <=0)\n model.addAttribute(\"showList\", showRepo.findAll());\n else{\n User filteredUser = userRepo.findByUserName(userFilter).get(0);\n if (filteredUser != null)\n model.addAttribute(\"showList\", showRepo.findByUser(filteredUser));\n else\n model.addAttribute(\"showList\", showRepo.findAll());\n }\n } else{\n User user = new User();\n model.addAttribute(\"currentUser\", null);\n model.addAttribute(\"newUser\", user);\n }\n model.addAttribute(\"creators\", userRepo.findByUserRole(\"creator\"));\n return nextPage;\n }",
"@RequestMapping(value = { \"/\", \"/list\" }, method = RequestMethod.GET)\n\tpublic String listEntities(ModelMap model) {\n\n\t\tList<ENTITY> entities = abm.listar();\n\n\t\tlogger.info(\"Tengo {} usuarios registrados\", entities.size());\n\n\t\tmodel.addAttribute(\"entities\", entities);\n\t\tmodel.addAttribute(\"loggedinuser\", getPrincipal());\n\t\treturn viewBaseLocation + \"/list\";\n\t}",
"@RequestMapping\n public String rolePage(Model model) {\n model.addAttribute(\"roles\", roleService.findAll());\n return \"role/role\";\n }",
"@RequestMapping(\"/patientAccount\") \n\tpublic ModelAndView loadPatientAccount(Model model, HttpServletRequest request, HttpServletResponse response, HttpSession session){\n\t\tLoginForm loggedInUser = (LoginForm) session.getAttribute(\"loginDetail\");\n\t\tList<States> statelist = stateService.getAllStates();\n\t\tList<PatientRxNotifyProviderType> rxNotifyProviderTypeList = rxNotifyProviderService.getAllPatientRxNotifyProviderType();\n\t\tList<PatientRxNotifyType> rxNotifyTypeList = rxNotifyTypeService.getAllPatientRxNotifyType();\n\t\tList<PatientSyncStatusType> patientSyncStatusTypeList = patientSyncStatusTypeService.getAllPatientSyncStatusType();\n\t\t\n\t\tModelAndView mv = new ModelAndView();\n\t\t\n\t\ttry {\n\t\t\tPatientAccountForm patient = null;\n\t\t\ttry {\n\t\t\t\tpatient = (PatientAccountForm) model.asMap().get(\"form\");\t\n\t\t\t} catch(Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tif (patient == null) {\n\t\t\t\tSimpleDateFormat dt = new SimpleDateFormat(\"MM/dd/yyyy\");\n\t\t\t\tpatient = new PatientAccountForm();\n\t\t\t\tpatient.setStatus(PharmacyUtil.statusProfileCompleted);\n\t\t\t\tpatient.setDateRegistered(dt.format( new java.sql.Date(new Date().getTime())) );\n\t\t\t}\n\n\t\t\tpatient.setCountry(\"USA\");\n\t\t\tint groupId = 0;\n\t\t\tif (loggedInUser.getType().equalsIgnoreCase(PharmacyUtil.userPhysician)) {\n\t\t\t\t\n\t\t\t\tPhysicianAccount phyAcc = physicianRep.findOne(loggedInUser.getUserid());\n\t\t\t\tPhysicianGroup phyGroup = phyGroupRepo.findRecordByPhysicianId(phyAcc.getId());\n\t\t\t\t\n\t\t\t\tpatient.setPhysicianId( loggedInUser.getUserid() );\n\t\t\t\tif(patient.getPatientId()==0)\n\t\t\t\t{\n\t\t\t\t\tpatient.setSelectedPhysicianId( loggedInUser.getUserid() +\"\" );\n\t\t\t\t\tif (phyGroup != null) {\n\t\t\t\t\t\tpatient.setSelectedGroupId(phyGroup.getGroupId()+\"\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tmv.addObject(\"userid\", loggedInUser.getUserid());\n\t\t\t\tmv.addObject(\"usertype\", loggedInUser.getType());\n\t\t\t\t\n\t\t\t\tpatient.setPhysicianName(loggedInUser.getDisplayName());\n\t\t\t\t//Commented on jan 22,2018\n\t\t\t\t//patient.setClinicName(clinicRepo.findOne(phyAcc.getClinicId()).getClinicName());\n\t\t\t\t\n\t\t\t\tmv.addObject(\"physicianFullName\", loggedInUser.getDisplayName());\n\t\t\t\t\n\t\t\t\tif (phyGroup != null) {\n\t\t\t\t\tgroupId = phyGroup.getGroupId();\n\t\t\t\t\tpatient.setGroupId(phyGroup.getGroupId());\n\t\t\t\t\tGroupMaster groupMaster = groupService.getGroupMasterDetails(phyGroup.getGroupId());\n\t\t\t\t\tif(groupMaster != null)\n\t\t\t\t\t\tpatient.setGroupName( groupMaster.getGroupName() );\n\t\t\t\t}\n\t\t\t\n\t\t\t} else {\n\t\t\t\tif (loggedInUser.getType().equalsIgnoreCase(PharmacyUtil.userPhysicianAssistant)) {\n\t\t\t\t\t//temp commented on jan 19,2018\n\t\t\t\t\t//int physicianId = assistantRepo.findOne( loggedInUser.getUserid()).getPhysicianId();\n\t\t\t\t\t\n\t\t\t\t\tint physicianId = loggedInUser.getPhysicianAssistantPhysicianId();\n\t\t\t\t\t\n\t\t\t\t\tPhysicianAccount phyAcc = physicianRep.findOne(physicianId);\n\t\t\t\t\tPhysicianGroup phyGroup = phyGroupRepo.findRecordByPhysicianId(phyAcc.getId());\n\t\t\t\t\t\n\t\t\t\t\tpatient.setPhysicianId(physicianId);\n\t\t\t\t\tif(patient.getPatientId()==0)\n\t\t\t\t\t{\n\t\t\t\t\t\tpatient.setSelectedPhysicianId(physicianId +\"\" );\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (phyGroup != null) {\n\t\t\t\t\t\t\tpatient.setSelectedGroupId(phyGroup.getGroupId()+\"\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tmv.addObject(\"userid\", loggedInUser.getUserid());\n\t\t\t\t\tmv.addObject(\"usertype\", loggedInUser.getType());\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tpatient.setPhysicianName(phyAcc.getPhysicianName());\n\t\t\t\t\t//Commented on jan 22,2018\n\t\t\t\t\t//patient.setClinicName(clinicRepo.findOne(phyAcc.getClinicId()).getClinicName());\n\t\t\t\t\t\n\t\t\t\t\tmv.addObject(\"physicianFullName\", phyAcc.getPhysicianName());\n\t\t\t\t\t\n\t\t\t\t\tif (phyGroup != null) {\n\t\t\t\t\t\tgroupId = phyGroup.getGroupId();\n\t\t\t\t\t\tpatient.setGroupId(phyGroup.getGroupId());\n\t\t\t\t\t\tpatient.setGroupName(groupService.getGroupMasterDetails(phyGroup.getGroupId()).getGroupName());\n\t\t\t\t\t}\n\t\t\t\t} else if (loggedInUser.getType().equalsIgnoreCase(PharmacyUtil.userGroupDirector)) {\n\t\t\t\t\t\n\t\t\t\t\tgroupId = loggedInUser.getGroupid();\n\t\t\t\t\tGroupDirector gp = groupDirRepo.findOne(loggedInUser.getUserid());\n\t\t\t\t\tList<PhysicianAccount> physicianList = physicianService.getApprovedPhysicianByGroupIdAndId(gp.getGroupId(), 0);\n\t\t\t\t\tmv.addObject(\"physicianList\", physicianList);\n\t\t\t\t\t\n\t\t\t\t\tif(patient==null || patient.getPatientId()==0)\n\t\t\t\t\t{\n\t\t\t\t\t\tgroupId =loggedInUser.getGroupid();\n\t\t\t\t\t\tpatient.setSelectedGroupId(loggedInUser.getGroupid()+\"\");\n\t\t\t\t\t\tpatient.setGroupId(loggedInUser.getGroupid());\n\t\t\t\t\t\tpatient.setGroupName(loggedInUser.getGroupName());\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} else {\n\t\t\t\t\tList<PhysicianAccount> physicianList = physicianService.getApprovedPhysician();\n\t\t\t\t\tmv.addObject(\"physicianList\", physicianList);\n\t\t\t\t\t\n\t\t\t\t}\t\n\t\t\t}\n\t\t\t\n\t\t\t//Added on Dec 16,2017-Temp Password generated in New Account by default\n\t\t\tif(patient.getPatientId()==0)\n\t\t\t{\n\t\t\t\tString randomPwd = PharmacyUtil.randomPasswordGenerator();\n\t\t\t\tpatient.setPassword(randomPwd);\n\t\t\t}\n\t\t\tmv.addObject(\"groupId\", groupId);\n\t\t\tpatient.setGroupId(groupId);\n\t\t\tpatient.setSendMailPermission(\"Yes\");\n\t\t\tmv.addObject(\"userType\", loggedInUser.getType());\n\t\t\tmodel.addAttribute(\"message\", model.asMap().get(\"message\"));\n\t\t\t\n\t\t\tmv.addObject(\"stateList\", statelist);\n\t\t\tList<CardTypeMaster> cardList = cardTypeMasterRepo.findAll();\n\t\t\tmv.addObject(\"cardList\", cardList);\n\t\t\t\n\t\t\tmv.addObject(\"rxNotifyProviderTypeList\", rxNotifyProviderTypeList);\n\t\t\tmv.addObject(\"rxNotifyTypeList\", rxNotifyTypeList);\n\t\t\tmv.addObject(\"patientSyncStatusTypeList\", patientSyncStatusTypeList);\n\t\t\tmv.addObject(\"prescriptionId\", \"\");\n\t\t\t\n\t\t\t//List<GroupMaster> groupList = groupService.getAllGroupMaster(PharmacyUtil.statusActive);\n\t\t\t\n\t\t\t//Multiple Group select list box\n\t\t\tList<GroupMaster> groupList =null;\n\t\t\tList<GroupMaster> groupSelectedList =null;\n\t\t\t\n\t\t\tif (patient.getPatientId()>0) {\n\t\t\t\tgroupList = groupMasterRepo.getAllPatientGroupWiseListNotSelected(patient.getPatientId());\n\t\t\t\tgroupSelectedList = groupMasterRepo.getAllPatientGroupWiseListSelected(patient.getPatientId());\n\t\t\t}else {\n\t\t\t\tgroupList = groupService.getAllGroupMaster(PharmacyUtil.statusActive);\n\t\t\t}\n\t\t\t\t\t\t\n\t\t\t//Multiple Physician select list box for Multiple Group\n\t\t\tList<PhysicianAccount> physicianList =null;\n\t\t\tList<PhysicianAccount> physicianSelectedList =null;\n\t\t\t\n\t\t\tList<Integer> patGroupList = new ArrayList<Integer>();\n\t\t\tString patselectedGroupId=patient.getSelectedGroupId();\n\t\t\tif(patselectedGroupId!=null && patselectedGroupId.length()>0)\n\t\t\t{\n\n\t\t\t\tString[] patselectedGroupIdArr=patselectedGroupId.split(\",\");\n\t\t\t\t\n\n\t\t\t\tfor (String i : patselectedGroupIdArr) {\n\t\t\t\t\tpatGroupList.add(Integer.valueOf(i));\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tif(patGroupList!=null && patGroupList.size()>0){\n\t\t\tif (patient.getSelectedGroupId()!=null && patient.getSelectedGroupId().length()>0 && patient.getPatientId()>0) {\n\t\t\t\tphysicianList = physicianRep.getAllPatientPhysicianGroupWisePhysicianListNotSelected(patGroupList,patient.getPatientId());\n\t\t\t\tphysicianSelectedList = physicianRep.getAllPatientPhysicianGroupWisePhysicianListSelected(patGroupList,patient.getPatientId());\n\t\t\t}else if (patient.getSelectedGroupId()!=null && patient.getSelectedGroupId().length()>0) {\n\t\t\t\tphysicianList = physicianRep.getAllGroupWisePhysicianList(patGroupList,0);\n\t\t\t}\n\t\t\t}\n\n\t\t\t//Multiple Physician select list box for Single Group\n\t\t\t/*List<PhysicianAccount> physicianList =null;\n\t\t\tList<PhysicianAccount> physicianSelectedList =null;\n\t\t\t\n\t\t\tif (patient.getGroupId()>0 && patient.getPatientId()>0) {\n\t\t\t\tphysicianList = physicianRep.getAllPatientPhysicianGroupWisePhysicianListNotSelected(patient.getGroupId(),patient.getPatientId());\n\t\t\t\tphysicianSelectedList = physicianRep.getAllPatientPhysicianGroupWisePhysicianListSelected(patient.getGroupId(),patient.getPatientId());\n\t\t\t}else if (patient.getGroupId()>0) {\n\t\t\t\tphysicianList = physicianRep.getAllGroupWisePhysicianList(patient.getGroupId(),0);\n\t\t\t}*/\n\t\t\t\n\t\t\tmv.addObject(\"groupList\", groupList);\n\t\t\tmv.addObject(\"groupSelectedList\", groupSelectedList);\n\t\t\t\n\t\t\tmv.addObject(\"physicianList\", physicianList);\n\t\t\tmv.addObject(\"physicianSelectedList\", physicianSelectedList);\n\t\t\t\n\t\t\t\n\t\t\tmv.addObject(\"groupList\", groupList);\n\t\t\t\n\t\t\tmodel.addAttribute(\"patientAccount\", patient);\n\t\t\tmv.addObject(\"physicianFullName\", loggedInUser.getDisplayName());\n\t\t\t\n\t\t\tmv.setViewName(\"patientAccount\");\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\t\n\t\treturn mv;\n\t}",
"@RequestMapping(value = \"/room\", method = RequestMethod.GET)\n public ModelAndView listRoom() {\n List<Group> groups = userBean.getAllGroups();\n for (int i = 0; i < groups.size(); i++) {\n userBean.getGroupByStreamId(groups.get(1));\n }\n ModelAndView view = new ModelAndView(\"room\");\n // view.addObject(\"list\", room);\n // view.addObject(\"note\", rooms);\n //view.addObject(\"st\", streamGroups);\n return view;\n }",
"@RequestMapping(\"/admin/dashboard\")\n\tpublic ModelAndView admin(@ModelAttribute(\"user\") User user, HttpServletRequest request,Principal principle,HttpSession session, Model model) {\n\t\t\n\t\t\n\t\t\n\t\tint reports[] = new int[10];\n int count = 0;\n int num = assetRepository.countAssetId(count);\n\n \n\n model.addAttribute(\"num\", num);\n\n \n\n String status = \"Sent To Reporting Manager\";\n \n \n\n List<Report> reportlist = reportService.getuniqueid(status);\n model.addAttribute(\"assetId\", reportlist);\n\n int count1 = 0;\n int num1 = assetRepository.countApproved(count1);\n model.addAttribute(\"num1\", num1);\n \n String status1 = \"Approved\";\n List<Report> pendingforhr = reportService.getuniqueidpending(status1);\n model.addAttribute(\"pendingforhr\", pendingforhr);\n \n \n\n Map<String, String> map = new LinkedHashMap<>();\n \t\t\n \t\t\n\t\t String userName = principle.getName();\n\t\t User currentUser =this.userRepository.getUserByEmail(userName);\n\t\t \n\t\t try {\n\t\t \n\t\t User existing =userService.findByEmail(user.getTypeofuser());\n\t\t \n\t\t if (existing.equals(\"HR\"))\n\t\t \n\t\t { HttpSession httpSession=request.getSession();\n\t\t httpSession.setAttribute(\"role\", \"HR\"); }\n\t\t \n\t\t else {\n\t\t \n\t\t HttpSession httpSession=request.getSession();\n\t\t httpSession.setAttribute(\"role\", \"USER\"); } } catch(Exception e) {\n\t\t \n\t\t } \n\t\t\tsession.setAttribute(\"empid\", userName);\n\t\t System.out.println(session.getAttribute(\"empid\"));\n\t\t session.setAttribute(\"role\", currentUser.getTypeofuser());\n\t\t session.setAttribute(\"name\", currentUser.getFullname());\n\t\treturn new ModelAndView(\"/admin/dashboard\");\n\t}",
"@Override\n\tpublic List<Administrateur> getList() {\n\t\topenCurrentSession();\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<Administrateur> list = (List<Administrateur>)getCurrentSession().createQuery(\"FROM Administrateur\").list();\n\t\tcloseCurrentSession();\n\t\treturn list;\n\t}",
"@RequestMapping(\"/list\")\n public String listPage(HttpSession session, Model model) {\n if (!baseRequest(session, model)) {\n return \"redirect:/login\";\n }\n return \"admin/data_set/list\";\n }",
"@RequestMapping(\"/queryMyCart\")\n public String queryMyCart(HttpSession httpSession, Model model) {\n if(httpSession.getAttribute(\"customer\")!=null){\n Integer customerId = ((Customer) httpSession.getAttribute(\"customer\")).getCustomerId();\n List<Contact> contactList = contactService.queryAllContact(customerId);\n System.out.println(contactList);\n //model.addAttribute(\"customer\", customer);\n model.addAttribute(\"contactList\", contactList);\n }\n\n return \"myCart\";\n }",
"@Override\n\tpublic void execute(Model model) {\n\t\t\n\t\tMDao dao = sqlSession.getMapper(MDao.class);\n\t\tArrayList<MyMember> dtos = dao.memberList();\n\t\tmodel.addAttribute(\"list\", dtos);\n\t\t\n\t}",
"@RequestMapping(value = \"/admin/admin_edit_account\")\r\n public String adminEdtitAccountPage(Model m, HttpSession session) {\r\n \r\n AdminEditCommand adminEditCommand = new AdminEditCommand();\r\n Admin a = (Admin) session.getAttribute(\"admin\");\r\n adminEditCommand.setA(a);\r\n System.out.println(\"admin in edit account method :\" + a);\r\n m.addAttribute(\"AdminEditCommand\", adminEditCommand);\r\n return \"admin/admin_edit_account\";\r\n\r\n }",
"@RequestMapping(value = \"l_entrega\")\r\n public String listarEntregas(BusquedaFiltro nuevoFiltro, HttpSession session, Model model) {\n System.out.println(nuevoFiltro.getCiclo() + \" naaaaaada\" + nuevoFiltro.getIdCurso());\r\n PersonaDTO personaDTO = (PersonaDTO) session.getAttribute(\"personaDTO\");\r\n AlumnoDTO p = alumnoDAO.get(personaDTO.getCodigo());\r\n model.addAttribute(\"personaDTO\", p);\r\n HistorialDTO historialDTO = alumnoDAO.getHistorial(nuevoFiltro.getCiclo(), nuevoFiltro.getIdCurso(), p.getId());\r\n session.setAttribute(\"historialDTO\", historialDTO);\r\n List<AvanceDTO> avanceList = alumnoDAO.listarAvances(historialDTO.getIdHistorial());\r\n model.addAttribute(\"ListaAvances\", avanceList);\r\n\r\n return \"alumno/alumnocronograma\";\r\n }",
"@RequestMapping(value = {\"/patients\" }, method = RequestMethod.GET)\r\n\tpublic String listPatients(ModelMap model) {\r\n\t\tList<User> users = service.findAllUsers(Type.patients.getValue());\r\n\t\tmodel.addAttribute(\"users\", users);\r\n\t\tmodel.addAttribute(\"type\", new String(\"patient\"));\r\n\t\treturn \"allusers\";\r\n\t}",
"@RequestMapping(value = \"/trainer\", method = RequestMethod.GET)\n public ModelAndView displayTrainer() {\n ModelAndView mv = new ModelAndView();\n\n //open the database and get all the trainers and store them in a linked list\n dbManager.initializeDatabase();\n StringBuilder sb = new StringBuilder();\n LinkedList<Trainer> trainerLinkedList=dbManager.getTrainerList();\n\n //loop through all the trainers in the list and make them displayable in a tabular form\n //the table header is already set up in the 'trainer.jsp' page\n //add a edit and delete button to each trainer\n sb.append(\"<tr>\");\n for (Trainer trainer:trainerLinkedList) {\n sb.append(\"<tr data-id='\"+trainer.getId()+\"'><td>\"+trainer.getName()+\"</td><td>\"+trainer.getAddress()+\"</td>\");\n sb.append(\"<td>\"+trainer.getEmail()+\"</td><td>\"+trainer.getPhone()+\"</td>\");\n sb.append(\"<td><button class='btn btn-danger btn-delete' data-name='\"+trainer.getName()+\"' id='\"+trainer.getId()+\"'>Delete</button>\");\n sb.append(\"<button class='btn btn-info btn-edit' data-name='\"+trainer.getName()+\"' id='\"+trainer.getId()+\"'>Edit</button></td></tr>\");\n }\n\n //close the database and display the page\n dbManager.closeDatabase();\n mv.addObject(\"table\", sb.toString());\n mv.setViewName(\"trainer\");\n\n return mv;\n }",
"@Override\n @RequiresPermissions(\"em.emtype.query\")\n public void index() {\n List<EmType> list = EmType.dao.list();\n \n setAttr(\"list\", JsonKit.toJson(list));\n render(\"equipment_type_list.jsp\");\n }",
"@GetMapping(\"/adminUserList\")\n public String adminUList(@RequestParam(required = false, value=\"role\") String roleFilter, Model model){\n String nextPage = \"login\";\n User currentUser = (User) model.getAttribute(\"currentUser\");\n if (isValid(currentUser)){\n nextPage = \"adminUserList\";\n if (roleFilter == null || roleFilter.length() <= 0)\n model.addAttribute(\"userList\", userRepo.findAll());\n else\n model.addAttribute(\"userList\", userRepo.findByUserRole(roleFilter));\n } else{\n User user = new User();\n model.addAttribute(\"currentUser\", null);\n model.addAttribute(\"newUser\", user);\n }\n return nextPage;\n }",
"@RequestMapping(value = \"\", method = RequestMethod.GET)\n\tpublic String viewList(Model model) {\n\t\t;\n\t\t/* return list of all genres for the list */\n\t\tList<Comic> comics = comicService.find();\n\t\t\n\t\t//contenuti 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}",
"@RequestMapping(value = \"/admin/trans\", method = RequestMethod.GET)\n public String adminTransactionsPage(Model model) {\n model.addAttribute(\"transactions\", transactionService.findAllTransactions());\n return \"admin/admin-trans\";\n }",
"@RequestMapping(\"page\")\n\tpublic String toList(HttpServletRequest request) {\n\t\trequest.setAttribute(\"listUsrSecurityView\", iUsrSecurityService.mySelectUserList());\n\t\trequest.setAttribute(\"listUsrInformation\", iUsrInformationService.list());\n\t\treturn \"/admin/usr/usrSecurity_list\";\n\t}",
"@RequestMapping(value=\"admin/reports/roomsbyservice\",method = RequestMethod.GET)\n public String showRoomsbyServiceReport(Model model){\n model.addAttribute(\"services\", getServiceSessionRemote().getAll());\n return \"admin/roomsbyservicereport\";\n }",
"@RequestMapping(\"/add\")\n public String addPage(HttpSession session, Model model) {\n if (!baseRequest(session, model)) {\n return \"redirect:/login\";\n }\n List<Price_model> price_modelsList = price_modelService.findAll();\n List<Asset_class> assetClassLists = asset_classService.findAll();\n List<Asset_class> assetClassList = new ArrayList<>();\n for (int i = 1; i < assetClassLists.size(); i++) {\n assetClassList.add(assetClassLists.get(i));\n }\n List<Data_type> dataTypeList = data_typeService.findAll();\n List<Region> regionList = regionService.findAll();\n List<Publisher> publisherList = publisherService.findAll();\n List<Data_category> data_categoryList = data_categoryService.findAll();\n\n model.addAttribute(\"data_categoryList\", data_categoryList);\n model.addAttribute(\"price_modelsList\", price_modelsList);\n model.addAttribute(\"asset_classList\", assetClassList);\n model.addAttribute(\"data_typeList\", dataTypeList);\n model.addAttribute(\"regionList\", regionList);\n model.addAttribute(\"publisherList\", publisherList);\n\n model.addAttribute(\"domain\", domain);\n\n return \"admin/data_set/add\";\n }",
"private String returnAdminPageType(Model model, User sessionUser, String type) {\n\n\t\t// request /admin/users\n\t\tif (type.equals(\"users\")) {\n\n\t\t\tmodel.addAttribute(\"users\", userService.findAll());\n\t\t\treturn \"users\";\n\n\t\t\t// request /admin/requests\n\t\t} else if (type.equals(\"requests\")) {\n\n\t\t\tList<WashRequest> AllRequests = washRequestService.findAll();\n\n\t\t\tList<WashRequestItem> PendingRequests = new ArrayList<WashRequestItem>();\n\t\t\tList<WashRequestItem> DoneRequests = new ArrayList<WashRequestItem>();\n\n\t\t\tfor (WashRequest washRequest : AllRequests) {\n\t\t\t\tWashRequestItem washRequestItem = washRequestItemService.findbyWashRequest(washRequest).get(0);\n\n\t\t\t\tif (washRequestItem.getWashStatus().getId() == 4) {\n\t\t\t\t\tDoneRequests.add(washRequestItem);\n\t\t\t\t} else {\n\t\t\t\t\tPendingRequests.add(washRequestItem);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tmodel.addAttribute(\"pendingRequests\", PendingRequests);\n\t\t\tmodel.addAttribute(\"doneRequests\", DoneRequests);\n\n\t\t\treturn \"requests\";\n\n\t\t\t// request /admin/profile\n\t\t} else if (type.equals(\"profile\")) {\n\n\t\t\tUser pageUser = sessionUser;\n\t\t\tmodel.addAttribute(\"pageUser\", pageUser);\n\t\t\treturn \"adminProfile\";\n\n\t\t\t// request non existing page\n\t\t} else {\n\t\t\treturn \"error\";\n\t\t}\n\n\t}",
"List<UserDisplayDto> findeAdmins();",
"@RequestMapping (\"/members\")\r\n\tpublic String list(@RequestParam(\"page\") int page, Model model) {\n\t\tint pagenumber = page;\r\n\t\tmodel.addAttribute(\"pagenumber\", pagenumber);\r\n\t\t\r\n\t\t//Row count for following calculations\r\n\t\tint maxrows = membersService.getMemberCount();\r\n\t\t\r\n\t\t//Find the Max number of pages and see if an extra page is needed\r\n\t\tif (maxrows >= 7){\r\n\t\t\tint maxpages = maxrows / 7;\r\n\t\t\tint pageTest = maxpages * 7; \r\n\t\t\tint addPage = maxrows - pageTest;\r\n\t\t\tint zero = 0;\r\n\t\t//Add an extra page if TRUE\r\n\t\t\tif (addPage > zero){\r\n\t\t\t\tint extraPage = maxpages + 1;\r\n\t\t\t\tmodel.addAttribute(\"maxpages\", extraPage);\r\n\t\t//Do not add an extra page if FALSE\t\t\r\n\t\t\t}else {\r\n\t\t\t\tmodel.addAttribute(\"maxpages\", maxpages);\r\n\t\t\t}\r\n\t\t//Only one page is needed because at least 7 rows are not available \r\n\t\t}else{\r\n\t\t\tmodel.addAttribute(\"maxpages\", 1);\r\n\t\t }\r\n\t\t//pull the first 7 on page 1\r\n\t\tif (pagenumber <= 1) {\r\n\r\n\t\t\tmodel.addAttribute(\"members\", membersService.getAllMembers(0, 7));\r\n\t\t}else{\r\n\t\t\tint stopSQL = 7; //Offset\r\n\t\t\tint pageNumber = pagenumber - 1; \r\n\t\t\tint startSQL = 7 * pageNumber; //What row should the query start at, e.g. 7 * 2 = 14 (start at row 14 and pull the next 7 rows)\r\n\r\n\t\t\tmodel.addAttribute(\"members\", membersService.getAllMembers(startSQL, stopSQL));\r\n\t\t\t\r\n\t\t}\r\n\r\n\t\t\r\n\t\treturn \"members\";\r\n\t}",
"@GetMapping(\"/patientRegister\")\n public String patientRegister(Model model){\n model.addAttribute(\"patient\", new User());\n model.addAttribute(\"info\", new PatientInfo());\n return \"views/patient/patientRegister\";\n }",
"@GetMapping(\"/users\")\n public String getUserList(Model model){\n List<User> users = accountService.getAllUsers();\n model.addAttribute(\"userList\", users);\n return \"listUsers\";\n }",
"@RequestMapping(value = \"/dashboard/getMyChildren\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public List<Student> getMyChildren() {\n log.debug(\"REST request to get all My Children\");\n User u = userRepository.findOneByLogin(SecurityUtils.getCurrentUser().getUsername()).get();\n IrisUser irisuser = irisUserRepository.findOneByUserId(u.getId()); \n Parent p = parentRepository.findOneByIrisUserId(irisuser.getId());\n List parents = new ArrayList<Parent>();\n parents.add(p);\n return studentRepository.findByParents( parents);\n }",
"@RequestMapping(value = \"/subject\", method = RequestMethod.GET)\n public ModelAndView listSubject() {\n List<SubjectType> divSubjects = userBean.getDividedSubject();\n ModelAndView view = new ModelAndView(\"subject\");\n // view.addObject(\"sub\", subjects);\n view.addObject(\"div\", divSubjects);\n return view;\n }",
"@RequestMapping(\"/list\")\n public String showMyMainSensorPage(ModelMap theModel) {\n\n List<Sensor> theSensor = sensorService.findAll();\n\n theModel.addAttribute(\"theSensors\", theSensor);\n\n return \"sensor/viewUserSensor\";\n\n }",
"@RequestMapping(method=RequestMethod.GET)\n\tpublic String intializeForm(Model model) {\t\t\n\t\tlog.info(\"GET method is called to initialize the registration form\");\n\t\tEmployeeManagerRemote employeeManager = null;\n\t\tEmployeeRegistrationForm employeeRegistrationForm = new EmployeeRegistrationForm();\n\t\tList<Supervisor> supervisors = null;\n\t\ttry{\n\t\t\temployeeManager = (EmployeeManagerRemote) ApplicationUtil.getEjbReference(emplManagerRef);\n\t\t\tsupervisors = employeeManager.getAllSupervisors();\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tmodel.addAttribute(\"supervisors\", supervisors);\n\t\tmodel.addAttribute(\"employeeRegistrationForm\", employeeRegistrationForm);\n\t\t\n\t\treturn FORMVIEW;\n\t}",
"List<CourseParticipant> getCourseParticListByRepresentativeUuid(UUID representativeUserUuid);",
"@RequestMapping(value = \"/figureAssignment\", method = RequestMethod.GET)\n public ModelAndView getFigureAssignment(@RequestParam(\"ctype\") String ctype, HttpServletRequest req, HttpServletResponse resp) {\n\n List<CourseEntity> courses = userDao.findAllCourse();\n List<AssignmentEntity> assignments = new ArrayList<>();\n if (ctype == null) {\n// System.out.println(\"ctype now is : \" + ctype);\n ctype = courses.get(0).getCtype();\n assignments = userDao.findAllAssignment(ctype);\n } else {\n// System.out.println(\"ctype now is : \" + ctype);\n assignments = userDao.findAllAssignment(ctype);\n }\n List<AssignmentEntity> assignmentsPublished = new ArrayList<>();\n List<AssignmentEntity> assignmentsEnd = new ArrayList<>();\n List<AssignmentEntity> assignmentsFinished = new ArrayList<>();\n List<AssignmentEntity> assignmentsScoring = new ArrayList<>();\n List<AssignmentEntity> assignmentsScored = new ArrayList<>();\n for (int i = 0; i < assignments.size(); i++) {\n switch (assignments.get(i).getState()) {\n case \"Published\":\n assignmentsPublished.add(assignments.get(i));\n break;\n case \"End\":\n assignmentsEnd.add(assignments.get(i));\n break;\n case \"Finished\":\n assignmentsFinished.add(assignments.get(i));\n break;\n case \"Scoring\":\n assignmentsScoring.add(assignments.get(i));\n break;\n case \"Scored\":\n assignmentsScored.add(assignments.get(i));\n break;\n }\n }\n\n ModelAndView mv = new ModelAndView(\"/root/figureAssignment\");\n mv.addObject(\"sid\", \"root\");\n mv.addObject(\"courses\", courses);\n mv.addObject(\"ctype\", ctype);\n mv.addObject(\"assignments\", assignments);\n mv.addObject(\"assignmentsPublished\", assignmentsPublished);\n mv.addObject(\"assignmentsEnd\", assignmentsEnd);\n mv.addObject(\"assignmentsFinished\", assignmentsFinished);\n mv.addObject(\"assignmentsScoring\", assignmentsScoring);\n mv.addObject(\"assignmentsScored\", assignmentsScored);\n\n\n System.out.println(\"TEST*******************\");\n\n return mv;\n }",
"@RequestMapping(value = \"/admin\", method = RequestMethod.GET)\n\tpublic ModelAndView adminPage() {\n\t\tModelAndView model = new ModelAndView();\n\t\tmodel.addObject(\"categories\", myService.listGroups());\n\t\tmodel.addObject(\"products\", myService.displayProducts());\n\t\tmodel.setViewName(\"adminmy\");\n\t\treturn model;\n\t}",
"public List display(FeedbackVO vo1) {\nList l1 = new ArrayList();\r\n\t\t\r\n\t\ttry{\r\n\t\tSessionFactory sessionFactory=new Configuration().configure().buildSessionFactory();\r\n\t\tSession session =sessionFactory.openSession();\r\n\t\t\r\n\t\tQuery q=session.createQuery(\"from FeedbackVO\");\r\n\t\tl1=q.list();\r\n\t\t\r\n\t\tSystem.out.println(\"done??\");\r\n\t\t\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\treturn l1;\r\n\t}",
"@RequestMapping(value=\"/manage-visitors\", method=RequestMethod.GET)\n\tpublic String manageVisitors(HttpSession session, Model model) {\n\t\ttry {\n\t\t\tString userRole = UserDatabaseTemplate.getRoleWithId(session, connection());\n\t\t\t\n\t\t\tmodel.addAttribute(\"visitor\", new Visitor());\n\t\t\t\n\t\t\tSystem.out.println(\"User role in Manage visitors: \" + userRole);\n\t\t\n\t\t\tif(userRole.equals(ADMIN)) {\n\t\t\t\treturn \"manage-visitors-ad\";\n\t\t\t}else if(userRole.equals(EDITOR)) {\n\t\t\t\treturn \"manage-visitors-ed\";\n\t\t\t}else {\n\t\t\t\treturn \"unauthorized-rp\";\n\t\t\t}\n\t\t}catch(Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t\treturn \"redirect:login\";\n\t\t}\n\t\t\n\t\t\n\t\t\n\t}",
"@GetMapping(\"/showNewTeamForm\")\n public String showNewTeamForm(Model model) {\n\n Page<Employee> page = employeeService.findPaginated(1, 5,\"firstName\", \"asc\");\n List<Employee> listEmployees = page.getContent();\n\n Team team= new Team();\n model.addAttribute(\"team\", team);\n model.addAttribute(\"listEmployees\", listEmployees);\n model.addAttribute(\"listEmployeesFromTeam\", team.getEmployeeList());\n return \"new_team\";\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n // processRequest(request, response);\n\n if(request.getParameter(\"action\").equalsIgnoreCase(\"add\")){\n ArrayList<TeacherModel> al=TeacherDao.display();\n request.setAttribute(\"teacherdata\",al);\n ArrayList<CourseModel> dl= CourseDao.display();\n request.setAttribute(\"coursedata\",dl);\n RequestDispatcher rd=request.getRequestDispatcher(\"AddGroup.jsp\");\n rd.forward(request,response);\n \n \n } else if(request.getParameter(\"action\").equalsIgnoreCase(\"display\")){\n \n processRequest(request, response);\n \n \n }\n }",
"@SuppressWarnings(\"unchecked\")\n\t@GetMapping(\"view-my-dashboard\")\n\tpublic String viewMyDashboard(Model model, HttpSession session) {\n\n\t\tlogger.info(\"Method : viewMyDashboard starts\");\n\t\t// Dashboard Medication\n\t\tString userId = (String) session.getAttribute(\"USER_ID\");\n\t\ttry {\n\t\t\tPatientDashboardModel[] region1 = restTemplate.getForObject(env.getUserUrl() + \"getBooking1?id=\"+userId,\n\t\t\t\t\tPatientDashboardModel[].class);\n\t\t\tList<PatientDashboardModel> RegiontList1 = Arrays.asList(region1);\n\t\t\tmodel.addAttribute(\"bookinngList1\", RegiontList1);\n\t\t} catch (RestClientException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t//Appointment Count \n\t\t\n\t\t\t\tString userId1 = (String) session.getAttribute(\"USER_ID\");\n\t\t\t\ttry {\n\t\t\t\t\tPatientDashboardModel[] region = restTemplate.getForObject(env.getUserUrl() + \"appointmentCount?id=\"+userId1,\n\t\t\t\t\t\t\tPatientDashboardModel[].class);\n\t\t\t\t\tList<PatientDashboardModel> appointmentCount = Arrays.asList(region);\n\t\t\t\t\tmodel.addAttribute(\"appointmentCount\", appointmentCount);\n\t\t\t\t} catch (RestClientException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n//\t\tList<String> modlist = (List<String>) session.getAttribute(\"MODULELIST\");\n//\t\t\n//\t\tsession.setAttribute(\"moduleId\", modlist.get(0));\n\t\t\t\t\n\t\t//alergy name drop down\t\t\n\t\t\t\ttry {\n\n\t\t\t\t\tDropDownModel[] allerName = restTemplate.getForObject(env.getUserUrl() + \"get-allerName-Dashboard-list\",\n\t\t\t\t\t\t\tDropDownModel[].class);\n\t\t\t\t\tList<DropDownModel> alernameList = Arrays.asList(allerName);\n\n\t\t\t\t\tmodel.addAttribute(\"alernameList\", alernameList);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\n\t\t\t\t}\n//alergy type drop down\n\t\t\t\ttry {\n\n\t\t\t\t\tDropDownModel[] allerName = restTemplate.getForObject(env.getUserUrl() + \"get-allertype-Dashboard-list\",\n\t\t\t\t\t\t\tDropDownModel[].class);\n\t\t\t\t\tList<DropDownModel> alertypeList = Arrays.asList(allerName);\n\n\t\t\t\t\tmodel.addAttribute(\"alertypeList\", alertypeList);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\n\t\t\t\t}\t\t\n\t\t\n\t\tlogger.info(\"Method : viewMyDashboard ends\");\n\t\treturn \"patient/patientDashboard\";\n\t}",
"@GetMapping(\"/seDrivers\")\n public String seDrivers(Model model) {\n int id = 123;\n drivers = adminRepo.read(id);\n model.addAttribute(\"drivers\", drivers);\n return \"seDrivers\";\n }",
"@RequestMapping(value = { \"/\", \"/list\" }, method = RequestMethod.GET)\r\n public String listusers(ModelMap model) {\r\n List users = service.findAllUser();\r\n model.addAttribute(\"users\", users);\r\n return \"allusers\";\r\n }",
"@RequestMapping(path = \"/sigQuotaLocaliteView/{idSelection}\", method = RequestMethod.GET)\n public String getAllSelectionDetails(Model model, @PathVariable(value = \"idSelection\") String idSelection) {\n \tList<SigQuotaLocaliteView> listQuotaLocaliteDetails= sigQuotaLocaliteViewService.findAllSelectionDetails(idSelection);\n \n model.addAttribute(\"listQuotaLocaliteDetails\", listQuotaLocaliteDetails);\n model.addAttribute(\"sigQuotaLocaliteView\", new SigQuotaLocaliteView()); \n User user = (User)SecurityContextHolder.getContext().getAuthentication().getPrincipal();\n\tmodel.addAttribute(\"user\", user);\n \n return \"admin/sigQuotaLocaliteView.html\";\n }",
"@RequestMapping(method = RequestMethod.GET,value = \"/\")\n public String HomePage(Model model, HttpSession session){\n model.addAttribute(\"listBook\",bookService.books());\n\n ShoppingCart shoppingCart = (ShoppingCart) session.getAttribute(\"list-order\");\n\n if (shoppingCart != null){\n\n Set<CartItem> listCartItem = new HashSet<>();\n for (Long hashMapKey:shoppingCart.getItems().keySet()\n ) {\n CartItem cartItem = shoppingCart.getItems().get(hashMapKey);\n listCartItem.add(cartItem);\n System.out.println(\"quantity : \" + cartItem.getQuantity());\n System.out.println(\"size list cart : \" + listCartItem.size());\n }\n model.addAttribute(\"listCartItem\",listCartItem);\n }\n\n\n return \"homePage\";\n }",
"@RequestMapping(\"/viewRoute\") \n\t\t public String viewShip(Model m){ \n\t\t List<Route> list=dao.getRoute(); \n\t\t m.addAttribute(\"list\",list); \n\t\t return \"viewRoute\"; \n\t\t }",
"@RequestMapping(value = { \"/list\" }, method = RequestMethod.GET)\r\n public String listEmployees(ModelMap model) {\r\n \r\n List<Employee> employees = service.findAllEmployees();\r\n model.addAttribute(\"employees\", employees);\r\n return \"allemployees\";\r\n }",
"@RequestMapping(value=\"/vueInternauteCategoriesQcms\")\r\n\tpublic String vueInternauteCategoriesQcms(Model model){\r\n\r\n\t\tmodel.addAttribute(\"user\", this.user);\t\t\r\n\t\tmodel.addAttribute(\"bonjour\", this.bonjour);\r\n\t\tmodel.addAttribute(\"espace\", this.espace);\r\n\t\treturn \"Internaute/vue-categories\";\r\n\t}",
"@GetMapping\n public String displayUser(Model model) {\n User newUser = new User(\"Sven Svennis\",\"Svennegatan 2\", new ArrayList<Loan>());\n userRepository.save(newUser);\n\n //TODO this is where we need to fetch the current user instead!\n User user = userRepository.getOne(1l);\n\n model.addAttribute(\"user\", user);\n\n return \"displayUser\";\n }",
"@RequestMapping(value = \"/vacantrooms\", method = RequestMethod.GET)\n public ArrayList<Room> vacantRooms(){\n ArrayList<Room> listroom = DatabaseRoom.getVacantRooms();\n return listroom;\n }",
"@PostMapping(\"/listarUsuarios\")\r\npublic String listarUsuarios(Model model) {\n try (Connection connection = dataSource.getConnection()) {\r\n Statement stmt = connection.createStatement();\r\n ResultSet rs = stmt.executeQuery(\"SELECT id,nome,email FROM usuarios\");\r\n\r\n ArrayList<Usuario> output = new ArrayList<Usuario>();\r\n while (rs.next())\r\n output.add(new Usuario((Integer) rs.getObject(1), (String) rs.getObject(2), (String) rs.getObject(3)));\r\n\r\n model.addAttribute(\"listaUsuarios\", output);\r\n\r\n return \"dashboard_listausuarios\";\r\n\r\n } catch (Exception e) {\r\n model.addAttribute(\"message\", e.getMessage());\r\n return \"error\";\r\n }\r\n\r\n}",
"public List<UserGroup> GetActiveGroups() {\n/* 44 */ return this.userDal.GetActiveGroups();\n/* */ }",
"@ResponseBody\n\t@GetMapping({\"\", \"/\"})\n\tpublic Object index() {\n//\n//\t\tList<User> userList = userRepository.findAll();\n//\t\tSystem.err.println(userList);\n//\n//\t\tuserList = userMapper.getAll();\n//\t\tSystem.err.println(userList);\n//\n//\t\tuserList = userMapper.getAllXml();\n//\t\tSystem.err.println(userList);\n\n//\t\tPermission permission = new Permission();\n//\t\tpermission.setName(\"a\");\n//\n//\t\tSet<Permission> permissionSet = new HashSet<>();\n//\t\tPermission permission1 = new Permission();\n//\t\tpermission1.setName(\"b\");\n//\t\tpermissionSet.add(permission1);\n//\n//\t\tPermission permission2 = new Permission();\n//\t\tpermission2.setName(\"c\");\n//\t\tpermissionSet.add(permission2);\n//\n//\t\tpermission.setPermissionSet(permissionSet);\n//\t\tpermissionRepository.save(permission);\n\n//\t\tList<Permission> permissionList = permissionRepository.getRolePermissionList(1);\n\n\n//\t\tUser user = new User();\n//\t\tuser.setName(\"iMiracle\");\n//\n//\t\tRole r1 = new Role();\n//\t\tr1.setName(\"role1\");\n//\t\troleRepository.save(r1);\n//\t\tRole r2 = new Role();\n//\t\tr2.setName(\"role2\");\n//\t\troleRepository.save(r2);\n//\n//\t\tuser.getRoleSet().add(r1);\n//\t\tuser.getRoleSet().add(r2);\n//\t\tuserRepository.save(user);\n\n\n\n\t\treturn permissionRepository.getUserPermissionTree(1);\n\t}",
"public String navigateUsuarioList() {\n if (this.getSelected() != null) {\n FacesContext.getCurrentInstance().getExternalContext().getRequestMap().put(\"Usuario_items\", this.getSelected().getUsuarioList());\n }\n return \"/usuario/index\";\n }",
"@RequestMapping(value = \"/prescription/{id}\")\n public String prescriptionDetection(@PathVariable(\"id\") Integer visitId,Model model) {\n // Getting List of All diagnosis in System \n List<Prescription> signedPrescriptions=prescriptionService.getSignedPrescriptions();\n List<Prescription> unSignedPrescriptions=prescriptionService.getUnSignedPrescriptions();\n //// Model Attributes \n model.addAttribute(\"signedPrescriptions\", signedPrescriptions);\n model.addAttribute(\"unSignedPrescriptions\", unSignedPrescriptions);\n model.addAttribute(\"visitId\",visitId);\n // return View\n return PACKAGE_ROOT+\"prescriptions\";\n }",
"@RequestMapping(value = {\"/admin2543/view_components\"}, method = RequestMethod.GET)\n public String view_components(Model model) {\n List<Component> components = componentDAO.getAllComponents();\n \n model.addAttribute(\"component\", new Component());\n model.addAttribute(\"components\", components);\n model.addAttribute(\"componentGroups\", this.getComponentGroupNames());\n return \"admin2543/component\";\n }",
"@RequestMapping(method = RequestMethod.GET, value = \"/propAlInstancia.do\")\n public String propAlInstancia(Model model, String datos_personales, HttpSession session, HttpServletRequest request)\n {\n System.out.println(\"idDatosPersonales:\" + datos_personales);\n\n //Formato Unico\n model.addAttribute(\"datos_personales\", datos_personales);\n //Tipo organizacion\n model.addAttribute(\"tipoOrganizaciones\", daoTipoOrganizacion.findBySpecificField(\"estatus\", \"1\", \"equal\", null, null));\n //Estados\n LinkedHashMap<String, String> ordenamiento = new LinkedHashMap<String, String>();\n ordenamiento.put(\"nombre\", \"asc\");\n model.addAttribute(\"estados\", daoEstadosSia.findAll(ordenamiento));\n //TipoProyecto\n model.addAttribute(\"tipoProyecto\", daoTipoProyecto.findBySpecificField(\"status\", \"1\", \"equal\", null, null));\n //Perfil\n model.addAttribute(\"perfiles\", daoPerfil.findBySpecificField(\"estatus\", \"1\", \"equal\", null, null));\n //Programa\n model.addAttribute(\"programas\", daoPrograma.findBySpecificField(\"status\", \"1\", \"equal\", null, null));\n //Command\n model.addAttribute(\"propuesta\", new PropAluInstProyBean());\n return \"/Organizaciones/propAlInstancia\";\n }",
"@RequestMapping(method = RequestMethod.GET, value = \"/panelOrganizacion.do\")\n public String panelOrganizacion(Model model, HttpSession session, HttpServletRequest request, String mensaje)\n {\n if (new ValidaSesion().validaOrganizacion(session, request))\n {\n String idUsuarioInstancia = session.getAttribute(\"NCONTROL\").toString();\n UsuarioInstancia uInstancia = (UsuarioInstancia) daoUsuarioInstancia\n .find(BigDecimal.valueOf(Double.valueOf(idUsuarioInstancia)));\n List<Instancia> instanciasu = new ArrayList<Instancia>(uInstancia.getInstancias());\n\n System.err.println(\"Hay tantas intancias: \" + instanciasu.size());\n model.addAttribute(\"numinstancias\", instanciasu.size());\n model.addAttribute(\"instanciasu\", instanciasu);\n model.addAttribute(\"nombre\", session.getAttribute(\"NOMBRE\"));\n if (session.getAttribute(\"MENSAJE\") != null)\n {\n model.addAttribute(\"mensaje1\", session.getAttribute(\"MENSAJE\").toString());\n }\n return \"/PanelOrganizacion/panelOrganizacion\";\n }\n else\n {\n model.addAttribute(\"error\", \"<div class='alert alert-danger'>Debes iniciar sesión para acceder a esta sección.</div>\");\n return \"redirect:login.do\";\n }\n }",
"@GetMapping(\"new\")\n// public String showTaskForm(String email, Model model, HttpSession session) {\n public String showTaskForm(Model model) {\n model.addAttribute(\"task\", new Task());\n model.addAttribute(\"projects\", projectService.findAll());\n model.addAttribute(\"users\", userService.findAll());\n\n return NEW_TASK_PAGE;\n }",
"@RequestMapping(value = \"list\", method = RequestMethod.GET)\n public String list(Model model) {\n LOGGER.info(\"Invoke list()\");\n List<TbUser> tbUsers = tbUserService.selectAll();\n model.addAttribute(\"tbUsers\", tbUsers);\n return \"user_list\";\n }",
"@RequestMapping(\"/programmers-list\")\n public List<Programmer> getProgrammerListMembers() {\n return programmerService.getProgrammersListMembers();\n\n }",
"public String listViaje() {\n\t\t\t//resetForm();\n\t\t\treturn \"/boleta/list.xhtml\";\t\n\t\t}",
"@RequestMapping(\"/listjobs\")\n public String listJobs(Model model)\n {\n model.addAttribute(\"alljobs\",jobs.findAll());\n return \"listjobs\";\n }",
"@RequestMapping(method = RequestMethod.GET, value = \"/propAlProyecto.do\")\n public String propAlProyecto(Model model, String datos_personales, String idInstancia, HttpSession session, HttpServletRequest request)\n {\n System.out.println(\"idDatosPersonales:\" + datos_personales);\n System.out.println(\"idInstancia:\" + idInstancia);\n\n Instancia instancia = (Instancia) daoInstancia.find(BigDecimal.valueOf(Double.parseDouble(idInstancia)));\n model.addAttribute(\"nombreInstancia\", instancia.getNombre());\n //Formato Unico\n model.addAttribute(\"datos_personales\", datos_personales);\n //Estados\n LinkedHashMap<String, String> ordenamiento = new LinkedHashMap<String, String>();\n ordenamiento.put(\"nombre\", \"asc\");\n model.addAttribute(\"estados\", daoEstadosSia.findAll(ordenamiento));\n //TipoProyecto\n model.addAttribute(\"tipoProyecto\", daoTipoProyecto.findBySpecificField(\"status\", \"1\", \"equal\", null, null));\n //Perfil\n model.addAttribute(\"perfiles\", daoPerfil.findBySpecificField(\"estatus\", \"1\", \"equal\", null, null));\n //Programa\n model.addAttribute(\"programas\", daoPrograma.findBySpecificField(\"status\", \"1\", \"equal\", null, null));\n //Command\n Proyectos proyecto = new Proyectos();\n proyecto.setIdInstancia(instancia);\n model.addAttribute(\"proyecto\", proyecto);\n\n return \"/Organizaciones/propAlProyecto\";\n }",
"@RequestMapping(value = \"/findAll_doctor.action\")\r\n\t\tpublic String findAll_doctor(HttpServletRequest request,Model model){\n\t model.addAttribute(\"DoctorList\", userService.findAll_doctor());\r\n\t\t\t\r\n\t\t\treturn \"list\";\r\n\t\t}",
"@RequestMapping(value=\"/tracuunguoidang\" ,method = RequestMethod.GET)\r\n\tpublic String tracuugiangvien(Model model, HttpSession session){\n\t\tClientConfig config = new DefaultClientConfig();\r\n\t\tClient client = Client.create(config);\r\n\t\tWebResource resource = client.resource(Server.addressAuthenWS);\r\n\t\tForm form = new Form();\r\n\t\tform.add(\"username\", \"\");\r\n\t\tform.add(\"email\", \"\");\r\n\t\tString json = resource.path(\"userinfo/findAll\").cookie(new NewCookie(\"JSESSIONID\", session.getAttribute(\"sessionid\").toString())).post(String.class,form);\r\n\t\tType type = new TypeToken<ArrayList<User>>(){}.getType();\r\n\t\tArrayList<User> dsuser = new Gson().fromJson(json, type);\r\n\t\tmodel.addAttribute(\"dsuser\", dsuser);\r\n\t\treturn \"tracuunguoidang\";\r\n\t}",
"@RequestMapping(value = \"/add/userList\", method = RequestMethod.GET)\r\n\tpublic ModelAndView listUser() {\n\t\t\r\n\t\tSystem.out.println(\"Entering list user method\");\r\n\t\tuserDAO.list();\r\n\t\t\r\n\t\tModelAndView mv = new ModelAndView(\"page\");\r\n\t\tmv.addObject(\"greeting\", \"This is list of value \");\r\n\t\treturn mv;\r\n\t}",
"public abstract String getSessionList();",
"@GetMapping(\"/list\")\n\tpublic String listPerson(Model theModel) {\n\t\tList<Person> thePerson = patientKeeperService.getPerson();\n\n\t\t// add to the spring model\n\t\ttheModel.addAttribute(\"person\", thePerson);\n\n\t\treturn \"list-person\";\n\t}",
"@RequestMapping(value = \"/\", method = RequestMethod.GET)\n\tpublic String home(HttpSession session,Model model) {\n\t\tUser user=(User)session.getAttribute(\"user\");\n\t\tif(user!=null) {\n\t\t\tlogger.info(\"user {}\",user.getName());\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\tList<User> users=testService.getUsers();\n\t\t\n\t\n\t\tmodel.addAttribute(\"users\", users);\n\t\t\n\t\t\n\t\treturn \"home\";\n\t}",
"@RequestMapping(\"/archive\")\n public String list(Model model) {\n model.addAttribute(\"posts\", educationFeedbackService.list());\n return \"admin/education/listArchive\";\n }",
"private void buildAdmin()\n {\n User admin = userServiceImpl.getUserByUsername(adminUsername);\n try\n {\n //If the application is started for the first time (e.g., the admin is not in the DB)\n if(admin==null)\n { \n \t registerUserService.save(adminUsername,password,Role.Admin); \n }\n //if the application has previously been started (e.g., the admin is already present in the DB)\n else\n {\n \t //Do nothing!! \n }\n \n //Always add this retails when started the application.\n \n \tCountry mexico = new Country();\n \tmexico.setCountryId(1);\n \tmexico.setCountryName(\"México\");\n\t\t\tmexico.setCurrency(\"Peso MXN\");\n\t\t\tmexico.setNickname(\"MX\");\n\t\t\taddCountryService.saveCountry(mexico);\t\n\t\t\t\n\t\t\t\n\t\t\tCountry usa = new Country();\n\t\t\tusa.setCountryId(2);\n\t\t\tusa.setCountryName(\"United States\");\n\t\t\tusa.setCurrency(\"USD\");\n\t\t\tusa.setNickname(\"US\");\n\t\t\taddCountryService.saveCountry(usa);\n\t\t\t\n\t\t\t\n\t\t\tRetail retail1 = new Retail();\n\t\t\tretail1.setRetailId(1);\n\t\t\tretail1.setRetailName(\"Amazon\");\n\t\t\tretail1.setCrawlerName(\"Amazon\");\n\t\t\tretail1.setCountry(mexico);\t\t\n\t\t\taddRetailService.saveRetail(retail1);\n\t\t\t\n\t\t\t\n\t\t\tRetail retail2 = new Retail();\n\t\t\tretail2.setRetailId(2);\n\t\t\tretail2.setRetailName(\"Arome\");\n\t\t\tretail2.setCrawlerName(\"Arome\");\n\t\t\tretail2.setCountry(mexico);\t\t\n\t\t\taddRetailService.saveRetail(retail2);\n\t\t\t\n\t\t\t\n\t\t\tRetail retail3 = new Retail();\n\t\t\tretail3.setRetailId(3);\n\t\t\tretail3.setRetailName(\"Chedraui\");\n\t\t\tretail3.setCrawlerName(\"Chedraui\");\n\t\t\tretail3.setCountry(mexico);\t\t\n\t\t\taddRetailService.saveRetail(retail3);\n\t\t\t\n\t\t\t\n\t\t\tRetail retail4 = new Retail();\n\t\t\tretail4.setRetailId(4);\n\t\t\tretail4.setRetailName(\"Laeuropea\");\n\t\t\tretail4.setCrawlerName(\"Laeuropea\");\n\t\t\tretail4.setCountry(mexico);\t\t\n\t\t\taddRetailService.saveRetail(retail4);\n\t\t\t\n\t\t\tRetail retail5 = new Retail();\n\t\t\tretail5.setRetailId(5);\n\t\t\tretail5.setRetailName(\"Linio\");\n\t\t\tretail5.setCrawlerName(\"Linio\");\n\t\t\tretail5.setCountry(mexico);\t\t\n\t\t\taddRetailService.saveRetail(retail5);\n\t\t\t\n\t\t\tRetail retail6 = new Retail();\n\t\t\tretail6.setRetailId(6);\n\t\t\tretail6.setRetailName(\"Liverpool\");\n\t\t\tretail6.setCrawlerName(\"Liverpool\");\n\t\t\tretail6.setCountry(mexico);\t\t\n\t\t\taddRetailService.saveRetail(retail6);\n\t\t\t\n\t\t\tRetail retail7 = new Retail();\n\t\t\tretail7.setRetailId(7);\n\t\t\tretail7.setRetailName(\"MercadoLibre\");\n\t\t\tretail7.setCrawlerName(\"MercadoLibre\");\n\t\t\tretail7.setCountry(mexico);\t\t\n\t\t\taddRetailService.saveRetail(retail7);\n\t\t\t\n\t\t\tRetail retail8 = new Retail();\n\t\t\tretail8.setRetailId(8);\n\t\t\tretail8.setRetailName(\"NutritionDepot\");\n\t\t\tretail8.setCrawlerName(\"NutritionDepot\");\n\t\t\tretail8.setCountry(mexico);\t\t\n\t\t\taddRetailService.saveRetail(retail8);\n\t\t\t\n\t\t\tRetail retail9 = new Retail();\n\t\t\tretail9.setRetailId(9);\n\t\t\tretail9.setRetailName(\"Osom\");\n\t\t\tretail9.setCrawlerName(\"Osom\");\n\t\t\tretail9.setCountry(mexico);\t\t\n\t\t\taddRetailService.saveRetail(retail9);\n\t\t\t\n\t\t\tRetail retail10 = new Retail();\n\t\t\tretail10.setRetailId(10);\n\t\t\tretail10.setRetailName(\"PerfumesMexico\");\n\t\t\tretail10.setCrawlerName(\"PerfumesMexico\");\n\t\t\tretail10.setCountry(mexico);\t\t\n\t\t\taddRetailService.saveRetail(retail10);\n\t\t\t\n\t\t\tRetail retail11 = new Retail();\n\t\t\tretail11.setRetailId(11);\n\t\t\tretail11.setRetailName(\"PerfumesOnline\");\n\t\t\tretail11.setCrawlerName(\"PerfumesOnline\");\n\t\t\tretail11.setCountry(mexico);\t\t\n\t\t\taddRetailService.saveRetail(retail11);\n\t\t\t\n\t\t\t\n\t\t\tRetail retail12 = new Retail();\n\t\t\tretail12.setRetailId(12);\n\t\t\tretail12.setRetailName(\"Prissa\");\n\t\t\tretail12.setCrawlerName(\"Prissa\");\n\t\t\tretail12.setCountry(mexico);\t\t\n\t\t\taddRetailService.saveRetail(retail12);\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tRetail retail13 = new Retail();\n\t\t\tretail13.setRetailId(13);\n\t\t\tretail13.setRetailName(\"Sanborns\");\n\t\t\tretail13.setCrawlerName(\"Sanborns\");\n\t\t\tretail13.setCountry(mexico);\t\t\n\t\t\taddRetailService.saveRetail(retail13);\n\t\t\t\n\t\t\t\n\t\t\tRetail retail14 = new Retail();\n\t\t\tretail14.setRetailId(14);\n\t\t\tretail14.setRetailName(\"Soriana\");\n\t\t\tretail14.setCrawlerName(\"Soriana\");\n\t\t\tretail14.setCountry(mexico);\t\t\n\t\t\taddRetailService.saveRetail(retail14);\n\t\t\t\n\t\t\t\n\t\t\tRetail retail15 = new Retail();\n\t\t\tretail15.setRetailId(15);\n\t\t\tretail15.setRetailName(\"SuperWalmart\");\n\t\t\tretail15.setCrawlerName(\"SuperWalmart\");\n\t\t\tretail15.setCountry(mexico);\t\t\n\t\t\taddRetailService.saveRetail(retail15);\n\t\t\t\n\t\t\t\n\t\t\tRetail retail16 = new Retail();\n\t\t\tretail16.setRetailId(16);\n\t\t\tretail16.setRetailName(\"SuplementosFitness\");\n\t\t\tretail16.setCrawlerName(\"SuplementosFitness\");\n\t\t\tretail16.setCountry(mexico);\t\t\n\t\t\taddRetailService.saveRetail(retail16);\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tRetail retail17 = new Retail();\n\t\t\tretail17.setRetailId(17);\n\t\t\tretail17.setRetailName(\"Walmart\");\n\t\t\tretail17.setCrawlerName(\"Walmart\");\n\t\t\tretail17.setCountry(mexico);\t\t\n\t\t\taddRetailService.saveRetail(retail17);\n }\n catch (Exception e)\n {\n e.printStackTrace();\n System.out.println(\"Errors occurred during initialization. System verification is required.\");\n }\n }",
"@RequestMapping(value = \"/list\", method = RequestMethod.GET)\n public String loadUsers(Model model) {\n if (logger.isInfoEnabled()) {\n logger.info(\"TCH User Management sub menu Viewed by user {}\", SecurityContextHolder.getContext()\n .getAuthentication().getName());\n }\n List<UserConfigurationProperties> userConfigurationProperties = userConfigurationService.loadUsers();\n model.addAttribute(\"users\",\n new JsonObjectConverter<List<UserConfigurationProperties>>().stringify(userConfigurationProperties));\n model.addAttribute(C_MODEL_ATTR_ROLES, userConfigurationService.getAllRoles());\n model.addAttribute(C_MODEL_ATTR_ISSUER, issuerService.getIssuersSortedAscendingByName());\n return V_USER_PAGE;\n\n }",
"@RequestMapping(\"/clienteLista\")\r\n\tpublic String indice(Model model){\t\t\r\n\t\t\r\n\t\tmodel.addAttribute(\"cliente\", new Cliente()); //Al iniciar página siempre pasamos instancia vacía\r\n\t\t\r\n\t\treturn \"clienteLista\";\r\n\t}",
"@RequestMapping(value = \"/admin\") public String getControlCentreAdminPage(final Model model) {\n List<Announcement> announcements = announcementService.getAllAnnouncements();\n\n logger.trace(\"Announcements list size: \" + announcements.size());\n\n model.addAttribute(\"announcements\", announcements);\n\n return ANNOUNCEMENT_ADMIN;\n }",
"protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n ArrayList<GroupModel> all=GroupDao.display();\n request.setAttribute(\"group\",all);\n RequestDispatcher rds=request.getRequestDispatcher(\"DisplayGroup.jsp\");\n rds.forward(request, response);\n \n \n\n \n }",
"@Override\r\n\tpublic List<Admin> getAdminDetails() {\n\t\tList<Admin> admin =dao.getAdminDetails();\r\n return admin;\r\n\t}"
] |
[
"0.61091727",
"0.59269994",
"0.58832306",
"0.5867021",
"0.58446383",
"0.5700944",
"0.56996876",
"0.5688669",
"0.5633831",
"0.56302935",
"0.55994016",
"0.5500913",
"0.5484506",
"0.54822975",
"0.5466245",
"0.5460351",
"0.54432863",
"0.5438789",
"0.5433036",
"0.54264635",
"0.5418644",
"0.53983146",
"0.53961325",
"0.5395132",
"0.53844416",
"0.5381975",
"0.5378508",
"0.5374975",
"0.5351368",
"0.5346807",
"0.53409445",
"0.533785",
"0.5336224",
"0.533602",
"0.53318626",
"0.5327515",
"0.5325058",
"0.5324949",
"0.5321431",
"0.5316638",
"0.5314031",
"0.5311059",
"0.52986526",
"0.5288317",
"0.52725494",
"0.52674866",
"0.526123",
"0.5253912",
"0.5232183",
"0.522915",
"0.5228202",
"0.52255195",
"0.5211513",
"0.52106667",
"0.5204695",
"0.5203695",
"0.5202953",
"0.51957023",
"0.5193887",
"0.5190241",
"0.5183734",
"0.5182597",
"0.51783144",
"0.51700115",
"0.51641476",
"0.5156396",
"0.5154175",
"0.5154106",
"0.51536846",
"0.5153609",
"0.51518047",
"0.5149585",
"0.5147876",
"0.51460254",
"0.5145276",
"0.5145174",
"0.5142935",
"0.5142794",
"0.5140448",
"0.51389825",
"0.5134834",
"0.51344126",
"0.51269644",
"0.5123298",
"0.5123216",
"0.5119798",
"0.5117016",
"0.511575",
"0.51144236",
"0.51094854",
"0.50999516",
"0.50977576",
"0.50969636",
"0.509664",
"0.5089789",
"0.5089737",
"0.50888395",
"0.5088114",
"0.5085222",
"0.5080629",
"0.50693774"
] |
0.0
|
-1
|
methods creates a random angle for the blue enemy to travel
|
public double calculateDegToAttack() {
double randX = Math.random() * (MAX_X - MIN_X + 1) + MIN_X;
double tempX = randX - this.getX();
double tempY = this.getY() - Y_HEIGHT;
double degRads = 0;
double deg = 0;
System.out.println("x: " + tempX + " y: " + tempY);
if(tempX<0) {
tempX*=-1;
degRads = Math.atan(tempY/tempX);
deg = Math.toDegrees(degRads);
deg = deg + ((90-deg)*2);
}else {
degRads = Math.atan(tempY/tempX);
deg = Math.toDegrees(degRads);
}
if(deg < 0) {
deg+=360;
}
System.out.println("degs: " + deg);
spaceToAttack = new space(randX, Y_HEIGHT);
return deg;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void randomWalk(){\r\n int newAngle = (int) ( (double) Math.random() * 360) ;\r\n\r\n super.xVelocity = (velocity * Math.cos(newAngle * Math.PI/180));\r\n super.yVelocity = (velocity * Math.cos(newAngle * Math.PI/180));\r\n }",
"public Ant(){ // The position and direction of the ant is completely randomizated in it's creation\n this.position[0] = (int)Math.floor(Math.random() * 20); \n this.position[1] = (int)Math.floor(Math.random() * 20);\n this.image = (int)Math.floor(Math.random() * 4);\n }",
"static Direction randomDirection() {\n\t\treturn new Direction((float)Math.random() * 2 * (float)Math.PI);\n\t}",
"public void randomizeDirection()\n\t{\n\t\txSpeed = (int) (Math.pow(-1, random.nextInt(2)) * speed);\n\t\tySpeed = (int) (Math.pow(-1, random.nextInt(2)) * speed);\n\t}",
"private void goRandomDirection() {\n\t\tdesiredDirection = Math.random() * 360.0;\n\t}",
"Angle createAngle();",
"private void rngDirection() {\r\n Random direction = new Random();\r\n float rngX = (direction.nextFloat() -0.5f) *2;\r\n float rngY = (direction.nextFloat() -0.5f) *2;\r\n\r\n rngX = Float.parseFloat(String.format(java.util.Locale.US, \"%.1f\", rngX));\r\n rngY = Float.parseFloat(String.format(java.util.Locale.US, \"%.1f\", rngY));\r\n\r\n\r\n while(rngX == 0) {\r\n rngX = (direction.nextFloat() -0.5f) *2;\r\n }\r\n\r\n while(rngY == 0) {\r\n rngY = (direction.nextFloat() -0.5f) *2;\r\n }\r\n\r\n setSpeedX(rngX);\r\n setSpeedY(rngY);\r\n }",
"public static Direction randomDirection()\n {\n Random randNumGen = RandNumGenerator.getInstance();\n return new Direction(randNumGen.nextInt(FULL_CIRCLE));\n }",
"private int newSpeed() {\n //makes a random speed for the ball in (-50,-15)U(15,50)\n int n = r.nextInt(71) - 35;\n if (n < 0) {\n n = n - 15;\n } else {\n n = n + 15;\n }\n return n;\n }",
"protected double findAngleToEnemy(Movable enemy){\n\t\tdouble enemyX = enemy.getX() - x;\n\t\tdouble enemyY = enemy.getY() - y;\n\t\treturn Math.atan2(enemyX, enemyY);\n\t}",
"public void perturbDirection(\r\n\t) {\r\n\t\tmDirection.x += 1e-5*Math.random();\t\t\t\r\n\t\tmDirection.y += 1e-5*Math.random();\r\n\t\tmDirection.z += 1e-5*Math.random();\r\n\t}",
"private static int randomDirection() {\n return (int) (Math.random() * Direction.values().length);\n }",
"@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 }",
"public void randomTeleport() {\n Random random = new Random(seed);\n seed = random.nextInt(10000);\n int randomY = RandomUtils.uniform(random, 0, worldHeight);\n int randomX = RandomUtils.uniform(random, 0, worldWidth);\n int randomDirection = RandomUtils.uniform(random, 0, 4);\n move(randomX, randomY);\n turn(randomDirection);\n }",
"public void randomiseBotDirections() {\n\t\tfor (int i = 0; i < bots.size(); i++) {\n\t\t\tbots.get(i).setDirection(Math.random() * 360);\n\t\t}\n\t}",
"private void moveRandomly()\r\n {\r\n if (Greenfoot.getRandomNumber (100) == 50)\r\n turn(Greenfoot.getRandomNumber(360));\r\n else\r\n move(speed);\r\n }",
"public void Attack(){\n float randomx = (float)(Math.random()-0.5)*attackRange*GameView.instance.cameraSize/10;\n float randomy = (float)(Math.random()-0.5)*attackRange*GameView.instance.cameraSize/5;\n Vector2 target = GameView.instance.player.aimFor();\n float dx = target.x-creationPoint.x;\n float dy =target.y-creationPoint.y;\n float l= (float)Math.sqrt(dx*dx+dy*dy);\n dx = dx/l-((float)Math.random()-0.5f)/2;\n dy = dy/l-(float)(Math.random())/10;\n ProjectilePool.instance.shootArrow(creationPoint.x, creationPoint.y, 1, dx, dy, 3);\n }",
"public void update(){\n // random move\n if(alive){\n posX += velX * cos(angle);\n posY += velY * sin(PI/4);\n angle += 0.04f*dir;\n if(random(0, 16) < 8){\n dir *= -1;\n }\n }\n }",
"private float genY(float x) {\r\n x = Math.abs(x);\r\n if (_rand.nextBoolean()) {\r\n return x * (float)Math.tan(Math.acos(x/20.0));\r\n } else {\r\n return -x * (float)Math.tan(Math.acos(x/20.0));\r\n }\r\n }",
"@Override\n public double chooseGunAngle(double bulletPower, Point2D.Double myLocation, double absoluteBearingToEnemy) {\n if (enemyLateralVelocity != 0)\n {\n if (enemyLateralVelocity < 0)\n enemyDirection = -1;\n else\n enemyDirection = 1;\n }\n\n double guessfactor = chooseGuessFactor(bulletPower, myLocation);\n\n return Utils.normalAbsoluteAngle(absoluteBearingToEnemy + enemyDirection * guessfactor * MathUtils.maxEscapeAngle(Rules.getBulletSpeed(bulletPower)));\n }",
"int randomPoint() { return 1 + (int)Math.round((Math.random()*20) % (size - 2)); }",
"private void spawnRandomAsteroid() {\n\t\tRandom r = new Random();\n\n\t\t// The size of the asteroid is randomised.\n\t\tdouble size = r. nextDouble() * (AsteroidsAsteroid.maximumSize - AsteroidsAsteroid.minimumSize) + AsteroidsAsteroid.minimumSize;\n\n\t\t// The spawn distance is a fair distance away from the action.\n\t\tfinal double spawnDistance = cameraZoom * 2 + size;\n\n\t\t// Same with its velocity magnitude.\n\t\tdouble decidedVelocity = r.nextDouble() * (AsteroidsAsteroid.maximumVelocity - AsteroidsAsteroid.minimumVelocity) + AsteroidsAsteroid.minimumVelocity;\n\n\t\t// And the angle.\n\t\tdouble decidedAngle = r.nextDouble() * 360 - 180;\n\n\t\t// The velocity is then converted to a Vector3.\n\t\tVector3 velocity = new Vector3(decidedVelocity * -Math.sin(Math.toRadians(decidedAngle)), decidedVelocity * Math.cos(Math.toRadians(decidedAngle)));\n\n\t\t// Then we pick a random point on the screen.\n\t\tVector3 randomPoint = new Vector3(r.nextDouble() * 2 * cameraZoom - cameraZoom, r.nextDouble() * 2 * cameraZoom - cameraZoom);\n\n\t\t// We then set the asteroid's starting position as that spawn distance away from the point\n\t\t// in the reverse direction to its velocity.\n\t\tVector3 startingPosition = randomPoint.add(new Vector3(spawnDistance * Math.sin(Math.toDegrees(-decidedAngle)), spawnDistance * -Math.cos(Math.toDegrees(-decidedAngle))));\n\n\t\t// Then we just create the asteroid.\n\t\tAsteroidsAsteroid asteroid = new AsteroidsAsteroid(GameObject.ROOT, this, size, velocity);\n\t\tasteroid.translate(startingPosition);\n\t\tasteroids.add(asteroid);\n\n\t}",
"double getAngle();",
"double getAngle();",
"public SeaUrchin()\n {\n speed = Greenfoot.getRandomNumber(2) +1;\n setRotation(Greenfoot.getRandomNumber(360)); \n }",
"public void randomDestino(){\n\t\tRandom aleatorio = new Random();\n\t\tint numero = aleatorio.nextInt(2);\n\t\tif (numero == 0)\n\t\t\tsetGiro(90);\n\t\telse \n\t\t\tsetGiro(270);\n\t}",
"public void randomWalk() {\n if (getX() % GameUtility.GameUtility.TILE_SIZE < 5 && getY() % GameUtility.GameUtility.TILE_SIZE < 5) {\n if (canChangeDirection) {\n direction = (int) (Math.random() * 3);\n direction += 1;\n direction *= 3;\n canChangeDirection = false;\n }\n }\n move(direction);\n if (timer >= timeTillChanngeDirection) {\n canChangeDirection = true;\n timer = 0;\n }\n\n if (lastLocation.x == this.getLocation().x && lastLocation.y == this.getLocation().y) {\n direction = (direction + 3) % 15;\n canChangeDirection = false;\n\n }\n lastLocation = this.getLocation();\n\n }",
"private void setupEnemySpawnPoints() {\n float ring = ProtectConstants.VIEWPORT_WIDTH / 2 + (ProtectConstants.GAME_OBJECT_SIZE * 2);\n float angle = 18; // start angle\n for(int i = 1; i < ProtectConstants.COLUMNS + 1; i++){\n enemySpawnPoints.add(divideCircle(ring, angle));\n angle += 360 / ProtectConstants.COLUMNS;\n }\n enemySpawnPoints.shuffle();\n }",
"public void setDirection() {\n\t\tdouble randomDirection = randGen.nextDouble();\n\t\tif (randomDirection < .25) {\n\t\t\tthis.xDirection = 1;\n\t\t\tthis.yDirection = -1;\n\t\t} else if (randomDirection < .5) {\n\t\t\tthis.xDirection = -1;\n\t\t\tthis.yDirection = -1;\n\t\t} else if (randomDirection < .75) {\n\t\t\tthis.xDirection = -1;\n\t\t\tthis.yDirection = 1;\n\t\t} else {\n\t\t\tthis.xDirection = 1;\n\t\t\tthis.yDirection = 1;\n\t\t}\n\t}",
"private void randomBehavior() {\n\t\trandom = rand.nextInt(50);\n\t\tif (random == 0) {\n\t\t\trandom = rand.nextInt(4);\n\t\t\tswitch (random) {\n\t\t\t\tcase 0:\n\t\t\t\t\tchangeFacing(ACTION.DOWN);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 1:\n\t\t\t\t\tchangeFacing(ACTION.RIGHT);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\tchangeFacing(ACTION.UP);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\tchangeFacing(ACTION.LEFT);\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}",
"public void randomY() {\r\n\t\tdouble randomDub = Math.random();\r\n\t\tint randomIntY = (int)randomDub*4;\r\n\t\tthis.ycoord = randomIntY;\r\n\t}",
"public static double setRot(Point position){\r\n\t\tRandom random = new Random();\r\n\t\t//the canvas gets divided into 4 parts\r\n\t\t//west side\r\n\t\tif(position.x < 400){\r\n\t\t\t//north west\r\n\t\t\tif(position.y < 300){\r\n\t\t\t\treturn random.nextInt(61-30) + 30;\r\n\t\t\t}\r\n\t\t\t//south west\r\n\t\t\telse{\r\n\t\t\t\treturn random.nextInt(331-300) + 300;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//east side\r\n\t\telse{\r\n\t\t\t//north east\r\n\t\t\tif(position.y < 300){\r\n\t\t\t\treturn random.nextInt(151-120) + 120;\r\n\t\t\t}\r\n\t\t\t//south east\r\n\t\t\telse{\r\n\t\t\t\treturn random.nextInt(241-210) + 210;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public abstract void steer(double angle);",
"public AngledDuck(String color, int xco, int yco) {\n\t\tsuper(color, xco, yco);\n\t\tangle = (int)(Math.random()*90)+20;\n\t\tpointVal = 5;\n\t\t// TODO Auto-generated constructor stub\n\t\t\n\t}",
"public double[] randomPoint(){\n\t\t\n\t\t//d1 = first random value\n\t\t//d2 = second random value\n\t\t\n\t\tdouble d1;\n\t\tdouble d2;\n\t\t\n\t\td1 = RAD_TO_DEG*(2.*PI*rnd1.nextDouble()-PI);\n\t\td2 = RAD_TO_DEG*acos(2.*rnd1.nextDouble()-1.) - 90.;\n\t\t\n\t\treturn new double[]{d2,d1};\n\t}",
"private float calculateAngle() {\r\n\r\n\t\tdouble angleTemp = Math.atan2(Target.getY() - y, Target.getX() - x);\r\n\t\t// I needed to use wikipedia to get this i\r\n\t\t// did not learn this in math and needed\r\n\t\t// to use a couplle youtube tutorials to\r\n\t\t// find out how to do the math in java\r\n\t\t// aswell thank fully one had the exact\r\n\t\t// way of doing this\r\n\t\treturn (float) Math.toDegrees(angleTemp) + 90;\r\n\t}",
"public void act() \r\n {\r\n move(5);\r\n if(isAtEdge())\r\n turn(4);\r\n if(Greenfoot.getRandomNumber(35) < 34)\r\n turn(10);\r\n if(Greenfoot.getRandomNumber(20)<5)\r\n turn(-15);\r\n }",
"public void randomizeDirection() {\n\t\tRandom r = new Random();\n\t\tint randomDir = r.nextInt(8);\n\t\tdirection = Direction.values()[randomDir];\n\t}",
"@Test\r\n public void testCalculateAngle2() {\r\n System.out.println(\"calculateAngle2\");\r\n DialDraw instance = new TachometerDraw();\r\n instance.setValue(0);\r\n double expResult = Math.toRadians(180);\r\n double result = instance.calculateAngle();\r\n assertEquals(result, expResult, 0.0001);\r\n }",
"@Test\r\n public void testCalculateAngle4() {\r\n System.out.println(\"calculateAngle4\");\r\n DialDraw instance = new TachometerDraw();\r\n instance.setValue(90);\r\n double expResult = Math.toRadians(18);\r\n double result = instance.calculateAngle();\r\n assertEquals(result, expResult, 0.0001);\r\n }",
"@Test\r\n public void testCalculateAngle1() {\r\n System.out.println(\"calculateAngle1\");\r\n DialDraw instance = new TachometerDraw();\r\n instance.setValue(36);\r\n double expResult = Math.toRadians(115.2);\r\n double result = instance.calculateAngle();\r\n assertEquals(result, expResult, 0.0001);\r\n }",
"public Agent generateAgent(){\r\n\r\n\t\t\tlogger.info(\"generateAgent method\");\r\n\r\n\t\t\tPatch currentPatch = randPatch();\r\n\r\n\t\t\tlogger.info(\"random patch: x = \" + currentPatch.getX()\r\n\t\t\t\t\t\t+ \" y = \" + currentPatch.getY());\r\n\r\n\r\n\t\t\tAgent agent= new Agent(currentPatch, false);\r\n\r\n\t\t\tcurrentPatch.setPerson(agent);\r\n\r\n\t\t\treturn agent;\r\n\t\t}",
"private int getAttackAngle() {\n\t\treturn (160 - (level * 10));\n\t}",
"public void generateRandomPosition() {\n\t\tx.set((int)(Math.floor(Math.random()*23+1)));\n\t\ty.set((int)(Math.floor(Math.random()*23+1)));\n\n\t}",
"public void generateColor() {\n if (army < 0)\n color = Color.getHSBColor(0f, 1 - (float) Math.random() * 0.2f, 0.5f + (float) Math.random() * 0.5f);\n else if (army > 0)\n color = Color.getHSBColor(0.7f - (float) Math.random() * 0.2f, 1 - (float) Math.random() * 0.2f, 0.4f + (float) Math.random() * 0.25f);\n else color = Color.getHSBColor(0f, 0, 0.55f + (float) Math.random() * 0.25f);\n }",
"@Test\r\n public void testCalculateAngle5() {\r\n System.out.println(\"calculateAngle5\");\r\n DialDraw instance = new TachometerDraw();\r\n instance.setValue(50);\r\n double expResult = Math.toRadians(90);\r\n double result = instance.calculateAngle();\r\n assertEquals(result, expResult, 0.0001);\r\n }",
"private void wentOffWall() {\n //random location\n b.numX = r.nextInt(2400) + 100;\n b.numY = r.nextInt(1400) + 100;\n //random speed\n b.xSpeed = this.newSpeed();\n b.ySpeed = this.newSpeed();\n }",
"private double getRandom() {\n return 2*Math.random() - 1;\n }",
"public double getAngle();",
"private void addRandomAsteroid() {\n ThreadLocalRandom rng = ThreadLocalRandom.current();\n Point.Double newAsteroidLocation;\n //TODO: dont spawn on top of players\n Point.Double shipLocation = new Point2D.Double(0,0);\n double distanceX, distanceY;\n do { // Iterate until a point is found that is far enough away from the player.\n newAsteroidLocation = new Point.Double(rng.nextDouble(0.0, 800.0), rng.nextDouble(0.0, 800.0));\n distanceX = newAsteroidLocation.x - shipLocation.x;\n distanceY = newAsteroidLocation.y - shipLocation.y;\n } while (distanceX * distanceX + distanceY * distanceY < 50 * 50); // Pythagorean theorem for distance between two points.\n\n double randomChance = rng.nextDouble();\n Point.Double randomVelocity = new Point.Double(rng.nextDouble() * 6 - 3, rng.nextDouble() * 6 - 3);\n AsteroidSize randomSize;\n if (randomChance < 0.333) { // 33% chance of spawning a large asteroid.\n randomSize = AsteroidSize.LARGE;\n } else if (randomChance < 0.666) { // 33% chance of spawning a medium asteroid.\n randomSize = AsteroidSize.MEDIUM;\n } else { // And finally a 33% chance of spawning a small asteroid.\n randomSize = AsteroidSize.SMALL;\n }\n this.game.getAsteroids().add(new Asteroid(newAsteroidLocation, randomVelocity, randomSize));\n }",
"void generateEnemy(){\n\t\tEnemy e = new Enemy((int)(Math.random()*\n\t\t\t(cp.getWidthScreen() - (ss.getWidth()/2)))\n\t\t\t,ss.getHeight(), cp.getHieghtScreen());\t\t\t\t//Enemy (int x, int y, int heightScreen)\n\t\tcp.shapes.add(e);\n\t\tenemies.add(e);\n\t}",
"public Flatbed(int angle){\r\n this.angle=angle;\r\n }",
"public double getAngleToTarget(){\n return 0d;\n }",
"private void randomMove() {\n }",
"public void setAngle( double a ) { angle = a; }",
"public static void Random() {\n\t\tRandom ran =new Random();\r\n\t\trandom=ran.nextInt(6)+1;\r\n\t\t//random=1;\r\n\t\twho=A1063307_GUI.who2;\r\n\t\tif((ch[who].status)>0) {\r\n\t\t\tch[who].location=(ch[who].location)+random;\r\n\t\t\tch[who].status=(ch[who].status)-1;\r\n\t\t\t\r\n\t\t}else {\r\n\t\t\t\treturn;\r\n\t\t\t}\t\t\r\n\t}",
"public void rollRandom() {\n\t\tthis.strength = randomWithRange();\r\n\t\tthis.wisdom = randomWithRange();\r\n\t\tthis.dexterity = randomWithRange();\r\n\t\tthis.constitution = randomWithRange();\r\n\t\tthis.intelligence = randomWithRange();\r\n\t\tthis.charisma = randomWithRange();\r\n\t}",
"static Tour rndTour() {\r\n\t\tTour tr = Tour.sequence();\r\n\t\ttr.randomize();\r\n\t\ttr.distance = tr.distance();\r\n\t\treturn tr;\r\n\t}",
"private static Directions getDirection() {\n\t\t\treturn values()[rand.nextInt(4)];\n\t\t}",
"public static void main(String[] args) {\n Hero aventurier = new Hero(200, 100);\n Equipement epee = new Equipement(\"epee\", 0);\n Monsters sorciere = new Monsters(\"witch\", 180, 0);\n Monsters barbare = new Monsters(\"olaf\", 160, 0);//Degat et point attaque sont à 0 car ils prendront les valeurs du random\n\n\n System.out.println(\"Bienvenue dans le dongeon\");\n System.out.println(\"Vous avez \" + aventurier.getPointDeVie() + \" Point de vie, \" + aventurier.getFlasqueDeau() + \" flasques pour combatre vos ennemies et une \");\n\n // i=room ;si pointdevie > room-->room+1 sinon game over(pas besoin de creer une classe)\n int i = 1;\n do {\n\n if (aventurier.getPointDeVie() > 0) ;\n {\n System.out.println(\"Room\" + i);\n\n Monsters enemieActuel = barbare;\n//nbr aleatoire entre sorcier et monster\n Random random = new Random();\n int nbrAl = random.nextInt(2 );\n//si nbr=0 = sorcier sinon barbare\n if (nbrAl == 0) {\n enemieActuel = sorciere;\n //sinon barbare\n } else {\n enemieActuel = barbare;\n }\n\n\n //Si barbare faire le do while\n\n if (enemieActuel == barbare) {\n\n do { //Faire des degats aleatoire grace au random à l'aide de l'epee\n epee.setDegat((int) (5 + (Math.random() * 30)));//comme .set dega=0 on lui donne la valeur de math.random\n int degat = epee.getDegat(); //.get renvoi la valeur au int nommer degat\n barbare.setPointDeVie(barbare.getPointDeVie() - degat);//vie - degat\n System.out.println(\"Il reste au barbare \" + barbare.getPointDeVie());//nouvelle valeur de point de vie\n\n\n //idem avec l'aventurier\n barbare.setPointAttaque((int) (5 + (Math.random() * 30)));\n int pointDattaque = barbare.getPointAttaque();\n aventurier.setPointDeVie(aventurier.getPointDeVie() - pointDattaque);\n System.out.println(\"il vous reste \" + aventurier.getPointDeVie());\n\n // tant que les Pvie de l'aventurier >= 0 et idem barbare continuer le combat\n } while (aventurier.getPointDeVie() >= 0 && barbare.getPointDeVie() >= 0);\n //à la fin du combat si pvie de l'aventurier sont >0 et que i (room) egale 5 \"gagné\"\n if (aventurier.getPointDeVie() > 0 && i==5) {\n System.out.println(\"Bravo vous avez gagné ! =)\");\n\n //Si juste pvie de l'aventurier > 0 --->room suivante\n }else if (aventurier.getPointDeVie() > 0 ){\n System.out.println(\"Bravo tu passes à la pièce suivante\");\n //on redonne les valeurs de depart pdeVie pour la nouvelle room\n aventurier.setPointDeVie(200);\n barbare.setPointDeVie(180);\n i+=1;\n }\n\n // sinon room = 6 pour envoyer le sout \"game over\"\n else {\n System.out.println(\"Game Over\");\n i = 6;\n }\n\n\n\n }\n\n //IDEM avec sorciere\n else {\n do {\n\n\n aventurier.setFlasqueDeau((int) (5 + (Math.random() * 30)));\n int degat = aventurier.getFlasqueDeau();\n sorciere.setPointDeVie(sorciere.getPointDeVie() - degat);\n System.out.println(\"Il reste à la sorciere \" + sorciere.getPointDeVie());\n\n sorciere.setPointAttaque((int) (5 + (Math.random() * 30)));\n int pointDattaque = sorciere.getPointAttaque();\n aventurier.setPointDeVie(aventurier.getPointDeVie() - pointDattaque);\n System.out.println(\"il vous reste \" + aventurier.getPointDeVie());\n\n } while (aventurier.getPointDeVie() >= 0 && sorciere.getPointDeVie() >= 0);\n if (aventurier.getPointDeVie() > 0 && i==5) {\n System.out.println(\"Bravo vous avez gagné ! =)\");\n }else if (aventurier.getPointDeVie() > 0 ){\n System.out.println(\"Bravo tu passes à la pièce suivante\");\n aventurier.setPointDeVie(200);\n sorciere.setPointDeVie(160);\n i+=1;\n }\n else {\n System.out.println(\"Game Over\");\n i = 6;\n }\n }\n } } while (i <= 5 && aventurier.getPointDeVie() > 0);\n\n\n }",
"protected void randomStep() {\n\t\tint n = curNode.getDegree();\n\t\tint r = 0;\n\n\t\tif (n > 0) {\n\t\t\tr = ctx.random().nextInt(n);\n\n\t\t\tAntCo2Edge curEdge = (AntCo2Edge) curNode.getEdge(r);\n\n\t\t\tassert curEdge != null : \"found no edge\";\n\n\t\t\tcross(curEdge, true);\n\t\t}\n\t}",
"protected Agent(){\n\t\trand = SeededRandom.getGenerator();\n\t}",
"private void random() {\n\n\t}",
"public void randomizeWalkDir(boolean byChance) {\n\t\tif(!byChance && random.nextInt(randomWalkChance) != 0) return;\r\n\t\t\r\n\t\trandomWalkTime = randomWalkDuration; // set the mob to walk about in a random direction for a time\r\n\t\t\r\n\t\t// set the random direction; randir is from -1 to 1.\r\n\t\txa = (random.nextInt(3) - 1);\r\n\t\tya = (random.nextInt(3) - 1);\r\n\t}",
"public static Point pos(){\r\n\t\tRandom random = new Random();\r\n\t\tint x = 0;\r\n\t\tint y = 0;\r\n\t\t//acts as a 4 sided coin flip\r\n\t\t//this is to decide which side the asteroid will appear\r\n\t\tint pos = random.nextInt(4);\r\n\t\t//west\r\n\t\tif(pos == 0){\r\n\t\t\tx = 0;\r\n\t\t\ty = random.nextInt(601);\r\n\t\t}\r\n\t\t//north\r\n\t\telse if(pos == 1){\r\n\t\t\tx = random.nextInt(801);\r\n\t\t\ty = 0;\r\n\t\t}\r\n\t\t//east\r\n\t\telse if(pos == 2){\r\n\t\t\tx = 800;\r\n\t\t\ty = random.nextInt(601);\r\n\t\t}\r\n\t\t//\r\n\t\telse if(pos == 3){\r\n\t\t\tx = random.nextInt(801);\r\n\t\t\ty = 600;\r\n\t\t}\r\n\t\tPoint p = new Point(x,y);\r\n\t\treturn p;\r\n\t}",
"public void generateNether(World world, Random random, int x, int y){\n\t}",
"public void makeRandColor(){}",
"@Override\n public int orinar() {\n\n return (int) (Math.random() * 400) + 400;\n }",
"private void spawnEnemy() {\n float randomEnemy = (float) Math.random();\n\n if (round == 1) {\n addActorFunction.accept(new SimpleEnemy(tileSet));\n } else {\n float speedMultiplier = 1 + (0.08f * round);\n float healthMultiplier = 1 + (0.01f * round * round);\n\n if (randomEnemy < (round - 1) * 0.1) {\n addActorFunction.accept(new HeavyEnemy(tileSet, speedMultiplier, healthMultiplier));\n } else {\n addActorFunction.accept(new SimpleEnemy(tileSet, speedMultiplier, healthMultiplier));\n }\n }\n }",
"void setAngle(double angle);",
"private void turnAround() {\n d = Math.random();\n if (d < 0.1) {\n changeAppearance();\n }\n }",
"public int getRandomDegree()\n\t{\n\t\t//TODO: Do this in cleverer, faster way!\n\t\tint pd = 0;\n\t\tdouble ra = random.nextDouble();\n\t\tdouble total = 0;\n\t\tfor(int i=0;i< length;i++)\n\t\t{\n\t\t\ttotal = total + pDist[i];\n\t\t\tif(total >= ra)\n\t\t\t{\n\t\t\t\tpd = i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tpd = length-1;\n\t\t\t\n\t\t}\n\t\t\n\t\treturn pd;\n\t}",
"public float getVelAngle() {\n\t\tif (velocity.y == 0f && velocity.x == 0f)\n\t\t\treturn restrictAngle((float) Math.random() * float2pi);\n\t\tfloat result = (float) Math.atan2(velocity.y, velocity.x);\n\t\treturn restrictAngle(result);\n\t}",
"AngleSmaller createAngleSmaller();",
"@Override\n public void specialUpdate(double time) {\n if(relativeAngle > maxAngle) {\n angleDirection = -1;\n }\n if(relativeAngle < minAngle) {\n angleDirection = 1;\n }\n relativeAngle += angleDirection * BODY_MEMBER_MOVING_SPEED * time * (person.getCurrentSpeed() / 2.0);\n }",
"private String RandomGoal() {\n\t\tList<String> list = Arrays.asList(\"m\", \"m\", \"m\", \"m\", \"m\", \"m\", \"m\", \"m\", \"t\", \"t\");\n\t\tRandom rand = new Random();\n\t\tString randomgoal = list.get(rand.nextInt(list.size()));\n\n\t\treturn randomgoal;\n\t}",
"public double simulate(){\n\t\tdouble r = Math.sqrt(-2 * Math.log(Math.random()));\n\t\tdouble theta = 2 * Math.PI * Math.random();\n\t\treturn Math.exp(location + scale * r * Math.cos(theta));\n\t}",
"private MoveAction wanderRandomly() {\n\t\tint intDir = rand.nextInt(8) + 1;\n\t\tDirection direction = Direction.fromInt(intDir);\n\t\treturn moveInDirection(direction);\n\t}",
"public double findAngleOfAttack() {\n\t\tdouble dy = this.trailingPt.y - this.leadingPt.y; // trailingPt goes first since positive numbers are down\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// y-axis in Canvas\n\t\tdouble dx = this.leadingPt.x - this.trailingPt.x;\n\t\treturn Math.atan2(dy, dx);\n\t}",
"public abstract int getRandomDamage();",
"public int eDmg(){\r\n eDmg = rand.nextInt(13);\r\n return eDmg;\r\n }",
"@Override\npublic void setAngles(Entity entity, float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch){\n}",
"public static String randomAdjective()\n {\n boolean positive = Math.random() < .5;\n if(positive){\n return randomPositiveAdj();\n } else {\n return randomNegativeAdj();\n }\n }",
"public void openDoorRandom() {\n\t\tList<direction> direct = new ArrayList<>();\n\t\tCollections.addAll(direct, direction.values());\n\t\t\n\t\tfor (int i = 0 ; i < 1000 ; i++) {\n\t\t\tVertex v = g.getEqualVertex(g.randomVertex());\n\t\t\tif (v != null) {\n\t\t\t\tCollections.shuffle(direct);\n\t\t\t\tdirection dir = direct.get(0);\n\t\t\t\tif (g.edgeDoesntExist(v,dir)) {\n\t\t\t\t\tVertex v2 = g.getEqualVertex(g.vertexByDir(v, dir));\n\t\t\t\t\tif (v2 != null) {\n\t\t\t\t\t\tEdge edge = g.getG().getEdge(v, v2);\n\t\t\t\t\t\tif (edge == null) {\n\t\t\t\t\t\t\tg.addEdge(v, v2);\n\t\t\t\t\t\t\t//System.out.println(\"added edge : \"+\"(\"+v.toString()+\",\"+v2.toString()+\")\");\n\t\t\t\t\t\t\treturn;\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}",
"public static void spawnEnemy(){\n RNG.D100();\n if(PlayerStats.LVL <= 2){\n if(RNG.num <= 90){\n enemy = \"imp\";\n }else{\n enemy = \"IMP LORD\";\n }\n }else if(PlayerStats.LVL > 2 && PlayerStats.LVL <= 3){\n if(RNG.num <= 20){\n enemy = \"imp\";\n }else if(RNG.num > 20 && RNG.num <= 90){\n enemy = \"toadman\";\n }else{\n enemy = \"IMP LORD\";\n }\n }else if(PlayerStats.LVL > 3 && PlayerStats.LVL <= 5){\n if(RNG.num <= 10){\n enemy = \"toadman\";\n }else if(RNG.num > 10 && RNG.num <= 90){\n enemy = \"giant spider\";\n }else{\n enemy = \"BROODMOTHER\";\n }\n }else if (PlayerStats.LVL > 5 && PlayerStats.LVL <= 8){\n if(RNG.num <= 30){\n enemy = \"goblin sorceror\";\n }else if(RNG.num > 30 && RNG.num <= 60){\n enemy = \"goblin warrior\";\n }else if(RNG.num >60 && RNG.num <= 90){\n enemy = \"goblin archer\";\n }else if(RNG.num > 90 && RNG.num <= 100){\n enemy = \"GOBLIN CHIEFTAN\"; \n }\n } \n }",
"public int NewMonster(){\n int r = (int) (Math.random() * (9 - 2 + 1) + 2);\n return r;\n }",
"void resetAngle();",
"private void spin() {\n\t\t\tArrayList<Integer> sequence = getDna().getSequence();\n\t\t\tint randomDirection = sequence.get(new Random().nextInt(sequence.size()));\n\t\t\tsetDirection((this.direction + randomDirection) % 8);\t\n\t\t}",
"public double getAngle() { return angle; }",
"public void generateEnd(World world, Random random, int x, int y){\n\t}",
"private void generarAno() {\r\n\t\tthis.ano = ANOS[(int) (Math.random() * ANOS.length)];\r\n\t}",
"SimulatedAnnealing() {\n generator = new Random(System.currentTimeMillis());\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 int getRandomY() {\r\n\t\treturn y1;\r\n\t}",
"@Override\n public void reAngle() {\n }",
"@Test\r\n public void testCalculateAngle3() {\r\n System.out.println(\"calculateAngle3\");\r\n DialDraw instance = new TachometerDraw();\r\n instance.setValue(100);\r\n double expResult = Math.toRadians(0);\r\n double result = instance.calculateAngle();\r\n assertEquals(result, expResult, 0.0001);\r\n }",
"AngleAdd createAngleAdd();",
"void random_alien_fires() {\n Random rand = new Random();\n int alien_index = rand.nextInt(aliens.size());\n alien_shoot_missile(aliens.get(alien_index));\n }",
"private void enemyturn() {\n if (enemy.getHealth() == 0) { // check if the enemy is still alive\n enemy.setAlive(false);\n }\n\n if (enemy.getAlive()) { // if he is alive\n // time to fuck the players day up\n System.out.println(\"\");//formatting\n System.out.println(enemy.getName() + \" attacks you!\");\n\n // calculate the damage this enemy will do\n int differenceHit = enemy.getMaxHit() - enemy.getMinHit(); // difference will be 0-3. But plus 1 (as the result will ALWAYS be +1 in the randomizer so a \"0\" will not happen.\n int minimumDamage = randomize.getRandomDamage(differenceHit); // for example, will return 0-4 if the min and max hit was 4-7. Then do a -1. Making it a 0-3 chance.\n int damage = differenceHit + minimumDamage; // add the minimum damage, to random hit damage.\n\n // calculate the players armor\n damage = damage - player.getPlayerArmorRating();\n if (damage <= 0){\n System.out.println(\"... but you dont take any damage because of your armor!\");\n } else {\n\n System.out.println(\"You take \" + damage + \" damage!\");\n player.removeHealth(damage);\n }\n\n } else { // when ded\n System.out.println(\"The enemy has no chance to fight back. As your final blow killed the enemy.\");\n }\n }",
"public void toss()\n {\n rand = new Random();//create an object\n num = rand.nextInt(2);//randomly generate two numbers\n if(num == 0)\n sideUp = \"heads\";\n else\n sideUp = \"tails\";//decide what up side is\n }"
] |
[
"0.71746075",
"0.69321305",
"0.68215847",
"0.66738456",
"0.66411245",
"0.6400669",
"0.6270968",
"0.6250932",
"0.62102175",
"0.61867553",
"0.6178593",
"0.6175537",
"0.61748785",
"0.61491364",
"0.61453813",
"0.607289",
"0.60727316",
"0.6039768",
"0.603301",
"0.60169303",
"0.6013555",
"0.60125923",
"0.5988097",
"0.5988097",
"0.5979895",
"0.59646934",
"0.5958171",
"0.59581345",
"0.59287363",
"0.5916662",
"0.58853734",
"0.5843316",
"0.5836494",
"0.5832103",
"0.5823459",
"0.58098567",
"0.5776064",
"0.57725364",
"0.5760709",
"0.57592094",
"0.57567865",
"0.5753279",
"0.5752923",
"0.57415503",
"0.5725499",
"0.5714954",
"0.5712902",
"0.5705826",
"0.56942755",
"0.5691076",
"0.5672601",
"0.5639933",
"0.5639177",
"0.56306833",
"0.5629691",
"0.56266385",
"0.5621803",
"0.5621392",
"0.5616783",
"0.5615235",
"0.5605717",
"0.5597579",
"0.55765516",
"0.5569887",
"0.5561305",
"0.5558861",
"0.5549855",
"0.55439144",
"0.5541964",
"0.55345035",
"0.55283314",
"0.55279654",
"0.55268276",
"0.5525843",
"0.5524116",
"0.552304",
"0.55211985",
"0.5518322",
"0.55183125",
"0.55113393",
"0.550048",
"0.54827225",
"0.547656",
"0.5467214",
"0.5460736",
"0.54586446",
"0.5456765",
"0.5449534",
"0.54485625",
"0.5445732",
"0.54434824",
"0.5439556",
"0.54276484",
"0.54209816",
"0.54141396",
"0.5409825",
"0.53970116",
"0.53896314",
"0.5389472",
"0.53812873"
] |
0.6006619
|
22
|
calculates the degrees for the blue enemy to return after attacking
|
public double calculateDegToRetreat() {
double newDeg = (degToAttack + 180) % 360;
System.out.println(newDeg);
return newDeg;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public double calculateDegToAttack() {\r\n\t\tdouble randX = Math.random() * (MAX_X - MIN_X + 1) + MIN_X;\r\n\t\tdouble tempX = randX - this.getX();\r\n\t\tdouble tempY = this.getY() - Y_HEIGHT;\r\n\t\tdouble degRads = 0;\r\n\t\tdouble deg = 0;\r\n\t\tSystem.out.println(\"x: \" + tempX + \" y: \" + tempY);\r\n\t\tif(tempX<0) {\r\n\t\t\ttempX*=-1;\r\n\t\t\tdegRads = Math.atan(tempY/tempX);\r\n\t\t\tdeg = Math.toDegrees(degRads);\r\n\t\t\tdeg = deg + ((90-deg)*2);\r\n\t\t}else {\r\n\t\t\tdegRads = Math.atan(tempY/tempX);\r\n\t\t\tdeg = Math.toDegrees(degRads);\r\n\t\t}\r\n\t\tif(deg < 0) {\r\n\t\t\tdeg+=360;\r\n\t\t}\r\n\t\tSystem.out.println(\"degs: \" + deg);\r\n\t\tspaceToAttack = new space(randX, Y_HEIGHT);\r\n\t\treturn deg;\r\n\t}",
"private int getAttackAngle() {\n\t\treturn (160 - (level * 10));\n\t}",
"private float calculateAngle() {\r\n\r\n\t\tdouble angleTemp = Math.atan2(Target.getY() - y, Target.getX() - x);\r\n\t\t// I needed to use wikipedia to get this i\r\n\t\t// did not learn this in math and needed\r\n\t\t// to use a couplle youtube tutorials to\r\n\t\t// find out how to do the math in java\r\n\t\t// aswell thank fully one had the exact\r\n\t\t// way of doing this\r\n\t\treturn (float) Math.toDegrees(angleTemp) + 90;\r\n\t}",
"protected double findAngleToEnemy(Movable enemy){\n\t\tdouble enemyX = enemy.getX() - x;\n\t\tdouble enemyY = enemy.getY() - y;\n\t\treturn Math.atan2(enemyX, enemyY);\n\t}",
"Float attack();",
"private static int playerDamageDealt(int playerAttack, int monsterDefense){\r\n int playerDamageDealt;\r\n playerDamageDealt = (playerAttack - monsterDefense);\r\n return playerDamageDealt;\r\n }",
"public double findAngleOfAttack() {\n\t\tdouble dy = this.trailingPt.y - this.leadingPt.y; // trailingPt goes first since positive numbers are down\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// y-axis in Canvas\n\t\tdouble dx = this.leadingPt.x - this.trailingPt.x;\n\t\treturn Math.atan2(dy, dx);\n\t}",
"public int turnedDegree() {\n return (int) Math.round(rightMotor.getTachoCount() / TURN_RATIO);\n }",
"private static int monsterDamageDealt(int monsterAttack, int playerDefense){\r\n int monsterDamageDealt;\r\n monsterDamageDealt = (monsterAttack - playerDefense);\r\n if(monsterDamageDealt < 0){\r\n monsterDamageDealt = 0;\r\n return monsterDamageDealt;\r\n }else{\r\n return monsterDamageDealt;\r\n }\r\n }",
"public double turn (double degrees) {\n setHeading(getHeading() + degrees);\n return Math.abs(degrees);\n }",
"@Override\n\tpublic double attack() {\n\t\treturn 12.5;\n\t}",
"@Override\n public int damageCalculator(final Heroes enemy, final Heroes hero) {\n float landModifier;\n int firstAbilityDamage;\n int secondAbilityDamage;\n if (enemy.getLocation().equals(\"V\")) {\n landModifier = factory.getLandModifiers(\"V\");\n } else {\n landModifier = LandModifiersFactory.getNoModifiers();\n }\n firstAbilityDamage = Math.round(landModifier * (factory.getAllDamages(\"fireblast\")\n + hero.getLevel() * factory.getAllLevelDamages(\"fireblast\")));\n secondAbilityDamage = Math.round(landModifier * (factory.getAllDamages(\"ignite\")\n + hero.getLevel() * factory.getAllLevelDamages(\"ignite\")));\n //retin damage-ul fara modificatori in caz ca adversarul este wizard\n enemy.setDamageReceived(firstAbilityDamage + secondAbilityDamage);\n firstAbilityDamage = Math.round(firstAbilityDamage\n * hero.getRaceModifiers1(enemy.getTypeOfHero()));\n secondAbilityDamage = Math.round(secondAbilityDamage\n * hero.getRaceModifiers2(enemy.getTypeOfHero()));\n //ii setez damage overtime\n enemy.setIgniteOvertimeDamage(2);\n return firstAbilityDamage + secondAbilityDamage;\n }",
"private void enemyturn() {\n if (enemy.getHealth() == 0) { // check if the enemy is still alive\n enemy.setAlive(false);\n }\n\n if (enemy.getAlive()) { // if he is alive\n // time to fuck the players day up\n System.out.println(\"\");//formatting\n System.out.println(enemy.getName() + \" attacks you!\");\n\n // calculate the damage this enemy will do\n int differenceHit = enemy.getMaxHit() - enemy.getMinHit(); // difference will be 0-3. But plus 1 (as the result will ALWAYS be +1 in the randomizer so a \"0\" will not happen.\n int minimumDamage = randomize.getRandomDamage(differenceHit); // for example, will return 0-4 if the min and max hit was 4-7. Then do a -1. Making it a 0-3 chance.\n int damage = differenceHit + minimumDamage; // add the minimum damage, to random hit damage.\n\n // calculate the players armor\n damage = damage - player.getPlayerArmorRating();\n if (damage <= 0){\n System.out.println(\"... but you dont take any damage because of your armor!\");\n } else {\n\n System.out.println(\"You take \" + damage + \" damage!\");\n player.removeHealth(damage);\n }\n\n } else { // when ded\n System.out.println(\"The enemy has no chance to fight back. As your final blow killed the enemy.\");\n }\n }",
"public int getDmg(){\r\n return enemyDmg;\r\n }",
"public int updateDegree(){\r\n \r\n \tthis.degree = this.degree + this.rotSpeed;\r\n \tif (this.degree > 359) this.degree = 0;\r\n \t\r\n return this.degree;\r\n }",
"public int getDegreesOfFreedom() {return nu;}",
"@Override\n public double chooseGunAngle(double bulletPower, Point2D.Double myLocation, double absoluteBearingToEnemy) {\n if (enemyLateralVelocity != 0)\n {\n if (enemyLateralVelocity < 0)\n enemyDirection = -1;\n else\n enemyDirection = 1;\n }\n\n double guessfactor = chooseGuessFactor(bulletPower, myLocation);\n\n return Utils.normalAbsoluteAngle(absoluteBearingToEnemy + enemyDirection * guessfactor * MathUtils.maxEscapeAngle(Rules.getBulletSpeed(bulletPower)));\n }",
"private double calculaDiametro(){\r\n double diametro;\r\n diametro=((cir.getY()-cir.getX())*2);\r\n return diametro;\r\n }",
"int getDegree();",
"int getDegree();",
"public double passAlign() {\n \tdouble angle;\n \tif (MasterController.ourSide == TeamSide.LEFT) {\n \t\tangle = angleToX();\n \t} else {\n \t\tangle = angleToNegX();\n \t}\n \tdouble amount = -0.7 * angle;\n\t\tDebug.log(\"Angle: %f, Rotating: %f\", angle, amount);\n\t\trotate(amount); // TODO: Test if works as expected\n\t\treturn amount;\n\t}",
"public int computeDamageTo(Combatant opponent) { return 0; }",
"public static double bestDirTurn(double startAngle, double targetAngle) {\n double delta = (targetAngle - startAngle + 540) % 360 - 180;\n return delta;\n }",
"private double calculaPerimetro(){\r\n double perimetro;\r\n perimetro=(float) ((2*(cir.getY()-cir.getX()))*Math.PI);\r\n return perimetro;\r\n }",
"protected void calculateTotalDegrees() {\r\n\t\tmTotalCircleDegrees = (360f - (mStartAngle - mEndAngle)) % 360f; // Length of the entire circle/arc\r\n\t\tif (mTotalCircleDegrees <= 0f) {\r\n\t\t\tmTotalCircleDegrees = 360f;\r\n\t\t}\r\n\t}",
"public int inDegrees()\n {\n return dirInDegrees;\n }",
"int attack(Unit unit, Unit enemy);",
"public static int getEnemyLives(){\n return 1 + currentLvl * 2;\n\n }",
"double getCalibratedLevelAngle();",
"@Override\n\tpublic int attack( ){\n\t\treturn enemy.attack();\n\t}",
"public void attack() {\n energy = 2;\n redBull = 0;\n gun = 0;\n target = 1;\n // if Player is in range take off a life.\n if (CharacterTask.ghostLocation == GameWindow.playerLocation) {\n playerLives = playerLives - 1;\n System.out.println(\"Player Lives: \" + playerLives);\n }\n }",
"private int opponentMove() {\n if (diceRoll(10) <= 9) { //Here we call diceRoll again, and compare it to a number, since the opponent only has 1 type of attack\n int attackValue = (opponent.getAttack() + (opponent.getLevel() / 2)) * diceRoll(4); //We set attackValue equals to the opponents base attack + the opponents level / 2, \n // and then multiply it by the diceRoll. This way, the opponents damage scales with level as well.\n int damageDealt = 0;\n if (attackValue >= player.getArmorValue()) { //We check if the opponents attack is stronger than players armor\n damageDealt = (attackValue - player.getArmorValue()) + 1; //If the opponent attacks through the players armor, they deal the remaining damage + 1.\n player.changeHealth(damageDealt * -1); //Changes the players health accordingly\n }\n return damageDealt;\n }\n return -1;\n }",
"private void computeFacing() {\n\t\tfacing = GeometryUtil.getAngle(p1, p2) + 90;\n\t}",
"public void playerAttack() {\n if (playerTurn==true) {\n myMonster.enemHealth=myMonster.enemHealth-battlePlayer.str;\n }\n playerTurn=false;\n enemyMove();\n }",
"public int attack(boolean weakness){\r\n\t\tint damage = 0;\r\n\t\t\r\n\t\tif (energy <= 0) {\r\n\t\t\tSystem.out.println(\"no energy to attack\");\r\n\t\t\tenergy = 0;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tif (weakness == true) {\r\n\t\t\t\tenergy -= 2;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tenergy -= 1;\r\n\t\t\t}\r\n\t\t\texp += 1;\r\n\t\t\tdamage = 1;\r\n\t\t}\r\n\t\treturn damage;\r\n\t}",
"int calDeg(int u){\n int ans=0;\n for (int i=0;i<n;i++){\n ans+=a[u][i];\n }\n return ans;\n }",
"public int getDamage () {\n\t\treturn (this.puissance + stuff.getDegat());\n\t}",
"@Override\n public void attackedByPaladin(double attack) {\n this.attack += (2 * attack) / 3;\n damageCounter = Math.max(damageCounter - (2 * attack) / 3, 0);\n }",
"@Override\n\t\tpublic int getDegree(Direction direction) {\n\t\t\treturn 0;\n\t\t}",
"@Override\n public int getElevation() {\n int cElev = super.getElevation();\n if (!isMakingDfa()) {\n return cElev;\n }\n // otherwise, we are one elevation above our hex or the target's hex,\n // whichever is higher\n int tElev = game.getBoard().getHex(displacementAttack.getTargetPos()).floor();\n return Math.max(cElev, tElev) + 1;\n }",
"private double enemyKills()\n {\n return (double)enemyResult.shipsLost();\n }",
"public int calculateDamage(Player enemyPlayer)\n\t{\n\t\tint damage = 0;\n\t\tPokemon enemyPokemon = enemyPlayer.getActivePokemon();\n\t\tif(enemyPokemon.getClass() == FirePokemon.class)\n\t\t{\n\t\t\tdamage = move.getBaseDamage() * 2;\n\t\t}\n\t\tif(enemyPokemon.getClass() == GrassPokemon.class)\n\t\t{\n\t\t\tdamage = (int)Math.round((move.getBaseDamage() * .5));\n\t\t}\n\t\tif(enemyPokemon.getClass() == WaterPokemon.class)\n\t\t{\n\t\t\tdamage = move.getBaseDamage();\n\t\t}\n\t\treturn damage;\n\t}",
"EDataType getAngleDegrees();",
"private int getBearing() {\n\t\treturn 0;\r\n\t}",
"public abstract void steer(double angle);",
"private int DirectionCalculation(int angle)\r\n\t{\t\r\n\t\treturn (int) ((angle/14.28)+1); //Angle divided by (100/(parts-1)) = 1-8\r\n\t}",
"private void enemyAttack() {\n\t\t\n\t\tRandom rand = new Random();\t\n\t\t\n\t\tint roll = rand.nextInt(101);\n\t\t\n\t\tint sroll = rand.nextInt(101);\n\t\t\n\t\tevents.appendText(e.getName() + \" attacks!\\n\");\n\t\t\n\t\tif(roll <= p.getEV()) { // Player evades\n\t\t\t\n\t\t\tevents.appendText(\"You evaded \"+e.getName()+\"\\'s Attack!\\n\");\n\t\t\t\n\t\t}else if(roll > p.getEV()) { // Player is hit and dies if HP is 0 or less\n\t\t\t\n\t\t\tp.setHP(p.getHP() - e.getDMG());\n\t\t\t\n\t\t\tString newHp = p.getHP()+\"/\"+p.getMaxHP();\n\t\t\t\n\t\t\tString effect = e.getSpecial(); // Stats are afflicted\n\t\t\t\n\t\t\tif(sroll < 51){\n\t\t\t\t\n\t\t\tif(effect == \"Bleed\") { // Bleed Special\n\t\t\t\t\n\t\t\t\tp.setHP(p.getHP() - 100);\n\t\t\t\t\n\t\t\t\tevents.appendText(\"You bleed profusely. - 100 HP\\n\");\n\t\t\t\t\n\t\t\t\tnewHp = String.valueOf(p.getHP()+\"/\"+p.getMaxHP());\n\t\t\t}\n\t\t\tif(effect == \"Break\") { // Break Special \n\t\t\t\t\n\t\t\t\tif(p.getEV()-5>0)\n\t\t\t\t\tp.setEV(p.getEV() - 5);\n\t\t\t\telse\n\t\t\t\t\tp.setEV(0);\n\t\t\t\t\n\t\t\t\tevents.appendText(\"You feel a bone break restricting movement. - 5 EV\\n\");\n\t\t\t\t\n\t\t\t\tString newEV = String.valueOf(p.getEV());\n\t\t\t\t\n\t\t\t\tgev.setText(newEV);\n\t\t\t\t\n\t\t\t}\n\t\t\tif(effect == \"Fear\") { // Fear Special \n\t\t\t\t\n\t\t\t\tif(p.getDMG()-40>0)\n\t\t\t\t\tp.setDMG(p.getDMG() - 40);\n\t\t\t\telse\n\t\t\t\t\tp.setDMG(0);\n\t\t\t\t\n\t\t\t\tevents.appendText(\"A crippling fear rattles your resolve. - 40 DMG\\n\");\n\t\t\t\t\n\t\t\t\tString newDMG = String.valueOf(p.getDMG());\n\t\t\t\t\n\t\t\t\tgdmg.setText(newDMG);\n\t\t\t\t\n\t\t\t}\n\t\t\tif(effect == \"Rend\") { // Rend Special \n\t\t\t\t\n\t\t\t\tif(p.getDMG()-30>0)\n\t\t\t\t\tp.setDMG(p.getDMG() - 30);\n\t\t\t\telse\n\t\t\t\t\tp.setDMG(0);\n\t\t\t\t\n\t\t\t\tif(p.getEV()-5>0)\n\t\t\t\t\tp.setEV(p.getEV() - 5);\n\t\t\t\telse\n\t\t\t\t\tp.setEV(0);\n\t\t\t\t\n\t\t\t\tevents.appendText(\"Morthar unleashes a pillar of flame! - 30 DMG and - 5 EV\\n\");\n\t\t\t\t\n\t\t\t\tString newDMG = String.valueOf(p.getDMG());\n\t\t\t\t\n\t\t\t\tString newEV = String.valueOf(p.getEV());\n\t\t\t\t\n\t\t\t\tgdmg.setText(newDMG);\n\t\t\t\t\n\t\t\t\tgev.setText(newEV);\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\t\n\t\t\tif(p.getHP() <= 0) {\n\t\t\t\t\n\t\t\t\tp.setDead(true);\n\t\t\t\t\n\t\t\t\tcurrentHp.setText(0+\"/\"+e.getMaxHP());\n\t\t\t\tplayerHPBar.setProgress((double)0);\n\t\t\t}else {\n\t\t\t\t\n\t\t\t\tcurrentHp.setText(newHp);\n\t\t\t\tplayerHPBar.setProgress((double)p.getHP()/p.getMaxHP());\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tif(p.isDead()) { // Game over if player dies\n\t\t\t\n\t\t\ttry {\n\t\t\t\tLoadGO();\n\t\t\t} catch (IOException e1) {\n\t\t\t\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\tcombat = false;\n\t\t}\n\t}",
"double getDeathFactor();",
"public int getDegrees() {\n\t\treturn (int) (value * (180.0d / Math.PI));\n\t}",
"public double getTurn() {\n \treturn Math.abs(turn.getX()) > DEADZONE ? turn.getX() : 0;\n }",
"@Test\r\n public void testCalculateAngle1() {\r\n System.out.println(\"calculateAngle1\");\r\n DialDraw instance = new TachometerDraw();\r\n instance.setValue(36);\r\n double expResult = Math.toRadians(115.2);\r\n double result = instance.calculateAngle();\r\n assertEquals(result, expResult, 0.0001);\r\n }",
"public Direction getBestRetreatDir(RobotInfo[] enemies) throws GameActionException {\n Direction[] dirs = Direction.values();\n double minDmg = 999999999;\n Direction bestDir = null;\n for (int i=8; i-->0;){\n double trialDmg = 0;\n if (rc.canMove(dirs[i])) {\n MapLocation trialLoc = rc.getLocation().add(dirs[i]);\n for (int j=enemies.length; j-->0;) {\n RobotInfo info = enemies[j];\n if (info.location.distanceSquaredTo(trialLoc) <= info.type.attackRadiusSquared) {\n trialDmg += info.type.attackPower;\n }\n }\n if (trialDmg < minDmg) {\n minDmg = trialDmg;\n bestDir = dirs[i];\n }\n }\n }\n if (bestDir == null || minDmg >= rc.getHealth()) {\n return null;\n } else {\n return bestDir;\n }\n }",
"int getAttackRoll();",
"protected void calculateProgressDegrees() {\r\n\t\tmProgressDegrees = mPointerPosition - mStartAngle; // Verified\r\n\t\tmProgressDegrees = (mProgressDegrees < 0 ? 360f + mProgressDegrees : mProgressDegrees); // Verified\r\n\t}",
"@Test\r\n public void testCalculateAngle4() {\r\n System.out.println(\"calculateAngle4\");\r\n DialDraw instance = new TachometerDraw();\r\n instance.setValue(90);\r\n double expResult = Math.toRadians(18);\r\n double result = instance.calculateAngle();\r\n assertEquals(result, expResult, 0.0001);\r\n }",
"public int takeDamage(Enemy enemy)\n {\n int damage = Items.determineDamage(\n enemy.getWeapon(),\n this.getArmor(),\n enemy.fight()\n );\n this.setHealth(this.getHealth() - damage);\n return damage;\n }",
"private int getEnemyGunFireRate()\n\t{\n\t\tfloat rate = 115 - (GameState._playerScore * .2f);\n\t\tif (rate < 20)\n\t\t{\n\t\t\trate = 20;\n\t\t}\n\t\treturn (int)rate;\n\t}",
"public int attack()\n {\n int percent = Randomizer.nextInt(100) + 1;\n int baseDamage = super.attack();\n if(percent <= 5)\n {\n baseDamage *= 2;\n baseDamage += 50;\n }\n return baseDamage;\n }",
"public double evaluate(Map<String, Double> assignment) throws Exception {\n if (super.getExpression().evaluate(assignment) % 180 == 90) {\n return 0;\n }\n if (super.getExpression().evaluate(assignment) % 360 == 180) {\n return -1;\n }\n if (super.getExpression().evaluate(assignment) % 360 == 0) {\n return 1;\n }\n return Math.cos(Math.toRadians(super.getExpression().evaluate(assignment)));\n }",
"double getAngle();",
"double getAngle();",
"public double radToDeg(double rads)\r\n\t{\r\n\t\treturn (rads * 180)/Math.PI;\r\n\t\t\r\n\t}",
"public void resolve(){\n logger.log(Level.FINE,attacker.getName()+\" withering attacked \"+defender.getName());\n AttackState state=new AttackState();\n state.weaponDamage=weapon.getDamage();\n state.initialAttackpool=baseAttackdice+baseAccuracy-woundpenalty;\n attacker.declareWitheringAttack(state); // If the attacker wants to change the pool, he modifies the state accordingly.\n defender.declareWitheringDV(state); // Defender declares their dv against this specific attack. This sets both initialdv and changedDv\n state.initialAttackRoll= new DiceThrow(state.changedAttackpool);\n attacker.modifyWitheringAttackRollAttacker(state); //This sets stuff like modifiedAttackRollAttacker and AttackerRollValuation\n defender.modifyWitheringAttackRollDefender(state); //This sets defender modifiedAttackRollDefender\n state.attackRollSuccesses=state.modifiedAttackRollDefender.evaluateResults(state.AttackRollValuationAttacker);\n state.threshholdSuccesses=state.attackRollSuccesses-state.changedDv;\n logger.log(Level.FINE,attacker.getName()+\" rolled \"+state.changedAttackpool+\" dice against \"+defender.getName()+\"'s dv of \"+state.changedDv+\" and gained \"+state.attackRollSuccesses+\" successes.\");\n attacker.changeWitheringThreshholdAttacker(state); //This sets thresholdModifiedAttacker\n defender.changeWitheringThreshholdDefender(state); //This sets thresholdModifiedDefender\n if(state.thresholdModifiedDefender>=0) {\n logger.log(Level.FINE,attacker.getName()+\" hit \"+defender.getName()+\" with \"+state.thresholdModifiedDefender+\" threshhold successes.\");\n attacker.modifyWitheringRawDamageAttacker(state); //Sets normal raw damageType, based on strength and weapon damageType, and then sets rawDamagemModifiedAttacker\n defender.modifyWitheringRawDamageDefender(state); //this sets rawDamageModifiedDefender, and sets up the various soak values, so natural soak and armor soak.\n logger.log(Level.FINE, \"The raw damage of the attack is: \"+state.rawDamageModifiedDefender);\n state.totalSoak = Math.max(state.defenderArmorSoak - ignoredArmorSoak, 0) + state.defenderNaturalSoak; //\n attacker.modifyTotalSoakAttacker(state); //This sets totalSoakmodifiedAttacker. Don't think this actually has support in the solar charmset, but giving opportunities to work with.\n defender.modifyTotalSoakDefender(state); // This sets totalSoakmodifiedDefender.\n state.postSoakSuccesses=Math.max(state.rawDamageModifiedDefender-state.totalSoakModifiedDefender,weapon.getOverwhelming());\n logger.log(Level.FINE,state.totalSoakModifiedDefender+\" damage is soaked, leading to post soak dice of \"+state.postSoakSuccesses);\n attacker.declarePostSoakAttacker(state); //sets postSoakSuccessesModifiedAttacker\n defender.declarePostSoakDefender(state); //sets postSoakSuccessesModifiedDefender\n DiceThrow droll=new DiceThrow(state.postSoakSuccessesModifiedDefender);\n state.damageRoll=droll;\n attacker.modifyWitheringDamageRollAttacker(state); //sets damageRollmodifiedAttacker and damageRollvValuation\n defender.modifyWitheringDamageRollDefender(state); //sets damageRollmodifiedDefender\n state.initiativeDamageDone=state.damageRollModifiedDefender.evaluateResults(state.damageRollValuation);\n logger.log(Level.FINE,attacker.getName()+\" rolls \"+state.postSoakSuccessesModifiedDefender+\" dice and achieves \"+state.initiativeDamageDone+\" successes.\");\n attacker.modifyInitiativeDamageAttacker(state);\n defender.modifyInitiativeDamageDefender(state); //Since this is the last change of initiative, we can check whether the defender was crashed here.\n attacker.updateInitiativeAttacker(state);\n defender.updateInitiativeDefender(state);//Here we should handle all the initiative changes respectively, with checking if people are crashed etc.\n }\n else{\n attacker.failedWitheringAttackAttacker(state);\n defender.failedWitheringAttackDefender(state);\n }\n\n }",
"@Test\r\n public void testCalculateAngle2() {\r\n System.out.println(\"calculateAngle2\");\r\n DialDraw instance = new TachometerDraw();\r\n instance.setValue(0);\r\n double expResult = Math.toRadians(180);\r\n double result = instance.calculateAngle();\r\n assertEquals(result, expResult, 0.0001);\r\n }",
"public int getDef(Unit attacker, Unit defender){\r\n if(SCOP || COP)return 110;\r\n return 100;\r\n }",
"public double getMyAngle() {\n return myAngle- STARTING_ANGLE;\n }",
"public int getAtk(Unit attacker, Unit defender){\r\n if(COP || SCOP)return 110;\r\n return 100;\r\n \r\n }",
"@Override\n\tpublic double getAttack() {\n\t\treturn 0;\n\t}",
"public double castFireball(){\n this.mana -= fireball.manaCost;\n return fireball.hit();\n }",
"private static double radToDeg(float rad)\r\n/* 30: */ {\r\n/* 31:39 */ return rad * 180.0F / 3.141592653589793D;\r\n/* 32: */ }",
"public float calcularPerimetro(){\n return baseMayor+baseMenor+(medidaLado*2);\n }",
"public double ang()\n {\n \treturn Math.atan(y/x);\n }",
"public int calculateCombatLevel() {\r\n if (entity instanceof NPC) {\r\n return ((NPC) entity).getDefinition().getCombatLevel();\r\n }\r\n int combatLevel;\r\n int melee = staticLevels[ATTACK] + staticLevels[STRENGTH];\r\n int range = (int) (1.5 * staticLevels[RANGE]);\r\n int mage = (int) (1.5 * staticLevels[MAGIC]);\r\n if (melee > range && melee > mage) {\r\n combatLevel = melee;\r\n } else if (range > melee && range > mage) {\r\n combatLevel = range;\r\n } else {\r\n combatLevel = mage;\r\n }\r\n combatLevel = staticLevels[DEFENCE] + staticLevels[HITPOINTS] + (staticLevels[PRAYER] / 2) + (int) (1.3 * combatLevel);\r\n return combatLevel / 4;\r\n }",
"public void attack(User p)\n\t{\n\t\tint damage = getAttack() - p.getDefense();\n\t\tint evade = 0;\n\t\tif(damage <= 0)\n\t\t{\n\t\t\tevade = p.getDefense() - getAttack();\n\t\t\tdamage = 1;\n\t\t}\n\t\t\n\t\tif(Math.random() * 100 < evade * 5)\n\t\t{\n\t\t\tJOptionPane.showMessageDialog(null, \"Miss\");\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tp.reduce(damage);\n JOptionPane.showMessageDialog(null,\"Enemy attacked you! User's health = \" + p.getHealth() + \"\\n\" + \"Damage dealt = \" + damage); \n\t}",
"public static double valueOfStorm(int attack) {\n return attack * 0.8;\n }",
"public double evaluate() throws Exception {\n if (super.getExpression().evaluate() % 180 == 90) {\n return 0;\n }\n if (super.getExpression().evaluate() % 360 == 180) {\n return -1;\n }\n if (super.getExpression().evaluate() % 360 == 0) {\n return 1;\n }\n return Math.cos(Math.toRadians(super.getExpression().evaluate()));\n }",
"public double getHeightInDeg();",
"@Override\n public void attackedByShaman(double attack) {\n damageCounter += (2 * attack) / 3;\n this.attack = Math.max(this.attack - (2 * attack) / 3, 0);\n }",
"public int applyEnemyDamage(BasicEnemy enemy) {\n int enemyDamage = enemy.getDamage();\n boolean enemyCrit = enemy.rollCrit();\n int damageDealt;\n if (enemyCrit) damageDealt = (int)(3 * enemyDamage * getTotalDefenceMultiplier(enemy.getIsBoss()) * getTotalCritDefenceMultiplier());\n else damageDealt = (int)(enemyDamage * this.getTotalDefenceMultiplier(enemy.getIsBoss()));\n this.setHealth(Math.max(0, this.health - damageDealt));\n return health;\n }",
"public double damageCalculation(NPC mob, Player player) {\r\n double weapon = mob.getWeapon().getDamage();\r\n double attack = mob.getStats().getAttack();\r\n double defence = player.getStats().getDefence();\r\n\r\n return ((weapon + attack) * 2 - defence);\r\n }",
"private double angleBP(int cx, int cy, int ex, int ey){\n\t return Math.atan2(((float)ey-cy),((float)ex-cx));\r\n\t }",
"public int getDamage() {\n \t\treturn damage + ((int) 0.5*level);\n \t}",
"public int getCurrentAngle(){\n return flatbed.currentAngle;\n }",
"abstract public Unit getDefendingUnit(Unit attacker);",
"private float deskYToAbst(int y)\n {\n return ((float)y/height);\n }",
"public double getDpa(){\n double dpa = 0;\n try{\n //noinspection IntegerDivisionInFloatingPointContext\n dpa = this.damage / this.attacks;\n } catch (ArithmeticException ignored){\n }\n return dpa;\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 }",
"public double getAttack() {\n return attack;\n }",
"@Override\n\tpublic int calculateDamage() \n\t{\n\t\t// TODO Auto-generated method stub\n\t\treturn 0;\n\t}",
"@Override\n\tpublic int fight(Enemy e1) {\n\t\tint damage = 0;\n\t\tRandom randomNum = new Random();\n\t\tdamage = 6 + randomNum.nextInt(4);\n\t\ttry {\n\t\t\te1.takeDamage(damage);\n\t\t} catch (InvalidDamageException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn damage;\n\t}",
"public int computeRangedDamageTo(Combatant opponent) { return 0; }",
"@Override\n public double getDefenseAmount() {\n return this.getDefense().getAbilityValue();\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 move4(Pokemon enemy){\n boolean crit = false;\n boolean superEffective = false;\n boolean reduced = false;\n boolean moveHit = true;\n int randCrit = (int)(22 * Math.random()+1);\n\n //CHANGE ATTACK TO FALSE IF MOVE DOES NO DAMAGE<<<<<<<<<<<<<\n boolean attack = true;\n //CHANGE TYPE TO TYPE OF MOVE POWER AND ACCURACY<<<<<<<<<<<<<\n String type = \"Steel\";\n int power = 50;\n int accuracy = 95;\n\n //DO NOT CHANGE BELOW THIS\n int damage = ((CONSTANT * power * ( getAtt() / enemy.getDef() )) /50);\n if(randCrit == CONSTANT){\n damage = damage * 2;\n crit = true;\n }\n if(checkSE(type,enemy.getType())){\n damage = damage * 2;\n superEffective = true;\n }\n if(checkNVE(type, enemy.getType())){\n damage = damage / 2;\n reduced = true;\n }\n if(attack && hit(accuracy)){\n enemy.lowerHp(damage);\n }\n else{\n if(hit(accuracy)){\n //DO STATUS EFFECT STUFF HERE (ill figure out later)\n }\n }\n lowerM4PP();\n }",
"public static int Attack(Creature attacker, Creature defender)\n\t{\n\t\t\n\t\tRandom percentile = new Random();\n\t\t\n\t\tint attack = attacker.getAttack() + percentile.nextInt(100) + 1;\n\t\tint defend = defender.getDefense() + percentile.nextInt(100) + 1;\n\t\t\n\t\tif(attack > 2*defend)\n\t\t{\n\t\t\t//critical hit\n\t\t\treturn 3;\n\t\t}\n\t\tif(defend > 2*attack)\n\t\t{\n\t\t\t//miss\n\t\t\treturn 0;\n\t\t}\n\t\tif(attack > defend)\n\t\t{\n\t\t\t//hit\n\t\t\tif(defender.getEvasion() < (percentile.nextInt(100)+1))\n\t\t\t{\n\t\t\t\t//regular hit\n\t\t\t\treturn 2;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t//evade the hit\n\t\t\t\treturn 0;\n\t\t\t}\n\t\t}\n\t\tif(defend >= attack)\n\t\t{\n\t\t\t//light hit\n\t\t\treturn 1;\n\t\t}\n\t\t\n\t\treturn 0;\n\t\t\n\t\t\n\t}",
"private int calculateLevelModifierForDrop(final L2PcInstance lastAttacker)\n\t{\n\t\tif (Config.DEEPBLUE_DROP_RULES)\n\t\t{\n\t\t\tint highestLevel = lastAttacker.getLevel();\n\t\t\t\n\t\t\t// Check to prevent very high level player to nearly kill mob and let low level player do the last hit.\n\t\t\tif (getAttackByList() != null && !getAttackByList().isEmpty())\n\t\t\t{\n\t\t\t\tfor (final L2Character atkChar : getAttackByList())\n\t\t\t\t{\n\t\t\t\t\tif (atkChar != null && atkChar.getLevel() > highestLevel)\n\t\t\t\t\t{\n\t\t\t\t\t\thighestLevel = atkChar.getLevel();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// According to official data (Prima), deep blue mobs are 9 or more levels below players\n\t\t\tif (highestLevel - 9 >= getLevel())\n\t\t\t{\n\t\t\t\treturn (highestLevel - (getLevel() + 8)) * 9;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn 0;\n\t}",
"private int timeToNextAttack() {\n return ATTACK_SPEED - mAttacker.getSpeed();\n }",
"float getAccY();",
"public void degrees() throws InterruptedException{\n\n\t\tif(keyPressed){\n\t\t\twhile(deg < 90){\n\t\t\t\tdeg += 15;\n\t\t\t\tSystem.out.println(\"Rotating UP \" + opcode);\n\t\t\t}\n\t\t}\n\t\telse if(!keyPressed){\n\t\t\twhile(deg > 0){\n\t\t\t\tdeg -= 15;\n\t\t\t\tSystem.out.println(\"Rotating Down \" + opcode);\n\t\t\t}\n\t\t}\n\t}",
"public double getDodgeChance() {\n return Math.min((this.getAgility().getAbilityValue() / 4.0) * 0.01, 1);\n }"
] |
[
"0.7343426",
"0.6872261",
"0.67195135",
"0.6691319",
"0.66618514",
"0.65130734",
"0.6382717",
"0.63728476",
"0.6243245",
"0.6153982",
"0.61008763",
"0.6082003",
"0.60638154",
"0.59489036",
"0.59091735",
"0.5881386",
"0.5867575",
"0.5841",
"0.58152115",
"0.58152115",
"0.57866484",
"0.5758205",
"0.5726207",
"0.5706806",
"0.57062656",
"0.56969696",
"0.5687305",
"0.5645475",
"0.5638343",
"0.56349146",
"0.56334054",
"0.5615099",
"0.56121737",
"0.55875206",
"0.55854225",
"0.55394435",
"0.55368435",
"0.5531153",
"0.5525067",
"0.5514198",
"0.55084026",
"0.54892206",
"0.54877967",
"0.54780775",
"0.5474387",
"0.5470061",
"0.5460568",
"0.54605514",
"0.54518765",
"0.54424113",
"0.5438078",
"0.5434771",
"0.5430463",
"0.5426326",
"0.5422041",
"0.5417512",
"0.5408114",
"0.54076904",
"0.54041594",
"0.5403413",
"0.5403413",
"0.5401699",
"0.53978914",
"0.5396764",
"0.5387875",
"0.5382619",
"0.5377487",
"0.53736275",
"0.5372491",
"0.5369732",
"0.53654397",
"0.53629893",
"0.536274",
"0.5361312",
"0.53506446",
"0.5345825",
"0.53411824",
"0.534118",
"0.53393495",
"0.5338794",
"0.53365725",
"0.53343624",
"0.5334296",
"0.53282005",
"0.5319939",
"0.5312936",
"0.5306861",
"0.53064376",
"0.5305106",
"0.52897173",
"0.52890235",
"0.5288554",
"0.52803665",
"0.52800864",
"0.5277399",
"0.52769834",
"0.5275607",
"0.52722925",
"0.52719134",
"0.5267495"
] |
0.7677134
|
0
|
Act do whatever the Player wants to do. This method is called whenever the 'Act' or 'Run' button gets pressed in the environment.
|
public void act()
{
if ( Greenfoot.isKeyDown( "left" ) )
{
turn( -5 );
}
else if ( Greenfoot.isKeyDown( "right" ) )
{
turn( 5 );
}
if ( Greenfoot.isKeyDown("up") )
{
move(10);
}
else if ( Greenfoot.isKeyDown( "down") )
{
move(-10);
}
if ( IsCollidingWithGoal() )
{
getWorld().showText( "You win!", 300, 200 );
Greenfoot.stop();
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void act() \r\n {\r\n key();\r\n win();\r\n fall();\r\n lunch();\r\n }",
"public void act()\n {\n // handle key events\n String key = Greenfoot.getKey();\n if (key != null)\n {\n handleKeyPress(key);\n } \n\n // handle mouse events\n if (startGameButton.wasClicked())\n {\n handleStartGame();\n }\n }",
"public void act() \n {\n playerMovement();\n }",
"public void act() \n {\n checkCollision();\n KeyMovements(); \n attackWeapon();\n //stopGame();\n \n }",
"public void act() \n {\n moveEnemy();\n checkHealth();\n attacked();\n }",
"public void act() \n {\n // Add your action code here.\n // get the Player's location\n if(!alive) return;\n \n int x = getX();\n int y = getY();\n \n // Move the Player. The setLocation() method will move the Player to the new\n // x and y coordinates.\n \n if( Greenfoot.isKeyDown(\"right\") ){\n setLocation(x+1, y);\n } else if( Greenfoot.isKeyDown(\"left\") ){\n setLocation(x-1, y);\n } else if( Greenfoot.isKeyDown(\"down\") ){\n setLocation(x, y+1);\n } else if( Greenfoot.isKeyDown(\"up\") ){\n setLocation(x, y-1);\n } \n \n removeTouching(Fruit.class);\n if(isTouching(Bomb.class)){\n alive = false;\n }\n \n }",
"public void act() \n {\n frameCount++;\n animateFlying();\n if (getWorld() instanceof DreamWorld)\n {\n dream();\n }\n else if (getWorld() instanceof FinishScreen)\n {\n runEnd();\n }\n }",
"public void act() \n {\n \n checkKey();\n platformAbove();\n \n animationCounter++;\n checkFall();\n }",
"public void act()\n {\n // Make sure fish is alive and well in the environment -- fish\n // that have been removed from the environment shouldn't act.\n if ( isInEnv() ) \n move();\n }",
"private void act() {\n\t\tmyAction.embodiment();\n\t}",
"@Override\n public void run() {\n chosenActionUnit.run(getGame(), inputCommands);\n }",
"public void act() \n {\n if (canGiveTestimony()) {\n giveTestimony();\n }\n }",
"public void act() \n {\n gravity();\n animate();\n }",
"public void act ()\n {\n checkScroll();\n checkPlatform();\n checkXAxis();\n checkDeath();\n // get the current state of the mouse\n MouseInfo m = Greenfoot.getMouseInfo();\n // if the mouse is on the screen...\n if (m != null)\n {\n // if the mouse button was pressed\n if (Greenfoot.mousePressed(null))\n {\n // shoot\n player.shoot(m.getX(), m.getY());\n }\n }\n }",
"public void act() \n {\n moveTowardsPlayer(); \n }",
"public void act() \n {\n // Add your action code here.\n MyWorld world = (MyWorld) getWorld();\n jefe = world.comprobarJefe();\n \n \n explotar();\n \n if(jefe)\n {\n girarHaciaEnemigo();\n movimientoPegadoAJefe();\n }\n }",
"public void act() {\n\t}",
"public void act() {\n\t\tif (canMove2()) {\n\t\t\tsteps += 2;\n\t\t\tmove();\n\t\t} else {\n\t\t\tturn();\n\t\t\tsteps = 0;\n\t\t}\n\t}",
"public void act() {\r\n\t\tturn(steps[number % steps.length]);\r\n\t\tnumber++;\r\n\t\tsuper.act();\r\n\t}",
"public void act() \r\n {\r\n move();\r\n }",
"public void act() \n {\n move(5);\n turn(4);\n }",
"public void act() \r\n {\r\n move(speed); //move at set speed\r\n \r\n if(actCounter < 2) //increases act counter if only 1 act has passed\r\n actCounter++;\r\n\r\n if(actCounter == 1) //if on the first act\r\n {\r\n targetClosestPlanet(); //will target closest planet depending on if it wants to find an unconquered planet, or just the closest one\r\n if(planet == null && findNearestPlanet)\r\n findNearestPlanet = false;\r\n }\r\n \r\n if(health > 0) //if alive\r\n {\r\n if(findNearestPlanet)\r\n targetClosestPlanet();\r\n if(planet != null && planet.getWorld() != null) //if planet exists\r\n moveTowards(); //move toward it\r\n else\r\n moveRandomly(); //move randomly\r\n }\r\n \r\n if(removeMe || atWorldEdge())\r\n getWorld().removeObject(this);\r\n }",
"@Override\n public void act() {\n sleepCheck();\n if (!isAwake()) return;\n while (getActionTime() > 0f) {\n UAction action = nextAction();\n if (action == null) {\n this.setActionTime(0f);\n return;\n }\n if (area().closed) return;\n doAction(action);\n }\n }",
"public void act()\n {\n displayBoard();\n Greenfoot.delay(10);\n \n if( checkPlayerOneWin() == true )\n {\n JOptionPane.showMessageDialog( null, \"Congratulations Player One!\", \"playerOne Win\", JOptionPane.PLAIN_MESSAGE );\n \n Greenfoot.stop();\n }\n \n if( checkPlayerTwoWin() == true )\n {\n JOptionPane.showMessageDialog( null, \"Congratulations Player Two!\", \"plauerTwo Win\",JOptionPane.PLAIN_MESSAGE );\n \n Greenfoot.stop();\n }\n \n if( checkBoardFilled() == true )\n {\n JOptionPane.showMessageDialog( null, \"It is a draw!\", \"Wrong step\", JOptionPane.PLAIN_MESSAGE );\n \n Greenfoot.stop();\n }\n \n if( messageShown == false )\n {\n showTurn();\n \n messageShown = true;\n }\n \n checkMouseClick();\n }",
"public void act() \n {\n movement();\n }",
"public void act() \r\n {\n if(getOneIntersectingObject(Player.class)!=null)\r\n {\r\n if(MenuWorld.gamemode == 1)\r\n //marcheaza regenerarea labirintului(trecere la nivelul urmator in Modul Contra Timp)\r\n TAworld.shouldRegen=true;\r\n else\r\n { \r\n //reseteaza variabilele care tin de modul de joc\r\n MenuWorld.gamemode=-1;\r\n MenuWorld.isPlaying=false;\r\n for(int i=0;i<4;i++)\r\n ItemCounter.gems_taken[i]=0;\r\n \r\n //arata fereastra de castig \r\n PMworld.shouldShowVictoryWindow=true;\r\n }\r\n \r\n }\r\n \r\n }",
"public void act()\n {\n trackTime();\n showScore();\n \n }",
"public void act()\n {\n \n //move();\n //if(canSee(Worm.class))\n //{\n // eat(Worm.class);\n //}\n //else if( atWorldEdge() )\n //{\n // turn(15);\n //}\n\n }",
"public void act() {\n\t\tif (canMove()) {\n\t\t\tif (isOnBase()) {\n\t\t\t\tif (steps < baseSteps) {\n\t\t\t\t\tmove();\n\t\t\t\t\tsteps++;\n\t\t\t\t} else {\n\t\t\t\t\tturn();\n\t\t\t\t\tturn();\n\t\t\t\t\tturn();\n\t\t\t\t\tsteps = 0;\n\t\t\t\t}\n\t\t\t} else if (steps == baseSteps / 2) {\n\t\t\t\tturn();\n\t\t\t\tturn();\n\t\t\t\tsteps++;\n\t\t\t} else if (steps == baseSteps + 1) {\n\t\t\t\tturn();\n\t\t\t\tturn();\n\t\t\t\tturn();\n\t\t\t\tsteps = 0;\n\t\t\t} else {\n\t\t\t\tmove();\n\t\t\t\tsteps++;\n\t\t\t}\n\t\t} else {\n\t\t\tturn();\n\t\t\tturn();\n\t\t\tturn();\n\t\t\tsteps = 0;\n\t\t}\n\t}",
"public void act() \n {\n fall();\n }",
"public void act()\r\n\t{\r\n\t\tyVel += gravity;\r\n\t\t//Resets the jump delay to when greater than 0\r\n\t\tif (jDelay > 0)\r\n\t\t{\r\n\t\t\tjDelay--;\r\n\t\t}\r\n\t\t//Sets the vertical velocity and jump delay of the bird after a jump\r\n\t\tif (alive == true && (Menu.keyPress == KeyEvent.VK_SPACE) && jDelay <= 0) \r\n\t\t{\r\n\t\t\tMenu.keyPress = 0;\r\n\t\t\tyVel = -10;\r\n\t\t\tjDelay = 10;\r\n\t\t}\r\n\t\ty += (int)yVel;\r\n\t}",
"public void act() \n {\n moveAround();\n die();\n }",
"public void act();",
"public void act() \r\n {\r\n mueve();\r\n //tocaJugador();\r\n //bala();\r\n disparaExamen();\r\n }",
"@Override\n\tpublic void doAction(String action) {\n\t\tthis.action = action;\n\t\t\n\t\tthis.gameController.pause();\n\t}",
"public void act() \n {\n // Add your action code here.\n tempoUp();\n }",
"public void act() \r\n {\r\n if (Greenfoot.mouseClicked(this)) {\r\n Greenfoot.setWorld(new howToPlayGuide());\r\n }\r\n }",
"void act();",
"public void act() \n {\n fall();\n if(Greenfoot.isKeyDown(\"space\") && isOnSolidGround())\n {\n jump();\n }\n move();\n }",
"public void act() \n {\n moveAround(); \n addBomb(); \n touchGhost(); \n }",
"public void act() \n {\n move(3);\n turnAtEdge(); \n StrikeSeaHorse();\n }",
"public void act() \r\n {\r\n // Add your action code here.\r\n }",
"public void act() \r\n {\r\n // Add your action code here.\r\n }",
"public void act()\n {\n \n if (wait < 75)\n {\n wait = wait + 1;\n }\n \n \n \n \n \n \n if (wait == 75)\n {\n change();\n checkForBounce();\n checkForEdge();\n checkWin(); \n }\n \n \n }",
"public void act() \r\n {\n }",
"public void act() \r\n {\n }",
"public void act() \r\n {\n }",
"public void act() \n {\n CreatureWorld playerWorld = (CreatureWorld)getWorld();\n\n if( getHealthBar().getCurrent() <= 0 )\n {\n getWorld().showText(\"Charmander has fainted...\", getWorld().getWidth()/2, getWorld().getHeight()/2 + 26);\n Greenfoot.delay(30);\n }\n }",
"@Override\n public void act() {\n }",
"public void interact() {\r\n\t\t\r\n\t}",
"public void interact() {\r\n\t\tif(alive) {\r\n\t\t\tCaveExplorer.print(attackDescription);\r\n\t\t\tbattle();\r\n\t\t}else {\r\n\t\t\tCaveExplorer.print(deadDescription);\r\n\t\t}\r\n\t}",
"@Override\r\n\tpublic void act() {\r\n\t\tdouble tankx, tanky;\r\n\t\ttankx = tank.getX();\r\n\t\ttanky = tank.getY();\r\n\t\t\r\n\t\t// If we're not in the center, rotate toward the center and move.\r\n\t\tif (tankx < 300 || tankx > 500 || tanky < 250 || tanky > 350) {\r\n\t\t\treceiver.receiveCommand(new RotateTowardsCommand(player, 400, 300));\r\n\t\t\treceiver.receiveCommand(new MoveCommand(player, false));\r\n\t\t}\r\n\t\telse {\r\n\t\t\t// We are in the center. Just move the gun around and shoot.\r\n\t\t\treceiver.receiveCommand(new RotateGunCommand2(player, 0.05));\r\n\t\t\treceiver.receiveCommand(new FireCommand(player));\r\n\t\t}\r\n\t}",
"public void tryAct() {\n\n List<Player> onCardPlayers = new ArrayList<Player>();\n List<Player> offCardPlayers = new ArrayList<Player>();\n if (currentPlayer.isEmployed() == true) {\n if(!currentPlayer.getHasPlayed()){\n onCardPlayers = findPlayers(currentPlayer.getLocation().getOnCardRoles());\n offCardPlayers = findPlayers(currentPlayer.getLocation().getOffCardRoles());\n currentPlayer.act(onCardPlayers, offCardPlayers);\n refreshPlayerPanel();\n }\n else{\n view.showPopUp(currentPlayer.isComputer(), \"You've already moved, rehearsed or acted this turn. Try a different command or click `end turn` to end your turn.\");\n }\n }\n else {\n view.showPopUp(currentPlayer.isComputer(), \"You're not employed, so you need to take a role before you can act.\");\n }\n view.updateSidePanel(playerArray);\n }",
"public void doInteract()\r\n\t{\n\t}",
"public void act() \n {\n mouse = Greenfoot.getMouseInfo();\n \n // Removes the achievement after its duration is over if its a popup (when it pops up during the game)\n if(popup){\n if(popupDuration == 0) getWorld().removeObject(this);\n else popupDuration--;\n }\n // Displays the decription of the achievement when the user hovers over it with the mouse\n else{\n if(Greenfoot.mouseMoved(this)) drawDescription();\n if(Greenfoot.mouseMoved(null) && !Greenfoot.mouseMoved(this)) drawMedal();\n }\n }",
"public void performActions(){\n GameInformation gi = this.engine.getGameInformation();\n\n if(gi.getTeam() == 0)\n this.engine.performPlayerAction(\n new MoveAction(src, dst)\n );\n\n }",
"@Override\n\tpublic void act(float dt){\n\t\t\n\t}",
"public void act() \n {\n movegas();\n \n atingido2(); \n \n }",
"public void act() \n {\n if(isAlive)\n {\n move(2);\n if(isAtEdge())\n {\n turnTowards(300, 300);\n GreenfootImage img = getImage();\n img.mirrorVertically();\n setImage(img);\n }\n if (getY() <= 150 || getY() >= 395)\n {\n turn(50);\n }\n if(isTouching(Trash.class))\n {\n turnTowards(getX(), 390);\n move(1);\n setLocation(getX(), 390);\n die();\n }\n }\n }",
"public void doTurn() {\n\t\tGFrame.getInstance().aiHold();\n\t}",
"public void act() \n {\n // Add your action code here.\n klawisze();\n stawiaj();\n pobierzJablka();\n }",
"public void act() \n {\n // Add your action code here.\n \n //setRotation();\n setLocation(getX(),getY()+2);\n movement();\n \n }",
"public void act()\n {\n if (getGrid() == null)\n return;\n if (caughtPokemon.size() <= 0)\n {\n removeSelfFromGrid();\n System.out.println(toString() + \" has blacked out! \" + toString() + \" has appeared at a PokeCenter.\");\n return;\n }\n ArrayList<Location> moveLocs = getMoveLocations();\n Location loc = selectMoveLocation(moveLocs);\n makeMove(loc);\n }",
"public void act() \n {\n // Add your action code here.\n }",
"public void act() \n {\n // Add your action code here.\n }",
"public void act() \n {\n // Add your action code here.\n }",
"public void act() \n {\n // Add your action code here.\n }",
"public void act() \n {\n // Add your action code here.\n }",
"public void act() \n {\n // Add your action code here.\n }",
"public void act() \n {\n // Add your action code here.\n }",
"public void act() \n {\n // Add your action code here.\n }",
"public void act() \r\n {\r\n if (startTime > 0) {\r\n startTime--;\r\n }\r\n else {\r\n if (isScared()) {\r\n doScareMode();\r\n }\r\n else {\r\n if (counter == 0 || !canMove(currDirectionStr)) {\r\n counter = CELL_SIZE * 4;\r\n prevDirection = currDirection;\r\n do {\r\n currDirection = (int)(Math.random() * 10);\r\n if (currDirection == 0) {\r\n currDirectionStr = \"up\";\r\n }\r\n else if (currDirection == 1) {\r\n currDirectionStr = \"left\";\r\n }\r\n else if (currDirection == 2) {\r\n currDirectionStr = \"down\";\r\n }\r\n else if (currDirection == 3) {\r\n currDirectionStr = \"right\";\r\n }\r\n } while (!canMove(currDirectionStr));\r\n }\r\n \r\n if (canMove(currDirectionStr)) {\r\n move(currDirectionStr);\r\n }\r\n counter--;\r\n } \r\n }\r\n }",
"public void actionPerformed(ActionEvent e){\n\t\t\tstartGame();\n\t\t}",
"public void act()\n {\n if (Greenfoot.mouseClicked(this))\n Greenfoot.playSound(\"fanfare.wav\");\n }",
"public void act() \n {\n if (Greenfoot.mouseClicked(this))\n {\n Peter.lb=2; \n Greenfoot.playSound(\"click.mp3\");\n Greenfoot.setWorld(new StartEngleza());\n };\n }",
"protected void execute() {\n \tif (isIntaking) {\n \t\tRobot.conveyor.forward();\n \t} else {\n \t\tRobot.conveyor.backward();\n \t}\n }",
"void doAction(Player player);",
"public void act() \r\n {\r\n Controller world = (Controller) getWorld();\r\n player = world.getPlayer();\r\n if (this.isTouching(Player.class))\r\n {\r\n player.minusHealth(5);\r\n world.removeObject(this);\r\n }\r\n }",
"@Override\r\n\tpublic void act() {\n\t\tausgeben();\r\n\t}",
"public void play() {\n\t\tSystem.out.println(\"ting.. ting...\");\n\t}",
"public void playAI() {\r\n // An item has been added to the ticket. Fire an event and let everyone know.\r\n System.out.println(\"You're going to lose foolish human!\");\r\n }",
"public void act()\n {\n setPosition(posX + liftDirection[0] * liftSpeed, posY\n + liftDirection[1] * liftSpeed);\n setLocation(posToLoc(posX, posY));\n\n if (posY < 50)\n removeSelf();\n }",
"public void runTheGame() {\n\t\txPlayer.setOpponent(oPlayer);\n\t\toPlayer.setOpponent(xPlayer);\n\t\tboard.display();\n\t\txPlayer.play();\n\t}",
"public void act()\r\n {\r\n // back button\r\n if (Greenfoot.isKeyDown(\"escape\") || Greenfoot.mouseClicked(backButton)) {\r\n Greenfoot.setWorld(new Title(gameSettings));\r\n }\r\n }",
"public void act() \r\n {\r\n \r\n // Add your action code here\r\n MovimientoNave();\r\n DisparaBala();\r\n Colisiones();\r\n //muestraPunto();\r\n //archivoTxt();\r\n }",
"public void act() \n {\n }",
"public void act() \n {\n }",
"public void act() \n {\n }",
"public void act() \n {\n }",
"public void act() \n {\n }",
"public void act() \n {\n }",
"public void act() \n {\n }",
"public void play() {\n System.out.println(\"Player \" + this.name + \" started to play...\");\n System.out.println(\"Current balance: \" + getTotalAsset());\n\n // roll a dice to move\n int steps = rollDice();\n System.out.println(\"Player diced \" + steps);\n\n // move\n move(steps);\n Land land = Map.getLandbyIndex(position);\n\n // land triggered purchase or opportunity events\n land.trigger();\n\n System.out.println(\"Player \" + this.name + \"has finished.\");\n }",
"public void run (){\n\t\t\t\t\t\t\t\t\tgame.setScreen(game.ui);\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\n\t\t\t\t\t\t\t\t}",
"public void act() \n {\n\n if(isTouching(Car.class))\n {\n Lap = Lap + 1;\n if ((Lap % 11) == 0)\n {\n String lap = Integer.toString(Lap / 11);\n\n getWorld().showText(lap, 450, 30);\n getWorld().showText(\"Lap:\", 400, 30);\n }\n } \n if (Lap == 47)\n {\n Greenfoot.stop();\n getWorld().showText(\"GameOver\",250,250);\n }\n }",
"public void act() \n {\n \n move(1);\n \n Player2 player2 = new Player2();\n myWorld2 world = (myWorld2)getWorld();\n \n \n checkForDeath();\n }",
"@Override\r\n\tpublic void tick() {\r\n\t\tif(interacted == false)\r\n\t\t\tinteract();\t\t\r\n\t}",
"public void act() \r\n {\r\n move(5);\r\n if(isAtEdge())\r\n turn(4);\r\n if(Greenfoot.getRandomNumber(35) < 34)\r\n turn(10);\r\n if(Greenfoot.getRandomNumber(20)<5)\r\n turn(-15);\r\n }",
"@Override\n public void doAction() {\n this.game.setComputerStartsFirst(false);\n }",
"public void act() \r\n {\r\n super.mueve();\r\n super.tocaBala();\r\n super.creaItem();\r\n \r\n if(getMoveE()==0)\r\n {\r\n \r\n if(shut%3==0)\r\n {\r\n dispara();\r\n shut=shut%3;\r\n shut+=1;\r\n \r\n }\r\n else \r\n shut+=1;\r\n }\r\n super.vidaCero();\r\n }"
] |
[
"0.7561136",
"0.75076497",
"0.7214579",
"0.7203288",
"0.71564025",
"0.7134227",
"0.70807356",
"0.70440257",
"0.7040749",
"0.6950049",
"0.6871623",
"0.6869331",
"0.68456817",
"0.6828558",
"0.6815012",
"0.6794134",
"0.677739",
"0.6772303",
"0.6761021",
"0.67425936",
"0.6726876",
"0.6718715",
"0.6712305",
"0.6698379",
"0.6695822",
"0.6683212",
"0.6670698",
"0.66706896",
"0.66618204",
"0.6616533",
"0.6608848",
"0.65871334",
"0.6577828",
"0.6539328",
"0.65356874",
"0.65259415",
"0.6523277",
"0.6519886",
"0.64833033",
"0.64783305",
"0.6466297",
"0.6465721",
"0.6465721",
"0.6442948",
"0.6431391",
"0.6431391",
"0.6431391",
"0.6429922",
"0.6415845",
"0.64148676",
"0.6401056",
"0.64009106",
"0.6393793",
"0.63871706",
"0.6384614",
"0.6376609",
"0.6370444",
"0.63581985",
"0.6352497",
"0.6335201",
"0.63328624",
"0.63304406",
"0.63290966",
"0.6326502",
"0.6326502",
"0.6326502",
"0.6326502",
"0.6326502",
"0.6326502",
"0.6326502",
"0.6326502",
"0.63248765",
"0.6315717",
"0.63144004",
"0.63046557",
"0.6304384",
"0.63029027",
"0.6294735",
"0.62833107",
"0.6274174",
"0.6259715",
"0.62552977",
"0.624407",
"0.6224627",
"0.6224516",
"0.6223688",
"0.6223688",
"0.6223688",
"0.6223688",
"0.6223688",
"0.6223688",
"0.6223688",
"0.6222764",
"0.62200814",
"0.62070656",
"0.6192329",
"0.6188965",
"0.6176932",
"0.6175363",
"0.61718965"
] |
0.7073666
|
7
|
Loads an existing context by URI using the specified data manager. The returned context will have meta information available (whenever attached). The method is nullsafe: in case the contextURI is null, a dummy context with URI SYSTEM_NAMESPACE:EmptyContext is returned.
|
public static Context loadContextByURI(URI contextURI, ReadDataManager dm)
{
if (contextURI == null)
return new Context(ContextType.EMPTY, null, null, null, null, null, null, null, null);
if (contextURI.equals(Vocabulary.SYSTEM_CONTEXT.METACONTEXT))
return new Context(ContextType.METACONTEXT, null, null, null, null, null, null, null, null);
else if (contextURI.equals(Vocabulary.SYSTEM_CONTEXT.VOIDCONTEXT))
return new Context(ContextType.VOID, null, null, null, null, null, null, null, null);
else
{
// remaining information is encoded in the DB, load it
try
{
RepositoryResult<Statement> stmts =
dm.getStatements(contextURI, null, null, false, Vocabulary.SYSTEM_CONTEXT.METACONTEXT);
ContextLabel label = null;
ContextState state = null;
ContextType type = null;
URI group = null;
URI source = null;
Long timestamp = null;
Boolean isEditable = null;
URI inputParameter = null;
// collect values: best-effort, load whatever is available in the DB
for(Statement s : stmts.asList())
{
if (s.getPredicate().equals(RDFS.LABEL))
label = stringToContextLabel(s.getObject().stringValue());
else if (s.getPredicate().equals(Vocabulary.SYSTEM_CONTEXT.CONTEXTSTATE))
state = stringToContextState(s.getObject().stringValue());
else if (s.getPredicate().equals(Vocabulary.SYSTEM_CONTEXT.CONTEXTTYPE))
type = stringToContextType(s.getObject().stringValue());
else if (s.getPredicate().equals(Vocabulary.SYSTEM_CONTEXT.CONTEXTGROUP))
{
Value groupVal = s.getObject();
if (groupVal instanceof URI)
group = (URI)groupVal;
}
else if (s.getPredicate().equals(Vocabulary.SYSTEM_CONTEXT.CONTEXTSRC))
{
Value sourceVal = s.getObject();
if (sourceVal instanceof URI)
source = (URI)sourceVal;
}
else if (s.getPredicate().equals(Vocabulary.DC.DATE))
{
String dateString = s.getObject().stringValue();
Date date = ReadWriteDataManagerImpl.ISOliteralToDate(dateString);
// for backward compatibility: We used to record the timestamp in different (inconsistent formats)
timestamp = date!=null ? date.getTime() : 0L;
}
else if (s.getPredicate().equals(Vocabulary.SYSTEM_CONTEXT.ISEDITABLE) )
isEditable = s.getObject().equals(Vocabulary.TRUE);
else if (s.getPredicate().equals(Vocabulary.SYSTEM_CONTEXT.INPUTPARAMETER))
inputParameter = ValueFactoryImpl.getInstance().createURI(s.getObject().stringValue());
}
stmts.close();
return new Context(type, contextURI, state, source, group, inputParameter, isEditable, timestamp, label);
}
catch (Exception e)
{
logger.error(e.getMessage(), e);
throw new RuntimeException(e);
}
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public static MetadataContext get() {\n if (null == METADATA_CONTEXT.get()) {\n MetadataContext metadataContext = new MetadataContext();\n if (metadataLocalProperties == null) {\n metadataLocalProperties = (MetadataLocalProperties) ApplicationContextAwareUtils\n .getApplicationContext().getBean(\"metadataLocalProperties\");\n }\n\n // init custom metadata and load local metadata\n Map<String, String> transitiveMetadataMap = getTransitiveMetadataMap(metadataLocalProperties.getContent(),\n metadataLocalProperties.getTransitive());\n metadataContext.putAllTransitiveCustomMetadata(transitiveMetadataMap);\n\n // init system metadata\n metadataContext.putSystemMetadata(MetadataConstant.SystemMetadataKey.LOCAL_NAMESPACE,\n LOCAL_NAMESPACE);\n metadataContext.putSystemMetadata(MetadataConstant.SystemMetadataKey.LOCAL_SERVICE,\n LOCAL_SERVICE);\n\n METADATA_CONTEXT.set(metadataContext);\n }\n return METADATA_CONTEXT.get();\n }",
"MMIContext getContext(final URI contextId) {\n final String str = contextId.toString();\n return getContext(str);\n }",
"public URI getCurrentContext();",
"public Context getContext() {\n if (context == null) {\n try {\n context = new InitialContext();\n } catch (NamingException exception) {\n }\n }\n return context;\n }",
"public Context getContext() { \n if (_logger.isLoggable(Level.FINE)) {\n _logger.fine(\"IN getContext()\");\n }\n try {\n return new InitialContext();\n } catch (Exception e) {\n throw new EJBException(_logger.getResourceBundle().getString(\n \"ejb.embedded.cannot_create_context\"), e);\n }\n }",
"private void initializeSystemContext(ContextType ctxType, URI contextUri) \n {\n \tthis.type=ctxType;\n \n // not in use for system contexts\n this.source=null;\n this.group=null;\n this.timestamp=null;\n this.inputParameter=null;\n this.label=null;\n this.isEditable=false;\n \n this.contextURI = contextUri;\n }",
"public abstract ApplicationLoader.Context context();",
"Context createContext();",
"Context createContext();",
"public static Context getContext() {\n if (sContext == null) {\n throw new RuntimeException(APPLICATION_CONTEXT_IS_NULL);\n }\n return sContext;\n }",
"public void initContext() {\n\t\tClassLoader originalContextClassLoader =\n\t\t\t\tThread.currentThread().getContextClassLoader();\n\t\tThread.currentThread().setContextClassLoader(MY_CLASS_LOADER);\n\t\t//this.setClassLoader(MY_CLASS_LOADER);\n\n\t\tcontext = new ClassPathXmlApplicationContext(\"beans.xml\");\n\t\tsetParent(context);\n\n\n\t\t// reset the original CL, to try to prevent crashing with\n\t\t// other Java AI implementations\n\t\tThread.currentThread().setContextClassLoader(originalContextClassLoader);\n\t}",
"public static Context getFreshUserContextWithURI(URI contextUri, ContextLabel contextLabel ) \n\t{\t\t\t\n\t\tlong timestamp = getContextTimestampSafe();\n\t\tURI source = EndpointImpl.api().getUserURI();\n\t\t\t\n\t\tif (contextUri==null)\n\t\t\tcontextUri = getGeneratedContextURI(source, timestamp, ContextType.USER);\n\t\t\t\n\t\treturn new Context(ContextType.USER, contextUri, \n\t\t\t\tgetDefaultContextState(ContextType.USER), \n\t\t\t\tsource, null, null, true, timestamp, contextLabel );\n\t}",
"public static ApplicationContext getContext() {\n if (context == null) {\n CompilerExtensionRegistry.setActiveExtension( OTA2CompilerExtensionProvider.OTA2_COMPILER_EXTENSION_ID );\n }\n return context;\n }",
"@Deprecated\n\tprotected ContextLoader createContextLoader() {\n\t\treturn null;\n\t}",
"private Context getContext() throws Exception {\n\t\tif (ctx != null)\n\t\t\treturn ctx;\n\n\t\tProperties props = new Properties();\n\t\tprops.put(Context.PROVIDER_URL, \"jnp://\" + endpoint);\n\t\tprops.put(Context.INITIAL_CONTEXT_FACTORY,\n\t\t\t\t\"org.jnp.interfaces.NamingContextFactory\");\n\t\tprops.put(Context.URL_PKG_PREFIXES,\n\t\t\t\t\"org.jboss.naming:org.jnp.interfaces\");\n\t\tctx = new InitialContext(props);\n\n\t\treturn ctx;\n\t}",
"public Context getContext(String name)\n throws NamingException\n {\n if(alias.containsKey(name))\n {\n name = alias.get(name);\n }\n Context ctx = context.get(name);\n if(ctx == null)\n {\n Hashtable<String, Object> props = initial.get(name);\n if(props == null || props.isEmpty())\n {\n throw new NamingException(\"context \"+name+\" was not found\");\n }\n ctx = new InitialContext(props);\n context.put(name, ctx);\n }\n return (Context)ctx.lookup(\"\");\n }",
"public BackingMapManagerContext getContext();",
"static DirContext getInitialDirContext() throws NamingException {\r\n\t\tHashtable<String, String> env = new Hashtable<String, String>();\r\n\t\tenv.put(Context.INITIAL_CONTEXT_FACTORY, \"com.sun.jndi.ldap.LdapCtxFactory\");\r\n\t\tenv.put(Context.PROVIDER_URL, ldapConfig.getConnection());\r\n\t\tenv.put(Context.SECURITY_AUTHENTICATION, getLdapConfig().getAuthenticationScheme());\r\n\t\tif (!getLdapConfig().getAuthenticationScheme().equals(ConfigurationManager.AUTH_NONE)) {\r\n\t\t\tenv.put(Context.SECURITY_PRINCIPAL, getLdapConfig().getPrincipal());\r\n\t\t\tenv.put(Context.SECURITY_CREDENTIALS, Password.fromEncryptedString(getLdapConfig().getCredentials()).getClearText());\r\n\t\t}\r\n\t\tInitialDirContext ctx = new InitialDirContext(env);\r\n\t\treturn ctx;\r\n\t}",
"Context getContext() {\n Context context = mContextRef.get();\n return context != null ? context : AppUtil.getAppContext();\n }",
"public static Context getContext() {\n\t\treturn context;\n\t}",
"public static Context getContext() {\n\t\treturn context;\n\t}",
"protected RestContext getContext() {\n\t\tif (context.get() == null)\n\t\t\tthrow new InternalServerError(\"RestContext object not set on resource.\");\n\t\treturn context.get();\n\t}",
"Map<String, Object> getContext();",
"public com.google.common.util.concurrent.ListenableFuture<\n com.google.cloud.aiplatform.v1.Context>\n getContext(com.google.cloud.aiplatform.v1.GetContextRequest request) {\n return io.grpc.stub.ClientCalls.futureUnaryCall(\n getChannel().newCall(getGetContextMethod(), getCallOptions()), request);\n }",
"private void loadFromBundle() {\n Bundle data = getIntent().getExtras();\n if (data == null)\n return;\n Resource resource = (Resource) data.getSerializable(PARAMETERS.RESOURCE);\n if (resource != null) {\n String geoStoreUrl = data.getString(PARAMETERS.GEOSTORE_URL);\n loadGeoStoreResource(resource, geoStoreUrl);\n }\n\n }",
"public LoggerContext getContext(String fqcn, ClassLoader loader, boolean currentContext, URI configLocation) {\n/* 63 */ if (currentContext) {\n/* 64 */ LoggerContext ctx = ContextAnchor.THREAD_CONTEXT.get();\n/* 65 */ if (ctx != null) {\n/* 66 */ return ctx;\n/* */ }\n/* 68 */ return getDefault();\n/* 69 */ } if (loader != null) {\n/* 70 */ return locateContext(loader, configLocation);\n/* */ }\n/* 72 */ Class<?> clazz = ReflectionUtil.getCallerClass(fqcn);\n/* 73 */ if (clazz != null) {\n/* 74 */ return locateContext(clazz.getClassLoader(), configLocation);\n/* */ }\n/* 76 */ LoggerContext lc = ContextAnchor.THREAD_CONTEXT.get();\n/* 77 */ if (lc != null) {\n/* 78 */ return lc;\n/* */ }\n/* 80 */ return getDefault();\n/* */ }",
"public Source resolve(URI uri) throws TransformerException\n {\n if (uri == null) throw new IllegalArgumentException(\"URI cannot be null\");\n if (!uri.isAbsolute()) throw new IllegalArgumentException(\"URI to be resolved must be absolute\");\n\n Model model = getFromCache(uri.toString());\n try\n {\n if (model == null) // URI not cached, \n {\n if (log.isDebugEnabled()) log.debug(\"No cached Model for URI: {}\", uri);\n\n if (isResolvingMapped() && isMapped(uri.toString()))\n {\n if (log.isDebugEnabled()) log.debug(\"isMapped({}): {}\", uri, isMapped(uri.toString()));\n return getSource(loadModel(uri.toString()), uri.toString());\n }\n\n if (resolvingUncached(uri.toString()))\n try\n { \n if (log.isTraceEnabled()) log.trace(\"Loading data for URI: {}\", uri);\n ClientResponse cr = null;\n\n try\n {\n cr = load(uri.toString());\n\n if (cr.hasEntity())\n {\n if (ResultSetProvider.isResultSetType(cr.getType()))\n return getSource(cr.getEntity(ResultSetRewindable.class), uri.toString());\n\n if (ModelProvider.isModelType(cr.getType()))\n return getSource(cr.getEntity(Model.class), uri.toString());\n }\n }\n finally\n {\n if (cr != null) cr.close();\n }\n\n return getDefaultSource(); // return empty Model \n }\n catch (IllegalArgumentException | ClientException | ClientHandlerException ex)\n {\n if (log.isWarnEnabled()) log.warn(\"Could not read Model or ResultSet from URI: {}\", uri);\n return getDefaultSource(); // return empty Model\n }\n else\n {\n if (log.isDebugEnabled()) log.debug(\"Defaulting to empty Model for URI: {}\", uri);\n return getDefaultSource(); // return empty Model\n }\n }\n else\n {\n if (log.isDebugEnabled()) log.debug(\"Cached Model for URI: {}\", uri);\n return getSource(model, uri.toString());\n }\n }\n catch (IOException ex)\n {\n if (log.isErrorEnabled()) log.error(\"Error resolving Source for URI: {}\", uri); \n throw new TransformerException(ex);\n } \n }",
"public Context getContext() {\n\t\treturn null;\n\t}",
"@Nullable\n private DocumentFile fromTreeUriCached(@NonNull final Context context, @NonNull final Uri treeUri) {\n String documentId = getTreeDocumentIdCached(treeUri);\n if (isDocumentUriCached(context, treeUri)) {\n documentId = DocumentsContract.getDocumentId(treeUri);\n }\n return newTreeDocumentFile(null, context,\n buildDocumentUriUsingTreeCached(treeUri, documentId));\n //DocumentsContract.buildDocumentUriUsingTree(treeUri, documentId));\n }",
"@Override\n\tpublic LoggerContext getContext(final String fqcn, final ClassLoader loader, final Object externalContext,\n\t\t\tfinal boolean currentContext) {\n\t\tfinal LoggerContext ctx = selector.getContext(fqcn, loader, currentContext);\n\t\tif (externalContext != null && ctx.getExternalContext() == null) {\n\t\t\tctx.setExternalContext(externalContext);\n\t\t}\n\t\tif (ctx.getState() == LifeCycle.State.INITIALIZED) {\n\t\t\tctx.start();\n\t\t}\n\t\treturn ctx;\n\t}",
"public synchronized static Store getInstance(String uri, Application application) throws MessagingException {\n Store store = mStores.get(uri);\n if (store == null) {\n if (uri.startsWith(STORE_SCHEME_IMAP)) {\n store = new ImapStore(uri);\n } else if (uri.startsWith(STORE_SCHEME_POP3)) {\n store = new Pop3Store(uri);\n } else if (uri.startsWith(STORE_SCHEME_LOCAL)) {\n store = new LocalStore(uri, application);\n }\n\n if (store != null) {\n mStores.put(uri, store);\n }\n }\n\n if (store == null) {\n throw new MessagingException(\"Unable to locate an applicable Store for \" + uri);\n }\n\n return store;\n }",
"default String getContext() {\n return getContextOpt().orElseThrow(IllegalStateException::new);\n }",
"public static Context getContext() {\n\t\treturn instance;\n\t}",
"public static BundleContext getContext() {\n return context;\n }",
"public Context getContext() {\n if (context == null) {\n context = Model.getSingleton().getSession().getContext(this.contextId);\n }\n return context;\n }",
"public static OntResource getOntResourceWithLoad(OntModel model, String uri) throws SADIException\n\t{\n\t\tOntResource r = model.getOntResource(uri);\n\t\tif (r != null)\n\t\t\treturn r;\n\t\t\n\t\tloadMinimalOntologyForUri(model, uri);\n\t\treturn model.getOntResource(uri);\n\t}",
"@Override\n\tpublic LoggerContext getContext(final String fqcn, final ClassLoader loader, final Object externalContext,\n\t\t\tfinal boolean currentContext, final URI configLocation, final String name) {\n\t\tfinal LoggerContext ctx = selector.getContext(fqcn, loader, currentContext, configLocation);\n\t\tif (externalContext != null && ctx.getExternalContext() == null) {\n\t\t\tctx.setExternalContext(externalContext);\n\t\t}\n\t\tif (name != null) {\n\t\t\tctx.setName(name);\n\t\t}\n\t\tif (ctx.getState() == LifeCycle.State.INITIALIZED) {\n\t\t\tif (configLocation != null || name != null) {\n\t\t\t\tContextAnchor.THREAD_CONTEXT.set(ctx);\n\t\t\t\tfinal Configuration config = ConfigurationFactory.getInstance().getConfiguration(ctx, name,\n\t\t\t\t\t\tconfigLocation);\n\t\t\t\tLOGGER.debug(\"Starting LoggerContext[name={}] from configuration at {}\", ctx.getName(), configLocation);\n\t\t\t\tctx.start(config);\n\t\t\t\tContextAnchor.THREAD_CONTEXT.remove();\n\t\t\t} else {\n\t\t\t\tctx.start();\n\t\t\t}\n\t\t}\n\t\treturn ctx;\n\t}",
"public LoggerContext getContext(final String fqcn, final ClassLoader loader, final Object externalContext,\n\t\t\tfinal boolean currentContext, final ConfigurationSource source) {\n\t\tfinal LoggerContext ctx = selector.getContext(fqcn, loader, currentContext, null);\n\t\tif (externalContext != null && ctx.getExternalContext() == null) {\n\t\t\tctx.setExternalContext(externalContext);\n\t\t}\n\t\tif (ctx.getState() == LifeCycle.State.INITIALIZED) {\n\t\t\tif (source != null) {\n\t\t\t\tContextAnchor.THREAD_CONTEXT.set(ctx);\n\t\t\t\tfinal Configuration config = ConfigurationFactory.getInstance().getConfiguration(ctx, source);\n\t\t\t\tLOGGER.debug(\"Starting LoggerContext[name={}] from configuration {}\", ctx.getName(), source);\n\t\t\t\tctx.start(config);\n\t\t\t\tContextAnchor.THREAD_CONTEXT.remove();\n\t\t\t} else {\n\t\t\t\tctx.start();\n\t\t\t}\n\t\t}\n\t\treturn ctx;\n\t}",
"public static Context getContext() {\r\n\t\tif (mContext == null)\r\n\t\t\treturn null;\r\n\t\telse\r\n\t\t\treturn mContext;\r\n\r\n\t}",
"public abstract Context context();",
"public void testContextManager() throws Exception {\n System.out.println(\"testContextManager\");\n \n // init the session information\n ThreadsPermissionContainer permissions = new ThreadsPermissionContainer();\n SessionManager.init(permissions);\n UserStoreManager userStoreManager = new UserStoreManager();\n UserSessionManager sessionManager = new UserSessionManager(permissions,\n userStoreManager);\n LoginManager.init(sessionManager,userStoreManager);\n // instanciate the thread manager\n CoadunationThreadGroup threadGroup = new CoadunationThreadGroup(sessionManager,\n userStoreManager);\n \n // add a user to the session for the current thread\n RoleManager.getInstance();\n \n InterceptorFactory.init(permissions,sessionManager,userStoreManager);\n \n // add a new user object and add to the permission\n Set set = new HashSet();\n set.add(\"test\");\n UserSession user = new UserSession(\"test1\", set);\n permissions.putSession(new Long(Thread.currentThread().getId()),\n new ThreadPermissionSession(\n new Long(Thread.currentThread().getId()),user));\n \n \n NamingDirector.init(threadGroup);\n \n Context context = new InitialContext();\n \n context.bind(\"java:comp/env/test\",\"fred\");\n context.bind(\"java:comp/env/test2\",\"fred2\");\n \n if (!context.lookup(\"java:comp/env/test\").equals(\"fred\")) {\n fail(\"Could not retrieve the value for test\");\n }\n if (!context.lookup(\"java:comp/env/test2\").equals(\"fred2\")) {\n fail(\"Could not retrieve the value for test2\");\n }\n System.out.println(\"Creating the sub context\");\n Context subContext = context.createSubcontext(\"java:comp/env/test3/test3\");\n System.out.println(\"Adding the binding for bob to the sub context\");\n subContext.bind(\"bob\",\"bob\");\n System.out.println(\"Looking up the binding for bob on the sub context.\");\n Object value = subContext.lookup(\"bob\");\n System.out.println(\"Object type is : \" + value.getClass().getName());\n if (!value.equals(\"bob\")) {\n fail(\"Could not retrieve the value bob\");\n }\n if (!context.lookup(\"java:comp/env/test3/test3/bob\").equals(\"bob\")) {\n fail(\"Could not retrieve the value bob\");\n }\n \n ClassLoader loader = new URLClassLoader(new URL[0]);\n ClassLoader original = Thread.currentThread().getContextClassLoader();\n Thread.currentThread().setContextClassLoader(loader);\n NamingDirector.getInstance().initContext();\n \n context.bind(\"java:comp/env/test5\",\"fred5\");\n if (!context.lookup(\"java:comp/env/test5\").equals(\"fred5\")) {\n fail(\"Could not retrieve the value fred5\");\n }\n \n Thread.currentThread().setContextClassLoader(original);\n \n try{\n context.lookup(\"java:comp/env/test5\");\n fail(\"Failed retrieve a value that should not exist\");\n } catch (NameNotFoundException ex) {\n // ignore\n }\n \n Thread.currentThread().setContextClassLoader(loader);\n \n NamingDirector.getInstance().releaseContext();\n \n try{\n context.lookup(\"java:comp/env/test5\");\n fail(\"Failed retrieve a value that should not exist\");\n } catch (NameNotFoundException ex) {\n // ignore\n }\n Thread.currentThread().setContextClassLoader(original);\n System.out.println(\"Add value 1\");\n context.bind(\"basic\",\"basic\");\n System.out.println(\"Add value 2\");\n context.bind(\"basic2/bob\",\"basic2\");\n if (context.lookup(\"basic\") != null) {\n fail(\"Could not retrieve the basic value from the [\" + \n context.lookup(\"basic\") + \"]\");\n }\n if (context.lookup(\"basic2/bob\") != null) {\n fail(\"Could not retrieve the basic value from the JNDI [\" +\n context.lookup(\"basic2/bob\") + \"]\");\n }\n \n try {\n context.bind(\"java:network/env/test\",\"fred\");\n fail(\"This should have thrown as only relative urls can be used \" +\n \"JNDI\");\n } catch (NamingException ex) {\n // ignore\n }\n \n try {\n context.unbind(\"java:network/env/test\");\n fail(\"This should have thrown as only relative urls can be used \" +\n \"JNDI\");\n } catch (NamingException ex) {\n // ignore\n }\n context.rebind(\"basic\",\"test1\");\n context.rebind(\"basic2/bob\",\"test2\");\n \n if (context.lookup(\"basic\") != null) {\n fail(\"Could not retrieve the basic value from the JNDI\");\n }\n if (context.lookup(\"basic2/bob\") != null) {\n fail(\"Could not retrieve the basic value from the JNDI\");\n }\n \n context.unbind(\"basic\");\n context.unbind(\"basic2/bob\");\n \n try{\n context.lookup(\"basic2/bob\");\n fail(\"The basic bob value could still be found\");\n } catch (NameNotFoundException ex) {\n // ignore\n }\n \n NamingDirector.getInstance().shutdown();\n }",
"static ClassLoader contextClassLoader() {\n return Thread.currentThread().getContextClassLoader();\n }",
"@Deprecated\n\tpublic ContextLoader getContextLoader() {\n\t\treturn this.contextLoader;\n\t}",
"public RuntimeContext(RuntimeManagerImpl rtMgr)\n {\n super(rtMgr.getJNIEasy()); \n \n this.rtMgr = rtMgr;\n }",
"public Context getContext() {\n return this.mService.mContext;\n }",
"public static Context getResourceContext() {\n return context;\n }",
"public synchronized Context getContext() throws ConfigurationException {\n if (context == null) {\n if (contextXml.exists()) {\n // load configuration if already exists\n try {\n context = Context.createGraph(contextXml);\n } catch (IOException e) {\n String msg = NbBundle.getMessage(TomcatModuleConfiguration.class, \"MSG_ConfigurationXmlReadFail\", contextXml.getPath());\n throw new ConfigurationException(msg, e);\n } catch (RuntimeException e) {\n // context.xml is not parseable\n String msg = NbBundle.getMessage(TomcatModuleConfiguration.class, \"MSG_ConfigurationXmlBroken\", contextXml.getPath());\n throw new ConfigurationException(msg, e);\n }\n } else {\n // create context.xml if it does not exist yet\n context = genereateContext();\n TomcatModuleConfiguration.<Context>writeToFile(contextXml, () -> getContext());\n }\n }\n return context;\n }",
"public com.google.cloud.aiplatform.v1.Context getContext(\n com.google.cloud.aiplatform.v1.GetContextRequest request) {\n return io.grpc.stub.ClientCalls.blockingUnaryCall(\n getChannel(), getGetContextMethod(), getCallOptions(), request);\n }",
"private LifecycleHolder get(Context context) {\n if (context == null) {\n throw new IllegalArgumentException(\"You cannot start a load on a null Context\");\n } else if (!isOnMainThread() && !(context instanceof Application)) {\n if (context instanceof FragmentActivity) {\n return get((FragmentActivity) context);\n } else if (context instanceof Activity) {\n return get((Activity) context);\n } else if (context instanceof ContextWrapper) {\n return get(((ContextWrapper) context).getBaseContext());\n }\n }\n\n return getApplicationLifecycle();\n }",
"public static DataManager getInstance()\n\t{\n\t\tDataManager pManager = null;\n\t\tObject pObject = UiStorage.getEntity(DataManager.class);\n\t\tif ( null == pObject )\n\t\t{\n\t\t\tpManager = new DataManager();\n\t\t\tUiStorage.setEntity(pManager);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tpManager = (DataManager)pObject;\n\t\t}\n\t\t\n\t\treturn pManager;\n\t}",
"private static void createOnlineManager(Context context) throws LogonCoreException {\n try\n {\n ODataOnlineManager.openOnlineStore(context);\n\n }\n catch (OnlineODataStoreException e)\n {\n e.printStackTrace();\n Log.e(TAG, context.getString(R.string.unable_to_open_store));\n }\n\n }",
"public LoggerContext getContext(String fqcn, ClassLoader loader, boolean currentContext, URI configLocation) {\n/* 39 */ return context;\n/* */ }",
"public static ApplicationContext loadCfg(URL springCfgUrl) throws GridException {\n GenericApplicationContext springCtx;\n\n try {\n springCtx = new GenericApplicationContext();\n\n new XmlBeanDefinitionReader(springCtx).loadBeanDefinitions(new UrlResource(springCfgUrl));\n\n springCtx.refresh();\n }\n catch (BeansException e) {\n throw new GridException(\"Failed to instantiate Spring XML application context [springUrl=\" +\n springCfgUrl + \", err=\" + e.getMessage() + ']', e);\n }\n\n return springCtx;\n }",
"public static InputStream m1350d(Context context, Uri uri) {\n if (context == null || uri == null) {\n return null;\n }\n try {\n return context.getContentResolver().openInputStream(uri);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n return null;\n }\n }",
"public static Context getInstance(){\n\t\treturn (Context) t.get();\n\t}",
"public static Monde loadContext(String filePath) throws IOException, ClassNotFoundException {\n\t\tFileInputStream fin = new FileInputStream(filePath);\n\t\tObjectInputStream ois = new ObjectInputStream(fin);\n\t\tMonde monde = (Monde) ois.readObject();\n\t\tois.close();\n\t\treturn monde;\n\t}",
"public org.omg.CORBA.Context read_Context() {\n throw new org.omg.CORBA.NO_IMPLEMENT();\n }",
"public static void initialize(Context context) throws LogonCoreException {\n appContext = context;\n try {\n createOnlineManager(context);\n } catch (LogonCoreException e) {\n e.printStackTrace();\n }\n getTheData();\n }",
"protected Context lookupSubContext( final Name name )\n throws NamingException\n {\n final Name atom = name.getPrefix( 1 );\n Object object = localLookup( atom );\n\n if ( 1 != name.size() )\n {\n if ( !( object instanceof Context ) )\n {\n throw new NotContextException( atom.toString() );\n }\n\n object = ( (Context) object ).lookup( name.getSuffix( 1 ) );\n }\n\n if ( !( object instanceof Context ) )\n {\n throw new NotContextException( name.toString() );\n }\n\n //((Context)object).close();\n return (Context) object;\n }",
"public static void init(Context context) {\n //Check if my sub_manager is set to null, if so initialize it\n if (subManager==null){\n if(context==null){\n throw new RuntimeException(\"Error Occurred\");\n }\n else{\n subManager=new SubManager(context);\n }\n }\n }",
"@Bean(name = \"hebLdapContext\")\n\tpublic BaseLdapPathContextSource contextSource() throws Exception {\n\t\tDefaultSpringSecurityContextSource contextSource =\n\t\t\t\tnew DefaultSpringSecurityContextSource(this.url);\n\t\tcontextSource.setUserDn(this.managerDn);\n\t\tcontextSource.setPassword(this.managerPassword);\n\t\tcontextSource.setBase(this.root);\n\t\tcontextSource.afterPropertiesSet();\n\n\t\treturn contextSource;\n\t}",
"@NonNull\n public final AutoRef<Context> getContext() throws IllegalStateException, ReferenceNullException {\n return AutoRef.of(getView().get().getContext());\n }",
"public DirContext getDirContext(String name)\n throws NamingException\n {\n if(alias.containsKey(name))\n {\n name = alias.get(name);\n }\n DirContext ctx = (DirContext)context.get(name);\n if(ctx == null)\n {\n Hashtable<String, Object> props = initial.get(name);\n if(props == null || props.isEmpty())\n {\n throw new NamingException(\"context \"+name+\" was not found\");\n }\n ctx = new InitialDirContext(props);\n context.put(name, ctx);\n }\n return (DirContext)ctx.lookup(\"\");\n }",
"@Override\n public Context getContext() {\n return this.getApplicationContext();\n }",
"Context getContext();",
"private static ConfigDocumentContext createConfigurationContext(String resource) \n throws LifecycleException \n {\n try {\n Object contextBean = null;\n URL configUrl = Thread.currentThread().getContextClassLoader().getResource(resource);\n if( configUrl == null ) {\n // we can't find the config so we just an instance of Object for the ConfigDocumentContext.\n if( log.isDebugEnabled() )\n log.debug(\"Cannot find configuration at resource '\"+resource+\"'.\");\n contextBean = new Object();\n } else {\n // we have a config, create a DOM out of it and use it for the ConfigDocumentContext.\n if( log.isDebugEnabled() ) {\n log.debug(\"Loading xchain config file for url: \"+configUrl.toExternalForm());\n }\n \n // get the document builder.\n DocumentBuilder documentBuilder = XmlFactoryLifecycle.newDocumentBuilder();\n \n InputSource configInputSource = UrlSourceUtil.createSaxInputSource(configUrl);\n Document document = documentBuilder.parse(configInputSource);\n contextBean = document;\n }\n // create the context\n ConfigDocumentContext configDocumentContext = new ConfigDocumentContext(null, contextBean, Scope.chain);\n configDocumentContext.setConfigUrl(configUrl);\n configDocumentContext.setLenient(true);\n return configDocumentContext;\n } catch( Exception e ) {\n throw new LifecycleException(\"Error loading configuration from resource '\"+resource+\"'.\", e);\n }\n }",
"private Context getThreadContext() throws NamingException {\n final ThreadContext threadContext = ThreadContext.getThreadContext();\n if (skipEjbContext(threadContext)) {\n return ContextBindings.getClassLoader();\n }\n final Context context = threadContext.getBeanContext().getJndiEnc();\n return context;\n }",
"public Context getContext() {\n return contextMain;\n }",
"private MMIContext getContext(final LifeCycleRequest request,\n final boolean create) throws MMIMessageException {\n final String contextId = request.getContext();\n final String requestId = request.getRequestId();\n if (requestId == null || requestId.isEmpty()) {\n throw new MMIMessageException(\"No request id given\");\n }\n MMIContext context = getContext(contextId);\n if (context == null) {\n if (!create) {\n throw new MMIMessageException(\"Context '\" + contextId\n + \"' refers to an unknown context\");\n }\n try {\n context = new MMIContext(contextId);\n } catch (URISyntaxException e) {\n throw new MMIMessageException(e.getMessage(), e);\n }\n synchronized (contexts) {\n contexts.put(contextId, context);\n }\n }\n return context;\n }",
"static BundleContext getBundleContext(Hashtable< ? , ? > environment,\n\t\t\tString namingClassType) {\n\t\t// iterate over the existing strategies to attempt to find a BundleContext\n\t\t// for the calling Bundle\n\t\tfor(int i = 0; i < getBundleContextStrategies.length; i++) {\n\t\t\tBundleContext clientBundleContext = \n\t\t\t\tgetBundleContextStrategies[i].getBundleContext(environment, namingClassType);\n\t\t\tif(clientBundleContext != null) {\n\t\t\t\treturn clientBundleContext;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// if a BundleContext isn't found at this point, return null\n\t\treturn null;\n\t}",
"private DatabaseContext() {\r\n datastore = createDatastore();\r\n init();\r\n }",
"public CamelContext getXNetContext() {\n CamelContext cctx;\n Map<String, Object> xnetComp = getXNetComponent();\n if (xnetComp == null || xnetComp.isEmpty()) {\n Log.info(LifeCARDAdmin.class.getName() + \":getXNetContext()():No valid XNET routing handle found\");\n return null;\n }\n //+++ do not just return the context...\n //return this.camelContext;\n ActiveMQComponent amqComp = (ActiveMQComponent) xnetComp.get(\"ActiveMQComponent\");\n if (amqComp == null) {\n Log.info(LifeCARDAdmin.class.getName() + \":getXNetContext()():No valid XNET handle found (No AMQ component)\");\n return null;\n }\n //... get and check the context of the highest identified processing\n cctx = amqComp.getCamelContext();\n //TODO check connection... otherwise throw error \"XNetConnectionError\"\n if (cctx == null || cctx.isSuspended()) {\n Log.log(Level.WARNING, LifeCARDAdmin.class.getName() + \":getXNetContext():\" + (cctx == null ? \"XNET context not present (null)\" : \"XNET context suspended \" + cctx.isSuspended()));\n return null;\n }\n return cctx;\n }",
"public Object getContextObject() {\n return context;\n }",
"private EntityManager getEM() {\n\t\tif (emf == null || !emf.isOpen())\n\t\t\temf = Persistence.createEntityManagerFactory(PUnit);\n\t\tEntityManager em = threadLocal.get();\n\t\tif (em == null || !em.isOpen()) {\n\t\t\tem = emf.createEntityManager();\n\t\t\tthreadLocal.set(em);\n\t\t}\n\t\treturn em;\n\t}",
"ContentLoader getContentLoader(ClientRequestContext context);",
"public void init(BackingMapManagerContext context);",
"private static Context getInitialContext() throws NamingException {\n return new InitialContext();\r\n }",
"public OpenSimContext getContext(Model model) {\n OpenSimContext dContext = mapModelsToContexts.get(model);\n if(dContext==null)\n return createContext(model, false);\n return (dContext);\n }",
"public Context getApplicationContext();",
"@Override\r\n\tpublic Context getContext() {\n\t\treturn null;\r\n\t}",
"static synchronized Context getContext() {\n checkState();\n return sInstance.mContext;\n }",
"public Future<CtxModelObject> retrieve(CtxIdentifier identifier);",
"public static XML.ObjectLoader getLoader() {\n return new Loader();\n }",
"public static SessionManager get(Context context) {\n \tif (self == null) {\n \t\tself = new SessionManager(context);\n \t}\n \treturn self;\n }",
"protected void initApplicationContext() throws ApplicationContextException {\n try {\n if (log.isDebugEnabled()) {\n log.debug(\"Starting struts-menu initialization\");\n }\n ServletContext ctx = this.getServletContext();\n Config configForInit = new Config();\n \t\tconfigForInit.setConfigParam(ctx.getRealPath(menuConfig));\n \t\ttry {\n \t\t\tconfigForInit.init();\n \t\t} catch (LoadableResourceException e1) {\n \t\t\t// TODO Auto-generated catch block\n \t\t\te1.printStackTrace();\n \t\t} catch (IOException e1) {\n \t\t\t// TODO Auto-generated catch block\n \t\t\te1.printStackTrace();\n \t\t} catch (SAXException e1) {\n \t\t\t// TODO Auto-generated catch block\n \t\t\te1.printStackTrace();\n \t\t} catch (SQLException e1) {\n \t\t\t// TODO Auto-generated catch block\n \t\t\te1.printStackTrace();\n \t\t}\n \t\tParser parse = null;\n \t\ttry {\n \t\t\tparse = configForInit.getParser();\n \t\t} catch (Exception e) {\n \t\t\t// TODO Auto-generated catch block\n \t\t\te.printStackTrace();\n \t\t}\n\n \t\tMenuRepository repository = new MenuRepository();\n \t\trepository.setLoadParam(menuConfig);\n \t\trepository.setServletContext(ctx);\n \t\tparse.init(repository);\n\n \t\ttry {\n \t\t\tparse.load();\n ctx.setAttribute(MenuRepository.MENU_REPOSITORY_KEY, repository);\n\n if (log.isDebugEnabled()) {\n log.debug(\"struts-menu initialization successful\");\n }\n } catch (LoadableResourceException lre) {\n throw new ServletException(\"Failure initializing struts-menu: \" +\n lre.getMessage());\n }\n } catch (Exception ex) {\n throw new ApplicationContextException(\"Failed to initialize Struts Menu repository\",\n ex);\n }\n }",
"private static Store open(final boolean fragmented) throws DataStoreException {\n final var connector = new StorageConnector(testData());\n if (fragmented) {\n connector.setOption(DataOptionKey.FOLIATION_REPRESENTATION, FoliationRepresentation.FRAGMENTED);\n }\n connector.setOption(OptionKey.GEOMETRY_LIBRARY, GeometryLibrary.ESRI);\n return new Store(null, connector);\n }",
"@NonNull\n @Override\n public Loader<Cursor> onCreateLoader(int loaderId, @Nullable Bundle loaderArgs) {\n switch (loaderId) {\n\n// If the loader requested is our detail loader, return the appropriate CursorLoader\n case ID_DETAIL_LOADER:\n\n return new CursorLoader(this,\n mUri,\n MAIN_FORECAST_PROJECTION,\n null,\n null,\n null);\n\n default:\n throw new RuntimeException(\"Loader Not Implemented: \" + loaderId);\n }\n }",
"@Test\n public void contextLoad() throws Exception {\n testCase1();\n }",
"private static Context prepareContext() {\r\n\r\n Context context = new Context();\r\n\r\n ContextProperties properties = new ContextProperties();\r\n\r\n // Context requires a name\r\n properties.setName(\"Example_Package_Context\");\r\n\r\n // description is nice\r\n properties.setDescription(\"Example package Context.\");\r\n\r\n // define the type\r\n properties.setType(\"ExampleType\");\r\n\r\n /*\r\n * Organizational Unit(s) is/are required\r\n */\r\n OrganizationalUnitRefs ous = new OrganizationalUnitRefs();\r\n\r\n // add the Organizational Unit with objid escidoc:ex3 (the ou of the\r\n // example eSciDoc representation package) to the list of\r\n // organizational Units\r\n ous.add(new OrganizationalUnitRef(\"escidoc:ex3\"));\r\n properties.setOrganizationalUnitRefs(ous);\r\n\r\n context.setProperties(properties);\r\n\r\n return context;\r\n }",
"@Test\n public void getManager_ReturnsNonNullManager() {\n final DiffRequestManager diffRequestManager = mDiffRequestManagerHolder.getManager(TEST_TAG);\n\n // Then\n assertThat(diffRequestManager, notNullValue());\n }",
"private void setupContext() throws PackageManager.NameNotFoundException {\n when(context.getPackageName()).thenReturn(\"com.owlr.test\");\n when(context.getPackageManager()).thenReturn(packageManager);\n when(packageManager.getApplicationInfo(\"com.owlr.test\",\n PackageManager.GET_META_DATA)).thenReturn(applicationInfo);\n applicationInfo.metaData = bundle;\n }",
"public Object lookup( final Name name )\n throws NamingException\n {\n //if it refers to base context return a copy of it.\n if ( isSelf( name ) )\n {\n return cloneContext();\n }\n\n if ( 1 == name.size() )\n {\n Object obj = localLookup( name );\n if ( obj instanceof AbstractLocalContext )\n {\n return ( (AbstractLocalContext) obj ).cloneContext();\n }\n\n return obj;\n }\n else\n {\n final Context context = lookupSubContext( getPathName( name ) );\n\n return context.lookup( getLeafName( name ) );\n }\n }",
"public static DatabaseManager getInstance(Context context) {\n if (databaseManager == null) {\n databaseManager = new DatabaseManager(context);\n }\n\n return databaseManager;\n }",
"protected Entity readEntity(final UriInfoResource uriInfo) throws ODataApplicationException {\n return readEntity(uriInfo, false);\n }",
"public MyServiceDataSingleton(Context context) {\r\n myContext = context;\r\n }",
"public Context getContext() {\r\n\t\treturn context;\r\n\t}",
"public abstract void makeContext();",
"static BundleContext getBundleContextFromClassLoader(\n\t\t\tClassLoader classLoader) {\n\t\tBundleReference bundleRef = (BundleReference) classLoader;\n\t\tif (bundleRef.getBundle() != null) {\n\t\t return bundleRef.getBundle().getBundleContext();\n\t\t}\n\t\t\n\t\treturn null;\n\t}",
"private void initContext() {\n contextId = System.getProperty(CONFIG_KEY_CERES_CONTEXT, DEFAULT_CERES_CONTEXT);\n\n // Initialize application specific configuration keys\n homeDirKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_HOME);\n debugKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_DEBUG);\n configFileKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_CONFIG_FILE_NAME);\n modulesDirKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_MODULES);\n libDirsKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_LIB_DIRS);\n mainClassKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_MAIN_CLASS);\n classpathKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_CLASSPATH);\n applicationIdKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_APP);\n logLevelKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_LOG_LEVEL);\n consoleLogKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_CONSOLE_LOG);\n\n // Initialize default file and directory paths\n char sep = File.separatorChar;\n defaultRelConfigFilePath = String.format(\"%s/%s\", DEFAULT_CONFIG_DIR_NAME, configFileKey).replace('/', sep);\n defaultHomeConfigFilePath = String.format(\"${%s}/%s\", homeDirKey, defaultRelConfigFilePath).replace('/', sep);\n defaultHomeModulesDirPath = String.format(\"${%s}/%s\", homeDirKey, DEFAULT_MODULES_DIR_NAME).replace('/', sep);\n defaultHomeLibDirPath = String.format(\"${%s}/%s\", homeDirKey, DEFAULT_LIB_DIR_NAME).replace('/', sep);\n }",
"public Context getContext() {\n return context;\n }"
] |
[
"0.5321227",
"0.47061756",
"0.46778035",
"0.46218377",
"0.45787743",
"0.45118",
"0.45000145",
"0.44289768",
"0.44289768",
"0.44019476",
"0.43419245",
"0.43314117",
"0.43249008",
"0.42799556",
"0.42574438",
"0.4257206",
"0.4254957",
"0.42329404",
"0.418864",
"0.41349682",
"0.41349682",
"0.41267285",
"0.41096854",
"0.4099412",
"0.40940428",
"0.4084715",
"0.40727016",
"0.4065435",
"0.40540653",
"0.40503827",
"0.40480846",
"0.40450233",
"0.40393555",
"0.40393046",
"0.4026261",
"0.40077722",
"0.39950636",
"0.39874536",
"0.39843994",
"0.39800504",
"0.39791465",
"0.39667454",
"0.39593962",
"0.3950173",
"0.39486635",
"0.39446157",
"0.39372393",
"0.38975298",
"0.38856712",
"0.3882186",
"0.38764",
"0.38699752",
"0.38641444",
"0.38604343",
"0.38602516",
"0.3856702",
"0.38546824",
"0.38541186",
"0.38464507",
"0.38424805",
"0.38355935",
"0.3829042",
"0.38240218",
"0.38137233",
"0.38084918",
"0.38048092",
"0.3798074",
"0.37948537",
"0.37930706",
"0.37847793",
"0.37817767",
"0.37814042",
"0.37813586",
"0.37797767",
"0.37719756",
"0.37704605",
"0.3767188",
"0.3760074",
"0.3754086",
"0.37436172",
"0.37417215",
"0.373828",
"0.3727444",
"0.37155202",
"0.37074417",
"0.37060443",
"0.37058875",
"0.36986333",
"0.36980498",
"0.36958054",
"0.36947006",
"0.36944732",
"0.36940873",
"0.36926553",
"0.36912423",
"0.3687995",
"0.36879024",
"0.367885",
"0.367545",
"0.36710045"
] |
0.7007785
|
0
|
Generates a fresh context with the given label for the current user and time.
|
public static Context getFreshUserContext( ContextLabel contextLabel )
{
return getFreshUserContextWithURI(null, contextLabel);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public static Context getFreshUserContextWithURI(URI contextUri, ContextLabel contextLabel ) \n\t{\t\t\t\n\t\tlong timestamp = getContextTimestampSafe();\n\t\tURI source = EndpointImpl.api().getUserURI();\n\t\t\t\n\t\tif (contextUri==null)\n\t\t\tcontextUri = getGeneratedContextURI(source, timestamp, ContextType.USER);\n\t\t\t\n\t\treturn new Context(ContextType.USER, contextUri, \n\t\t\t\tgetDefaultContextState(ContextType.USER), \n\t\t\t\tsource, null, null, true, timestamp, contextLabel );\n\t}",
"public static Context createContext(String username, long timeout) {\n Context context = Context.getDefault();\n Vtrpc.CallerID callerID = null;\n if (null != username) {\n callerID = Vtrpc.CallerID.newBuilder().setPrincipal(username).build();\n }\n\n if (null != callerID) {\n context = context.withCallerId(callerID);\n }\n if (timeout > 0) {\n context = context.withDeadlineAfter(Duration.millis(timeout));\n }\n\n return context;\n }",
"private Context genereateContext() {\n Context newContext = new Context();\n String path = \"\"; // NOI18N\n newContext.setAttributeValue(ATTR_PATH, path);\n\n // if tomcat 5.0.x generate a logger\n if (tomcatVersion == TomcatVersion.TOMCAT_50) {\n // generate default logger\n newContext.setLogger(true);\n newContext.setLoggerClassName(\"org.apache.catalina.logger.FileLogger\"); // NOI18N\n newContext.setLoggerPrefix(computeLoggerPrefix(path));\n newContext.setLoggerSuffix(\".log\"); // NOI18N\n newContext.setLoggerTimestamp(\"true\"); // NOI18N\n } else if (tomcatVersion == TomcatVersion.TOMCAT_55\n || tomcatVersion == TomcatVersion.TOMCAT_60\n || tomcatVersion == TomcatVersion.TOMCAT_70){\n // tomcat 5.5, 6.0 and 7.0\n newContext.setAntiJARLocking(\"true\"); // NOI18N\n }\n return newContext;\n }",
"@ScheduledMethod(start = 1, interval = 1, priority = 5)\n\tpublic void randomContext() {\n\t\tif(!CFG.chooseContext() && isEating){\n\t\t\t//Note that you don't add PContexts to the grid, nor move their location\n\t\t\t//When making a Pcontext the constructer automaticly sets the pcontext of the location.\n\t\t\tList<Location> openLocations = new ArrayList<Location>(candidateLocations);\n\t\t\topenLocations.addAll(homes);\n\t\t\topenLocations = filterOnAffordancesL(openLocations);\n\t\t\tint randomIndex = RandomHelper.nextIntFromTo(0,\n\t\t\t\t\topenLocations.size() - 1);\n\t\t\tLocation randomLocation = openLocations.get(randomIndex);\n\t\t\tgoTo(randomLocation);\n\t\t}\n\t}",
"Context createContext();",
"Context createContext();",
"ContextVariable createContextVariable();",
"public User(int contextId, String name) {\n super();\n this.id = ID_SOURCE++;\n this.contextId = contextId;\n this.name = name;\n }",
"public NewUsers() {\n initComponents();\n currentTimeDate();\n }",
"SimpleUniqueValueGenerator(String context) {\n context_ = context;\n }",
"public static void initClock(Label dateTimeLabel) {\n Timeline dateTime = new Timeline(new KeyFrame(Duration.ZERO, e -> {\n DateTimeFormatter formatString = DateTimeFormatter.ofPattern(\"HH:mm:ss | dd/MM-yyyy\");\n dateTimeLabel.setText(LocalDateTime.now().format(formatString));\n }), new KeyFrame(Duration.millis(500)));\n\n dateTime.setCycleCount(Animation.INDEFINITE);\n dateTime.play();\n }",
"protected void rememberCurTime(String varName)\n\t{\n\t\ttext(\"long \").text(varName).text(\" = System.currentTimeMillis()\").endCodeLine();\n\t}",
"public String tooltip()\n\t{\n\t if (contextURI==null)\n\t return \"(no context specified)\";\n\t \n\t if (contextURI.equals(Vocabulary.SYSTEM_CONTEXT.METACONTEXT))\n\t return \"MetaContext (stores data about contexts)\";\n\t \n\t if(contextURI.equals(Vocabulary.SYSTEM_CONTEXT.VOIDCONTEXT))\n\t \treturn \"VoID Context (stores statistics about contexts)\";\n\t \n\t if (type!=null && timestamp!=null)\n\t {\n\t GregorianCalendar c = new GregorianCalendar();\n\t c.setTimeInMillis(timestamp);\n\t \n\t String date = ReadWriteDataManagerImpl.dateToISOliteral(c.getTime()); \n\t \n\t if (!StringUtil.isNullOrEmpty(date))\n\t date = ValueResolver.resolveSysDate(date);\n\t \n\t String ret = \"Created by \" + type;\n\t if (type.equals(ContextType.USER))\n\t ret += \" '\"\n\t + source.getLocalName()\n\t + \"'\";\n\t else\n\t {\n\t String displaySource = null;\n\t if(source!=null)\n\t {\n\t displaySource = EndpointImpl.api().getNamespaceService().getAbbreviatedURI(source);\n\t if (StringUtil.isNullOrEmpty(displaySource))\n\t displaySource = source.stringValue(); // fallback solution: full URI\n\t }\n\t String displayGroup = null;\n\t if (group!=null)\n\t {\n\t displayGroup = EndpointImpl.api().getNamespaceService().getAbbreviatedURI(group);\n\t if (StringUtil.isNullOrEmpty(displayGroup))\n\t displayGroup = group.stringValue(); // fallback solution: full URI\n\t }\n\t \n\t ret += \" (\";\n\t ret += source==null ? \"\" : \"source='\" + displaySource + \"'\";\n\t ret += source!=null && group!=null ? \"/\" : \"\";\n\t ret += group==null ? \"\" : \"group='\" + displayGroup + \"'\";\n\t ret += \")\";\n\t }\n\t ret += \" on \" + date;\n\t if (label!=null)\n\t ret += \" (\" + label.toString() + \")\";\n\t if (state!=null && !state.equals(ContextState.PUBLISHED))\n\t ret += \" (\" + state + \")\"; \n\t return ret;\n\t }\n\t else\n\t return contextURI.stringValue();\n\t}",
"@Override\n\tpublic void contextCreated(String context, boolean toolPlacement) {\n\t}",
"public TimeStamp(){\n\t\tdateTime = LocalDateTime.now();\n\t}",
"void setUserCreated(final Long userCreated);",
"private void changeContext(){\n MainWorkflow.observeContexts(generateRandom(24,0));\n }",
"public abstract void makeContext();",
"private void createStartingLabel() {\n \tcreateLabel(myResources.getString(\"title\"), 1, 0, TITLE_FONT);\n }",
"@Override\n protected String execute(long currentTime) {\n String record = String.format(TEMPLATE, currentTime);\n return record;\n }",
"Context context();",
"Context context();",
"public StatusLabel (GlContext ctx)\n {\n super(ctx, \"\");\n }",
"public User(){\n registerDate = new LocalDateTime();\n }",
"void now(HplsqlParser.Expr_func_paramsContext ctx) {\n if (ctx != null) {\n evalNull();\n return;\n }\n evalVar(currentTimestamp(3));\n }",
"protected static long getContextTimestampSafe() \n\t{ \t\n\t\tlong timestamp = System.currentTimeMillis();\n\t\t\n\t\tboolean repeat = true;\n\t\twhile (repeat)\n\t\t{\n\t \tlong lastUsed = lastTimestampUsed.get();\n\t \tif (timestamp>lastUsed) {\n\t \t\trepeat = !lastTimestampUsed.compareAndSet(lastUsed, timestamp);\n\t \t} else {\n\t \t\ttimestamp = lastUsed+1;\n\t \t}\n\t\t}\n\t\t\n\t\treturn timestamp;\n\t}",
"public void setCreatedTime(LocalDateTime value) {\n set(5, value);\n }",
"public void populateUserInformation()\n {\n ViewInformationUser viewInformationUser = new ViewFXInformationUser();\n\n viewInformationUser.buildViewProfileInformation(clientToRegisteredClient((Client) user), nameLabel, surnameLabel, phoneLabel, emailLabel, addressVbox);\n }",
"public static void addUserContext(Map<String, Object> model) {\r\n\t\tUser user = new User();\r\n\t\tuser.setUsername(SecurityContextHolder.getContext().getAuthentication().getName());\r\n\t\tmodel.put(\"user\", user);\r\n\t}",
"public MonitoredData(LocalDateTime start_time, LocalDateTime end_time, String activity_label) {\n this.start_time = start_time;\n this.end_time = end_time;\n this.activity_label = activity_label;\n }",
"void createLabelToken( String name, int id );",
"public String generateLocalDateTime() {\n LocalDateTime localDateTime = LocalDateTime.now();\n DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern(\"yyyyMMddHHmmss\");\n String formatLocalDateTime = localDateTime.format(dateTimeFormatter);\n return formatLocalDateTime;\n }",
"public void makeNow() {\n makeNow(0);\n }",
"private void advanceTime() {\r\n myCurrentTimeLabel.setText(DateFormat.getDateTimeInstance().format(new Date()));\r\n }",
"public static NamingScheduledTaskContext createNamingScheduledTaskContext(){\r\n\t\treturn new NamingScheduledTaskContext();\r\n\t}",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n lblUser = new javax.swing.JLabel();\n lblTime = new javax.swing.JLabel();\n lblDate = new javax.swing.JLabel();\n\n lblUser.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n lblUser.setText(\"Xin chào {user_id}!\");\n\n lblTime.setFont(new java.awt.Font(\"Tahoma\", 1, 36)); // NOI18N\n lblTime.setForeground(new java.awt.Color(102, 102, 102));\n lblTime.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n lblTime.setText(\"jLabel2\");\n\n lblDate.setFont(new java.awt.Font(\"Tahoma\", 0, 24)); // NOI18N\n lblDate.setForeground(new java.awt.Color(153, 153, 153));\n lblDate.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n lblDate.setText(\"jLabel3\");\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 .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(lblUser, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(lblTime, javax.swing.GroupLayout.DEFAULT_SIZE, 380, Short.MAX_VALUE)\n .addComponent(lblDate, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(54, 54, 54)\n .addComponent(lblUser)\n .addGap(46, 46, 46)\n .addComponent(lblTime, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(18, 18, 18)\n .addComponent(lblDate, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(95, 95, 95))\n );\n }",
"SimpleContextVariable createSimpleContextVariable();",
"default void createContext(\n com.google.cloud.aiplatform.v1.CreateContextRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.Context> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getCreateContextMethod(), responseObserver);\n }",
"public Label create() {\n\t\t\tgeneratedValue += 1;\n\t\t\treturn new Label(Type.GENERATED, generatedValue);\n\t\t}",
"public void now() {\n localDate = LocalDate.now();\n localDateTime = LocalDateTime.now();\n javaUtilDate = new Date();\n auditEntry = \"NOW\";\n instant = Instant.now();\n }",
"@Override\n\t\tpublic MyUserBasicInfo create() {\n\t\t\treturn new MyUserBasicInfo();\n\t\t}",
"public User(int contextId, String name, int id) {\n super();\n this.id = id;\n if (this.id >= ID_SOURCE) ID_SOURCE = this.id + 1;\n this.contextId = contextId;\n this.name = name;\n }",
"public String getTimestamp() \n{\n Calendar now = Calendar.getInstance();\n return String.format(\"20%1$ty-%1$tm-%1$td_%1$tHh%1$tMm%1$tSs\", now);\n}",
"private void setTimeLabel() {\n timeFormat = new SimpleDateFormat(\"HH:mm:ss\"); //sets how to showcase time\n timeLabel = new JLabel();//initializes the label\n timeLabel.setFont(new Font(\"Times New Roman\", Font.BOLD, 50));//declares font to use\n timeLabel.setForeground(new Color(0xFFFF0000, true));//sets foreground color\n timeLabel.setBackground(Color.black);//sets background color\n timeLabel.setOpaque(true);//displays background color\n add(timeLabel);\n }",
"public User(String timestamp, String uid, String name, String gender, String email, String phone, String dept, String grade, String language, String region, String role, String preferTags, String obtainedCredits) {\n this(uid, name, gender, language);\n this.timestamp = Long.parseLong(timestamp);\n this.email = email;\n this.phone = phone;\n this.dept = dept;\n this.grade = grade;\n this.region = region;\n this.role = role;\n this.preferTags = preferTags;\n this.obtainedCredits = Integer.parseInt(obtainedCredits);\n }",
"public static GVC_s gvContext(Object... arg) {\r\nENTERING(\"f3vdhir2c7dz3pvmx9d3m4lx1\",\"gvContext\");\r\ntry {\r\n GVC_s gvc;\r\n agattr(null, AGNODE, new CString(\"label\"), new CString(\"\\\\N\"));\r\n /* default to no builtins, demand loading enabled */\r\n gvc = (GVC_s) gvNEWcontext(null, (NOT(0)));\r\n gvconfig(gvc, false); /* configure for available plugins */\r\n return gvc;\r\n} finally {\r\nLEAVING(\"f3vdhir2c7dz3pvmx9d3m4lx1\",\"gvContext\");\r\n}\r\n}",
"Lab create(Context context);",
"public static void updateLastViewed(String caller, Context context) {\n Map<String, String> map = Utility.getRegistrationEntry(context);\n Log.d(MainActivity.APP_TAG, caller + \" Time: \" + (new Date()));\n if (map != null && map.size() > 0) {\n Utility.updateRegistrationEntry(context);\n } else {\n Utility.addRegistrationEntry(context);\n }\n }",
"public TimedEvent(String label, Date date, Time time) {\n super(label, date); // using the constructor of its superclass\n this.setTime(time); // assigns the time argument value to the attribute\n }",
"public void setCreateTime(LocalDateTime timestamp) \n {\n createTime = timestamp;\n }",
"public StandardReport createStandardReport(String label, Date lastModified,\r\n String pathName) {\r\n StandardReport standardReport = new StandardReport();\r\n standardReport.setLabel(label);\r\n standardReport.setLastModified(lastModified);\r\n standardReport.setPathName(pathName);\r\n return standardReport;\r\n }",
"private static String getFormattedCurrentDateAndTime(){\n StringBuilder dateAndTime = new StringBuilder();\n LocalDateTime now = LocalDateTime.now();\n\n String hour = Integer.toString(now.getHour());\n String minute = Integer.toString(now.getMinute());\n\n if (hour.length() == 1){\n hour = \"0\" + hour;\n }\n if (minute.length() == 1){\n minute = \"0\" + minute;\n }\n\n //Creates \"XX/XX/XX @ XX:XX\" format (24 hours)\n dateAndTime.append(now.getMonthValue()).append(\"/\").\n append(now.getDayOfMonth()).append(\"/\").\n append(now.getYear()).append(\" @ \").\n append(hour).append(\":\").\n append(minute);\n\n return dateAndTime.toString();\n }",
"public Feeder(String label)\r\n\t{\r\n\t\tthis.label = label;\r\n\t}",
"@Override\n public void handle(RoutingContext ctx) {\n if (ctx.user() instanceof ExtraUser) {\n ExtraUser user = (ExtraUser)ctx.user();\n MultiMap params = ctx.request().params();\n Date chatDate1 = null;\n Date chatDate2 = null;\n if (params.contains(\"chatDate1\")) {\n chatDate1 = parseDate(params.get(\"chatDate1\"));\n }\n if (params.contains(\"chatDate2\")) {\n chatDate2 = parseDate(params.get(\"chatDate2\"));\n }\n if (params.contains(\"chatTo\")) {\n if (params.contains(\"chatMsg\")) {\n messageStore.addMessage(user.getId(), params.get(\"chatTo\"), params.get(\"chatMsg\"));\n }\n \n StringBuilder sb = new StringBuilder();\n //url=http://webdesign.about.com/\n HttpServerRequest r = ctx.request();\n String url = r.absoluteURI().substring(0, r.absoluteURI().length() - r.uri().length()) + r.path();\n\n sb.append(\"Chat\\n\");\n sb.append(\"from:\").append(user.getId()).append(\"\\n\");\n sb.append(\"to :\").append(params.get(\"chatTo\")).append(\"\\n\");\n \n //<input type=\"datetime-local\" name=\"bdaytime\">\n /*\n<p><form action=\"\">\n From (date and time):\n <input type=\"datetime-local\" name=\"chatDate1\" value=\"\">\n To (date and time):\n <input type=\"datetime-local\" name=\"chatDate2\" value=\"\"> \n <input type=\"submit\" value=\"Refresh\">\n <input type=\"hidden\" name=\"chatTo\" value=\"user\"/>\n</form>\n */\n String refresh = \"<p><form action=\\\"\\\">\\n\" +\n\" From (date and time):\\n\" +\n\" <input type=\\\"datetime-local\\\" name=\\\"chatDate1\\\" value=\\\"\\\">\\n\" +\n\" To (date and time):\\n\" +\n\" <input type=\\\"datetime-local\\\" name=\\\"chatDate2\\\" value=\\\"\\\"> \\n\" +\n\" <input type=\\\"submit\\\" value=\\\"Refresh\\\">\\n\" +\n\" <input type=\\\"hidden\\\" name=\\\"chatTo\\\" value=\\\"user\\\"/>\\n\" +\n\"</form>\";\n// sb.append(\"<a href=\\\"\").append(r.absoluteURI()).append(\"\\\">\");\n// sb.append(\"refresh\").append(\"</a>\").append(\"\\n\");\n sb.append(refresh\n .replace(\"value=\\\"user\\\"\", \"value=\\\"\"+params.get(\"chatTo\")+\"\\\"\")\n .replace(\"action=\\\"\\\"\", \"action=\\\"\"+url+\"\\\"\")\n .replace(\"name=\\\"chatDate1\\\" value=\\\"\\\"\", \"name=\\\"chatDate1\\\" value=\\\"\"+getHtmlDateStr(chatDate1)+\"\\\"\")\n .replace(\"name=\\\"chatDate2\\\" value=\\\"\\\"\", \"name=\\\"chatDate2\\\" value=\\\"\"+getHtmlDateStr(chatDate2)+\"\\\"\")\n );\n \n for(Message m : messageStore.getMessages(user.getId(), params.get(\"chatTo\"), chatDate1, chatDate2)) {\n sb.append(dateFormat.format(m.getDate())).append(\">>>\");\n sb.append(StringEscapeUtils.escapeHtml(m.getFrom())).append(\":\");\n sb.append(addUrls(StringEscapeUtils.escapeHtml(m.getMsg()))).append(\"\\n\");\n }\n \n secureSet(ctx.response());\n ctx.response().putHeader(\"content-type\", \"text/html\").end(\n STR_CHAT\n .replace(\"action=\\\"actionName\\\"\", \"action=\\\"\\\"\")\n .replace(\"input type=\\\"hidden\\\" name=\\\"chatTo\\\" value=\\\"user\\\"\", \"input type=\\\"hidden\\\" name=\\\"chatTo\\\" value=\\\"\"+params.get(\"chatTo\")+\"\\\"\")\n .replace(\"<messages/>\", sb.toString()) \n );\n \n } else {\n \n StringBuilder sb = new StringBuilder();\n for(String toid : messageStore.getChats(user.getId())) {\n sb.append(\"<a href=\\\"?chatTo=\").append(toid).append(\"\\\">\");\n sb.append(toid).append(\"</a>\").append(\"\\n\");\n }\n \n secureSet(ctx.response());\n ctx.response().putHeader(\"content-type\", \"text/html\").end(\n STR_CHATS\n .replace(\"action=\\\"actionName\\\"\", \"action=\\\"\\\"\")\n .replace(\"<messages/>\", sb.toString())\n );\n }\n } else {\n ctx.fail(HttpResponseStatus.FORBIDDEN.code());\n }\n\n }",
"public WelcomeFrame() {\n initComponents();\n lblUser.setText(\"<html>Xin chào <b>\" + Application.TEACHER.getName().replace(\"<\", \"<\").replace(\">\", \">\")+ \"</b>!</html>\");\n runClock();\n }",
"public static String generateNewUserId() {\r\n\t\tDate date = new Date();\r\n\t\treturn String.format(\"%s-%s\", UUID.randomUUID().toString(),\r\n\t\t\t\tString.valueOf(date.getTime()));\r\n\t}",
"public UserBuilder timestamp(Date timestamp) {\n return this.timestamp(timestamp.getTime() / MILLISECONDS_IN_SECOND);\n }",
"private void populateUserInfo() {\n User user = Session.getInstance().getUser();\n labelDisplayFirstname.setText(user.getFirstname());\n labelDisplayLastname.setText(user.getLastname());\n lblEmail.setText(user.getEmail());\n lblUsername.setText(user.getUsername());\n }",
"public static void createNewUserPreference(Context context) {\r\n\t\tString newUserId = generateNewUserId();\r\n\t\tString userConfigKey = getUserConfigFileNameKey(newUserId);\r\n\t\tString userDbKey = getUserDatabaseFileNameKey(newUserId);\r\n\t\tString userConfigFileName = getUserConfigFileName(context, newUserId);\r\n\t\tString userDbFileName = getUserDatabaseFileName(context, newUserId);\r\n\r\n\t\tSharedPreferences prefs = PreferenceManager\r\n\t\t\t\t.getDefaultSharedPreferences(context);\r\n\t\tif (prefs != null) {\r\n\t\t\tEditor editor = prefs.edit();\r\n\t\t\tif (editor != null) {\r\n\t\t\t\teditor.putString(\"user-\" + newUserId, newUserId);\r\n\t\t\t\teditor.putString(userConfigKey, userConfigFileName);\r\n\t\t\t\teditor.putString(userDbKey, userDbFileName);\r\n\t\t\t}\r\n\r\n\t\t\teditor.commit();\r\n\t\t}\r\n\t}",
"public String generateFromContext(Map<String, Object> mailContext, String template);",
"public static StartAt.Now now() {\n return new Now();\n }",
"public Builder setContext(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n context_ = value;\n onChanged();\n return this;\n }",
"protected VelocityContext createContext(Control control) {\n\t\tVelocityContext vCtx = new VelocityContext();\n\t\tvCtx.put(\"jwic\", new JWicTools(control.getSessionContext().getLocale(), control.getSessionContext().getTimeZone()));\n\t\tvCtx.put(\"escape\", new StringEscapeUtils());\n\t\treturn vCtx;\n\t}",
"@Override\n public void onClick(View v) {\n\n presenter.terminateTimer();\n presenter.recordStats();\n Intent intent = new Intent(v.getContext(), MainActivity.class);\n intent.putExtra(PASS_USER, currUser);\n startActivity(intent);\n finish();\n }",
"@Override\n\tpublic void contextDestroyed(ServletContextEvent arg0) {\n\t\tscheduler = Executors.newSingleThreadScheduledExecutor();\n\t\tUpdateContexts command = new UpdateContexts(); \n\t\tscheduler.scheduleAtFixedRate(command, 0, 15, TimeUnit.MINUTES);\n\t}",
"private void prepareLevel(User user,\n HttpServletRequest req,\n Language lang) {\n LocalizedLevel level = userService.getLevelByUserId(user.getUserId(), lang);\n req.getSession().setAttribute(\"currentLocalizedLevel\", level);\n }",
"private Appuser newUser() {\n //TODO: get logged user from security context\n String createdBy = \"REST\";\n Appuser au = new Appuser();\n Userdetails ud = new Userdetails();\n boolean idOK = false;\n Long id = 0L;\n while (!idOK) {\n id = EntityIdGenerator.random();\n idOK = !userRepository.exists(id);\n }\n //notNull\n ud.setNotes(\"none\");\n au.setPasswdHash(\"*\");\n au.setCreatedBy(createdBy);\n au.setUserId(id);\n ud.setUserId(id);\n au.setUserdetails(ud);\n return au;\n }",
"private void updateUserDetails() {\n \tUser user=CurrentSession.getCurrentUser();\n \tjLabel1.setText(\"Name:\");\n jLabel2.setText(user.getFirstName()+\" \"+user.getLastName());\n jLabel3.setText(\"Card Number:\");\n jLabel4.setText(user.getCardNumber());\n jLabel5.setText(\"Daily Calorie Intake\");\n FoodPreference fp=new FoodPreference(user.getCardNumber());\n jLabel6.setText(\"\"+fp.getUserCalories());\n jLabel7.setText(\"Monthly Expenses\");\n jLabel8.setText(\"\"+user.getExpenses());\n\n\t\t\n\t}",
"protected Map<String, Object> createAttributesForFreeMarker(Request request, String templateName, String message) {\n\t\tMap<String, Object> attributes = new HashMap<>();\n\t\tattributes.put(\"title\", \"Greg Ashby's Integration Challenge App\");\n\t\tattributes.put(\"templateName\", templateName);\n\t\tattributes.put(\"message\", message);\n\t\tif (request.session().attribute(SESSION_ATTRIBUTE_IDENTIFIER) != null) {\n\t\t\tattributes.put(\"loggedin\", \"true\");\n\t\t}\n\t\treturn attributes;\n\t}",
"public static void createActiveUserRelatedPreferencesIfNeeds(Context context) {\r\n\t\tif (hasActiveUserId(context) == false) {\r\n\t\t\tString newUserId = generateNewUserId();\r\n\t\t\tString userConfigKey = getUserConfigFileNameKey(newUserId);\r\n\t\t\tString userDbKey = getUserDatabaseFileNameKey(newUserId);\r\n\t\t\tString userConfigFileName = getUserConfigFileName(context,\r\n\t\t\t\t\tnewUserId);\r\n\t\t\tString userDbFileName = DatabaseHelper.databaseName; // Use old db\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// file\r\n\r\n\t\t\tSharedPreferences prefs = PreferenceManager\r\n\t\t\t\t\t.getDefaultSharedPreferences(context);\r\n\t\t\tif (prefs != null) {\r\n\t\t\t\tEditor editor = prefs.edit();\r\n\t\t\t\tif (editor != null) {\r\n\t\t\t\t\teditor.putString(\"user-\" + newUserId, newUserId);\r\n\t\t\t\t\teditor.putString(userConfigKey, userConfigFileName);\r\n\t\t\t\t\teditor.putString(userDbKey, userDbFileName);\r\n\t\t\t\t\teditor.putString(PreferenceKeys.ActiveUserId, newUserId);\r\n\t\t\t\t}\r\n\r\n\t\t\t\teditor.commit();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void prepareForRender(String label)\r\n/* 82: */ {\r\n/* 83: 84 */ this.curBlockLabel = label;\r\n/* 84: */ }",
"public User(Context context) {\n\t\tthis.name = \"Pingu\";\n\t\tthis.profile_picture = BitmapFactory.decodeResource(context.getResources(), R.drawable.pinguin);\n\t\tthis.personal_message = \"Ok, for now I'm just a baby, but one day I wanna be a majestic creature !\";\n\t\tthis.social_points = 0;\n\t\tthis.interests = new String []{\n\t\t\t\t\"Sports\",\n\t\t\t\t\"Party\",\n\t\t\t\t\"Music\",\n\t\t\t\t\"Food\",\n\t\t\t\t\"Flirt\",\n\t\t\t\t\"Languages\"\n\t\t\t};\n\t\t\n\t\tthis.phone=\"01747603793\";\n this.age = 15;\n this.gender = \"Mercury\";\n this.mail = \"[email protected]\";\n\t}",
"public void setGmtCreate(Long gmtCreate) {\n this.gmtCreate = gmtCreate;\n }",
"public Builder setContext(final Map<String, String> value) {\n _context = value;\n return this;\n }",
"private void collectContextDataCreatContextSituation()\n\t\t\tthrows NumberFormatException, InterruptedException {\n\n\t\twhile (isTransmissionStarted) {\n\t\t\tVector<ContextElement> contextElements = new Vector<>();\n\n\t\t\tm_CASMediator = getCASMediator();\n\n\t\t\t// create the time context element\n\t\t\tContextElement contextElement = new ContextElement();\n\t\t\tcontextElement.setContexttype(\"timecontext\");\n\t\t\tTimeContextElement timeContextElement = new TimeContextElement();\n\t\t\tDate date = new Date();\n\t\t\tTime time = new Time();\n\t\t\ttimeContextElement.setDate(date);\n\t\t\ttimeContextElement.setTime(time);\n\t\t\ttimeContextElement.setContextid(Integer\n\t\t\t\t\t.parseInt(m_timeContextContextIdText.getText()));\n\t\t\tdate.setDay(Integer.parseInt(m_timeContextDateDayText.getText()));\n\t\t\tdate.setMonth(Integer.parseInt(m_timeContextDateMonthText.getText()));\n\t\t\tdate.setYear(Integer.parseInt(m_timeContextDateYearText.getText()));\n\t\t\ttime.setHour(Integer.parseInt(m_timeContextTimeHourText.getText()));\n\t\t\ttime.setMinutes(Integer.parseInt(m_timeContextTimeMinutesText\n\t\t\t\t\t.getText()));\n\t\t\ttime.setSeconds(Integer.parseInt(m_timeContextTimeSecondsText\n\t\t\t\t\t.getText()));\n\t\t\ttime.setAMPM(m_timeContextDayRadio.isSelected() ? \"DAY\" : \"NIGHT\");\n\t\t\tcontextElement.setTimeContextElement(timeContextElement);\n\t\t\tcontextElements.addElement(contextElement);\n\n\t\t\t// create the position context\n\t\t\tcontextElement = new ContextElement();\n\t\t\tcontextElement.setContexttype(\"locationcontext\");\n\t\t\tLocationContextElement locationContextElement = new LocationContextElement();\n\t\t\tPhysicalLocation physicalLocation = new PhysicalLocation();\n\t\t\tGeographicalLocation geographicalLocation = new GeographicalLocation();\n\t\t\tlocationContextElement.setContextid(Integer\n\t\t\t\t\t.parseInt(m_positionContextContextIDText.getText()));\n\t\t\tlocationContextElement.setPhysicalLocation(physicalLocation);\n\t\t\tlocationContextElement\n\t\t\t\t\t.setGeographicalLocation(geographicalLocation);\n\t\t\tphysicalLocation\n\t\t\t\t\t.setCountry(m_positionContextPhysicalLocationCountryText\n\t\t\t\t\t\t\t.getText());\n\t\t\tphysicalLocation\n\t\t\t\t\t.setState(m_positionContextPhysicalLocationStateText\n\t\t\t\t\t\t\t.getText());\n\t\t\tphysicalLocation.setCity(m_positionContextPhysicalLocationCityText\n\t\t\t\t\t.getText());\n\t\t\tphysicalLocation.setPincode(Integer\n\t\t\t\t\t.parseInt(m_positionContextPhysicalLocationPincodeText\n\t\t\t\t\t\t\t.getText()));\n\t\t\tgeographicalLocation\n\t\t\t\t\t.setAltitude(Float\n\t\t\t\t\t\t\t.parseFloat(m_positionContextGeographicalLocationAltitudeText\n\t\t\t\t\t\t\t\t\t.getText()));\n\t\t\tgeographicalLocation\n\t\t\t\t\t.setLatitude(Double\n\t\t\t\t\t\t\t.parseDouble(m_positionContextGeographicalLocationLatitudeText\n\t\t\t\t\t\t\t\t\t.getText()));\n\t\t\tgeographicalLocation\n\t\t\t\t\t.setLongitude(Double\n\t\t\t\t\t\t\t.parseDouble(m_positionContextGeographicalLocationLongitudeText\n\t\t\t\t\t\t\t\t\t.getText()));\n\t\t\tcontextElement.setLocationContextElement(locationContextElement);\n\t\t\tcontextElements.addElement(contextElement);\n\n\t\t\t// get the User context\n\t\t\tcontextElement = new ContextElement();\n\t\t\tcontextElement.setContexttype(\"usercontext\");\n\t\t\tUserContextElement userContextElement = new UserContextElement();\n\t\t\tUserProfile userProfile = new UserProfile();\n\t\t\tHealth health = new Health();\n\t\t\tuserContextElement.setContextid(m_userContextContextIDText\n\t\t\t\t\t.getText());\n\t\t\tuserContextElement.setHealth(health);\n\t\t\tuserContextElement.setUserProfile(userProfile);\n\t\t\tuserProfile\n\t\t\t\t\t.setAge(Integer.parseInt(m_userContextAgeText.getText()));\n\t\t\tuserProfile\n\t\t\t\t\t.setMaritalStatus(m_userContextRadioSingle.isSelected() ? \"Single\"\n\t\t\t\t\t\t\t: \"Married\");\n\t\t\tuserProfile.setSex(m_userContextRadioMale.isSelected() ? \"Male\"\n\t\t\t\t\t: \"Female\");\n\t\t\tuserProfile.setNationality(m_userContextRadioNationalityAustrian\n\t\t\t\t\t.isSelected() ? \"Austrian\" : \"Other\");\n\t\t\thealth.setBloodPressure(m_userContextHealthBloodPressure.getText());\n\t\t\thealth.setHeartRate(m_userContextHealthHeartRate.getText());\n\t\t\thealth.setVoiceTone(m_userContextHealthVoiceTone.getText());\n\t\t\tcontextElement.setUserContextElement(userContextElement);\n\t\t\tcontextElements.addElement(contextElement);\n\n\t\t\t// get the device context\n\t\t\tcontextElement = new ContextElement();\n\t\t\tcontextElement.setContexttype(\"devicecontext\");\n\t\t\tDeviceContextElement deviceContextElement = new DeviceContextElement();\n\t\t\tDevice device = new Device();\n\t\t\tSoftware software = new Software();\n\t\t\tdeviceContextElement.setContextid(Integer\n\t\t\t\t\t.parseInt(m_deviceContextContextIDText.getText()));\n\t\t\tdeviceContextElement.setDevice(device);\n\t\t\tdeviceContextElement.setSoftware(software);\n\t\t\tdevice.setAudio(m_deviceContextAudioRadioYes.isSelected());\n\t\t\tdevice.setBatteryPercentage(m_deviceContextBatteryPercentageSlider\n\t\t\t\t\t.getValue());\n\t\t\tdevice.setMemory(Integer.parseInt(m_deviceContextMemoryText\n\t\t\t\t\t.getText()));\n\t\t\tsoftware.setOperatingsystem(m_deviceContextOperatingSyste.getText());\n\t\t\tsoftware.setVersion(Float.parseFloat(m_deviceOperatingSystemVersion\n\t\t\t\t\t.getText()));\n\t\t\tcontextElement.setDeviceContextElement(deviceContextElement);\n\t\t\tcontextElements.addElement(contextElement);\n\n\t\t\t// get the temperature context\n\t\t\tcontextElement = new ContextElement();\n\t\t\tcontextElement.setContexttype(\"temperaturecontext\");\n\t\t\tTemperatureContextElement temperatureContextElement = new TemperatureContextElement();\n\t\t\tCurrentTemperature currentTemperature = new CurrentTemperature();\n\t\t\tcurrentTemperature.setTemperaturevalue(Integer\n\t\t\t\t\t.parseInt(m_temperatureText.getText()));\n\t\t\ttemperatureContextElement.setCurrentTemperature(currentTemperature);\n\t\t\ttemperatureContextElement.setContextid(501);\n\t\t\tcontextElement\n\t\t\t\t\t.setTemperatureContextElement(temperatureContextElement);\n\t\t\tcontextElements.addElement(contextElement);\n\n\t\t\t// put the context elements in context situation\n\t\t\tm_contextSituation.setContextElements(contextElements);\n\n\t\t\t// communicate the context situation\n\t\t\tm_CASMediator.communicateContextSituation(m_contextSituation);\n\n\t\t\t// communicating context situation every 9 seconds\n\t\t\tSystem.out\n\t\t\t\t\t.println(\"Context Situation will be updated in \"\n\t\t\t\t\t\t\t+ m_transmissionFrequencySecondsText.getText()\n\t\t\t\t\t\t\t+ \" seconds\");\n\n\t\t\tThread.sleep(Integer.parseInt(m_transmissionFrequencySecondsText\n\t\t\t\t\t.getText()) * 1000);\n\t\t}\n\n\t}",
"public Snippet visit(CurrentTime n, Snippet argu) {\n\t Snippet _ret= new Snippet(\"\",\"\",null,false);\n\t n.nodeToken.accept(this, argu);\n\t n.nodeToken1.accept(this, argu);\n\t n.nodeToken2.accept(this, argu);\n\t return new Snippet(\"\", \"System.currentTimeMillis()\", new X10Long(), false);\n\t }",
"private Label createInitializingLabel(Composite parent)\n\t{\n\t\tLabel initializingMessageLabel = new Label(parent, SWT.NONE);\n\t\tinitializationFont = new Font(Display.getDefault(), new FontData(\"Arial\", 20,\n\t\t\t\tSWT.BOLD));\n\t\tinitializingMessageLabel.setFont(initializationFont);\n\t\tinitializingMessageLabel\n\t\t\t\t.setText(\"iDocIt! is initializing at the moment. Please wait ...\");\n\t\tinitializingMessageLabel.setBackground(Display.getDefault().getSystemColor(\n\t\t\t\tSWT.COLOR_WHITE));\n\t\tGridDataFactory.fillDefaults().align(SWT.CENTER, SWT.CENTER).grab(true, true)\n\t\t\t\t.applyTo(initializingMessageLabel);\n\n\t\treturn initializingMessageLabel;\n\t}",
"private String createLabelForLastClockLog(ClockLog cl) {\r\n\t\t// return sdf.format(dt);\r\n\t\tif (cl == null) {\r\n\t\t\treturn \"No previous clock information\";\r\n\t\t}\r\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"MM/dd/yyyy hh:mm a\");\r\n\t\tString dateTime = sdf.format(cl.getClockTimestamp());\r\n\t\tif (StringUtils.equals(cl.getClockAction(), TkConstants.CLOCK_IN)) {\r\n\t\t\treturn \"Clocked in since: \" + dateTime;\r\n\t\t} else if (StringUtils.equals(cl.getClockAction(),\r\n\t\t\t\tTkConstants.LUNCH_OUT)) {\r\n\t\t\treturn \"At Lunch since: \" + dateTime;\r\n\t\t} else if (StringUtils\r\n\t\t\t\t.equals(cl.getClockAction(), TkConstants.LUNCH_IN)) {\r\n\t\t\treturn \"Returned from Lunch : \" + dateTime;\r\n\t\t} else if (StringUtils.equals(cl.getClockAction(),\r\n\t\t\t\tTkConstants.CLOCK_OUT)) {\r\n\t\t\treturn \"Clocked out since: \" + dateTime;\r\n\t\t} else {\r\n\t\t\treturn \"No previous clock information\";\r\n\t\t}\r\n\r\n\t}",
"public void makeCurrentUser() {\n // Remove the Add Friend ImageView\n mFriendIv.setVisibility(View.GONE);\n\n // Show the \"You\" TextView\n mYouTv.setVisibility(View.VISIBLE);\n }",
"public Visit() {\n\t\t//dateTime = LocalDateTime.now();\n\t}",
"public void setcurrent_time() {\n\t\tthis.current_time = LocalTime.now();\n\t}",
"String makeNewSleep(){\n\t\tbeginSleepTime = new SimpleDateFormat(\"HH:mm\").format(new Date());\n\t\treturn beginSleepTime;\n\t}",
"@ScheduledMethod(start=1, priority = 8)\n\tpublic void contextPreference(){\n\t\t//dit doe je ook in addVenue\n\t\tfor(Location l:candidateLocations){\n\t\t\tif(!contextPreference.containsKey(l)){\n\t\t\tdouble preference = RandomHelper.nextDoubleFromTo(0, 1.0);\n\t\t\tcontextPreference.put(l, preference);\n\t\t\t}\n\t\t}\n\t\t\n//\t\t//includehimself but who cares\n//\t\tcontextPreferenceA=new HashMap<Agent, Double>();\n\t\tfor(Agent a: agents){\n\t\t\tif(!contextPreference.containsKey(a)){\n\t\t\tdouble preference = RandomHelper.nextDoubleFromTo(0, 1.0);\n\t\t\tcontextPreference.put(a, preference);\n\t\t\ta.contextPreference.put(this, preference);\n\t\t\t}\n\t\t}\n\t}",
"public static String createTimeStamp(){\n return new SimpleDateFormat( \"yyyy.MM.dd.HH.mm.ss\").format(new Date());\n }",
"@Override\r\n public Context initControlContext() throws Exception {\r\n _log.info(\"\");\r\n _log.info(\"...Preparing generation of free generate\");\r\n for (DfFreeGenRequest request : _freeGenRequestList) {\r\n _log.info(\" \" + request.toString());\r\n }\r\n final VelocityContext context = createVelocityContext();\r\n return context;\r\n }",
"Snapshot create(Context context);",
"public UserBuilder timestamp(long timestamp) {\n if (!this.hasField(FIELD_ACTIONS)) {\n this.actions(ActivityAction.All);\n }\n this.field(FIELD_TIMESTAMP, timestamp);\n return this;\n }",
"private static Context prepareContext() {\r\n\r\n Context context = new Context();\r\n\r\n ContextProperties properties = new ContextProperties();\r\n\r\n // Context requires a name\r\n properties.setName(\"Example_Package_Context\");\r\n\r\n // description is nice\r\n properties.setDescription(\"Example package Context.\");\r\n\r\n // define the type\r\n properties.setType(\"ExampleType\");\r\n\r\n /*\r\n * Organizational Unit(s) is/are required\r\n */\r\n OrganizationalUnitRefs ous = new OrganizationalUnitRefs();\r\n\r\n // add the Organizational Unit with objid escidoc:ex3 (the ou of the\r\n // example eSciDoc representation package) to the list of\r\n // organizational Units\r\n ous.add(new OrganizationalUnitRef(\"escidoc:ex3\"));\r\n properties.setOrganizationalUnitRefs(ous);\r\n\r\n context.setProperties(properties);\r\n\r\n return context;\r\n }",
"public static TimeTakenLogEntry create() {\n return builder().build();\n }",
"public CreateNewUserDetails(String sLogin, String sFirstName, \r\n\t\t\tString sLastName, String sPassword, String sEmail, String sRole, String sLocale)\r\n\t{\r\n\t\t// No language assume English user\r\n\t\tset(sLogin, sFirstName, sLastName, sPassword, sEmail, sRole, sLocale, \"\", true);\r\n\t}",
"public void setUserContext(UserContext userContext);",
"public DefaultTemplateBasedLabelGenerator() throws ApplicationException\r\n\t{\r\n\t\tsuper();\r\n\r\n\t}",
"Context mo1490b();",
"public String getCurrentTime() {\r\n DateTimeFormatter dtf = DateTimeFormatter.ofPattern(\"dd/MM/yyyy HH:mm:ss\"); //https://www.javatpoint.com/java-get-current-date\r\n LocalDateTime now = LocalDateTime.now();\r\n return dtf.format(now);\r\n }",
"public Timestamp() {\n makeNow();\n }",
"public void generate(GenCtx ctx)\n\t throws GenesisError\n\t{\n\t\tif((getEntries() == null) || (getEntries().length == 0))\n\t\t\treturn;\n\n\t\t//~: the start day (inclusive)\n\t\tDate curDay = findFirstGenDate(ctx);\n\t\tif(curDay == null) return;\n\n\t\t//~: the final day (inclusive)\n\t\tDate endDay = findLastGenDate(ctx);\n\t\tif(endDay == null) return;\n\n\t\t//c: generate till the last day\n\t\twhile(!curDay.after(endDay))\n\t\t{\n\t\t\t//~: set the day parameter of the context\n\t\t\tctx.set(DAY, curDay);\n\n\t\t\tgenObjectsTxDisp(ctx, curDay);\n\t\t\tcurDay = DU.addDaysClean(curDay, +1);\n\n\t\t\tctx.set(DAY, null);\n\t\t}\n\n\t\t//?: {has test} run it\n\t\tif(getTest() != null)\n\t\t\tgetTest().testGenesis(ctx);\n\t}",
"private void populateContext(final HttpServletRequest request,\n final AuthenticationDetailsImpl authenticationDetails) {\n final Context context = ContextStore.get();\n\n final String projectId =\n (String) authenticationDetails.getAttributes().get(this.getProjectIdKey());\n\n Assert.hasLength(projectId, \"projectId must not be empty\");\n\n if (this.logger.isDebugEnabled()) {\n this.logger.debug(\"Using project=[\" + projectId + \"]\");\n }\n\n final Project.Immutable project =\n SecurityControllerTemplate.findProject(context.getConfigManager(), projectId);\n\n Assert.notNull(project, \"project not found\");\n Assert.notNull(project.isOpen(), \"project must be open\");\n\n // set project in the context\n context.setProject(project);\n\n final String sessionId = request.getSession().getId();\n Assert.hasLength(sessionId, \"sessionId must be not empty\");\n\n // set sessionId in the context\n context.getSession().setId(sessionId);\n }",
"Long getUserCreated();",
"public void generate() {\n currentlyGenerating = true;\n Bukkit.broadcastMessage(ChatColor.GREEN + \"The world generation process has been started!\");\n createUhcWorld();\n }",
"protected void init()\n {\n Timestamp now = new Timestamp(System.currentTimeMillis());\n timestampCreated = now;\n timestampModified = now;\n createdByAgent = AppContextMgr.getInstance() == null? null : (AppContextMgr.getInstance().hasContext() ? Agent.getUserAgent() : null);\n modifiedByAgent = null;\n }"
] |
[
"0.5145581",
"0.5057891",
"0.4875314",
"0.48662937",
"0.48053807",
"0.48053807",
"0.47685954",
"0.47605073",
"0.47454387",
"0.47286093",
"0.46356317",
"0.46326777",
"0.4615049",
"0.45575735",
"0.45448637",
"0.45434883",
"0.4539393",
"0.44869247",
"0.44715175",
"0.44618493",
"0.4437224",
"0.4437224",
"0.44197175",
"0.43919665",
"0.4383358",
"0.43779874",
"0.4357607",
"0.4356926",
"0.434607",
"0.43112427",
"0.4307409",
"0.43068296",
"0.43066162",
"0.43062449",
"0.43060246",
"0.4299881",
"0.4294399",
"0.42939666",
"0.42910862",
"0.4277381",
"0.42761976",
"0.42731953",
"0.42631385",
"0.42536935",
"0.42491612",
"0.421697",
"0.42132643",
"0.42076844",
"0.42067975",
"0.42029536",
"0.41962636",
"0.4195658",
"0.41917875",
"0.41859004",
"0.4166465",
"0.41654438",
"0.4152977",
"0.4147451",
"0.41428247",
"0.4140995",
"0.41339245",
"0.4131296",
"0.41215226",
"0.4120675",
"0.41182724",
"0.41153368",
"0.41151333",
"0.41131005",
"0.41118813",
"0.41077757",
"0.40988854",
"0.40985578",
"0.4091582",
"0.40885022",
"0.40829545",
"0.40821284",
"0.40671098",
"0.40634054",
"0.40610227",
"0.40584403",
"0.4057182",
"0.40571094",
"0.4052441",
"0.40517756",
"0.4047",
"0.40435383",
"0.4040544",
"0.40375742",
"0.40334362",
"0.40274903",
"0.4018129",
"0.40160203",
"0.40143904",
"0.40137765",
"0.4011086",
"0.40092155",
"0.40014723",
"0.40013844",
"0.40009493",
"0.40002128"
] |
0.6161684
|
0
|
Get a new context for contextUri in the user context space. The state is initialized with PUBLISHED by default (and with DRAFT in editorial workflow mode). If the contextUri is null, this call is identical to method getFreshUserContext(ContextLabel), i.e. a context URI will be generated.
|
public static Context getFreshUserContextWithURI(URI contextUri, ContextLabel contextLabel )
{
long timestamp = getContextTimestampSafe();
URI source = EndpointImpl.api().getUserURI();
if (contextUri==null)
contextUri = getGeneratedContextURI(source, timestamp, ContextType.USER);
return new Context(ContextType.USER, contextUri,
getDefaultContextState(ContextType.USER),
source, null, null, true, timestamp, contextLabel );
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public static Context getFreshUserContext( ContextLabel contextLabel )\n\t{\n\t\treturn getFreshUserContextWithURI(null, contextLabel);\n\t}",
"public UserContext getUserContext();",
"protected SearchState getSearchStateFromUserContext() {\n \tSearchState searchState = null;\n \tif (UserContextService.isAvailable()) {\n \t\tsearchState = UserContextService.getSearchState();\n \t}\n \t\n if (searchState == null) {\n searchState = new SearchState();\n }\n if (UserContextService.isAvailable()) {\n UserContextService.setSearchState(searchState);\n }\n\n return searchState;\n\n }",
"public static Context loadContextByURI(URI contextURI, ReadDataManager dm)\n\t{\n \tif (contextURI == null)\n \t\treturn new Context(ContextType.EMPTY, null, null, null, null, null, null, null, null); \t\n if (contextURI.equals(Vocabulary.SYSTEM_CONTEXT.METACONTEXT))\n \treturn new Context(ContextType.METACONTEXT, null, null, null, null, null, null, null, null);\n else if (contextURI.equals(Vocabulary.SYSTEM_CONTEXT.VOIDCONTEXT))\n \treturn new Context(ContextType.VOID, null, null, null, null, null, null, null, null);\n else\n {\n // remaining information is encoded in the DB, load it\n try\n { \n RepositoryResult<Statement> stmts = \n \t\tdm.getStatements(contextURI, null, null, false, Vocabulary.SYSTEM_CONTEXT.METACONTEXT);\n \n \tContextLabel label = null;\n \tContextState state = null;\n \tContextType type = null;\n \tURI group = null;\n \tURI source = null;\n \tLong timestamp = null;\n \tBoolean isEditable = null;\n \tURI inputParameter = null;\n \t\n \t// collect values: best-effort, load whatever is available in the DB\n for(Statement s : stmts.asList())\n {\n \t\n if (s.getPredicate().equals(RDFS.LABEL))\n \tlabel = stringToContextLabel(s.getObject().stringValue());\n else if (s.getPredicate().equals(Vocabulary.SYSTEM_CONTEXT.CONTEXTSTATE)) \n \tstate = stringToContextState(s.getObject().stringValue());\n else if (s.getPredicate().equals(Vocabulary.SYSTEM_CONTEXT.CONTEXTTYPE)) \n \ttype = stringToContextType(s.getObject().stringValue());\n else if (s.getPredicate().equals(Vocabulary.SYSTEM_CONTEXT.CONTEXTGROUP))\n {\n Value groupVal = s.getObject();\n if (groupVal instanceof URI)\n group = (URI)groupVal;\n }\n else if (s.getPredicate().equals(Vocabulary.SYSTEM_CONTEXT.CONTEXTSRC))\n {\n Value sourceVal = s.getObject();\n if (sourceVal instanceof URI)\n \tsource = (URI)sourceVal;\n }\n else if (s.getPredicate().equals(Vocabulary.DC.DATE)) \n {\n String dateString = s.getObject().stringValue();\n Date date = ReadWriteDataManagerImpl.ISOliteralToDate(dateString);\n \n // for backward compatibility: We used to record the timestamp in different (inconsistent formats)\n timestamp = date!=null ? date.getTime() : 0L;\n }\n else if (s.getPredicate().equals(Vocabulary.SYSTEM_CONTEXT.ISEDITABLE) )\n \tisEditable = s.getObject().equals(Vocabulary.TRUE); \n else if (s.getPredicate().equals(Vocabulary.SYSTEM_CONTEXT.INPUTPARAMETER))\n inputParameter = ValueFactoryImpl.getInstance().createURI(s.getObject().stringValue()); \n }\n stmts.close();\n\n return new Context(type, contextURI, state, source, group, inputParameter, isEditable, timestamp, label);\n }\n catch (Exception e)\n {\n logger.error(e.getMessage(), e);\n throw new RuntimeException(e);\n } \n }\n\t}",
"Context createContext();",
"Context createContext();",
"public UsersResourceContext getContext() {\n return _context;\n }",
"@java.lang.Override public POGOProtos.Rpc.QuestProto.Context getContext() {\n @SuppressWarnings(\"deprecation\")\n POGOProtos.Rpc.QuestProto.Context result = POGOProtos.Rpc.QuestProto.Context.valueOf(context_);\n return result == null ? POGOProtos.Rpc.QuestProto.Context.UNRECOGNIZED : result;\n }",
"protected RestContext getContext() {\n\t\tif (context.get() == null)\n\t\t\tthrow new InternalServerError(\"RestContext object not set on resource.\");\n\t\treturn context.get();\n\t}",
"@java.lang.Override\n public POGOProtos.Rpc.QuestProto.Context getContext() {\n @SuppressWarnings(\"deprecation\")\n POGOProtos.Rpc.QuestProto.Context result = POGOProtos.Rpc.QuestProto.Context.valueOf(context_);\n return result == null ? POGOProtos.Rpc.QuestProto.Context.UNRECOGNIZED : result;\n }",
"private void initializeSystemContext(ContextType ctxType, URI contextUri) \n {\n \tthis.type=ctxType;\n \n // not in use for system contexts\n this.source=null;\n this.group=null;\n this.timestamp=null;\n this.inputParameter=null;\n this.label=null;\n this.isEditable=false;\n \n this.contextURI = contextUri;\n }",
"public URI getCurrentContext();",
"public Context getContext() {\n if (context == null) {\n context = Model.getSingleton().getSession().getContext(this.contextId);\n }\n return context;\n }",
"public static Context createContext(String username, long timeout) {\n Context context = Context.getDefault();\n Vtrpc.CallerID callerID = null;\n if (null != username) {\n callerID = Vtrpc.CallerID.newBuilder().setPrincipal(username).build();\n }\n\n if (null != callerID) {\n context = context.withCallerId(callerID);\n }\n if (timeout > 0) {\n context = context.withDeadlineAfter(Duration.millis(timeout));\n }\n\n return context;\n }",
"public ImmutableContextSet getContext() {\n return new ImmutableContextSet(this.contextSet);\n }",
"public void setUserContext(UserContext userContext);",
"public Context getContext() {\n if (context == null) {\n try {\n context = new InitialContext();\n } catch (NamingException exception) {\n }\n }\n return context;\n }",
"private MMIContext getContext(final LifeCycleRequest request,\n final boolean create) throws MMIMessageException {\n final String contextId = request.getContext();\n final String requestId = request.getRequestId();\n if (requestId == null || requestId.isEmpty()) {\n throw new MMIMessageException(\"No request id given\");\n }\n MMIContext context = getContext(contextId);\n if (context == null) {\n if (!create) {\n throw new MMIMessageException(\"Context '\" + contextId\n + \"' refers to an unknown context\");\n }\n try {\n context = new MMIContext(contextId);\n } catch (URISyntaxException e) {\n throw new MMIMessageException(e.getMessage(), e);\n }\n synchronized (contexts) {\n contexts.put(contextId, context);\n }\n }\n return context;\n }",
"public final BaseNsContext createNonTransientNsContext(Location loc)\n {\n // No namespaces declared at this point?\n if (getTotalNsCount() == 0) {\n return EmptyNamespaceContext.getInstance();\n }\n /* 29-Dec-2005, TSa: Should be able to use a simple caching\n * scheme to reuse instances... but for 2.0.x, let's make this work\n * 100% ok by creating new instances.\n */\n int localCount = getCurrentNsCount() << 1;\n return new CompactNsContext(loc, getDefaultNsURI(), mNamespaces.asArray(),\n mNamespaces.size() - localCount);\n }",
"@Override\n default UserpostPrx ice_context(java.util.Map<String, String> newContext)\n {\n return (UserpostPrx)_ice_context(newContext);\n }",
"private static Context createContext(final Context context)\r\n throws EscidocException, InternalClientException, TransportException, MalformedURLException {\r\n \t\r\n \t// prepare client object\r\n \tAuthentication auth = new Authentication(new URL(Constants.DEFAULT_SERVICE_URL), Constants.USER_NAME_SYSADMIN, Constants.USER_PASSWORD_SYSADMIN);\r\n \tContextHandlerClient chc = new ContextHandlerClient(auth.getServiceAddress());\r\n \tchc.setHandle(auth.getHandle());\r\n\r\n Context createdContext = chc.create(context);\r\n\r\n return createdContext;\r\n }",
"public abstract Context context();",
"public interface NamingContextFactory {\n /**\n * Determine if this factory supports the given provider and name scheme. This method is called\n * when a JNDI operation is executed on an initial context to determine which provider should handle the operation.\n * <p>\n * A context factory should evaluate the provider's type to determine if the provider is compatible with the naming\n * scheme, and should not support producing contexts for unknown providers.\n *\n * @param namingProvider the naming provider which is handling this request, or {@code null} if it is local\n * @param nameScheme the JNDI name scheme, or {@code null} if no name scheme was given\n * @return {@code true} if this factory supports the given scheme, {@code false} otherwise\n */\n boolean supportsUriScheme(NamingProvider namingProvider, String nameScheme);\n\n /**\n * Create the root context for this naming scheme. The context should capture any locally relevant information,\n * such as the relevant local security or authentication context.\n *\n * @param namingProvider the naming provider which is handling this request, or {@code null} if it is local\n * @param nameScheme the scheme in the name, or {@code null} if there is no name URL scheme\n * @param env a copy of the environment which may be consumed directly by the provider (not {@code null})\n * @param providerEnvironment the provider environment (not {@code null})\n * @return the root context (must not be {@code null})\n * @throws NamingException if the root context creation failed for some reason\n */\n Context createRootContext(NamingProvider namingProvider, String nameScheme, FastHashtable<String, Object> env, ProviderEnvironment providerEnvironment) throws NamingException;\n}",
"MMIContext getContext(final URI contextId) {\n final String str = contextId.toString();\n return getContext(str);\n }",
"public static MetadataContext get() {\n if (null == METADATA_CONTEXT.get()) {\n MetadataContext metadataContext = new MetadataContext();\n if (metadataLocalProperties == null) {\n metadataLocalProperties = (MetadataLocalProperties) ApplicationContextAwareUtils\n .getApplicationContext().getBean(\"metadataLocalProperties\");\n }\n\n // init custom metadata and load local metadata\n Map<String, String> transitiveMetadataMap = getTransitiveMetadataMap(metadataLocalProperties.getContent(),\n metadataLocalProperties.getTransitive());\n metadataContext.putAllTransitiveCustomMetadata(transitiveMetadataMap);\n\n // init system metadata\n metadataContext.putSystemMetadata(MetadataConstant.SystemMetadataKey.LOCAL_NAMESPACE,\n LOCAL_NAMESPACE);\n metadataContext.putSystemMetadata(MetadataConstant.SystemMetadataKey.LOCAL_SERVICE,\n LOCAL_SERVICE);\n\n METADATA_CONTEXT.set(metadataContext);\n }\n return METADATA_CONTEXT.get();\n }",
"public com.google.protobuf.ByteString getContext() {\n return context_;\n }",
"public ContextRequest getContext() {\n\t\treturn context;\n\t}",
"public com.google.protobuf.ByteString getContext() {\n return context_;\n }",
"public static Context getContext() {\n\t\treturn context;\n\t}",
"public static Context getContext() {\n\t\treturn context;\n\t}",
"private static Context prepareContext() {\r\n\r\n Context context = new Context();\r\n\r\n ContextProperties properties = new ContextProperties();\r\n\r\n // Context requires a name\r\n properties.setName(\"Example_Package_Context\");\r\n\r\n // description is nice\r\n properties.setDescription(\"Example package Context.\");\r\n\r\n // define the type\r\n properties.setType(\"ExampleType\");\r\n\r\n /*\r\n * Organizational Unit(s) is/are required\r\n */\r\n OrganizationalUnitRefs ous = new OrganizationalUnitRefs();\r\n\r\n // add the Organizational Unit with objid escidoc:ex3 (the ou of the\r\n // example eSciDoc representation package) to the list of\r\n // organizational Units\r\n ous.add(new OrganizationalUnitRef(\"escidoc:ex3\"));\r\n properties.setOrganizationalUnitRefs(ous);\r\n\r\n context.setProperties(properties);\r\n\r\n return context;\r\n }",
"default String getContext() {\n return getContextOpt().orElseThrow(IllegalStateException::new);\n }",
"public cl_context getContext() {\r\n return context;\r\n }",
"default WebDriver context(String name) {\n checkNotNull(name, \"Must supply a context name\");\n try {\n execute(DriverCommand.SWITCH_TO_CONTEXT, ImmutableMap.of(\"name\", name));\n return this;\n } catch (WebDriverException e) {\n throw new NoSuchContextException(e.getMessage(), e);\n }\n }",
"public static MutableContext create(HttpServletRequest request) {\n\n\t\t\tServletContext sc = request.getServletContext();\n\t\t\tSnowflakeContext parent = SnowContextUtils\n\t\t\t\t\t.getWebApplicationContext(sc);\n\n\t\t\tMutableContextBuilderFactory factory = new MutableContextBuilderFactory();\n\t\t\tContextBuilder builder = factory.newBuilder(parent);\n\t\t\treturn (MutableContext) builder.create();\n\n\t\t}",
"private Context getThreadContext() throws NamingException {\n final ThreadContext threadContext = ThreadContext.getThreadContext();\n if (skipEjbContext(threadContext)) {\n return ContextBindings.getClassLoader();\n }\n final Context context = threadContext.getBeanContext().getJndiEnc();\n return context;\n }",
"public static Context getContext() {\n if (sContext == null) {\n throw new RuntimeException(APPLICATION_CONTEXT_IS_NULL);\n }\n return sContext;\n }",
"@Override\n protected HttpContext createHttpContext()\n {\n HttpContext context = new BasicHttpContext();\n context.setAttribute(ClientContext.AUTHSCHEME_REGISTRY,\n getAuthSchemes());\n context.setAttribute(ClientContext.COOKIESPEC_REGISTRY,\n getCookieSpecs());\n context.setAttribute(ClientContext.CREDS_PROVIDER,\n getCredentialsProvider());\n return context;\n }",
"Context context();",
"Context context();",
"Context getContext() {\n Context context = mContextRef.get();\n return context != null ? context : AppUtil.getAppContext();\n }",
"public static Properties getCtx (HttpServletRequest request)\n\t{\n\t\t//\tSession\n\t\tHttpSession session = request.getSession(true);\n\t\tProperties ctx = (Properties)session.getAttribute(CONTEXT_NAME);\n\n\t\t//\tNew Context\n\t\tif (ctx == null)\n\t\t{\n\t\t\ts_log.info (\"getCtx - new (\" + request.getRemoteAddr() + \")\");\n\t\t\tctx = new Properties();\n\t\t\t//\tAdd Servlet Init Parameters\n\t\t\tServletContext sc = session.getServletContext();\n\t\t\tEnumeration en = sc.getInitParameterNames();\n\t\t\twhile (en.hasMoreElements())\n\t\t\t{\n\t\t\t\tString key = (String)en.nextElement();\n\t\t\t\tString value = sc.getInitParameter(key);\n\t\t\t\tctx.setProperty(key, value);\n\t\t\t}\n\t\t\t//\tDefault Client\n\t\t\tint AD_Client_ID = Env.getContextAsInt(ctx, \"#AD_Client_ID\");\n\t\t\tif (AD_Client_ID == 0)\n\t\t\t{\n\t\t\t\tAD_Client_ID = DB.getSQLValue(\"SELECT AD_Client_ID FROM AD_Client WHERE AD_Client_ID > 11 AND IsActive='Y'\");\n\t\t\t\tif (AD_Client_ID < 0)\n\t\t\t\t\tAD_Client_ID = 11;\t//\tGardenWorld\n\t\t\t\tEnv.setContext (ctx, \"#AD_Client_ID\", AD_Client_ID);\n\t\t\t}\n\t\t\t//\tAdd Defaults\n\t\t\tctx = getDefaults (ctx, AD_Client_ID);\n\t\t\t//\tServerContext\t- dev2/wstore\n\t\t\tctx.put(CTX_SERVER_CONTEXT, request.getServerName() + request.getContextPath());\n\n\t\t\t//\tsave it\n\t\t\tsession.setAttribute(CONTEXT_NAME, ctx);\n\t\t\ts_log.debug (\"getCtx - new #\" + ctx.size());\n\t\t//\ts_log.debug (\"getCtx - \" + ctx);\n\t\t}\n\n\t\t//\tAdd/set current user\n\t\tWebUser wu = (WebUser)session.getAttribute(WebUser.NAME);\n\t\tif (wu != null)\n\t\t{\n\t\t\tint AD_User_ID = wu.getAD_User_ID();\n\t\t\tEnv.setContext(ctx, \"#AD_User_ID\", AD_User_ID);\t\t//\tsecurity\n\t\t}\n\n\t\t//\tFinish\n\t\tsession.setMaxInactiveInterval(1800);\t//\t30 Min\tHARDCODED\n\t\tString info = (String)ctx.get(HDR_INFO);\n\t\tif (info != null)\n\t\t\tsession.setAttribute(HDR_INFO, info);\n\t\treturn ctx;\n\t}",
"public static Properties getCtx (HttpServletRequest request)\n\t{\n\t\t//\tSession\n\t\tHttpSession session = request.getSession(true);\n\t\tProperties ctx = (Properties)session.getAttribute(CONTEXT_NAME);\n\n\t\t//\tNew Context\n\t\tif (ctx == null)\n\t\t{\n\t\t\ts_log.info (\"getCtx - new (\" + request.getRemoteAddr() + \")\");\n\t\t\tctx = new Properties();\n\t\t\t//\tAdd Servlet Init Parameters\n\t\t\tServletContext sc = session.getServletContext();\n\t\t\tEnumeration en = sc.getInitParameterNames();\n\t\t\twhile (en.hasMoreElements())\n\t\t\t{\n\t\t\t\tString key = (String)en.nextElement();\n\t\t\t\tString value = sc.getInitParameter(key);\n\t\t\t\tctx.setProperty(key, value);\n\t\t\t}\n\t\t\t//\tDefault Client\n\t\t\tint AD_Client_ID = Env.getContextAsInt(ctx, \"#AD_Client_ID\");\n\t\t\tif (AD_Client_ID == 0)\n\t\t\t{\n\t\t\t\tAD_Client_ID = DB.getSQLValue(\"SELECT AD_Client_ID FROM AD_Client WHERE AD_Client_ID > 11 AND IsActive='Y'\");\n\t\t\t\tif (AD_Client_ID < 0)\n\t\t\t\t\tAD_Client_ID = 11;\t//\tGardenWorld\n\t\t\t\tEnv.setContext (ctx, \"#AD_Client_ID\", AD_Client_ID);\n\t\t\t}\n\t\t\t//\tAdd Defaults\n\t\t\tctx = getDefaults (ctx, AD_Client_ID);\n\t\t\t//\tServerContext\t- dev2/wstore\n\t\t\tctx.put(CTX_SERVER_CONTEXT, request.getServerName() + request.getContextPath());\n\n\t\t\t//\tsave it\n\t\t\tsession.setAttribute(CONTEXT_NAME, ctx);\n\t\t\ts_log.debug (\"getCtx - new #\" + ctx.size());\n\t\t//\ts_log.debug (\"getCtx - \" + ctx);\n\t\t}\n\n\t\t//\tAdd/set current user\n\t\tWebUser wu = (WebUser)session.getAttribute(WebUser.NAME);\n\t\tif (wu != null)\n\t\t{\n\t\t\tint AD_User_ID = wu.getAD_User_ID();\n\t\t\tEnv.setContext(ctx, \"#AD_User_ID\", AD_User_ID);\t\t//\tsecurity\n\t\t}\n\n\t\t//\tFinish\n\t\tsession.setMaxInactiveInterval(1800);\t//\t30 Min\tHARDCODED\n\t\tString info = (String)ctx.get(HDR_INFO);\n\t\tif (info != null)\n\t\t\tsession.setAttribute(HDR_INFO, info);\n\t\treturn ctx;\n\t}",
"public static Properties getCtx (HttpServletRequest request)\n\t{\n\t\t//\tSession\n\t\tHttpSession session = request.getSession(true);\n\t\tProperties ctx = (Properties)session.getAttribute(CONTEXT_NAME);\n\n\t\t//\tNew Context\n\t\tif (ctx == null)\n\t\t{\n\t\t\ts_log.info (\"getCtx - new (\" + request.getRemoteAddr() + \")\");\n\t\t\tctx = new Properties();\n\t\t\t//\tAdd Servlet Init Parameters\n\t\t\tServletContext sc = session.getServletContext();\n\t\t\tEnumeration en = sc.getInitParameterNames();\n\t\t\twhile (en.hasMoreElements())\n\t\t\t{\n\t\t\t\tString key = (String)en.nextElement();\n\t\t\t\tString value = sc.getInitParameter(key);\n\t\t\t\tctx.setProperty(key, value);\n\t\t\t}\n\t\t\t//\tDefault Client\n\t\t\tint AD_Client_ID = Env.getContextAsInt(ctx, \"#AD_Client_ID\");\n\t\t\tif (AD_Client_ID == 0)\n\t\t\t{\n\t\t\t\tAD_Client_ID = DB.getSQLValue(\"SELECT AD_Client_ID FROM AD_Client WHERE AD_Client_ID > 11 AND IsActive='Y'\");\n\t\t\t\tif (AD_Client_ID < 0)\n\t\t\t\t\tAD_Client_ID = 11;\t//\tGardenWorld\n\t\t\t\tEnv.setContext (ctx, \"#AD_Client_ID\", AD_Client_ID);\n\t\t\t}\n\t\t\t//\tAdd Defaults\n\t\t\tctx = getDefaults (ctx, AD_Client_ID);\n\t\t\t//\tServerContext\t- dev2/wstore\n\t\t\tctx.put(CTX_SERVER_CONTEXT, request.getServerName() + request.getContextPath());\n\n\t\t\t//\tsave it\n\t\t\tsession.setAttribute(CONTEXT_NAME, ctx);\n\t\t\ts_log.debug (\"getCtx - new #\" + ctx.size());\n\t\t//\ts_log.debug (\"getCtx - \" + ctx);\n\t\t}\n\n\t\t//\tAdd/set current user\n\t\tWebUser wu = (WebUser)session.getAttribute(WebUser.NAME);\n\t\tif (wu != null)\n\t\t{\n\t\t\tint AD_User_ID = wu.getAD_User_ID();\n\t\t\tEnv.setContext(ctx, \"#AD_User_ID\", AD_User_ID);\t\t//\tsecurity\n\t\t}\n\n\t\t//\tFinish\n\t\tsession.setMaxInactiveInterval(1800);\t//\t30 Min\tHARDCODED\n\t\tString info = (String)ctx.get(HDR_INFO);\n\t\tif (info != null)\n\t\t\tsession.setAttribute(HDR_INFO, info);\n\t\treturn ctx;\n\t}",
"public static Properties getCtx (HttpServletRequest request)\n\t{\n\t\t//\tSession\n\t\tHttpSession session = request.getSession(true);\n\t\tProperties ctx = (Properties)session.getAttribute(CONTEXT_NAME);\n\n\t\t//\tNew Context\n\t\tif (ctx == null)\n\t\t{\n\t\t\ts_log.info (\"getCtx - new (\" + request.getRemoteAddr() + \")\");\n\t\t\tctx = new Properties();\n\t\t\t//\tAdd Servlet Init Parameters\n\t\t\tServletContext sc = session.getServletContext();\n\t\t\tEnumeration en = sc.getInitParameterNames();\n\t\t\twhile (en.hasMoreElements())\n\t\t\t{\n\t\t\t\tString key = (String)en.nextElement();\n\t\t\t\tString value = sc.getInitParameter(key);\n\t\t\t\tctx.setProperty(key, value);\n\t\t\t}\n\t\t\t//\tDefault Client\n\t\t\tint AD_Client_ID = Env.getContextAsInt(ctx, \"#AD_Client_ID\");\n\t\t\tif (AD_Client_ID == 0)\n\t\t\t{\n\t\t\t\tAD_Client_ID = DB.getSQLValue(\"SELECT AD_Client_ID FROM AD_Client WHERE AD_Client_ID > 11 AND IsActive='Y'\");\n\t\t\t\tif (AD_Client_ID < 0)\n\t\t\t\t\tAD_Client_ID = 11;\t//\tGardenWorld\n\t\t\t\tEnv.setContext (ctx, \"#AD_Client_ID\", AD_Client_ID);\n\t\t\t}\n\t\t\t//\tAdd Defaults\n\t\t\tctx = getDefaults (ctx, AD_Client_ID);\n\t\t\t//\tServerContext\t- dev2/wstore\n\t\t\tctx.put(CTX_SERVER_CONTEXT, request.getServerName() + request.getContextPath());\n\n\t\t\t//\tsave it\n\t\t\tsession.setAttribute(CONTEXT_NAME, ctx);\n\t\t\ts_log.debug (\"getCtx - new #\" + ctx.size());\n\t\t//\ts_log.debug (\"getCtx - \" + ctx);\n\t\t}\n\n\t\t//\tAdd/set current user\n\t\tWebUser wu = (WebUser)session.getAttribute(WebUser.NAME);\n\t\tif (wu != null)\n\t\t{\n\t\t\tint AD_User_ID = wu.getAD_User_ID();\n\t\t\tEnv.setContext(ctx, \"#AD_User_ID\", AD_User_ID);\t\t//\tsecurity\n\t\t}\n\n\t\t//\tFinish\n\t\tsession.setMaxInactiveInterval(1800);\t//\t30 Min\tHARDCODED\n\t\tString info = (String)ctx.get(HDR_INFO);\n\t\tif (info != null)\n\t\t\tsession.setAttribute(HDR_INFO, info);\n\t\treturn ctx;\n\t}",
"public static void createActiveUserRelatedPreferencesIfNeeds(Context context) {\r\n\t\tif (hasActiveUserId(context) == false) {\r\n\t\t\tString newUserId = generateNewUserId();\r\n\t\t\tString userConfigKey = getUserConfigFileNameKey(newUserId);\r\n\t\t\tString userDbKey = getUserDatabaseFileNameKey(newUserId);\r\n\t\t\tString userConfigFileName = getUserConfigFileName(context,\r\n\t\t\t\t\tnewUserId);\r\n\t\t\tString userDbFileName = DatabaseHelper.databaseName; // Use old db\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// file\r\n\r\n\t\t\tSharedPreferences prefs = PreferenceManager\r\n\t\t\t\t\t.getDefaultSharedPreferences(context);\r\n\t\t\tif (prefs != null) {\r\n\t\t\t\tEditor editor = prefs.edit();\r\n\t\t\t\tif (editor != null) {\r\n\t\t\t\t\teditor.putString(\"user-\" + newUserId, newUserId);\r\n\t\t\t\t\teditor.putString(userConfigKey, userConfigFileName);\r\n\t\t\t\t\teditor.putString(userDbKey, userDbFileName);\r\n\t\t\t\t\teditor.putString(PreferenceKeys.ActiveUserId, newUserId);\r\n\t\t\t\t}\r\n\r\n\t\t\t\teditor.commit();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"ContextBucket getContext() {\n\treturn context;\n }",
"com.google.protobuf.ByteString\n getContextBytes();",
"public ActionContext createContext(Object contextObject) {\n\t\treturn new DefaultActionContext().setContextObject(contextObject);\n\t}",
"public abstract void makeContext();",
"public UserStore create(){\n //For now, return only Local\n return new LocalUserStore(this.userCache);\n }",
"public com.google.protobuf.ByteString\n getContextBytes() {\n java.lang.Object ref = context_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n context_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"protected final TranslationContext context() {\n\t\treturn context;\n\t}",
"public com.google.common.util.concurrent.ListenableFuture<\n com.google.cloud.aiplatform.v1.Context>\n getContext(com.google.cloud.aiplatform.v1.GetContextRequest request) {\n return io.grpc.stub.ClientCalls.futureUnaryCall(\n getChannel().newCall(getGetContextMethod(), getCallOptions()), request);\n }",
"public User getCurrentUser() {\n\t\tString id = contextHolder.getUserId();\r\n\t\treturn userRepository.get(id);\r\n\t}",
"public static FHIRRequestContext get() {\n FHIRRequestContext result = contexts.get();\n if (log.isLoggable(Level.FINEST)) {\n log.finest(\"FHIRRequestContext.get: \" + result.toString());\n }\n return result;\n }",
"public com.google.protobuf.ByteString\n getContextBytes() {\n java.lang.Object ref = context_;\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 context_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public static ApplicationContext getContext() {\n if (context == null) {\n CompilerExtensionRegistry.setActiveExtension( OTA2CompilerExtensionProvider.OTA2_COMPILER_EXTENSION_ID );\n }\n return context;\n }",
"public static User getUser(Context context){\n SharedPreferences preferences=getSharedPreferences(context);\n User user=new User();\n user.setUsername(preferences.getString(USERNAME,null));\n user.setPassword(preferences.getString(PASSWORD,null));\n user.setGender(preferences.getString(GENDER,null));\n user.setAddress(preferences.getString(ADDRESS,null));\n return user;\n }",
"public AuthorizationContext getUserAuthorizationContext() {\n\t\treturn securityContext.getAuthorizationContext();\n\t}",
"@Override\r\n public InitialContextFactory createInitialContextFactory(Hashtable<?, ?> environment)\r\n {\r\n if (activated == null && environment != null) {\r\n Object icf = environment.get(Context.INITIAL_CONTEXT_FACTORY);\r\n if (icf != null) {\r\n Class<?> icfClass;\r\n if (icf instanceof Class) {\r\n icfClass = (Class<?>) icf;\r\n } else if (icf instanceof String) {\r\n icfClass = resolveClassName((String) icf, getClass().getClassLoader());\r\n } else {\r\n throw new IllegalArgumentException(\"Invalid value type for environment key [\" +\r\n Context.INITIAL_CONTEXT_FACTORY + \"]: \" + icf.getClass().getName());\r\n }\r\n if (!InitialContextFactory.class.isAssignableFrom(icfClass)) {\r\n throw new IllegalArgumentException(\r\n \"Specified class does not implement [\" + InitialContextFactory.class.getName() + \"]: \" + icf);\r\n }\r\n try {\r\n return (InitialContextFactory) icfClass.newInstance();\r\n } catch (Throwable ex) {\r\n throw new IllegalStateException(\"Cannot instantiate specified InitialContextFactory: \" + icf, ex);\r\n }\r\n }\r\n }\r\n\r\n // Default case...\r\n return new InitialContextFactory()\r\n {\r\n @Override\r\n @SuppressWarnings(\"unchecked\")\r\n public Context getInitialContext(Hashtable<?, ?> environment)\r\n {\r\n return new SimpleNamingContext(\"\", boundObjects, (Hashtable<String, Object>) environment);\r\n }\r\n };\r\n }",
"public Context getContext() {\r\n\t\treturn context;\r\n\t}",
"public static Context getContext() {\n\t\treturn instance;\n\t}",
"@Override\n public RestContextSpec<?, ?> createContextSpec() {\n Properties restProperties = new Properties();\n restProperties.setProperty(provider + \".contextbuilder\", SimpleDBContextBuilder.class.getName());\n restProperties.setProperty(provider + \".propertiesbuilder\", SimpleDBPropertiesBuilder.class.getName());\n return new RestContextFactory(restProperties).createContextSpec(provider, \"foo\", \"bar\", getProperties());\n }",
"public Context getContext() {\n\t\treturn context;\n\t}",
"static synchronized Context getContext() {\n checkState();\n return sInstance.mContext;\n }",
"public IRuntimeContext getContext() {\n return fContext;\n }",
"private Context getRemoteContext(Context context) {\n try {\n return context.getApplicationContext().createPackageContext(PACKAGE_WITH_DEX_TO_EXTRACT,\n Context.CONTEXT_IGNORE_SECURITY | Context.CONTEXT_INCLUDE_CODE);\n } catch (NameNotFoundException e) {\n e.printStackTrace();\n Assert.fail(\"Could not get remote context\");\n return null;\n }\n }",
"private Context genereateContext() {\n Context newContext = new Context();\n String path = \"\"; // NOI18N\n newContext.setAttributeValue(ATTR_PATH, path);\n\n // if tomcat 5.0.x generate a logger\n if (tomcatVersion == TomcatVersion.TOMCAT_50) {\n // generate default logger\n newContext.setLogger(true);\n newContext.setLoggerClassName(\"org.apache.catalina.logger.FileLogger\"); // NOI18N\n newContext.setLoggerPrefix(computeLoggerPrefix(path));\n newContext.setLoggerSuffix(\".log\"); // NOI18N\n newContext.setLoggerTimestamp(\"true\"); // NOI18N\n } else if (tomcatVersion == TomcatVersion.TOMCAT_55\n || tomcatVersion == TomcatVersion.TOMCAT_60\n || tomcatVersion == TomcatVersion.TOMCAT_70){\n // tomcat 5.5, 6.0 and 7.0\n newContext.setAntiJARLocking(\"true\"); // NOI18N\n }\n return newContext;\n }",
"public static SharedPreferences getActiveUserSharedPreferences(\r\n\t\t\tContext context) {\r\n\t\tSharedPreferences result = null;\r\n\t\tSharedPreferences prefs = PreferenceManager\r\n\t\t\t\t.getDefaultSharedPreferences(context);\r\n\t\tif (prefs != null) {\r\n\t\t\tString activeUserId = prefs.getString(PreferenceKeys.ActiveUserId,\r\n\t\t\t\t\t\"\");\r\n\t\t\tif (!TextUtils.isEmpty(activeUserId)) {\r\n\t\t\t\tString userConfigFileName = getUserConfigFileName(context,\r\n\t\t\t\t\t\tactiveUserId);\r\n\t\t\t\tresult = context.getSharedPreferences(userConfigFileName,\r\n\t\t\t\t\t\tContext.MODE_PRIVATE);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn result;\r\n\t}",
"static DirContext getInitialDirContext() throws NamingException {\r\n\t\tHashtable<String, String> env = new Hashtable<String, String>();\r\n\t\tenv.put(Context.INITIAL_CONTEXT_FACTORY, \"com.sun.jndi.ldap.LdapCtxFactory\");\r\n\t\tenv.put(Context.PROVIDER_URL, ldapConfig.getConnection());\r\n\t\tenv.put(Context.SECURITY_AUTHENTICATION, getLdapConfig().getAuthenticationScheme());\r\n\t\tif (!getLdapConfig().getAuthenticationScheme().equals(ConfigurationManager.AUTH_NONE)) {\r\n\t\t\tenv.put(Context.SECURITY_PRINCIPAL, getLdapConfig().getPrincipal());\r\n\t\t\tenv.put(Context.SECURITY_CREDENTIALS, Password.fromEncryptedString(getLdapConfig().getCredentials()).getClearText());\r\n\t\t}\r\n\t\tInitialDirContext ctx = new InitialDirContext(env);\r\n\t\treturn ctx;\r\n\t}",
"public ServletContext getContext() {\r\n\t\treturn new ContextWrapper(getEvent().getServletContext());\r\n\t}",
"public static Context getInstance(){\n\t\treturn (Context) t.get();\n\t}",
"public static Context getCommunicationServiceContext(URI source, URI group, Long _timestamp)\n\t{\n\t long timestamp = _timestamp==null ? getContextTimestampSafe() : _timestamp;\n\t try\n\t {\n\t return new Context(ContextType.COMMUNICATIONSERVICE,\n\t \t\tgetGeneratedContextURI(source, timestamp, ContextType.COMMUNICATIONSERVICE), \n\t \t\tgetDefaultContextState(ContextType.COMMUNICATIONSERVICE), source, group, null, false,\n\t \t\ttimestamp, ContextLabel.AUTOMATIC_SYNCHRONISATION);\n\t }\n\t catch ( Exception e )\n\t {\n\t throw new RuntimeException( \"CommunicationService context could not retrieved\", e );\n\t }\n\t}",
"public UserContext(SecuredUser user) {\r\n\t\tthis.user = user;\r\n\t}",
"public Context getContext() {\n return context;\n }",
"public Optional<URI> getContextPath() {\r\n return contextPath;\r\n }",
"public Context getContext() {\n\t\treturn null;\n\t}",
"private Context getContext() throws Exception {\n\t\tif (ctx != null)\n\t\t\treturn ctx;\n\n\t\tProperties props = new Properties();\n\t\tprops.put(Context.PROVIDER_URL, \"jnp://\" + endpoint);\n\t\tprops.put(Context.INITIAL_CONTEXT_FACTORY,\n\t\t\t\t\"org.jnp.interfaces.NamingContextFactory\");\n\t\tprops.put(Context.URL_PKG_PREFIXES,\n\t\t\t\t\"org.jboss.naming:org.jnp.interfaces\");\n\t\tctx = new InitialContext(props);\n\n\t\treturn ctx;\n\t}",
"public static NamespaceContext create() {\n return new NamespaceContext();\n }",
"private Appuser newUser() {\n //TODO: get logged user from security context\n String createdBy = \"REST\";\n Appuser au = new Appuser();\n Userdetails ud = new Userdetails();\n boolean idOK = false;\n Long id = 0L;\n while (!idOK) {\n id = EntityIdGenerator.random();\n idOK = !userRepository.exists(id);\n }\n //notNull\n ud.setNotes(\"none\");\n au.setPasswdHash(\"*\");\n au.setCreatedBy(createdBy);\n au.setUserId(id);\n ud.setUserId(id);\n au.setUserdetails(ud);\n return au;\n }",
"@JsonProperty(\"context\")\n @ApiModelProperty(value = \"The context for the dialog node.\")\n public Object getContext() {\n return context;\n }",
"Context getContext();",
"long getCurrentContext();",
"@Bean(name = \"hebLdapContext\")\n\tpublic BaseLdapPathContextSource contextSource() throws Exception {\n\t\tDefaultSpringSecurityContextSource contextSource =\n\t\t\t\tnew DefaultSpringSecurityContextSource(this.url);\n\t\tcontextSource.setUserDn(this.managerDn);\n\t\tcontextSource.setPassword(this.managerPassword);\n\t\tcontextSource.setBase(this.root);\n\t\tcontextSource.afterPropertiesSet();\n\n\t\treturn contextSource;\n\t}",
"public static MyFileContext create() {\n\t\treturn new MyContextImpl();\n\t}",
"public ApplicationContext createApplicationContext(\n MarinerRequestContext requestContext)\n throws RepositoryException {\n\n ApplicationContext applicationContext = null;\n\n // Get the Volantis bean.\n Volantis volantisBean = Volantis.getInstance();\n if (volantisBean == null) {\n throw new IllegalStateException\n (\"Volantis bean has not been initialised\");\n }\n\n // Resolve the device (once for this session).\n InternalDevice device = resolveDevice(\n volantisBean,\n requestContext);\n\n // Create the application context\n applicationContext = createApplicationContextImpl(requestContext);\n\n // Initialize the application context.\n initializeApplicationContext(requestContext, volantisBean,\n applicationContext, device);\n\n return applicationContext;\n }",
"public Object getContextObject() {\n return context;\n }",
"public interface StandardContext extends Context\n{\n public static final String NAME_KEY = \"urn:avalon:name\";\n public static final String PARTITION_KEY = \"urn:avalon:partition\";\n public static final String WORKING_KEY = \"urn:avalon:temp\";\n public static final String HOME_KEY = \"urn:avalon:home\";\n\n /**\n * Return the name assigned to the component\n * @return the name\n */\n String getName();\n\n /**\n * Return the partition name assigned to the component\n * @return the partition name\n */\n String getPartitionName();\n\n /**\n * @return a file representing the home directory\n */\n File getHomeDirectory();\n\n /**\n * @return a file representing the temporary working directory\n */\n File getWorkingDirectory();\n\n}",
"@Override\r\n\tpublic Context getContext() {\r\n\t\treturn this.context;\r\n\t}",
"public Builder setContext(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n context_ = value;\n onChanged();\n return this;\n }",
"@Experimental\n @Returns(\"browserContextId\")\n String createBrowserContext();",
"public static Context getContext(){\n return appContext;\n }",
"public Context getContext(String name)\n throws NamingException\n {\n if(alias.containsKey(name))\n {\n name = alias.get(name);\n }\n Context ctx = context.get(name);\n if(ctx == null)\n {\n Hashtable<String, Object> props = initial.get(name);\n if(props == null || props.isEmpty())\n {\n throw new NamingException(\"context \"+name+\" was not found\");\n }\n ctx = new InitialContext(props);\n context.put(name, ctx);\n }\n return (Context)ctx.lookup(\"\");\n }",
"public String getContext() { return context; }",
"@Nullable\n default String getContext() {\n String contextName =\n String.valueOf(execute(DriverCommand.GET_CURRENT_CONTEXT_HANDLE).getValue());\n return \"null\".equalsIgnoreCase(contextName) ? null : contextName;\n }",
"@Override\n\tpublic LoggerContext getContext(final String fqcn, final ClassLoader loader, final Object externalContext,\n\t\t\tfinal boolean currentContext, final URI configLocation, final String name) {\n\t\tfinal LoggerContext ctx = selector.getContext(fqcn, loader, currentContext, configLocation);\n\t\tif (externalContext != null && ctx.getExternalContext() == null) {\n\t\t\tctx.setExternalContext(externalContext);\n\t\t}\n\t\tif (name != null) {\n\t\t\tctx.setName(name);\n\t\t}\n\t\tif (ctx.getState() == LifeCycle.State.INITIALIZED) {\n\t\t\tif (configLocation != null || name != null) {\n\t\t\t\tContextAnchor.THREAD_CONTEXT.set(ctx);\n\t\t\t\tfinal Configuration config = ConfigurationFactory.getInstance().getConfiguration(ctx, name,\n\t\t\t\t\t\tconfigLocation);\n\t\t\t\tLOGGER.debug(\"Starting LoggerContext[name={}] from configuration at {}\", ctx.getName(), configLocation);\n\t\t\t\tctx.start(config);\n\t\t\t\tContextAnchor.THREAD_CONTEXT.remove();\n\t\t\t} else {\n\t\t\t\tctx.start();\n\t\t\t}\n\t\t}\n\t\treturn ctx;\n\t}",
"public static void createNewUserPreference(Context context) {\r\n\t\tString newUserId = generateNewUserId();\r\n\t\tString userConfigKey = getUserConfigFileNameKey(newUserId);\r\n\t\tString userDbKey = getUserDatabaseFileNameKey(newUserId);\r\n\t\tString userConfigFileName = getUserConfigFileName(context, newUserId);\r\n\t\tString userDbFileName = getUserDatabaseFileName(context, newUserId);\r\n\r\n\t\tSharedPreferences prefs = PreferenceManager\r\n\t\t\t\t.getDefaultSharedPreferences(context);\r\n\t\tif (prefs != null) {\r\n\t\t\tEditor editor = prefs.edit();\r\n\t\t\tif (editor != null) {\r\n\t\t\t\teditor.putString(\"user-\" + newUserId, newUserId);\r\n\t\t\t\teditor.putString(userConfigKey, userConfigFileName);\r\n\t\t\t\teditor.putString(userDbKey, userDbFileName);\r\n\t\t\t}\r\n\r\n\t\t\teditor.commit();\r\n\t\t}\r\n\t}",
"public OwNetworkContext getContext();",
"private MMIContext getContext(final String contextId) {\n synchronized (contexts) {\n return contexts.get(contextId);\n }\n }"
] |
[
"0.66390043",
"0.553099",
"0.5375101",
"0.52422345",
"0.5169765",
"0.5169765",
"0.50796616",
"0.5074842",
"0.5058859",
"0.5050978",
"0.50052047",
"0.49437997",
"0.49018103",
"0.481718",
"0.47861558",
"0.4781185",
"0.47493356",
"0.47490317",
"0.47361627",
"0.46799982",
"0.46701494",
"0.46649078",
"0.46406147",
"0.46279508",
"0.46129212",
"0.46118158",
"0.46040714",
"0.4578677",
"0.45478046",
"0.45478046",
"0.4546943",
"0.4508294",
"0.45081028",
"0.44961262",
"0.44935617",
"0.44779447",
"0.44716102",
"0.4460375",
"0.44600043",
"0.44600043",
"0.4443064",
"0.44413316",
"0.44413316",
"0.44413316",
"0.44413316",
"0.443312",
"0.44291165",
"0.4426424",
"0.4405783",
"0.44043455",
"0.44010252",
"0.43930438",
"0.43863562",
"0.43856296",
"0.43722203",
"0.43690625",
"0.43563363",
"0.43545294",
"0.43429083",
"0.43380043",
"0.43374544",
"0.43370444",
"0.43352616",
"0.4332731",
"0.4321504",
"0.4318389",
"0.43014163",
"0.4299381",
"0.42967463",
"0.42956328",
"0.42768335",
"0.426573",
"0.42651525",
"0.42633966",
"0.42395285",
"0.423919",
"0.4230363",
"0.42295653",
"0.4223594",
"0.4222727",
"0.42160493",
"0.4212516",
"0.41995865",
"0.41870755",
"0.41811278",
"0.4178561",
"0.41769353",
"0.41741833",
"0.4161204",
"0.41591495",
"0.41584584",
"0.41550004",
"0.41522127",
"0.41501865",
"0.41439754",
"0.41414386",
"0.41297814",
"0.41289723",
"0.4126761",
"0.41189474"
] |
0.69421315
|
0
|
Generates a context for the communication service. If the passed timestamp is null, a new context will be created; if the timestamp is passed and a communication service context with the specified parameters (i.e., source and group) already exists, the existing context is retrieved (yet the associated metadata is not loaded).
|
public static Context getCommunicationServiceContext(URI source, URI group, Long _timestamp)
{
long timestamp = _timestamp==null ? getContextTimestampSafe() : _timestamp;
try
{
return new Context(ContextType.COMMUNICATIONSERVICE,
getGeneratedContextURI(source, timestamp, ContextType.COMMUNICATIONSERVICE),
getDefaultContextState(ContextType.COMMUNICATIONSERVICE), source, group, null, false,
timestamp, ContextLabel.AUTOMATIC_SYNCHRONISATION);
}
catch ( Exception e )
{
throw new RuntimeException( "CommunicationService context could not retrieved", e );
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"Context createContext();",
"Context createContext();",
"private void collectContextDataCreatContextSituation()\n\t\t\tthrows NumberFormatException, InterruptedException {\n\n\t\twhile (isTransmissionStarted) {\n\t\t\tVector<ContextElement> contextElements = new Vector<>();\n\n\t\t\tm_CASMediator = getCASMediator();\n\n\t\t\t// create the time context element\n\t\t\tContextElement contextElement = new ContextElement();\n\t\t\tcontextElement.setContexttype(\"timecontext\");\n\t\t\tTimeContextElement timeContextElement = new TimeContextElement();\n\t\t\tDate date = new Date();\n\t\t\tTime time = new Time();\n\t\t\ttimeContextElement.setDate(date);\n\t\t\ttimeContextElement.setTime(time);\n\t\t\ttimeContextElement.setContextid(Integer\n\t\t\t\t\t.parseInt(m_timeContextContextIdText.getText()));\n\t\t\tdate.setDay(Integer.parseInt(m_timeContextDateDayText.getText()));\n\t\t\tdate.setMonth(Integer.parseInt(m_timeContextDateMonthText.getText()));\n\t\t\tdate.setYear(Integer.parseInt(m_timeContextDateYearText.getText()));\n\t\t\ttime.setHour(Integer.parseInt(m_timeContextTimeHourText.getText()));\n\t\t\ttime.setMinutes(Integer.parseInt(m_timeContextTimeMinutesText\n\t\t\t\t\t.getText()));\n\t\t\ttime.setSeconds(Integer.parseInt(m_timeContextTimeSecondsText\n\t\t\t\t\t.getText()));\n\t\t\ttime.setAMPM(m_timeContextDayRadio.isSelected() ? \"DAY\" : \"NIGHT\");\n\t\t\tcontextElement.setTimeContextElement(timeContextElement);\n\t\t\tcontextElements.addElement(contextElement);\n\n\t\t\t// create the position context\n\t\t\tcontextElement = new ContextElement();\n\t\t\tcontextElement.setContexttype(\"locationcontext\");\n\t\t\tLocationContextElement locationContextElement = new LocationContextElement();\n\t\t\tPhysicalLocation physicalLocation = new PhysicalLocation();\n\t\t\tGeographicalLocation geographicalLocation = new GeographicalLocation();\n\t\t\tlocationContextElement.setContextid(Integer\n\t\t\t\t\t.parseInt(m_positionContextContextIDText.getText()));\n\t\t\tlocationContextElement.setPhysicalLocation(physicalLocation);\n\t\t\tlocationContextElement\n\t\t\t\t\t.setGeographicalLocation(geographicalLocation);\n\t\t\tphysicalLocation\n\t\t\t\t\t.setCountry(m_positionContextPhysicalLocationCountryText\n\t\t\t\t\t\t\t.getText());\n\t\t\tphysicalLocation\n\t\t\t\t\t.setState(m_positionContextPhysicalLocationStateText\n\t\t\t\t\t\t\t.getText());\n\t\t\tphysicalLocation.setCity(m_positionContextPhysicalLocationCityText\n\t\t\t\t\t.getText());\n\t\t\tphysicalLocation.setPincode(Integer\n\t\t\t\t\t.parseInt(m_positionContextPhysicalLocationPincodeText\n\t\t\t\t\t\t\t.getText()));\n\t\t\tgeographicalLocation\n\t\t\t\t\t.setAltitude(Float\n\t\t\t\t\t\t\t.parseFloat(m_positionContextGeographicalLocationAltitudeText\n\t\t\t\t\t\t\t\t\t.getText()));\n\t\t\tgeographicalLocation\n\t\t\t\t\t.setLatitude(Double\n\t\t\t\t\t\t\t.parseDouble(m_positionContextGeographicalLocationLatitudeText\n\t\t\t\t\t\t\t\t\t.getText()));\n\t\t\tgeographicalLocation\n\t\t\t\t\t.setLongitude(Double\n\t\t\t\t\t\t\t.parseDouble(m_positionContextGeographicalLocationLongitudeText\n\t\t\t\t\t\t\t\t\t.getText()));\n\t\t\tcontextElement.setLocationContextElement(locationContextElement);\n\t\t\tcontextElements.addElement(contextElement);\n\n\t\t\t// get the User context\n\t\t\tcontextElement = new ContextElement();\n\t\t\tcontextElement.setContexttype(\"usercontext\");\n\t\t\tUserContextElement userContextElement = new UserContextElement();\n\t\t\tUserProfile userProfile = new UserProfile();\n\t\t\tHealth health = new Health();\n\t\t\tuserContextElement.setContextid(m_userContextContextIDText\n\t\t\t\t\t.getText());\n\t\t\tuserContextElement.setHealth(health);\n\t\t\tuserContextElement.setUserProfile(userProfile);\n\t\t\tuserProfile\n\t\t\t\t\t.setAge(Integer.parseInt(m_userContextAgeText.getText()));\n\t\t\tuserProfile\n\t\t\t\t\t.setMaritalStatus(m_userContextRadioSingle.isSelected() ? \"Single\"\n\t\t\t\t\t\t\t: \"Married\");\n\t\t\tuserProfile.setSex(m_userContextRadioMale.isSelected() ? \"Male\"\n\t\t\t\t\t: \"Female\");\n\t\t\tuserProfile.setNationality(m_userContextRadioNationalityAustrian\n\t\t\t\t\t.isSelected() ? \"Austrian\" : \"Other\");\n\t\t\thealth.setBloodPressure(m_userContextHealthBloodPressure.getText());\n\t\t\thealth.setHeartRate(m_userContextHealthHeartRate.getText());\n\t\t\thealth.setVoiceTone(m_userContextHealthVoiceTone.getText());\n\t\t\tcontextElement.setUserContextElement(userContextElement);\n\t\t\tcontextElements.addElement(contextElement);\n\n\t\t\t// get the device context\n\t\t\tcontextElement = new ContextElement();\n\t\t\tcontextElement.setContexttype(\"devicecontext\");\n\t\t\tDeviceContextElement deviceContextElement = new DeviceContextElement();\n\t\t\tDevice device = new Device();\n\t\t\tSoftware software = new Software();\n\t\t\tdeviceContextElement.setContextid(Integer\n\t\t\t\t\t.parseInt(m_deviceContextContextIDText.getText()));\n\t\t\tdeviceContextElement.setDevice(device);\n\t\t\tdeviceContextElement.setSoftware(software);\n\t\t\tdevice.setAudio(m_deviceContextAudioRadioYes.isSelected());\n\t\t\tdevice.setBatteryPercentage(m_deviceContextBatteryPercentageSlider\n\t\t\t\t\t.getValue());\n\t\t\tdevice.setMemory(Integer.parseInt(m_deviceContextMemoryText\n\t\t\t\t\t.getText()));\n\t\t\tsoftware.setOperatingsystem(m_deviceContextOperatingSyste.getText());\n\t\t\tsoftware.setVersion(Float.parseFloat(m_deviceOperatingSystemVersion\n\t\t\t\t\t.getText()));\n\t\t\tcontextElement.setDeviceContextElement(deviceContextElement);\n\t\t\tcontextElements.addElement(contextElement);\n\n\t\t\t// get the temperature context\n\t\t\tcontextElement = new ContextElement();\n\t\t\tcontextElement.setContexttype(\"temperaturecontext\");\n\t\t\tTemperatureContextElement temperatureContextElement = new TemperatureContextElement();\n\t\t\tCurrentTemperature currentTemperature = new CurrentTemperature();\n\t\t\tcurrentTemperature.setTemperaturevalue(Integer\n\t\t\t\t\t.parseInt(m_temperatureText.getText()));\n\t\t\ttemperatureContextElement.setCurrentTemperature(currentTemperature);\n\t\t\ttemperatureContextElement.setContextid(501);\n\t\t\tcontextElement\n\t\t\t\t\t.setTemperatureContextElement(temperatureContextElement);\n\t\t\tcontextElements.addElement(contextElement);\n\n\t\t\t// put the context elements in context situation\n\t\t\tm_contextSituation.setContextElements(contextElements);\n\n\t\t\t// communicate the context situation\n\t\t\tm_CASMediator.communicateContextSituation(m_contextSituation);\n\n\t\t\t// communicating context situation every 9 seconds\n\t\t\tSystem.out\n\t\t\t\t\t.println(\"Context Situation will be updated in \"\n\t\t\t\t\t\t\t+ m_transmissionFrequencySecondsText.getText()\n\t\t\t\t\t\t\t+ \" seconds\");\n\n\t\t\tThread.sleep(Integer.parseInt(m_transmissionFrequencySecondsText\n\t\t\t\t\t.getText()) * 1000);\n\t\t}\n\n\t}",
"IServiceContext createService(String childContextName, Class<?>... serviceModules);",
"public abstract void makeContext();",
"@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:49.367 -0500\", hash_original_method = \"B186F7F0BF353B1A746862E337C50A69\", hash_generated_method = \"7727160CCA8A9EE39BE8CC36CB939BC2\")\n \npublic void pushContext ()\n {\n int max = contexts.length;\n\n contexts [contextPos].declsOK = false;\n contextPos++;\n\n // Extend the array if necessary\n if (contextPos >= max) {\n Context newContexts[] = new Context[max*2];\n System.arraycopy(contexts, 0, newContexts, 0, max);\n max *= 2;\n contexts = newContexts;\n }\n\n // Allocate the context if necessary.\n currentContext = contexts[contextPos];\n if (currentContext == null) {\n contexts[contextPos] = currentContext = new Context();\n }\n\n // Set the parent, if any.\n if (contextPos > 0) {\n currentContext.setParent(contexts[contextPos - 1]);\n }\n }",
"private static Context createContext(final Context context)\r\n throws EscidocException, InternalClientException, TransportException, MalformedURLException {\r\n \t\r\n \t// prepare client object\r\n \tAuthentication auth = new Authentication(new URL(Constants.DEFAULT_SERVICE_URL), Constants.USER_NAME_SYSADMIN, Constants.USER_PASSWORD_SYSADMIN);\r\n \tContextHandlerClient chc = new ContextHandlerClient(auth.getServiceAddress());\r\n \tchc.setHandle(auth.getHandle());\r\n\r\n Context createdContext = chc.create(context);\r\n\r\n return createdContext;\r\n }",
"public DeviceContext createContext(String shareName, ConfigElement args)\n throws DeviceContextException {\n\n // Check the arguments\n\n if (args.getChildCount() < 3)\n throw new DeviceContextException(\"Not enough context arguments\");\n\n // Check for the debug enable flags\n \n if ( args.getChild(\"Debug\") != null)\n m_debug = true;\n\n // Create the database device context\n\n DBDeviceContext ctx = new DBDeviceContext(args);\n\n // Return the database device context\n\n return ctx;\n }",
"public static OperationContext createOperationCtx(final Task task,\n final SpanClock spanClock,\n final ZipkinContext zipkinContext) {\n\n return API.Match(task.getComponent().getLocalComponent()).of(\n Case($(Predicates.isNull()), () -> {\n throw new RuntimeException(\"local component can not be null\");\n }),\n Case($(\"http\"), HttpOperationContext.create(task, spanClock, zipkinContext)),\n Case($(\"jdbc\"), JdbcOperationContext.create(task, spanClock)),\n Case($(), () -> {\n throw new RuntimeException(\"local component does not exist or not implemented yet\");\n }));\n }",
"public interface TransactionContext extends Serializable {\n\n\n class Factory {\n public static TransactionContext getInstance() {\n TransactionContext instance = TransactionContextImpl.getInstance();\n if (instance == null) {\n instance = TransactionContextImpl.newInstance();\n }\n return instance;\n }\n }\n\n void setContextData(String key, Object value);\n\n <T> T getContextData(String key, Class<T> valueType);\n\n EncodeProtocol getProtocol();\n\n String getServiceName();\n\n String getMethod();\n\n String getVersion();\n\n /** 获取option整个值(int型) */\n int getOptions();\n\n /** 判断option中二进制第index位是否为1 */\n boolean getOption(int index);\n\n int getSequence();\n\n String getCallerId();\n\n long getSessionTid();\n\n long getCallerTid();\n\n long getCalleeTid();\n\n @Deprecated\n long getUid();\n\n long getStartTime();\n\n @Deprecated\n int getConcurrentCount();\n\n String getUip();\n\n String getForwardedFor();\n\n String getProxyIP();\n\n InetAddress getCallerIP();\n\n int getCallerPort();\n\n Map<String, String> getCookie();\n\n TransactionContext setCookie(Map<String, String> cookie);\n\n TransactionContext setCookie(String key, String value);\n\n String getUserSign();\n\n TransactionContext setTimeout(long timeout);\n\n long getTimeout();\n\n String getReturnCode();\n\n void setReturnCode(String returnCode);\n\n String getReturnMessage();\n\n void setReturnMessage(String returnMessage);\n\n String getErrorGroup();\n\n void setErrorGroup(String errorGroup);\n\n String getErrorLevel();\n\n String getErrorLocation();\n\n boolean isCircuitBroken();\n\n void setCircuitBroken(boolean circuitBroken);\n\n /** 是否重试 */\n boolean isRetry();\n\n void setRetry(boolean retry);\n\n @Deprecated\n long getReceivedTime();\n\n @Deprecated\n int getCalleeTime1();\n\n @Deprecated\n int getCalleeTime2();\n\n @Deprecated\n int getSendLength();\n\n @Deprecated\n int getRecvLength();\n\n @Deprecated\n Long getMscTraceId();\n\n @Deprecated\n Long getMscSpanId();\n\n String getRemoteAddress();\n\n String getLocalAddress();\n\n String getDomain();\n}",
"private static Context prepareContext() {\r\n\r\n Context context = new Context();\r\n\r\n ContextProperties properties = new ContextProperties();\r\n\r\n // Context requires a name\r\n properties.setName(\"Example_Package_Context\");\r\n\r\n // description is nice\r\n properties.setDescription(\"Example package Context.\");\r\n\r\n // define the type\r\n properties.setType(\"ExampleType\");\r\n\r\n /*\r\n * Organizational Unit(s) is/are required\r\n */\r\n OrganizationalUnitRefs ous = new OrganizationalUnitRefs();\r\n\r\n // add the Organizational Unit with objid escidoc:ex3 (the ou of the\r\n // example eSciDoc representation package) to the list of\r\n // organizational Units\r\n ous.add(new OrganizationalUnitRef(\"escidoc:ex3\"));\r\n properties.setOrganizationalUnitRefs(ous);\r\n\r\n context.setProperties(properties);\r\n\r\n return context;\r\n }",
"private DDSpanContext buildSpanContext() {\n final DDId traceId;\n final DDId spanId = idGenerationStrategy.generate();\n final DDId parentSpanId;\n final Map<String, String> baggage;\n final PendingTrace parentTrace;\n final int samplingPriority;\n final String origin;\n final Map<String, String> coreTags;\n final Map<String, ?> rootSpanTags;\n\n final DDSpanContext context;\n final Object requestContextData;\n\n // FIXME [API] parentContext should be an interface implemented by ExtractedContext,\n // TagContext, DDSpanContext, AgentSpan.Context\n Object parentContext = parent;\n if (parentContext == null && !ignoreScope) {\n // use the Scope as parent unless overridden or ignored.\n final AgentSpan activeSpan = scopeManager.activeSpan();\n if (activeSpan != null) {\n parentContext = activeSpan.context();\n }\n }\n\n String parentServiceName = null;\n\n // Propagate internal trace.\n // Note: if we are not in the context of distributed tracing and we are starting the first\n // root span, parentContext will be null at this point.\n if (parentContext instanceof DDSpanContext) {\n final DDSpanContext ddsc = (DDSpanContext) parentContext;\n traceId = ddsc.getTraceId();\n parentSpanId = ddsc.getSpanId();\n baggage = ddsc.getBaggageItems();\n parentTrace = ddsc.getTrace();\n samplingPriority = PrioritySampling.UNSET;\n origin = null;\n coreTags = null;\n rootSpanTags = null;\n parentServiceName = ddsc.getServiceName();\n if (serviceName == null) {\n serviceName = parentServiceName;\n }\n RequestContext<Object> requestContext = ddsc.getRequestContext();\n requestContextData = null == requestContext ? null : requestContext.getData();\n } else {\n if (parentContext instanceof ExtractedContext) {\n // Propagate external trace\n final ExtractedContext extractedContext = (ExtractedContext) parentContext;\n traceId = extractedContext.getTraceId();\n parentSpanId = extractedContext.getSpanId();\n samplingPriority = extractedContext.getSamplingPriority();\n baggage = extractedContext.getBaggage();\n } else {\n // Start a new trace\n traceId = IdGenerationStrategy.RANDOM.generate();\n parentSpanId = DDId.ZERO;\n samplingPriority = PrioritySampling.UNSET;\n baggage = null;\n }\n\n // Get header tags and set origin whether propagating or not.\n if (parentContext instanceof TagContext) {\n TagContext tc = (TagContext) parentContext;\n coreTags = tc.getTags();\n origin = tc.getOrigin();\n requestContextData = tc.getRequestContextData();\n } else {\n coreTags = null;\n origin = null;\n requestContextData = null;\n }\n\n rootSpanTags = localRootSpanTags;\n\n parentTrace = createTrace(traceId);\n }\n\n if (serviceName == null) {\n serviceName = CoreTracer.this.serviceName;\n }\n\n final CharSequence operationName =\n this.operationName != null ? this.operationName : resourceName;\n\n final int tagsSize =\n (null == tags ? 0 : tags.size())\n + defaultSpanTags.size()\n + (null == coreTags ? 0 : coreTags.size())\n + (null == rootSpanTags ? 0 : rootSpanTags.size());\n // some attributes are inherited from the parent\n context =\n new DDSpanContext(\n traceId,\n spanId,\n parentSpanId,\n parentServiceName,\n serviceName,\n operationName,\n resourceName,\n samplingPriority,\n origin,\n baggage,\n errorFlag,\n spanType,\n tagsSize,\n parentTrace,\n requestContextData);\n\n // By setting the tags on the context we apply decorators to any tags that have been set via\n // the builder. This is the order that the tags were added previously, but maybe the `tags`\n // set in the builder should come last, so that they override other tags.\n context.setAllTags(defaultSpanTags);\n context.setAllTags(tags);\n context.setAllTags(coreTags);\n context.setAllTags(rootSpanTags);\n return context;\n }",
"protected static long getContextTimestampSafe() \n\t{ \t\n\t\tlong timestamp = System.currentTimeMillis();\n\t\t\n\t\tboolean repeat = true;\n\t\twhile (repeat)\n\t\t{\n\t \tlong lastUsed = lastTimestampUsed.get();\n\t \tif (timestamp>lastUsed) {\n\t \t\trepeat = !lastTimestampUsed.compareAndSet(lastUsed, timestamp);\n\t \t} else {\n\t \t\ttimestamp = lastUsed+1;\n\t \t}\n\t\t}\n\t\t\n\t\treturn timestamp;\n\t}",
"public static Context createContext(String username, long timeout) {\n Context context = Context.getDefault();\n Vtrpc.CallerID callerID = null;\n if (null != username) {\n callerID = Vtrpc.CallerID.newBuilder().setPrincipal(username).build();\n }\n\n if (null != callerID) {\n context = context.withCallerId(callerID);\n }\n if (timeout > 0) {\n context = context.withDeadlineAfter(Duration.millis(timeout));\n }\n\n return context;\n }",
"Context createContext( Properties properties ) throws NamingException;",
"@Override\n\tpublic void contextCreated(String context, boolean toolPlacement) {\n\t}",
"private SSLContext createSSLContext(final SSLContextService service)\n throws KeyStoreException, IOException, NoSuchAlgorithmException, CertificateException, KeyManagementException, UnrecoverableKeyException {\n\n final SSLContextBuilder sslContextBuilder = new SSLContextBuilder();\n\n if (StringUtils.isNotBlank(service.getTrustStoreFile())) {\n final KeyStore truststore = KeyStore.getInstance(service.getTrustStoreType());\n try (final InputStream in = new FileInputStream(new File(service.getTrustStoreFile()))) {\n truststore.load(in, service.getTrustStorePassword().toCharArray());\n }\n sslContextBuilder.loadTrustMaterial(truststore, new TrustSelfSignedStrategy());\n }\n\n if (StringUtils.isNotBlank(service.getKeyStoreFile())) {\n final KeyStore keystore = KeyStore.getInstance(service.getKeyStoreType());\n try (final InputStream in = new FileInputStream(new File(service.getKeyStoreFile()))) {\n keystore.load(in, service.getKeyStorePassword().toCharArray());\n }\n sslContextBuilder.loadKeyMaterial(keystore, service.getKeyStorePassword().toCharArray());\n }\n\n sslContextBuilder.useProtocol(service.getSslAlgorithm());\n\n return sslContextBuilder.build();\n }",
"IServiceContext createService(Class<?>... serviceModules);",
"Context context();",
"Context context();",
"public SpreadMessage createMessage(String context, Serializable serializable) throws SpreadException {\n SpreadMessage message = super.createMessage();\n if(message==null) message = new SpreadMessage();\n message.digest((Serializable) context);\n message.digest(serializable);\n return message;\n }",
"com.google.protobuf.ByteString getContext();",
"public void setServiceContext(org.apache.axis2.context.xsd.ServiceContext param){\n localServiceContextTracker = true;\n \n this.localServiceContext=param;\n \n\n }",
"@Override\n\tpublic ServerContext createContext(TProtocol arg0, TProtocol arg1) {\n\t\treturn null;\n\t}",
"private Context genereateContext() {\n Context newContext = new Context();\n String path = \"\"; // NOI18N\n newContext.setAttributeValue(ATTR_PATH, path);\n\n // if tomcat 5.0.x generate a logger\n if (tomcatVersion == TomcatVersion.TOMCAT_50) {\n // generate default logger\n newContext.setLogger(true);\n newContext.setLoggerClassName(\"org.apache.catalina.logger.FileLogger\"); // NOI18N\n newContext.setLoggerPrefix(computeLoggerPrefix(path));\n newContext.setLoggerSuffix(\".log\"); // NOI18N\n newContext.setLoggerTimestamp(\"true\"); // NOI18N\n } else if (tomcatVersion == TomcatVersion.TOMCAT_55\n || tomcatVersion == TomcatVersion.TOMCAT_60\n || tomcatVersion == TomcatVersion.TOMCAT_70){\n // tomcat 5.5, 6.0 and 7.0\n newContext.setAntiJARLocking(\"true\"); // NOI18N\n }\n return newContext;\n }",
"@Override\n\tpublic String buildRequest(String timestamp) {\n\t\tMap<String, String> sParaTemp = new LinkedHashMap<String, String>();\n\t\tsParaTemp.put(\"userid\",userid);\n\t\tsParaTemp.put(\"serverid\",serverid+\"\");\n\t\tsParaTemp.put(\"ptime\",timestamp);\n\t\tsParaTemp.put(\"isadult\",isAdult+\"\");\n\t\tString prestr = MapToParam.createRequestParams(sParaTemp,\"&\"+KEY);\n\t\treturn LOGIN_PATH+\"&\"+prestr;\n\t}",
"public static ShadowolfContext createNewContext(String configFile) {\r\n\t\tShadowolfContext context = new ShadowolfContext();\r\n\t\t\r\n\t\ttry {\r\n\t\t\tcontext.configuration = new PropertiesConfiguration(configFile);\r\n\t\t} catch (ConfigurationException e) {\r\n\t\t\tExceptions.log(e);\r\n\t\t\tthrow new RuntimeException(e);\r\n\t\t}\r\n\t\t\r\n\t\t//initialize ServerContext\r\n\t\ttry {\r\n\t\t\tServerContext serverContext = new ServerContext();\r\n\t\t\tInetAddress address = InetAddress.getByName(context.configuration.getString(\"server.listen.address\", \"127.0.0.1\"));\r\n\t\t\tint port = context.configuration.getInt(\"server.listen.port\", 80);\r\n\t\t\tserverContext.setJettyServer(new JettyServer(address, port));\r\n\t\t\t\r\n\t\t\tint corePoolSize = context.configuration.getInt(\"server.workers.min\", 4);\r\n\t\t\tint maximumPoolSize = context.configuration.getInt(\"server.workers.max\", 16);\r\n\t\t\tint keepAliveTime = context.configuration.getInt(\"server.workers.idle\", 300);\r\n\t\t\tint queueLength = context.configuration.getInt(\"server.workers.queueSize\", 25_000);\r\n\t\t\tBlockingQueue<Runnable> workQueue = new LinkedBlockingQueue<>(queueLength);\r\n\t\t\tTimeUnit unit = TimeUnit.SECONDS;\r\n\r\n\t\t\tExecutorService es = new ThreadPoolExecutor(corePoolSize, maximumPoolSize, keepAliveTime, unit, workQueue);\r\n\t\t\tserverContext.setHttpWorkerPool(es);\r\n\t\t\tserverContext.getJettyServer().setExecutor(es);\r\n\t\t\t\r\n\t\t\tString conf = \"conf/serverAccess.xml\";\r\n\t\t\tJAXBContext jaxb = JAXBContext.newInstance(AccessList.class);\r\n\t\t\tUnmarshaller um = jaxb.createUnmarshaller();\r\n\t\t\tserverContext.setServerAccessList((AccessList) um.unmarshal(new File(conf)));\r\n\t\t\t\r\n\t\t\tcontext.serverContext = serverContext;\r\n\t\t} catch (UnknownHostException | ServletException | JAXBException e) {\r\n\t\t\tExceptions.log(e);\r\n\t\t\tthrow new RuntimeException(e);\r\n\t\t}\r\n\t\t\r\n\t\t//initialize PluginContext \r\n\t\t{\r\n\t\t\tPluginContext pluginContext = new PluginContext();\r\n\t\t\t\r\n\t\t\tint corePoolSize = context.configuration.getInt(\"plugins.async.workers.min\", 4);\r\n\t\t\tint maximumPoolSize = context.configuration.getInt(\"plugins.async.workers.max\", 16);\r\n\t\t\tint keepAliveTime = context.configuration.getInt(\"plugins.async.workers.idle\", 300);\r\n\t\t\tint queueLength = context.configuration.getInt(\"plugins.async.workers.queueSize\", 25_000);\r\n\t\t\tBlockingQueue<Runnable> workQueue = new LinkedBlockingQueue<>(queueLength);\r\n\t\t\tTimeUnit unit = TimeUnit.SECONDS;\r\n\t\t\t\r\n\t\t\tExecutorService es = new ThreadPoolExecutor(corePoolSize, maximumPoolSize, keepAliveTime, unit, workQueue);\r\n\r\n\t\t\tPluginLoader loader = new PluginLoader();\r\n\t\t\tloader.setContext(context);\r\n\t\t\tloader.loadAllPluginsInDir();\r\n\t\t\t\r\n\t\t\tPluginEngine engine = new PluginEngine(es);\r\n\t\t\tfor(Plugin p : loader.getPlugins().values()) {\r\n\t\t\t\tengine.addPlugin(p);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tpluginContext.setAsyncPluginWorkerPool(es);\r\n\t\t\tpluginContext.setPluginEngine(engine);\r\n\t\t\tpluginContext.setPluginLoader(loader);\r\n\t\t\tcontext.pluginContext = pluginContext;\r\n\t\t}\r\n\t\t\r\n\t\t//initialize BittorrentContext\r\n\t\t{\r\n\t\t\tBittorrentContext bittorrentContext = new BittorrentContext();\r\n\t\t\r\n\t\t\tint peerExpiry = context.getConfiguration().getInt(\"protocol.Peerlist.peerExpiry\", 2400);\r\n\t\t\tint httpWorkers = context.getConfiguration().getInt(\"server.workers.max\", 16);\r\n\t\t\t// 1/8th of all workers accessing the same peerlist seems unlikely\r\n\t\t\t// and a concurrency level of six seems sane... these values might need to be tuned later\r\n\t\t\tint concurrencyLevel = (httpWorkers/8) > 6 ? 6 : httpWorkers/8; \r\n\t\t\t\r\n\t\t\t//the largest majority of torrents that will ever be tracked will have\r\n\t\t\t//less than 2 peers, so reducing the default size means that we'll have\r\n\t\t\t//slightly less memory overhead - in exchange for a bunch of resize ops\r\n\t\t\tbittorrentContext.setPeerlistMapMaker(\r\n\t\t\t\tnew MapMaker().\r\n\t\t\t\texpireAfterWrite(peerExpiry, TimeUnit.SECONDS).\r\n\t\t\t\tconcurrencyLevel(concurrencyLevel).\r\n\t\t\t\tinitialCapacity(2)\r\n\t\t\t);\r\n\t\t\t\r\n\t\t\tConcurrentMap<Infohash, Peerlist> plists = \r\n\t\t\t\t\tnew MapMaker().\r\n\t\t\t\t\texpireAfterAccess(peerExpiry, TimeUnit.SECONDS).\r\n\t\t\t\t\tconcurrencyLevel(concurrencyLevel).\r\n\t\t\t\t\tmakeMap();\r\n\t\t\tbittorrentContext.setPeerlists(plists);\r\n\t\t\t\r\n\t\t\tcontext.bittorrentContext = bittorrentContext;\r\n\t\t}\r\n\t\t\r\n\t\treturn context;\r\n\t}",
"CTX_Context getContext();",
"@ProviderType\npublic interface ComponentContext {\n\t/**\n\t * Returns the component properties for this Component Context.\n\t * \n\t * @return The properties for this Component Context. The Dictionary is read\n\t * only and cannot be modified.\n\t */\n\tpublic Dictionary<String, Object> getProperties();\n\n\t/**\n\t * Returns the service object for the specified reference name.\n\t * <p>\n\t * If the cardinality of the reference is {@code 0..n} or {@code 1..n} and\n\t * multiple services are bound to the reference, the service whose\n\t * {@code ServiceReference} is first in the ranking order is returned. See\n\t * {@code ServiceReference.compareTo(Object)}.\n\t * \n\t * @param name The name of a reference as specified in a {@code reference}\n\t * element in this component's description.\n\t * @return A service object for the referenced service or {@code null} if\n\t * the reference cardinality is {@code 0..1} or {@code 0..n} and no\n\t * bound service is available.\n\t * @throws ComponentException If Service Component Runtime catches an\n\t * exception while activating the bound service.\n\t */\n\tpublic <S> S locateService(String name);\n\n\t/**\n\t * Returns the service object for the specified reference name and\n\t * {@code ServiceReference}.\n\t * \n\t * @param <S> Type of Service.\n\t * @param name The name of a reference as specified in a {@code reference}\n\t * element in this component's description.\n\t * @param reference The {@code ServiceReference} to a bound service. This\n\t * must be a {@code ServiceReference} provided to the component via\n\t * the bind or unbind method for the specified reference name.\n\t * @return A service object for the referenced service or {@code null} if\n\t * the specified {@code ServiceReference} is not a bound service for\n\t * the specified reference name.\n\t * @throws ComponentException If Service Component Runtime catches an\n\t * exception while activating the bound service.\n\t */\n\tpublic <S> S locateService(String name, ServiceReference<S> reference);\n\n\t/**\n\t * Returns the service objects for the specified reference name.\n\t * \n\t * @param name The name of a reference as specified in a {@code reference}\n\t * element in this component's description.\n\t * @return An array of service objects for the referenced service or\n\t * {@code null} if the reference cardinality is {@code 0..1} or\n\t * {@code 0..n} and no bound service is available. If the reference\n\t * cardinality is {@code 0..1} or {@code 1..1} and a bound service\n\t * is available, the array will have exactly one element. There is\n\t * no guarantee that the service objects in the array will be in any\n\t * specific order.\n\t * @throws ComponentException If Service Component Runtime catches an\n\t * exception while activating a bound service.\n\t */\n\tpublic Object[] locateServices(String name);\n\n\t/**\n\t * Returns the {@code BundleContext} of the bundle which declares this\n\t * component.\n\t * \n\t * @return The {@code BundleContext} of the bundle declares this component.\n\t */\n\tpublic BundleContext getBundleContext();\n\n\t/**\n\t * If the component instance is registered as a service using the\n\t * {@code servicescope=\"bundle\"} or {@code servicescope=\"prototype\"}\n\t * attribute, then this method returns the bundle using the service provided\n\t * by the component instance.\n\t * <p>\n\t * This method will return {@code null} if:\n\t * <ul>\n\t * <li>The component instance is not a service, then no bundle can be using\n\t * it as a service.</li>\n\t * <li>The component instance is a service but did not specify the\n\t * {@code servicescope=\"bundle\"} or {@code servicescope=\"prototype\"}\n\t * attribute, then all bundles using the service provided by the component\n\t * instance will share the same component instance.</li>\n\t * <li>The service provided by the component instance is not currently being\n\t * used by any bundle.</li>\n\t * </ul>\n\t * \n\t * @return The bundle using the component instance as a service or\n\t * {@code null}.\n\t */\n\tpublic Bundle getUsingBundle();\n\n\t/**\n\t * Returns the Component Instance object for the component instance\n\t * associated with this Component Context.\n\t * \n\t * @return The Component Instance object for the component instance.\n\t */\n\tpublic <S> ComponentInstance<S> getComponentInstance();\n\n\t/**\n\t * Enables the specified component name. The specified component name must\n\t * be in the same bundle as this component.\n\t * \n\t * <p>\n\t * This method must return after changing the enabled state of the specified\n\t * component name. Any actions that result from this, such as activating or\n\t * deactivating a component configuration, must occur asynchronously to this\n\t * method call.\n\t * \n\t * @param name The name of a component or {@code null} to indicate all\n\t * components in the bundle.\n\t */\n\tpublic void enableComponent(String name);\n\n\t/**\n\t * Disables the specified component name. The specified component name must\n\t * be in the same bundle as this component.\n\t * \n\t * <p>\n\t * This method must return after changing the enabled state of the specified\n\t * component name. Any actions that result from this, such as activating or\n\t * deactivating a component configuration, must occur asynchronously to this\n\t * method call.\n\t * \n\t * @param name The name of a component.\n\t */\n\tpublic void disableComponent(String name);\n\n\t/**\n\t * If the component instance is registered as a service using the\n\t * {@code service} element, then this method returns the service reference\n\t * of the service provided by this component instance.\n\t * <p>\n\t * This method will return {@code null} if the component instance is not\n\t * registered as a service.\n\t * \n\t * @return The {@code ServiceReference} object for the component instance or\n\t * {@code null} if the component instance is not registered as a\n\t * service.\n\t */\n\tpublic ServiceReference<?> getServiceReference();\n}",
"EventChannel create(Context context);",
"public MyServiceDataSingleton(Context context) {\r\n myContext = context;\r\n }",
"@Override\n\tpublic Object compute(IEclipseContext context, String contextKey) {\n\t\tTaskService taskService = \n\t\t\t\tContextInjectionFactory.make(TransientTaskServiceImpl.class, context);\n\t\t\n\t\t// add instance of TaskService to context so that\n//\t\t// test next caller gets the same instance\n//\t\tMApplication app = context.get(MApplication.class);\n//\t\tIEclipseContext appCtx = app.getContext();\n//\t\tappCtx.set(TaskService.class, taskService);\n\t\t\n\t\t// in case the TaskService is also needed in the OSGi layer, e.g.\n\t\t// by other OSGi services, register the instance also in the OSGi service layer\n\t\tBundle bundle = FrameworkUtil.getBundle(this.getClass());\n\t\tBundleContext bundleContext = bundle.getBundleContext();\n\t\tbundleContext.registerService(TaskService.class, taskService, null);\n\n\t\t// return model for current invocation \n\t\t// next invocation uses object from application context\n\t\treturn taskService;\n\t}",
"PlatformContext createPlatformContext()\n {\n return new PlatformContextImpl();\n }",
"ContextVariable createContextVariable();",
"public CommunityBuilder timestamp(Date timestamp) {\n return this.timestamp(timestamp.getTime() / MILLISECONDS_IN_SECOND);\n }",
"SourceBuilder createService();",
"public String tooltip()\n\t{\n\t if (contextURI==null)\n\t return \"(no context specified)\";\n\t \n\t if (contextURI.equals(Vocabulary.SYSTEM_CONTEXT.METACONTEXT))\n\t return \"MetaContext (stores data about contexts)\";\n\t \n\t if(contextURI.equals(Vocabulary.SYSTEM_CONTEXT.VOIDCONTEXT))\n\t \treturn \"VoID Context (stores statistics about contexts)\";\n\t \n\t if (type!=null && timestamp!=null)\n\t {\n\t GregorianCalendar c = new GregorianCalendar();\n\t c.setTimeInMillis(timestamp);\n\t \n\t String date = ReadWriteDataManagerImpl.dateToISOliteral(c.getTime()); \n\t \n\t if (!StringUtil.isNullOrEmpty(date))\n\t date = ValueResolver.resolveSysDate(date);\n\t \n\t String ret = \"Created by \" + type;\n\t if (type.equals(ContextType.USER))\n\t ret += \" '\"\n\t + source.getLocalName()\n\t + \"'\";\n\t else\n\t {\n\t String displaySource = null;\n\t if(source!=null)\n\t {\n\t displaySource = EndpointImpl.api().getNamespaceService().getAbbreviatedURI(source);\n\t if (StringUtil.isNullOrEmpty(displaySource))\n\t displaySource = source.stringValue(); // fallback solution: full URI\n\t }\n\t String displayGroup = null;\n\t if (group!=null)\n\t {\n\t displayGroup = EndpointImpl.api().getNamespaceService().getAbbreviatedURI(group);\n\t if (StringUtil.isNullOrEmpty(displayGroup))\n\t displayGroup = group.stringValue(); // fallback solution: full URI\n\t }\n\t \n\t ret += \" (\";\n\t ret += source==null ? \"\" : \"source='\" + displaySource + \"'\";\n\t ret += source!=null && group!=null ? \"/\" : \"\";\n\t ret += group==null ? \"\" : \"group='\" + displayGroup + \"'\";\n\t ret += \")\";\n\t }\n\t ret += \" on \" + date;\n\t if (label!=null)\n\t ret += \" (\" + label.toString() + \")\";\n\t if (state!=null && !state.equals(ContextState.PUBLISHED))\n\t ret += \" (\" + state + \")\"; \n\t return ret;\n\t }\n\t else\n\t return contextURI.stringValue();\n\t}",
"public static MetadataContext get() {\n if (null == METADATA_CONTEXT.get()) {\n MetadataContext metadataContext = new MetadataContext();\n if (metadataLocalProperties == null) {\n metadataLocalProperties = (MetadataLocalProperties) ApplicationContextAwareUtils\n .getApplicationContext().getBean(\"metadataLocalProperties\");\n }\n\n // init custom metadata and load local metadata\n Map<String, String> transitiveMetadataMap = getTransitiveMetadataMap(metadataLocalProperties.getContent(),\n metadataLocalProperties.getTransitive());\n metadataContext.putAllTransitiveCustomMetadata(transitiveMetadataMap);\n\n // init system metadata\n metadataContext.putSystemMetadata(MetadataConstant.SystemMetadataKey.LOCAL_NAMESPACE,\n LOCAL_NAMESPACE);\n metadataContext.putSystemMetadata(MetadataConstant.SystemMetadataKey.LOCAL_SERVICE,\n LOCAL_SERVICE);\n\n METADATA_CONTEXT.set(metadataContext);\n }\n return METADATA_CONTEXT.get();\n }",
"public String generateFromContext(Map<String, Object> mailContext, String template);",
"public FREContext createContext(String extId) {\n\t\tDLog(\"ANEAnalyticsExtension createContext extId: \" + extId);\n\t\t\n\t\tsContext = new ANEMyGamezExtensionContext();\n\t\treturn sContext;\n\t}",
"Context getContext();",
"Source createDatasourceZ3950Timestamp(Source ds, Provider prov) throws RepoxException;",
"String getContextId();",
"public com.google.protobuf.ByteString getContext() {\n return context_;\n }",
"com.google.protobuf.ByteString\n getContextBytes();",
"public void doBuildTemplate( RunData data, Context context )\n {\n try\n {\n\t\t\tParameterParser pp=data.getParameters();\n String perm=pp.getString(\"perm\");\n context.put(\"perm\",perm);\n String DB_subject=pp.getString(\"DB_subject\",\"\");\n String Username=data.getUser().getName();\n context.put(\"UserName\",Username);\n\t\t\tcontext.put(\"tdcolor\",pp.getString(\"count\",\"\"));\n /**\n * Retrive the UserId from Turbine_User table\n * @see UserUtil\n */\n\n int user_id=UserUtil.getUID(Username);\n String group=(String)data.getUser().getTemp(\"course_id\");\n context.put(\"course_id\",group);\n int group_id=GroupUtil.getGID(group);\n String gid=Integer.toString(group_id);\n String uid=Integer.toString(user_id);\n context.put(\"group\",gid);\n context.put(\"userid\",uid);\n\n\n /**\n * Select all the messagesid according to the ReceiverId\n * from the Db_Receive table\n */\n\n\n LinkedList li1=new LinkedList();\n LinkedList Reli2=new LinkedList();\n LinkedList temp=new LinkedList();\n LinkedList li=new LinkedList();\n LinkedList li3=new LinkedList();\n\n\n\n String mode=data.getParameters().getString(\"mode\");\n context.put(\"mode\",mode);\n\t\t\tCriteria crit=new Criteria();\n List v=null;\n\n\n if(mode.equals(\"All\"))\n {\n crit.add(DbReceivePeer.RECEIVER_ID,user_id);\n crit.add(DbReceivePeer.GROUP_ID,group_id);\n v=DbReceivePeer.doSelect(crit);\n }\n else\n {\n int readflg=0;\n crit.add(DbReceivePeer.RECEIVER_ID,user_id);\n crit.add(DbReceivePeer.GROUP_ID,group_id);\n crit.add(DbReceivePeer.READ_FLAG,readflg);\n v=DbReceivePeer.doSelect(crit);\n }\n\n\n /**\n * Below code just converts the List 'v' into Vector 'entry'\n */\n\n\n String storestring[]=new String[10000];\n Object new1=new Object();\n int k=0;\n for(int n=0;n<v.size();n++)\n {\n DbReceive element=(DbReceive)(v.get(n));\n String m_id=Integer.toString(element.getMsgId());\n li3.add(m_id);\n new1=li3.get(n);\n storestring[n]=(String)new1;\n k++;\n }\n for(int n=0;n<k;n++)\n\t\t\t{\n for(int n1=n+1;n1<k;n1++)\n {\n if(storestring[n1].compareTo(storestring[n])<0)\n {\n String t=storestring[n];\n storestring[n]=storestring[n1];\n storestring[n1]=t;\n }\n }\n }\n for(int n=0;n<v.size();n++)\n {\n\n Criteria crit1=new Criteria();\n crit1.add(DbSendPeer.MSG_ID,storestring[n]);\n List u=DbSendPeer.doSelect(crit1);\n for(int n1=0;n1<u.size();n1++)\n { // for2\n DbSend element1=(DbSend)(u.get(n1));\n String msgid=Integer.toString(element1.getReplyId());\n Reli2.add(msgid);\n li1.add(storestring[n]);\n } // for\n }\n\n int space=0;\n Vector spacevector=new Vector();\n Object tem=new Object();\n int id=0;\n while(Reli2.size()!=0)\n {\n int i=0;\n tem=li1.get(i);\n li.add(tem);\n temp.add(tem);\n Reli2.remove(i);\n li1.remove(i);\n\t\t\t\tspacevector.add(space);\n while(temp.size()!=0)\n {\n if(Reli2.contains(tem))\n { id=Reli2.indexOf(tem);\n tem=li1.get(id);\n li.add(tem);\n temp.add(tem);\n Reli2.remove(id);\n li1.remove(id);\n space=space+1;\n spacevector.add(space);\n }\n else\n {\n if(space!=0)\n space=space-1;\n id=temp.indexOf(tem);\n temp.remove(id);\n if(temp.size()!=0)\n {\n id=id-1;\n tem=temp.get(id);\n }\n }\n } //while\n } // while\n\t\t\t\n context.put(\"spacevector\",spacevector);\n Vector entry=new Vector();\n for(int n2=0;n2<li.size();n2++)\n {\n Object val1=new Object();\n val1=li.get(n2);\n String str3=(String)val1;\n\t\t\t\t//Vector entry=new Vector();\n \tfor(int count=0;count<v.size();count++)\n \t{//for1\n DbReceive element=(DbReceive)(v.get(count));\n String m_id=Integer.toString(element.getMsgId());\n if(str3.equals(m_id))\n {\n int msg_id=Integer.parseInt(m_id);\n int read_flag=(element.getReadFlag());\n String read_flag1=Integer.toString(read_flag);\n\n /**\n * Select all the messages according to the MessageId\n * from the Db_Send table\n */\n\n Criteria crit1=new Criteria();\n crit1.add(DbSendPeer.MSG_ID,msg_id);\n List u=DbSendPeer.doSelect(crit1);\n for(int count1=0;count1<u.size();count1++)\n {//for2\n\n DbSend element1=(DbSend)(u.get(count1));\n String msgid=Integer.toString(element1.getMsgId());\n String message_subject=(element1.getMsgSubject());\n int sender_userid=(element1.getUserId());\n String permit=Integer.toString(element1.getPermission());\n String sender_name=UserUtil.getLoginName(sender_userid);\n context.put(\"msgid\",msgid);\n context.put(\"contentTopic\",message_subject);\n String sender=UserUtil.getLoginName(sender_userid);\n context.put(\"sender\",sender);\n Date dat=(element1.getPostTime());\n String posttime=dat.toString();\n int ExDay=(element1.getExpiry());\n context.put(\"ExDay\",ExDay);\n String exDate= null;\n if(ExDay == -1)\n\t\t\t\t\t\t{\n exDate=\"infinte\";\n }\n else\n {\n exDate = ExpiryUtil.getExpired(posttime, ExDay);\n }\n\n DbDetail dbDetail= new DbDetail();\n dbDetail.setSender(sender_name);\n dbDetail.setPDate(posttime);\n dbDetail.setMSubject(message_subject);\n dbDetail.setStatus(read_flag1);\n dbDetail.setMsgID(m_id);\n dbDetail.setPermission(permit);\n dbDetail.setExpiryDate(exDate);\n entry.addElement(dbDetail);\n }\n }//for2\n }//for1\n }\n String newgroup=(String)data.getUser().getTemp(\"course_id\");\n String cname=CourseUtil.getCourseName(newgroup);\n AccessControlList acl=data.getACL();\n if(acl.hasRole(\"instructor\",newgroup))\n {\n context.put(\"isInstructor\",\"true\");\n }\n context.put(\"user_role\",data.getUser().getTemp(\"role\"));\n //Adds the information to the context\n if(entry.size()!=0)\n {\n context.put(\"status\",\"Noblank\");\n context.put(\"entry\",entry);\n }\n else\n {\n context.put(\"status\",\"blank\");\n\t\t\t\tString LangFile=(String)data.getUser().getTemp(\"LangFile\");\n String mssg=MultilingualUtil.ConvertedString(\"db-Contmsg\",LangFile);\n data.setMessage(mssg);\n }\n context.put(\"username\",Username);\n context.put(\"cname\",(String)data.getUser().getTemp(\"course_name\"));\n context.put(\"workgroup\",group);\n }//try\n catch(Exception e){data.setMessage(\"Exception screens [Dis_Board,DBContent.java]\" + e);}\n }",
"private CdsHooksPreparedRequest prepareRequest(IGenericClient fhirClient, Service service, CdsHooksContext context) {\n return new CdsHooksPreparedRequest(fhirClient, service, context);\n }",
"public void getContext(XDI3Segment contextNodeXri, GetOperation operation, MessageResult messageResult, ExecutionContext executionContext) throws Xdi2MessagingException {\r\n\r\n\t}",
"public com.google.protobuf.ByteString getContext() {\n return context_;\n }",
"public abstract Context context();",
"public static NamingScheduledTaskContext createNamingScheduledTaskContext(){\r\n\t\treturn new NamingScheduledTaskContext();\r\n\t}",
"public IExecution createExecution(Context context,\n Map<String, Object> parameters) throws LawException {\n \tEvent event = new Event(getId(), Masks.CLOCK_ACTIVATION, getId());\n \tevent.setContent(parameters);\n context.fire(event);\n \n // return the ClockExecution\n return new ClockExecution(context, timeout, type,this,parameters);\n }",
"@NotNull\n SNode getContextNode(TemplateExecutionEnvironment environment, TemplateContext context) throws GenerationFailureException;",
"public DataCaptureContextProvider() {\n /*\n * Create DataCaptureContext using your license key.\n */\n dataCaptureContext = DataCaptureContext.forLicenseKey(SCANDIT_LICENSE_KEY);\n }",
"@POST\n @Path(\"/{id}/generation/{sourceKey}\")\n @Produces(MediaType.APPLICATION_JSON)\n @Consumes(MediaType.APPLICATION_JSON)\n public JobExecutionResource generate(@PathParam(\"id\") final Long id, @PathParam(\"sourceKey\") final String sourceKey) {\n CohortCharacterizationEntity cc = service.findByIdWithLinkedEntities(id);\n ExceptionUtils.throwNotFoundExceptionIfNull(cc, String.format(\"There is no cohort characterization with id = %d.\", id));\n CheckResult checkResult = runDiagnostics(convertCcToDto(cc));\n if (checkResult.hasCriticalErrors()) {\n throw new RuntimeException(\"Cannot be generated due to critical errors in design. Call 'check' service for further details\");\n }\n return service.generateCc(id, sourceKey);\n }",
"interface ServiceProvisionContext extends Context<BaseExtension> {\n Optional<BindingTarget> target();\n Key<?> key();\n}",
"IServiceContext createService(String childContextName,\n\t\t\tIBackgroundWorkerParamDelegate<IBeanContextFactory> registerPhaseDelegate,\n\t\t\tClass<?>... serviceModules);",
"Snapshot create(Context context);",
"public IContextInformation getContextInformation()\n {\n return null;\n }",
"@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:59:45.505 -0500\", hash_original_method = \"30351ACDB73035A90D0CFF564E4380CE\", hash_generated_method = \"48DADB4CE0ACD3C0C678FBD72552DA66\")\n \npublic void connect(Context srcContext, Handler srcHandler, Handler dstHandler) {\n connect(srcContext, srcHandler, new Messenger(dstHandler));\n }",
"private void createContextEvent(String appName, String packageName, int appVersion, List<RunningServiceInfo> runningServices) {\n // get the running services\n List<String> runningServicesNames = new ArrayList<String>();\n for (RunningServiceInfo runningServiceInfo : runningServices) {\n runningServicesNames.add(runningServiceInfo.process);\n }\n\n // create the context event\n ContextEvent contextEvent = new ContextEvent();\n contextEvent.setType(TYPE);\n contextEvent.setTimestamp(System.currentTimeMillis());\n contextEvent.addProperty(PROPERTY_KEY_ID, String.valueOf(contextEventHistory != null ? (contextEventHistory.size() + 1) : -1));\n contextEvent.addProperty(PROPERTY_KEY_APP_NAME, appName);\n contextEvent.addProperty(PROPERTY_KEY_PACKAGE_NAME, packageName);\n contextEvent.addProperty(PROPERTY_KEY_APP_VERSION, String.valueOf(appVersion));\n contextEvent.addProperty(PROPERTY_KEY_BACKGROUND_PROCESS, runningServicesNames.toString());\n contextEvent.generateId();\n\n // add context event to the context event history\n contextEventHistory.add(contextEvent);\n if(contextEventHistory.size() > CONTEXT_EVENT_HISTORY_SIZE) {\n contextEventHistory.remove(0);\n }\n\n if(listener != null) {\n Log.d(TAG, \"called: listener.onEvent(contextEvent); app name: \" + appName);\n listener.onEvent(contextEvent);\n }\n }",
"@Override\r\n \tpublic void registerForContextChanges(Object communityId) throws InvalidFormatException {\r\n \t\t//Cast IIdentity for the societies platform\r\n \t\tIIdentity cisID = idMgr.fromJid(communityId.toString());\r\n \t\tLOG.info(\"cisID retrieved: \"+ cisID);\r\n \r\n \t\ttry {\r\n \t\t\tCtxEntityIdentifier ctxCommunityEntityIdentifier = this.ctxBroker.retrieveCommunityEntityId(getRequestor(), cisID).get();\r\n \t\t\tLOG.info(\"communityEntityIdentifier retrieved: \" +ctxCommunityEntityIdentifier.toString()+ \" based on cisID: \"+ cisID);\r\n \t\t\tCommunityCtxEntity communityEntity = (CommunityCtxEntity) this.ctxBroker.retrieve(getRequestor(), ctxCommunityEntityIdentifier).get();\r\n \r\n \t\t\tSet<CtxEntityIdentifier> ctxMembersIDs = communityEntity.getMembers();\r\n \t\t\tIterator<CtxEntityIdentifier> members = ctxMembersIDs.iterator();\r\n \r\n \t\t\twhile(members.hasNext()){\r\n \t\t\t\tCtxEntityIdentifier member = members.next();\r\n \t\t\t\tLOG.info(\"*** Registering context changes for member: \"+member.toString());\r\n \r\n \t\t\t\t//TODO: Include here other ctx updates if necessary. For short term context\r\n \t\t\t\tthis.ctxBroker.registerForChanges(getRequestor(), this.myCtxChangeEventListener, member, CtxAttributeTypes.LOCATION_SYMBOLIC);\r\n \t\t\t\tthis.ctxBroker.registerForChanges(getRequestor(), this.myCtxChangeEventListener, member, CtxAttributeTypes.STATUS);\r\n \t\t\t\t//\t\t\t\tthis.ctxBroker.registerForChanges(getRequestor(), this.myCtxChangeEventListener, member, CtxAttributeTypes.OCCUPATION);\r\n \t\t\t\t//\t\t\t\tthis.ctxBroker.registerForChanges(getRequestor(), this.myCtxChangeEventListener, member, CtxAttributeTypes.ADDRESS_WORK_CITY);\r\n \t\t\t\t//\t\t\t\tthis.ctxBroker.registerForChanges(getRequestor(), this.myCtxChangeEventListener, member, CtxAttributeTypes.ADDRESS_WORK_COUNTRY);\r\n \r\n \t\t\t}\r\n \t\t} catch (InterruptedException e1) {\r\n \t\t\te1.printStackTrace();\r\n \t\t} catch (ExecutionException e1) {\r\n \t\t\te1.printStackTrace();\r\n \t\t} catch (CtxException e1) {\r\n \t\t\te1.printStackTrace();\r\n \t\t}\r\n \r\n \t\tLOG.info(\"*** registerForContextChanges success\");\r\n \t}",
"public Hashtable createStructure(Context context, String[] args) throws Exception\n\t{\n\t\tHashMap argumentsMap = (HashMap) JPO.unpackArgs(args);\n\t\t\n\t\tMCADGlobalConfigObject inputGCO = (MCADGlobalConfigObject) argumentsMap.get(\"GCO\");\n\t\tMCADLocalConfigObject inputLCO = (MCADLocalConfigObject) argumentsMap.get(\"LCO\");\n\n String languageName\t\t\t= (String) argumentsMap.get(\"language\");\n String partID\t\t\t\t= (String) argumentsMap.get(\"partID\");\n\t\tString integrationName\t\t= (String) argumentsMap.get(\"integrationName\");\n\t\tString assemblyTemplateID\t= (String) argumentsMap.get(\"assemblyTemplateID\");\n\t\tString componentTemplateID\t= (String) argumentsMap.get(\"componentTemplateID\");\n\t\tString folderId\t\t\t\t= (String) argumentsMap.get(\"folderId\");\n\t\tthis.source = integrationName;\t\t\n\n\t\ttry\n\t\t{\n\t\t\tinitialize(context, inputGCO, inputLCO, languageName);\n\n\t\t\tassemblyTemplateObject\t= new BusinessObject(assemblyTemplateID);\n\t\t\tcomponentTemplateObject\t= new BusinessObject(componentTemplateID);\n\n\t\t\tassemblyTemplateObject.open(context);\n\t\t\tcomponentTemplateObject.open(context);\n\n\t\t\tboolean isStructureCreated = traversePartStructure(context, partID, null, null, args,folderId);\n\n\t\t\tassemblyTemplateObject.close(context);\n\t\t\tcomponentTemplateObject.close(context);\n\n\t\t\tif(isStructureCreated)\n\t\t\t\tdesignObjIDTemplateObjIDMap.put(\"OPERATION_STATUS\", \"true\");\n\t\t\telse\n\t\t\t{\n\t\t\t\tdesignObjIDTemplateObjIDMap.put(\"OPERATION_STATUS\", \"false\");\n\t\t\t\tdesignObjIDTemplateObjIDMap.put(\"ERROR_MESSAGE\", resourceBundle.getString(\"mcadIntegration.Server.Message.CADStructureAlreadyCreated\"));\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tString errorMessage = e.getMessage();\n\t\t\tdesignObjIDTemplateObjIDMap.put(\"OPERATION_STATUS\", \"false\");\n\t\t\tdesignObjIDTemplateObjIDMap.put(\"ERROR_MESSAGE\", errorMessage);\n\t\t}\n\n\t\treturn designObjIDTemplateObjIDMap;\n\t}",
"public SSLContextParameters createServerSSLContextParameters() {\n SSLContextParameters sslContextParameters = new SSLContextParameters();\n\n KeyManagersParameters keyManagersParameters = new KeyManagersParameters();\n KeyStoreParameters keyStore = new KeyStoreParameters();\n keyStore.setPassword(\"changeit\");\n keyStore.setResource(\"ssl/keystore.jks\");\n keyManagersParameters.setKeyPassword(\"changeit\");\n keyManagersParameters.setKeyStore(keyStore);\n sslContextParameters.setKeyManagers(keyManagersParameters);\n\n return sslContextParameters;\n }",
"private static TransformationContext prepareContext (final JDBCConnectionCredentials clean, final JDBCConnectionCredentials dirty) {\n\t\treturn new SerializableTransformationContext() {\n\t\t\tprivate static final long serialVersionUID = 1L;\n\n\t\t\t@Override\n\t\t\tpublic JDBCConnectionCredentials getDirtyDatabaseCredentials() {\n\t\t\t\treturn dirty;\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic JDBCConnectionCredentials getCleanDatabaseCredentials() {\n\t\t\t\treturn clean;\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic String getTransformerConfiguration() {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic File getTransformerDirectory() {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic EnumTransformationType getTransformationType() {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t};\n\t}",
"public com.google.cloud.aiplatform.v1.Context createContext(\n com.google.cloud.aiplatform.v1.CreateContextRequest request) {\n return io.grpc.stub.ClientCalls.blockingUnaryCall(\n getChannel(), getCreateContextMethod(), getCallOptions(), request);\n }",
"private Map<String,Object> buildFlowContext(Map<String,Value> flowValues, EvaluationContext context) {\n Map<String, Object> flowContext = new HashMap<>();\n List<String> values = new ArrayList<>();\n for (Map.Entry<String, Value> entry : flowValues.entrySet()) {\n flowContext.put(entry.getKey(), entry.getValue().buildContext(context));\n values.add(entry.getKey() + \": \" + entry.getValue().getValue());\n }\n flowContext.put(\"*\", StringUtils.join(values, \"\\n\"));\n return flowContext;\n }",
"public org.apache.axis2.context.xsd.ServiceContext getServiceContext(){\n return localServiceContext;\n }",
"Map<String, Object> getContext();",
"@Context\r\npublic interface ThreadContext\r\n{\r\n /**\r\n * Get the minimum thread level.\r\n *\r\n * @param min the default minimum value\r\n * @return the minimum thread level\r\n */\r\n int getMin( int min );\r\n \r\n /**\r\n * Return maximum thread level.\r\n *\r\n * @param max the default maximum value\r\n * @return the maximum thread level\r\n */\r\n int getMax( int max );\r\n \r\n /**\r\n * Return the deamon flag.\r\n *\r\n * @param flag true if a damon thread \r\n * @return the deamon thread policy\r\n */\r\n boolean getDaemon( boolean flag );\r\n \r\n /**\r\n * Get the thread pool name.\r\n *\r\n * @param name the pool name\r\n * @return the name\r\n */\r\n String getName( String name );\r\n \r\n /**\r\n * Get the thread pool priority.\r\n *\r\n * @param priority the thread pool priority\r\n * @return the priority\r\n */\r\n int getPriority( int priority );\r\n \r\n /**\r\n * Get the maximum idle time.\r\n *\r\n * @param idle the default maximum idle time\r\n * @return the maximum idle time in milliseconds\r\n */\r\n int getIdle( int idle );\r\n \r\n}",
"public EntityMetadataService(@NonNull DmiCTXService dmiCTXService) {\n this.dmiCTXService = dmiCTXService;\n this.cache = new MetadataCache<>(DEFAULT_CACHE_EXPIRATION_SECONDS);\n }",
"@Override\n public RestContextSpec<?, ?> createContextSpec() {\n Properties restProperties = new Properties();\n restProperties.setProperty(provider + \".contextbuilder\", SimpleDBContextBuilder.class.getName());\n restProperties.setProperty(provider + \".propertiesbuilder\", SimpleDBPropertiesBuilder.class.getName());\n return new RestContextFactory(restProperties).createContextSpec(provider, \"foo\", \"bar\", getProperties());\n }",
"private MMIContext getContext(final LifeCycleRequest request,\n final boolean create) throws MMIMessageException {\n final String contextId = request.getContext();\n final String requestId = request.getRequestId();\n if (requestId == null || requestId.isEmpty()) {\n throw new MMIMessageException(\"No request id given\");\n }\n MMIContext context = getContext(contextId);\n if (context == null) {\n if (!create) {\n throw new MMIMessageException(\"Context '\" + contextId\n + \"' refers to an unknown context\");\n }\n try {\n context = new MMIContext(contextId);\n } catch (URISyntaxException e) {\n throw new MMIMessageException(e.getMessage(), e);\n }\n synchronized (contexts) {\n contexts.put(contextId, context);\n }\n }\n return context;\n }",
"private Context getRemoteContext(Context context) {\n try {\n return context.getApplicationContext().createPackageContext(PACKAGE_WITH_DEX_TO_EXTRACT,\n Context.CONTEXT_IGNORE_SECURITY | Context.CONTEXT_INCLUDE_CODE);\n } catch (NameNotFoundException e) {\n e.printStackTrace();\n Assert.fail(\"Could not get remote context\");\n return null;\n }\n }",
"public void createTimeStamp (Object timeStamp) {\n LineTranslations.getTranslations().createTimeStamp(timeStamp);\n }",
"public SSLService createDynamicSSLService() {\n return new SSLService(env, sslConfigurations, sslContexts) {\n\n @Override\n Map<SSLConfiguration, SSLContextHolder> loadSSLConfigurations() {\n // we don't need to load anything...\n return Collections.emptyMap();\n }\n\n /**\n * Returns the existing {@link SSLContextHolder} for the configuration\n * @throws IllegalArgumentException if not found\n */\n @Override\n SSLContextHolder sslContextHolder(SSLConfiguration sslConfiguration) {\n SSLContextHolder holder = sslContexts.get(sslConfiguration);\n if (holder == null) {\n // normally we'd throw here but let's create a new one that is not cached and will not be monitored for changes!\n holder = createSslContext(sslConfiguration);\n }\n return holder;\n }\n };\n }",
"protected final TranslationContext context() {\n\t\treturn context;\n\t}",
"public com.google.common.util.concurrent.ListenableFuture<\n com.google.cloud.aiplatform.v1.Context>\n createContext(com.google.cloud.aiplatform.v1.CreateContextRequest request) {\n return io.grpc.stub.ClientCalls.futureUnaryCall(\n getChannel().newCall(getCreateContextMethod(), getCallOptions()), request);\n }",
"public static Context getInstance(){\n\t\treturn (Context) t.get();\n\t}",
"public ComponentContextInformationProvider() {\n\t\tsuper();\n\t\tisActive = false;\n\t}",
"@CalledByNative\n public static DeviceTelephonyInfo create(Context context) {\n return new DeviceTelephonyInfo(context);\n }",
"public static String getEventContext(JCas jCas, Sentence sent, EventMention event, String marker, int contextSize) {\n \n List<String> tokens = new ArrayList<>();\n for(BaseToken baseToken : JCasUtil.selectPreceding(jCas, BaseToken.class, event, contextSize)) {\n if(sent.getBegin() <= baseToken.getBegin()) {\n tokens.add(baseToken.getCoveredText()); \n }\n }\n tokens.add(\"<\" + marker + \">\");\n tokens.add(event.getCoveredText());\n tokens.add(\"</\" + marker + \">\");\n for(BaseToken baseToken : JCasUtil.selectFollowing(jCas, BaseToken.class, event, contextSize)) {\n if(baseToken.getEnd() <= sent.getEnd()) {\n tokens.add(baseToken.getCoveredText());\n }\n }\n \n return String.join(\" \", tokens).replaceAll(\"[\\r\\n]\", \" \");\n }",
"protected SSLContext getContext() throws Exception \n {\n try \n {\n SSLContext sslContext = SSLContext.getInstance(\"SSL\"); \n sslContext.init(null, getTrustManager(), new java.security.SecureRandom());\n \n return sslContext;\n } \n catch (Exception e)\n {\n throw new Exception(\"Error creating context for SSLSocket!\", e);\n }\n }",
"public interface Timestamper {\n\n /*\n45: * Connects to the TSA and requests a timestamp.\n46: *\n47: * @param tsQuery The timestamp query.\n48: * @return The result of the timestamp query.\n49: * @throws IOException The exception is thrown if a problem occurs while\n50: * communicating with the TSA.\n51: */\n public TSResponse generateTimestamp(TSRequest tsQuery)\n throws IOException;\n }",
"private static O11y create(\n Context context, CounterFactory counterFactory, DistributionFactory distributionFactory) {\n return new O11y(\n // throttlingMs is a special counter used by dataflow. When we are having to throttle,\n // we signal to dataflow that fact by adding to this counter.\n // Signaling to dataflow is important so that a bundle isn't categorised as hung.\n counterFactory.get(context.getNamespace(), \"throttlingMs\"),\n // metrics specific to each rpc\n counterFactory.get(context.getNamespace(), \"rpc_failures\"),\n counterFactory.get(context.getNamespace(), \"rpc_successes\"),\n counterFactory.get(context.getNamespace(), \"rpc_streamValueReceived\"),\n distributionFactory.get(context.getNamespace(), \"rpc_durationMs\"),\n // qos wide metrics\n distributionFactory.get(RpcQos.class.getName(), \"qos_write_latencyPerDocumentMs\"),\n distributionFactory.get(RpcQos.class.getName(), \"qos_write_batchCapacityCount\"));\n }",
"public String s (TContext contextData, TArg1 arg1)\n {\n MessageFormat messageFormat = this.obtainMessageFormat (contextData);\n return messageFormat.format (new Object [] { arg1 },\n new StringBuffer (),\n null)\n .toString ();\n }",
"RenderingContext getContext();",
"public Timestamp getOriginalServiceData();",
"private TaskAttemptContext getContext(String nameOutput) throws IOException {\r\n\r\n\t\tTaskAttemptContext taskContext = taskContexts.get(nameOutput);\r\n\r\n\t\tif (taskContext != null) {\r\n\t\t\treturn taskContext;\r\n\t\t}\r\n\r\n\t\t// The following trick leverages the instantiation of a record writer via\r\n\t\t// the job thus supporting arbitrary output formats.\r\n\t\tJob job = new Job(context.getConfiguration());\r\n\t\tjob.setOutputFormatClass(getNamedOutputFormatClass(context, nameOutput));\r\n\t\tjob.setOutputKeyClass(getNamedOutputKeyClass(context, nameOutput));\r\n\t\tjob.setOutputValueClass(getNamedOutputValueClass(context, nameOutput));\r\n\t\tString location = MultiFileOutputFormat.getOutputPath(job).toString();\r\n\t\tPath jobOutputPath = new Path(location + \"/\" + nameOutput);\r\n\t\tMultiFileOutputFormat.setOutputPath(job, jobOutputPath);\r\n\t\ttaskContext = new TaskAttemptContext(\r\n\t\t\t\tjob.getConfiguration(), context.getTaskAttemptID());\r\n\r\n\t\ttaskContexts.put(nameOutput, taskContext);\r\n\r\n\t\treturn taskContext;\r\n\t}",
"public abstract void communicationContextChange(long ms, \n\t\t\tContextDescription.Communication.WirelessAccessType wirelessAccessType,\n\t\t\tString accessPointName,\n\t\t\tint signalStrength,\n\t\t\tint receivedDataThroughput,\n\t\t\tint sentDataThroughput,\n\t\t\tint rtt,\n\t\t\tint srt\t);",
"TimestampDeviceRowInflater(LayoutInflater inflater, LinearLayout parentView, Context context, String deviceName, android.support.v4.app.FragmentManager fragmentManager) {\n super(R.layout.dynamic_time_row, parentView, inflater, context, CATEGORY_TIMESTAMP, fragmentManager);\n this.deviceName = deviceName;\n manager = new DeviceTimestampManager(deviceName, context);\n rh = new RequestHandler();\n }",
"@Override\n public void onContextCreated() {\n HeartbeatJob.updateBinaryServiceClusterChanges(serversService);\n registersHeartbeatJob();\n registerCallHomeJob();\n }",
"ManagementLockObject create(Context context);",
"public void createCSProvDefault(String text,String nodeID, String user, String formID, String des, String crowdloc, ArrayList locations,String createTime, String lastTime, String timestamp) {silly times!!!! \n\t//\"createTime\":\"201503011826\",\"lastTime\":\"2015-03-01 18:07:35.735\" \"timestamp\":\"2015-03-03 12:44:40.4440\"\n\t//\n\tcreateTime=time.getDateCISnoSep(createTime+\"00\");\n\ttimestamp=timestamp.substring(0,timestamp.indexOf(\".\")-1);\n\ttimestamp=time.getDateCISTurn(timestamp);\n\tlastTime=lastTime.substring(0,lastTime.indexOf(\".\")-1);\n\tlastTime=time.getDateCISTurn(lastTime);\n\tprov = new PatternBuilder();\n\tString[] node=new String[2];\n\tnode[0]=nodeID;\n\tnode[1]=text;\n\tprov.makeGenerationPattern(node,\"EX_\"+formID, \"Prepare_CS_Task_\"+formID, cus, createTime);\n\tprov.makeGenerationPattern(\"EX_\"+formID,\"RI_\"+formID, \"Process_CS_Res_\"+formID, cus, createTime);\n\tprov.makeGoal(\"RI_\"+formID);\n\tif(nodeID!=null && !nodeID.equals(\"\")){\n\t\tprov.makeSimpleGenerationPattern(\"RI_\"+formID, \"Create_CS_RI_\"+formID, user, createTime);\n\t\tArrayList nodes=new ArrayList();\n\t\tnodes.add(nodeID);\n\t\t//prov.addNodesToGeneration(\"Create_CS_RI_\"+formID, nodes);\n\t}\n\tprov.makeCSRequPattern(\"CS_Results_\"+formID, \"Data_\"+formID, \"TASK_\"+formID, \"Process_CS_Res_\"+formID, \"Collect_CS_Res_\"+formID, timestamp, lastTime, hdc, cus);\n\tconn.UpdateModel(prov);\n\t\n}",
"public GroupServiceV2(@Context HttpServletRequest httpRequest) {\n\t\tsuper(httpRequest);\n\t}",
"public final void setTimestamp(com.mendix.systemwideinterfaces.core.IContext context, java.util.Date timestamp)\n\t{\n\t\tgetMendixObject().setValue(context, MemberNames.Timestamp.toString(), timestamp);\n\t}",
"@java.lang.Override public POGOProtos.Rpc.QuestProto.Context getContext() {\n @SuppressWarnings(\"deprecation\")\n POGOProtos.Rpc.QuestProto.Context result = POGOProtos.Rpc.QuestProto.Context.valueOf(context_);\n return result == null ? POGOProtos.Rpc.QuestProto.Context.UNRECOGNIZED : result;\n }",
"@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:58:16.442 -0500\", hash_original_method = \"00A9769D3FCB2BCA752959A2156960BA\", hash_generated_method = \"123FF23E2FD831FD5E2A58B0E9D2D78B\")\n \n private int _eglCreateContext(EGLDisplay display, EGLConfig config, EGLContext share_context, int[] attrib_list){\n \taddTaint(display.getTaint());\n \taddTaint(config.getTaint());\n \taddTaint(share_context.getTaint());\n \taddTaint(attrib_list[0]);\n \treturn getTaintInt();\n }",
"@Override\n\tpublic Hashtable getSensorData(Context androidContext, String sensorID, long dateTime,\n\t\t\tlong timeDifference) {\n\t\tString Time_Stamp = \"timestamp\";\n\t\tAndroidSensorDataManager androidSensorDataManager = AndroidSensorDataManagerSingleton.getInstance(androidContext);\n\t\t//androidSensorDataManager.startCollectSensorUsingThreads();\n\t\tAndroidSensorDataContentProviderImpl dataProvider = new AndroidSensorDataContentProviderImpl();\n\t\tandroidSensorDataManager.startSensorDataAcquistionPollingMode(sensorID, dataProvider, null);\n\t\ttry {\n\t\t\tThread.sleep(300);\n\t\t} catch (InterruptedException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t\tboolean dataFound = false;\n\t\tint counter = 0;\n\t\tBundle currentData = null;\n\t\tHashtable bundleHT = null;\n\t\tList<Bundle> sensorDataBundle;\n\t\twhile ( counter <3 && !dataFound ) {\n\t\t\t\tcounter++;\n\t\t\t\t\n\t\t\t\t//using data provider's data\n\t\t\t\t//instead of expensively requery the sensor\n\t\t\t\t//which might be also wrong\n\t\t\t\tsensorDataBundle = dataProvider.getSensorDataReading();\n\t\t\t\t\n\t\t\t if ( sensorDataBundle.isEmpty() ){\n//\t\t\t //\tsensorDataBundle = androidSensorDataManager.get\n\t\t \tsensorDataBundle = androidSensorDataManager.returnSensorDataAndroidAfterInitialization(sensorID, false);\n\t\t }\n\t\t\t if ( sensorDataBundle.isEmpty() ){\n\t\t\t \t//something very slow regarding with sensor reading\n\t\t\t \ttry {\n\t\t\t\t\t\tThread.sleep(500*counter);\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t }\n\t\t\t\tfor ( Bundle curData : sensorDataBundle) {\n\t\t\t\t\t//if ( curData.getLong(Time_Stamp) >= dateTime - timeDifference && curData.getLong(Time_Stamp) <= dateTime + timeDifference ) {\n\t\t\t\t\t\tcurrentData = curData;\n\t\t\t\t\t bundleHT = convertBundleToHash(currentData);\n\t\t\t\t\t\tdataFound = true;\n\t\t\t\t\t//}\n\t\t\t\t}\n\t\t\t\t\n\t\t}\n\t\treturn bundleHT;\n\t\t\n\t\t\n\t}",
"public interface StandardContext extends Context\n{\n public static final String NAME_KEY = \"urn:avalon:name\";\n public static final String PARTITION_KEY = \"urn:avalon:partition\";\n public static final String WORKING_KEY = \"urn:avalon:temp\";\n public static final String HOME_KEY = \"urn:avalon:home\";\n\n /**\n * Return the name assigned to the component\n * @return the name\n */\n String getName();\n\n /**\n * Return the partition name assigned to the component\n * @return the partition name\n */\n String getPartitionName();\n\n /**\n * @return a file representing the home directory\n */\n File getHomeDirectory();\n\n /**\n * @return a file representing the temporary working directory\n */\n File getWorkingDirectory();\n\n}"
] |
[
"0.542462",
"0.542462",
"0.5156496",
"0.5113012",
"0.5056922",
"0.49309564",
"0.48860672",
"0.4810736",
"0.47612336",
"0.47347063",
"0.47077453",
"0.46924606",
"0.46448785",
"0.46362302",
"0.46208233",
"0.4601408",
"0.4601028",
"0.45811278",
"0.45620558",
"0.45620558",
"0.45434237",
"0.4534941",
"0.45007488",
"0.44995978",
"0.4490862",
"0.44895166",
"0.44842234",
"0.44617525",
"0.4449219",
"0.44345403",
"0.44317454",
"0.44128135",
"0.43933436",
"0.43888295",
"0.438519",
"0.4383197",
"0.43706682",
"0.43357",
"0.4330361",
"0.4317555",
"0.43088192",
"0.4307728",
"0.43016204",
"0.42880863",
"0.42836437",
"0.42619258",
"0.42502683",
"0.42384386",
"0.42357758",
"0.42353135",
"0.42307934",
"0.42173797",
"0.42116675",
"0.41731292",
"0.4163654",
"0.41561657",
"0.41559184",
"0.41513455",
"0.41492146",
"0.413437",
"0.4130418",
"0.4125351",
"0.41159412",
"0.41060865",
"0.41033792",
"0.41021878",
"0.40976876",
"0.40931988",
"0.40864697",
"0.40806594",
"0.4080652",
"0.40767315",
"0.40751705",
"0.40670216",
"0.40633795",
"0.405524",
"0.405336",
"0.4039669",
"0.4028767",
"0.40196863",
"0.40099823",
"0.40085378",
"0.4004657",
"0.39983582",
"0.3990735",
"0.39896905",
"0.39874727",
"0.39856157",
"0.39811578",
"0.39773968",
"0.39753914",
"0.39749599",
"0.39697173",
"0.39666393",
"0.3963419",
"0.396049",
"0.39502105",
"0.39492226",
"0.39457256",
"0.3939053"
] |
0.7214369
|
0
|
Sets the current context state
|
public void setState(Context.ContextState state)
{
this.state = state;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setStateContext(State s);",
"@Override\r\n\tpublic void setContext(Context context) {\r\n\t\tthis.context = context;\r\n\t}",
"void setContext(Context context) {\n\t\tthis.context = context;\n\t}",
"public void setContext(Context _context) {\n context = _context;\n }",
"@Override\n\tpublic void setContext(Context pContext) {\n\n\t}",
"private void changeContext(){\n MainWorkflow.observeContexts(generateRandom(24,0));\n }",
"public void setContext(Context context) {\n this.context = context;\n }",
"public void set(T v) {\n\t\tset(v, ModSettings.currentContext);\n\t}",
"public void setContext(Context context) {\n this.contextMain = context;\n }",
"public void setContext(ComponentContext ctx)\n\t{\n\t\tthis.context = ctx;\n\t}",
"public synchronized static void setContext(Context con){\n\t\tcontext = con;\n\t}",
"public Context() {\n\t\tstates = new ObjectStack<>();\n\t}",
"public void setContext(Context conti) {\n\t\tthis.cont = conti;\n\t}",
"public void setContext(Context ctx) {\n\t\tprefs = PreferenceManager.getDefaultSharedPreferences(ctx);\n\t\tupdateNextIdx();\n\t}",
"void setContext(Map<String, Object> context);",
"protected void setContext(RestContext context) throws ServletException {\n\t\tthis.context.set(context);\n\t}",
"@Override\n\tpublic Void setContext(Context context) {\n\t\treturn null;\n\t}",
"public void setContextObject(Object co) {\n context = co;\n }",
"@Override\r\n\tpublic void setCamelContext(CamelContext ctx) {\n\t\tthis.ctx = ctx;\r\n\t}",
"@Test\n\tpublic void testSetters()\n\t{\n\t\tAIContext context = new AIContext(a, e); \n\t\tassertTrue(context.getCurrentState() instanceof NoWeaponState); \n\t\t\n\t\tcontext.setCurrentState(new DeadState(context));\n\t\tassertTrue(context.getCurrentState() instanceof DeadState);\n\t\t\n\t\tcontext.setCurrentState(new HasWeaponState(context));\n\t\tassertTrue(context.getCurrentState() instanceof HasWeaponState);\n\t\t\n\t\tcontext.setCurrentState(new OutOfAmmoState(context));\n\t\tassertTrue(context.getCurrentState() instanceof OutOfAmmoState);\n\t\t\n\t\tcontext.setCurrentState(new NoWeaponState(context));\n\t\tassertTrue(context.getCurrentState() instanceof NoWeaponState);\n\t}",
"public void setContext(MaterialContext context) {\n\t\tthis.context = context;\n\t\tcollectors[MaterialState.TRANSLUCENT_INDEX].prepare(MaterialState.getDefault(context, ShaderPass.TRANSLUCENT));\n\t}",
"public void setContext(String context) {\r\n\t\tthis.context = context;\r\n\t}",
"public void setContext(GLContext context);",
"public void setContext(String context) {\n\n Set<String> contextNames = ((AppiumDriver) getDriver()).getContextHandles();\n\n if (contextNames.contains(context)) {\n ((AppiumDriver) getDriver()).context(context);\n info(\"Context changed successfully\");\n } else {\n info(context + \"not found on this page\");\n }\n\n info(\"Current context\" + ((AppiumDriver) getDriver()).getContext());\n }",
"public void setContext( UpgradeContext context ) {\r\n\t\tthis.context = context;\r\n\t\tupgradeContext = context;\r\n\t}",
"public void setContext(String context) {\n\t\tthis.context = context;\n\t}",
"public void makeContextCurrent(){\n glfwMakeContextCurrent(handle);\n }",
"public void setContext(final Class<?> context) {\n\t\tthis.context = context;\n\t}",
"public void set_context(VariableSymbolTable context);",
"@Override\r\n\t\t\tprotected void restoreContext() {\n\t\t\t\t\r\n\t\t\t}",
"public static void set(FHIRRequestContext context) {\n contexts.set(context);\n if (log.isLoggable(Level.FINEST)) {\n log.finest(\"FHIRRequestContext.set: \" + context.toString());\n }\n }",
"public void setContext(PageContext context) {\n this.context = context;\n }",
"@Override\n\tpublic void setApplicationContext(ApplicationContext context) throws BeansException {\n\t\tSystem.out.println(\"setting newly\");\n\t\tthis.context=context;\n\t\tsetContext();\n\t}",
"public void setContext(ConversationContext context) {\n\t\tthis.context = context;\n\t}",
"public void setUserContext(UserContext userContext);",
"public interface Context {\n\n\tvoid goNext();\n\tvoid setState(State state);\n\tvoid execute();\n\tState getCurrent();\n}",
"public void setContext(ContextRequest context) {\n\t\tthis.context = context;\n\t}",
"public void setContext(Context c) {\n\t\tthis.mContext = c;\n\t}",
"public static void setApplicationContext( ApplicationContext context ){\n\t\t\tctx = context;\n//\t\telse{\n//\t\t\tSystem.out.println(\"Error, ApplicationContext already has been set\");\n//\t\t}\n\t}",
"public void switchToGlobalContext(){\n currentConstants = null;\n currentVariables = null;\n\n temporaryConstants = null;\n temporaryVariables = null;\n }",
"private void saveAsCurrentSession(Context context) {\n \t// Save the context\n \tthis.context = context;\n }",
"public void setContext(String context) {\n\t\tif (context.startsWith(\"/\")) {\n\t\t\tthis.context = context;\n\t\t}\n\t\telse {\n\t\t\tthis.context = \"/\" + context;\n\t\t}\n\t}",
"protected void setCurrentState(boolean currentState) {\n this.currentState = currentState;\n }",
"public void reset() {\n context.reset();\n state = State.NAME;\n }",
"@Override\n\tpublic void updateContext(Context context) {\n\t}",
"private void setAttributes() {\n mAuth = ServerData.getInstance().getMAuth();\n user = ServerData.getInstance().getUser();\n sharedpreferences = getSharedPreferences(GOOGLE_CALENDAR_SHARED_PREFERENCES, Context.MODE_PRIVATE);\n walkingSharedPreferences = getSharedPreferences(ACTUAL_WALK, Context.MODE_PRIVATE);\n\n notificationId = 0;\n requestCode = 0;\n fragmentManager = getSupportFragmentManager();\n\n context = this;\n }",
"public void context_save(long context) {\n context_save(nativeHandle, context);\n }",
"static void setActiveContext(ApplicationContext context) {\n SchemaCompilerApplicationContext.context = context;\n }",
"public void setContextInvalid() {\n fValidContext[fCurrentContext] = false;\n }",
"public void reset() {\n\t\treset(ModSettings.currentContext);\n\t}",
"@Override\r\n\tpublic void setPageContext(PageContext arg0) {\n\t\tthis.pageContext = arg0;\r\n\t}",
"public void setContexts(final String val) {\n contexts = val;\n }",
"protected abstract void setContextAttribute(String name, Object value);",
"@Override\n\tpublic void setPageContext(PageContext pageContext) {\n\t\tthis.pageContext = pageContext;\n\n\t}",
"public abstract void set(T v, String context);",
"void setState(int state);",
"@Override\n public void setApplicationContext(ApplicationContext applicationContext) {\n super.setApplicationContext(applicationContext);\n this.applicationContext = applicationContext;\n }",
"public void setQueryContext(QueryContext context) {\n \t\tthis.queryContext = context;\n \t\tif (getStructuredViewer() == null)\n \t\t\treturn;\n \n \t\tObject input = getStructuredViewer().getInput();\n \t\tif (input instanceof QueriedElement) {\n \t\t\t((QueriedElement) input).setQueryContext(context);\n \t\t\tgetStructuredViewer().refresh();\n \t\t}\n \t}",
"public abstract void setEnabled(Context context, boolean enabled);",
"public void restoreState(FacesContext context, Object state) {\n }",
"public void setCurrentState(State state) {\n currentState = state;\n }",
"@Autowired\n\tpublic void setContext(ApplicationContext context) {\n\t\tthis.context = context;\n\t\t((DefaultListableBeanFactory) context.getAutowireCapableBeanFactory()).registerScope(\"session\", new SessionScope());\n\t\t((DefaultListableBeanFactory) context.getAutowireCapableBeanFactory()).registerScope(\"request\", new RequestScope());\n\t}",
"public void active(CallerContext cc)\n {\n }",
"public void setContext(ActionBeanContext context) {\r\n this.context = context;\r\n }",
"public void setCurrentState(State currentState) {\n \t\tthis.currentState = currentState;\n \t}",
"@Override\n\tpublic void setApplicationContext(ApplicationContext applicationContext) {\n\t\tthis.applicationContext = applicationContext;\n\t}",
"public void reset(String context) {\n\t\tset(defaultValue, context);\n\t}",
"public void pushContext() {\n super.pushContext();\n if (fCurrentContext + 1 == fValidContext.length) {\n boolean[] contextarray = new boolean[fValidContext.length * 2];\n System.arraycopy(fValidContext, 0, contextarray, 0, fValidContext.length);\n fValidContext = contextarray;\n }\n\n fValidContext[fCurrentContext] = true;\n }",
"public void setApplicationContext(final ApplicationContext inApplicationContext)\n {\n ctx = inApplicationContext;\n }",
"@Override\r\n\tpublic void setApplicationContext(ApplicationContext applicationContext)\r\n\t\t\tthrows BeansException {\n\t\tSystem.out.println(\"进入方法。。。\"+applicationContext);\r\n\t\tApplicationContextHolder.app=applicationContext;\r\n\t}",
"public void setEntityContext(EntityContext aContext) {\n context = aContext;\n }",
"public void setEntityContext(EntityContext aContext) {\n context = aContext;\n }",
"public void setEntityContext(EntityContext aContext) {\n context = aContext;\n }",
"public void setEntityContext(EntityContext aContext) {\n context = aContext;\n }",
"@Override\n public void setContext(IEclipseContext arg0)\n {\n \n }",
"public Builder setContextValue(int value) {\n \n context_ = value;\n onChanged();\n return this;\n }",
"@Override\n\tpublic void setApplicationContext(ApplicationContext ctx) throws BeansException {\n\t\tthis.ctx=ctx;\n\t}",
"@Override\r\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\r\n\t\tcontext=this;\r\n\t}",
"public void setContext(Context context) {\n ArrayList<Object> blaubotComponents = new ArrayList<>();\n blaubotComponents.addAll(getAdapters());\n blaubotComponents.addAll(getConnectionStateMachine().getBeaconService().getBeacons());\n for(Object component : blaubotComponents) {\n if (component instanceof IBlaubotAndroidComponent) {\n final IBlaubotAndroidComponent androidComponent = (IBlaubotAndroidComponent) component;\n androidComponent.setCurrentContext(context);\n }\n }\n }",
"public void context_restore(long context) {\n context_restore(nativeHandle, context);\n }",
"@Autowired\r\n\tpublic void setContext(ApplicationContext context) {\r\n\t\tthis.context = context;\r\n\t\t((DefaultListableBeanFactory) context.getAutowireCapableBeanFactory()).registerScope(\"session\", new SessionScope());\r\n\t\t((DefaultListableBeanFactory) context.getAutowireCapableBeanFactory()).registerScope(\"request\", new RequestScope());\r\n\t}",
"@Autowired\r\n\tpublic void setContext(ApplicationContext context) {\r\n\t\tthis.context = context;\r\n\t\t((DefaultListableBeanFactory) context.getAutowireCapableBeanFactory()).registerScope(\"session\", new SessionScope());\r\n\t\t((DefaultListableBeanFactory) context.getAutowireCapableBeanFactory()).registerScope(\"request\", new RequestScope());\r\n\t}",
"@Messages(\"EXC_CannotHaveNullRootContext=Cannot have null root context.\")\n public final void setRootContext(final Node value) {\n if (value == null) {\n throw new IllegalArgumentException(EXC_CannotHaveNullRootContext());\n }\n\n synchronized (LOCK) {\n // a quick check if the context changes, in that case it's not necessary \n // to acquire Children.MUTEX read lock\n if (rootContext.equals(value)) {\n return;\n }\n }\n\n // now lock first Children.MUTEX and the private lock afterwards, someone\n // might already have locked the Children.MUTEX\n class SetRootContext implements Runnable {\n @Override\n public void run() {\n synchronized (LOCK) {\n if (rootContext.equals(value)) {\n return;\n }\n addRemoveListeners(false);\n Node oldValue = rootContext;\n rootContext = value;\n\n oldValue.removeNodeListener(weakListener);\n rootContext.addNodeListener(weakListener);\n\n fireInAWT(PROP_ROOT_CONTEXT, oldValue, rootContext);\n\n Node[] newselection = getSelectedNodes();\n\n if (!areUnderTarget(newselection, rootContext)) {\n newselection = new Node[0];\n }\n setExploredContext(rootContext, newselection);\n }\n }\n }\n\n SetRootContext run = new SetRootContext();\n Children.MUTEX.readAccess(run);\n }",
"public void setContext(String context) {\n this.context = context == null ? null : context.trim();\n }",
"public void setContext(String context) {\n this.context = context == null ? null : context.trim();\n }",
"public void setContext(String context) {\n this.context = context == null ? null : context.trim();\n }",
"@Override\n\tpublic void setApplicationContext(ApplicationContext applicationContext) throws BeansException {\n\t\tcontext=applicationContext;\n\t}",
"public void setState(int state);",
"public void setState(int state);",
"public static void setContext(String key, String value) {\r\n scenarioContext.put(key, value);\r\n }",
"private void setActiveActions() {\n\t\tnewBinaryContext.setEnabled(true);\n\t\tnewValuedContext.setEnabled(true);\n\t\tnewNestedContext.setEnabled(true);\n\t\topenContext.setEnabled(true);\n\t\tsaveContext.setEnabled(true);\n\t\tsaveAsContext.setEnabled(true);\n\t\tsaveAllContexts.setEnabled(true);\n\t\tcloseContext.setEnabled(true);\n\t\tcloseAllContexts.setEnabled(true);\n\t\tquitViewer.setEnabled(true);\n\n\t\tif (contextPanes.size() == 0) {\n\t\t\t/* Boutons de la toolbar */\n\t\t\tsaveBtn.setEnabled(false);\n\t\t\topenBtn.setEnabled(true);\n\t\t\tnewBinCtxBtn.setEnabled(true);\n\t\t\tremoveCtxBtn.setEnabled(false);\n\t\t\tnewAttributeBtn.setEnabled(false);\n\t\t\tnewObjectBtn.setEnabled(false);\n\t\t\tdelAttributeBtn.setEnabled(false);\n\t\t\tdelObjectBtn.setEnabled(false);\n\t\t\tshowLatBtn.setEnabled(false);\n\t\t\tshowRulesBtn.setEnabled(false);\n\n\t\t\t/* Elements du menu \"Edit\" */\n\t\t\taddEmptyLevel.setEnabled(false);\n\t\t\taddContextLevel.setEnabled(false);\n\t\t\tremoveLevel.setEnabled(false);\n\t\t\torderLevels.setEnabled(false);\n\t\t\taddObject.setEnabled(false);\n\t\t\taddAttribute.setEnabled(false);\n\t\t\tmergeAttributes.setEnabled(false);\n\t\t\tlogicalAttribute.setEnabled(false);\n\t\t\tcompareAttributes.setEnabled(false);\n\t\t\tremoveObject.setEnabled(false);\n\t\t\tremoveAttribute.setEnabled(false);\n\t\t\tcreateClusters.setEnabled(false);\n\t\t\tconvertToBinary.setEnabled(false);\n\t\t\tconvertToNested.setEnabled(false);\n\n\t\t\t/* Elements du menu \"Lattice\" */\n\t\t\tshowLatticeMenu.setEnabled(false);\n\n\t\t\t/* Elements du menu \"Rules\" */\n\t\t\tshowRulesMenu.setEnabled(false);\n\t\t\treturn;\n\t\t}\n\n\t\tContextTableScrollPane selectedPane = contextPanes\n\t\t\t\t.elementAt(currentContextIdx);\n\t\tContext currentContext = ((ContextTableModel) selectedPane\n\t\t\t\t.getContextTable().getModel()).getContext();\n\n\t\tif (currentContext instanceof NestedContext) {\n\t\t\t/* Boutons de la toolbar */\n\t\t\tsaveBtn.setEnabled(true);\n\t\t\topenBtn.setEnabled(true);\n\t\t\tnewBinCtxBtn.setEnabled(true);\n\t\t\tremoveCtxBtn.setEnabled(true);\n\t\t\tnewAttributeBtn.setEnabled(false);\n\t\t\tnewObjectBtn.setEnabled(false);\n\t\t\tdelAttributeBtn.setEnabled(false);\n\t\t\tdelObjectBtn.setEnabled(false);\n\t\t\tshowLatBtn.setEnabled(true);\n\t\t\tshowRulesBtn.setEnabled(true);\n\n\t\t\t/* Elements du menu \"Edit\" */\n\t\t\taddEmptyLevel.setEnabled(true);\n\t\t\taddContextLevel.setEnabled(true);\n\t\t\tremoveLevel.setEnabled(true);\n\t\t\torderLevels.setEnabled(true);\n\t\t\taddObject.setEnabled(false);\n\t\t\taddAttribute.setEnabled(false);\n\t\t\tmergeAttributes.setEnabled(false);\n\t\t\tlogicalAttribute.setEnabled(false);\n\t\t\tcompareAttributes.setEnabled(false);\n\t\t\tremoveObject.setEnabled(false);\n\t\t\tremoveAttribute.setEnabled(false);\n\t\t\tcreateClusters.setEnabled(false);\n\t\t\tconvertToBinary.setEnabled(true);\n\t\t\tconvertToNested.setEnabled(false);\n\n\t\t\t/* Elements du menu \"Lattice\" */\n\t\t\tshowLatticeMenu.setEnabled(true);\n\n\t\t\t/* Elements du menu \"Rules\" */\n\t\t\tshowRulesMenu.setEnabled(true);\n\t\t}\n\n\t\telse if (currentContext instanceof BinaryContext) {\n\t\t\t/* Boutons de la toolbar */\n\t\t\tsaveBtn.setEnabled(true);\n\t\t\topenBtn.setEnabled(true);\n\t\t\tnewBinCtxBtn.setEnabled(true);\n\t\t\tremoveCtxBtn.setEnabled(true);\n\t\t\tnewAttributeBtn.setEnabled(true);\n\t\t\tnewObjectBtn.setEnabled(true);\n\t\t\tdelAttributeBtn.setEnabled(true);\n\t\t\tdelObjectBtn.setEnabled(true);\n\t\t\tshowLatBtn.setEnabled(true);\n\t\t\tshowRulesBtn.setEnabled(true);\n\n\t\t\t/* Elements du menu \"Edit\" */\n\t\t\taddEmptyLevel.setEnabled(false);\n\t\t\taddContextLevel.setEnabled(false);\n\t\t\tremoveLevel.setEnabled(false);\n\t\t\torderLevels.setEnabled(false);\n\t\t\taddObject.setEnabled(true);\n\t\t\taddAttribute.setEnabled(true);\n\t\t\tmergeAttributes.setEnabled(true);\n\t\t\tlogicalAttribute.setEnabled(true);\n\t\t\tremoveObject.setEnabled(true);\n\t\t\tremoveAttribute.setEnabled(true);\n\t\t\tcreateClusters.setEnabled(true);\n\t\t\tcompareAttributes.setEnabled(true);\n\t\t\tconvertToBinary.setEnabled(false);\n\t\t\tconvertToNested.setEnabled(true);\n\n\t\t\t/* Elements du menu \"Lattice\" */\n\t\t\tshowLatticeMenu.setEnabled(true);\n\n\t\t\t/* Elements du menu \"Rules\" */\n\t\t\tshowRulesMenu.setEnabled(true);\n\t\t}\n\n\t\telse if (currentContext instanceof ValuedContext) {\n\t\t\t/* Boutons de la toolbar */\n\t\t\tsaveBtn.setEnabled(true);\n\t\t\topenBtn.setEnabled(true);\n\t\t\tnewBinCtxBtn.setEnabled(true);\n\t\t\tremoveCtxBtn.setEnabled(true);\n\t\t\tnewAttributeBtn.setEnabled(true);\n\t\t\tnewObjectBtn.setEnabled(true);\n\t\t\tdelAttributeBtn.setEnabled(true);\n\t\t\tdelObjectBtn.setEnabled(true);\n\t\t\tshowLatBtn.setEnabled(false);\n\t\t\tshowRulesBtn.setEnabled(false);\n\n\t\t\t/* Elements du menu \"Edit\" */\n\t\t\taddEmptyLevel.setEnabled(false);\n\t\t\taddContextLevel.setEnabled(false);\n\t\t\tremoveLevel.setEnabled(false);\n\t\t\torderLevels.setEnabled(false);\n\t\t\taddObject.setEnabled(true);\n\t\t\taddAttribute.setEnabled(true);\n\t\t\tmergeAttributes.setEnabled(true);\n\t\t\tlogicalAttribute.setEnabled(false);\n\t\t\tcompareAttributes.setEnabled(false);\n\t\t\tremoveObject.setEnabled(true);\n\t\t\tremoveAttribute.setEnabled(true);\n\t\t\tcreateClusters.setEnabled(false);\n\t\t\tconvertToBinary.setEnabled(true);\n\t\t\tconvertToNested.setEnabled(false);\n\n\t\t\t/* Elements du menu \"Lattice\" */\n\t\t\tshowLatticeMenu.setEnabled(false);\n\n\t\t\t/* Elements du menu \"Rules\" */\n\t\t\tshowRulesMenu.setEnabled(false);\n\t\t}\n\n\t\telse {\n\t\t\t/* Boutons de la toolbar */\n\t\t\tsaveBtn.setEnabled(false);\n\t\t\topenBtn.setEnabled(false);\n\t\t\tnewBinCtxBtn.setEnabled(false);\n\t\t\tremoveCtxBtn.setEnabled(false);\n\t\t\tnewAttributeBtn.setEnabled(false);\n\t\t\tnewObjectBtn.setEnabled(false);\n\t\t\tdelAttributeBtn.setEnabled(false);\n\t\t\tdelObjectBtn.setEnabled(false);\n\t\t\tshowLatBtn.setEnabled(false);\n\t\t\tshowRulesBtn.setEnabled(false);\n\n\t\t\t/* Elements du menu \"Edit\" */\n\t\t\taddEmptyLevel.setEnabled(false);\n\t\t\taddContextLevel.setEnabled(false);\n\t\t\tremoveLevel.setEnabled(false);\n\t\t\torderLevels.setEnabled(false);\n\t\t\taddObject.setEnabled(false);\n\t\t\taddAttribute.setEnabled(false);\n\t\t\tmergeAttributes.setEnabled(false);\n\t\t\tlogicalAttribute.setEnabled(false);\n\t\t\tcompareAttributes.setEnabled(false);\n\t\t\tremoveObject.setEnabled(false);\n\t\t\tremoveAttribute.setEnabled(false);\n\t\t\tcreateClusters.setEnabled(false);\n\t\t\tconvertToBinary.setEnabled(false);\n\t\t\tconvertToNested.setEnabled(false);\n\n\t\t\t/* Elements du menu \"Lattice\" */\n\t\t\tshowLatticeMenu.setEnabled(false);\n\n\t\t\t/* Elements du menu \"Rules\" */\n\t\t\tshowRulesMenu.setEnabled(false);\n\t\t}\n\t}",
"public static void setState(States state) {\r\n\t\tcurrentState = state;\r\n\t}",
"public void setCurrentState(State currentState) {\n\t\tthis.currentState = currentState;\n\t}",
"public void setCurrentState(State currentState) {\n\t\tthis.currentState = currentState;\n\t}",
"public void initializeContext(Context context) {\n this.context = context;\n }",
"public void setState(State state) { model.setState(state); }",
"protected void aktualisieren() {\r\n\r\n\t}",
"public MyPhoneStateListener (Context context) {\n\t\t\n\t\tsuper();\n\t\tif (ConfigAppValues.getContext() == null)\n\t\t\tConfigAppValues.setContext(context);\t\t\n\t}",
"protected void storeCurrentValues() {\n }",
"private void setState( int state )\n {\n m_state.setState( state );\n }"
] |
[
"0.7439135",
"0.71658236",
"0.68650603",
"0.67529285",
"0.67113894",
"0.66310734",
"0.66194683",
"0.65703547",
"0.6565513",
"0.65614164",
"0.6531748",
"0.6521368",
"0.64842385",
"0.64023566",
"0.63885003",
"0.63439864",
"0.6244079",
"0.62406355",
"0.6198654",
"0.6184064",
"0.6180429",
"0.6158014",
"0.6154875",
"0.6127843",
"0.61269724",
"0.6104852",
"0.60868293",
"0.60724604",
"0.607055",
"0.6068557",
"0.60656065",
"0.606471",
"0.6010991",
"0.6005347",
"0.59943193",
"0.5949987",
"0.59326357",
"0.5925345",
"0.5893255",
"0.58909386",
"0.5876649",
"0.58528894",
"0.58135986",
"0.5790788",
"0.57719076",
"0.5752994",
"0.5750883",
"0.5750042",
"0.5748319",
"0.57333827",
"0.5733047",
"0.57255214",
"0.57253766",
"0.5710634",
"0.5708662",
"0.56863844",
"0.56744117",
"0.56726205",
"0.5669564",
"0.566072",
"0.56563765",
"0.56491286",
"0.5646994",
"0.5636697",
"0.5635662",
"0.5626982",
"0.5622325",
"0.5616755",
"0.5607206",
"0.56049013",
"0.5594937",
"0.5594937",
"0.5594937",
"0.5594937",
"0.55920446",
"0.5591561",
"0.55775416",
"0.5573625",
"0.55710363",
"0.55654484",
"0.5561603",
"0.5561603",
"0.5557317",
"0.5555407",
"0.5555407",
"0.5555407",
"0.55478764",
"0.5540883",
"0.5540883",
"0.5535044",
"0.5523289",
"0.5515946",
"0.55111",
"0.55111",
"0.55034703",
"0.5499531",
"0.5484102",
"0.547837",
"0.5472379",
"0.54683846"
] |
0.742112
|
1
|
Retrieve the actual editable property of this instance. Method is package private and can be used for instance in RDM
|
Boolean getIsEditable() {
return isEditable;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public final SimpleBooleanProperty editableProperty() {\n return this.editable;\n }",
"public final boolean getEditable() {\n return this.editableProperty().getValue();\n }",
"public final BooleanProperty editableProperty() {\n\n return this.getWrappedControl().editableProperty();\n }",
"public Boolean getCanEdit() {\r\n return getAttributeAsBoolean(\"canEdit\");\r\n }",
"public boolean isEditable()\n {\n return this.editable;\n }",
"public Object getReadOnlyObjectProperty() {\r\n return readOnlyObjectProperty;\r\n }",
"public java.lang.Boolean getEdit() {\n return edit;\n }",
"public boolean isEditable()\n\t{ return editable; }",
"public boolean isEditable() {\r\n return isEditable;\r\n }",
"public native boolean isEditable() /*-{\n\t\tvar jso = [email protected]::getJsObj()();\n\t\treturn jso.editable;\n }-*/;",
"public boolean isEditable()\n {\n return editable;\n }",
"public boolean isEditable() {\n\t\treturn isEditable;\n\t}",
"public boolean isEditable() {\n\t\treturn isEditable;\n\t}",
"public Boolean getEditFlag() {\n return editFlag;\n }",
"public boolean getEdited() {\r\n return this.edited;\r\n }",
"public Object getReadWriteObjectProperty() {\r\n return readWriteObjectProperty;\r\n }",
"public BooleanProperty modifiableProperty() {\n return modifiable;\n }",
"public boolean getEdited() {\r\n\t\treturn this.edited;\r\n\t}",
"public boolean isReadOnly()\n {\n return SystemProps.IsReadOnlyProperty(this.getPropertyID());\n }",
"public boolean getEditing() {\r\n return this.editing;\r\n }",
"public boolean isEditable()\n {\n return field.isEditable();\n }",
"public boolean isEditable() {\n \treturn model.isEditable();\n }",
"@Override\r\n\tpublic Object getEditableValue() {\n\t\treturn null;\r\n\t}",
"private String getPropertyValue() {\n return EmfPropertyHelper.getValue(itemPropertyDescriptor, eObject);\n }",
"public String getEdited() {\n return Edited;\n }",
"public Editable getEditable()\n\t\t{\n\t\t\tTargetType theTarget = new TargetType(Category.Force.RED);\n\t\t\tInvestigate investigate = new Investigate(\"investigating red targets\",\n\t\t\t\t\ttheTarget, DetectionEvent.IDENTIFIED, null);\n\t\t\treturn investigate;\n\t\t}",
"@Override\n\tpublic abstract EditableNode getEditable();",
"@ApiModelProperty(required = true, value = \"editable flag; true if user can modify payment order\")\n public Boolean getEditableByUser() {\n return editableByUser;\n }",
"public boolean isModifiable() {\n return modifiable.get();\n }",
"public boolean getEditfact() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException {\n return (((Boolean) __getCache(\"editfact\")).booleanValue());\n }",
"public boolean isEditable() {\n \t\treturn true;\n \t}",
"public boolean getReadOnly() {\n return readOnly;\n }",
"@Override\n public boolean isInEditMode() {\n return mEditable;\n }",
"@Override\n public boolean isInEditMode() {\n return mEditable;\n }",
"public java.lang.Boolean getAllowInvoiceEdit() {\n return allowInvoiceEdit;\n }",
"public boolean isReadOnly() {\r\n return this.readOnly;\r\n }",
"public DivisionDataEdit asEditable() {\n return new DivisionDataEdit(this);\n }",
"public final boolean isEdited(){\n\t\treturn JsUtils.getNativePropertyBoolean(this, \"edited\");\n\t}",
"public Document obtainEditableInstance()\n throws WorkflowException, MappingException, RepositoryException, RemoteException;",
"public native void setEditable(boolean value) /*-{\n\t\tvar jso = [email protected]::getJsObj()();\n\t\tjso.editable = value;\n }-*/;",
"public ReadOnlyProperty<BusinessObject> ownerProperty() {\n\t\treturn _ownerProperty();\n\t}",
"public EditTaskOption getEditTaskOption() {\n return (EditTaskOption) commandData.get(CommandProperties.EDIT_SET_PROPERTY);\n }",
"public boolean getEditableActualCosts()\r\n {\r\n return (m_editableActualCosts);\r\n }",
"public String getReadonlyFlag() {\n return readonlyFlag;\n }",
"@JSProperty\n boolean isReadOnly();",
"@Override\n public boolean isPropertyEditable(String propertyName) {\n if (propertyName.startsWith(\"document.committeeList[0].committeeMemberships[\")) {\n return true;\n } else {\n return super.isPropertyEditable(propertyName);\n }\n }",
"public final String getReadOnlyAttribute() {\n return getAttributeValue(\"readonly\");\n }",
"public Boolean getEditByCell() throws IllegalStateException {\r\n errorIfNotCreated(\"editByCell\");\r\n return getAttributeAsBoolean(\"editByCell\");\r\n }",
"public TLPropertyOwner getOwner() {\n return propertyOwner;\n }",
"protected boolean isEdit(){\n\t\treturn getArguments().getBoolean(ARG_KEY_IS_EDIT);\n\t}",
"public String getReadWriteAttribute();",
"protected PropertyChangeSupport getPropertyChange() {\r\n\t\tif (propertyChange == null) {\r\n\t\t\tpropertyChange = new PropertyChangeSupport(this);\r\n\t\t}\r\n\t\t;\r\n\t\treturn propertyChange;\r\n\t}",
"public String getEditor() {\n return (String)getAttributeInternal(EDITOR);\n }",
"public String getEditor() {\n return (String)getAttributeInternal(EDITOR);\n }",
"protected final boolean isReadOnly()\n {\n return m_readOnly;\n }",
"ReadOnlyObjectProperty<TeamId> winningTeamProperty() {\n return winningTeam;\n }",
"public final ObjectProperty<EventHandler<ListView.EditEvent<T>>> onEditCommitProperty() {\n\n return this.getWrappedControl().onEditCommitProperty();\n }",
"@Override\n\tpublic int getAccessible() {\n\t\treturn _userSync.getAccessible();\n\t}",
"public java.lang.String getEditInfoResult() {\r\n return localEditInfoResult;\r\n }",
"public Object getValue() {\n\t\tif (present || isRequired()) {\t\t\t\n\t\t\treturn editorBinder.populateBackingObject();\n\t\t}\n\t\treturn null;\n\t}",
"public Object get()\n {\n return m_internalValue;\n }",
"protected abstract Entity getEditedEntity();",
"public final boolean isReadOnly() {\n\t\treturn m_info.isReadOnly();\n\t}",
"@Api(1.0)\n public HaloPreferencesStorageEditor edit() {\n if (mCurrentEditor == null) {\n mCurrentEditor = new HaloPreferencesStorageEditor(getSharedPreferences());\n }\n return mCurrentEditor;\n }",
"public boolean isCValueEditable();",
"@objid (\"808c085c-1dec-11e2-8cad-001ec947c8cc\")\n @Override\n public IEditableText getEditableText() {\n for (GmNodeModel child : getChildren()) {\n if (child.getEditableText() != null) {\n return child.getEditableText();\n }\n }\n return super.getEditableText();\n }",
"public boolean isTableEditable() {\n return tableEditable;\n }",
"@Override\n public boolean isReadOnly() {\n return controller.getAttributeReadOnlyStatus(getBinding()) != null || cellLocation.getRowIndexes() != null;\n }",
"public Date getEditTime() {\n return editTime;\n }",
"protected java.beans.PropertyChangeSupport getPropertyChange() {\n\t\tif (propertyChange == null) {\n\t\t\tpropertyChange = new java.beans.PropertyChangeSupport(this);\n\t\t};\n\t\treturn propertyChange;\n\t}",
"public void setEditable(boolean editable)\n\t{ this.editable = editable; }",
"public VocabularyConcept getEditableConcept() {\r\n for (VocabularyConcept vc : vocabularyConcepts.getList()) {\r\n if (vc != null) {\r\n return vc;\r\n }\r\n }\r\n return null;\r\n }",
"boolean isEditable();",
"public final ReadOnlyIntegerProperty editingIndexProperty() {\n\n return this.getWrappedControl().editingIndexProperty();\n }",
"public @Bool boolean getLocked()\n\t\tthrows PropertyNotPresentException;",
"@Override\n\t\tpublic void setEditable(boolean isEditable) {\n\n\t\t}",
"public boolean getInternal()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(INTERNAL$4, 0);\n if (target == null)\n {\n return false;\n }\n return target.getBooleanValue();\n }\n }",
"public boolean isViewable()\n {\n return this.isEditable() || this.viewable;\n }",
"public boolean getEditplan() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException {\n return (((Boolean) __getCache(\"editplan\")).booleanValue());\n }",
"public FieldModifierPropertyEditor() {\n super(Modifier.PUBLIC | Modifier.PROTECTED | Modifier.PRIVATE | Modifier.STATIC |\n Modifier.FINAL | Modifier.TRANSIENT | Modifier.VOLATILE);\n }",
"public default boolean isEditable(){ return false; }",
"public String getModifyEmp() {\n return modifyEmp;\n }",
"@Kroll.getProperty(name = \"properties\")\n public KrollDict getRevisionProperties() {\n return super.getRevisionProperties();\n }",
"public boolean isReadOnly() {\n return _readOnly != null && _readOnly;\n }",
"public final MWC.GUI.Editable.EditorType getInfo()\r\n\t{\r\n\t\tif (_myEditor == null)\r\n\t\t\t_myEditor = new FieldInfo(this, this.getName());\r\n\r\n\t\treturn _myEditor;\r\n\t}",
"public boolean isReadOnly() {\n return readOnly;\n }",
"public java.lang.String getAccession()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ACCESSION$2, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }",
"public Date getEditDate() {\n return editDate;\n }",
"public int getPropertyShowMode()\n {\n return propertyShowMode;\n }",
"public int getOldProperty_descriptionType(){\n return localOldProperty_descriptionType;\n }",
"public boolean isReadOnly() {\r\n\t\treturn readOnly;\r\n\t}",
"public Integer getModifyMan() {\n return modifyMan;\n }",
"public boolean isReadOnly();",
"public boolean isReadOnly();",
"public boolean isReadOnly();",
"public java.lang.String getOldProperty_description(){\n return localOldProperty_description;\n }",
"public boolean isEditableByUser() {\r\n if ((this.currentStatusChange == null) ||\r\n (this.currentStatusChange.equals(PoStatusCode.PROPOSED)))\r\n return true;\r\n return false;\r\n }",
"public boolean isReadOnly() {\n\t\treturn false;\n\t}",
"@JsonProperty(\"readOnly\")\n public Boolean getReadOnly() {\n return readOnly;\n }",
"public Boolean getEditar() {\r\n\t\treturn editar;\r\n\t}"
] |
[
"0.8174808",
"0.797559",
"0.79053617",
"0.7107611",
"0.70037246",
"0.69291395",
"0.6904354",
"0.68903166",
"0.6887089",
"0.6761811",
"0.67617095",
"0.67511773",
"0.67511773",
"0.6727647",
"0.66810924",
"0.667227",
"0.6670334",
"0.66436774",
"0.65916044",
"0.65549964",
"0.65428007",
"0.6427307",
"0.64069414",
"0.6356138",
"0.6350194",
"0.6346294",
"0.63404316",
"0.6310846",
"0.6292403",
"0.6272202",
"0.62710404",
"0.62035114",
"0.6188951",
"0.6188951",
"0.618078",
"0.61716366",
"0.6166214",
"0.61605924",
"0.6126267",
"0.609149",
"0.6084645",
"0.6042289",
"0.6028052",
"0.6025475",
"0.6021685",
"0.600909",
"0.5985082",
"0.5983923",
"0.5935952",
"0.59352547",
"0.5893876",
"0.5861705",
"0.58463764",
"0.58463764",
"0.58322394",
"0.5825749",
"0.58250916",
"0.58166593",
"0.5803324",
"0.57695127",
"0.57611614",
"0.5760261",
"0.57486916",
"0.5745512",
"0.5740367",
"0.5727581",
"0.57233393",
"0.57220334",
"0.5718219",
"0.57103246",
"0.56924295",
"0.569115",
"0.5688824",
"0.5678625",
"0.56725365",
"0.5666713",
"0.56638074",
"0.5661297",
"0.5656339",
"0.56462514",
"0.5642562",
"0.5641597",
"0.5640354",
"0.56378436",
"0.5636934",
"0.56307644",
"0.5625833",
"0.5621855",
"0.56136745",
"0.56129056",
"0.5612893",
"0.56114644",
"0.5602224",
"0.5602224",
"0.5602224",
"0.55980784",
"0.5591249",
"0.55909264",
"0.5590484",
"0.5580414"
] |
0.749137
|
3
|
Set context editable. The method does not persist this information in the DB.
|
public void setEditable(boolean editable)
{
isEditable = editable;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setEditable(boolean editable)\n\t{ this.editable = editable; }",
"@Override\n\t\tpublic void setEditable(boolean isEditable) {\n\n\t\t}",
"public void setEditable(boolean editable)\n {\n this.editable = editable;\n }",
"public abstract void setEnabled(Context context, boolean enabled);",
"public native void setEditable(boolean value) /*-{\n\t\tvar jso = [email protected]::getJsObj()();\n\t\tjso.editable = value;\n }-*/;",
"public void setEditable(boolean editable) {\n\t\tthis.editable = editable;\n\t}",
"public void setEditable(boolean editable) {\n mEditable = editable;\n }",
"public void setEditable(boolean editable) {\n mEditable = editable;\n }",
"public void setEditablePlaCta(boolean editable)\n {\n if (editable==true)\n {\n objTblModPlaCta.setModoOperacion(objTblModPlaCta.INT_TBL_INS);\n }\n else\n {\n objTblModPlaCta.setModoOperacion(objTblModPlaCta.INT_TBL_NO_EDI);\n }\n }",
"@Override\r\n\tpublic void setContext(Context context) {\r\n\t\tthis.context = context;\r\n\t}",
"private void editMode() {\n\t\t// Set the boolean to true to indicate in edit mode\n\t\teditableEditTexts();\n\t\thideEditDelete();\n\t\thideEmail();\n\t\tshowSaveAndAdd();\n\t\tshowThatEditable();\n\t}",
"void setUserIsActiveEditable(boolean b);",
"public DictationModel setContext(Context context) {\n this.context = context;\n return this;\n }",
"public void setEntityContext(final EntityContext ctx) {\n ejbContext = ctx;\n testAllowedOperations(\"setEntityContext\");\n }",
"public void setExposeAccessContext(boolean exposeAccessContext)\r\n/* 34: */ {\r\n/* 35: 95 */ this.exposeAccessContext = exposeAccessContext;\r\n/* 36: */ }",
"public final void setEditable(boolean value) {\n this.editableProperty().setValue(value);\n }",
"public void setProtected()\n {\n ensureLoaded();\n m_flags.setProtected();\n setModified(true);\n }",
"private void setActiveActions() {\n\t\tnewBinaryContext.setEnabled(true);\n\t\tnewValuedContext.setEnabled(true);\n\t\tnewNestedContext.setEnabled(true);\n\t\topenContext.setEnabled(true);\n\t\tsaveContext.setEnabled(true);\n\t\tsaveAsContext.setEnabled(true);\n\t\tsaveAllContexts.setEnabled(true);\n\t\tcloseContext.setEnabled(true);\n\t\tcloseAllContexts.setEnabled(true);\n\t\tquitViewer.setEnabled(true);\n\n\t\tif (contextPanes.size() == 0) {\n\t\t\t/* Boutons de la toolbar */\n\t\t\tsaveBtn.setEnabled(false);\n\t\t\topenBtn.setEnabled(true);\n\t\t\tnewBinCtxBtn.setEnabled(true);\n\t\t\tremoveCtxBtn.setEnabled(false);\n\t\t\tnewAttributeBtn.setEnabled(false);\n\t\t\tnewObjectBtn.setEnabled(false);\n\t\t\tdelAttributeBtn.setEnabled(false);\n\t\t\tdelObjectBtn.setEnabled(false);\n\t\t\tshowLatBtn.setEnabled(false);\n\t\t\tshowRulesBtn.setEnabled(false);\n\n\t\t\t/* Elements du menu \"Edit\" */\n\t\t\taddEmptyLevel.setEnabled(false);\n\t\t\taddContextLevel.setEnabled(false);\n\t\t\tremoveLevel.setEnabled(false);\n\t\t\torderLevels.setEnabled(false);\n\t\t\taddObject.setEnabled(false);\n\t\t\taddAttribute.setEnabled(false);\n\t\t\tmergeAttributes.setEnabled(false);\n\t\t\tlogicalAttribute.setEnabled(false);\n\t\t\tcompareAttributes.setEnabled(false);\n\t\t\tremoveObject.setEnabled(false);\n\t\t\tremoveAttribute.setEnabled(false);\n\t\t\tcreateClusters.setEnabled(false);\n\t\t\tconvertToBinary.setEnabled(false);\n\t\t\tconvertToNested.setEnabled(false);\n\n\t\t\t/* Elements du menu \"Lattice\" */\n\t\t\tshowLatticeMenu.setEnabled(false);\n\n\t\t\t/* Elements du menu \"Rules\" */\n\t\t\tshowRulesMenu.setEnabled(false);\n\t\t\treturn;\n\t\t}\n\n\t\tContextTableScrollPane selectedPane = contextPanes\n\t\t\t\t.elementAt(currentContextIdx);\n\t\tContext currentContext = ((ContextTableModel) selectedPane\n\t\t\t\t.getContextTable().getModel()).getContext();\n\n\t\tif (currentContext instanceof NestedContext) {\n\t\t\t/* Boutons de la toolbar */\n\t\t\tsaveBtn.setEnabled(true);\n\t\t\topenBtn.setEnabled(true);\n\t\t\tnewBinCtxBtn.setEnabled(true);\n\t\t\tremoveCtxBtn.setEnabled(true);\n\t\t\tnewAttributeBtn.setEnabled(false);\n\t\t\tnewObjectBtn.setEnabled(false);\n\t\t\tdelAttributeBtn.setEnabled(false);\n\t\t\tdelObjectBtn.setEnabled(false);\n\t\t\tshowLatBtn.setEnabled(true);\n\t\t\tshowRulesBtn.setEnabled(true);\n\n\t\t\t/* Elements du menu \"Edit\" */\n\t\t\taddEmptyLevel.setEnabled(true);\n\t\t\taddContextLevel.setEnabled(true);\n\t\t\tremoveLevel.setEnabled(true);\n\t\t\torderLevels.setEnabled(true);\n\t\t\taddObject.setEnabled(false);\n\t\t\taddAttribute.setEnabled(false);\n\t\t\tmergeAttributes.setEnabled(false);\n\t\t\tlogicalAttribute.setEnabled(false);\n\t\t\tcompareAttributes.setEnabled(false);\n\t\t\tremoveObject.setEnabled(false);\n\t\t\tremoveAttribute.setEnabled(false);\n\t\t\tcreateClusters.setEnabled(false);\n\t\t\tconvertToBinary.setEnabled(true);\n\t\t\tconvertToNested.setEnabled(false);\n\n\t\t\t/* Elements du menu \"Lattice\" */\n\t\t\tshowLatticeMenu.setEnabled(true);\n\n\t\t\t/* Elements du menu \"Rules\" */\n\t\t\tshowRulesMenu.setEnabled(true);\n\t\t}\n\n\t\telse if (currentContext instanceof BinaryContext) {\n\t\t\t/* Boutons de la toolbar */\n\t\t\tsaveBtn.setEnabled(true);\n\t\t\topenBtn.setEnabled(true);\n\t\t\tnewBinCtxBtn.setEnabled(true);\n\t\t\tremoveCtxBtn.setEnabled(true);\n\t\t\tnewAttributeBtn.setEnabled(true);\n\t\t\tnewObjectBtn.setEnabled(true);\n\t\t\tdelAttributeBtn.setEnabled(true);\n\t\t\tdelObjectBtn.setEnabled(true);\n\t\t\tshowLatBtn.setEnabled(true);\n\t\t\tshowRulesBtn.setEnabled(true);\n\n\t\t\t/* Elements du menu \"Edit\" */\n\t\t\taddEmptyLevel.setEnabled(false);\n\t\t\taddContextLevel.setEnabled(false);\n\t\t\tremoveLevel.setEnabled(false);\n\t\t\torderLevels.setEnabled(false);\n\t\t\taddObject.setEnabled(true);\n\t\t\taddAttribute.setEnabled(true);\n\t\t\tmergeAttributes.setEnabled(true);\n\t\t\tlogicalAttribute.setEnabled(true);\n\t\t\tremoveObject.setEnabled(true);\n\t\t\tremoveAttribute.setEnabled(true);\n\t\t\tcreateClusters.setEnabled(true);\n\t\t\tcompareAttributes.setEnabled(true);\n\t\t\tconvertToBinary.setEnabled(false);\n\t\t\tconvertToNested.setEnabled(true);\n\n\t\t\t/* Elements du menu \"Lattice\" */\n\t\t\tshowLatticeMenu.setEnabled(true);\n\n\t\t\t/* Elements du menu \"Rules\" */\n\t\t\tshowRulesMenu.setEnabled(true);\n\t\t}\n\n\t\telse if (currentContext instanceof ValuedContext) {\n\t\t\t/* Boutons de la toolbar */\n\t\t\tsaveBtn.setEnabled(true);\n\t\t\topenBtn.setEnabled(true);\n\t\t\tnewBinCtxBtn.setEnabled(true);\n\t\t\tremoveCtxBtn.setEnabled(true);\n\t\t\tnewAttributeBtn.setEnabled(true);\n\t\t\tnewObjectBtn.setEnabled(true);\n\t\t\tdelAttributeBtn.setEnabled(true);\n\t\t\tdelObjectBtn.setEnabled(true);\n\t\t\tshowLatBtn.setEnabled(false);\n\t\t\tshowRulesBtn.setEnabled(false);\n\n\t\t\t/* Elements du menu \"Edit\" */\n\t\t\taddEmptyLevel.setEnabled(false);\n\t\t\taddContextLevel.setEnabled(false);\n\t\t\tremoveLevel.setEnabled(false);\n\t\t\torderLevels.setEnabled(false);\n\t\t\taddObject.setEnabled(true);\n\t\t\taddAttribute.setEnabled(true);\n\t\t\tmergeAttributes.setEnabled(true);\n\t\t\tlogicalAttribute.setEnabled(false);\n\t\t\tcompareAttributes.setEnabled(false);\n\t\t\tremoveObject.setEnabled(true);\n\t\t\tremoveAttribute.setEnabled(true);\n\t\t\tcreateClusters.setEnabled(false);\n\t\t\tconvertToBinary.setEnabled(true);\n\t\t\tconvertToNested.setEnabled(false);\n\n\t\t\t/* Elements du menu \"Lattice\" */\n\t\t\tshowLatticeMenu.setEnabled(false);\n\n\t\t\t/* Elements du menu \"Rules\" */\n\t\t\tshowRulesMenu.setEnabled(false);\n\t\t}\n\n\t\telse {\n\t\t\t/* Boutons de la toolbar */\n\t\t\tsaveBtn.setEnabled(false);\n\t\t\topenBtn.setEnabled(false);\n\t\t\tnewBinCtxBtn.setEnabled(false);\n\t\t\tremoveCtxBtn.setEnabled(false);\n\t\t\tnewAttributeBtn.setEnabled(false);\n\t\t\tnewObjectBtn.setEnabled(false);\n\t\t\tdelAttributeBtn.setEnabled(false);\n\t\t\tdelObjectBtn.setEnabled(false);\n\t\t\tshowLatBtn.setEnabled(false);\n\t\t\tshowRulesBtn.setEnabled(false);\n\n\t\t\t/* Elements du menu \"Edit\" */\n\t\t\taddEmptyLevel.setEnabled(false);\n\t\t\taddContextLevel.setEnabled(false);\n\t\t\tremoveLevel.setEnabled(false);\n\t\t\torderLevels.setEnabled(false);\n\t\t\taddObject.setEnabled(false);\n\t\t\taddAttribute.setEnabled(false);\n\t\t\tmergeAttributes.setEnabled(false);\n\t\t\tlogicalAttribute.setEnabled(false);\n\t\t\tcompareAttributes.setEnabled(false);\n\t\t\tremoveObject.setEnabled(false);\n\t\t\tremoveAttribute.setEnabled(false);\n\t\t\tcreateClusters.setEnabled(false);\n\t\t\tconvertToBinary.setEnabled(false);\n\t\t\tconvertToNested.setEnabled(false);\n\n\t\t\t/* Elements du menu \"Lattice\" */\n\t\t\tshowLatticeMenu.setEnabled(false);\n\n\t\t\t/* Elements du menu \"Rules\" */\n\t\t\tshowRulesMenu.setEnabled(false);\n\t\t}\n\t}",
"public void setContextObject(Object co) {\n context = co;\n }",
"protected void initModifyMode(E selectedObject) {\n if(isEditable()) {\n if (canModify(selectedObject)) {\n viewRowState = false;\n setEnabled(Button.Modify, true);\n modifyButton.setText(getResourceMap().getString(\"modifyAction.Action.text\"));\n } else {\n initQueryMode(selectedObject);\n }\n } else if (canView(selectedObject)) {\n enableViewButton();\n }\n\n setEnabled(Button.Delete, canDelete(selectedObject));\n setEnabled(Button.New, canCreate());\n }",
"@Override\n\tpublic void setContext(Context pContext) {\n\n\t}",
"public void setEdit(boolean bool){\r\n edit = bool;\r\n }",
"public void setEditable(boolean editable) {\n GtkEditable.setEditable(this, editable);\n }",
"public void setEditable(boolean newState) {\n if (editable == newState) {\n return;\n }\n boolean oldState = this.editable;\n this.editable = newState;\n firePropertyChange(\"editable\", Boolean.valueOf(oldState), Boolean.valueOf(newState));\n }",
"void setContext(Map<String, Object> context);",
"public void setEditable(boolean editable)\n {\n field.setEditable(editable);\n performFlags();\n }",
"public void setContextInvalid() {\n fValidContext[fCurrentContext] = false;\n }",
"public void setEditable(boolean editable) {\n\t\tmIsEditable = editable;\n\t\tupdateMouseListening();\n\t\t}",
"public void setContext(Context _context) {\n context = _context;\n }",
"public void setContextEnabled(Boolean contextEnabled) {\n this.contextEnabled = contextEnabled;\n }",
"public void editSupplierMode() {\n\n\t\t// disable selection list\n\t\tsupplierList.setEnabled(false);\n\t\taddressTF.setBackground(Color.white);\n\n\t\tnameTF.setEditable(false);\n\t\tidTF.setEditable(false);\n\t\teMailTF.setEditable(true);\n\t\taddressTF.setEditable(true);\n\t\ttelTF.setEditable(true);\n\n\t\t// disable/enable appropriate buttons\n\t\tremoveItemButton.setEnabled(false);\n\t\tnewCustomerButton.setEnabled(false);\n\t\tsaveItemButton.setVisible(true);\n\t\tcancelBtn.setVisible(true);\n\t}",
"public void set(T v) {\n\t\tset(v, ModSettings.currentContext);\n\t}",
"void setContext(Context context) {\n\t\tthis.context = context;\n\t}",
"public void setEditable(boolean editable) {\n/* 1029 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"public void setEditable(boolean editable){\n mEditable = editable;\n if(!editable){\n hideSoftInput();\n }\n }",
"public void setContext(Context conti) {\n\t\tthis.cont = conti;\n\t}",
"private void changeContext(){\n MainWorkflow.observeContexts(generateRandom(24,0));\n }",
"private void setEditable(boolean editable) {\n nameTextField.setEditable(editable);\n lastNameTextField.setEditable(editable);\n dniTextField.setEditable(editable);\n addressTextField.setEditable(editable);\n telephoneTextField.setEditable(editable);\n }",
"public void setCValueEditable(boolean status);",
"public void setEntityContext(EntityContext aContext) {\n context = aContext;\n }",
"public void setEntityContext(EntityContext aContext) {\n context = aContext;\n }",
"public void setEntityContext(EntityContext aContext) {\n context = aContext;\n }",
"public void setEntityContext(EntityContext aContext) {\n context = aContext;\n }",
"private void changeEditMode(boolean on) {\n if (on) {\n etFirstName.setEnabled(true);\n etFirstName.setSelection(etFirstName.getText().length());\n etPhoneNo.setEnabled(true);\n etAdress.setEnabled(true);\n etPostal.setEnabled(true);\n\n tvCountry.setCompoundDrawablesRelativeWithIntrinsicBounds(0, 0, R.drawable.ic_down, 0);\n tvState.setCompoundDrawablesRelativeWithIntrinsicBounds(0, 0, R.drawable.ic_down, 0);\n tvCity.setCompoundDrawablesRelativeWithIntrinsicBounds(0, 0, R.drawable.ic_down, 0);\n } else {\n etFirstName.setEnabled(false);\n etPhoneNo.setEnabled(false);\n etAdress.setEnabled(false);\n etPostal.setEnabled(false);\n\n tvCountry.setCompoundDrawablesRelativeWithIntrinsicBounds(0, 0, 0, 0);\n tvState.setCompoundDrawablesRelativeWithIntrinsicBounds(0, 0, 0, 0);\n tvCity.setCompoundDrawablesRelativeWithIntrinsicBounds(0, 0, 0, 0);\n }\n }",
"public void setCanEdit(Boolean canEdit) {\r\n setAttribute(\"canEdit\", canEdit, true);\r\n }",
"public void editable() {\r\n\t\tzoneAffichage.setEditable(true);\r\n\t\tzoneAffichage.setBackground(Color.WHITE);\r\n\t\tzoneAffichage.setFocusable(true);\r\n\t\tzoneAffichage.setCursor(Cursor.getDefaultCursor());\r\n\t}",
"public void toggleEdit()\n {\n \tif (editMode == false) {\n \t\teditMode = true;\n \t} else {\n \t\teditMode = false;\n \t}\n }",
"public abstract void set(T v, String context);",
"public void setEntityContext(EntityContext ctx) {\n _ctx = ctx;\n }",
"public boolean isEditable()\n\t{ return editable; }",
"@Override\r\n\t\t\tprotected void saveContext() {\n\t\t\t\t\r\n\t\t\t}",
"protected abstract void setContextAttribute(String name, Object value);",
"public final native void setEdited(boolean edited) /*-{\n\t\tthis.edited = edited;\n\t}-*/;",
"@Override\n public boolean isInEditMode() {\n return mEditable;\n }",
"@Override\n public boolean isInEditMode() {\n return mEditable;\n }",
"public boolean doModify() {\n return true;\n }",
"public void onEntry(TraversableContext dataContext) {\n IDEController.getInstance().ensureProjectWithoutParsing();\r\n\r\n final ProjectConfiguration editableConf =\r\n ProjectConfiguration.getProjectConfiguration(dataContext);\r\n\r\n if (editableConf == null) {\r\n return;\r\n }\r\n \r\n options.loadChoicesToPropertyEditors(editableConf);\r\n }",
"public synchronized static void setContext(Context con){\n\t\tcontext = con;\n\t}",
"public void setContext(Context context) {\n this.context = context;\n }",
"public void context_save(long context) {\n context_save(nativeHandle, context);\n }",
"public void setContext(ComponentContext ctx)\n\t{\n\t\tthis.context = ctx;\n\t}",
"@Override\n public boolean canEdit(Context context, Item item) throws java.sql.SQLException\n {\n // can this person write to the item?\n return authorizeService.authorizeActionBoolean(context, item, Constants.WRITE, true);\n }",
"static void setNotEdit(){isEditing=false;}",
"public void setContext(Context context) {\n this.contextMain = context;\n }",
"@Override\n\tpublic Void setContext(Context context) {\n\t\treturn null;\n\t}",
"public boolean isEditable()\n {\n return editable;\n }",
"private void edit() {\n\n\t}",
"private void setTagEditable(boolean bool){\n \t\teditTag.setVisible(!bool);\r\n \t\teditTag.setVisible(bool); //actually we want editTag visible false\r\n \t\t\r\n \t\tviewTag.setVisible(bool);\r\n \t\tviewTag.setVisible(!bool); //actually we want viewTag visible true\r\n \t}",
"@Override\n public void onClick(View v) {\n enableEditMode();\n }",
"public void setColumnEditable(int columnIndex, boolean editable){\n\t\tcheckColumnIndex(columnIndex);\n\t\t((TextEditingSupport)(tableViewer.getTable().getColumn(columnIndex).\n\t\t\t\tgetData(TEXT_EDITING_SUPPORT_KEY))).setColumnEditable(editable);\n\t}",
"private void setMemberInformationPanelEditableTrue() {\n \n fNameTF.setEditable(true);\n lNameTF.setEditable(true);\n cprTF.setEditable(true);\n cityTF.setEditable(true);\n adressTF.setEditable(true);\n emailTF.setEditable(true);\n memberIdTF.setEditable(true);\n fNameTF.setEditable(true);\n phoneTF.setEditable(true);\n postalCodeTF.setEditable(true);\n adressNrTF.setEditable(true);\n changePictureBTN.setEnabled(true);\n }",
"public boolean isEditable() {\n \t\treturn true;\n \t}",
"public void setUserContext(UserContext userContext);",
"@Override\r\n\tpublic void edit() {\n\t\t\r\n\t}",
"public boolean isEditable() {\r\n return isEditable;\r\n }",
"public abstract void setValue(ELContext context, Object value);",
"public void editEnabled(boolean enabled){\n }",
"public void setEditable(boolean theBool) {\n if (!theBool) {\n editable = false;\n this.addButton.setEnabled(false);\n this.deleteButton.setEnabled(false);\n }\n }",
"public void setModifiable(boolean modifiable) {\n this.modifiable.set(modifiable);\n }",
"public boolean isEditable()\n {\n return this.editable;\n }",
"public void setEditable(boolean edit) {\n deg.setEditable(edit);\n if(mn != null)\n mn.setEditable(edit);\n if(sec != null)\n sec.setEditable(edit);\n }",
"public void setTableEditable(boolean editable) {\n boolean oldEditable = this.tableEditable;\n this.tableEditable = editable;\n propertyChangeSupport.firePropertyChange(\"tableEditable\", \n oldEditable,\n tableEditable);\n }",
"public void setContext(ActionBeanContext context) {\r\n this.context = context;\r\n }",
"void saveContext();",
"public void setEditUser(User editUser)\r\n/* */ {\r\n/* 179 */ this.editUser = editUser;\r\n/* */ }",
"public void setEditedItem(Object item) {editedItem = item;}",
"@Override\n\tprotected void initForEdit(AWRequestContext requestContext) {\n\n\t}",
"public void setEdit() {\n keyTextField.setEditable(false);\n }",
"private void setDirty() {\n\t}",
"public void setPrivate()\n {\n ensureLoaded();\n m_flags.setPrivate();\n setModified(true);\n }",
"Boolean getIsEditable() {\n\t\treturn isEditable;\n\t}",
"public void setupEditMode(MainGame game){\n GLFW.glfwSetKeyCallback(DisplayManager.getWindow(), (handle, key, scancode, action, mods) -> {\n if (key == GLFW_KEY_1) {\n objectType = 1;\n MouseHandler.disable();\n } else if (key == GLFW_KEY_2){\n objectType = 2;\n MouseHandler.disable();\n } else if (key == GLFW_KEY_ESCAPE){\n objectType = -1;\n MouseHandler.enable();\n } else if (key == GLFW_KEY_F5){\n entities.removeAll(trees);\n trees.clear();\n GameLoader.loadGameFile(\"./res/courses/terrainSaveFile.txt\", game);\n entities.addAll(trees);\n terrain.updateTerrain(loader);\n } else if (key == GLFW_KEY_F10){\n GameSaver.saveGameFile(\"saveGame\", game);\n }\n });\n }",
"public void setEditfact( boolean newValue ) {\n __setCache(\"editfact\", new Boolean(newValue));\n }",
"@Override\r\n\tpublic void setCamelContext(CamelContext ctx) {\n\t\tthis.ctx = ctx;\r\n\t}",
"public void setContext( TextComponentContext oContext ) throws TextComponentException {\n\t\tsuper.setContext(oContext);\n\t\tSystem.out.println(\"Industry: \"+oContext.m_sIndustry);\n\t\tSystem.out.println(\"Region: \"+oContext.m_sRegion);\n\t\tSystem.out.println(\"Extension: \"+oContext.m_sExtension);\n\t}",
"private void modifyContext(final ContextModifier modifier) throws ConfigurationException {\n TomcatModuleConfiguration.<Context>modifyConfiguration(contextDataObject, new ConfigurationModifier<Context>() {\n\n @Override\n public void modify(Context configuration) {\n modifier.modify(configuration);\n }\n @Override\n public void finished(Context configuration) {\n synchronized (TomcatModuleConfiguration.this) {\n context = configuration;\n }\n }\n }, new ConfigurationFactory<Context>() {\n\n @Override\n public Context create(byte[] content) {\n return Context.createGraph(new ByteArrayInputStream(content));\n }\n }, new ConfigurationValue<Context>() {\n\n @Override\n public Context getValue() throws ConfigurationException {\n return getContext();\n }\n });\n }",
"private void setReadOnlyMode() {\n// mFileTitleEditText.setEnabled(false);\n// mDocContentEditText.setEnabled(false);\n mOpenFileId = null;\n }",
"public void editOperation() {\n\t\t\r\n\t}",
"public void setContext(Context ctx) {\n\t\tprefs = PreferenceManager.getDefaultSharedPreferences(ctx);\n\t\tupdateNextIdx();\n\t}",
"@Override\n public void sync(Context context) {\n context.setCandidateSet(Database.getCandidateSet());\n context.setVoterSet(Database.getVoterSet());\n context.setLogins(Database.getLogins());\n context.setCommissionerSet(Database.getCommissionerSet());\n }"
] |
[
"0.61719906",
"0.61016095",
"0.60766226",
"0.5979251",
"0.5934536",
"0.59178364",
"0.5794056",
"0.5794056",
"0.5793619",
"0.5779002",
"0.576703",
"0.5765157",
"0.57346004",
"0.57016325",
"0.569566",
"0.5681507",
"0.56656253",
"0.56318116",
"0.5629969",
"0.5585167",
"0.558296",
"0.55678463",
"0.5560953",
"0.55540496",
"0.55041414",
"0.5500373",
"0.54974747",
"0.5494912",
"0.54810834",
"0.5478497",
"0.54776007",
"0.54669887",
"0.54531604",
"0.5439527",
"0.5435377",
"0.54033166",
"0.5396325",
"0.5388642",
"0.53840643",
"0.53837633",
"0.53837633",
"0.53837633",
"0.53837633",
"0.538113",
"0.53790236",
"0.5348318",
"0.5343306",
"0.5342124",
"0.5310427",
"0.5309025",
"0.53085667",
"0.5306179",
"0.5301566",
"0.5298993",
"0.5298993",
"0.5273098",
"0.5270258",
"0.52662027",
"0.5258173",
"0.52578795",
"0.525705",
"0.52419925",
"0.523362",
"0.52326876",
"0.52317286",
"0.52150226",
"0.52088803",
"0.5206825",
"0.51892996",
"0.5188421",
"0.5183669",
"0.5181927",
"0.5178482",
"0.5163296",
"0.5160695",
"0.5158646",
"0.5157921",
"0.51560974",
"0.51547164",
"0.51306105",
"0.51293194",
"0.51278913",
"0.512686",
"0.51061857",
"0.5098936",
"0.5086962",
"0.5075142",
"0.5070504",
"0.50675774",
"0.5066918",
"0.5052425",
"0.5051176",
"0.5048844",
"0.50466114",
"0.5046016",
"0.50439626",
"0.5039679",
"0.5018525",
"0.50155777",
"0.50080913"
] |
0.59370965
|
4
|
Converts the context meta information into a humanreadable tooltip (e.g. for display in a table or list).
|
public String tooltip()
{
if (contextURI==null)
return "(no context specified)";
if (contextURI.equals(Vocabulary.SYSTEM_CONTEXT.METACONTEXT))
return "MetaContext (stores data about contexts)";
if(contextURI.equals(Vocabulary.SYSTEM_CONTEXT.VOIDCONTEXT))
return "VoID Context (stores statistics about contexts)";
if (type!=null && timestamp!=null)
{
GregorianCalendar c = new GregorianCalendar();
c.setTimeInMillis(timestamp);
String date = ReadWriteDataManagerImpl.dateToISOliteral(c.getTime());
if (!StringUtil.isNullOrEmpty(date))
date = ValueResolver.resolveSysDate(date);
String ret = "Created by " + type;
if (type.equals(ContextType.USER))
ret += " '"
+ source.getLocalName()
+ "'";
else
{
String displaySource = null;
if(source!=null)
{
displaySource = EndpointImpl.api().getNamespaceService().getAbbreviatedURI(source);
if (StringUtil.isNullOrEmpty(displaySource))
displaySource = source.stringValue(); // fallback solution: full URI
}
String displayGroup = null;
if (group!=null)
{
displayGroup = EndpointImpl.api().getNamespaceService().getAbbreviatedURI(group);
if (StringUtil.isNullOrEmpty(displayGroup))
displayGroup = group.stringValue(); // fallback solution: full URI
}
ret += " (";
ret += source==null ? "" : "source='" + displaySource + "'";
ret += source!=null && group!=null ? "/" : "";
ret += group==null ? "" : "group='" + displayGroup + "'";
ret += ")";
}
ret += " on " + date;
if (label!=null)
ret += " (" + label.toString() + ")";
if (state!=null && !state.equals(ContextState.PUBLISHED))
ret += " (" + state + ")";
return ret;
}
else
return contextURI.stringValue();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n\tpublic String toString() {\n\t\treturn \"# \" + title + \" :\\n\" + context ;\n\t}",
"public abstract String getToolTip();",
"protected String getToolTip( MouseEvent event )\n {\n SmartText descr = new SmartText();\n int column = treeTable.columnAtPoint( event.getPoint() );\n if ( column == 0 )\n {\n int row = treeTable.rowAtPoint( event.getPoint() );\n if ( row == 0 )\n {\n descr.setText( componentModel.getTypeDescription() );\n }\n else\n {\n Object value = treeTable.getValueAt( row, 1 );\n if ( value instanceof Property )\n {\n Property p = ( Property )value;\n descr.setText( p.getToolTip() );\n }\n }\n\n // perform line wrapping now\n descr.setText( \"<html>\" + descr.insertBreaks( \"<br>\", toolTipWidth, true ) + \"</html>\" );\n return descr.toString();\n }\n return null;\n }",
"@Override\r\n\tpublic String getToolTipText(MouseEvent event) {\r\n return toolTipWriter.write(getToolTipText(), event.getPoint());\r\n }",
"public String getToolTip ()\r\n\t{\r\n\t\tif (!((imageName.equals(\"GND\")) || (imageName.equals(\"VCC\")) || (imageName.equals(\"BOX\")) || (imageName.equals(\"OUTPUT\"))))\r\n\t\t{\r\n\t\t\tthis.toolTip = \"<html><img src=\"+this.imageName+\"></html>\";\r\n\t\t\treturn this.toolTip;\r\n\t\t}\r\n\t\t\r\n\t\telse if (imageName.equals(\"GND\"))\r\n\t\t\treturn \"GND\";\r\n\t\t\r\n\t\telse if (imageName.equals(\"VCC\"))\r\n\t\t\treturn \"VCC\";\r\n\t\t\r\n\t\telse if (imageName.equals(\"OUTPUT\"))\r\n\t\t\treturn \"Output window\";\r\n\t\t\r\n\t\telse\r\n\t\t\treturn \"TODO\";\r\n\t}",
"public String generateToolTip(XYDataset data, int series, int item) {\n\n return getToolTipText(series, item);\n\n }",
"public String getToolTip() {\n\treturn this.toolTip;\n }",
"@Override\r\n public String getTooltip() {\r\n return TOOLTIP;\r\n }",
"public String getToolTipText() {\n return this.toString();\n }",
"public static String getToolTipText() {\n\t\treturn (toolTipText);\n\t}",
"public String generateToolTipFragment(String toolTipText) {\n/* 88 */ return \" onMouseOver=\\\"return stm(['\" + \n/* 89 */ ImageMapUtilities.javascriptEscape(this.title) + \"','\" + \n/* 90 */ ImageMapUtilities.javascriptEscape(toolTipText) + \"'],Style[\" + this.style + \"]);\\\"\" + \" onMouseOut=\\\"return htm();\\\"\";\n/* */ }",
"public String getToolTip(ViewEvent anEvent)\n {\n LineMarker<?>[] markers = getMarkers();\n LineMarker<?> marker = ArrayUtils.findMatch(markers, m -> m.contains(_mx, _my));\n return marker != null ? marker.getToolTip() : null;\n }",
"public String getStatusInfoDetailsToolTip() {\r\n return statusInfoTooltip;\r\n }",
"@Override\r\n\tpublic IFigure getTooltip(Object entity) {\n\t\tif (entity instanceof GraphNode) {\r\n\t\t\tGraphNode node = (GraphNode) entity;\r\n\t\t\treturn new Label(node.getName());\r\n\t\t} else if (entity instanceof EntityConnectionData) {\r\n\t\t\tEntityConnectionData conn = (EntityConnectionData) entity;\r\n\t\t\tGraphNode caller = (GraphNode) conn.source;\r\n\t\t\tGraphNode callee = (GraphNode) conn.dest;\r\n\t\t\treturn new Label(caller.getName() + \"-\" + callee.getName());\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public String getTooltip() {\n\t\treturn tooltip;\n\t}",
"@Override\n public String getToolTipText (final MouseEvent mEvent) {\n return getText();\n }",
"@Override\n\tpublic String getToolTipText() {\n\t\treturn \"shopEditorToolTipText\";\n\t}",
"@Exported(visibility = 999)\n public String getTooltip() {\n return tooltip;\n }",
"@Override\r\n\tpublic String getToolTipText() {\n\t\treturn \"\";\r\n\t}",
"@Override\r\n\tpublic String getToolTipText(MouseEvent e) {\r\n\t\tMCLParticleSet particles = model.getParticles();\r\n\t\tif (particles == null) return null;\r\n\t\t\r\n\t\t// If the mouse is on a article, show its weight\r\n\t\tfloat x = e.getX()/ parent.pixelsPerUnit + viewStart.x;\r\n\t\tfloat y = (getHeight() - e.getY())/ parent.pixelsPerUnit + viewStart.y;\r\n\t\tint i = particles.findClosest(x,y);\r\n\t\tMCLParticle part = particles.getParticle(i);\r\n\t\tPose p = part.getPose(); \r\n\t\tif (Math.abs(p.getX() - x) <= 2f && Math.abs(p.getY() - y) <= 2f) return \"Weight \" + part.getWeight();\r\n\t\telse return null;\r\n\t}",
"@Override\n public String getTooltip()\n {\n return null;\n }",
"public String getToolTipText() {\n\t\treturn \"\";\r\n\t}",
"@Override\r\n protected String getTooltip()\r\n {\n return \"This name is used as (unique) name for the pattern.\";\r\n }",
"public String getToolTipText() {\n\t\t\treturn fragname.toString();\n\t\t}",
"public String generateToolTip(ContourDataset data, int item) {\n/* */ String xString;\n/* 83 */ double x = data.getXValue(0, item);\n/* 84 */ double y = data.getYValue(0, item);\n/* 85 */ double z = data.getZValue(0, item);\n/* */ \n/* */ \n/* 88 */ if (data.isDateAxis(0)) {\n/* 89 */ SimpleDateFormat formatter = new SimpleDateFormat(\"MM/dd/yyyy hh:mm:ss\");\n/* */ \n/* 91 */ StringBuffer strbuf = new StringBuffer();\n/* 92 */ strbuf = formatter.format(new Date((long)x), strbuf, new FieldPosition(false));\n/* */ \n/* */ \n/* 95 */ xString = strbuf.toString();\n/* */ } else {\n/* */ \n/* 98 */ xString = this.valueForm.format(x);\n/* */ } \n/* 100 */ if (!Double.isNaN(z)) {\n/* 101 */ return \"X: \" + xString + \", Y: \" + this.valueForm\n/* 102 */ .format(y) + \", Z: \" + this.valueForm\n/* 103 */ .format(z);\n/* */ }\n/* */ \n/* 106 */ return \"X: \" + xString + \", Y: \" + this.valueForm\n/* 107 */ .format(y) + \", Z: no data\";\n/* */ }",
"String getTooltip() {\n return mTooltip;\n }",
"String getTooltip() {\n return bufTip;\n }",
"public String getToolTipText(MouseEvent event) {\n\t\tjava.awt.Point loc = event.getPoint();\n\t\tint row = rowAtPoint(loc);\n\t\tFileTableModel model = (FileTableModel) getModel();\n\t\treturn model.getDescriptions()[row];\n\t}",
"@Override\r\n\tpublic String getTips() {\n\t\treturn null;\r\n\t}",
"private Tooltip generateToolTip(ELesxFunction type) {\n Tooltip tool = new Tooltip();\n StringBuilder text = new StringBuilder();\n if (type == ELesxFunction.PERIOD) {\n text.append(\"Una fecha puede ser invalida por:\\n\")\n .append(\" - Fecha incompleta.\\n\")\n .append(\" - Fecha inicial es posterior a la final.\");\n }\n else {\n text.append(\"La función Suma determina:\\n\")\n .append(\" - Sumatoria total de los precios del recurso seleccionado.\\n\")\n .append(\" - Suma el total de la sumatoria del punto anterior si son varios recursos\\n\")\n .append(\" - Ignora las Fechas de los precios.\");\n }\n tool.setText(text.toString());\n return tool;\n }",
"public String transform(GeoState geoState)\n {\n\n String toolTipText = \"\";\n try\n {\n\n toolTipText = \"GIPSY Tier Name: \"\n + verticesRegister.getSeedVertices().get(geoState)\n .getTierName();\n\n }\n catch (Exception e)\n {\n System.err\n .println(\"- SimulationController.java: An error has occured while constructing the node text tool tips.\");\n System.err.println(e.getStackTrace());\n }\n\n return toolTipText;\n }",
"public String getToolTip(java.awt.Point position, long millis) {\n return getName() + \"\\n\"\n + getClass().getName() + \"\\n\"\n + \"Start = \" + isStart() + \"\\n\"\n + \"AFU ID = \" + getAfuId() + \"\\n\"\n + \"value<\" + (n_bits - 1) + \":0>= \" + vector.toBinString() + \"\\n\"\n + vector.toHexString() + \" / \" + vector.toDecString();\n }",
"public void setTooltipText() { tooltip.setText(name); }",
"@Nullable\n @OnlyIn(Dist.CLIENT)\n @Override\n public List<String> getAdvancedToolTip(@Nonnull ItemStack stack) {\n return ClientUtils.wrapStringToLength(I18n.format(\"item_cheap_magnet.desc\"), 35);\n }",
"@Override\n public void setTooltip(String arg0)\n {\n \n }",
"public String getToolTip(int columnIndex) {\n\t\t//@formatter:off\n\t\tList<ColumnConstraintSet<R, ?>> filtered =\n\t\t\tconstraintSets.stream()\n\t\t\t\t.filter(cf -> cf.getColumnModelIndex() == columnIndex)\n\t\t\t\t.collect(Collectors.toList());\n\t\t//@formatter:on\n\n\t\tif (filtered.isEmpty()) {\n\t\t\treturn null;\n\t\t}\n\t\treturn getHtmlRepresentation(filtered);\n\t}",
"public EObject displayInfo(EObject context, String title, String message) {\r\n\t\tMessageDialog.openInformation(Display.getCurrent().getActiveShell(), title, message);\r\n\t\treturn context;\r\n\t}",
"@Override\n\tpublic void setToolTip(String tooltip) {\n\t\t\n\t}",
"public String getGenericHelpTitle() {\n return genericHelpTitle;\n }",
"public String getTabToolTipText();",
"@Override\n\tpublic String getToolTipText() {\n\t\treturn \"Show the clusters\";\n\t}",
"public String getMetaInfo() {\n \tString metaInfo = \"\";\n \t//Add items\n \tfor (Collectable item : items) {\n \t\tif (item != null) {\n \t\t\tmetaInfo += String.format(META_ITEM_FORMAT, item.getGridCoords().toString(),\n \t\t\t\t\t\t\t\tMETA_ITEM_KEYWORD, item.getMetaInfo());\n \t\t\tmetaInfo += GlobalInfo.NEW_LINE;\n \t\t}\n \t}\n \t//Add numTokens\n \tmetaInfo += String.format(META_TOKEN_FORMAT, \"0,0\", META_TOKEN_KEYWORD, numTokens);\n \treturn metaInfo;\n }",
"@Nullable\n\tdefault String getTooltip()\n\t{\n\t\treturn null;\n\t}",
"@Override\n public StringTextComponent getTooltip() {\n return this.tooltip;\n }",
"public String makeString(){\n\t\tString title = getTitle();\n\t\tString xlabel = getXLabel();\n\t\tString ylabel = getYLabel();\n\t\tString GraphableDataInfoString = (\"<\" + title + \",\" + xlabel + \",\" + ylabel + \">\");\n\t\treturn GraphableDataInfoString;\n\t}",
"final public String getShortDesc()\n {\n return ComponentUtils.resolveString(getProperty(SHORT_DESC_KEY));\n }",
"public String getToolTipText()\n\t{\n\n\t\treturn \"Execute DQL\"; //$NON-NLS-1$\n\t}",
"public CharSequence title(Context context) {\n if (titleResId == 0 || context == null) {\n return this.code;\n } else {\n return context.getText(titleResId); \n }\n }",
"public String getSiteTitle(String contextId)\n {\n return null;\n }",
"public String getToolTipText () {\r\n\tcheckWidget();\r\n\treturn toolTipText;\r\n}",
"protected String getHelp() {\r\n return UIManager.getInstance().localize(\"renderingHelp\", \"Help description\");\r\n }",
"public String getToolTipText(int series, int item) {\n\n String result = null;\n\n if (series < getListCount()) {\n List tooltips = (List) this.toolTipSeries.get(series);\n if (tooltips != null) {\n if (item < tooltips.size()) {\n result = (String) tooltips.get(item);\n }\n }\n }\n\n return result;\n }",
"default String getTooltip() {\n throw new UnsupportedOperationException();\n }",
"String getHoverDetail();",
"@Override\n public String getToolTipText() {\n return \"Black -- approved; Gray -- rejected; Red -- pending approval\";\n }",
"public java.lang.String getTip()\n {\n return this.tip;\n }",
"public JToolTip createToolTip(){\n return new CreatureTooltip(this);\n }",
"public String getContextualizedLabel() {\n\t\tString completeLbl = CodeUnit.getLabel(getRepo(), getArtFrag(), null, true);//this.getLabel();\r\n\t\t\r\n\t\t// strip number for anon class (shows in tooltip)\r\n\t\tif (RSECore.isAnonClassName(completeLbl))\r\n\t\t\tcompleteLbl = RSECore.stripAnonNumber(completeLbl);\r\n\t\t\r\n\t\tTitledArtifactEditPart parentTAFEP = this.getParentTAFEP();\r\n\t\tif (parentTAFEP != null) {\r\n\t\t\tString contextLbl = null;\r\n\t\t\tcontextLbl = getCntxLabel(parentTAFEP);\r\n\t\t\tif (completeLbl.startsWith(contextLbl) && !contextLbl.equals(\".\")) {\r\n\t\t\t\tcompleteLbl = completeLbl.substring(contextLbl.length());\r\n\t\t\t}\r\n\t\t}\r\n\t\tcompleteLbl = strTruncEnd(completeLbl, \".*\");\r\n\t\tcompleteLbl = strTruncBeg(completeLbl, \".\");\r\n\t\tif (completeLbl.length() == 0) completeLbl = \".\";\r\n\t\treturn completeLbl;\r\n\t}",
"@Override\n public String getToolTipText(MouseEvent e)\n {\n Point p = e.getPoint();\n int rowIndex = rowAtPoint(p);\n int colIndex = columnAtPoint(p);\n Object cellData = getValueAt(rowIndex, colIndex);\n\n if (cellData instanceof Color)\n {\n Color color = (Color)cellData;\n return \"RGB Color value: \" + color.getRed() + \", \" + color.getGreen() + \", \" + color.getBlue();\n }\n else\n return cellData.toString();\n }",
"public JToolTip getCustomToolTip() {\n // to be overwritten by subclasses\n return null;\n }",
"public String getDescription(Context context)\n\t\t{\n\t\t\tif (descriptionId == 0)\n\t\t\t\treturn null;\n\n\t\t\treturn context.getString(descriptionId);\n\t\t}",
"public String about(){\n\treturn \"This subclass of Protagonist, Archer, is one with slightly above average attack and defense, good for balanced gameplay.\";\n }",
"public String getColdTips(){\n\t\ttry{\n\t\t\treturn jsonData.get(\"ganmao\").getAsString();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}",
"protected void setToolTipText(Tile tile) {\n\t\tif(!peek && hidden) { tile.setToolTipText(\"concealed tile\"); }\n\t\telse {\n\t\t\tString addendum = \"\";\n\t\t\tif(playerpanel.getPlayer().getType()==Player.HUMAN) { addendum = \" - click to discard during your turn\"; }\n\t\t\ttile.setToolTipText(tile.getTileName()+ addendum); }}",
"@Override\n public String getServletInfo\n \n () {\n return \"Short description\";\n }",
"public SafeHtml getTooltip(C value) {\n return tooltipFallback;\n }",
"public abstract ITooltipData getTooltipData();",
"String getDescription() {\n if (description == null) {\n return null;\n }\n if (basicControl) {\n return String.format(\"%s %s\", context.getString(description), context.getString(R.string.basicControl));\n }\n return context.getString(description);\n }",
"public String showHelp() {\r\n return ctrlDomain.getHidatoDescription();\r\n }",
"private SafeHtml getDataTypeColumnToolTip(String columnText, StringBuilder title, boolean hasImage) {\n\t\tif (hasImage) {\n\t\t\tString htmlConstant = \"<html>\"\n\t\t\t\t\t+ \"<head> </head> <Body><img src =\\\"images/error.png\\\" alt=\\\"Arugment Name is InValid.\\\"\"\n\t\t\t\t\t+ \"title = \\\"Arugment Name is InValid.\\\"/>\" + \"<span tabIndex = \\\"0\\\" title='\" + title + \"'>\"\n\t\t\t\t\t+ columnText + \"</span></body>\" + \"</html>\";\n\t\t\treturn new SafeHtmlBuilder().appendHtmlConstant(htmlConstant).toSafeHtml();\n\t\t} else {\n\t\t\tString htmlConstant = \"<html>\" + \"<head> </head> <Body><span tabIndex = \\\"0\\\" title='\" + title + \"'>\"\n\t\t\t\t\t+ columnText + \"</span></body>\" + \"</html>\";\n\t\t\treturn new SafeHtmlBuilder().appendHtmlConstant(htmlConstant).toSafeHtml();\n\t\t}\n\t}",
"void showTooltip();",
"public abstract String getHelpInfo();",
"@Override public String getToolTipText(MouseEvent evt)\n{\n String rslt = null;\n\n int pos = evt.getX();\n int minpos = getX() + 16;\n int maxpos = getX() + getWidth() - 16;\n double relpos = (pos - minpos);\n if (relpos < 0) relpos = 0;\n relpos /= (maxpos - minpos);\n double timer = getMinimum() + relpos * (getMaximum() - getMinimum()) + 0.5;\n long time = (long) timer;\n if (time > getMaximum()) time = getMaximum();\n\n BicexEvaluationContext ctx = for_bubble.getExecution().getCurrentContext();\n if (ctx == null) return null;\n\n BicexValue bv = ctx.getValues().get(\"*LINE*\");\n List<Integer> times = bv.getTimeChanges();\n String line = null;\n for (Integer t : times) {\n if (t <= time) {\n\t line = bv.getStringValue(t+1);\n\t}\n else break;\n }\n if (line != null) rslt = \"Line \" + line;\n\n if (ctx != null) {\n String what = \"In\";\n if (ctx.getInnerContexts() != null) {\n\t for (BicexEvaluationContext sctx : ctx.getInnerContexts()) {\n\t if (sctx.getStartTime() <= time && sctx.getEndTime() >= time) {\n\t ctx = sctx;\n\t what = \"Calling\";\n\t break;\n\t }\n\t }\n }\n if (rslt == null) rslt = what + \" \" + ctx.getMethod();\n else rslt += \" \" + what + \" \" + ctx.getShortName();\n }\n\n return rslt;\n}",
"String getDetailedDescription() {\n return context.getString(detailedDescription);\n }",
"protected String getTitle(Context context) {\n if (this.titleResource != 0) {\n return context.getString(this.titleResource);\n } else {\n return this.title;\n }\n }",
"public String getLocalizedHoverText(ContentEntity entity, boolean expanded);",
"@Override\r\n public String getInfo(){\r\n String info = \"Temperature\\n\" + temperature.toString();\r\n if (temperature.getValue() <= 36.0){\r\n info += \"\\nAttention! The temperature is off the healthy values, you can enter hypothermia state, please consider seeing a doctor.\";\r\n } else if (temperature.getValue() >= 37.4) {\r\n info += \"\\nAttention! The temperature is off the healthy values, you have a fever, please consider seeing a doctor.\";\r\n } else {\r\n info += \"\\nHealthy!\";\r\n }\r\n return info + \"\\n--------------------------------------------\\n\";\r\n }",
"public TooltipDisplay getTooltipDisplay();",
"@Override\r\n\tprotected String getHelpInfor() {\n\t\treturn \"\";\r\n\t}",
"public String globalInfo() {\n return \"Class for building and using a PRISM rule set for classification. \"\n + \"Can only deal with nominal attributes. Can't deal with missing values. \"\n + \"Doesn't do any pruning.\\n\\n\"\n + \"For more information, see \\n\\n\"\n + getTechnicalInformation().toString();\n }",
"public String getGenericHelp() {\n return genericHelp;\n }",
"@SideOnly(Side.CLIENT)\n private List<String> getTooltip(@Nullable EntityPlayer playerIn, ItemStack stack)\n {\n List<String> list = Lists.<String>newArrayList();\n String s = stack.getDisplayName();\n\n if (stack.hasDisplayName())\n {\n s = TextFormatting.ITALIC + s;\n }\n\n if (!stack.hasDisplayName() && stack.getItem() == Items.FILLED_MAP)\n {\n s = s + \" #\" + stack.getItemDamage();\n }\n\n s = s + TextFormatting.RESET;\n\n list.add(s);\n\n stack.getItem().addInformation(stack, playerIn == null ? null : playerIn.world, list, ITooltipFlag.TooltipFlags.NORMAL);\n\n if (stack.hasTagCompound())\n {\n NBTTagList nbttaglist = stack.getEnchantmentTagList();\n\n for (int j = 0; j < nbttaglist.tagCount(); ++j)\n {\n NBTTagCompound nbttagcompound = nbttaglist.getCompoundTagAt(j);\n int k = nbttagcompound.getShort(\"id\");\n int l = nbttagcompound.getShort(\"lvl\");\n Enchantment enchantment = Enchantment.getEnchantmentByID(k);\n\n if (enchantment != null)\n {\n list.add(enchantment.getTranslatedName(l));\n }\n }\n\n if (stack.getTagCompound() != null && stack.getTagCompound().hasKey(\"display\", 10))\n {\n NBTTagCompound nbttagcompound1 = stack.getTagCompound().getCompoundTag(\"display\");\n\n if (nbttagcompound1.hasKey(\"color\", 3))\n {\n list.add(TextFormatting.ITALIC + new TextComponentTranslation(\"item.dyed\").getFormattedText());\n }\n\n if (nbttagcompound1.getTagId(\"Lore\") == 9)\n {\n NBTTagList nbttaglist3 = nbttagcompound1.getTagList(\"Lore\", 8);\n\n if (!nbttaglist3.hasNoTags())\n {\n for (int l1 = 0; l1 < nbttaglist3.tagCount(); ++l1)\n {\n list.add(TextFormatting.DARK_PURPLE + \"\" + TextFormatting.ITALIC + nbttaglist3.getStringTagAt(l1));\n }\n }\n }\n }\n }\n if (ConfigHandler.heldItemTooltipsConfig.heldItemTooltipsModded) {\n net.minecraftforge.event.ForgeEventFactory.onItemTooltip(stack, playerIn, list, ITooltipFlag.TooltipFlags.NORMAL);\n }\n return list;\n }",
"private String getDescription(Object object)\n {\n ChallengeRatingTranslater translater = new ChallengeRatingTranslater(crDao);\n try {\n ChallengeRating cr = translater.getChallengeOfEnemy(object);\n if (object instanceof ChallengeRating) {\n return object.toString();\n } else if (object instanceof StandardMonster) {\n StandardMonster standardMonster = (StandardMonster) object;\n return String.format(\n \"%s, cr %s (%d xp)\",\n standardMonster.getName(),\n FractionTranslater.asFraction(cr.getValue()),\n cr.getXp()\n );\n } else if (object instanceof CustomMonster) {\n CustomMonster customMonster = (CustomMonster) object;\n return String.format(\n \"%s, cr %s (%d xp)\",\n customMonster.getName(),\n FractionTranslater.asFraction(cr.getValue()),\n cr.getXp()\n );\n }\n } catch (Exception e) {\n Logger.error(\"Failed to determine the challenge rating of the enemy.\", e);\n return object.toString();\n }\n\n try {\n return translater.getChallengeOfEnemy(object).toString();\n } catch (Exception e) {\n Logger.error(\"Failed to determine the challenge rating.\", e);\n return object.toString();\n }\n }",
"@Override\n\tpublic void addInformation(ItemStack stack, World worldIn, List<String> tooltip, ITooltipFlag flagIn)\n\t{\n\t\tif(Keyboard.isKeyDown(Keyboard.KEY_LSHIFT) || Keyboard.isKeyDown(Keyboard.KEY_RSHIFT))\n\t\t{\n\t\t\ttooltip.add(\"\\u00A7f\" + \"=================\");\n\t\t\ttooltip.add(\"This Version of the\");\n\t\t\ttooltip.add(\"Falling Trap will only\");\n\t\t\ttooltip.add(\"break, if a Player\");\n\t\t\ttooltip.add(\"Walks over it!\");\n\t\t\ttooltip.add(\"\\u00A7f\" + \"=================\");\n }\n\t\telse\n\t\t{\n\t\t\ttooltip.add(\"Hold \" + \"\\u00A7e\" + \"Shift\" + \"\\u00A77\" + \" for More Information\");\n\t\t}\n\t}",
"public String showContextChosen() {\n String s = \"\";\n\n for (Context c : surveyContext.values()) {\n s = s.concat(c.getContextName() + \":\\n\" +\n c.showActivitiesChosen() +\n \"\\n\\n\");\n }\n return s;\n }",
"@Override\n\t\tpublic int getToolTipDisplayDelayTime(Object object) {\n\t\t\treturn 2;\n\t\t}",
"public String attributesToSplitTipText() {\n return \"The number of randomly chosen attributes to consider for splitting.\";\n }",
"public String getContextString();",
"@Override\n public String getServletInfo\n \n () {\n return \"Short description\";\n }",
"private String metadata() {\n\t\tStringBuilder s = new StringBuilder();\n\t\ts.append(\"#######################################\");\n\t\ts.append(\"\\n# Metadata of query set\");\n\t\ts.append(\"\\n#\");\n\t\ts.append(\"\\n# Queries\");\n\t\ts.append(\"\\n# \\tTotal: \" + this.num_queries);\n\t\ts.append(\"\\n# \\tPoint: \" + this.num_pt_queries + \" (\" + 100 * ((double) this.num_pt_queries/this.num_queries) +\"%)\");\n\t\ts.append(\"\\n# \\tRange: \" + this.num_range_queries + \" (\" + 100 * ((double) this.num_range_queries/this.num_queries) +\"%)\");\n\t\ts.append(\"\\n#\");\n\t\ts.append(\"\\n# Operators\");\n\t\ts.append(\"\\n# \\tTotal: \" + (this.num_and_ops + this.num_or_ops) + \" (\" + ((double) (this.num_and_ops + this.num_or_ops)/this.num_queries) +\" per query)\");\n\t\ts.append(\"\\n# \\tAND: \" + this.num_and_ops);\n\t\ts.append(\"\\n# \\tOR: \" + this.num_or_ops);\n\t\ts.append(\"\\n#\");\n\t\ts.append(\"\\n# Attributes\");\n\t\ts.append(\"\\n# \\tTotal queried: \" + this.num_attributes);\n\t\ts.append(\"\\n#\");\n\t\ts.append(\"\\n# Bins\");\n\t\ts.append(\"\\n# \\tTotal queried: \" + this.num_bins);\n\t\ts.append(\"\\n# \\tPer query: \" + ((double) this.num_bins/this.num_queries));\n\t\ts.append(\"\\n#######################################\\n\");\n\t\treturn s.toString();\n\t}",
"public String getTitleAndShortname() {\n StringBuilder sb = new StringBuilder();\n if (eml != null) {\n sb.append(eml.getTitle());\n if (!shortname.equalsIgnoreCase(eml.getTitle())) {\n sb.append(\" (\").append(shortname).append(\")\");\n }\n }\n return sb.toString();\n }",
"public FakeToolTip getFakeToolTip() {\n\t\treturn fakeToolTip;\n\t}",
"@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }",
"public IFigure getTooltip() {\n return this.tooltip;\n }",
"public String getDescription() {\n return ACTION_DETAILS[id][DESC_DETAIL_INDEX];\n }",
"public String getDebuggingInfo() {\n if (hasTools()) {\n if (tileImprovementPlan == null) return \"No target\";\n final String action = tileImprovementPlan.getType().getNameKey();\n return tileImprovementPlan.getTarget().getPosition().toString()\n + \" \" + action;\n } else {\n if (colonyWithTools == null) return \"No target\";\n return \"Getting tools from \" + colonyWithTools.getName();\n }\n }",
"public static void shoInfo() {\n\t\tSystem.out.println(description);\n\t \n\t}",
"public String getDetails()\n\t{\n\t return \"Point (\"+x+\",\"+y+\")\";\n\t}",
"public String getHelpMessage ( ) {\r\n\t\tString html = \"<html><body>\";\r\n\t\thtml += \"<p>\";\r\n\t\thtml += \"The MSX Infrared Astrometric Catalog<br>\";\r\n\t\thtml += \"Astronomical Data Center catalog No. 5098<br>\";\r\n\t\thtml += \"</p><p>\";\r\n\t\thtml += \"Download:\";\r\n\t\thtml += \"<blockquote>\";\r\n\t\thtml += \"<u><font color=\\\"#0000ff\\\">ftp://dbc.nao.ac.jp/DBC/NASAADC/catalogs/5/5098/msx.dat.gz</font></u>\";\r\n\t\thtml += \"</blockquote>\";\r\n\t\thtml += \"</p>\";\r\n\t\thtml += \"</body></html>\";\r\n\t\treturn html;\r\n\t}",
"java.lang.String getDescription();"
] |
[
"0.6150446",
"0.6103016",
"0.60594505",
"0.5977424",
"0.5958895",
"0.5877117",
"0.58668154",
"0.58498764",
"0.58296275",
"0.5762426",
"0.57491696",
"0.57418394",
"0.5704872",
"0.56927156",
"0.5686621",
"0.5681923",
"0.5672458",
"0.5615276",
"0.55931795",
"0.5578921",
"0.5568428",
"0.55651367",
"0.55541354",
"0.5538345",
"0.54584944",
"0.5447743",
"0.5442483",
"0.54226786",
"0.54171026",
"0.53871906",
"0.5371593",
"0.5366225",
"0.53623456",
"0.53592396",
"0.5338338",
"0.5333929",
"0.5324811",
"0.53090954",
"0.52921844",
"0.52764684",
"0.5262425",
"0.5256547",
"0.52531075",
"0.5230508",
"0.5199821",
"0.51953006",
"0.5193689",
"0.51697296",
"0.5161269",
"0.5158616",
"0.51425034",
"0.5138911",
"0.5136483",
"0.5132376",
"0.5128664",
"0.512047",
"0.5120425",
"0.5120285",
"0.50923246",
"0.50921357",
"0.5090617",
"0.5089214",
"0.5084935",
"0.50823",
"0.5077333",
"0.5069711",
"0.5061916",
"0.50557214",
"0.5049833",
"0.5044357",
"0.50373316",
"0.50268865",
"0.5008025",
"0.5006199",
"0.50013006",
"0.50012344",
"0.4999097",
"0.49960282",
"0.49949315",
"0.49865848",
"0.49760327",
"0.49601686",
"0.49570915",
"0.49509603",
"0.49488023",
"0.4945683",
"0.4938517",
"0.4936727",
"0.4931639",
"0.49251014",
"0.49203467",
"0.49167758",
"0.4914929",
"0.49141455",
"0.4909028",
"0.49087453",
"0.49079877",
"0.49029306",
"0.49013305",
"0.48891214"
] |
0.75171703
|
0
|
compares according to timestamp, required for ordering of changes
|
@Override
public int compareTo(Object o)
{
if(o instanceof Context)
{
if (timestamp==null || ((Context) o).timestamp==null)
return 0;
return timestamp.compareTo(((Context) o).timestamp);
}
return 0;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private static boolean isInOrderTimestamp(\n long timestamp,\n long prevTimestamp)\n {\n long timestampDiff = timestamp - prevTimestamp;\n\n // Assume that a diff this big must be due to reordering. Don't update\n // with reordered samples.\n return (timestampDiff < 0x80000000L);\n }",
"@Override\r\n\t\t\t\tpublic int compare(twi arg0, twi arg1) {\n\t\t\t\t\tif (arg0.timestamp > arg1.timestamp) {\r\n\t\t\t\t\t\treturn -1;\r\n\t\t\t\t\t} else if (arg0.timestamp < arg1.timestamp) {\r\n\t\t\t\t\t\treturn 1;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\treturn 0;\r\n\t\t\t\t\t}\r\n\t\t\t\t}",
"public int compareToTimestamp(long timestamp)\n {\n return Long.compare(divPosition, timestamp / size);\n }",
"public int compare(TimeEntry t1, TimeEntry t2) {\n\t\t\t\t\treturn t1.getTime().compareTo(t2.getTime());\n\t\t\t\t//return 1;\n\t\t\t }",
"@Override\n public int compareTo(Booking other) {\n // Push new on top\n other.updateNewQuestion(); // update NEW button\n this.updateNewQuestion();\n\n\n String[] arr1 = other.time.split(\":\");\n String[] arr2 = this.time.split(\":\");\n// Date thisDate = new Date(this.getCalendarYear(), this.getCalendarMonth(), this.getCalendarDay(), Integer.getInteger(arr2[0]), Integer.getInteger(arr2[1]));\n// if (this.newQuestion != other.newQuestion) {\n// return this.newQuestion ? 1 : -1; // this is the winner\n// }\n\n\n if (this.calendarYear == other.calendarYear) {\n if (this.calendarMonth == other.calendarMonth) {\n if (this.calendarDay == other.calendarDay) {\n if (Integer.parseInt(arr2[0]) == Integer.parseInt(arr1[0])) { // hour\n if (Integer.parseInt(arr2[1]) == Integer.parseInt(arr1[1])) { // minute\n return 0;\n } else {\n return Integer.parseInt(arr1[1]) > Integer.parseInt(arr2[1]) ? -1 : 1;\n }\n } else {\n return Integer.parseInt(arr1[0]) > Integer.parseInt(arr2[0]) ? -1 : 1;\n }\n }\n else\n return other.calendarDay > this.calendarDay ? -1 : 1;\n }\n else\n return other.calendarMonth > this.calendarMonth ? -1 : 1;\n }\n else\n return other.calendarYear > this.calendarYear ? -1 : 1;\n\n\n// if (this.echo == other.echo) {\n// if (other.calendarMonth == this.calendarMonth) {\n// return 0;\n// }\n// return other.calendarMonth > this.calendarMonth ? -1 : 1;\n// }\n// return this.echo - other.echo;\n }",
"private boolean checkTimeStamp(File file) {\n // uses sharedpreferences\n return (lastUpdate < file.getModifiedDate().getValue());\n }",
"private int sameDateCompare(Deadline other) {\n if (!this.hasTime() && other.hasTime()) {\n return -1;\n } else if (this.hasTime() && !other.hasTime()) {\n return 1;\n } else if (this.hasTime() && other.hasTime()) {\n TimeWrapper thisTimeWrapper = this.getTime();\n TimeWrapper otherTimeWrapper = other.getTime();\n return thisTimeWrapper.compareTo(otherTimeWrapper);\n }\n return 0;\n }",
"@Test\n\tpublic void sameModificationDate() throws IOException {\n\t\tFile firstFile = File.createTempFile(\"junit\", null);\n\t\tFile secondFile = File.createTempFile(\"junit\", null);\n\t\tsecondFile.setLastModified(firstFile.lastModified());\n\n\t\tFileTuple firstTuple = new FileTuple(firstFile, firstFile);\n\t\tFileTuple secondTuple = new FileTuple(secondFile, secondFile);\n\n\t\tassertThat(COMPARATOR.compare(firstTuple, secondTuple)).isZero();\n\t}",
"public int compare(File file, File file2) {\n int i = ((file.lastModified() - file2.lastModified()) > 0 ? 1 : ((file.lastModified() - file2.lastModified()) == 0 ? 0 : -1));\n if (i > 0) {\n return 1;\n }\n return i == 0 ? 0 : -1;\n }",
"@Override\n public int compareTo(Record otherRecord) {\n return (int) (otherRecord.mCallEndTimestamp - mCallEndTimestamp);\n }",
"public int compare(File file, File file2) {\n int i = ((file.lastModified() - file2.lastModified()) > 0 ? 1 : ((file.lastModified() - file2.lastModified()) == 0 ? 0 : -1));\n if (i > 0) {\n return 1;\n }\n return i == 0 ? 0 : -1;\n }",
"public int compare(File file, File file2) {\n int i = ((file.lastModified() - file2.lastModified()) > 0 ? 1 : ((file.lastModified() - file2.lastModified()) == 0 ? 0 : -1));\n if (i > 0) {\n return 1;\n }\n return i == 0 ? 0 : -1;\n }",
"@Override\n\t\tpublic int compareTo(pair2 o) {\n\t\t\tif (this.time == o.time) {\n\t\t\t\treturn o.status - this.status;\n\t\t\t} else {\n\t\t\t\treturn this.time - o.time;\n\t\t\t}\n\t\t}",
"@Override\n\t\tpublic int compare(Object arg0, Object arg1) {\n\t\t\tAppEntry entry1 = (AppEntry) arg0;\n\t\t\tAppEntry entry2 = (AppEntry) arg1;\n\t\t\tlong result = entry1.mApkFile.lastModified()\n\t\t\t\t\t- entry2.mApkFile.lastModified();\n\t\t\tif (result > 0) {\n\t\t\t\treturn -1;\n\t\t\t} else if (result == 0) {\n\t\t\t\treturn 0;\n\t\t\t} else if (result < 0) {\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t\treturn 0;\n\t\t}",
"public int compare(Itemset o1, Itemset o2) {\n long time1 = o1.getTimestamp();\n long time2 = o2.getTimestamp();\n if (time1 < time2) {\n return -1;\n }\n return 1;\n }",
"public int compareTo(Event other){\n return other.timestamp.compareTo(timestamp);\n }",
"public boolean isEqual(DateTime dt) {\n return Long.parseLong(this.vStamp) == Long.parseLong(dt.getStamp());\r\n }",
"public int compare(KThread s1,KThread s2) { \n if (s1.time > s2.time) \n return 1; \n else if (s1.time < s2.time) \n return -1; \n return 0; \n }",
"private static ArrayList<Quest> sortAfterTimestamp(ArrayList<Quest> questListToSort) {\n\t\tfor (int i = 0; i < questListToSort.size() - 1; i++) {\n\t\t\tint index = i;\n\t\t\tfor (int j = i + 1; j < questListToSort.size(); j++) {\n\t\t\t\tif (questListToSort.get(j).getTimestamp() > questListToSort.get(index).getTimestamp()) {\n\t\t\t\t\tindex = j;\n\t\t\t\t}\n\t\t\t}\n\t\t\tCollections.swap(questListToSort, index, i);\n\t\t}\n\t\treturn questListToSort;\n\t}",
"protected int compareTime(Date first, Date second) {\n\t\treturn first.compareTo(second);\n\t}",
"@Override\n\t\tpublic int compareTo(Event other) {\n\t\t\tif (this.time < other.time + 1.0e-9) return -1;\n\t\t\telse if (this.time > other.time - 1.0e-9) return 1;\n\t\t\telse {\n\t\t\t\tif(this.active > other.active) return 1;\n\t\t\t\telse return -1;\n\t\t\t}\n\t\t}",
"@Override\n public int compareTo(CacheEntry cacheEntry) {\n if (arrivalTime < cacheEntry.arrivalTime) return -1;\n else if (arrivalTime > cacheEntry.arrivalTime) return 1;\n else return 0;\n }",
"private boolean logContainsTimestamp(long timestamp,String filename) {\n\t\tBufferedReader br = null;\n\t\tBathMoniterEvent ev= new BathMoniterEvent();\n\t\ttry {\n\t\t\tString sCurrentLine;\n\t\t\tbr = new BufferedReader(new FileReader(filename));\n\n\t\t\tbr.readLine();// read the formatting data at the top\n\t\t\twhile ((sCurrentLine = br.readLine()) != null) {\n\t\t\t\ttry{\n\t\t\t\t\tev.setData(sCurrentLine);\n\t\t\t\t\tif(ev.getTimestamp() == timestamp)\n\t\t\t\t\t\treturn true;\n\t\t\t\t}catch(Exception e){\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n \n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (br != null)br.close();\n\t\t\t} catch (IOException ex) {\n\t\t\t\tex.printStackTrace();\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"@Override\n public int compareTo(Kaizen another) {\n return another.dateModified.compareTo(this.dateModified);\n }",
"@Override\r\n\t\t\t\tpublic int compare(Comparendo o1, Comparendo o2) \r\n\t\t\t\t{\n\t\t\t\t\treturn o1.fechaHora.compareTo(o2.fechaHora);\r\n\t\t\t\t}",
"@Override\n public int compare(File arg0, File arg1) {\n long diff = arg0.lastModified() - arg1.lastModified();\n if (diff > 0)\n return -1;\n else if (diff == 0)\n return 0;\n else\n return 1;\n }",
"@Override\n\tpublic int compareTo(Time t) {\n\t\tif (this.getIndex() < t.getIndex())\n\t\t\treturn 1;\n\t\telse if (this.getIndex() == t.getIndex())\n\t\t\treturn 0;\n\t\telse\n\t\t\treturn -1;\n\t}",
"@Test\n\tpublic void reorderIfOldestIsFirst() throws IOException {\n\t\tZonedDateTime now = ZonedDateTime.now();\n\n\t\tFile firstFile = File.createTempFile(\"junit\", null);\n\t\tFile secondFile = File.createTempFile(\"junit\", null);\n\t\tfirstFile.setLastModified(now.minus(1, ChronoUnit.DAYS).toEpochSecond());\n\t\tsecondFile.setLastModified(now.toEpochSecond());\n\n\t\tFileTuple firstTuple = new FileTuple(firstFile, firstFile);\n\t\tFileTuple secondTuple = new FileTuple(secondFile, secondFile);\n\n\t\tassertThat(COMPARATOR.compare(firstTuple, secondTuple)).isPositive();\n\t}",
"@Override\r\n\t\t\tpublic int compare(File o1, File o2) {\n\t\t\t\treturn Long.compare(o1.lastModified(), o2.lastModified());\r\n\t\t\t}",
"@Override\n public int compare(WritableComparable wc1, WritableComparable wc2) {\n\n StationIdTime record1 = (StationIdTime) wc1;\n StationIdTime record2 = (StationIdTime) wc2;\n return record1.getStationId().compareTo(record2.getStationId());\n\n }",
"public int compare(File file, File file2) {\n if (file.lastModified() > file2.lastModified()) {\n return 1;\n }\n if (file.lastModified() == file2.lastModified()) {\n return 0;\n }\n return -1;\n }",
"@Override\n\t\t\tpublic int compare(LiveAlarm object1, LiveAlarm object2) {\n\t\t\t\tlong start1 = object1.startT;\n\t\t\t\tlong start2 = object2.startT;\n\t\t\t\t\n\t\t\t\tif (start1 < start2) return -1;\n\t\t\t\tif (start1 == start2) return 0;\n\t\t\t\tif (start1 > start2) return 1;\n\t\t\t\t\n\t\t\t\treturn 0;//to suppress the compiler error;\n\t\t\t}",
"@Override\n\tpublic int compare(Map e1, Map e2) {\n\t\tif (!e1.containsKey(\"event_start_time\") && !e2.containsKey(\"event_start_time\")) {\n\t\t\treturn 0;\n\t\t}\n\n\t\tif (!e1.containsKey(\"event_start_time\")) {\n\t\t\treturn e2.get(\"event_start_time\") == null ? 0 : 1;\n\t\t} else if (!e2.containsKey(\"event_start_time\")) {\n\t\t\treturn e1.get(\"event_start_time\") == null ? 0 : -1;\n\t\t}\n\n\t\tTimestamp e1_event_start_time = Timestamp.valueOf(e1.get(\"event_start_time\").toString());\n\t\tTimestamp e2_event_start_time = Timestamp.valueOf(e2.get(\"event_start_time\").toString());\n\n\t\tif (e1_event_start_time.equals(e2_event_start_time)) {\n\t\t\treturn 0;\n\t\t}\n\t\treturn e1_event_start_time.before(e2_event_start_time) ? -1 : 1;\n\t}",
"int compare(ClusterCondition thisCondition, ClusterCondition thatCondition) {\n return thisCondition.compareTransitionTime(thatCondition);\n }",
"@Override\r\n\t\t\tpublic int compare(File o1, File o2) {\n\t\t\t\treturn Long.compare(o2.lastModified(), o1.lastModified());\r\n\t\t\t}",
"public int compare(File file, File file2) {\n return Long.valueOf(file.lastModified()).compareTo(Long.valueOf(file2.lastModified()));\n }",
"public boolean hasPassed(final long delta){\n return stamp + delta <= System.currentTimeMillis();\n }",
"public int compare(Object o1, Object o2)\r\n/* 237: */ {\r\n/* 238:196 */ DisgustingMoebiusTranslator.ThingTimeTriple x = (DisgustingMoebiusTranslator.ThingTimeTriple)o1;\r\n/* 239:197 */ DisgustingMoebiusTranslator.ThingTimeTriple y = (DisgustingMoebiusTranslator.ThingTimeTriple)o2;\r\n/* 240:198 */ if (DisgustingMoebiusTranslator.this.mode == DisgustingMoebiusTranslator.this.stop)\r\n/* 241: */ {\r\n/* 242:199 */ if (x.to > y.to) {\r\n/* 243:200 */ return 1;\r\n/* 244: */ }\r\n/* 245:203 */ return -1;\r\n/* 246: */ }\r\n/* 247:206 */ if (DisgustingMoebiusTranslator.this.mode == DisgustingMoebiusTranslator.this.start)\r\n/* 248: */ {\r\n/* 249:207 */ if (x.from > y.from) {\r\n/* 250:208 */ return 1;\r\n/* 251: */ }\r\n/* 252:211 */ return -1;\r\n/* 253: */ }\r\n/* 254:214 */ return 0;\r\n/* 255: */ }",
"boolean wasSooner (int[] date1, int[] date2) {\n\n// loops through year, then month, then day if previous value is the same\n for (int i = 2; i > -1; i--) {\n if (date1[i] > date2[i])\n return false;\n if (date1[i] < date2[i])\n return true;\n }\n return true;\n }",
"public int compare(AbsTime refEpoch)\n {\n // Code for NEVER should have been 0x7FFFFFFFFFFFFFFFL\n final long LAST = 0x7FFFFFFFFFFFFFFFL;\n long e1 = (itsValue == NEVER_CODE ? LAST : itsValue);\n long e2 = (refEpoch.itsValue == NEVER_CODE ? LAST : refEpoch.itsValue);\n\n return (e1 < e2 ? -1 : (e1 == e2 ? 0 : 1));\n }",
"public boolean isOlderThan(long timeToCompareWith) {\n return (this.timestamp < timeToCompareWith);\n }",
"@Test\n public void testCompareTo () {\n CountDownTimer s1 = new CountDownTimer(5, 59, 00);\n CountDownTimer s2 = new CountDownTimer(6, 01, 00);\n CountDownTimer s3 = new CountDownTimer(5, 50, 20);\n CountDownTimer s4 = new CountDownTimer(\"5:59:00\");\n\n assertTrue(s2.compareTo(s1) > 0);\n assertTrue(s3.compareTo(s1) < 0);\n assertTrue(s1.compareTo(s4) == 0);\n assertTrue(CountDownTimer.compareTo(s2, s4) > 0);\n assertTrue(CountDownTimer.compareTo(s3, s1) < 0);\n assertTrue(CountDownTimer.compareTo(s1, s4) == 0);\n }",
"public static void main(String[] args) {\n\t\tCTime a = new CTime(2013,15,28,13,24,56);\n\t\tCTime b = new CTime(2013,0,28,13,24,55);\n\t\ta.getTimeVerbose();\n\t\ta.getTime();\n\t\ta.compare(b);\n\t\ta.setTime(2014,8,16,13,24,55);\n\t\ta.getTime();\n\t}",
"@Test\n public void testTimeStamp() throws JMSException {\n long requestTimeStamp = requestMessage.getJMSTimestamp();\n long responseTimeStamp = responseMessage.getJMSTimestamp();\n\n assertTrue(\"The response message timestamp \" + responseTimeStamp +\n \" is older than the request message timestamp \" +\n requestTimeStamp,\n (responseTimeStamp >= requestTimeStamp));\n }",
"static int compare(EpochTimeWindow left, EpochTimeWindow right) {\n long leftValue = left.isEmpty() ? Long.MIN_VALUE : left.getBeginTime();\n long rightValue = right.isEmpty() ? Long.MIN_VALUE : right.getBeginTime();\n\n int result = Long.compare(leftValue, rightValue);\n if (0 != result) {\n return result;\n }\n\n leftValue = left.isEmpty() ? Long.MIN_VALUE : left.getEndTime();\n rightValue = right.isEmpty() ? Long.MIN_VALUE : right.getEndTime();\n\n result = Long.compare(leftValue, rightValue);\n return result;\n }",
"private static int compareDateTime(XMLGregorianCalendar dt1, XMLGregorianCalendar dt2) {\n // Returns codes are -1/0/1 but also 2 for \"Indeterminate\"\n // which occurs when one has a timezone and one does not\n // and they are less then 14 hours apart.\n\n // F&O has an \"implicit timezone\" - this code implements the XMLSchema\n // compare algorithm.\n\n int x = dt1.compare(dt2) ;\n return convertComparison(x) ;\n }",
"@Override\n public int compare(Task task1, Task task2) {\n return task1.getDate().compareTo(task2.getDate());\n }",
"@Override\n public int compareTo(MetalNode arg0) {\n\n int iResult=0;\n\n if (this.getDate()==arg0.getDate())\n {\n iResult=0;\n }\n else if (this.getDate()>arg0.getDate())\n {\n iResult=1;\n }\n else if (this.getDate()<arg0.getDate())\n {\n iResult=-1;\n }\n\n\n return iResult;\n }",
"@Test\n public void compareTo() {\n assertTrue(DATE_A.compareTo(DATE_A) == 0);\n\n // testing recess week and reading week.\n assertTrue(DATE_READING.compareTo(DATE_AFTER_READING) == -1);\n assertTrue(DATE_RECESS.compareTo(DATE_AFTER_RECESS) == -1);\n }",
"@Override\n\t\tpublic int compareTo(Pair newThread) {\n\t\t\t// TODO Auto-generated method stub\n\t\t\tif(this.wakeTime > newThread.wakeTime) {\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t\telse if(this.wakeTime < newThread.wakeTime) {\n\t\t\t\treturn -1;\n\t\t\t}\n\n\t\t\treturn 0;\n\t\t}",
"public static void main(String[] args) {\nDate d1 = new Date( 2019, 02, 22);\nSystem.out.println(d1);\n\n\nDate d2= new Date();\nSystem.out.println(d2);\nDate d3 = new Date(2000,11,11);\nSystem.out.println(d3);\nint a = d1.compareTo(d3);\nSystem.out.println(a);\nboolean b = d1.after(d2);\n\tSystem.out.println(b);\n\t}",
"private void compareSecondPass() {\n final int arraySize = this.oldFileNoMatch.size()\r\n + this.newFileNoMatch.size();\r\n this.compareArray = new SubsetElement[arraySize][2];\r\n final Iterator<String> oldIter = this.oldFileNoMatch.keySet()\r\n .iterator();\r\n int i = 0;\r\n while (oldIter.hasNext()) {\r\n final String key = oldIter.next();\r\n final SubsetElement oldElement = this.oldFileNoMatch.get(key);\r\n SubsetElement newElement = null;\r\n if (this.newFileNoMatch.containsKey(key)) {\r\n newElement = this.newFileNoMatch.get(key);\r\n }\r\n this.compareArray[i][0] = oldElement;\r\n this.compareArray[i][1] = newElement;\r\n i++;\r\n }\r\n // now go through the new elements and check for any that have no match.\r\n // these will be new elements with no corresponding old element\r\n final SubsetElement oldElement = null;\r\n final Iterator<String> newIter = this.newFileNoMatch.keySet()\r\n .iterator();\r\n while (newIter.hasNext()) {\r\n final String key = newIter.next();\r\n if (!this.oldFileNoMatch.containsKey(key)) {\r\n final SubsetElement newElement = this.newFileNoMatch.get(key);\r\n this.compareArray[i][0] = oldElement;\r\n this.compareArray[i][1] = newElement;\r\n i++;\r\n }\r\n\r\n }\r\n\r\n }",
"boolean isModified(SynchronizationRequest request)\n throws IOException {\n\n long modifiedTime = 0;\n\n if (request.getTimestampType()\n == SynchronizationRequest.TIMESTAMP_NONE) {\n return true;\n } else if (request.getTimestampType()\n == SynchronizationRequest.TIMESTAMP_MODIFICATION_TIME) {\n modifiedTime = request.getFile().lastModified();\n } else if (request.getTimestampType()\n == SynchronizationRequest.TIMESTAMP_MODIFIED_SINCE) { \n return true;\n } else if (request.getTimestampType()\n == SynchronizationRequest.TIMESTAMP_FILE) {\n BufferedReader is = null;\n\n try {\n is = new BufferedReader(\n new FileReader(request.getTimestampFile()));\n modifiedTime = Long.parseLong(is.readLine());\n\n is.close();\n\n is = null;\n } finally {\n if (is != null) {\n try {\n is.close();\n } catch (Exception ex) {\n //ignore\n }\n }\n }\n } else {\n assert false;\n }\n\n assert (request.getTimestamp() <= modifiedTime);\n if (request.getTimestamp() < modifiedTime) {\n request.setTimestamp(modifiedTime);\n return true;\n } else {\n return false;\n }\n }",
"boolean hasTimestamp();",
"boolean hasTimestamp();",
"boolean hasTimestamp();",
"boolean hasTimestamp();",
"boolean hasTimestamp();",
"boolean hasTimestamp();",
"boolean hasTimestamp();",
"@Test\n public void testSyncEraCommonsStatus_lastModified() {\n Supplier<Timestamp> getLastModified =\n () -> userDao.findUserByUsername(USERNAME).getLastModifiedTime();\n Timestamp modifiedTime0 = getLastModified.get();\n\n when(mockFireCloudService.getNihStatus())\n .thenReturn(\n new FirecloudNihStatus()\n .linkedNihUsername(\"nih-user\")\n // FireCloud stores the NIH status in seconds, not msecs.\n .linkExpireTime(START_INSTANT.toEpochMilli() / 1000));\n userService.syncEraCommonsStatus();\n Timestamp modifiedTime1 = getLastModified.get();\n assertWithMessage(\n \"modified time should change when eRA commons status changes, want %s < %s\",\n modifiedTime0, modifiedTime1)\n .that(modifiedTime0.before(modifiedTime1))\n .isTrue();\n\n userService.syncEraCommonsStatus();\n assertWithMessage(\n \"modified time should not change on sync, if eRA commons status doesn't change\")\n .that(modifiedTime1)\n .isEqualTo(getLastModified.get());\n }",
"public int compare(File file, File file2) {\n if (file == null || file2 == null || file.lastModified() >= file2.lastModified()) {\n return (file == null || file2 == null || file.lastModified() != file2.lastModified()) ? 1 : 0;\n }\n return -1;\n }",
"@Test\n public void testYesterdayOrBetterComparision() {\n Calendar quietAllowedForFeature = Calendar.getInstance(TimeZone.getTimeZone(\"America/Chicago\"));\n quietAllowedForFeature.setTimeInMillis(DateHelper.MILLIS_PER_DAY * 2);\n // midnight 'now' user local time\n quietAllowedForFeature = DateHelper.asDay(quietAllowedForFeature);\n // midnight day before user local time\n quietAllowedForFeature.add(Calendar.DATE, -1); //1 days quiet ok; add this as per feature setting?\n // last rec'd as user local time\n Date userLastMessageReceived = new Date(DateHelper.MILLIS_PER_DAY * 3);\n // if any messages from module after midnight yesterday (any messages yesterday or newer)\n //System.out.println(quietAllowedForFeature);\n //System.out.println(userLastMessageReceived);\n assertTrue(userLastMessageReceived.after(quietAllowedForFeature.getTime()));\n }",
"public abstract int compareTo(HistoryEntry aThat);",
"@Override\n public int compareTo(Record o) {\n if (this.result - o.result > 0) {\n return 1;\n } else if (this.result - o.result < 0) {\n return -1;\n } else {\n // press time: the less, the better.\n if (this.pressTime < o.pressTime) {\n return 1;\n } else if (this.pressTime > o.pressTime) {\n return -1;\n } else {\n // total times: the more, the better.\n if (this.totalTimes > o.totalTimes) {\n return 1;\n } else if (this.totalTimes < o.totalTimes) {\n return -1;\n }\n return 0;\n }\n }\n }",
"@Test\n public void testCompareTo() throws InterruptedException {\n Thread.sleep(10); // so we get an older message\n ChatMessage newerChatMessage = new ChatMessage(\"Javache\", \"JaJa!\");\n \n assertEquals(0,chatMessage.compareTo(chatMessage));\n assertTrue(chatMessage.compareTo(newerChatMessage) < 0);\n assertTrue(newerChatMessage.compareTo(chatMessage) > 0);\n }",
"@Test\n\tpublic void keepYoungestFirst() throws IOException {\n\t\tZonedDateTime now = ZonedDateTime.now();\n\n\t\tFile firstFile = File.createTempFile(\"junit\", null);\n\t\tFile secondFile = File.createTempFile(\"junit\", null);\n\t\tfirstFile.setLastModified(now.toEpochSecond());\n\t\tsecondFile.setLastModified(now.minus(1, ChronoUnit.DAYS).toEpochSecond());\n\n\t\tFileTuple firstTuple = new FileTuple(firstFile, firstFile);\n\t\tFileTuple secondTuple = new FileTuple(secondFile, secondFile);\n\n\t\tassertThat(COMPARATOR.compare(firstTuple, secondTuple)).isNegative();\n\n\t}",
"@Override\n\tpublic int compare(ExecutionNode o1, ExecutionNode o2) {\n\t\t// compare start times\n\t\tTimePoint s1 = o1.getInterval().getStartTime();\n\t\tTimePoint s2 = o2.getInterval().getStartTime();\n\t\t// compare lower bounds\n\t\treturn s1.getLowerBound() < s2.getLowerBound() ? -1 : s1.getLowerBound() > s2.getLowerBound() ? 1 : 0;\n\t}",
"public int compare(File file, File file2) {\n if (file == null || file2 == null || file.lastModified() >= file2.lastModified()) {\n return (file == null || file2 == null || file.lastModified() != file2.lastModified()) ? 1 : 0;\n }\n return -1;\n }",
"public int compare(String _id1, String _id2){\n\t\t\tTaskBean task1 = this.tasks.get(_id1);\r\n\t\t\tTaskBean task2 = this.tasks.get(_id2);\r\n\r\n\t\t\t//compare the two creation dates.\r\n\t\t\tDate creation1 = task1.getCreatedTime();\t \r\n\t\t\tDate creation2 = task2.getCreatedTime();\t \r\n\r\n\t\t\treturn creation1.compareTo(creation2);\r\n\t\t}",
"public void testIsNewer_timeOffset() throws Exception {\n TestableAndroidNativeDevice testDevice = new TestableAndroidNativeDevice() {\n @Override\n public String getProperty(String name) throws DeviceNotAvailableException {\n return \"Asia/Seoul\";\n }\n @Override\n protected long getDeviceTimeOffset(Date date) throws DeviceNotAvailableException {\n return -15 * 60 * 1000; // Device in advance of 15m on host.\n }\n };\n File localFile = FileUtil.createTempFile(\"timezonetest\", \".txt\");\n try {\n localFile.setLastModified(1470906000000l); // Thu, 11 Aug 2016 09:00:00 GMT\n IFileEntry remoteFile = EasyMock.createMock(IFileEntry.class);\n EasyMock.expect(remoteFile.getDate()).andReturn(\"2016-08-11\");\n EasyMock.expect(remoteFile.getTime()).andReturn(\"18:15\");\n EasyMock.replay(remoteFile);\n // Should sync because after time offset correction, file is older.\n assertTrue(testDevice.isNewer(localFile, remoteFile));\n EasyMock.verify(remoteFile);\n } finally {\n FileUtil.deleteFile(localFile);\n }\n }",
"public static void main(String args[])\n {\n // Check for no arguments.\n if (args.length == 0) {\n usage();\n }\n\n // Check the command.\n if (args[0].equals(\"test\")) {\n\n AbsTime now = new AbsTime();\n AbsTime later = new AbsTime(RelTime.factory(10));\n\n System.out.println(\"compare now, later: \" + now.compare(later));\n System.out.println(\"compare later, now: \" + later.compare(now));\n System.out.println(\"compare now, now: \" + now.compare(now));\n System.out.println(\"compare ASAP, later: \" + ASAP.compare(later));\n System.out.println(\"compare NEVER, later: \" + NEVER.compare(later));\n System.out.println(\"compare now, ASAP: \" + now.compare(ASAP));\n System.out.println(\"compare now, NEVER: \" + now.compare(NEVER));\n System.out.println(\"compare ASAP, ASAP: \" + ASAP.compare(ASAP));\n System.out.println(\"compare NEVER, NEVER: \" + NEVER.compare(NEVER));\n System.out.println(\"compare ASAP, NEVER: \" + ASAP.compare(NEVER));\n System.out.println(\"compare NEVER, ASAP: \" + NEVER.compare(ASAP));\n\n AbsTime.setTheirDefaultFormat(Format.UTC_STRING);\n System.out.println(new AbsTime() + \" doing 200000 compares\");\n for (int i = 0; i < 100000; i++) {\n now.compare(later);\n now.compare(NEVER);\n }\n System.out.println(new AbsTime() + \" doing 200000 isBefore()s\");\n for (int i = 0; i < 100000; i++) {\n now.isBefore(later);\n now.isBefore(NEVER);\n }\n System.out.println(new AbsTime() + \" doing 200000 isAfter()s\");\n for (int i = 0; i < 100000; i++) {\n now.isAfter(later);\n now.isAfter(NEVER);\n }\n System.out.println(new AbsTime() + \" done\");\n\n } else if (args[0].equals(\"clock\")) {\n // The current argument.\n int iArg;\n\n // Parse the command line options.\n iArg = 1;\n while (iArg < args.length) {\n usage();\n }\n\n // Make the clock.\n // BATClock clock = new BATClock(reqFont,reqBGColor,reqFGColor);\n } else if (args[0].equals(\"formats\")) {\n System.out.println(\"DECIMAL_BAT\");\n System.out.println(\"DEFAULT_FORMAT\");\n System.out.println(\"FORMATTED_BAT\");\n System.out.println(\"HEX_BAT\");\n System.out.println(\"UTC_STRING\");\n } else if (args[0].equals(\"print\")) {\n // The current argument.\n int iArg;\n // The requested format.\n Format reqFmt = AbsTime.getTheirDefaultFormat();\n // The time.\n AbsTime time = null;\n\n // Parse the command line options.\n iArg = 1;\n while (iArg < args.length) {\n if (args[iArg].equals(\"-f\")) {\n iArg++;\n if (iArg >= args.length) {\n usage();\n }\n if (args[iArg].equals(\"DECIMAL_BAT\")) {\n reqFmt = Format.DECIMAL_BAT;\n } else if (args[iArg].equals(\"DEFAULT_FORMAT\")) {\n reqFmt = AbsTime.getTheirDefaultFormat();\n } else if (args[iArg].equals(\"FORMATTED_BAT\")) {\n reqFmt = Format.FORMATTED_BAT;\n } else if (args[iArg].equals(\"HEX_BAT\")) {\n reqFmt = Format.HEX_BAT;\n } else if (args[iArg].equals(\"UTC_STRING\")) {\n reqFmt = Format.UTC_STRING;\n } else {\n usage();\n }\n iArg++;\n } else if (args[iArg].charAt(0) != '-') {\n // Not an option, must be the time.\n try {\n time = new AbsTime(args[iArg]);\n } catch (Time.Ex_TimeNotAvailable e) {\n System.out.println(e.toString());\n }\n iArg++;\n // Check that this is the last arg.\n if (iArg < args.length) {\n usage();\n }\n } else {\n // Invalid arg.\n usage();\n }\n }\n\n // Print the time object.\n if (time != null) {\n System.out.println(time.toString(reqFmt));\n } else {\n usage();\n }\n } else if (args[0].equals(\"now\")) {\n // The current argument.\n int iArg;\n // The requested format.\n Format reqFmt = AbsTime.getTheirDefaultFormat();\n // True if repeat was requested.\n boolean doRpt = false;\n\n // Parse the command line options.\n iArg = 1;\n while (iArg < args.length) {\n if (args[iArg].equals(\"-f\")) {\n iArg++;\n if (iArg >= args.length) {\n usage();\n }\n if (args[iArg].equals(\"DECIMAL_BAT\")) {\n reqFmt = Format.DECIMAL_BAT;\n } else if (args[iArg].equals(\"DEFAULT_FORMAT\")) {\n reqFmt = AbsTime.getTheirDefaultFormat();\n } else if (args[iArg].equals(\"FORMATTED_BAT\")) {\n reqFmt = Format.FORMATTED_BAT;\n } else if (args[iArg].equals(\"HEX_BAT\")) {\n reqFmt = Format.HEX_BAT;\n } else if (args[iArg].equals(\"UTC_STRING\")) {\n reqFmt = Format.UTC_STRING;\n } else {\n usage();\n }\n iArg++;\n } else if (args[iArg].equals(\"-r\")) {\n doRpt = true;\n iArg++;\n } else {\n usage();\n }\n }\n\n // Make an AbsTime object, then print it in the appropriate\n // format.\n try {\n if (doRpt) {\n while (true) {\n System.out.print((new AbsTime()).toString(reqFmt) + \"\\r\");\n try {\n Thread.sleep(1000);\n } catch (InterruptedException e) {\n }\n }\n } else {\n System.out.println((new AbsTime()).toString(reqFmt));\n }\n } catch (Time.Ex_TimeNotAvailable e) {\n System.out.println(\"time not available on this host\");\n System.exit(1);\n }\n } else {\n // Bad command argument.\n usage();\n }\n }",
"private int compareTimeSpan(ProcessorDistributionKey key)\n {\n int result = 0;\n result = myTimeSpan.compareTo(key.myTimeSpan);\n\n if (result == 0)\n {\n if (myConstraintKey == null)\n {\n if (key.myConstraintKey != null)\n {\n result = 1;\n }\n }\n else if (key.myConstraintKey == null)\n {\n result = -1;\n }\n else if (!myConstraintKey.equals(key.myConstraintKey))\n {\n result = myConstraintKey.hashCode() - key.myConstraintKey.hashCode();\n\n // Just in case the hash codes are coincident.\n if (result == 0)\n {\n result = System.identityHashCode(myConstraintKey) - System.identityHashCode(key.myConstraintKey);\n }\n }\n }\n\n return result;\n }",
"public static int compareTimestamps(final String ts1, final String ts2) throws Exception {\r\n\r\n int result = 0;\r\n\r\n XMLGregorianCalendar date1 = DatatypeFactory.newInstance().newXMLGregorianCalendar(ts1);\r\n XMLGregorianCalendar date2 = DatatypeFactory.newInstance().newXMLGregorianCalendar(ts2);\r\n\r\n int diff = date1.compare(date2);\r\n if (diff == DatatypeConstants.LESSER) {\r\n result = -1;\r\n }\r\n else if (diff == DatatypeConstants.GREATER) {\r\n result = 1;\r\n }\r\n else if (diff == DatatypeConstants.EQUAL) {\r\n result = 0;\r\n }\r\n else if (diff == DatatypeConstants.INDETERMINATE) {\r\n throw new Exception(\"Date comparing: INDETERMINATE\");\r\n }\r\n\r\n return result;\r\n }",
"static /* synthetic */ int m7595a(File f1, File f2) {\n boolean[] $jacocoInit = $jacocoInit();\n Long valueOf = Long.valueOf(f1.lastModified());\n $jacocoInit[43] = true;\n int compareTo = valueOf.compareTo(Long.valueOf(f2.lastModified()));\n $jacocoInit[44] = true;\n return compareTo;\n }",
"@Override\n\t\tpublic int compareTo(Job j)\n\t\t{\n\t\t\tJob job = j;\n\t\t\tif (this.getRunTime() < job.getRunTime()) {\n\t\t\t\treturn -1;\n\t\t\t} \n\t\t\treturn 1;\n\t\t}",
"@Override\n\tpublic int compareTo(ParsedURLInfo o) {\n\t\treturn this.seqTime.compareTo(o.getSeqTime());\n\t}",
"@Override\r\n public int compareTo(Task t)\r\n { \r\n //information of task passed in\r\n String dateTime=t.dueDate;\r\n String[] dateNoSpace1=dateTime.split(\" \");\r\n String[] dateOnly1=dateNoSpace1[0].split(\"/\");\r\n String[] timeOnly1=dateNoSpace1[1].split(\":\");\r\n \r\n //information of task being compared\r\n String[] dateNoSpace=this.dueDate.split(\" \");\r\n String[] dateOnly=dateNoSpace[0].split(\"/\");\r\n String[] timeOnly=dateNoSpace[1].split(\":\");\r\n \r\n //compares tasks by...\r\n \r\n //years\r\n if(dateOnly1[2].equalsIgnoreCase(dateOnly[2])) \r\n { \r\n //months\r\n if(dateOnly1[0].equalsIgnoreCase(dateOnly[0]))\r\n {\r\n //days\r\n if(dateOnly1[1].equalsIgnoreCase(dateOnly[1]))\r\n {\r\n //hours\r\n if(timeOnly1[0].equalsIgnoreCase(timeOnly[0]))\r\n {\r\n //minutes\r\n if(timeOnly1[1].equalsIgnoreCase(timeOnly[1]))\r\n {\r\n //names\r\n if(this.taskName.compareTo(t.taskName)>0)\r\n { \r\n return -1;\r\n } \r\n else return 1;\r\n }\r\n //if minutes are not equal, find the soonest one\r\n else if(Integer.parseInt(timeOnly1[1])<Integer.parseInt(timeOnly[1]))\r\n {\r\n return -1; \r\n } \r\n else return 1;\r\n }\r\n //if hours are not equal, find the soonest one\r\n else if(Integer.parseInt(timeOnly1[0])<Integer.parseInt(timeOnly[0]))\r\n {\r\n return -1; \r\n } \r\n else return 1;\r\n }\r\n //if days are not equal, find the soonest one\r\n else if(Integer.parseInt(dateOnly1[1])<Integer.parseInt(dateOnly[1]))\r\n {\r\n return -1; \r\n }\r\n else return 1;\r\n }\r\n //if months are not equal, find the soonest one\r\n else if(Integer.parseInt(dateOnly1[0])<Integer.parseInt(dateOnly[0]))\r\n {\r\n return -1; \r\n } \r\n else return 1;\r\n }\r\n //if years are not equal, find the soonest one \r\n else if(Integer.parseInt(dateOnly1[2])<Integer.parseInt(dateOnly[2]))\r\n {\r\n return -1;\r\n }\r\n else return 1;\r\n }",
"@Override\r\n public int compareTo(TennisMatch match) {\r\n if(getDateYear() < match.getDateYear()) {\r\n return 1;\r\n } else if(getDateYear() == match.getDateYear()\r\n && getDateMonth() < match.getDateMonth()) {\r\n return 1;\r\n } else if(getDateYear() == match.getDateYear()\r\n && getDateMonth() == match.getDateMonth()\r\n && getDateDay() < match.getDateDay()) {\r\n return 1;\r\n } else {\r\n return 0;\r\n }\r\n }",
"private boolean newsDateHasChanged(String guid, Date newDate) {\n String[] whereArgs = { guid };\n Cursor query = this.writableDatabase.query(TABLE_NEWS, new String[] { NEWS_DATE }, NEWS_GUID + \"=?\", whereArgs,\n null, null, null);\n if (query.getCount() > 0) {\n query.moveToFirst();\n Date oldDate = new Date(Long.valueOf(query.getString(query.getColumnIndex(NEWS_DATE))));\n query.close();\n if (newDate.getTime() > oldDate.getTime())\n Log.w(TAG, newDate.toLocaleString() + \" - \" + oldDate.toLocaleString());\n return newDate.getTime() > oldDate.getTime();\n }\n query.close();\n return false;\n }",
"public int compare(TimeSpan std1, TimeSpan std2) {\n\t\t\t//ascending order\n\t\t\treturn std1.start - std2.start;\n\t\t}",
"public boolean equals(Object obj) {\n if (obj == null || (!(obj instanceof Timestamp))) {\n return false;\n }\n Timestamp that = (Timestamp)obj;\n\n if (this == that) {\n return true;\n }\n return (timestamp.equals(that.getTimestamp()) &&\n signerCertPath.equals(that.getSignerCertPath()));\n }",
"@Test\n public void testFindSinceCreationTime() {\n MeteringDataSec meteringData2 = new MeteringDataSec(new Timestamp(2), new BigDecimal(\"1\"), null, null, 0L);\n meteringDataRepository.save(meteringData2);\n MeteringDataSec meteringData3 = new MeteringDataSec(new Timestamp(3), new BigDecimal(\"2\"), null, null, 0L);\n meteringDataRepository.save(meteringData3);\n\n \tList<MeteringDataSec> list = meteringDataRepository.findSinceCreationTime(new Timestamp(2));\n \tassertNotNull(list);\n \tassertThat(list).hasSize(2);\n }",
"@Override\n public int compareTo(Date that) {\n if (this.year < that.year) return -1;\n if (this.year > that.year) return 1;\n if (this.month < that.month) return -1;\n if (this.month > that.month) return 1;\n if (this.day < that.day) return -1;\n if (this.day > that.day) return 1;\n return 0;\n }",
"public int compareTo(DateTemperaturePair pair) {\n int compareValue = this.yearMonth.compareTo(pair.getYearMonth());\n if(compareValue == 0){\n compareValue = temperature.compareTo(pair.getTemperature());\n }\n /*ascending*/\n return compareValue;\n /*descending*/\n// return -1*compareValue;\n }",
"protected void sortCheck() {\n if (m_instances == null) {\n return;\n }\n \n if (m_simpleConfigPanel.isUsingANativeTimeStamp()) {\n String timeStampF = m_simpleConfigPanel.getSelectedTimeStampField();\n Attribute timeStampAtt = m_instances.attribute(timeStampF); \n if (timeStampAtt != null) {\n \n double lastNonMissing = Utils.missingValue();\n boolean ok = true;\n boolean hasMissing = false;\n for (int i = 0; i < m_instances.numInstances(); i++) {\n Instance current = m_instances.instance(i);\n \n if (Utils.isMissingValue(lastNonMissing)) {\n if (!current.isMissing(timeStampAtt)) {\n lastNonMissing = current.value(timeStampAtt);\n } else {\n hasMissing = true;\n }\n } else {\n if (!current.isMissing(timeStampAtt)) {\n if (current.value(timeStampAtt) - lastNonMissing < 0) {\n ok = false;\n break;\n }\n \n lastNonMissing = current.value(timeStampAtt);\n } else {\n hasMissing = true;\n }\n }\n }\n \n if (!ok && !hasMissing) {\n // ask if we should sort\n int result = JOptionPane.showConfirmDialog(ForecastingPanel.this, \n \"The data does not appear to be in sorted order of \\\"\"\n + timeStampF + \"\\\". Do you want to sort the data?\", \n \"Forecasting\", JOptionPane.YES_NO_OPTION);\n \n if (result == JOptionPane.YES_OPTION) {\n if (m_log != null) {\n m_log.statusMessage(\"Sorting data...\");\n }\n m_instances.sort(timeStampAtt);\n m_sortedCheck = true; \n }\n }\n \n if (!ok && hasMissing) {\n // we can't really proceed in this situation. We can't sort by the timestamp\n // because instances with missing values will be put at the end of the data.\n // The only thing we can do is to remove the instances with missing time\n // stamps but this is likely to screw up the periodicity and majorly impact\n // on results.\n \n int result = JOptionPane.showConfirmDialog(ForecastingPanel.this, \n \"The data does not appear to be in sorted order of \\\"\"\n + timeStampF + \"\\\". \\nFurthermore, there are rows with\\n\" +\n \t\t\"missing timestamp values. We can remove these\\n\" +\n \t\t\"rows and then sort the data but this is likely to\\n\" +\n \t\t\"result in degraded performance. It is strongly\\n\" +\n \t\t\"recommended that you fix these issues in the data\\n\" +\n \t\t\"before continuing. Do you want the system to proceed\\n\" +\n \t\t\"anyway by removing rows with missing timestamps and\\n\" +\n \t\t\"then sorting the data?\", \n \"Forecasting\", JOptionPane.YES_NO_OPTION);\n \n if (result == JOptionPane.YES_OPTION) {\n if (m_log != null) {\n m_log.statusMessage(\"Removing rows with missing time stamps and sorting data...\");\n }\n m_instances.deleteWithMissing(timeStampAtt);\n m_instances.sort(timeStampAtt);\n m_sortedCheck = true; \n }\n }\n }\n }\n }",
"@Override\n public int compare(Event o1, Event o2) {\n char[] event1 = o1.getEvent().toCharArray();\n char[] event2 = o2.getEvent().toCharArray();\n\n int i = 0; // Intiialize counter variable i\n\n while (i < event1.length && i < event2.length) // We reached the end, stop\n {\n if (event1[i] - event2[i] == 0) /* if the two elements are the same, tells us nothing about difference */\n {\n i++; // Keep going\n }\n\n else if (event1[i] - event2[i] < 0) // If true, this->str[i] comes first\n {\n return -1; // Return -1 for sorting\n }\n\n else if (event1[i] - event2[i] > 0) // If true,argStr.str[i] comes first\n {\n return 1;\n }\n }\n\n if (event1.length < event2.length)\n {\n return -1;\n }\n\n else if (event1.length > event2.length)\n {\n return 1;\n }\n\n else\n {\n return 0;\n }\n\n }",
"public boolean isLower(DateTime dt) {\n return Long.parseLong(this.vStamp) < Long.parseLong(dt.getStamp());\r\n }",
"@Override\r\n\t\tpublic int compareTo(Event compareEvent){\r\n\t\t\t\r\n\t\t\tint compareQuantity = ((Event)compareEvent).date;\r\n\t\t\t//ascending order\r\n\t\t\treturn this.date-compareQuantity;\r\n\t\t\t//descending order\r\n\t\t\t//return compareQuantity -this.quantity;\r\n\t\t}",
"@Override\n public boolean isEqualAt(UnitTime ut) {\n return ((LongUnitTime)ut).getValue()==this.getValue();\n }",
"@Override\n public int compareTo(Delayed o) {\n DelayedElement de = (DelayedElement) o;\n if (insertTime < de.getInsertTime())\n return -1;\n if (insertTime > de.getInsertTime())\n return 1;\n\n return 0;\n }",
"@Override\n public int compareTo(GameScores gs) {\n if (this.getTime() == gs.getTime()) return 0;\n else return this.getTime() > gs.getTime() ? 1 : -1;\n }",
"public boolean onTarget(long timestamp)\n {\n return compareToTimestamp(timestamp) == 0;\n }",
"public int compare(TimeInterval ti) {\r\n\t\tlong diff = 0;\r\n\t\tfor (int field = 8; field >= 1; field--) {\r\n\t\t\tdiff += (getNumberOfIntervals(field) - ti\r\n\t\t\t\t\t.getNumberOfIntervals(field))\r\n\t\t\t\t\t* getMaximumNumberOfMinutesInField(field);\r\n\t\t}\r\n\t\tif (diff == 0)\r\n\t\t\treturn 0;\r\n\t\telse if (diff > 0)\r\n\t\t\treturn 1;\r\n\t\telse\r\n\t\t\treturn -1;\r\n\t}",
"public static void main(String[] args) {\n Date dt1 = new Date();\n System.out.println(dt1);\n \n //get the milli secs in Long from January 1st 1970 00:00:00 GMT... and then create the date Obj from that\n long millisecs = System.currentTimeMillis();\n System.out.println(millisecs);\n Date dt2 = new Date(millisecs);\n System.out.println(dt2);\n System.out.println(\"=========================\");\n\n millisecs = dt2.getTime();//convert dateObj back to millisecs\n System.out.println(millisecs);\n System.out.println(\"dt2.toString(): \" + dt2.toString());\n System.out.println(\"=========================\");\n\n //check if after?\n System.out.println(dt1.after(dt2)); \n System.out.println(dt2.after(dt1));\n //check if before?\n System.out.println(dt1.before(dt2));\n System.out.println(dt2.before(dt1));\n\n\n\n System.out.println(\"=========================\");\n\n // compare 2 date Objects\n //returns 0 if the obj Date is equal to parameter's Date.\n //returns < 0 if obj Date is before the Date para.\n //returns > 0 if obj Date is after the Date para.\n int result = dt1.compareTo(dt2);\n System.out.println(\"dt1 < dt2: \" + result);\n result = dt2.compareTo(dt1);\n System.out.println(\"dt2 > dt1: \" + result);\n\n System.out.println(\"=========================\");\n\n //return true/false on testing equality\n System.out.println(dt1.equals(dt2));\n System.out.println(dt2.equals(dt1));\n System.out.println(\"=========================\");\n\n\n\n\n\n }",
"public int compareTo(Message other){\n if(time < other.time) {\n return -1;\n } else { // assume one comes before the other in all instances\n return 1;\n }\n }",
"void updateSortingComparators(Comparator<ReadOnlyEntry> eventComparator,\n Comparator<ReadOnlyEntry> deadlineComparator,\n Comparator<ReadOnlyEntry> floatingTaskComparator);",
"@Override\n\tpublic boolean isNextMessage(User from, Vector comparison){\n\n\t\tfor (Object o1 : comparison.getClock().entrySet()) {\n\t\t\tHashMap.Entry pair = (HashMap.Entry) o1;\n\n\t\t\tif(this.clock.containsKey(pair.getKey())){\n\n\t\t\t\tLong reVal = (Long)pair.getValue();\n\t\t\t\tLong myVal = this.clock.get(pair.getKey());\n\t\t\t\tUser userKey = (User)pair.getKey();\n\n\t\t\t\tif(!(userKey.equals(from) && reVal.equals(myVal+1L)) ) {\n\t\t\t\t\tif(! (!userKey.equals(from) && 0 <= myVal.compareTo(reVal) ) ){\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tif(!pair.getValue().equals(1L)) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (Object o1 : this.clock.entrySet()) {\n\t\t\tHashMap.Entry pair = (HashMap.Entry) o1;\n\n\t\t\tif(comparison.getClock().containsKey(pair.getKey())){\n\n\t\t\t\tLong myVal = (Long)pair.getValue();\n\t\t\t\tLong reVal = comparison.getClock().get(pair.getKey());\n\t\t\t\tUser userKey = (User)pair.getKey();\n\n\t\t\t\tif(!(userKey.equals(from) && reVal.equals(myVal + 1L)) ) {\n\t\t\t\t\tif(! (!userKey.equals(from) && 0 <= myVal.compareTo(reVal) ) ){\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"public int compareTo(Group3Date that) {\n\t\t\tif (this.year < that.year) return -1;\n\t\t\tif (this.year > that.year) return +1;\n\t\t\tif (this.month < that.month) return -1;\n\t\t\tif (this.month > that.month) return +1;\n\t\t\tif (this.day < that.day) return -1;\n\t\t\tif (this.day > that.day) return +1;\n\t\t\treturn 0;\n\t\t}",
"@Override\n\t\t\t\tpublic int compare(PartnerDemand lhs, PartnerDemand rhs) {\n\t\t\t\t\treturn rhs.getCreatedAt().compareTo(lhs.getCreatedAt());\n\t\t\t\t}"
] |
[
"0.71380496",
"0.65993375",
"0.6527842",
"0.6328482",
"0.6285319",
"0.62248194",
"0.6187144",
"0.6120214",
"0.6094502",
"0.609025",
"0.60779226",
"0.60779226",
"0.6014385",
"0.587025",
"0.5835362",
"0.58291113",
"0.58285606",
"0.5791916",
"0.57731575",
"0.5760447",
"0.57378143",
"0.57257545",
"0.5723023",
"0.57095873",
"0.56901",
"0.567396",
"0.5673322",
"0.566083",
"0.5650739",
"0.5647539",
"0.5645816",
"0.5643975",
"0.5638782",
"0.5634227",
"0.5632702",
"0.56261075",
"0.5624403",
"0.56097156",
"0.56071365",
"0.56049234",
"0.560324",
"0.55745214",
"0.5574511",
"0.5572996",
"0.55699784",
"0.5566115",
"0.55391026",
"0.5529698",
"0.5515215",
"0.5514159",
"0.549526",
"0.54927105",
"0.5475868",
"0.5470253",
"0.5470253",
"0.5470253",
"0.5470253",
"0.5470253",
"0.5470253",
"0.5470253",
"0.54507774",
"0.54424405",
"0.5441685",
"0.5435058",
"0.5429654",
"0.5427383",
"0.54267305",
"0.5403923",
"0.53983915",
"0.5390834",
"0.5390492",
"0.53889215",
"0.5385268",
"0.53829646",
"0.5382484",
"0.5372953",
"0.53705126",
"0.5348899",
"0.53446746",
"0.5342525",
"0.53358454",
"0.5334698",
"0.53301525",
"0.53243345",
"0.53241116",
"0.5323653",
"0.5318137",
"0.53045094",
"0.5297458",
"0.5289703",
"0.52884287",
"0.5284395",
"0.52714837",
"0.5264145",
"0.52632105",
"0.5262805",
"0.52562624",
"0.5252377",
"0.5249913",
"0.52477396"
] |
0.5913737
|
13
|
Context URIs are unique identifiers
|
@Override
public boolean equals(Object o)
{
if(o instanceof Context)
{
return contextURI.equals(((Context) o).contextURI);
}
return false;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"String getContextId();",
"public java.lang.CharSequence getContextId() {\n return contextId;\n }",
"public java.lang.CharSequence getContextId() {\n return contextId;\n }",
"public String getContextIdentifier(HttpServletRequest httpServletRequest) {\n return null;\n }",
"public String getContextId() {\n return contextId;\n }",
"public URI getCurrentContext();",
"java.lang.String getContext();",
"public String getContextString();",
"public String getContextID() throws PolicyContextException {\n\tcheckSetPolicyPermission();\n\treturn this.CONTEXT_ID;\n }",
"public int getContextId() {\n return contextId;\n }",
"public void setContextId(java.lang.CharSequence value) {\n this.contextId = value;\n }",
"public String getContext() { return context; }",
"protected String getIdentifier() {\n return getBaseUrl() + normalizePath(getRequest().getPath());\n }",
"java.lang.String getLinkedContext();",
"String getContextPath();",
"String getContextPath();",
"String getContextPath();",
"public URI getId();",
"public URI getId();",
"Context context();",
"Context context();",
"public String getHandleIdentifier() {\n \t\tif (contexts.values().size() == 1) {\n \t\t\treturn contexts.keySet().iterator().next();\n \t\t} else {\n \t\t\treturn null;\n \t\t}\n \t}",
"public String getContextUrl() {\n String currentURL = driver.getCurrentUrl();\n return currentURL.substring(0, currentURL.lastIndexOf(\"/login\"));\n }",
"public String getContextId(String contextName) throws Exception {\n return getContextInfo(contextName).getValue(\"id\").toString();\n }",
"Context getContext();",
"public static String getJsonContextURI() {\n return Registry.get().getBaseURI() + JsonContext.JSON_CONTEXT_PATH;\n }",
"@Override\n public boolean isContextPathInUrl() {\n return false;\n }",
"@Override\n public boolean isContextPathInUrl() {\n return false;\n }",
"@Override\n public String getUrlContextPath() {\n return \"\";\n }",
"private Uri computeUri(Context param1) {\n }",
"public String getContext() {\r\n\t\treturn context;\r\n\t}",
"MMIContext getContext(final URI contextId) {\n final String str = contextId.toString();\n return getContext(str);\n }",
"public void mo3104a(Context context) {\n if (this.f2605a == 2) {\n String str = (String) this.f2606b;\n String str2 = \":\";\n if (str.contains(str2)) {\n String str3 = str.split(str2, -1)[1];\n String str4 = Constants.URL_PATH_DELIMITER;\n String str5 = str3.split(str4, -1)[0];\n String str6 = str3.split(str4, -1)[1];\n String str7 = str.split(str2, -1)[0];\n int identifier = m2627a(context, str7).getIdentifier(str6, str5, str7);\n if (this.f2609e != identifier) {\n StringBuilder sb = new StringBuilder();\n sb.append(\"Id has changed for \");\n sb.append(str7);\n sb.append(str4);\n sb.append(str6);\n Log.i(\"IconCompat\", sb.toString());\n this.f2609e = identifier;\n }\n }\n }\n }",
"@Override\n\t\tpublic String getContextPath() {\n\t\t\treturn null;\n\t\t}",
"@Override\n public URI getId() {\n return id;\n }",
"public String getContext() {\n\t\treturn context;\n\t}",
"Map<String, Object> getContext();",
"protected String toContextMapKey(ClassLoader loader) {\n/* 52 */ return \"AsyncContext@\" + Integer.toHexString(System.identityHashCode(loader));\n/* */ }",
"String serviceId(RequestContext ctx) {\n\n String serviceId = (String) ctx.get(SERVICE_ID);\n if (serviceId == null) {\n log.info(\"No service id found in request context {}\", ctx);\n }\n return serviceId;\n }",
"public java.lang.String getContext() {\n java.lang.Object ref = context_;\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 context_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"TrustedIdProvider refresh(Context context);",
"CTX_Context getContext();",
"public String getContext() {\n return context;\n }",
"public String getContext() {\n return context;\n }",
"public String getContext() {\n return context;\n }",
"TrustedIdProvider apply(Context context);",
"public java.lang.String getContext() {\n java.lang.Object ref = context_;\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 context_ = s;\n return s;\n }\n }",
"void mo25261a(Context context);",
"@Override\n public String getContextPath() {\n return null;\n }",
"@Override\n public String getContextPath() {\n return null;\n }",
"@Override\n\tpublic String getContextPath() {\n\t\treturn contextPath;\n\t}",
"private String context(){\r\n \r\n assert iMessage!=null;\r\n assert iIndex>=0;\r\n assert iIndex<=iMessage.length();\r\n\r\n return iMessage.substring(0, iIndex)+\" ^ \"+iMessage.substring(iIndex);//return parse context\r\n \r\n }",
"java.lang.String getRequestID();",
"com.google.protobuf.ByteString getContext();",
"long getCurrentContext();",
"public com.google.protobuf.ByteString\n getContextBytes() {\n java.lang.Object ref = context_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n context_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public abstract Context context();",
"public interface IHelpContextIds {\n\tpublic static final String PREFIX = CpPlugInUI.PLUGIN_ID + \".\"; //$NON-NLS-1$\n\n\tpublic static final String COMPONENT_PAGE = PREFIX + \"component_page\"; //$NON-NLS-1$\n\tpublic static final String DEVICE_PAGE = PREFIX + \"device_page\"; //$NON-NLS-1$\n\tpublic static final String PACKS_PAGE = PREFIX + \"packs_page\"; //$NON-NLS-1$\n\n}",
"ContextVariable createContextVariable();",
"public URI selfIdentify();",
"Context createContext();",
"Context createContext();",
"String idProvider();",
"com.google.protobuf.ByteString\n getContextBytes();",
"@Nullable\n default String getContext() {\n String contextName =\n String.valueOf(execute(DriverCommand.GET_CURRENT_CONTEXT_HANDLE).getValue());\n return \"null\".equalsIgnoreCase(contextName) ? null : contextName;\n }",
"public String tooltip()\n\t{\n\t if (contextURI==null)\n\t return \"(no context specified)\";\n\t \n\t if (contextURI.equals(Vocabulary.SYSTEM_CONTEXT.METACONTEXT))\n\t return \"MetaContext (stores data about contexts)\";\n\t \n\t if(contextURI.equals(Vocabulary.SYSTEM_CONTEXT.VOIDCONTEXT))\n\t \treturn \"VoID Context (stores statistics about contexts)\";\n\t \n\t if (type!=null && timestamp!=null)\n\t {\n\t GregorianCalendar c = new GregorianCalendar();\n\t c.setTimeInMillis(timestamp);\n\t \n\t String date = ReadWriteDataManagerImpl.dateToISOliteral(c.getTime()); \n\t \n\t if (!StringUtil.isNullOrEmpty(date))\n\t date = ValueResolver.resolveSysDate(date);\n\t \n\t String ret = \"Created by \" + type;\n\t if (type.equals(ContextType.USER))\n\t ret += \" '\"\n\t + source.getLocalName()\n\t + \"'\";\n\t else\n\t {\n\t String displaySource = null;\n\t if(source!=null)\n\t {\n\t displaySource = EndpointImpl.api().getNamespaceService().getAbbreviatedURI(source);\n\t if (StringUtil.isNullOrEmpty(displaySource))\n\t displaySource = source.stringValue(); // fallback solution: full URI\n\t }\n\t String displayGroup = null;\n\t if (group!=null)\n\t {\n\t displayGroup = EndpointImpl.api().getNamespaceService().getAbbreviatedURI(group);\n\t if (StringUtil.isNullOrEmpty(displayGroup))\n\t displayGroup = group.stringValue(); // fallback solution: full URI\n\t }\n\t \n\t ret += \" (\";\n\t ret += source==null ? \"\" : \"source='\" + displaySource + \"'\";\n\t ret += source!=null && group!=null ? \"/\" : \"\";\n\t ret += group==null ? \"\" : \"group='\" + displayGroup + \"'\";\n\t ret += \")\";\n\t }\n\t ret += \" on \" + date;\n\t if (label!=null)\n\t ret += \" (\" + label.toString() + \")\";\n\t if (state!=null && !state.equals(ContextState.PUBLISHED))\n\t ret += \" (\" + state + \")\"; \n\t return ret;\n\t }\n\t else\n\t return contextURI.stringValue();\n\t}",
"String getContextPath() {\n return contextPath;\n }",
"void mo97180a(Context context);",
"public String getTraceContextString() {\n Map<String, String> traceInfo = getTraceContext();\n if (traceInfo == null) {\n DDLogger.getLoggerImpl().debug(\"No Trace/Log correlation IDs returned\");\n return \"\";\n }\n\n String traceID = traceInfo.get(this.tracing.TRACE_ID_KEY);\n String spanID = traceInfo.get(this.tracing.SPAN_ID_KEY);\n return formatTraceContext(this.tracing.TRACE_ID_KEY, traceID, this.tracing.SPAN_ID_KEY, spanID);\n }",
"private String buildUriFromId(String baseUri, String id){\n\t\treturn baseUri + \"/\" + id;\n\t}",
"public com.google.protobuf.ByteString getContext() {\n return context_;\n }",
"SimpleUniqueValueGenerator(String context) {\n context_ = context;\n }",
"public abstract void mo36026a(Context context);",
"public abstract void makeContext();",
"public com.google.protobuf.ByteString\n getContextBytes() {\n java.lang.Object ref = context_;\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 context_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String getContext() {\n\t\treturn this.getClass().getSimpleName();\n\t}",
"TrustedIdProvider create(Context context);",
"protected String getRequestURI(HttpServletRequest request) {\r\n\t\t\r\n\t\tString uri = request.getRequestURI();\r\n\t\tString ctxPath = request.getContextPath();\r\n\r\n\t\tif (contextAware == true && uri.startsWith(ctxPath))\r\n\t\t\turi = uri.substring(ctxPath.length());\r\n\r\n\t\treturn uri;\r\n\t}",
"public static String getContainerKey() {\r\n\t\treturn ContainerRegistryBuilder.APPLICATION_CONTEXT_ATTRIBUTE_NAME;\r\n\t}",
"private DIDURL(DID context) {\n\t\tthis(context, (DIDURL)null);\n\t}",
"@java.lang.Override public int getContextValue() {\n return context_;\n }",
"public com.google.protobuf.ByteString getContext() {\n return context_;\n }",
"RenderingContext getContext();",
"public void setContextId(String contextId) {\n this.contextId = contextId;\n }",
"@Experimental\n @Returns(\"browserContextId\")\n String createBrowserContext();",
"public String getStringID() {\r\n\t\treturn uri.getPath();\r\n\t}",
"public boolean supportsSeparateContextFiles();",
"public URI getID() {\n return this.id;\n }",
"public String getCurrentRequestId()\n\t{\n\t\tString reqID = (String) MDC.get(REQUEST_ID);\n\t\tif (reqID == null || \"\".equals(reqID))\n\t\t{\n\t\t\treqID = \"RID_\" + UUID.randomUUID().toString();\n\t\t\tMDC.put(REQUEST_ID, reqID);\n\t\t}\n\t\treturn reqID;\n\t}",
"protected String toString(DID context) {\n\t\tStringBuilder builder = new StringBuilder(512);\n\t\tif (did != null && (context == null || !did.equals(context)))\n\t\t\tbuilder.append(did);\n\n\t\tif (path != null && !path.isEmpty())\n\t\t\tbuilder.append(path);\n\n\t\tif (query != null && !query.isEmpty())\n\t\t\tbuilder.append(\"?\").append(getQueryString());\n\n\t\tif (fragment != null && !fragment.isEmpty())\n\t\t\tbuilder.append(\"#\").append(getFragment());\n\n\t\treturn builder.toString();\n\t}",
"public void setContext(String context) {\r\n\t\tthis.context = context;\r\n\t}",
"public void setContexts(final String val) {\n contexts = val;\n }",
"public void setContext(String context) {\n\t\tif (context.startsWith(\"/\")) {\n\t\t\tthis.context = context;\n\t\t}\n\t\telse {\n\t\t\tthis.context = \"/\" + context;\n\t\t}\n\t}",
"@DSSource({DSSourceKind.FILE_INFORMATION})\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:49.376 -0500\", hash_original_method = \"AC6673E983BE229DBE393CCBB4A72E75\", hash_generated_method = \"03FD0CE5F473571E708DB9317FA1B856\")\n \npublic String getURI (String prefix)\n {\n return currentContext.getURI(prefix);\n }",
"protected String getHelpContextId() {\r\n\t\treturn IRubyHelpContextIds.PROJECTS_VIEW;\r\n\t}",
"public static String getContext(String key){\r\n return String.valueOf(scenarioContext.get(key));\r\n }",
"default String getContext() {\n return getContextOpt().orElseThrow(IllegalStateException::new);\n }",
"Context mo1490b();",
"public void setContext(String context) {\n\t\tthis.context = context;\n\t}",
"private void changeContext(){\n MainWorkflow.observeContexts(generateRandom(24,0));\n }"
] |
[
"0.724885",
"0.6422958",
"0.64159286",
"0.6391779",
"0.62694275",
"0.62587243",
"0.6206301",
"0.6149544",
"0.61240464",
"0.61157864",
"0.6029177",
"0.6015953",
"0.60027504",
"0.5927815",
"0.5907201",
"0.5907201",
"0.5907201",
"0.59015805",
"0.59015805",
"0.5771664",
"0.5771664",
"0.57619065",
"0.5750429",
"0.5739349",
"0.5701322",
"0.5700746",
"0.56922626",
"0.56922626",
"0.5690595",
"0.5657021",
"0.56557316",
"0.56511194",
"0.5643604",
"0.5632135",
"0.56101185",
"0.559267",
"0.5590131",
"0.55633163",
"0.5562278",
"0.55594313",
"0.55392015",
"0.55383843",
"0.5523161",
"0.5523161",
"0.5523161",
"0.5507914",
"0.54953814",
"0.54926974",
"0.5487231",
"0.5487231",
"0.5484416",
"0.54640526",
"0.5439095",
"0.54265016",
"0.541366",
"0.5402654",
"0.5388909",
"0.5362517",
"0.53548133",
"0.5352759",
"0.5339638",
"0.5339638",
"0.53325856",
"0.5327492",
"0.53265065",
"0.53232306",
"0.5301766",
"0.5292295",
"0.5286573",
"0.52824605",
"0.5278619",
"0.5277142",
"0.52757937",
"0.52541864",
"0.52486193",
"0.52415735",
"0.5234671",
"0.52272296",
"0.52267087",
"0.5224956",
"0.522161",
"0.5217577",
"0.52144456",
"0.52069616",
"0.5199782",
"0.51996523",
"0.51881117",
"0.5177104",
"0.5177049",
"0.51677054",
"0.51498413",
"0.5148324",
"0.5143955",
"0.51408195",
"0.5134073",
"0.5119675",
"0.5116768",
"0.5100546",
"0.50894535",
"0.5083044"
] |
0.5701702
|
24
|
Persists the context's meta information. For normal operations (such as adding/removing triples, this is internally called by the data manager. However, if you manipulate the context's state directly, you need to call this function in order to assert that the context meta information is persisted in the database.
|
public void persistContextMetaInformation(ReadWriteDataManager dm)
{
// for transaction reasons, this is implemented inside the data manager directly:
dm.persistContextMetaInformation(this);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void context_save(long context) {\n context_save(nativeHandle, context);\n }",
"void saveContext();",
"public void persist() {\n getBuildContextHolder().persist();\n }",
"@Override\r\n\t\t\tprotected void saveContext() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\n public void persist() {\n }",
"@Override\r\n\tpublic void persist() {\n\t}",
"public boolean save(Context context)\n {\n return save(context, this);\n }",
"@Override\n public void sync(Context context) {\n context.setCandidateSet(Database.getCandidateSet());\n context.setVoterSet(Database.getVoterSet());\n context.setLogins(Database.getLogins());\n context.setCommissionerSet(Database.getCommissionerSet());\n }",
"public void persist() {\n\t\ttry {\n\t\t\tFileOutputStream fos = this._context.openFileOutput(\n\t\t\t\t\tConstants.CATALOG_XML_FILE_NAME, Context.MODE_PRIVATE);\n\t\t\tfos.write(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" ?>\\n\".getBytes());\n\t\t\tfos.write(\"<orders>\\n\".getBytes());\n\t\t\tfor (int i = 0; i < getOrderEntryCount(); i++) {\n\t\t\t\tOrderEntry oe = getOrderEntry(i);\n\t\t\t\tfos.write(oe.toXMLString().getBytes());\n\t\t\t}\n\t\t\tfos.write(\"</orders>\\n\".getBytes());\n\t\t\tfos.flush();\n\t\t\tfos.close();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tLog.d(Constants.LOGTAG, \" \" + OrderList.CLASSTAG\n\t\t\t\t\t+ \"Failed to write out file?\" + e.getMessage());\n\t\t}\n\t}",
"public void saveMeta( HadoopExitMeta meta ) {\n // Set outKey\n if ( meta.getOutKeyFieldname() == null && getOutKeyFieldname() != null ) {\n meta.setOutKeyFieldname( getOutKeyFieldname() );\n meta.setChanged();\n } else if ( meta.getOutKeyFieldname() != null && !meta.getOutKeyFieldname().equals( getOutKeyFieldname() ) ) {\n meta.setOutKeyFieldname( getOutKeyFieldname() );\n meta.setChanged();\n }\n\n // Set outValue\n if ( meta.getOutValueFieldname() == null && getOutValueFieldname() != null ) {\n meta.setOutValueFieldname( getOutValueFieldname() );\n meta.setChanged();\n } else if ( meta.getOutValueFieldname() != null && !meta.getOutValueFieldname().equals( getOutValueFieldname() ) ) {\n meta.setOutValueFieldname( getOutValueFieldname() );\n meta.setChanged();\n }\n }",
"public void write(IMetaData<?, ?> meta) throws IOException;",
"@Override\n\tpublic void persist(T obj) throws Exception {\n\t\t\n\t}",
"public void saveFeatureMetadata();",
"public void save() {\n if(persistenceType == PropertyPersistenceType.Persistent) {\n if (!isSetToDefault()) {\n permanentStore.setBoolean(key, get());\n } else {\n permanentStore.remove(key);\n }\n }\n }",
"public void persist(CallingContext cc ) throws ODKEntityPersistException, ODKOverQuotaException;",
"public void saveExtraData() {}",
"@Override\n\tpublic void persist(Object entity) {\n\t\t\n\t}",
"public void store() throws PersistenceException {\n }",
"void saveSaves(Object data, Context context);",
"@Override\n public void storeToGraph(Set<GraphContext> graphContext) {\n\n graphContext.forEach(entry -> {\n try {\n LineageEntity fromEntity = entry.getFromVertex();\n LineageEntity toEntity = entry.getToVertex();\n\n upsertToGraph(fromEntity, toEntity, entry.getRelationshipType(), entry.getRelationshipGuid());\n } catch (Exception e) {\n log.error(VERTICES_AND_RELATIONSHIP_CREATION_EXCEPTION, e);\n }\n });\n }",
"@Override\n\tpublic void persist() {\n\t\tif (this.isNew()) {\n\t\t\tQuxLocalServiceUtil.addQux(this);\n\t\t}\n\t\telse {\n\t\t\tQuxLocalServiceUtil.updateQux(this);\n\t\t}\n\t}",
"private void saveAsCurrentSession(Context context) {\n \t// Save the context\n \tthis.context = context;\n }",
"@Override\n\tpublic void persist(Recipe entity) {\n\t\t\n\t}",
"void store(UUID uuid, byte[] context) throws FailedToStoreDataInStorage;",
"@Override\n\tpublic void saveEntity(T t) {\n\t\tgetSession().save(t);\n\t}",
"protected void saveValues() {\n dataModel.persist();\n }",
"public final void commit(com.mendix.systemwideinterfaces.core.IContext context) throws com.mendix.core.CoreException\r\n\t{\r\n\t\tcom.mendix.core.Core.commit(context, getMendixObject());\r\n\t}",
"public final void commit(com.mendix.systemwideinterfaces.core.IContext context) throws com.mendix.core.CoreException\r\n\t{\r\n\t\tcom.mendix.core.Core.commit(context, getMendixObject());\r\n\t}",
"public final void commit(com.mendix.systemwideinterfaces.core.IContext context) throws com.mendix.core.CoreException\r\n\t{\r\n\t\tcom.mendix.core.Core.commit(context, getMendixObject());\r\n\t}",
"public final void commit(com.mendix.systemwideinterfaces.core.IContext context) throws com.mendix.core.CoreException\r\n\t{\r\n\t\tcom.mendix.core.Core.commit(context, getMendixObject());\r\n\t}",
"public final void commit(com.mendix.systemwideinterfaces.core.IContext context) throws com.mendix.core.CoreException\r\n\t{\r\n\t\tcom.mendix.core.Core.commit(context, getMendixObject());\r\n\t}",
"@Override\r\n\tpublic void save(T t) {\n\t\tgetSession().save(t);\r\n\t}",
"private Version persistMetadata() {\n\n final Value propsArray = lobProps.serialize();\n\n /* Insert the new LOB */\n final Version storedVersion =\n kvsImpl.putIfAbsent(internalLOBKey, propsArray,\n null,\n lobDurability,\n chunkTimeoutMs, TimeUnit.MILLISECONDS);\n\n if (storedVersion == null) {\n final String msg = \"Metadata for internal key: \" + internalLOBKey +\n \" already exists for key: \" + appLOBKey;\n throw new ConcurrentModificationException(msg);\n }\n\n return storedVersion;\n }",
"public void storeAndCommit() {\n \tsynchronized(mDB.lock()) {\n \t\ttry {\n \t \t\tstoreWithoutCommit();\n \t \t\tcheckedCommit(this);\n \t\t}\n \t\tcatch(RuntimeException e) {\n \t\t\tcheckedRollbackAndThrow(e);\n \t\t}\n \t}\n }",
"public final void commit(com.mendix.systemwideinterfaces.core.IContext context) throws com.mendix.core.CoreException\n\t{\n\t\tcom.mendix.core.Core.commit(context, getMendixObject());\n\t}",
"public final void commit(com.mendix.systemwideinterfaces.core.IContext context) throws com.mendix.core.CoreException\n\t{\n\t\tcom.mendix.core.Core.commit(context, getMendixObject());\n\t}",
"public final void commit(com.mendix.systemwideinterfaces.core.IContext context) throws com.mendix.core.CoreException\n\t{\n\t\tcom.mendix.core.Core.commit(context, getMendixObject());\n\t}",
"public final void commit(com.mendix.systemwideinterfaces.core.IContext context) throws com.mendix.core.CoreException\n\t{\n\t\tcom.mendix.core.Core.commit(context, getMendixObject());\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 }",
"protected void persist(T item) {\n\t\tSession session = null;\n\t\ttry {\n\t\t\tsession = mDbHelper.beginTransaction();\n\t\t\tsession.persist(item);\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 persist\");\n\t\t}\n\t}",
"public StoreDataInSQLite(Context ctx) {\n\t\tthis.mCtx = ctx;\n\t}",
"void persist() throws PersistenceException;",
"public void persist() throws PersistenceException, ValidationException {\r\n\t\tPortalExtraInfo pei = PortalUtil.loadPortalExtraInfo(null, null, \"photoroster\");\r\n\t\tExtraInfo ei = pei.getExtraInfo();\r\n\t\tei.setValue(\"remoteLocal\", getRemoteLocal());\r\n\t\tei.setValue(\"enableInstructorUpload\", getEnableInstructorUpload());\r\n\r\n\t\tei.setValue(\"filePath\", getFilePath());\r\n\t\tei.setValue(\"fileDirectory\", getFileDirectory());\r\n\t\tei.setValue(\"remoteURLRoot\", getRemoteURLRoot());\r\n\t\tei.setValue(\"localURLRoot\", getLocalURLRoot());\r\n\t\tei.setValue(\"filenameID\", getFilenameID());\r\n\t\tei.setValue(\"scalePhotos\", getScalePhotos());\r\n\t\tei.setValue(\"scaledPhotoExtents\", getScaledPhotoExtents());\r\n\t\tei.setValue(\"photoCheck\", getPhotoCheck());\r\n\t\tei.setValue(\"allowableCourseRoles\", getAllowableCourseRoles());\r\n\t\tei.setValue(\"doneOnce\", \"y\");\r\n\r\n\t\tPortalUtil.savePortalExtraInfo(pei);\r\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 saveMetaData(Transaction tr) {\r\n\t\tDebug.indexLogger.debug(\"save BPlus index meta data on page {}\",\r\n\t\t\t\tmetaPageID);\r\n\t\tPage page = BufferManager.getPage(tr, metaPageID);\r\n\r\n\t\tpage.setType(tr, Page.TYPE_BTREE_HEADER);\r\n\t\t// always remember: first seek, then write\r\n\t\tpage.seek(Page.HEADER_LENGTH);\r\n\t\tpage.writeString(tr, name);\r\n\t\tpage.writeString(tr, table.getName());\r\n\t\tpage.writeInt(tr, columnID);\r\n\t\tpage.writeInt(tr, metaPageID);\r\n\t\tpage.writeInt(tr, isPrimary ? 1 : 0);\r\n\t\tpage.writeInt(tr, treeRoot);\r\n\r\n\t\tpage.release(tr);\r\n\r\n\t}",
"public abstract HistoricalEntity persistHistoricalWrapper();",
"public void save() {\n ProductData.saveData(tree);\n }",
"public void save(){\r\n\t\tmanager.save(this);\r\n\t}",
"public void persist(T entity) {\n getSession().persist(entity);\n }",
"public void persist(T entity) {\n getSession().persist(entity);\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 public void save(T element) {\n manager.persist(element);\n }",
"void storeSession() {\n retrieveSessionIfNeeded(false);\n\n if (session != null) {\n try {\n session.commit();\n } catch (Exception e) { // NOSONAR - some error occured, log it\n logger.warn(\"cannot store session: {}\", session, e);\n throw e;\n }\n } else {\n logger.debug(\"session was null, nothing to commit\");\n }\n }",
"protected void storeCurrentValues() {\n }",
"@Override\n\tpublic void persist() throws GymMembersException {\n\t\t\n\t}",
"@Override\n\tpublic void persist() throws EventManagementException {\n\t\t\n\t}",
"private static void metadataGroupsIntoContext(SessionState state, Context context)\n\t{\n\n\t\tcontext.put(\"STRING\", ResourcesMetadata.WIDGET_STRING);\n\t\tcontext.put(\"TEXTAREA\", ResourcesMetadata.WIDGET_TEXTAREA);\n\t\tcontext.put(\"BOOLEAN\", ResourcesMetadata.WIDGET_BOOLEAN);\n\t\tcontext.put(\"INTEGER\", ResourcesMetadata.WIDGET_INTEGER);\n\t\tcontext.put(\"DOUBLE\", ResourcesMetadata.WIDGET_DOUBLE);\n\t\tcontext.put(\"DATE\", ResourcesMetadata.WIDGET_DATE);\n\t\tcontext.put(\"TIME\", ResourcesMetadata.WIDGET_TIME);\n\t\tcontext.put(\"DATETIME\", ResourcesMetadata.WIDGET_DATETIME);\n\t\tcontext.put(\"ANYURI\", ResourcesMetadata.WIDGET_ANYURI);\n\t\tcontext.put(\"WYSIWYG\", ResourcesMetadata.WIDGET_WYSIWYG);\n\n\t\tcontext.put(\"today\", TimeService.newTime());\n\n\t\tList metadataGroups = (List) state.getAttribute(STATE_METADATA_GROUPS);\n\t\tif(metadataGroups != null && !metadataGroups.isEmpty())\n\t\t{\n\t\t\tcontext.put(\"metadataGroups\", metadataGroups);\n\t\t}\n\n\t}",
"public void save() {\n\t\tList<EmbeddedEntity> embeddedEntities = new ArrayList<>();\n\t\tfor (FeedItem item : items)\n\t\t\tembeddedEntities.add(item.getEntity());\n\t\tEntity feed = new Entity(getKey());\n\t\tfeed.setUnindexedProperty(\"items\", embeddedEntities); //NOI18N\n\t\tdatastore.put(feed);\n\t}",
"public void persist(String key, Object value)\r\n\t{\r\n\t\tgetPersistenceMap().put(key, value);\r\n\t}",
"private void save(MyContext myContext) {\n if (isMember.unknown || group.actorId == 0 || memberId == 0 || myContext == null ||\n myContext.getDatabase() == null) return;\n\n for (int pass=0; pass<5; pass++) {\n try {\n tryToUpdate(myContext, isMember.toBoolean(false));\n break;\n } catch (SQLiteDatabaseLockedException e) {\n MyLog.i(this, \"update, Database is locked, pass=\" + pass, e);\n if (DbUtils.waitBetweenRetries(\"update\")) {\n break;\n }\n }\n }\n }",
"public void save(Context context){\n\t\tFileOutputStream fos;\n\t\ttry {\n\t\t\tfos = context.openFileOutput(\"state.bin\", Context.MODE_PRIVATE);\n\t\t\tObjectOutputStream os = new ObjectOutputStream(fos);\n\t\t\tos.writeObject(this.list);\n\t\t\tos.close();\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} \n\t}",
"public void saveProperties()\n {\n _appContext.Configuration.save();\n }",
"@Override\n public <T extends IEntity> void persist(Iterable<T> entityIterable) {\n startCallContext(ConnectionReason.forUpdate);\n try {\n if (entityIterable.iterator().hasNext()) {\n for (T entity : entityIterable) {\n persist(tableModel(entity.getEntityMeta()), entity);\n }\n }\n } finally {\n endCallContext();\n }\n }",
"private void actuallyWriteData() {\r\n\t\t// Get rid of old data. Getting rid of trips, trip patterns, and blocks\r\n\t\t// is a bit complicated. Need to delete them in proper order because\r\n\t\t// of the foreign keys. Because appear to need to use plain SQL\r\n\t\t// to do so successfully (without reading in objects and then\r\n\t\t// deleting them, which takes too much time and memory). Therefore\r\n\t\t// deleting of this data is done here before writing the data.\r\n\t\tlogger.info(\"Deleting old blocks and associated trips from database...\");\r\n\t\tBlock.deleteFromSandboxRev(session);\r\n\r\n\t\tlogger.info(\"Deleting old trips from database...\");\r\n\t\tTrip.deleteFromSandboxRev(session);\r\n\r\n\t\tlogger.info(\"Deleting old trip patterns from database...\");\r\n\t\tTripPattern.deleteFromSandboxRev(session);\r\n\t\t\r\n\t\t// Now write the data to the database.\r\n\t\t// First write the Blocks. This will also write the Trips, TripPatterns,\r\n\t\t// Paths, and TravelTimes since those all have been configured to be\r\n\t\t// cascade=CascadeType.ALL .\r\n\t\tlogger.info(\"Saving {} blocks (plus associated trips) to database...\", \r\n\t\t\t\tgtfsData.getBlocks().size());\r\n\t\tint c = 0;\r\n\t\tfor (Block block : gtfsData.getBlocks()) {\r\n\t\t\tlogger.debug(\"Saving block #{} with blockId={} serviceId={} blockId={}\",\r\n\t\t\t\t\t++c, block.getId(), block.getServiceId(), block.getId());\r\n\t\t\twriteObject(block);\r\n\t\t}\r\n\t\t\r\n\t\tlogger.info(\"Saving routes to database...\");\r\n\t\tRoute.deleteFromSandboxRev(session);\r\n\t\tfor (Route route : gtfsData.getRoutes()) {\r\n\t\t\twriteObject(route);\r\n\t\t}\r\n\t\t\r\n\t\tlogger.info(\"Saving stops to database...\");\r\n\t\tStop.deleteFromSandboxRev(session);\r\n\t\tfor (Stop stop : gtfsData.getStops()) {\r\n\t\t\twriteObject(stop);\r\n\t\t}\r\n\t\t\r\n\t\tlogger.info(\"Saving agencies to database...\");\r\n\t\tAgency.deleteFromSandboxRev(session);\r\n\t\tfor (Agency agency : gtfsData.getAgencies()) {\r\n\t\t\twriteObject(agency);\r\n\t\t}\r\n\r\n\t\tlogger.info(\"Saving calendars to database...\");\r\n\t\tCalendar.deleteFromSandboxRev(session);\r\n\t\tfor (Calendar calendar : gtfsData.getCalendars()) {\r\n\t\t\twriteObject(calendar);\r\n\t\t}\r\n\t\t\r\n\t\tlogger.info(\"Saving calendar dates to database...\");\r\n\t\tCalendarDate.deleteFromSandboxRev(session);\r\n\t\tfor (CalendarDate calendarDate : gtfsData.getCalendarDates()) {\r\n\t\t\twriteObject(calendarDate);\r\n\t\t}\r\n\t\t\r\n\t\tlogger.info(\"Saving fare rules to database...\");\r\n\t\tFareRule.deleteFromSandboxRev(session);\r\n\t\tfor (FareRule fareRule : gtfsData.getFareRules()) {\r\n\t\t\twriteObject(fareRule);\r\n\t\t}\r\n\t\t\r\n\t\tlogger.info(\"Saving fare attributes to database...\");\r\n\t\tFareAttribute.deleteFromSandboxRev(session);\r\n\t\tfor (FareAttribute fareAttribute : gtfsData.getFareAttributes()) {\r\n\t\t\twriteObject(fareAttribute);\r\n\t\t}\r\n\t\t\r\n\t\tlogger.info(\"Saving frequencies to database...\");\r\n\t\tFrequency.deleteFromSandboxRev(session);\r\n\t\tfor (Frequency frequency : gtfsData.getFrequencies()) {\r\n\t\t\twriteObject(frequency);\r\n\t\t}\r\n\t\t\r\n\t\tlogger.info(\"Saving transfers to database...\");\r\n\t\tTransfer.deleteFromSandboxRev(session);\r\n\t\tfor (Transfer transfer : gtfsData.getTransfers()) {\r\n\t\t\twriteObject(transfer);\r\n\t\t}\r\n\t}",
"public static void save()\n\t{\n writeMap();\n\t}",
"T persist(T obj) throws PersistException;",
"@Override\n public void persistFlowUnit(FlowUnitOperationArgWrapper args) {}",
"@Override\n\tpublic void save( T entity) {\n\t baseDaoImpl.save(entity);\n\t}",
"@PostPersist\n\t@PostUpdate\n\tprivate void storeChangesToDw() {\n\t}",
"private void storeData() {\r\n final File tweetsFile = new File(tweetsStorePath);\r\n final File usersFile = new File(usersStorePath);\r\n final Set<TweetEntity> tweetEntities = new HashSet();\r\n final Set<UserEntity> userEntities = new HashSet();\r\n \r\n tweets.entrySet().stream().forEach(entry -> {\r\n entry.getValue().stream().forEach(\r\n status -> {\r\n try {\r\n tweetEntities.add(\r\n new TweetEntity(status,\r\n entry.getKey()));\r\n userEntities.add(\r\n new UserEntity(status.getUser()));\r\n } catch (UnsupportedEncodingException ex) {\r\n \r\n }\r\n });\r\n });\r\n\r\n try {\r\n try (PrintWriter tweetWriter = new PrintWriter(tweetsFile)) {\r\n tweetEntities.stream().forEach(entity -> {\r\n tweetWriter.println(entity.toString());\r\n });\r\n }\r\n try (PrintWriter userWriter = new PrintWriter(usersFile)) {\r\n userEntities.stream().forEach(entity -> {\r\n userWriter.println(entity.toString());\r\n });\r\n }\r\n } catch (IOException ex) {\r\n System.out.println(\"DBLIS - storeData() - error storing data\" + ex);\r\n }\r\n }",
"@Override\r\n public void saveOrUpdateEntity(String entityName, DataStoreEntity dataStoreEntity) {\n\r\n }",
"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 }",
"private void store()\tthrows DAOSysException\t\t{\n\t\tif (_debug) System.out.println(\"AL:store()\");\n\t\tAnnualLeaseDAO dao = null;\n\t\ttry\t{\n\t\t\tdao = getDAO();\n\t\t\tdao.dbStore(getModel());\n\t\t} catch (Exception ex)\t{\n\t\t\tthrow new DAOSysException(ex.getMessage());\n\t\t}\n\t}",
"@Override\n public void saveTransactionDetails(TransactionInfo transactionInfo) {\n repositoryService.saveTransactionDetails(transactionInfo);\n update(\"transactions\", String.class, TransactionInfo.class, LocalDateTime.now().toString(), transactionInfo);\n }",
"@Override\r\n\tpublic void persist(TimetableVO vo) {\n\t\tentityManager.persist(vo);\r\n\t}",
"@Override\n\tpublic void saveEntry(T t) {\n\t\tthis.hibernateTemplate.save(t);\n\t}",
"private void establishContext() {\n ParcelableNote encoded = getIntent().getParcelableExtra(NOTE_EXTRA);\n mCtx = (encoded == null) ? Context.CREATE : Context.UPDATE;\n\n if (mCtx == Context.UPDATE) {\n mNote = encoded.getNote();\n mTags.addAll(mNote.tags());\n\n EditText title = findViewById(R.id.edit_note_title);\n title.setText(mNote.title());\n EditText body = findViewById(R.id.edit_note_body);\n body.setText(mNote.body());\n }\n }",
"private void saveAppState(Context context) {\n LogHelper.v(LOG_TAG, \"Saving state.\");\n }",
"public void createMetadataStore(\n com.google.cloud.aiplatform.v1.CreateMetadataStoreRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ClientCalls.asyncUnaryCall(\n getChannel().newCall(getCreateMetadataStoreMethod(), getCallOptions()),\n request,\n responseObserver);\n }",
"public Customer persist() {\n\n TransactionWriteRequest writeRequest = new TransactionWriteRequest();\n writeRequest.addPut(customerEvent.getData());\n writeRequest.addPut(customerEvent);\n mapper.transactionWrite(writeRequest);\n\n return customerEvent.getData();\n }",
"private void writeContext(final JsonGenerator generator) throws IOException {\n Map<String, String> context = GecContext.get();\n if (!context.isEmpty()) {\n generator.writeFieldName(\"context\");\n generator.writeStartObject();\n for (Map.Entry<String, String> entry : context.entrySet()) {\n generator.writeStringField(entry.getKey(), entry.getValue());\n }\n generator.writeEndObject();\n }\n }",
"protected void prepareSave() {\r\n EObject cur;\r\n for (Iterator<EObject> iter = getAllContents(); iter.hasNext();) {\r\n cur = iter.next();\r\n \r\n EStructuralFeature idAttr = cur.eClass().getEIDAttribute();\r\n if (idAttr != null && !cur.eIsSet(idAttr)) {\r\n cur.eSet(idAttr, EcoreUtil.generateUUID());\r\n }\r\n }\r\n }",
"@Override\n public void save(Information information) {\n information.setInfoState(\"0\");\n informationMapper.insertInfo(information);\n }",
"private void saveToFileData() {//Context context) {\n try {\n FileOutputStream fileOutputStream = openFileOutput(fileNameData, Context.MODE_PRIVATE);\n ObjectOutputStream objectOutputStream = new ObjectOutputStream(fileOutputStream);\n objectOutputStream.writeObject(Data.userData);\n objectOutputStream.close();\n fileOutputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public static void commitChanges(Context context) {\r\n\t\tensurePreferencesEditor(context);\r\n\t\tsPreferencesEditor.commit();\r\n\t}",
"@Override\n public void addMetadata(final OAtomicOperationMetadata<?> metadata) {\n this.metadata.put(metadata.getKey(), metadata);\n }",
"public void save() throws EntityPersistenceException {\n\n }",
"public void addContextData( String key,\n String value );",
"public synchronized void writeStore() {\n FileOutputStream fileStream = null;\n\n try {\n File storeFile = new File(getStoreName());\n File oldStoreFile = new File(oldStoreName);\n\n if (oldStoreFile.exists()) {\n oldStoreFile.delete();\n }\n\n if (storeFile.exists()) {\n storeFile.renameTo(oldStoreFile);\n }\n\n File newStoreFile = new File(getStoreName());\n\n // Make sure the needed directories exists\n if (!newStoreFile.getParentFile().exists()) {\n newStoreFile.getParentFile().mkdirs();\n }\n\n fileStream = new FileOutputStream(newStoreFile);\n ObjectOutputStream outStream = new ObjectOutputStream(fileStream);\n outStream.writeObject(store);\n } catch (Exception e) {\n LOGGER.log(Level.WARNING, Utility.expandStackTraceToString(e));\n } finally {\n if (fileStream != null) {\n try {\n fileStream.close();\n } catch (IOException e) {\n LOGGER.log(Level.WARNING, Utility.expandStackTraceToString(e));\n }\n }\n }\n }",
"protected void save() {\n close();\n if(saveAction != null) {\n saveAction.accept(getObject());\n }\n }",
"public void storeProperties() throws LogFile.LockException, IOException {\n // If the file has not been set, don't save.\n if (dataFile != null) {\n synchronized (dataFile) {\n if (!dataFile.isDirectory()) {\n if (dataFile.getName().endsWith(EtomoDirector.USER_CONFIG_FILE_EXT)) {\n dataFile.backupOnce();\n }\n else {\n dataFile.doubleBackupOnce();\n }\n }\n if (!dataFile.exists()) {\n dataFile.create();\n }\n LogFile.OutputStreamId outputStreamId = dataFile.openOutputStream();\n dataFile.store(properties, outputStreamId);\n dataFile.closeOutputStream(outputStreamId);\n }\n }\n }",
"public void persist(T entity) {\n\t\tsessionFactory.getCurrentSession().persist(entity);\n\t}",
"public synchronized static void store(Context context, String name, Object o) {\n for(Map.Entry<Object, String> e : cached.entrySet()) {\r\n if(e.getValue().contentEquals(name)) {\r\n // Found cached\r\n cached.remove(e.getKey());\r\n break;\r\n }\r\n }\r\n // Put new entry\r\n if(o != null)\r\n cached.put(o, name);\r\n // Post async update\r\n pending.put(name, o);\r\n apply(context);\r\n }",
"public void setMetadata(PDMetadata meta) {\n/* 557 */ this.stream.setItem(COSName.METADATA, meta);\n/* */ }",
"public void save() {\n\t\tpreferences().flush();\n\t}",
"public void saveState() {\n table.saveState(store);\n }",
"private void saveCurrentObject() {\n\t}",
"public void saveData ( ) {\n\t\tinvokeSafe ( \"saveData\" );\n\t}",
"@Override\n public void cleanup(Context context) throws IOException, InterruptedException {\n for (List<DataTypeHandler<K1>> handlers : typeMap.values()) {\n for (DataTypeHandler<K1> h : handlers)\n if (h.getMetadata() != null) {\n try {\n contextWriter.write(h.getMetadata().getBulkMetadata(), context);\n } finally {\n contextWriter.commit(context);\n }\n }\n }\n\n // dump any unflushed metrics\n if (metricsEnabled) {\n metricsService.close();\n }\n\n // cleanup the context writer\n contextWriter.cleanup(context);\n\n for (List<DataTypeHandler<K1>> handlers : typeMap.values()) {\n for (DataTypeHandler<K1> h : handlers)\n h.close(context);\n }\n typeMap.clear();\n\n // Add the counters from the standalone reporter to this context.\n Counters counters = reporter.getCounters();\n for (CounterGroup cg : counters) {\n for (Counter c : cg) {\n getCounter(context, cg.getName(), c.getName()).increment(c.getValue());\n }\n }\n\n super.cleanup(context);\n\n // we pushed the filename on the NDC if split is non null, so pop it here.\n if (null != split) {\n NDC.pop();\n }\n }",
"public void saveOrUpdate(T entity) {\n\t\t\n\t}"
] |
[
"0.6277045",
"0.62433326",
"0.6242833",
"0.60761964",
"0.5596094",
"0.5585529",
"0.5558606",
"0.5543827",
"0.54858285",
"0.54666233",
"0.5437908",
"0.5437394",
"0.5434804",
"0.5330073",
"0.53279656",
"0.5319587",
"0.5310856",
"0.52853477",
"0.5251719",
"0.5240387",
"0.5239565",
"0.52148676",
"0.51463014",
"0.51325583",
"0.5113938",
"0.5111187",
"0.508776",
"0.508776",
"0.508776",
"0.508776",
"0.508776",
"0.5085998",
"0.5076456",
"0.50521076",
"0.5043831",
"0.5043831",
"0.5043831",
"0.5043831",
"0.50388014",
"0.50342536",
"0.50045013",
"0.49922797",
"0.4982405",
"0.49758184",
"0.49414232",
"0.49283087",
"0.49276853",
"0.49193084",
"0.4918498",
"0.4918498",
"0.49023536",
"0.48898312",
"0.4888441",
"0.4885752",
"0.48831394",
"0.48788404",
"0.48739457",
"0.486169",
"0.48604003",
"0.48335022",
"0.48299798",
"0.48027962",
"0.48007014",
"0.47997856",
"0.47820276",
"0.47689295",
"0.47595638",
"0.47564647",
"0.47494662",
"0.47475615",
"0.4736152",
"0.47326097",
"0.47313976",
"0.47270617",
"0.47180232",
"0.47046506",
"0.47007465",
"0.46952555",
"0.46898493",
"0.46846384",
"0.46844426",
"0.46840176",
"0.46838483",
"0.46829993",
"0.46781972",
"0.46721315",
"0.4669922",
"0.4661769",
"0.46584305",
"0.46575406",
"0.4656221",
"0.4652472",
"0.4650665",
"0.46485078",
"0.46451804",
"0.4640906",
"0.46372762",
"0.46301308",
"0.46291846",
"0.46276975"
] |
0.6789481
|
0
|
Initializes a (noneditable) system context.
|
private void initializeSystemContext(ContextType ctxType, URI contextUri)
{
this.type=ctxType;
// not in use for system contexts
this.source=null;
this.group=null;
this.timestamp=null;
this.inputParameter=null;
this.label=null;
this.isEditable=false;
this.contextURI = contextUri;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private void initContext() {\n contextId = System.getProperty(CONFIG_KEY_CERES_CONTEXT, DEFAULT_CERES_CONTEXT);\n\n // Initialize application specific configuration keys\n homeDirKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_HOME);\n debugKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_DEBUG);\n configFileKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_CONFIG_FILE_NAME);\n modulesDirKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_MODULES);\n libDirsKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_LIB_DIRS);\n mainClassKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_MAIN_CLASS);\n classpathKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_CLASSPATH);\n applicationIdKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_APP);\n logLevelKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_LOG_LEVEL);\n consoleLogKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_CONSOLE_LOG);\n\n // Initialize default file and directory paths\n char sep = File.separatorChar;\n defaultRelConfigFilePath = String.format(\"%s/%s\", DEFAULT_CONFIG_DIR_NAME, configFileKey).replace('/', sep);\n defaultHomeConfigFilePath = String.format(\"${%s}/%s\", homeDirKey, defaultRelConfigFilePath).replace('/', sep);\n defaultHomeModulesDirPath = String.format(\"${%s}/%s\", homeDirKey, DEFAULT_MODULES_DIR_NAME).replace('/', sep);\n defaultHomeLibDirPath = String.format(\"${%s}/%s\", homeDirKey, DEFAULT_LIB_DIR_NAME).replace('/', sep);\n }",
"public Context() {\n }",
"public static synchronized void initialize(Context context) {\n instance.context = context;\n initInternal();\n }",
"public Context() {\n\t\tstates = new ObjectStack<>();\n\t}",
"public void initializeContext(Context context) {\n this.context = context;\n }",
"protected void initialize(ExternalContext context)\n {\n }",
"void init(@NotNull ExecutionContext context);",
"private void init() {\n sensorEnabled = false;\n activityManager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE);\n contextEventHistory = new ArrayList<ContextEvent>(CONTEXT_EVENT_HISTORY_SIZE);\n }",
"protected void init()\n {\n Timestamp now = new Timestamp(System.currentTimeMillis());\n timestampCreated = now;\n timestampModified = now;\n createdByAgent = AppContextMgr.getInstance() == null? null : (AppContextMgr.getInstance().hasContext() ? Agent.getUserAgent() : null);\n modifiedByAgent = null;\n }",
"public void init() {\n // These data structures are initialized here because other\n // module's startUp() might be called before ours\n this.systemStartTime = System.currentTimeMillis();\n }",
"public static void init(Context context) {\n //Check if my sub_manager is set to null, if so initialize it\n if (subManager==null){\n if(context==null){\n throw new RuntimeException(\"Error Occurred\");\n }\n else{\n subManager=new SubManager(context);\n }\n }\n }",
"private void init() {\n sensorEnabled = false;\n contextEventHistory = new ArrayList<ContextEvent>(CONTEXT_EVENT_HISTORY_SIZE);\n }",
"public static void initialize(Context ctx) {\n\t\tmContext = ctx;\n\t}",
"public static Context initialize()\r\n {\n libUSB = (LibUSB) Native.loadLibrary(\"usb-1.0\", LibUSB.class);\r\n PointerByReference ptr = new PointerByReference();\r\n int returnCode = libUSB.libusb_init(ptr);\r\n if (returnCode != 0)\r\n {\r\n logger.warning(\"initialize returned \" + returnCode);\r\n return null;\r\n }\r\n return new Context(ptr.getValue());\r\n }",
"protected AbstractContext() {\n this(new FastHashtable<>());\n }",
"public void initContext() {\n\t\tClassLoader originalContextClassLoader =\n\t\t\t\tThread.currentThread().getContextClassLoader();\n\t\tThread.currentThread().setContextClassLoader(MY_CLASS_LOADER);\n\t\t//this.setClassLoader(MY_CLASS_LOADER);\n\n\t\tcontext = new ClassPathXmlApplicationContext(\"beans.xml\");\n\t\tsetParent(context);\n\n\n\t\t// reset the original CL, to try to prevent crashing with\n\t\t// other Java AI implementations\n\t\tThread.currentThread().setContextClassLoader(originalContextClassLoader);\n\t}",
"private void initialize()\r\n {\r\n this.workspace = null;\r\n this.currentUser = null;\r\n this.created = new Date();\r\n this.securityInfo = null;\r\n }",
"public void init(MailetContext context);",
"private SystemInfo() {\r\n // forbid object construction \r\n }",
"public Context(Global global)\n {\n _level=0;\n _listId=0;\n _global=global;\n _textStyle=new TextStyle();\n setParagraphStyle(new ParagraphStyle());\n }",
"private DatabaseContext() {\r\n datastore = createDatastore();\r\n init();\r\n }",
"protected void init()\n {\n context.setConfigured(false);\n ok = true;\n\n if (!context.getOverride())\n {\n processContextConfig(\"context.xml\", false);\n processContextConfig(getHostConfigPath(org.apache.catalina.startup.Constants.HostContextXml), false);\n }\n // This should come from the deployment unit\n processContextConfig(context.getConfigFile(), true);\n }",
"public System() {\n\t\tsuper();\n\t\tthis.profiles = new HashSet<Profile>();\n\t}",
"public Systems() {\r\n\t\t__initializeSystems = new ArrayList<InitializeSystem>();\r\n\t\t__executeSystems = new ArrayList<ExecuteSystem>();\r\n\t\t__renderSystems = new ArrayList<RenderSystem>();\r\n\t\t__tearDownSystems = new ArrayList<TearDownSystem>();\r\n\t}",
"public synchronized static void init(Context ctx) {\n context = ctx;\n prefs = context.getSharedPreferences(APP, Context.MODE_PRIVATE);\n editor = prefs.edit();\n }",
"private void init() {\r\n final List<VCSystem> vcs = datastore.createQuery(VCSystem.class)\r\n .field(\"url\").equal(Parameter.getInstance().getUrl())\r\n .asList();\r\n if (vcs.size() != 1) {\r\n logger.error(\"Found: \" + vcs.size() + \" instances of VCSystem. Expected 1 instance.\");\r\n System.exit(-1);\r\n }\r\n vcSystem = vcs.get(0);\r\n\r\n project = datastore.getByKey(Project.class, new Key<Project>(Project.class, \"project\", vcSystem.getProjectId()));\r\n\r\n }",
"public Context(){\n\t\ttry {\n\t\t\tsocket = new Socket(\"localhost\", 9876);\n\t\t\tmodel = new SimpleCalculationModel();\n\t\t\ttheInputWindow = new SimpleCalculatorWindow();\n\t\t\tcurrentInput = \"\"; \n\t\t} catch (UnknownHostException e) {\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"The server local host port 9876 does not exist!\");\n\t\t}\n\t}",
"Context createContext();",
"Context createContext();",
"public void typeSystemInit(TypeSystem typeSystem)\n throws ResourceInitializationException {\n\n String sentenceTypeName = CasConsumerUtil.getRequiredStringParameter(mContext,\n UimaUtil.SENTENCE_TYPE_PARAMETER);\n\n mSentenceType = CasConsumerUtil.getType(typeSystem, sentenceTypeName);\n\n String tokenTypeName = CasConsumerUtil.getRequiredStringParameter(mContext,\n UimaUtil.TOKEN_TYPE_PARAMETER);\n\n mTokenType = CasConsumerUtil.getType(typeSystem, tokenTypeName);\n }",
"public void init()\n {\n _appContext = SubAppContext.createOMM(System.out);\n _serviceName = CommandLine.variable(\"serviceName\");\n initGUI();\n }",
"@Override\n public void init() {\n ServletContext context = getServletContext();\n KeyLoader loader = new KeyLoader();\n\n context.setAttribute(\"translateKey\", loader.getKey(TRANSLATE));\n context.setAttribute(\"authKey\", loader.getKeyBytes(AUTH));\n context.setAttribute(\"servletRoles\", getServletRoles());\n }",
"public SystemInfo() {\r\n\t}",
"public MyApp() {\n sContext = this;\n }",
"public static void init(Context context) {\n\t\tApplicationControl.context = context;\n\n\t\t// initialize file controller\n\t\tFileController.init();\n\t\t\n\t\t// load preferences\n\t\tPreferenceManager.setDefaultValues(context, R.xml.prefs, false);\n\n\t\t// initialize preferences\n\t\tprefs = PreferenceManager.getDefaultSharedPreferences(context);\n\n\t\t\n\t\t//initialize mark controller\n\t\tMarkController.init();\n\t\t\t\t\n\t\t// initialize sound controller\n\t\tSoundController.init(context);\n\n\t\t// initialize vibration controller\n\t\tVibration.init(context);\n\n\t\t// initialize game\n\t\treinit();\n\n\t\t// finally initialized\n\t\tisInit = true;\n\t}",
"public PContext() {\r\n\t\tthis(new PDirective(), null, null);\r\n\t}",
"private ApplicationContext()\n\t{\n\t}",
"public void init() throws SystemStartupException\n {\n super.init();\n }",
"private void initialisation()\n\t{\n\t\tdaoFactory = new DaoFactory();\n\n\t\ttry\n\t\t{\n\t\t\tequationStandardSessions = EquationCommonContext.getContext().getGlobalProcessingEquationStandardSessions(\n\t\t\t\t\t\t\tsession.getSessionIdentifier());\n\t\t}\n\t\tcatch (Exception eQException)\n\t\t{\n\t\t\tif (LOG.isErrorEnabled())\n\t\t\t{\n\t\t\t\tStringBuilder message = new StringBuilder(\"There is a problem creating Global processing the sessions\");\n\t\t\t\tLOG.error(message.toString(), eQException);\n\t\t\t}\n\t\t}\n\t}",
"private static Context prepareContext() {\r\n\r\n Context context = new Context();\r\n\r\n ContextProperties properties = new ContextProperties();\r\n\r\n // Context requires a name\r\n properties.setName(\"Example_Package_Context\");\r\n\r\n // description is nice\r\n properties.setDescription(\"Example package Context.\");\r\n\r\n // define the type\r\n properties.setType(\"ExampleType\");\r\n\r\n /*\r\n * Organizational Unit(s) is/are required\r\n */\r\n OrganizationalUnitRefs ous = new OrganizationalUnitRefs();\r\n\r\n // add the Organizational Unit with objid escidoc:ex3 (the ou of the\r\n // example eSciDoc representation package) to the list of\r\n // organizational Units\r\n ous.add(new OrganizationalUnitRef(\"escidoc:ex3\"));\r\n properties.setOrganizationalUnitRefs(ous);\r\n\r\n context.setProperties(properties);\r\n\r\n return context;\r\n }",
"public DefaultKernel( KernelContext context ) throws KernelException\n {\n if( context == null ) \n throw new NullPointerException( \"context\" );\n\n m_context = context;\n m_state = new State( this );\n\n setState( INITIALIZING );\n\n try\n {\n m_model = context.getApplicationModel();\n }\n catch( Throwable e )\n {\n final String error = \n \"Cannot create application runtime.\";\n throw new KernelError( error, e );\n }\n\n if( getLogger().isDebugEnabled() )\n {\n m_context.getLogger().debug( \"kernel established\" );\n }\n setState( INITIALIZED );\n }",
"public void init() {\n \t\tif (initLock.start()) {\n \t\t\ttry {\n \t\t\t\tthis._init(this.config);\n \t\t\t} finally {\n \t\t\t\tinitLock.end();\n \t\t\t}\n \t\t}\n \t}",
"public CH340Application() {\n sContext = this;\n }",
"public XMLSystemManager(){\n\t\tthis(\"data\");\n\t}",
"public Contexte() {\n FactoryRegistry registry = FactoryRegistry.getRegistry();\n registry.register(\"module\", new ModuleFactory());\n registry.register(\"if\", new ConditionFactory());\n registry.register(\"template\", new TemplateFactory());\n registry.register(\"dump\", new DumpFactory());\n }",
"public void init(Context context) {\n\t\t\n\t EMOptions options = initChatOptions();\n\t //options传null则使用默认的\n\t\tif (EaseUI.getInstance().init(context, options)) {\n\t\t appContext = context;\n\t\t \n\t\t userDao=new UserDao(appContext);\n\t\t //设为调试模式,打成正式包时,最好设为false,以免消耗额外的资源\n\t\t EMClient.getInstance().setDebugMode(true);\n\t\t //get easeui instance\n\t\t easeUI = EaseUI.getInstance();\n\t\t //调用easeui的api设置providers\n\t\t setEaseUIProviders();\n\t\t\t//初始化PreferenceManager\n\t\t//\tPreferenceManager.init(context);\n\t\t\t//初始化用户管理类\n\t\t//\tgetUserProfileManager().init(context);\n\t\t\t\n\t\t\t//设置全局监听\n\t\t//\tsetGlobalListeners();\n\t\t//\tbroadcastManager = LocalBroadcastManager.getInstance(appContext);\n\t // initDbDao();\n\t\t //注册消息事件监听\n\t registerEventListener();\n\n\t\t}\n\t}",
"private AppContext()\n {\n }",
"private AceContext()\n {\n //load from file\n File f = new File(ServerSettings.FILE_NAME);\n if (!f.exists())\n {\n ServerSettings.setDefaults();\n }\n\n// setWorkingParent( ServerSettings.getInstance().getProperty(ServerSettings.WORKING_PARENT));\n// setCommonDir( ServerSettings.getInstance().getProperty(ServerSettings.COMMON_DIR));\n// setApplicationPath( ServerSettings.getInstance().getProperty(ServerSettings.APP_EXE));\n }",
"public GlobalScope() {\n super(null);\n }",
"public static void initialize(@Nullable Context context) {\n if (sInstance == null) {\n sInstance = new AndroidContext(context);\n }\n }",
"private void initSystemPartition() throws Exception {\n // change the working directory to something that is unique\n // on the system and somewhere either under target directory\n // or somewhere in a temp area of the machine.\n\n // Inject the System Partition\n Partition systemPartition = factory.createPartition(service.getSchemaManager(),\n service.getDnFactory(),\n \"system\", ServerDNConstants.SYSTEM_DN, 500,\n new File(service.getInstanceLayout().getPartitionsDirectory(), \"system\"));\n systemPartition.setSchemaManager(service.getSchemaManager());\n\n factory.addIndex(systemPartition, SchemaConstants.OBJECT_CLASS_AT, 100);\n\n service.setSystemPartition(systemPartition);\n }",
"private EntityManager initSystems() {\n CameraSystem cameraSystem = new CameraSystem(Constants.WINDOW_WIDTH, Constants.WINDOW_HEIGHT);\n addSystem(cameraSystem);\n addSystem(new ZoomSystem());\n //Physics System\n addSystem(new PhysicsSystem());\n //Player movement system\n addSystem(new PlayerMovementSystem());\n\n addSystem(new CannonFiringSystem());\n addSystem(new CollisionSystem());\n addSystem(new KillSystem());\n addSystem(new HealthSystem());\n addSystem(new StatisticSystem());\n addSystem(new EnemySpawningSystem());\n addSystem(new InventorySystem());\n addSystem(new CurrencySystem());\n\n GUISystem guiSystem = new GUISystem();\n InputSystem inputSystem = new InputSystem(guiSystem);\n\n //Input System\n addSystem(inputSystem);\n //Entity Render System\n addSystem(new EntityRenderSystem());\n //Particle System\n addSystem(new ParticleSystem());\n addSystem(new PlayerActionSystem(guiSystem));\n addSystem(new MapRenderSystem());\n addSystem(new HUDSystem());\n //Debug Render System\n addSystem(new DebugRendererSystem());\n //GUI System\n addSystem(guiSystem);\n\n return this;\n }",
"public void init() {\r\n resources = new Vector<ResourcesElement>();\r\n informations = new Vector<InformationElement>();\r\n output = null;\r\n spec = DEFAULT_SPEC;\r\n version = null;\r\n codeBase = null;\r\n href = null;\r\n allPermissions = false;\r\n j2eePermissions = false;\r\n isComponent = false;\r\n applicationDesc = null;\r\n appletDesc = null;\r\n installerDesc = null;\r\n }",
"private void init(File contextXml) {\n //this.contextXml = contextXml;\n try {\n getContext();\n } catch (ConfigurationException e) {\n LOGGER.log(Level.INFO, null, e);\n }\n if (contextDataObject == null) {\n try {\n contextDataObject = DataObject.find(FileUtil.toFileObject(FileUtil.normalizeFile(contextXml)));\n contextDataObject.addPropertyChangeListener(this);\n } catch(DataObjectNotFoundException donfe) {\n LOGGER.log(Level.FINE, null, donfe);\n }\n }\n }",
"public ScriptContext(Context context, Scriptable global)\n\t{\n\t\tthis.context = context;\n\t\tthis.global = global;\n//\t\tSystem.out.println(\"Creating new ScriptContext \" + this);\n\t}",
"public static void setSystemAttributes() throws InvalidDBTransferException {\n \texecuteInitialization(CHECK_ATTRIBUTES, INIT_ATTRIBUTES);\n }",
"public static void initPackage() {\n\t\t(new Branch()).getCache();\n\t\t(new Change()).getCache();\n\t\t(new Client()).getCache();\n\t\t(new DirEntry()).getCache();\n\t\t(new FileEntry()).getCache();\n\t\t(new Job()).getCache();\n\t\t(new Label()).getCache();\n\t\t(new User()).getCache();\n\t\tProperties props = System.getProperties();\n\t}",
"@Override\n public void init(Properties properties) {\n super.init(properties);\n String categoriesFilePath = properties.getProperty(\"categoriesFilePath\", \"\");\n String gemetFilePath = properties.getProperty(\"gemetFilePath\", \"\");\n String lang = properties.getProperty(\"lang\", \"\");\n\n for (Locale l: Locale.getAvailableLocales()) {\n if (l.getLanguage().equalsIgnoreCase(lang)) {\n locale = l;\n break;\n }\n }\n\n ContextInitializer initializer = new ContextInitializer(ontCtx,\n categoriesFilePath, gemetFilePath);\n initializer.initialize();\n\n }",
"protected void init() {\n init(null);\n }",
"public static void init() {}",
"static private void initSystem() {\n // Ensure the file-based PatchStore provider is available\n if ( ! PatchStore.isRegistered(DPS.PatchStoreFileProvider) ) {\n FmtLog.warn(LOG, \"PatchStoreFile provider not registered\");\n PatchStore ps = new PatchStoreFile();\n if ( ! DPS.PatchStoreFileProvider.equals(ps.getProviderName())) {\n FmtLog.error(LOG, \"PatchStoreFile provider name is wrong (expected=%s, got=%s)\", DPS.PatchStoreFileProvider, ps.getProviderName());\n throw new DeltaConfigException();\n }\n PatchStore.register(ps);\n }\n \n // Default the log provider to \"file\"\n if ( PatchStore.getDefault() == null ) {\n //FmtLog.warn(LOG, \"PatchStore default not set.\");\n PatchStore.setDefault(DPS.PatchStoreFileProvider);\n }\n }",
"public abstract void makeContext();",
"protected void initialise() {\r\n loadDefaultConfig();\r\n loadCustomConfig();\r\n loadSystemConfig();\r\n if (LOG.isDebugEnabled()) {\r\n LOG.debug(\"--- Scope properties ---\");\r\n for (Iterator i = properties.keySet().iterator(); i.hasNext(); ) {\r\n String key = (String) i.next();\r\n Object value = properties.get(key);\r\n LOG.debug(key + \" = \" + value);\r\n }\r\n LOG.debug(\"------------------------\");\r\n }\r\n }",
"protected void initialize() {\n\t\tthis.initializeFileMenu();\n\t\tthis.initializeEditMenu();\n\t\tthis.initializeNavigationMenu();\n\t\tthis.initializeHelpMenu();\n\t}",
"public synchronized void init(ServletContext context) {\n if (velocityEngine == null) {\n velocityEngine = newVelocityEngine(context);\n }\n this.initToolbox(context);\n }",
"private void initializeContextMenus() {\n\t\tinitializeMenuForListView();\n\t\tinitializeMenuForPairsListView();\n\t}",
"public void init() {\n\t\tM_log.info(\"initialization...\");\n\t\t\n\t\t// register as an entity producer\n\t\tm_entityManager.registerEntityProducer(this, SakaiGCalendarServiceStaticVariables.REFERENCE_ROOT);\n\t\t\n\t\t// register functions\n\t\tfunctionManager.registerFunction(SakaiGCalendarServiceStaticVariables.SECURE_GCAL_VIEW);\n\t\tfunctionManager.registerFunction(SakaiGCalendarServiceStaticVariables.SECURE_GCAL_VIEW_ALL);\n\t\tfunctionManager.registerFunction(SakaiGCalendarServiceStaticVariables.SECURE_GCAL_EDIT);\n\t\t\n \t\t//Setup cache. This will create a cache using the default configuration used in the memory service.\n \t\tcache = memoryService.newCache(CACHE_NAME);\n\t}",
"private static void setupServerContext(){\n\n serverContext.set(new ServerContext());\n serverContext.get().bgThreadIds = new int[GlobalContext.getNumTotalBgThreads()];\n serverContext.get().numShutdownBgs = 0;\n serverContext.get().serverObj = new Server();\n\n }",
"public static void initialize(Context context) throws LogonCoreException {\n appContext = context;\n try {\n createOnlineManager(context);\n } catch (LogonCoreException e) {\n e.printStackTrace();\n }\n getTheData();\n }",
"void init(HandlerContext context);",
"System createSystem();",
"public void init()\n\t{\n\t\tsuper.init();\n\t\tM_log.info(\"init()\");\n\t}",
"public void init()\n\t{\n\t\tsuper.init();\n\t\tM_log.info(\"init()\");\n\t}",
"public static void initialize() {\n // check to see if the name of an alternate configuration\n // file has been specified. This can be done, for example,\n // java -Dfilesys.conf=myfile.txt program-name parameter ...\n String propertyFileName = System.getProperty(\"filesys.conf\");\n if (propertyFileName == null)\n propertyFileName = \"filesys.conf\";\n Properties properties = new Properties();\n try {\n FileInputStream in = new FileInputStream(propertyFileName);\n properties.load(in);\n in.close();\n } catch (FileNotFoundException e) {\n System.err.println(PROGRAM_NAME + \": error opening properties file\");\n System.exit(EXIT_FAILURE);\n } catch (IOException e) {\n System.err.println(PROGRAM_NAME + \": error reading properties file\");\n System.exit(EXIT_FAILURE);\n }\n\n // get the root file system properties\n String rootFileSystemFilename =\n properties.getProperty(\"filesystem.root.filename\", \"filesys.dat\");\n String rootFileSystemMode =\n properties.getProperty(\"filesystem.root.mode\", \"rw\");\n\n // get the current process properties\n short uid = 1;\n try {\n uid = Short.parseShort(properties.getProperty(\"process.uid\", \"1\"));\n } catch (NumberFormatException e) {\n System.err.println(PROGRAM_NAME +\n \": invalid number for property process.uid in configuration file\");\n System.exit(EXIT_FAILURE);\n }\n\n short gid = 1;\n try {\n gid = Short.parseShort(properties.getProperty(\"process.gid\", \"1\"));\n } catch (NumberFormatException e) {\n System.err.println(PROGRAM_NAME +\n \": invalid number for property process.gid in configuration file\");\n System.exit(EXIT_FAILURE);\n }\n\n short umask = 0002;\n try {\n umask = Short.parseShort(\n properties.getProperty(\"process.umask\", \"002\"), 8);\n } catch (NumberFormatException e) {\n System.err.println(PROGRAM_NAME +\n \": invalid number for property process.umask in configuration file\");\n System.exit(EXIT_FAILURE);\n }\n\n String dir = \"/root\";\n dir = properties.getProperty(\"process.dir\", \"/root\");\n\n try {\n MAX_OPEN_FILES = Integer.parseInt(properties.getProperty(\n \"kernel.max_open_files\", \"20\"));\n } catch (NumberFormatException e) {\n System.err.println(PROGRAM_NAME +\n \": invalid number for property kernel.max_open_files in configuration file\");\n System.exit(EXIT_FAILURE);\n }\n\n try {\n ProcessContext.MAX_OPEN_FILES = Integer.parseInt(\n properties.getProperty(\"process.max_open_files\", \"10\"));\n } catch (NumberFormatException e) {\n System.err.println(PROGRAM_NAME +\n \": invalid number for property process.max_open_files in configuration file\");\n System.exit(EXIT_FAILURE);\n }\n\n // create open file array\n openFiles = new FileDescriptor[MAX_OPEN_FILES];\n\n // create the first process\n process = new ProcessContext(uid, gid, dir, umask);\n processCount++;\n\n // open the root file system\n try {\n openFileSystems[ROOT_FILE_SYSTEM] = new FileSystem(\n rootFileSystemFilename, rootFileSystemMode);\n } catch (IOException e) {\n System.err.println(PROGRAM_NAME + \": unable to open root file system\");\n System.exit(EXIT_FAILURE);\n }\n\n }",
"private SystemInfo() {\n }",
"public interface StandardContext extends Context\n{\n public static final String NAME_KEY = \"urn:avalon:name\";\n public static final String PARTITION_KEY = \"urn:avalon:partition\";\n public static final String WORKING_KEY = \"urn:avalon:temp\";\n public static final String HOME_KEY = \"urn:avalon:home\";\n\n /**\n * Return the name assigned to the component\n * @return the name\n */\n String getName();\n\n /**\n * Return the partition name assigned to the component\n * @return the partition name\n */\n String getPartitionName();\n\n /**\n * @return a file representing the home directory\n */\n File getHomeDirectory();\n\n /**\n * @return a file representing the temporary working directory\n */\n File getWorkingDirectory();\n\n}",
"public PnuematicSubsystem() {\n\n }",
"public Context() {\n this.mFunctionSet=new ArrayList();\n this.mTerminalSet=new ArrayList();\n this.mPrimitiveMap=new TreeMap();\n this.mCache=new MyLinkedHashMap(500, .75F, true);\n this.previousBest=Double.MAX_VALUE;\n}",
"public void init() {}",
"public void init() {}",
"@Override\r\n public Context initControlContext() throws Exception {\r\n _log.info(\"\");\r\n _log.info(\"...Preparing generation of free generate\");\r\n for (DfFreeGenRequest request : _freeGenRequestList) {\r\n _log.info(\" \" + request.toString());\r\n }\r\n final VelocityContext context = createVelocityContext();\r\n return context;\r\n }",
"public void init() {\n\n\t\tString rootdir = null;\n\t\ttry {\n\t\t\trootdir = ServletActionContext.getServletContext().getRealPath(\"/\");\n\t\t} catch (Exception ex) {\n\n\t\t}\n\n\t\tif (rootdir == null) {\n\t\t\trootdir = \"/Users/huangic/Documents/jetty-6.1.22/webapps/TransWeb\";\n\t\t}\n\n\t\tlogger.debug(rootdir);\n\t\tString classesdir = rootdir + \"/WEB-INF/classes/\";\n\t\tthis.xmlBatchRule = ReadXML(classesdir\n\t\t\t\t+ \"applicationContext-BatchRule.xml\");\n\t\tthis.xmlDB = ReadXML(classesdir + \"applicationContext-DB.xml\");\n\t\tthis.xmlSystem = ReadXML(classesdir + \"applicationContext-system.xml\");\n\n\t}",
"public void init()\n {\n context = getServletContext();\n parameters = (Siu_ContainerLabel)context.getAttribute(\"parameters\");\n }",
"public void init() {\n\t\t}",
"public void init() {\r\n\t\tGetRunningProgramsGR request = new GetRunningProgramsGR(\r\n\t\t\t\tRunningServicesListViewAdapter.this.runningServicesActivity.getApplicationContext());\r\n\t\trequest.setServerName(RunningServicesListViewAdapter.this.serverName);\r\n\t\tnew GuiRequestHandler(RunningServicesListViewAdapter.this.runningServicesActivity,\r\n\t\t\t\tRunningServicesListViewAdapter.this, true).execute(request);\r\n\t}",
"public void initialize(Context context) {\n\t\tif (m_Initialized) return;\n\t\tm_Initialized = true;\n\t\t\n\t\t//Get preference and load\n\t\tSharedPreferences Preference = context.getSharedPreferences(PREFERENCE_NAME, Context.MODE_PRIVATE);\n\t\tloadMisc(Preference);\n\t\tloadPlayers(Preference);\n\t}",
"public void testContextManager() throws Exception {\n System.out.println(\"testContextManager\");\n \n // init the session information\n ThreadsPermissionContainer permissions = new ThreadsPermissionContainer();\n SessionManager.init(permissions);\n UserStoreManager userStoreManager = new UserStoreManager();\n UserSessionManager sessionManager = new UserSessionManager(permissions,\n userStoreManager);\n LoginManager.init(sessionManager,userStoreManager);\n // instanciate the thread manager\n CoadunationThreadGroup threadGroup = new CoadunationThreadGroup(sessionManager,\n userStoreManager);\n \n // add a user to the session for the current thread\n RoleManager.getInstance();\n \n InterceptorFactory.init(permissions,sessionManager,userStoreManager);\n \n // add a new user object and add to the permission\n Set set = new HashSet();\n set.add(\"test\");\n UserSession user = new UserSession(\"test1\", set);\n permissions.putSession(new Long(Thread.currentThread().getId()),\n new ThreadPermissionSession(\n new Long(Thread.currentThread().getId()),user));\n \n \n NamingDirector.init(threadGroup);\n \n Context context = new InitialContext();\n \n context.bind(\"java:comp/env/test\",\"fred\");\n context.bind(\"java:comp/env/test2\",\"fred2\");\n \n if (!context.lookup(\"java:comp/env/test\").equals(\"fred\")) {\n fail(\"Could not retrieve the value for test\");\n }\n if (!context.lookup(\"java:comp/env/test2\").equals(\"fred2\")) {\n fail(\"Could not retrieve the value for test2\");\n }\n System.out.println(\"Creating the sub context\");\n Context subContext = context.createSubcontext(\"java:comp/env/test3/test3\");\n System.out.println(\"Adding the binding for bob to the sub context\");\n subContext.bind(\"bob\",\"bob\");\n System.out.println(\"Looking up the binding for bob on the sub context.\");\n Object value = subContext.lookup(\"bob\");\n System.out.println(\"Object type is : \" + value.getClass().getName());\n if (!value.equals(\"bob\")) {\n fail(\"Could not retrieve the value bob\");\n }\n if (!context.lookup(\"java:comp/env/test3/test3/bob\").equals(\"bob\")) {\n fail(\"Could not retrieve the value bob\");\n }\n \n ClassLoader loader = new URLClassLoader(new URL[0]);\n ClassLoader original = Thread.currentThread().getContextClassLoader();\n Thread.currentThread().setContextClassLoader(loader);\n NamingDirector.getInstance().initContext();\n \n context.bind(\"java:comp/env/test5\",\"fred5\");\n if (!context.lookup(\"java:comp/env/test5\").equals(\"fred5\")) {\n fail(\"Could not retrieve the value fred5\");\n }\n \n Thread.currentThread().setContextClassLoader(original);\n \n try{\n context.lookup(\"java:comp/env/test5\");\n fail(\"Failed retrieve a value that should not exist\");\n } catch (NameNotFoundException ex) {\n // ignore\n }\n \n Thread.currentThread().setContextClassLoader(loader);\n \n NamingDirector.getInstance().releaseContext();\n \n try{\n context.lookup(\"java:comp/env/test5\");\n fail(\"Failed retrieve a value that should not exist\");\n } catch (NameNotFoundException ex) {\n // ignore\n }\n Thread.currentThread().setContextClassLoader(original);\n System.out.println(\"Add value 1\");\n context.bind(\"basic\",\"basic\");\n System.out.println(\"Add value 2\");\n context.bind(\"basic2/bob\",\"basic2\");\n if (context.lookup(\"basic\") != null) {\n fail(\"Could not retrieve the basic value from the [\" + \n context.lookup(\"basic\") + \"]\");\n }\n if (context.lookup(\"basic2/bob\") != null) {\n fail(\"Could not retrieve the basic value from the JNDI [\" +\n context.lookup(\"basic2/bob\") + \"]\");\n }\n \n try {\n context.bind(\"java:network/env/test\",\"fred\");\n fail(\"This should have thrown as only relative urls can be used \" +\n \"JNDI\");\n } catch (NamingException ex) {\n // ignore\n }\n \n try {\n context.unbind(\"java:network/env/test\");\n fail(\"This should have thrown as only relative urls can be used \" +\n \"JNDI\");\n } catch (NamingException ex) {\n // ignore\n }\n context.rebind(\"basic\",\"test1\");\n context.rebind(\"basic2/bob\",\"test2\");\n \n if (context.lookup(\"basic\") != null) {\n fail(\"Could not retrieve the basic value from the JNDI\");\n }\n if (context.lookup(\"basic2/bob\") != null) {\n fail(\"Could not retrieve the basic value from the JNDI\");\n }\n \n context.unbind(\"basic\");\n context.unbind(\"basic2/bob\");\n \n try{\n context.lookup(\"basic2/bob\");\n fail(\"The basic bob value could still be found\");\n } catch (NameNotFoundException ex) {\n // ignore\n }\n \n NamingDirector.getInstance().shutdown();\n }",
"public static void initializeApp(Context context) {\n }",
"public void init() {\n\t\tServletContext context = getServletContext();\n\t\thost = context.getInitParameter(\"host\");\n\t\tport = context.getInitParameter(\"port\");\n\t\tuser = context.getInitParameter(\"user\");\n\t\tpass = context.getInitParameter(\"pass\");\n\t}",
"public void init() {\n\t\tServletContext context = getServletContext();\n\t\thost = context.getInitParameter(\"host\");\n\t\tport = context.getInitParameter(\"port\");\n\t\tuser = context.getInitParameter(\"user\");\n\t\tpass = context.getInitParameter(\"pass\");\n\t}",
"protected void init() {\n }",
"public void init() {\r\n\r\n\t}",
"public SystemConfiguration() {\r\n\t\tlog = Logger.getLogger(SystemConfiguration.class);\r\n\t}",
"public abstract Context context();",
"@PostConstruct\n\tpublic void init() {\n\t\tEnvironmentUtils.setEnvironment(env);\n\t}",
"public MyEnvironment() {\n\t\t\t\tscan = new Scanner(System.in);\n\t\t\t\tscanClosed = false;\n\t\t\t\tmultilineSymbol = '|';\n\t\t\t\tpromptSymbol = '>';\n\t\t\t\tmorelinesSymbol = '\\\\';\n\t\t\t\tcommands = new TreeMap<>();\n\t\t\t\tcommands.put(\"cat\", new CatShellCommand());\n\t\t\t\tcommands.put(\"charsets\", new CharsetsShellCommand());\n\t\t\t\tcommands.put(\"copy\", new CopyShellCommand());\n\t\t\t\tcommands.put(\"exit\", new ExitShellCommand());\n\t\t\t\tcommands.put(\"hexdump\", new HexdumpShellCommand());\n\t\t\t\tcommands.put(\"ls\", new LsShellCommand());\n\t\t\t\tcommands.put(\"mkdir\", new MkdirShellCommand());\n\t\t\t\tcommands.put(\"tree\", new TreeShellCommand());\n\t\t\t\tcommands.put(\"symbol\", new SymbolShellCommand());\n\t\t\t\tcommands.put(\"help\", new HelpShellCommand());\n\t\t\t\tcommands.put(\"cd\", new CdShellCommand());\n\t\t\t\tcommands.put(\"pwd\", new PwdShellCommand());\n\t\t\t\tcommands.put(\"dropd\", new DropdShellCommand());\n\t\t\t\tcommands.put(\"pushd\", new PushdShellCommand());\n\t\t\t\tcommands.put(\"listd\", new ListdShellCommand());\n\t\t\t\tcommands.put(\"popd\", new PopdShellCommand());\n\t\t\t\tcommands.put(\"massrename\", new MassrenameShellCommand());\n\t\t\t\tcurrentDirectory = Paths.get(\".\");\n\t\t\t\tsharedData = new HashMap<>();\n\t\t\t}",
"private SSLContext initSSLContext() {\n KeyStore ks = KeyStoreUtil.loadSystemKeyStore();\n if (ks == null) {\n _log.error(\"Key Store init error\");\n return null;\n }\n if (_log.shouldLog(Log.INFO)) {\n int count = KeyStoreUtil.countCerts(ks);\n _log.info(\"Loaded \" + count + \" default trusted certificates\");\n }\n\n File dir = new File(_context.getBaseDir(), CERT_DIR);\n int adds = KeyStoreUtil.addCerts(dir, ks);\n int totalAdds = adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n if (!_context.getBaseDir().getAbsolutePath().equals(_context.getConfigDir().getAbsolutePath())) {\n dir = new File(_context.getConfigDir(), CERT_DIR);\n adds = KeyStoreUtil.addCerts(dir, ks);\n totalAdds += adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n }\n dir = new File(System.getProperty(\"user.dir\"));\n if (!_context.getBaseDir().getAbsolutePath().equals(dir.getAbsolutePath())) {\n dir = new File(_context.getConfigDir(), CERT_DIR);\n adds = KeyStoreUtil.addCerts(dir, ks);\n totalAdds += adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n }\n if (_log.shouldLog(Log.INFO))\n _log.info(\"Loaded total of \" + totalAdds + \" new trusted certificates\");\n\n try {\n SSLContext sslc = SSLContext.getInstance(\"TLS\");\n TrustManagerFactory tmf = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm());\n tmf.init(ks);\n X509TrustManager defaultTrustManager = (X509TrustManager)tmf.getTrustManagers()[0];\n _stm = new SavingTrustManager(defaultTrustManager);\n sslc.init(null, new TrustManager[] {_stm}, null);\n /****\n if (_log.shouldLog(Log.DEBUG)) {\n SSLEngine eng = sslc.createSSLEngine();\n SSLParameters params = sslc.getDefaultSSLParameters();\n String[] s = eng.getSupportedProtocols();\n Arrays.sort(s);\n _log.debug(\"Supported protocols: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getEnabledProtocols();\n Arrays.sort(s);\n _log.debug(\"Enabled protocols: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = params.getProtocols();\n if (s == null)\n s = new String[0];\n _log.debug(\"Default protocols: \" + s.length);\n Arrays.sort(s);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getSupportedCipherSuites();\n Arrays.sort(s);\n _log.debug(\"Supported ciphers: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getEnabledCipherSuites();\n Arrays.sort(s);\n _log.debug(\"Enabled ciphers: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = params.getCipherSuites();\n if (s == null)\n s = new String[0];\n _log.debug(\"Default ciphers: \" + s.length);\n Arrays.sort(s);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n }\n ****/\n return sslc;\n } catch (GeneralSecurityException gse) {\n _log.error(\"Key Store update error\", gse);\n } catch (ExceptionInInitializerError eiie) {\n // java 9 b134 see ../crypto/CryptoCheck for example\n // Catching this may be pointless, fetch still fails\n _log.error(\"SSL context error - Java 9 bug?\", eiie);\n }\n return null;\n }",
"@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\tcontext = getApplicationContext();\n\t\t\n\t\tApplicationContextUtils.init(context);\n\t}",
"public void init() {\n\n try {\n Context initCtx = new InitialContext();\n Context envCtx = (Context) initCtx.lookup(\"java:comp/env\");\n ds = (DataSource) envCtx.lookup(\"jdbc/QuotingDB\");\n// dbCon = ds.getConnection();\n }\n catch (javax.naming.NamingException e) {\n System.out.println(\"A problem occurred while retrieving a DataSource object\");\n System.out.println(e.toString());\n }\n\n }",
"public PortletContext() {\n }"
] |
[
"0.7049657",
"0.6750262",
"0.6715",
"0.65558726",
"0.64201313",
"0.6387747",
"0.6312663",
"0.6307962",
"0.6234001",
"0.62313306",
"0.6221861",
"0.6200831",
"0.6190326",
"0.6141915",
"0.6127888",
"0.6119636",
"0.61154276",
"0.6083423",
"0.6056619",
"0.6048453",
"0.6045427",
"0.6030988",
"0.6028024",
"0.59963423",
"0.5969051",
"0.5961039",
"0.5950873",
"0.5929741",
"0.5929741",
"0.59233034",
"0.5893776",
"0.5866252",
"0.5853862",
"0.58504105",
"0.58325994",
"0.5823004",
"0.581928",
"0.58176726",
"0.5814788",
"0.58142596",
"0.58042306",
"0.5800411",
"0.57944626",
"0.57674336",
"0.5761514",
"0.57560647",
"0.574886",
"0.5736041",
"0.5729436",
"0.57114744",
"0.57073545",
"0.5706958",
"0.5699485",
"0.5693471",
"0.5688552",
"0.5649873",
"0.56493604",
"0.5648709",
"0.56442124",
"0.5640654",
"0.56315994",
"0.5628121",
"0.56177837",
"0.56053156",
"0.56020397",
"0.5586107",
"0.5583434",
"0.5574241",
"0.5573922",
"0.5568779",
"0.55679333",
"0.55674064",
"0.55674064",
"0.5563498",
"0.5562467",
"0.5542822",
"0.553979",
"0.55351174",
"0.553308",
"0.553308",
"0.5533005",
"0.5532967",
"0.55299544",
"0.55244726",
"0.55202305",
"0.55173945",
"0.5511514",
"0.55102646",
"0.5510056",
"0.5506117",
"0.5505234",
"0.5501399",
"0.5496667",
"0.54929435",
"0.5490579",
"0.5489494",
"0.54870903",
"0.5486194",
"0.5485503",
"0.5483521"
] |
0.738828
|
0
|
Converts a context source string back to the context src enum element.
|
private static ContextType stringToContextType(String s)
{
for (ContextType enumVal : ContextType.values())
{
if (enumVal.toString().equals(s))
return enumVal;
}
// in case of failure:
return ContextType.UNKNOWN;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private static String convertTag(final String src) {\n final String s = TAG_NAMES.get(src);\n return s != null ? s : src;\n }",
"java.lang.String getSource();",
"java.lang.String getSource();",
"public void setSource(edu.umich.icpsr.ddi.FileTxtType.Source.Enum source)\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(SOURCE$30);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(SOURCE$30);\n }\n target.setEnumValue(source);\n }\n }",
"java.lang.String getSourceContext();",
"String getSourceString();",
"@com.facebook.react.uimanager.annotations.ReactProp(name = \"src\")\n public void setSource(@javax.annotation.Nullable java.lang.String r4) {\n /*\n r3 = this;\n r0 = 0;\n if (r4 == 0) goto L_0x0017;\n L_0x0003:\n r1 = android.net.Uri.parse(r4);\t Catch:{ Exception -> 0x0021 }\n r2 = r1.getScheme();\t Catch:{ Exception -> 0x0025 }\n if (r2 != 0) goto L_0x0023;\n L_0x000d:\n if (r0 != 0) goto L_0x0017;\n L_0x000f:\n r0 = r3.E();\n r0 = m12032a(r0, r4);\n L_0x0017:\n r1 = r3.f11557g;\n if (r0 == r1) goto L_0x001e;\n L_0x001b:\n r3.x();\n L_0x001e:\n r3.f11557g = r0;\n return;\n L_0x0021:\n r1 = move-exception;\n r1 = r0;\n L_0x0023:\n r0 = r1;\n goto L_0x000d;\n L_0x0025:\n r0 = move-exception;\n goto L_0x0023;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.react.views.text.frescosupport.FrescoBasedReactTextInlineImageShadowNode.setSource(java.lang.String):void\");\n }",
"java.lang.String getSrc();",
"String getSource();",
"public java.lang.String getSourceContext() {\n java.lang.Object ref = sourceContext_;\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 sourceContext_ = s;\n return s;\n }\n }",
"public Builder setSourceContext(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n sourceContext_ = value;\n onChanged();\n return this;\n }",
"protected Source convertString2Source(String param) {\n Source src;\n try {\n src = uriResolver.resolve(param, null);\n } catch (TransformerException e) {\n src = null;\n }\n if (src == null) {\n src = new StreamSource(new File(param));\n }\n return src;\n }",
"public String source(String src)\n\t{\n\t\tint i;\n\t\tString [] toks = src.split(\"\\\\s+\");\n\t\tString ret = toks[sourceStart];\n\t\tfor (i = sourceStart + 1; i < sourceEnd; i++) {\n\t\t\tret += \" \" + toks[i];\n\t\t}\n\t\treturn ret;\n\t}",
"public java.lang.String getSourceContext() {\n java.lang.Object ref = sourceContext_;\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 sourceContext_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"private static ContextLabel stringToContextLabel(String s)\n {\n \tfor (ContextLabel enumVal : ContextLabel.values())\n \t{\n \t\tif (enumVal.toString().equals(s))\n \t\t\treturn enumVal;\n \t}\n \t\n \t// in case of failure\n \treturn ContextLabel.UNKNOWN;\n }",
"public Builder setSrc(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n src_ = value;\n onChanged();\n return this;\n }",
"public void setSource (String source);",
"public void setSource(String source);",
"public java.lang.String getSrc() {\n java.lang.Object ref = src_;\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 src_ = s;\n }\n return s;\n }\n }",
"public edu.umich.icpsr.ddi.FileTxtType.Source.Enum getSource()\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(SOURCE$30);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(SOURCE$30);\n }\n if (target == null)\n {\n return null;\n }\n return (edu.umich.icpsr.ddi.FileTxtType.Source.Enum)target.getEnumValue();\n }\n }",
"public void setSource(String str) {\n\t\tMatcher m = Constants.REGEXP_FIND_SOURCE.matcher(str);\n\t\tif (m.find()) {\n\t\t\tsource = m.group(1);\n\t\t} else {\n\t\t\tsource = Utils.getString(R.string.tweet_source_web);\n\t\t}\n\t}",
"public java.lang.String getSrc() {\n java.lang.Object ref = src_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n src_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public void setSrcState(String value) {\r\n setAttributeInternal(SRCSTATE, value);\r\n }",
"public abstract void fromString(String s, String context);",
"public void setSource(String source) {\r\n this.source = source;\r\n }",
"public void setSource(String value) {\n/* 304 */ setValue(\"source\", value);\n/* */ }",
"public String getSource() {\n Object ref = source_;\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 if (bs.isValidUtf8()) {\n source_ = s;\n }\n return s;\n }\n }",
"Source getSrc();",
"public String getSrcState() {\r\n return (String) getAttributeInternal(SRCSTATE);\r\n }",
"@java.lang.Override\n public java.lang.String getSource() {\n java.lang.Object ref = source_;\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 source_ = s;\n return s;\n }\n }",
"public String getSrcStatus() {\r\n return (String) getAttributeInternal(SRCSTATUS);\r\n }",
"@Override\n public String getSource() {\n return this.src;\n }",
"public void setSrcStatus(String value) {\r\n setAttributeInternal(SRCSTATUS, value);\r\n }",
"public void setSource(String source) {\n this.source = source;\n }",
"public void setSource(String source) {\n this.source = source;\n }",
"public String getSource();",
"public String getSource(String cat);",
"public String getSource() {\n Object ref = source_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n source_ = s;\n }\n return s;\n } else {\n return (String) ref;\n }\n }",
"Type getSource();",
"@Override\n public T convert(String source, Class<T> enumType, T defaultTarget) {\n // If source is null or empty, defaultTarget is returned\n if (source == null || source.isEmpty()) {\n return defaultTarget;\n }\n try {\n // Try to get the enum constant with the specified name\n return (T) Enum.valueOf(enumType, source.trim().toUpperCase());\n } catch (IllegalArgumentException iae) {\n // If no matching enum constant is found, an exception is\n // thrown and defaultTarget is returned\n return defaultTarget;\n }\n }",
"@Override\n public int strToInt(String source) {\n try {\n return Integer.parseInt(source);\n } catch (NumberFormatException nfe) {\n return 0;\n }\n }",
"private static String convertForHTML(final String src) {\n String s = src;\n for (Map.Entry<String, String> entry: HTML_CONVERSIONS.entrySet()) s = s.replace(entry.getKey(), entry.getValue());\n return s;\n }",
"public abstract String getSource();",
"public InputSource getInputSource(String inputSource) {\n if (inputSource.equalsIgnoreCase(\"DEFAULT\")) \n return InputSource.DEFAULT;\n else if (inputSource.equalsIgnoreCase(\"USER\")) \n return InputSource.USER;\n else if (inputSource.equalsIgnoreCase(\"FILE\")) \n return InputSource.FILE;\n else if (inputSource.equalsIgnoreCase(\"NETWORK\"))\n \treturn InputSource.NETWORK;\n else \n return InputSource.ERROR;\n }",
"State getSource();",
"public void setSource(String source) {\n _source = source;\n }",
"public static SourceFormatType SourceFormatTypeRetry(String baseSourceDirectory, String sourceTextPath) throws IOException\n\t{\n SourceFormatType srcFormatType = SourceFormatType.unknown;\n try\n {\n //convert source text to file\n File fIn = new File(baseSourceDirectory, sourceTextPath);\n //read in up to the first 200 lines and see if you can spot the tags\n BufferedReader readerIn = new BufferedReader(new FileReader(fIn));\n String lineIn;\n int iRowCount = 0;\n while ((lineIn = readerIn.readLine()) != null || iRowCount < 200)\n {\n lineIn = lineIn.toLowerCase();\n if (lineIn.indexOf(OsisConverter.OSIS_TAG.toLowerCase()) > 0)\n {\n srcFormatType = SourceFormatType.osis;\n break;\n }\n if (lineIn.indexOf(ThmlConverter.THML_TAG.toLowerCase()) > 0)\n {\n srcFormatType= SourceFormatType.thml;\n break;\n }\n iRowCount++;\n }\n readerIn.close();\n }\n catch(Exception e)\n {\n System.out.println(\"Error: \" + e.getMessage());\n e.printStackTrace();\n }\n return srcFormatType;\n }",
"public java.lang.String getSource() {\n java.lang.Object ref = source_;\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 source_ = s;\n return s;\n }\n }",
"@IPSJexlMethod(description = \"decode a string from xml escaping\", params =\n {@IPSJexlParam(name = \"string\", description = \"the input string\")})\n public String decodeFromXml(String source) throws Exception\n {\n if (source == null)\n {\n throw new IllegalArgumentException(\"source may not be null\");\n }\n PSXmlDecoder enc = new PSXmlDecoder();\n return (String) enc.encode(source);\n }",
"public java.lang.String getSource() {\n java.lang.Object ref = source_;\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 source_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getSource() {\n java.lang.Object ref = source_;\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 source_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"private static String convertDescription(final String src) {\n String s = src;\n for (Map.Entry<String, String> entry: DESC_HTML_CONVERSIONS.entrySet()) s = s.replace(entry.getKey(), entry.getValue());\n return s;\n }",
"String getSrc();",
"@Override\n\tpublic String toSource(String arg0) throws Exception {\n\t\treturn null;\n\t}",
"public com.google.protobuf.ByteString\n getSrcBytes() {\n java.lang.Object ref = src_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n src_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getSourceContextBytes() {\n java.lang.Object ref = sourceContext_;\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 sourceContext_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String getSrc() {\r\n\t\treturn src;\r\n\t}",
"public Builder setSourceContextBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n sourceContext_ = value;\n onChanged();\n return this;\n }",
"private static ContextState stringToContextState(String s) \n {\n for (ContextState enumVal : ContextState.values())\n {\n if (enumVal.toString().equals(s))\n return enumVal;\n }\n \n // in case of failure:\n return ContextState.PUBLISHED;\n }",
"public Builder setVarSrc(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n varSrc_ = value;\n onChanged();\n return this;\n }",
"@VTID(27)\n java.lang.String getSourceName();",
"public void setSource(Byte source) {\r\n this.source = source;\r\n }",
"public void setSource(String Source) {\r\n this.Source = Source;\r\n }",
"public void setSource(String value) {\n configuration.put(ConfigTag.SOURCE, value);\n }",
"public String getSourceString() {\n return sourceString;\n }",
"public String getSourceType() {\n return sourceType;\n }",
"public com.google.protobuf.ByteString\n getSourceContextBytes() {\n java.lang.Object ref = sourceContext_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n sourceContext_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public Builder setSource(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n source_ = value;\n onChanged();\n return this;\n }",
"java.lang.String getAssociatedSource();",
"public String getSrc() {\n return (String) attributes.get(\"src\");\n }",
"public String getSourceString() {\n return null;\n }",
"protected void sequence_Source(ISerializationContext context, Source semanticObject) {\n\t\tif (errorAcceptor != null) {\n\t\t\tif (transientValues.isValueTransient(semanticObject, SiddhiPackage.eINSTANCE.getSource_StrId()) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, SiddhiPackage.eINSTANCE.getSource_StrId()));\n\t\t}\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\n\t\tfeeder.accept(grammarAccess.getSourceAccess().getStrIdSource1IdNewParserRuleCall_0_1(), semanticObject.eGet(SiddhiPackage.eINSTANCE.getSource_StrId(), false));\n\t\tfeeder.finish();\n\t}",
"public String getSource ();",
"@Override\n public int hexToInt(String source) {\n try {\n return Integer.parseInt(source, 16);\n } catch (NumberFormatException nfe) {\n return 0;\n }\n }",
"public com.google.protobuf.ByteString\n getSrcBytes() {\n java.lang.Object ref = src_;\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 src_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"String getSourceExpression();",
"public String getStrSourceType() {\n return strSourceType;\n }",
"java.lang.String getSourceLanguageCode();",
"public static void setVideoSource(String source){\r\n\r\n editor.putString(\"VideoMode\", source);\r\n editor.commit();\r\n }",
"ElementCircuit getSource();",
"public void setSrc(String src) {\n attributes.put(\"src\", src);\n }",
"public String getSource(){\n\t\treturn source.getEvaluatedValue();\n\t}",
"java.lang.String getVarSrc();",
"void glShaderSource(int shader, String string);",
"public void setStrSourceType(final String strSourceType) {\n this.strSourceType = strSourceType;\n }",
"public String getSource() {\n/* 312 */ return getValue(\"source\");\n/* */ }",
"public int getSrc() {\n\t\treturn src;\n\t}",
"public int convert(String src) throws NumberFormatException\n\t{\n\t\tboolean isNegative = false;\n\t\tint total = 0;\n\t\tint result = 0;\n\n\t\tchar[] charArray = src.toCharArray();\n\n\t\tfor (int i = 0; i < charArray.length; i++)\n\t\t{\n\t\t\tif (charArray[0] == '-' && i == 0) // if it is negative\n\t\t\t{\n\t\t\t\tisNegative = true;\n\t\t\t}\n\t\t\telse if (charArray[0] == '+' && i == 0) // if it is positive with '+' char\n\t\t\t{\n\t\t\t\tthrow new NumberFormatException(PLUS_CHAR_EXCEPTION_ERROR);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(charArray[i] - ZERO > 0 && charArray[i] < NINE)\n\t\t\t\t{\n\t\t\t\t\ttotal = total * 10 + charArray[i] - ZERO;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tresult = total;\n\n\t\tif (isNegative)\n\t\t{\n\t\t\tresult = -total; //inverse\n\t\t}\n\n\t\treturn result;\n\t}",
"public void sinclude(Context source){\n for (String str : sexport.keySet()){\n if (sexport.get(str) && source.get(str) != null){\n set(str, source.get(str));\n }\n } \n }",
"@Override\n\tpublic String getSource() {\n\t\treturn source;\n\t}",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getArgumentSource();",
"com.google.protobuf.ByteString\n getSourceContextBytes();",
"@java.lang.Override\n public com.google.protobuf.ByteString\n getSourceBytes() {\n java.lang.Object ref = source_;\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 source_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.opentext.bn.converters.avro.entity.DocumentEvent.Builder setIntrospectionSource(java.lang.String value) {\n validate(fields()[16], value);\n this.introspectionSource = value;\n fieldSetFlags()[16] = true;\n return this;\n }",
"public ClassNode source(String source) {\n $.sourceFile = source;\n return this;\n }",
"public com.google.protobuf.ByteString\n getSourceBytes() {\n java.lang.Object ref = source_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n source_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getSourceBytes() {\n java.lang.Object ref = source_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n source_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String getSource() {\r\n return source;\r\n }",
"@Test\n public void testClaimAdmSource() {\n new ClaimFieldTester()\n .verifyEnumFieldStringValueExtractedCorrectly(\n FissClaim.Builder::setAdmSourceEnum,\n RdaFissClaim::getAdmSource,\n FissSourceOfAdmission.SOURCE_OF_ADMISSION_CLINIC_REFERRAL,\n \"2\")\n .verifyStringFieldCopiedCorrectlyEmptyOK(\n FissClaim.Builder::setAdmSourceUnrecognized,\n RdaFissClaim::getAdmSource,\n RdaFissClaim.Fields.admSource,\n 1);\n }",
"public SourceFile getSourceFile() throws InvalidFormatException;"
] |
[
"0.61789876",
"0.5778554",
"0.5778554",
"0.57565504",
"0.57360286",
"0.56568986",
"0.5528497",
"0.5467438",
"0.5464724",
"0.5373886",
"0.5372033",
"0.53645414",
"0.53505766",
"0.53346264",
"0.5307965",
"0.529321",
"0.5245376",
"0.5244878",
"0.51947343",
"0.51481646",
"0.5143827",
"0.51343775",
"0.51180196",
"0.50841033",
"0.5070295",
"0.5060391",
"0.50502235",
"0.5049515",
"0.50476295",
"0.50438297",
"0.504162",
"0.5029492",
"0.5029404",
"0.5014956",
"0.5014956",
"0.5009458",
"0.4986398",
"0.49691662",
"0.49640244",
"0.49607578",
"0.49568906",
"0.49485102",
"0.49409848",
"0.49378857",
"0.49366853",
"0.49334174",
"0.49208048",
"0.4914934",
"0.49058038",
"0.4902421",
"0.4902421",
"0.48561347",
"0.48560402",
"0.48549503",
"0.48514563",
"0.48465934",
"0.482268",
"0.48206332",
"0.48126796",
"0.48024663",
"0.47877207",
"0.478145",
"0.47695404",
"0.47687358",
"0.476633",
"0.4762526",
"0.47624618",
"0.47570497",
"0.47432372",
"0.47356448",
"0.47338805",
"0.47280046",
"0.47133765",
"0.46988946",
"0.46907026",
"0.46887976",
"0.46840343",
"0.46787772",
"0.46706158",
"0.4667908",
"0.46509257",
"0.4644882",
"0.46381795",
"0.46184853",
"0.46122402",
"0.46085727",
"0.46034294",
"0.4587237",
"0.45835233",
"0.4583501",
"0.4581238",
"0.45779338",
"0.45760697",
"0.45492277",
"0.45433328",
"0.45429993",
"0.45429993",
"0.45389953",
"0.4538051",
"0.45250872"
] |
0.51141006
|
23
|
Converts a context state string back to the context state enum element.
|
private static ContextState stringToContextState(String s)
{
for (ContextState enumVal : ContextState.values())
{
if (enumVal.toString().equals(s))
return enumVal;
}
// in case of failure:
return ContextState.PUBLISHED;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private static ContextLabel stringToContextLabel(String s)\n {\n \tfor (ContextLabel enumVal : ContextLabel.values())\n \t{\n \t\tif (enumVal.toString().equals(s))\n \t\t\treturn enumVal;\n \t}\n \t\n \t// in case of failure\n \treturn ContextLabel.UNKNOWN;\n }",
"java.lang.String getState();",
"private static ContextType stringToContextType(String s) \n {\n for (ContextType enumVal : ContextType.values())\n {\n if (enumVal.toString().equals(s))\n return enumVal;\n }\n \n // in case of failure:\n return ContextType.UNKNOWN;\n }",
"public static OperationType stateOf(String state) {\n for (OperationType stateEnum : values()) {\n if (stateEnum.getOperation().equals(state)) {\n return stateEnum;\n }\n }\n return null;\n }",
"String getState();",
"String getState();",
"String getState();",
"public String idToState(int id);",
"org.landxml.schema.landXML11.StateType.Enum getState();",
"public static State findState(String string) {\n String find = string.toUpperCase();\n\n if (find.contains(WAITING.name())) {\n return WAITING;\n }\n else if (find.contains(STARTING.name())) {\n return STARTING;\n }\n else if (find.contains(PLAYING.name())) {\n return PLAYING;\n }\n else if (find.contains(ENDING.name())) {\n return ENDING;\n }\n else if (find.contains(ENDED.name())) {\n return ENDED;\n }\n else {\n return OFFLINE;\n }\n }",
"public java.lang.String getState() {\n java.lang.Object ref = state_;\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 state_ = s;\n }\n return s;\n }\n }",
"public static final StatusOrder stringToEnum(int statusInt) throws Exception {\n\t\tswitch (statusInt) {\n\t\tcase 0:\n\t\t\treturn AWAITING;\n\t\tcase 1:\n\t\t\treturn APPROVED;\n\t\tcase 2:\n\t\t\treturn REJECTED;\n\t\tcase 3:\n\t\t\treturn CLOSED;\n\t\tdefault:\n\t\t\tthrow new EnumNotFindException(\"Значение <\"+statusInt+\"> не входит в заданный список\");\n\t\t}\n\t}",
"public State(String fromString)\n {\n// Metrics.increment(\"State count\");\n //...\n }",
"public static Enum forString(java.lang.String s)\r\n { return (Enum)table.forString(s); }",
"private void setGameState() // Convert the string version of the game state to the GameState version.\n\t{\n\t\tif (gameStateString.equalsIgnoreCase(\"waitingForStart\"))\n\t\t{\n\t\t\tgameState = GameState.waitingForStart;\n\t\t}\n\t\telse if (gameStateString.equalsIgnoreCase(\"gameWelcome\"))\n\t\t{\n\t\t\tgameState = GameState.gameWelcome;\n\t\t} \n\t\telse if (gameStateString.equalsIgnoreCase(\"decideWhoGoesFirst\"))\n\t\t{\n\t\t\tgameState = GameState.decideWhoGoesFirst;\n\t\t} \n\t\telse if (gameStateString.equalsIgnoreCase(\"twoPlayersPlayerOneGoesFirst\"))\n\t\t{\n\t\t\tgameState = GameState.twoPlayersPlayerOneGoesFirst;\n\t\t} \n\t\telse if (gameStateString.equalsIgnoreCase(\"twoPlayersPlayerTwoGoesFirst\"))\n\t\t{\n\t\t\tgameState = GameState.twoPlayersPlayerTwoGoesFirst;\n\t\t} \n\t\telse if (gameStateString.equalsIgnoreCase(\"twoPlayersNowPlayerOnesTurn\"))\n\t\t{\n\t\t\tgameState = GameState.twoPlayersNowPlayerOnesTurn;\n\t\t} \n\t\telse if (gameStateString.equalsIgnoreCase(\"twoPlayersNowPlayerTwosTurn\"))\n\t\t{\n\t\t\tgameState = GameState.twoPlayersNowPlayerTwosTurn;\n\t\t} \n\t\telse if (gameStateString.equalsIgnoreCase(\"aPlayerHasWon\"))\n\t\t{\n\t\t\tgameState = GameState.aPlayerHasWon;\n\t\t} \n\n\t}",
"public abstract ExplicitMachineState convertToExplicitMachineState(MachineState state);",
"java.lang.String getStateReason();",
"public static String decode(String str){\r\n\t\treturn HtmlCodec.DefaultChar2ENUM.decode(str);\r\n\t}",
"public static Enum forString(java.lang.String s)\n { return (Enum)table.forString(s); }",
"public static Enum forString(java.lang.String s)\n { return (Enum)table.forString(s); }",
"public static Enum forString(java.lang.String s)\n { return (Enum)table.forString(s); }",
"public static Enum forString(java.lang.String s)\n { return (Enum)table.forString(s); }",
"public static Enum forString(java.lang.String s)\n { return (Enum)table.forString(s); }",
"public static TransactionType getEnumFromString(String string) {\n for (TransactionType transactionType : TransactionType.values()) {\n if (transactionType.getTransactionType().equals(string)) {\n return transactionType;\n }\n }\n\n throw new UnsupportedOperationException(\"Zadali ste chybný názov transakcie\");\n }",
"public static String parseSelectedState(String s) {\n if (!fullMap.containsKey(s)) {\n return \"\";\n } else {\n return fullMap.get(s);\n }\n/* if (s.equals(\"Alabama\")) {\n return \"AL\";\n }\n if (s.equals(\"Alaska\")) {\n return \"AK\";\n }\n if (s.equals(\"Arizona\")) {\n return \"AZ\";\n }\n if (s.equals(\"Arkansas\")) {\n return \"AR\";\n }\n if (s.equals(\"California\")) {\n return \"CA\";\n }\n // more states here*/\n }",
"public static CommandEnum stringToEnum(String commandEnum) {\n if (lookup.containsKey(commandEnum)) {\n return lookup.get(commandEnum);\n } else {\n return CommandEnum.INVALID;\n }\n }",
"public java.lang.String getState() {\n java.lang.Object ref = state_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n state_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String getStateString()\n {\n return stateString;\n }",
"State mo5880e(String str);",
"ESMFState getState();",
"private static String getStateInput() {\n\t\treturn getQuery(\"Valid State\");\n\t}",
"public String getStateString()\r\n\t{\r\n\t\treturn stateString;\r\n\t}",
"void setState(org.landxml.schema.landXML11.StateType.Enum state);",
"public void setState( EAIMMCtxtIfc theCtxt, java.lang.String theState) throws EAIException;",
"StateType createStateType();",
"@Override\n public TransactionType convertToEntityAttribute(String s) {\n if (s == null) return null;\n\n return TransactionType.getEnumFromString(s);\n }",
"public static WsmResourceState fromDb(String dbString) {\n if (dbString == null) {\n return null;\n }\n for (var state : WsmResourceState.values()) {\n if (state.dbString.equals(dbString)) {\n if (state == NOT_EXISTS) {\n throw new InternalLogicException(\"Found NOT_EXISTS state in the database\");\n }\n return state;\n }\n }\n throw new SerializationException(\n \"Deserialization failed: no matching state type for \" + dbString);\n }",
"@Override\n public String getStateToken() {\n return stateToken;\n }",
"@AutoEscape\n\tpublic String getState();",
"public String getState() { return state; }",
"public abstract String getState();",
"public com.google.protobuf.ByteString\n getStateBytes() {\n java.lang.Object ref = state_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n state_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"protected void sequence_State(ISerializationContext context, State semanticObject) {\r\n\t\tif (errorAcceptor != null) {\r\n\t\t\tif (transientValues.isValueTransient(semanticObject, TP1_EMPackage.Literals.STATE__NAME) == ValueTransient.YES)\r\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, TP1_EMPackage.Literals.STATE__NAME));\r\n\t\t}\r\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\r\n\t\tfeeder.accept(grammarAccess.getStateAccess().getNameEStringParserRuleCall_2_0(), semanticObject.getName());\r\n\t\tfeeder.finish();\r\n\t}",
"public java.lang.String getState() {\r\n return state;\r\n }",
"private String mapToAmazonVolState(String state) {\n if (state.equalsIgnoreCase(\"Allocated\") || state.equalsIgnoreCase(\"Creating\") || state.equalsIgnoreCase(\"Ready\"))\n return \"available\";\n\n if (state.equalsIgnoreCase(\"Destroy\"))\n return \"deleting\";\n\n return \"error\";\n }",
"public static DriverStateEvent fromString(String string) {\n String[] parts = string.split(\",\");\n String eventTimeString = parts[0].substring(0,19).replace(\"T\", \" \");\n Long eventTimestamp = java.sql.Timestamp.valueOf(eventTimeString).getTime();\n String driverId = parts[1];\n DriverState lastState = DriverState.valueOf(parts[2] );\n DriverState currentState = DriverState.valueOf(parts[3]);\n return new DriverStateEvent(eventTimestamp, driverId, lastState, currentState);\n }",
"public java.lang.String getState() {\n return state;\n }",
"public java.lang.String getState() {\n return state;\n }",
"public java.lang.CharSequence getState() {\n return state;\n }",
"private String gameStateToString() // Convert the game state into a string type.\n\t{\n\t\tString getGameStateString = \"\";\n\n\t\tswitch (gameState) // Check the state of the game and change the messages as needed.\n\t\t{\n\t\tcase waitingForStart:\n\t\t\tgetGameStateString = \"waitingForStart\";\n\t\t\tbreak;\n\t\tcase gameWelcome:\n\t\t\tgetGameStateString = \"gameWelcome\";\n\t\t\tbreak;\n\t\tcase decideWhoGoesFirst:\n\t\t\tgetGameStateString = \"decideWhoGoesFirst\";\n\t\t\tbreak;\n\t\tcase twoPlayersPlayerOneGoesFirst:\n\t\t\tgetGameStateString = \"twoPlayersPlayerOneGoesFirst\";\n\t\t\tbreak;\n\t\tcase twoPlayersPlayerTwoGoesFirst:\n\t\t\tgetGameStateString = \"twoPlayersPlayerTwoGoesFirst\";\n\t\t\tbreak;\n\t\tcase twoPlayersNowPlayerOnesTurn: \n\t\t\tgetGameStateString = \"twoPlayersNowPlayerOnesTurn\";\n\t\t\tbreak;\n\t\tcase twoPlayersNowPlayerTwosTurn:\n\t\t\tgetGameStateString = \"twoPlayersNowPlayerTwosTurn\";\n\t\t\tbreak;\n\t\tcase aPlayerHasWon:\n\t\t\tgetGameStateString = \"aPlayerHasWon\";\n\t\t\tbreak;\t\n\t\t}\n\n\t\treturn getGameStateString;\n\n\t}",
"public java.lang.CharSequence getState() {\n return state;\n }",
"public static RecordStatusEnum get(String string) {\n if (string == null) {\n return null;\n }\n try {\n Integer id = Integer.valueOf(string);\n RecordStatusEnum enumeration = getById(id);\n if (enumeration != null) {\n return enumeration;\n }\n }\n catch (Exception e) {\n // ignore\n }\n return getByLabel(string);\n }",
"public static State fromString(String s) {\n if (s != null) {\n State[] vs = values();\n for (int i = 0; i < vs.length; i++) {\n if (vs[i].toString().equalsIgnoreCase(s)) {\n return vs[i];\n }\n }\n }\n return null;\n }",
"public void setState(String state);",
"@JsonCreator\n public static ProgrammingState fromString(String name) {\n return fromString(name, ProgrammingState.class);\n }",
"int getStateValue();",
"int getStateValue();",
"int getStateValue();",
"public static int activityStateToProcessState( int newState )\r\n {\r\n // The states actually have the same ordinals.\r\n return newState;\r\n }",
"void setState(String state);",
"public String getState() {\n Scanner scanner = new Scanner(System.in);\n\n // Tell User to enter two digit state\n System.out.println(\"Enter state name: \");\n\n // Get the two digit state\n String state = scanner.next();\n\n return state;\n }",
"Object getState();",
"com.google.protobuf.ByteString getStateReasonBytes();",
"public void setStateString(String stateString)\r\n\t{\r\n\t\tthis.stateString = new String(stateString);\r\n\t}",
"public interface STATE_TYPE {\r\n public static final int RESERVED = 1;\r\n public static final int PARKED = 2;\r\n public static final int UNPARKED = 3;\r\n public static final int CANCELED = 4;\r\n }",
"private static int toAmazonCode( String cloudState )\r\n \t{\r\n \t\tif (null == cloudState) return 48;\r\n \t\t\r\n \t\t if (cloudState.equalsIgnoreCase( \"Destroyed\" )) return 48;\r\n \t\telse if (cloudState.equalsIgnoreCase( \"Stopped\" )) return 80;\r\n \t\telse if (cloudState.equalsIgnoreCase( \"Running\" )) return 16;\r\n \t\telse if (cloudState.equalsIgnoreCase( \"Starting\" )) return 0;\r\n \t\telse if (cloudState.equalsIgnoreCase( \"Stopping\" )) return 64;\r\n \t\telse return 16;\r\n \t}",
"public java.lang.String getState( EAIMMCtxtIfc theCtxt) throws EAIException ;",
"@Override\n public String getState()\n {\n return state;\n }",
"public void SwitchTo(int lexState)\n{\n if (lexState >= 4 || lexState < 0)\n throw new TokenMgrError(\"Error: Ignoring invalid lexical state : \" + lexState + \". State unchanged.\", TokenMgrError.INVALID_LEXICAL_STATE);\n else\n curLexState = lexState;\n}",
"public static SDLEventState eventState(int type, SDLEventState state) throws SDLException {\n\tshort s = SWIG_SDLEvent.SDL_EventState((short)type, (short)state.swigValue());\n\treturn SDLEventState.swigToEnum(s);\n }",
"BGPv4FSMState state();",
"public void setState(org.landxml.schema.landXML11.StateType.Enum state)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(STATE$14);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(STATE$14);\r\n }\r\n target.setEnumValue(state);\r\n }\r\n }",
"@java.lang.Override\n public java.lang.String getStateMessage() {\n java.lang.Object ref = stateMessage_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n stateMessage_ = s;\n return s;\n }\n }",
"int getState();",
"int getState();",
"int getState();",
"int getState();",
"int getState();",
"int getState();",
"public void SwitchTo(int lexState)\n{\n if (lexState >= 1 || lexState < 0)\n throw new TokenMgrError(\"Error: Ignoring invalid lexical state : \" + lexState + \". State unchanged.\", TokenMgrError.INVALID_LEXICAL_STATE);\n else\n curLexState = lexState;\n}",
"public int stateIndexOfString (String s)\n\t{\n\t\tfor (int i = 0; i < this.numStates(); i++) {\n\t\t\tString state = this.getState (i).getName();\n\t\t\tif (state.equals (s))\n\t\t\t\treturn i;\n\t\t}\n\t\treturn -1;\t\t\n\t}",
"Update withState(String state);",
"public static State parseString(String name)\n\t\t{\n\t\t\tif (FULL.toString().equals(name))\n\t\t\t\treturn FULL;\n\t\t\telse if (PARTIAL.toString().equals(name))\n\t\t\t\treturn PARTIAL;\n\t\t\telse if (DELETED.toString().equals(name))\n\t\t\t\treturn DELETED;\n\t\t\telse\n\t\t\t\treturn null;\n\t\t}",
"static public void SwitchTo(int lexState)\n{\n if (lexState >= 2 || lexState < 0)\n throw new TokenMgrError(\"Error: Ignoring invalid lexical state : \" + lexState + \". State unchanged.\", TokenMgrError.INVALID_LEXICAL_STATE);\n else\n curLexState = lexState;\n}",
"public String getState() {\n return state;\n }",
"public java.lang.String getState () {\n\t\treturn state;\n\t}",
"public com.google.protobuf.ByteString\n getStateBytes() {\n java.lang.Object ref = state_;\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 state_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"@JsonCreator\n public static TestMigrationState fromString(String name) {\n return fromString(name, TestMigrationState.class);\n }",
"<C, EL> EnumLiteralExp<C, EL> createEnumLiteralExp();",
"public State(String state_rep) {\n\t\tthis.state_rep = state_rep;\n\t}",
"State getState();",
"State getState();",
"State getState();",
"State getState();",
"public String getStateCode() {\n return (String)getAttributeInternal(STATECODE);\n }",
"public String getState()\r\n\t{\r\n\t\treturn state;\r\n\t}",
"public String getState()\r\n\t{\r\n\t\treturn state;\r\n\t}",
"public java.lang.String getState() {\n return State;\n }",
"org.landxml.schema.landXML11.StateType xgetState();",
"public void setStateContext(State s);"
] |
[
"0.6350985",
"0.621536",
"0.6128827",
"0.6109435",
"0.590519",
"0.590519",
"0.590519",
"0.5769809",
"0.55665535",
"0.554126",
"0.55110663",
"0.5504945",
"0.54997885",
"0.54959106",
"0.5463542",
"0.546316",
"0.54584616",
"0.5436132",
"0.5436023",
"0.5429298",
"0.5429298",
"0.5429298",
"0.5422314",
"0.5400998",
"0.53811574",
"0.5370748",
"0.5364586",
"0.53558177",
"0.5353043",
"0.5331113",
"0.53170365",
"0.52837807",
"0.5282994",
"0.52611166",
"0.525319",
"0.52421224",
"0.5233523",
"0.5222878",
"0.5205722",
"0.51804614",
"0.51726216",
"0.517222",
"0.516966",
"0.51629496",
"0.5150964",
"0.51439613",
"0.51331997",
"0.51331997",
"0.51153183",
"0.51120275",
"0.5111057",
"0.51008976",
"0.5099267",
"0.5087316",
"0.5066064",
"0.50603926",
"0.50603926",
"0.50603926",
"0.504985",
"0.50448483",
"0.5039928",
"0.50341415",
"0.5030525",
"0.5013394",
"0.50054353",
"0.50023943",
"0.4990462",
"0.4982944",
"0.49658972",
"0.49620092",
"0.49596506",
"0.4959268",
"0.49555072",
"0.49538967",
"0.49538967",
"0.49538967",
"0.49538967",
"0.49538967",
"0.49538967",
"0.49522224",
"0.49448952",
"0.49431562",
"0.4941139",
"0.4939901",
"0.49367177",
"0.4924598",
"0.4920576",
"0.492031",
"0.49090442",
"0.49039042",
"0.49012768",
"0.49012768",
"0.49012768",
"0.49012768",
"0.48950696",
"0.48877558",
"0.48877558",
"0.48713008",
"0.48697513",
"0.48695597"
] |
0.737016
|
0
|
Converts a string to a context label.
|
private static ContextLabel stringToContextLabel(String s)
{
for (ContextLabel enumVal : ContextLabel.values())
{
if (enumVal.toString().equals(s))
return enumVal;
}
// in case of failure
return ContextLabel.UNKNOWN;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public String getLabel(String s) {\n\t\ts = s.toUpperCase();\n\t\tString label = getRawLabelString(s);\n\t\tif (label != null) {\n\t\t\tif ((label.contains(\" \")) || (label.contains(\"\\t\")) || (label.contains(\"'\"))) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\tint labeltype = getOperandType(label);\n\t\t\t//if (commandLoader.commandExists(label)) {\n\t\t\t//\treturn null;\n\t\t\t//}\n\t\t\tif (Op.matches(labeltype, Op.ERROR | Op.LABEL | Op.VARIABLE | Op.CONST)) {\n\t\t\t\treturn label;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public Label newLabel(String labelStr, int options) {\r\n return newLabel(labelStr);\r\n }",
"java.lang.String getLabel();",
"String buildLabelFromType(String type);",
"private static ContextType stringToContextType(String s) \n {\n for (ContextType enumVal : ContextType.values())\n {\n if (enumVal.toString().equals(s))\n return enumVal;\n }\n \n // in case of failure:\n return ContextType.UNKNOWN;\n }",
"private GLabel makeLabel(String labelString, GRect labelRect) {\r\n\t\tGLabel label = new GLabel(labelString);\r\n\t\tint labelXPadding = ((int) labelRect.getWidth() - (int) label.getWidth()) / 2;\r\n\t\tint labelYPadding = ((int) labelRect.getHeight() + (int) label.getAscent()) / 2;\r\n\t\tlabel.setLocation(labelRect.getX() + labelXPadding, labelRect.getY() + labelYPadding);\r\n\t\treturn label;\r\n\t}",
"public static String translate(String label) {\n return getSession().translate(label);\n }",
"private String getLabel(String labelAudit) {\n\t\tString label = null;\n\t\tif(labelForAuditLabel.containsKey(labelAudit)) {\n\t\t\tlabel = labelForAuditLabel.get(labelAudit);\n\t\t\tif(label != null) {\n\t\t\t\tif(label.isEmpty())\n\t\t\t\t\tlabel = null;\n\t\t\t\telse\n\t\t\t\t\tlabel = messageSource.getMessage(label, null, Locale.getDefault());\n\t\t\t\t\t//messageSource.getMessage(\"label.dati_verbale\", values, Locale.getDefault())\n\t\t\t}\n\t\t} else {\n\t\t\t//LOGGER.info(\"label_mancante\");\n\t\t\tLOGGER.info(labelAudit);\n\t\t\tlabel = \"??key \" + labelAudit + \" not found??\";\n\t\t}\n\t\treturn label;\n\t}",
"public Label newLabelFromString(String encodedLabelStr) {\r\n return newLabel(encodedLabelStr);\r\n }",
"String getLabel();",
"String getLabel();",
"private String labelFeature(int feature) {\r\n\t\treturn label[feature];\r\n\t}",
"void createLabelToken( String name, int id );",
"protected JLabel makeLabel(String s) {\n JLabel label = new JLabel(s);\n label.setFont(new Font(QuizAppUtilities.UI_FONT, Font.PLAIN, 16));\n\n return label;\n }",
"public static RubyLabel getLabelFromString(String rubyRuntimeLabel) {\n final StringTokenizer stringTokenizer = new StringTokenizer(rubyRuntimeLabel, \" \");\n\n if (stringTokenizer.countTokens() == 2) {\n return new RubyLabel(stringTokenizer.nextToken(), stringTokenizer.nextToken());\n } else {\n if (rubyRuntimeLabel.matches(\".*@.*\")){ // mad or bad regex, not sure time will tell.\n return new RubyLabel(DEFAULT_RUNTIME_MANAGER, rubyRuntimeLabel);\n }\n throw new IllegalArgumentException(\"Could not parse rubyRuntime string, expected something like 'RVM ruby-1.9.2@rails31', not \" + rubyRuntimeLabel);\n }\n\n }",
"private String resolveLabel(String aLabel){\n\t\t// Pre-condition\n\t\tif(aLabel == null) return aLabel;\n\t\t// Main code\n\t\tif (aLabel == \"univ\") return null;\n\t\tString actualName = aLabel.contains(\"this/\")?aLabel.substring(\"this/\".length()):aLabel;\n\t\treturn actualName;\n\t}",
"public java.lang.String getLabel();",
"public java.lang.String getLabel() {\n java.lang.Object ref = label_;\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 label_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public final String getLabelCode() {\r\n\t\tString label = this.label;\r\n\t\tif (StringUtil.isEmpty(label))\r\n\t\t\treturn \"\";\r\n\t\tStringBuilder labelCode = new StringBuilder();\r\n\t\tint startIndex = 0;\r\n\t\tfor (int i=0; i<label.length();i++) {\r\n\t\t\tif (label.charAt(i) >= 'A' && label.charAt(i)<= 'Z') {\r\n\t\t\t\tif (startIndex!=0) {\r\n\t\t\t\t\tlabelCode.deleteCharAt(startIndex-1);\r\n\t\t\t\t\tlabelCode.append(\"-\");\r\n\t\t\t\t}\r\n\t\t\t\tlabelCode.append(label.substring(startIndex, i).toLowerCase());\r\n\t\t\t\tstartIndex = i;\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (startIndex<label.length()) {\r\n\t\t\tif (startIndex!=0) {\r\n\t\t\t\tlabelCode.deleteCharAt(startIndex-1);\r\n\t\t\t\tlabelCode.append(\"-\");\r\n\t\t\t}\r\n\t\t\tlabelCode.append(label.substring(startIndex).toLowerCase());\r\n\t\t}\r\n\t\treturn labelCode.toString();\r\n\t}",
"public String getContextString();",
"@java.lang.Override\n public java.lang.String getLabel() {\n java.lang.Object ref = label_;\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 label_ = s;\n return s;\n }\n }",
"public String getContextualizedLabel() {\n\t\tString completeLbl = CodeUnit.getLabel(getRepo(), getArtFrag(), null, true);//this.getLabel();\r\n\t\t\r\n\t\t// strip number for anon class (shows in tooltip)\r\n\t\tif (RSECore.isAnonClassName(completeLbl))\r\n\t\t\tcompleteLbl = RSECore.stripAnonNumber(completeLbl);\r\n\t\t\r\n\t\tTitledArtifactEditPart parentTAFEP = this.getParentTAFEP();\r\n\t\tif (parentTAFEP != null) {\r\n\t\t\tString contextLbl = null;\r\n\t\t\tcontextLbl = getCntxLabel(parentTAFEP);\r\n\t\t\tif (completeLbl.startsWith(contextLbl) && !contextLbl.equals(\".\")) {\r\n\t\t\t\tcompleteLbl = completeLbl.substring(contextLbl.length());\r\n\t\t\t}\r\n\t\t}\r\n\t\tcompleteLbl = strTruncEnd(completeLbl, \".*\");\r\n\t\tcompleteLbl = strTruncBeg(completeLbl, \".\");\r\n\t\tif (completeLbl.length() == 0) completeLbl = \".\";\r\n\t\treturn completeLbl;\r\n\t}",
"protected String parseLabel(XmlPullParser xpp) throws XmlPullParserException, IOException {\n return parseText(xpp, \"Label\");\n }",
"@DISPID(32)\r\n\t// = 0x20. The runtime will prefer the VTID if present\r\n\t@VTID(37)\r\n\tjava.lang.String label();",
"@DISPID(74)\r\n\t// = 0x4a. The runtime will prefer the VTID if present\r\n\t@VTID(72)\r\n\tjava.lang.String label();",
"Label getLabel();",
"Label getLabel();",
"Label getLabel();",
"public static Label createInputLabel(String lblValue) {\n\t\tLabel lbl = new Label(lblValue);\n\t\tlbl.setFont(Font.font(\"Arial\", FontWeight.SEMI_BOLD, 20));\n\t\treturn lbl;\n\t}",
"private String makeLabel(String label)\n {\n \treturn label + \"$\" + Integer.toString(labelCount++);\n }",
"public abstract void fromString(String s, String context);",
"public static LabelTarget label(String name) { throw Extensions.todo(); }",
"public String getLabel() {\n return AsteriskUtlities.toContextIdentifier(username + \"-\" + company);\n }",
"protected String generateLabelString(CategoryDataset dataset, int row, int column) {\n\t\tif (dataset == null) {\n\t\t\tthrow new IllegalArgumentException(\"Null 'dataset' argument.\");\n\t\t}\n\t\tString result = null;\n\t\tObject[] items = createItemArray(dataset, row, column);\n\t\tresult = MessageFormat.format(this.labelFormat, items);\n\t\treturn result;\n\n\t}",
"public LabeledText(String label) {\n\t\tthis(new RegexMatcher(label + \"\\\\**\"));\n\t}",
"java.lang.String getContext();",
"public abstract void addLabel(String str);",
"public String label() {\n\t\treturn \"LABEL_\" + (labelCount++);\n\t}",
"public LabelToken(String value, int line) {\n super(value, TokenType.LABEL, line);\n this.origin = -1;\n this.originOffset = 0;\n }",
"public String getLabel() {\n return label;\n }",
"public String getLabel()\r\n {\r\n return label;\r\n }",
"public String getLabel()\r\n {\r\n return label;\r\n }",
"public String getLabel() {\r\n return label;\r\n }",
"public String getLabel() {\r\n return label;\r\n }",
"public String getLabel() {\r\n return label;\r\n }",
"private String getLabel(String label, String text) {\n\t\tStringBuffer buffer = new StringBuffer(label);\n\t\tif (text != null && !\"\".equals(text)) {\n\t\t\tif (!\"Choose One\".equals(text)) {\n\t\t\t\tbuffer.append(\": '\" + text + \"'\");\n\t\t\t}\n\t\t}\n\n\t\treturn buffer.toString();\n\t}",
"public String getLabel()\n {\n return label;\n }",
"public static LabelTarget label() { throw Extensions.todo(); }",
"DatasetLabel getLabel();",
"protected String localize(Map<String, String> labels, String s) {\n return labels.containsKey(s) ? labels.get(s) : (\"Untranslated:\" + s);\n }",
"public String getLabel() {\n return label;\n }",
"public String getLabel() {\n return label;\n }",
"public String getLabel() {\n return label;\n }",
"String label(String line) {\n\t\tint idx = line.lastIndexOf(':');\n\t\tint idxQuote = line.lastIndexOf('\\'');\n\t\tif (idx < 0 || idx < idxQuote) return line.trim();\n\n\t\tString label = line.substring(0, idx).trim();\n\t\tString rest = line.substring(idx + 1).trim();\n\n\t\t// Is 'label' a function signature?\n\t\tif (label.indexOf('(') > 0 && label.indexOf(')') > 0) {\n\t\t\tbdsvm.updateFunctionPc(label, pc());\n\t\t} else {\n\t\t\tbdsvm.addLabel(label, pc());\n\t\t}\n\n\t\treturn rest.trim();\n\t}",
"public String getLabel();",
"public String getLabel();",
"public String getLabel();",
"public String getLabel();",
"public static String getLabel(String uri, Rdf2GoCore repo, String languageTag) {\n\t\ttry {\n\t\t\tnew java.net.URI(uri);\n\t\t}\n\t\tcatch (URISyntaxException e) {\n\t\t\tLog.severe(e.getMessage());\n\t\t\treturn uri;\n\t\t}\n\t\treturn getLabel(new URIImpl(uri), repo, languageTag);\n\t}",
"public String generateLabel(XYDataset dataset,\n int series,\n int category) {\n String result;\n result = labels.get(category);\n return result;\n }",
"public static Node buildLiteral(final String label) {\n\t\treturn NodeFactory.createLiteral(label);\n\t}",
"private static String getNameForLabel(Type t) {\n return t.toLabel();\n }",
"public void setStrLabelValue(String strLabelValue) {\r\n\t\tthis.strLabelValue = strLabelValue;\r\n\t}",
"private static String getClassName (String label)\n {\n\tchar c;\n\tfor (int i = 0; i < label.length (); i++) {\n\t c = label.charAt (i);\n\t if (Character.isDigit (c)) {\n\t\treturn label.substring (0, i);\n\t }; // if\n\t}; // for\n\n\treturn label;\n\n }",
"public String getLabel() {\r\n return lbl;\r\n }",
"public String getLabel() {\r\n return label;\r\n }",
"com.google.ads.googleads.v6.resources.Label getLabel();",
"private static String getLabel(State from, State to) {\n String label = transitionLabels.get(hashOf(from, to));\n if (label != null)\n return label;\n else\n return \"\";\n }",
"public static LabelExpression label(LabelTarget labelTarget) { throw Extensions.todo(); }",
"public String getStrLabelName() {\r\n\t\treturn strLabelName;\r\n\t}",
"public String getLabel(String uri){\n \n for(Iterator it = listOfLabels.iterator();it.hasNext();){\n SemanticConcept sc = (SemanticConcept) it.next();\n if(sc.getUrl().equals(uri))\n return sc.getName();\n }\n return \" \";\n }",
"protected static String getLabel( Resource individual ) {\n\t StmtIterator i = individual.listProperties( RDFS.label );\n\t while (i.hasNext()) {\n\t Literal l = i.next().getLiteral();\n\n\t if (l.getLanguage() != null) {\n\t //devuelve el valor del label del recurso\n\t return l.getLexicalForm();\n\t }\n\t }\n\n\t return \"\";\n\t }",
"void setLabel(String label);",
"public java.lang.String getContext() {\n java.lang.Object ref = context_;\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 context_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public void setLabel(final String label) {\n this.label = label;\n }",
"public String getLabel() {\n return label;\n }",
"public String getLabel() {\r\n\t\tif (label != null)\r\n\t\t\treturn label;\r\n\t\tif (classSimpleName==null)\r\n\t\t\treturn null;\r\n\t\treturn classSimpleName.replace('.', '_');\r\n\t}",
"public void setLabel(final String labelValue) {\n this.label = labelValue;\n }",
"public void setLabel(final String labelValue) {\n this.label = labelValue;\n }",
"public String getLabel() {\r\n\t\treturn label;\r\n\t}",
"public String getLabel() {\r\n\t\treturn label;\r\n\t}",
"public String getLabel() {\r\n\t\treturn label;\r\n\t}",
"public String getLabel() {\r\n\t\treturn label;\r\n\t}",
"public void showParticipantLabel(String label) {\n setContentView(R.layout.fragment_participant_code);\n\n TextView tv1 = (TextView) findViewById(R.id.participant_code);\n tv1.setText(getResources().getString(R.string.participant_code, label));\n }",
"public String getLabel()\n {\n return label;\n }",
"public String getLabel() {\n return _label == null ? name() : _label;\n }",
"public Field label(String label);",
"public LabelModel getLabel(String aName);",
"protected Label newLabel(String id, IModel<String> model) {\n\t\tLabel label = new Label(id, model);\n\t\treturn label;\n\t}",
"public Label() {\n\t\tthis(\"L\");\n\t}",
"public void setStrLabelName(String strLabelName) {\r\n\t\tthis.strLabelName = strLabelName;\r\n\t}",
"public final String getLabel() {\n\t\treturn _label;\n\t}",
"public final void mT__143() throws RecognitionException {\n try {\n int _type = T__143;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalMyDsl.g:141:8: ( 'label' )\n // InternalMyDsl.g:141:10: 'label'\n {\n match(\"label\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }",
"public String toString() {\n return label;\n }",
"public String getLabel() {\n return label;\n }",
"public String getLabel() {\n return name().toLowerCase().replace(\"_\", \"\");\n }",
"public String getStrLabelValue() {\r\n\t\treturn strLabelValue;\r\n\t}",
"public java.lang.String getContext() {\n java.lang.Object ref = context_;\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 context_ = s;\n return s;\n }\n }",
"public void setLabel(final String labelValue) {\n this.label = labelValue;\n }",
"public String getLabel()\n { \n return label;\n }"
] |
[
"0.5644615",
"0.55773574",
"0.54307497",
"0.53798056",
"0.53712636",
"0.52640736",
"0.5263789",
"0.52606356",
"0.52593994",
"0.52470773",
"0.52470773",
"0.52449036",
"0.52082944",
"0.5196085",
"0.517982",
"0.5123495",
"0.5116532",
"0.5116078",
"0.51076794",
"0.5104619",
"0.5092366",
"0.5082496",
"0.5080334",
"0.5074398",
"0.5060459",
"0.5060023",
"0.5060023",
"0.5060023",
"0.503604",
"0.5019792",
"0.50115377",
"0.49876636",
"0.49814534",
"0.49527833",
"0.4951225",
"0.49431565",
"0.4924977",
"0.49199152",
"0.4914597",
"0.48818254",
"0.48626748",
"0.48626748",
"0.48613846",
"0.48613846",
"0.48613846",
"0.48547205",
"0.48493716",
"0.48464325",
"0.48392114",
"0.48363972",
"0.4836332",
"0.4836332",
"0.4836332",
"0.4834258",
"0.48290282",
"0.48290282",
"0.48290282",
"0.48290282",
"0.4828783",
"0.48271185",
"0.4818664",
"0.48116148",
"0.48104963",
"0.48077857",
"0.4804708",
"0.48033276",
"0.47976953",
"0.47953293",
"0.4795228",
"0.47876984",
"0.4786947",
"0.47666624",
"0.4764649",
"0.47602233",
"0.47597057",
"0.4757268",
"0.4748824",
"0.47453758",
"0.47453758",
"0.47434497",
"0.47434497",
"0.47434497",
"0.47434497",
"0.47401422",
"0.47380313",
"0.47373724",
"0.4733656",
"0.47328502",
"0.47275499",
"0.47244143",
"0.47239667",
"0.47237056",
"0.47141984",
"0.47131565",
"0.47032845",
"0.4703054",
"0.47021735",
"0.47001532",
"0.46955627",
"0.4695194"
] |
0.7465493
|
0
|
Returns a unique timestamp considering the last stored timestamp. If the current timestamp is equal to the last one, one millisecond is added. The last step is repeated until a distinct timestamp is found.
|
protected static long getContextTimestampSafe()
{
long timestamp = System.currentTimeMillis();
boolean repeat = true;
while (repeat)
{
long lastUsed = lastTimestampUsed.get();
if (timestamp>lastUsed) {
repeat = !lastTimestampUsed.compareAndSet(lastUsed, timestamp);
} else {
timestamp = lastUsed+1;
}
}
return timestamp;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private long increment() {\n\t\tlong ts = latestTimestamp.incrementAndGet();\n\t\treturn ts;\n\t}",
"public String getUniqTime(){\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(Calendar.getInstance().getTime());\n return timeStamp;\n }",
"public static long next() {\n return System.currentTimeMillis();\n }",
"@Override\n\tpublic long extractTimestamp(T element, long previousElementTimestamp) {\n\t\tfinal long now = Math.max(System.currentTimeMillis(), maxTimestamp);\n\t\tmaxTimestamp = now;\n\t\treturn now;\n\t}",
"public double getLastTime()\n\t{\n\t\tdouble time = Double.NaN;\n\t\tfinal Entry< Double, V > entry = getLastEntry();\n\t\tif( entry != null )\n\t\t{\n\t\t\ttime = entry.getKey();\n\t\t}\n\t\treturn time;\n\t}",
"synchronized public String get_and_increment_timestamp()\n {\n return String.format(CLOCK_FORMAT_STRING,++counter);\n }",
"public double getNextTime(){\n\t\tif(timeoutSet.peek() == null && eventSet.peek() == null) return Double.MAX_VALUE;\n\t\telse if(eventSet.peek() != null && timeoutSet.peek() != null) return Math.min(eventSet.peek().getTime(), timeoutSet.peek().getTime());\n\t\telse if(eventSet.peek() == null && timeoutSet.peek() != null) return timeoutSet.peek().getTime();\n\t\treturn eventSet.peek().getTime();\n\t}",
"public long lastTime()\r\n/* 219: */ {\r\n/* 220:412 */ return this.lastTime.get();\r\n/* 221: */ }",
"public static String getCurrentMillisecondTime()\n\t{\n\t\treturn getMillisecondTime(new Date());\n\t}",
"private long getNow()\n {\n // no need to convert to collection if had an Iterables.max(), but not present in standard toolkit, and not worth adding\n List<SSTableReader> list = new ArrayList<>();\n Iterables.addAll(list, cfs.getSSTables(SSTableSet.LIVE));\n if (list.isEmpty())\n return 0;\n return Collections.max(list, (o1, o2) -> Long.compare(o1.getMaxTimestamp(), o2.getMaxTimestamp()))\n .getMaxTimestamp();\n }",
"public static Timestamp getNowTimestamp()\n {\n return new Timestamp(System.currentTimeMillis());\n }",
"public static Timestamp getNowTimestamp() {\n return new Timestamp(System.currentTimeMillis());\n }",
"private ZonedDateTime timestamp() {\n return Instant.now().atZone(ZoneId.of(\"UTC\")).minusMinutes(1);\n }",
"public long lastCumulativeTime()\r\n/* 234: */ {\r\n/* 235:434 */ return this.lastCumulativeTime;\r\n/* 236: */ }",
"private long getNextSequenceNumber() {\n return System.nanoTime();\n }",
"public double nextServiceTime() {\n return (-1 / mu) * Math.log(1 - randomST.nextDouble());\n }",
"Long timestamp();",
"public static long timestampMicros()\n {\n return currentTimeMillis() * 1000;\n }",
"public static long getUtcNowMills() {\n return getNow().toInstant().toEpochMilli();\n }",
"long getNextCollectTimestampMs();",
"public long getNextTime() {\r\n if (super.getNextTime() == 0) {\r\n return 0;\r\n }\r\n Object obj = this._queue;\r\n if (obj != null) {\r\n if (obj instanceof LockFreeTaskQueueCore) {\r\n if (!((LockFreeTaskQueueCore) obj).isEmpty()) {\r\n return 0;\r\n }\r\n } else if (obj == EventLoop_commonKt.CLOSED_EMPTY) {\r\n return LongCompanionObject.MAX_VALUE;\r\n } else {\r\n return 0;\r\n }\r\n }\r\n DelayedTaskQueue delayedTaskQueue = (DelayedTaskQueue) this._delayed;\r\n if (delayedTaskQueue != null) {\r\n DelayedTask delayedTask = (DelayedTask) delayedTaskQueue.peek();\r\n if (delayedTask != null) {\r\n long j = delayedTask.nanoTime;\r\n TimeSource timeSource = TimeSourceKt.getTimeSource();\r\n return RangesKt.coerceAtLeast(j - (timeSource != null ? timeSource.nanoTime() : System.nanoTime()), 0);\r\n }\r\n }\r\n return LongCompanionObject.MAX_VALUE;\r\n }",
"public double getTimestamp() {\n switch (randomType) {\n case EXPONENT:\n return forArrive ? (-1d / LAMBDA) * Math.log(Math.random()) : (-1d / NU) * Math.log(Math.random());\n\n default:\n return 0;\n }\n }",
"public static int getCurrentMillisecond()\n\t{\n\t\treturn Calendar.getInstance().get(Calendar.MILLISECOND);\n\t}",
"public static long longTimestamp() {\n return now().getTime();\n }",
"public long getTimeStamp() {\n return 1370918376296L;\n }",
"@Override\n public long currentTimeMillis() {\n\n // The count field is not volatile on purpose to reduce contention on this field.\n // This means that some threads may not see the increments made to this field\n // by other threads. This is not a problem: the timestamp does not need to be\n // updated exactly every 1000 calls.\n if (++count > UPDATE_THRESHOLD) {\n millis = System.currentTimeMillis(); // update volatile field: store-store barrier\n count = 0; // after a memory barrier: this change _is_ visible to other threads\n }\n return millis;\n }",
"public long getRunLastMillis()\n {\n return 0L;\n }",
"public static String generateReverseTimestampId() {\r\n\t\tString sTs = Str.leftPad(String.valueOf(Long.MAX_VALUE-System.currentTimeMillis()),'0',20);\r\n\t\tString sRd = Str.leftPad(String.valueOf(new Random().nextInt(Integer.MAX_VALUE)),'0',10);\r\n\t\treturn Str.leftPad(sTs+sRd,'0',32);\r\n\t }",
"public TimeStamp getCurrentTimeStamp() {\n return timeStamps.get(currentTimeStamp);\n }",
"public TransactionTimestamp() {\n\t\tlatestTimestamp = new AtomicLong(0);\n\t}",
"private long makeTimestamp() {\n return new Date().getTime();\n }",
"private long timeNow()\n {\n // The value of 3506716800000000L is the BAT as at midnight on\n // 1-Jan-1970, which is the base of the time that the system\n // gives us. It has to be adjusted for leap seconds though.\n return (System.currentTimeMillis() * 1000L) + DUTC.get() * 1000000L + 3506716800000000L;\n }",
"private static synchronized java.lang.String getUniqueSuffix() {\n if (counter > 99999) {\n counter = 0;\n }\n\n counter = counter + 1;\n\n return java.lang.Long.toString(java.lang.System.currentTimeMillis()) +\n \"_\" + counter;\n }",
"Date getLastTime();",
"private static synchronized java.lang.String getUniqueSuffix() {\n if (counter > 99999) {\r\n counter = 0;\r\n }\r\n\r\n counter = counter + 1;\r\n\r\n return java.lang.Long.toString(java.lang.System.currentTimeMillis()) +\r\n \"_\" + counter;\r\n }",
"public long getMaxTime()\n {\n return times[times.length - 1];\n }",
"private long getLatestTimestamp(long defaultTimestamp) throws IOException {\n if (Files.notExists(LATEST_TIMESTAMP_PATH)) {\n Files.createFile(LATEST_TIMESTAMP_PATH);\n return defaultTimestamp;\n }\n\n // Read the latest timestamp\n String timestampString = new String(Files.readAllBytes(LATEST_TIMESTAMP_PATH), StandardCharsets.UTF_8);\n\n long timestamp = 0;\n if (timestampString.isEmpty()) {\n // Create the file for the first time\n return defaultTimestamp;\n }\n\n // Convert timestamp string to timestamp\n return Long.parseLong(timestampString);\n }",
"private static synchronized java.lang.String getUniqueSuffix() {\n if (counter > 99999) {\r\n counter = 0;\r\n }\r\n counter = counter + 1;\r\n return java.lang.Long.toString(java.lang.System.currentTimeMillis()) + \"_\" + counter;\r\n }",
"public static long nowEpochMilli() {\n\n return\n ZonedDateTime\n .now(\n UTC)\n .toInstant()\n .toEpochMilli();\n\n }",
"private long calculateFrameTimestamp(int totalBits) {\n int samples = totalBits >> 4;\n long frameUs = mFramesUsCache.get(samples, -1);\n if (frameUs == -1) {\n frameUs = samples * 1000_000 / mChannelsSampleRate;\n mFramesUsCache.put(samples, frameUs);\n }\n long timeUs = SystemClock.elapsedRealtimeNanos() / 1000;\n // accounts the delay of polling the audio sample data\n timeUs -= frameUs;\n long currentUs;\n long lastFrameUs = mFramesUsCache.get(LAST_FRAME_ID, -1);\n if (lastFrameUs == -1) { // it's the first frame\n currentUs = timeUs;\n } else {\n currentUs = lastFrameUs;\n }\n if (DEBUG)\n Log.i(TAG, \"count samples pts: \" + currentUs + \", time pts: \" + timeUs + \", samples: \" +\n \"\" + samples);\n // maybe too late to acquire sample data\n if (timeUs - currentUs >= (frameUs << 1)) {\n // reset\n currentUs = timeUs;\n }\n mFramesUsCache.put(LAST_FRAME_ID, currentUs + frameUs);\n return currentUs;\n }",
"private Date computeLastDate() {\n\t\tSyncHistory history = historyDao.loadLastOk();\n\t\tif (history != null) {\n\t\t\treturn history.getTime();\n\t\t}\n\t\treturn new Date(-1);\n\t}",
"public double getTime()\n {\n long l = System.currentTimeMillis()-base;\n return l/1000.0;\n }",
"public final long getUTCTimeStamp()\n {\n // 86,400,000 = 1000 * 60 * 60 * 24 = milliseconds per day\n return ordinal == NULL_ORDINAL ? NULL_TIMESTAMP : (ordinal * 86400000L);\n }",
"public long sinceStart() {\n return System.currentTimeMillis() - lastStart;\n }",
"public static long now() {\n return System.nanoTime();\n }",
"private static synchronized java.lang.String getUniqueSuffix(){\n if (counter > 99999){\n counter = 0;\n }\n counter = counter + 1; \n return java.lang.Long.toString(java.lang.System.currentTimeMillis()) + \"_\" + counter;\n }",
"private static synchronized java.lang.String getUniqueSuffix(){\n if (counter > 99999){\n counter = 0;\n }\n counter = counter + 1; \n return java.lang.Long.toString(java.lang.System.currentTimeMillis()) + \"_\" + counter;\n }",
"private static synchronized java.lang.String getUniqueSuffix(){\n if (counter > 99999){\n counter = 0;\n }\n counter = counter + 1; \n return java.lang.Long.toString(java.lang.System.currentTimeMillis()) + \"_\" + counter;\n }",
"ZonedDateTime lastRefTimestamp() {\n ArticleRef last = buffer.peekLast();\n if(last == null) {\n return null;\n }\n return last.getTimestamp();\n }",
"public IUTCTime getLastTime() {\n if (null == lastTime) {\n return new UTCTime(0);\n }\n return lastTime;\n }",
"@Override\n protected LocalDateTime CalculateNextFeedTime() {\n return LocalDateTime.now();\n }",
"public Date getNextExecutionTime() {\n\t\treturn SchedulerUtil.getNextExecution(this);\n\t}",
"public static Date getUniqueDate() {\n if (uniqueCal == null) {\n uniqueCal = Calendar.getInstance();\n uniqueCal.set(1970, 1, 1, 1, 1, 1);\n }\n uniqueCal.add(Calendar.DAY_OF_MONTH, 1);\n return uniqueCal.getTime();\n }",
"private static synchronized java.lang.String getUniqueSuffix(){\n if (counter > 99999){\r\n counter = 0;\r\n }\r\n counter = counter + 1; \r\n return java.lang.Long.toString(java.lang.System.currentTimeMillis()) + \"_\" + counter;\r\n }",
"public long getNextCheckMillis(Date now)\r\n\t{\r\n\t\treturn getNextCheckDate(now).getTime();\r\n\t}",
"@SuppressWarnings(\"unused\")\n Date getLastUpdateTime();",
"@Override\n public final long getTimeStamp() {\n synchronized (TIMESTAMP_LOCK) {\n return this.timeStamp;\n }\n }",
"public double getFirstTime()\n\t{\n\t\tdouble time = Double.NaN;\n\t\tfinal Entry< Double, V > entry = getFirstEntry();\n\t\tif( entry != null )\n\t\t{\n\t\t\ttime = entry.getKey();\n\t\t}\n\t\treturn time;\n\t}",
"public abstract long getTimestampMillis();",
"@Override\n \tpublic long extractTimestamp(Row element, long previousElementTimestamp) {\n \t\tlong timestamp= 0;\n \t\ttimestamp = ((Timestamp) element.getField(0)).getTime();\n \t\t//timestamp = (Long)element.getField(1);\n \t\tcurrentMaxTimestamp = timestamp;\n \t\treturn timestamp;\n \t}",
"private static synchronized java.lang.String getUniqueSuffix(){\n if (counter > 99999){\n counter = 0;\n }\n counter = counter + 1; \n return java.lang.Long.toString(System.currentTimeMillis()) + \"_\" + counter;\n }",
"public int getTime()\n {\n if (isRepeated()) return start;\n else return time;\n }",
"private long getOldestWalTimestamp() {\n long oldestWalTimestamp = Long.MAX_VALUE;\n for (Map.Entry<String, PriorityBlockingQueue<Path>> entry : queues.entrySet()) {\n PriorityBlockingQueue<Path> queue = entry.getValue();\n Path path = queue.peek();\n // Can path ever be null ?\n if (path != null) {\n oldestWalTimestamp =\n Math.min(oldestWalTimestamp, AbstractFSWALProvider.WALStartTimeComparator.getTS(path));\n }\n }\n return oldestWalTimestamp;\n }",
"public static Date getCurrentTimeStampUtc() {\n return Date.from(java.time.ZonedDateTime.now(ZoneOffset.UTC).toInstant());\n }",
"private java.sql.Timestamp getCurrentTimeStamp() {\n\n\t\tjava.util.Date today = new java.util.Date();\n\t\treturn new java.sql.Timestamp(today.getTime());\n\n\t}",
"public static long currentTimeInSecond() {\n return Instant.now().getEpochSecond();\n }",
"long getLastAccessedTime();",
"public synchronized long getTime() {\n return -1L;\n }",
"public long getNextScheduled() {\n\t\tDate currDate = new Date();\n\t\t\n\t\tCalendar runTimeToday = Calendar.getInstance();\n\t\trunTimeToday.setTime(currDate);\n\t\t\n\t\trunTimeToday.set(Calendar.HOUR_OF_DAY, hour);\n\t\trunTimeToday.set(Calendar.MINUTE, minute);\n\t\trunTimeToday.set(Calendar.SECOND, 0);\n\t\t\n\t\tDate runTimeTodayDate = runTimeToday.getTime();\n\t\t\n\t\tif(currDate.before(runTimeTodayDate)) {\n\t\t\tSystem.out.println(\"DailyProcess: Next runtime is today.\");\n\t\t} else {\n\t\t\t// equals or after\n\t\t\tSystem.out.println(\"DailyProcess: Next runtime is tomorrow.\");\n\t\t\trunTimeToday.add(Calendar.DATE, 1);\n\t\t\trunTimeTodayDate = runTimeToday.getTime();\n\t\t}\n\t\t\n\t\tlong runTime = runTimeTodayDate.getTime() - currDate.getTime();\n\t\t\n\t\tif(false) {\n\t\t\t// Debugging\n\t\t\trunTime = 0;\n\t\t}\n\t\t\n\t\trunTime += randomDelay;\n\t\t\n\t\treturn runTime;\n\t}",
"public long findFastestTime()\r\n {\r\n for(int top = 1; top < listOfTimes.size(); top++)\r\n { \r\n long item = listOfTimes.get(top); \r\n int i = top;\r\n\r\n while(i > 0 && item < listOfTimes.get(i - 1))\r\n {\r\n listOfTimes.set(i, listOfTimes.get(i- 1));\r\n i--;\r\n }//end while \r\n\r\n listOfTimes.set(i, item);\r\n }//end for \r\n\r\n return listOfTimes.get(0);\r\n }",
"private long baseTime() {\n return Bytes.getUnsignedInt(row, tsdb.metrics.width());\n }",
"public static final LocalTime generateOrderTime() {\n return LocalTime.MIN.plusSeconds(RANDOM.nextLong());\n }",
"private Date computeLastDate(String terminalId) {\n\t\tSyncHistory last = historyDao.loadLastOk(terminalId);\n\t\tif (last != null) {\n\t\t\treturn last.getTime();\n\t\t}\n\t\treturn null;\n\t}",
"long getLastPersistenceTime();",
"@Override\n\tpublic Watermark getCurrentWatermark() {\n\t\tfinal long now = Math.max(System.currentTimeMillis(), maxTimestamp);\n\t\tmaxTimestamp = now;\n\t\treturn new Watermark(now - 1);\n\t}",
"public static long getLastResetTime() {\n return p().lastReset;\n }",
"protected long getLastUID() throws Exception {\n\t\tif(psmt != null) {\n\t\t\tResultSet rs = psmt.getGeneratedKeys();\n\t\t\tif(rs.next())\n\t\t\t\treturn rs.getLong(1);\n\t\t}\n\t\treturn -1L;\n\t}",
"public abstract Date getNextFireTime();",
"public static Time uniqueInstance() {\r\n\t\tif (time == null) {\r\n\t\t\tsynchronized (Time.class) {\r\n\t\t\t\tif (time == null) {\r\n\t\t\t\t\ttime = new Time(600);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn time;\r\n\t}",
"public long getTimestampMillisecUTC();",
"private static synchronized String getNextID() {\r\n\t\tlastID = lastID.add(BigInteger.valueOf(1));\r\n\t\t\r\n\t\treturn lastID.toString();\r\n\t}",
"public long getCurrentTimeMillis() {\n return System.currentTimeMillis();\n }",
"@java.lang.Override\n public long getNextCollectTimestampMs() {\n return nextCollectTimestampMs_;\n }",
"@java.lang.Override\n public long getNextCollectTimestampMs() {\n return nextCollectTimestampMs_;\n }",
"public long getNextCollectTimestampMs() {\n return nextCollectTimestampMs_;\n }",
"public long getLastTouchMillis()\n {\n return m_dtLastUse;\n }",
"public Long getLastOnsetTime() {\n if (timeInfos.isEmpty()) {\n return null;\n } else {\n int size = timeInfos.size();\n return timeInfos.get(size - 1).getOnsetTime();\n }\n }",
"public long baseTimestamp() {\n return buffer.getLong(BASE_TIMESTAMP_OFFSET);\n }",
"public int getUniqueTrackingNumber(){\n boolean is_used = false;\n int number;\n do {\n number = (int)(Math.random() * 999999 + 100000);\n for (int i = 0; i < trackingNumbers.size() ; i++) {\n if (trackingNumbers.get(i) == number){\n is_used=true;\n }\n }\n }while (is_used);\n trackingNumbers.add(number);\n return number;\n\n }",
"long getTimestamp();",
"public void write(long timeStampFirst, long timestampLast);",
"protected long getLastMsTime() {\r\n return lastMsTime;\r\n }",
"@Override\n public Instant getInstant()\n {\n return this.epoch.getGlobalTime().plusNanos(this.nanoTime);\n }",
"public Instant getExpirationTime() {\n return unit == ChronoUnit.SECONDS\n ? Instant.ofEpochSecond((Long.MAX_VALUE >>> timestampLeftShift) + epoch)\n : Instant.ofEpochMilli((Long.MAX_VALUE >>> timestampLeftShift) + epoch);\n }",
"UtcT time_stamp () throws BaseException;",
"long getTimestamp();",
"long getTimestamp();",
"long getTimestamp();",
"long getTimestamp();",
"long getTimestamp();"
] |
[
"0.67635125",
"0.6253616",
"0.61026114",
"0.5961907",
"0.59343225",
"0.5932126",
"0.5772221",
"0.57070696",
"0.5635561",
"0.5621765",
"0.55707467",
"0.5555958",
"0.5515787",
"0.5511941",
"0.5510502",
"0.55002993",
"0.5497595",
"0.5489712",
"0.5453847",
"0.5450591",
"0.5450404",
"0.5422242",
"0.54162246",
"0.54108185",
"0.540413",
"0.53906333",
"0.53483033",
"0.5323036",
"0.5316907",
"0.5306967",
"0.53031117",
"0.5299191",
"0.52706164",
"0.52666533",
"0.52590084",
"0.5245107",
"0.524389",
"0.5242592",
"0.5232303",
"0.52283365",
"0.52226055",
"0.5201236",
"0.5190471",
"0.51823306",
"0.51800895",
"0.5172135",
"0.5172135",
"0.5172135",
"0.51701295",
"0.5168479",
"0.5158497",
"0.5157551",
"0.5152604",
"0.51334935",
"0.51141036",
"0.5111032",
"0.51076895",
"0.51071084",
"0.51037097",
"0.50961155",
"0.50870967",
"0.5078347",
"0.50625455",
"0.5061874",
"0.50550246",
"0.50526774",
"0.505233",
"0.50447816",
"0.5032858",
"0.5032422",
"0.50310147",
"0.50277275",
"0.50260276",
"0.5024775",
"0.50190055",
"0.5008716",
"0.5006795",
"0.49972808",
"0.4997049",
"0.4993035",
"0.49896735",
"0.4984932",
"0.49670583",
"0.49579197",
"0.49554715",
"0.4948535",
"0.49446702",
"0.49428442",
"0.4941236",
"0.49392262",
"0.49323842",
"0.49294245",
"0.49292922",
"0.4925801",
"0.49219647",
"0.4911733",
"0.4911733",
"0.4911733",
"0.4911733",
"0.4911733"
] |
0.5460585
|
18
|
TODO cruise into another island, generating money for both island regarding of the biodiversity on this island. Can damage the biodiversity
|
@Override
public void useActive(Archipelago myArchipelago) {
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private void BScreate() {\n\n\t\tint sum=0;//全枝数のカウント\n\t\tfor(int i=0;i<banknode;i++) sum+=Bank.get(i).deg;\n\n\t\t//e,d,nの決定\n\t\tif(NW==\"BA\"){\n\t\tfor(int i=0;i<banknode;i++) {\n\t\t\tBank.get(i).totalassets=E*((double)Bank.get(i).deg/(double)sum);\n\t\t\tBank.get(i).n=Bank.get(i).totalassets*Bank.get(i).CAR;\n\t\t\tBank.get(i).d=Bank.get(i).totalassets-Bank.get(i).n;\n\t\t\tBank.get(i).buffer=Bank.get(i).totalassets;\n\t\t}\n\t\t}\n\n\t\tif(NW==\"CM\"){\n\t\t\tfor(int i=0;i<banknode;i++){\n\t\t\t\tBank.get(i).totalassets=E/banknode;\n\t\t\t\tBank.get(i).n=Bank.get(i).totalassets*asyCAR;\n\t\t\t\tBank.get(i).forcelev=megaCAR;\n\t\t\t\tBank.get(i).d=Bank.get(i).totalassets-Bank.get(i).n;\n\t\t\t\tBank.get(i).buffer=Bank.get(i).totalassets;\n\t\t\t}\n\n\t\t}\n\n\t}",
"public Object creditEarningsAndPayTaxes()\r\n/* */ {\r\n\t\t\t\tlogger.info(count++ + \" About to setInitialCash : \" + \"Agent\");\r\n/* 144 */ \tgetPriceFromWorld();\r\n/* 145 */ \tgetDividendFromWorld();\r\n/* */ \r\n/* */ \r\n/* 148 */ \tthis.cash -= (this.price * this.intrate - this.dividend) * this.position;\r\n/* 149 */ \tif (this.cash < this.mincash) {\r\n/* 150 */ \tthis.cash = this.mincash;\r\n/* */ }\t\r\n/* */ \r\n/* 153 */ \tthis.wealth = (this.cash + this.price * this.position);\r\n/* */ \r\n/* 155 */ \treturn this;\r\n/* */ }",
"public void sellHouse(){\n if(numberHouses != 0){\n owner.addMoney(costs[1]/2);\n numberHouses--;\n }\n }",
"private void assignCapitals() {\n City bestCity = null;\n int mostLandTilesSurrounding = 0;\n int landTilesSurrounding = 0;\n int minRow = 0;\n int maxRow = 0;\n int minColumn = 0;\n int maxColumn = 0;\n if (numPlayers == 2) {\n for (int i = 0; i < 2; i++) {\n mostLandTilesSurrounding = 0;\n if (i == 0) {\n minRow = 0;\n maxRow = MAP_LENGTH-1;\n minColumn = 0;\n maxColumn = MAP_LENGTH/2;\n } else if (i == 1) {\n minRow = 0;\n maxRow = MAP_LENGTH-1;\n minColumn = MAP_LENGTH/2;;\n maxColumn = MAP_LENGTH-1;\n }\n for (int r = minRow; r < maxRow; r++) {\n for (int c = minColumn; c < maxColumn; c++) {\n if (tileMap[r][c].getCity() != null) {\n landTilesSurrounding = surroundingLandCheckCity(tileMap[r][c].getCity());\n if (landTilesSurrounding > mostLandTilesSurrounding) {\n mostLandTilesSurrounding = landTilesSurrounding;\n bestCity = tileMap[r][c].getCity();\n }\n }\n }\n }\n tileMap[bestCity.getRow()][bestCity.getCol()].getCity().setTribe(i);\n tileMap[bestCity.getRow()][bestCity.getCol()].getCity().setCapital(true);\n capitalCities[numCapitalCities] = tileMap[bestCity.getRow()][bestCity.getCol()].getCity();\n numCapitalCities++;\n }\n } else if (numPlayers == 3) {\n\n for (int i = 0; i < 3; i++) {\n mostLandTilesSurrounding = 0;\n if (i == 0) {\n minRow = 0;\n maxRow = MAP_LENGTH / 2;\n minColumn = 0;\n maxColumn = MAP_LENGTH / 2;\n } else if (i == 1) {\n minRow = 0;\n maxRow = MAP_LENGTH / 2;\n minColumn = MAP_LENGTH / 2;\n maxColumn = MAP_LENGTH - 1;\n } else if (i == 2) {\n minRow = MAP_LENGTH / 2;\n maxRow = MAP_LENGTH - 1;\n minColumn = 0;\n maxColumn = MAP_LENGTH / 2;\n }\n for (int r = minRow; r < maxRow; r++) {\n for (int c = minColumn; c < maxColumn; c++) {\n if (tileMap[r][c].getCity() != null) {\n landTilesSurrounding = surroundingLandCheckCity(tileMap[r][c].getCity());\n if (landTilesSurrounding > mostLandTilesSurrounding) {\n mostLandTilesSurrounding = landTilesSurrounding;\n bestCity = tileMap[r][c].getCity();\n }\n }\n }\n }\n tileMap[bestCity.getRow()][bestCity.getCol()].getCity().setTribe(i);\n tileMap[bestCity.getRow()][bestCity.getCol()].getCity().setCapital(true);\n capitalCities[numCapitalCities] = tileMap[bestCity.getRow()][bestCity.getCol()].getCity();\n numCapitalCities++;\n System.out.println(\"Capital city of player \" + i + \" is at \" + bestCity.getCol() + \", \" + bestCity.getRow()); //For checking capital city determination\n }\n } else if (numPlayers == 4) {\n for (int i = 0; i < 4; i++) {\n mostLandTilesSurrounding = 0;\n if (i == 0) {\n minRow = 0;\n maxRow = MAP_LENGTH/2;\n minColumn = 0;\n maxColumn = MAP_LENGTH/2;\n } else if (i == 1) {\n minRow = 0;\n maxRow = MAP_LENGTH/2;\n minColumn = MAP_LENGTH/2;\n maxColumn = MAP_LENGTH-1;\n } else if (i == 2) {\n minRow = MAP_LENGTH/2;\n maxRow = MAP_LENGTH-1;\n minColumn = 0;\n maxColumn = MAP_LENGTH/2;\n } else if (i == 3) {\n minRow = MAP_LENGTH/2;\n maxRow = MAP_LENGTH-1;\n minColumn = MAP_LENGTH/2;\n maxColumn = MAP_LENGTH-1;\n }\n for (int r = minRow; r < maxRow; r++) {\n for (int c = minColumn; c < maxColumn; c++) {\n if (tileMap[r][c].getCity() != null) {\n landTilesSurrounding = surroundingLandCheckCity(tileMap[r][c].getCity());\n if (landTilesSurrounding > mostLandTilesSurrounding) {\n mostLandTilesSurrounding = landTilesSurrounding;\n bestCity = tileMap[r][c].getCity();\n }\n }\n }\n }\n tileMap[bestCity.getRow()][bestCity.getCol()].getCity().setTribe(i);\n tileMap[bestCity.getRow()][bestCity.getCol()].getCity().setCapital(true);\n capitalCities[numCapitalCities] = tileMap[bestCity.getRow()][bestCity.getCol()].getCity();\n numCapitalCities++;\n }\n }\n }",
"@Override\n public double cost(){\n return 1 + super.sandwich.cost();\n }",
"public static void main(String[] args) {\r\n Provinces Hainaut = new Provinces();\r\n Provinces Namur = new Provinces();\r\n\r\n /* Create be.heh.isims.ihm.tp1.ex2.Ville */\r\n Ville Mons = new Ville();\r\n Ville Dinant = new Ville();\r\n Ville Charlerois = new Ville();\r\n\r\n /* Create be.heh.isims.ihm.tp1.ex2.Magasin Chains */\r\n Magasin Saturne = new Magasin(0);\r\n Magasin Julles = new Magasin(0);\r\n Magasin MediaMarkt = new Magasin(0);\r\n\r\n /* Add Mons Benefice */\r\n Saturne.setBenefice(1200);\r\n Julles.setBenefice(1200);\r\n MediaMarkt.setBenefice(2400);\r\n Mons.addBilan(Saturne);\r\n Mons.addBilan(Julles);\r\n Mons.addBilan(MediaMarkt);\r\n\r\n /* Set and add Benefice to Dinant */\r\n Saturne.setBenefice(2400);\r\n Julles.setBenefice(2400);\r\n MediaMarkt.setBenefice(2400);\r\n Dinant.addBilan(Saturne);\r\n Dinant.addBilan(Julles);\r\n Dinant.addBilan(MediaMarkt);\r\n\r\n /* Set and add Benefice to Charlerois */\r\n Saturne.setBenefice(1250);\r\n Julles.setBenefice(4500);\r\n MediaMarkt.setBenefice(2400);\r\n Charlerois.addBilan(Saturne);\r\n Charlerois.addBilan(Julles);\r\n Charlerois.addBilan(MediaMarkt);\r\n\r\n\r\n /* Add be.heh.isims.ihm.tp1.ex2.Magasin to province */\r\n Hainaut.addBilan(Mons);\r\n Hainaut.addBilan(Charlerois);\r\n Namur.addBilan(Dinant);\r\n\r\n System.out.println(\"\\nBilan par be.heh.isims.ihm.tp1.ex2.Ville\");\r\n System.out.println(\"Bilan Dinant : \"+ Namur.calculeBenefice());\r\n System.out.println(\"Bilan Mons : \" + Mons.calculeBenefice());\r\n System.out.println(\"Bilan Charlerois : \" + Charlerois.calculeBenefice());\r\n\r\n System.out.println(\"\\nBilan par Province\");\r\n System.out.println(\"Bilan Namur : \" + Namur.calculeBenefice());\r\n System.out.println(\"Bilan Hainaut : \" + Hainaut.calculeBenefice());\r\n\r\n }",
"public void breath() {\n\t\tif (alive) {\n\t\t\t_age++;\n\t\t\t// Respiration process\n\t\t\tboolean canBreath = useEnergy(Math.min((_mass - _lowmaintenance) / Utils.SEGMENT_COST_DIVISOR, _energy));\n\t\t\tif ((_age >> 8) > _geneticCode.getMaxAge() || !canBreath) {\n\t\t\t\t// It's dead, but still may have energy\n\t\t\t\tdie(null);\n\t\t\t} else {\n\t\t\t\tif (_energy <= Utils.tol) {\n\t\t\t\t\talive = false;\n\t\t\t\t\t_world.decreasePopulation();\n\t\t\t\t\t_world.organismHasDied(this, null);\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\t// The corpse slowly decays\n\t\t\tuseEnergy(Math.min(_energy, Utils.DECAY_ENERGY));\n\t\t}\n\t}",
"abstract public double getBegBal(int yr);",
"public void applyInterest()\n {\n deposit( (getBalance()* getInterestRate()) /12);\n }",
"@Override\n @SuppressWarnings(\"empty-statement\")\n public void attack(){\n\n if (myTerritory.getAlpha() <= 0.5){\n myTerritory.produceSoldiers(myTerritory.getNatRes(), myTerritory.getPeasants());\n attackingSoldiers = myTerritory.getSoldiers()/4;\n defendingSoldiers = myTerritory.getSoldiers()*3/4;\n attackedTerritoryID = (new Random()).nextInt(myTerritory.getNeighbors().numObjs) + 1;\n }\n else\n myTerritory.produceSoldiers(myTerritory.getNatRes(), myTerritory.getPeasants());\n attackingSoldiers = myTerritory.getFoodGrowth()/4;\n defendingSoldiers = myTerritory.getFoodGrowth()*3/4;\n attackedTerritoryID = (new Random()).nextInt(myTerritory.getNeighbors().numObjs) + 1;\n }",
"public synchronized void take(Station s, Bicycle b, Bank_Card bank_card) throws Exception{\r\n\t\tif(!s.equals(this.last_routine.getSource())){System.out.println(\"CHOOSE THE STATION OF YOUR ROUTINE\");throw new Exception(\"WRONG STATION\");}\r\n\t\tif(this.bicycle!=null){System.out.println(\"Already Got a Bicycle\");throw new Exception(\"ALREADY GOT A BIKE\");}\r\n\t\ts.remove_user(this);\r\n\t\tif(!s.isState()){System.out.println(\"offline - out of order!\");throw new Exception(\"OFFLINE\");}\r\n\t\tthis.setPosition(s.getPosition());\r\n\t\tif(b instanceof Bicycle_Mech){\r\n\t\t\tif(s.count_mech() == 0){System.out.println(\"no more mech bicycles available\");}\r\n\t\t\telse{\r\n\t\t\t\tfor(Map.Entry<Slot,Bicycle_Mech> me:s.getPlaces_mech().entrySet()){\r\n\t\t\t\t\tif(me.getValue()!=null){\r\n\t\t\t\t\t\tthis.bicycle = me.getValue();s.getPlaces_mech().put(me.getKey(), null);\r\n\t\t\t\t\t\ts.setRent_times(s.getRent_times()+1);s.notify_users();\r\n\t\t\t\t\t\tthis.bicycle.setNumber_rides(this.bicycle.getNumber_rides()+1);\r\n\t\t\t\t\t\tif(bank_card.getOwner().equals(this)){this.bicycle.setBank_card_to_use(bank_card);}\r\n\t\t\t\t\t\tif(!bank_card.getOwner().equals(this)){System.out.println(\"choose a right bank card\");throw new Exception(\"WRONG BANK CARD USER\");}\t\r\n\t\t\t\t\t\tthis.bicycle.setUser(this);\r\n\t\t\t\t\t\tthis.setPosition(s.getPosition());\r\n\t\t\t\t\t\tbreak;\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\tif(b instanceof Bicycle_Elec){\r\n\t\t\tif(s.count_elec() == 0){System.out.println(\"no more elec bicycles available\");}\r\n\t\t\telse{\r\n\t\t\t\tfor(Map.Entry<Slot,Bicycle_Elec> me:s.getPlaces_elec().entrySet()){\r\n\t\t\t\t\tif(me.getValue()!=null){\r\n\t\t\t\t\t\tthis.bicycle = me.getValue();s.getPlaces_elec().put(me.getKey(), null);\r\n\t\t\t\t\t\ts.setRent_times(s.getRent_times()+1);s.notify_users();\r\n\t\t\t\t\t\tthis.bicycle.setNumber_rides(this.bicycle.getNumber_rides()+1);\r\n\t\t\t\t\t\tif(bank_card.getOwner().equals(this)){this.bicycle.setBank_card_to_use(bank_card);}\r\n\t\t\t\t\t\tif(!bank_card.getOwner().equals(this)){System.out.println(\"choose a right bank card\");throw new Exception(\"WRONG BANK CARD USER\");}\t\r\n\t\t\t\t\t\tthis.bicycle.setUser(this);\r\n\t\t\t\t\t\tthis.setPosition(s.getPosition());\r\n\t\t\t\t\t\tbreak;\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}",
"public int getLand();",
"abstract public int getIncomeSegment( int hhIncomeInDollars );",
"public static int railFare(int age, Scanner console){\r\n int zoneNum;\r\n int cents;\r\n \r\n System.out.print(\"What zone (use 0 for zone 1A)?: \");\r\n zoneNum = console.nextInt();\r\n console.nextLine(); // Consume rest of line\r\n \r\n if(zoneNum == 0){\r\n cents = 170; //cost is $1.70 for zone 1\r\n }\r\n else{\r\n cents = 425 + (50 * (zoneNum - 1)); // All other zones cost $4.25 + $0.50 for each zone after 1\r\n } \r\n \r\n if ((age >= 12 && age <= 18) ||(age >= 65)){ // Students and seniors get 50% off\r\n cents = (cents / 2);\r\n }\r\n \r\n return cents;\r\n }",
"private void combatPhase() {\n \t\n \tpause();\n \tDice.setFinalValMinusOne();\n\n \t// Go through each battle ground a resolve each conflict\n \tfor (Coord c : battleGrounds) {\n \t\t\n \tClickObserver.getInstance().setTerrainFlag(\"\");\n \t\n \tSystem.out.println(\"Entering battleGround\");\n \t\tfinal Terrain battleGround = Board.getTerrainWithCoord(c);\n \t\t\n \t\t// find the owner of terrain for post combat\n \tPlayer owner = battleGround.getOwner();\n \t\n \t\t// simulate a click on the first battleGround, cover all other terrains\n \t\tClickObserver.getInstance().setClickedTerrain(battleGround);\n \t\tPlatform.runLater(new Runnable() {\n @Override\n public void run() {\n \t\tClickObserver.getInstance().whenTerrainClicked();\n \t\tBoard.applyCovers();\n \t\tClickObserver.getInstance().getClickedTerrain().uncover();\n \tClickObserver.getInstance().setTerrainFlag(\"Disabled\");\n }\n });\n \t\t\n \t\t// Get the fort\n \t Fort battleFort = battleGround.getFort(); \n \t\t\n \t\t// List of players to battle in the terrain\n \t\tArrayList<Player> combatants = new ArrayList<Player>();\n \t\t\n \t\t// List of pieces that can attack (including forts, city/village)\n \t\tHashMap<String, ArrayList<Piece>> attackingPieces = new HashMap<String, ArrayList<Piece>>();\n \t\t\n \t\tSystem.out.println(battleGround.getContents().keySet());\n \t\t\n \t\tIterator<String> keySetIterator = battleGround.getContents().keySet().iterator();\n\t \twhile(keySetIterator.hasNext()) {\n\t \t\tString key = keySetIterator.next();\n\t \t\t\n \t\t\tcombatants.add(battleGround.getContents().get(key).getOwner());\n \t\t\tattackingPieces.put(battleGround.getContents().get(key).getOwner().getName(), (ArrayList<Piece>) battleGround.getContents().get(key).getStack().clone()); \n \t\t\t\n\t \t}\n\t \t\n\t \t\n\t \t\n\t \t// if the owner of the terrain has no pieces, just a fort or city/village\n\t\t\tif (!combatants.contains(battleGround.getOwner()) && battleFort != null) {\n\t\t\t\tcombatants.add(battleGround.getOwner());\n\t\t\t\tattackingPieces.put(battleGround.getOwner().getName(), new ArrayList<Piece>());\n\t\t\t}\n\n \t\t// add forts and city/village to attackingPieces\n \t\tif (battleFort != null) {\n \t\t\tattackingPieces.get(battleGround.getOwner().getName()).add(battleFort);\n \t\t}\n \t\t\n \t\tkeySetIterator = attackingPieces.keySet().iterator();\n\t \twhile (keySetIterator.hasNext()) {\n\t \t\tString key = keySetIterator.next();\n\t \t\t\n\t \t\tfor (Piece p : attackingPieces.get(key)) {\n\t \t\t\tif (p.getName().equals(\"Baron Munchhausen\") || p.getName().equals(\"Grand Duke\")) {\n\t \t\t\t\tif (p.getOwner() != battleGround.getOwner())\n\t \t\t\t\t\t((Performable)p).specialAbility();\n\t \t\t\t}\n\t \t\t\t\t\n\t \t\t}\n\t \t}\n \t\t// TODO implement city/village\n// \t\tif (City and village stuff here)\n \t\tSystem.out.println(combatants);\n \t\t\n \t\tboolean exploring = (!battleGround.isExplored() && battleGround.getContents().size() == 1);\n \t\t// Fight until all attackers are dead, or until the attacker becomes the owner of the hex\n \t\twhile (combatants.size() > 1 || exploring) {\n \t\t\t\n /////////////Exploration\n \t// Check if this is an exploration battle:\n \t\t// Must fight other players first\n \t\t\tboolean fightingWildThings = false;\n \tif (exploring) {\n\n \t\t\t\t// Set the battleGround explored\n \t\t\t\tbattleGround.setExplored(true);\n \t\n \t\tString exploringPlayer = null;\n \t\tIterator<String> keySetIter = battleGround.getContents().keySet().iterator();\n \t \twhile(keySetIter.hasNext()) {\n \t \t\tString key = keySetIter.next();\n \t \t\texploringPlayer = key;\n \t \t}\n \t\tplayer = battleGround.getContents(exploringPlayer).getOwner();\n \t\tplayer.flipAllUp();\n \t \t\n \t\t// Get user to roll die to see if explored right away\n \t\t\t\tPlatform.runLater(new Runnable() {\n \t @Override\n \t public void run() {\n \t \tDiceGUI.getInstance().uncover();\n \t \tGUI.getHelpText().setText(\"Attack phase: \" + player.getName() \n \t \t\t\t+ \", roll the die. You need a 1 or a 6 to explore this terrain without a fight!\");\n \t }\n \t\t\t\t});\n \t\t\t\t\n \t// Dice is set to -1 while it is 'rolling'. This waits for the roll to stop, ie not -1\n \t\t\t\tint luckyExplore = -1;\n \t\t\t\twhile (luckyExplore == -1) {\n \t\t\t\t\ttry { Thread.sleep(100); } catch( Exception e ){ return; }\n \t\t\t\t\tluckyExplore = Dice.getFinalVal();\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\t// If success TODO FIX this \n \t\t\t\tif (luckyExplore == 1 || luckyExplore == 6) {\n \t\t\t\t\t\n \t\t\t\t\t// Cover die. Display msg\n \t\t\t\t\tPlatform.runLater(new Runnable() {\n \t\t @Override\n \t\t public void run() {\n \t\t \tDiceGUI.getInstance().cover();\n \t\t \tGUI.getHelpText().setText(\"Attack phase: Congrats!\" + player.getName() \n \t\t \t\t\t+ \"!, You get the terrain!\");\n \t\t }\n \t\t\t\t\t});\n \t\t\t\t\ttry { Thread.sleep(1000); } catch( Exception e ){ return; }\n \t\t\t\t\texploring = false;\n \t\t\t\t\tbreak;\n \t\t\t\t\t\n \t\t\t\t} else { // Else failure. Must fight or bribe\n \t\t\t\t\t\n \t\t\t\t\tfightingWildThings = true;\n \t\t\t\t\t\n \t\t\t\t\t// Cover die. Display msg\n \t\t\t\t\tPlatform.runLater(new Runnable() {\n \t\t @Override\n \t\t public void run() {\n \t\t \tDiceGUI.getInstance().cover();\n \t\t \tbattleGround.coverPieces();\n \t\t \tGUI.getHelpText().setText(\"Attack phase: Boooo!\" + player.getName() \n \t\t \t\t\t+ \"!, You have to bribe, or fight for your right to explore!\");\n \t\t }\n \t\t\t\t\t});\n \t\t\t\t\ttry { Thread.sleep(1000); } catch( Exception e ){ return; }\n \t\t\t\t\t\n \t\t\t\t\t// add luckyExplore amount of pieces to terrain under wildThing player\n \t\t\t\t\tfinal ArrayList<Piece> wildPieces = TheCup.getInstance().draw(luckyExplore);\n \t\t\t\t\t\t\n \t\t\t\t\t// Update the infopanel with played pieces. Active done button\n \t\t\t\t\tPlatform.runLater(new Runnable() {\n \t\t @Override\n \t\t public void run() {\n \t\t \twildThings.playWildPieces(wildPieces, battleGround);\n \t\t GUI.getDoneButton().setDisable(false);\n \t\t battleGround.coverPieces();\n \t\t \tInfoPanel.showTileInfo(battleGround);\n \t\t \n \t\t }\n \t\t\t\t\t});\n \t\t\t\t\ttry { Thread.sleep(100); } catch( Exception e ){ return; }\n \t\t\t\t\t\n \t\t\t\t\t//////Bribing here\n \t\t\t\t\tpause();\n \t\t\t\t\tClickObserver.getInstance().setCreatureFlag(\"Combat: SelectCreatureToBribe\");\n \t\t\t\t\t\n \t\t\t\t\t// Uncover the pieces that the player can afford to bribe\n \t\t\t\t\t// canPay is false if there are no Pieces that the user can afford to bribe\n \t\t\t\t\tboolean canPay = false;\n \t\t\t\t\tfor (final Piece p : battleGround.getContents(wildThings.getName()).getStack()) {\n \t\t\t\t\t\tif (((Combatable)p).getCombatValue() <= player.getGold()) {\n \t\t\t\t\t\t\tcanPay = true;\n \t\t\t\t\t\t\tPlatform.runLater(new Runnable() {\n \t\t\t\t @Override\n \t\t\t\t public void run() {\n \t\t\t\t \tp.uncover();\n \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\ttry { Thread.sleep(50); } catch( Exception e ){ return; }\n \t\t\t\t\t\n \t\t\t\t\t// Continue looping until there are no more pieces user can afford to bribe, or user hits done button\n \t\t\t\t\twhile (canPay && isPaused) {\n \t\t\t\t\t\t\n \t\t\t\t\t\tPlatform.runLater(new Runnable() {\n\t \t\t @Override\n\t \t\t public void run() {\n\t \t\t \tGUI.getHelpText().setText(\"Attack phase: \" + player.getName() \n\t \t\t \t\t\t+ \", Click on creatures you would like to bribe\");\n\t \t\t }\n \t\t\t\t\t\t});\n \t\t\t\t\t\t\n \t\t\t\t\t\t// wait for user to hit done, or select a piece\n \t\t\t\t\t\tpieceClicked = null;\n \t\t\t\t\t\twhile(pieceClicked == null && isPaused) {\n \t\t\t\t\t\t\ttry { Thread.sleep(100); } catch( Exception e ){ return; }\n \t\t\t\t\t\t}\n \t\t\t\t\t\tif (pieceClicked != null) {\n \t\t\t\t\t\t\t\n \t\t\t\t\t\t\t// spend gold for bribing. Remove clicked creature\n \t\t\t\t\t\t\tplayer.spendGold(((Combatable)pieceClicked).getCombatValue());\n \t\t\t\t\t\t\t((Combatable)pieceClicked).inflict();\n \t\t\t\t\t\t\t\n \t\t\t\t\t\t\t// cover pieces that are too expensive\n \t\t\t\t\t\t\tPlatform.runLater(new Runnable() {\n \t\t\t\t @Override\n \t\t\t\t public void run() {\n \t\t\t\t \tGUI.getHelpText().setText(\"Attack phase: \" + player.getName() \n \t\t\t \t\t\t+ \" bribed \" + pieceClicked.getName());\n \t\t\t\t \tInfoPanel.showTileInfo(battleGround);\n \t\t\t\t \tif (battleGround.getContents(wildThings.getName()) != null) {\n\t \t\t\t\t for (Piece p : battleGround.getContents(wildThings.getName()).getStack()) {\n\t \t\t\t\t \tif (((Combatable)p).getCombatValue() > player.getGold())\n\t \t\t\t\t \t\tp.cover();\n\t \t\t\t\t }\n \t\t\t\t \t}\n \t\t\t\t }\n \t\t\t\t\t\t\t});\n \t\t\t\t\t\t\ttry { Thread.sleep(100); } catch( Exception e ){ return; }\n \t\t\t\t\t\t\t\n \t\t\t\t\t\t\t// Check if there are any pieces user can afford to bribe and set canPay to true if so\n \t\t\t\t\t\t\tcanPay = false;\n \t\t\t\t\t\t\tif (battleGround.getContents(wildThings.getName()) == null || battleGround.getContents(wildThings.getName()).getStack().size() == 1)\n \t\t\t\t\t\t\t\tbreak;\n \t\t\t\t\t\t\telse {\n\t \t\t\t\t\t\t\tfor (final Piece p : battleGround.getContents(wildThings.getName()).getStack()) {\n\t \t\t\t\t\t\t\t\tif (((Combatable)p).getCombatValue() <= player.getGold()) {\n\t \t\t\t\t\t\t\t\t\tcanPay = true;\n\t \t\t\t\t\t\t\t\t\tbreak;\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\ttry { Thread.sleep(100); } catch( Exception e ){ return; }\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t\tPlatform.runLater(new Runnable() {\n\t\t\t @Override\n\t\t\t public void run() {\n\t\t\t \tGUI.getHelpText().setText(\"Attack phase: \" + player.getName() \n\t\t \t\t\t+ \" done bribing\");\n\t\t\t }\n \t\t\t\t\t});\n \t\t\t\t\tSystem.out.println(\"Made it past bribing\");\n \t\t\t\t\ttry { Thread.sleep(1000); } catch( Exception e ){ return; }\n \t\t\t\t\tClickObserver.getInstance().setCreatureFlag(\"Combat: SelectPieceToAttackWith\");\n \t\t\t\t\t\n \t\t\t\t\t// Done bribing, on to fighting\n \t\t\t\t\t\n \t\t\t\t\t// find another player to control wildThings and move on to regular combat\n \t\t\t\t\t// to be used later \n \t\t\t\t\tPlayer explorer = player;\n \t\t\t\t\tPlayer wildThingsController = null;\n \t\t\t\t\tfor (Player p : playerList) {\n \t\t\t\t\t\tif (!p.getName().equals(player.getName()))\n \t\t\t\t\t\t\twildThingsController = p;\n \t\t\t\t\t}\n \t\t\t\t\t\n \t\t\t\t\t// If wild things still has pieces left:\n \t\t\t\t\tif (battleGround.getContents().containsKey(wildThings.getName())) {\n\t \t\t\t\t\tcombatants.add(battleGround.getContents().get(wildThings.getName()).getOwner());\n\t \t \t\t\tattackingPieces.put(wildThings.getName(), (ArrayList<Piece>) battleGround.getContents().get(wildThings.getName()).getStack().clone()); \n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\t// cover pieces again\n \t\t\t\tPlatform.runLater(new Runnable() {\n \t @Override\n \t public void run() {\n \t \tbattleGround.coverPieces();\n \t }\n \t\t\t\t});\n \t\t\t\t\n \t\t\t\tplayer.flipAllDown();\n \t} // end if (exploring)\n \t\t\t\n \t\t\tSystem.out.println(\"combatants.size() > 1 : \" + combatants.size());\n \t\t\tSystem.out.println(combatants);\n \t\t\t\n \t\t\t// This hashMap keeps track of the player to attack for each player\n \t\t\tHashMap<String, Player> toAttacks = new HashMap<String, Player>();\n\n\t\t\t\t// each player selects which other player to attack in case of more than two combatants\n \t\t\tif (combatants.size() > 2) {\n \t\t\t\t\n \t\t\t\tfor (final Player p : combatants) {\n \t\t\t\t\tif (!p.isWildThing()) {\n\t \t \t\tpause();\n\t \t \t\tClickObserver.getInstance().setPlayerFlag(\"Attacking: SelectPlayerToAttack\");\n\t \t \t\tplayer = p;\n\t\t \tPlatform.runLater(new Runnable() {\n\t\t \t @Override\n\t\t \t public void run() {\n\t\t \t \tPlayerBoard.getInstance().applyCovers();\n\t\t \t \tbattleGround.coverPieces();\n\t\t \t \t GUI.getHelpText().setText(\"Attack phase: \" + player.getName()\n\t\t \t + \", select which player to attack\");\n\t\t\t \t \t}\n\t\t \t });\n\t\t \tfor (final Player pl : combatants) {\n\t\t \t\tif (!pl.getName().equals(player.getName())) {\n\t\t \t\t\tPlatform.runLater(new Runnable() {\n\t\t \t \t @Override\n\t\t \t \t public void run() {\n\t\t \t \t \tPlayerBoard.getInstance().uncover(pl);\n\t\t \t \t }\n\t\t \t\t\t});\n\t\t \t\t}\n\t\t \t}\n\t\t \twhile (isPaused) {\n\t\t \ttry { Thread.sleep(100); } catch( Exception e ){ return; } \n\t\t \t }\n\t\t \t\n\t\t \t// ClickObserver sets playerClicked, then unpauses. This stores what player is attacking what player\n\t\t \ttoAttacks.put(p.getName(), playerClicked);\n\t \t \t\tClickObserver.getInstance().setPlayerFlag(\"\");\n\t\t \t\n\t \t \t} \n \t\t\t\t}\n \t\t\t\tcombatants.remove(wildThings);\n \t\t\t\tPlayerBoard.getInstance().removeCovers();\n \t\t\t\t\n \t } else { // Only two players fighting\n \t \t\n \t \tfor (Player p1 : combatants) {\n \t \t\tfor (Player p2 : combatants) {\n \t \t\t\tif (!p1.getName().equals(p2.getName())) {\n \t \t \ttoAttacks.put(p1.getName(), p2);\n \t \t\t\t}\n \t \t\t}\n \t \t}\n \t }\n \t\t\t\n ///////////////////Call out bluffs here:\n \t\t\tbattleGround.flipPiecesUp();\n \t\t\tfor (final Player p : combatants) {\n \t\t\t\t\n \t\t\t\t// Make sure not wildThings\n \t\t\t\tif (!p.isWildThing()) {\n \t\t\t\t\t\n \t\t\t\t\tArrayList <Piece> callOuts = new ArrayList<Piece>();\n \t\t\t\t\t\n \t\t\t\t\tfor (final Piece ap : attackingPieces.get(p.getName())) {\n \t\t\t\t\t\t\n \t\t\t\t\t\t// If not supported the gtfo\n \t\t\t\t\t\tif (!ap.isSupported()) {\n\n \t\t\t\t\t\t\tcallOuts.add(ap);\n \t\t\t\t\t\t\t((Combatable)ap).inflict();\n \t\t\t\t\t\t\ttry { Thread.sleep(250); } catch( Exception e ){ return; } \n \t\t\t\t\t\t\tPlatform.runLater(new Runnable() {\n\t \t \t @Override\n\t \t \t public void run() {\n\t \t \t \tInfoPanel.showTileInfo(battleGround);\n\t \t \t \tGUI.getHelpText().setText(\"Attack phase: \" + p.getName()\n\t\t\t \t + \" lost their \" + ap.getName() + \" in a called bluff!\");\n\t \t \t }\n\t \t\t\t});\n \t\t\t\t\t\t\ttry { Thread.sleep(250); } catch( Exception e ){ return; } \n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t\tfor (Piece co : callOuts) {\n \t\t\t\t\t\tattackingPieces.get(p.getName()).remove(co);\n \t\t\t\t\t}\n\t\t\t\t\t\tif (attackingPieces.get(p.getName()).size() == 0)\n\t\t\t\t\t\t\tattackingPieces.remove(p.getName());\n \t\t\t\t}\n \t\t\t}\n \t\t\t\n \t\t\t// Check for defeated armies:\n\t\t\t\t// - find player with no more pieces on terrain\n\t\t\t\t// - remove any such players from combatants\n\t\t\t\t// - if only one combatant, end combat\n \t\t\tPlayer baby = null;\n \t\t\twhile (combatants.size() != attackingPieces.size()) {\n\t\t\t\t\tfor (Player pl : combatants) {\n\t\t\t\t\t\tif (!attackingPieces.containsKey(pl.getName())) {\n\t\t\t\t\t\t\tbaby = pl;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tcombatants.remove(baby);\n \t\t\t}\n \t\t\tif (combatants.size() == 1) {\n \t\t\t\texploring = (!battleGround.isExplored() && battleGround.getContents().size() == 1);\n \t\t\t\tcontinue;\n \t\t\t}\n \t\t\t\n \t\t\t// Set up this HashMap that will store successful attacking pieces\n \t\t\tHashMap<String, ArrayList<Piece>> successAttacks = new HashMap<String, ArrayList<Piece>>();\n \t\t\t// Set up this HashMap that will store piece marked to get damage inflicted\n\t\t\t\tHashMap<String, ArrayList<Piece>> toInflict = new HashMap<String, ArrayList<Piece>>();\n \t\t\tfor (Player p : combatants) {\n \t\t\t\t\n \t\t\t\tsuccessAttacks.put(p.getName(), new ArrayList<Piece>());\n \t\t\t\ttoInflict.put(p.getName(), new ArrayList<Piece>());\n \t\t\t}\n \t\t\t\n \t\t\t// Array List of pieces that need to be used during a particular phase\n\t\t\t\tfinal ArrayList<Piece> phaseThings = new ArrayList<Piece>();\n\t\t\t\t\n\t\t\t\t// Notify next phase, wait for a second\n\t\t\t\tPlatform.runLater(new Runnable() {\n\t @Override\n\t public void run() {\n\t \tbattleGround.coverPieces();\n\t \tGUI.getHelpText().setText(\"Attack phase: Next phase: Magic!\");\n\t }\n\t });\n\t\t\t\t\n\t\t\t\t// Pause for 2 seconds between phases\n\t\t\t\ttry { Thread.sleep(2000); } catch( Exception e ){ return; }\n\t\t\t\t\n/////////////////////// Magic phase\n \t\t\tfor (final Player pl : combatants) {\n \t\t\t\t\n \t\t\t\tplayer = pl;\n \t\t\t\t// Cover all pieces\n \t\t\t\tPlatform.runLater(new Runnable() {\n \t @Override\n \t public void run() {\n \t \t\tbattleGround.coverPieces();\n \t }\n \t });\n \t\t\t\t\n \t\t\t\t// For each piece, if its magic. Add it to the phaseThings array\n \t\t\t\tfor (Piece p : attackingPieces.get(pl.getName())) {\n \t\t\t\t\tif (p instanceof Combatable && ((Combatable)p).isMagic() && !(p instanceof Fort && ((Fort)p).getCombatValue() == 0)) \n \t\t\t\t\t\tphaseThings.add(p);\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\t// uncover magic pieces for clicking\n \t\t\t\tif (phaseThings.size() > 0) {\n\t \t\t\t\tPlatform.runLater(new Runnable() {\n\t \t @Override\n\t \t public void run() {\n\t \t \t\t\t\tfor (Piece mag : phaseThings) \n\t \t\t\t\t\tmag.uncover();\n\t \t }\n\t \t });\n \t\t\t\t}\n\n\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"----------------------------------------------------------------\");\n\t\t\t\t\tSystem.out.println(\"attackingPieces.size(): \" + attackingPieces.size());\n\t\t\t\t\tSystem.out.println(\"attackingPieces.keySet(): \" + attackingPieces.keySet());\n\t\t\t\t\tIterator<String> keySetIte = battleGround.getContents().keySet().iterator();\n \t \twhile(keySetIte.hasNext()) {\n \t \t\tString key = keySetIte.next();\n\n \t\t\t\t\tSystem.out.println(\"key: \" + key);\n \t\t\t\t\tSystem.out.println(\"attackingPieces.get(key).size():\\n\" + attackingPieces.get(key).size());\n \t\t\t\t\tSystem.out.println(\"attackingPieces.get(key):\\n\" + attackingPieces.get(key));\n \t \t}\n\t\t\t\t\tSystem.out.println(\"----------------------------------------------------------------\");\n\t\t\t\t\t\n \t\t\t\t// Have user select a piece to attack with until there are no more magic pieces\n \t\t\t\twhile (phaseThings.size() > 0) {\n \t\t\t\t\t\n \t\t\t\t\t// Display message prompting user to select a magic piece\n \t\t\t\t\tPlatform.runLater(new Runnable() {\n\t \t @Override\n\t \t public void run() {\n\t \t \tGUI.getHelpText().setText(\"Attack phase: \" + player.getName() + \", select a magic piece to attack with\");\n\t \t }\n\t \t });\n \t\t\t\t\t\n \t\t\t\t\t\n \t\t\t\t\t\n \t\t\t\t\t// Wait for user to select piece\n \t\t\t\tpieceClicked = null;\n \t\t\t\tClickObserver.getInstance().setCreatureFlag(\"Combat: SelectPieceToAttackWith\");\n \t\t\t\tClickObserver.getInstance().setFortFlag(\"Combat: SelectPieceToAttackWith\");\n \t\t\t\t\twhile (pieceClicked == null) { try { Thread.sleep(100); } catch( Exception e ){ return; } }\n\t \t\t\t\tClickObserver.getInstance().setCreatureFlag(\"\");\n\t \t\t\t\tClickObserver.getInstance().setFortFlag(\"\");\n\t \t\t\t\t\n\t \t\t\t\t// hightlight piece that was selected, uncover the die to use, display message about rolling die\n \t\t\t\t\tPlatform.runLater(new Runnable() {\n\t \t @Override\n\t \t public void run() {\n\t \t \tpieceClicked.highLight();\n\t \t \tDiceGUI.getInstance().uncover();\n\t \t \tGUI.getHelpText().setText(\"Attack phase: \" + player.getName() \n\t \t \t\t\t+ \", roll the die. You need a \" + ((Combatable)pieceClicked).getCombatValue() + \" or lower\");\n\t \t }\n \t\t\t\t\t});\n \t\t\t\t\t\n\t \t// Dice is set to -1 while it is 'rolling'. This waits for the roll to stop, ie not -1\n \t\t\t\t\tint attackStrength = -1;\n \t\t\t\t\twhile (attackStrength == -1) {\n \t\t\t\t\t\ttry { Thread.sleep(100); } catch( Exception e ){ return; }\n \t\t\t\t\t\tattackStrength = Dice.getFinalVal();\n \t\t\t\t\t}\n\t\t\t\t\t\t\n \t\t\t\t\t// If the roll was successful. Add to successfulThings Array, and change it image. prompt Failed attack\n \t\t\t\t\tif (attackStrength <= ((Combatable)pieceClicked).getCombatValue()) {\n \t\t\t\t\t\t\n \t\t\t\t\t\tsuccessAttacks.get(player.getName()).add(pieceClicked);\n \t\t\t\t\t\tPlatform.runLater(new Runnable() {\n \t \t @Override\n \t \t public void run() {\n \t \t\t\t\t\t\t((Combatable)pieceClicked).setAttackResult(true);\n \t \t\t\t\t\t\tpieceClicked.cover();\n \t \t\t\t\t\t\tpieceClicked.unhighLight();\n \t \t \tGUI.getHelpText().setText(\"Attack phase: Successful Attack!\");\n \t \t }\n \t\t\t\t\t});\n \t\t\t\t\t\t\n \t\t\t\t\t} else { // else failed attack, update image, prompt Failed attack\n \t\t\t\t\t\tPlatform.runLater(new Runnable() {\n\t\t \t @Override\n\t\t \t public void run() {\n\t\t \t\t\t\t\t\t((Combatable)pieceClicked).setAttackResult(false);\n\t\t \t\t\t\t\t\tpieceClicked.cover();\n \t \t\t\t\t\t\tpieceClicked.unhighLight();\n\t\t \t \tGUI.getHelpText().setText(\"Attack phase: Failed Attack!\");\n\t\t \t }\n\t \t\t\t\t\t});\n \t\t\t\t\t}\n \t\t\t\t\t\n \t\t\t\t\t// Pause to a second for easy game play, remove the clicked piece from phaseThings\n \t\t\t\t\ttry { Thread.sleep(1000); } catch( Exception e ){ return; }\n \t\t\t\t\tphaseThings.remove(pieceClicked);\n \t\t\t\t}\n \t\t\t}\n\n\t\t\t\t// For each piece that had success, player who is being attacked must choose a piece\n \t\t\t// Gets tricky here. Will be tough for Networking :(\n \t\t\tfor (Player pl : combatants) {\n \t\t\t\t\n \t\t\t\t// Active player is set to the player who 'pl' is attack based on toAttack HashMap\n \t\t\t\tplayer = toAttacks.get(pl.getName()); // 'defender'\n \t\t\t\tfinal String plName = pl.getName();\n \t\t\t\t\n \t\t\t\t// For each piece of pl's that has a success (in successAttacks)\n \t\t\t\tint i = 0;\n \t\t\t\tfor (final Piece p : successAttacks.get(plName)) {\n\n \t\t\t\t\t// If there are more successful attacks then pieces to attack, break after using enough attacks\n \t\t\t\t\tif (i >= attackingPieces.get(player.getName()).size()) {\n \t\t\t\t\t\tbreak;\n \t\t\t\t\t}\n \t\t\t\t\t\n \t\t\t\t\t// Display message, cover other players pieces, uncover active players pieces\n\t \t\t\t\tPlatform.runLater(new Runnable() {\n\t \t @Override\n\t \t public void run() {\n\t \t \tGUI.getHelpText().setText(\"Attack phase: \" + player.getName() + \", Select a Piece to take a hit from \" + plName + \"'s \" + p.getName());\n\t \t \tbattleGround.coverPieces();\n\t \t \tbattleGround.uncoverPieces(player.getName());\n\t \t }\n\t\t\t\t\t\t});\n \t\t\t\t\ttry { Thread.sleep(100); } catch( Exception e ){ return; }\n \t\t\t\t\t\n\t \t\t\t\t// Cover pieces already choosen to be inflicted. Wait to make sure runLater covers pieces already selected\n\t \t\t\t\tfor (final Piece pi : toInflict.get(player.getName())) {\n\t \t\t\t\t\tif (!((pi instanceof Fort) && ((Fort)pi).getCombatValue() > 0)) {\n\t\t \t\t\t\t\tPlatform.runLater(new Runnable() {\n\t\t\t \t @Override\n\t\t\t \t public void run() {\n\t\t\t\t \t\t\t\t\tpi.cover();\n\t\t\t \t }\n\t\t\t\t\t\t\t\t});\n\t \t\t\t\t\t}\n\t \t\t\t\t}//TODO here is where a pause might be needed\n\t \t\t\t\t\n\t \t\t\t\t// Wait for user to select piece\n \t\t\t\t\tpieceClicked = null;\n\t \t\t\t\tClickObserver.getInstance().setCreatureFlag(\"Combat: SelectPieceToGetHit\");\n\t \t\t\t\tClickObserver.getInstance().setFortFlag(\"Combat: SelectPieceToGetHit\");\n \t\t\t\t\twhile (pieceClicked == null) { try { Thread.sleep(100); } catch( Exception e ){ return; } }\n \t\t\t\t\tClickObserver.getInstance().setCreatureFlag(\"\");\n\t \t\t\t\tClickObserver.getInstance().setFortFlag(\"\");\n\t\t \t\t\t\n \t\t\t\t\t// Add to arrayList in HashMap of player to mark for future inflict. Cover pieces\n \t\t\t\t\ttoInflict.get(player.getName()).add(pieceClicked);\n \t\t\t\t\tPlatform.runLater(new Runnable() {\n\t \t @Override\n\t \t public void run() {\n\t \t \tbattleGround.coverPieces();\n\t \t }\n\t\t\t\t\t\t});\n \t\t\t\t\ti++;\n \t\t\t\t\ttry { Thread.sleep(100); } catch( Exception e ){ return; }\n\t \t\t\t\t\n \t\t\t\t}\n \t\t\t\t// Clear successful attacks for next phase\n \t\t\t\tsuccessAttacks.get(pl.getName()).clear();\n \t\t\t}\n \t\t\t\n \t\t\t// Remove little success and failure images, inflict if necessary\n \t\t\tfor (Player pl : combatants) {\n \t\t\t\t\n \t\t\t\t// Change piece image of success or failure to not visible\n \t\t\t\tfor (Piece p : attackingPieces.get(pl.getName())) \n \t\t\t\t\t((Combatable)p).resetAttack();\n \t\t\t\t\n\t\t\t\t\t// inflict return true if the piece is dead, and removes it from attackingPieces if so\n \t\t\t\t// Inflict is also responsible for removing from the CreatureStack\n \t\t\t\tfor (Piece p : toInflict.get(pl.getName())) {\n\t\t\t\t\t\tif (((Combatable)p).inflict()) \n\t\t\t\t\t\t\tattackingPieces.get(pl.getName()).remove(p);\n\t\t\t\t\t\tif (attackingPieces.get(pl.getName()).size() == 0)\n\t\t\t\t\t\t\tattackingPieces.remove(pl.getName());\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\t// Clear toInflict for next phase\n \t\t\t\ttoInflict.get(pl.getName()).clear();\n \t\t\t}\n\n\t\t\t\t// Update the InfoPanel gui for changed/removed pieces\n\t\t\t\tPlatform.runLater(new Runnable() {\n\t @Override\n\t public void run() {\n \t\t\t\t\tInfoPanel.showTileInfo(battleGround);\n \t\t\t\t\tbattleGround.coverPieces();\n\t }\n\t\t\t\t});\n \t\t\t\n \t\t\t// Check for defeated armies:\n\t\t\t\t// - find player with no more pieces on terrain\n\t\t\t\t// - remove any such players from combatants\n\t\t\t\t// - if only one combatant, end combat\n \t\t\tbaby = null;\n \t\t\twhile (combatants.size() != attackingPieces.size()) {\n\t\t\t\t\tfor (Player pl : combatants) {\n\t\t\t\t\t\tif (!attackingPieces.containsKey(pl.getName())) {\n\t\t\t\t\t\t\tbaby = pl;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tcombatants.remove(baby);\n \t\t\t}\n \t\t\tif (combatants.size() == 1) {\n \t\t\t\texploring = (!battleGround.isExplored() && battleGround.getContents().size() == 1);\n \t\t\t\tcontinue;\n \t\t\t}\n \t\t\t\n\t\t\t\t// Notify next phase, wait for a second\n\t\t\t\tPlatform.runLater(new Runnable() {\n\t @Override\n\t public void run() {\n\t \t\tbattleGround.coverPieces();\n\t \tGUI.getHelpText().setText(\"Attack phase: Next phase: Ranged!\");\n\t }\n\t });\n\t\t\t\t\n\t\t\t\t// Pause for 2 seconds between phases\n\t\t\t\ttry { Thread.sleep(2000); } catch( Exception e ){ return; }\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n//////////////////// Ranged phase\n\t\t\t\tfor (final Player pl : combatants) {\n \t\t\t\t\n \t\t\t\tplayer = pl;\n \t\t\t\t// Cover all pieces\n \t\t\t\tPlatform.runLater(new Runnable() {\n \t @Override\n \t public void run() {\n \t \t\tbattleGround.coverPieces();\n \t }\n \t });\n \t\t\t\t\n \t\t\t\t// For each piece, if its ranged. Add it to the phaseThings array\n \t\t\t\tfor (Piece p : attackingPieces.get(pl.getName())) {\n \t\t\t\t\tif (p instanceof Combatable && ((Combatable)p).isRanged() && !(p instanceof Fort && ((Fort)p).getCombatValue() == 0)) \n \t\t\t\t\t\tphaseThings.add(p);\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\t// uncover ranged pieces for clicking\n \t\t\t\tif (phaseThings.size() > 0) {\n\t \t\t\t\tPlatform.runLater(new Runnable() {\n\t \t @Override\n\t \t public void run() {\n\t \t \t\t\t\tfor (Piece ran : phaseThings) \n\t \t\t\t\t\tran.uncover();\n\t \t }\n\t \t });\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\t// Have user select a piece to attack with until there are no more ranged pieces\n \t\t\t\twhile (phaseThings.size() > 0) {\n \t\t\t\t\t\n \t\t\t\t\t// Display message prompting user to select a ranged piece\n \t\t\t\t\tPlatform.runLater(new Runnable() {\n\t \t @Override\n\t \t public void run() {\n\t \t \tGUI.getHelpText().setText(\"Attack phase: \" + player.getName() + \", select a ranged piece to attack with\");\n\t \t }\n\t \t });\n\n \t\t\t\t\t// Wait for user to select piece\n \t\t\t\tpieceClicked = null;\n \t\t\t\tClickObserver.getInstance().setCreatureFlag(\"Combat: SelectPieceToAttackWith\");\n \t\t\t\tClickObserver.getInstance().setFortFlag(\"Combat: SelectPieceToAttackWith\");\n \t\t\t\t\twhile (pieceClicked == null) { try { Thread.sleep(100); } catch( Exception e ){ return; } }\n\t \t\t\t\tClickObserver.getInstance().setCreatureFlag(\"\");\n\t \t\t\t\tClickObserver.getInstance().setFortFlag(\"\");\n\t \t\t\t\t\n\t \t\t\t\t// hightlight piece that was selected, uncover the die to use, display message about rolling die\n \t\t\t\t\tPlatform.runLater(new Runnable() {\n\t \t @Override\n\t \t public void run() {\n\t \t \tpieceClicked.highLight();\n\t \t \tDiceGUI.getInstance().uncover();\n\t \t \tGUI.getHelpText().setText(\"Attack phase: \" + player.getName()\n\t \t + \", roll the die. You need a \" + ((Combatable)pieceClicked).getCombatValue() + \" or lower\");\n\t \t }\n \t\t\t\t\t});\n \t\t\t\t\t\n\t \t// Dice is set to -1 while it is 'rolling'. This waits for the roll to stop, ie not -1\n \t\t\t\t\tint attackStrength = -1;\n \t\t\t\t\twhile (attackStrength == -1) {\n \t\t\t\t\t\ttry { Thread.sleep(100); } catch( Exception e ){ return; }\n \t\t\t\t\t\tattackStrength = Dice.getFinalVal();\n \t\t\t\t\t}\n\t\t\t\t\t\t\n \t\t\t\t\t// If the roll was successful. Add to successfulThings Array, and change it image. prompt Failed attack\n \t\t\t\t\tif (attackStrength <= ((Combatable)pieceClicked).getCombatValue()) {\n \t\t\t\t\t\t\n \t\t\t\t\t\tsuccessAttacks.get(player.getName()).add(pieceClicked);\n \t\t\t\t\t\tPlatform.runLater(new Runnable() {\n \t \t @Override\n \t \t public void run() {\n \t \t\t\t\t\t\t((Combatable)pieceClicked).setAttackResult(true);\n \t \t\t\t\t\t\tpieceClicked.cover();\n \t \t\t\t\t\t\tpieceClicked.unhighLight();\n \t \t \tGUI.getHelpText().setText(\"Attack phase: Successful Attack!\");\n \t \t }\n \t\t\t\t\t});\n \t\t\t\t\t\t\n \t\t\t\t\t} else { // else failed attack, update image, prompt Failed attack\n \t\t\t\t\t\tPlatform.runLater(new Runnable() {\n\t\t \t @Override\n\t\t \t public void run() {\n\t\t \t\t\t\t\t\t((Combatable)pieceClicked).setAttackResult(false);\n\t\t \t\t\t\t\t\tpieceClicked.cover();\n \t \t\t\t\t\t\tpieceClicked.unhighLight();\n\t\t \t \tGUI.getHelpText().setText(\"Attack phase: Failed Attack!\");\n\t\t \t }\n\t \t\t\t\t\t});\n \t\t\t\t\t}\n \t\t\t\t\t\n \t\t\t\t\t// Pause to a second for easy game play, remove the clicked piece from phaseThings\n \t\t\t\t\ttry { Thread.sleep(1000); } catch( Exception e ){ return; }\n \t\t\t\t\tphaseThings.remove(pieceClicked);\n \t\t\t\t}\n \t\t\t}\n\n\t\t\t\t// For each piece that had success, player who is being attacked must choose a piece\n \t\t\t// Gets tricky here. Will be tough for Networking :(\n \t\t\tfor (Player pl : combatants) {\n \t\t\t\t\n \t\t\t\t// Active player is set to the player who 'pl' is attack based on toAttack HashMap\n \t\t\t\tplayer = toAttacks.get(pl.getName());\n \t\t\t\tfinal String plName = pl.getName();\n \t\t\t\t\n \t\t\t\t// For each piece of pl's that has a success (in successAttacks)\n \t\t\t\tint i = 0;\n \t\t\t\tfor (final Piece p : successAttacks.get(plName)) {\n\n \t\t\t\t\t// If there are more successful attacks then pieces to attack, break after using enough attacks\n \t\t\t\t\tif (i >= attackingPieces.get(player.getName()).size()) {\n \t\t\t\t\t\tbreak;\n \t\t\t\t\t}\n \t\t\t\t\t\n \t\t\t\t\t// Display message, cover other players pieces, uncover active players pieces\n\t \t\t\t\tPlatform.runLater(new Runnable() {\n\t \t @Override\n\t \t public void run() {\n\t \t \tGUI.getHelpText().setText(\"Attack phase: \" + player.getName() + \", Select a Piece to take a hit from \" + plName + \"'s \" + p.getName());\n\t \t \tbattleGround.coverPieces();\n\t \t \tbattleGround.uncoverPieces(player.getName());\n\t \t }\n\t\t\t\t\t\t});\n \t\t\t\t\t\n\t \t\t\t\t// Cover pieces already choosen to be inflicted. Wait to make sure runLater covers pieces already selected\n\t \t\t\t\tfor (final Piece pi : toInflict.get(player.getName())) {\n\t \t\t\t\t\tif (!((pi instanceof Fort) && ((Fort)pi).getCombatValue() > 0)) {\n\t\t \t\t\t\t\tPlatform.runLater(new Runnable() {\n\t\t\t \t @Override\n\t\t\t \t public void run() {\n\t\t\t\t \t\t\t\t\tpi.cover();\n\t\t\t \t }\n\t\t\t\t\t\t\t\t});\n\t \t\t\t\t\t}\n\t \t\t\t\t}//TODO here is where a pause might be needed\n\t \t\t\t\t\n\t \t\t\t\t// Wait for user to select piece\n \t\t\t\t\tpieceClicked = null;\n\t \t\t\t\tClickObserver.getInstance().setCreatureFlag(\"Combat: SelectPieceToGetHit\");\n\t \t\t\t\tClickObserver.getInstance().setFortFlag(\"Combat: SelectPieceToGetHit\");\n \t\t\t\t\twhile (pieceClicked == null) { try { Thread.sleep(100); } catch( Exception e ){ return; } }\n \t\t\t\t\tClickObserver.getInstance().setFortFlag(\"\");\n \t\t\t\t\tClickObserver.getInstance().setCreatureFlag(\"\");\n\t\t \t\t\t\n \t\t\t\t\t// Add to arrayList in HashMap of player to mark for future inflict. Cover pieces\n \t\t\t\t\ttoInflict.get(player.getName()).add(pieceClicked);\n \t\t\t\t\tPlatform.runLater(new Runnable() {\n\t \t @Override\n\t \t public void run() {\n\t \t \tbattleGround.coverPieces();\n\t \t }\n\t\t\t\t\t\t});\n \t\t\t\t\ttry { Thread.sleep(100); } catch( Exception e ){ return; }\n\t \t\t\t\ti++;\n \t\t\t\t}\n \t\t\t\t// Clear successful attacks for next phase\n \t\t\t\tsuccessAttacks.get(pl.getName()).clear();\n \t\t\t}\n \t\t\t\n \t\t\t// Remove little success and failure images, inflict if necessary\n \t\t\tfor (Player pl : combatants) {\n \t\t\t\t\n \t\t\t\t// Change piece image of success or failure to not visible\n \t\t\t\tfor (Piece p : attackingPieces.get(pl.getName())) \n \t\t\t\t\t((Combatable)p).resetAttack();\n \t\t\t\t\n\t\t\t\t\t// inflict return true if the piece is dead, and removes it from attackingPieces if so\n \t\t\t\t// Inflict is also responsible for removing from the CreatureStack\n \t\t\t\tfor (Piece p : toInflict.get(pl.getName())) {\n\t\t\t\t\t\tif (((Combatable)p).inflict()) \n\t\t\t\t\t\t\tattackingPieces.get(pl.getName()).remove(p);\n\t\t\t\t\t\tif (attackingPieces.get(pl.getName()).size() == 0)\n\t\t\t\t\t\t\tattackingPieces.remove(pl.getName());\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\t// Clear toInflict for next phase\n \t\t\t\ttoInflict.get(pl.getName()).clear();\n \t\t\t}\n\n\t\t\t\t// Update the InfoPanel gui for changed/removed pieces\n\t\t\t\tPlatform.runLater(new Runnable() {\n\t @Override\n\t public void run() {\n \t\t\t\t\tInfoPanel.showTileInfo(battleGround);\n \t\t\t\t\tbattleGround.coverPieces();\n\t }\n\t\t\t\t});\n \t\t\t\n \t\t\t// Check for defeated armies:\n\t\t\t\t// - find player with no more pieces on terrain\n\t\t\t\t// - remove any such players from combatants\n\t\t\t\t// - if only one combatant, end combat\n\t\t\t\tbaby = null;\n \t\t\twhile (combatants.size() != attackingPieces.size()) {\n\t\t\t\t\tfor (Player pl : combatants) {\n\t\t\t\t\t\tif (!attackingPieces.containsKey(pl.getName())) {\n\t\t\t\t\t\t\tbaby = pl;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tcombatants.remove(baby);\n \t\t\t}\n \t\t\tif (combatants.size() == 1) {\n \t\t\t\texploring = (!battleGround.isExplored() && battleGround.getContents().size() == 1);\n \t\t\t\tcontinue;\n \t\t\t}\n \t\t\t\n\t\t\t\t// Notify next phase, wait for a second\n\t\t\t\tPlatform.runLater(new Runnable() {\n\t @Override\n\t public void run() {\n\t \t\tbattleGround.coverPieces();\n\t \tGUI.getHelpText().setText(\"Attack phase: Next phase: Melee!\");\n\t }\n\t });\n\t\t\t\t\n\t\t\t\t// Pause for 2 seconds between phases\n\t\t\t\ttry { Thread.sleep(2000); } catch( Exception e ){ return; }\n\t\t\t\t\n\n///////////////////////////// Melee phase\n\t\t\t\tfor (final Player pl : combatants) {\n \t\t\t\t\n \t\t\t\tplayer = pl;\n \t\t\t\t// Cover all pieces\n \t\t\t\tPlatform.runLater(new Runnable() {\n \t @Override\n \t public void run() {\n \t \t\tbattleGround.coverPieces();\n \t }\n \t });\n \t\t\t\t\n \t\t\t\t// For each piece, if its melee. Add it to the phaseThings array\n \t\t\t\tfor (Piece p : attackingPieces.get(pl.getName())) {\n \t\t\t\t\tif (p instanceof Combatable && !(((Combatable)p).isRanged() || ((Combatable)p).isMagic()) && !(p instanceof Fort && ((Fort)p).getCombatValue() == 0)) \n \t\t\t\t\t\tphaseThings.add(p);\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\t// uncover melee pieces for clicking\n \t\t\t\tif (phaseThings.size() > 0) {\n\t \t\t\t\tPlatform.runLater(new Runnable() {\n\t \t @Override\n\t \t public void run() {\n\t \t \t\t\t\tfor (Piece mel : phaseThings) \n\t \t\t\t\t\tmel.uncover();\n\t \t }\n\t \t });\n \t\t\t\t}\n \t\t\t\ttry { Thread.sleep(100); } catch( Exception e ){ return; }\n \t\t\t\t\n \t\t\t\t// Have user select a piece to attack with until there are no more melee pieces\n \t\t\t\twhile (phaseThings.size() > 0) {\n \t\t\t\t\t\n \t\t\t\t\t// Display message prompting user to select a melee piece\n \t\t\t\t\tPlatform.runLater(new Runnable() {\n\t \t @Override\n\t \t public void run() {\n\t \t \tGUI.getHelpText().setText(\"Attack phase: \" + player.getName() + \", select a melee piece to attack with\");\n\t \t }\n\t \t });\n\n \t\t\t\t\t// Wait for user to select piece\n \t\t\t\tpieceClicked = null;\n \t\t\t\tClickObserver.getInstance().setCreatureFlag(\"Combat: SelectPieceToAttackWith\");\n \t\t\t\tClickObserver.getInstance().setFortFlag(\"Combat: SelectPieceToAttackWith\");\n \t\t\t\t\twhile (pieceClicked == null) { try { Thread.sleep(100); } catch( Exception e ){ return; } }\n\t \t\t\t\tClickObserver.getInstance().setCreatureFlag(\"\");\n\t \t\t\t\tClickObserver.getInstance().setFortFlag(\"\");\n\t \t\t\t\t\n\t \t\t\t\t// Is it a charging piece?\n\t \t\t\t\tint charger;\n\t \t\t\t\tif (((Combatable)pieceClicked).isCharging()) {\n\t \t\t\t\t\tcharger = 2;\n\t \t\t\t\t} else\n\t \t\t\t\t\tcharger = 1;\n\t \t\t\t\t\n\t \t\t\t\t// do twice if piece is a charger\n\t \t\t\t\tfor (int i = 0; i < charger; i++) {\n\t \t\t\t\t\t\n\t\t \t\t\t\t// hightlight piece that was selected, uncover the die to use, display message about rolling die\n\t \t\t\t\t\tPlatform.runLater(new Runnable() {\n\t\t \t @Override\n\t\t \t public void run() {\n\t\t \t \tpieceClicked.highLight();\n\t\t \t \tDiceGUI.getInstance().uncover();\n\t\t \t \tGUI.getHelpText().setText(\"Attack phase: \" + player.getName()\n\t\t \t + \", roll the die. You need a \" + ((Combatable)pieceClicked).getCombatValue() + \" or lower\");\n\t\t \t }\n\t \t\t\t\t\t});\n\t \t\t\t\t\t\n\t\t \t// Dice is set to -1 while it is 'rolling'. This waits for the roll to stop, ie not -1\n\t \t\t\t\t\tint attackStrength = -1;\n\t \t\t\t\t\twhile (attackStrength == -1) {\n\t \t\t\t\t\t\ttry { Thread.sleep(100); } catch( Exception e ){ return; }\n\t \t\t\t\t\t\tattackStrength = Dice.getFinalVal();\n\t \t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t \t\t\t\t\t// If the roll was successful. Add to successfulThings Array, and change it image. prompt Failed attack\n\t \t\t\t\t\tif (attackStrength <= ((Combatable)pieceClicked).getCombatValue()) {\n\t \t\t\t\t\t\t\n\t \t\t\t\t\t\tsuccessAttacks.get(player.getName()).add(pieceClicked);\n\t \t\t\t\t\t\tPlatform.runLater(new Runnable() {\n\t \t \t @Override\n\t \t \t public void run() {\n\t \t \t\t\t\t\t\t((Combatable)pieceClicked).setAttackResult(true);\n\t \t \t\t\t\t\t\tpieceClicked.cover();\n\t \t \t\t\t\t\t\tpieceClicked.unhighLight();\n\t \t \t \tGUI.getHelpText().setText(\"Attack phase: Successful Attack!\");\n\t \t \t }\n\t \t\t\t\t\t});\n\t \t\t\t\t\t\t\n\t \t\t\t\t\t} else { // else failed attack, update image, prompt Failed attack\n\t \t\t\t\t\t\tPlatform.runLater(new Runnable() {\n\t\t\t \t @Override\n\t\t\t \t public void run() {\n\t\t\t \t\t\t\t\t\t((Combatable)pieceClicked).setAttackResult(false);\n\t\t\t \t\t\t\t\t\tpieceClicked.cover();\n\t \t \t\t\t\t\t\tpieceClicked.unhighLight();\n\t\t\t \t \tGUI.getHelpText().setText(\"Attack phase: Failed Attack!\");\n\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\t\n\t \t\t\t\t\t// If piece is charging, and it is its first attack, remove the cover again\n\t \t\t\t\t\tif (((Combatable)pieceClicked).isCharging() && i == 0) {\n\t \t\t\t\t\t\tPlatform.runLater(new Runnable() {\n\t\t\t \t @Override\n\t\t\t \t public void run() {\n\t\t\t \t \tpieceClicked.uncover();\n\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\t\n\t \t\t\t\t\t// Pause to a second for easy game play, remove the clicked piece from phaseThings\n\t \t\t\t\t\ttry { Thread.sleep(1000); } catch( Exception e ){ return; }\n\t \t\t\t\t}\n\n \t\t\t\t\tphaseThings.remove(pieceClicked);\n \t\t\t\t}\n \t\t\t}\n\n\t\t\t\t// For each piece that had success, player who is being attacked must choose a piece\n \t\t\t// Gets tricky here. Will be tough for Networking :(\n \t\t\tfor (Player pl : combatants) {\n \t\t\t\t\n \t\t\t\t// Active player is set to the player who 'pl' is attack based on toAttack HashMap\n \t\t\t\tplayer = toAttacks.get(pl.getName());\n \t\t\t\tfinal String plName = pl.getName();\n \t\t\t\t\n \t\t\t\t// For each piece of pl's that has a success (in successAttacks)\n \t\t\t\tint i = 0;\n \t\t\t\tfor (final Piece p : successAttacks.get(plName)) {\n \t\t\t\t\t\n \t\t\t\t\t// If there are more successful attacks then pieces to attack, break after using enough attacks\n \t\t\t\t\tif (i >= attackingPieces.get(player.getName()).size()) {\n \t\t\t\t\t\tbreak;\n \t\t\t\t\t}\n \t\t\t\t\t\n \t\t\t\t\t// Display message, cover other players pieces, uncover active players pieces\n\t \t\t\t\tPlatform.runLater(new Runnable() {\n\t \t @Override\n\t \t public void run() {\n\t \t \tGUI.getHelpText().setText(\"Attack phase: \" + player.getName() + \", Select a Piece to take a hit from \" + plName + \"'s \" + p.getName());\n\t \t \tbattleGround.coverPieces();\n\t \t \tbattleGround.uncoverPieces(player.getName());\n\t \t }\n\t\t\t\t\t\t});\n \t\t\t\t\t\n\t \t\t\t\t// Cover pieces already choosen to be inflicted. Wait to make sure runLater covers pieces already selected\n\t \t\t\t\tfor (final Piece pi : toInflict.get(player.getName())) {\n\t \t\t\t\t\tif (!((pi instanceof Fort) && ((Fort)pi).getCombatValue() > 0)) {\n\t\t \t\t\t\t\tPlatform.runLater(new Runnable() {\n\t\t\t \t @Override\n\t\t\t \t public void run() {\n\t\t\t\t \t\t\t\t\tpi.cover();\n\t\t\t \t }\n\t\t\t\t\t\t\t\t});\n\t \t\t\t\t\t}\n\t \t\t\t\t}//TODO here is where a pause might be needed\n\t \t\t\t\t\n\t \t\t\t\t// Wait for user to select piece\n \t\t\t\t\tpieceClicked = null;\n\t \t\t\t\tClickObserver.getInstance().setCreatureFlag(\"Combat: SelectPieceToGetHit\");\n\t \t\t\t\tClickObserver.getInstance().setFortFlag(\"Combat: SelectPieceToGetHit\");\n \t\t\t\t\twhile (pieceClicked == null) { try { Thread.sleep(100); } catch( Exception e ){ return; } }\n \t\t\t\t\tClickObserver.getInstance().setCreatureFlag(\"\");\n \t\t\t\t\tClickObserver.getInstance().setFortFlag(\"\");\n\t\t \t\t\t\n \t\t\t\t\t// Add to arrayList in HashMap of player to mark for future inflict. Cover pieces\n \t\t\t\t\ttoInflict.get(player.getName()).add(pieceClicked);\n \t\t\t\t\tPlatform.runLater(new Runnable() {\n\t \t @Override\n\t \t public void run() {\n\t \t \tbattleGround.coverPieces();\n\t \t }\n\t\t\t\t\t\t});\n \t\t\t\t\ttry { Thread.sleep(100); } catch( Exception e ){ return; }\n\t \t\t\t\ti++;\n \t\t\t\t}\n \t\t\t\t// Clear successful attacks for next phase\n \t\t\t\tsuccessAttacks.get(pl.getName()).clear();\n \t\t\t}\n \t\t\t\n \t\t\t// Remove little success and failure images, inflict if necessary\n \t\t\tfor (Player pl : combatants) {\n \t\t\t\t\n \t\t\t\t// Change piece image of success or failure to not visible\n \t\t\t\tfor (Piece p : attackingPieces.get(pl.getName())) \n \t\t\t\t\t((Combatable)p).resetAttack();\n \t\t\t\t\n\t\t\t\t\t// inflict return true if the piece is dead, and removes it from attackingPieces if so\n \t\t\t\t// Inflict is also responsible for removing from the CreatureStack\n \t\t\t\tfor (Piece p : toInflict.get(pl.getName())) {\n\t\t\t\t\t\tif (((Combatable)p).inflict()) \n\t\t\t\t\t\t\tattackingPieces.get(pl.getName()).remove(p);\n\t\t\t\t\t\tif (attackingPieces.get(pl.getName()).size() == 0)\n\t\t\t\t\t\t\tattackingPieces.remove(pl.getName());\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\t// Clear toInflict for next phase\n \t\t\t\ttoInflict.get(pl.getName()).clear();\n \t\t\t}\n\n\t\t\t\t// Update the InfoPanel gui for changed/removed pieces\n\t\t\t\tPlatform.runLater(new Runnable() {\n\t @Override\n\t public void run() {\n \t\t\t\t\tInfoPanel.showTileInfo(battleGround);\n \t\t\t\t\tbattleGround.coverPieces();\n\t }\n\t\t\t\t});\n \t\t\t\n \t\t\t// Check for defeated armies:\n\t\t\t\t// - find player with no more pieces on terrain\n\t\t\t\t// - remove any such players from combatants\n\t\t\t\t// - if only one combatant, end combat\n\t\t\t\tbaby = null;\n \t\t\twhile (combatants.size() != attackingPieces.size()) {\n\t\t\t\t\tfor (Player pl : combatants) {\n\t\t\t\t\t\tif (!attackingPieces.containsKey(pl.getName())) {\n\t\t\t\t\t\t\tbaby = pl;\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tcombatants.remove(baby);\n \t\t\t}\n \t\t\tif (combatants.size() == 1) {\n \t\t\t\texploring = (!battleGround.isExplored() && battleGround.getContents().size() == 1);\n \t\t\t\tcontinue;\n \t\t\t}\n \t\t\t\n\t\t\t\t// Notify next phase, wait for a second\n\t\t\t\tPlatform.runLater(new Runnable() {\n\t @Override\n\t public void run() {\n\t \t\tbattleGround.coverPieces();\n\t \tGUI.getHelpText().setText(\"Attack phase: Next phase: Retreat!\");\n\t }\n\t });\n\t\t\t\t\n\t\t\t\t// Pause for 2 seconds between phases\n\t\t\t\ttry { Thread.sleep(2000); } catch( Exception e ){ return; }\n \t\t\t\n \t\t\t\n//////////////////////// Retreat phase\n\t\t\t\t// Can only retreat to a Terrain that has been explored and has no ememies on it\n\t\t\t\t\n\t\t\t\t// Display message, activate done button\n\t\t\t\tPlatform.runLater(new Runnable() {\n\t @Override\n\t public void run() {\n\t \tGUI.getHelpText().setText(\"Attack phase: Retreat some of your armies?\");\n\t\t GUI.getDoneButton().setDisable(false);\n\t }\n\t }); \t\t\t\t\n\t\t\t\t\n\t\t\t\t// For each combatant, ask if they would like to retreat\n\t\t for (Player pl : combatants) {\n\t\t \t\n\t\t \t// Make sure wildThings aren't trying to get away\n\t\t \tif (!pl.isWildThing()) {\n\t\t\t \tplayer = pl;\n\t \t InfoPanel.uncover(player.getName());\n\t\t\t\t ClickObserver.getInstance().setActivePlayer(player);\n\t\t\t\t ClickObserver.getInstance().setCreatureFlag(\"Combat: SelectRetreaters\");\n\t\t\t\t \n\t\t\t\t // Pause and wait for player to hit done button\n\t\t\t\t pause();\n\t\t\t Platform.runLater(new Runnable() {\n\t\t\t @Override\n\t\t\t public void run() {\n\t\t\t \tbattleGround.coverPieces();\n\t\t\t \tbattleGround.uncoverPieces(player.getName());\n\t\t\t \tbattleGround.coverFort();\n\t\t\t \t GUI.getHelpText().setText(\"Attack Phase: \" + player.getName() + \", You can retreat your armies\");\n\t\t\t }\n\t\t\t });\n\t\t\t\t while (isPaused && battleGround.getContents(player.getName()) != null) {\n\t\t\t \ttry { Thread.sleep(100); } catch( Exception e ){ return; } \n\t\t\t\t }\t \n\t\t\t\t ClickObserver.getInstance().setTerrainFlag(\"Disabled\");\n\t\t\t\t \n\t\t\t\t // TODO, maybe an if block here asking user if they would like to attack \n\t\t\t\t System.out.println(attackingPieces + \"---BEFORE CLEARING\");\n\t\t\t\t // Re-populate attackingPieces to check for changes\n\t\t\t\t attackingPieces.clear();\n\t\t\t\t Iterator<String> keySetIterator2 = battleGround.getContents().keySet().iterator();\n\t\t\t\t \twhile(keySetIterator2.hasNext()) {\n\t\t\t\t \t\tString key = keySetIterator2.next();\n System.out.println(key + \"=====key\");\n\t\t\t \t\t\tattackingPieces.put(battleGround.getContents().get(key).getOwner().getName(), (ArrayList<Piece>) battleGround.getContents().get(key).getStack().clone()); \n\t\t\t\t \t}\n // System.out.println(attackingPieces);\n\t\t\t\t \t// if the owner of the terrain has no pieces, just a fort or city/village\n System.out.println(\"===battleground\"+battleGround);\n System.out.println(\"===attackingPieces\"+attackingPieces);\n System.out.println(combatants.contains(battleGround.getOwner()) ? \"TRUE\" : \"FALSE\");\n\t\t\t\t\t\tif (combatants.contains(battleGround.getOwner()) && battleFort != null) {\n System.out.println(battleGround + \"===battleground\");\n\t\t\t\t\t\t\tattackingPieces.put(battleGround.getOwner().getName(), new ArrayList<Piece>());\n System.out.println(attackingPieces + \"===attacking pieces\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (battleFort != null) {\n System.out.println(battleFort.getName() + \"===battlefort\");\n System.out.println(battleFort.getOwner().getName() + \"===battlefort's owner\");\n \n\t\t\t\t\t\t\tattackingPieces.get(battleFort.getOwner().getName()).add(battleFort);\n System.out.println(attackingPieces.get(battleFort.getOwner().getName()));\n\t\t\t\t\t\t}\n\t//\t\t\t\t\tif (battleGround city/village)\n\t\t\t\t\t\t// TODO city/village\n\t\t\t\t \n\t\t\t\t\t\t\n\t\t\t\t // Check if all the players pieces are now gone\n\t\t\t\t if (!attackingPieces.containsKey(player.getName())) {\n\t\t\t\t \t\n\t\t\t\t \t// Display message, and remove player from combatants\n\t\t\t\t \tPlatform.runLater(new Runnable() {\n\t\t\t\t @Override\n\t\t\t\t public void run() {\n\t\t\t\t \t GUI.getHelpText().setText(\"Attack Phase: \" + player.getName() + \" has retreated all of their pieces!\");\n\t\t\t\t }\n\t\t\t\t });\n\t\t\t\t \t\n\t\t\t\t \t// If there is only 1 player fighting for the hex, \n\t\t\t\t \tif (attackingPieces.size() == 1) \n\t\t\t\t \t\tbreak;\n\t\t\t\t \t\n\t\t\t\t \t// Pause because somebody just retreated\n\t\t\t\t \ttry { Thread.sleep(2000); } catch( Exception e ){ return; }\n\t\t\t\t }\n\t\t\t\t \n\n\t \t InfoPanel.cover(player.getName());\n\t\t\t\t \n\t\t\t }\n\t\t }\n\t\t \n\t\t // Done button no longer needed\n\t\t Platform.runLater(new Runnable() {\n\t\t @Override\n\t\t public void run() {\n\t\t GUI.getDoneButton().setDisable(true);\n\t\t }\n\t\t });\n\t\t ClickObserver.getInstance().setCreatureFlag(\"\");\n\t\t ClickObserver.getInstance().setFortFlag(\"\");\n\t\t \n\t\t // Check for defeated armies:\n\t\t\t\t// - find player with no more pieces on terrain\n\t\t\t\t// - remove any such players from combatants\n\t\t\t\t// - if only one combatant, end combat\n \t\t\tbaby = null;\n \t\t\twhile (combatants.size() != attackingPieces.size()) {\n\t\t\t\t\tfor (Player pl : combatants) {\n\t\t\t\t\t\tif (!attackingPieces.containsKey(pl.getName())) {\n\t\t\t\t\t\t\tbaby = pl;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tcombatants.remove(baby);\n \t\t\t}\n \t\t\tif (combatants.size() == 1) {\n \t\t\t\texploring = (!battleGround.isExplored() && battleGround.getContents().size() == 1);\n \t\t\t\tcontinue;\n \t\t\t}\n \t\t\t\n\n\t\t\t\texploring = (!battleGround.isExplored() && battleGround.getContents().size() == 1);\n\t\t\t\t\n\t\t\t\t// Add wildthings back to combatants if they were removed\n\t\t\t\tif (battleGround.getContents().containsKey(wildThings.getName()) && !combatants.contains(wildThings))\n\t\t\t\t\tcombatants.add(wildThings);\n\t\t\t\t\n \t\t} // end while (combatants.size() > 1 || exploring)\n \t\tbattleGround.coverFort();\n \t\t\n////////////////// Post Combat\n \t\t\n \t\t// sets player as the winner of the combat\n \t\t// Can be null if battle takes place on a hex owned by nobody, and each player lost all pieces\n \t\tPlatform.runLater(new Runnable() {\n @Override\n public void run() {\n \tbattleGround.removeBattleHex();\n }\n \t\t});\n \t\t\n \t\tif (combatants.size() == 0)\n \t\t\tplayer = battleGround.getOwner();\n \t\telse if (combatants.size() == 1 && combatants.get(0).getName().equals(wildThings.getName()))\n \t\t\tplayer = null;\n \t\telse\n \t\t\tplayer = combatants.get(0);\n \t\t\n \t\tSystem.out.println(\"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\");\n \t\tSystem.out.println(\"combatants: \" + combatants);\n \t\tfor (Player p : combatants) {\n \t\tSystem.out.println(\"p.getName(): \"+ p.getName());\n \t\t\t\n \t\t}\n \t\tSystem.out.println(\"owner: \" + owner);\n \t\tSystem.out.println(\"combatants.get(0): \" + combatants.get(0));\n \t\tSystem.out.println(\"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\");\n \t\t\n \t\t\n \t\t// Change ownership of hex to winner\n \t\tboolean ownerChanged = false;\n \t\tif (owner != null && combatants.size() > 0 && !battleGround.getOwner().equals(combatants.get(0))) {\n \t\t\tbattleGround.getOwner().removeHex(battleGround);\n \t\t\tcombatants.get(0).addHexOwned(battleGround);\n \t\t\townerChanged = true;\n \t\t}\n\t\t\t\n \t\t// See if fort is kept or downgraded.\n \t\tif (battleFort != null) {\n if (battleFort.getName().equals(\"Citadel\")) {\n owner.setCitadel(false);\n player.setCitadel(true);\n battleFort.healFort();\n player.addHexOwned(battleGround);\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n GUI.getHelpText().setText(\"Post combat: \" + player.getName() + \", you get to keep the fort!\");\n }\n });\n checkWinners();\n return;\n }\n \t\t\n\t\t\t\t// Get player to click dice to see if fort is kept\n\t\t\t\tPlatform.runLater(new Runnable() {\n\t @Override\n\t public void run() {\n\t \tGUI.getHelpText().setText(\"Post combat: \" + player.getName() + \", roll the die to see if the fort is kept or downgraded\");\n\t \tDiceGUI.getInstance().uncover();\n\t \tInfoPanel.showTileInfo(battleGround);\n\t }\n\t });\n\t\t\t\t\n\t\t\t\t// Dice is set to -1 while it is 'rolling'. This waits for the roll to stop, ie not -1\n\t\t\t\tint oneOrSixGood = -1;\n\t\t\t\twhile (oneOrSixGood == -1) {\n\t\t\t\t\ttry { Thread.sleep(100); } catch( Exception e ){ return; }\n\t\t\t\t\toneOrSixGood = Dice.getFinalVal();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// if a 1 or 6, keep fort (Keep it.... not turn it into a keep)\n\t\t\t\tif (oneOrSixGood == 1 || oneOrSixGood == 6) {\n\t\t\t\t\tbattleFort.healFort();\n\t\t\t\t\tplayer.addHexOwned(battleGround);\n\t\t\t\t\tPlatform.runLater(new Runnable() {\n\t\t @Override\n\t\t public void run() {\n\t\t \tGUI.getHelpText().setText(\"Post combat: \" + player.getName() + \", you get to keep the fort!\");\n\t\t }\n\t\t\t\t\t});\n\t\t\t\t} else {\n\t\t\t\t\tbattleFort.downgrade();Platform.runLater(new Runnable() {\n\t\t @Override\n\t\t public void run() {\n\t\t \tGUI.getHelpText().setText(\"Post combat: \" + player.getName() + \", the fort was destroyed!\");\n\t\t }\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tPlatform.runLater(new Runnable() {\n\t @Override\n\t public void run() {\n\t \tInfoPanel.showTileInfo(battleGround);\n\t }\n\t });\n\t\t\t\t\n\t\t\t\ttry { Thread.sleep(1000); } catch( Exception e ){ return; }\n\t\t\t\t\n\t\t\t\t\n \t\t}\n\n \t\tbattleGround.flipPiecesDown();\n\t\t\t// TODO city/village and special incomes if they are kept or lost/damaged \n \t\t\n \t\ttry { Thread.sleep(1000); } catch( Exception e ){ return; }\n \t}/// end Post combat\n\n \tPlatform.runLater(new Runnable() {\n @Override\n public void run() {\n//\t\t\t\tInfoPanel.showBattleStats();\n \tBoard.removeCovers();\n }\n\t\t});\n \t\n\t\tClickObserver.getInstance().setTerrainFlag(\"\");\n\t\tClickObserver.getInstance().setPlayerFlag(\"\");\n\t\tClickObserver.getInstance().setCreatureFlag(\"\");\n\t\tClickObserver.getInstance().setFortFlag(\"\");\n\t\tbattleGrounds.clear();\n }",
"public static void extract_money(){\n TOTALCMONEY = TOTALCMONEY - BALANCERETRIEVE; //the total cashier money equals the total cashier money minus the retrieve request\r\n BALANCE = BALANCE - BALANCERETRIEVE; //the user balance equals the account minus the retrieve request\r\n }",
"public static void worldTimeStep() {\n\t\t\n\t//Do time step for all critters\n\t\tfor (Critter c: population) {\n\t\t\tc.doTimeStep();\t\t\t\n\t\t}\n\t\n\t\t\n\t//Resolve encounters\n\t\tIterator<Critter> it1 = population.iterator();\n\t\tfightMode = true;\n\t\twhile(it1.hasNext())\n\t\t{\n\t\t\tCritter c = it1.next();\n\t\t\tIterator<Critter> it2 = population.iterator();\n\t\t\twhile(it2.hasNext()&&(c.energy > 0)) \n\t\t\t{\t\n\t\t\t\tCritter a =it2.next();\n\t\t\t\tif((c != a)&&(a.x_coord==c.x_coord)&&(a.y_coord==c.y_coord))\n\t\t\t\t{\n\t\t\t\t\tboolean cFighting = c.fight(a.toString());\n\t\t\t\t\tboolean aFighting = a.fight(c.toString());\n\t\t\t\t//If they are both still in the same location and alive, then fight\n\t\t\t\t\tif ((a.x_coord == c.x_coord) && (a.y_coord == c.y_coord) && (a.energy > 0) && (c.energy > 0)) {\t\t\n\t\t\t\t\t\tint cFight=0;\n\t\t\t\t\t\tint aFight=0;\n\t\t\t\t\t\tif(cFighting)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcFight = getRandomInt(100);\n\t\t\t\t\t\t\tcFight++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(aFighting)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\taFight =getRandomInt(100);\n\t\t\t\t\t\t\taFight++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(cFight>aFight)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tc.energy+=(a.energy/2);\n\t\t\t\t\t\t\t//it2.remove();\n\t\t\t\t\t\t\ta.energy=0;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(aFight>cFight)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ta.energy+=(c.energy/2);\n\t\t\t\t\t\t\t//it1.remove()\n\t\t\t\t\t\t\tc.energy=0;\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\tif(aFight>50)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\ta.energy+=(c.energy/2);\n\t\t\t\t\t\t\t\t//it1.remove();\n\t\t\t\t\t\t\t\tc.energy=0;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tc.energy+=(a.energy);\n\t\t\t\t\t\t\t\t//it2.remove();\n\t\t\t\t\t\t\t\ta.energy=0;\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}\n\t\t}\n\t\tfightMode = false;\n\t\t\n\t//Update rest energy and reset hasMoved\n\t\tfor (Critter c2: population) {\n\t\t\tc2.hasMoved = false;\n\t\t\tc2.energy -= Params.rest_energy_cost;\n\t\t}\n\t\t\n\t//Spawn offspring and add to population\n\t\tpopulation.addAll(babies);\n\t\tbabies.clear();\n\t\t\n\t\tIterator<Critter> it3 = population.iterator();\n\t\twhile(it3.hasNext())\n\t\t{\n\t\t\tif(it3.next().energy<=0)\n\t\t\t\tit3.remove();\n\t\t}\n\t//Create new algae\n\t\tfor (int i = 0; i < Params.refresh_algae_count; i++) {\n\t\t\ttry {\n\t\t\t\tmakeCritter(\"Algae\");\n\t\t\t} catch (InvalidCritterException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"public void solucioInicial2() {\n int grupsRecollits = 0;\n for (int i=0; i<numCentres*helisPerCentre; ++i) {\n Helicopter hel = new Helicopter();\n helicopters.add(hel);\n }\n int indexHelic = 0;\n int indexGrup = 0;\n int places = 15;\n while (indexGrup < numGrups) {\n int trajecte[] = {-1,-1,-1};\n for (int i=0; i < 3 && indexGrup<numGrups; ++i) {\n Grupo grup = grups.get( indexGrup );\n if (places - grup.getNPersonas() >= 0) {\n places -= grup.getNPersonas();\n trajecte[i] = indexGrup;\n indexGrup++;\n\n }\n else i = 3;\n }\n Helicopter helicopter = helicopters.get( indexHelic );\n helicopter.addTrajecte( trajecte, indexHelic/helisPerCentre );\n places = 15;\n indexHelic++;\n if (indexHelic == numCentres*helisPerCentre) indexHelic = 0;\n }\n }",
"public void hitunganRule2(){\n penebaranBibitSedikit = 1200;\r\n hariPanenLama = 110;\r\n \r\n //menentukan niu Penebaran Bibit\r\n nBibit = (1500 - penebaranBibitSedikit) / (1500 - 500);\r\n \r\n //menentukan niu hari panen Lama\r\n if ((hariPanenLama >=100) && (hariPanenLama <=180)) {\r\n nPanen = (hariPanenLama - 100) / (180 - 100);\r\n }\r\n \r\n //tentukan alpha predikat (karena grafik segitiga)\r\n if (nBibit < nPanen) {\r\n a2 = nBibit;\r\n }else if (nBibit > nPanen) {\r\n a2 = nPanen;\r\n }\r\n \r\n //tentukan Z2\r\n z2 = (penebaranBibitSedikit + hariPanenLama) * 700;\r\n System.out.println(\"a2 = \" + String.valueOf(a2));\r\n System.out.println(\"z2 = \" + String.valueOf(z2));\r\n }",
"public void companyPayRoll(){\n calcTotalSal();\n updateBalance();\n resetHoursWorked();\n topBudget();\n }",
"public void cheat() {\r\n\t\t\t\tnourriture += population*10;\r\n\t\t\t\tarmee += population/2;\r\n\t\t\t\tpopulation += armee*tailleArmee;\r\n\t\t\t}",
"@Test\n\tpublic void testSellLand1() throws GameControlException {\n\t\tint result = GameControl.sellLand(50, 22, 1000);\n\t\tassertEquals(1100, result);\n\t}",
"public void MemberOfParliament(){\n this.spendings_sum=0d;\n this.spending_repair_office=0d;\n this.how_many_trips=0;\n this.longest_trip=0;\n this.was_in_italy = false;\n }",
"final void moureExercit(final Main campB) {\n\n Random r = new Random();\n\n int indexRandom = r.nextInt(soldats.size());\n\n if (!soldats.get(indexRandom).isHaArribat()) {\n soldats.get(indexRandom).mouSoldat(ubicacio, campB);\n\n }\n\n }",
"private void chargeInterest() {\n for(Map.Entry<String, Customer> entry : customers.entrySet()) {\n Customer customer = entry.getValue();\n payInterest(customer);\n }\n //collect interests from hasLoans\n for(Map.Entry<String, Customer> entry : hasloans.entrySet()) {\n Customer customer = entry.getValue();\n collectInterest(customer);\n }\n\n }",
"int getIndividualStamina();",
"public void faiBagnetto() {\n System.out.println(\"Scrivere 1 per Bagno lungo, al costo di 150 Tam\\nSeleziona 2 per Bagno corto, al costo di 70 Tam\\nSeleziona 3 per Bide', al costo di 40 Tam\");\n\n switch (creaturaIn.nextInt()) {\n case 1 -> {\n puntiVita += 50;\n puntiFelicita -= 30;\n soldiTam -= 150;\n }\n case 2 -> {\n puntiVita += 30;\n puntiFelicita -= 15;\n soldiTam -= 70;\n }\n case 3 -> {\n puntiVita += 10;\n puntiFelicita -= 5;\n soldiTam -= 40;\n }\n }\n checkStato();\n }",
"public static void main(String[] args) {\n\t\t\n\t\tint CarInsurance = 370+170;\n\t\tint HealthInsurancePlusCollege = 1400+170;\n\t\tint aptFees = 650;\n\t\tint perHour = 90 ;\n\t\tint interestRate = 16;\n\t\tint insource = perHour * 160 *(100-interestRate)/100 ;\n\t\tint trainFee = 150;\n\t\tint MonthlyFoodAndExpense = 500;\n\t\tint LoanPaymentMonthly = 800;\n\t\tint save = insource - (CarInsurance + HealthInsurancePlusCollege + aptFees + trainFee + MonthlyFoodAndExpense + LoanPaymentMonthly);\n\n\t\tSystem.out.print(\"Salary = \"+ insource + \" yearly Salary = \" +insource * 12 +\" Saved money = \" + save + \", In year = \" + save *12);\n\n\n\t}",
"private void nourrireLePeuple() {\n\t\t\tint totalDepense = (int)((population * 1) + (populationColoniale * 0.8) + ((armee + armeeDeployee()) * nourritureParArmee));\r\n\t\t\tnourriture -= totalDepense;\r\n\t\t\tenFamine = (nourriture > 0) ? false : true;\r\n\t\t}",
"private void Deciderank() {\n\n\t\tfor(int i=0;i<banknode;i++){\n\t\t\tif(i<banknode*a1) {Bank.get(i).CAR=megaCAR;Bank.get(i).forcelev=megaCAR;}\n\t\t\tif(banknode*a1<=i&&i<=banknode*a2) {Bank.get(i).CAR=mediumCAR;Bank.get(i).forcelev=mediumCAR;}\n\t\t\tif(banknode*a2<i) {Bank.get(i).CAR=smallCAR;Bank.get(i).forcelev=smallCAR;}\n\t\t\t}\n\t\t}",
"public void precio4e(){\n precioHabitaciones = precioHabitaciones + (cantidadHabitaciones * numeroCamas);\n\n //Restaurante\n if(capacidadRestaurant < 30){\n precioHabitaciones = precioHabitaciones + 10;\n } else if (capacidadRestaurant > 29 && capacidadRestaurant < 51){\n precioHabitaciones = precioHabitaciones + 30;\n } else if (capacidadRestaurant > 50){\n precioHabitaciones = precioHabitaciones + 50;\n }\n\n //Gimnasio\n switch (gimnasio){\n case \"A\":\n precioHabitaciones = precioHabitaciones + 50;\n break;\n case \"B\":\n precioHabitaciones = precioHabitaciones + 30;\n break;\n }\n\n }",
"public synchronized void park(Station s) throws Exception{\r\n\t\tif(!s.equals(this.last_routine.getDestination())){System.out.println(\"CHOOSE THE STATION OF YOUR ROUTINE\");throw new Exception(\"WRONG STATION\");}\r\n\t\ts.remove_user(this);\r\n\t\tif(!s.isState()){System.out.println(\"offline - out of order!\");throw new Exception(\"OFFLINE\");}\r\n\t\tif(this.bicycle == null){System.out.println(\"no bicycle to park\");}\r\n\t\tthis.bicycle.setTotal_time_spent(this.bicycle.getTotal_time_spent()+this.bicycle.count_bike_time(this.last_routine.getSource(), this.last_routine.getDestination()));\r\n\t\tthis.setPosition(s.getPosition());\r\n\t\tif(this.bicycle instanceof Bicycle_Mech){\r\n\t\t\tif(s.getPlaces_mech().size()-s.count_mech() == 0){System.out.println(\"no more mech bicycle slots available\");}\r\n\t\t\telse{\r\n\t\t\t\tif(s instanceof Station_Plus && this.card!=null){this.card.setCredits(this.card.getCredits()+5);}\r\n\t\t\t\tfor(Map.Entry<Slot,Bicycle_Mech> me:s.getPlaces_mech().entrySet()){\r\n\t\t\t\t\tif(me.getValue()==null){\r\n\t\t\t\t\t\ts.getPlaces_mech().put(me.getKey(), (Bicycle_Mech)this.bicycle);s.setReturn_times(s.getReturn_times()+1);\r\n\t\t\t\t\t\tif(this.card!=null){System.out.println(this.getUserName() + \" Credits remaining: \" + this.getCard().getCredits());}\r\n\t\t\t\t\t\tSystem.out.println(this.getUserName() + \" PAY: \" + this.pay(this.last_routine, this.bicycle, this.bicycle.getBank_card_to_use()));\r\n\t\t\t\t\t\tthis.last_routine = null;\r\n\t\t\t\t\t\ts.notify_users();\r\n\t\t\t\t\t\tthis.bicycle.setUser(null);\r\n\t\t\t\t\t\tthis.bicycle.setBank_card_to_use(null);\r\n\t\t\t\t\t\tthis.bicycle = null;\r\n\t\t\t\t\t\tthis.setPosition(s.getPosition());\r\n\t\t\t\t\t\tbreak;\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\tif(this.bicycle instanceof Bicycle_Elec){\r\n\t\t\tif(s.getPlaces_elec().size()-s.count_elec() == 0){System.out.println(\"no more elec bicycle slots available\");}\r\n\t\t\telse{\r\n\t\t\t\tif(s instanceof Station_Plus && this.card!=null){this.card.setCredits(this.card.getCredits()+5);}\r\n\t\t\t\tfor(Map.Entry<Slot,Bicycle_Elec> me:s.getPlaces_elec().entrySet()){\r\n\t\t\t\t\tif(me.getValue()==null){\r\n\t\t\t\t\t\ts.getPlaces_elec().put(me.getKey(), (Bicycle_Elec)this.bicycle);s.setReturn_times(s.getReturn_times()+1);\r\n\t\t\t\t\t\tif(this.card!=null){System.out.println(this.getUserName() + \" Credits remaining: \" + this.getCard().getCredits());}\r\n\t\t\t\t\t\tSystem.out.println(this.getUserName() + \" PAY: \" + this.pay(this.last_routine, this.bicycle,this.bicycle.getBank_card_to_use()));\r\n\t\t\t\t\t\tthis.last_routine = null;\r\n\t\t\t\t\t\ts.notify_users();\r\n\t\t\t\t\t\tthis.bicycle.setUser(null);\r\n\t\t\t\t\t\tthis.bicycle.setBank_card_to_use(null);\r\n\t\t\t\t\t\tthis.bicycle = null;\r\n\t\t\t\t\t\tthis.setPosition(s.getPosition());\r\n\t\t\t\t\t\tbreak;\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}",
"int gas_station() {\n int sol = 0; // numar minim de opriri\n int fuel = m; // fuel este cantitatea curenta de combustibil din rezervor (a.k.a cat a ramas)\n\n for (int i = 1; i <= n; ++i) {\n fuel -= (dist[i] - dist[i - 1]); // ma deplasez de la locatia anterioara la cea curenta\n // intotdeauna cand ajung intr-o benzinarie ma asigur am suficient\n // combustibil sa ajung la urmatoarea - initial pot sa ajung de la A la dist[1]\n\n // daca nu am ajuns in ultima benziarie\n // verifica daca trebuie sa reincarc (rezervor gol sau cantitate insuficienta pentru a ajunge la benzinaria urmatoare)\n if (i < n && (fuel == 0 || dist[i+1] - dist[i] > fuel)) {\n ++sol;\n fuel = m;\n }\n }\n\n return sol;\n }",
"void placeToOutnumberEnemies(int numberOfArmies)\n\t{\n\tboolean[] outnumber = new boolean[countries.length];\n\tfor (int i = 0; i < countries.length; i++)\n\t\t{\toutnumber[i] = false;\t}\n\n\tfor (int i = 0; i < countries.length; i++)\n\t\t{\n\t\tif (countries[i].getOwner() != ID)\n\t\t\t{\n\t\t\t// find out if we outnumber this guy from somewhere\n\t\t\tCountry[] neigbors = countries[i].getAdjoiningList();\n\t\t\tfor (int n = 0; n < neigbors.length; n++)\n\t\t\t\t{\n\t\t\t\tif (neigbors[n].getOwner() == ID && neigbors[n].getArmies() > countries[i].getArmies())\n\t\t\t\t\t{\toutnumber[i] = true;\t}\n\t\t\t\t}\n\t\t\t}\n\t\telse\n\t\t\t{\t// we own it, so just say we outnumber it\n\t\t\toutnumber[i] = true;\n\t\t\t}\n\t\t}\n\n\t// So now reenforce all the non-outnumbered countries that we can\n\tfor (int i = 0; i < countries.length && numberOfArmies > 0; i++)\n\t\t{\n\t\tif (! outnumber[i])\n\t\t\t{\n\t\t\t// Find our strongest country that borders it\n\t\t\tint armies = 0;\n\t\t\tCountry us = null;\n\t\t\tCountry[] neigbors = countries[i].getAdjoiningList();\n\t\t\tfor (int n = 0; n < neigbors.length; n++) \n\t\t\t\t{\n\t\t\t\tif (neigbors[n].getOwner() == ID && neigbors[n].getArmies() > armies)\n {\n\t\t\t\t\tus = neigbors[n];\n armies = neigbors[n].getArmies();\n System.out.println(\"EvilPixie running fixed code path\");\n }\n\t\t\t\t}\n\t\t\tif (us != null)\n\t\t\t\t{\n\t\t\t\tint numToPlace = countries[i].getArmies() - us.getArmies();\n\t\t\t\tnumToPlace = Math.max(numToPlace, 1);\n\t\t\t\tboard.placeArmies(numToPlace, us);\n\t\t\t\tnumberOfArmies -= numToPlace;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\tif (numberOfArmies > 0)\n\t\t{\n\t\tdebug(\"placeToOutnumberEnemies didn't use up all the armies: \"+numberOfArmies);\n\t\tplaceNearEnemies(numberOfArmies);\n\t\t}\n\t}",
"public static void worldTimeStep() {\r\n \t\r\n \t//remake the hash map based on the x and y coordinates of the critters\r\n \tremakeMap(population);\r\n \t\r\n \t//Iterate through the grid positions in the population HashMap\r\n \tIterator<String> populationIter = population.keySet().iterator();\r\n \twhile (populationIter.hasNext()) { \r\n String pos = populationIter.next();\r\n ArrayList<Critter> critterList = population.get(pos);\r\n \r\n //Iterate through the critters ArrayList \r\n ListIterator<Critter> currCritter = critterList.listIterator();\r\n while(currCritter.hasNext()) {\r\n \tCritter thisCritter = currCritter.next();\r\n \tthisCritter.hasMoved = false;\r\n \tthisCritter.doTimeStep();\r\n \tif(thisCritter.hasMoved || thisCritter.getEnergy() <= 0) {\r\n \t\tcurrCritter.remove();\r\n \t} else {\r\n \t\tcurrCritter.set(thisCritter);\r\n \t}\r\n }\r\n population.replace(pos, critterList);\r\n }\r\n \t\r\n \tfixPopulation();\r\n \tmergePopulationMoved(populationMoved);\r\n \t\r\n \tdoEncounters();\r\n \t\r\n \tfixPopulation();\r\n \tmergePopulationMoved(populationMoved); //Stage 1 Complete\r\n \r\n \t//deduct resting energy cost from all critters in the hash map\r\n \t//could do a FOR EACH loop instead of iterator -- fixed\r\n \tpopulationIter = population.keySet().iterator();\r\n \twhile(populationIter.hasNext()) {\r\n \t\tString pos = populationIter.next();\r\n ArrayList<Critter> critterList = population.get(pos);\r\n \r\n //Iterate through the Critters attached to the keys in the Hash Map\r\n ListIterator<Critter> currCritter = critterList.listIterator();\r\n while(currCritter.hasNext()) {\r\n \tCritter thisCritter = currCritter.next();\r\n \t//deduct the rest energy cost from each critter\r\n \tthisCritter.energy = thisCritter.energy - Params.REST_ENERGY_COST;\r\n \t//remove all critters that have died after reducing the rest energy cost\r\n \tif(thisCritter.getEnergy() <= 0) {\r\n \t\tcurrCritter.remove();\r\n \t} else {\r\n \t\tcurrCritter.set(thisCritter);\r\n \t}\r\n }\r\n population.replace(pos, critterList);\r\n \t}\r\n \t\r\n \tmergePopulationMoved(babies);\r\n \t\r\n \t\r\n \t//add the clovers in each refresh of the world \r\n \ttry {\r\n \t\tfor(int j = 0; j < Params.REFRESH_CLOVER_COUNT; j++) {\r\n \t\t\tcreateCritter(\"Clover\");\r\n \t\t}\r\n \t} catch(InvalidCritterException p) {\r\n \t\tp.printStackTrace();\r\n \t}\r\n }",
"public void bsetCostElements() {\n\t\t\t\n\t\t\t\n\t\tfor (int obj = 0; obj < finalLocation.length; obj++) {\n\t\t for (int time = 0; time < finalLocation[obj].length; time++) {\n\t\t\t\n\t\t bfCost[obj][time].bstorageCost=totalCostCalculation.btotalResidentCost[time][obj][finalLocation[obj][time]].bstorageCost;\n\t\t\t bfCost[obj][time].breadCost=totalCostCalculation.btotalResidentCost[time][obj][finalLocation[obj][time]].breadCost;\n\t\t\t bfCost[obj][time].bwriteCost=totalCostCalculation.btotalResidentCost[time][obj][finalLocation[obj][time]].bwriteCost;\n\t\t\t bfCost[obj][time].btranCost=totalCostCalculation.btotalResidentCost[time][obj][finalLocation[obj][time]].btranCost;\n\t\t\t \n\t\t\t //1. we calculate latency cost for two cases separately: when the object is in the hot tier or cool tier.\n\t\t\t if (finalLocation[obj][time]==0){//Object is in the cool tier\n\t\t\t\t bfCost[obj][time].bdelayCost=totalCostCalculation.btotalResidentCost[time][obj][0].bdelayCost;\n\t\t\t\t \n\t\t\t }else{// object is in both tiers and, in consequence, the latency cost of writes is the maximum latency of writing in both tiers, and the read latency is the one in hot tier.\n\t\t\t\t bfCost[obj][time].bedelCost=fc.bdelayMaxWriteReadCost(workloadGenerator.objectListRegion[obj], 1, obj, time);\n\t\t\t }\n\t\t\t \n\t\t /* 2. Here we calculate storage cost and transaction cost to make consistent data. This requires just write transaction. Since in our cost \n calculation make a computation for both read and writes.\n\t\t */\n\t\t \n\t\t if(finalLocation[obj][time]==1){//NOTE: in above cost storage, we calculate the cost of object in either in hot or cold tier. \n\t\t \t //So here we calculate the storage cost in cold tier when the object is in hot tier.\n\t\t \t bfCost[obj][time].bstorageCost=bfCost[obj][time].bstorageCost.add(totalCostCalculation.btotalResidentCost[time][obj][0].bstorageCost);\n\t\t bfCost[obj][time].bconsisCost=totalCostCalculation.btotalResidentCost[time][obj][0].bconsisCost;\n\t\t }\n\t\t\t bfCost[obj][time].bnonMigrationCost=bfCost[obj][time].bstorageCost.add(bfCost[obj][time].breadCost).add( bfCost[obj][time].bwriteCost).\n\t\t\t\t\t add(bfCost[obj][time].btranCost).add( bfCost[obj][time].bconsisCost).\n\t\t\t\t\t add(bfCost[obj][time].bdelayCost);\n\t\t\t\t\t //totalCostCalculation.btotalResidentCost[time][obj][finalLocation[obj][time]].bnonMigrationCost.add(bfCost[obj][time].bconsisCost);\n\t\t\t \n\t\t\t //3. We need to calculate just transfer cost between cold to hot tier. From hot to cold tier does not make sense because we have a copy of data in cold tier.\n\t\t if(breakPoint==1){//If breakPoint is ONE then for serving every user, the object for each time slot is transfered from Cold to Hot tier.\n\t\t \t \n\t\t }\n\t\t else if(time>0 && finalLocation[obj][time-1]==0 && finalLocation[obj][time]==1){\n\t\t\t bfCost[obj][time].bmigrationCost=totalCostCalculation.btotalMigrationCost[time][obj][finalLocation[obj][time-1]][finalLocation[obj][time]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\t\t\n\t}",
"public static void worldTimeStep() {\n\t\t//System.out.println(\"Time Step: \" + count);\n\t\tcount = count + 1;\n\t for (Critter A : Critter.population){\n\t if(A.energy<=0){\n\t\t\t\tA.isAlive = false;\n }\n else if(A.energy>0){\n\t A.isAlive=true;\n A.doTimeStep();\n if(A.energy<0){\n\t\t\t\t\tA.isAlive = false;\n\t\t\t\t}\n }\n\n }\n\t\tfor (Iterator<Critter> iterator = Critter.population.iterator(); iterator.hasNext();){\n\t\t\tCritter tmp = iterator.next();\n\t\t\tif (tmp.isAlive == false){\n\t\t\t\titerator.remove();\n\t\t\t}\n\t\t}\n\n encounters2();\n\n\t\tfor (Iterator<Critter> iterator = Critter.population.iterator(); iterator.hasNext();){\n\t\t\tCritter tmp = iterator.next();\n\t\t\tif (tmp.isAlive == false){\n\t\t\t\titerator.remove();\n\t\t\t}\n\t\t}\n\n\t\tmapCheck();\n\t\t// we have add reproduction\n\n\t\t// we have to add algae\n\t\tfor (int i = 0; i < Params.refresh_algae_count; i = i + 1){\n\t\t\t//Algae child = new Algae();\n\t\t\t//child.setEnergy(Params.start_energy);\n\t\t\t//makecritter takes care of anything\n\t\t\ttry{\n\t\t\t\tmakeCritter(\"Algae\");\n\t\t\t}\n\t\t\tcatch(InvalidCritterException e){\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t\t//deduct rest energy\n\t\tfor (Critter A : Critter.population){\n\t\t\tA.energy = A.getEnergy() - Params.rest_energy_cost;\n\t\t\tif(A.getEnergy()<=0){\n\t\t\t\tA.isAlive=false;\n\t\t\t}\n\t\t}\n\t\tfor (Iterator<Critter> iterator = Critter.population.iterator(); iterator.hasNext();){\n\t\t\tCritter tmp = iterator.next();\n\t\t\tif (tmp.isAlive == false){\n\t\t\t\titerator.remove();\n\t\t\t}\n\t\t}\n\t\t//babies add\n\t\tfor(Critter b: babies){\n\t\t\tb.isAlive=true;\n\t\t\tpopulation.add(b);\n\t\t}\n\t\t//not sure if this removes everything\n\t\tbabies.clear();\n\t}",
"private void applyLvlUpCost() {\n }",
"public static void main(String[] args) {\n SavingsAccount saver1=new SavingsAccount(2000);\n SavingsAccount saver2=new SavingsAccount(3000);\n int b,i;\n SavingsAccount.modifyInterestRate(4);//Enter this as a percentage number e.g 4 percent or 3.5 as oppposed to .04 or .035\n System.out.println(\"Here is the balance sheet for Saver 1: 4% Interest Rate\\n\");\n for(i=1;i<=12;i++) {//This is the list for saver 1\n\t saver1.calculateMonthlyInterest();\n\t System.out.println(\"Month\\t\"+i+String.format(\"\\t%2f\",saver1.getSavingBalance()));\n }\n System.out.println(\"\\nHere is the balance sheet for saver 2: 4% Interest Rate\\n\");\n for(i=1;i<=12;i++) {\n\t saver2.calculateMonthlyInterest();\n System.out.println(\"Month\\t\"+i+String.format(\"\\t%2f\",saver2.getSavingBalance()));\n }\n \n SavingsAccount.modifyInterestRate(5);//from here just copy and paste the saver1 and saver 2 loops\n System.out.println(\"Here is new balance sheet for Saver 1: 5% Interest Rate\\n\");\n for(i=1;i<=12;i++) {//This is the list for saver 1\n\t saver1.calculateMonthlyInterest();\n\t System.out.println(\"Month\\t\"+i+String.format(\"\\t%2f\",saver1.getSavingBalance()));\n }\n System.out.println(\"\\nHere is new balance sheet for Saver 1: 5% Interest Rate\\\\n\");\n for(i=1;i<=12;i++) {\n\t saver2.calculateMonthlyInterest();\n System.out.println(\"Month\\t\"+i+String.format(\"\\t%2f\",saver2.getSavingBalance()));\n }\n \n \n\t}",
"private void sharplyChange(){\r\n\t\t\tgovernmentLegitimacy -= 0.3;\r\n\t\t}",
"public void calculateCost()\n\t{\n\t\tLogManager lgmngr = LogManager.getLogManager(); \n\t\tLogger log = lgmngr.getLogger(Logger.GLOBAL_LOGGER_NAME);\n\t\tString s = \"\";\n\t\tint costperfeet = 0;\n\t\tif (this.materialStandard.equals(\"standard materials\") && this.fullyAutomated == false)\n\t\t\tcostperfeet = 1200;\n\t\telse if (this.materialStandard.equals(\"above standard materials\") && this.fullyAutomated == false)\n\t\t\tcostperfeet = 1500;\n\t\telse if(this.materialStandard.equals(\"high standard materials\") && this.fullyAutomated == false)\n\t\t\tcostperfeet = 1800;\n\t\telse if (this.materialStandard.equals(\"high standard materials\") && this.fullyAutomated == true)\n\t\t\tcostperfeet = 2500;\n\t\t\n\t\tint totalCost = costperfeet * this.totalArea;\n\t\t/*s = \"Total Cost of Construction is :- \";\n\t\twriter.printf(\"%s\" + totalCost, s);\n\t\twriter.flush();*/\n\t\tlog.log(Level.INFO, \"Total Cost of Construction is :- \" + totalCost);\n\t}",
"@Override public int conocerMonto(){\n\treturn 120;\n }",
"public Object setInitialHoldings()\r\n/* */ {\r\n\t\t\t\tlogger.info (count++ + \" About to setInitialHoldings : \" + \"Agent\");\r\n/* 98 */ \tthis.profit = 0.0D;\r\n/* 99 */ \tthis.wealth = 0.0D;\r\n/* 100 */ \tthis.cash = this.initialcash;\r\n/* 101 */ \tthis.position = 0.0D;\r\n/* */ \r\n/* 103 */ return this;\r\n/* */ }",
"public static double computeAccidentCosts(double demand, Link link, ArrayList<Integer> roadType){\n\n\t\t// in EUR per 1000 vehicle-km\n\t\tdouble costRateTable[][][] = {\n\t\t\t\t\n\t\t\t/*\tposition 1\n\t\t\t * \t\tcolumn 0: 'Außerhalb von bebauten Gebiet, Kfz-Straße'\n\t\t\t * \t\tcolumn 1: 'Innerhalb von bebauten Gebiet, Kfz-Straße'\n\t\t\t * \t\tcolumn 2: 'Außerhalb von bebauten Gebiet'\n\t\t\t * \t\tcolumn 3: 'Innerhalb von bebauten Gebiet'\n\t\t\t * \n\t\t\t * \tposition 2: number of lanes\n\t\t\t */\n\t\t\t\n\t\t\t// 'planfrei': positon 0 --> 0\n\t\t\t{\n\t\t\t\t{ 0 , 0 , 0 , 0 }, // 1 lane\n\t\t\t\t{ 23.165 , 23.165 , 0 , 0 }, // 2 lane\n\t\t\t\t{ 23.79 , 23.79 , 0 , 0 }, // 3 lane\n\t\t\t\t{ 23.79 , 23.79 , 0 , 0 } // 4 lane\n\t\t\t},\n\t\t\t// 'plangleich': positon 0 --> 1\n\t\t\t{\n\t\t\t\t{ 61.785 , 101.2 , 61.785 , 101.2 }, // 1 lane\n\t\t\t\t{ 31.63 , 101.53 , 31.63 , 101.53 }, // 2 lane\n\t\t\t\t{ 37.84 , 82.62 , 34.735 , 101.53 }, // 3 lane\n\t\t\t\t{ 0 , 0 , 0 , 101.53 } // 4 lane\n\t\t\t},\n\t\t\t// tunnel: positon 0 --> 2\n\t\t\t{\n\t\t\t\t{ 9.56 , 15.09 , 9.56 , 15.09 }, // 1 lane\n\t\t\t\t{ 11.735 , 14.67425 , 0 , 17.57 }, // 2 lane\n\t\t\t\t{ 11.735 , 11.735 , 0 , 17.57 }, // 3 lane\n\t\t\t\t{ 9.11 , 9.11 , 0 , 17.57 } // 4 lane\n\t\t\t}\t\t\n\t\t};\n\t\t\n\t\tdouble costRate = costRateTable[roadType.get(0)][roadType.get(2)-1][roadType.get(1)]; \n\t\tif (costRate == 0) {\n\t\t\tlog.warn(\"Accident cost rate for link \" + link.getId().toString() + \" is 0. (roadtype: \" + roadType.toString() + \")\" );\n\t\t}\n\t\t\n\t\tdouble vehicleKm = demand * (link.getLength() / 1000.);\n\t\t\n\t\tdouble accidentCosts = costRate * (vehicleKm / 1000.);\n\t\t\n\t\treturn accidentCosts;\t\t\n\t}",
"public static void buyHouse(int i,int nOH, int a){\n\t\tif(whoOwnsIt[a] == i){\t\r\n\t\t\tif(nOH <= (4 - avenueLevel[a]) && avenueLevel[a] != 4 && avenueLevel[a] != 4 ){\t\r\n\t\t\t\tfor(int x = 0; x < avenue.length; x++){\r\n\t\t\t\t\tif(a == avenue[x]){\r\n\t\t\t\t\t\tplayerMoney[i] -= nOH*costOfBuilding[a];\r\n\t\t\t\t\t\tavenueLevel[a] += nOH;// nOH = number of houses\r\n\t\t\t\t\t\tWindow.payment.setText(\"You bought \" + nOH + \" houses for $\" + nOH*costOfBuilding[a]); \r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}else{\r\n\t\t\t\tif(avenueLevel[a] >= 4){\r\n\t\t\t\t\tWindow.answer.setText(\"You cant buy houses any more\");\r\n\t\t\t\t}else{\r\n\t\t\t\t\tWindow.answer.setText(\"You cant buy that many houses, you own \" + avenueLevel[a]);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}else{\r\n\t\t\tWindow.answer.setText(\"You dont own that\");\r\n\t\t}\r\n\t}",
"@Override\n\tvoid get_cost_per_sqarefeet() {\n\t\tcost=1800;\n\t}",
"public static Map<Integer, TaxCategory> britishColumbia() {\n\n\t\t\tHashMap<Integer, TaxCategory> categories = new HashMap<Integer, TaxCategory>();\n\t\t\ttry {\n\t\t\t\t//INSERT YOUR CODE HERE - Using the specification given on Federal\n\t\t\t\t//You will need to study how Manitoba is being implemented\n\t\t\t\tTaxCategory cat1 = new TaxCategory(5.06, 0, 42184.00); // Tax Category 1 for BC\n\t\t\t\tcategories.put( 1, cat1 );//puts both the key and the Taxcategory(value) into the hashmap for category 1\n\t\t\t\tTaxCategory cat2 = new TaxCategory(7.70, 42184.01, 84369.00); // Tax Category 2 for BC\n\t\t\t\tcategories.put( 2, cat2 );//puts both the key and the Taxcategory(value) into the hashmap for category 2\n\t\t\t\tTaxCategory cat3 = new TaxCategory(10.50, 84369.01, 96866.00); // Tax Category 3 for BC\n\t\t\t\tcategories.put( 3, cat3 );//puts both the key and the Taxcategory(value) into the hashmap for category 3\n\t\t\t\tTaxCategory cat4 = new TaxCategory(12.29, 96866.01, 117623.00); // Tax Category 4 for BC\n\t\t\t\tcategories.put( 4, cat4 );//puts both the key and the Taxcategory(value) into the hashmap for category 4\n\t\t\t\tTaxCategory cat5 = new TaxCategory(14.70, 117623.01, 159483.00); // Tax Category 5 for BC\n\t\t\t\tcategories.put( 5, cat5 );//puts both the key and the Taxcategory(value) into the hashmap for category 5\n\t\t\t\tTaxCategory cat6 = new TaxCategory(16.80, 159483.01, 222420.00); // Tax Category 6 for BC\n\t\t\t\tcategories.put( 6, cat6 );//puts both the key and the Taxcategory(value) into the hashmap for category 6\n\t\t\t\tTaxCategory cat7 = new TaxCategory(20.50, 222420.01, 10000000); // Tax Category 7 for BC\n\t\t\t\tcategories.put( 7, cat7 );//puts both the key and the Taxcategory(value) into the hashmap for category 7\n\n\t\t\t} catch( Exception e ) {}\n\n\t\t\treturn categories;\n\t\t}",
"public void calcTroops() {\r\n\t\t//Based on how many troops the player owns this will add to their spendage with a minimum of 2\r\n\t\ttroopSpendage = (players.get(turnCounter).getCountries().size()) / 3;\r\n\t\tif (troopSpendage < 3) {\r\n\t\t\ttroopSpendage = 3;\r\n\t\t}\r\n\t\t//If a player owns an entire continent, they will get a continent bonus to their spendage\r\n\t\t//these counters record how much of a continent the player owns\r\n\t\tint Kjersia = 0;\r\n\t\tint Estoveria = 0;\r\n\t\tint Moa = 0;\r\n\t\tint Shilov = 0;\r\n\t\tint Tormudd = 0;\r\n\t\tint Eschilles = 0;\r\n\t\t\r\n\t\t//increment the corresponding continent counter based on the continent value stored in the country objects the player owns\r\n\t\tfor (Country c:players.get(turnCounter).getCountries()) {\r\n\t\t\tswitch (c.getContinent()) {\r\n\t\t\tcase \"Kjersia\": Kjersia++;\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"Estoveria\": Estoveria++;\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"Moa\": Moa++;\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"Shilov\": Shilov ++;\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"Tormudd\": Tormudd++;\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"Eschilles\": Eschilles++;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//If the player owns all countries in a continent (each continent has different numbers of countries), give them a corresponding troop bonus as decided by the rules of the game\r\n\t\tif (Kjersia == 4) {\r\n\t\t\ttroopSpendage += 2;\r\n\t\t}\r\n\t\tif (Estoveria == 8) {\r\n\t\t\ttroopSpendage += 5;\r\n\t\t}\r\n\t\tif (Moa == 9) {\r\n\t\t\ttroopSpendage += 6;\r\n\t\t}\r\n\t\tif (Shilov == 4) {\r\n\t\t\ttroopSpendage += 3;\r\n\t\t}\r\n\t\tif (Tormudd == 5) {\r\n\t\t\ttroopSpendage += 3;\r\n\t\t}\r\n\t\tif (Eschilles == 12) {\r\n\t\t\ttroopSpendage += 7;\r\n\t\t}\r\n\r\n\t\t//If a player owns the card and owns the coresponding country on that card they get one extra troop\r\n\t\tfor(Card C: players.get(turnCounter).getCards()) \r\n\t\t\tfor(Country co: players.get(turnCounter).getCountries())\r\n\t\t\t\tif (C.getCountry().equals(co.getName()))\r\n\t\t\t\t\ttroopSpendage++;\t\t\r\n\t\t\r\n\t\t//Updates the display of how many troops the player has to deploy\r\n\t\ttroopsToDeploy.setText(\"Troops to Deploy: \" + troopSpendage);\r\n\t}",
"void bust() {\n\t\t_loses++;\n\t\t//_money -= _bet;\n\t\tclearHand();\n\t\t_bet = 0;\n\t}",
"public int checkCastle(Board b, char race) {\n Set<Coordinate> opponentPieces = (race == 'b') ? b.white : b.black;\n Set<Coordinate> opponentMoves = new HashSet<Coordinate>();\n\n for (Coordinate each : opponentPieces) {\n if (b.board[each.x][each.y] instanceof King) {\n continue;\n }\n if (b.board[each.x][each.y] instanceof Pawn) {\n opponentMoves.addAll(((Pawn) (b.board[each.x][each.y])).killableMoves(b));\n } else {\n opponentMoves.addAll(b.board[each.x][each.y].displayMoves(b));\n }\n }\n\n switch (race) {\n case 'b':\n if (b.board[0][4] != null && b.board[0][4].move == 0) {\n int i = 0;\n if (b.board[0][0] != null && b.board[0][0].move == 0) {\n if (b.board[0][1] == null && b.board[0][2] == null && b.board[0][3] == null) {\n if (!opponentMoves.contains(new Coordinate(0, 2)) && !opponentMoves.contains(new Coordinate(0, 3))\n && !opponentMoves.contains(new Coordinate(0, 4))) {\n i++;\n }\n }\n }\n\n if (b.board[0][7] != null && b.board[0][7].move == 0) {\n if (b.board[0][5] == null && b.board[0][6] == null) {\n if (!opponentMoves.contains(new Coordinate(0, 6)) && !opponentMoves.contains(new Coordinate(0, 5))\n && !opponentMoves.contains(new Coordinate(0, 4))) {\n i += 10;\n }\n }\n }\n return i;\n }\n break;\n\n case 'w':\n if (b.board[7][4] != null && b.board[7][4].move == 0) {\n int i = 20;\n if (b.board[7][0] != null && b.board[7][0].move == 0) {\n if (b.board[7][1] == null && b.board[7][2] == null && b.board[7][3] == null) {\n if (!opponentMoves.contains(new Coordinate(7, 2)) && !opponentMoves.contains(new Coordinate(7, 3))\n && !opponentMoves.contains(new Coordinate(7, 4))) {\n i++;\n }\n }\n }\n\n if (b.board[7][7] != null && b.board[7][7].move == 0) {\n if (b.board[7][5] == null && b.board[7][6] == null) {\n if (!opponentMoves.contains(new Coordinate(7, 6)) && !opponentMoves.contains(new Coordinate(7, 5))\n && !opponentMoves.contains(new Coordinate(7, 4))) {\n i += 10;\n }\n }\n }\n return i;\n }\n break;\n }\n return 69;\n }",
"void financialDistrict() {\n location = \"financialDistrict\";\n\n System.out.print(\"______________________________________________________________\\n\");\n System.out.println(\"\\n////// FINANCIAL DISTRICT //////\");\n System.out.println(\"\\nYou have entered the Financial District!\");\n System.out.println(\"People are everywhere, traffic is busy. The buildings are high, great for swinging!\");\n\n //Ask user if they want to explore financial district or go back to base\n System.out.println(\"Please enter [1] if you would like explore | Enter [2] if you would like to go back to base: \");\n userSwings = input.nextInt();\n\n if (userSwings == 1) {\n System.out.print(\"______________________________________________________________\\n\");\n System.out.println(\"\\nYour spider-sense goes off!!\");\n System.out.println(\"You hear sirens, it sounds like a crime!\");\n\n System.out.println(\"Do you wish to help? Enter 'yes' or 'no\");\n String userChoice = input.nextLine();\n userChoice = input.nextLine();\n\n //If user wishes to fight crime, run a crime method within the crime class\n if (userChoice.equals(\"yes\")) {\n c.kidnap();\n avengersTower();\n } else if (userChoice.equals(\"no\")) {\n avengersTower();\n }\n } else if (userSwings == 2) {\n avengersTower();\n } else {\n System.out.println(\"Please enter either 1 or 2!!\");\n financialDistrict();\n }\n }",
"@Override\r\n public void placeArmy(Integer reinforcementArmy) {\r\n\r\n Integer currentPlayerID = playerID;\r\n HashSet<String> conqueredCountryByThisPlayer = gameData.gameMap.getConqueredCountries(currentPlayerID);\r\n\r\n System.out.println();\r\n System.out.println(\"**** Reinforcement Phase Begins for player \" + this.playerName + \"..****\\n\");\r\n\r\n String strongestCountry = \"\";\r\n Integer strongestCountryArmyCount = Integer.MIN_VALUE;\r\n Integer currentCountryArmyCount = 0;\r\n for(String country: conqueredCountryByThisPlayer){\r\n currentCountryArmyCount = gameData.gameMap.getCountry(country).getCountryArmyCount();\r\n if(strongestCountryArmyCount < currentCountryArmyCount){\r\n strongestCountry = country;\r\n strongestCountryArmyCount = currentCountryArmyCount;\r\n }\r\n }\r\n gameData.gameMap.getCountry(strongestCountry).addArmy(reinforcementArmy);\r\n System.out.println(\"\\nReinforcement is done for player \"+playerName+\". Here is an overview. \\n\");\r\n for(String country: conqueredCountryByThisPlayer){\r\n System.out.println(\"Country: \"+country+\", Army Count: \"+gameData.gameMap.getCountry(country).getCountryArmyCount());\r\n }\r\n }",
"public static void main(String[] args) {\n // Q1: number of hours in a day (byte)\n byte numberOfHoursInaDay =24;\n System.out.println(\"\\nnumberOfHoursInaDay:24 \");\n // Q2.Max.no of days in an year\n short maxNumberOfTheDayInaYear = 366;\n System.out.println(\"\\nmaxNumberOfTheDaysInaYear:366\");\n // Q3.Total number of employees in an organization\n int totalNumberOfEmployeesInIbm = 50000;\n System.out.println(\"\\ntotalNumberOfEmployeesInIbm:50000\");\n //Q4.Population in a country\n long numberOfPopulation = 2000000000L;\n System.out.println(\"\\nnumberOfPopulation : 2000000000L\");\n //Q5.Interest rate\n float interestRate = 1.9f;\n System.out.println(\"\\\\nCurrent interest rate:\\\" + interestRate\");\n //Q6. Balance in a bank account\n long accountBalance = 50000000L;\n System.out.println(\"\\naccountBalance = 50000000L\");\n boolean doesTheSunRiseFromTheWest = true;\n System.out.println(\"doesTheSunRiseFromTheWest? : \" + doesTheSunRiseFromTheWest);\n\n // Q7.Initials of your name\n char firstInitial = 'S';\n char lastInitial = 'M';\n System.out.println(\"My initials: \" +firstInitial + lastInitial);\n\n\n\n\n\n }",
"public double getCoveredSlipAnnualLease(){//added by Nathalie\n double annualLeaseAmount = COVERED_SLIP_BY_LINEAR_FOOT * lenght;\n return annualLeaseAmount;\n }",
"public static void main(String[] args) {\n City city = new City(60, 200);\n\n City city2 = new City(180, 200);\n\n City city3 = new City(80, 180);\n City city4 = new City(140, 180);\n\n City city5 = new City(20, 160);\n\n City city6 = new City(100, 160);\n\n City city7 = new City(200, 160);\n\n City city8 = new City(140, 140);\n\n City city9 = new City(40, 120);\n\n City city10 = new City(100, 120);\n\n City city11 = new City(180, 100);\n\n City city12 = new City(60, 80);\n\n City city13 = new City(120, 80);\n City city14 = new City(180, 60);\n City city15 = new City(20, 40);\n\n City city16 = new City(100, 40);\n\n City city17 = new City(200, 40);\n City city18 = new City(20, 20);\n\n City city19 = new City(60, 20);\n City city20 = new City(160, 20);\n List<City> list=new ArrayList<City>();\n list.add(city);list.add(city2);\n list.add(city3);\n list.add(city4);\n list.add(city5);\n list.add(city6);\n list.add(city7);\n list.add(city8);\n list.add(city9);\n list.add(city10);\n list.add(city11);\n list.add(city12);\n list.add(city13);\n list.add(city14);\n list.add(city15);\n list.add(city16);\n list.add(city17);\n list.add(city18);\n list.add(city19);\n list.add(city20);\n\n // Initialize population\n Population pop = new Population(100, true,list);\n System.out.println(\"Initial distance: \" + pop.getBestTour().getDistance());\n\n // Evolve population for 100 generations\n pop = Ga.evolvePopulation(pop);\n for (int i = 0; i < 500; i++) {\n pop = Ga.evolvePopulation(pop);\n System.out.println(\"第\"+i+\"代\"+pop.getBestTour().getDistance());\n }\n\n // Print final results\n System.out.println(\"Finished\");\n System.out.println(\"Final distance: \" + pop.getBestTour().getDistance());\n System.out.println(\"Solution:\");\n System.out.println(pop.getBestTour());\n }",
"public void calculateCommission(){\r\n commission = (sales) * 0.15;\r\n //A sales Person makes 15% commission on sales\r\n }",
"private void recolteNourriture() {\r\n\t\t\t//1pop recolte toute la case\r\n\t\t\tint tempNourr = 0;\r\n\t\t\tint totalPop = population + populationColoniale;\r\n\t\t\tint limite = (totalPop < caseOwned.size()) ? totalPop : caseOwned.size();\r\n\t\t\tfor(int id = 0; id < limite; id++) {\r\n\t\t\t\ttempNourr += caseOwned.get(id).getFood();\r\n\t\t\t}\r\n\t\t\t//animaux\r\n\t\t\ttempNourr += howManyAnimal(Animaux.Bétail) * 10; //Ca mange de l'herbe, ça se tente.\r\n\t\t\ttempNourr += howManyAnimal(Animaux.Cervidés) * 7.5; //CARIBOUUUUUUUUU !!\r\n\t\t\ttempNourr += howManyAnimal(Animaux.Crabe) * 2; //ca pique les pied, a mort!!\r\n\t\t\ttempNourr += howManyAnimal(Animaux.Elephants) * 30; //polution sonore\r\n\t\t\ttempNourr += howManyAnimal(Animaux.Moutons) * 5; //kébab landais\r\n\t\t\ttempNourr += howManyAnimal(Animaux.Poissons) * 5; //croustibat\r\n\t\t\ttempNourr += howManyAnimal(Animaux.Chevaux) * 7; //lasagnes\r\n\t\t\ttempNourr += howManyAnimal(Animaux.Baleines) * 50; //*bruit de baleine virile*\r\n\t\t\t//aplication des bonus\r\n\t\t\ttempNourr *= (1 + (0.15 * scienceLvl) + (0.05 * (bonheur - baseBonheur))); // +15% par scienceLvl +5% par bonheur excedentaire, -5% par bonheur négatif\r\n\t\t\t\r\n\t\t\tnourriture += tempNourr;\r\n\t\t\t//bonus de conservation grâce au sel\r\n\t\t\tif(howManyRessource(StrategicRessource.Sel) > 0 && nourriture > 0) nourriture *= 1.10;\r\n\t\t\t//limitation de stockage\r\n\t\t\tint stockageMax = caseOwned.size() * 100 * scienceLvl;\r\n\t\t\tif(nourriture > stockageMax) nourriture = stockageMax;\r\n\t\t}",
"public void getCovid()\n\t{\n\t\tsetHealthStatus(HealthStatus.INFLECTED);\n\t\tdeathTimer = new PlayPauseTimer((int) (100*(1 - world.getMortalityRate())), new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tjustDie();\n\t\t\t\ttimerList.remove(deathTimer);\n\t\t\t}\n\t\t\t\n\t\t}, world.getRefreshTime());\n\t\ttimerList.add(deathTimer);\n\t\t\n\t\thospitalNeed = new Thread(new Runnable() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tworld.getHospital().acceptIndividual();\n\t\t\t\t\tgoHospital();\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\tgoHospitalTimer = new PlayPauseTimer(25, new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\thospitalNeed.start();\n\t\t\t\ttimerList.remove(goHospitalTimer);\n\t\t\t}\n\t\t\t\n\t\t}, world.getRefreshTime());\n\t\ttimerList.add(goHospitalTimer);\n\t\tworld.infect();\n\t}",
"private State calculatePM25(double longi, double lati) {\n Double breath = 0.0;\n Double density = PM25Density;\n boolean isConnected = ShortcutUtil.isNetworkAvailable(this);\n String inOutStr = aCache.getAsString(Const.Cache_Indoor_Outdoor);\n if(!ShortcutUtil.isStringOK(inOutStr)){\n inOutStr = String.valueOf(LocationService.Indoor);\n aCache.put(Const.Cache_Indoor_Outdoor,inOutStr);\n }\n inOutDoor = Integer.valueOf(inOutStr);\n /*double ratio;\n if (!isConnected) {\n ratio = this.getLastSevenDaysInOutRatio();\n FileUtil.appendStrToFile(DBRunTime,\"no network connection, using ratio == \"+ratio);\n density = ratio * density + (1-ratio)*density/3;\n FileUtil.appendStrToFile(DBRunTime,\"no network connection, using ratio to get density \"+density);\n if (ratio > 0.5) inOutDoor = LocationService.Indoor;\n else inOutDoor = LocationService.Outdoor;\n } else {\n if (inOutDoor == LocationService.Indoor) density /= 3;\n }*/\n\n double static_breath = ShortcutUtil.calStaticBreath(cacheUtil.getAsString(Const.Cache_User_Weight));\n\n if (static_breath == 0.0) {\n if(isBackground != null && isBackground.equals(bgStr))\n Toast.makeText(getApplicationContext(), Const.Info_Weight_Null, Toast.LENGTH_SHORT).show();\n static_breath = 6.6; // using the default one\n }\n if (mMotionStatus == Const.MotionStatus.STATIC) {\n breath = static_breath;\n } else if (mMotionStatus == Const.MotionStatus.WALK) {\n breath = static_breath * 2.1;\n } else if (mMotionStatus == Const.MotionStatus.RUN) {\n breath = static_breath * 6;\n }\n venVolToday += breath;\n breath = breath / 1000; //change L/min to m3/min\n PM25Today += density * breath;\n State state = new State(IDToday, aCache.getAsString(Const.Cache_User_Id), Long.toString(System.currentTimeMillis()),\n String.valueOf(longi),\n String.valueOf(lati),\n String.valueOf(inOutDoor),\n mMotionStatus == Const.MotionStatus.STATIC ? \"1\" : mMotionStatus == Const.MotionStatus.WALK ? \"2\" : \"3\",\n Integer.toString(numStepsForRecord), avg_rate, String.valueOf(venVolToday), density.toString(), String.valueOf(PM25Today), String.valueOf(PM25Source), 0, isConnected ? 1 : 0);\n numStepsForRecord = 0;\n return state;\n }",
"public void financialCrisis() {}",
"public double calculatedConsuption(){\nint tressToSow=0;\n\nif (getKiloWatts() >=1 && getKiloWatts() <= 1000){\n\ttressToSow = 8;\n}\nelse if (getKiloWatts() >=1001 && getKiloWatts ()<=3000){\n\ttressToSow = 35;\n}\nelse if (getKiloWatts() > 3000){\n\ttressToSow=500;\n}\nreturn tressToSow;\n}",
"private int spurEinteilen(boolean money)\n {\n Random rnd_spur = new Random();\n int spur = rnd_spur.nextInt(MAXIMALE_ANZAHL_ROW_OBSTACLE);\n int x = 0;\n\n int ab2;\n\n if (money) {\n ab2 = (int) Math.round((way_X[1] - way_X[0]) * ABSTAND_SPURLINIE_MONEY);\n } else {\n ab2 = (int)Math.round((way_X[1] - way_X[0]) * ABSTAND_SPURLINIE_OBSTACLE);\n }\n\n for (int i = 0; i < MAXIMALE_ANZAHL_ROW_OBSTACLE; i++)\n {\n if (spur == i)\n {\n x = way_X[i] + ab2;\n }\n }\n\n return x;\n }",
"private long census(ConstituentsAddressNode crt) throws P2PDDSQLException {\n\t\tif(DEBUG) System.err.println(\"ConstituentsModel:census: start\");\n\t\tif((crt==null)||(crt.n_data==null)){\n\t\t\tif(DEBUG) System.err.println(\"ConstituentsModel:census: end no ID\");\n\t\t\treturn 0;\n\t\t}\n\t\tlong n_ID = crt.n_data.neighborhoodID;\n\t\tif(DEBUG) System.err.println(\"ConstituentsModel:census: start nID=\"+n_ID);\n\t\tif(n_ID <= 0){\n\t\t\tif(DEBUG) System.err.println(\"ConstituentsModel:census: start nID=\"+n_ID+\" abandon\");\t\t\n\t\t\treturn 0;\n\t\t}\n\t\t\n\t\t\n\t\tlong result = 0;\n\t\tint neighborhoods[] = {0};\n\t\t\n\t\tif(crt.isColapsed()){\n\t\t\tif(DEBUG) System.err.println(\"ConstituentsModel:census: this is colapsed\");\n\t\t\tresult = censusColapsed(crt, neighborhoods);\n\t\t}else{\n\t\t\tfor(int k=0; k<crt.children.length; k++) {\n\t\t\t\tif(!running){\n\t\t\t\t\tif(DEBUG) System.err.println(\"ConstituentsModel:census: start nID=\"+n_ID+\" abandon request\");\t\t\n\t\t\t\t\treturn 0;\n\t\t\t\t}\n\t\t\t\tConstituentsNode child = crt.children[k];\n\t\t\t\tif(child instanceof ConstituentsAddressNode) {\n\t\t\t\t\tresult += census((ConstituentsAddressNode)child);\n\t\t\t\t\tneighborhoods[0]++;\n\t\t\t\t}\n\t\t\t\tif(child instanceof ConstituentsIDNode)\n\t\t\t\t\tresult ++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tcrt.neighborhoods = neighborhoods[0];\n\t\tcrt.location.inhabitants = (int)result;\n\t\tcrt.location.censusDone = true;\n\t\t\n\t\tannounce(crt);\n\t\t\n\t\tif(DEBUG) System.err.println(\"ConstituentsModel:censusColapsed: start nID=\"+n_ID+\" got=\"+result);\t\t\n\t\treturn result;\n\t}",
"public static void main(String[] args) {\n\n\n\n double numberOfgallons = 5;\n\n double gallonstolitter = numberOfgallons*3.785;\n\n\n String result = numberOfgallons + \" gallons equal to: \"+gallonstolitter+ \" liters\";\n System.out.println(result);\n\n //=============================================\n /* 2. write a java program that converts litters to gallons\n 1 gallon = 3.785 liters\n 1 litter = 1/3.785\n*/\n\n /*double litter1 = 1/3.785;\n double l =10;\n double gallon1 = l*litter1;\n\n System.out.println(gallon1);\n //======================================================\n*/\n /*\n 3. manually calculate the following code fragements:\n\t\t\t\t1. int a = 200;\n\t\t\t\t\tint b = -a++ + - --a * a-- % 2\n\t\t\t\t\tb = ?\n\n */\n\n\n double numberOfLiters = 100;\n\n double LiterstoGallons = numberOfLiters/3.785;\n\n String result2 = numberOfLiters+\" liters equal to \"+LiterstoGallons+\" galons\";\n\n System.out.println(result2);\n\n\n\n\n\n\n\n\n\n\n\n\n\n int a = 200;\n int b = -a++ + - --a * a-- % 2;\n // b = -200 + - 200* 200%2 = -200;\n\n int x = 300;\n int y = 400;\n int z = x+y-x*y+x/y;\n // z= 300+400-300*400+300/400=700-120000+0(cunki int kimi qebul edir)= -119300;\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n }",
"public void getDanger(){\r\n\t\r\n\tif(isnow>0){ //is it snow?\r\n\t\t// There is snow, we set all spread indexes to 0\r\n\t\tset_AllSpreadIndexToZero();\r\n\t\t\r\n\t\tadjust_BUI();\r\n\t}else {\r\n\t\t\t//There is no snow on the ground we will compute the spread indexes and fire load\r\n\r\n\t\t\t//Calculate Fine fuel moisture\r\n\t\t\tcal_FineFuelMoisture();\r\n\t\t\t\r\n\t\t\t//calculate the drying factor for the day\r\n\t\t\tcal_DryFactor();\r\n\t\t\t\r\n\t\t\t// adjust fine fuel moist\t\t\r\n\t\t\tadjust_FineFuelMoisture();\r\n\t\t}\r\n\t\r\n\tif (precip>0.1){ // is it rain?\r\n\t\t//There is rain (precipitation >0.1 inch), we must reduce the build up index (BUO) by \r\n\t\t//an amount equal to rain fall\r\n\t\tadjust_BUI();\r\n\t}else{\r\n\t\t//After correct for rain, if any, we are ready to add today's dring factor to obtain the \r\n\t\t//current build up index\r\n\t\tincrease_BUIBYDryingFactor();\r\n\t\t\r\n\t\t//we will adjust the grass index for heavy fuel lags. The result will be the timber spread index\r\n\t\t//The adjusted fuel moisture, ADFM, Adjusted for heavy fuels, will now be computed.\r\n\t\tcal_AdjustedFuelMoist();\r\n\t\t\r\n\t\tif (ADFM>33){\r\n\t\t\tset_AllSpreadIndexToOne();\r\n\r\n\t\t\t}else{\r\n\t\t\t\t//whether wind>14? and calculate grass and timber spread index\r\n\t\t\t\tcal_GrassAndTimber();\r\n\t\t\t\t//Both BUI and Timber spread index are not 0?\r\n\t\t\t\tif (!((TIMBER==0)&(BUO==0))){\r\n\t\t\t\t\tcal_FireLoadRating();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n}",
"@Override\n\tpublic void seeIsland(Island island) {\n\t\tString name = island.getIslandName();\n\t\tStore store = island.getStore();\n\t\tHashMap<Goods, Integer> sellGoods = store.getSellGoods();\n\t\tHashMap<Goods, Integer> interestedGoods = store.getInteresedGoods();\n\t\tEquipment sellEquipment = store.getEquipment();\n\t\tgame.setCurrentChosenIsland(island);\n\t\tSystem.out.println(\"Island's name: \" + name);\n\t\tprintGoods(sellGoods, \"The goods that the store in this Island sell: \");\n\t\tprintGoods(interestedGoods, \"The Goods that the store in this island want to buy:\");\n\t\tSystem.out.println(\"\\n\" + \"Equipment: \" + sellEquipment.getName() + \" Price : \" + sellEquipment.getSellingPrice() + \"\\n\");\t\n\t\tboolean state = false;\n\t\twhile (state == false) {\n\t\t\tSystem.out.println(\"Choose your actions: \");\n\t\t\tSystem.out.println(\"(1) Go back!\");\n\t\t\tSystem.out.println(\"(2) See the routes to this Island\");\n\t\t\ttry \n\t\t\t{\n\t\t\t\tint selectedAction = scanner.nextInt();\n\t\t\t\tif (selectedAction <= 2 && selectedAction > 0) {\n\t\t\t\tstate = true;\n\t\t\t\tif (selectedAction == 1) {\n\t\t\t\t\tgame.backToMain(); \n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tgame.showTheRoute();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"Please choose from actions above\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(INPUT_REQUIREMENTS);\n\t\t\t\tscanner.nextLine();\n\t\t\t}\n\t\t}\t\n\t}",
"private void endFight(int i, int round) {\n\t\tcalcAndApplyDebrisfield();\t\n\t\tif(i == 0) { // Vicory for att\n\t\t\tdef_pb = getPb(defPlanetId);\n\t\t\tresDiff();\n\t\t\t\n\t\t\tint cargoSpace = getCargoSpace();\n\t\t\tlong maxMetal = (long)(def_pg.getMetal()/2);\n\t\t\tlong maxCrystal = (long)(def_pg.getCrystal()/2);\n\t\t\tlong maxDeut = (long)(def_pg.getDeut()/2);\n\t\t\tif((maxMetal+maxCrystal+maxDeut) <= cargoSpace) {\n\t\t\t\tbooty[0] = maxMetal;\n\t\t\t\tbooty[1] = maxCrystal;\n\t\t\t\tbooty[2] = maxDeut;\t\t\t\n\t\t\t}\n\t\t\telse {\n\t\t\t\tlong min = Math.min(maxMetal, Math.min(maxCrystal, maxDeut));\n\t\t\t\tif(min*3 <= cargoSpace) {\n\t\t\t\t\tbooty[0] = min;\n\t\t\t\t\tbooty[1] = min;\n\t\t\t\t\tbooty[2] = min;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tbooty[0] = cargoSpace/3;\n\t\t\t\t\tbooty[1] = cargoSpace/3;\n\t\t\t\t\tbooty[2] = cargoSpace/3;\n\t\t\t\t}\n\t\t\t\twhile((booty[0]+booty[1]+booty[2])<cargoSpace) {\n\t\t\t\t\tbooty[0] = booty[0] < maxMetal ? ++booty[0] : booty[0];\n\t\t\t\t\tbooty[1] = booty[1] < maxCrystal ? ++booty[1] : booty[1];\n\t\t\t\t\tbooty[2] = booty[2] < maxDeut ? ++booty[2] : booty[2];\n\t\t\t\t}\t\t\n\t\t\t}\n\t\t\tdef_pg.setMetal(def_pg.getMetal()-booty[0]);\n\t\t\tdef_pg.setCrystal(def_pg.getCrystal()-booty[1]);\n\t\t\tdef_pg.setDeut(def_pg.getDeut()-booty[2]);\n\t\t\t\n\t\t\twriteLog(true,true);\n\t\t\twriteLog(false,false);\n\t\t}\n\t\telse if(i == 1) { // Victory for def\n\t\t\twriteLog(false,true);\n\t\t\twriteLog(true,false);\n\t\t}\n\t\telse {// Draw\n\t\t\twriteLog(false,true);\n\t\t\twriteLog(false,false);\n\t\t}\n\t\trepairDef();\n\t\tapplyBattleResults();\t\t\n\t\tsaveDefDataset();\n\t}",
"@Override\n\tpublic double cost() {\n\t\treturn water.cost()+10;\n\t}",
"public static void main(String[] args) {\nScanner s=new Scanner(System.in);\nSystem.out.println(\"Enter the name\");\nString name=s.nextLine();\nSystem.out.println(\"Enter the address\");\nString address=s.nextLine();\nSystem.out.println(\"Number of room\");\nint room=s.nextInt();\nSystem.out.println(\"Number of persons\");\nint persons=s.nextInt();\nSystem.out.println(\"AC OR Non-AC\");\nString ac=s.next();\nSystem.out.println(\"Booking Date\");\nString booking=s.next();\nSystem.out.println(\"Checkout Date\");\nString checkout=s.next();\nLocalDate ds=LocalDate.parse(booking);\nLocalDate de=LocalDate.parse(checkout);\nlong total=ChronoUnit.DAYS.between(ds, de);\nlong total=0;int p=(person%2);\nSystem.out.println(\"Reg-Details: \");\nSystem.out.println(\"Name : \"+name);\nSystem.out.println(\"Address : \"+address);\nSystem.out.println(\"No.of rooms : \"+room);\nSystem.out.println(\"No.of.Guest : \"+persons);\nint ac_amount=0,flag=0;\nif(ac.equals(\"AC\"))\n{\n\tac_amount=100;\n\tflag=1;\n}\n\t\nelse\n{\n\tac_amount=0;\n\tflag=0;\n}\nif(flag==1)\n\tSystem.out.println(\"AC :Yes\");\nelse\n\tSystem.out.println(\"AC :No\");\n\n\n\nint rent=500,flag1=0;;\n\nif(persons==(room*2)+1)\n{\n\t\n\tint amount=(int)((500+ac_amount)*(persons*total))+250;\n\tSystem.out.print(\"Amount :\"+amount);\n}\n\t\nelse\n{\n\tint amount=(int)((500+ac_amount)*(persons*total));\n\tSystem.out.print(\"Amount :\"+amount);\n\t\n\t}\n\n}",
"private void createCNSHIsFullCNCHHasOnlyOnePlace() {\r\n createStudentList(new Student(\"Vasile Ana\", 10), new Student(\"Marin Alina\", 6), new Student(\"Ilie David\", 8), new Student(\"Gheorghe Alex\", 9));\r\n createSchoolList(new School(\"C.N.S.H.\", 0), new School(\"C.N.C.H.\", 1), new School(\"C.N.A.E.\", 10));\r\n createStudentPreferences(new LinkedList<>(Arrays.asList(schools[0], schools[1], schools[2])), new LinkedList<>(Arrays.asList(schools[0], schools[1], schools[2])), new LinkedList<>(Arrays.asList(schools[0], schools[1])), new LinkedList<>(Arrays.asList(schools[0], schools[2])));\r\n createSchoolPreferences(new LinkedList<>(Arrays.asList(students[3], students[0], students[1], students[2])), new LinkedList<>(Arrays.asList(students[0], students[2], students[1])), new LinkedList<>(Arrays.asList(students[0], students[1], students[3])));\r\n }",
"private HashMap<Integer, Integer> obtainBills(double amount, HashMap<Integer, Integer> bills)\n {\n if (amount == 0)\n return bills;\n HashMap<Integer, Integer> b;\n HashMap<Integer, Integer> k;\n if (amount >= 50 && typeOfCash.get(50) - bills.get(50) > 0)\n {\n k = new HashMap<>(bills);\n k.put(50, bills.get(50) + 1);\n b = obtainBills(amount - 50, k);\n if (b != null)\n return b;\n }\n if (amount >= 20 && typeOfCash.get(20) - bills.get(20) > 0)\n {\n k = new HashMap<>(bills);\n k.put(20, bills.get(20) + 1);\n b = obtainBills(amount - 20, k);\n if (b != null)\n return b;\n }\n if (amount >= 10 && typeOfCash.get(10) - bills.get(10) > 0)\n {\n k = new HashMap<>(bills);\n k.put(10, bills.get(10) + 1);\n b = obtainBills(amount - 10, k);\n if (b != null)\n return b;\n }\n if (amount >= 5 && typeOfCash.get(5) - bills.get(5) > 0)\n {\n k = new HashMap<>(bills);\n k.put(5, bills.get(5) + 1);\n b = obtainBills(amount - 5, k);\n if (b != null)\n return b;\n }\n return null;\n }",
"public void payEconomical() {\n if (this.balance >= 2.50) {\n this.balance -= 2.50;\n }\n }",
"public double getLodgingCost()\n\t{\n\t\tdouble temp = 0.0;\n\t\tswitch (this.cabin)\n\t\t{\n\t\t\tcase INTERIOR: temp = this.basePrice;\n\t\t\tbreak;\n\t\t\tcase OCEAN_VIEW: temp = this.basePrice * this.oceanConstant;\n\t\t\tbreak;\n\t\t\tcase BALCONY: temp = this.basePrice * this.balconyConstant;\n\t\t\tbreak;\n\t\t\tcase SUITE: temp = this.basePrice * this.suiteConstant;\n\t\t\tbreak;\n\t\t\tdefault: temp = this.basePrice;\n\t\t}\n\t\treturn temp;\n\t}",
"private void harvest() {\n\t\t// if VERY far from flower, it must have died. start scouting\n\t\tif(grid.getDistance(grid.getLocation(targetFlower),grid.getLocation(this)) > 200) {\n\t\t\tstate = \"SCOUTING\";\n\t\t}\n\t\t// if crop storage is full, return to hive with information\n\t\telse if(food >= maxCrop) {\n\t\t\tif(targetFlower != null) {\n\t\t\t\tlastFlowerNectar = targetFlower.food;\n\t\t\t}\n\t\t\tstate = \"RETURNING\";\n\t\t}\n\t\t// if daylight is diminishing, return to hive\n\t\telse if(clock.time > (endForagingTime + 1.0)){\n\t\t\tlastFlowerNectar = 0;\n\t\t\tstate = \"RETURNING\";\n\t\t}\n\t\t// if flower loses all nectar, start scouting for new flower\n\t\telse if(targetFlower.food <= 0){\n\t\t\tstate = \"AIMLESSSCOUTING\";\n\t\t\ttempTime = clock.time;\n\t\t}\n\t\t// semi-random decision to scout for new flower if current flower has low food\n\t\telse if(RandomHelper.nextIntFromTo(0,(int)(maxFlowerNectar/4)) > targetFlower.food &&\n\t\t\t\tRandomHelper.nextDoubleFromTo(0,1) < forageNoise){\n\t\t\tstate = \"AIMLESSSCOUTING\";\n\t\t\ttempTime = clock.time;\n\t\t}\n\t\t// otherwise continue harvesting current flower\n\t\telse{\n\t\t\thover(grid.getLocation(targetFlower));\n\t\t\ttargetFlower.food -= foragingRate;\n\t\t\tfood += foragingRate;\n\t\t\tfood -= lowMetabolicRate;\n\t\t}\n\t}",
"private String money() {\r\n\t\tint[] m =tile.getAgentMoney();\r\n\t\tString out =\"Agent Money: \\n\";\r\n\t\tint total=0;\r\n\t\tint square=(int)Math.sqrt(m.length);\r\n\t\tif(square*square<m.length) {\r\n\t\t\tsquare++;\r\n\t\t}\r\n\t\tfor(int i=0; i<m.length;) {\r\n\t\t\tfor(int j=0; j<square; j++) {\r\n\t\t\t\tif(i<m.length) {\r\n\t\t\t\t\tout=out.concat(String.format(\"%8s\", m[i]+\"\"));\r\n\t\t\t\t\ttotal=total+m[i];\r\n\t\t\t\t\ti++;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tj=square;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tout=out.concat(\"\\n\");\r\n\t\t}\r\n\t\tout=out.concat(\"Agent Total: \"+total);\r\n\t\tint companyTotal=0;\r\n\t\tout=out.concat(\"\\n\\nCompany Money: \\n\");\r\n\t\tm=tile.getCompanyMoney();\r\n\t\tsquare=(int)Math.sqrt(m.length);\r\n\t\tif(square*square<m.length) {\r\n\t\t\tsquare++;\r\n\t\t}\r\n\t\tfor(int i=0; i<m.length;) {\r\n\t\t\tfor(int j=0; j<square; j++) {\r\n\t\t\t\tif(i<m.length) {\r\n\t\t\t\t\tout=out.concat(String.format(\"%8s\", m[i]));\r\n\t\t\t\t\tcompanyTotal=companyTotal+m[i];\r\n\t\t\t\t\ti++;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tj=square;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tout=out.concat(\"\\n\");\r\n\t\t}\r\n\t\tout=out.concat(\"Company Total: \"+companyTotal);\r\n\t\tout=out.concat(\"\\nTotal total: \"+(total+companyTotal));\r\n\t\tif(total+companyTotal!=tile.getPeopleSize()*tile.getAverageMoney()) {\r\n\t\t\tSTART=false;\r\n\t\t}\r\n\t\treturn out;\r\n\t}",
"public static void main(String[] args) {\n Company myCompany = new Company();\n System.out.println(myCompany.getName());\n Worker oyelowo = new JuniorWorker(989.9);\n Worker Dan = new JuniorWorker(987.8);\n Worker Shane = new MidLevelWorker(34.5);\n Worker Dolan = new SeniorWorker(4567.8);\n Worker Maria = new SeniorWorker(84.3);\n SeniorWorker Sam = new SeniorWorker();\n JuniorWorker jim = new JuniorWorker(\"Jim\", \"HJK\", 1, 345.9);\n System.out.println(jim.getBalance());\n\n\n System.out.println(myCompany.getBalance() + \" \" +myCompany.getAuthorizationKey());\n\n\n\n myCompany.paySalary(1000.0, oyelowo);\n myCompany.paySalary(700.0, Dan);\n myCompany.paySalary(700.0, Dan);\n myCompany.paySalary(700.0, Dan);\n myCompany.paySalary(700.0, Dan);\n myCompany.paySalary(700.0, Dan);\n\n\n System.out.println();\n System.out.println(myCompany.getBalance());\n System.out.println(myCompany.getDebits());\n System.out.println(oyelowo.getBalance(myCompany));\n System.out.println(Dan.getBalance(myCompany));\n\n\n }",
"private double werteRekursivAus(int n) {\n double zwischenwert = 0;\n\n // Basisfall\n if (n <= 0) {\n return 0;\n }\n\n // Fall I\n if (n > 0) {\n zwischenwert = 1 / (werteRekursivAus(n - 1)) + werte[werte.length - n];\n }\n\n // Fall II\n if (n == 1) {\n zwischenwert = 1 / zwischenwert + werte[werte.length - 1];\n }\n return zwischenwert;\n }",
"private static void BicingsimulatedAnnealingSearch(int num, int n_est, int nbicis, int nfurgo, int d1, int cas, String Cas, String H, String D, int s) {\n\n\n try {\n\n double MedT = 0;\n //double MedN = 0;\n //double MedB = 0;\n int iteraciones = 100;\n Estado Bicing = new Estado(n_est,nbicis,nfurgo,d1,s,1);\n Bicing.setList_cdesp(iteraciones);\n long StartTime = System.nanoTime();\n Problem problem = new Problem(Bicing, new sucesoresA(), new isGoal(), new Heuristic_Function());\n SimulatedAnnealingSearch search = new SimulatedAnnealingSearch(iteraciones, 1000, 125, 0.00001D);\n SearchAgent agent = new SearchAgent(problem, search);\n List L = search.getPathStates();\n Properties properties = agent.getInstrumentation();\n long EndTime = System.nanoTime();\n Estado E = (Estado) search.getGoalState();\n long time = ((EndTime - StartTime) / 1000000);\n MedT += time;\n //MedB += E.getganancia();\n // MedN += Integer.parseInt(properties.getProperty((String)properties.keySet().iterator().next()));\n // MedB /= num;\n // MedN /= num;\n // MedT /= num;\n //MedB = (Math.round(MedB*100.0)/100.0);\n Writer output;\n output = new BufferedWriter(new FileWriter(\"Estadisticas_\" + Cas + \"_D\" + D + \"_H\" + H + \"S.txt\", true));\n double [] vec = E.getearnings();\n for (int i = 0 ; i < iteraciones; ++i) {\n String S = \"\" + vec[i];\n S = S + '\\n';\n output.append(S);\n }\n output.close();\n\n /*for (int i = 0; i < E.getN_furgo(); ++i) {\n System.out.println(\"Recorrido por furgoneta \" + i + \" \" + E.getIFurgo(i).getLong_t());\n }*/\n //printEstado(E);\n //System.out.println();\n //System.out.println(E.getganancia());\n //printActions(agent.getActions());\n //printInstrumentation(agent.getInstrumentation());\n } catch (Exception var4) {\n var4.printStackTrace();\n }\n\n }",
"public abstract PlacedBet register(double bet, double balance, Payout payout);",
"public void baptism() {\n for (Card targetCard : Battle.getInstance().getActiveAccount().getActiveCardsOnGround().values()) {\n if (targetCard instanceof Minion) {\n targetCard.setHolyBuff(2, 1);\n }\n }\n }",
"public static void main(String[] args) {\n City city = new City(60, 200);\n TourManager.addCity(city);\n City city2 = new City(180, 200);\n TourManager.addCity(city2);\n City city3 = new City(80, 180);\n TourManager.addCity(city3);\n City city4 = new City(140, 180);\n TourManager.addCity(city4);\n City city5 = new City(20, 160);\n TourManager.addCity(city5);\n City city6 = new City(100, 160);\n TourManager.addCity(city6);\n City city7 = new City(200, 160);\n TourManager.addCity(city7);\n City city8 = new City(140, 140);\n TourManager.addCity(city8);\n City city9 = new City(40, 120);\n TourManager.addCity(city9);\n City city10 = new City(100, 120);\n TourManager.addCity(city10);\n City city11 = new City(180, 100);\n TourManager.addCity(city11);\n City city12 = new City(60, 80);\n TourManager.addCity(city12);\n City city13 = new City(120, 80);\n TourManager.addCity(city13);\n City city14 = new City(180, 60);\n TourManager.addCity(city14);\n City city15 = new City(20, 40);\n TourManager.addCity(city15);\n City city16 = new City(100, 40);\n TourManager.addCity(city16);\n City city17 = new City(200, 40);\n TourManager.addCity(city17);\n City city18 = new City(20, 20);\n TourManager.addCity(city18);\n City city19 = new City(60, 20);\n TourManager.addCity(city19);\n City city20 = new City(160, 20);\n TourManager.addCity(city20);\n\n // Initialize population\n Population pop = new Population(50, true);\n System.out.println(\"Initial distance: \" + pop.getFittest().getDistance());\n\n // Evolve population for 100 generations\n pop = GA.evolvePopulation(pop);\n for (int i = 0; i < 100; i++) {\n pop = GA.evolvePopulation(pop);\n }\n\n // Print final results\n System.out.println(\"Finished\");\n System.out.println(\"Final distance: \" + pop.getFittest().getDistance());\n System.out.println(\"Solution:\");\n System.out.println(pop.getFittest());\n }",
"public int calculateCost() {\n int premium = surety.calculatePremium(insuredValue);\n SuretyType suretyType = surety.getSuretyType();\n int commission = (int) Math.round(premium * vehicle.getCommission(suretyType));\n return premium + commission;\n }",
"@Override\n\tprotected int calcBetCode(int number) {\n\t\tint street = (number - 1) / 3;\n\t\treturn street;\n\t}",
"public void calculateToll(Vehicles v, ArrayList<Places> p){\n for(Places p1: p){\n if(p1.getToll() && p1.getPId()>= start && p1.getPId() <= end){\n tollbooths.add(p1.getPId());\n FeeForEachTollandTrip tt = new FeeForEachTollandTrip(isVip);\n tolltrips.add(tt);\n total += tt.calculateToll(v, p1.getPId());\n }\n }\n \n //printint the output\n /*\n Toll booths : B Amount : 20 Discount : 4 Total : 16\n */\n System.out.print(\"Tollbooths were: \");\n for(int i =0; i<tollbooths.size();i++){\n System.out.print(\" \" + tollbooths.get(i));\n }\n\n\n System.out.println();\n int amount;\n if(isVip)\n amount = (int) (total/0.8);\n else \n amount = (int)total;\n System.out.println(\"Amount is \" + amount);\n double discount = 0;\n if(isVip)\n discount = 0.2 * amount;\n System.out.println(\"Discount is \" + discount);\n System.out.println(\"Total is: \" +total);\n\n //checking if vehicle has already passed the toll before\n //if yes, nothing to be done.\n //if not, add the vehicle to the toll\n for(Places p1: p){\n if(p1.getToll() && tollbooths.contains(p1.getPId())){\n for(Vehicles v1: p1.getVehicles()){\n if(v1.getVehicleId() == v.getVehicleId()){\n break;\n }\n }\n p1.vehicles.add(v);\n }\n }\n }",
"static void AdultItinerary(int location)\n {\n\t\tboatLock.acquire(); \n\n\t\twhile (true){ //continuous loop\n\t\t\t//check location\n if (location == 0){ //Oahu\n //may need while loop instead of if loop here...\n while ( childrenOnOahu > 1 || countOnBoat > 0 || boatLocation != 0){\n onOahu.sleep();\n }\n\t\t\t /*if( childrenOnOahu > 1) {\n\t\t\t\t\tonOahu.sleep();\n\t\t\t\t}\n\t\t\t\t//check number of children on boat | adults on boat\n\t\t\t\tif( countOnBoat > 0){\n\t\t\t\t\tonOahu.sleep();\n\t\t\t\t}\n\t\t\t\t//make sure boat is on Oahu\n\t\t\t\tif(boatLocation != 0){\n\t\t\t\t\tonOahu.sleep();\n\t\t\t\t} */\n\t\t\t//-------------------------------------------------------\n bg.AdultRowToMolokai();\n \n //update count and location\n adultsOnOahu--;\n adultsOnMolokai++;\n boatLocation = 1;\n location = 1;\n \n //communicating number of people on Molokai\n coms.speak(childrenOnMolokai + adultsOnMolokai);\n \n //wake everyone up and sleep on Molokai\n onMolokai.wakeAll();\n onMolokai.sleep();\n\t\t\t \n\t\t//Make sure there is at least ONE child on Molokai\n\t\tLib.assertTrue(childrenOnMolokai > 0);\n }\n else if (location == 1){ //Molokai\n onMolokai.sleep();\n }\n else{\n System.out.println(\"ERROR: Location other than 0 or 1\");\n Lib.assertTrue(false);\n break; \n }\n }\n\n boatLock.release(); \n }",
"public abstract int getPopulation(int west, int south, int east, int north);",
"public void partieEnCour(int niveau){\n\t\t\t\n\t\t\tif(niveau<=0){\n\t\t\t\tSystem.out.println(\"Quel niveau ?\");\n\t\t\t\tniveau=lire.nextInt();\n\t\t\t}\n\t\t\tthis.niveau=niveau;\n\t\t\tthis.terrainDeLaPartie=this.EnsembleNiveau.listeMap.get(niveau-1);\n\t\t\tSystem.out.println(terrainDeLaPartie.getCave().toString());\n\t\t\tthis.terrainDeLaPartie.afficherMap();\n\t\t\tboolean heroEnVie=true;\n\t\t\twhile(sortieNonAtteint()&& tempsNonEcoule() && heroEnVie==true){\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tfor(ObjetVivant eleViv:terrainDeLaPartie.getPersonnageSurLeTerrain()){\n\t\t\t\t\ttry{\n\t\t\t\t\t\tif(eleViv.estEnVie()){\n\t\t\t\t\t\t\teleViv.seDeplacer(terrainDeLaPartie);\n\t\t\t\t\t\t}\n\t\t\t\t\t}catch(DeplacementInvalideException e){\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tfor(ObjetNonVivant eleNonViv:terrainDeLaPartie.getObjetSurLeTerrain()){\n\t\t\t\t\teleNonViv.tomber(terrainDeLaPartie);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\tquiEstMort();\n\t\t\t\tquiEstDetruit();\n\t\t\t\tthis.terrainDeLaPartie.getObjetSurLeTerrain().addAll(this.terrainDeLaPartie.reinitialisationObjet());\n\t\t\t\tthis.terrainDeLaPartie.afficherMap();\n\t\t\t\tCave a=this.terrainDeLaPartie.getCave();\n\t\t\t\ta.setCaveTime(a.getCaveTime()-1);\t\t\t\n\t\t\t\tSystem.out.println(this.terrainDeLaPartie.getPersonnageSurLeTerrain().size()-1+\" enemie\");\n\t\t\t\tSystem.out.println(this.terrainDeLaPartie.getObjetSurLeTerrain().size()-1+\" objet\");\n\t\t\t\t\n\t\t\t\theroEnVie=heroEncoreDansListe(this.terrainDeLaPartie.getPersonnageSurLeTerrain());\n\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tif(heroEnVie && !sortieNonAtteint()){\n\t\t\t\tthis.terrainDeLaPartie=this.EnsembleNiveau.listeMap.get(niveau);\n\t\t\t\tpartieEnCour(niveau+1);\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"Vous avez perdu ! Voulez vous rejouer ?\");\n\t\t\t\tSystem.out.println(\"1:rejouer\");\n\t\t\t\tSystem.out.println(\"2:quitter \");\n\t\t\t\tint rep=lire.nextInt();\n\t\t\t\tif(rep==1){\n\t\t\t\t\tFile f=new File(\"BD01plus.bdcff\");\n\t\t\t\t\tEnsembleNiveau=new Univers();\n\t\t\t\t\tLireFichier.lire(f, EnsembleNiveau);\n\t\t\t\t\tthis.partieEnCour(niveau);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}",
"public int houseCost() {\n\t\treturn houses;\n\t}",
"public void claimDollars() {\n if (totalSpent >= 5000) {\n airlineDollars += ( ((totalSpent - (totalSpent % 5000)) / 5000) * 400);\n totalSpent = totalSpent % 5000;\n }\n }",
"public static double getCO2emissions(int timestep) {\n\t\t\n\t\tdouble co2StromDeutschland = 0.474; // nach Statistischen Daten\n\t\t\n\t\tco2StromDeutschland = 0.540; // nach Stefan's Master Arbeit - als Vergleich für Riemerling\n\t\t\n\t\treturn co2StromDeutschland; // current co2 emission level of Germany\n\t}",
"@Test\n public void whenComputingBillForPeopleOver70WithDiagnosisXRayAndECG() {\n double result = billingService.computeBill(1);\n // 90% discount on Diagnosis (60£) = 6\n // 90% discount on X-RAY (150£) = 15\n // 90% discount on ECG (200.40£) = 20.04\n Assert.assertEquals(41.04, result, 0);\n }",
"void breach();",
"public void calculateCost(){\n if(this.isChair){\n for(int i = 0; i < this.chairs.length; i++){\n this.cost += this.chairs[i].getPrice();\n }\n }\n //if furniture type is chair, add up cost of all items in list\n if(this.isDesk){\n for(int i = 0; i < this.desks.length; i++){\n this.cost += this.desks[i].getPrice();\n }\n }\n //if furniture type is chair, add up cost of all items in list\n if(this.isFiling){\n for(int i = 0; i < this.filingCabinets.length; i++){\n this.cost += this.filingCabinets[i].getPrice();\n }\n }\n //if furniture type is chair, add up cost of all items in list\n if(this.isLamp){\n for(int i = 0; i < this.lamps.length; i++){\n this.cost += this.lamps[i].getPrice();\n }\n }\n }",
"double CalcGaretz(double amount, double size, double sg, double time, double start_vol,\n \t\t\tint yeast_flocc, double AA) {\n \t\tdouble desired_ibu = CalcRager(amount, size, sg, time, AA);\n \t\tint elevation = 500; // elevation in feet - change for user setting\n \t\tdouble concentration_f = size / start_vol;\n \t\tdouble boil_gravity = (concentration_f * (sg - 1)) + 1;\n \t\tdouble gravity_f = ((boil_gravity - 1.050) / 0.2) + 1;\n \t\tdouble temp_f = (elevation / 550 * 0.02) + 1;\n \n \t\t// iterative loop, uses desired_ibu to define hopping_f, then seeds\n \t\t// itself\n \t\tdouble hopping_f, utilization, combined_f;\n \t\tdouble ibu = desired_ibu;\n \t\tint util_index;\n \t\tfor (int i = 0; i < 5; i++) { // iterate loop 5 times\n \t\t\thopping_f = ((concentration_f * desired_ibu) / 260) + 1;\n \t\t\tif (time > 50)\n \t\t\t\tutil_index = 10;\n \t\t\telse\n \t\t\t\tutil_index = (int) (time / 5.0);\n \t\t\tutilization = util[(util_index * 3) + yeast_flocc];\n \t\t\tcombined_f = gravity_f * temp_f * hopping_f;\n \t\t\tibu = (utilization * AA * amount * 0.749) / (size * combined_f);\n \t\t\tdesired_ibu = ibu;\n \t\t}\n \n \t\treturn ibu;\n \t}",
"public double totalInsuranceCost(){\n double cost=0;\n for(InsuredPerson i: insuredPeople){\n cost+=i.getInsuranceCost();\n\n }\n return cost;\n\n }",
"public static void main(String[] args) {\n double carMiles;\n double carHalon;\n double carCost;\n\n Scanner sc = new Scanner(System.in);\n\n System.out.println(\"Введите пробег автомобиля в американских милях:\");\n carMiles = sc.nextInt();\n\n System.out.println(\"Введите расход топлива автомобиля в галонах на милю:\");\n carHalon = sc.nextInt();\n\n System.out.println(\"Введите стоимость автомобиля $:\");\n carCost = sc.nextInt();\n\n //перевод в европейскую систему\n System.out.println(\"Пробег автомобиля: \" + carMiles * 1.61 + \"км\"); //формул: http://www.for6cl.uznateshe.ru/mili-v-kilometry/\n\n System.out.println(\"Расход топлива автомобиля: \" + ( 378.5 / ( carHalon * 1.609 )) + \" литров на 100 км\" ); // формула: https://planetcalc.ru/4357/\n\n System.out.println(\"Стоимость автомобиля: \" + carCost * 28.3 + \" грн\");\n\n\n\n }",
"public static void deposit(){\n TOTALCMONEY = TOTALCMONEY + BALANCEDEPOSIT; //the cashier money equals the cashier money plus the amount that is being deposited\r\n BALANCE = BALANCE + BALANCEDEPOSIT; //the user balance equals the user balance plus the amount that is being deposited\r\n }",
"void u1 (){\n\n\tint rose,sunflower,jasmin,tulip;\n\tdouble money,sale,total,profit,cost;\n\tScanner sc = new Scanner(System.in);\n\tSystem.out.println(\"--------Flower List----------\\n\");\n\tSystem.out.println(\"1.Rose\\t\\t15 Baht\\n2.Sun flower\\t23 Baht\\n3.Jasmin\\t8 Baht\\n4.Tulip\\t\\t20 Baht\\n\");\n\tSystem.out.println(\"-----------------------------\\n\");\n\n\tSystem.out.println(\"Put number flower\\n\");\n\tSystem.out.print(\"Rose --> \");rose = sc.nextInt();\n\tSystem.out.print(\"Sun flower --> \");sunflower = sc.nextInt();\n\tSystem.out.print(\"Jasmin --> \");jasmin = sc.nextInt();\n\tSystem.out.print(\"Tulip --> \");tulip = sc.nextInt();\n\tSystem.out.println(\"\\n-----------------------------\\n\");\n\tmoney = (15*rose)+(23*sunflower)+(8*jasmin)+(20*tulip);\n\tSystem.out.println(\"Money --> \"+money+\"\\tBaht\\n\");\n\n\tif (money>200)\n\t{\n\t\tsale = money*3/100;\n\t\tSystem.out.println(\"Discount --> \"+sale+\"\\tBaht\");\n\t\ttotal = money-sale;\n\t\tSystem.out.println(\"Total Money --> \"+total+\"\\tBaht\");\n\t\t\n\t\tcost = (9*rose)+(13*sunflower)+(4*jasmin)+(8*tulip);\n\t\tprofit =(money-cost)-sale;\n\t\tSystem.out.println(\"Owner get profit --> \"+profit+\"\\tBaht\");\n\n\t}\n\t\telse if (money>500)\n\t\t{\n\t\tsale = money*5/100;\n\t\tSystem.out.println(\"Discount --> \"+sale+\"\\tBaht\");\n\t\ttotal = money-sale;\n\t\tSystem.out.println(\"Total Money --> \"+total+\"\\tBaht\");\n\n\t\tcost = (9*rose)+(13*sunflower)+(4*jasmin)+(8*tulip);\n\t\tprofit =(money-cost)-sale;\n\t\tSystem.out.println(\"Owner get profit --> \"+profit+\"\\tBaht\");\n\t\t}\n\n\t\telse if (money>700)\n\t\t{\n\t\tsale = money*10/100;\n\t\tSystem.out.println(\"Discount --> \"+sale+\"\\tBaht\");\n\t\ttotal = money-sale;\n\t\tSystem.out.println(\"Total Money --> \"+total+\"\\tBaht\");\n\n\t\tcost = (9*rose)+(13*sunflower)+(4*jasmin)+(8*tulip);\n\t\tprofit =(money-cost)-sale;\n\t\tSystem.out.println(\"Owner get profit --> \"+profit+\"\\tBaht\");\n\t\t}\n\t\n\t System.out.println(\"\\n---------Thank You-----------\");\n\n\t\n}",
"private void landOrTakeoff(String land_or_takeoff) {\n\t\ttry {\n\t\tthis.baggage = Integer.valueOf(land_or_takeoff);\n\t\tthis.isLanding = true;\n\t\t}catch(NumberFormatException e) {\n\t\t\tthis.isLanding = false;\n\t\t\tthis.destination = land_or_takeoff;\n\t\t}//catch\n\t}",
"@Override\n\tpublic double cost() {\n\t\treturn 2.19;\n\t}",
"private void condenseSteam() {\n if (getPressure()> Constants.ATMOSPHERIC_PRESSURE) {\n double boilingPoint = Water.getBoilingTemperature(getPressure());\n if (boilingPoint > steam.getTemperature()) { // remove steam such that it equalizes to the boiling point\n double newSteamPressure = Math.max(Water.getBoilingPressure(steam.getTemperature()), Constants.ATMOSPHERIC_PRESSURE);\n \n\n int newQuantity = steam.getParticlesAtState(newSteamPressure, getCompressibleVolume());\n int deltaQuantity = steam.getParticleNr() - newQuantity;\n if (deltaQuantity < 0) {\n System.out.println(\"BAD\");\n }\n steam.remove(deltaQuantity);\n getWater().add(new Water(steam.getTemperature(), deltaQuantity));\n }\n } \n }"
] |
[
"0.5874568",
"0.5698337",
"0.56142515",
"0.5580538",
"0.5577342",
"0.5561367",
"0.55229205",
"0.54177785",
"0.5417561",
"0.5404148",
"0.5403364",
"0.53895694",
"0.5388047",
"0.5362883",
"0.5349195",
"0.53292686",
"0.5315022",
"0.5297524",
"0.52963895",
"0.5287948",
"0.5281109",
"0.52725124",
"0.5267031",
"0.5261476",
"0.5260914",
"0.5260328",
"0.5259502",
"0.5245741",
"0.52381873",
"0.52314043",
"0.5220817",
"0.5208212",
"0.5176235",
"0.5162487",
"0.5161614",
"0.51604456",
"0.5156787",
"0.5153987",
"0.514407",
"0.5137091",
"0.513149",
"0.512532",
"0.5121705",
"0.5115211",
"0.5114523",
"0.5109351",
"0.5096524",
"0.5091794",
"0.50842124",
"0.5076217",
"0.507294",
"0.50712883",
"0.5068675",
"0.5067089",
"0.5061309",
"0.50611204",
"0.50609607",
"0.50585026",
"0.50556695",
"0.50548995",
"0.5053145",
"0.5052586",
"0.5048806",
"0.504831",
"0.5044618",
"0.504448",
"0.503858",
"0.50362605",
"0.5028998",
"0.5027116",
"0.50178766",
"0.5015274",
"0.50146806",
"0.500925",
"0.50080824",
"0.5007306",
"0.50048614",
"0.5001977",
"0.5001752",
"0.500036",
"0.50001603",
"0.49981248",
"0.49978018",
"0.4997553",
"0.49960205",
"0.49950942",
"0.4991146",
"0.49886155",
"0.49826697",
"0.49772564",
"0.49720502",
"0.49652997",
"0.49651662",
"0.4964211",
"0.49619406",
"0.49616617",
"0.4959981",
"0.4958738",
"0.49565098",
"0.4956426",
"0.49519542"
] |
0.0
|
-1
|
TODO can evolve into biotourism or massivetourism
|
@Override
public void evolve(Island myIsland) {
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"int steamPerDurability();",
"private void runBest() {\n }",
"private void optimiseEVProfile()\n\t{\n\t}",
"private void nourrireLePeuple() {\n\t\t\tint totalDepense = (int)((population * 1) + (populationColoniale * 0.8) + ((armee + armeeDeployee()) * nourritureParArmee));\r\n\t\t\tnourriture -= totalDepense;\r\n\t\t\tenFamine = (nourriture > 0) ? false : true;\r\n\t\t}",
"@Test\n public void heavierTest() throws InterruptedException, ExecutionException {\n Stage stage1 = createStage();\n Stage stage2 = createStage();\n StatelessThing actor1 = Actor.getReference(StatelessThing.class, \"1000\");\n StatelessThing actor2 = Actor.getReference(StatelessThing.class, \"1000\");\n final Set<UUID> set = new HashSet<>();\n set.clear();\n List<Future<UUID>> futures = new ArrayList<>();\n for (int i = 0; i < 50; i++) {\n // this will force the creation of concurrent activations in each node\n stage1.bind();\n futures.add(actor1.getUniqueActivationId());\n stage2.bind();\n futures.add(actor2.getUniqueActivationId());\n }\n futures.forEach(( f) -> {\n try {\n set.add(f.get(10, TimeUnit.SECONDS));\n } catch (Exception e) {\n throw new UncheckedException(e);\n }\n });\n // it is very likely that there will be more than one activation per stage host.\n Assert.assertTrue(((set.size()) > 1));\n // only 25*5 calls => there should not be more than 125 activations\n Assert.assertTrue(((set.size()) <= 100));\n }",
"public void iterate()\n\t{\n\t\tfor (int p = 0; p < parasites.length; p++)\n\t\t\tpFitnesses[p][1] = 0;\n\t\t\n\t\ttry\n\t\t{\t// calculate fitnesses against other population\n\t\t\texecutor.invokeAll(tasks);\n\t\t\t// calculate fitness against hall of fame individuals\n\t\t\texecutor.invokeAll(hofTasks);\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tSystem.out.println(\"Something bad happened...\");\n\t\t\tSystem.exit(-1);\n\t\t}\n\t\n\t\tArrays.sort(hFitnesses,new ArrayComparator(1,false));\n\t\tArrays.sort(pFitnesses,new ArrayComparator(1,false));\n\t\t\n\t\tint bestIndex = (int)pFitnesses[0][0];\n\t\tint size = parHOF.length;\n\t\t\n\t\tparHOF[generations%size]=new NeuralPlayer(-1,\"HOF P\",(BasicNetwork)parasites[(int)bestIndex].net.clone());\n\t\tbestIndex = (int)hFitnesses[0][0];\n\t\thostHOF[generations%size]=new NeuralPlayer(1,\"HOF H\",(BasicNetwork)hosts[(int)bestIndex].net.clone());\n\t\t\n\t\tint matePopIndex = (int)(matingPer*popSize)+1;\n\t\tRandom indexG = new Random();\n\t\t// allow top percentage to breed and replace bottom 2*percentage\n\t\t// leave everyone else alone\n\t\tfor (int i = 0; i < popSize*2*matingPer; i++)\n\t\t{\n\t\t\tint pInd1 = indexG.nextInt(matePopIndex);\n\t\t\tint pInd2 = indexG.nextInt(matePopIndex);\n\t\t\tNeuralPlayer p1 = hosts[(int)hFitnesses[pInd1][0]];\n\t\t\tNeuralPlayer p2 = hosts[(int)hFitnesses[pInd2][0]];\n\t\t\tNeuralPlayer child = hosts[(int)hFitnesses[popSize - 1 - i][0]];\n\t\t\tmate(p1, p2,child);\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < popSize*2*matingPer; i++)\n\t\t{\n\t\t\tint pInd1 = indexG.nextInt(matePopIndex);\n\t\t\tint pInd2 = indexG.nextInt(matePopIndex);\n\t\t\tNeuralPlayer p1 = parasites[(int)pFitnesses[pInd1][0]];\n\t\t\tNeuralPlayer p2 = parasites[(int)pFitnesses[pInd2][0]];\n\t\t\tNeuralPlayer child = parasites[(int)pFitnesses[popSize - 1 - i][0]];\n\t\t\tmate(p1, p2,child);\n\t\t}\n\t\t// mutate everyone except top percentage (matingPer)\n\t\tfor (int i = 0; i < popSize*3*matingPer; i++)\n\t\t{\n\t\t\tmutate(parasites[(int)pFitnesses[popSize - 1 - i][0]]);\n\t\t\tmutate(hosts[(int)hFitnesses[popSize - 1 - i][0]]);\n\t\t}\n\t\t\n\t\tgenerations+=1;\n\t\t// every now and then reseed the population with a good individual\n\t\tif (generations%50 == 0)\n\t\t{\n\t\t\thosts[indexG.nextInt(hosts.length)].net = (BasicNetwork)allTimeBestHost.net.clone();\n\t\t\tparasites[indexG.nextInt(parasites.length)].net = (BasicNetwork)allTimeBestPara.net.clone();\n\t\t}\n\t\t\t\n\t}",
"public static void other() {\n // This is how to generate test data for the grid. (Use the VisibilityGraph algorithm to generate optimal path lengths)\n// ArrayList<Point> points = ReachableNodes.computeReachable(gridGraph, 5, 5);\n// System.out.println(points.size());\n//\n// generateRandomTestDataAndPrint(gridGraph);\n\n //This is how to conduct a running time / path length test for tha algorithm:\n// TestResult test1 = testAlgorithm(gridGraph, sx, sy, ex, ey, 1, 1);\n// System.out.println(test1);\n// TestResult test2 = testAlgorithm(gridGraph, sx, sy, ex, ey, 30, 25);\n// System.out.println(test2);\n }",
"@Override\r\n\tprotected void processCost() {\n\r\n\t}",
"protected void mo6255a() {\n }",
"private void liveOrDeathPhase() {\n List<Blob> mutationBlobs = new ArrayList<>();\n\n // remove death blobs\n removeIf( blob -> blob.getFoodCounter() < 1 || !blob.isAtHome() );\n\n // born new blobs\n for (Blob blob : this) {\n if ( blob.getFoodCounter() >= 2 )\n mutationBlobs.add( blob );\n\n blob.resetEnergy();\n blob.setAtHome( false );\n blob.resetFood();\n }\n mutationBlobs.forEach( blob -> add( blobFactory.next( blob ) ) );\n\n// forEach( blob -> System.out.println( \"Speed: \" + blob.getSpeed() + \" Size : \" + blob.getSize() + \" Sense: \" + blob.getSense() ) );\n }",
"void breach();",
"@Override\r\n\tprotected void compute() {\n\t\t\r\n\t}",
"public static void main(String[] args) throws FileNotFoundException, IOException {\nfor (double b = 0.5; b < 0.51; b+=0.1) {\n for (double k = 4.40; k < 4.5; k+=0.5) {\n Machine.b = 0.5; //0.2 - ATCnon-delay\n Machine.k = 1.5; //1.4 - ATCnon delay\n int hits = 0;\n engineJob = new cern.jet.random.engine.MersenneTwister(99999);\n noise = new cern.jet.random.Normal(0, 1, engineJob);\n SmallStatistics[] result = new SmallStatistics[5];\n result[0] = new SmallStatistics();\n result[1] = new SmallStatistics();\n for (int ds = 0; ds < 2; ds++) {\n JSPFramework[] jspTesting = new JSPFramework[105];\n for (int i = 0; i < jspTesting.length; i++) {\n jspTesting[i] = new JSPFramework();\n jspTesting[i].getJSPdata(i*2 + 1);\n }\n //DMU - instances (1-80)//la - instances (81-120)\n //mt - instances (121/-123)//orb - instances (124-133)//ta -instances (134-173)\n //////////////////////////////////////////////\n for (int i = 0; i < jspTesting.length; i++) {\n double countEval = 0;\n double tempObj = Double.POSITIVE_INFINITY;\n double globalBest = Double.POSITIVE_INFINITY;\n boolean[] isApplied_Nk = new boolean[2]; //Arrays.fill(isApplied_Nk, Boolean.TRUE);\n int Nk = 0; // index of the Iterative dispatching rule to be used\n jspTesting[i].resetALL();\n boolean firstIteration = true;\n double countLargeStep = 0;\n do{\n countEval++;\n //start evaluate schedule\n jspTesting[i].reset();\n int N = jspTesting[i].getNumberofOperations();\n jspTesting[i].initilizeSchedule();\n int nScheduledOp = 0;\n\n //choose the next machine to be schedule\n while (nScheduledOp<N){\n\n Machine M = jspTesting[i].Machines[jspTesting[i].nextMachine()];\n\n jspTesting[i].setScheduleStrategy(Machine.scheduleStrategy.HYBRID );\n jspTesting[i].setPriorityType(Machine.priorityType.ATC);\n jspTesting[i].setNonDelayFactor(0.3);\n //*\n jspTesting[i].setInitalPriority(M);\n for (Job J:M.getQueue()) {\n double RJ = J.getReadyTime();\n double RO = J.getNumberRemainingOperations();\n double RT = J.getRemainingProcessingTime();\n double PR = J.getCurrentOperationProcessingTime();\n double W = J.getWeight();\n double DD = J.getDuedate();\n double RM = M.getReadyTime();\n double RWT = J.getCurrentOperationWaitingTime();\n double RFT = J.getFinishTime();\n double RNWT = J.getNextOperationWaitingTime();\n int nextMachine = J.getNextMachine();\n\n if (nextMachine==-1){\n RNWT=0;\n } else {\n RNWT = J.getNextOperationWaitingTime();\n if (RNWT == -1){\n RNWT = jspTesting[i].getMachines()[nextMachine].getQueueWorkload()/2.0;\n }\n }\n if (RWT == -1){\n RWT = M.getQueueWorkload()/2.0;\n }\n //J.addPriority((W/PR)*Math.exp(-maxPlus((DD-RM-PR-(RT-PR+J.getRemainingWaitingTime(M)))/(3*M.getQueueWorkload()/M.getNumberofJobInQueue())))); //iATC\n //J.addPriority((PR*PR*0.614577*(-RM-RM/W)-RT*PR*RT/W)\n // -(RT*PR/(W-0.5214191)-RM/W*PR*0.614577+RT*PR/(W-0.5214191)*2*RM/W));\n //J.addPriority(((W/PR)*((W/PR)/(RFT*RFT)))/(max(div((RFT-RT),(RWT/W)),IF(RFT/W-max(RFT-RT,DD),DD,RFT))+DD/RFT+RFT/W-max(RFT-RFT/W,DD))); //best TWT priorityIterative\n if (Nk==0)\n //J.addPriority(min(W/PR-RFT+min(RT,W/RFT),((min(RT,RNWT-RFT)/(RJ-min(RWT,RFT*0.067633785)))/(RJ-min(RWT,RFT*0.067633785))))/RFT);\n J.addPriority(min(W/PR-RFT+min(RT,W/RFT),((div(min(RT,RNWT-RFT),(RJ-min(RWT,RFT*0.067633785))))/(RJ-min(RWT,RFT*0.067633785))))/RFT);\n else\n J.addPriority(min((((W/PR)/RFT)/(2*RNWT+max(RO,RFT)))/(PR+RNWT+max(RO,RFT)),((W/PR)/RFT)/PR)/RFT);\n }\n //jspTesting[i].calculatePriority(M);\n jspTesting[i].sortJobInQueue(M);\n Job J = M.completeJob();\n if (!J.isCompleted()) jspTesting[i].Machines[J.getCurrentMachine()].joinQueue(J);\n nScheduledOp++;\n }\n double currentObj = -100;\n currentObj = jspTesting[i].getTotalWeightedTardiness();\n if (tempObj > currentObj){\n tempObj = currentObj;\n jspTesting[i].recordSchedule();\n Arrays.fill(isApplied_Nk, Boolean.FALSE);\n //System.out.println(\"Improved!!!\");\n }\n else {\n isApplied_Nk[Nk] = true;\n if (!isNextApplied(Nk, isApplied_Nk)) Nk = circleShift(Nk, isApplied_Nk.length);\n else {\n if (globalBest>tempObj) {\n globalBest = tempObj;\n jspTesting[i].storeBestRecordSchedule();\n } jspTesting[i].restoreBestRecordSchedule();\n if (countLargeStep<1) {\n tempObj = Double.POSITIVE_INFINITY;\n Arrays.fill(isApplied_Nk, Boolean.FALSE);\n jspTesting[i].shakeRecordSchedule(noise, engineJob, globalBest);\n countLargeStep++;\n }\n else break;\n }\n }\n firstIteration = false;\n \n } while(true);\n result[ds].add(jspTesting[i].getDevREFTotalWeightedTardiness(globalBest));\n if (jspTesting[i].getDevLBCmax()==0) hits++;\n System.out.println(jspTesting[i].instanceName + \" & \"+ globalBest + \" & \" + countEval);\n }\n }\n //jsp.schedule();\n //*\n System.out.println(\"*************************************************************************\");\n System.out.println(\"[ & \" + formatter.format(result[0].getMin()) + \" & \"\n + formatter.format(result[0].getAverage()) + \" & \" + formatter.format(result[0].getMax()) +\n \" & \" + formatter.format(result[1].getMin()) + \" & \"\n + formatter.format(result[1].getAverage()) + \" & \" + formatter.format(result[1].getMax()) + \"]\");\n //*/\n System.out.print(\"\"+formatter.format(result[0].getAverage()) + \" \");\n }\n System.out.println(\"\");\n}\n }",
"@Override\n public void computeSatisfaction() {\n\n }",
"public void doRawFitness(Chromo[] member, int index)\n {\n\n member[index].rawFitness = 0;\n int numGames = Parameters.numGames;\n Strategy player1, player2;\n IteratedPD ipd;\n \n for (int i = 0; i < Parameters.popSize; i++)\n {\n player1 = followStrategy(member[index].chromo);\n player2 = followStrategy(member[i].chromo);\n ipd = new IteratedPD(player1, player2);\n\n ipd.runSteps(numGames);\n \n member[index].rawFitness += ipd.player1Score();\n }\n }",
"void calculateFitness() {\n if (reachedGoal) {\n fitness = 1d / 16d + 8192d / (genome.step * genome.step);\n } else {\n double d = position.distance(Game.Setup.goal);\n fitness = 1d / (d * d);\n }\n }",
"void mining() {\n //COMPUTE ALL DATA HERE\n if (random.nextBoolean()) {\n black_toner = black_toner + random.nextInt(variation);\n black_drum = black_drum + random.nextInt(variation / 2);\n total_printed_black = total_printed_black + random.nextInt(variation);\n } else {\n black_toner = black_toner - random.nextInt(variation);\n black_drum = black_drum - random.nextInt(variation / 2);\n total_printed_black = total_printed_black - random.nextInt(variation);\n }\n\n if (black_toner <= 0) {\n black_toner = 100;\n }\n if (black_drum <= 0) {\n black_drum = 100;\n }\n if (total_printed_black <= 0) {\n total_printed_black = 100;\n }\n }",
"public static void main(String args[]) throws FileNotFoundException {\n Kattio io = new Kattio(new FileInputStream(new File(args[0])), new FileOutputStream(args[0] + \".out\"));\n\n int v = io.getInt();\n int e = io.getInt();\n int r = io.getInt();\n int c = io.getInt();\n int size = io.getInt();\n\n ArrayList<Video> videos = new ArrayList<Video>(v);\n for(int i = 0; i < v; i++){\n videos.add(i, new Video(i, io.getInt()));\n }\n\n List<Endpoint> endpoints= new ArrayList<Endpoint>(e);\n Map<Integer, Cache> cacheMap = new HashMap<Integer,Cache>(c);\n for(int i = 0; i < e; i++){\n\n int latency = io.getInt();\n int caches = io.getInt();\n\n Map<Cache, Integer> latencyMap = new HashMap<Cache, Integer>();\n\n for(int j = 0; j < caches; j++){\n int cacheId = io.getInt();\n int cacheLatency = io.getInt();\n Cache cache = cacheMap.get(cacheId);\n if(cache == null){\n cache = new Cache(size, cacheId);\n cacheMap.put(cacheId, cache);\n }\n latencyMap.put(cache, cacheLatency);\n }\n\n Endpoint endpoint = new Endpoint(latency, latencyMap);\n endpoints.add(endpoint);\n for(Cache cache: latencyMap.keySet()){\n cache.addEndpoint(endpoint);\n }\n }\n\n List<Request> requests = new ArrayList<Request>(r);\n for(int i = 0; i < r; i++){\n\n int id = io.getInt();\n int endpoint = io.getInt();\n int no = io.getInt();\n Request newRequest = new Request(videos.get(id), endpoints.get(endpoint), no);\n endpoints.get(endpoint).addRequest(newRequest);\n videos.get(id).addRequest(newRequest);\n requests.add(newRequest);\n }\n\n HeaviestUserStrategy hus = new HeaviestUserStrategy();\n SmallAndUsedStrategy sus = new SmallAndUsedStrategy();\n BigRequestsStrategy bus = new BigRequestsStrategy();\n\n // always last\n //hus.apply(cacheMap, requests, videos, endpoints, size/4);\n //sus.apply(cacheMap, requests, videos, endpoints, size/10);\n bus.apply(cacheMap, requests, videos, endpoints, size);\n\n\n StringBuilder sb = new StringBuilder();\n sb.append(cacheMap.size());\n for(int newCacheId: cacheMap.keySet()){\n sb.append(\"\\n\");\n cacheMap.get(newCacheId).toString(sb);\n }\n\n io.print(sb.toString());\n\n // Close and flush IO.\n io.close();\n }",
"static void test2() {\n\n System.out.println( \"Begin test2. ===============================\\n\" );\n\n Thread init = Thread.currentThread(); // init spawns the Mogwais\n\n System.out.println( \"TODO: write a more involved test here.\" );\n //\n // Create a GremlinsBridge of capacity 3.\n // Set an OPTIONAL, test delay to stagger the start of each mogwai.\n // Create the Mogwais and store them in an array.\n // Run them by calling their start() method.\n // Now, the test must give the mogwai time to finish their crossings.\n //\n System.out.println( \"TODO: follow the pattern of the example tests.\" );\n System.out.println( \"\\n=============================== End test2.\" );\n }",
"@Test\n public void finiteUTurnCosts() {\n int right0 = graph.edge(0, 1).setDistance(10).set(speedEnc, 10, 10).getEdge();\n graph.edge(1, 2).setDistance(10).set(speedEnc, 10, 10);\n graph.edge(2, 3).setDistance(10).set(speedEnc, 10, 10);\n graph.edge(3, 4).setDistance(10).set(speedEnc, 10, 10);\n graph.edge(4, 5).setDistance(10).set(speedEnc, 10, 10);\n graph.edge(5, 2).setDistance(1000).set(speedEnc, 10, 10);\n int left6 = graph.edge(1, 6).setDistance(10).set(speedEnc, 10, 10).getEdge();\n int left0 = graph.edge(0, 7).setDistance(10).set(speedEnc, 10, 10).getEdge();\n graph.edge(7, 8).setDistance(10).set(speedEnc, 10, 10);\n graph.edge(8, 9).setDistance(10).set(speedEnc, 10, 10);\n int right6 = graph.edge(9, 6).setDistance(10).set(speedEnc, 10, 10).getEdge();\n\n // enforce p-turn (using the loop in clockwise direction)\n setRestriction(0, 1, 6);\n setRestriction(5, 4, 3);\n\n assertPath(calcPath(0, 6, right0, left6), 107.0, 1070, 107000, nodes(0, 1, 2, 3, 4, 5, 2, 1, 6));\n // if the u-turn cost is finite it depends on its value if we rather do the p-turn or do an immediate u-turn at node 2\n assertPath(calcPath(0, 6, right0, left6, createWeighting(5000)), 107.0, 1070, 107000, nodes(0, 1, 2, 3, 4, 5, 2, 1, 6));\n assertPath(calcPath(0, 6, right0, left6, createWeighting(40)), 44, 40, 44000, nodes(0, 1, 2, 1, 6));\n\n assertPath(calcPath(0, 6, left0, right6), 4, 40, 4000, nodes(0, 7, 8, 9, 6));\n assertPath(calcPath(0, 6, left0, left6), 111, 1110, 111000, nodes(0, 7, 8, 9, 6, 1, 2, 3, 4, 5, 2, 1, 6));\n // if the u-turn cost is finite we do a u-turn at node 1 (not at node 7 at the beginning!)\n assertPath(calcPath(0, 6, left0, left6, createWeighting(40)), 46.0, 60, 46000, nodes(0, 7, 8, 9, 6, 1, 6));\n }",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"String getInter_contestable();",
"public void testPerformance() {\n \t}",
"public static long journeyToMoon(int n, List<List<Integer>> astronaut) {\n // Write your code here\n Map<Integer, Node<Integer>> countryMap = new HashMap<>();\n for(List<Integer> pairs: astronaut) {\n Node<Integer> node1 = countryMap.computeIfAbsent(pairs.get(0), Node::new);\n Node<Integer> node2 = countryMap.computeIfAbsent(pairs.get(1), Node::new);\n node1.connected.add(node2);\n node2.connected.add(node1);\n }\n\n List<Integer> countryCluster = new ArrayList<>();\n for(Node<Integer> node: countryMap.values()) {\n if(node.connected.size() == 0) {\n countryCluster.add(1);\n } else if(!node.visited){\n countryCluster.add(getNodeCount3(node));\n }\n }\n List<Integer> countryNodes = countryMap.values().stream().map(nn -> nn.value).collect(Collectors.toList());\n List<Integer> missingNodes = new ArrayList<>();\n for(int i=0; i < n; i++) {\n if(!countryNodes.contains(i))\n missingNodes.add(i);\n }\n\n for(int i=0; i < missingNodes.size(); i++) {\n countryCluster.add(1);\n }\n\n long ans = 0;\n //For one country we cannot pair with any other astronauts\n if(countryCluster.size() >= 2) {\n ans = (long) countryCluster.get(0) * countryCluster.get(1);\n if(countryCluster.size() > 2) {\n int sum = countryCluster.get(0) + countryCluster.get(1);\n for(int i=2; i < countryCluster.size(); i++) {\n ans += (long) sum * countryCluster.get(i);\n sum += countryCluster.get(i);\n }\n }\n }\n\n /*\n permutation of two set with size A and B = AxB\n permutation of three set with size A,B,C = AxB + AxC + BxC = AxB + (A+B)xC\n permutation of four set with size A,B,C,D = AxB + AxC + AxD + BxC + BxD + CxD = AxB + (A+B)xC + (A+B+C)xD\n */\n /*\n if(keys.length == 1) {\n ans = keys[0].size();\n } else {\n ans = keys[0].size() * keys[1].size();\n if(keys.length > 2) {\n int sum = keys[0].size() + keys[1].size();\n for (int i = 2; i < keys.length; i++) {\n ans += sum * keys[i].size();\n sum += keys[i].size();\n }\n }\n }\n */\n return ans;\n }",
"private int heavyAttack() {\n return attack(6, 2);\n }",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"private int tournament()\r\n {\r\n\tint out = spinTheWheel();\r\n\tdouble max = ff.evaluate(chromos.get(out),generation());\r\n\tdouble temp_fitness = 0;\r\n\tint temp_index = 0;\r\n\r\n\tfor(int i = 0; i < selPara - 1 + tourStep*generation(); i++)\r\n\t {\r\n\t\ttemp_index = spinTheWheel();\r\n\t\ttemp_fitness = ff.evaluate(chromos.get(temp_index),generation());\r\n\t\tif(temp_fitness > max)\r\n\t\t {\r\n\t\t\tmax = temp_fitness;\r\n\t\t\tout = temp_index;\r\n\t\t }\r\n\t }\r\n\treturn out;\r\n }",
"public void calcFragility() {\n System.out.println(\"Calculating . . . \");\n\n // getting all exposures\n HashMap<String, HashMap<String, Double>> exposures = gfmBroker.getExposures();\n\n // data structure to store fragility calculations/responses\n responses = new HashMap<>();\n\n double failure=0.0;\n\n /*\n ******** Calculate fragility here ********\n */\n for (JsonNode n : assets) {\n\n String id = n.get(\"id\").asText();\n Double dv = exposures.get(\"wind\").get(id);\n\n // store responses\n responses.put(id, failure);\n }\n }",
"void compute() {\n\n if (random.nextBoolean()) {\n value = value + random.nextInt(variation);\n ask = value + random.nextInt(variation / 2);\n bid = value + random.nextInt(variation / 2);\n } else {\n value = value - random.nextInt(variation);\n ask = value - random.nextInt(variation / 2);\n bid = value - random.nextInt(variation / 2);\n }\n\n if (value <= 0) {\n value = 1.0;\n }\n if (ask <= 0) {\n ask = 1.0;\n }\n if (bid <= 0) {\n bid = 1.0;\n }\n\n if (random.nextBoolean()) {\n // Adjust share\n int shareVariation = random.nextInt(100);\n if (shareVariation > 0 && share + shareVariation < stocks) {\n share += shareVariation;\n } else if (shareVariation < 0 && share + shareVariation > 0) {\n share += shareVariation;\n }\n }\n }",
"public void testTwoWayDistribution() {\n for(int p = 0; p < 20; p++) {\n int[] landings = new int[2];\n for(long in = 0; in < 100000; in++) {\n long longHash = FPGenerator.std64.fp(p+\"a\"+in);\n// long longHash = rand.nextLong();\n// long longHash = ArchiveUtils.doubleMurmur((p+\":\"+in).getBytes());\n landings[conhash.bucketFor(longHash, 2)]++;\n }\n// System.out.println(landings[0]+\",\"+landings[1]);\n assertTrue(\"excessive changes\",Math.abs(landings[0]-landings[1]) < 2000); \n }\n }",
"long getTimeSpoutBoltA();",
"public void generateIndividual() {\n // Loop through all our destination cities and add them to our tour\n for (int cityIndex = 0; cityIndex < TourManager.numberOfCities(); cityIndex++) {\n setCity(cityIndex, TourManager.getCity(cityIndex));\n }\n // Randomly reorder the tour\n Collections.shuffle(tour);\n }",
"public void verliesLeven() {\r\n\t\t\r\n\t}",
"private void checkSpeedAndReserved()\n\t{\n\t\t// only check every 5 seconds\n\t\tif(mainloop_loop_count % MAINLOOP_FIVE_SECOND_INTERVAL != 0)\n\t\t\treturn;\n\n\t\tfinal int\t\t\t\tnbPieces\t=_nbPieces;\n\t\tfinal PEPieceImpl[] pieces =pePieces;\n\t\t//for every piece\n\t\tfor (int i =0; i <nbPieces; i++)\n\t\t{\n\t\t\t// placed before null-check in case it really removes a piece\n\t\t\tcheckEmptyPiece(i);\n\n\n\t\t\tfinal PEPieceImpl pePiece =pieces[i];\n\t\t\t// these checks are only against pieces being downloaded\n\t\t\t// yet needing requests still/again\n\t\t\tif (pePiece !=null)\n\t\t\t{\n\t\t\t\tfinal long timeSinceActivity =pePiece.getTimeSinceLastActivity()/1000;\t\t\t\t\n\n\t\t\t\tint pieceSpeed =pePiece.getSpeed();\n\t\t\t\t// block write speed slower than piece speed\n\t\t\t\tif (pieceSpeed > 0 && timeSinceActivity*pieceSpeed*0.25 > DiskManager.BLOCK_SIZE/1024)\n\t\t\t\t{\n\t\t\t\t\tif(pePiece.getNbUnrequested() > 2)\n\t\t\t\t\t\tpePiece.setSpeed(pieceSpeed-1);\n\t\t\t\t\telse\n\t\t\t\t\t\tpePiece.setSpeed(0);\n\t\t\t\t}\n\n\n\t\t\t\tif(timeSinceActivity > 120)\n\t\t\t\t{\n\t\t\t\t\tpePiece.setSpeed(0);\n\t\t\t\t\t// has reserved piece gone stagnant?\n\t\t\t\t\tfinal String reservingPeer =pePiece.getReservedBy();\n\t\t\t\t\tif(reservingPeer !=null)\n\t\t\t\t\t{\n\t\t\t\t\t\tfinal PEPeerTransport pt = getTransportFromAddress(reservingPeer);\n\t\t\t\t\t\t// Peer is too slow; Ban them and unallocate the piece\n\t\t\t\t\t\t// but, banning is no good for peer types that get pieces reserved\n\t\t\t\t\t\t// to them for other reasons, such as special seed peers\n\t\t\t\t\t\tif (needsMD5CheckOnCompletion(i))\n\t\t\t\t\t\t\tbadPeerDetected(reservingPeer, i);\n\t\t\t\t\t\telse if (pt != null)\n\t\t\t\t\t\t\tcloseAndRemovePeer(pt, \"Reserved piece data timeout; 120 seconds\", true);\n\n\t\t\t\t\t\tpePiece.setReservedBy(null);\n\t\t\t\t\t}\n\n\t\t\t\t\tif (!piecePicker.isInEndGameMode()){\n\t\t\t\t\t\tpePiece.checkRequests();\n\t\t\t\t\t}\n\n\t\t\t\t\tcheckEmptyPiece(i);\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t}",
"private static void mutate(Tour tour) {\n // Loop through tour cities\n for(int tourPos1=0; tourPos1 < tour.tourSize(); tourPos1++){\n // Apply mutation rate\n if(Math.random() < mutationRate){\n // Get a second random position in the tour\n int tourPos2 = (int) (tour.tourSize() * Math.random());\n\n // Get the cities at target position in tour\n City city1 = tour.getCity(tourPos1);\n City city2 = tour.getCity(tourPos2);\n\n // Swap them around\n tour.setCity(tourPos2, city1);\n tour.setCity(tourPos1, city2);\n }\n }\n }",
"public void smell() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"public synchronized void tally(CrawlURI curi, Stage stage) {\n switch(stage) {\n case SCHEDULED:\n totalScheduled++;\n break;\n case RETRIED:\n if(curi.getFetchStatus()<=0) {\n fetchNonResponses++;\n }\n break;\n case SUCCEEDED:\n fetchSuccesses++;\n fetchResponses++;\n totalBytes += curi.getContentSize();\n successBytes += curi.getContentSize();\n \n if (curi.getFetchStatus() == HttpStatus.SC_NOT_MODIFIED) {\n notModifiedBytes += curi.getContentSize();\n notModifiedUrls++;\n } else if (IdenticalDigestDecideRule.hasIdenticalDigest(curi)) {\n dupByHashBytes += curi.getContentSize();\n dupByHashUrls++;\n } else if (curi.getAnnotations().contains(\"warcRevisit:uriAgnosticDigest\")) {\n dupByHashBytes += curi.getContentSize();\n dupByHashUrls++;\n } else {\n novelBytes += curi.getContentSize();\n novelUrls++;\n } \n \n lastSuccessTime = curi.getFetchCompletedTime();\n break;\n case DISREGARDED:\n fetchDisregards++;\n if(curi.getFetchStatus()==S_ROBOTS_PRECLUDED) {\n robotsDenials++;\n }\n break;\n case FAILED:\n if(curi.getFetchStatus()<=0) {\n fetchNonResponses++;\n } else {\n fetchResponses++;\n totalBytes += curi.getContentSize();\n \n if (curi.getFetchStatus() == HttpStatus.SC_NOT_MODIFIED) { \n notModifiedBytes += curi.getContentSize();\n notModifiedUrls++;\n } else if (IdenticalDigestDecideRule.\n hasIdenticalDigest(curi)) {\n dupByHashBytes += curi.getContentSize();\n dupByHashUrls++;\n } else {\n novelBytes += curi.getContentSize();\n novelUrls++;\n } \n \n }\n fetchFailures++;\n break;\n }\n }",
"public void fordFulkerson() {\r\n\r\n\r\n\t\twhile(true) {\r\n\t\t\tResidualGraph resGraph = new ResidualGraph(net);\r\n\t\t\tLinkedList<Edge> augmentingPath = resGraph.findAugmentingPath();\r\n\t\t\tif(augmentingPath.isEmpty()) {\r\n\t\t\t\tbreak; // found the max flow\r\n\t\t\t} else {\r\n\t\t\t\t// Find the minimum capacity\r\n\t\t\t\tint minCap = Integer.MAX_VALUE;\r\n\t\t\t\tfor (Edge e : augmentingPath) {\r\n\t\t\t\t\tif (e.getCap() < minCap) minCap = e.getCap();\r\n\t\t\t\t}\r\n\t\t\t\t// Edit the path according to what we've found in the augmenting path\r\n\t\t\t\tfor (Edge e : augmentingPath) {\r\n\t\t\t\t\t// if e is a forward edge:\r\n\t\t\t\t\tVertex source = e.getSourceVertex();\r\n\t\t\t\t\tVertex target = e.getTargetVertex();\r\n\t\t\t\t\tEdge originalEdge = net.getAdjMatrixEntry(source, target);\r\n\t\t\t\t\tif (net.getAdjList(source).contains(target) && originalEdge.getFlow() + minCap <= originalEdge.getCap()) {\r\n\t\t\t\t\t\toriginalEdge.setFlow(originalEdge.getFlow() + minCap);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\toriginalEdge = net.getAdjMatrixEntry(target, source);\r\n\t\t\t\t\t\toriginalEdge.setFlow(net.getAdjMatrixEntry(target, source).getFlow() - minCap);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tnet.printFlow();\r\n\t\t}\r\n\t}",
"private void diffusionPhase() {\n if (prevMaxTimestamp == -1 || currMaxTimestamp == -1 || prevMaxTimestamp == currMaxTimestamp) {\n return;\n }\n final Set<NodeAddress> fathers = ((GroupedOverlayModule<?>) mainOverlay).getNodeGroup(GroupedOverlayModule.fathersGroupName);\n final PrimeNodeReport alreadyRequested = new PrimeNodeReport();\n for (final NodeAddress father : fathers) {\n if (!inboxHistory.keySet().contains(father)) {\n continue;\n }\n if (client.player.getVs() == null\n || inboxHistory.get(father).getLatestTimestamp() > client.player.getVs()\n .getAvailableDescriptions(client.player.getVs().windowOffset).getLatestTimestamp()) {\n final PrimeNodeReport availableDescriptionsAtFather = inboxHistory.get(father);\n PrimeNodeReport requestToSend = (client.player.getVs() == null) ? availableDescriptionsAtFather : (client.player.getVs()\n .getAvailableDescriptions(prevMaxTimestamp)).getDelta(availableDescriptionsAtFather);\n requestToSend = alreadyRequested.getDelta(requestToSend);\n if (requestToSend.size() == 0) {\n continue;\n }\n requestToSend = requestToSend.getRandomSubset(prevMaxTimestamp, currMaxTimestamp, r);\n if (requestToSend.size() != 0) {\n if (client.player.getVs() != null) {\n requestToSend.playTime = client.player.getVs().windowOffset;\n }\n alreadyRequested.update(requestToSend);\n network.send(new PrimeRequestMessage<PrimeNodeReport>(getMessageTag(), network.getAddress(), father, new PrimeNodeReport(\n requestToSend)));\n }\n }\n }\n }",
"@Override\n public double tuition(){\n return 2500;\n }",
"public abstract void distributeTeamsPointsDoubleGame(Announce normalAnnounce);",
"private void CreatingBeautyContent(int count,int typeSymmetry, int methodSearch) {\n\t\t\tConstraintsPlacement objConstraints= new ConstraintsPlacement(this);\r\n\t\t\t//Creating array with states\r\n\t\t\tArrayList<BlockNode> states = new ArrayList<BlockNode>();\r\n\t\t\t//Building the graph in a deph way\r\n\t \tGraphBuilder objGrapB= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB2= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB3= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB3a= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB4= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB5= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB6= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB7= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB8= new GraphBuilder(1);\r\n\t \t\r\n\t \tobjGrapB.setWparamether(wParamether);\r\n\t \tobjGrapB2.setWparamether(wParamether);\r\n\t \tobjGrapB3.setWparamether(wParamether);\r\n\t \tobjGrapB3a.setWparamether(wParamether);\r\n\t \tobjGrapB4.setWparamether(wParamether);\r\n\t \tobjGrapB5.setWparamether(wParamether);\r\n\t \tobjGrapB6.setWparamether(wParamether);\r\n\t \tobjGrapB7.setWparamether(wParamether);\r\n\t \tobjGrapB8.setWparamether(wParamether);\r\n\t \t\r\n\t \tint numElements=objElem.getNumberObjects();\r\n\t \tint numEnemies=objElem.getNumberObjectsEnemies();\r\n\t \tint globalControlSearch=0;\r\n\t \t\r\n\t \tdouble time6=0;\r\n\t \tdouble time7=0;\r\n\t \tdouble time3=0;\r\n\t \tdouble time4=0;\r\n\t \tdouble time5=0;\r\n\t \tdouble time8=0;\r\n\t \t\r\n\t \tdouble startTime=0;\r\n\t \tdouble stopTime=0;\r\n\t \t\r\n\t \tdouble sum3=0;\r\n\t \tdouble sum4=0;\r\n\t \tdouble sum5=0;\r\n\t \tdouble sum6=0;\r\n\t \tdouble sum7=0;\r\n\t \tdouble sum8=0;\r\n\r\n\t \t\r\n\t \t//Beststates=objGrapB.basicDepthSearch(mediumStraight,height,numElements,numElements,states,objConstraints, objElem.getFinalList(),objElem);\r\n\t \t//Beststates=objGrapB.relativePositionDepthSearch(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,-mediumStraight+2,mediumStraight-2,floorTileHeight,0,0,numEnemies,random,globalControlSearch);\r\n\t \t//Beststates=objGrapB.relativeTransPositionDepthSearch(mediumStraight,height,numElements,numElements,states,objConstraints, objElem.getFinalList(),objElem,-mediumStraight+1,mediumStraight-1,floorTileHeight,0,0,currentState,hTable);\r\n\t \t//Beststates=objGrapB.DepthSearchCenterFrame(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,1,mediumStraight-2,floorTileHeight,0,0,numEnemies,random,globalControlSearch);\r\n\t \t//Beststates=objGrapB.DepthSearchPruningAlt(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,1,mediumStraight-2,floorTileHeight,0,0,numEnemies,random,globalControlSearch);\r\n\t \t\r\n\t \r\n\r\n\t \r\n\t //3.3) Brute-force search\r\n\t //objElem.setFinalList(objElem.getFinalListNoOrder());\r\n\t \tfor(int i=0;i<1;i++)\r\n\t \t{\r\n\t \t\tstartTime = System.currentTimeMillis();\r\n\t \t\tBeststates3=objGrapB3.DepthSearchCenterFrameNoPruningNoRegionsNoObjects(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,0,mediumStraight-2,floorTileHeight,0,0,numEnemies,random,globalControlSearch,8,typeSymmetry);\r\n\t \t\tstopTime = System.currentTimeMillis();\r\n\t \t\ttime3 = stopTime - startTime;\r\n//\t \t\tround(time3,2);\r\n//\t \t\tdouble nodes3=round((double)objGrapB3.getCounterIDs(),2);\r\n//\t \t\tSystem.out.println(objGrapB3.bestSymmetryV+\" \"+time3+\" \"+((objGrapB3.getCounterIDs())));\r\n\t \t\tsum3=sum3+time3;\r\n\t \t}\r\n\t \ttime3=sum3/1;\r\n\t \ttime3=round(time3,2);\r\n\t //System.out.println(\"Time Brute-force search \"+elapsedTime);\r\n\t \t\r\n\t \r\n\t \r\n\t //3.7) B&B+heuristic\r\n\t //objElem.setFinalList(objElem.getFinalListNoOrder());\r\n\t \tfor(int i=0;i<1;i++)\r\n\t \t{\r\n\t \t\tstartTime = System.currentTimeMillis();\r\n\t \t\tBeststates7=objGrapB7.depthSearchBBHeuristic(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,0,mediumStraight-2,floorTileHeight,0,0,numEnemies,random,globalControlSearch,8,typeSymmetry);\r\n\t \t\tstopTime = System.currentTimeMillis();\r\n\t \t\ttime7 = stopTime - startTime;\r\n//\t \t\tround(time7,2);\r\n//\t \t\tdouble nodes7=round((double)objGrapB3.getCounterIDs(),2);\r\n//\t \t\tSystem.out.println(objGrapB6.bestSymmetryV+\" \"+time6+\" \"+((objGrapB6.getCounterIDs())));\r\n\t \t\tsum7=sum7+time7;\r\n\t \t}\r\n\t \ttime7=sum7/1;\r\n\t \ttime7=round(time7,2);\r\n\t //System.out.println(\"Time B&B+heuristic + region ordering \"+elapsedTime);\r\n\t \t\r\n\t \t\r\n\t \t\r\n//\t \tif(objGrapB3.bestSymmetryV<objGrapB5.bestSymmetryV)\r\n//\t \t{\r\n//\t \t\tdouble bestSYmmetry=objGrapB3.bestSymmetryV;\r\n//\t \t\t//System.out.println(\"bestSym \"+bestSYmmetry);\r\n//\t \t\tBestGlobalstates=Beststates3;\r\n//\t \t\t\r\n//\t \t}\r\n//\t \telse\r\n//\t \t{\r\n//\t \t\tdouble bestSYmmetry=objGrapB5.bestSymmetryV;\r\n//\t \t\t//System.out.println(\"bestSym \"+bestSYmmetry);\r\n//\t \t\tBestGlobalstates=Beststates5;\r\n//\t \t}\r\n\t \t\r\n\t \tBestGlobalstates=Beststates7;\r\n\t \r\n\t \r\n\t \t//**System.out.println(\"Simetry 0-> Brute-force search order \"+objGrapB3a.bestSymmetryV);\t\r\n\t \t//System.out.println(\"Simetry 1-> Brute-force search \"+objGrapB3.bestSymmetryV);\t \t\r\n\t \t//System.out.println(\"Simetry 2-> B&B+oldheuristic \"+objGrapB4.bestSymmetryV);\r\n\t \t//**System.out.println(\"Simetry 3-> B&B+heuristic + object ordering \"+objGrapB2.bestSymmetryV);\t \t\r\n\t \t//System.out.println(\"Simetry 4-> B&B+ region + leviheuristic\"+objGrapB5.bestSymmetryV);\r\n\t \t//**System.out.println(\"Simetry 5-> B&B+heuristic + region ordering + object ordering \"+objGrapB.bestSymmetryV);\r\n\t \t//System.out.println(\"Simetry 6-> B&B+heuristic + leviheuristic \"+objGrapB6.bestSymmetryV);\r\n\t \t//System.out.println(\"Simetry 7-> B&B+oldoldheuristic \"+objGrapB7.bestSymmetryV);\r\n\t \t\r\n\t \t//**System.out.println( \"States 0 \"+objGrapB3a.getCounterIDs() );\r\n\t \t//System.out.println( \"States 1 \"+objGrapB3.getCounterIDs() );\r\n\t \t//System.out.println( \"States 2 \"+objGrapB4.getCounterIDs() );\r\n\t \t//**System.out.println( \"States 3 \"+objGrapB2.getCounterIDs() );\t \t\t \t\r\n\t \t//System.out.println( \"States 4 \"+objGrapB5.getCounterIDs() );\r\n\t \t//**System.out.println( \"States 5 \"+objGrapB.getCounterIDs() );\r\n\t \t//System.out.println( \"States 6 \"+objGrapB6.getCounterIDs() );\r\n\t \t//System.out.println( \"States 7 \"+objGrapB7.getCounterIDs() );\r\n\t \t\r\n\t \tdouble TimeRate7=time3/time7;\r\n\t \tdouble TimeRate6=time3/time6;\r\n\t \tdouble TimeRate5=time3/time5;\r\n\t \t\r\n\t \tTimeRate7=round(TimeRate7,2);\r\n\t \tTimeRate6=round(TimeRate6,2);\r\n\t \tTimeRate5=round(TimeRate5,2);\r\n\t \t\r\n\t \tdouble NodesRate7=(double)objGrapB3.getCounterIDs()/(double)objGrapB7.getCounterIDs();\r\n\t \tdouble NodesRate6=(double)objGrapB3.getCounterIDs()/(double)objGrapB6.getCounterIDs();\r\n\t \tdouble NodesRate5=(double)objGrapB3.getCounterIDs()/(double)objGrapB5.getCounterIDs();\r\n\t \t\r\n\t \tNodesRate7=round(NodesRate7,2);\r\n\t \tNodesRate6=round(NodesRate6,2);\r\n\t \tNodesRate5=round(NodesRate5,2);\r\n\r\n\t \t\r\n\t \t\r\n\r\n\t //imprimiendo los estados visitados\r\n\t /*\r\n\t Iterator<BlockNode> nombreIterator = states.iterator();\r\n\t while(nombreIterator.hasNext()){\r\n\t \tBlockNode elemento = nombreIterator.next();\r\n\t \tSystem.out.print(elemento.getID()+\" / \");\r\n\t }*/\r\n\t \r\n\t //here we are painting as the best branch founded\r\n\t \r\n\t //System.out.println(\"nene \"+BestGlobalstates.size());\r\n\t Iterator<BlockNode> nombreIterator = BestGlobalstates.iterator();\r\n\t while(nombreIterator.hasNext()){\r\n\t \tBlockNode elemento = nombreIterator.next();\r\n\t \t//System.out.print(elemento.getID()+\"(\"+elemento.getX()+\" \"+elemento.getY()+\" ) - \"+elemento.getType()+\" \"+elemento.getIdElement()+ \" / \");\r\n\t }\r\n\t \r\n\t \r\n\t //Here we will put the elements on the tile\r\n\t try {\r\n\t Level levelScreen=PaintElements(BestGlobalstates,this);\r\n\t Screen objScreen=new Screen();\r\n\t\t\tobjScreen.SaveScreen(levelScreen,odds,objElem);\r\n \t\tInformacoesTelas info = new InformacoesTelas();\r\n\t CopiaArquivos copiador = new CopiaArquivos();\r\n\t \r\n\t info = info.carregaInfoTela(\"infoTela\");\r\n\t\t\tinfo.setOutrasVariaveis(0, 0); // Salva outras informacoes da Tela\r\n\t\t\tinfo.salvaInfoTela(\"infoTela\", info);\t\t\t\t\t\r\n\t\t\tcopiador.copy(\"\" + count, \"Screens/\");\r\n\t\t\t\r\n\t } catch (ClassNotFoundException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}",
"private void evaluateProbabilities()\n\t{\n\t}",
"void genPromote(Collection ret, int from, int to, int bits) {\n\tfor (char i = KNIGHT; i <= QUEEN; ++i) {\n\tBouger g = new Bouger(from, to, i, (bits | 32), 'P');\n\tg.setScore(1000000 + (i * 10));\n\tret.add(g);\n\t}\n\t}",
"int waterfall();",
"public void run() {\n PopulationFGA<Integer> poblacionActual = new PopulationFGA<>(funcionBorn,\n funcionFitness,\n problema.getDimension(),\n 1);\n poblacionActual.incializa(200);\n while(!condTerminacion.conditionReached(poblacionActual)) {\n System.out.println(\"Generacion Actual: \" + poblacionActual.getGeneracion());\n poblacionActual = iteration(poblacionActual);\n }\n ArrayList<IndividualFGA<Integer>> individuos = poblacionActual.generaIndividuos();\n IndividualFGA<Integer> mejor = individuos.get(0);\n for (IndividualFGA<Integer> e : individuos) {\n if (mejor.getFitness() <= e.getFitness())\n mejor = e;\n }\n System.out.println(\"Mejor solucion \" + '\\n' + mejor.toString());\n //System.out.println(\"Fitness \" + mejor.getFitness());\n int dim = problema.getDimension();\n int costo = 0;\n int obj1;\n int obj2;\n Phenotype<Integer> fenotipo = mejor.getRepActual();\n for (int i = 0; i < (dim - 1); i++) {\n obj1 = fenotipo.getAllele(i).intValue() - 1;\n for (int j = i + 1; j < dim; j++) {\n obj2 =fenotipo.getAllele(j).intValue() - 1; \n costo = costo + problema.getDistanciaEntre(i,j) * problema.getFlujoEntre(obj1,obj2);\n }\n }\n System.out.println(\"Costo de la solucion: \" + costo);\n\n }",
"@Override\n\tpublic void challenge6() {\n\n\t}",
"private DiscretePotentialOperations() {\r\n\t}",
"public abstract void distributeTeamsPointsRedoubleGame(Announce normalAnnounce);",
"void SendScoutBees()\n\t{\n\tint maxtrialindex,i;\n\tmaxtrialindex=0;\n\tfor (i=1;i<FoodNumber;i++)\n\t {\n\t if (trial[i]>trial[maxtrialindex])\n\t maxtrialindex=i;\n\t }\n\tif(trial[maxtrialindex]>=limit)\n\t{\n\t\tinit(maxtrialindex);\n\t}\n\t}",
"private void generateData(){\n generateP50boys();\n generateP50girls();\n generateP97boys();\n generateP97girls();\n }",
"void toyPlacingfStuff(){\n //nu stiu daca asta ramane\n gettingBackToInitial();\n nearingTheWallBefore();\n parallelToTheWall();\n actualToyPlacing();\n }",
"public TTPSolution SH2() {\n \n // get TTP data\n long[][] D = ttp.getDist();\n int[] A = ttp.getAvailability();\n double maxSpeed = ttp.getMaxSpeed();\n double minSpeed = ttp.getMinSpeed();\n long capacity = ttp.getCapacity();\n double C = (maxSpeed - minSpeed) / capacity;\n double R = ttp.getRent();\n int m = ttp.getNbCities(),\n n = ttp.getNbItems();\n TTPSolution s = new TTPSolution(m, n);\n int[] x = s.getTour(),\n z = s.getPickingPlan();\n \n /*\n * the tour\n * generated using greedy algorithm\n */\n x = linkernTour();\n z = zerosPickingPlan();\n Deb.echo(x);\n Deb.echo(z);\n \n /*\n * the picking plan\n * generated so that the TTP objective value is maximized\n */\n ttp.objective(s);\n \n // partial distance from city x_i\n long di;\n \n // partial time with item k collected from city x_i\n double tik;\n \n // item scores\n Double[] score = new Double[n];\n \n // total time with no items collected\n double t_ = s.ft;\n \n // total time with only item k collected\n double tik_;\n \n // fitness value\n double u[] = new double[n];\n \n for (int k=0; k<n; k++) {\n \n int i;\n for (i=0; i<m; i++) {\n if (A[k]==x[i]) break;\n }\n //P.echo2(\"[\"+k+\"]\"+(i+1)+\"~\");\n \n // time to start with\n tik = i==0 ? .0 : s.timeAcc[i-1];\n int iw = ttp.weightOf(k),\n ip = ttp.profitOf(k);\n \n // recalculate velocities from start\n di = 0;\n for (int r=i; r<m; r++) {\n \n int c1 = x[r]-1;\n int c2 = x[(r+1)%m]-1;\n \n di += D[c1][c2];\n tik += D[c1][c2] / (maxSpeed-iw*C);\n }\n \n score[k] = ip - R*tik;\n tik_ = t_ - di + tik;\n u[k] = R*t_ + ttp.profitOf(k) - R*tik_;\n //P.echo(k+\" : \"+u[k]);\n }\n \n Quicksort<Double> qs = new Quicksort<Double>(score);\n qs.sort();\n int[] si = qs.getIndices();\n int wc = 0;\n for (int k=0; k<n; k++) {\n int i = si[k];\n int wi = ttp.weightOf(i);\n // eliminate useless\n if (wi+wc <= capacity && u[i] > 0) {\n z[i] = A[i];\n wc += wi;\n }\n }\n \n ttp.objective(s);\n \n return s;\n }",
"private void makeStat(int nbrParties){\n\t\tint indexTemps=0;//position à laquelle ajouter un temps de partie dans le tableaux tempsPartie\n\t\twhile(nbrParties >0){//tant qu'il reste des parties à faire\n\n\t\t\tboolean gagne=false;\n\t\t\tPlayer joueurAjouer=null;\n\t\t\tlong beforeTime=System.currentTimeMillis();\n\t\t\twhile(!gagne){//tant qu'aucun joueur n'a gagné on joue\n\t\t\t\tjoueurAjouer=jeu.whichPlayer();\n\t\t\t\t\n\t\t\t\tint value=joueurAjouer.play(jeu.getGameboard(),joueurs, null, null);\n\t\t\t\tgagne=jeu.win(joueurAjouer);\n\t\t\t\t\n\t\t\t\twhile(gagne==false &&value!=GameBoard.OK){\n\t\t\t\t\tvalue=joueurAjouer.play(jeu.getGameboard(),joueurs, null, null);\n\t\t\t\t\tgagne=jeu.win(joueurAjouer);\n\t\t\t\t\t\n\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\n\t\t\tlong afterTime=System.currentTimeMillis();\n\t\t\ttempsPartie[indexTemps]=afterTime-beforeTime;\n\t\t\tindexTemps++;\n\t\t\t\n\t\t\tif(joueurAjouer==joueur1){\n\t\t\t\tif(joueur1.getNbrJoueur()==1){// signifie que c'est lui qui a commence la partie\n\t\t\t\t\tstatJ1[0]+=1;//on incremente le nombre de parties gagnées en tant que J1\n\t\t\t\t}else{\n\t\t\t\t\tstatJ1[1]+=1;//on incremente le nombre de parties gagnées en tant que J2\n\t\t\t\t}\n\t\t\t\tstatJ1[2]+=1;// on incremente le nombre de parties totales\n\t\t\t}\n\t\t\t\n\t\t\tif(joueurAjouer==joueur2){\n\t\t\t\tif(joueur2.getNbrJoueur()==1){// signifie que c'est lui qui a commence la partie\n\t\t\t\t\tstatJ2[0]+=1;//on incremente le nombre de parties gagnées en tant que J1\n\t\t\t\t}else{\n\t\t\t\t\tstatJ2[1]+=1;//on incremente le nombre de parties gagnées en tant que J2\n\t\t\t\t}\n\t\t\t\tstatJ2[2]+=1;// on incremente le nombre de parties totales\n\t\t\t}\n\t\t\t\n\t\t\tstatJ1[3]+=Player.getNbrMurDepart()-joueur1.getNombreMur();\n\t\t\tstatJ1[4]+=joueur1.getNbrDeplacement();\n\t\t\t\n\t\t\tstatJ2[3]+=Player.getNbrMurDepart()-joueur2.getNombreMur();\n\t\t\tstatJ2[4]+=joueur2.getNbrDeplacement();\n\t\t\tresetGame();\n\t\t\tnbrParties--;\n\t\t}\n\t\tstatJ1[5]+=statJ1[3]+statJ1[4];\n\t\tstatJ2[5]+=statJ2[3]+statJ2[4];\n\t}",
"@Test\n public void testGetNextCulturalObjectByStreamMethod() {\n Multimap<Long, CulturalObject> multimap = ArrayListMultimap.create();\n IntStream.range(0, NUMBER_OF_EXECUTIONS).parallel().forEach(i -> {{\n CulturalObject co = cardService.getNextCulturalObject(null);\n if (co != null) {\n multimap.put(co.getId(), co);\n }\n }});\n\n double[] sizes = multimap.keySet().stream().mapToDouble(aLong -> (double) multimap.get(aLong).size()).toArray();\n StandardDeviation std = new StandardDeviation();\n assertThat(std.evaluate(sizes), is(closeTo(0.0, 0.5)));\n\n }",
"public static void worldTimeStep() {\n\t\t//System.out.println(\"Time Step: \" + count);\n\t\tcount = count + 1;\n\t for (Critter A : Critter.population){\n\t if(A.energy<=0){\n\t\t\t\tA.isAlive = false;\n }\n else if(A.energy>0){\n\t A.isAlive=true;\n A.doTimeStep();\n if(A.energy<0){\n\t\t\t\t\tA.isAlive = false;\n\t\t\t\t}\n }\n\n }\n\t\tfor (Iterator<Critter> iterator = Critter.population.iterator(); iterator.hasNext();){\n\t\t\tCritter tmp = iterator.next();\n\t\t\tif (tmp.isAlive == false){\n\t\t\t\titerator.remove();\n\t\t\t}\n\t\t}\n\n encounters2();\n\n\t\tfor (Iterator<Critter> iterator = Critter.population.iterator(); iterator.hasNext();){\n\t\t\tCritter tmp = iterator.next();\n\t\t\tif (tmp.isAlive == false){\n\t\t\t\titerator.remove();\n\t\t\t}\n\t\t}\n\n\t\tmapCheck();\n\t\t// we have add reproduction\n\n\t\t// we have to add algae\n\t\tfor (int i = 0; i < Params.refresh_algae_count; i = i + 1){\n\t\t\t//Algae child = new Algae();\n\t\t\t//child.setEnergy(Params.start_energy);\n\t\t\t//makecritter takes care of anything\n\t\t\ttry{\n\t\t\t\tmakeCritter(\"Algae\");\n\t\t\t}\n\t\t\tcatch(InvalidCritterException e){\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t\t//deduct rest energy\n\t\tfor (Critter A : Critter.population){\n\t\t\tA.energy = A.getEnergy() - Params.rest_energy_cost;\n\t\t\tif(A.getEnergy()<=0){\n\t\t\t\tA.isAlive=false;\n\t\t\t}\n\t\t}\n\t\tfor (Iterator<Critter> iterator = Critter.population.iterator(); iterator.hasNext();){\n\t\t\tCritter tmp = iterator.next();\n\t\t\tif (tmp.isAlive == false){\n\t\t\t\titerator.remove();\n\t\t\t}\n\t\t}\n\t\t//babies add\n\t\tfor(Critter b: babies){\n\t\t\tb.isAlive=true;\n\t\t\tpopulation.add(b);\n\t\t}\n\t\t//not sure if this removes everything\n\t\tbabies.clear();\n\t}",
"public void calculateProbabilities(){\n\t}",
"public void findMutual(){\n\n }",
"public Field.Fieldelements placeShotComputer() {\r\n int sizeX = this.fieldUser.getSizeX();\r\n int sizeY = this.fieldUser.getSizeY();\r\n \r\n // probability that a field contains a ship (not in percent, 1000 is best)\r\n double[][] probability = new double[sizeX][sizeY];\r\n double sumProbability = 0;\r\n \r\n for (int posX = 0; posX < sizeX; posX++) {\r\n for (int posY = 0; posY < sizeY; posY++) {\r\n // set probability for each field to 1\r\n probability[sizeX][sizeY] = 1.;\r\n \r\n // check neighbouring fields for hits and set probability to 1000\r\n if (Field.Fieldelements.HIT == fieldUser.getFieldStatus(posX, posY - 1) ||\r\n Field.Fieldelements.HIT == fieldUser.getFieldStatus(posX, posY + 1) ||\r\n Field.Fieldelements.HIT == fieldUser.getFieldStatus(posX - 1, posY) ||\r\n Field.Fieldelements.HIT == fieldUser.getFieldStatus(posX + 1, posY)) {\r\n probability[posX][posY] = 1000;\r\n }\r\n \r\n // 0 points if all fields above and below are SUNK or SHOT\r\n if ((Field.Fieldelements.SUNK == fieldUser.getFieldStatus(posX, posY - 1) || Field.Fieldelements.WATER == fieldUser.getFieldStatus(posX, posY - 1)) &&\r\n (Field.Fieldelements.SUNK == fieldUser.getFieldStatus(posX, posY + 1) || Field.Fieldelements.WATER == fieldUser.getFieldStatus(posX, posY + 1)) &&\r\n (Field.Fieldelements.SUNK == fieldUser.getFieldStatus(posX - 1, posY) || Field.Fieldelements.WATER == fieldUser.getFieldStatus(posX - 1, posY)) &&\r\n (Field.Fieldelements.SUNK == fieldUser.getFieldStatus(posX + 1, posY) || Field.Fieldelements.WATER == fieldUser.getFieldStatus(posX + 1, posY))\r\n ) {\r\n probability[posX][posY] = 0;\r\n }\r\n \r\n // 0 points if a neighbouring field is SUNK\r\n if (Field.Fieldelements.SUNK == fieldUser.getFieldStatus(posX - 1, posY - 1) ||\r\n Field.Fieldelements.SUNK == fieldUser.getFieldStatus(posX - 1, posY) ||\r\n Field.Fieldelements.SUNK == fieldUser.getFieldStatus(posX - 1, posY + 1) ||\r\n Field.Fieldelements.SUNK == fieldUser.getFieldStatus(posX, posY - 1) ||\r\n Field.Fieldelements.SUNK == fieldUser.getFieldStatus(posX, posY + 1) ||\r\n Field.Fieldelements.SUNK == fieldUser.getFieldStatus(posX + 1, posY - 1) ||\r\n Field.Fieldelements.SUNK == fieldUser.getFieldStatus(posX + 1, posY) ||\r\n Field.Fieldelements.SUNK == fieldUser.getFieldStatus(posX + 1, posY + 1)\r\n ) {\r\n probability[posX][posY] = 0;\r\n }\r\n \r\n // 0 points if top right, top left, bottom right or bottom left is HIT\r\n if (Field.Fieldelements.HIT == fieldUser.getFieldStatus(posX - 1, posY - 1) ||\r\n Field.Fieldelements.HIT == fieldUser.getFieldStatus(posX - 1, posY + 1) ||\r\n Field.Fieldelements.HIT == fieldUser.getFieldStatus(posX + 1, posY - 1) ||\r\n Field.Fieldelements.HIT == fieldUser.getFieldStatus(posX + 1, posY + 1)\r\n ) {\r\n probability[posX][posY] = 0;\r\n }\r\n \r\n // 0 points if a shot has already been placed\r\n if (Field.Fieldelements.WATER != fieldUser.getFieldStatus(posX, posY) &&\r\n Field.Fieldelements.SHIP != fieldUser.getFieldStatus(posX, posY)) {\r\n probability[posX][posY] = 0;\r\n }\r\n }\r\n }\r\n \r\n // calculate sum of all points\r\n // TODO check if probability must be smaller numbers\r\n for (int posX = 0; posX < sizeX; sizeX++) {\r\n for (int posY = 0; posY < sizeY; posY++) {\r\n sumProbability += probability[posX][posY];\r\n }\r\n }\r\n \r\n // random element\r\n Random random = new Random();\r\n sumProbability = random.nextInt((int) --sumProbability);\r\n sumProbability++; // must at least be 1\r\n int posY = -1;\r\n int posX = -1;\r\n while (posY < sizeY - 1 && sumProbability >= 0) {\r\n posY++;\r\n posX = -1;\r\n while (posX < sizeX && sumProbability >= 0) {\r\n posX++;\r\n sumProbability = sumProbability - probability[posX][posY];\r\n }\r\n }\r\n return fieldUser.shoot(posX, posY);\r\n }",
"public abstract void distributeTeamsPointsNormalGame(Announce normalAnnounce);",
"public void mo6081a() {\n }",
"int getServerProcessingIterations();",
"public void tournamentWithElitism(){\n\t\tEvolvable spring[] = new Evolvable[populationSize];\n\t\t\n\t\t//elite individuals go directly to new population\n\t\tfor (int i = 0; i < SNSLearningAgent.elitism; i++){\n\t\t\tspring[i] = population[i];\t\n\t\t}\n\t\t\n\t\t//other individuals are selected via tournament\n\t\tfor (int i = SNSLearningAgent.elitism; i < populationSize; i+=2) {\n\t\t\t//parents selected via tournament\n\t\t\tint p1 = tournament(SNSLearningAgent.tournamentSize);\t\n\t\t\tint p2 = tournament(SNSLearningAgent.tournamentSize);\n\t\t\twhile(p1 == p2)\tp2 = tournament(SNSLearningAgent.tournamentSize);\n\t\t\t\n\t\t\t//performs crossover if probability is matched\n\t\t\tif(R.nextFloat() < SNSLearningAgent.crossoverProb){\n\t\t\t\tif (crossBehavior.equals(\"freeSplitCross\")){\n\t\t\t\t\tint point = R.nextInt(SNSAgent.DNA_LENGTH);\n\t\t\t\t\t\n\t\t\t\t\tspring[i] = cross(population[p1], population[p2], point);\n\t\t\t\t\tif (i+1 < populationSize) spring[i+1] = cross(population[p2], population[p1], point);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tspring[i] = cross(population[p1], population[p2]);\n\t\t\t\t\tif (i+1 < populationSize) spring[i+1] = cross(population[p2], population[p1]);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\telse{\n\t\t\t\tspring[i] = population[p1];\n\t\t\t\tif (i+1 < populationSize) spring[i+1] = population[p2];\n\t\t\t}\n\t\t\t\n\t\t\t//performs mutation if probability is reached\n\t\t\tif(R.nextFloat() < SNSLearningAgent.mutationProb){\n\t\t\t\tspring[i].mutate();\n\t\t\t}\n\t\t\tif(i+1 < populationSize && R.nextFloat() < SNSLearningAgent.mutationProb){\n\t\t\t\tspring[i+1].mutate();\n\t\t\t}\n\t }\n\t\t\n\t\t//replaces old population with the new one\n\t\tfor(int i = 1; i < populationSize; i++) {\n\t\t\tpopulation[i] = spring[i];\n\t\t}\n\t}",
"private void greedyEnemySpawner(float enemyCap, IEnemyService spawner, World world, GameData gameData) {\r\n while (enemyCap >= MEDIUM_ENEMY_COST) {\r\n\r\n if (enemyCap >= MEDIUM_ENEMY_COST + BIG_ENEMY_COST) {\r\n spawnBigAndMediumEnemy(spawner, world, gameData);\r\n enemyCap -= MEDIUM_ENEMY_COST + BIG_ENEMY_COST;\r\n\r\n } else if (enemyCap >= BIG_ENEMY_COST) {\r\n spawnBigEnemy(spawner, world, gameData);\r\n enemyCap -= BIG_ENEMY_COST;\r\n\r\n } else {\r\n spawnMediumEnemy(spawner, world, gameData);\r\n enemyCap -= MEDIUM_ENEMY_COST;\r\n }\r\n }\r\n }",
"double passer();",
"public static void main(String[] args) {\n City city = new City(60, 200);\n\n City city2 = new City(180, 200);\n\n City city3 = new City(80, 180);\n City city4 = new City(140, 180);\n\n City city5 = new City(20, 160);\n\n City city6 = new City(100, 160);\n\n City city7 = new City(200, 160);\n\n City city8 = new City(140, 140);\n\n City city9 = new City(40, 120);\n\n City city10 = new City(100, 120);\n\n City city11 = new City(180, 100);\n\n City city12 = new City(60, 80);\n\n City city13 = new City(120, 80);\n City city14 = new City(180, 60);\n City city15 = new City(20, 40);\n\n City city16 = new City(100, 40);\n\n City city17 = new City(200, 40);\n City city18 = new City(20, 20);\n\n City city19 = new City(60, 20);\n City city20 = new City(160, 20);\n List<City> list=new ArrayList<City>();\n list.add(city);list.add(city2);\n list.add(city3);\n list.add(city4);\n list.add(city5);\n list.add(city6);\n list.add(city7);\n list.add(city8);\n list.add(city9);\n list.add(city10);\n list.add(city11);\n list.add(city12);\n list.add(city13);\n list.add(city14);\n list.add(city15);\n list.add(city16);\n list.add(city17);\n list.add(city18);\n list.add(city19);\n list.add(city20);\n\n // Initialize population\n Population pop = new Population(100, true,list);\n System.out.println(\"Initial distance: \" + pop.getBestTour().getDistance());\n\n // Evolve population for 100 generations\n pop = Ga.evolvePopulation(pop);\n for (int i = 0; i < 500; i++) {\n pop = Ga.evolvePopulation(pop);\n System.out.println(\"第\"+i+\"代\"+pop.getBestTour().getDistance());\n }\n\n // Print final results\n System.out.println(\"Finished\");\n System.out.println(\"Final distance: \" + pop.getBestTour().getDistance());\n System.out.println(\"Solution:\");\n System.out.println(pop.getBestTour());\n }",
"static Tour rndTour() {\r\n\t\tTour tr = Tour.sequence();\r\n\t\ttr.randomize();\r\n\t\ttr.distance = tr.distance();\r\n\t\treturn tr;\r\n\t}",
"private void warResult() {\r\n // Get number of survivors alive\r\n int survivorCount = safeCount(survivors);\r\n if (survivorCount == 0) {\r\n System.out.println(\"None of the survivors made it.\");\r\n\t\t}\r\n else {\r\n System.out.println(\"It seems \" + survivorCount + \" have made it to safety.\");\r\n\t\t}\r\n }",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic boolean step(){\n\t\tboolean ret=false;\n\t\tif(!isFollowing()){\n\t\t\t//80% valoszinuseggel leptet egy szomszedra\n\t\t\tRandom rng=new Random();\n\t\t\tboolean doAStep =rng.nextInt(10)>1;\n\t\t\tif(doAStep){\n\t\t\t\tif(tile != null){\n\t\t\t\tint bound=tile.getNeighbors().size();\n\t\t\t\t//System.out.println(\"bound :\"+bound);\n\t\t\t\t//System.out.println(\"ez lett a bound: \"+rng.nextInt(bound));\n\t\t\t\tret=step(tile.getNeighbors().get(rng.nextInt(bound)));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn ret;\n\t}",
"protected void runBeforeIterations() {}",
"public Position findWeed() {\n int xVec =0;\n int yVec=0;\n int sum = 0;\n Position move = new Position(0, 0);\n for (int i = 0; i < this.WORLD.getMapSize().getX(); i++) {\n for (int j = 0; j < this.WORLD.getMapSize().getY(); j++) {\n\n //hogweed\n Organism organism = this.WORLD.getOrganism(i, j);\n if(organism!=null){\n Class c = organism.getClass();\n if (c.getSimpleName().equals(\"Parnsip\")) {\n int tmpX = Math.abs(this.position.getX() - i);\n int tmpY = Math.abs(this.position.getY() - j);\n if (!(xVec == 0 && yVec == 0)) {\n int tmpSum = tmpX + tmpY;\n if (sum > tmpSum) {\n xVec=tmpX;\n yVec=tmpY;\n sum = tmpSum;\n this.setMove(move, j, i);\n }\n }\n else {\n xVec=tmpX;\n yVec=tmpY;\n sum = tmpX + tmpY;\n this.setMove(move, j, i);\n }\n }\n }\n\n }\n }\n return move;\n }",
"public void travaille();",
"protected boolean IsHighExplosive()\r\n {\r\n \t// Wrapper function to make code a little cleaner.\r\n // isInvulnerable() is wrongly named and instead represents the specific\r\n // skull type the wither has launched\r\n \t\r\n \treturn isInvulnerable();\r\n }",
"private void forPractice() //for loop- always a counting loop (like Simon says- do it 3 times)-pass two streets then turn left\n\t{\n\t\tfor (int i = 1; i < 4; i++)\n\t\t{\n\t\t\taskUser();\n\t\t}\n\t\n\t\n\t\n\t//Analogy-\n\t//model is what you can see\n\t//controller-director-not seen in the movie\n\t//all work goes \n\n\t\n\t}",
"public static void calculateFitness(StrategyPool sp)\r\n\t{\r\n\t\tfor(int i = 0; i<sp.pool.size() ; i++)\r\n\t\t{\r\n\t\t\tfor(int j = 0; j <sp.pool.size() ; j++)\r\n\t\t\t{\r\n\t\t\t\tif(i == j)\r\n\t\t\t\t\t; //do nothing\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n//\t\t\t\t\tSystem.out.println(\"Playing Strategy \" +i +\" against \" +j );\r\n\t\t\t\t\tStrategy p1 = sp.pool.get(i);\r\n\t\t\t\t\tStrategy p2 = sp.pool.get(j);\r\n\t\t\t\t\tint winner = 0;\r\n\t\t\t\t\tfor(int k = 0; k<1000 ; k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\twinner = new Game().play(p1,p2);\r\n\t\t\t\t\t\t\tif(winner == 0)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tp1.addDrawCount();\r\n\t\t\t\t\t\t\t\tp2.addDrawCount();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse if(winner == 1)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tp1.addWinCount();\r\n\t\t\t\t\t\t\t\tp2.addLostCount();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse if(winner ==2)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tp1.addLostCount();\r\n\t\t\t\t\t\t\t\tp2.addWinCount();\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\t//switch positions\r\n\t\t\t\t\tp2 = sp.pool.get(i);\r\n\t\t\t\t\tp1 = sp.pool.get(j);\r\n\r\n//\t\t\t\t\tSystem.out.println(\"Playing Strategy \" +j +\" against \" +i );\r\n\t\t\t\t\t\r\n\t\t\t\t\tfor(int k = 0; k<1000 ; k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\twinner = new Game().play(p1,p2);\r\n\t\t\t\t\t\tif(winner == 0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tp1.addDrawCount();\r\n\t\t\t\t\t\t\tp2.addDrawCount();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse if(winner == 1)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tp1.addWinCount();\r\n\t\t\t\t\t\t\tp2.addLostCount();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse if(winner ==2)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tp1.addLostCount();\r\n\t\t\t\t\t\t\tp2.addWinCount();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public Scenario generate() {\n\n //generate random number of Passenger(all human)\n ArrayList liPsg = new ArrayList();\n int totalNumOfPsg = (int) (rd.nextDouble() * PassengerCountMax + PassengerCountMin); //at least one Psg\n for (int i = 0; i < totalNumOfPsg; i++) {\n liPsg.add(getRandomPerson());\n }\n //System.out.println(\"PassengerNum= \"+totalNumOfPsg);\n\n\n //generate random number of Pedestrians(with Max 5) & allocate person+animal randomly(human+animal)\n ArrayList liPdt = new ArrayList();\n int totalNumOfPdst = (int) (rd.nextDouble() * PedestrianCountMax + PedestrianCountMin);//at least one Pdg\n int NumOfPerson = (int) Math.round(rd.nextDouble() * totalNumOfPdst);//if only 1 pdt,along with randomDouble<0.5 , 0.4x*1 rounded=0, will only an animal\n //so if you are random being in pdt but pdt only an animal, you neither wont be in scenario, so your negative probability in scenario is higher.\n int NumOfAnimal = totalNumOfPdst - NumOfPerson;\n for (int i = 0; i < NumOfPerson; i++) {\n liPdt.add(getRandomPerson());\n }\n for (int i = 0; i < NumOfAnimal; i++) {\n liPdt.add(getRandomAnimal());\n }\n //System.out.println(\"PedestrianNum= \"+totalNumOfPdst+\" with \"+NumOfPerson+\" human and \"+NumOfAnimal+\" animals\");\n\n\n //allocating where you are, 0=you absence & do nothing, 1=you in car, 2=you on road !!!!yeah happy solving\n int allocate_of_user = (int) Math.round(rd.nextDouble() * 2);\n if (allocate_of_user == 1) {\n ((Person) liPsg.get(0)).setAsYou(true); //set the first psg is you. !!!!!important Cast Obj into Person!!!!\n } else if (allocate_of_user == 2) {\n for (int i = 0; i < liPdt.size(); i++) {\n if (liPdt.get(i) instanceof Person) {//check whether a person\n ((Person) liPdt.get(i)).setAsYou(true);\n break; // only set once than break rather than set all of people of pdt is you\n }\n }\n }\n\n //Scenario(ArrayList<Character> passengers, ArrayList<Character> pedestrians, boolean isLegalCrossing)\n S = new Scenario(liPsg, liPdt, rd.nextBoolean()); //isLegalCrossing = red or green light;\n return S;\n }",
"public void infect() {\n\n if (random.getRandom() <= getProbability()) {\n isInfected = true;\n isInfectedOnThisStep = true;\n }\n }",
"public void MemberOfParliament(){\n this.spendings_sum=0d;\n this.spending_repair_office=0d;\n this.how_many_trips=0;\n this.longest_trip=0;\n this.was_in_italy = false;\n }",
"private void swarmingPhase() {\n if (prevMaxTimestamp == -1 || client.player.getVs() == null) {\n return;\n }\n final Set<NodeAddress> fathers = ((GroupedOverlayModule<?>) mainOverlay).getNodeGroup(GroupedOverlayModule.fathersGroupName);\n final PrimeNodeReport alreadyRequested = new PrimeNodeReport();\n final Map<Long, Integer> howManyMissingDescriptions = new TreeMap<Long, Integer>();\n // TODO initialize, also, why in parameter and not as return value?\n initiateHowManyMissingDescriptions(howManyMissingDescriptions);\n for (final NodeAddress father : fathers) {\n if (!inboxHistory.keySet().contains(father)) {\n continue;\n }\n // Don't do swarming phase for nodes that didn't get any chunks yet.\n if (inboxHistory.get(father).getLatestTimestamp() <= client.player.getVs()\n .getAvailableDescriptions(client.player.getVs().windowOffset).getLatestTimestamp()) {\n final PrimeNodeReport availableDescriptionsAtFather = inboxHistory.get(father);\n PrimeNodeReport requestToSend = client.player.getVs().getMissingDescriptions().getIntersect(availableDescriptionsAtFather);\n requestToSend = alreadyRequested.getDelta(requestToSend);\n updateRequestAccordingThreshold(howManyMissingDescriptions, requestToSend);\n if (requestToSend.size() == 0) {\n continue;\n }\n requestToSend = requestToSend.getRandomSubset(client.player.getVs().windowOffset - 1, prevMaxTimestamp, r);\n if (requestToSend.size() != 0) {\n requestToSend.playTime = client.player.getVs().windowOffset;\n alreadyRequested.update(requestToSend);\n updateHowManyMissingDescriptions(howManyMissingDescriptions, requestToSend);\n network.send(new PrimeRequestMessage<PrimeNodeReport>(getMessageTag(), network.getAddress(), father, new PrimeNodeReport(\n requestToSend)));\n }\n }\n }\n }",
"public static void main(String[] args){\n\t\tint increment=1;\n\t\tfor(int m=0;m<=5000;m+=increment){\n\t\t\tif(m==10)\n\t\t\t\tincrement=5;\n\t\t\tif(m==100)\n\t\t\t\tincrement=100;\n\t\t\tif(m==500)\n\t\t\t\tincrement=500;\n\n\t\t\tfor(int l=0;l<30;++l){\n\t\t\t\tdouble[][][] AFFINITY3=new double[Task.TYPES_OF_TASK_NUMBER][Task.TYPES_OF_TASK_NUMBER][Task.TYPES_OF_TASK_NUMBER];\n\t\t\t\tRandom r=new Random(l);\n\t\t\t\tdouble affinity;\n\t\t\t\tfor(int i=0;i<Task.TYPES_OF_TASK_NUMBER;++i){\n\t\t\t\t\tfor(int j=0;j<Task.TYPES_OF_TASK_NUMBER;++j){\n\t\t\t\t\t\tfor(int k=0;k<Task.TYPES_OF_TASK_NUMBER;++k){\n\t\t\t\t\t\t\tdo{\n\t\t\t\t\t\t\t\taffinity=r.nextDouble();\n\t\t\t\t\t\t\t}while(affinity==0);\n\t\t\t\t\t\t\tAFFINITY3[i][j][k]=AFFINITY3[i][k][j]=AFFINITY3[k][i][j]=AFFINITY3[j][i][k]=AFFINITY3[k][j][i]=AFFINITY3[j][k][i]=affinity;\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tList<Node> infrastructure=new ArrayList<>();\n\t\t\t\tfor(int i=0; i<TEST_NUMBER_OF_NODES;++i)\n\t\t\t\t\tinfrastructure.add(new Node(TEST_NUMBER_OF_CORES, TEST_RAM_SIZE));\n\t\t\t\tList<Task> tasks=new ArrayList<>();\n\t\t\t\tTaskType[] types=TaskType.values();\n\t\t\t\tfor(int i=0;i<TEST_NUMBER_OF_PROCESS;++i){\n\t\t\t\t\tTaskType type=types[r.nextInt(Task.TYPES_OF_TASK_NUMBER)];\n\t\t\t\t\tint instanceNumber=r.nextInt(101)+10;//from 10 to 100 instances\n\t\t\t\t\tint coresPerInstance=r.nextInt(12)+1;//from 1 to 12\n\t\t\t\t\tint ramPerinstance=r.nextInt(12*1024+101)+100;//from 100MB to 12GB\n\t\t\t\t\tdouble baseTime=r.nextInt(10001)+1000;//from 100 cycles to 1000\n\t\t\t\t\ttasks.add(new Task(type,instanceNumber,coresPerInstance,ramPerinstance,baseTime));\n\t\t\t\t}\n\t\t\t\tList<Integer> arrivalOrder=new ArrayList<>();\n\t\t\t\tint tasksSoFar=0;\n\t\t\t\tdo{\n\t\t\t\t\ttasksSoFar+=r.nextInt(11);\n\t\t\t\t\tarrivalOrder.add((tasksSoFar<tasks.size())?tasksSoFar:tasks.size());\n\t\t\t\t}while(tasksSoFar<tasks.size());\n\t\t\t\tfinal Scheduler scheduler=new AffinityAwareFifoScheduler(tasks, arrivalOrder, infrastructure,AFFINITY3,AffinityType.NORMAL,m);\n\t\t\t\tThread t=new Thread(new Runnable() {\t\t\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tscheduler.runScheduler();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tt.start();\n\t\t\t\ttry {\n\t\t\t\t\tt.join();\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"Finished running.\");\n\t\t\t}\n\t\t}\n\t}",
"void findInstantiations (final Buffers buffers)\n\t{\n\t\tbuffers.removeDecayedChunks();\n\n\t\tHashSet<Instantiation> set = new HashSet<Instantiation>();\n\t\tbuffers.sortGoals();\n\n\t\tif (buffers.numGoals() == 0)\n\t\t{\n for (Production p : productions.values()) {\n Instantiation inst = p.instantiate(buffers);\n if (inst != null) set.add(inst);\n }\n\t\t}\n\t\telse\n\t\t{\n\t\t\tfor (int i=0 ; set.isEmpty() && i<buffers.numGoals() ; i++)\n\t\t\t{\n\t\t\t\tbuffers.tryGoal (i);\n\t\t\t\tif (threadedCognitionTrace)\n\t\t\t\t\tmodel.output (\"*** (tct) trying goal \" + buffers.get(Symbol.goal));\n for (Production p : productions.values()) {\n Instantiation inst = p.instantiate(buffers);\n if (inst != null) set.add(inst);\n }\n\t\t\t}\n\t\t}\n\n\t\tif (threadedCognitionTrace)\n\t\t\tmodel.output (\"*** (tct) found \"+set.size()+\" match\"+(set.size()==1 ? \"\" : \"es\"));\n\n\t\tif (!set.isEmpty())\n\t\t{\n\t\t\tif (conflictSetTrace) model.output (\"Conflict Set:\");\n\t\t\tIterator<Instantiation> itInst = set.iterator();\n\t\t\tInstantiation highestU = itInst.next();\n\t\t\tif (conflictSetTrace) model.output (\"* (\" + String.format(\"%.3f\",highestU.getUtility()) + \") \" + highestU);\n\t\t\twhile (itInst.hasNext())\n\t\t\t{\n\t\t\t\tInstantiation inst = itInst.next();\n\t\t\t\tif (conflictSetTrace) model.output (\"* (\" + String.format(\"%.3f\",inst.getUtility()) + \") \" + inst);\n\t\t\t\tif (inst.getUtility() > highestU.getUtility()) highestU = inst;\n\t\t\t}\n\n\t\t\tfinal Instantiation finalInst = highestU;\n\t\t\tif (conflictSetTrace) model.output (\"-> (\" + String.format(\"%.3f\",finalInst.getUtility()) + \") \" + finalInst);\n\n\t\t\tif (finalInst.getProduction().isBreakPoint())\n\t\t\t{\n\t\t\t\tmodel.addEvent (new Event (model.getTime() + .049,\n\t\t\t\t\t\t\"procedural\", \"about to fire \" + finalInst.getProduction().getName().getString().toUpperCase())\n\t\t\t\t{\n\t\t\t\t\tpublic void action() {\n\t\t\t\t\t\tmodel.output (\"------\", \"break\");\n\t\t\t\t\t\tmodel.stop();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tString extra = \"\";\n\t\t\tif (buffers.numGoals() > 1)\n\t\t\t{\n\t\t\t\tChunk goal = buffers.get(Symbol.goal);\n\t\t\t\textra = \" [\" + ((goal!=null) ? goal.getName().getString() : \"nil\") + \"]\";\n\t\t\t}\n\n\t\t\tmodel.addEvent (new Event (model.getTime() + .050,\n\t\t\t\t\t\"procedural\", \"** \" + finalInst.getProduction().getName().getString().toUpperCase() + \" **\" + extra)\n\t\t\t{\n\t\t\t\tpublic void action() {\n\t\t\t\t\tfire (finalInst, buffers);\n\t\t\t\t\tfindInstantiations (buffers);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}",
"protected OpinionFinding() {/* intentionally empty block */}",
"private WeightedSampler<String> getPossibleActions(int team) {\n if (this.b.getCurrentPlayerTurn() != team || this.b.getWinner() != 0) {\n return null;\n }\n Player p = this.b.getPlayer(team);\n WeightedSampler<String> poss = new WeightedRandomSampler<>();\n // playing cards & selecting targets\n List<Card> hand = p.getHand();\n for (Card c : hand) {\n if (p.canPlayCard(c)) {\n double totalWeight = PLAY_CARD_TOTAL_WEIGHT + PLAY_CARD_COST_WEIGHT_MULTIPLIER * c.finalStats.get(Stat.COST);\n List<List<List<TargetList<?>>>> targetSearchSpace = new LinkedList<>();\n this.getPossibleListTargets(c.getBattlecryTargetingSchemes(), new LinkedList<>(), targetSearchSpace);\n if (targetSearchSpace.isEmpty()) {\n targetSearchSpace.add(List.of());\n }\n if (c instanceof BoardObject) {\n double weightPerPos = totalWeight / (p.getPlayArea().size() + 1);\n // rip my branching factor lol\n for (int playPos = 0; playPos <= p.getPlayArea().size(); playPos++) {\n for (List<List<TargetList<?>>> targets : targetSearchSpace) {\n poss.add(new PlayCardAction(p, c, playPos, targets).toString().intern(), weightPerPos / targetSearchSpace.size());\n }\n }\n } else {\n // spells don't require positioning\n for (List<List<TargetList<?>>> targets : targetSearchSpace) {\n poss.add(new PlayCardAction(p, c, 0, targets).toString().intern(), totalWeight / targetSearchSpace.size());\n }\n }\n }\n }\n this.b.getMinions(team, false, true).forEachOrdered(m -> {\n // unleashing cards & selecting targets\n if (p.canUnleashCard(m)) {\n List<List<List<TargetList<?>>>> targetSearchSpace = new LinkedList<>();\n this.getPossibleListTargets(m.getUnleashTargetingSchemes(), new LinkedList<>(), targetSearchSpace);\n if (targetSearchSpace.isEmpty()) {\n targetSearchSpace.add(List.of());\n }\n for (List<List<TargetList<?>>> targets : targetSearchSpace) {\n poss.add(new UnleashMinionAction(p, m, targets).toString().intern(), UNLEASH_TOTAL_WEIGHT / targetSearchSpace.size());\n }\n }\n // minion attack\n if (m.canAttack()) {\n double totalWeight = ATTACK_TOTAL_WEIGHT + ATTACK_WEIGHT_MULTIPLIER * m.finalStats.get(Stat.ATTACK);\n double weight = totalWeight / m.getAttackableTargets().count();\n m.getAttackableTargets().forEachOrdered(target -> {\n double bonus = target instanceof Leader ? ATTACK_TARGET_LEADER_MULTIPLIER : 1;\n double overkillMultiplier = Math.pow(ATTACK_WEIGHT_OVERKILL_PENALTY, Math.max(0, m.finalStats.get(Stat.ATTACK) - target.health));\n poss.add(new OrderAttackAction(m, target).toString().intern(), overkillMultiplier * bonus * weight);\n });\n }\n });\n // ending turn\n poss.add(new EndTurnAction(team).toString().intern(), END_TURN_WEIGHT);\n return poss;\n }",
"private static void BicingsimulatedAnnealingSearch(int num, int n_est, int nbicis, int nfurgo, int d1, int cas, String Cas, String H, String D, int s) {\n\n\n try {\n\n double MedT = 0;\n //double MedN = 0;\n //double MedB = 0;\n int iteraciones = 100;\n Estado Bicing = new Estado(n_est,nbicis,nfurgo,d1,s,1);\n Bicing.setList_cdesp(iteraciones);\n long StartTime = System.nanoTime();\n Problem problem = new Problem(Bicing, new sucesoresA(), new isGoal(), new Heuristic_Function());\n SimulatedAnnealingSearch search = new SimulatedAnnealingSearch(iteraciones, 1000, 125, 0.00001D);\n SearchAgent agent = new SearchAgent(problem, search);\n List L = search.getPathStates();\n Properties properties = agent.getInstrumentation();\n long EndTime = System.nanoTime();\n Estado E = (Estado) search.getGoalState();\n long time = ((EndTime - StartTime) / 1000000);\n MedT += time;\n //MedB += E.getganancia();\n // MedN += Integer.parseInt(properties.getProperty((String)properties.keySet().iterator().next()));\n // MedB /= num;\n // MedN /= num;\n // MedT /= num;\n //MedB = (Math.round(MedB*100.0)/100.0);\n Writer output;\n output = new BufferedWriter(new FileWriter(\"Estadisticas_\" + Cas + \"_D\" + D + \"_H\" + H + \"S.txt\", true));\n double [] vec = E.getearnings();\n for (int i = 0 ; i < iteraciones; ++i) {\n String S = \"\" + vec[i];\n S = S + '\\n';\n output.append(S);\n }\n output.close();\n\n /*for (int i = 0; i < E.getN_furgo(); ++i) {\n System.out.println(\"Recorrido por furgoneta \" + i + \" \" + E.getIFurgo(i).getLong_t());\n }*/\n //printEstado(E);\n //System.out.println();\n //System.out.println(E.getganancia());\n //printActions(agent.getActions());\n //printInstrumentation(agent.getInstrumentation());\n } catch (Exception var4) {\n var4.printStackTrace();\n }\n\n }",
"@Test\n public void partyTour() throws FileNotFoundException, URISyntaxException,\n DisconnectedException {\n MatchController matchController = new MatchController() {\n @Override\n public void initMatch(PartyController partyController)\n throws FileNotFoundException, URISyntaxException {\n this.partyController = partyController;\n this.match = new Match();\n this.turnController = new TurnController(this) {\n @Override\n protected boolean isPlayerOffline(Player player) {\n return false;\n }\n\n @Override\n protected void notify(Player nextPlayer) {\n }\n\n };\n ZoneFactory zf = new TemplateZoneFactory(\n EftaiosGame.DEFAULT_MAP);\n this.zoneController = new ZoneController(zf);\n }\n\n @Override\n public void checkEndGame() {\n }\n\n };\n PlayerCard alien = new PlayerCard(PlayerRace.ALIEN, null);\n PlayerCard human = new PlayerCard(PlayerRace.HUMAN, null);\n Party party = new Party(\"test\", new EftaiosGame(), false);\n PartyController partyController = PartyController.createNewParty(party);\n party.addToParty(UUID.randomUUID(), \"player1\");\n party.addToParty(UUID.randomUUID(), \"player2\");\n party.addToParty(UUID.randomUUID(), \"player3\");\n party.addToParty(UUID.randomUUID(), \"player4\");\n party.addToParty(UUID.randomUUID(), \"player5\");\n party.addToParty(UUID.randomUUID(), \"player6\");\n party.addToParty(UUID.randomUUID(), \"player7\");\n List<Player> players = new ArrayList<Player>(party.getMembers()\n .keySet());\n Player player1 = players.get(0);\n Player player2 = players.get(1);\n Player player3 = players.get(2);\n Player player4 = players.get(3);\n Player player5 = players.get(4);\n Player player6 = players.get(5);\n Player player7 = players.get(6);\n player1.setIdentity(alien);\n player2.setIdentity(alien);\n player3.setIdentity(alien);\n player4.setIdentity(alien);\n player5.setIdentity(human);\n player6.setIdentity(human);\n player7.setIdentity(human);\n matchController.initMatch(partyController);\n\n // turno di partenza\n Player startPlayer = new Player(\"\", 9);\n for (Player nextPlayer : players) {\n if (nextPlayer.getIndex() == 7) {\n startPlayer = nextPlayer;\n }\n }\n Turn turn = new Turn(startPlayer, matchController.getMatch()\n .getTurnCount());\n matchController.getTurnController().setTurn(turn);\n assertTrue(matchController.getTurnController().getTurn()\n .getCurrentPlayer().equals(startPlayer));\n int num = matchController.getMatch().getTurnCount();\n\n // cerco il player successivo\n Player endPlayer = new Player(\"\", 9);\n for (Player nextPlayer : players) {\n if (nextPlayer.getIndex() == 1) {\n endPlayer = nextPlayer;\n }\n }\n\n // eseguo\n matchController.getTurnController().nextTurn();\n\n // verifico\n assertTrue(matchController.getTurnController().getTurn()\n .getCurrentPlayer().equals(endPlayer));\n assertTrue(matchController.getMatch().getTurnCount() == num + 1);\n }",
"static List<Determinization> createDeterminizations(Player comp, Player user, int count)\n {\n long maxTime = 8000l;\n\n long currentTime = System.currentTimeMillis();\n long endTime = currentTime+maxTime;\n\n List<Determinization> result = new ArrayList<>();\n\n for(int i = 0; i < count; i++) {\n // Create a det. for player (opponent)\n result.add(createDeterminization(comp.deepClone(), user.deepClone()));\n\n currentTime = System.currentTimeMillis();\n if(currentTime > endTime)\n {\n break;\n }\n }\n\n return result;\n }",
"private int FindGold() {\n VuforiaLocalizer vuforia;\n\n /**\n * {@link #tfod} is the variable we will use to store our instance of the Tensor Flow Object\n * Detection engine.\n */\n TFObjectDetector tfod;\n \n VuforiaLocalizer.Parameters parameters = new VuforiaLocalizer.Parameters();\n\n parameters.vuforiaLicenseKey = VUFORIA_KEY;\n parameters.cameraDirection = CameraDirection.BACK;\n\n // Instantiate the Vuforia engine\n vuforia = ClassFactory.getInstance().createVuforia(parameters);\n\n // Loading trackables is not necessary for the Tensor Flow Object Detection engine.\n \n\n /**\n * Initialize the Tensor Flow Object Detection engine.\n */\n if (ClassFactory.getInstance().canCreateTFObjectDetector()) {\n int tfodMonitorViewId = hardwareMap.appContext.getResources().getIdentifier(\n \"tfodMonitorViewId\", \"id\", hardwareMap.appContext.getPackageName());\n TFObjectDetector.Parameters tfodParameters = new TFObjectDetector.Parameters(tfodMonitorViewId);\n tfod = ClassFactory.getInstance().createTFObjectDetector(tfodParameters, vuforia);\n tfod.loadModelFromAsset(TFOD_MODEL_ASSET, LABEL_GOLD_MINERAL, LABEL_SILVER_MINERAL);\n tfod.activate();\n } else {\n telemetry.addData(\"Sorry!\", \"This device is not compatible with TFOD\");\n return 3;\n }\n\n int Npos1=0;\n int Npos2=0;\n int Npos3=0;\n int NposSilver1=0;\n int NposSilver2=0;\n int NposSilver3=0;\n double t_start = getRuntime();\n\n\n while (opModeIsActive()) {\n \n if( (getRuntime() - t_start ) > 3.5) break;\n if (Npos1 >=5 || Npos2>=5 || Npos3>=5)break;\n if (NposSilver1>=5 && NposSilver2>=5)break;\n if (NposSilver2>=5 && NposSilver3>=5)break;\n if (NposSilver1>=5 && NposSilver3>=5)break;\n if (tfod != null) {\n // getUpdatedRecognitions() will return null if no new information is available since\n // the last time that call was made.\n List<Recognition> updatedRecognitions = tfod.getUpdatedRecognitions();\n if (updatedRecognitions != null) {\n //telemetry.addData(\"# Object Detected\", updatedRecognitions.size());\n //if (updatedRecognitions.size() == 3) {\n int goldMineralX = -1;\n int silverMineralX = -1;\n for (Recognition recognition : updatedRecognitions) {\n if (recognition.getLabel().equals(LABEL_GOLD_MINERAL)) {\n goldMineralX = (int) recognition.getLeft();\n telemetry.addData(\"gold position\", goldMineralX);\n if(goldMineralX<300) {\n Npos1++;\n telemetry.addData(\"loc\", 1);\n }else if(goldMineralX<800){\n Npos2++;\n telemetry.addData(\"loc\", 2);\n }else{\n Npos3++;\n telemetry.addData(\"loc\", 3);\n }\n } \n \n if (recognition.getLabel().equals(LABEL_SILVER_MINERAL)) {\n silverMineralX = (int) recognition.getLeft();\n telemetry.addData(\"silver position\", silverMineralX);\n if(silverMineralX<300) {\n NposSilver1++;\n telemetry.addData(\"loc\", 1);\n }else if(silverMineralX<300){\n NposSilver2++;\n telemetry.addData(\"loc\", 2);\n }else{\n NposSilver3++;\n telemetry.addData(\"loc\", 3);\n }\n } \n }\n telemetry.update();\n }\n }\n }\n\n\n if (tfod != null) {\n tfod.shutdown();\n }\n \n \n \n telemetry.addData(\"\", 2);\n \n if (Npos1>=5)return 1;\n if (Npos2>=5)return 2;\n if (Npos3>=5)return 3;\n if (NposSilver1>=5 && NposSilver2>=5)return 3;\n if (NposSilver2>=5 && NposSilver3>=5)return 1; \n if (NposSilver1>=5 && NposSilver3>=5)return 2;\n\n return 3;\n }",
"private static int benchmarkedMethod() {\n return 3;\n }",
"private FlyWithWings(){\n\t\t\n\t}",
"private void runAlgorithm(){\n fitness = new ArrayList<Double>(); \n \n int iter = 0;\n \n // While temperature higher than absolute temperature\n this.temperature = getCurrentTemperature(0);\n while(this.temperature > this.p_absoluteTemperature && iter < 100000){\n //while(!stopCriterionMet()){\n // Select next state\n //for(int i=0;i<20;i++){\n int count = 0;\n boolean selected = false;\n while(!selected){\n Problem.ProblemState next = nextState();\n if(isStateSelected(next)){\n selected = true;\n this.state = next;\n }\n \n count++;\n if(count == 10) break;\n }\n //}\n \n // Sample data\n double fvalue = this.state.getFitnessValue();\n this.fitness.add(new Double(fvalue));\n \n iter = iter + 1;\n \n // Lower temperature\n this.temperature = getCurrentTemperature(iter);\n }\n \n this.n_iter = iter;\n return;\n }",
"@Override\n\tpublic void challenge9() {\n\n\t}",
"public State[] getSuccessors(State curr) {\n State [] successors = new State [6];\r\n \r\n if(currjug1!=0) {\r\n //e1\r\n successors[0] = new State(capjug1, capjug2, 0, currjug2, goal,depth);\r\n successors[0].parentPt = curr;\r\n successors[0].depth = curr.depth+1;\r\n //p12\r\n int pour = pour(currjug1, currjug2, capjug2);\r\n successors[1] = new State(capjug1, capjug2, currjug1-pour, currjug2+pour, goal,depth);\r\n successors[1].parentPt = curr;\r\n successors[1].depth = curr.depth+1;\r\n }\r\n \r\n if(currjug2!=0) {\r\n //e2\r\n successors[2] = new State(capjug1, capjug2, currjug1, 0, goal,depth);\r\n successors[2].parentPt = curr;\r\n successors[2].depth = curr.depth+1;\r\n }\r\n \r\n //f2\r\n successors[3] = new State(capjug1, capjug2, currjug1, capjug2, goal,depth);\r\n successors[3].parentPt = curr;\r\n successors[3].depth = curr.depth+1;\r\n \r\n if(currjug2!=0) {\r\n //p21\r\n int pour = pour(currjug2, currjug1, capjug1);\r\n successors[4] = new State(capjug1, capjug2, currjug1+pour, currjug2-pour, goal,depth);\r\n successors[4].parentPt = curr;\r\n successors[4].depth = curr.depth+1;\r\n }\r\n \r\n //f1\r\n successors[5] = new State(capjug1, capjug2, capjug1, currjug2, goal,depth);\r\n successors[5].parentPt = curr;\r\n successors[5].depth = curr.depth+1;\r\n \r\n return successors;\r\n }",
"public void mo21877s() {\n }",
"private void initState() {\r\n double metaintensity=0;\r\n double diffr=0;\r\n for(int ii=0; ii < Config.numberOfSeeds; ii++)\r\n {\r\n Cur_state[ii] = this.seeds[ii].getDurationMilliSec();\r\n// Zeit2 = this.seeds[1].getDurationMilliSec();\r\n// Zeit3 = this.seeds[2].getDurationMilliSec();\r\n// LogTool.print(\"Zeit 1 : \" + Zeit1 + \"Zeit 2 : \" + Zeit2 + \"Zeit 3 : \" + Zeit3, \"notification\");\r\n// LogTool.print(\"initState: Dwelltime Seed \" + ii + \" : \" + Cur_state[ii], \"notification\");\r\n// Cur_state[0] = Zeit1;\r\n// Cur_state[1] = Zeit2;\r\n// Cur_state[2] = Zeit3;\r\n }\r\n \r\n if ((Config.SACostFunctionType==3)||(Config.SACostFunctionType==1)) {\r\n for(int x=Config.ptvXLow-0; x < Config.ptvXHigh+0; x++) {\r\n// for(int x=Solver.xBoundsTumor[0]; x < Solver.xBoundsTumor[1]; x+= Config.scaleFactor) {\r\n for(int y=Config.ptvYLow-0; y < Config.ptvYHigh+0; y++) {\r\n// for(int y=Solver.yBoundsTumor[0]; y < Solver.yBoundsTumor[1]; y+= Config.scaleFactor) {\r\n for(int z=Config.ptvZLow-0; z < Config.ptvZHigh+0; z++) {\r\n// for(int z=Solver.zBoundsTumor[0]; z < Solver.zBoundsTumor[1]; z+= Config.scaleFactor) {\r\n// this.body2[x][y][z].setCurrentDosis(0.0); //Set currentPtvVoxel Dose to 0 \r\n this.body2[x][y][z].metavalue = 0.0;\r\n for(int i=0; i<Config.numberOfSeeds;++i) { \r\n // Calculate intensity based based on current dwelltime\r\n metaintensity = this.body2[x][y][z].radiationIntensityNoTime((this.seeds2[i].getCoordinate()));\r\n // radiationIntensityNoTime(this.seeds2[i].getCoordinate(), New_state[i]);\r\n if (metaintensity>0) {\r\n // LogTool.print(\"Cost: Intensity :\" + intensity + \"@ \" + x + \" \" + y + \" \" + z,\"notification\");\r\n }\r\n // this.body2[x][y][z].addCurrentDosis(metaintensity);\r\n this.body2[x][y][z].metavalue += metaintensity; \r\n// Das ist implementation one\r\n } \r\n } \r\n }\r\n }\r\n// this.body = this.body2;\r\n } else {\r\n \r\n // for(int x=Config.ptvXLow-0; x < Config.ptvXHigh+0; x++) {\r\n// for(int x=Solver.xBoundsTumor[0]; x < Solver.xBoundsTumor[1]; x+= Config.scaleFactor) { \r\n for(int x=0; x < Solver.dimensions[0]; x+= Config.scaleFactor) {\r\n // for(int y=Config.ptvYLow-0; y < Config.ptvYHigh+0; y++) {\r\n// for(int y=Solver.yBoundsTumor[0]; y < Solver.yBoundsTumor[1]; y+= Config.scaleFactor) {\r\n for(int y=0; y < Solver.dimensions[1]; y+= Config.scaleFactor) {\r\n // for(int z=Config.ptvZLow-0; z < Config.ptvZHigh+0; z++) {\r\n// for(int z=Solver.zBoundsTumor[0]; z < Solver.zBoundsTumor[1]; z+= Config.scaleFactor) {\r\n for(int z=0; z < Solver.dimensions[2]; z+= Config.scaleFactor) {\r\n // this.body2[x][y][z].setCurrentDosis(0.0); //Set currentPtvVoxel Dose to 0 \r\n this.body2[x][y][z].metavalue = 0.0;\r\n for(int i=0; i<Config.numberOfSeeds;++i) { \r\n // Calculate intensity based based on current dwelltime\r\n metaintensity = this.body2[x][y][z].radiationIntensityNoTime((this.seeds2[i].getCoordinate()));\r\n // radiationIntensityNoTime(this.seeds2[i].getCoordinate(), New_state[i]);\r\n if (metaintensity>0) {\r\n // LogTool.print(\"Cost: Intensity :\" + intensity + \"@ \" + x + \" \" + y + \" \" + z,\"notification\");\r\n }\r\n // this.body2[x][y][z].addCurrentDosis(metaintensity);\r\n this.body2[x][y][z].metavalue += metaintensity;\r\n this.body[x][y][z].metavalue = 0; \r\n this.body[x][y][z].metavalue += this.body2[x][y][z].metavalue;\r\n // Das ist implementation one\r\n } \r\n } \r\n }\r\n }\r\n// this.body = this.body2;\r\n diffr = ((this.body[43][43][43].metavalue)-(this.body2[43][43][43].metavalue));\r\n LogTool.print(\"Shallowcopy Check, value should be 0 :\" + diffr + \"@ 43,43,43 \",\"notification\");\r\n }\r\n }",
"public void warmUp();",
"public void GossipalgorithmwithP() {\n\t\tStartime = System.nanoTime();\n\t\tint T = numofConnections();\n\t\tint t = 0;\n\t\tint rounds = 0;\n\t\tint iterr = 0;\n\t\tint size = Sizeofnetwork();\n\t\tint connections;\n\t\tdouble value = 0;\n\t\tString[] nodeswithMessage, nodetorecieve;\n\t\tnodeswithMessage = new String [size];\n\t\tArrays.fill(nodeswithMessage, \"null\");\n\t\t\n\t\t//while the probability is less the 1\n\t\twhile (probability <= 1) {\n\t\t\t//while the number of nodes with message is not equal to the number of nodes\n\t\t\twhile ((rounds != size)) {\n\t\t\t\tconnections = 0;\n\t\t\t\tnumofnodewithmessage = 0;\n\t\t\t\tint ab = 0;\n\t\t\t\t//update on which nodes has recieved the message\n\t\t\t\tArrays.fill(nodeswithMessage, \"null\");\n\t\t\t\tfor (String nodes : Push.outputNodes) {\n\t\t\t\t\tnodeswithMessage[ab] = nodes;\n\t\t\t\t\tab++;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//how many nodes has recieved message\n\t\t\t\tfor (int l=0; l<nodeswithMessage.length; l++) {\n\t\t\t\t\tif(!nodeswithMessage[l].equals(\"null\")) {\n\t\t\t\t\t\tnumofnodewithmessage++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//set array to host nodes with message\n\t\t\t\tnodetorecieve = new String[numofnodewithmessage];\n\t\t\t\tint flip = 0;\n\t\t\t\tfor (int a = 0; a < nodeswithMessage.length; a++) {\n\t\t\t\t\tif (!nodeswithMessage[a].equals(\"null\")) {\n\t\t\t\t\t\tnodetorecieve[flip] = nodeswithMessage[a];\n\t\t\t\t\t\tflip++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//for all the nodes with message, randomly choose a node in its connected nodes mapping, specified in the \n\t\t\t\t//Nodeswithconnect Hashmap to send the message to\n\t\t\t\tfor (int i = 0; i < nodetorecieve.length; i++) {\n\t\t\t\t\tconnections = 0;\n\t\t\t\t\tfor (int p=0; p < (Nodeswithconnect.get(nodetorecieve[i])).length; p++) {\n\t\t\t\t\t\t\tString validnode = Nodeswithconnect.get(nodetorecieve[i])[p];\n\t\t\t\t\t\t\tif(!validnode.equals(\"null\")) {\n\t\t\t\t\t\t\t\tconnections++;\n\t\t\t\t\t\t }\n\t\t\t\t\t}\n\t\t\t\t\t//for the specified probability\n\t\t\t\t\t//if the random value out of 100, chosen is not greater than the probabilty, dont send\n\t\t\t\t\t//until true, send message\n\t\t\t\t\tdouble probableValue = 100 * probability;\n\t\t\t\t\tint probablesending = (int) Math.round(probableValue);\n\t\t\t\t\tint send = new Random().nextInt(100);\n\t\t\t\t\tif(send > probablesending) {\n\t\t\t\t\t\tint rand = new Random().nextInt(connections);\n\t\t\t\t\t\tnetworkk.setMessage(Nodeswithconnect.get(nodetorecieve[i])[rand]);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t//wait for some interval\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(500);\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t//update the number of nodes with message.\n\t\t\t\trounds = numofnodewithmessage;\n\t\t\t}\n\t\t\t//for the specified probability, print out the node ID in the order in which the nodes received message\n\t\t\tSystem.out.println(\"For Probability of: \" +probability);\n\t\t\tfor(String nodes : Push.outputNodes) {\n\t\t\t\tSystem.out.println(nodes);\n\t\t\t}\n\t\t\t//clear the outoutNode arrayList and start-over\n\t\t\tPush.outputNodes.clear();\n\t\t\tEndtime = System.nanoTime();\n\t\t\toutputer = Endtime - Startime;\n\t\t\tdouble time = outputer/1000000;\n\t\t\t//get the time each process ended and its probability\n\t\t\t//add it to array data for scatter plot\n\t\t\tdataforPlot [0][iterr] = probability;\n\t\t\tdataforPlot [1][iterr] = time;\n\t\t\trounds = 0;\n\t\t\tprobability = probability + 0.05;\n\t\t\t//set start node again to have message\n\t\t\tStartNode(startnode, MESSAGE);\n\t\t\t\n\t\t\titerr++;\n\t\t}\n\t\t//when the algorithm has finished, plot scatter-plot\n\t\tplot = new ScatterPlot(dataforPlot);\n\t}",
"@Override\r\n\tpublic void compute() {\n\t\t\r\n\t}",
"public void mo38117a() {\n }",
"@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}"
] |
[
"0.5486338",
"0.523106",
"0.51373065",
"0.5134362",
"0.5121001",
"0.5120414",
"0.51045775",
"0.50932825",
"0.50922436",
"0.50632125",
"0.5055785",
"0.5049199",
"0.5040579",
"0.5030339",
"0.50271225",
"0.5019741",
"0.5017845",
"0.50159156",
"0.5011909",
"0.50001156",
"0.49670494",
"0.4956988",
"0.49556872",
"0.49530149",
"0.49495584",
"0.49449694",
"0.49287784",
"0.49268955",
"0.4902858",
"0.48932284",
"0.4886645",
"0.48842633",
"0.4881575",
"0.48799643",
"0.48773715",
"0.48749644",
"0.48733544",
"0.4873058",
"0.4871317",
"0.48666686",
"0.4861349",
"0.48464867",
"0.48453078",
"0.48419592",
"0.48379925",
"0.48289993",
"0.48258853",
"0.48244986",
"0.48227927",
"0.48199922",
"0.48162225",
"0.48100927",
"0.48065782",
"0.4804596",
"0.4796362",
"0.4793944",
"0.47935623",
"0.4793266",
"0.47897542",
"0.4788365",
"0.47881398",
"0.47874346",
"0.47863308",
"0.47851834",
"0.47814533",
"0.4781352",
"0.47795928",
"0.47785798",
"0.4777541",
"0.47762343",
"0.47756445",
"0.47753936",
"0.47738212",
"0.47708353",
"0.47672597",
"0.47648478",
"0.4764058",
"0.47586322",
"0.47551632",
"0.47543225",
"0.47463828",
"0.47463644",
"0.47458",
"0.47419092",
"0.4740088",
"0.47380927",
"0.47349793",
"0.47346383",
"0.4732686",
"0.47301078",
"0.47299334",
"0.47299013",
"0.47297084",
"0.47212976",
"0.4720417",
"0.4718502",
"0.4714252",
"0.4708353",
"0.47064024",
"0.47048",
"0.47033885"
] |
0.0
|
-1
|
Do nothing for now, MarkLogic indexes content
|
public void addNode (NodeState node) throws RepositoryException, IOException
{
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"void index(IDocument document, IIndexerOutput output) throws java.io.IOException;",
"public void index(List<Entity> entities) {\n\t\t\n\t}",
"LuceneMemoryIndex createLuceneMemoryIndex();",
"@Override\n public void reindexImpl()\n {\n List<StoreRef> storeRefs = nodeService.getStores();\n int count = 0;\n for (StoreRef storeRef : storeRefs)\n {\n // prompt the FTS reindexing\n if (!ftsIndexerCalled)\n {\n ftsIndexer.requiresIndex(storeRef);\n }\n // reindex missing content\n count += reindexMissingContent(storeRef);\n // check if we have to break out\n if (isShuttingDown())\n {\n break;\n }\n }\n \n // The FTS indexer only needs to be prompted once\n ftsIndexerCalled = true;\n\n // done\n if (logger.isDebugEnabled())\n {\n logger.debug(\"Missing content indexing touched \" + count + \" content nodes\");\n }\n }",
"private Reindex() {}",
"private Reindex() {}",
"@Ignore\n @Test\n public void testCreateIndex() {\n System.out.println(\"createIndex\");\n Util.commonServiceIPs=\"127.0.0.1\";\n \n EntityManager em=Util.getEntityManagerFactory(100).createEntityManager();\n EntityManager platformEm = Util.getPlatformEntityManagerFactory().createEntityManager();\n \n Client client = ESUtil.getClient(em,platformEm,1,false);\n \n RuntimeContext.dataobjectTypes = Util.getDataobjectTypes();\n String indexName = \"test000000\";\n try {\n ESUtil.createIndex(platformEm, client, indexName, true);\n }\n catch(Exception e)\n {\n \n }\n \n\n }",
"@Test\n public void storesIndexIfNone() throws Exception {\n final String name = \"talk\";\n final Talks talks = new Talks.InDir();\n talks.create(\"\", name);\n talks.get(name).modify(\n new Directives()\n .xpath(\"/talk\").push().xpath(\"wire\").remove().pop()\n .add(\"wire\").add(\"href\").set(\"#1\").up().up()\n .add(\"request\").attr(\"id\", \"a12345\")\n .add(\"author\").set(\"yegor256\").up()\n .add(\"args\").up()\n .add(\"type\").set(\"deploy\").up()\n );\n new IndexesRequests().execute(talks);\n MatcherAssert.assertThat(\n talks.get(name).read(),\n XhtmlMatchers.hasXPaths(\"/talk/request[@index='1']\")\n );\n }",
"private void indexUpdates(UpdateQueryResult updates) {\r\n Iterator<HashMap<String, String>> i = updates.getIterator();\r\n while (i.hasNext()) {\r\n HashMap<String, String> values = i.next();\r\n \r\n \t// during index default solr fields are indexed separately\r\n \tString articleId = values.get(\"KnowledgeArticleId\");\r\n \tString title = values.get(\"Title\");\r\n \tvalues.remove(\"Title\");\r\n \tString summary = values.get(\"Summary\");\r\n \tvalues.remove(\"Summary\");\r\n \t\r\n \ttry {\r\n \t\tif (UtilityLib.notEmpty(articleId) && UtilityLib.notEmpty(title)) {\r\n \t\t\t// index sObject\r\n \t\t\t// default fields every index must have\r\n \t\t\tStringBuilder sb = new StringBuilder();\r\n \t\t\tContent c = new Content();\r\n \t\t\tc.setKey(articleId);\r\n \t\t\tsb.setLength(0);\r\n \t\t\tsb.append(summary);\r\n \t\t\tc.setData(sb.toString().getBytes());\r\n \t\t\tc.addMetadata(\"Content-Type\", \"text/html\");\r\n \t\t\tc.addMetadata(\"title\", title);\r\n \t\t\t\r\n \t\t\tLOG.debug(\"Salesforce Crawler: Indexing articleId=\"+articleId+\" title=\"+title+\" summary=\"+summary);\r\n \t\t\t\r\n \t\t\t// index articleType specific fields\r\n \t\t\tfor (Entry<String, String> entry : values.entrySet()) {\r\n \t\t\t\tc.addMetadata(entry.getKey(), entry.getValue().toString());\r\n \t\t\t\tif (!entry.getKey().equals(\"Attachment__Body__s\")) {\r\n \t\t\t\t\tLOG.debug(\"Salesforce Crawler: Indexing field key=\"+entry.getKey()+\" value=\"+entry.getValue().toString());\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t\tstate.getProcessor().process(c);\r\n \t\t}\r\n } catch (Exception e) {\r\n \tUtilityLib.errorException(LOG, e);\r\n \tstate.getStatus().incrementCounter(Counter.Failed);\r\n }\r\n }\r\n }",
"public void forceUpdateSearchIndexes() throws InterruptedException {\n\t getFullTextEntityManager().createIndexer().startAndWait();\n\t}",
"@ManagedOperation(description = \"Starts rebuilding the index\", displayName = \"Rebuild index\")\n void start();",
"public void testIndexCosts() {\n this.classHandler.applyIndexes();\n }",
"public boolean shouldIndex(IDocument document);",
"@Override\r\n\tprotected void indexDocument(PluginServiceCallbacks callbacks, JSONResponse jsonResults, HttpServletRequest request,\r\n\t\t\tIndexing indexing) throws Exception {\n\t\t\r\n\t}",
"public abstract void selectAllIndexes();",
"public void testCreIdx(){\r\n\t \r\n\t String dataDir = \"C:\\\\study\\\\Lucene\\\\Data\";\r\n\t String idxDir = \"C:\\\\study\\\\Lucene\\\\Index\";\r\n\t \r\n\t LuceneUtils.delAll(idxDir);\r\n\t \r\n\t CreateIndex ci = new CreateIndex();\r\n\t \r\n\t ci.Indexer(new File(idxDir), new File(dataDir));\r\n\t \r\n\t\t\r\n\t}",
"@Override\n public void indexPersistable() {\n searchIndexService.indexAllResourcesInCollectionSubTreeAsync(getPersistable());\n }",
"public boolean isIndexable(String content) { return true; }",
"public interface IIndexerDAO {\n\t\n\t/**\n\t * Inizializzazione dell'indicizzatore.\n\t * @param dir La cartella locale contenitore dei dati persistenti.\n\t * @throws ApsSystemException In caso di errori.\n\t */\n\tpublic void init(File dir) throws ApsSystemException;\n\t\n\t/**\n\t * Aggiunge un contenuto nel db del motore di ricerca.\n * @param entity Il contenuto da aggiungere.\n\t * @throws ApsSystemException In caso di errori.\n\t */\n\tpublic void add(IApsEntity entity) throws ApsSystemException;\n\t\n\t/**\n * Cancella un documento indicizzato.\n * @param name Il nome del campo Field da utilizzare per recupero del documento.\n * @param value La chiave mediante il quale è stato indicizzato il documento.\n * @throws ApsSystemException In caso di errori.\n */\n public void delete(String name, String value) throws ApsSystemException;\n \n public void close();\n\t\n\tpublic void setLangManager(ILangManager langManager);\n \n\tpublic static final String FIELD_PREFIX = \"entity:\"; \n public static final String CONTENT_ID_FIELD_NAME = FIELD_PREFIX + \"id\";\n public static final String CONTENT_TYPE_FIELD_NAME = FIELD_PREFIX + \"type\";\n public static final String CONTENT_GROUP_FIELD_NAME = FIELD_PREFIX + \"group\";\n public static final String CONTENT_CATEGORY_FIELD_NAME = FIELD_PREFIX + \"category\";\n\tpublic static final String CONTENT_CATEGORY_SEPARATOR = \"/\";\n\tpublic static final String ATTACHMENT_FIELD_SUFFIX = \"_attachment\";\n\t\n}",
"private void queryIndex() {\n if (predicate == TruePredicate.INSTANCE) {\n return;\n }\n\n // get indexes\n MapService mapService = nodeEngine.getService(SERVICE_NAME);\n MapServiceContext mapServiceContext = mapService.getMapServiceContext();\n Indexes indexes = mapServiceContext.getMapContainer(name).getIndexes();\n // optimize predicate\n QueryOptimizer queryOptimizer = mapServiceContext.getQueryOptimizer();\n predicate = queryOptimizer.optimize(predicate, indexes);\n\n Set<QueryableEntry> querySet = indexes.query(predicate);\n if (querySet == null) {\n return;\n }\n\n List<Data> keys = null;\n for (QueryableEntry e : querySet) {\n if (keys == null) {\n keys = new ArrayList<Data>(querySet.size());\n }\n keys.add(e.getKeyData());\n }\n\n hasIndex = true;\n keySet = keys == null ? Collections.<Data>emptySet() : InflatableSet.newBuilder(keys).build();\n }",
"public void run() {\n System.out.println(\"Running Indexing\");\n Indexer.index();\n }",
"public void init() {\n File file=new File(\"D:\\\\lucene\\\\index\");\n if(file.isDirectory())\n { //否则如果它是一个目录\n File files[] = file.listFiles(); //声明目录下所有的文件 files[];\n for(int i=0;i<files.length;i++)\n { //遍历目录下所有的文件\n files[i].delete(); //把每个文件 用这个方法进行迭代\n }\n }\n String indexPath = \"D:\\\\lucene\\\\index\";\n //String docsPath = \"D:\\\\lucene\\\\data\";\n boolean create = true;\n try\n {\n Session session=factory.openSession();\n String hql = \"from Book\";\n org.hibernate.Query query = session.createQuery(hql);\n List<Book> list=query.list();\n Directory indexDir = FSDirectory.open(Paths.get(\"D:\\\\lucene\\\\index\"));\n Analyzer luceneAnalyzer = new StandardAnalyzer(); //新建一个分词器实例 \n IndexWriterConfig config = new IndexWriterConfig(luceneAnalyzer); \n IndexWriter indexWriter = new IndexWriter(indexDir,config);\n for(int i=0;i<list.size();i++)\n {\n Document document = new Document();\n Field field1 = new StringField(\"id\",list.get(i).getBookid().toString(),Field.Store.YES); \n Field field2 = new StringField(\"bookname\",list.get(i).getBookname(),Field.Store.YES); \n Field field3 = new StringField(\"author\",list.get(i).getAuthor(),Field.Store.YES); \n Field field4 = new StringField(\"category\",list.get(i).getCategory(),Field.Store.YES); \n Field field5 = new StringField(\"price\", Double.toString(list.get(i).getPrice()),Field.Store.YES); \n document.add(field1); \n document.add(field2); \n document.add(field3); \n document.add(field4);\n document.add(field5);\n indexWriter.addDocument(document);\n }\n indexWriter.close();\n }\n catch(IOException e)\n {\n System.out.println(\"error\");\n return;\n }\n }",
"private void updateIndex() throws IOException {\n // maintain the document store (corpus) - if there is one\n if (currentMemoryIndex.containsPart(\"corpus\")) {\n // get all corpora + shove into document store\n ArrayList<DocumentReader> readers = new ArrayList<>();\n readers.add((DocumentReader) currentMemoryIndex.getIndexPart(\"corpus\"));\n for (String path : geometricParts.getAllShards().getBinPaths()) {\n String corpus = path + File.separator + \"corpus\";\n readers.add(new CorpusReader(corpus));\n }\n }\n // finally write new checkpointing data (checkpoints the disk indexes)\n Parameters checkpoint = createCheckpoint();\n this.checkpointer.saveCheckpoint(checkpoint);\n }",
"public generateIndex() {\n\n\t\tthis.analyzer = \"StandardAnalyzer\";\n\t}",
"public void finishedDirectIndexBuild()\n\t{\n\t\tif(logger.isInfoEnabled()){\n\t\t\tlogger.info(\"flushing utf block lexicon to disk after the direct index completed\");\n\t\t}\n\t\t//only write a temporary lexicon if there are any items in it\n\t\tif (TempLex.getNumberOfNodes() > 0)\n\t\t\twriteTemporaryLexicon();\n\n\t\t//merges the temporary lexicons\n\t\tif (tempLexFiles.size() > 0)\n\t\t{\n\t\t\ttry{\n\t\t\t\tmerge(tempLexFiles);\n\t\n\t\t\t\t//creates the offsets file\n\t\t\t\tfinal String lexiconFilename = \n\t\t\t\t\tindexPath + ApplicationSetup.FILE_SEPARATOR + \n\t\t\t\t\tindexPrefix + ApplicationSetup.LEXICONSUFFIX;\n\t\t\t\tLexiconInputStream lis = getLexInputStream(lexiconFilename);\n\t\t\t\tcreateLexiconIndex(\n\t\t\t\t\tlis,\n\t\t\t\t\tlis.numberOfEntries(),\n\t\t\t\t\t/* after inverted index is built, the lexicon will be transformed into a\n\t\t\t\t\t * normal lexicon, without block frequency */\n\t\t\t\t\tUTFLexicon.lexiconEntryLength\n\t\t\t\t\t); \n\t\t\t\tTermCount = lis.numberOfEntries();\n\t\t\t\tif (index != null)\n\t\t\t\t{\n\t\t\t\t\tindex.addIndexStructure(\"lexicon\", \"uk.ac.gla.terrier.structures.UTFBlockLexicon\");\n\t\t\t\t\tindex.addIndexStructureInputStream(\"lexicon\", \"uk.ac.gla.terrier.structures.UTFBlockLexiconInputStream\");\n\t\t\t\t\tindex.setIndexProperty(\"num.Terms\", \"\"+lis.numberOfEntries());\n\t\t\t\t\tindex.setIndexProperty(\"num.Pointers\", \"\"+lis.getNumberOfPointersRead());\n\t\t\t\t}\n\t\t\t} catch(IOException ioe){\n\t\t\t\tlogger.error(\"Indexing failed to write a lexicon index file to disk\", ioe);\n\t\t\t}\t\n\t\t}\n\t\telse\n\t\t\tlogger.warn(\"No temporary lexicons to merge, skipping\");\n\t\t\n\t}",
"private static void createIndex() {\n XML_Shell workFile = new XML_Shell();\n String messageFromServer = ClientService.getLastMessageFromServer();\n\n try {\n XML_Manager.stringToDom(messageFromServer, workFile);\n } catch (SAXException | ParserConfigurationException | IOException | TransformerException e) {\n e.printStackTrace();\n }\n\n }",
"@Override\n public void postInserts() \n {\n for(IndexObject i: myIndex.values())\n {\n i.tfidf(documentData);\n }\n }",
"public void controlIndex(String path)\n { \t \n \t JSONParser parser = new JSONParser();\n \t \n \t try\n \t {\n \t\t JSONArray array = (JSONArray)parser.parse(new FileReader(path));\n \t\t \n \t\t JSONObject jsonObject = new JSONObject();\n \t\t JSONObject metaObj;\n \t\t \n \t\t for(Object obj : array)\n \t\t {\n \t\t\t jsonObject = (JSONObject) obj;\n \t\t\t String p = jsonObject.get(\"p\").toString().replaceAll(\"\\\\\\\\\", \"/\");\n \t\t\t metaObj = (JSONObject) jsonObject.get(\"metadata\");\n \t\t\t \n \t\t\t String title = \"\";\n \t\t\t String description = \"\"; \n \t\t\t if(metaObj.get(\"title\")!=null)\n \t\t\t {\n \t\t\t\t title = metaObj.get(\"title\").toString();\n \t\t\t }\n \t\t\t if(metaObj.get(\"description\")!=null)\n \t\t\t {\n \t\t\t\t description = metaObj.get(\"description\").toString();\n \t\t\t }\n \t\t\t \n \t\t\t String id = p.substring(p.lastIndexOf(\"/\")+1,p.lastIndexOf(\".\"));\n \t\t\t \n \t\t\t performIndex(p,id,title,description);\n \t\t\t performMetaIndex(jsonObject.get(\"metadata\"),id);\n \t\t }\n \t\t fileWriter();\n \t\t }\n \t catch(Exception e)\n \t { \t\n \t\t e.printStackTrace();\n \t }\n }",
"public void createIndex() throws IOException {\n\t\tindexWriter.commit();\n\t\ttaxoWriter.commit();\n\n\t\t// categories\n\t\tfor (Article.Facets f : Article.Facets.values()) {\n\t\t\ttaxoWriter.addCategory(new CategoryPath(f.toString()));\n\t\t}\n\t\ttaxoWriter.commit();\n\n\t\tfinal Iterable<Article> articles = articleRepository.findAll();\n\t\tint c = 0;\n\t\tfor (Article article : articles) {\n\t\t\taddArticle(indexWriter, taxoWriter, article);\n\t\t\tc++;\n\t\t}\n\t\t// commit\n\t\ttaxoWriter.commit();\n\t\tindexWriter.commit();\n\n\t\ttaxoWriter.close();\n\t\tindexWriter.close();\n\n\t\ttaxoDirectory.close();\n\t\tindexDirectory.close();\n\t\tLOGGER.debug(\"{} articles indexed\", c);\n\t}",
"void initiateIndexing(HarvestResultDTO harvestResult) throws DigitalAssetStoreException;",
"public void start() throws Exception {\n\n createIndex();\n }",
"public void IndexADocument(String docno, String content) throws IOException {\n\t\t\n\t\tdocIdx.append(docno + \"\\n\");\n\t\n\t\tString[] tokens = content.split(\" \");\n\t\t\n\t\tfor(String word: tokens) {\n\t\t\tif(token.containsKey(word)) {\t\t\n\t\t\t\tLinkedHashMap<Integer, Integer> cur = token.get(word);\n\t\t\t\tif(cur.containsKey(docid))\n\t\t\t\t\tcur.put(docid, cur.get(docid)+1);\n\t\t\t\telse \n\t\t\t\t\tcur.put(docid, 1);\n\t\t\t} else {\n\t\t\t\tLinkedHashMap<Integer, Integer> cur = new LinkedHashMap<>();\n\t\t\t\tcur.put(docid, 1);\n\t\t\t\ttoken.put(word, cur);\n\t\t\t}\t\n\t\t}\n\t\t\n\t\t++docid;\n\t\t\n\t\tif(docid % BLOCK == 0) \n\t\t\tsaveBlock();\t\n\t}",
"public boolean indexAllowed() {\r\n return true;\r\n }",
"public void indexCreate()\n {\n try{\n Directory dir = FSDirectory.open(Paths.get(\"indice/\"));\n Analyzer analyzer = new StandardAnalyzer();\n IndexWriterConfig iwc = new IndexWriterConfig(analyzer);\n iwc.setOpenMode(OpenMode.CREATE);\n IndexWriter writer = new IndexWriter(dir,iwc);\n MongoConnection mongo = MongoConnection.getMongo();\n mongo.OpenMongoClient();\n DBCursor cursor = mongo.getTweets();\n Document doc = null;\n\n while (cursor.hasNext()) {\n DBObject cur = cursor.next();\n if (cur.get(\"retweet\").toString().equals(\"false\")) {\n doc = new Document();\n doc.add(new StringField(\"id\", cur.get(\"_id\").toString(), Field.Store.YES));\n doc.add(new TextField(\"text\", cur.get(\"text\").toString(), Field.Store.YES));\n doc.add(new StringField(\"analysis\", cur.get(\"analysis\").toString(), Field.Store.YES));\n //doc.add(new StringField(\"finalCountry\",cur.get(\"finalCountry\").toString(),Field.Store.YES));\n doc.add(new StringField(\"userScreenName\", cur.get(\"userScreenName\").toString(), Field.Store.YES));\n doc.add(new StringField(\"userFollowersCount\", cur.get(\"userFollowersCount\").toString(), Field.Store.YES));\n doc.add(new StringField(\"favoriteCount\", cur.get(\"favoriteCount\").toString(), Field.Store.YES));\n\n if (writer.getConfig().getOpenMode() == OpenMode.CREATE) {\n System.out.println(\"Indexando el tweet: \" + doc.get(\"text\") + \"\\n\");\n writer.addDocument(doc);\n System.out.println(doc);\n } else {\n System.out.println(\"Actualizando el tweet: \" + doc.get(\"text\") + \"\\n\");\n writer.updateDocument(new Term(\"text\" + cur.get(\"text\")), doc);\n System.out.println(doc);\n }\n }\n }\n cursor.close();\n writer.close();\n }\n catch(IOException ioe){\n System.out.println(\" Error en \"+ ioe.getClass() + \"\\n mensaje: \" + ioe.getMessage());\n }\n }",
"void clearAllIndexes();",
"public long index() {\n return manager.compactIndex();\n }",
"public String SearchContent()\n\t{\n\t\tSystem.out.println(\"Content:\" + Content);\n\t\tluc = new Lucene_fuction();\n\t\tHttpServletRequest request = ServletActionContext.getRequest();\n\t\tServletContext servletContext = ServletActionContext.getServletContext();\n\t\trequest.getSession();\n\t\tHttpServletResponse response = ServletActionContext.getResponse();\n\t\t// if the tag is empty\n\t\t\n\t\t\tArrayList<Picture> PicList = new ArrayList<>();\n\t\t\tPicList = luc.queryIndex_Content(Content);\n\t\t\trequest.setAttribute(\"PictureList\", PicList);\n\t\t\treturn \"Content_Result\";\n\t}",
"@Override\n public void setupIndex() {\n List lst = DBClient.getList(\"SELECT a FROM AppMenu a WHERE a.moduleName='MyBranchMemberExt'\");\n if (lst!=null && !lst.isEmpty()) {\n return;\n }\n AppMenu.createAppMenuObj(\"MyBranchMemberExt\", \"Main\", \"Branch Member\", 110).save();\n AppMenu.createAppMenuObj(\"MyCenterMemberExt\", \"Main\", \"Center Member\", 120).save();\n AppMenu.createAppMenuObj(\"SearchAllMembersOnlyExt\", \"Main\", \"Search Member\", 130).save();\n AppMenu.createAppMenuObj(\"ReferenceForm\", \"Reference\", \"Reference\", 200).save();\n runUniqueIndex(8, \"firstName\", \"lastName\");\n }",
"@Override\n protected void beforeSearch() {\n index = 0;\n numberOfIterations = 0;\n pageCounter = 0;\n }",
"protected void index()\r\n\t{\n\t}",
"public void search(Indexer indexer, CityIndexer cityIndexer, Ranker ranker, String query, boolean withSemantic, ArrayList<String> chosenCities, ObservableList<String> citiesByTag, boolean withStemming, String saveInPath, String queryId, String queryDescription) {\n String[] originalQueryTerms = query.split(\" \");\n String originQuery = query;\n docsResults = new HashMap<>();\n parser = new Parse(withStemming, saveInPath, saveInPath);\n HashSet<String> docsOfChosenCities = new HashSet<>();\n query = \"\" + query + queryDescription;\n HashMap<String, Integer> queryTerms = parser.parseQuery(query);\n HashMap<String, ArrayList<Integer>> dictionary = indexer.getDictionary();\n if (!withStemming){\n setDocsInfo(saveInPath + \"\\\\docsInformation.txt\");\n }\n else{\n setDocsInfo(saveInPath + \"\\\\docsInformation_stemming.txt\");\n }\n\n\n //add semantic words of each term in query to 'queryTerms'\n if(withSemantic) {\n HashMap<String,ArrayList<String>> semanticWords = ws.connectToApi(originQuery);\n }\n\n //give an ID to query if it's a regular query (not queries file)\n if(queryId.equals(\"\")){\n queryId = \"\" + Searcher.queryID;\n Searcher.queryID++;\n }\n\n String postingDir;\n if (!withStemming) {\n postingDir = \"\\\\indexResults\\\\postingFiles\";\n } else {\n postingDir = \"\\\\indexResults\\\\postingFiles_Stemming\";\n }\n int pointer = 0;\n\n //find docs that contain the terms in the query in their text\n HashMap<String, Integer> queryTermsIgnoreCase = new HashMap<>();\n for (String term : queryTerms.keySet()) {\n String originTerm = term;\n if (!dictionary.containsKey(term.toUpperCase()) && !dictionary.containsKey(term.toLowerCase())) {\n continue;\n }\n if(dictionary.containsKey(term.toLowerCase())){\n term = term.toLowerCase();\n }\n else {\n term = term.toUpperCase();\n }\n queryTermsIgnoreCase.put(term,queryTerms.get(originTerm));\n pointer = dictionary.get(term).get(2);\n String chunk = (\"\" + term.charAt(0)).toUpperCase();\n\n //get the relevant line from posting file\n BufferedReader br = null;\n try {\n br = new BufferedReader(new FileReader(new File(saveInPath + postingDir + \"\\\\posting_\" + chunk + \".txt\")));\n String line = \"\";\n int i = 1;\n while ((line = (br.readLine())) != null) {\n if (i == pointer) {\n break;\n }\n i++;\n }\n br.close();\n\n //get docs from posting line and add them to the data structure 'docsResults'\n if(line != null) {\n findDocsFromLine(line, term);\n }\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n //find docs that contain the chosen cities in their text\n for (String cityTerm : chosenCities) {\n if (!dictionary.containsKey(cityTerm) && !dictionary.containsKey(cityTerm.toLowerCase())) {\n continue;\n }\n if(dictionary.containsKey(cityTerm.toLowerCase())){\n cityTerm = cityTerm.toLowerCase();\n }\n pointer = dictionary.get(cityTerm).get(2);\n // char chunk = indexer.classifyToPosting(term).charAt(0);\n String chunk = (\"\" + cityTerm.charAt(0)).toUpperCase();\n\n //get the relevant line from posting file\n BufferedReader br = null;\n try {\n br = new BufferedReader(new FileReader(new File(saveInPath + postingDir + \"\\\\posting_\" + chunk + \".txt\")));\n String line = \"\";\n int i = 1;\n while ((line = (br.readLine())) != null) {\n if (i == pointer) {\n break;\n }\n i++;\n }\n br.close();\n\n //get docs from posting line and add them to the data structure 'docsOfChosenCities'\n String docs = line.substring(0, line.indexOf(\"[\") - 1); //get 'docsListStr'\n String[] docsArr = docs.split(\";\");\n for (String docInfo : docsArr) {\n String doc = docInfo.substring(0, docInfo.indexOf(\": \"));\n while(doc.charAt(0) == ' '){\n doc = doc.substring(1);\n }\n docsOfChosenCities.add(doc);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n //find docs that contain the chosen cities in their city tag\n if(!chosenCities.isEmpty()){\n for (String cityDicRec: chosenCities) {\n //get pointer to posting from cityDictionary\n try {\n pointer = cityIndexer.getCitiesDictionary().get(cityDicRec);\n } catch (NumberFormatException e) {\n e.printStackTrace();\n }\n //get the relevant line from posting file\n BufferedReader br = null;\n try {\n br = new BufferedReader(new FileReader(new File(saveInPath + \"\\\\cityIndexResults\" + \"\\\\posting_city\" + \".txt\")));\n String line = \"\";\n int i = 1;\n while ((line = (br.readLine())) != null) {\n if (i == pointer) {\n break;\n }\n i++;\n }\n br.close();\n\n //get docs from posting line and add them to the data structure 'docsOfChosenCities'\n String docs = line.substring(line.indexOf(\"[\") + 1, line.indexOf(\"]\")); //get 'docsListStr'\n String[] docsArr = docs.split(\"; \");\n for (String doc : docsArr) {\n docsOfChosenCities.add(doc);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n\n\n ranker.rank(docsResults, docsOfChosenCities, queryTermsIgnoreCase, dictionary, docsInfo,entities, queryId);\n }",
"private void indexDocument(File f) throws IOException {\n\n\t\tHashMap<String, StringBuilder> fm;\n\t\tif (!f.getName().equals(\".DS_Store\")) {\n\n\t\t\tBufferedReader br = new BufferedReader(new FileReader(f));\n\n\t\t\tString s = \"\";\n\t\t\twhile ((s = br.readLine()) != null) {\n\n\t\t\t\tString temp = \"\";\n\n\t\t\t\tif (s.contains(\"<DOC>\")) {\n\n\t\t\t\t\ts = br.readLine();\n\n\t\t\t\t\twhile (!s.contains(\"</DOC>\")) {\n\n\t\t\t\t\t\ttemp += s + \" \";\n\n\t\t\t\t\t\ts = br.readLine();\n\t\t\t\t\t}\n\n\t\t\t\t\tfm = parseTags(temp);\n\t\t\t\t\tindexDocumentHelper(fm);\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tbr.close();\n\t\t}\n\n\t}",
"public static void main(String[] args) {\n File plasmadb = new File(\"D:\\\\dev\\\\proxy\\\\DATA\\\\PLASMADB\");\r\n File indexdb = new File(\"D:\\\\dev\\\\proxy\\\\DATA\\\\INDEX\");\r\n try {\r\n plasmaWordIndex index = new plasmaWordIndex(plasmadb, indexdb, true, 555, 1000, new serverLog(\"TESTAPP\"), false);\r\n Iterator containerIter = index.wordContainers(\"5A8yhZMh_Kmv\", plasmaWordIndex.RL_WORDFILES, true);\r\n while (containerIter.hasNext()) {\r\n System.out.println(\"File: \" + (indexContainer) containerIter.next());\r\n }\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n \r\n }",
"public interface Indexed {\n\n /**\n * index keyword and resource\n * @param resourceId keyword KAD id\n * @param entry published entry with keyword information\n * @param lastActivityTime current time from external system\n * @return percent of taken place in storage\n */\n int addKeyword(final KadId resourceId, final KadSearchEntry entry, long lastActivityTime);\n\n /**\n *\n * @param resourceId file KAD id\n * @param entry published entry with source information\n * @return true if source was indexed\n */\n int addSource(final KadId resourceId, final KadSearchEntry entry, long lastActivityTime);\n}",
"public interface ILuceneIndexDAO extends IStatefulIndexerSession {\n // ===================================================================\n // The domain of indexing creates a separation between\n // readers and writers. In lucene, these are searchers\n // and writers. This DAO creates the more familiar DAO-ish interface\n // for developers to use and attempts to hide the details of\n // the searcher and write.\n // Calls are stateless meaning calling a find after a save does\n // not guarantee data will be reflected for the instance of the DAO\n // ===================================================================\n\n /**\n * Updates a document by first deleting the document(s) containing a term and then adding the new document. A Term is created by termFieldName, termFieldValue.\n *\n * @param termFieldName - Field name of the index.\n * @param termFieldValue - Field value of the index.\n * @param document - Lucene document to be updated.\n * @return - True for successful addition.\n */\n boolean saveDocument(String termFieldName, String termFieldValue, Document document);\n\n /**\n * Generates a BooleanQuery from the given fields Map and uses it to delete the documents matching in the IndexWriter.\n *\n * @param fields - A Map data structure containing a field(Key) and text(value) pair.\n * @return - True for successful deletion.\n */\n boolean deleteDocuments(Map<String, String> fields);\n\n /**\n * Find the documents in the IndexSearcher matching the Terms generated from fields.\n *\n * @param fields - A Map data structure contains the field(Key) and text(value).\n * @return - Collection of Documents obtained from the search.\n */\n Set<Document> findDocuments(Map<String, String> fields);\n\n /**\n * Find the documents in the IndexSearcher matching the Terms generated from fields. Offset is the starting position for the search and numberOfResults\n * is the length from offset position.\n *\n * @param fields - A Map data structure containing a field(Key) and text(value) pair.\n * @param offset - Starting position of the search.\n * @param numberOfResults - Number of documents to be searched from an offset position.\n * @return - Collection of Documents obtained from the search.\n */\n Set<Document> findDocuments(Map<String, String> fields, int offset, int numberOfResults);\n\n /**\n * Return the count of the documents present in the IndexSearcher.\n *\n * @return - Integer representing the count of documents.\n */\n int getDocumentCount();\n\n}",
"protected static Boolean newCorpus() throws ClassNotFoundException, InstantiationException, IllegalAccessException, IOException {\n String[] subqueries = query.split(\"\\\\s+\"); //split around white space\n if (subqueries[0].equals(\"index\") && subqueries.length > 1) {\n JOptionPane.showOptionDialog(GUI.indexingCorpusMessage, \"Indexing corpus please wait\", \"Indexing Corpus\", javax.swing.JOptionPane.DEFAULT_OPTION, javax.swing.JOptionPane.INFORMATION_MESSAGE, null, null, null);\n GUI.JListModel.clear();\n GUI.ResultsLabel.setText(\"Indexing\");\n startIndexing(Paths.get(subqueries[1]), 0);\n GUI.SearchBarTextField.setText(\"Enter a new search or 'q' to exit\");\n\n return true;\n }\n return false;\n }",
"indexSet createindexSet();",
"private RequestResponse handleIndexRequest(Request request, Response response) throws ServiceException {\n response.type(\"application/json\");\n\n String core = request.params(\":core\");\n if (StringUtils.isEmpty(core)) {\n throw new ServiceException(\"Failed to provide an index core for the document\");\n }\n\n ContentDocument contentDocument = new RequestToContentDocument().convert(request);\n return this.searchService.index(core, contentDocument);\n }",
"public void searchTest() {\n\t\ttry {\n\t\t\tString keyword = \"操作道具\";\n\t\t\t// 使用IKQueryParser查询分析器构造Query对象\n\t\t\tQuery query = IKQueryParser.parse(LogsEntry.INDEX_FILED_CONTENT, keyword);\n\n\t\t\t// 搜索相似度最高的5条记录\n\t\t\tint querySize = 5;\n\t\t\tTopDocs topDocs = isearcher.search(query, null, querySize, sort);\n\t\t\tlogger.info(\"命中:{}\", topDocs.totalHits);\n\t\t\t// 输出结果\n\t\t\tScoreDoc[] scoreDocs = topDocs.scoreDocs;\n\t\t\tfor (int i = 0; i < scoreDocs.length; i++) {\n\t\t\t\tDocument targetDoc = isearcher.doc(scoreDocs[i].doc);\n\t\t\t\tlogger.info(\"内容:{}\", targetDoc.toString());\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tlogger.error(e.getMessage(), e);\n\t\t}\n\t}",
"public LexIndexer(Content content){\n this.content = content;\n index = line = column = 0;\n pos = new CharPosition();\n linecount = content.getColumnCount(0);\n }",
"@Async\n public void indexAllPublicBlogEntries() {\n try {\n // so as to not use all the ram, i loop through a page at a time and save the blog\n // entries in a batch of 100 at a time to ES\n // since i can't use java 8 on this project, i don't have streams.\n\n final Security sec = securityDao.findByName(\"public\");\n Pageable pageable = PageRequest.of(0, 100);\n\n Page<Entry> entries = entryRepository.findBySecurityOrderByDateDesc(sec, pageable);\n for (int i = 0; i < entries.getTotalPages(); i++) {\n final ArrayList<BlogEntry> items = new ArrayList<>();\n\n for (final Entry entry : entries) {\n items.add(convert(entry));\n }\n\n blogEntryRepository.saveAll(items);\n\n pageable = PageRequest.of(i + 1, 100);\n entries = entryRepository.findBySecurityOrderByDateDesc(sec, pageable);\n }\n } catch (final Exception e) {\n log.error(e.getMessage(), e);\n }\n }",
"private static Positional_inverted_index posindexCorpus(DocumentCorpus corpus) throws ClassNotFoundException, InstantiationException, IllegalAccessException, FileNotFoundException, IOException {\n\n NewTokenProcessor processor = new NewTokenProcessor();\n Iterable<Document> docs = corpus.getDocuments(); //call registerFileDocumentFactory first?\n\n List<Double> Doc_length = new ArrayList<>();\n Positional_inverted_index index = new Positional_inverted_index();\n\n double token_count = 0;\n\n // Iterate through the documents, and:\n for (Document d : docs) {\n //File f = new File(path + \"\\\\\" + d.getTitle());\n File f = new File(path + \"\\\\\" + d.getFileName().toString());\n double Filesize = f.length();\n //edited by bhavya\n double doc_weight = 0; //first entry in docweights.bin\n double doc_tokens = 0;\n double doc_length = 0;\n HashMap<String, Integer> tftd = new HashMap<>();\n // Tokenize the document's content by constructing an EnglishTokenStream around the document's content.\n Reader reader = d.getContent();\n EnglishTokenStream stream = new EnglishTokenStream(reader); //can access tokens through this stream\n N++;\n // Iterate through the tokens in the document, processing them using a BasicTokenProcessor,\n //\t\tand adding them to the HashSet vocabulary.\n Iterable<String> tokens = stream.getTokens();\n int i = 0;\n\n for (String token : tokens) {\n\n //adding token in index\n List<String> word = new ArrayList<String>();\n word = processor.processToken(token);\n //System.out.println(word.get(0));\n if (word.get(0).matches(\"\")) {\n continue;\n } else {\n\n index.addTerm(word.get(0), i, d.getId());\n\n }\n i = i + 1;\n\n //we check if token already exists in hashmap or not. \n //if it exists, increase its freq by 1 else make a new entry.\n if (tftd.containsKey(word.get(0))) {\n doc_tokens++;\n int count = tftd.get(word.get(0));\n tftd.replace(word.get(0), count + 1);\n } else {\n doc_tokens++;\n// token_count++; //gives total number of tokens.\n tftd.put(word.get(0), 1);\n }\n\n }\n double length = 0;\n double wdt = 0;\n\n double total_tftd = 0;\n for (Map.Entry<String, Integer> entry : tftd.entrySet()) {\n\n wdt = 1 + log(entry.getValue());\n\n length = length + pow(wdt, 2);\n total_tftd = total_tftd + entry.getValue();\n }\n token_count = token_count + doc_tokens;\n doc_weight = pow(length, 0.5);\n double avg_tftd = total_tftd / (double) tftd.size();\n\n Doc_length.add(doc_weight);\n Doc_length.add(avg_tftd);\n Doc_length.add(doc_tokens);\n Doc_length.add(Filesize);\n }\n Doc_length.add(token_count / N);\n\n DiskIndexWriter d = new DiskIndexWriter();\n d.write_doc(path, Doc_length);\n\n return index;\n }",
"@Ignore \n @Test\n public void testIndexDocument() {\n System.out.println(\"IndexDocument\");\n Client client = null;\n String indexName = \"\";\n String indexTypeName = \"\";\n String docId = \"\";\n Map<String, Object> jsonMap = null;\n long expResult = 0L;\n //long result = ESUtil.indexDocument(client, indexName, indexTypeName, docId, jsonMap);\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 notStoreIndexWithoutRequest() throws Exception {\n final String name = \"talk\";\n final Talks talks = new Talks.InDir();\n talks.create(\"\", name);\n talks.get(name).modify(\n new Directives()\n .xpath(\"/talk\")\n .push().xpath(\"wire\").remove().pop()\n .add(\"wire\").add(\"href\").set(\"#1\").up()\n );\n new IndexesRequests().execute(talks);\n MatcherAssert.assertThat(\n talks.get(name).read(),\n Matchers.not(\n XhtmlMatchers.hasXPaths(\"/talk/request\")\n )\n );\n }",
"@Test\n public void retrievesIndexFromLog() throws Exception {\n final String name = \"talk\";\n final Talks talks = new Talks.InDir();\n talks.create(\"\", name);\n talks.get(name).modify(\n new Directives().xpath(\"/talk\")\n .push().xpath(\"wire\").remove().pop()\n .add(\"wire\").add(\"href\").set(\"#2\").up().up()\n .add(\"archive\")\n .add(\"log\").attr(\"id\", \"1\").attr(\"title\", \"title1\")\n .attr(\"index\", \"1\").up()\n .add(\"log\").attr(\"id\", \"2\").attr(\"title\", \"title2\")\n .attr(\"index\", \"2\").up().up()\n .add(\"request\").attr(\"id\", \"a12345\")\n .add(\"author\").set(\"yegor256\").up()\n .add(\"args\").up()\n .add(\"type\").set(\"deploy\").up()\n );\n new IndexesRequests().execute(talks);\n MatcherAssert.assertThat(\n talks.get(name).read(),\n XhtmlMatchers.hasXPaths(\"/talk/request[@index='3']\")\n );\n }",
"public static void main(String[] args) throws Exception {\n\t\tqueryIndexPattern();\n\t\t\n\t}",
"@Test public void doesntIndexCoreOrNonStringAnnotations() throws IOException {\n accept(storage.spanConsumer(), TestObjects.CLIENT_SPAN);\n\n assertThat(\n storage.session()\n .execute(\"SELECT blobastext(annotation) from annotations_index\")\n .all())\n .extracting(r -> r.getString(0))\n .containsExactlyInAnyOrder(\n \"frontend:http.path\",\n \"frontend:http.path:/api\",\n \"frontend:clnt/finagle.version:6.45.0\",\n \"frontend:foo\",\n \"frontend:clnt/finagle.version\");\n }",
"@Override\n\tpublic void indexObject(ModelKey obj) throws ASException {\n\t\t\n\t}",
"public TranscriptionIndexer() throws SQLException, CorruptIndexException, IOException\r\n {\r\n\r\n\r\n IndexWriter writer = null;\r\n Analyzer analyser;\r\n Directory directory;\r\n /**@TODO parameterized location*/\r\n String dest = \"/usr/indexTranscriptions\";\r\n\r\n directory = FSDirectory.getDirectory(dest, true);\r\n analyser = new StandardAnalyzer();\r\n writer = new IndexWriter(directory, analyser, true);\r\n PreparedStatement stmt=null;\r\n Connection j = null;\r\n try {\r\n j=DatabaseWrapper.getConnection();\r\n String query=\"select * from transcription where text!='' and creator>0 order by folio, line\";\r\n stmt=j.prepareStatement(query);\r\n ResultSet rs=stmt.executeQuery();\r\n while(rs.next())\r\n {\r\n int folio=rs.getInt(\"folio\");\r\n int line=rs.getInt(\"line\");\r\n int UID=rs.getInt(\"creator\");\r\n int id=rs.getInt(\"id\");\r\n Transcription t=new Transcription(id);\r\n Document doc = new Document();\r\n Field field;\r\n field = new Field(\"text\", t.getText(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"comment\", t.getComment(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"creator\", \"\" + t.UID, Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"security\", \"\" + \"private\", Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"line\", \"\" + t.getLine(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"page\", \"\" + t.getFolio(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"id\", \"\" + t.getLineID(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"manuscript\", \"\" + new Manuscript(t.getFolio()).getID(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"projectID\", \"\" + t.getProjectID(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n writer.addDocument(doc);\r\n }\r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n if(writer!=null)\r\n {\r\n writer.commit();\r\n \twriter.close();\r\n return;\r\n }\r\n ex.printStackTrace();\r\n }\r\n finally{\r\n DatabaseWrapper.closeDBConnection(j);\r\n DatabaseWrapper.closePreparedStatement(stmt);\r\n }\r\n\r\n writer.commit();\r\n \twriter.close();\r\n}",
"public void IndexADocument(String docno, String content) throws IOException {\n\t\tdocid++;\n\t\tdoc2docid.put(docno, docid);\n\t\tdocid2doc.put(docid, docno);\n\n\t\t// Insert every term in this doc into docid2map\n\t\tString[] terms = content.trim().split(\" \");\n\t\tMap<Integer, Integer> docTerm = new HashMap<>();\n\t\tint thisTermid;\n\t\tfor(String term: terms){\n\t\t\t// get termid\n\t\t\tif(term2termid.get(term)!=null) thisTermid = term2termid.get(term);\n\t\t\telse{\n\t\t\t\tthisTermid = ++termid;\n\t\t\t\tterm2termid.put(term, thisTermid);\n\t\t\t}\n\t\t\tdocTerm.put(thisTermid, docTerm.getOrDefault(thisTermid, 0)+1);\n\t\t\t// Merge this term's information into termid2map\n\t\t\tMap<Integer, Integer> temp = termid2map.getOrDefault(thisTermid, new HashMap());\n\t\t\ttemp.put(docid, temp.getOrDefault(docid, 0)+1);\n\t\t\ttermid2map.put(thisTermid, temp);\n\t\t\ttermid2fre.put(thisTermid, termid2fre.getOrDefault(thisTermid, 0)+1);\n\t\t}\n\t\tdocid2map.put(docid, docTerm);\n\n//\t\t// Merge all the terms' information into termid2map\n//\t\tfor(Long tid: docTerm.keySet()){\n//\t\t\tMap<Long, Long> temp = termid2map.getOrDefault(tid, new HashMap());\n//\t\t\ttemp.put(docid,docTerm.get(tid));\n//\t\t\ttermid2map.put(tid, temp);\n//\t\t\t// update this term's frequency\n//\t\t\ttermid2fre.put(tid, termid2fre.getOrDefault(tid,0L)+docTerm.get(tid));\n//\t\t}\n\n\t\t// When termid2map and docid2map is big enough, put it into disk\n\t\tif(docid%blockSize==0){\n\t\t\tWritePostingFile();\n\t\t\tWriteDocFile();\n\t\t}\n\t}",
"@Test\n public void testProcessAll() throws TikaException, SAXException, IOException, Exception {\n PaperIndexer indexer = new PaperIndexer(BaseDirInfo.getPath(\"test.properties\"));\n indexer.processAll();\n\n Properties prop = indexer.getProperties();\n String paraIndexPath = prop.getProperty(\"para.index\");\n prop.setProperty(\"para.index\", paraIndexPath + \"/1\");\n\n final String[] indexes = { \"index\", \"para.index\", \"para.index.all\" };\n\n // Test global index and para index\n for (String indexPath : indexes) {\n File indexDir = new File(BaseDirInfo.getPath(indexer.getProperties().getProperty(indexPath)));\n try (Directory dir = FSDirectory.open(indexDir.toPath());\n IndexReader reader = DirectoryReader.open(dir)) {\n assertNotNull(reader); // reader must not be null\n\n int nDocs = reader.numDocs();\n assertNotEquals(nDocs, 0); // Number of docs must not be zero\n }\n }\n\n // Since we put one document in the test folder, we should have one folder in the para index\n prop.setProperty(\"para.index\", paraIndexPath);\n File[] dirs = new File(prop.getProperty(\"para.index\")).listFiles();\n assertEquals(dirs.length, 1);\n\n // clean folders\n indexer.removeIndexDirs();\n }",
"@Override\n\tpublic String indexData(String db, String filename,\n\t\t\tWeightComputer weightComputer, TextTransformer trans)\n\t\t\tthrows IOException {\n\t\tString cascades_collection=MongoDB.mongoDB.createCollection(db,\"cascades\",\" cascades from \"+filename+\" selon \"+this.toString()+\" avec \"+weightComputer+\" transform par \"+trans);\n\t\t\n\t\t\n\t\t\n\t\tSystem.out.println(\"Indexation \"+filename);\n\t\t//ArrayListStruct<User> ret=new ArrayListStruct<User>();\n\t\tHashMap<String,User> users=new HashMap<String,User>();\n\t\tHashSet<Post> posts=new HashSet<Post>();\n\t\tHashSet<Cascade> cascades=new HashSet<Cascade>();\n\t\t\n\t\tStemmer stemmer=new Stemmer();\n\t\tBufferedReader lecteur=new BufferedReader(new FileReader(filename));\n\t\tBufferedReader lecteurW=new BufferedReader(new FileReader(this.cascadesWeightsFile));\n\t\ttry{\n\t\t\tString ligne;\n\t\t\tint nbl=0;\n\t\t\twhile((ligne=lecteur.readLine())!=null){\n\t\t\t\tnbl++;\n\t\t\t}\n\t\t\tSystem.out.println(nbl+\" lignes\");\n\t\t\tlecteur.close();\n\t\t\tlecteur=new BufferedReader(new FileReader(filename));\n\t\t\tint nb=0;\n\t\t\tint nbc=0;\n\t\t\tint nbinvalides=0;\n\t\t\tlecteur.readLine();\n\t\t\tlecteurW.readLine();\n\t\t\twhile(((ligne=lecteur.readLine())!=null)){ // && (nb<10000)){\n\t\t\t\t\t//System.out.println(ligne); \n\t\t\t\t\t\n\t\t\t\tligne=ligne.replaceAll(\"\\r\", \" \");\n\t\t\t\tligne=ligne.replaceAll(\"\\\\r\", \" \");\n\t\t\t\tligne=ligne.replaceAll(\"\\\\\\\\r\", \" \");\n\t\t\t\tligne=ligne.replaceAll(\"\\n\", \" \");\n\t\t\t\tligne=ligne.replaceAll(\"\\\\n\", \" \");\n\t\t\t\tligne=ligne.replaceAll(\"\\\\\\\\n\", \" \");\n\t\t\t\tligne=ligne.replaceAll(\"\\t\", \" \");\n\t\t\t\tligne=ligne.replaceAll(\"\\\\t\", \" \");\n\t\t\t\tligne=ligne.replaceAll(\"\\\\\\\\t\", \" \");\n\t\t\t\tligne=ligne.replaceAll(\" \", \" \");\n\t\t\t\tligne=ligne.replace(\"^ \", \"\");\n\t\t\t\t\t//System.out.println(ligne);\n\t\t\t\t\tString[] li=ligne.split(\" \");\n\t\t\t\t\tUser user;\n\t\t\t\t\t\n\t\t\t\t\tif (li.length>=2){\n\t\t\t\t\t\t//System.out.println(li[0]+\":\"+li[1]);\n\t\t\t\t\t\tHashMap<String,Post> pc=new HashMap<String,Post>();\n\t\t\t\t\t\tHashMap<String,Long> vusUsers=new HashMap<String,Long>();\n\t\t\t\t\t\tfor(int i=0;i<li.length;i++){\n\t\t\t\t\t\t\tString[] triplet=li[i].split(\",\");\n\t\t\t\t\t\t\tif (users.containsKey(triplet[1])){\n\t\t\t\t\t\t\t\tuser=users.get(triplet[1]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\tuser=User.getUser(triplet[1]);\n\t\t\t\t\t\t\t\tusers.put(triplet[1],user);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tlong t=Long.valueOf(triplet[2])+1;\n\t\t\t\t\t\t\tif(triplet[0].compareTo(\"i\")==0){\n\t\t\t\t\t\t\t\tt=0;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif((!vusUsers.containsKey(user.getName())) || (vusUsers.get(user.getName())<t)){\n\t\t\t\t\t\t\t\tPost p=new Post(\"\",user,t,null);\n\t\t\t\t\t\t\t\tpc.put(user.getName(),p);\n\t\t\t\t\t\t\t\tvusUsers.put(user.getName(),t);\n\t\t\t\t\t\t\t\tposts.add(p);\n\t\t\t\t\t\t\t}\n\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\tif(pc.size()>1){\n\t\t\t\t\t\t\tString wl=lecteurW.readLine();\n\t\t\t\t\t\t\tString[] ws=wl.split(\" \");\n\t\t\t\t\t\t\tHashMap<Integer,Double> weights=new HashMap<Integer,Double>();\n\t\t\t\t\t\t\tfor(int i=0;i<ws.length;i++){\n\t\t\t\t\t\t\t\tString[] st=ws[i].split(\",\");\n\t\t\t\t\t\t\t\tweights.put(Integer.parseInt(st[0])+add, Double.valueOf(st[1]));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tnbc++;\n\t\t\t\t\t\t\tCascade c=new ArtificialCascade(nbc,nbc+\"\",new HashSet<Post>(pc.values()),weights);\n\t\t\t\t\t\t\tc.indexInto(db, cascades_collection);\n\t\t\t\t\t\t}\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\t\n\t\t\t\t\t\tSystem.out.println(\"ligne invalide :\" + ligne);\n\t\t\t\t\t\tnbinvalides++;\n\t\t\t\t\t\t//break;\n\t\t\t\t\t}\n\t\t\t\t\tnb++;\n\t\t\t\t\tif (nb%100==0){\n\t\t\t\t\t\tSystem.out.println(nb+\"/\"+nbl+\" lignes traitees\");\n\t\t\t\t\t}\n\n\t\t\t}\n\t\t\tSystem.out.println(nbinvalides+\" lignes invalides\");\n\t\t\t\n\t\t\t/*nb=0;\n\t\t\tnbl=posts.size();\n\t\t\tfor(Post post:posts){\n\t\t\t\tpost.indexInto(collection);\n\t\t\t\tif (nb%100==0){\n\t\t\t\t\tSystem.out.println(nb+\"/\"+nbl+\" posts inseres\");\n\t\t\t\t}\n\t\t\t\tnb++;\n\t\t\t}*/\n\t\t\tSystem.out.println(\"Creation indexs\");\n\t\t\tDBCollection col=MongoDB.mongoDB.getCollectionFromDB(db,cascades_collection);\n\t\t\tcol.ensureIndex(new BasicDBObject(\"id\", 1));\n\t\t}\n\t\tfinally{\n\t\t\tlecteur.close();\n\t\t\tlecteurW.close();\n\t\t}\n\t\t\n\t\treturn cascades_collection;\n\t}",
"StorableIndexInfo getIndexInfo();",
"public void IndexADocument(String docno, String content) throws IOException {\n\t\tthis.idWriter.write(docID+\":\"+docno);\n\t\tthis.idWriter.newLine();\n\t\tthis.idWriter.flush();\n\t\tString[] words = content.split(\" \");\n\t\tHashMap<String,Integer> count = new HashMap<>();\n\t\tfor(String s:words){\n\t\t\tcount.put(s,count.getOrDefault(s,0)+1);\n\t\t}\n\t\tfor(String key: count.keySet()){\n\t\t\tif(this.map.containsKey(key)){\n\t\t\t\tthis.map.get(key).append(docID).append(\":\").append(count.get(key)).append(\",\");\n\t\t\t}else {\n\t\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\tthis.map.put(key, sb.append(docID).append(\":\").append(count.get(key)).append(\",\"));\n\t\t\t}\n\t\t}\n\t\tdocID++;\n\t}",
"@Override\r\n public ParaMap index(ParaMap inMap) throws Exception {\n return null;\r\n }",
"public static void main(String[] args)\n\t{\n\t\tsqlindexer si=new sqlindexer();\n\t\tsi.indexAll();\n\t\t\n\t\t\n\t}",
"public void WriteIndex() throws Exception {\n CorpusReader corpus = new CorpusReader();\n // initiate the output object\n IndexWriter output = new IndexWriter();\n\n // Map to hold doc_id and doc content;\n Map<String, String> doc;\n\n // index the corpus, load the doc one by one\n while ((doc = corpus.NextDoc()) != null){\n // get the doc_id and content of the current doc.\n String doc_id = doc.get(\"DOC_ID\");\n String content = doc.get(\"CONTENT\");\n\n // index the doc\n output.IndexADoc(doc_id, content);\n }\n output.close_index_writer();\n }",
"public void addDocument(Document d) throws IndexerException {\n\t\t\n\t//if (!isvaliddir) {System.out.println(\"INVALID PATH/execution !\");return;}\n\t\n\t\n\t//Tokenizing\n\t//one thgread\n\tDocID did=new DocID(d.getField(FieldNames.FILEID),\n\t\t\td.getField(FieldNames.CATEGORY),\n\t\t\td.getField(FieldNames.AUTHOR));\n\t\n\tTokenStream stream=tokenize(FieldNames.CATEGORY,d);\n\tAnalyzer analyz=analyze(FieldNames.CATEGORY, stream);\n\tCategoryIndex.getInst().doIndexing(did.getdID(), stream);\n\t/*\t}catch(Exception e)\n\t{\n\t\tif (e instanceof NullPointerException ||e instanceof StringIndexOutOfBoundsException\n\t\t\t\t||e instanceof ArrayIndexOutOfBoundsException ||e instanceof IllegalArgumentException\n\t\t\t\t);\n\t}\n\ttry{*/TokenStream stream1=tokenize(FieldNames.AUTHOR,d);\n\tAnalyzer analyz1=analyze(FieldNames.AUTHOR, stream1);\n\tAuthorIndex.getInst().doIndexing(did.getdID(), stream1);\n\t/*}catch(Exception e)\n\t{\n\t\tif (e instanceof NullPointerException ||e instanceof StringIndexOutOfBoundsException\n\t\t\t\t||e instanceof ArrayIndexOutOfBoundsException ||e instanceof IllegalArgumentException\n\t\t\t\t);}\n\ttry{*/TokenStream stream2=tokenize(FieldNames.PLACE,d);\n\tAnalyzer analyz2=analyze(FieldNames.PLACE, stream2);\n\tPlaceIndex.getInst().doIndexing(did.getdID(), stream2);\n/*}catch(Exception e)\n\t{\n\tif (e instanceof NullPointerException ||e instanceof StringIndexOutOfBoundsException\n\t\t\t||e instanceof ArrayIndexOutOfBoundsException ||e instanceof IllegalArgumentException\n\t\t\t);}\n\ttry{*/tkizer = new Tokenizer();\n\tTokenStream stream3=tokenize(FieldNames.CONTENT,d);\n\tfactory = AnalyzerFactory.getInstance();\n\tAnalyzer analyz3=analyze(FieldNames.CONTENT, stream3);\n\tnew Indxr(IndexType.TERM).doIndexing(did, stream3);\n\t/*}\tcatch(Exception e)\n\t{\n\t\tif (e instanceof NullPointerException ||e instanceof StringIndexOutOfBoundsException\n\t\t\t\t||e instanceof ArrayIndexOutOfBoundsException ||e instanceof IllegalArgumentException\n\t\t\t\t);}\n\t*/\n\tdocs.add(did==null?\" \":did.toString());\n\t \n\t\na_indexrd= new IndexReader(System.getProperty(\"INDEX.DIR\"), IndexType.AUTHOR);\nc_indexrd= new IndexReader(System.getProperty(\"INDEX.DIR\"), IndexType.CATEGORY);\np_indexrd= new IndexReader(System.getProperty(\"INDEX.DIR\"), IndexType.PLACE);\nt_indexrd= new IndexReader(System.getProperty(\"INDEX.DIR\"), IndexType.TERM);\n\t\t}",
"void stopIndexing();",
"@Override\n\tpublic void indexObject(List<ModelKey> list) throws ASException {\n\t\t\n\t}",
"@Ignore \n @Test\n public void testPutMappingToIndex() {\n System.out.println(\"putMappingToIndex\");\n \n Util.commonServiceIPs=\"127.0.0.1\";\n \n EntityManager em=Util.getEntityManagerFactory(100).createEntityManager();\n EntityManager platformEm = Util.getPlatformEntityManagerFactory().createEntityManager();\n \n Client client = ESUtil.getClient(em,platformEm,1,false);\n \n String indexName = \"datastore_100_1_data_event_yearmonth_000000_1\";\n String indexType = \"AAA666_type\";\n \n try\n { \n ESUtil.createIndexWithoutType(client, indexName);\n \n DataobjectType dataobjectType = Util.getDataobjectTypeByIndexTypeName(platformEm, indexType);\n\n XContentBuilder typeMapping = ESUtil.createTypeMapping(platformEm, dataobjectType, true);\n \n ESUtil.putMappingToIndex(client, indexName, indexType, typeMapping);\n }\n catch(Exception e)\n {\n System.out.print(\" failed! e=\"+e);\n }\n }",
"@Test\n public void testIndexMaintenanceWithIndexOnMethodGetEntries() throws Exception {\n Index i1 = qs.createIndex(\"indx1\", IndexType.FUNCTIONAL, \"entries.value.getID\",\n SEPARATOR + \"portfolio.getEntries() entries\");\n CacheUtils.getCache();\n region = CacheUtils.getRegion(SEPARATOR + \"portfolio\");\n region.put(\"4\", new Portfolio(4));\n region.put(\"5\", new Portfolio(5));\n CompactRangeIndex ri = (CompactRangeIndex) i1;\n validateIndexForEntries(ri);\n }",
"private IndexHandler (boolean test) throws IOException {\n analyzer = new StandardAnalyzer();\n indexDir = test ? new RAMDirectory() : new DistributedDirectory(new MongoDirectory(mongoClient, \"search-engine\", \"index\"));\n //storePath = storedPath;\n config = new IndexWriterConfig(analyzer);\n\n // write separate IndexWriter to RAM for each IndexHandler\n // writer will have to be manually closed with each instance call\n // see IndexWriter documentation for .close()\n // explaining continuous closing of IndexWriter is an expensive operation\n try {\n writer = new IndexWriter(indexDir, config);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public interface IndexSearch {\n /**\n * Returns the index type.\n * @return type\n */\n IndexType type();\n\n /**\n * Returns the current token.\n * @return token\n */\n byte[] token();\n}",
"@Test\n public void testIndexMaintenanceOnCacheLoadedData() throws Exception {\n IndexManager.TEST_RANGEINDEX_ONLY = true;\n Cache cache = CacheUtils.getCache();\n qs = cache.getQueryService();\n region = CacheUtils.createRegion(\"portfolio1\", null);\n AttributesMutator am = region.getAttributesMutator();\n am.setCacheLoader(new CacheLoader() {\n\n @Override\n public Object load(LoaderHelper helper) throws CacheLoaderException {\n String key = (String) helper.getKey();\n Portfolio p = new Portfolio(Integer.parseInt(key));\n return p;\n }\n\n @Override\n public void close() {\n // nothing\n }\n });\n\n Index i1 =\n qs.createIndex(\"indx1\", IndexType.FUNCTIONAL, \"pf.getID()\", SEPARATOR + \"portfolio1 pf\");\n List keys = new ArrayList();\n keys.add(\"1\");\n keys.add(\"2\");\n keys.add(\"3\");\n keys.add(\"4\");\n\n region.getAll(keys);\n }",
"public abstract void updateIndex();",
"@Test\n public void testIndexMaintenanceOnPutAll() throws Exception {\n IndexManager.TEST_RANGEINDEX_ONLY = true;\n Cache cache = CacheUtils.getCache();\n qs = cache.getQueryService();\n region = CacheUtils.createRegion(\"portfolio1\", null);\n region.put(\"1\", new Portfolio(1));\n Index i1 = qs.createIndex(\"indx1\", IndexType.FUNCTIONAL, \"posvals.secId\",\n SEPARATOR + \"portfolio1 pf, pf.positions.values posvals \");\n Map data = new HashMap();\n for (int i = 1; i < 11; ++i) {\n data.put(\"\" + i, new Portfolio(i + 2));\n }\n\n region.putAll(data);\n }",
"@Override\n public Collection<? extends DBSTableIndex> getIndexes(DBRProgressMonitor monitor) throws DBException {\n return Collections.emptyList();\n }",
"private Document createMapping() {\n return getIndexOperations().createMapping();\n }",
"private void createInvertedIndex() {\n\t\tArrayList<Index> invertedIndex=new ArrayList<>();\n\t\ttry{\n\t\t\tBufferedReader in = new BufferedReader(new FileReader(\"E:\\\\graduate\\\\cloud\\\\project\\\\data\\\\part-r-00001\"));\n\t\t\tString line = \"\";\n\t\t\twhile ((line = in.readLine()) != null) {\n\t\t\t\tString parts[] = line.split(\"\\t\");\n\t\t\t\tparts[1]=parts[1].replace(\"{\", \"\").replace(\"}\", \"\");\n\t\t\t\tString counts[]=parts[1].split(\",\");\n\t\t\t\tHashMap<String,Integer> fileList=new HashMap<String,Integer>();\n\t\t\t\tfor (String count : counts) {\n\t\t\t\t\tString file[]=count.split(\"=\");\n\t\t\t\t\tfileList.put(file[0].trim().replace(\".txt\", \"\"), Integer.parseInt(file[1].trim()));\n\t\t\t\t}\n\t\t\t\tIndex index=new Index();\n\t\t\t\tindex.setWord(parts[0]);\n\t\t\t\tindex.setFileList(fileList);\n\t\t\t\tinvertedIndex.add(index);\n\t\t\t}\n\t\t\tin.close();\n\t\t}catch(IOException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\tDBUtil.insertIndex(invertedIndex);\n\t}",
"private void addNetworkIndexes() {\r\n try {\r\n addIndex(NodeTypes.SITE.getId(), NeoUtils.getLocationIndexProperty(basename));\r\n } catch (IOException e) {\r\n throw (RuntimeException)new RuntimeException().initCause(e);\r\n }\r\n \r\n }",
"@Test(enabled = false, description = \"WORDSNET-24595\", dataProvider = \"fieldIndexYomiDataProvider\")\n public void fieldIndexYomi(boolean sortEntriesUsingYomi) throws Exception {\n Document doc = new Document();\n DocumentBuilder builder = new DocumentBuilder(doc);\n\n // Create an INDEX field which will display an entry for each XE field found in the document.\n // Each entry will display the XE field's Text property value on the left side,\n // and the number of the page that contains the XE field on the right.\n // The INDEX entry will collect all XE fields with matching values in the \"Text\" property\n // into one entry as opposed to making an entry for each XE field.\n FieldIndex index = (FieldIndex) builder.insertField(FieldType.FIELD_INDEX, true);\n\n // The INDEX table automatically sorts its entries by the values of their Text properties in alphabetic order.\n // Set the INDEX table to sort entries phonetically using Hiragana instead.\n index.setUseYomi(sortEntriesUsingYomi);\n\n if (sortEntriesUsingYomi)\n Assert.assertEquals(\" INDEX \\\\y\", index.getFieldCode());\n else\n Assert.assertEquals(\" INDEX \", index.getFieldCode());\n\n // Insert 4 XE fields, which would show up as entries in the INDEX field's table of contents.\n // The \"Text\" property may contain a word's spelling in Kanji, whose pronunciation may be ambiguous,\n // while the \"Yomi\" version of the word will spell exactly how it is pronounced using Hiragana.\n // If we set our INDEX field to use Yomi, it will sort these entries\n // by the value of their Yomi properties, instead of their Text values.\n builder.insertBreak(BreakType.PAGE_BREAK);\n FieldXE indexEntry = (FieldXE) builder.insertField(FieldType.FIELD_INDEX_ENTRY, true);\n indexEntry.setText(\"愛子\");\n indexEntry.setYomi(\"あ\");\n\n Assert.assertEquals(\" XE 愛子 \\\\y あ\", indexEntry.getFieldCode());\n\n builder.insertBreak(BreakType.PAGE_BREAK);\n indexEntry = (FieldXE) builder.insertField(FieldType.FIELD_INDEX_ENTRY, true);\n indexEntry.setText(\"明美\");\n indexEntry.setYomi(\"あ\");\n\n builder.insertBreak(BreakType.PAGE_BREAK);\n indexEntry = (FieldXE) builder.insertField(FieldType.FIELD_INDEX_ENTRY, true);\n indexEntry.setText(\"恵美\");\n indexEntry.setYomi(\"え\");\n\n builder.insertBreak(BreakType.PAGE_BREAK);\n indexEntry = (FieldXE) builder.insertField(FieldType.FIELD_INDEX_ENTRY, true);\n indexEntry.setText(\"愛美\");\n indexEntry.setYomi(\"え\");\n\n doc.updatePageLayout();\n doc.updateFields();\n doc.save(getArtifactsDir() + \"Field.INDEX.XE.Yomi.docx\");\n //ExEnd\n\n doc = new Document(getArtifactsDir() + \"Field.INDEX.XE.Yomi.docx\");\n index = (FieldIndex) doc.getRange().getFields().get(0);\n\n if (sortEntriesUsingYomi) {\n Assert.assertTrue(index.getUseYomi());\n Assert.assertEquals(\" INDEX \\\\y\", index.getFieldCode());\n Assert.assertEquals(\"愛子, 2\\r\" +\n \"明美, 3\\r\" +\n \"恵美, 4\\r\" +\n \"愛美, 5\\r\", index.getResult());\n } else {\n Assert.assertFalse(index.getUseYomi());\n Assert.assertEquals(\" INDEX \", index.getFieldCode());\n Assert.assertEquals(\"恵美, 4\\r\" +\n \"愛子, 2\\r\" +\n \"愛美, 5\\r\" +\n \"明美, 3\\r\", index.getResult());\n }\n\n indexEntry = (FieldXE) doc.getRange().getFields().get(1);\n\n TestUtil.verifyField(FieldType.FIELD_INDEX_ENTRY, \" XE 愛子 \\\\y あ\", \"\", indexEntry);\n Assert.assertEquals(\"愛子\", indexEntry.getText());\n Assert.assertEquals(\"あ\", indexEntry.getYomi());\n\n indexEntry = (FieldXE) doc.getRange().getFields().get(2);\n\n TestUtil.verifyField(FieldType.FIELD_INDEX_ENTRY, \" XE 明美 \\\\y あ\", \"\", indexEntry);\n Assert.assertEquals(\"明美\", indexEntry.getText());\n Assert.assertEquals(\"あ\", indexEntry.getYomi());\n\n indexEntry = (FieldXE) doc.getRange().getFields().get(3);\n\n TestUtil.verifyField(FieldType.FIELD_INDEX_ENTRY, \" XE 恵美 \\\\y え\", \"\", indexEntry);\n Assert.assertEquals(\"恵美\", indexEntry.getText());\n Assert.assertEquals(\"え\", indexEntry.getYomi());\n\n indexEntry = (FieldXE) doc.getRange().getFields().get(4);\n\n TestUtil.verifyField(FieldType.FIELD_INDEX_ENTRY, \" XE 愛美 \\\\y え\", \"\", indexEntry);\n Assert.assertEquals(\"愛美\", indexEntry.getText());\n Assert.assertEquals(\"え\", indexEntry.getYomi());\n }",
"private boolean readFromIndex(){\n\t\tString file = \"./reverseIndex.txt\";\r\n\t\tFile reverseIndex = new File(file);\r\n\t\tif (reverseIndex.exists()){\r\n\t\t\ttry(\r\n\t\t\t\tBufferedReader reader = new BufferedReader(new FileReader(file));\r\n\t\t\t){\r\n\t\t\t\tString readSchema = \"(\\\\{[^\\\\}]+)\";\r\n\t\t\t\tPattern readPattern = Pattern.compile(readSchema);\r\n\t\t\t\tString line;\r\n\t\t\t\twhile ((line = reader.readLine()) != null){\r\n\t\t\t\t\tint iden = 0;\r\n\t\t\t\t\tString[] pair = line.split(\" \\\\| \");\r\n\t\t\t\t\tString fileName = pair[0];\r\n\t\t\t\t\tString tokenList;\r\n\t\t\t\t if (pair.length > 1){\r\n\t\t\t\t\t\ttokenList = pair[1];\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse{\r\n\t\t\t\t\t\ttokenList = \"\";\r\n\t\t\t\t\t}\r\n\t\t\t\t\tHashMap<Term, Integer> tempMap = new HashMap<Term, Integer>();\r\n\t\t\t\t\tMatcher readMatcher = readPattern.matcher(tokenList);\r\n\t\t\t\t\tString[] readResults = readMatcher.results().map(MatchResult::group).toArray(String[]::new);\r\n\t\t\t\t\tfor (int i = 0;i<readResults.length;++i){\r\n\t\t\t\t\t\tString[] valuePair = readResults[i].split(\" : \");\r\n\t\t\t\t\t\tString term = valuePair[0];\r\n\t\t\t\t\t\tTerm temp = new Term(term.substring(1),iden);\r\n\t\t\t\t\t\tiden++;\r\n\t\t\t\t\t\ttempMap.put(temp, Integer.parseInt(valuePair[1]));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tindex.put(fileName, new IndexedDoc(tempMap));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcatch(Exception e){\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public void index(Map<Integer, Document> docs) {\r\n this.docs = docs;\r\n\r\n // index\r\n this.index.process(this.docs);\r\n\r\n // tf-idf model\r\n this.tfidf.inject(this.index, this.docs.size());\r\n this.tfidf.process();\r\n }",
"public Object migrateWords2index(String wordhash) throws IOException {\n File db = plasmaWordIndexFile.wordHash2path(oldDatabaseRoot, wordhash);\r\n if (!(db.exists())) return \"not available\";\r\n plasmaWordIndexFile entity = null;\r\n try {\r\n entity = new plasmaWordIndexFile(oldDatabaseRoot, wordhash, true);\r\n int size = entity.size();\r\n indexContainer container = new indexContainer(wordhash, payloadrow(), useCollectionIndex);\r\n \r\n try {\r\n Iterator entries = entity.elements(true);\r\n indexRWIEntry entry;\r\n while (entries.hasNext()) {\r\n entry = (indexRWIEntry) entries.next();\r\n // System.out.println(\"ENTRY = \" + entry.getUrlHash());\r\n container.add(new indexRWIEntry[] { entry }, System.currentTimeMillis());\r\n }\r\n // we have read all elements, now delete the entity\r\n entity.deleteComplete();\r\n entity.close();\r\n entity = null;\r\n \r\n indexContainer feedback = collections.addEntries(container, container.updated(), false);\r\n if (feedback != null) return feedback;\r\n return new Integer(size);\r\n } catch (kelondroException e) {\r\n // database corrupted, we simply give up the database and delete it\r\n try { entity.close(); } catch (Exception ee) { }\r\n entity = null;\r\n try { db.delete(); } catch (Exception ee) { }\r\n return \"database corrupted; deleted\";\r\n }\r\n } finally {\r\n if (entity != null) try {entity.close();}catch(Exception e){}\r\n }\r\n }",
"@Override\n @Secured(SecurityRoles.ADMINISTRATOR)\n public void reindex() {\n revisionDao.deleteAll();\n // OK, launches a new indexation\n indexFromLatest();\n }",
"public void indexAdd(final LWMap map, final boolean metadataOnly, final boolean searchEverything_IS_IGNORED)\n {\n if (DEBUG.Enabled && searchEverything_IS_IGNORED) Log.debug(\"Note: \\\"search-everything\\\" bit is now ignored.\");\n // If we want slide content, change default index to always index everything -- will hardly make\n // a difference just adding slides, and they can be (are currently always) optionally filtered out later anyway.\n \n if (DEBUG.RDF) Log.debug(\"indexAdd: begin; freeMem=: \"+Runtime.getRuntime().freeMemory());\n \n final com.hp.hpl.jena.rdf.model.Resource mapRoot = this.createResource(map.getURI().toString());\n \n if (DEBUG.RDF) Log.debug(\"index: create resource for map; freeMem=: \"+Runtime.getRuntime().freeMemory());\n \n try {\n addProperty(mapRoot, idOf, map.getID());\n addProperty(mapRoot, authorOf, System.getProperty(\"user.name\"));\n if (map.hasLabel())\n addProperty(mapRoot, labelOf,map.getLabel());\n\n if (DEBUG.RDF) Log.debug(\"index: added properties for map; freeMem=\"+Runtime.getRuntime().freeMemory());\n \n final Collection<LWComponent> searchSet = map.getAllDescendents();\n\n // final Collection<LWComponent> searchSet;\n // // We always filter out slide content anyway, so no point in allowing it un index\n // // Note that we really ought to search from the current viewer focal tho, so,\n // // if user was looking at a single slide with lots of content, the search\n // // bar would still do something meaninful.\n // if (searchEverything) {\n // // E.g., this will search everything incuding Slides, and even the MasterSlide (which is a bug)\n // // THIS IS A PROBLEM IN THAT A PARAMETERIZED INDEX IS NO LONGER CACHEABLE!\n // searchSet = map.getAllDescendents(LWComponent.ChildKind.ANY);\n // } else {\n // searchSet = map.getAllDescendents();\n // }\n \n for (LWComponent c : searchSet) {\n if (c instanceof LWPathway || c instanceof LWMap.Layer)\n continue;\n if (!INDEX_SLIDES && c instanceof LWSlide)\n continue;\n \n try {\n load_VUE_component_to_RDF_index(c, mapRoot, !metadataOnly);\n } catch (Throwable t) {\n Log.warn(\"indexing VUE component \" + c, t);\n }\n\n if (size() > MAX_SIZE) {\n Log.warn(\"Maximum fail-safe search capacity reached: not all nodes will be searchable. (See property rdf.index.size)\");\n break;\n }\n } \n \n if (DEBUG.RDF) Log.debug(\"index: after indexing all components; freeMem=\"+Runtime.getRuntime().freeMemory());\n \n } catch(Exception ex) {\n Log.error(\"index\", ex);\n }\n if(DEBUG.RDF) Log.debug(\"index: done -- size=\"+this.size());\n }",
"public static void main(String[] args) throws CorruptIndexException, LockObtainFailedException, IOException, ParseException{\n\t\tboolean lucene_im_mem = false;\n\t\t//1. Build the Index with varying \"database size\"\n\t\tString dirName =\"/data/home/duy113/SupSearchExp/AIDSNew/\";\n//\t\tString dirName = \"/Users/dayuyuan/Documents/workspace/Experiment/\";\n\t\tString dbFileName = dirName + \"DBFile\";\n\t\tString trainQueryName= dirName + \"TrainQuery\";\n//\t\tString testQuery15 = dirName + \"TestQuery15\";\n\t\tString testQuery25 = dirName + \"TestQuery25\";\n//\t\tString testQuery35 = dirName + \"TestQuery35\";\n\t\tGraphDatabase query = new GraphDatabase_OnDisk(testQuery25, MyFactory.getSmilesParser());\n\t\tdouble[] minSupts = new double[4];\n\t\tminSupts[0] = 0.05; minSupts[1] = 0.03; minSupts[2] =0.02; minSupts[3] = 0.01;\n \t\tint lwIndexCount[] = new int[1];\n\t\tlwIndexCount[0] = 479;\t\n//\t\tSystem.out.println(\"Build CIndexFlat Left-over: \");\n//\t\tfor(int j = 3; j< 4; j++){\n//\t\t\tdouble minSupt = minSupts[j];\n//\t\t\tfor(int i = 4; i<=10; i = i+2){\n//\t\t\t\tString baseName = dirName + \"G_\" + i + \"MinSup_\" + minSupt + \"/\";\n//\t\t\t\tGraphDatabase trainingDB = new GraphDatabase_OnDisk(dbFileName + i, MyFactory.getDFSCoder());\n//\t\t\t\tGraphDatabase trainQuery = new GraphDatabase_OnDisk(trainQueryName, MyFactory.getSmilesParser());\t\t\n//\t\t\t\tif(i == 2){\n//\t\t\t\t\tSystem.out.println(baseName + \"CIndexFlat\");\n//\t\t\t\t\tCIndexExp.buildIndex(trainingDB, trainQuery, trainingDB, baseName, minSupt, lwIndexCount[0]);\n//\t\t\t\t}\n//\t\t\t\telse{\n//\t\t\t\t\tString featureBaseName = dirName + \"G_2\" + \"MinSup_\" + minSupt + \"/\";\n//\t\t\t\t\tSystem.out.println(baseName + \"CIndexFlat with Features \" + featureBaseName);\n//\t\t\t\t\tCIndexExp.buildIndex(featureBaseName, trainingDB, baseName, minSupt);\n//\t\t\t\t}\n//\t\t\t\tSystem.gc();\n//\t\t\t}\n//\t\t}\n\t\tSystem.out.println(\"Run Query Processing: \");\n\t\tfor(int j = 0; j< 4; j++){\n\t\t\tdouble minSupt = minSupts[j];\n\t\t\tfor(int i = 2; i<=10; i = i+2){\n\t\t\t\tString baseName = dirName + \"G_\" + i + \"MinSup_\" + minSupt + \"/\";\n\t\t\t\tGraphDatabase trainingDB = new GraphDatabase_OnDisk(dbFileName + i, MyFactory.getDFSCoder());\n\t\t\t\tGraphDatabase trainQuery = new GraphDatabase_OnDisk(trainQueryName, MyFactory.getSmilesParser());\t\t\n\t\t\t\tif(j!=0 || i!=2){\n\t\t\t\t\tSystem.out.println(baseName + \"LWindex\");\n\t\t\t\t\t//LWIndexExp.buildIndex(trainingDB, trainQuery, trainingDB, trainQuery.getParser(),baseName, minSupt, lwIndexCount);\n\t\t\t\t\t//System.gc();\n\t\t\t\t\tLWIndexExp.runIndex(trainingDB, trainQuery, baseName, lucene_im_mem);\n\t\t\t\t\tLWIndexExp.runIndex(trainingDB, query, baseName, lucene_im_mem);\n\t\t\t\t\tSystem.gc();\t\t\n\t\t\t\t\tSystem.out.println(baseName + \"PrefixIndex\");\n\t\t\t\t\t//PrefixIndexExp.buildIndex(trainingDB, trainingDB, baseName, minSupt);\n\t\t\t\t\t//System.gc();\n\t\t\t\t\tPrefixIndexExp.runIndex(trainingDB, trainQuery, baseName, lucene_im_mem);\n\t\t\t\t\tPrefixIndexExp.runIndex(trainingDB, query, baseName, lucene_im_mem);\n\t\t\t\t\tSystem.gc();\t\t\n\t\t\t\t\tSystem.out.println(baseName + \"PrefixIndexHi\");\n\t\t\t\t\t//PrefixIndexExp.buildHiIndex(trainingDB, trainingDB, 2, baseName, minSupt);\n\t\t\t\t\t//System.gc();\n\t\t\t\t\tPrefixIndexExp.runHiIndex(trainingDB, trainQuery, baseName, lucene_im_mem);\n\t\t\t\t\tPrefixIndexExp.runHiIndex(trainingDB, query, baseName, lucene_im_mem);\n\t\t\t\t\tSystem.gc();\n\t\t\t\t\tSystem.out.println(baseName + \"GPTree\");\n\t\t\t\t\t//GPTreeExp.buildIndex(trainingDB, trainingDB, baseName, minSupt);\n\t\t\t\t\t//System.gc();\n\t\t\t\t\tGPTreeExp.runIndex(trainingDB, trainQuery, baseName, lucene_im_mem);\n\t\t\t\t\tGPTreeExp.runIndex(trainingDB, query, baseName, lucene_im_mem);\n\t\t\t\t\tSystem.gc();\n\t\t\t\t\tSystem.out.println(baseName + \"CIndexFlat\");\n\t\t\t\t\t//CIndexExp.buildIndex(trainingDB, trainQuery, trainingDB, baseName, minSupt, lwIndexCount[0]);\n\t\t\t\t\t//System.gc();\n\t\t\t\t\tCIndexExp.runIndex(trainingDB, trainQuery, baseName, lucene_im_mem);\n\t\t\t\t\tCIndexExp.runIndex(trainingDB, query, baseName, lucene_im_mem);\n\t\t\t\t\tSystem.gc();\n\t\t\t\t}\n\t\t\t\tif(j==0&&i==2){\n\t\t\t\t\tSystem.out.println(baseName + \"CIndexTopDown: \" + lwIndexCount[0]);\n\t\t\t\t\tCIndexExp.buildIndexTopDown(trainingDB, trainQuery, trainingDB,MyFactory.getUnCanDFS(), baseName, minSupt, 2*trainQuery.getTotalNum()/lwIndexCount[0] ); // 8000 test queries\n\t\t\t\t\t//System.gc();\n\t\t\t\t}\n\t\t\t\tSystem.out.println(baseName + \"CIndexTopDown: \" + lwIndexCount[0]);\n\t\t\t\tCIndexExp.runIndexTopDown(trainingDB, trainQuery, baseName, lucene_im_mem);\n\t\t\t\tCIndexExp.runIndexTopDown(trainingDB, query, baseName, lucene_im_mem);\n\t\t\t\tSystem.gc();\n\t\t\t}\n\t\t}\n\t\tAIDSLargeExp.main(args);\n\t}",
"public static void main(String[] args) throws IOException\r\n\t{\n\t\tif (args.length <= 0)\r\n\t\t{\r\n System.out.println(\"Expected corpus as input\");\r\n System.exit(1);\r\n }\r\n\r\n\t\t// Analyzer that is used to process TextField\r\n\t\tAnalyzer analyzer = new StandardAnalyzer();\r\n\r\n\t\t// ArrayList of documents in the corpus\r\n\t\tArrayList<Document> documents = new ArrayList<Document>();\r\n\r\n\t\t// Open the directory that contains the search index\r\n\t\tDirectory directory = FSDirectory.open(Paths.get(INDEX_DIRECTORY));\r\n\r\n\t\t// Set up an index writer to add process and save documents to the index\r\n\t\tIndexWriterConfig config = new IndexWriterConfig(analyzer);\r\n\t\tconfig.setOpenMode(IndexWriterConfig.OpenMode.CREATE);\r\n\t\tIndexWriter iwriter = new IndexWriter(directory, config);\r\n\r\n\r\n\t\tfor (String arg : args)\r\n\t\t{\r\n\r\n\t\t\t// Load the contents of the file\r\n\t\t\t//System.out.printf(\"Indexing \\\"%s\\\"\\n\", arg);\r\n\t\t\tString content = new String(Files.readAllBytes(Paths.get(arg)));\r\n\r\n\t\t\tString[] big = content.split(\".I\");\r\n\t\t\tfor (String a : big) {\r\n\t\t\t\tDocument doc = new Document();\r\n\t\t\t\tint count = 0;\r\n\t\t\t\tString[] small = a.split(\".A\");\r\n\t\t\t\tfor (String b : small) {\r\n\t\t\t\t\tif (count == 0) {\r\n\t\t\t\t\t\tdoc.add(new StringField(\"filename\", b, Field.Store.YES));\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tdoc.add(new TextField(\"content\", b, Field.Store.YES));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcount++;\r\n\t\t\t\t}\r\n\t\t\t\tdocuments.add(doc);\r\n\t\t\t}\r\n\t\t\tfor (Document doc : documents) {\r\n\t\t\t\tSystem.out.println(doc.get(\"filename\"));\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Write all the documents in the linked list to the search index\r\n\t\tiwriter.addDocuments(documents);\r\n\r\n\t\t// Commit everything and close\r\n\t\tiwriter.close();\r\n\t\tdirectory.close();\r\n\t}",
"public H_index() {\n\t\tsuper();\n\t}",
"@Override\n public void visit(Index node) {\n }",
"public IPage<PropertyIndex> list(int connId, HugeType type, String content,\n int pageNo, int pageSize) {\n HugeClient client = this.client(connId);\n List<IndexLabel> indexLabels = client.schema().getIndexLabels();\n\n Map<String, List<PropertyIndex>> matchedResults = new HashMap<>();\n Map<String, List<PropertyIndex>> unMatchResults = new HashMap<>();\n for (IndexLabel indexLabel : indexLabels) {\n if (!indexLabel.baseType().equals(type)) {\n continue;\n }\n String baseValue = indexLabel.baseValue();\n List<PropertyIndex> groupedIndexes;\n // Collect indexlabels that contains content\n boolean match = baseValue.contains(content);\n if (match) {\n groupedIndexes = matchedResults.computeIfAbsent(baseValue,\n k -> new ArrayList<>());\n } else {\n groupedIndexes = unMatchResults.computeIfAbsent(baseValue,\n k -> new ArrayList<>());\n }\n match = match || indexLabel.name().contains(content) ||\n indexLabel.indexFields().stream()\n .anyMatch(f -> f.contains(content));\n if (match) {\n groupedIndexes.add(convert(indexLabel));\n }\n }\n\n // Sort matched results by relevance\n if (!StringUtils.isEmpty(content)) {\n for (Map.Entry<String, List<PropertyIndex>> entry :\n matchedResults.entrySet()) {\n List<PropertyIndex> groupedIndexes = entry.getValue();\n groupedIndexes.sort(new Comparator<PropertyIndex>() {\n final int highScore = 2;\n final int lowScore = 1;\n @Override\n public int compare(PropertyIndex o1, PropertyIndex o2) {\n int o1Score = 0;\n if (o1.getName().contains(content)) {\n o1Score += highScore;\n }\n if (o1.getFields().stream()\n .anyMatch(field -> field.contains(content))) {\n o1Score += lowScore;\n }\n\n int o2Score = 0;\n if (o2.getName().contains(content)) {\n o2Score += highScore;\n }\n if (o2.getFields().stream()\n .anyMatch(field -> field.contains(content))) {\n o2Score += lowScore;\n }\n return o2Score - o1Score;\n }\n });\n }\n }\n List<PropertyIndex> all = new ArrayList<>();\n matchedResults.values().forEach(all::addAll);\n unMatchResults.values().forEach(all::addAll);\n return PageUtil.page(all, pageNo, pageSize);\n }",
"public static void setIndexing(boolean b) {\n\t\tINDEXING_MODE=b;\n\t}",
"@SuppressWarnings(\"unused\")\n public void buildIndex() throws IOException {\n indexWriter = getIndexWriter(indexDir);\n ArrayList <JSONObject> jsonArrayList = parseJSONFiles(JSONdir);\n indexTweets(jsonArrayList, indexWriter);\n indexWriter.close();\n }",
"@VTID(10)\n int getIndex();",
"public static void main(String[] args) throws IOException{\n\t\tint termIndex = 1;\n\t\t\n\t\t// startOffset holds the start offset for each term in\n\t\t// the corpus.\n\t\tlong startOffset = 0;\n\t\t\t\n\t\t// unique_terms is true if there are atleast one more\n\t\t// unique term in corpus.\n\t\tboolean unique_terms = true;\n\t\t\n\t\t\n\t\t//load the stopwords from the HDD\n\t\tString stopwords = getStopWords();\n\t\t\n\t\t// allTokenHash contains all the terms and its termid\n\t\tHashMap<String, Integer> allTermHash = new HashMap<String, Integer>();\n\t\t\n\t\t// catalogHash contains the term and its position in\n\t\t// the inverted list present in the HDD.\n\t\tHashMap<Integer, Multimap> catalogHash = new HashMap<Integer, Multimap>();\n\t\t\n\t\t// finalCatalogHash contains the catalogHash for the invertedIndexHash\n\t\t// present in the HDD.\n\t\tHashMap<Integer, String> finalCatalogHash = new HashMap<Integer, String>();\n\t\t\n\t\t// token1000Hash contains the term and Dblocks for the first 1000\n\t\tHashMap<Integer, Multimap> token1000DocHash = new HashMap<Integer, Multimap>();\n\t\t\n\t\t// documentHash contains the doclength of all the documents in the corpus\n\t\tHashMap<String, String> documentHash = new HashMap<String, String>();\t\n\t\t\n\t\t// id holds the document id corresponding to the docNumber.\n\t\tint id = 1;\n\t\t\n\t\t// until all unique terms are exhausted\n\t\t// pass through the documents and index the terms.\n\t\t//while(unique_terms){\n\t\t\t\n\t\t\tFile folder = new File(\"C:/Naveen/CCS/IR/AP89_DATA/AP_DATA/ap89_collection\");\n\t\t\t//File folder = new File(\"C:/Users/Naveen/Desktop/TestFolder\");\n\t\t\tFile[] listOfFiles = folder.listFiles();\n\t\t\t\n\t\t\t//for each file in the folder \n\t\t\tfor (File file : listOfFiles) {\n\t\t\t if (file.isFile()) {\n\t\t\t \t\n\t\t\t \tString str = file.getPath().replace(\"\\\\\",\"//\");\n\t\t\t \t\n\t\t\t \t\n\t\t\t\t\t//Document doc = new Document();\n\t\t\t //System.out.println(\"\"+str);\n\t\t\t\t\t//variables to keep parse document.\n\t\t\t\t\tint docCount = 0;\n\t\t\t\t\tint docNumber = 0;\n\t\t\t\t\tint endDoc = 0;\n\t\t\t\t\tint textCount = 0;\n\t\t\t\t\tint noText = 0;\n\t\t\t\t\tPath path = Paths.get(str);\n\t\t\t\t\t\n\t\t\t\t\t//Document id and text\n\t\t\t\t\tString docID = null;\n\t\t\t\t\tString docTEXT = null;\n\t\t\t\t\t\n\t\t\t\t\t//Stringbuffer to hold the text of each document\n\t\t\t\t\tStringBuffer text = new StringBuffer();\n\t\t\t\t\t\n\t\t\t\t\tScanner scanner = new Scanner(path);\n\t\t\t\t\twhile(scanner.hasNext()){\n\t\t\t\t\t\tString line = scanner.nextLine();\n\t\t\t\t\t\tif(line.contains(\"<DOC>\")){\n\t\t\t\t\t\t\t++docCount;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(line.contains(\"</DOC>\")){\n\t\t\t\t\t\t\t++endDoc;\n\t\t\t\t\t\t\tdocTEXT = text.toString();\n\t\t\t\t\t\t\t//docTEXT = docTEXT.replaceAll(\"[\\\\n]\",\" \");\n\t\t\t\t\t\t\tSystem.out.println(\"ID: \"+id);\n\t\t\t\t\t\t\t//System.out.println(\"TEXT: \"+docTEXT);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// text with stop words removed\n\t\t\t\t\t\t\tPattern pattern1 = Pattern.compile(\"\\\\b(?:\"+stopwords+\")\\\\b\\\\s*\", Pattern.CASE_INSENSITIVE);\n\t\t\t\t\t\t\tMatcher matcher1 = pattern1.matcher(docTEXT);\n\t\t\t\t\t\t\tdocTEXT = matcher1.replaceAll(\"\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// text with stemming\n\t\t\t\t\t\t\t//docTEXT = stemmer(docTEXT);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tint docLength = 1;\n\t\t\t\t\t\t\t// regex to build the tokens from the document text\n\t\t\t\t\t\t\tPattern pattern = Pattern.compile(\"\\\\w+(\\\\.?\\\\w+)*\");\n\t\t\t\t\t\t\tMatcher matcher = pattern.matcher(docTEXT.toLowerCase());\n\t\t\t\t\t\t\twhile (matcher.find()) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tfor (int i = 0; i < matcher.groupCount(); i++) {\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t// alltermHash contains term and term id\n\t\t\t\t\t\t\t\t\t// if term is present in the alltermHash\n\t\t\t\t\t\t\t\t\tif(allTermHash.containsKey(matcher.group(i))){\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tint termId = allTermHash.get(matcher.group(i));\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\t//if term is present in the token1000Hash\n\t\t\t\t\t\t\t\t\t\t//then update the dblock of the term.\n\t\t\t\t\t\t\t\t\t\tif(token1000DocHash.containsKey(termId)){\n\t\t\t\t\t\t\t\t\t\t\tMultimap<String, String> dBlockUpdate = token1000DocHash.get(termId);\n\t\t\t\t\t\t\t\t\t\t\t//Multimap<Integer, Integer> dBlockUpdate = token1000DocHash.get(matcher.group(i));\n\t\t\t\t\t\t\t\t\t\t\tif(dBlockUpdate.containsKey(id)){\n\t\t\t\t\t\t\t\t\t\t\t\tdBlockUpdate.put(String.valueOf(id), String.valueOf(matcher.start()));\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t\t\tdBlockUpdate.put(String.valueOf(id), String.valueOf(matcher.start()));\n\t\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\t//if term is not present in the token1000hash\n\t\t\t\t\t\t\t\t\t\t//then add the token with its dBlock\n\t\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t\tMultimap<String, String> dBlockInsert = ArrayListMultimap.create();\n\t\t\t\t\t\t\t\t\t\t\tdBlockInsert.put(String.valueOf(id), String.valueOf(matcher.start()));\n\t\t\t\t\t\t\t\t\t\t\ttoken1000DocHash.put(termId, dBlockInsert);\t\n\t\t\t\t\t\t\t\t\t\t}\t\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t// if the term is not present I will put the term into allTermHash\n\t\t\t\t\t\t\t\t\t// put corresponding value into the token1000DocHash and increment\n\t\t\t\t\t\t\t\t\t// termIndex\n\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\tallTermHash.put(matcher.group(i),termIndex);\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tMultimap<String, String> dBlockInsert = ArrayListMultimap.create();\n\t\t\t\t\t\t\t\t\t\tdBlockInsert.put(String.valueOf(id), String.valueOf(matcher.start()));\n\t\t\t\t\t\t\t\t\t\ttoken1000DocHash.put(termIndex, dBlockInsert);\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\ttermIndex++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tdocLength++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(id%1000 == 0){\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t// then dump index file to HDD\n\t\t\t\t\t\t\t\t\twriteInvertedIndex(token1000DocHash,\"token1000DocHash\");\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t// update catalog file\n\t\t\t\t\t\t\t\t\t// to populate catalogHash with the offset\n\t\t\t\t\t\t\t\t\tfor(Entry<Integer, Multimap> entry : token1000DocHash.entrySet()){\n\t\t\t\t\t\t\t\t\t\tif(catalogHash.containsKey(entry.getKey())){\n\t\t\t\t\t\t\t\t\t\t\tint len = (entry.getKey()+\":\"+entry.getValue()).length();\n\t\t\t\t\t\t\t\t\t\t\t//String offset = String.valueOf(startOffset)+\":\"+String.valueOf(len);\n\t\t\t\t\t\t\t\t\t\t\tMultimap<String, String> catUpdate = catalogHash.get(entry.getKey());\n\t\t\t\t\t\t\t\t\t\t\tcatUpdate.put(String.valueOf(startOffset), String.valueOf(len));\n\t\t\t\t\t\t\t\t\t\t\tcatalogHash.put(entry.getKey(), catUpdate);\n\t\t\t\t\t\t\t\t\t\t\tstartOffset += len+2;\n\t\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\telse{\n\t\t\t\t\t\t\t\t\t\t\tint len = (entry.getKey()+\":\"+entry.getValue()).length();\n\t\t\t\t\t\t\t\t\t\t\t//String offset = String.valueOf(startOffset)+\":\"+String.valueOf(len);\n\t\t\t\t\t\t\t\t\t\t\tMultimap<String, String> catInsert = ArrayListMultimap.create();\n\t\t\t\t\t\t\t\t\t\t\tcatInsert.put(String.valueOf(startOffset), String.valueOf(len));\n\t\t\t\t\t\t\t\t\t\t\tcatalogHash.put(entry.getKey(), catInsert);//entry.getValue());\n\t\t\t\t\t\t\t\t\t\t\tstartOffset += len+2;\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t//clear the token1000DocHash\n\t\t\t\t\t\t\t\t\ttoken1000DocHash.clear();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tdocumentHash.put(docID, \"\"+id+\":\"+docLength);\n\t\t\t\t\t\t\tid++;\n\t\t\t\t\t\t\ttext = new StringBuffer();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(line.contains(\"<DOCNO>\")){\n\t\t\t\t\t\t\t++docNumber;\n\t\t\t\t\t\t\tdocID = line.substring(8, 21);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(line.contains(\"<TEXT>\")){\n\t\t\t\t\t\t\t++textCount;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if((line.contains(\"<DOC>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"</DOC>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"<DOCNO>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"<FILEID>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"<FIRST>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"<SECOND>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"<HEAD>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"</HEAD>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"<BYLINE>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"</BYLINE>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"<UNK>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"</UNK>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"<DATELINE>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"<NOTE>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"</NOTE>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"</TEXT>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"<TEXT>\"))){\n\t\t\t\t\t\t\t ++noText;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(endDoc == docCount - 1){\n\t\t\t\t\t\t\ttext.append(line);\n\t\t\t\t\t\t\ttext.append(\" \");\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 }//end of if - to check if this is a file and parse.\n\t\t\t \n\t\t\t}//end of for loop to load each file\n\t\t\t\n\t\t//}//end of while loop \n\t\t\n\t// write catalogfile to the hdd to check.\n\t\t\t\n\t\t\t// then dump index file to HDD\n\t\t\twriteInvertedIndex(token1000DocHash,\"token1000DocHash\");\n\t\t\t\n\t\t\t// update catalog file\n\t\t\t// to populate catalogHash with the offset\n\t\t\tfor(Entry<Integer, Multimap> entry : token1000DocHash.entrySet()){\n\t\t\t\tif(catalogHash.containsKey(entry.getKey())){\n\t\t\t\t\tint len = (entry.getKey()+\":\"+entry.getValue()).length();\n\t\t\t\t\t//String offset = String.valueOf(startOffset)+\":\"+String.valueOf(len);\n\t\t\t\t\tMultimap<String, String> catUpdate = catalogHash.get(entry.getKey());\n\t\t\t\t\tcatUpdate.put(String.valueOf(startOffset), String.valueOf(len));\n\t\t\t\t\tcatalogHash.put(entry.getKey(), catUpdate);\n\t\t\t\t\tstartOffset += len+2;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tint len = (entry.getKey()+\":\"+entry.getValue()).length();\n\t\t\t\t\t//String offset = String.valueOf(startOffset)+\":\"+String.valueOf(len);\n\t\t\t\t\tMultimap<String, String> catInsert = ArrayListMultimap.create();\n\t\t\t\t\tcatInsert.put(String.valueOf(startOffset), String.valueOf(len));\n\t\t\t\t\tcatalogHash.put(entry.getKey(), catInsert);//entry.getValue());\n\t\t\t\t\tstartOffset += len+2;\n\t\t\t\t\t\n\t\t\t\t}\t\t\t\t\t\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\twriteInvertedIndex(catalogHash,\"catalogHash\");\n\t\t\tprintHashMapSI(allTermHash);\n\t\t\tprintHashMapSS(documentHash);\n\t\t\t\n\t\t\tlong InvIndstartOffset = 0;\n\t\t\t\n\t\t\t//write it to file\n \n\t\t\t//change the finalcatalogHash to the form termid:startoffset:length\n\t\t\tfor (Integer name: catalogHash.keySet()){\n\t String key = name.toString();\n\t String value = catalogHash.get(name).toString(); \n\t //System.out.println(key + \" \" + value); \n\t String finalTermIndex = genInvertedIndex(key, value);\n\t finalTermIndex = key+\":\"+finalTermIndex;\n\t int indexLength = finalTermIndex.length();\n\t \n\t \n\t PrintWriter writer = new PrintWriter(new BufferedWriter\n\t \t\t(new FileWriter(\"C:/Users/Naveen/Desktop/TestRuns/LastRun/InvertedIndex\", true)));\n\t writer.println(finalTermIndex);\n\t writer.close();\n\t \n\t //update the finalcatalogHash\n\t //Multimap<String, String> catInsert = ArrayListMultimap.create();\n\t\t\t\t//catInsert.put(String.valueOf(InvIndstartOffset), String.valueOf(indexLength));\n\t\t\t\tfinalCatalogHash.put(name, String.valueOf(InvIndstartOffset)+\":\"+String.valueOf(indexLength));//entry.getValue());\n\t\t\t\tInvIndstartOffset += indexLength+2;\n\t \n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tprintHashMapIS(finalCatalogHash);\n\t\t\t\n\t}",
"void indexReset();",
"public void setUp() throws Exception {\n Project project = new Project();\n\n IndexTask task = new IndexTask();\n FileSet fs = new FileSet();\n fs.setDir(new File(docsDir));\n task.addFileset(fs);\n task.setOverwrite(true);\n task.setDocumentHandler(docHandler);\n task.setIndex(new File(indexDir));\n task.setProject(project);\n task.execute();\n\n searcher = new IndexSearcher(indexDir);\n analyzer = new StopAnalyzer();\n }",
"@Transactional(readOnly = true)\n public Result index() {\n this.jpaApi.withTransaction(() -> {\n if(loader.dato ==0) {\n loader.excecute();\n }\n });\n\n return ok(\"application is ready:\"+loader.dato);\n }",
"@Override\r\n protected void parseDocuments()\r\n {\n\r\n }",
"Boolean checkIndexing(Long harvestResultOid) throws DigitalAssetStoreException;"
] |
[
"0.64354753",
"0.62434554",
"0.61882335",
"0.6187969",
"0.6073863",
"0.6073863",
"0.60702884",
"0.6070067",
"0.60517555",
"0.60506546",
"0.60473615",
"0.6041839",
"0.6026254",
"0.60171074",
"0.5990171",
"0.5988812",
"0.5966856",
"0.59592086",
"0.5945307",
"0.5934672",
"0.59035224",
"0.5900394",
"0.5891789",
"0.5882668",
"0.58683836",
"0.5859728",
"0.58255196",
"0.5824056",
"0.580255",
"0.5790951",
"0.57635266",
"0.57599956",
"0.57596964",
"0.57572",
"0.5737241",
"0.57282096",
"0.5720688",
"0.5709582",
"0.5704223",
"0.569832",
"0.56928957",
"0.5688692",
"0.5667956",
"0.5667075",
"0.5663704",
"0.5660835",
"0.5659531",
"0.5652155",
"0.56399167",
"0.56380546",
"0.56351006",
"0.56313926",
"0.5630032",
"0.56226605",
"0.56094825",
"0.55889606",
"0.5586606",
"0.55788094",
"0.55627656",
"0.55451196",
"0.5539801",
"0.55347127",
"0.5529575",
"0.5529426",
"0.5528445",
"0.55205727",
"0.55127853",
"0.5504411",
"0.55004406",
"0.54956335",
"0.5493664",
"0.5492705",
"0.54918194",
"0.5481199",
"0.54778177",
"0.5463162",
"0.5460172",
"0.54479367",
"0.54425216",
"0.5441941",
"0.54416037",
"0.5441494",
"0.5440895",
"0.5429295",
"0.5428792",
"0.5424498",
"0.5415059",
"0.541492",
"0.54118145",
"0.5410446",
"0.54067534",
"0.54046446",
"0.5404523",
"0.5403463",
"0.5403119",
"0.5398045",
"0.53963405",
"0.5396293",
"0.5395386",
"0.53922814",
"0.5389074"
] |
0.0
|
-1
|
Do nothing for now, MarkLogic indexes content
|
public void deleteNode (NodeId id) throws IOException
{
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"void index(IDocument document, IIndexerOutput output) throws java.io.IOException;",
"public void index(List<Entity> entities) {\n\t\t\n\t}",
"LuceneMemoryIndex createLuceneMemoryIndex();",
"@Override\n public void reindexImpl()\n {\n List<StoreRef> storeRefs = nodeService.getStores();\n int count = 0;\n for (StoreRef storeRef : storeRefs)\n {\n // prompt the FTS reindexing\n if (!ftsIndexerCalled)\n {\n ftsIndexer.requiresIndex(storeRef);\n }\n // reindex missing content\n count += reindexMissingContent(storeRef);\n // check if we have to break out\n if (isShuttingDown())\n {\n break;\n }\n }\n \n // The FTS indexer only needs to be prompted once\n ftsIndexerCalled = true;\n\n // done\n if (logger.isDebugEnabled())\n {\n logger.debug(\"Missing content indexing touched \" + count + \" content nodes\");\n }\n }",
"private Reindex() {}",
"private Reindex() {}",
"@Ignore\n @Test\n public void testCreateIndex() {\n System.out.println(\"createIndex\");\n Util.commonServiceIPs=\"127.0.0.1\";\n \n EntityManager em=Util.getEntityManagerFactory(100).createEntityManager();\n EntityManager platformEm = Util.getPlatformEntityManagerFactory().createEntityManager();\n \n Client client = ESUtil.getClient(em,platformEm,1,false);\n \n RuntimeContext.dataobjectTypes = Util.getDataobjectTypes();\n String indexName = \"test000000\";\n try {\n ESUtil.createIndex(platformEm, client, indexName, true);\n }\n catch(Exception e)\n {\n \n }\n \n\n }",
"@Test\n public void storesIndexIfNone() throws Exception {\n final String name = \"talk\";\n final Talks talks = new Talks.InDir();\n talks.create(\"\", name);\n talks.get(name).modify(\n new Directives()\n .xpath(\"/talk\").push().xpath(\"wire\").remove().pop()\n .add(\"wire\").add(\"href\").set(\"#1\").up().up()\n .add(\"request\").attr(\"id\", \"a12345\")\n .add(\"author\").set(\"yegor256\").up()\n .add(\"args\").up()\n .add(\"type\").set(\"deploy\").up()\n );\n new IndexesRequests().execute(talks);\n MatcherAssert.assertThat(\n talks.get(name).read(),\n XhtmlMatchers.hasXPaths(\"/talk/request[@index='1']\")\n );\n }",
"private void indexUpdates(UpdateQueryResult updates) {\r\n Iterator<HashMap<String, String>> i = updates.getIterator();\r\n while (i.hasNext()) {\r\n HashMap<String, String> values = i.next();\r\n \r\n \t// during index default solr fields are indexed separately\r\n \tString articleId = values.get(\"KnowledgeArticleId\");\r\n \tString title = values.get(\"Title\");\r\n \tvalues.remove(\"Title\");\r\n \tString summary = values.get(\"Summary\");\r\n \tvalues.remove(\"Summary\");\r\n \t\r\n \ttry {\r\n \t\tif (UtilityLib.notEmpty(articleId) && UtilityLib.notEmpty(title)) {\r\n \t\t\t// index sObject\r\n \t\t\t// default fields every index must have\r\n \t\t\tStringBuilder sb = new StringBuilder();\r\n \t\t\tContent c = new Content();\r\n \t\t\tc.setKey(articleId);\r\n \t\t\tsb.setLength(0);\r\n \t\t\tsb.append(summary);\r\n \t\t\tc.setData(sb.toString().getBytes());\r\n \t\t\tc.addMetadata(\"Content-Type\", \"text/html\");\r\n \t\t\tc.addMetadata(\"title\", title);\r\n \t\t\t\r\n \t\t\tLOG.debug(\"Salesforce Crawler: Indexing articleId=\"+articleId+\" title=\"+title+\" summary=\"+summary);\r\n \t\t\t\r\n \t\t\t// index articleType specific fields\r\n \t\t\tfor (Entry<String, String> entry : values.entrySet()) {\r\n \t\t\t\tc.addMetadata(entry.getKey(), entry.getValue().toString());\r\n \t\t\t\tif (!entry.getKey().equals(\"Attachment__Body__s\")) {\r\n \t\t\t\t\tLOG.debug(\"Salesforce Crawler: Indexing field key=\"+entry.getKey()+\" value=\"+entry.getValue().toString());\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t\tstate.getProcessor().process(c);\r\n \t\t}\r\n } catch (Exception e) {\r\n \tUtilityLib.errorException(LOG, e);\r\n \tstate.getStatus().incrementCounter(Counter.Failed);\r\n }\r\n }\r\n }",
"public void forceUpdateSearchIndexes() throws InterruptedException {\n\t getFullTextEntityManager().createIndexer().startAndWait();\n\t}",
"@ManagedOperation(description = \"Starts rebuilding the index\", displayName = \"Rebuild index\")\n void start();",
"public void testIndexCosts() {\n this.classHandler.applyIndexes();\n }",
"public boolean shouldIndex(IDocument document);",
"@Override\r\n\tprotected void indexDocument(PluginServiceCallbacks callbacks, JSONResponse jsonResults, HttpServletRequest request,\r\n\t\t\tIndexing indexing) throws Exception {\n\t\t\r\n\t}",
"public abstract void selectAllIndexes();",
"public void testCreIdx(){\r\n\t \r\n\t String dataDir = \"C:\\\\study\\\\Lucene\\\\Data\";\r\n\t String idxDir = \"C:\\\\study\\\\Lucene\\\\Index\";\r\n\t \r\n\t LuceneUtils.delAll(idxDir);\r\n\t \r\n\t CreateIndex ci = new CreateIndex();\r\n\t \r\n\t ci.Indexer(new File(idxDir), new File(dataDir));\r\n\t \r\n\t\t\r\n\t}",
"@Override\n public void indexPersistable() {\n searchIndexService.indexAllResourcesInCollectionSubTreeAsync(getPersistable());\n }",
"public boolean isIndexable(String content) { return true; }",
"public interface IIndexerDAO {\n\t\n\t/**\n\t * Inizializzazione dell'indicizzatore.\n\t * @param dir La cartella locale contenitore dei dati persistenti.\n\t * @throws ApsSystemException In caso di errori.\n\t */\n\tpublic void init(File dir) throws ApsSystemException;\n\t\n\t/**\n\t * Aggiunge un contenuto nel db del motore di ricerca.\n * @param entity Il contenuto da aggiungere.\n\t * @throws ApsSystemException In caso di errori.\n\t */\n\tpublic void add(IApsEntity entity) throws ApsSystemException;\n\t\n\t/**\n * Cancella un documento indicizzato.\n * @param name Il nome del campo Field da utilizzare per recupero del documento.\n * @param value La chiave mediante il quale è stato indicizzato il documento.\n * @throws ApsSystemException In caso di errori.\n */\n public void delete(String name, String value) throws ApsSystemException;\n \n public void close();\n\t\n\tpublic void setLangManager(ILangManager langManager);\n \n\tpublic static final String FIELD_PREFIX = \"entity:\"; \n public static final String CONTENT_ID_FIELD_NAME = FIELD_PREFIX + \"id\";\n public static final String CONTENT_TYPE_FIELD_NAME = FIELD_PREFIX + \"type\";\n public static final String CONTENT_GROUP_FIELD_NAME = FIELD_PREFIX + \"group\";\n public static final String CONTENT_CATEGORY_FIELD_NAME = FIELD_PREFIX + \"category\";\n\tpublic static final String CONTENT_CATEGORY_SEPARATOR = \"/\";\n\tpublic static final String ATTACHMENT_FIELD_SUFFIX = \"_attachment\";\n\t\n}",
"private void queryIndex() {\n if (predicate == TruePredicate.INSTANCE) {\n return;\n }\n\n // get indexes\n MapService mapService = nodeEngine.getService(SERVICE_NAME);\n MapServiceContext mapServiceContext = mapService.getMapServiceContext();\n Indexes indexes = mapServiceContext.getMapContainer(name).getIndexes();\n // optimize predicate\n QueryOptimizer queryOptimizer = mapServiceContext.getQueryOptimizer();\n predicate = queryOptimizer.optimize(predicate, indexes);\n\n Set<QueryableEntry> querySet = indexes.query(predicate);\n if (querySet == null) {\n return;\n }\n\n List<Data> keys = null;\n for (QueryableEntry e : querySet) {\n if (keys == null) {\n keys = new ArrayList<Data>(querySet.size());\n }\n keys.add(e.getKeyData());\n }\n\n hasIndex = true;\n keySet = keys == null ? Collections.<Data>emptySet() : InflatableSet.newBuilder(keys).build();\n }",
"public void run() {\n System.out.println(\"Running Indexing\");\n Indexer.index();\n }",
"public void init() {\n File file=new File(\"D:\\\\lucene\\\\index\");\n if(file.isDirectory())\n { //否则如果它是一个目录\n File files[] = file.listFiles(); //声明目录下所有的文件 files[];\n for(int i=0;i<files.length;i++)\n { //遍历目录下所有的文件\n files[i].delete(); //把每个文件 用这个方法进行迭代\n }\n }\n String indexPath = \"D:\\\\lucene\\\\index\";\n //String docsPath = \"D:\\\\lucene\\\\data\";\n boolean create = true;\n try\n {\n Session session=factory.openSession();\n String hql = \"from Book\";\n org.hibernate.Query query = session.createQuery(hql);\n List<Book> list=query.list();\n Directory indexDir = FSDirectory.open(Paths.get(\"D:\\\\lucene\\\\index\"));\n Analyzer luceneAnalyzer = new StandardAnalyzer(); //新建一个分词器实例 \n IndexWriterConfig config = new IndexWriterConfig(luceneAnalyzer); \n IndexWriter indexWriter = new IndexWriter(indexDir,config);\n for(int i=0;i<list.size();i++)\n {\n Document document = new Document();\n Field field1 = new StringField(\"id\",list.get(i).getBookid().toString(),Field.Store.YES); \n Field field2 = new StringField(\"bookname\",list.get(i).getBookname(),Field.Store.YES); \n Field field3 = new StringField(\"author\",list.get(i).getAuthor(),Field.Store.YES); \n Field field4 = new StringField(\"category\",list.get(i).getCategory(),Field.Store.YES); \n Field field5 = new StringField(\"price\", Double.toString(list.get(i).getPrice()),Field.Store.YES); \n document.add(field1); \n document.add(field2); \n document.add(field3); \n document.add(field4);\n document.add(field5);\n indexWriter.addDocument(document);\n }\n indexWriter.close();\n }\n catch(IOException e)\n {\n System.out.println(\"error\");\n return;\n }\n }",
"private void updateIndex() throws IOException {\n // maintain the document store (corpus) - if there is one\n if (currentMemoryIndex.containsPart(\"corpus\")) {\n // get all corpora + shove into document store\n ArrayList<DocumentReader> readers = new ArrayList<>();\n readers.add((DocumentReader) currentMemoryIndex.getIndexPart(\"corpus\"));\n for (String path : geometricParts.getAllShards().getBinPaths()) {\n String corpus = path + File.separator + \"corpus\";\n readers.add(new CorpusReader(corpus));\n }\n }\n // finally write new checkpointing data (checkpoints the disk indexes)\n Parameters checkpoint = createCheckpoint();\n this.checkpointer.saveCheckpoint(checkpoint);\n }",
"public generateIndex() {\n\n\t\tthis.analyzer = \"StandardAnalyzer\";\n\t}",
"public void finishedDirectIndexBuild()\n\t{\n\t\tif(logger.isInfoEnabled()){\n\t\t\tlogger.info(\"flushing utf block lexicon to disk after the direct index completed\");\n\t\t}\n\t\t//only write a temporary lexicon if there are any items in it\n\t\tif (TempLex.getNumberOfNodes() > 0)\n\t\t\twriteTemporaryLexicon();\n\n\t\t//merges the temporary lexicons\n\t\tif (tempLexFiles.size() > 0)\n\t\t{\n\t\t\ttry{\n\t\t\t\tmerge(tempLexFiles);\n\t\n\t\t\t\t//creates the offsets file\n\t\t\t\tfinal String lexiconFilename = \n\t\t\t\t\tindexPath + ApplicationSetup.FILE_SEPARATOR + \n\t\t\t\t\tindexPrefix + ApplicationSetup.LEXICONSUFFIX;\n\t\t\t\tLexiconInputStream lis = getLexInputStream(lexiconFilename);\n\t\t\t\tcreateLexiconIndex(\n\t\t\t\t\tlis,\n\t\t\t\t\tlis.numberOfEntries(),\n\t\t\t\t\t/* after inverted index is built, the lexicon will be transformed into a\n\t\t\t\t\t * normal lexicon, without block frequency */\n\t\t\t\t\tUTFLexicon.lexiconEntryLength\n\t\t\t\t\t); \n\t\t\t\tTermCount = lis.numberOfEntries();\n\t\t\t\tif (index != null)\n\t\t\t\t{\n\t\t\t\t\tindex.addIndexStructure(\"lexicon\", \"uk.ac.gla.terrier.structures.UTFBlockLexicon\");\n\t\t\t\t\tindex.addIndexStructureInputStream(\"lexicon\", \"uk.ac.gla.terrier.structures.UTFBlockLexiconInputStream\");\n\t\t\t\t\tindex.setIndexProperty(\"num.Terms\", \"\"+lis.numberOfEntries());\n\t\t\t\t\tindex.setIndexProperty(\"num.Pointers\", \"\"+lis.getNumberOfPointersRead());\n\t\t\t\t}\n\t\t\t} catch(IOException ioe){\n\t\t\t\tlogger.error(\"Indexing failed to write a lexicon index file to disk\", ioe);\n\t\t\t}\t\n\t\t}\n\t\telse\n\t\t\tlogger.warn(\"No temporary lexicons to merge, skipping\");\n\t\t\n\t}",
"private static void createIndex() {\n XML_Shell workFile = new XML_Shell();\n String messageFromServer = ClientService.getLastMessageFromServer();\n\n try {\n XML_Manager.stringToDom(messageFromServer, workFile);\n } catch (SAXException | ParserConfigurationException | IOException | TransformerException e) {\n e.printStackTrace();\n }\n\n }",
"@Override\n public void postInserts() \n {\n for(IndexObject i: myIndex.values())\n {\n i.tfidf(documentData);\n }\n }",
"public void controlIndex(String path)\n { \t \n \t JSONParser parser = new JSONParser();\n \t \n \t try\n \t {\n \t\t JSONArray array = (JSONArray)parser.parse(new FileReader(path));\n \t\t \n \t\t JSONObject jsonObject = new JSONObject();\n \t\t JSONObject metaObj;\n \t\t \n \t\t for(Object obj : array)\n \t\t {\n \t\t\t jsonObject = (JSONObject) obj;\n \t\t\t String p = jsonObject.get(\"p\").toString().replaceAll(\"\\\\\\\\\", \"/\");\n \t\t\t metaObj = (JSONObject) jsonObject.get(\"metadata\");\n \t\t\t \n \t\t\t String title = \"\";\n \t\t\t String description = \"\"; \n \t\t\t if(metaObj.get(\"title\")!=null)\n \t\t\t {\n \t\t\t\t title = metaObj.get(\"title\").toString();\n \t\t\t }\n \t\t\t if(metaObj.get(\"description\")!=null)\n \t\t\t {\n \t\t\t\t description = metaObj.get(\"description\").toString();\n \t\t\t }\n \t\t\t \n \t\t\t String id = p.substring(p.lastIndexOf(\"/\")+1,p.lastIndexOf(\".\"));\n \t\t\t \n \t\t\t performIndex(p,id,title,description);\n \t\t\t performMetaIndex(jsonObject.get(\"metadata\"),id);\n \t\t }\n \t\t fileWriter();\n \t\t }\n \t catch(Exception e)\n \t { \t\n \t\t e.printStackTrace();\n \t }\n }",
"public void createIndex() throws IOException {\n\t\tindexWriter.commit();\n\t\ttaxoWriter.commit();\n\n\t\t// categories\n\t\tfor (Article.Facets f : Article.Facets.values()) {\n\t\t\ttaxoWriter.addCategory(new CategoryPath(f.toString()));\n\t\t}\n\t\ttaxoWriter.commit();\n\n\t\tfinal Iterable<Article> articles = articleRepository.findAll();\n\t\tint c = 0;\n\t\tfor (Article article : articles) {\n\t\t\taddArticle(indexWriter, taxoWriter, article);\n\t\t\tc++;\n\t\t}\n\t\t// commit\n\t\ttaxoWriter.commit();\n\t\tindexWriter.commit();\n\n\t\ttaxoWriter.close();\n\t\tindexWriter.close();\n\n\t\ttaxoDirectory.close();\n\t\tindexDirectory.close();\n\t\tLOGGER.debug(\"{} articles indexed\", c);\n\t}",
"void initiateIndexing(HarvestResultDTO harvestResult) throws DigitalAssetStoreException;",
"public void start() throws Exception {\n\n createIndex();\n }",
"public void IndexADocument(String docno, String content) throws IOException {\n\t\t\n\t\tdocIdx.append(docno + \"\\n\");\n\t\n\t\tString[] tokens = content.split(\" \");\n\t\t\n\t\tfor(String word: tokens) {\n\t\t\tif(token.containsKey(word)) {\t\t\n\t\t\t\tLinkedHashMap<Integer, Integer> cur = token.get(word);\n\t\t\t\tif(cur.containsKey(docid))\n\t\t\t\t\tcur.put(docid, cur.get(docid)+1);\n\t\t\t\telse \n\t\t\t\t\tcur.put(docid, 1);\n\t\t\t} else {\n\t\t\t\tLinkedHashMap<Integer, Integer> cur = new LinkedHashMap<>();\n\t\t\t\tcur.put(docid, 1);\n\t\t\t\ttoken.put(word, cur);\n\t\t\t}\t\n\t\t}\n\t\t\n\t\t++docid;\n\t\t\n\t\tif(docid % BLOCK == 0) \n\t\t\tsaveBlock();\t\n\t}",
"public boolean indexAllowed() {\r\n return true;\r\n }",
"public void indexCreate()\n {\n try{\n Directory dir = FSDirectory.open(Paths.get(\"indice/\"));\n Analyzer analyzer = new StandardAnalyzer();\n IndexWriterConfig iwc = new IndexWriterConfig(analyzer);\n iwc.setOpenMode(OpenMode.CREATE);\n IndexWriter writer = new IndexWriter(dir,iwc);\n MongoConnection mongo = MongoConnection.getMongo();\n mongo.OpenMongoClient();\n DBCursor cursor = mongo.getTweets();\n Document doc = null;\n\n while (cursor.hasNext()) {\n DBObject cur = cursor.next();\n if (cur.get(\"retweet\").toString().equals(\"false\")) {\n doc = new Document();\n doc.add(new StringField(\"id\", cur.get(\"_id\").toString(), Field.Store.YES));\n doc.add(new TextField(\"text\", cur.get(\"text\").toString(), Field.Store.YES));\n doc.add(new StringField(\"analysis\", cur.get(\"analysis\").toString(), Field.Store.YES));\n //doc.add(new StringField(\"finalCountry\",cur.get(\"finalCountry\").toString(),Field.Store.YES));\n doc.add(new StringField(\"userScreenName\", cur.get(\"userScreenName\").toString(), Field.Store.YES));\n doc.add(new StringField(\"userFollowersCount\", cur.get(\"userFollowersCount\").toString(), Field.Store.YES));\n doc.add(new StringField(\"favoriteCount\", cur.get(\"favoriteCount\").toString(), Field.Store.YES));\n\n if (writer.getConfig().getOpenMode() == OpenMode.CREATE) {\n System.out.println(\"Indexando el tweet: \" + doc.get(\"text\") + \"\\n\");\n writer.addDocument(doc);\n System.out.println(doc);\n } else {\n System.out.println(\"Actualizando el tweet: \" + doc.get(\"text\") + \"\\n\");\n writer.updateDocument(new Term(\"text\" + cur.get(\"text\")), doc);\n System.out.println(doc);\n }\n }\n }\n cursor.close();\n writer.close();\n }\n catch(IOException ioe){\n System.out.println(\" Error en \"+ ioe.getClass() + \"\\n mensaje: \" + ioe.getMessage());\n }\n }",
"void clearAllIndexes();",
"public long index() {\n return manager.compactIndex();\n }",
"public String SearchContent()\n\t{\n\t\tSystem.out.println(\"Content:\" + Content);\n\t\tluc = new Lucene_fuction();\n\t\tHttpServletRequest request = ServletActionContext.getRequest();\n\t\tServletContext servletContext = ServletActionContext.getServletContext();\n\t\trequest.getSession();\n\t\tHttpServletResponse response = ServletActionContext.getResponse();\n\t\t// if the tag is empty\n\t\t\n\t\t\tArrayList<Picture> PicList = new ArrayList<>();\n\t\t\tPicList = luc.queryIndex_Content(Content);\n\t\t\trequest.setAttribute(\"PictureList\", PicList);\n\t\t\treturn \"Content_Result\";\n\t}",
"@Override\n public void setupIndex() {\n List lst = DBClient.getList(\"SELECT a FROM AppMenu a WHERE a.moduleName='MyBranchMemberExt'\");\n if (lst!=null && !lst.isEmpty()) {\n return;\n }\n AppMenu.createAppMenuObj(\"MyBranchMemberExt\", \"Main\", \"Branch Member\", 110).save();\n AppMenu.createAppMenuObj(\"MyCenterMemberExt\", \"Main\", \"Center Member\", 120).save();\n AppMenu.createAppMenuObj(\"SearchAllMembersOnlyExt\", \"Main\", \"Search Member\", 130).save();\n AppMenu.createAppMenuObj(\"ReferenceForm\", \"Reference\", \"Reference\", 200).save();\n runUniqueIndex(8, \"firstName\", \"lastName\");\n }",
"@Override\n protected void beforeSearch() {\n index = 0;\n numberOfIterations = 0;\n pageCounter = 0;\n }",
"protected void index()\r\n\t{\n\t}",
"public void search(Indexer indexer, CityIndexer cityIndexer, Ranker ranker, String query, boolean withSemantic, ArrayList<String> chosenCities, ObservableList<String> citiesByTag, boolean withStemming, String saveInPath, String queryId, String queryDescription) {\n String[] originalQueryTerms = query.split(\" \");\n String originQuery = query;\n docsResults = new HashMap<>();\n parser = new Parse(withStemming, saveInPath, saveInPath);\n HashSet<String> docsOfChosenCities = new HashSet<>();\n query = \"\" + query + queryDescription;\n HashMap<String, Integer> queryTerms = parser.parseQuery(query);\n HashMap<String, ArrayList<Integer>> dictionary = indexer.getDictionary();\n if (!withStemming){\n setDocsInfo(saveInPath + \"\\\\docsInformation.txt\");\n }\n else{\n setDocsInfo(saveInPath + \"\\\\docsInformation_stemming.txt\");\n }\n\n\n //add semantic words of each term in query to 'queryTerms'\n if(withSemantic) {\n HashMap<String,ArrayList<String>> semanticWords = ws.connectToApi(originQuery);\n }\n\n //give an ID to query if it's a regular query (not queries file)\n if(queryId.equals(\"\")){\n queryId = \"\" + Searcher.queryID;\n Searcher.queryID++;\n }\n\n String postingDir;\n if (!withStemming) {\n postingDir = \"\\\\indexResults\\\\postingFiles\";\n } else {\n postingDir = \"\\\\indexResults\\\\postingFiles_Stemming\";\n }\n int pointer = 0;\n\n //find docs that contain the terms in the query in their text\n HashMap<String, Integer> queryTermsIgnoreCase = new HashMap<>();\n for (String term : queryTerms.keySet()) {\n String originTerm = term;\n if (!dictionary.containsKey(term.toUpperCase()) && !dictionary.containsKey(term.toLowerCase())) {\n continue;\n }\n if(dictionary.containsKey(term.toLowerCase())){\n term = term.toLowerCase();\n }\n else {\n term = term.toUpperCase();\n }\n queryTermsIgnoreCase.put(term,queryTerms.get(originTerm));\n pointer = dictionary.get(term).get(2);\n String chunk = (\"\" + term.charAt(0)).toUpperCase();\n\n //get the relevant line from posting file\n BufferedReader br = null;\n try {\n br = new BufferedReader(new FileReader(new File(saveInPath + postingDir + \"\\\\posting_\" + chunk + \".txt\")));\n String line = \"\";\n int i = 1;\n while ((line = (br.readLine())) != null) {\n if (i == pointer) {\n break;\n }\n i++;\n }\n br.close();\n\n //get docs from posting line and add them to the data structure 'docsResults'\n if(line != null) {\n findDocsFromLine(line, term);\n }\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n //find docs that contain the chosen cities in their text\n for (String cityTerm : chosenCities) {\n if (!dictionary.containsKey(cityTerm) && !dictionary.containsKey(cityTerm.toLowerCase())) {\n continue;\n }\n if(dictionary.containsKey(cityTerm.toLowerCase())){\n cityTerm = cityTerm.toLowerCase();\n }\n pointer = dictionary.get(cityTerm).get(2);\n // char chunk = indexer.classifyToPosting(term).charAt(0);\n String chunk = (\"\" + cityTerm.charAt(0)).toUpperCase();\n\n //get the relevant line from posting file\n BufferedReader br = null;\n try {\n br = new BufferedReader(new FileReader(new File(saveInPath + postingDir + \"\\\\posting_\" + chunk + \".txt\")));\n String line = \"\";\n int i = 1;\n while ((line = (br.readLine())) != null) {\n if (i == pointer) {\n break;\n }\n i++;\n }\n br.close();\n\n //get docs from posting line and add them to the data structure 'docsOfChosenCities'\n String docs = line.substring(0, line.indexOf(\"[\") - 1); //get 'docsListStr'\n String[] docsArr = docs.split(\";\");\n for (String docInfo : docsArr) {\n String doc = docInfo.substring(0, docInfo.indexOf(\": \"));\n while(doc.charAt(0) == ' '){\n doc = doc.substring(1);\n }\n docsOfChosenCities.add(doc);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n //find docs that contain the chosen cities in their city tag\n if(!chosenCities.isEmpty()){\n for (String cityDicRec: chosenCities) {\n //get pointer to posting from cityDictionary\n try {\n pointer = cityIndexer.getCitiesDictionary().get(cityDicRec);\n } catch (NumberFormatException e) {\n e.printStackTrace();\n }\n //get the relevant line from posting file\n BufferedReader br = null;\n try {\n br = new BufferedReader(new FileReader(new File(saveInPath + \"\\\\cityIndexResults\" + \"\\\\posting_city\" + \".txt\")));\n String line = \"\";\n int i = 1;\n while ((line = (br.readLine())) != null) {\n if (i == pointer) {\n break;\n }\n i++;\n }\n br.close();\n\n //get docs from posting line and add them to the data structure 'docsOfChosenCities'\n String docs = line.substring(line.indexOf(\"[\") + 1, line.indexOf(\"]\")); //get 'docsListStr'\n String[] docsArr = docs.split(\"; \");\n for (String doc : docsArr) {\n docsOfChosenCities.add(doc);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n\n\n ranker.rank(docsResults, docsOfChosenCities, queryTermsIgnoreCase, dictionary, docsInfo,entities, queryId);\n }",
"private void indexDocument(File f) throws IOException {\n\n\t\tHashMap<String, StringBuilder> fm;\n\t\tif (!f.getName().equals(\".DS_Store\")) {\n\n\t\t\tBufferedReader br = new BufferedReader(new FileReader(f));\n\n\t\t\tString s = \"\";\n\t\t\twhile ((s = br.readLine()) != null) {\n\n\t\t\t\tString temp = \"\";\n\n\t\t\t\tif (s.contains(\"<DOC>\")) {\n\n\t\t\t\t\ts = br.readLine();\n\n\t\t\t\t\twhile (!s.contains(\"</DOC>\")) {\n\n\t\t\t\t\t\ttemp += s + \" \";\n\n\t\t\t\t\t\ts = br.readLine();\n\t\t\t\t\t}\n\n\t\t\t\t\tfm = parseTags(temp);\n\t\t\t\t\tindexDocumentHelper(fm);\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tbr.close();\n\t\t}\n\n\t}",
"public static void main(String[] args) {\n File plasmadb = new File(\"D:\\\\dev\\\\proxy\\\\DATA\\\\PLASMADB\");\r\n File indexdb = new File(\"D:\\\\dev\\\\proxy\\\\DATA\\\\INDEX\");\r\n try {\r\n plasmaWordIndex index = new plasmaWordIndex(plasmadb, indexdb, true, 555, 1000, new serverLog(\"TESTAPP\"), false);\r\n Iterator containerIter = index.wordContainers(\"5A8yhZMh_Kmv\", plasmaWordIndex.RL_WORDFILES, true);\r\n while (containerIter.hasNext()) {\r\n System.out.println(\"File: \" + (indexContainer) containerIter.next());\r\n }\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n \r\n }",
"public interface Indexed {\n\n /**\n * index keyword and resource\n * @param resourceId keyword KAD id\n * @param entry published entry with keyword information\n * @param lastActivityTime current time from external system\n * @return percent of taken place in storage\n */\n int addKeyword(final KadId resourceId, final KadSearchEntry entry, long lastActivityTime);\n\n /**\n *\n * @param resourceId file KAD id\n * @param entry published entry with source information\n * @return true if source was indexed\n */\n int addSource(final KadId resourceId, final KadSearchEntry entry, long lastActivityTime);\n}",
"public interface ILuceneIndexDAO extends IStatefulIndexerSession {\n // ===================================================================\n // The domain of indexing creates a separation between\n // readers and writers. In lucene, these are searchers\n // and writers. This DAO creates the more familiar DAO-ish interface\n // for developers to use and attempts to hide the details of\n // the searcher and write.\n // Calls are stateless meaning calling a find after a save does\n // not guarantee data will be reflected for the instance of the DAO\n // ===================================================================\n\n /**\n * Updates a document by first deleting the document(s) containing a term and then adding the new document. A Term is created by termFieldName, termFieldValue.\n *\n * @param termFieldName - Field name of the index.\n * @param termFieldValue - Field value of the index.\n * @param document - Lucene document to be updated.\n * @return - True for successful addition.\n */\n boolean saveDocument(String termFieldName, String termFieldValue, Document document);\n\n /**\n * Generates a BooleanQuery from the given fields Map and uses it to delete the documents matching in the IndexWriter.\n *\n * @param fields - A Map data structure containing a field(Key) and text(value) pair.\n * @return - True for successful deletion.\n */\n boolean deleteDocuments(Map<String, String> fields);\n\n /**\n * Find the documents in the IndexSearcher matching the Terms generated from fields.\n *\n * @param fields - A Map data structure contains the field(Key) and text(value).\n * @return - Collection of Documents obtained from the search.\n */\n Set<Document> findDocuments(Map<String, String> fields);\n\n /**\n * Find the documents in the IndexSearcher matching the Terms generated from fields. Offset is the starting position for the search and numberOfResults\n * is the length from offset position.\n *\n * @param fields - A Map data structure containing a field(Key) and text(value) pair.\n * @param offset - Starting position of the search.\n * @param numberOfResults - Number of documents to be searched from an offset position.\n * @return - Collection of Documents obtained from the search.\n */\n Set<Document> findDocuments(Map<String, String> fields, int offset, int numberOfResults);\n\n /**\n * Return the count of the documents present in the IndexSearcher.\n *\n * @return - Integer representing the count of documents.\n */\n int getDocumentCount();\n\n}",
"protected static Boolean newCorpus() throws ClassNotFoundException, InstantiationException, IllegalAccessException, IOException {\n String[] subqueries = query.split(\"\\\\s+\"); //split around white space\n if (subqueries[0].equals(\"index\") && subqueries.length > 1) {\n JOptionPane.showOptionDialog(GUI.indexingCorpusMessage, \"Indexing corpus please wait\", \"Indexing Corpus\", javax.swing.JOptionPane.DEFAULT_OPTION, javax.swing.JOptionPane.INFORMATION_MESSAGE, null, null, null);\n GUI.JListModel.clear();\n GUI.ResultsLabel.setText(\"Indexing\");\n startIndexing(Paths.get(subqueries[1]), 0);\n GUI.SearchBarTextField.setText(\"Enter a new search or 'q' to exit\");\n\n return true;\n }\n return false;\n }",
"indexSet createindexSet();",
"private RequestResponse handleIndexRequest(Request request, Response response) throws ServiceException {\n response.type(\"application/json\");\n\n String core = request.params(\":core\");\n if (StringUtils.isEmpty(core)) {\n throw new ServiceException(\"Failed to provide an index core for the document\");\n }\n\n ContentDocument contentDocument = new RequestToContentDocument().convert(request);\n return this.searchService.index(core, contentDocument);\n }",
"public void searchTest() {\n\t\ttry {\n\t\t\tString keyword = \"操作道具\";\n\t\t\t// 使用IKQueryParser查询分析器构造Query对象\n\t\t\tQuery query = IKQueryParser.parse(LogsEntry.INDEX_FILED_CONTENT, keyword);\n\n\t\t\t// 搜索相似度最高的5条记录\n\t\t\tint querySize = 5;\n\t\t\tTopDocs topDocs = isearcher.search(query, null, querySize, sort);\n\t\t\tlogger.info(\"命中:{}\", topDocs.totalHits);\n\t\t\t// 输出结果\n\t\t\tScoreDoc[] scoreDocs = topDocs.scoreDocs;\n\t\t\tfor (int i = 0; i < scoreDocs.length; i++) {\n\t\t\t\tDocument targetDoc = isearcher.doc(scoreDocs[i].doc);\n\t\t\t\tlogger.info(\"内容:{}\", targetDoc.toString());\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tlogger.error(e.getMessage(), e);\n\t\t}\n\t}",
"public LexIndexer(Content content){\n this.content = content;\n index = line = column = 0;\n pos = new CharPosition();\n linecount = content.getColumnCount(0);\n }",
"@Async\n public void indexAllPublicBlogEntries() {\n try {\n // so as to not use all the ram, i loop through a page at a time and save the blog\n // entries in a batch of 100 at a time to ES\n // since i can't use java 8 on this project, i don't have streams.\n\n final Security sec = securityDao.findByName(\"public\");\n Pageable pageable = PageRequest.of(0, 100);\n\n Page<Entry> entries = entryRepository.findBySecurityOrderByDateDesc(sec, pageable);\n for (int i = 0; i < entries.getTotalPages(); i++) {\n final ArrayList<BlogEntry> items = new ArrayList<>();\n\n for (final Entry entry : entries) {\n items.add(convert(entry));\n }\n\n blogEntryRepository.saveAll(items);\n\n pageable = PageRequest.of(i + 1, 100);\n entries = entryRepository.findBySecurityOrderByDateDesc(sec, pageable);\n }\n } catch (final Exception e) {\n log.error(e.getMessage(), e);\n }\n }",
"private static Positional_inverted_index posindexCorpus(DocumentCorpus corpus) throws ClassNotFoundException, InstantiationException, IllegalAccessException, FileNotFoundException, IOException {\n\n NewTokenProcessor processor = new NewTokenProcessor();\n Iterable<Document> docs = corpus.getDocuments(); //call registerFileDocumentFactory first?\n\n List<Double> Doc_length = new ArrayList<>();\n Positional_inverted_index index = new Positional_inverted_index();\n\n double token_count = 0;\n\n // Iterate through the documents, and:\n for (Document d : docs) {\n //File f = new File(path + \"\\\\\" + d.getTitle());\n File f = new File(path + \"\\\\\" + d.getFileName().toString());\n double Filesize = f.length();\n //edited by bhavya\n double doc_weight = 0; //first entry in docweights.bin\n double doc_tokens = 0;\n double doc_length = 0;\n HashMap<String, Integer> tftd = new HashMap<>();\n // Tokenize the document's content by constructing an EnglishTokenStream around the document's content.\n Reader reader = d.getContent();\n EnglishTokenStream stream = new EnglishTokenStream(reader); //can access tokens through this stream\n N++;\n // Iterate through the tokens in the document, processing them using a BasicTokenProcessor,\n //\t\tand adding them to the HashSet vocabulary.\n Iterable<String> tokens = stream.getTokens();\n int i = 0;\n\n for (String token : tokens) {\n\n //adding token in index\n List<String> word = new ArrayList<String>();\n word = processor.processToken(token);\n //System.out.println(word.get(0));\n if (word.get(0).matches(\"\")) {\n continue;\n } else {\n\n index.addTerm(word.get(0), i, d.getId());\n\n }\n i = i + 1;\n\n //we check if token already exists in hashmap or not. \n //if it exists, increase its freq by 1 else make a new entry.\n if (tftd.containsKey(word.get(0))) {\n doc_tokens++;\n int count = tftd.get(word.get(0));\n tftd.replace(word.get(0), count + 1);\n } else {\n doc_tokens++;\n// token_count++; //gives total number of tokens.\n tftd.put(word.get(0), 1);\n }\n\n }\n double length = 0;\n double wdt = 0;\n\n double total_tftd = 0;\n for (Map.Entry<String, Integer> entry : tftd.entrySet()) {\n\n wdt = 1 + log(entry.getValue());\n\n length = length + pow(wdt, 2);\n total_tftd = total_tftd + entry.getValue();\n }\n token_count = token_count + doc_tokens;\n doc_weight = pow(length, 0.5);\n double avg_tftd = total_tftd / (double) tftd.size();\n\n Doc_length.add(doc_weight);\n Doc_length.add(avg_tftd);\n Doc_length.add(doc_tokens);\n Doc_length.add(Filesize);\n }\n Doc_length.add(token_count / N);\n\n DiskIndexWriter d = new DiskIndexWriter();\n d.write_doc(path, Doc_length);\n\n return index;\n }",
"@Ignore \n @Test\n public void testIndexDocument() {\n System.out.println(\"IndexDocument\");\n Client client = null;\n String indexName = \"\";\n String indexTypeName = \"\";\n String docId = \"\";\n Map<String, Object> jsonMap = null;\n long expResult = 0L;\n //long result = ESUtil.indexDocument(client, indexName, indexTypeName, docId, jsonMap);\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 notStoreIndexWithoutRequest() throws Exception {\n final String name = \"talk\";\n final Talks talks = new Talks.InDir();\n talks.create(\"\", name);\n talks.get(name).modify(\n new Directives()\n .xpath(\"/talk\")\n .push().xpath(\"wire\").remove().pop()\n .add(\"wire\").add(\"href\").set(\"#1\").up()\n );\n new IndexesRequests().execute(talks);\n MatcherAssert.assertThat(\n talks.get(name).read(),\n Matchers.not(\n XhtmlMatchers.hasXPaths(\"/talk/request\")\n )\n );\n }",
"@Test\n public void retrievesIndexFromLog() throws Exception {\n final String name = \"talk\";\n final Talks talks = new Talks.InDir();\n talks.create(\"\", name);\n talks.get(name).modify(\n new Directives().xpath(\"/talk\")\n .push().xpath(\"wire\").remove().pop()\n .add(\"wire\").add(\"href\").set(\"#2\").up().up()\n .add(\"archive\")\n .add(\"log\").attr(\"id\", \"1\").attr(\"title\", \"title1\")\n .attr(\"index\", \"1\").up()\n .add(\"log\").attr(\"id\", \"2\").attr(\"title\", \"title2\")\n .attr(\"index\", \"2\").up().up()\n .add(\"request\").attr(\"id\", \"a12345\")\n .add(\"author\").set(\"yegor256\").up()\n .add(\"args\").up()\n .add(\"type\").set(\"deploy\").up()\n );\n new IndexesRequests().execute(talks);\n MatcherAssert.assertThat(\n talks.get(name).read(),\n XhtmlMatchers.hasXPaths(\"/talk/request[@index='3']\")\n );\n }",
"public static void main(String[] args) throws Exception {\n\t\tqueryIndexPattern();\n\t\t\n\t}",
"@Test public void doesntIndexCoreOrNonStringAnnotations() throws IOException {\n accept(storage.spanConsumer(), TestObjects.CLIENT_SPAN);\n\n assertThat(\n storage.session()\n .execute(\"SELECT blobastext(annotation) from annotations_index\")\n .all())\n .extracting(r -> r.getString(0))\n .containsExactlyInAnyOrder(\n \"frontend:http.path\",\n \"frontend:http.path:/api\",\n \"frontend:clnt/finagle.version:6.45.0\",\n \"frontend:foo\",\n \"frontend:clnt/finagle.version\");\n }",
"@Override\n\tpublic void indexObject(ModelKey obj) throws ASException {\n\t\t\n\t}",
"public TranscriptionIndexer() throws SQLException, CorruptIndexException, IOException\r\n {\r\n\r\n\r\n IndexWriter writer = null;\r\n Analyzer analyser;\r\n Directory directory;\r\n /**@TODO parameterized location*/\r\n String dest = \"/usr/indexTranscriptions\";\r\n\r\n directory = FSDirectory.getDirectory(dest, true);\r\n analyser = new StandardAnalyzer();\r\n writer = new IndexWriter(directory, analyser, true);\r\n PreparedStatement stmt=null;\r\n Connection j = null;\r\n try {\r\n j=DatabaseWrapper.getConnection();\r\n String query=\"select * from transcription where text!='' and creator>0 order by folio, line\";\r\n stmt=j.prepareStatement(query);\r\n ResultSet rs=stmt.executeQuery();\r\n while(rs.next())\r\n {\r\n int folio=rs.getInt(\"folio\");\r\n int line=rs.getInt(\"line\");\r\n int UID=rs.getInt(\"creator\");\r\n int id=rs.getInt(\"id\");\r\n Transcription t=new Transcription(id);\r\n Document doc = new Document();\r\n Field field;\r\n field = new Field(\"text\", t.getText(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"comment\", t.getComment(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"creator\", \"\" + t.UID, Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"security\", \"\" + \"private\", Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"line\", \"\" + t.getLine(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"page\", \"\" + t.getFolio(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"id\", \"\" + t.getLineID(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"manuscript\", \"\" + new Manuscript(t.getFolio()).getID(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n field = new Field(\"projectID\", \"\" + t.getProjectID(), Field.Store.YES, Field.Index.ANALYZED);\r\n doc.add(field);\r\n writer.addDocument(doc);\r\n }\r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n if(writer!=null)\r\n {\r\n writer.commit();\r\n \twriter.close();\r\n return;\r\n }\r\n ex.printStackTrace();\r\n }\r\n finally{\r\n DatabaseWrapper.closeDBConnection(j);\r\n DatabaseWrapper.closePreparedStatement(stmt);\r\n }\r\n\r\n writer.commit();\r\n \twriter.close();\r\n}",
"public void IndexADocument(String docno, String content) throws IOException {\n\t\tdocid++;\n\t\tdoc2docid.put(docno, docid);\n\t\tdocid2doc.put(docid, docno);\n\n\t\t// Insert every term in this doc into docid2map\n\t\tString[] terms = content.trim().split(\" \");\n\t\tMap<Integer, Integer> docTerm = new HashMap<>();\n\t\tint thisTermid;\n\t\tfor(String term: terms){\n\t\t\t// get termid\n\t\t\tif(term2termid.get(term)!=null) thisTermid = term2termid.get(term);\n\t\t\telse{\n\t\t\t\tthisTermid = ++termid;\n\t\t\t\tterm2termid.put(term, thisTermid);\n\t\t\t}\n\t\t\tdocTerm.put(thisTermid, docTerm.getOrDefault(thisTermid, 0)+1);\n\t\t\t// Merge this term's information into termid2map\n\t\t\tMap<Integer, Integer> temp = termid2map.getOrDefault(thisTermid, new HashMap());\n\t\t\ttemp.put(docid, temp.getOrDefault(docid, 0)+1);\n\t\t\ttermid2map.put(thisTermid, temp);\n\t\t\ttermid2fre.put(thisTermid, termid2fre.getOrDefault(thisTermid, 0)+1);\n\t\t}\n\t\tdocid2map.put(docid, docTerm);\n\n//\t\t// Merge all the terms' information into termid2map\n//\t\tfor(Long tid: docTerm.keySet()){\n//\t\t\tMap<Long, Long> temp = termid2map.getOrDefault(tid, new HashMap());\n//\t\t\ttemp.put(docid,docTerm.get(tid));\n//\t\t\ttermid2map.put(tid, temp);\n//\t\t\t// update this term's frequency\n//\t\t\ttermid2fre.put(tid, termid2fre.getOrDefault(tid,0L)+docTerm.get(tid));\n//\t\t}\n\n\t\t// When termid2map and docid2map is big enough, put it into disk\n\t\tif(docid%blockSize==0){\n\t\t\tWritePostingFile();\n\t\t\tWriteDocFile();\n\t\t}\n\t}",
"@Test\n public void testProcessAll() throws TikaException, SAXException, IOException, Exception {\n PaperIndexer indexer = new PaperIndexer(BaseDirInfo.getPath(\"test.properties\"));\n indexer.processAll();\n\n Properties prop = indexer.getProperties();\n String paraIndexPath = prop.getProperty(\"para.index\");\n prop.setProperty(\"para.index\", paraIndexPath + \"/1\");\n\n final String[] indexes = { \"index\", \"para.index\", \"para.index.all\" };\n\n // Test global index and para index\n for (String indexPath : indexes) {\n File indexDir = new File(BaseDirInfo.getPath(indexer.getProperties().getProperty(indexPath)));\n try (Directory dir = FSDirectory.open(indexDir.toPath());\n IndexReader reader = DirectoryReader.open(dir)) {\n assertNotNull(reader); // reader must not be null\n\n int nDocs = reader.numDocs();\n assertNotEquals(nDocs, 0); // Number of docs must not be zero\n }\n }\n\n // Since we put one document in the test folder, we should have one folder in the para index\n prop.setProperty(\"para.index\", paraIndexPath);\n File[] dirs = new File(prop.getProperty(\"para.index\")).listFiles();\n assertEquals(dirs.length, 1);\n\n // clean folders\n indexer.removeIndexDirs();\n }",
"@Override\n\tpublic String indexData(String db, String filename,\n\t\t\tWeightComputer weightComputer, TextTransformer trans)\n\t\t\tthrows IOException {\n\t\tString cascades_collection=MongoDB.mongoDB.createCollection(db,\"cascades\",\" cascades from \"+filename+\" selon \"+this.toString()+\" avec \"+weightComputer+\" transform par \"+trans);\n\t\t\n\t\t\n\t\t\n\t\tSystem.out.println(\"Indexation \"+filename);\n\t\t//ArrayListStruct<User> ret=new ArrayListStruct<User>();\n\t\tHashMap<String,User> users=new HashMap<String,User>();\n\t\tHashSet<Post> posts=new HashSet<Post>();\n\t\tHashSet<Cascade> cascades=new HashSet<Cascade>();\n\t\t\n\t\tStemmer stemmer=new Stemmer();\n\t\tBufferedReader lecteur=new BufferedReader(new FileReader(filename));\n\t\tBufferedReader lecteurW=new BufferedReader(new FileReader(this.cascadesWeightsFile));\n\t\ttry{\n\t\t\tString ligne;\n\t\t\tint nbl=0;\n\t\t\twhile((ligne=lecteur.readLine())!=null){\n\t\t\t\tnbl++;\n\t\t\t}\n\t\t\tSystem.out.println(nbl+\" lignes\");\n\t\t\tlecteur.close();\n\t\t\tlecteur=new BufferedReader(new FileReader(filename));\n\t\t\tint nb=0;\n\t\t\tint nbc=0;\n\t\t\tint nbinvalides=0;\n\t\t\tlecteur.readLine();\n\t\t\tlecteurW.readLine();\n\t\t\twhile(((ligne=lecteur.readLine())!=null)){ // && (nb<10000)){\n\t\t\t\t\t//System.out.println(ligne); \n\t\t\t\t\t\n\t\t\t\tligne=ligne.replaceAll(\"\\r\", \" \");\n\t\t\t\tligne=ligne.replaceAll(\"\\\\r\", \" \");\n\t\t\t\tligne=ligne.replaceAll(\"\\\\\\\\r\", \" \");\n\t\t\t\tligne=ligne.replaceAll(\"\\n\", \" \");\n\t\t\t\tligne=ligne.replaceAll(\"\\\\n\", \" \");\n\t\t\t\tligne=ligne.replaceAll(\"\\\\\\\\n\", \" \");\n\t\t\t\tligne=ligne.replaceAll(\"\\t\", \" \");\n\t\t\t\tligne=ligne.replaceAll(\"\\\\t\", \" \");\n\t\t\t\tligne=ligne.replaceAll(\"\\\\\\\\t\", \" \");\n\t\t\t\tligne=ligne.replaceAll(\" \", \" \");\n\t\t\t\tligne=ligne.replace(\"^ \", \"\");\n\t\t\t\t\t//System.out.println(ligne);\n\t\t\t\t\tString[] li=ligne.split(\" \");\n\t\t\t\t\tUser user;\n\t\t\t\t\t\n\t\t\t\t\tif (li.length>=2){\n\t\t\t\t\t\t//System.out.println(li[0]+\":\"+li[1]);\n\t\t\t\t\t\tHashMap<String,Post> pc=new HashMap<String,Post>();\n\t\t\t\t\t\tHashMap<String,Long> vusUsers=new HashMap<String,Long>();\n\t\t\t\t\t\tfor(int i=0;i<li.length;i++){\n\t\t\t\t\t\t\tString[] triplet=li[i].split(\",\");\n\t\t\t\t\t\t\tif (users.containsKey(triplet[1])){\n\t\t\t\t\t\t\t\tuser=users.get(triplet[1]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\tuser=User.getUser(triplet[1]);\n\t\t\t\t\t\t\t\tusers.put(triplet[1],user);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tlong t=Long.valueOf(triplet[2])+1;\n\t\t\t\t\t\t\tif(triplet[0].compareTo(\"i\")==0){\n\t\t\t\t\t\t\t\tt=0;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif((!vusUsers.containsKey(user.getName())) || (vusUsers.get(user.getName())<t)){\n\t\t\t\t\t\t\t\tPost p=new Post(\"\",user,t,null);\n\t\t\t\t\t\t\t\tpc.put(user.getName(),p);\n\t\t\t\t\t\t\t\tvusUsers.put(user.getName(),t);\n\t\t\t\t\t\t\t\tposts.add(p);\n\t\t\t\t\t\t\t}\n\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\tif(pc.size()>1){\n\t\t\t\t\t\t\tString wl=lecteurW.readLine();\n\t\t\t\t\t\t\tString[] ws=wl.split(\" \");\n\t\t\t\t\t\t\tHashMap<Integer,Double> weights=new HashMap<Integer,Double>();\n\t\t\t\t\t\t\tfor(int i=0;i<ws.length;i++){\n\t\t\t\t\t\t\t\tString[] st=ws[i].split(\",\");\n\t\t\t\t\t\t\t\tweights.put(Integer.parseInt(st[0])+add, Double.valueOf(st[1]));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tnbc++;\n\t\t\t\t\t\t\tCascade c=new ArtificialCascade(nbc,nbc+\"\",new HashSet<Post>(pc.values()),weights);\n\t\t\t\t\t\t\tc.indexInto(db, cascades_collection);\n\t\t\t\t\t\t}\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\t\n\t\t\t\t\t\tSystem.out.println(\"ligne invalide :\" + ligne);\n\t\t\t\t\t\tnbinvalides++;\n\t\t\t\t\t\t//break;\n\t\t\t\t\t}\n\t\t\t\t\tnb++;\n\t\t\t\t\tif (nb%100==0){\n\t\t\t\t\t\tSystem.out.println(nb+\"/\"+nbl+\" lignes traitees\");\n\t\t\t\t\t}\n\n\t\t\t}\n\t\t\tSystem.out.println(nbinvalides+\" lignes invalides\");\n\t\t\t\n\t\t\t/*nb=0;\n\t\t\tnbl=posts.size();\n\t\t\tfor(Post post:posts){\n\t\t\t\tpost.indexInto(collection);\n\t\t\t\tif (nb%100==0){\n\t\t\t\t\tSystem.out.println(nb+\"/\"+nbl+\" posts inseres\");\n\t\t\t\t}\n\t\t\t\tnb++;\n\t\t\t}*/\n\t\t\tSystem.out.println(\"Creation indexs\");\n\t\t\tDBCollection col=MongoDB.mongoDB.getCollectionFromDB(db,cascades_collection);\n\t\t\tcol.ensureIndex(new BasicDBObject(\"id\", 1));\n\t\t}\n\t\tfinally{\n\t\t\tlecteur.close();\n\t\t\tlecteurW.close();\n\t\t}\n\t\t\n\t\treturn cascades_collection;\n\t}",
"StorableIndexInfo getIndexInfo();",
"public void IndexADocument(String docno, String content) throws IOException {\n\t\tthis.idWriter.write(docID+\":\"+docno);\n\t\tthis.idWriter.newLine();\n\t\tthis.idWriter.flush();\n\t\tString[] words = content.split(\" \");\n\t\tHashMap<String,Integer> count = new HashMap<>();\n\t\tfor(String s:words){\n\t\t\tcount.put(s,count.getOrDefault(s,0)+1);\n\t\t}\n\t\tfor(String key: count.keySet()){\n\t\t\tif(this.map.containsKey(key)){\n\t\t\t\tthis.map.get(key).append(docID).append(\":\").append(count.get(key)).append(\",\");\n\t\t\t}else {\n\t\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\tthis.map.put(key, sb.append(docID).append(\":\").append(count.get(key)).append(\",\"));\n\t\t\t}\n\t\t}\n\t\tdocID++;\n\t}",
"@Override\r\n public ParaMap index(ParaMap inMap) throws Exception {\n return null;\r\n }",
"public static void main(String[] args)\n\t{\n\t\tsqlindexer si=new sqlindexer();\n\t\tsi.indexAll();\n\t\t\n\t\t\n\t}",
"public void WriteIndex() throws Exception {\n CorpusReader corpus = new CorpusReader();\n // initiate the output object\n IndexWriter output = new IndexWriter();\n\n // Map to hold doc_id and doc content;\n Map<String, String> doc;\n\n // index the corpus, load the doc one by one\n while ((doc = corpus.NextDoc()) != null){\n // get the doc_id and content of the current doc.\n String doc_id = doc.get(\"DOC_ID\");\n String content = doc.get(\"CONTENT\");\n\n // index the doc\n output.IndexADoc(doc_id, content);\n }\n output.close_index_writer();\n }",
"public void addDocument(Document d) throws IndexerException {\n\t\t\n\t//if (!isvaliddir) {System.out.println(\"INVALID PATH/execution !\");return;}\n\t\n\t\n\t//Tokenizing\n\t//one thgread\n\tDocID did=new DocID(d.getField(FieldNames.FILEID),\n\t\t\td.getField(FieldNames.CATEGORY),\n\t\t\td.getField(FieldNames.AUTHOR));\n\t\n\tTokenStream stream=tokenize(FieldNames.CATEGORY,d);\n\tAnalyzer analyz=analyze(FieldNames.CATEGORY, stream);\n\tCategoryIndex.getInst().doIndexing(did.getdID(), stream);\n\t/*\t}catch(Exception e)\n\t{\n\t\tif (e instanceof NullPointerException ||e instanceof StringIndexOutOfBoundsException\n\t\t\t\t||e instanceof ArrayIndexOutOfBoundsException ||e instanceof IllegalArgumentException\n\t\t\t\t);\n\t}\n\ttry{*/TokenStream stream1=tokenize(FieldNames.AUTHOR,d);\n\tAnalyzer analyz1=analyze(FieldNames.AUTHOR, stream1);\n\tAuthorIndex.getInst().doIndexing(did.getdID(), stream1);\n\t/*}catch(Exception e)\n\t{\n\t\tif (e instanceof NullPointerException ||e instanceof StringIndexOutOfBoundsException\n\t\t\t\t||e instanceof ArrayIndexOutOfBoundsException ||e instanceof IllegalArgumentException\n\t\t\t\t);}\n\ttry{*/TokenStream stream2=tokenize(FieldNames.PLACE,d);\n\tAnalyzer analyz2=analyze(FieldNames.PLACE, stream2);\n\tPlaceIndex.getInst().doIndexing(did.getdID(), stream2);\n/*}catch(Exception e)\n\t{\n\tif (e instanceof NullPointerException ||e instanceof StringIndexOutOfBoundsException\n\t\t\t||e instanceof ArrayIndexOutOfBoundsException ||e instanceof IllegalArgumentException\n\t\t\t);}\n\ttry{*/tkizer = new Tokenizer();\n\tTokenStream stream3=tokenize(FieldNames.CONTENT,d);\n\tfactory = AnalyzerFactory.getInstance();\n\tAnalyzer analyz3=analyze(FieldNames.CONTENT, stream3);\n\tnew Indxr(IndexType.TERM).doIndexing(did, stream3);\n\t/*}\tcatch(Exception e)\n\t{\n\t\tif (e instanceof NullPointerException ||e instanceof StringIndexOutOfBoundsException\n\t\t\t\t||e instanceof ArrayIndexOutOfBoundsException ||e instanceof IllegalArgumentException\n\t\t\t\t);}\n\t*/\n\tdocs.add(did==null?\" \":did.toString());\n\t \n\t\na_indexrd= new IndexReader(System.getProperty(\"INDEX.DIR\"), IndexType.AUTHOR);\nc_indexrd= new IndexReader(System.getProperty(\"INDEX.DIR\"), IndexType.CATEGORY);\np_indexrd= new IndexReader(System.getProperty(\"INDEX.DIR\"), IndexType.PLACE);\nt_indexrd= new IndexReader(System.getProperty(\"INDEX.DIR\"), IndexType.TERM);\n\t\t}",
"void stopIndexing();",
"@Override\n\tpublic void indexObject(List<ModelKey> list) throws ASException {\n\t\t\n\t}",
"@Ignore \n @Test\n public void testPutMappingToIndex() {\n System.out.println(\"putMappingToIndex\");\n \n Util.commonServiceIPs=\"127.0.0.1\";\n \n EntityManager em=Util.getEntityManagerFactory(100).createEntityManager();\n EntityManager platformEm = Util.getPlatformEntityManagerFactory().createEntityManager();\n \n Client client = ESUtil.getClient(em,platformEm,1,false);\n \n String indexName = \"datastore_100_1_data_event_yearmonth_000000_1\";\n String indexType = \"AAA666_type\";\n \n try\n { \n ESUtil.createIndexWithoutType(client, indexName);\n \n DataobjectType dataobjectType = Util.getDataobjectTypeByIndexTypeName(platformEm, indexType);\n\n XContentBuilder typeMapping = ESUtil.createTypeMapping(platformEm, dataobjectType, true);\n \n ESUtil.putMappingToIndex(client, indexName, indexType, typeMapping);\n }\n catch(Exception e)\n {\n System.out.print(\" failed! e=\"+e);\n }\n }",
"@Test\n public void testIndexMaintenanceWithIndexOnMethodGetEntries() throws Exception {\n Index i1 = qs.createIndex(\"indx1\", IndexType.FUNCTIONAL, \"entries.value.getID\",\n SEPARATOR + \"portfolio.getEntries() entries\");\n CacheUtils.getCache();\n region = CacheUtils.getRegion(SEPARATOR + \"portfolio\");\n region.put(\"4\", new Portfolio(4));\n region.put(\"5\", new Portfolio(5));\n CompactRangeIndex ri = (CompactRangeIndex) i1;\n validateIndexForEntries(ri);\n }",
"private IndexHandler (boolean test) throws IOException {\n analyzer = new StandardAnalyzer();\n indexDir = test ? new RAMDirectory() : new DistributedDirectory(new MongoDirectory(mongoClient, \"search-engine\", \"index\"));\n //storePath = storedPath;\n config = new IndexWriterConfig(analyzer);\n\n // write separate IndexWriter to RAM for each IndexHandler\n // writer will have to be manually closed with each instance call\n // see IndexWriter documentation for .close()\n // explaining continuous closing of IndexWriter is an expensive operation\n try {\n writer = new IndexWriter(indexDir, config);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public interface IndexSearch {\n /**\n * Returns the index type.\n * @return type\n */\n IndexType type();\n\n /**\n * Returns the current token.\n * @return token\n */\n byte[] token();\n}",
"@Test\n public void testIndexMaintenanceOnCacheLoadedData() throws Exception {\n IndexManager.TEST_RANGEINDEX_ONLY = true;\n Cache cache = CacheUtils.getCache();\n qs = cache.getQueryService();\n region = CacheUtils.createRegion(\"portfolio1\", null);\n AttributesMutator am = region.getAttributesMutator();\n am.setCacheLoader(new CacheLoader() {\n\n @Override\n public Object load(LoaderHelper helper) throws CacheLoaderException {\n String key = (String) helper.getKey();\n Portfolio p = new Portfolio(Integer.parseInt(key));\n return p;\n }\n\n @Override\n public void close() {\n // nothing\n }\n });\n\n Index i1 =\n qs.createIndex(\"indx1\", IndexType.FUNCTIONAL, \"pf.getID()\", SEPARATOR + \"portfolio1 pf\");\n List keys = new ArrayList();\n keys.add(\"1\");\n keys.add(\"2\");\n keys.add(\"3\");\n keys.add(\"4\");\n\n region.getAll(keys);\n }",
"public abstract void updateIndex();",
"@Test\n public void testIndexMaintenanceOnPutAll() throws Exception {\n IndexManager.TEST_RANGEINDEX_ONLY = true;\n Cache cache = CacheUtils.getCache();\n qs = cache.getQueryService();\n region = CacheUtils.createRegion(\"portfolio1\", null);\n region.put(\"1\", new Portfolio(1));\n Index i1 = qs.createIndex(\"indx1\", IndexType.FUNCTIONAL, \"posvals.secId\",\n SEPARATOR + \"portfolio1 pf, pf.positions.values posvals \");\n Map data = new HashMap();\n for (int i = 1; i < 11; ++i) {\n data.put(\"\" + i, new Portfolio(i + 2));\n }\n\n region.putAll(data);\n }",
"@Override\n public Collection<? extends DBSTableIndex> getIndexes(DBRProgressMonitor monitor) throws DBException {\n return Collections.emptyList();\n }",
"private Document createMapping() {\n return getIndexOperations().createMapping();\n }",
"private void createInvertedIndex() {\n\t\tArrayList<Index> invertedIndex=new ArrayList<>();\n\t\ttry{\n\t\t\tBufferedReader in = new BufferedReader(new FileReader(\"E:\\\\graduate\\\\cloud\\\\project\\\\data\\\\part-r-00001\"));\n\t\t\tString line = \"\";\n\t\t\twhile ((line = in.readLine()) != null) {\n\t\t\t\tString parts[] = line.split(\"\\t\");\n\t\t\t\tparts[1]=parts[1].replace(\"{\", \"\").replace(\"}\", \"\");\n\t\t\t\tString counts[]=parts[1].split(\",\");\n\t\t\t\tHashMap<String,Integer> fileList=new HashMap<String,Integer>();\n\t\t\t\tfor (String count : counts) {\n\t\t\t\t\tString file[]=count.split(\"=\");\n\t\t\t\t\tfileList.put(file[0].trim().replace(\".txt\", \"\"), Integer.parseInt(file[1].trim()));\n\t\t\t\t}\n\t\t\t\tIndex index=new Index();\n\t\t\t\tindex.setWord(parts[0]);\n\t\t\t\tindex.setFileList(fileList);\n\t\t\t\tinvertedIndex.add(index);\n\t\t\t}\n\t\t\tin.close();\n\t\t}catch(IOException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\tDBUtil.insertIndex(invertedIndex);\n\t}",
"private void addNetworkIndexes() {\r\n try {\r\n addIndex(NodeTypes.SITE.getId(), NeoUtils.getLocationIndexProperty(basename));\r\n } catch (IOException e) {\r\n throw (RuntimeException)new RuntimeException().initCause(e);\r\n }\r\n \r\n }",
"@Test(enabled = false, description = \"WORDSNET-24595\", dataProvider = \"fieldIndexYomiDataProvider\")\n public void fieldIndexYomi(boolean sortEntriesUsingYomi) throws Exception {\n Document doc = new Document();\n DocumentBuilder builder = new DocumentBuilder(doc);\n\n // Create an INDEX field which will display an entry for each XE field found in the document.\n // Each entry will display the XE field's Text property value on the left side,\n // and the number of the page that contains the XE field on the right.\n // The INDEX entry will collect all XE fields with matching values in the \"Text\" property\n // into one entry as opposed to making an entry for each XE field.\n FieldIndex index = (FieldIndex) builder.insertField(FieldType.FIELD_INDEX, true);\n\n // The INDEX table automatically sorts its entries by the values of their Text properties in alphabetic order.\n // Set the INDEX table to sort entries phonetically using Hiragana instead.\n index.setUseYomi(sortEntriesUsingYomi);\n\n if (sortEntriesUsingYomi)\n Assert.assertEquals(\" INDEX \\\\y\", index.getFieldCode());\n else\n Assert.assertEquals(\" INDEX \", index.getFieldCode());\n\n // Insert 4 XE fields, which would show up as entries in the INDEX field's table of contents.\n // The \"Text\" property may contain a word's spelling in Kanji, whose pronunciation may be ambiguous,\n // while the \"Yomi\" version of the word will spell exactly how it is pronounced using Hiragana.\n // If we set our INDEX field to use Yomi, it will sort these entries\n // by the value of their Yomi properties, instead of their Text values.\n builder.insertBreak(BreakType.PAGE_BREAK);\n FieldXE indexEntry = (FieldXE) builder.insertField(FieldType.FIELD_INDEX_ENTRY, true);\n indexEntry.setText(\"愛子\");\n indexEntry.setYomi(\"あ\");\n\n Assert.assertEquals(\" XE 愛子 \\\\y あ\", indexEntry.getFieldCode());\n\n builder.insertBreak(BreakType.PAGE_BREAK);\n indexEntry = (FieldXE) builder.insertField(FieldType.FIELD_INDEX_ENTRY, true);\n indexEntry.setText(\"明美\");\n indexEntry.setYomi(\"あ\");\n\n builder.insertBreak(BreakType.PAGE_BREAK);\n indexEntry = (FieldXE) builder.insertField(FieldType.FIELD_INDEX_ENTRY, true);\n indexEntry.setText(\"恵美\");\n indexEntry.setYomi(\"え\");\n\n builder.insertBreak(BreakType.PAGE_BREAK);\n indexEntry = (FieldXE) builder.insertField(FieldType.FIELD_INDEX_ENTRY, true);\n indexEntry.setText(\"愛美\");\n indexEntry.setYomi(\"え\");\n\n doc.updatePageLayout();\n doc.updateFields();\n doc.save(getArtifactsDir() + \"Field.INDEX.XE.Yomi.docx\");\n //ExEnd\n\n doc = new Document(getArtifactsDir() + \"Field.INDEX.XE.Yomi.docx\");\n index = (FieldIndex) doc.getRange().getFields().get(0);\n\n if (sortEntriesUsingYomi) {\n Assert.assertTrue(index.getUseYomi());\n Assert.assertEquals(\" INDEX \\\\y\", index.getFieldCode());\n Assert.assertEquals(\"愛子, 2\\r\" +\n \"明美, 3\\r\" +\n \"恵美, 4\\r\" +\n \"愛美, 5\\r\", index.getResult());\n } else {\n Assert.assertFalse(index.getUseYomi());\n Assert.assertEquals(\" INDEX \", index.getFieldCode());\n Assert.assertEquals(\"恵美, 4\\r\" +\n \"愛子, 2\\r\" +\n \"愛美, 5\\r\" +\n \"明美, 3\\r\", index.getResult());\n }\n\n indexEntry = (FieldXE) doc.getRange().getFields().get(1);\n\n TestUtil.verifyField(FieldType.FIELD_INDEX_ENTRY, \" XE 愛子 \\\\y あ\", \"\", indexEntry);\n Assert.assertEquals(\"愛子\", indexEntry.getText());\n Assert.assertEquals(\"あ\", indexEntry.getYomi());\n\n indexEntry = (FieldXE) doc.getRange().getFields().get(2);\n\n TestUtil.verifyField(FieldType.FIELD_INDEX_ENTRY, \" XE 明美 \\\\y あ\", \"\", indexEntry);\n Assert.assertEquals(\"明美\", indexEntry.getText());\n Assert.assertEquals(\"あ\", indexEntry.getYomi());\n\n indexEntry = (FieldXE) doc.getRange().getFields().get(3);\n\n TestUtil.verifyField(FieldType.FIELD_INDEX_ENTRY, \" XE 恵美 \\\\y え\", \"\", indexEntry);\n Assert.assertEquals(\"恵美\", indexEntry.getText());\n Assert.assertEquals(\"え\", indexEntry.getYomi());\n\n indexEntry = (FieldXE) doc.getRange().getFields().get(4);\n\n TestUtil.verifyField(FieldType.FIELD_INDEX_ENTRY, \" XE 愛美 \\\\y え\", \"\", indexEntry);\n Assert.assertEquals(\"愛美\", indexEntry.getText());\n Assert.assertEquals(\"え\", indexEntry.getYomi());\n }",
"private boolean readFromIndex(){\n\t\tString file = \"./reverseIndex.txt\";\r\n\t\tFile reverseIndex = new File(file);\r\n\t\tif (reverseIndex.exists()){\r\n\t\t\ttry(\r\n\t\t\t\tBufferedReader reader = new BufferedReader(new FileReader(file));\r\n\t\t\t){\r\n\t\t\t\tString readSchema = \"(\\\\{[^\\\\}]+)\";\r\n\t\t\t\tPattern readPattern = Pattern.compile(readSchema);\r\n\t\t\t\tString line;\r\n\t\t\t\twhile ((line = reader.readLine()) != null){\r\n\t\t\t\t\tint iden = 0;\r\n\t\t\t\t\tString[] pair = line.split(\" \\\\| \");\r\n\t\t\t\t\tString fileName = pair[0];\r\n\t\t\t\t\tString tokenList;\r\n\t\t\t\t if (pair.length > 1){\r\n\t\t\t\t\t\ttokenList = pair[1];\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse{\r\n\t\t\t\t\t\ttokenList = \"\";\r\n\t\t\t\t\t}\r\n\t\t\t\t\tHashMap<Term, Integer> tempMap = new HashMap<Term, Integer>();\r\n\t\t\t\t\tMatcher readMatcher = readPattern.matcher(tokenList);\r\n\t\t\t\t\tString[] readResults = readMatcher.results().map(MatchResult::group).toArray(String[]::new);\r\n\t\t\t\t\tfor (int i = 0;i<readResults.length;++i){\r\n\t\t\t\t\t\tString[] valuePair = readResults[i].split(\" : \");\r\n\t\t\t\t\t\tString term = valuePair[0];\r\n\t\t\t\t\t\tTerm temp = new Term(term.substring(1),iden);\r\n\t\t\t\t\t\tiden++;\r\n\t\t\t\t\t\ttempMap.put(temp, Integer.parseInt(valuePair[1]));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tindex.put(fileName, new IndexedDoc(tempMap));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcatch(Exception e){\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public void index(Map<Integer, Document> docs) {\r\n this.docs = docs;\r\n\r\n // index\r\n this.index.process(this.docs);\r\n\r\n // tf-idf model\r\n this.tfidf.inject(this.index, this.docs.size());\r\n this.tfidf.process();\r\n }",
"public Object migrateWords2index(String wordhash) throws IOException {\n File db = plasmaWordIndexFile.wordHash2path(oldDatabaseRoot, wordhash);\r\n if (!(db.exists())) return \"not available\";\r\n plasmaWordIndexFile entity = null;\r\n try {\r\n entity = new plasmaWordIndexFile(oldDatabaseRoot, wordhash, true);\r\n int size = entity.size();\r\n indexContainer container = new indexContainer(wordhash, payloadrow(), useCollectionIndex);\r\n \r\n try {\r\n Iterator entries = entity.elements(true);\r\n indexRWIEntry entry;\r\n while (entries.hasNext()) {\r\n entry = (indexRWIEntry) entries.next();\r\n // System.out.println(\"ENTRY = \" + entry.getUrlHash());\r\n container.add(new indexRWIEntry[] { entry }, System.currentTimeMillis());\r\n }\r\n // we have read all elements, now delete the entity\r\n entity.deleteComplete();\r\n entity.close();\r\n entity = null;\r\n \r\n indexContainer feedback = collections.addEntries(container, container.updated(), false);\r\n if (feedback != null) return feedback;\r\n return new Integer(size);\r\n } catch (kelondroException e) {\r\n // database corrupted, we simply give up the database and delete it\r\n try { entity.close(); } catch (Exception ee) { }\r\n entity = null;\r\n try { db.delete(); } catch (Exception ee) { }\r\n return \"database corrupted; deleted\";\r\n }\r\n } finally {\r\n if (entity != null) try {entity.close();}catch(Exception e){}\r\n }\r\n }",
"@Override\n @Secured(SecurityRoles.ADMINISTRATOR)\n public void reindex() {\n revisionDao.deleteAll();\n // OK, launches a new indexation\n indexFromLatest();\n }",
"public void indexAdd(final LWMap map, final boolean metadataOnly, final boolean searchEverything_IS_IGNORED)\n {\n if (DEBUG.Enabled && searchEverything_IS_IGNORED) Log.debug(\"Note: \\\"search-everything\\\" bit is now ignored.\");\n // If we want slide content, change default index to always index everything -- will hardly make\n // a difference just adding slides, and they can be (are currently always) optionally filtered out later anyway.\n \n if (DEBUG.RDF) Log.debug(\"indexAdd: begin; freeMem=: \"+Runtime.getRuntime().freeMemory());\n \n final com.hp.hpl.jena.rdf.model.Resource mapRoot = this.createResource(map.getURI().toString());\n \n if (DEBUG.RDF) Log.debug(\"index: create resource for map; freeMem=: \"+Runtime.getRuntime().freeMemory());\n \n try {\n addProperty(mapRoot, idOf, map.getID());\n addProperty(mapRoot, authorOf, System.getProperty(\"user.name\"));\n if (map.hasLabel())\n addProperty(mapRoot, labelOf,map.getLabel());\n\n if (DEBUG.RDF) Log.debug(\"index: added properties for map; freeMem=\"+Runtime.getRuntime().freeMemory());\n \n final Collection<LWComponent> searchSet = map.getAllDescendents();\n\n // final Collection<LWComponent> searchSet;\n // // We always filter out slide content anyway, so no point in allowing it un index\n // // Note that we really ought to search from the current viewer focal tho, so,\n // // if user was looking at a single slide with lots of content, the search\n // // bar would still do something meaninful.\n // if (searchEverything) {\n // // E.g., this will search everything incuding Slides, and even the MasterSlide (which is a bug)\n // // THIS IS A PROBLEM IN THAT A PARAMETERIZED INDEX IS NO LONGER CACHEABLE!\n // searchSet = map.getAllDescendents(LWComponent.ChildKind.ANY);\n // } else {\n // searchSet = map.getAllDescendents();\n // }\n \n for (LWComponent c : searchSet) {\n if (c instanceof LWPathway || c instanceof LWMap.Layer)\n continue;\n if (!INDEX_SLIDES && c instanceof LWSlide)\n continue;\n \n try {\n load_VUE_component_to_RDF_index(c, mapRoot, !metadataOnly);\n } catch (Throwable t) {\n Log.warn(\"indexing VUE component \" + c, t);\n }\n\n if (size() > MAX_SIZE) {\n Log.warn(\"Maximum fail-safe search capacity reached: not all nodes will be searchable. (See property rdf.index.size)\");\n break;\n }\n } \n \n if (DEBUG.RDF) Log.debug(\"index: after indexing all components; freeMem=\"+Runtime.getRuntime().freeMemory());\n \n } catch(Exception ex) {\n Log.error(\"index\", ex);\n }\n if(DEBUG.RDF) Log.debug(\"index: done -- size=\"+this.size());\n }",
"public static void main(String[] args) throws CorruptIndexException, LockObtainFailedException, IOException, ParseException{\n\t\tboolean lucene_im_mem = false;\n\t\t//1. Build the Index with varying \"database size\"\n\t\tString dirName =\"/data/home/duy113/SupSearchExp/AIDSNew/\";\n//\t\tString dirName = \"/Users/dayuyuan/Documents/workspace/Experiment/\";\n\t\tString dbFileName = dirName + \"DBFile\";\n\t\tString trainQueryName= dirName + \"TrainQuery\";\n//\t\tString testQuery15 = dirName + \"TestQuery15\";\n\t\tString testQuery25 = dirName + \"TestQuery25\";\n//\t\tString testQuery35 = dirName + \"TestQuery35\";\n\t\tGraphDatabase query = new GraphDatabase_OnDisk(testQuery25, MyFactory.getSmilesParser());\n\t\tdouble[] minSupts = new double[4];\n\t\tminSupts[0] = 0.05; minSupts[1] = 0.03; minSupts[2] =0.02; minSupts[3] = 0.01;\n \t\tint lwIndexCount[] = new int[1];\n\t\tlwIndexCount[0] = 479;\t\n//\t\tSystem.out.println(\"Build CIndexFlat Left-over: \");\n//\t\tfor(int j = 3; j< 4; j++){\n//\t\t\tdouble minSupt = minSupts[j];\n//\t\t\tfor(int i = 4; i<=10; i = i+2){\n//\t\t\t\tString baseName = dirName + \"G_\" + i + \"MinSup_\" + minSupt + \"/\";\n//\t\t\t\tGraphDatabase trainingDB = new GraphDatabase_OnDisk(dbFileName + i, MyFactory.getDFSCoder());\n//\t\t\t\tGraphDatabase trainQuery = new GraphDatabase_OnDisk(trainQueryName, MyFactory.getSmilesParser());\t\t\n//\t\t\t\tif(i == 2){\n//\t\t\t\t\tSystem.out.println(baseName + \"CIndexFlat\");\n//\t\t\t\t\tCIndexExp.buildIndex(trainingDB, trainQuery, trainingDB, baseName, minSupt, lwIndexCount[0]);\n//\t\t\t\t}\n//\t\t\t\telse{\n//\t\t\t\t\tString featureBaseName = dirName + \"G_2\" + \"MinSup_\" + minSupt + \"/\";\n//\t\t\t\t\tSystem.out.println(baseName + \"CIndexFlat with Features \" + featureBaseName);\n//\t\t\t\t\tCIndexExp.buildIndex(featureBaseName, trainingDB, baseName, minSupt);\n//\t\t\t\t}\n//\t\t\t\tSystem.gc();\n//\t\t\t}\n//\t\t}\n\t\tSystem.out.println(\"Run Query Processing: \");\n\t\tfor(int j = 0; j< 4; j++){\n\t\t\tdouble minSupt = minSupts[j];\n\t\t\tfor(int i = 2; i<=10; i = i+2){\n\t\t\t\tString baseName = dirName + \"G_\" + i + \"MinSup_\" + minSupt + \"/\";\n\t\t\t\tGraphDatabase trainingDB = new GraphDatabase_OnDisk(dbFileName + i, MyFactory.getDFSCoder());\n\t\t\t\tGraphDatabase trainQuery = new GraphDatabase_OnDisk(trainQueryName, MyFactory.getSmilesParser());\t\t\n\t\t\t\tif(j!=0 || i!=2){\n\t\t\t\t\tSystem.out.println(baseName + \"LWindex\");\n\t\t\t\t\t//LWIndexExp.buildIndex(trainingDB, trainQuery, trainingDB, trainQuery.getParser(),baseName, minSupt, lwIndexCount);\n\t\t\t\t\t//System.gc();\n\t\t\t\t\tLWIndexExp.runIndex(trainingDB, trainQuery, baseName, lucene_im_mem);\n\t\t\t\t\tLWIndexExp.runIndex(trainingDB, query, baseName, lucene_im_mem);\n\t\t\t\t\tSystem.gc();\t\t\n\t\t\t\t\tSystem.out.println(baseName + \"PrefixIndex\");\n\t\t\t\t\t//PrefixIndexExp.buildIndex(trainingDB, trainingDB, baseName, minSupt);\n\t\t\t\t\t//System.gc();\n\t\t\t\t\tPrefixIndexExp.runIndex(trainingDB, trainQuery, baseName, lucene_im_mem);\n\t\t\t\t\tPrefixIndexExp.runIndex(trainingDB, query, baseName, lucene_im_mem);\n\t\t\t\t\tSystem.gc();\t\t\n\t\t\t\t\tSystem.out.println(baseName + \"PrefixIndexHi\");\n\t\t\t\t\t//PrefixIndexExp.buildHiIndex(trainingDB, trainingDB, 2, baseName, minSupt);\n\t\t\t\t\t//System.gc();\n\t\t\t\t\tPrefixIndexExp.runHiIndex(trainingDB, trainQuery, baseName, lucene_im_mem);\n\t\t\t\t\tPrefixIndexExp.runHiIndex(trainingDB, query, baseName, lucene_im_mem);\n\t\t\t\t\tSystem.gc();\n\t\t\t\t\tSystem.out.println(baseName + \"GPTree\");\n\t\t\t\t\t//GPTreeExp.buildIndex(trainingDB, trainingDB, baseName, minSupt);\n\t\t\t\t\t//System.gc();\n\t\t\t\t\tGPTreeExp.runIndex(trainingDB, trainQuery, baseName, lucene_im_mem);\n\t\t\t\t\tGPTreeExp.runIndex(trainingDB, query, baseName, lucene_im_mem);\n\t\t\t\t\tSystem.gc();\n\t\t\t\t\tSystem.out.println(baseName + \"CIndexFlat\");\n\t\t\t\t\t//CIndexExp.buildIndex(trainingDB, trainQuery, trainingDB, baseName, minSupt, lwIndexCount[0]);\n\t\t\t\t\t//System.gc();\n\t\t\t\t\tCIndexExp.runIndex(trainingDB, trainQuery, baseName, lucene_im_mem);\n\t\t\t\t\tCIndexExp.runIndex(trainingDB, query, baseName, lucene_im_mem);\n\t\t\t\t\tSystem.gc();\n\t\t\t\t}\n\t\t\t\tif(j==0&&i==2){\n\t\t\t\t\tSystem.out.println(baseName + \"CIndexTopDown: \" + lwIndexCount[0]);\n\t\t\t\t\tCIndexExp.buildIndexTopDown(trainingDB, trainQuery, trainingDB,MyFactory.getUnCanDFS(), baseName, minSupt, 2*trainQuery.getTotalNum()/lwIndexCount[0] ); // 8000 test queries\n\t\t\t\t\t//System.gc();\n\t\t\t\t}\n\t\t\t\tSystem.out.println(baseName + \"CIndexTopDown: \" + lwIndexCount[0]);\n\t\t\t\tCIndexExp.runIndexTopDown(trainingDB, trainQuery, baseName, lucene_im_mem);\n\t\t\t\tCIndexExp.runIndexTopDown(trainingDB, query, baseName, lucene_im_mem);\n\t\t\t\tSystem.gc();\n\t\t\t}\n\t\t}\n\t\tAIDSLargeExp.main(args);\n\t}",
"public static void main(String[] args) throws IOException\r\n\t{\n\t\tif (args.length <= 0)\r\n\t\t{\r\n System.out.println(\"Expected corpus as input\");\r\n System.exit(1);\r\n }\r\n\r\n\t\t// Analyzer that is used to process TextField\r\n\t\tAnalyzer analyzer = new StandardAnalyzer();\r\n\r\n\t\t// ArrayList of documents in the corpus\r\n\t\tArrayList<Document> documents = new ArrayList<Document>();\r\n\r\n\t\t// Open the directory that contains the search index\r\n\t\tDirectory directory = FSDirectory.open(Paths.get(INDEX_DIRECTORY));\r\n\r\n\t\t// Set up an index writer to add process and save documents to the index\r\n\t\tIndexWriterConfig config = new IndexWriterConfig(analyzer);\r\n\t\tconfig.setOpenMode(IndexWriterConfig.OpenMode.CREATE);\r\n\t\tIndexWriter iwriter = new IndexWriter(directory, config);\r\n\r\n\r\n\t\tfor (String arg : args)\r\n\t\t{\r\n\r\n\t\t\t// Load the contents of the file\r\n\t\t\t//System.out.printf(\"Indexing \\\"%s\\\"\\n\", arg);\r\n\t\t\tString content = new String(Files.readAllBytes(Paths.get(arg)));\r\n\r\n\t\t\tString[] big = content.split(\".I\");\r\n\t\t\tfor (String a : big) {\r\n\t\t\t\tDocument doc = new Document();\r\n\t\t\t\tint count = 0;\r\n\t\t\t\tString[] small = a.split(\".A\");\r\n\t\t\t\tfor (String b : small) {\r\n\t\t\t\t\tif (count == 0) {\r\n\t\t\t\t\t\tdoc.add(new StringField(\"filename\", b, Field.Store.YES));\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tdoc.add(new TextField(\"content\", b, Field.Store.YES));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcount++;\r\n\t\t\t\t}\r\n\t\t\t\tdocuments.add(doc);\r\n\t\t\t}\r\n\t\t\tfor (Document doc : documents) {\r\n\t\t\t\tSystem.out.println(doc.get(\"filename\"));\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Write all the documents in the linked list to the search index\r\n\t\tiwriter.addDocuments(documents);\r\n\r\n\t\t// Commit everything and close\r\n\t\tiwriter.close();\r\n\t\tdirectory.close();\r\n\t}",
"public H_index() {\n\t\tsuper();\n\t}",
"@Override\n public void visit(Index node) {\n }",
"public IPage<PropertyIndex> list(int connId, HugeType type, String content,\n int pageNo, int pageSize) {\n HugeClient client = this.client(connId);\n List<IndexLabel> indexLabels = client.schema().getIndexLabels();\n\n Map<String, List<PropertyIndex>> matchedResults = new HashMap<>();\n Map<String, List<PropertyIndex>> unMatchResults = new HashMap<>();\n for (IndexLabel indexLabel : indexLabels) {\n if (!indexLabel.baseType().equals(type)) {\n continue;\n }\n String baseValue = indexLabel.baseValue();\n List<PropertyIndex> groupedIndexes;\n // Collect indexlabels that contains content\n boolean match = baseValue.contains(content);\n if (match) {\n groupedIndexes = matchedResults.computeIfAbsent(baseValue,\n k -> new ArrayList<>());\n } else {\n groupedIndexes = unMatchResults.computeIfAbsent(baseValue,\n k -> new ArrayList<>());\n }\n match = match || indexLabel.name().contains(content) ||\n indexLabel.indexFields().stream()\n .anyMatch(f -> f.contains(content));\n if (match) {\n groupedIndexes.add(convert(indexLabel));\n }\n }\n\n // Sort matched results by relevance\n if (!StringUtils.isEmpty(content)) {\n for (Map.Entry<String, List<PropertyIndex>> entry :\n matchedResults.entrySet()) {\n List<PropertyIndex> groupedIndexes = entry.getValue();\n groupedIndexes.sort(new Comparator<PropertyIndex>() {\n final int highScore = 2;\n final int lowScore = 1;\n @Override\n public int compare(PropertyIndex o1, PropertyIndex o2) {\n int o1Score = 0;\n if (o1.getName().contains(content)) {\n o1Score += highScore;\n }\n if (o1.getFields().stream()\n .anyMatch(field -> field.contains(content))) {\n o1Score += lowScore;\n }\n\n int o2Score = 0;\n if (o2.getName().contains(content)) {\n o2Score += highScore;\n }\n if (o2.getFields().stream()\n .anyMatch(field -> field.contains(content))) {\n o2Score += lowScore;\n }\n return o2Score - o1Score;\n }\n });\n }\n }\n List<PropertyIndex> all = new ArrayList<>();\n matchedResults.values().forEach(all::addAll);\n unMatchResults.values().forEach(all::addAll);\n return PageUtil.page(all, pageNo, pageSize);\n }",
"public static void setIndexing(boolean b) {\n\t\tINDEXING_MODE=b;\n\t}",
"@SuppressWarnings(\"unused\")\n public void buildIndex() throws IOException {\n indexWriter = getIndexWriter(indexDir);\n ArrayList <JSONObject> jsonArrayList = parseJSONFiles(JSONdir);\n indexTweets(jsonArrayList, indexWriter);\n indexWriter.close();\n }",
"@VTID(10)\n int getIndex();",
"public static void main(String[] args) throws IOException{\n\t\tint termIndex = 1;\n\t\t\n\t\t// startOffset holds the start offset for each term in\n\t\t// the corpus.\n\t\tlong startOffset = 0;\n\t\t\t\n\t\t// unique_terms is true if there are atleast one more\n\t\t// unique term in corpus.\n\t\tboolean unique_terms = true;\n\t\t\n\t\t\n\t\t//load the stopwords from the HDD\n\t\tString stopwords = getStopWords();\n\t\t\n\t\t// allTokenHash contains all the terms and its termid\n\t\tHashMap<String, Integer> allTermHash = new HashMap<String, Integer>();\n\t\t\n\t\t// catalogHash contains the term and its position in\n\t\t// the inverted list present in the HDD.\n\t\tHashMap<Integer, Multimap> catalogHash = new HashMap<Integer, Multimap>();\n\t\t\n\t\t// finalCatalogHash contains the catalogHash for the invertedIndexHash\n\t\t// present in the HDD.\n\t\tHashMap<Integer, String> finalCatalogHash = new HashMap<Integer, String>();\n\t\t\n\t\t// token1000Hash contains the term and Dblocks for the first 1000\n\t\tHashMap<Integer, Multimap> token1000DocHash = new HashMap<Integer, Multimap>();\n\t\t\n\t\t// documentHash contains the doclength of all the documents in the corpus\n\t\tHashMap<String, String> documentHash = new HashMap<String, String>();\t\n\t\t\n\t\t// id holds the document id corresponding to the docNumber.\n\t\tint id = 1;\n\t\t\n\t\t// until all unique terms are exhausted\n\t\t// pass through the documents and index the terms.\n\t\t//while(unique_terms){\n\t\t\t\n\t\t\tFile folder = new File(\"C:/Naveen/CCS/IR/AP89_DATA/AP_DATA/ap89_collection\");\n\t\t\t//File folder = new File(\"C:/Users/Naveen/Desktop/TestFolder\");\n\t\t\tFile[] listOfFiles = folder.listFiles();\n\t\t\t\n\t\t\t//for each file in the folder \n\t\t\tfor (File file : listOfFiles) {\n\t\t\t if (file.isFile()) {\n\t\t\t \t\n\t\t\t \tString str = file.getPath().replace(\"\\\\\",\"//\");\n\t\t\t \t\n\t\t\t \t\n\t\t\t\t\t//Document doc = new Document();\n\t\t\t //System.out.println(\"\"+str);\n\t\t\t\t\t//variables to keep parse document.\n\t\t\t\t\tint docCount = 0;\n\t\t\t\t\tint docNumber = 0;\n\t\t\t\t\tint endDoc = 0;\n\t\t\t\t\tint textCount = 0;\n\t\t\t\t\tint noText = 0;\n\t\t\t\t\tPath path = Paths.get(str);\n\t\t\t\t\t\n\t\t\t\t\t//Document id and text\n\t\t\t\t\tString docID = null;\n\t\t\t\t\tString docTEXT = null;\n\t\t\t\t\t\n\t\t\t\t\t//Stringbuffer to hold the text of each document\n\t\t\t\t\tStringBuffer text = new StringBuffer();\n\t\t\t\t\t\n\t\t\t\t\tScanner scanner = new Scanner(path);\n\t\t\t\t\twhile(scanner.hasNext()){\n\t\t\t\t\t\tString line = scanner.nextLine();\n\t\t\t\t\t\tif(line.contains(\"<DOC>\")){\n\t\t\t\t\t\t\t++docCount;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(line.contains(\"</DOC>\")){\n\t\t\t\t\t\t\t++endDoc;\n\t\t\t\t\t\t\tdocTEXT = text.toString();\n\t\t\t\t\t\t\t//docTEXT = docTEXT.replaceAll(\"[\\\\n]\",\" \");\n\t\t\t\t\t\t\tSystem.out.println(\"ID: \"+id);\n\t\t\t\t\t\t\t//System.out.println(\"TEXT: \"+docTEXT);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// text with stop words removed\n\t\t\t\t\t\t\tPattern pattern1 = Pattern.compile(\"\\\\b(?:\"+stopwords+\")\\\\b\\\\s*\", Pattern.CASE_INSENSITIVE);\n\t\t\t\t\t\t\tMatcher matcher1 = pattern1.matcher(docTEXT);\n\t\t\t\t\t\t\tdocTEXT = matcher1.replaceAll(\"\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// text with stemming\n\t\t\t\t\t\t\t//docTEXT = stemmer(docTEXT);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tint docLength = 1;\n\t\t\t\t\t\t\t// regex to build the tokens from the document text\n\t\t\t\t\t\t\tPattern pattern = Pattern.compile(\"\\\\w+(\\\\.?\\\\w+)*\");\n\t\t\t\t\t\t\tMatcher matcher = pattern.matcher(docTEXT.toLowerCase());\n\t\t\t\t\t\t\twhile (matcher.find()) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tfor (int i = 0; i < matcher.groupCount(); i++) {\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t// alltermHash contains term and term id\n\t\t\t\t\t\t\t\t\t// if term is present in the alltermHash\n\t\t\t\t\t\t\t\t\tif(allTermHash.containsKey(matcher.group(i))){\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tint termId = allTermHash.get(matcher.group(i));\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\t//if term is present in the token1000Hash\n\t\t\t\t\t\t\t\t\t\t//then update the dblock of the term.\n\t\t\t\t\t\t\t\t\t\tif(token1000DocHash.containsKey(termId)){\n\t\t\t\t\t\t\t\t\t\t\tMultimap<String, String> dBlockUpdate = token1000DocHash.get(termId);\n\t\t\t\t\t\t\t\t\t\t\t//Multimap<Integer, Integer> dBlockUpdate = token1000DocHash.get(matcher.group(i));\n\t\t\t\t\t\t\t\t\t\t\tif(dBlockUpdate.containsKey(id)){\n\t\t\t\t\t\t\t\t\t\t\t\tdBlockUpdate.put(String.valueOf(id), String.valueOf(matcher.start()));\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t\t\tdBlockUpdate.put(String.valueOf(id), String.valueOf(matcher.start()));\n\t\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\t//if term is not present in the token1000hash\n\t\t\t\t\t\t\t\t\t\t//then add the token with its dBlock\n\t\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t\tMultimap<String, String> dBlockInsert = ArrayListMultimap.create();\n\t\t\t\t\t\t\t\t\t\t\tdBlockInsert.put(String.valueOf(id), String.valueOf(matcher.start()));\n\t\t\t\t\t\t\t\t\t\t\ttoken1000DocHash.put(termId, dBlockInsert);\t\n\t\t\t\t\t\t\t\t\t\t}\t\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t// if the term is not present I will put the term into allTermHash\n\t\t\t\t\t\t\t\t\t// put corresponding value into the token1000DocHash and increment\n\t\t\t\t\t\t\t\t\t// termIndex\n\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\tallTermHash.put(matcher.group(i),termIndex);\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tMultimap<String, String> dBlockInsert = ArrayListMultimap.create();\n\t\t\t\t\t\t\t\t\t\tdBlockInsert.put(String.valueOf(id), String.valueOf(matcher.start()));\n\t\t\t\t\t\t\t\t\t\ttoken1000DocHash.put(termIndex, dBlockInsert);\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\ttermIndex++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tdocLength++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(id%1000 == 0){\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t// then dump index file to HDD\n\t\t\t\t\t\t\t\t\twriteInvertedIndex(token1000DocHash,\"token1000DocHash\");\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t// update catalog file\n\t\t\t\t\t\t\t\t\t// to populate catalogHash with the offset\n\t\t\t\t\t\t\t\t\tfor(Entry<Integer, Multimap> entry : token1000DocHash.entrySet()){\n\t\t\t\t\t\t\t\t\t\tif(catalogHash.containsKey(entry.getKey())){\n\t\t\t\t\t\t\t\t\t\t\tint len = (entry.getKey()+\":\"+entry.getValue()).length();\n\t\t\t\t\t\t\t\t\t\t\t//String offset = String.valueOf(startOffset)+\":\"+String.valueOf(len);\n\t\t\t\t\t\t\t\t\t\t\tMultimap<String, String> catUpdate = catalogHash.get(entry.getKey());\n\t\t\t\t\t\t\t\t\t\t\tcatUpdate.put(String.valueOf(startOffset), String.valueOf(len));\n\t\t\t\t\t\t\t\t\t\t\tcatalogHash.put(entry.getKey(), catUpdate);\n\t\t\t\t\t\t\t\t\t\t\tstartOffset += len+2;\n\t\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\telse{\n\t\t\t\t\t\t\t\t\t\t\tint len = (entry.getKey()+\":\"+entry.getValue()).length();\n\t\t\t\t\t\t\t\t\t\t\t//String offset = String.valueOf(startOffset)+\":\"+String.valueOf(len);\n\t\t\t\t\t\t\t\t\t\t\tMultimap<String, String> catInsert = ArrayListMultimap.create();\n\t\t\t\t\t\t\t\t\t\t\tcatInsert.put(String.valueOf(startOffset), String.valueOf(len));\n\t\t\t\t\t\t\t\t\t\t\tcatalogHash.put(entry.getKey(), catInsert);//entry.getValue());\n\t\t\t\t\t\t\t\t\t\t\tstartOffset += len+2;\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t//clear the token1000DocHash\n\t\t\t\t\t\t\t\t\ttoken1000DocHash.clear();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tdocumentHash.put(docID, \"\"+id+\":\"+docLength);\n\t\t\t\t\t\t\tid++;\n\t\t\t\t\t\t\ttext = new StringBuffer();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(line.contains(\"<DOCNO>\")){\n\t\t\t\t\t\t\t++docNumber;\n\t\t\t\t\t\t\tdocID = line.substring(8, 21);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(line.contains(\"<TEXT>\")){\n\t\t\t\t\t\t\t++textCount;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if((line.contains(\"<DOC>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"</DOC>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"<DOCNO>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"<FILEID>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"<FIRST>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"<SECOND>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"<HEAD>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"</HEAD>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"<BYLINE>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"</BYLINE>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"<UNK>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"</UNK>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"<DATELINE>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"<NOTE>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"</NOTE>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"</TEXT>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"<TEXT>\"))){\n\t\t\t\t\t\t\t ++noText;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(endDoc == docCount - 1){\n\t\t\t\t\t\t\ttext.append(line);\n\t\t\t\t\t\t\ttext.append(\" \");\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 }//end of if - to check if this is a file and parse.\n\t\t\t \n\t\t\t}//end of for loop to load each file\n\t\t\t\n\t\t//}//end of while loop \n\t\t\n\t// write catalogfile to the hdd to check.\n\t\t\t\n\t\t\t// then dump index file to HDD\n\t\t\twriteInvertedIndex(token1000DocHash,\"token1000DocHash\");\n\t\t\t\n\t\t\t// update catalog file\n\t\t\t// to populate catalogHash with the offset\n\t\t\tfor(Entry<Integer, Multimap> entry : token1000DocHash.entrySet()){\n\t\t\t\tif(catalogHash.containsKey(entry.getKey())){\n\t\t\t\t\tint len = (entry.getKey()+\":\"+entry.getValue()).length();\n\t\t\t\t\t//String offset = String.valueOf(startOffset)+\":\"+String.valueOf(len);\n\t\t\t\t\tMultimap<String, String> catUpdate = catalogHash.get(entry.getKey());\n\t\t\t\t\tcatUpdate.put(String.valueOf(startOffset), String.valueOf(len));\n\t\t\t\t\tcatalogHash.put(entry.getKey(), catUpdate);\n\t\t\t\t\tstartOffset += len+2;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tint len = (entry.getKey()+\":\"+entry.getValue()).length();\n\t\t\t\t\t//String offset = String.valueOf(startOffset)+\":\"+String.valueOf(len);\n\t\t\t\t\tMultimap<String, String> catInsert = ArrayListMultimap.create();\n\t\t\t\t\tcatInsert.put(String.valueOf(startOffset), String.valueOf(len));\n\t\t\t\t\tcatalogHash.put(entry.getKey(), catInsert);//entry.getValue());\n\t\t\t\t\tstartOffset += len+2;\n\t\t\t\t\t\n\t\t\t\t}\t\t\t\t\t\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\twriteInvertedIndex(catalogHash,\"catalogHash\");\n\t\t\tprintHashMapSI(allTermHash);\n\t\t\tprintHashMapSS(documentHash);\n\t\t\t\n\t\t\tlong InvIndstartOffset = 0;\n\t\t\t\n\t\t\t//write it to file\n \n\t\t\t//change the finalcatalogHash to the form termid:startoffset:length\n\t\t\tfor (Integer name: catalogHash.keySet()){\n\t String key = name.toString();\n\t String value = catalogHash.get(name).toString(); \n\t //System.out.println(key + \" \" + value); \n\t String finalTermIndex = genInvertedIndex(key, value);\n\t finalTermIndex = key+\":\"+finalTermIndex;\n\t int indexLength = finalTermIndex.length();\n\t \n\t \n\t PrintWriter writer = new PrintWriter(new BufferedWriter\n\t \t\t(new FileWriter(\"C:/Users/Naveen/Desktop/TestRuns/LastRun/InvertedIndex\", true)));\n\t writer.println(finalTermIndex);\n\t writer.close();\n\t \n\t //update the finalcatalogHash\n\t //Multimap<String, String> catInsert = ArrayListMultimap.create();\n\t\t\t\t//catInsert.put(String.valueOf(InvIndstartOffset), String.valueOf(indexLength));\n\t\t\t\tfinalCatalogHash.put(name, String.valueOf(InvIndstartOffset)+\":\"+String.valueOf(indexLength));//entry.getValue());\n\t\t\t\tInvIndstartOffset += indexLength+2;\n\t \n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tprintHashMapIS(finalCatalogHash);\n\t\t\t\n\t}",
"void indexReset();",
"public void setUp() throws Exception {\n Project project = new Project();\n\n IndexTask task = new IndexTask();\n FileSet fs = new FileSet();\n fs.setDir(new File(docsDir));\n task.addFileset(fs);\n task.setOverwrite(true);\n task.setDocumentHandler(docHandler);\n task.setIndex(new File(indexDir));\n task.setProject(project);\n task.execute();\n\n searcher = new IndexSearcher(indexDir);\n analyzer = new StopAnalyzer();\n }",
"@Transactional(readOnly = true)\n public Result index() {\n this.jpaApi.withTransaction(() -> {\n if(loader.dato ==0) {\n loader.excecute();\n }\n });\n\n return ok(\"application is ready:\"+loader.dato);\n }",
"@Override\r\n protected void parseDocuments()\r\n {\n\r\n }",
"Boolean checkIndexing(Long harvestResultOid) throws DigitalAssetStoreException;"
] |
[
"0.64354753",
"0.62434554",
"0.61882335",
"0.6187969",
"0.6073863",
"0.6073863",
"0.60702884",
"0.6070067",
"0.60517555",
"0.60506546",
"0.60473615",
"0.6041839",
"0.6026254",
"0.60171074",
"0.5990171",
"0.5988812",
"0.5966856",
"0.59592086",
"0.5945307",
"0.5934672",
"0.59035224",
"0.5900394",
"0.5891789",
"0.5882668",
"0.58683836",
"0.5859728",
"0.58255196",
"0.5824056",
"0.580255",
"0.5790951",
"0.57635266",
"0.57599956",
"0.57596964",
"0.57572",
"0.5737241",
"0.57282096",
"0.5720688",
"0.5709582",
"0.5704223",
"0.569832",
"0.56928957",
"0.5688692",
"0.5667956",
"0.5667075",
"0.5663704",
"0.5660835",
"0.5659531",
"0.5652155",
"0.56399167",
"0.56380546",
"0.56351006",
"0.56313926",
"0.5630032",
"0.56226605",
"0.56094825",
"0.55889606",
"0.5586606",
"0.55788094",
"0.55627656",
"0.55451196",
"0.5539801",
"0.55347127",
"0.5529575",
"0.5529426",
"0.5528445",
"0.55205727",
"0.55127853",
"0.5504411",
"0.55004406",
"0.54956335",
"0.5493664",
"0.5492705",
"0.54918194",
"0.5481199",
"0.54778177",
"0.5463162",
"0.5460172",
"0.54479367",
"0.54425216",
"0.5441941",
"0.54416037",
"0.5441494",
"0.5440895",
"0.5429295",
"0.5428792",
"0.5424498",
"0.5415059",
"0.541492",
"0.54118145",
"0.5410446",
"0.54067534",
"0.54046446",
"0.5404523",
"0.5403463",
"0.5403119",
"0.5398045",
"0.53963405",
"0.5396293",
"0.5395386",
"0.53922814",
"0.5389074"
] |
0.0
|
-1
|
Created by ccavusoglu on 23.06.2016.
|
public interface DietView extends MvpView {
void showDiet(Diet diet);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n public void perish() {\n \n }",
"private stendhal() {\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\n\tpublic void comer() {\n\t\t\n\t}",
"public final void mo51373a() {\n }",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n public void func_104112_b() {\n \n }",
"private static void cajas() {\n\t\t\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\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\n\tpublic void anular() {\n\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"@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 }",
"private void poetries() {\n\n\t}",
"@Override\n void init() {\n }",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"public void mo38117a() {\n }",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\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\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n public int describeContents() { return 0; }",
"private void init() {\n\n\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\n protected void getExras() {\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n public void init() {}",
"public void mo4359a() {\n }",
"@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 public void init() {\n\n }",
"@Override\n public void init() {\n\n }",
"@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\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n public void memoria() {\n \n }",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {}",
"@Override\n protected void init() {\n }",
"private void m50366E() {\n }",
"@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\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\n\tprotected void initialize() {\n\n\t}",
"private Rekenhulp()\n\t{\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\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 einkaufen() {\n\t}",
"private void kk12() {\n\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n public void initialize() { \n }",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\n\tpublic void init()\n\t{\n\n\t}",
"@Override\n\tpublic void init() {\n\t}",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"public void mo6081a() {\n }",
"Petunia() {\r\n\t\t}",
"protected boolean func_70814_o() { return true; }",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\n public void initialize() {}",
"@Override\n public void initialize() {}",
"@Override\n public void initialize() {}",
"private void init() {\n\n\n\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tprotected void initialize() {\n\t}",
"@Override\n\tprotected void initialize() {\n\t}",
"@Override\n\t\tpublic void init() {\n\t\t}"
] |
[
"0.6039132",
"0.5919425",
"0.58356893",
"0.57448405",
"0.57448405",
"0.5743661",
"0.56722695",
"0.5627965",
"0.56211025",
"0.5620127",
"0.5615706",
"0.5600935",
"0.56007993",
"0.5597462",
"0.55868626",
"0.5567748",
"0.55470955",
"0.5545461",
"0.5542",
"0.5530306",
"0.5530306",
"0.5530306",
"0.5530306",
"0.5530306",
"0.55258363",
"0.5517255",
"0.5515378",
"0.5508139",
"0.5504554",
"0.5494893",
"0.5491406",
"0.5483718",
"0.5483718",
"0.5483718",
"0.5483718",
"0.5483718",
"0.5483718",
"0.5471167",
"0.5469969",
"0.54556507",
"0.5444937",
"0.54413956",
"0.5438454",
"0.5438454",
"0.54378814",
"0.54367894",
"0.5434918",
"0.5434918",
"0.5431906",
"0.5431906",
"0.5425708",
"0.5425708",
"0.5425708",
"0.5423243",
"0.5417493",
"0.5417187",
"0.5397192",
"0.53924185",
"0.53902817",
"0.5387033",
"0.5381865",
"0.53798604",
"0.53798604",
"0.53798604",
"0.53746885",
"0.53746885",
"0.53746885",
"0.53735274",
"0.5364296",
"0.53634393",
"0.5353112",
"0.5353112",
"0.5353112",
"0.5353112",
"0.5353112",
"0.5353112",
"0.5353112",
"0.5349101",
"0.5343212",
"0.534105",
"0.5340752",
"0.53405714",
"0.5333347",
"0.5330817",
"0.53279257",
"0.5326803",
"0.53239596",
"0.530287",
"0.527112",
"0.5268767",
"0.52685237",
"0.52546895",
"0.5249105",
"0.5249105",
"0.5249105",
"0.52441835",
"0.5243684",
"0.52433646",
"0.52431047",
"0.52431047",
"0.52370334"
] |
0.0
|
-1
|
TODO Autogenerated method stub
|
@Override
public void onClick(View v) {
Intent intent = new Intent();
intent.setClass(DataStoredActivity.this, SharePersActivity.class);
startActivity(intent);
}
|
{
"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
|
TODO Autogenerated method stub
|
@Override
public void onClick(View v) {
Intent intent = new Intent();
intent.setClass(DataStoredActivity.this, FileStoredActivity.class);
startActivity(intent);
}
|
{
"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
|
TODO Autogenerated method stub
|
@Override
public void onClick(View v) {
Intent intent = new Intent();
intent.setClass(DataStoredActivity.this, FileSdCardActivity.class);
startActivity(intent);
}
|
{
"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
|
TODO Autogenerated method stub
|
@Override
public void onClick(View v) {
Intent intent = new Intent();
intent.setClass(DataStoredActivity.this, SqliteActivity.class);
startActivity(intent);
}
|
{
"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
|
TODO Autogenerated method stub
|
@Override
public void onClick(View v) {
Intent intent = new Intent();
intent.setClass(DataStoredActivity.this, ContenProActivity.class);
startActivity(intent);
}
|
{
"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
|
TODO Autogenerated method stub
|
@Override
public void onClick(View v) {
Intent intent = new Intent();
intent.setClass(DataStoredActivity.this, DataHttpActivity.class);
startActivity(intent);
}
|
{
"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
|
Inflate the menu; this adds items to the action bar if it is present.
|
@Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.data_stored, 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();
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 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 // 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 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 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\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\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 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\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 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 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 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.79041183",
"0.7805934",
"0.77659106",
"0.7727251",
"0.7631684",
"0.7621701",
"0.75839096",
"0.75300384",
"0.74873656",
"0.7458051",
"0.7458051",
"0.7438486",
"0.742157",
"0.7403794",
"0.7391802",
"0.73870087",
"0.7379108",
"0.7370295",
"0.7362194",
"0.7355759",
"0.73454577",
"0.734109",
"0.73295504",
"0.7327726",
"0.73259085",
"0.73188347",
"0.731648",
"0.73134047",
"0.7303978",
"0.7303978",
"0.7301588",
"0.7298084",
"0.72932935",
"0.7286338",
"0.7283324",
"0.72808945",
"0.72785115",
"0.72597474",
"0.72597474",
"0.72597474",
"0.725962",
"0.7259136",
"0.7249966",
"0.7224023",
"0.721937",
"0.7216621",
"0.72045326",
"0.7200649",
"0.71991026",
"0.71923256",
"0.71851367",
"0.7176769",
"0.7168457",
"0.71675026",
"0.7153402",
"0.71533287",
"0.71352696",
"0.71350807",
"0.71350807",
"0.7129153",
"0.7128639",
"0.7124181",
"0.7123387",
"0.7122983",
"0.71220255",
"0.711715",
"0.711715",
"0.711715",
"0.711715",
"0.7117043",
"0.71169263",
"0.7116624",
"0.71149373",
"0.71123946",
"0.7109806",
"0.7108778",
"0.710536",
"0.7098968",
"0.70981944",
"0.7095771",
"0.7093572",
"0.7093572",
"0.70862055",
"0.7082207",
"0.70808214",
"0.7080366",
"0.7073644",
"0.7068183",
"0.706161",
"0.7060019",
"0.70598614",
"0.7051272",
"0.70374316",
"0.70374316",
"0.7035865",
"0.70352185",
"0.70352185",
"0.7031749",
"0.703084",
"0.7029517",
"0.7018633"
] |
0.0
|
-1
|
Get the WebApp context we want to work with
|
public static String getContext(HttpServletRequest request) {
String context = request.getParameter(CONTEXT_KEY);
if (context == null && Server.getInstance().getAllKnownInternalContexts().size() == 1) {
context = (String) Server.getInstance().getAllKnownInternalContexts().toArray()[0];//req.getContextPath();
}
// If no or invalid context, display a list of available WebApps
if (context == null || Server.getInstance().getApplication(context) == null) {
return null;
} else {
return context;
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public static WebContext getInstance() {\n return webContext;\n }",
"public static Context getContext(){\n return appContext;\n }",
"ApplicationContext getAppCtx();",
"public static Context getAppContext() {\n return _BaseApplication.context;\n }",
"public ServletContext getContext() {\r\n\t\treturn new ContextWrapper(getEvent().getServletContext());\r\n\t}",
"public ServletContext getApplication() {\n return servletRequest.getServletContext();\n }",
"public static ApplicationContext getApplicationContext() {\n return appContext;\n }",
"public static ApplicationContext getApplicationContext() {\r\n\t\treturn applicationContext;\r\n\t}",
"public Context getApplicationContext();",
"static Application getContext() {\n if (ctx == null)\n // TODO: 2019/6/18\n// throw new RuntimeException(\"please init LogXixi\");\n return null;\n else\n return ctx;\n }",
"public static Context getContext() {\n\t\treturn context;\n\t}",
"public static Context getContext() {\n\t\treturn context;\n\t}",
"Context getContext() {\n Context context = mContextRef.get();\n return context != null ? context : AppUtil.getAppContext();\n }",
"public static Context getContext() {\n if (sContext == null) {\n throw new RuntimeException(APPLICATION_CONTEXT_IS_NULL);\n }\n return sContext;\n }",
"public ApplicationContext getApplicationContext()\n {\n return this.applicationContext;\n }",
"public ApplicationContext getApplicationContext() {\n return applicationContext;\n }",
"public Context getContext() {\n return contextMain;\n }",
"public static Context getContext() {\n\t\treturn instance;\n\t}",
"public static ApplicationContext getContext() {\n if (context == null) {\n CompilerExtensionRegistry.setActiveExtension( OTA2CompilerExtensionProvider.OTA2_COMPILER_EXTENSION_ID );\n }\n return context;\n }",
"public ServletContext getServletContext() {\n\t\treturn _context;\n\t}",
"public Context getContext() {\n if (context == null) {\n try {\n context = new InitialContext();\n } catch (NamingException exception) {\n }\n }\n return context;\n }",
"public ServletContext getServletContext() {\n return this.context;\n }",
"@Override\n public Context getContext() {\n return this.getApplicationContext();\n }",
"public static Context getApplicationContext() { return mApplicationContext; }",
"public Context getContext() {\n return context;\n }",
"protected RestContext getContext() {\n\t\tif (context.get() == null)\n\t\t\tthrow new InternalServerError(\"RestContext object not set on resource.\");\n\t\treturn context.get();\n\t}",
"public Context getContext() {\r\n\t\treturn context;\r\n\t}",
"public Context getContext() {\n\t\treturn context;\n\t}",
"public Context getContext() {\n\t\treturn ctx;\n\t}",
"public Context getContext() {\n if (context == null) {\n context = Model.getSingleton().getSession().getContext(this.contextId);\n }\n return context;\n }",
"Context getContext();",
"private Context getApplicationContext() {\n\t\treturn this.cordova.getActivity().getApplicationContext();\n\t}",
"private Context getApplicationContext() {\n\t\treturn this.cordova.getActivity().getApplicationContext();\n\t}",
"public ContextRequest getContext() {\n\t\treturn context;\n\t}",
"public StaticContext getUnderlyingStaticContext() {\n return env;\n }",
"public abstract ApplicationLoader.Context context();",
"public static Context getAppContext() {\n return mContext;\n }",
"public UserContext getUserContext();",
"final protected ServletBeanContext getServletBeanContext()\n {\n if (_beanContext == null)\n {\n ControlContainerContext ccc = ControlThreadContext.getContext();\n if (! (ccc instanceof ServletBeanContext))\n throw new IllegalStateException(\"No ServletBeanContext available\");\n\n _beanContext = (ServletBeanContext)ccc;\n }\n return _beanContext;\n }",
"public String getContext() { return context; }",
"public String getContext() {\n return context;\n }",
"public String getContext() {\n return context;\n }",
"public String getContext() {\n return context;\n }",
"Context context();",
"Context context();",
"public ServletContext getServletContext() {\n/* 92 */ return (ServletContext)getSource();\n/* */ }",
"public IWDContext wdGetAPI() {\r\n return getContext();\r\n }",
"@Override\r\n\tpublic Context getContext() {\r\n\t\treturn this.context;\r\n\t}",
"public Object getContextObject() {\n return context;\n }",
"public static ServletContext getServletContext() {\n assert context != null;\n if (context == null)\n throw new IllegalStateException();\n \n return context;\n }",
"public Context getContext() {\n return this.mService.mContext;\n }",
"public Context getContext() {\n\t\treturn null;\n\t}",
"private DiaryApplication getApp() {\n ServletContext application = (ServletContext) context.getMessageContext().get(MessageContext.SERVLET_CONTEXT);\n synchronized (application) {\n DiaryApplication diaryApp = (DiaryApplication) application.getAttribute(\"diaryApp\");\n if (diaryApp == null) {\n try {\n diaryApp = new DiaryApplication();\n diaryApp.setAllPath(application.getRealPath(\"WEB-INF/bookings.xml\"), application.getRealPath(\"WEB-INF/students.xml\"), application.getRealPath(\"WEB-INF/tutors.xml\"));\n application.setAttribute(\"diaryApp\", diaryApp);\n } catch (JAXBException ex) {\n Logger.getLogger(soapService.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IOException ex) {\n Logger.getLogger(soapService.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n return diaryApp;\n }\n }",
"protected ServletContext getServletContext(String context) {\n\t\treturn ((ApplicationInfo)Server.getInstance().getApplication(context).getApplicationInfo()).getServletContext();\n\t}",
"public static Context getResourceContext() {\n return context;\n }",
"@Override\r\n\tpublic Context getContext()\r\n\t{\n\t\treturn this.getActivity().getApplicationContext();\r\n\t}",
"private WebContext() {\n }",
"public static String getFrameworkContext() {\r\n if (frameworkContext == null) {\r\n frameworkContext = PropertiesProvider.getInstance().getProperty(\"server.context\", \"/escidoc\");\r\n if (!frameworkContext.startsWith(\"/\")) {\r\n frameworkContext = \"/\" + frameworkContext;\r\n }\r\n }\r\n return frameworkContext;\r\n }",
"public static ApplicationContext getInstance()\n\t{\n\t\treturn SingletonHolder.INSTANCE;\n\t}",
"public String getContext() {\n\t\treturn context;\n\t}",
"public String getContext() {\r\n\t\treturn context;\r\n\t}",
"public Context getContext() {\n\t\treturn mContext;\n\t}",
"public static FHIRRequestContext get() {\n FHIRRequestContext result = contexts.get();\n if (log.isLoggable(Level.FINEST)) {\n log.finest(\"FHIRRequestContext.get: \" + result.toString());\n }\n return result;\n }",
"private static ExternalContext getContext() {\n\tExternalContext externalContext=null;\n\tFacesContext facesContext=FacesContext.getCurrentInstance();\n\tif(facesContext==null) {\n\t return null;\n\t}\n\t\n\ttry {\n\t externalContext=facesContext.getExternalContext();\n\t}\n\tcatch(Exception ex) {\n\t ex.printStackTrace();\n\t}\n\n\treturn externalContext;\n }",
"public static BundleContext getContext() {\n return context;\n }",
"public String getApplicationContext()\n {\n return configfile.getApplicationPath(getASPManager().getCurrentHostIndex());\n }",
"static synchronized Context getContext() {\n checkState();\n return sInstance.mContext;\n }",
"private AnnotationConfigWebApplicationContext getGlobalApplicationContext() {\r\n\t\tAnnotationConfigWebApplicationContext rootContext = new AnnotationConfigWebApplicationContext();\r\n\t\t//rootContext.register(ApplicationConfig.class);\r\n\t\trootContext.register(new Class[] {ApplicationConfig.class});\r\n\t\treturn rootContext;\r\n\t}",
"private Context getContext() {\n return mContext;\n }",
"private Context getContext() {\n return mContext;\n }",
"public ServletContext getServletContext() {\n if (parent!=this)\n return parent.getServletContext();\n else\n return super.getServletContext();\n }",
"public Context getContext() {\n return mContext;\n }",
"private Context getThreadContext() throws NamingException {\n final ThreadContext threadContext = ThreadContext.getThreadContext();\n if (skipEjbContext(threadContext)) {\n return ContextBindings.getClassLoader();\n }\n final Context context = threadContext.getBeanContext().getJndiEnc();\n return context;\n }",
"public Context getContext() {\n return this;\n }",
"public ContextInstance getContextInstance() {\n\t\treturn token.getProcessInstance().getContextInstance();\r\n\t}",
"ContextBucket getContext() {\n\treturn context;\n }",
"public ExecutionContext getContext();",
"RenderingContext getContext();",
"public ActionBeanContext getContext() {\r\n return context;\r\n }",
"Map<String, Object> getContext();",
"public final Context getContext() {\n return mContext;\n }",
"public Context getContext() {\n return this.mContext;\n }",
"public Context getContext() {\n return this.mContext;\n }",
"IContextNode wdGetContext();",
"public ModuleContext getContext() {\r\n return context;\r\n }",
"public PortletContext getPortletContext ()\n {\n \treturn config.getPortletContext();\n }",
"public URI getCurrentContext();",
"public Context getContext() { \n if (_logger.isLoggable(Level.FINE)) {\n _logger.fine(\"IN getContext()\");\n }\n try {\n return new InitialContext();\n } catch (Exception e) {\n throw new EJBException(_logger.getResourceBundle().getString(\n \"ejb.embedded.cannot_create_context\"), e);\n }\n }",
"private Context getContext() throws Exception {\n\t\tif (ctx != null)\n\t\t\treturn ctx;\n\n\t\tProperties props = new Properties();\n\t\tprops.put(Context.PROVIDER_URL, \"jnp://\" + endpoint);\n\t\tprops.put(Context.INITIAL_CONTEXT_FACTORY,\n\t\t\t\t\"org.jnp.interfaces.NamingContextFactory\");\n\t\tprops.put(Context.URL_PKG_PREFIXES,\n\t\t\t\t\"org.jboss.naming:org.jnp.interfaces\");\n\t\tctx = new InitialContext(props);\n\n\t\treturn ctx;\n\t}",
"public IRuntimeContext getContext() {\n return fContext;\n }",
"public PageContext getPageContext() {\n return this.pageContext;\n }",
"public abstract Context context();",
"public static Properties getCtx (HttpServletRequest request)\n\t{\n\t\t//\tSession\n\t\tHttpSession session = request.getSession(true);\n\t\tProperties ctx = (Properties)session.getAttribute(CONTEXT_NAME);\n\n\t\t//\tNew Context\n\t\tif (ctx == null)\n\t\t{\n\t\t\ts_log.info (\"getCtx - new (\" + request.getRemoteAddr() + \")\");\n\t\t\tctx = new Properties();\n\t\t\t//\tAdd Servlet Init Parameters\n\t\t\tServletContext sc = session.getServletContext();\n\t\t\tEnumeration en = sc.getInitParameterNames();\n\t\t\twhile (en.hasMoreElements())\n\t\t\t{\n\t\t\t\tString key = (String)en.nextElement();\n\t\t\t\tString value = sc.getInitParameter(key);\n\t\t\t\tctx.setProperty(key, value);\n\t\t\t}\n\t\t\t//\tDefault Client\n\t\t\tint AD_Client_ID = Env.getContextAsInt(ctx, \"#AD_Client_ID\");\n\t\t\tif (AD_Client_ID == 0)\n\t\t\t{\n\t\t\t\tAD_Client_ID = DB.getSQLValue(\"SELECT AD_Client_ID FROM AD_Client WHERE AD_Client_ID > 11 AND IsActive='Y'\");\n\t\t\t\tif (AD_Client_ID < 0)\n\t\t\t\t\tAD_Client_ID = 11;\t//\tGardenWorld\n\t\t\t\tEnv.setContext (ctx, \"#AD_Client_ID\", AD_Client_ID);\n\t\t\t}\n\t\t\t//\tAdd Defaults\n\t\t\tctx = getDefaults (ctx, AD_Client_ID);\n\t\t\t//\tServerContext\t- dev2/wstore\n\t\t\tctx.put(CTX_SERVER_CONTEXT, request.getServerName() + request.getContextPath());\n\n\t\t\t//\tsave it\n\t\t\tsession.setAttribute(CONTEXT_NAME, ctx);\n\t\t\ts_log.debug (\"getCtx - new #\" + ctx.size());\n\t\t//\ts_log.debug (\"getCtx - \" + ctx);\n\t\t}\n\n\t\t//\tAdd/set current user\n\t\tWebUser wu = (WebUser)session.getAttribute(WebUser.NAME);\n\t\tif (wu != null)\n\t\t{\n\t\t\tint AD_User_ID = wu.getAD_User_ID();\n\t\t\tEnv.setContext(ctx, \"#AD_User_ID\", AD_User_ID);\t\t//\tsecurity\n\t\t}\n\n\t\t//\tFinish\n\t\tsession.setMaxInactiveInterval(1800);\t//\t30 Min\tHARDCODED\n\t\tString info = (String)ctx.get(HDR_INFO);\n\t\tif (info != null)\n\t\t\tsession.setAttribute(HDR_INFO, info);\n\t\treturn ctx;\n\t}",
"public static Properties getCtx (HttpServletRequest request)\n\t{\n\t\t//\tSession\n\t\tHttpSession session = request.getSession(true);\n\t\tProperties ctx = (Properties)session.getAttribute(CONTEXT_NAME);\n\n\t\t//\tNew Context\n\t\tif (ctx == null)\n\t\t{\n\t\t\ts_log.info (\"getCtx - new (\" + request.getRemoteAddr() + \")\");\n\t\t\tctx = new Properties();\n\t\t\t//\tAdd Servlet Init Parameters\n\t\t\tServletContext sc = session.getServletContext();\n\t\t\tEnumeration en = sc.getInitParameterNames();\n\t\t\twhile (en.hasMoreElements())\n\t\t\t{\n\t\t\t\tString key = (String)en.nextElement();\n\t\t\t\tString value = sc.getInitParameter(key);\n\t\t\t\tctx.setProperty(key, value);\n\t\t\t}\n\t\t\t//\tDefault Client\n\t\t\tint AD_Client_ID = Env.getContextAsInt(ctx, \"#AD_Client_ID\");\n\t\t\tif (AD_Client_ID == 0)\n\t\t\t{\n\t\t\t\tAD_Client_ID = DB.getSQLValue(\"SELECT AD_Client_ID FROM AD_Client WHERE AD_Client_ID > 11 AND IsActive='Y'\");\n\t\t\t\tif (AD_Client_ID < 0)\n\t\t\t\t\tAD_Client_ID = 11;\t//\tGardenWorld\n\t\t\t\tEnv.setContext (ctx, \"#AD_Client_ID\", AD_Client_ID);\n\t\t\t}\n\t\t\t//\tAdd Defaults\n\t\t\tctx = getDefaults (ctx, AD_Client_ID);\n\t\t\t//\tServerContext\t- dev2/wstore\n\t\t\tctx.put(CTX_SERVER_CONTEXT, request.getServerName() + request.getContextPath());\n\n\t\t\t//\tsave it\n\t\t\tsession.setAttribute(CONTEXT_NAME, ctx);\n\t\t\ts_log.debug (\"getCtx - new #\" + ctx.size());\n\t\t//\ts_log.debug (\"getCtx - \" + ctx);\n\t\t}\n\n\t\t//\tAdd/set current user\n\t\tWebUser wu = (WebUser)session.getAttribute(WebUser.NAME);\n\t\tif (wu != null)\n\t\t{\n\t\t\tint AD_User_ID = wu.getAD_User_ID();\n\t\t\tEnv.setContext(ctx, \"#AD_User_ID\", AD_User_ID);\t\t//\tsecurity\n\t\t}\n\n\t\t//\tFinish\n\t\tsession.setMaxInactiveInterval(1800);\t//\t30 Min\tHARDCODED\n\t\tString info = (String)ctx.get(HDR_INFO);\n\t\tif (info != null)\n\t\t\tsession.setAttribute(HDR_INFO, info);\n\t\treturn ctx;\n\t}",
"public static Properties getCtx (HttpServletRequest request)\n\t{\n\t\t//\tSession\n\t\tHttpSession session = request.getSession(true);\n\t\tProperties ctx = (Properties)session.getAttribute(CONTEXT_NAME);\n\n\t\t//\tNew Context\n\t\tif (ctx == null)\n\t\t{\n\t\t\ts_log.info (\"getCtx - new (\" + request.getRemoteAddr() + \")\");\n\t\t\tctx = new Properties();\n\t\t\t//\tAdd Servlet Init Parameters\n\t\t\tServletContext sc = session.getServletContext();\n\t\t\tEnumeration en = sc.getInitParameterNames();\n\t\t\twhile (en.hasMoreElements())\n\t\t\t{\n\t\t\t\tString key = (String)en.nextElement();\n\t\t\t\tString value = sc.getInitParameter(key);\n\t\t\t\tctx.setProperty(key, value);\n\t\t\t}\n\t\t\t//\tDefault Client\n\t\t\tint AD_Client_ID = Env.getContextAsInt(ctx, \"#AD_Client_ID\");\n\t\t\tif (AD_Client_ID == 0)\n\t\t\t{\n\t\t\t\tAD_Client_ID = DB.getSQLValue(\"SELECT AD_Client_ID FROM AD_Client WHERE AD_Client_ID > 11 AND IsActive='Y'\");\n\t\t\t\tif (AD_Client_ID < 0)\n\t\t\t\t\tAD_Client_ID = 11;\t//\tGardenWorld\n\t\t\t\tEnv.setContext (ctx, \"#AD_Client_ID\", AD_Client_ID);\n\t\t\t}\n\t\t\t//\tAdd Defaults\n\t\t\tctx = getDefaults (ctx, AD_Client_ID);\n\t\t\t//\tServerContext\t- dev2/wstore\n\t\t\tctx.put(CTX_SERVER_CONTEXT, request.getServerName() + request.getContextPath());\n\n\t\t\t//\tsave it\n\t\t\tsession.setAttribute(CONTEXT_NAME, ctx);\n\t\t\ts_log.debug (\"getCtx - new #\" + ctx.size());\n\t\t//\ts_log.debug (\"getCtx - \" + ctx);\n\t\t}\n\n\t\t//\tAdd/set current user\n\t\tWebUser wu = (WebUser)session.getAttribute(WebUser.NAME);\n\t\tif (wu != null)\n\t\t{\n\t\t\tint AD_User_ID = wu.getAD_User_ID();\n\t\t\tEnv.setContext(ctx, \"#AD_User_ID\", AD_User_ID);\t\t//\tsecurity\n\t\t}\n\n\t\t//\tFinish\n\t\tsession.setMaxInactiveInterval(1800);\t//\t30 Min\tHARDCODED\n\t\tString info = (String)ctx.get(HDR_INFO);\n\t\tif (info != null)\n\t\t\tsession.setAttribute(HDR_INFO, info);\n\t\treturn ctx;\n\t}",
"public static Properties getCtx (HttpServletRequest request)\n\t{\n\t\t//\tSession\n\t\tHttpSession session = request.getSession(true);\n\t\tProperties ctx = (Properties)session.getAttribute(CONTEXT_NAME);\n\n\t\t//\tNew Context\n\t\tif (ctx == null)\n\t\t{\n\t\t\ts_log.info (\"getCtx - new (\" + request.getRemoteAddr() + \")\");\n\t\t\tctx = new Properties();\n\t\t\t//\tAdd Servlet Init Parameters\n\t\t\tServletContext sc = session.getServletContext();\n\t\t\tEnumeration en = sc.getInitParameterNames();\n\t\t\twhile (en.hasMoreElements())\n\t\t\t{\n\t\t\t\tString key = (String)en.nextElement();\n\t\t\t\tString value = sc.getInitParameter(key);\n\t\t\t\tctx.setProperty(key, value);\n\t\t\t}\n\t\t\t//\tDefault Client\n\t\t\tint AD_Client_ID = Env.getContextAsInt(ctx, \"#AD_Client_ID\");\n\t\t\tif (AD_Client_ID == 0)\n\t\t\t{\n\t\t\t\tAD_Client_ID = DB.getSQLValue(\"SELECT AD_Client_ID FROM AD_Client WHERE AD_Client_ID > 11 AND IsActive='Y'\");\n\t\t\t\tif (AD_Client_ID < 0)\n\t\t\t\t\tAD_Client_ID = 11;\t//\tGardenWorld\n\t\t\t\tEnv.setContext (ctx, \"#AD_Client_ID\", AD_Client_ID);\n\t\t\t}\n\t\t\t//\tAdd Defaults\n\t\t\tctx = getDefaults (ctx, AD_Client_ID);\n\t\t\t//\tServerContext\t- dev2/wstore\n\t\t\tctx.put(CTX_SERVER_CONTEXT, request.getServerName() + request.getContextPath());\n\n\t\t\t//\tsave it\n\t\t\tsession.setAttribute(CONTEXT_NAME, ctx);\n\t\t\ts_log.debug (\"getCtx - new #\" + ctx.size());\n\t\t//\ts_log.debug (\"getCtx - \" + ctx);\n\t\t}\n\n\t\t//\tAdd/set current user\n\t\tWebUser wu = (WebUser)session.getAttribute(WebUser.NAME);\n\t\tif (wu != null)\n\t\t{\n\t\t\tint AD_User_ID = wu.getAD_User_ID();\n\t\t\tEnv.setContext(ctx, \"#AD_User_ID\", AD_User_ID);\t\t//\tsecurity\n\t\t}\n\n\t\t//\tFinish\n\t\tsession.setMaxInactiveInterval(1800);\t//\t30 Min\tHARDCODED\n\t\tString info = (String)ctx.get(HDR_INFO);\n\t\tif (info != null)\n\t\t\tsession.setAttribute(HDR_INFO, info);\n\t\treturn ctx;\n\t}",
"public static App get(Context ctx){\n return (App) ctx.getApplicationContext();\n }",
"@Override\n public Context getApplicationContext() {\n return mView.get().getApplicationContext();\n }",
"public static BundleContext getBundleContext()\r\n {\r\n return bundleContext;\r\n }",
"protected BackendContext getBackendContext() {\n assertActivityNotNull();\n return mActivity.getBackendContext();\n }"
] |
[
"0.7910659",
"0.7766879",
"0.74202657",
"0.735761",
"0.73480266",
"0.72481567",
"0.71587044",
"0.70045614",
"0.69795",
"0.6928904",
"0.6923778",
"0.6923778",
"0.69008034",
"0.68771964",
"0.68577033",
"0.6828803",
"0.6727861",
"0.6716251",
"0.6705688",
"0.66971767",
"0.6693683",
"0.66932327",
"0.66094804",
"0.6580436",
"0.65803283",
"0.6557686",
"0.6555933",
"0.65549845",
"0.6540675",
"0.6534841",
"0.6515925",
"0.6442955",
"0.6442955",
"0.6441309",
"0.6404655",
"0.63941944",
"0.6389705",
"0.6384475",
"0.6377863",
"0.6358767",
"0.6323982",
"0.6323982",
"0.6323982",
"0.6305148",
"0.6305148",
"0.63044745",
"0.63023955",
"0.6274",
"0.626786",
"0.6265522",
"0.6263655",
"0.62606114",
"0.6245494",
"0.62445176",
"0.62408775",
"0.6229727",
"0.619693",
"0.61929953",
"0.6187565",
"0.6177798",
"0.61772984",
"0.6177028",
"0.61749506",
"0.6171924",
"0.615385",
"0.6150823",
"0.61503786",
"0.6143059",
"0.613726",
"0.613726",
"0.6126594",
"0.6106429",
"0.6096616",
"0.60912466",
"0.6077574",
"0.6069901",
"0.6066005",
"0.60494834",
"0.6041862",
"0.6040181",
"0.603685",
"0.6035078",
"0.6035078",
"0.6023343",
"0.59916794",
"0.59797776",
"0.59716254",
"0.59612155",
"0.59533024",
"0.59500515",
"0.5950034",
"0.594042",
"0.59360814",
"0.59360814",
"0.59360814",
"0.59360814",
"0.59168035",
"0.5912263",
"0.58834773",
"0.58778524"
] |
0.66008025
|
23
|
Convenience method to get the ServletContext associated with an internal context
|
protected ServletContext getServletContext(String context) {
return ((ApplicationInfo)Server.getInstance().getApplication(context).getApplicationInfo()).getServletContext();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public ServletContext getContext() {\r\n\t\treturn new ContextWrapper(getEvent().getServletContext());\r\n\t}",
"public ServletContext getServletContext() {\n\t\treturn _context;\n\t}",
"public ServletContext getServletContext() {\n return this.context;\n }",
"public ServletContext getApplication() {\n return servletRequest.getServletContext();\n }",
"public static ServletContext getServletContext() {\n assert context != null;\n if (context == null)\n throw new IllegalStateException();\n \n return context;\n }",
"final protected ServletBeanContext getServletBeanContext()\n {\n if (_beanContext == null)\n {\n ControlContainerContext ccc = ControlThreadContext.getContext();\n if (! (ccc instanceof ServletBeanContext))\n throw new IllegalStateException(\"No ServletBeanContext available\");\n\n _beanContext = (ServletBeanContext)ccc;\n }\n return _beanContext;\n }",
"public ServletContext getServletContext() {\n/* 92 */ return (ServletContext)getSource();\n/* */ }",
"public @NotNull ExtServletContext getServletContext(HttpContext context)\n {\n if (context == null)\n {\n context = createDefaultHttpContext();\n }\n\n return this.contextManager.getServletContext(context);\n }",
"public static String getContext(HttpServletRequest request) {\n\t\tString context = request.getParameter(CONTEXT_KEY);\n\t\tif (context == null && Server.getInstance().getAllKnownInternalContexts().size() == 1) {\n\t\t\tcontext = (String) Server.getInstance().getAllKnownInternalContexts().toArray()[0];//req.getContextPath();\n\t\t}\n\t\t// If no or invalid context, display a list of available WebApps\n\t\tif (context == null || Server.getInstance().getApplication(context) == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\treturn context;\n\t\t}\n\t}",
"public static Context getContext() {\n if (sContext == null) {\n throw new RuntimeException(APPLICATION_CONTEXT_IS_NULL);\n }\n return sContext;\n }",
"public static Context getContext() {\n\t\treturn context;\n\t}",
"public static Context getContext() {\n\t\treturn context;\n\t}",
"public static Context getContext(){\n return appContext;\n }",
"public ServletContext getServletContext() {\n if (parent!=this)\n return parent.getServletContext();\n else\n return super.getServletContext();\n }",
"Context getContext() {\n Context context = mContextRef.get();\n return context != null ? context : AppUtil.getAppContext();\n }",
"public ContextRequest getContext() {\n\t\treturn context;\n\t}",
"Context getContext();",
"public Context getContext() {\n\t\treturn ctx;\n\t}",
"public static HttpServletRequest getHttpServletRequest() {\n try {\n HttpServletRequest request = ((ServletRequestAttributes) RequestContextHolder.currentRequestAttributes()).getRequest();\n return request;\n } catch (Exception e) {\n // ignore if servlet request is not available, e.g. when triggered from a deadline\n return null;\n }\n }",
"static Application getContext() {\n if (ctx == null)\n // TODO: 2019/6/18\n// throw new RuntimeException(\"please init LogXixi\");\n return null;\n else\n return ctx;\n }",
"public Context getContext() {\n if (context == null) {\n try {\n context = new InitialContext();\n } catch (NamingException exception) {\n }\n }\n return context;\n }",
"public static ApplicationContext getContext() {\n if (context == null) {\n CompilerExtensionRegistry.setActiveExtension( OTA2CompilerExtensionProvider.OTA2_COMPILER_EXTENSION_ID );\n }\n return context;\n }",
"@Override\n\tpublic ServletContext getServletContext() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic ServletContext getServletContext() {\n\t\treturn null;\n\t}",
"public static Context getContext() {\r\n\t\tif (mContext == null)\r\n\t\t\treturn null;\r\n\t\telse\r\n\t\t\treturn mContext;\r\n\r\n\t}",
"public Context getContext() {\n\t\treturn context;\n\t}",
"public Context getContext() {\n\t\treturn null;\n\t}",
"public Context getContext() {\n if (context == null) {\n context = Model.getSingleton().getSession().getContext(this.contextId);\n }\n return context;\n }",
"public Context getContext() {\r\n\t\treturn context;\r\n\t}",
"CTX_Context getContext();",
"ApplicationContext getAppCtx();",
"static synchronized Context getContext() {\n checkState();\n return sInstance.mContext;\n }",
"public Context getContext() {\n return context;\n }",
"private Context getThreadContext() throws NamingException {\n final ThreadContext threadContext = ThreadContext.getThreadContext();\n if (skipEjbContext(threadContext)) {\n return ContextBindings.getClassLoader();\n }\n final Context context = threadContext.getBeanContext().getJndiEnc();\n return context;\n }",
"public static Context getContext() {\n\t\treturn instance;\n\t}",
"public ExecutionContext getContext();",
"protected RestContext getContext() {\n\t\tif (context.get() == null)\n\t\t\tthrow new InternalServerError(\"RestContext object not set on resource.\");\n\t\treturn context.get();\n\t}",
"public static RhinoServlet getServlet(Context cx) {\r\n Object o = cx.getThreadLocal(\"rhinoServer\");\r\n if (o==null || !(o instanceof RhinoServlet)) return null;\r\n return (RhinoServlet)o;\r\n }",
"IContextNode wdGetContext();",
"public static WebContext getInstance() {\n return webContext;\n }",
"public Context getContext() {\n\t\treturn mContext;\n\t}",
"private static ExternalContext getContext() {\n\tExternalContext externalContext=null;\n\tFacesContext facesContext=FacesContext.getCurrentInstance();\n\tif(facesContext==null) {\n\t return null;\n\t}\n\t\n\ttry {\n\t externalContext=facesContext.getExternalContext();\n\t}\n\tcatch(Exception ex) {\n\t ex.printStackTrace();\n\t}\n\n\treturn externalContext;\n }",
"public LoggerContext getContext(String fqcn, ClassLoader loader, boolean currentContext, URI configLocation) {\n/* 63 */ if (currentContext) {\n/* 64 */ LoggerContext ctx = ContextAnchor.THREAD_CONTEXT.get();\n/* 65 */ if (ctx != null) {\n/* 66 */ return ctx;\n/* */ }\n/* 68 */ return getDefault();\n/* 69 */ } if (loader != null) {\n/* 70 */ return locateContext(loader, configLocation);\n/* */ }\n/* 72 */ Class<?> clazz = ReflectionUtil.getCallerClass(fqcn);\n/* 73 */ if (clazz != null) {\n/* 74 */ return locateContext(clazz.getClassLoader(), configLocation);\n/* */ }\n/* 76 */ LoggerContext lc = ContextAnchor.THREAD_CONTEXT.get();\n/* 77 */ if (lc != null) {\n/* 78 */ return lc;\n/* */ }\n/* 80 */ return getDefault();\n/* */ }",
"public Context getContext() {\n return this.mService.mContext;\n }",
"RenderingContext getContext();",
"public Context getContext() {\n return contextMain;\n }",
"public Object getContextObject() {\n return context;\n }",
"public Context getApplicationContext();",
"Map<String, Object> getContext();",
"public URI getCurrentContext();",
"public Context getContext() {\n return this.mContext;\n }",
"public Context getContext() {\n return this.mContext;\n }",
"public static Context getAppContext() {\n return _BaseApplication.context;\n }",
"public String getContext() {\n return context;\n }",
"public String getContext() {\n return context;\n }",
"public String getContext() {\n return context;\n }",
"public final Context getContext() {\n return mContext;\n }",
"public Context getContext() {\n return (Context)this;\n }",
"public String getContext() { return context; }",
"public IWDContext wdGetAPI() {\r\n return getContext();\r\n }",
"private Context getContext() {\n return mContext;\n }",
"private Context getContext() {\n return mContext;\n }",
"public String getContext() {\n\t\treturn context;\n\t}",
"public Context getContext() {\n return mContext;\n }",
"public String getContext() {\r\n\t\treturn context;\r\n\t}",
"public LoggerContext getContext(String fqcn, ClassLoader loader, boolean currentContext, URI configLocation) {\n/* 39 */ return context;\n/* */ }",
"public static FHIRRequestContext get() {\n FHIRRequestContext result = contexts.get();\n if (log.isLoggable(Level.FINEST)) {\n log.finest(\"FHIRRequestContext.get: \" + result.toString());\n }\n return result;\n }",
"@Override\n public Context getContext() {\n return this.getApplicationContext();\n }",
"public static HttpServletResponse getHttpServletResponse() {\n try {\n HttpServletResponse response = ((ServletRequestAttributes) RequestContextHolder.currentRequestAttributes()).getResponse();\n return response;\n } catch (NoClassDefFoundError e) {\n // ignore if servlet request class is not available\n return null;\n } catch (IllegalStateException e) {\n // ignore if servlet request is not available, e.g. when triggered from a deadline\n return null;\n }\n }",
"@Override\r\n\tpublic Context getContext() {\r\n\t\treturn this.context;\r\n\t}",
"ContextBucket getContext() {\n\treturn context;\n }",
"long getCurrentContext();",
"public Context getContext() {\n return this;\n }",
"public static String getFrameworkContext() {\r\n if (frameworkContext == null) {\r\n frameworkContext = PropertiesProvider.getInstance().getProperty(\"server.context\", \"/escidoc\");\r\n if (!frameworkContext.startsWith(\"/\")) {\r\n frameworkContext = \"/\" + frameworkContext;\r\n }\r\n }\r\n return frameworkContext;\r\n }",
"public Context getContext() { \n if (_logger.isLoggable(Level.FINE)) {\n _logger.fine(\"IN getContext()\");\n }\n try {\n return new InitialContext();\n } catch (Exception e) {\n throw new EJBException(_logger.getResourceBundle().getString(\n \"ejb.embedded.cannot_create_context\"), e);\n }\n }",
"public static ApplicationContext getApplicationContext() {\r\n\t\treturn applicationContext;\r\n\t}",
"public StaticContext getUnderlyingStaticContext() {\n return env;\n }",
"@Override\r\n\tpublic Context getContext()\r\n\t{\n\t\treturn this.getActivity().getApplicationContext();\r\n\t}",
"public PortletContext getPortletContext ()\n {\n \treturn config.getPortletContext();\n }",
"public static ApplicationContext getApplicationContext() {\n return appContext;\n }",
"Context context();",
"Context context();",
"public static Context getResourceContext() {\n return context;\n }",
"HttpServletRequest getCurrentRequest();",
"public IRuntimeContext getContext() {\n return fContext;\n }",
"private AuthenticationContext getAuthenticationContext(String sessionID) {\n AuthenticationContextCacheKey cacheKey = new AuthenticationContextCacheKey(sessionID);\n Object cacheEntryObj = AuthenticationContextCache.getInstance().getValueFromCache(cacheKey);\n return ((AuthenticationContextCacheEntry) cacheEntryObj).getContext();\n }",
"public ComponentContext getContext()\n\t{\n\t\treturn context;\n\t}",
"public LoggerContext getContext(String fqcn, ClassLoader loader, boolean currentContext) {\n/* 57 */ return getContext(fqcn, loader, currentContext, null);\n/* */ }",
"public ModuleContext getContext() {\r\n return context;\r\n }",
"public UserContext getUserContext();",
"public com.google.protobuf.ByteString\n getContextBytes() {\n java.lang.Object ref = context_;\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 context_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"private SSLContext getSSLContext() {\n if (this.sslcontext == null) {\n this.sslcontext = createSSLContext();\n }\n return this.sslcontext;\n }",
"public com.google.protobuf.ByteString getContext() {\n return context_;\n }",
"public ActionBeanContext getContext() {\r\n return context;\r\n }",
"public BackingMapManagerContext getContext();",
"static ClassLoader contextClassLoader() {\n return Thread.currentThread().getContextClassLoader();\n }",
"com.google.protobuf.ByteString\n getContextBytes();",
"@Nullable\n default String getContext() {\n String contextName =\n String.valueOf(execute(DriverCommand.GET_CURRENT_CONTEXT_HANDLE).getValue());\n return \"null\".equalsIgnoreCase(contextName) ? null : contextName;\n }",
"public interface ServletContextAware {\r\n\r\n /**\r\n * Called by GuiceContainerFactory when initialize module.\r\n *\r\n * @param servletContext ServletContext object to be used by this object\r\n */\r\n void setServletContext(ServletContext servletContext);\r\n\r\n}",
"public static HttpServletRequest getRequest() {\r\n\t\treturn (HttpServletRequest) FacesContext.getCurrentInstance()\r\n\t\t\t\t.getExternalContext().getRequest();\r\n\t}"
] |
[
"0.7662559",
"0.7177601",
"0.7045584",
"0.6943949",
"0.6943376",
"0.69186234",
"0.6804607",
"0.6699431",
"0.6610732",
"0.64448744",
"0.644153",
"0.644153",
"0.6338586",
"0.6330983",
"0.63288975",
"0.6306642",
"0.6301448",
"0.62273324",
"0.62227494",
"0.6213034",
"0.620092",
"0.61943686",
"0.619417",
"0.619417",
"0.61864644",
"0.61292845",
"0.61268765",
"0.61214507",
"0.6109551",
"0.60936093",
"0.607215",
"0.6043436",
"0.604156",
"0.6014179",
"0.5996942",
"0.59873116",
"0.59822047",
"0.59656376",
"0.59530944",
"0.5922235",
"0.5911913",
"0.5904438",
"0.5890699",
"0.5879099",
"0.5858158",
"0.5829509",
"0.5778979",
"0.5767141",
"0.5763775",
"0.5753732",
"0.5751657",
"0.5751657",
"0.57466686",
"0.57450163",
"0.57450163",
"0.57450163",
"0.57415575",
"0.5693651",
"0.56915706",
"0.5683556",
"0.5676747",
"0.5676747",
"0.5676107",
"0.5674844",
"0.5667471",
"0.56626457",
"0.56612086",
"0.56292474",
"0.5609339",
"0.56088364",
"0.5581827",
"0.55753464",
"0.5571631",
"0.5558001",
"0.55536926",
"0.5548854",
"0.5535737",
"0.5526552",
"0.5518825",
"0.5506311",
"0.5498601",
"0.5498601",
"0.5484922",
"0.54816866",
"0.5470626",
"0.5468225",
"0.546612",
"0.5453444",
"0.5453071",
"0.54469335",
"0.544109",
"0.5440863",
"0.54393286",
"0.54260945",
"0.5425285",
"0.5423326",
"0.5420981",
"0.5417351",
"0.53988385",
"0.5390953"
] |
0.7045984
|
2
|
Sucelje koje modelira metode iteratora nad kolekcijama iz paketa hr.fer.zemris.java.custom.collections
|
public interface ElementsGetter<T> {
/**
* Metoda provjerava ima li jos elemenata
* u kolekciji
* @return boolean true ako ima jos elemenata, false ako nema
*/
public boolean hasNextElement();
/**
* Metoda dohvaca iduci element kolekcije i vraca ga.
* @return Object koji je iduci element iz kolekcije
*/
public T getNextElement();
/**
* Nad svim preostalim elementima kolekcije poziva
* metodu procesora p process(Object value).
* @param p Procesor koji hocemo pozvati nad
* preostalim elementima kolekcije.
* @throws NullPointerException ako je procesor p null
*/
default void processRemaining(Processor<? super T> p) {
Objects.requireNonNull(p);
while(hasNextElement()) {
p.process(getNextElement());
}
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n public Iterator<Map.Entry<K, V>> iterator() {\n return new SetIterator();\n }",
"@Override\r\n\tpublic Iterator<GIS_layer> iterator() {\n\t\treturn set.iterator();\r\n\t}",
"@Override public Iterator<MetaExample<L>> iterator();",
"private Iterator getEntries(){\r\n\t\tSet entries = items.entrySet();\r\n\t\treturn entries.iterator();\r\n\t}",
"public Iterator<Entry<Integer, HashMap<String, Double>>> iterator() {\r\n\t\treturn structure.entrySet().iterator();\r\n\t}",
"public abstract Iterator<C17883a<E>> mo45843b();",
"@Override\r\n Iterator<E> iterator();",
"@Override\n public Iterator<Map.Entry<String, Object>> getMetadata() {\n return new EmptyEntryIterator();\n }",
"@Override\r\n public Iterator<ValueType> iterator() {\r\n // TODO\r\n return null;\r\n }",
"public Iterator<IDatasetItem> iterateOverDatasetItems();",
"@Override\n Iterator<T> iterator();",
"@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 }",
"@Override\n public Iterator<Item> iterator(){return new ListIterator();}",
"@Override\r\n\tpublic Iterator<Key> iterator() {\n\t\treturn new ListIterator();\r\n\t}",
"public Iterator getIterator() {\n/* 87 */ return this.iterator;\n/* */ }",
"protected Iterator getNominationsSet() \n {\n return this.nominations.iterator();\n }",
"@Override\r\n\tpublic Iterator<Item> iterator() {\n\t\treturn null;\r\n\t}",
"@Test\n\tpublic void testSearchIteratorDenormalized(){\n\t\tIterator<Map<String,Object>> taxonIt = taxonDAO.searchIteratorDenormalized(-1, null, null, null, null, new String[]{\"class\"}, false, null);\n\t\t\n\t\tassertTrue(taxonIt.hasNext());\n\t\tMap<String,Object> row = null;\n\t\tint qty=0;\n\t\twhile(taxonIt.hasNext()){\n\t\t\trow = taxonIt.next();\n\t\t\tqty++;\n\t\t}\n\t\tassertEquals(1, qty);\n\t\tassertEquals(new Integer(73), (Integer)row.get(\"id\"));\n\t\tassertEquals(\"class\", (String)row.get(\"rank\"));\n\t}",
"public Iterator<K> iterator()\n {\n\treturn (new HashSet<K>(verts)).iterator();\n }",
"Iterator<TabularData> dataIterator();",
"@Override\n public Iterator<T> preOrden(){\n return (super.preOrden());\n }",
"public Iterator<MaterialType> iterator() {\n\t\treload();\n\t\treturn new IteratorImpl(); \n\t}",
"@Override\n\t\tpublic Iterator<Community> iterator() {\n\t\t\treturn null;\n\t\t}",
"@Override\r\n\t\t\tpublic Iterator<K> iterator() {\t\t\t//iterator() returns a ViewIterator\t\r\n\t\t\t\treturn new ViewIterator<K>() {\t\t//ViewIterator needs to define the next() method\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic K next() {\r\n\t\t\t\t\t\treturn nextEntry().getKey();//next() returns the key\r\n\t\t\t\t\t}\r\n\t\t\t\t};\r\n\t\t\t}",
"@Override\n public Iterator<Set<E>> iterator() {\n return new DisjointSetIterator(theSet);\n }",
"public void testEntrySetIteratorHasProperMappings() {\n return;\r\n }",
"@Override\n public Iterator<Pair<K, V>> iterator() {\n return new Iterator<Pair<K, V>>() {\n private int i = 0, j = -1;\n private boolean _hasNext = true;\n\n @Override\n public boolean hasNext() {\n return _hasNext;\n }\n\n @Override\n public Pair<K, V> next() {\n Pair<K, V> r = null;\n if (j >= 0) {\n List<Pair<K, V>> inl = l.get(i);\n r = inl.get(j++);\n if (j > inl.size())\n j = -1;\n }\n else {\n for (; i < l.size(); ++i) {\n List<Pair<K, V>> inl = l.get(i);\n if (inl == null)\n continue;\n r = inl.get(0);\n j = 1;\n }\n }\n if (r == null)\n _hasNext = false;\n return r;\n }\n };\n }",
"public Iterator<MapElement> iterator() {\n return this;\n }",
"@Override\npublic Iterator<Key> iterator() {\n\treturn null;\n}",
"@Override\r\n\tpublic Iterator createIterator() {\n\t\treturn bestSongs.values().iterator();\r\n\t}",
"@Override\n public Iterator<T> iterator() {\n return items.iterator();\n }",
"@Override\n public Iterator<T> inOrden(){\n return (super.inOrden());\n }",
"@Override\n\tpublic Iterator<K> iterator() {\n\t\treturn null;\n\t}",
"public Iterator<String> fieldIterator() { return flds_lu.keySet().iterator(); }",
"@Override\n\tpublic Iterator<ItemT> iterator() {\n\t\treturn null;\n\t}",
"public TW<E> iterator() {\n ImmutableMultiset immutableMultiset = (ImmutableMultiset) this;\n return new N5(immutableMultiset, immutableMultiset.entrySet().iterator());\n }",
"@Override\n public Iterator<E> iterator() {\n return new HashBagIterator<>(this, map.entrySet().iterator());\n }",
"public Iterable<MapElement> elements() {\n return new MapIterator() {\n\n @Override\n public MapElement next() {\n return findNext(true);\n }\n \n };\n }",
"@Override\r\n\tpublic Iterator<V> iterator() {\r\n\t\treturn store.iterator();\r\n\t}",
"public Iterator<DystoreTuple> iterator()\t{ return tuple_data.iterator(); }",
"private static void iterator() {\n\t\t\r\n\t}",
"public Iterator<Item> iterator() { return new ListIterator(); }",
"public Iterator iterator() {\n\t return new EntryIterator(set.iterator());\n\t}",
"SingelIterator() {\n neste = listehode;\n forrige = listehode;\n }",
"@Override\n public Iterator<Space> iterator() {\n return row.iterator();\n }",
"@Override\n\tpublic Iterator<T> iterator() {\n\t\treturn graph.keySet().iterator();\n\t}",
"@Override\n\t\tpublic ListIterator<Community> listIterator() {\n\t\t\treturn null;\n\t\t}",
"@Test\r\n\tpublic void testIterator() {\r\n\t\tIterator<Munitions> iter = list.iterator();\r\n\t\twhile (iter.hasNext()) {\r\n\t\t\tAssert.assertNotNull(iter.next());\r\n\t\t}\r\n\t}",
"@Override\r\n\tpublic Iterator<TableEntry<K, V>> iterator() {\r\n\t\treturn new IteratorImpl();\r\n\t}",
"@Override\n public Iterator<Entity> iterator() {\n return entities.iterator();\n }",
"@Override\n\tpublic Iterator<Value> iterator() {\n\t\treturn null;\n\t}",
"public Iterator<Item> iterator() { \n return new ListIterator(); \n }",
"@Override\n public Iterator<Entry<Integer, T>> iterator() {\n List<Entry<Integer, T>> pairs = new ArrayList<Entry<Integer, T>>(count);\n\n for(int i = 0; i < count; i++) {\n pairs.add(new MapEntry<T>(extractKey(buckets[i]), (T)data[i]));\n }\n\n return pairs.iterator();\n }",
"public DbIterator iterator() {\n // some code goes here\n //throw new UnsupportedOperationException(\"please implement me for proj2\");\n List<Tuple> tuparr = new ArrayList<Tuple>();\n Type[] typearr = new Type[]{gbfieldtype, Type.INT_TYPE};\n TupleDesc fortup = new TupleDesc(typearr, new String[]{null, null});\n Object[] keys = groups.keySet().toArray();\n for (int i = 0; i < keys.length; i++) {\n \n int key = (Integer) keys[i];\n \n Tuple tup = new Tuple(fortup);\n if (gbfieldtype == Type.STRING_TYPE) {\n tup.setField(0, hashstr.get(key));\n }\n else {\n tup.setField(0, new IntField(key));\n }\n //tup.setField(0, new IntField(key));\n tup.setField(1, new IntField(groups.get(key)));\n tuparr.add(tup); \n\n }\n List<Tuple> immutable = Collections.unmodifiableList(tuparr);\n TupleIterator tupiter = new TupleIterator(fortup, immutable);\n if (gbfield == NO_GROUPING) {\n List<Tuple> tuparr1 = new ArrayList<Tuple>();\n TupleDesc fortup1 = new TupleDesc(new Type[]{Type.INT_TYPE}, new String[]{null});\n Tuple tup1 = new Tuple(fortup1);\n tup1.setField(0, new IntField(groups.get(-1)));\n tuparr1.add(tup1);\n List<Tuple> immutable1 = Collections.unmodifiableList(tuparr1);\n TupleIterator tupiter1 = new TupleIterator(fortup1, immutable1);\n \n return (DbIterator) tupiter1;\n }\n return (DbIterator) tupiter;\n }",
"public void setIterator(Iterator iterator) {\n/* 96 */ this.iterator = iterator;\n/* */ }",
"public final <E extends com.matisse.reflect.MtObject> com.matisse.MtObjectIterator<E> gestionaIterator() {\n return this.<E>successorIterator(getGestionaRelationship(getMtDatabase()), gest_proyectos.Proyecto.class);\n }",
"@Override\n public Iterator<Item> iterator() {\n return new ListIterator();\n }",
"@Override\n public Iterator<E> iterator(){\n return null;\n }",
"@Override\n public Iterator<T> postOrden(){\n return (super.postOrden());\n }",
"@Override\n public Iterator<T> iterator() {\n return this;\n }",
"public UnmodifiableIterator<Entry<K, V>> iterator() {\n return mo8403b().iterator();\n }",
"public Iterator iterator() {\n maintain();\n return new MyIterator(collection.iterator());\n }",
"public DatosIteracion mejorIteracionOptimizada() {\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.mejorIteracionOptimizada(e.getValoresIteraciones()));\r\n\t\t}\r\n\t\treturn this.mejorIteracionOptimizada(array);\r\n\t}",
"@Override\n public Iterator<Value> iterator()\n {\n return values.iterator();\n }",
"public Iterator<? extends TableValue> iterator() {\n\treturn null;\n }",
"@Override\n\tpublic Iterator<T> iterator() {\n\t\t\n\t\treturn lista.iterator();\n\t}",
"@Override\n @Nonnull Iterator<T> iterator();",
"@Override\n public Iterator<Restaurant> iterator () {\n return this.restaurantList.iterator();\n }",
"@Override\r\n\tpublic Iterator<QuizCatalogus> iterator() {\n\t\treturn null;\r\n\t}",
"@Override\n\tpublic Iterator<Forme> iterator() {\n\t\treturn this.formes.iterator();\n\t}",
"@Override\r\n\tpublic Iterator<E> iterator() {\n\t\treturn null;\r\n\t}",
"@Override\n public Iterator<NFetchMode> iterator() {\n return Arrays.asList(all).iterator();\n }",
"@Override\n public Iterator<T> getHojas(){\n return (super.getHojas());\n }",
"public Set<IS> getFreItemSet();",
"public DbIterator iterator() {\n // some code goes here\n if (gbfield == Aggregator.NO_GROUPING) {\n Type[] tp = new Type[1];\n tp[0] = Type.INT_TYPE;\n String[] fn = new String[1];\n fn[0] = aop.toString();\n TupleDesc td = new TupleDesc(tp, fn);\n Tuple t = new Tuple(td);\n t.setField(0, new IntField(gbCount.get(null)));\n ArrayList<Tuple> a = new ArrayList<>();\n a.add(t);\n return new TupleIterator(td, a);\n } else {\n Type[] tp = new Type[2];\n tp[0] = gbfieldtype;\n tp[1] = Type.INT_TYPE;\n String[] fn = new String[2];\n fn[0] = gbname;\n fn[1] = aop.toString();\n TupleDesc td = new TupleDesc(tp, fn);\n ArrayList<Tuple> a = new ArrayList<>();\n for (Field f : gbCount.keySet()) {\n Tuple t = new Tuple(td);\n t.setField(0, f);\n t.setField(1, new IntField(gbCount.get(f)));\n a.add(t);\n }\n return new TupleIterator(td, a);\n }\n }",
"public Iterable<E> getData(){\n return new Iterable<E>(){\n @Override\n public Iterator<E> iterator() {\n return structure.iterator();\n }\n };\n }",
"public DbIterator iterator() {\n // some code goes here\n ArrayList<Tuple> tuples = new ArrayList<Tuple>();\n for (Field key : m_aggregateData.keySet()) {\n \tTuple nextTuple = new Tuple(m_td);\n \tint recvValue;\n \t\n \tswitch (m_op) {\n \tcase MIN: case MAX: case SUM:\n \t\trecvValue = m_aggregateData.get(key);\n \t\tbreak;\n \tcase COUNT:\n \t\trecvValue = m_count.get(key);\n \t\tbreak;\n \tcase AVG:\n \t\trecvValue = m_aggregateData.get(key) / m_count.get(key);\n \t\tbreak;\n \tdefault:\n \t\trecvValue = setInitData(); // shouldn't reach here\n \t}\n \t\n \tField recvField = new IntField(recvValue);\n \tif (m_gbfield == NO_GROUPING) {\n \t\tnextTuple.setField(0, recvField);\n \t}\n \telse {\n \t\tnextTuple.setField(0, key);\n \t\tnextTuple.setField(1, recvField);\n \t}\n \ttuples.add(nextTuple);\n }\n return new TupleIterator(m_td, tuples);\n }",
"public static void main(String[] args) {\n\t\tProduct proone=new Product();\r\n\t\tproone.setProdid(10001);\r\n\t\tproone.setProdname(\"lg\");\r\n\t\tproone.setProdprice(1181.11);\r\n\t\t\r\n\t\tProduct protwo=new Product();\r\n\t\tprotwo.setProdid(10008);\r\n\t\tprotwo.setProdname(\"lg\");\r\n\t\tprotwo.setProdprice(1181.11);\r\n\t\t\r\n\t\tProduct prothree=new Product();\r\n\t\tprothree.setProdid(10011);\r\n\t\tprothree.setProdname(\"lg\");\r\n\t\tprothree.setProdprice(1181.11);\r\n\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n /* Map<Integer,String> myMap=new HashMap<>();\r\n myMap.put(1, \"abcd\");\r\n myMap.put(2,\"life\");\r\n myMap.put(3,\"veena\");\r\n */\r\n\t\t Map<Integer,Product> myMap=new HashMap<>();\r\n\t myMap.put(1, protwo);\r\n\t myMap.put(3,prothree);\r\n System.out.println(myMap);\r\n System.out.println(myMap.keySet());//give all keys\r\n System.out.println(myMap.get(2));\r\n System.out.println(myMap.values());//all values\r\n System.out.println(\"____________________for loop_=====================\");\r\n \r\n for(Integer keys:myMap.keySet())\r\n {\r\n \t System.out.println(\"Keys are:\"+keys+\"Values \"+myMap.get(keys));\r\n }\r\n for(Integer keys:myMap.keySet())\r\n {\r\n \t System.out.println(myMap.get(keys).getProdid());\r\n \t System.out.println(myMap.get(keys).getProdname());\r\n \t System.out.println(myMap.get(keys).getProdprice());\r\n \t \r\n }\r\n System.out.println(\"____________________Iterator=====================\");\r\n \r\n // Iterator it=myMap.iterator(); error becoz map is not part of collection but list nd set are part of collection\r\n //convert to set wid help of keyset...keyset will only convert keys entryset will convert evrythng\r\n \r\n Set myData=myMap.entrySet();\r\n Iterator it=myData.iterator();\r\n \r\n while(it.hasNext())\r\n {\r\n \t System.out.println(it.next());\r\n }\r\n \r\n System.out.println(\"============================\");\r\n //Collections.sort(myMap);\r\n \r\n // Set<Product> trgtset=new HashSet<>(myMap.values());\r\n Collection<Product> mySet=myMap.values(); \r\n //Set<Product> sett=new TreeSet<>(mySet);\r\n List<Product> myList=new LinkedList<>(mySet);\r\n Collections.sort(myList);\r\n \r\n /* for(Product prod:myList)\r\n {\r\n \t System.out.println(prod.getProdid());\r\n \t System.out.println(prod.getProdname());\r\n \t System.out.println(prod.getProdprice());\r\n }\r\n\r\n */\r\n Iterator it1=myData.iterator();\r\n \r\n while(it1.hasNext())\r\n {\r\n \t System.out.println(it1.next());\r\n }\r\n Map mp=new HashMap<>();\r\n mp.put(null,null);\r\n mp.put(1, null);\r\n mp.put(2, null);\r\n mp.put(null,null);\r\n System.out.println(mp);\r\n //is same above snippet written with map mp=new HashTable<>() it will giv nullpointer exception\r\n \r\n\t}",
"@Override\n public Iterator<E> iterator() {\n return new SimpleArrayListIterator<E>();\n }",
"public UnmodifiableIterator<K> iterator() {\n return mo8403b().iterator();\n }",
"@Override\n\t\t\tpublic Iterator<T> iterator() {\n\t\t\t\treturn convertData(data.iterator(), targetClass);\n\t\t\t}",
"@Override\n\tpublic Iterator<Item> iterator() {\n\t\treturn new ListIterator();\n\t}",
"public Iterator<Type> iterator();",
"@Override\n public Iterator<Map.Entry<K, V>> iterator() {\n return new ArrayMapIterator<>(this.entries);\n }",
"public Iterator<K> iterator()\n {\n return (new HashSet<K>(verts)).iterator();\n }",
"@Override\n public Iterator<Long> iterator() {\n Collection<Long> c = new ArrayList<>();\n synchronized (data) {\n for (int i=0; i<data.length; i++)\n c.add(get(i));\n }\n return c.iterator();\n }",
"@Test\n public void test23() throws Throwable {\n\t\tfr.inria.diversify.sosie.logger.LogWriter.writeTestStart(1344,\"org.apache.commons.collections4.IteratorUtilsEvoSuiteTest.test23\");\n OrderedMapIterator<Class<StringTokenizer>, Properties> orderedMapIterator0 = IteratorUtils.emptyOrderedMapIterator();\n AbstractOrderedMapIteratorDecorator<Class<StringTokenizer>, Properties> abstractOrderedMapIteratorDecorator0 = new AbstractOrderedMapIteratorDecorator<Class<StringTokenizer>, Properties>(orderedMapIterator0);\n Iterable<Object> iterable0 = IteratorUtils.asMultipleUseIterable((Iterator<?>) abstractOrderedMapIteratorDecorator0);\n assertNotNull(iterable0);\n }",
"protected java.util.Iterator<PersistentInCacheProxi> iterator(long classNo){\n\t\tLong classKey = new Long(classNo);\n\t\tHashtable<Long, PersistentInCacheProxi> objectMap = this.classMap.get(classKey);\n\t\tif (objectMap == null) {\n\t\t\tobjectMap = new Hashtable<Long, PersistentInCacheProxi>();\n\t\t\tthis.classMap.put(classKey, objectMap);\n\t\t}\n\t\treturn objectMap.values().iterator();\t\t\n\t}",
"@Override\n\tpublic Iterator<E> iterator() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic Iterator<E> iterator() {\n\t\treturn null;\n\t}",
"Iterator<Map.Entry<String, Integer>> getNextPair(){\r\n return entrySet.iterator();\r\n }",
"@Override\n public Iterator<E> reverseIterator() {\n return collection.iterator();\n }",
"Iterator<Entry<String, Var>> getIterator() {\n\t\treturn iter;\n\t}",
"public Iiterator getIterator() { \n\t\treturn new GameCollectionIterator();\n\t}",
"@Override\n\tpublic Iterator<T> iteratorPostOrder() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic Iterator iterator() {\n\t\treturn null;\n\t}",
"public Iterable<M> iterateAll();",
"public Iterator<WellSetPOJOBigDecimal> iterator() {\n return this.wellsets.iterator();\n }",
"public Iterator<QuantifiedItemDTO> getIterator() {\r\n\t\treturn items.iterator();\r\n\t}",
"public Iterator<Item> iterator() {\n\t\treturn new ListIterator(); \n\t\t}",
"public Iterator<Customer> iterator(){\n\t\treturn list.iterator();\n\t}"
] |
[
"0.623804",
"0.6209349",
"0.6206808",
"0.61140656",
"0.5990502",
"0.59857553",
"0.57764363",
"0.57637894",
"0.57607657",
"0.57510406",
"0.57328314",
"0.57150567",
"0.570693",
"0.56865346",
"0.56816983",
"0.5670253",
"0.56482553",
"0.564717",
"0.56361806",
"0.5612537",
"0.56113774",
"0.5601538",
"0.5593803",
"0.55923796",
"0.55914783",
"0.55911463",
"0.55832314",
"0.5582538",
"0.55812323",
"0.55808127",
"0.5578033",
"0.556942",
"0.55626535",
"0.55579233",
"0.55460155",
"0.55429167",
"0.5540935",
"0.5537335",
"0.5529346",
"0.55227906",
"0.5522735",
"0.55159163",
"0.5513127",
"0.55126226",
"0.5505903",
"0.5497447",
"0.54914916",
"0.54807377",
"0.54774535",
"0.5476369",
"0.5468763",
"0.5466025",
"0.546459",
"0.5458929",
"0.54553276",
"0.54553163",
"0.5439583",
"0.54390156",
"0.54367423",
"0.54311365",
"0.54304504",
"0.5427946",
"0.5414221",
"0.54070854",
"0.5400383",
"0.5392823",
"0.5382737",
"0.537958",
"0.5379438",
"0.53787357",
"0.53780466",
"0.53776693",
"0.537586",
"0.53733057",
"0.537203",
"0.5366068",
"0.53645617",
"0.53554577",
"0.53531647",
"0.53441477",
"0.5338656",
"0.53342676",
"0.5330737",
"0.53270626",
"0.53261006",
"0.53226614",
"0.5322249",
"0.5317742",
"0.53155994",
"0.53155994",
"0.5312164",
"0.531029",
"0.5306281",
"0.5304184",
"0.53037107",
"0.53018",
"0.52961254",
"0.52912956",
"0.52871853",
"0.52799505",
"0.5278766"
] |
0.0
|
-1
|
Metoda provjerava ima li jos elemenata u kolekciji
|
public boolean hasNextElement();
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void obrniListu() {\n if (prvi != null && prvi.veza != null) {\n Element preth = null;\n Element tek = prvi;\n \n while (tek != null) {\n Element sled = tek.veza;\n \n tek.veza = preth;\n preth = tek;\n tek = sled;\n }\n prvi = preth;\n }\n }",
"public void skratiListu() {\n if (!jePrazna()) {\n int n = Svetovid.in.readInt(\"Unesite broj elemenata za skracivanje: \");\n obrniListu(); //Zato sto se trazi odsecanje poslednjih n elemenata\n while (prvi != null && n > 0) {\n prvi = prvi.veza;\n n--;\n }\n obrniListu(); //Vraca listu u prvobitni redosled\n }\n }",
"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 ArrayList<Elezione> caricaElezioni() {\n\t\t\t\n\t\t\tDB db = getDB();\n\t\t\tMap<Integer, Elezione> map = db.getTreeMap(\"elezione\");\n\t\t\tArrayList<Elezione> elezioni = new ArrayList<Elezione>();\n\t\t\tSet<Integer> keys = map.keySet();\n\t\t\tfor (int key : keys) {\n\t\t\t\telezioni.add(map.get(key));\n\t\t\t}\n\t\t\treturn elezioni;\n\t\t}",
"private void ucitajPodatke() {\n \n DefaultListModel<Voznja> m = new DefaultListModel<>();\n obrada.getPodaci().forEach(s->m.addElement(s));\n lstPodaci.setModel(m);\n\n }",
"public void spojElementeNaizmenicno(ListaBrojeva novaLista) {\n if (novaLista.prvi == null)\n return;\n else if (jePrazna())\n prvi = novaLista.prvi;\n else {\n Element tek = prvi.veza;\n Element novaListaTek = novaLista.prvi;\n Element pomocni = prvi;\n while (tek != null && novaListaTek != null) {\n pomocni.veza = novaListaTek;\n pomocni = pomocni.veza;\n novaListaTek = novaListaTek.veza;\n \n pomocni.veza = tek;\n pomocni = pomocni.veza;\n tek = tek.veza;\n \n }\n if (novaListaTek != null)\n pomocni.veza = novaListaTek;\n }\n }",
"public ListaBrojeva izdvojElmenteNaParnimPozicijama() {\n if (prvi != null) {\n ListaBrojeva parni = new ListaBrojeva();\n \n Element tek = prvi;\n Element preth = null;\n Element parniKraj = null;\n int br = 0;\n \n while (tek.veza != null) {\n preth = tek;\n tek = tek.veza;\n \n if (br % 2 != 0) {\n preth.veza = tek.veza;\n if (parni.prvi == null) {\n parni.prvi = tek;\n parniKraj = tek;\n tek.veza = null; \n } else {\n parniKraj.veza = tek;\n tek.veza = null;\n parniKraj = parniKraj.veza;\n }\n tek = preth;\n }\n br++;\n }\n /*prvi element iz liste je paran, ali je preskocen, \n tako da ga sad izbacujemo iz liste i dodajemo u novu*/\n Element pom = prvi;\n prvi = prvi.veza;\n pom.veza = parni.prvi;\n parni.prvi = pom;\n return parni;\n }\n return null;\n }",
"@Override\n\tpublic ArrayList<Elezione> listaElezioni() {\n\t\tArrayList<Elezione> listaElezioni = caricaElezioni();\n\t\treturn listaElezioni;\n\t}",
"long getNombreElements();",
"private void crearElementos() {\n\n\t\tRotonda rotonda1 = new Rotonda(new Posicion(400, 120), \"5 de octubre\");\n\t\tthis.getListaPuntos().add(rotonda1);\n\n\t\tCiudad esquel = new Ciudad(new Posicion(90, 180), \"Esquel\");\n\t\tthis.getListaPuntos().add(esquel);\n\n\t\tCiudad trelew = new Ciudad(new Posicion(450, 200), \"Trelew\");\n\t\tthis.getListaPuntos().add(trelew);\n\n\t\tCiudad comodoro = new Ciudad(new Posicion(550, 400), \"Comodoro\");\n\t\tthis.getListaPuntos().add(comodoro);\n\n\t\tCiudad rioMayo = new Ciudad(new Posicion(350, 430), \"Rio Mayo\");\n\t\tthis.getListaPuntos().add(rioMayo);\n\n\t\t// --------------------------------------------------------\n\n\t\tRutaDeRipio rutaRipio = new RutaDeRipio(230, 230, rotonda1, esquel);\n\t\tthis.getListaRuta().add(rutaRipio);\n\n\t\tRutaPavimentada rutaPavimentada1 = new RutaPavimentada(380, 100, trelew, comodoro);\n\t\tthis.getListaRuta().add(rutaPavimentada1);\n\n\t\tRutaPavimentada rutaPavimentada2 = new RutaPavimentada(800, 120, esquel, comodoro);\n\t\tthis.getListaRuta().add(rutaPavimentada2);\n\n\t\tRutaDeRipio rutaripio3 = new RutaDeRipio(380, 100, trelew, comodoro);\n\t\tthis.getListaRuta().add(rutaripio3);\n\n\t\tRutaEnConstruccion rutaConst1 = new RutaEnConstruccion(180, 70, rioMayo, comodoro);\n\t\tthis.getListaRuta().add(rutaConst1);\n\n\t\tRutaPavimentada rutaPavimentada3 = new RutaPavimentada(600, 110, rioMayo, esquel);\n\t\tthis.getListaRuta().add(rutaPavimentada3);\n\t}",
"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 boolean klic() {\n\t\tif(first.next.zacetniIndex!=0) {\r\n\t\t\tfirst.next.zacetniIndex = 0;\r\n\t\t\tfirst.next.koncniIndex = first.next.size-1;\r\n\t\t\t//ce je en element, nimamo vec praznega prostora\r\n\t\t\tif(first==last) prazno=0;\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\t\r\n\t\tList prev = first.next;\r\n\t\tList el = first.next.next;\r\n\t\t\r\n\t\twhile(el!=null) {\r\n\t\t\tif(prev.koncniIndex!=el.zacetniIndex-1) {\r\n\t\t\t\t\r\n\t\t\t\tint razlika = el.zacetniIndex - prev.koncniIndex - 1;\r\n\t\t\t\tel.zacetniIndex = el.zacetniIndex - razlika;\r\n\t\t\t\tel.koncniIndex = el.koncniIndex - razlika;\r\n\t\t\t\t//ce pomeramo zadnega zmanjsujemo praznega prostora\r\n\t\t\t\tif(prev==last) prazno = prazno - razlika;\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\tprev=el;\r\n\t\t\tel=el.next;\r\n\t }\r\n\t\treturn false;\r\n\t}",
"@Override\n\tpublic ArrayList<Lista> listaListeElettoraliDiElezione(String nomeElezione) {\n\t\t\t\n\t\t\tDB db = getDB();\n\t\t\tMap<Integer, Lista> map = db.getTreeMap(\"liste\");\n\t\t\tArrayList<Lista> liste = new ArrayList<Lista>();\n\t\t\tSet<Integer> keys = map.keySet();\n\t\n\t\t\tfor (int key : keys) {\n\t\t\t\tif (map.get(key).getElezione().equals(nomeElezione))\n\t\t\t\t\tliste.add(map.get(key));\n\t\t\t}\n\t\t\treturn liste;\n\t\t}",
"public void GetVehiculos() {\n String A = \"&LOCATION=POR_ENTREGAR\";\n String Pahtxml = \"\";\n \n try {\n \n DefaultListModel L1 = new DefaultListModel();\n Pahtxml = Aso.SendGetPlacas(A);\n Lsvehiculo = Aso.Leerxmlpapa(Pahtxml);\n Lsvehiculo.forEach((veh) -> {\n System.out.println(\"Placa : \" + veh.Placa);\n L1.addElement(veh.Placa);\n });\n \n Lista.setModel(L1);\n \n } catch (Exception ex) {\n Logger.getLogger(Entrega.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n }",
"public List<NodoRuta> getElementos() { \n \n return new ArrayList<NodoRuta>(nodos);\n }",
"public ListaPracownikow() {\n generujPracownikow();\n //dodajPracownika();\n }",
"Lista_Simple datos(File tipo1) {\n \n SAXBuilder builder = new SAXBuilder();\n try {\n \n \n \n\n \n //Se obtiene la lista de hijos de la raiz 'tables'\n Document document = builder.build(tipo1);\n Element rootNode = document.getRootElement(); \n // JOptionPane.showMessageDialog(null,\" e1: \"+(rootNode.getChildText(\"dimension\"))); \n tam= Integer.parseInt(rootNode.getChildText(\"dimension\"));\n Element dobles = rootNode.getChild(\"dobles\");\n \n List list = dobles.getChildren(\"casilla\");\n for ( int i = 0; i < list.size(); i++ )\n {\n Element tabla = (Element) list.get(i);\n d1.enlistar(tabla.getChildTextTrim(\"x\"));\n \n d1.enlistar(tabla.getChildTextTrim(\"y\"));\n// JOptionPane.showMessageDialog(null,\"\"+tabla.getChildTextTrim(\"x\").toString());\n// JOptionPane.showMessageDialog(null,\"\"+tabla.getChildTextTrim(\"y\").toString());\n }\n \n \n Element triples = rootNode.getChild(\"triples\");\n \n List listt = triples.getChildren(\"casilla\");\n for ( int i = 0; i < listt.size(); i++ )\n {\n Element tabla = (Element) listt.get(i);\n d2.enlistar(tabla.getChildTextTrim(\"x\"));\n d2.enlistar(tabla.getChildTextTrim(\"y\"));\n// JOptionPane.showMessageDialog(null,\"\"+tabla.getChildTextTrim(\"x\").toString());\n// JOptionPane.showMessageDialog(null,\"\"+tabla.getChildTextTrim(\"y\").toString());\n }\n Element dicc = rootNode.getChild(\"diccionario\");\n List dic = dicc.getChildren();\n\n for ( int i = 0; i < dic.size(); i++ )\n {\n Element tabla = (Element) dic.get(i);\n //JOptionPane.showMessageDialog(null,\"\"+tabla.getText().toString());\n d.enlistar(tabla.getText().toString());\n \n \n \n } \n \n }catch (JDOMException | IOException | NumberFormatException | HeadlessException e){\n JOptionPane.showMessageDialog(null,\" error de archivo\");\n }\n return d;\n \n}",
"public void dodajZmijuPocetak() {\n\t\tthis.zmija.add(new Cvor(1,4));\n\t\tthis.zmija.add(new Cvor(1,3));\n\t\tthis.zmija.add(new Cvor(1,2));\n\t\t\n\t\tint i = this.zmija.get(0).i;\n\t\tint j = this.zmija.get(0).j;\n\t\tthis.tabla[i][j] = 'O';\n\t\t\n\t\tfor (int k = 1; k < this.zmija.size(); k++) {\n\t\t\ti = this.zmija.get(k).i;\n\t\t\tj = this.zmija.get(k).j;\n\t\t\tthis.tabla[i][j] = 'o';\n\t\t}\t\n\t}",
"private void ucitajTestPodatke() {\n\t\tList<Integer> l1 = new ArrayList<Integer>();\n\n\t\tRestoran r1 = new Restoran(\"Palazzo Bianco\", \"Bulevar Cara Dušana 21\", KategorijeRestorana.PICERIJA, l1, l1);\n\t\tRestoran r2 = new Restoran(\"Ananda\", \"Petra Drapšina 51\", KategorijeRestorana.DOMACA, l1, l1);\n\t\tRestoran r3 = new Restoran(\"Dizni\", \"Bulevar cara Lazara 92\", KategorijeRestorana.POSLASTICARNICA, l1, l1);\n\n\t\tdodajRestoran(r1);\n\t\tdodajRestoran(r2);\n\t\tdodajRestoran(r3);\n\t}",
"private Karta kartaErabaki(ArrayList<ArrayList<Karta>> pMatrizea) \r\n\t{\r\n\t\tKarta karta = (Karta) new KartaNormala(ElementuMota.ELURRA,0,KoloreMota.BERDEA);\r\n\t\tfor(int i=0;i<pMatrizea.size();i++) \r\n\t\t{\r\n\t\t\tfor(int x=0;x<5;x++) \r\n\t\t\t{\r\n\t\t\t\tif(pMatrizea.get(i).get(0).getElementua()!=pMatrizea.get(i).get(1).getElementua() &&\r\n\t\t\t\t\t\tpMatrizea.get(i).get(0).getElementua()!=this.lortuJolastekoKartaPosz(x).getElementua() &&\r\n\t\t\t\t\t\tpMatrizea.get(i).get(1).getElementua()!=this.lortuJolastekoKartaPosz(x).getElementua() &&\r\n\t\t\t\t\t\tpMatrizea.get(i).get(0).getKolorea()!=this.lortuJolastekoKartaPosz(x).getKolorea() &&\r\n\t\t\t\t\t\tpMatrizea.get(i).get(1).getKolorea()!=this.lortuJolastekoKartaPosz(x).getKolorea() &&\r\n\t\t\t\t\t\tthis.lortuJolastekoKartaPosz(x).getBalioa()>karta.getBalioa() &&\r\n\t\t\t\t\t\tthis.lortuJolastekoKartaPosz(x).getErabilgarria()) \r\n\t\t\t\t{\r\n\t\t\t\t\tkarta = lortuJolastekoKartaPosz(x);\r\n\t\t\t\t}\r\n\t\t\t\tif(pMatrizea.get(i).get(0).getElementua()==pMatrizea.get(i).get(1).getElementua() &&\r\n\t\t\t\t\t\tpMatrizea.get(i).get(0).getElementua()==this.lortuJolastekoKartaPosz(x).getElementua() &&\r\n\t\t\t\t\t\tpMatrizea.get(i).get(1).getElementua()==this.lortuJolastekoKartaPosz(x).getElementua() &&\r\n\t\t\t\t\t\tpMatrizea.get(i).get(0).getKolorea()!=this.lortuJolastekoKartaPosz(x).getKolorea() &&\r\n\t\t\t\t\t\tpMatrizea.get(i).get(1).getKolorea()!=this.lortuJolastekoKartaPosz(x).getKolorea() &&\r\n\t\t\t\t\t\tthis.lortuJolastekoKartaPosz(x).getBalioa()>karta.getBalioa() &&\r\n\t\t\t\t\t\tthis.lortuJolastekoKartaPosz(x).getErabilgarria()) \r\n\t\t\t\t{\r\n\t\t\t\t\tkarta = this.lortuJolastekoKartaPosz(x);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn karta;\r\n\t}",
"private void vulKeuzeBordIn()\n {\n String[] lijstItems = dc.geefLijstItems();\n for (int i = 0; i < canvasKeuzeveld.length; i++)\n {\n for (int j = 0; j < canvasKeuzeveld[i].length; j++)\n {\n GraphicsContext gc = canvasKeuzeveld[i][j].getGraphicsContext2D();\n //checkImage(j + 1, gc);\n vulIn(lijstItems[j], gc);\n }\n }\n //dc.geefLijstItems();\n }",
"private void laskeMatkojenPituus() {\n matkojenpituus = 0.0;\n\n for (Matka m : matkat) {\n matkojenpituus += m.getKuljettumatka();\n }\n\n }",
"public static List<Object> czytaniePogody(){\r\n Object[] elementyPogody = new Object[3];\r\n elementyPogody[0]=0;\r\n elementyPogody[1]=0;\r\n elementyPogody[2]=null;\r\n String line;\r\n OdczytZPliku plik = new OdczytZPliku();\r\n InputStream zawartosc = plik.pobierzZPliku(\"bazapogod.txt\");\r\n try (InputStreamReader odczyt = new InputStreamReader(zawartosc, StandardCharsets.UTF_8);\r\n BufferedReader czytaj = new BufferedReader(odczyt)) {\r\n String numerWStringu = String.valueOf(elementyPogody[0] = (int) (Math.random() * 4));\r\n while ((line = czytaj.readLine()) != null){\r\n if (line.equals(numerWStringu)){\r\n elementyPogody[1] = Integer.parseInt(czytaj.readLine());\r\n elementyPogody[2] = czytaj.readLine();\r\n System.out.println(\"\\nPogoda na dzis: \" + elementyPogody[2]);\r\n break;\r\n }\r\n else {\r\n for (int i = 0; i < 2; i++) {\r\n line = czytaj.readLine();\r\n }\r\n }\r\n }\r\n } catch (Exception ignored) {\r\n }\r\n return List.of(elementyPogody);\r\n }",
"private void srediTabelu() {\n\n mtu = (ModelTabeleUlica) jtblUlica.getModel();\n ArrayList<Ulica> ulice = kontrolor.Kontroler.getInstanca().vratiUlice();\n mtu.setLista(ulice);\n\n }",
"public void zpracujObjednavky()\n\t{\n\t\tint idtmp = 0;\n\t\tfloat delkaCesty = 0;\n\t\t\n\t\tif (this.objednavky.isEmpty())\n\t\t{\n\t\t\treturn ;\n\t\t}\n\t\t\n\t\tNakladak nakl = (Nakladak) getVolneAuto();\n\t\t\n\t\tnakl.poloha[0] = this.poloha[0];\n\t\tnakl.poloha[1] = this.poloha[1];\n\t\tObjednavka ob = this.objednavky.remove();\n\n\t\t/*System.out.println();\n\t\tSystem.out.println(\"Objednavka hospody:\" + ob.id + \" se zpracuje pres trasu: \");\n\t\t */\n\t\tdelkaCesty += vyberCestu(this.id, ob.id, nakl);\n\t\t\n\t\twhile(nakl.pridejObjednavku(ob))\n\t\t{\n\t\t\tidtmp = ob.id;\n\t\t\t\n\t\t\tob = vyberObjednavku(ob.id);\n\t\t\tif (ob == null)\n\t\t\t{\n\t\t\t\tob=nakl.objednavky.getLast();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tobjednavky.remove(ob);\n\t\t\t\n\t\t\tdelkaCesty += vyberCestu(idtmp, ob.id, nakl);\n\t\t\t\n\t\t\tif((nakl.objem > 24)||(13-Simulator.getCas().hodina)*(nakl.RYCHLOST) + 100 < delkaCesty){\n\t\t\t\t//System.out.println(\"Nakladak ma \"+nakl.objem);\n\t\t\t\tnakl.kDispozici = false;\n\t\t\t\t//System.out.println(\"Auto jede \" + delkaCesty + \"km\");\n\t\t\t\tbreak;\t\t\n\t\t\t}\n\t\t\t/*\n\t\t\tif((Simulator.getCas().hodina > 12) && (delkaCesty > 80) ){\n\t\t\t\t//System.out.println(\"Nakladak ma \"+nakl.objem);\n\t\t\t\tnakl.kDispozici = false;\n\t\t\t\t//System.out.println(\"Auto jede \" + delkaCesty + \"km\");\n\t\t\t\tbreak;\t\t\n\t\t\t}\n\t\t\t\n\t\t\tif((Simulator.getCas().hodina > 9) && (delkaCesty > 130) ){\n\t\t\t\t//System.out.println(\"Nakladak ma \"+nakl.objem);\n\t\t\t\tnakl.kDispozici = false;\n\t\t\t\t//System.out.println(\"Auto jede \" + delkaCesty + \"km\");\n\t\t\t\tbreak;\t\t\n\t\t\t}*/\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t//cesta zpatky\n\t\tvyberCestu(ob.id, this.id, nakl);\n\t\tif (nakl.objem >= 1)\n\t\t{\n\t\t\tnakl.kDispozici = false;\n\t\t\tnakl.jede = true;\n\t\t\t//vytvoreni nove polozky seznamu pro statistiku\n\t\t\tnakl.novaStatCesta();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tnakl.resetCesta();\n\t\t}\n\t}",
"private void actualizarEnConsola() {\n\t\tfor(int i=0; i<elementos.size();i++){\n\t\t\tElemento e = elementos.get(i);\n\t\t\tSystem.out.println(e.getClass().getName()+\"- Posicion: , X: \"+e.getPosicion().getX()+\", Y: \"+ e.getPosicion().getY());\n\t\t}\n\t\t\n\t}",
"public ArrayList<Elemento> getElementos(){\n ArrayList<Elemento> items = new ArrayList<>();\r\n\r\n SQLiteDatabase db = helper.getReadableDatabase();\r\n // Especificamos las columnas a usar\r\n String[] columnas = {\r\n ElementosContract.Entrada.COLUMNA_CARRITO_ID,\r\n ElementosContract.Entrada.COLUMNA_NOMBRE_PRODUCTO,\r\n ElementosContract.Entrada.COLUMNA_PRECIO_PRODUCTO,\r\n ElementosContract.Entrada.COLUMNA_CANTIDAD,\r\n };\r\n\r\n // TODO: 15.- Se crea un cursor para hacer recorrido de resultados y se crea una estructura de query\r\n Cursor c = db.query(\r\n ElementosContract.Entrada.NOMBRE_TABLA, // nombre tabla\r\n columnas, // columnas\r\n null, //texto para filtrar\r\n null, // arreglo de parametros a filtrar\r\n null, // agrupar\r\n null, // contiene\r\n null); //limite\r\n\r\n // TODO: 16.- Se recorren los resultados y se añaden a la lista\r\n while (c.moveToNext()){\r\n items.add(new Elemento(\r\n c.getInt(c.getColumnIndexOrThrow(ElementosContract.Entrada.COLUMNA_CARRITO_ID)),\r\n c.getString(c.getColumnIndexOrThrow(ElementosContract.Entrada.COLUMNA_NOMBRE_PRODUCTO)),\r\n c.getFloat(c.getColumnIndexOrThrow(ElementosContract.Entrada.COLUMNA_PRECIO_PRODUCTO)),\r\n c.getInt(c.getColumnIndexOrThrow(ElementosContract.Entrada.COLUMNA_CANTIDAD))\r\n ));\r\n }\r\n // TODO: 17.- Cerramos conexión y regresamos elementos\r\n c.close();\r\n return items;\r\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 TreeNode napraviStabloUtil(List<TreeNode> cvorovi, int pocetni, int krajnji) {\n// osnovni slučaj\n if (pocetni > krajnji) {\n return null;\n }\n /* Nadji srednji element i proglasi ga korenom */\n int mid = (pocetni + krajnji) / 2;\n TreeNode cvor = cvorovi.get(mid);\n /* Koristeci indeks u infiks obilasku\n* konstruiši levo i desno podstablo */\n cvor.left = napraviStabloUtil(cvorovi, pocetni, mid - 1);\n cvor.right = napraviStabloUtil(cvorovi, mid + 1, krajnji);\n return cvor;\n }",
"void rozpiszKontraktyPart2NoEV(int index,float wolumenHandlu, float sumaKupna,float sumaSprzedazy )\n\t{\n\t\tArrayList<Prosument> listaProsumentowTrue =listaProsumentowWrap.getListaProsumentow();\n\t\t\n\n\t\tint a=0;\n\t\twhile (a<listaProsumentowTrue.size())\n\t\t{\n\t\t\t\t\t\t\n\t\t\t// ustala bianrke kupuj\n\t\t\t// ustala clakowita sprzedaz (jako consumption)\n\t\t\t//ustala calkowite kupno (jako generacje)\n\t\t\tDayData constrainMarker = new DayData();\n\t\t\t\n\t\t\tArrayList<Point> L1\t=listaFunkcjiUzytecznosci.get(a);\n\t\t\t\n\t\t\t//energia jaka zadeklarowal prosument ze sprzeda/kupi\n\t\t\tfloat energia = L1.get(index).getIloscEnergiiDoKupienia();\n\t\t\t\n\t\t\tif (energia>0)\n\t\t\t{\n\t\t\t\tfloat iloscEnergiiDoKupienia = energia/sumaKupna*wolumenHandlu;\n\t\t\t\t\n\t\t\t\tconstrainMarker.setKupuj(1);\n\t\t\t\tconstrainMarker.setGeneration(iloscEnergiiDoKupienia);\n\t\t\t\t\n\t\t\t\trynekHistory.ustawBetaDlaWynikowHandlu(iloscEnergiiDoKupienia,a);\t\t\t\t\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tfloat iloscEnergiiDoSprzedania = energia/sumaSprzedazy*wolumenHandlu;\n\n\t\t\t\t\n\t\t\t\tconstrainMarker.setKupuj(0);\n\t\t\t\tconstrainMarker.setConsumption(iloscEnergiiDoSprzedania);\n\t\t\t\t\n\t\t\t\trynekHistory.ustawBetaDlaWynikowHandlu(iloscEnergiiDoSprzedania,a);\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tArrayList<Float> priceVector = priceVectorsList.get(priceVectorsList.size()-1);\n\t\t\t\n\t\t\t//poinformuj prosumenta o wyniakch handlu i dostosuj go do wynikow\n\t\t\tlistaProsumentowTrue.get(a).getKontrakt(priceVector,constrainMarker);\n\t\t\t\n\t\t\ta++;\n\t\t}\n\t}",
"@Override\n\tpublic ArrayList<Lista> listaListeElettorali() {\n\t\t\t\n\t\t\t\n\t\t\tDB db = getDB();\n\t\t\tMap<Integer, Lista> map = db.getTreeMap(\"liste\");\n\t\t\tArrayList<Lista> liste = new ArrayList<Lista>();\n\t\t\tSet<Integer> keys = map.keySet();\n\t\t\tfor (int key : keys) {\n\t\t\t\tliste.add(map.get(key));\n\t\t\t}\n\t\n\t\t\treturn liste;\n\t\t\t\n\t\t}",
"private void depurarElementos() {\n\t\tfor(int i=0; i<JuegoListener.elementos.size();i++){\n\t\t\tif (!JuegoListener.elementos.get(i).estaVivo())\n\t\t\t\tJuegoListener.elementos.remove(i);\n\t\t}\n\t\t\n\t}",
"public ListaBrojeva izdvojElmenteNaNeparnimPozicijama() {\n if (!jePrazna()) {\n ListaBrojeva neparni = new ListaBrojeva();\n \n Element neparniKraj = null;\n Element tek = prvi;\n Element preth = null;\n int br = 0;\n \n while (tek.veza != null) {\n preth = tek;\n tek = tek.veza;\n if (br % 2 == 0) {\n preth.veza = tek.veza;\n if (neparni.prvi == null) {\n neparni.prvi = tek;\n tek.veza = null;\n neparniKraj = tek;\n }\n else {\n neparniKraj.veza = tek;\n tek.veza = null;\n neparniKraj = tek;\n }\n tek = preth;\n }\n br++;\n }\n return neparni;\n }\n return null;\n }",
"private void laskeMatkojenKesto() {\n matkojenkesto = 0.0;\n\n for (Matka m : matkat) {\n matkojenkesto += m.getKesto();\n }\n }",
"public void agregarElemento(K llave, T dato) {\n\n\t\tif (primerElemento == null) {\n\t\t\tNodeTabla<K, T> nodo = new NodeTabla<K, T>(llave, dato, null);\n\t\t\t// agrega el nodo como ultimo y primer elemento\n\t\t\tprimerElemento = nodo;\n\t\t\tultimoElemento = nodo;\n\t\t} else {\n\t\t\t// pone el elemento al final de la fila\n\t\t\tultimoElemento = new NodeTabla<K, T>(llave, dato, ultimoElemento);\n\t\t}\n\n\t\t// incrementa el tamano\n\t\ttamano++;\n\t}",
"public void listar(){\r\n // Verifica si la lista contiene elementoa.\r\n if (!esVacia()) {\r\n // Crea una copia de la lista.\r\n Nodo aux = inicio;\r\n // Posicion de los elementos de la lista.\r\n int i = 0;\r\n // Recorre la lista hasta el final.\r\n while(aux != null){\r\n // Imprime en pantalla el valor del nodo.\r\n System.out.print(i + \".[ \" + aux.getValor() + \" ]\" + \" -> \");\r\n // Avanza al siguiente nodo.\r\n aux = aux.getSiguiente();\r\n // Incrementa el contador de la posión.\r\n i++;\r\n }\r\n }\r\n }",
"private void listar() throws Exception{\n int resId=1;\n List<PlatoDia> lista = this.servicioRestaurante.listarMenuDia(resId);\n this.modelListEspecial.clear();\n lista.forEach(lse -> {\n this.modelListEspecial.addElement(\"ID: \" + lse.getId() \n + \" NOMBRE: \" + lse.getNombre()\n + \" DESCRIPCION: \" + lse.getDescripcion()\n + \" PRECIO: \" + lse.getPrecio()\n + \" ENTRADA: \"+lse.getEntrada() \n + \" PRINCIPIO: \"+lse.getPrincipio()\n + \" CARNE: \"+lse.getCarne()\n + \" BEBIDA: \"+lse.getBebida()\n + \" DIA: \"+lse.getDiaSemana());\n });\n }",
"public ArrayList<Elemento> getElementos(int id){\n ArrayList<Elemento> items = new ArrayList<>();\r\n\r\n SQLiteDatabase db = helper.getReadableDatabase();\r\n // Especificamos las columnas a usar\r\n String[] columnas = {\r\n ElementosContract.Entrada.COLUMNA_CARRITO_ID,\r\n ElementosContract.Entrada.COLUMNA_NOMBRE_PRODUCTO,\r\n ElementosContract.Entrada.COLUMNA_PRECIO_PRODUCTO,\r\n ElementosContract.Entrada.COLUMNA_CANTIDAD,\r\n };\r\n\r\n // TODO: 15.- Se crea un cursor para hacer recorrido de resultados y se crea una estructura de query\r\n Cursor c = db.query(\r\n ElementosContract.Entrada.NOMBRE_TABLA, // nombre tabla\r\n columnas, // columnas\r\n \" carrito_id = ?\", //texto para filtrar\r\n new String[]{String.valueOf(id)}, // arreglo de parametros a filtrar\r\n null, // agrupar\r\n null, // contiene\r\n null); //limite\r\n\r\n // TODO: 16.- Se recorren los resultados y se añaden a la lista\r\n while (c.moveToNext()){\r\n items.add(new Elemento(\r\n c.getInt(c.getColumnIndexOrThrow(ElementosContract.Entrada.COLUMNA_CARRITO_ID)),\r\n c.getString(c.getColumnIndexOrThrow(ElementosContract.Entrada.COLUMNA_NOMBRE_PRODUCTO)),\r\n c.getFloat(c.getColumnIndexOrThrow(ElementosContract.Entrada.COLUMNA_PRECIO_PRODUCTO)),\r\n c.getInt(c.getColumnIndexOrThrow(ElementosContract.Entrada.COLUMNA_CANTIDAD))\r\n ));\r\n }\r\n // TODO: 17.- Cerramos conexión y regresamos elementos\r\n c.close();\r\n return items;\r\n }",
"private void napuniCbPozoriste() {\n\t\t\r\n\t\tfor (Pozoriste p:Kontroler.getInstanca().vratiPozorista())\r\n\t\t\t\r\n\t\t\tcbPozoriste.addItem(p.getImePozorista());\r\n\t}",
"private ArrayList<Unidad> seleccionarAEliminar(DefaultMutableTreeNode raiz) {\n\n ArrayList<Unidad> aEliminar = new ArrayList<Unidad>();\n\n if (raiz.getChildCount() != 0) {\n for (int i = 0; i < raiz.getChildCount(); i++) {\n aEliminar.addAll(seleccionarAEliminar((DefaultMutableTreeNode) raiz.getChildAt(i)));\n }\n }\n\n aEliminar.add(((UnidadUserObject) raiz.getUserObject()).getUnidad());\n\n return aEliminar;\n }",
"public Kupcek() {\r\n kup = new ArrayList<Karta>();\r\n\r\n for (int i = 0; i < 4; i++) { //gremo preko vseh simbolo kart\r\n for (int j = 0; j < 13; j++) { //in njihovih rangov\r\n if (j == 0) { //prvi indeks je vedno as torej mu damo vrednost 11\r\n Karta card = new Karta(i, j, 11); //ustvarimo nasega asa z i-tim simbolom in j-tim rangom\r\n kup.add(card); //karto dodamo v kupcek\r\n }\r\n else if (j >= 10) { //podobno storimo za karte Fant, Kraljica, Kralj in jim dodamo vrednost 10\r\n Karta card = new Karta(i, j, 10);\r\n kup.add(card);\r\n }\r\n else { //za vse preostale karte povecamo vrednost za +1 indeksa zaradi poteka kart 2[1] 3[2] etc.\r\n Karta card = new Karta(i, j, j+1);\r\n kup.add(card);\r\n }\r\n }\r\n }\r\n }",
"public DobbeltLenketListe() {\n this.hode= null;\n this.hale= null;\n antall=0; }",
"public ArrayList<Elemento> getPosicionesAdyacentes(){\n ArrayList <Elemento> result = new ArrayList<>();\n int[] coordenada_i = {0,1,1,1,0,-1,-1,-1};\n int[] coordenada_j = {1,1,0,-1,-1,-1,0,1};\n int nueva_posicion_fila = 0;\n int nueva_posicion_columna = 0;\n for(int k=0; k<8; k++){\n nueva_posicion_fila = fila + coordenada_i[k];\n nueva_posicion_columna = columna + coordenada_j[k];\n \n if((0 <= nueva_posicion_fila) && (nueva_posicion_fila < automata.getAutomata().length) && \n (0<= nueva_posicion_columna) && (nueva_posicion_columna < automata.getAutomata()[0].length)){\n result.add(automata.getElemento(nueva_posicion_fila,nueva_posicion_columna));\n \n }\n \n }\n return result;\n }",
"private void iniciarListas() {\n listaBebidas = new ElementoMenu[7];\n listaBebidas[0] = new ElementoMenu(1, \"Coca\");\n listaBebidas[1] = new ElementoMenu(4, \"Jugo\");\n listaBebidas[2] = new ElementoMenu(6, \"Agua\");\n listaBebidas[3] = new ElementoMenu(8, \"Soda\");\n listaBebidas[4] = new ElementoMenu(9, \"Fernet\");\n listaBebidas[5] = new ElementoMenu(10, \"Vino\");\n listaBebidas[6] = new ElementoMenu(11, \"Cerveza\");\n// inicia lista de platos\n listaPlatos = new ElementoMenu[14];\n listaPlatos[0] = new ElementoMenu(1, \"Ravioles\");\n listaPlatos[1] = new ElementoMenu(2, \"Gnocchi\");\n listaPlatos[2] = new ElementoMenu(3, \"Tallarines\");\n listaPlatos[3] = new ElementoMenu(4, \"Lomo\");\n listaPlatos[4] = new ElementoMenu(5, \"Entrecot\");\n listaPlatos[5] = new ElementoMenu(6, \"Pollo\");\n listaPlatos[6] = new ElementoMenu(7, \"Pechuga\");\n listaPlatos[7] = new ElementoMenu(8, \"Pizza\");\n listaPlatos[8] = new ElementoMenu(9, \"Empanadas\");\n listaPlatos[9] = new ElementoMenu(10, \"Milanesas\");\n listaPlatos[10] = new ElementoMenu(11, \"Picada 1\");\n listaPlatos[11] = new ElementoMenu(12, \"Picada 2\");\n listaPlatos[12] = new ElementoMenu(13, \"Hamburguesa\");\n listaPlatos[13] = new ElementoMenu(14, \"Calamares\");\n// inicia lista de postres\n listaPostres = new ElementoMenu[15];\n listaPostres[0] = new ElementoMenu(1, \"Helado\");\n listaPostres[1] = new ElementoMenu(2, \"Ensalada de Frutas\");\n listaPostres[2] = new ElementoMenu(3, \"Macedonia\");\n listaPostres[3] = new ElementoMenu(4, \"Brownie\");\n listaPostres[4] = new ElementoMenu(5, \"Cheescake\");\n listaPostres[5] = new ElementoMenu(6, \"Tiramisu\");\n listaPostres[6] = new ElementoMenu(7, \"Mousse\");\n listaPostres[7] = new ElementoMenu(8, \"Fondue\");\n listaPostres[8] = new ElementoMenu(9, \"Profiterol\");\n listaPostres[9] = new ElementoMenu(10, \"Selva Negra\");\n listaPostres[10] = new ElementoMenu(11, \"Lemon Pie\");\n listaPostres[11] = new ElementoMenu(12, \"KitKat\");\n listaPostres[12] = new ElementoMenu(13, \"IceCreamSandwich\");\n listaPostres[13] = new ElementoMenu(14, \"Frozen Yougurth\");\n listaPostres[14] = new ElementoMenu(15, \"Queso y Batata\");\n }",
"public T darElemento(){\r\n\t\treturn elemento;\r\n\t}",
"public ArrayList<Element> listeTousElements() {\n return(new ArrayList<Element>(cacheNomsElements.keySet()));\n }",
"private void avaliaTagObrigatoria() throws SQLException {\r\n\t\t/*\r\n\t\t * busca as tags obrigatorias do documento.\r\n\t\t */\r\n\t\t// TODO ESTE SELECT SOH TRAZ A TAG !DOCTYPE, OU SEJA, SE ELE TRAZ AS\r\n\t\t// TAGS OBRIGATORIAS,\r\n\t\t// ENTAO ELE SOH TAH CONSIDERANDO O !DOCTYPE COMO OBRIGATORIO. OU ENTAO\r\n\t\t// TEM ALGUMA\r\n\t\t// COISA ERRADA NO BANCO DE DADOS. OBS: NA BASE DE DADOS SOH TEM\r\n\t\t// CADASTRADA UMA LINHA\r\n\t\t// COM ID_ATITUDE = 4 (TABELA ESPERADO) : (9,4,9,0,0,'','',0)\r\n\t\t// TRECHO COMENTADO E HARDCODED PARA DIMINUIR AS CONSULTAS A BANCO DE\r\n\t\t// DADOS\r\n\t\t// final String sql = \"SELECT ta.nome_tag, v.pv3 \"\r\n\t\t// + \" FROM esperado e, validante v, tipoavaliacaoerro t, tag ta \"\r\n\t\t// + \" WHERE e.idesperado=v.idesperado \"\r\n\t\t// + \" AND v.pv3=t.pv3 AND idatitude = 4 \"\r\n\t\t// + \" AND v.idtag=ta.idtag AND t.idorgao = \" + orgao;\r\n\t\t//\r\n\t\t// ResultSet rs = con.getCon().createStatement().executeQuery(sql);\r\n\t\t//\r\n\t\t// String nome = null;\r\n\t\t// ArrayList<Validado> validados = null;\r\n\t\t//\r\n\t\t// /*\r\n\t\t// * Monta as tags especificas.\r\n\t\t// */\r\n\t\t// while (rs.next()) {\r\n\t\t// nome = rs.getString(1);\r\n\t\t// validados = new ArrayList<Validado>();\r\n\t\t// validados.add(new Validado(nome, rs.getInt(2)));\r\n\t\t// this.erradosMap.put(nome, validados);\r\n\t\t// }\r\n\t\t// gambiarra?????\r\n\t\t// TRECHO HARDCODED QUE SUBSTITUI A CONSULTA AO BD ACIMA\r\n\r\n\t\tArrayList<ArmazenaErroOuAvisoAntigo> validados = new ArrayList<ArmazenaErroOuAvisoAntigo>();\r\n\r\n\t\tvalidados.add(new ArmazenaErroOuAvisoAntigo(\"!DOCTYPE\", 33));\r\n\r\n\t\tthis.erradosMap.put(\"!DOCTYPE\", validados);\r\n\r\n\t\t// FIM DO TRECHO\r\n\t\tfor (String element : this.erradosMap.keySet()) {\r\n\r\n\t\t\t/*\r\n\t\t\t * Verifica se a existencia da tag dentro do documento. N�o\r\n\t\t\t * existindo a tag, adiciona a mesma a lista de erros.\r\n\t\t\t */\r\n\t\t\tif (!tag.contains(element)) {\r\n\r\n\t\t\t\tthis.errados.addAll(this.erradosMap.get(element));\r\n\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t}",
"private void caricaLista() {\n /** variabili e costanti locali di lavoro */\n ArrayList unaLista = null;\n CampoDati unCampoDati = null;\n CDBLinkato unCampoDBLinkato = null;\n //@todo da cancellare\n try { // prova ad eseguire il codice\n /* recupera il campo DB specializzato */\n unCampoDBLinkato = (CDBLinkato)unCampoParente.getCampoDB();\n\n /* recupera la lista dal campo DB */\n unaLista = unCampoDBLinkato.caricaLista();\n\n /* recupera il campo dati */\n unCampoDati = unCampoParente.getCampoDati();\n\n /* registra i valori nel modello dei dati del campo */\n if (unaLista != null) {\n unCampoDati.setValoriInterni(unaLista);\n// unCampoDatiElenco.regolaElementiAggiuntivi();\n } /* fine del blocco if */\n\n } catch (Exception unErrore) { // intercetta l'errore\n /* mostra il messaggio di errore */\n Errore.crea(unErrore);\n } /* fine del blocco try-catch */\n\n }",
"public String getElementoIndice(int indice) {\n No temp = ini;\n int count = 1;\n \n //Percorre todos os elementos da lista, ate achar o elemento procurado, ou ate chegar ao final\n while (temp != null){\n if (count == indice) {\n //Caso tenha encontrado o elemento\n return temp.getElemento();\n }\n \n temp = temp.getProx();\n count++;\n }\n \n return \"\";\n }",
"public List<Elemento> getListaElementosEnLaBolsa() {\n return new ArrayList<Elemento>(porNombre.values());\n }",
"public void vincula(){\n for (Nodo n : exps)\n n.vincula();\n }",
"public void ustawPojazdNaPoczatek()\n\t{\n\t\tSciezka pierwszaSc = droga.get(0);\n\t\tfinal double y = 10;\n\t\tpojazd.zmienPozycje(pierwszaSc.getCenterDownX(), y);\n\t}",
"private void printArrElement() {\n\t\tIterator iter = arrTag.keySet().iterator();\r\n\t\twhile (iter.hasNext()) {\r\n\t\t\tObject key = iter.next();\r\n\t\t\tTag valores = arrTag.get(key);\r\n\t\t\t//System.out.print(\"key=\" + key + \"\\n\");\r\n\t\t\t//System.out.print(\"\\ttagsPermitidas:\");\r\n\t\t\tHashSet<Tag> tags = valores.getTagsPermitidasDentro();\r\n\t\t\tfor (Tag tag : tags) {\r\n\t\t\t\t//System.out.print(\"'\" + tag.getNome() + \"',\");\r\n\t\t\t}\r\n\t\t\t//System.out.print(\"\\n\");\r\n\t\t}\r\n\t}",
"public void nastaviIgru() {\r\n\t\t// nastavi igru poslije pobjede\r\n\t\tigrajPoslijePobjede = true;\r\n\t}",
"public List<Elemento> getElementosPorTipo(TipoElemento tipo) {\n ArrayList<Elemento> lista = new ArrayList<>();\n for (Elemento e : porNombre.values()) {\n if (e.getTipo().equals(tipo)) {\n lista.add(e);\n }\n }\n return lista;\n }",
"public void pobierzukladprzegladRZiSBO() {\r\n if (uklad.getUklad() == null) {\r\n uklad = ukladBRDAO.findukladBRPodatnikRokPodstawowy(wpisView.getPodatnikObiekt(), wpisView.getRokWpisuSt());\r\n }\r\n List<PozycjaRZiSBilans> pozycje = UkladBRBean.pobierzpozycje(pozycjaRZiSDAO, pozycjaBilansDAO, uklad, \"\", \"r\");\r\n UkladBRBean.czyscPozycje(pozycje);\r\n rootProjektRZiS.getChildren().clear();\r\n List<StronaWiersza> zapisy = StronaWierszaBean.pobraniezapisowwynikoweBO(stronaWierszaDAO, wpisView);\r\n try {\r\n PozycjaRZiSFKBean.ustawRoota(rootProjektRZiS, pozycje, zapisy);\r\n level = PozycjaRZiSFKBean.ustawLevel(rootProjektRZiS, pozycje);\r\n Msg.msg(\"i\", \"Pobrano układ \");\r\n } catch (Exception e) {\r\n E.e(e);\r\n rootProjektRZiS.getChildren().clear();\r\n Msg.msg(\"e\", e.getLocalizedMessage());\r\n }\r\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}",
"public void ordenaPontos(){\r\n\t\tloja.ordenaPontos();\r\n\t}",
"public Materia getMateriaPractico()throws ParseException{\n Element tabla3=doc.getElementsByClass(\"display\").get(2);\n Elements elementostPractico=tabla3.select(\"td:nth-of-type(2)\");\n \n Profesor profesorPractico=new Profesor(elementostPractico.get(0).text());\n int paraleloPractico=Integer.parseInt(elementostPractico.get(1).text());\n String capacidadMaxima=elementostPractico.get(2).text();\n Materia materiaPractico=new Materia\n (nombreMateria,paraleloPractico,profesorPractico);//materia\n \n \n //Selecciona a la 4ta tabla con la informacion de las clases\n //del paralelo practico, se crea y se llena un arreglo con las clases\n Element tabla4=doc.getElementsByClass(\"display\").get(3);\n Elements clasesPractico=tabla4.select(\"tr\");\n ArrayList<Clase> clasePractico=new ArrayList<>();//arreglo de clases\n for(Element e:clasesPractico.subList(1, clasesPractico.size())){\n //System.out.println(e);\n Elements campos=e.select(\"td\");\n Dias dia=Dias.valueOf(campos.get(0).text().toUpperCase());\n Date horai=dateFormatClases.parse(campos.get(1).text());\n Date horaf=dateFormatClases.parse(campos.get(2).text());\n String aula=campos.get(3).text();\n String aulaDetalle=campos.get(4).text();\n Clase clase=new Clase(dia, horai, horaf,aula,aulaDetalle);\n //System.out.println(clase);\n clasePractico.add(clase);\n }\n \n //seteo el arreglo de clases del practico en la materiaPractico\n materiaPractico.setClases(clasePractico);\n return materiaPractico;\n }",
"public ArrayList<Elemento> getElementos() {\n\t\treturn elementos;\n\t}",
"public void insererEnTeteDeListe(Personne personne) {\n\t\tElement ancienPremier= premier;\n\t\tpremier= new Element(personne,ancienPremier);\n\t\t nbElt ++;\n\t}",
"public void MieiOrdini()\r\n {\r\n getOrdini();\r\n\r\n }",
"@Override\r\n\tpublic boolean getElemento(T elemento) {\n\t\treturn false;\r\n\t}",
"public ArrayList<ArrayList<Float>> predykcjaCenNaRynkuLokalnym()\n\t{\n\t\tfloat cenaMinimalnaNaRynkuLokalnym= Stale.cenaMinimalnaNaRynkuLokalnym;\n\t\tfloat cenaMaksymalnaNaRynkuLokalnym = Stale.cenaDystrybutoraZewnetrznego;\n\t\t\n\t\t//tu siedzi to rozroznienie czy z generatora czy predykcja z poprzendiej symualcji\n\t\tArrayList<Float> normalnaPredykcja = pierwszaPredykcja();\n\t\tpriceVectorsList.add(normalnaPredykcja);\n\t\t\n\t\tArrayList<ArrayList<Float>> listaPredykcjiCen= new ArrayList<ArrayList<Float>>();\n\t\t\n\t\t\n\t\t//nizsza \n\t\tArrayList<Float> predykcjaZNizszaCena=new ArrayList<Float>(normalnaPredykcja);\t\t\n\t\tArrayList<Float> predykcjaZWyzszaCena=new ArrayList<Float>(normalnaPredykcja);\n\t\t\n\t\tfloat nizszaCena =(normalnaPredykcja.get(0)+cenaMinimalnaNaRynkuLokalnym)/2 ;\n\t\tfloat wyzszaCena=(normalnaPredykcja.get(0)+cenaMaksymalnaNaRynkuLokalnym)/2;\n\t\t\n\t\tpredykcjaZNizszaCena.set(0, nizszaCena);\n\t\tpredykcjaZWyzszaCena.set(0, wyzszaCena);\n\t\t\n\t\tlistaPredykcjiCen.add(predykcjaZNizszaCena);\n\t\tlistaPredykcjiCen.add(normalnaPredykcja);\n\t\tlistaPredykcjiCen.add(predykcjaZWyzszaCena);\n\t\t\n\t\t//reporting - zapisz zadeklarowan cene\n\t\trynekHistory.dodajZadeklarowanaCene(normalnaPredykcja.get(0));\n\t\t\n\t\t\n\t\treturn listaPredykcjiCen;\t\n\t}",
"public void oppdaterJliste()\n {\n bModel.clear();\n\n Iterator<Boligsoker> iterator = register.getBoligsokere().iterator();\n\n while(iterator.hasNext())\n bModel.addElement(iterator.next());\n }",
"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 }",
"public void pretraziPoslovneKorisnike() throws BazaPodatakaException {\r\n\t\tString naziv = nazivTF.getText().toLowerCase();\r\n\t\tString web = webTF.getText().toLowerCase();\r\n\t\tString email = emailTF.getText().toLowerCase();\r\n\t\tString telefon = telefonTF.getText();\r\n\r\n\t\tList<PoslovniKorisnik> listaKorisnika = BazaPodataka.dohvatiPoslovnogKorisnikaPremaKriterijima(email, telefon,\r\n\t\t\t\tnaziv, web);\r\n\t\ttablicaPoslovnihKorisnika.setItems(FXCollections.observableArrayList(listaKorisnika));\r\n\r\n\t}",
"private void hienThiMaPDK(){\n ThuePhongService thuePhongService = new ThuePhongService();\n thuePhongModels = thuePhongService.layToanBoPhieuDangKyThuePhong();\n cbbMaPDK.removeAllItems();\n for (ThuePhongModel thuePhongModel : thuePhongModels) {\n cbbMaPDK.addItem(thuePhongModel.getMaPDK());\n }\n }",
"public void addElemento (Elemento obj) {\n if (obj.getPeso() > getPesoLibre() || porNombre.containsKey(obj.getNombre())) {\n System.out.println(nombre +\": No se puede agregar \" + obj.getNombre());\n }\n else {\n porNombre.put(obj.getNombre(), obj);\n addPeso(obj.getPeso());\n }\n }",
"String getElem();",
"public static void llenarSoriana(){\r\n Producto naranja1 = new Producto (\"naranja\", \"el huertito\", 25, 0);\r\n Nodo<Producto> nTemp1 = new Nodo(naranja1);\r\n listaSoriana.agregarNodo(nTemp1);\r\n \r\n Producto naranja2 = new Producto (\"naranja\", \"el ranchito\", 34, 0);\r\n Nodo<Producto> nTemp2 = new Nodo (naranja2);\r\n listaSoriana.agregarNodo(nTemp2);\r\n \r\n Producto manzana3 = new Producto (\"manzana\", \"el rancho de don chuy\", 24, 0);\r\n Nodo<Producto> nTemp3 = new Nodo (manzana3);\r\n listaSoriana.agregarNodo(nTemp3);\r\n \r\n Producto manzana4 = new Producto (\"manzana\", \"la costeña\", 15, 0);\r\n Nodo<Producto> nTemp4 = new Nodo(manzana4);\r\n listaSoriana.agregarNodo(nTemp4);\r\n \r\n Producto platano5 = new Producto (\"platano\", \"el Huertito\", 26, 0);\r\n Nodo<Producto> nTemp5 = new Nodo (platano5);\r\n listaSoriana.agregarNodo(nTemp5);\r\n \r\n Producto platano6 = new Producto (\"platano\", \"granjita dorada\", 36, 0);\r\n Nodo<Producto> nTemp6 = new Nodo (platano6);\r\n listaSoriana.agregarNodo (nTemp6);\r\n \r\n Producto pera7 = new Producto (\"pera\", \"el rancho de don chuy\", 38, 0);\r\n Nodo<Producto> nTemp7 = new Nodo (pera7);\r\n listaSoriana.agregarNodo(nTemp7);\r\n \r\n Producto pera8 = new Producto (\"pera\", \"la costeña\", 8,0);\r\n Nodo<Producto> nTemp8 = new Nodo (pera8);\r\n listaSoriana.agregarNodo(nTemp8);\r\n \r\n Producto durazno9 = new Producto (\"durazno\", \"el huertito\", 12.50, 0);\r\n Nodo<Producto> nTemp9 = new Nodo (durazno9);\r\n listaSoriana.agregarNodo(nTemp9);\r\n \r\n Producto fresa10 = new Producto (\"fresa\", \"el rancho de don chuy\", 35.99,0);\r\n Nodo<Producto> nTemp10 = new Nodo (fresa10);\r\n listaSoriana.agregarNodo(nTemp10);\r\n \r\n Producto fresa11 = new Producto (\"fresa\", \"grajita dorada\", 29.99,0);\r\n Nodo<Producto> nTemp11 = new Nodo (fresa11);\r\n listaSoriana.agregarNodo(nTemp11);\r\n \r\n Producto melon12 = new Producto (\"melon\", \"la costeña\", 18.50, 0);\r\n Nodo<Producto> nTemp12 = new Nodo (melon12);\r\n listaSoriana.agregarNodo(nTemp12);\r\n \r\n Producto melon13 = new Producto (\"melon\", \"el huertito\", 8.50, 0);\r\n Nodo<Producto> nTemp13 = new Nodo (melon13);\r\n listaSoriana.agregarNodo(nTemp13);\r\n \r\n Producto elote14 = new Producto (\"elote\", \"el ranchito\", 6, 0);\r\n Nodo<Producto> nTemp14 = new Nodo (elote14);\r\n listaSoriana.agregarNodo(nTemp14);\r\n \r\n Producto elote15 = new Producto (\"elote\", \"moctezuma\", 12, 0);\r\n Nodo<Producto> nTemp15 = new Nodo (elote15);\r\n listaSoriana.agregarNodo(nTemp15);\r\n \r\n Producto aguacate16 = new Producto (\"aguacate\", \"la costeña\", 35, 0);\r\n Nodo<Producto> nTemp16 = new Nodo (aguacate16);\r\n listaSoriana.agregarNodo(nTemp16);\r\n \r\n Producto cebolla17 = new Producto (\"cebolla\", \"granjita dorada\", 8.99, 0);\r\n Nodo<Producto> nTemp17 = new Nodo (cebolla17);\r\n listaSoriana.agregarNodo(nTemp17);\r\n \r\n Producto tomate18 = new Producto (\"tomate\", \"el costeñito feliz\", 10.50, 0);\r\n Nodo<Producto> nTemp18 = new Nodo (tomate18);\r\n listaSoriana.agregarNodo(nTemp18);\r\n \r\n Producto tomate19 = new Producto (\"tomate\", \"el ranchito\", 8.99, 0);\r\n Nodo<Producto> nTemp19 = new Nodo (tomate19);\r\n listaSoriana.agregarNodo(nTemp19);\r\n \r\n Producto limon20 = new Producto (\"limon\", \"la costeña\", 3.50, 0);\r\n Nodo<Producto> nTemp20 = new Nodo (limon20);\r\n listaSoriana.agregarNodo(nTemp20);\r\n \r\n Producto limon21 = new Producto (\"limon\", \"el ranchito\", 10.99, 0);\r\n Nodo<Producto> nTemp21 = new Nodo (limon21);\r\n listaSoriana.agregarNodo(nTemp21);\r\n \r\n Producto papas22 = new Producto (\"papas\", \"la costeña\", 11, 0);\r\n Nodo<Producto> nTemp22 = new Nodo(papas22);\r\n listaSoriana.agregarNodo(nTemp22);\r\n \r\n Producto papas23 = new Producto (\"papas\", \"granjita dorada\", 4.99, 0);\r\n Nodo<Producto> nTemp23 = new Nodo(papas23);\r\n listaSoriana.agregarNodo(nTemp23);\r\n \r\n Producto chile24 = new Producto (\"chile\", \"el rancho de don chuy\", 2.99, 0);\r\n Nodo<Producto> nTemp24 = new Nodo (chile24);\r\n listaSoriana.agregarNodo(nTemp24);\r\n \r\n Producto chile25 = new Producto (\"chile\",\"la costeña\", 12, 0);\r\n Nodo<Producto> nTemp25 = new Nodo (chile25);\r\n listaSoriana.agregarNodo(nTemp25);\r\n \r\n Producto jamon26 = new Producto (\"jamon\",\"fud\", 25, 1);\r\n Nodo<Producto> nTemp26 = new Nodo(jamon26);\r\n listaSoriana.agregarNodo(nTemp26);\r\n \r\n Producto jamon27 = new Producto(\"jamon\", \"kir\", 13.99, 1);\r\n Nodo<Producto> nTemp27 = new Nodo(jamon27);\r\n listaSoriana.agregarNodo(nTemp27);\r\n \r\n Producto peperoni28 = new Producto (\"peperoni28\", \"fud\", 32, 1);\r\n Nodo<Producto> nTemp28 = new Nodo (peperoni28);\r\n listaSoriana.agregarNodo(nTemp28);\r\n \r\n Producto salchicha29 = new Producto (\"salchicha\", \" san rafael\", 23.99, 1);\r\n Nodo<Producto> nTemp29 = new Nodo (salchicha29);\r\n listaSoriana.agregarNodo(nTemp29); \r\n \r\n Producto huevos30 = new Producto (\"huevos\", \"san rafael\", 30.99, 1);\r\n Nodo<Producto> nTemp30 = new Nodo (huevos30);\r\n listaSoriana.agregarNodo(nTemp30);\r\n \r\n Producto chuletas31 = new Producto (\"chuletas\", \"la res dorada\", 55, 1);\r\n Nodo<Producto> nTemp31 = new Nodo (chuletas31);\r\n listaSoriana.agregarNodo(nTemp31);\r\n \r\n Producto carnemolida32 = new Producto (\"carne molida\", \"san rafael\", 34, 1);\r\n Nodo<Producto> nTemp32 = new Nodo (carnemolida32);\r\n listaSoriana.agregarNodo(nTemp32);\r\n \r\n Producto carnemolida33 = new Producto (\"carne molida\", \"la res dorada\", 32.99, 1);\r\n Nodo<Producto> nTemp33 = new Nodo (carnemolida33);\r\n listaSoriana.agregarNodo(nTemp33);\r\n \r\n Producto pollo34 = new Producto (\"pollo\", \"pollito feliz\", 38, 1);\r\n Nodo<Producto> nTemp34 = new Nodo (pollo34);\r\n listaSoriana.agregarNodo(nTemp34);\r\n \r\n Producto pescado35 = new Producto (\"pescado\", \"pescadito\", 32.99, 1);\r\n Nodo<Producto> nTemp35 = new Nodo (pescado35);\r\n listaSoriana.agregarNodo(nTemp35);\r\n \r\n Producto quesolaurel36 = new Producto (\"queso\", \"laurel\", 23.50, 1);\r\n Nodo<Producto> nTemp36 = new Nodo (quesolaurel36);\r\n listaSoriana.agregarNodo(nTemp36);\r\n \r\n Producto leche37 = new Producto (\"leche\", \"nutrileche\", 12.99, 1);\r\n Nodo<Producto> nTemp37 = new Nodo (leche37);\r\n listaSoriana.agregarNodo(nTemp37);\r\n \r\n Producto lechedeslactosada38 = new Producto (\"leche deslactosada\", \"lala\", 17.50, 1);\r\n Nodo<Producto> nTemp38 = new Nodo (lechedeslactosada38);\r\n listaSoriana.agregarNodo(nTemp38);\r\n \r\n Producto panblanco39 = new Producto (\"pan blanco\", \"bombo\", 23.99, 2);\r\n Nodo<Producto> nTemp39 = new Nodo (panblanco39);\r\n listaSoriana.agregarNodo(nTemp39);\r\n \r\n Producto atun40 = new Producto (\"atun\", \"la aleta feliz\", 12, 2);\r\n Nodo<Producto> nTemp40 = new Nodo (atun40);\r\n listaSoriana.agregarNodo(nTemp40);\r\n \r\n Producto atun41 = new Producto (\"atun\", \"el barco\", 10.99, 2);\r\n Nodo<Producto> nTemp41 = new Nodo (atun41);\r\n listaSoriana.agregarNodo(nTemp41);\r\n \r\n Producto arroz42 = new Producto (\"arroz\", \"mi marca\", 12.50, 2);\r\n Nodo<Producto> nTemp42 = new Nodo (arroz42);\r\n listaSoriana.agregarNodo(nTemp42);\r\n \r\n Producto arroz43 = new Producto (\"arroz\", \"soriana\", 9.99, 2);\r\n Nodo<Producto> nTemp43 = new Nodo (arroz43);\r\n listaSoriana.agregarNodo(nTemp43);\r\n \r\n Producto frijol44 = new Producto (\"frijol\", \"mi marca\", 10.99, 2);\r\n Nodo<Producto> nTemp44 = new Nodo (frijol44);\r\n listaSoriana.agregarNodo(nTemp44);\r\n \r\n Producto frijol45 = new Producto (\"frijol\", \"soriana\", 15.99, 2);\r\n Nodo<Producto> nTemp45 = new Nodo (frijol45);\r\n listaSoriana.agregarNodo(nTemp45);\r\n \r\n Producto azucar46 = new Producto (\"azucar\", \"mi marca\", 12.50, 2);\r\n Nodo<Producto> nTemp46 = new Nodo (azucar46);\r\n listaSoriana.agregarNodo(nTemp46);\r\n \r\n Producto azucar47 = new Producto (\"azucar\", \"zulka\", 15.99, 2);\r\n Nodo<Producto> nTemp47 = new Nodo (azucar47);\r\n listaSoriana.agregarNodo(nTemp47);\r\n \r\n Producto servilletas48 = new Producto (\"servilletas\", \"esponjosas\",10.50, 2);\r\n Nodo<Producto> nTemp48 = new Nodo (servilletas48);\r\n listaSoriana.agregarNodo(nTemp48);\r\n \r\n Producto sal49 = new Producto (\"sal\", \"mar azul\", 3.99, 2);\r\n Nodo<Producto> nTemp49 = new Nodo (sal49);\r\n listaSoriana.agregarNodo(nTemp49);\r\n \r\n Producto aceitedecocina50 = new Producto (\"aceite de cocina\", \"123\", 15.99, 2);\r\n Nodo<Producto> nTemp50 = new Nodo (aceitedecocina50);\r\n listaSoriana.agregarNodo(nTemp50);\r\n \r\n Producto caffe51 = new Producto (\"caffe\", \"nescafe\", 23, 2);\r\n Nodo<Producto> nTemp51 = new Nodo (caffe51);\r\n listaSoriana.agregarNodo(nTemp51);\r\n \r\n Producto puredetomate52 = new Producto (\"pure de tomate\", \" la costeña\", 12.99, 2);\r\n Nodo<Producto> nTemp52 = new Nodo (puredetomate52);\r\n listaSoriana.agregarNodo(nTemp52);\r\n \r\n Producto lentejas53 = new Producto (\"lentejas\", \"la granjita\", 8.99, 2);\r\n Nodo<Producto> nTemp53 = new Nodo (lentejas53);\r\n listaSoriana.agregarNodo(nTemp53);\r\n \r\n Producto zuko54 = new Producto (\"zuko\", \"zuko\", 2.99, 2);\r\n Nodo<Producto> nTemp54 = new Nodo (zuko54);\r\n listaSoriana.agregarNodo(nTemp54);\r\n \r\n Producto champu55 = new Producto (\"champu\", \"loreal\", 32, 3);\r\n Nodo<Producto> nTemp55 = new Nodo (champu55);\r\n listaSoriana.agregarNodo(nTemp55);\r\n \r\n Producto champu56 = new Producto (\"champu\", \"el risueño\", 29.99, 3);\r\n Nodo<Producto> nTemp56 = new Nodo (champu56);\r\n listaSoriana.agregarNodo(nTemp56);\r\n \r\n Producto desodorante57 = new Producto (\"desodorante\", \"nivea\", 23.50, 3);\r\n Nodo<Producto> nTemp57 = new Nodo (desodorante57);\r\n listaSoriana.agregarNodo(nTemp57);\r\n \r\n Producto pastadedientes58 = new Producto(\"pasta de dientes\", \"colgate\", 17.50, 3);\r\n Nodo<Producto> nTemp58 = new Nodo (pastadedientes58);\r\n listaSoriana.agregarNodo(nTemp58);\r\n \r\n Producto pastadedientes59 = new Producto (\"pasta de dientes\", \"el diente blanco\", 29, 3);\r\n Nodo<Producto> nTemp59 = new Nodo (pastadedientes59);\r\n listaSoriana.agregarNodo(nTemp59);\r\n \r\n Producto rastrillos60 = new Producto (\"rastrillos\", \"el filosito\", 33.99, 3);\r\n Nodo<Producto> nTemp60 = new Nodo (rastrillos60);\r\n listaSoriana.agregarNodo(nTemp60);\r\n \r\n Producto rastrillos61 = new Producto (\"rastrillos\", \"barba de oro\", 23.99, 3);\r\n Nodo<Producto> nTemp61 = new Nodo (rastrillos61);\r\n listaSoriana.agregarNodo(nTemp61);\r\n \r\n Producto hilodental62 = new Producto (\"hilo dental\", \"el diente blanco\", 32.99, 3);\r\n Nodo<Producto> nTemp62 = new Nodo (hilodental62);\r\n listaSoriana.agregarNodo(nTemp62);\r\n \r\n Producto cepillodedientes63 = new Producto (\"cepillo de dientes\", \"OBBM\", 17.99, 3);\r\n Nodo<Producto> nTemp63 = new Nodo (cepillodedientes63);\r\n listaSoriana.agregarNodo(nTemp63);\r\n \r\n Producto cloro64 = new Producto (\"cloro\", \"cloralex\", 23.50, 3);\r\n Nodo<Producto> nTemp64 = new Nodo (cloro64);\r\n listaSoriana.agregarNodo(nTemp64);\r\n \r\n Producto acondicionador65 = new Producto (\"acondicionador\", \"sedal\", 28.99, 3);\r\n Nodo<Producto> nTemp65 = new Nodo (acondicionador65);\r\n listaSoriana.agregarNodo(nTemp65);\r\n \r\n Producto acondicionador66 = new Producto (\"acondicionador\", \"pantene\", 23.99, 3);\r\n Nodo<Producto> nTemp66 = new Nodo (acondicionador66);\r\n listaSoriana.agregarNodo(nTemp66);\r\n \r\n Producto pinol67 = new Producto(\"pinol\", \"mi piso limpio\", 15, 3);\r\n Nodo<Producto> nTemp67 = new Nodo (pinol67);\r\n listaSoriana.agregarNodo(nTemp67);\r\n \r\n Producto pinol68 = new Producto (\"pinol\", \"eficaz\", 18.99, 3);\r\n Nodo<Producto> nTemp68 = new Nodo (pinol68);\r\n listaSoriana.agregarNodo(nTemp68);\r\n \r\n Producto tortillas69 = new Producto (\"tortillas\", \"maizena\", 8.99, 2);\r\n Nodo<Producto> nTemp69 = new Nodo (tortillas69);\r\n listaSoriana.agregarNodo(nTemp69);\r\n \r\n Producto cremaparacuerpo70 = new Producto (\"crema para cuerpo\", \"dove\", 13.50, 3);\r\n Nodo<Producto> nTemp70 = new Nodo (cremaparacuerpo70);\r\n listaSoriana.agregarNodo(nTemp70);\r\n \r\n Producto maizoro71 = new Producto (\"maizoro\", \"special k\", 35.99, 2);\r\n Nodo<Producto> nTemp71 = new Nodo (maizoro71);\r\n listaSoriana.agregarNodo(nTemp71);\r\n \r\n Producto maizoro72 = new Producto (\"maizoro\",\"azucaradas\", 43, 2);\r\n Nodo<Producto> nTemp72 = new Nodo (maizoro72);\r\n listaSoriana.agregarNodo(nTemp72);\r\n \r\n Producto zanahoria73 = new Producto (\"zanahoria\", \"el huertito\", 12.99, 0);\r\n Nodo<Producto> nTemp73 = new Nodo (zanahoria73);\r\n listaSoriana.agregarNodo(nTemp73);\r\n \r\n Producto maizoro74 = new Producto (\"maizoro\", \"cherrios\", 45, 2);\r\n Nodo<Producto> nTemp74 = new Nodo (maizoro74);\r\n listaSoriana.agregarNodo(nTemp74);\r\n \r\n Producto mayonesa75 = new Producto (\"mayonesa\", \"helmans\", 23, 2);\r\n Nodo<Producto> nTemp75 = new Nodo (mayonesa75);\r\n listaSoriana.agregarNodo(nTemp75);\r\n }",
"@Override\n public ArrayList<String> kaikkiMahdollisetSiirrot(int x, int y, Ruutu[][] ruudukko) {\n ArrayList<String> siirrot = new ArrayList<>();\n if (x - 1 >= 0 && y - 2 >= 0 && (ruudukko[x - 1][y - 2].getNappula() == null || !onkoSamaVari(ruudukko[x - 1][y - 2].getNappula()))) {\n siirrot.add(\"\" + (x - 1) + (y - 2));\n }\n if (x - 2 >= 0 && y - 1 >= 0 && (ruudukko[x - 2][y - 1].getNappula() == null || !onkoSamaVari(ruudukko[x - 2][y - 1].getNappula()))) {\n siirrot.add(\"\" + (x - 2) + (y - 1));\n }\n if (x - 1 >= 0 && y + 2 <= 7 && (ruudukko[x - 1][y + 2].getNappula() == null || !onkoSamaVari(ruudukko[x - 1][y + 2].getNappula()))) {\n siirrot.add(\"\" + (x - 1) + (y + 2));\n }\n if (x - 2 >= 0 && y + 1 <= 7 && (ruudukko[x - 2][y + 1].getNappula() == null || !onkoSamaVari(ruudukko[x - 2][y + 1].getNappula()))) {\n siirrot.add(\"\" + (x - 2) + (y + 1));\n }\n if (x + 1 <= 7 && y - 2 >= 0 && (ruudukko[x + 1][y - 2].getNappula() == null || !onkoSamaVari(ruudukko[x + 1][y - 2].getNappula()))) {\n siirrot.add(\"\" + (x + 1) + (y - 2));\n }\n if (x + 2 <= 7 && y - 1 >= 0 && (ruudukko[x + 2][y - 1].getNappula() == null || !onkoSamaVari(ruudukko[x + 2][y - 1].getNappula()))) {\n siirrot.add(\"\" + (x + 2) + (y - 1));\n }\n if (x + 1 <= 7 && y + 2 <= 7 && (ruudukko[x + 1][y + 2].getNappula() == null || !onkoSamaVari(ruudukko[x + 1][y + 2].getNappula()))) {\n siirrot.add(\"\" + (x + 1) + (y + 2));\n }\n if (x + 2 <= 7 && y + 1 <= 7 && (ruudukko[x + 2][y + 1].getNappula() == null || !onkoSamaVari(ruudukko[x + 2][y + 1].getNappula()))) {\n siirrot.add(\"\" + (x + 2) + (y + 1));\n }\n return siirrot;\n }",
"private void MembentukListHuruf(){\n for(int i = 0; i < Panjang; i ++){\n Huruf Hrf = new Huruf();\n Hrf.CurrHrf = Kata.charAt(i);\n if(!IsVertikal){\n //horizontal\n Hrf.IdX = StartIdxX;\n Hrf.IdY = StartIdxY+i;\n }else{\n Hrf.IdX = StartIdxX+i;\n Hrf.IdY = StartIdxY;\n }\n // System.out.println(\"iniii \"+Hrf.IdX+\" \"+Hrf.IdY+\" \"+Hrf.CurrHrf+\" \"+NoSoal);\n TTS.Kolom[Hrf.IdX][Hrf.IdY].AddNoSoal(NoSoal);\n TTS.Kolom[Hrf.IdX][Hrf.IdY].Huruf=Hrf.CurrHrf;\n \n }\n }",
"@Test\n public void testLukitseRuutu() {\n System.out.println(\"lukitseRuutu\");\n int x = 0;\n int y = 0;\n Peli peli = new Peli(new Alue(3, 1));\n peli.lukitseRuutu(x, y);\n ArrayList[] lista = peli.getAlue().getRuudukko();\n ArrayList<Ruutu> ruudut = lista[0];\n assertEquals(true, ruudut.get(0).isLukittu());\n }",
"@Override\n\tpublic ArrayList<String> partecipantiListaElettorale(String nome) {\n\t\tDB db = getDB();\n\t\tMap<Integer, Lista> map = db.getTreeMap(\"liste\");\n\n\t\tSet<Integer> keys = map.keySet();\n\t\tfor (int key : keys) {\n\t\t\tif (map.get(key).getNomeLista().equals(nome)) {\n\t\t\t\treturn map.get(key).getComponenti();\n\t\t\t}\n\t\t}\n\n\t\treturn null;\n\t}",
"public Listas_simplemente_enlazada(){\r\n inicio=null; // este constructor me va servir para apuntar el elemento\r\n fin=null;\r\n }",
"@Test\r\n public void testGetElement() throws Exception {\r\n System.out.println(\"getElement ModeloListaOrganizadores\");\r\n\r\n String expResult = \"Diana\";\r\n Utilizador u = new Utilizador(\"teste\", \"[email protected]\", \"teste\", \"teste\", true, 5);\r\n u.setNome(\"Diana\");\r\n Organizador o = new Organizador(u);\r\n\r\n ModeloListaOrganizadores instance = new ModeloListaOrganizadores(e.getListaOrganizadores());\r\n instance.addElement(o);\r\n instance.getElementAt(0);\r\n\r\n Organizador teste = e.getListaOrganizadores().getListaOrganizadores().get(0);\r\n\r\n String result = teste.getUtilizador().getNome();\r\n assertEquals(expResult, result);\r\n\r\n }",
"public abstract Elemento[] elementosStone(Elemento[] elementos);",
"public static void mengurutkanDataBubble_TeknikTukarNilai(){\n \t\tint N = hitungJumlahSimpul();\n \t\tsimpul A=null;\n \t\tsimpul B=null;\n \t\tsimpul berhenti = akhir.kanan;\n\n \t\tSystem.out.println (\"Banyaknya simpul = \" + hitungJumlahSimpul());\n\n \t\tfor (int i=1; i<= hitungJumlahSimpul()-1; i++){\n \t\t\tA = awal;\n \t\t\tB = awal.kanan;\n \t\t\tint nomor = 1;\n\n \t\t\twhile (B != berhenti){\n\t\t\t\tif (A.nama.compareTo(B.nama)>0){\n \t\t\t\t//tukarkan elemen dari simpul A dan elemen dari simpul B\n \t\t\t\ttukarNilai(A,B);\n \t\t\t}\n\n \t\t\tA = A.kanan;\n \t\t\tB = B.kanan;\n \t\t\tnomor++;\n \t\t\t}\n \t\t\tberhenti = A;\n \t\t}\n \t\tSystem.out.println(\"===PROSES PENGURUTAN BUBBLE SELESAI======\");\n \t}",
"public void izbaciElementeSaDecimalnimZarezom() {\n while (prvi != null && (int)prvi.info != prvi.info) {\n prvi = prvi.veza;\n }\n if (prvi != null) {\n Element tekuci = prvi;\n Element prethodni;\n while (tekuci.veza != null) {\n prethodni = tekuci;\n tekuci = tekuci.veza;\n if ((int)tekuci.info != tekuci.info) {\n prethodni.veza = tekuci.veza;\n tekuci = prethodni;\n }\n }\n }\n }",
"@Override\n public Object getElementAt(int index) {\n Object resultado = null;\n resultado = nodos.get(index).getCentroTrabajo().getNombre();\n \n return resultado;\n }",
"public void init(){\n elements = new ArrayList<>();\r\n elements.add(new ListElement(\"Aeshnidae\",this));\r\n ListElement element1 = createItem(\"Baetidae\");\r\n elements.add(element1);\r\n\r\n //elements.add(new ListElement(\"Aeshnidae\", 6, R.drawable.aeshnidaem));\r\n //elements.add(new ListElement(\"Baetidae\", 4, R.drawable.baetidae));\r\n elements.add(new ListElement(\"Blepharoceridae\", 10, R.drawable.blepharoceridae));\r\n elements.add(new ListElement(\"Calamoceratidae\", 10, R.drawable.calamoceridae));\r\n elements.add(new ListElement(\"Ceratopogonidae\", 4, R.drawable.ceratopogonidae));\r\n elements.add(new ListElement(\"Chironomidae\", 2, R.drawable.chironomidae));\r\n elements.add(new ListElement(\"Coenagrionidae\", 6, R.drawable.coenagrionidae));\r\n elements.add(new ListElement(\"Corydalidae\", 6, R.drawable.corydalidae));\r\n elements.add(new ListElement(\"Culicidae\", 2, R.drawable.culicidae));\r\n elements.add(new ListElement(\"Dolichopodidae\", 4, R.drawable.dolichopodidae));\r\n elements.add(new ListElement(\"Dystiscidae\", 3, R.drawable.dytiscidae));\r\n elements.add(new ListElement(\"Elmidae\", 5, R.drawable.elmidae));\r\n elements.add(new ListElement(\"Elmidae Larvae\", 5, R.drawable.elmidae_larvae));\r\n elements.add(new ListElement(\"Empididae\", 8, R.drawable.empididaem));\r\n elements.add(new ListElement(\"Ephydridae\", 8, R.drawable.ephydridaem));\r\n elements.add(new ListElement(\"Eprilodactylidae\", 5, R.drawable.eprilodactylidaem));\r\n elements.add(new ListElement(\"Gyrinidae\", 3, R.drawable.gyrinidae));\r\n elements.add(new ListElement(\"Helicopsychidae\", 10, R.drawable.helicopsychidae));\r\n elements.add(new ListElement(\"Hidrophilidae\", 3, R.drawable.hidrophilidae));\r\n elements.add(new ListElement(\"Hidropsychidae\", 5, R.drawable.hidropsychidae));\r\n elements.add(new ListElement(\"Hirudinea\", 5, R.drawable.hirudineam));\r\n elements.add(new ListElement(\"Hyalellidae\", 6, R.drawable.hyalellidaem));\r\n elements.add(new ListElement(\"Hydracarina\", 4, R.drawable.hydracarinam));\r\n elements.add(new ListElement(\"Hydrobiosidae\", 8, R.drawable.hydrobiosidae));\r\n elements.add(new ListElement(\"Hydroptilidae\", 6, R.drawable.hydroptilidae));\r\n elements.add(new ListElement(\"Leptoceridae\", 8, R.drawable.leptoceridae));\r\n elements.add(new ListElement(\"Leptohyphidea\", 7, R.drawable.leptohyphideam));\r\n elements.add(new ListElement(\"Leptophlebiidae\", 10, R.drawable.leptophlebiidae));\r\n elements.add(new ListElement(\"Lestidae\", 8, R.drawable.lestidaem));\r\n elements.add(new ListElement(\"Libellulidae\", 6, R.drawable.libellulidaem));\r\n elements.add(new ListElement(\"Lymnaeidae\", 3, R.drawable.lymnaeidaem));\r\n elements.add(new ListElement(\"Muscidae\", 2, R.drawable.muscidae));\r\n elements.add(new ListElement(\"Nematoda\", 0, R.drawable.nematodam));\r\n elements.add(new ListElement(\"Odontoceridae\", 10, R.drawable.odontoceridae));\r\n elements.add(new ListElement(\"Oligochaeta\", 1, R.drawable.oligochaetam));\r\n elements.add(new ListElement(\"Ostrachoda\", 3, R.drawable.ostracodam));\r\n elements.add(new ListElement(\"Perlidae\", 10, R.drawable.perlidae));\r\n elements.add(new ListElement(\"Philopotamidae\", 8, R.drawable.philopotamidae));\r\n elements.add(new ListElement(\"Physidae\", 3, R.drawable.physidaem));\r\n elements.add(new ListElement(\"Planaridae\", 5, R.drawable.planaridae));\r\n elements.add(new ListElement(\"Planorbidae\", 3, R.drawable.planorbidaem));\r\n elements.add(new ListElement(\"Psephenidae\", 5, R.drawable.psephenidae));\r\n elements.add(new ListElement(\"Psychodidae\", 3, R.drawable.psychodidae));\r\n elements.add(new ListElement(\"Scirtidae\", 5, R.drawable.scirtidae));\r\n elements.add(new ListElement(\"Sialidea\", 6, R.drawable.sialidaem));\r\n elements.add(new ListElement(\"Simuliidae\", 5, R.drawable.simuliidae));\r\n elements.add(new ListElement(\"Sphaeriidae\", 3, R.drawable.sphaeriidaem));\r\n elements.add(new ListElement(\"Stratiomidae\", 4, R.drawable.stratiomidae));\r\n elements.add(new ListElement(\"Syrphidae\", 1, R.drawable.syrphidaem));\r\n elements.add(new ListElement(\"Tabanidae\", 4, R.drawable.tabanidae));\r\n elements.add(new ListElement(\"Thiaridae\", 3, R.drawable.thiaridaem));\r\n elements.add(new ListElement(\"Tipulidae\", 5, R.drawable.tipulidae));\r\n elements.add(new ListElement(\"Xiphocentronidae\", 8, R.drawable.xiphocentronidaem));\r\n\r\n ListAdapter listAdapter = new ListAdapter(elements, this, new ListAdapter.OnItemClickListener() {\r\n @Override\r\n public void onItemClick(ListElement item) {\r\n moveToDescription(item);\r\n }\r\n });\r\n RecyclerView recyclerView = findViewById(R.id.listRecyclerView);\r\n recyclerView.setHasFixedSize(true);\r\n recyclerView.setLayoutManager(new LinearLayoutManager(this));\r\n recyclerView.setAdapter(listAdapter);\r\n\r\n }",
"ArrayList<Float> pierwszaPredykcja()\n\t{\n\t\tif (Stale.scenariusz<100)\n\t\t{\n\t\t\treturn pierwszaPredykcjaNormal();\n\t\t}\n\t\telse\n\t\t{\n\t\t\t//dla scenariusza testowego cnea predykcji jest ustawiana na 0.30\n\t\t\tArrayList<Float> L1 = new ArrayList<>();\n\t\t\tL1.add(0.30f);\n\t\t\treturn L1;\n\t\t}\n\t}",
"public static void trazenjeVozila(Iznajmljivac o) {\n\t\tLocalDate pocetniDatum = UtillMethod.unosDatum(\"pocetni\");\n\t\tLocalDate krajnjiDatum = UtillMethod.unosDatum(\"krajnji\");\n\t\tSystem.out.println(\"------------------------------------\");\n\t\tSystem.out.println(\"Provera dostupnosti vozila u toku...\\n\");\n\t\tArrayList<Vozilo> dostupnaVoz = new ArrayList<Vozilo>();\n\t\tint i = 0;\n\t\tfor (Vozilo v : Main.getVozilaAll()) {\n\t\t\tif (!postojiLiRezervacija(v, pocetniDatum, krajnjiDatum) && !v.isVozObrisano()) {\n\t\t\t\tSystem.out.println(i + \"-\" + v.getVrstaVozila() + \"-\" + \"Registarski broj\" + \"-\" + v.getRegBR()\n\t\t\t\t\t\t+ \"-Potrosnja na 100km-\" + v.getPotrosnja100() + \"litara\");\n\t\t\t\ti++;\n\t\t\t\tdostupnaVoz.add(v);\n\t\t\t}\n\t\t}\n\t\tif (i > 0) {\n\t\t\tSystem.out.println(\"------------------------------------------------\");\n\t\t\tSystem.out.println(\"Ukucajte kilometrazu koju planirate da predjete:\");\n\t\t\tdouble km = UtillMethod.unesiteBroj();\n\t\t\tint km1 = (int) km;\n\t\t\tporedjenjeVozila d1 = new poredjenjeVozila(km1);\n\t\t\tCollections.sort(dostupnaVoz,d1);\n\t\t\tint e = 0;\n\t\t\tfor(Vozilo v : dostupnaVoz) {\n\t\t\t\tdouble temp = cenaTroskaVoz(v, km, v.getGorivaVozila().get(0));\n\t\t\t\tSystem.out.println(e + \" - \" + v.getVrstaVozila()+ \"-Registarski broj: \"+ v.getRegBR()+\" | \"+ \"Cena na dan:\"+v.getCenaDan() +\" | Broj sedista:\"+ v.getBrSedist()+ \" | Broj vrata:\"+ v.getBrVrata() + \"| Cena troskova puta:\" + temp + \" Dinara\");\n\t\t\t\te++;\n\t\t\t}\n\t\t\tSystem.out.println(\"---------------------------------------\");\n\t\t\tSystem.out.println(\"Unesite redni broj vozila kojeg zelite:\");\n\t\t\tint redniBroj = UtillMethod.unesiteInt();\n\t\t\tif (redniBroj < dostupnaVoz.size()) {\n\t\t\t\tDateTimeFormatter formatters = DateTimeFormatter.ofPattern(\"dd/MM/yyyy\");\n\t\t\t\tString pocetni = pocetniDatum.format(formatters);\n\t\t\t\tString krajnji = krajnjiDatum.format(formatters);\n\t\t\t\tdouble cena = UtillMethod.cenaIznaj(pocetniDatum, krajnjiDatum, dostupnaVoz.get(redniBroj));\n\t\t\t\tRezervacija novaRez = new Rezervacija(dostupnaVoz.get(redniBroj), o, cena, false, pocetni, krajnji);\n\t\t\t\tMain.getRezervacijeAll().add(novaRez);\n\t\t\t\tSystem.out.println(\"Uspesno ste napravili rezervaciju!\");\n\t\t\t\tSystem.out.println(\"---------------------------------\");\n\t\t\t\tSystem.out.println(novaRez);\n\t\t\t\tSystem.out.println(\"---------------------------------\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Uneli ste pogresan redni broj!\");\n\t\t\t}\n\t\t} else {\n\t\t\tSystem.out.println(\"Nema dostupnih vozila za rezervaaciju.\");\n\t\t}\n\t}",
"public void MostrarListas (){\n Nodo recorrer=inicio; // esto sirve para que el elemento de la lista vaya recorriendo conforme se inserta un elemento\r\n System.out.println(); // esto nos sirve para dar espacio a la codificacion de la lista al imprimir \r\n while (recorrer!=null){ // esta secuencia iterativa nos sirve para repetir las opciones del menu\r\n System.out.print(\"[\" + recorrer.dato +\"]--->\");\r\n recorrer=recorrer.siguiente;\r\n }\r\n }",
"@Test\r\n\tpublic void testPelikulaBaloratuDutenErabiltzaileenZerrenda() {\n\t\tArrayList<Integer> zer = BalorazioenMatrizea.getBalorazioenMatrizea().pelikulaBaloratuDutenErabiltzaileenZerrenda(p1.getPelikulaId());\r\n\t\tassertTrue(zer.size() == 2);\r\n\t\tassertTrue(zer.contains(e1.getId()));\r\n\t\tassertTrue(zer.contains(e3.getId()));\r\n\t\tassertFalse(zer.contains(e2.getId()));\r\n\t\t\r\n\t\t// p2 pelikula baloratu duten erabiltzaileen ID-ak itzuli\r\n\t\tzer = BalorazioenMatrizea.getBalorazioenMatrizea().pelikulaBaloratuDutenErabiltzaileenZerrenda(p2.getPelikulaId());\r\n\t\tassertTrue(zer.size() == 4);\r\n\t\tassertTrue(zer.contains(e1.getId()));\r\n\t\tassertTrue(zer.contains(e2.getId()));\r\n\t\tassertTrue(zer.contains(e3.getId()));\r\n\t\tassertTrue(zer.contains(e4.getId()));\r\n\t\t\r\n\t\t// p3 pelikula baloratu duten erabiltzaileen ID-ak itzuli\r\n\t\tzer = BalorazioenMatrizea.getBalorazioenMatrizea().pelikulaBaloratuDutenErabiltzaileenZerrenda(p3.getPelikulaId());\r\n\t\tassertTrue(zer.size() == 2);\r\n\t\tassertTrue(zer.contains(e2.getId()));\r\n\t\tassertTrue(zer.contains(e3.getId()));\r\n\t\tassertFalse(zer.contains(e1.getId()));\r\n\t\t\r\n\t\t// p4 pelikula baloratu duten erabiltzaileen ID-ak itzuli\r\n\t\tzer = BalorazioenMatrizea.getBalorazioenMatrizea().pelikulaBaloratuDutenErabiltzaileenZerrenda(p4.getPelikulaId());\r\n\t\tassertTrue(zer.size() == 2);\r\n\t\tassertTrue(zer.contains(e1.getId()));\r\n\t\tassertTrue(zer.contains(e3.getId()));\r\n\t\tassertFalse(zer.contains(e4.getId()));\r\n\t\t\r\n\t}",
"public void listar() {\n\n if (!vacia()) {\n\n NodoEnteroSimple temp = head;\n\n int i = 0;\n\n while (temp != null) {\n\n System.out.print(i + \".[ \" + temp.getValor() + \" ]\" + \" -> \");\n\n temp = temp.getSiguiente();\n\n i++;\n }\n }\n \n }",
"public ArreiList() {\n koko = 0;\n }",
"void rozpiszKontraktyPart2EV(int index,float wolumenHandlu, float sumaKupna,float sumaSprzedazy )\n\t{\n\t\t//wektor z ostatecznie ustalona cena\n\t\t//rozpiszKontrakty() - wrzuca jako ostatnia cene cene obowiazujaa na lokalnym rynku \n\t\tArrayList<Float> priceVector = priceVectorsList.get(priceVectorsList.size()-1);\n\n\t\t\n\t\t//ograniczenia handlu prosumenta\n\t\tArrayList<DayData> constrainMarkerList = new ArrayList<DayData>();\n\t\t\n\t\t//ograniczenia handlu EV\n\t\tArrayList<DayData> constrainMarkerListEV = new ArrayList<DayData>();\n\t\t\n\t\t//print(listaFunkcjiUzytecznosci.size());\n\t\t//getInput(\"rozpiszKontraktyPart2EV first stop\");\n\t\t\n\t\tint i=0;\n\t\twhile(i<listaFunkcjiUzytecznosci.size())\n\t\t{\n\t\t\t\n\t\t\t//lista funkcji uzytecznosci o indeksie i\n\t\t\tArrayList<Point> L1\t=listaFunkcjiUzytecznosci.get(i);\n\t\t\t\n\t\t\t//point z cena = cena rynkowa\n\t\t\tPoint point = L1.get(index);\n\t\t\t\n\t\t\t\n\t\t\tDayData d =rozpiszKontraktyPointToConstrainMarker(point, wolumenHandlu, sumaKupna, sumaSprzedazy, i);\n\t\t\t\n\t\t\tif (i<Stale.liczbaProsumentow)\n\t\t\t{\n\t\t\t\tconstrainMarkerList.add(d);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tconstrainMarkerListEV.add(d);\n\t\t\t\t\n\t\t\t\t/*print(d.getKupuj());\n\t\t\t\tprint(d.getConsumption());\n\t\t\t\tprint(d.getGeneration());\n\t\t\t\t\n\t\t\t\tgetInput(\"rozpiszKontraktyPart2EV - Ostatni kontrakt\");*/\n\t\t\t}\n\n\t\t\t\n\t\t\t//print(\"rozpiszKontraktyPart2EV \"+i);\n\t\t\ti++;\n\t\t}\n\t\t\n\t\tArrayList<Prosument> listaProsumentow =listaProsumentowWrap.getListaProsumentow();\n\n\t\t//wyywolaj pobranie ontraktu\n\t\ti=0;\n\t\twhile (i<Stale.liczbaProsumentow)\n\t\t{\n\t\t\tif (i<constrainMarkerListEV.size())\n\t\t\t{\n\t\t\t\t((ProsumentEV)listaProsumentow.get(i)).getKontrakt(priceVector,constrainMarkerList.get(i),constrainMarkerListEV.get(i));\n\t\t\t\t//print(\"constrainMarkerListEV \"+i);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tlistaProsumentow.get(i).getKontrakt(priceVector,constrainMarkerList.get(i));\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t\t\n\t\t//getInput(\"rozpiszKontraktyPart2EV -end\");\n\t}",
"public ArrayList<Richiesta> riempi2(){\n ArrayList<Richiesta> array = new ArrayList<>();\n Richiesta elemento = new Richiesta();\n elemento.setIdRichiesta(1);\n elemento.setStato(\"C\");\n elemento.setTipo(\"Prescrizione\");\n elemento.setData_richiesta(\"2016/07/02 alle 08:30 \");\n elemento.setNome_farmaco(\"Brufen\");\n elemento.setQuantita_farmaco(2);\n elemento.setCf_paziente(\"NLSFLP94T45L378G\");\n array.add(elemento);\n\n elemento.setIdRichiesta(2);\n elemento.setStato(\"R\");\n elemento.setTipo(\"Visita specialistica\");\n elemento.setNote_richiesta(\"Specialistica dermatologica presso dottoressa A.TASIN \");\n elemento.setData_richiesta(\"2016/05/06 alle 15:30 \");\n elemento.setCf_paziente(\"MRORSS94T05E378A\");\n array.add(elemento);\n\n elemento.setIdRichiesta(3);\n elemento.setStato(\"R\");\n elemento.setTipo(\"Visita di controllo\");\n elemento.setData_richiesta(\"2016/07/02 alle 08:30 \");\n elemento.setNome_farmaco(\"dermatologica\");\n elemento.setCf_paziente(\"MRORSS94T05E378A\");\n array.add(elemento);\n\n return array;\n }",
"public void ZbierzTowaryKlas() {\n\t\tSystem.out.println(\"ZbierzTowaryKlas\");\n\t\tfor(int i=0;i<Plansza.getTowarNaPlanszy().size();i++) {\n\t\t\tfor(Towar towar : Plansza.getTowarNaPlanszy()) {\n\t\t\t\t\n\t\t\t\tif(Plansza.getNiewolnikNaPLanszy().getXpolozenie()-1 <= towar.getXtowar() && Plansza.getNiewolnikNaPLanszy().getXpolozenie()+1 >= towar.getXtowar()) \n\t\t\t\t\tif(Plansza.getNiewolnikNaPLanszy().getYpolozenie()-1 <= towar.getYtowar() && Plansza.getNiewolnikNaPLanszy().getYpolozenie()+1 >= towar.getYtowar()) {\n\t\t\t\t\t\tPlansza.getNiewolnikNaPLanszy().ZbieranieTowarow(towar);\n\t\t\t\t\t\t//Szansa Niewolnika na zdobycie dwoch razy wiecej towarow\n\t\t\t\t\t\tif(GeneratorRandom.RandomOd0(101) <= ZapisOdczyt.getNiewolnicySzansa()) {\n\t\t\t\t\t\t\tPlansza.getNiewolnikNaPLanszy().ZbieranieTowarow(towar);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tPlansza.getTowarNaPlanszy().remove(towar);\n\t\t\t\t\t\tPlansza.getNiewolnikNaPLanszy().setLicznikTowarow(Plansza.getNiewolnikNaPLanszy().getLicznikTowarow()+1);\n\t\t\t\t\t\ti--;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(Plansza.getRzemieslnikNaPlanszy().getXpolozenie()-1 <= towar.getXtowar() && Plansza.getRzemieslnikNaPlanszy().getXpolozenie()+1 >= towar.getXtowar()) \n\t\t\t\t\tif(Plansza.getRzemieslnikNaPlanszy().getYpolozenie()-1 <= towar.getYtowar() && Plansza.getRzemieslnikNaPlanszy().getYpolozenie()+1 >= towar.getYtowar()) {\n\t\t\t\t\t\tPlansza.getRzemieslnikNaPlanszy().ZbieranieTowarow(towar);\n\t\t\t\t\t\tPlansza.getTowarNaPlanszy().remove(towar);\n\t\t\t\t\t\tPlansza.getRzemieslnikNaPlanszy().setLicznikTowarow(Plansza.getRzemieslnikNaPlanszy().getLicznikTowarow()+1);\n\t\t\t\t\t\ti--;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(Plansza.getArystokrataNaPlanszy().getXpolozenie()-1 <= towar.getXtowar() && Plansza.getArystokrataNaPlanszy().getXpolozenie()+1 >= towar.getXtowar()) \n\t\t\t\t\tif(Plansza.getArystokrataNaPlanszy().getYpolozenie()-1 <= towar.getYtowar() && Plansza.getArystokrataNaPlanszy().getYpolozenie()+1 >= towar.getYtowar()) {\n\t\t\t\t\t\tPlansza.getArystokrataNaPlanszy().ZbieranieTowarow(towar);\n\t\t\t\t\t\tPlansza.getTowarNaPlanszy().remove(towar);\n\t\t\t\t\t\tPlansza.getArystokrataNaPlanszy().setLicznikTowarow(Plansza.getArystokrataNaPlanszy().getLicznikTowarow()+1);\n\t\t\t\t\t\ti--;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public int aktualizujListeOczekujacych(int i){\n\t\tboolean koniec = false;\t\r\n\t\twhile(!koniec && i+1<sjf.size()){ //lece przez liste i sprawdzam czy sa oczekujace\r\n\t\t\ti++;\r\n\t\t\tProces pr = sjf.get(i);\t\t\t\t\t\r\n\t\t\t\r\n\t\t\tif(!pr.wykonany && pr.czasZgloszenia<=czasProcesora){\r\n\t\t\t\toczekujace.add(pr);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\telse{\r\n\t\t\t\tkoniec = true;\r\n\t\t\t\ti--;\r\n\t\t\t}\r\n\t\t}\t\r\n\t\treturn i;\r\n\t}",
"public HTMLTableElement getElementDetalle() { return this.$element_Detalle; }",
"public void lisaaKomennot() {\n this.komennot.put(1, new TarkasteleListoja(1, \"Tarkastele listoja\", super.tallennetutTuotteet, super.tallennetutListat, this.io));\n this.komennot.put(2, new LisaaListalle(2, \"Lisää listalle\", super.tallennetutTuotteet, super.tallennetutListat, this.io));\n this.komennot.put(3, new PoistaListalta(3, \"Poista listalta\", super.tallennetutTuotteet, super.tallennetutListat, this.io));\n }",
"public void dohvatiJMSPorukuISpremiUListu(JMSPoruka poruka){\r\n listaJMSPoruka.add(poruka);\r\n }",
"public HTMLTableSectionElement getElementDetalle() { return this.$element_Detalle; }",
"public void impactoContra(Elemento elemento){}",
"public ArrayList<KelasDicoding> getListKelas(){ return listKelas; }",
"public Elemento getElemento (String nombre) {\n Elemento tmp = null;\n if (porNombre.containsKey(nombre)) {\n tmp=porNombre.remove(nombre);\n addPeso(-tmp.getPeso());\n }\n return tmp;\n }",
"public HTMLLabelElement getElementLabelNombre() { return this.$element_LabelNombre; }",
"public HTMLLabelElement getElementLabelNombre() { return this.$element_LabelNombre; }"
] |
[
"0.70525986",
"0.64028275",
"0.628094",
"0.62132424",
"0.6210957",
"0.61898357",
"0.6131657",
"0.6118512",
"0.6073921",
"0.60551775",
"0.6053167",
"0.6045699",
"0.6045091",
"0.6016896",
"0.6006764",
"0.5984541",
"0.5923804",
"0.59112453",
"0.5871287",
"0.58489186",
"0.5754051",
"0.5751574",
"0.5689141",
"0.56735235",
"0.5666582",
"0.5647851",
"0.56286013",
"0.5627756",
"0.5619007",
"0.5607621",
"0.56025493",
"0.5597669",
"0.5587357",
"0.55797285",
"0.55774593",
"0.5571974",
"0.5554738",
"0.55452055",
"0.5524615",
"0.5518818",
"0.55107003",
"0.54963773",
"0.5480166",
"0.5465512",
"0.5461004",
"0.5452392",
"0.5440408",
"0.54344714",
"0.54343337",
"0.5433309",
"0.5433306",
"0.54155946",
"0.54052407",
"0.5404434",
"0.5396875",
"0.5396115",
"0.53951395",
"0.53931165",
"0.538942",
"0.5378964",
"0.53771573",
"0.53695077",
"0.53672063",
"0.53659827",
"0.5365627",
"0.53654265",
"0.5365036",
"0.5357206",
"0.53571284",
"0.5351799",
"0.53514487",
"0.5348249",
"0.53444463",
"0.5340228",
"0.5326138",
"0.531935",
"0.5317353",
"0.5312327",
"0.5309557",
"0.53042835",
"0.53010523",
"0.530023",
"0.52927804",
"0.52901095",
"0.5289795",
"0.5287015",
"0.5282566",
"0.5281307",
"0.5279537",
"0.52776635",
"0.52759266",
"0.5274883",
"0.5269491",
"0.52662367",
"0.52650285",
"0.5264392",
"0.5262937",
"0.52588445",
"0.5255787",
"0.5254217",
"0.5254217"
] |
0.0
|
-1
|
Metoda dohvaca iduci element kolekcije i vraca ga.
|
public T getNextElement();
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public int getId()\r\n/* 53: */ {\r\n/* 54: 79 */ return this.idDetalleComponenteCosto;\r\n/* 55: */ }",
"public String getElementId();",
"public int getIden() {\n return iden;\n }",
"@Override\n\tpublic int getId() {\n\t\treturn _keHoachKiemDemNuoc.getId();\n\t}",
"public int getId_anneeScolaire() {return id_anneeScolaire;}",
"public Integer getIdLocacion();",
"@Override\n public String getElementId()\n {\n return null;\n }",
"public String getId_Pelanggan(){\r\n \r\n return id_pelanggan;\r\n }",
"public void setIdventa( Integer idventa ) {\n this.idventa = idventa ;\n }",
"public int getId()\r\n/* 208: */ {\r\n/* 209:381 */ return this.idCargaEmpleado;\r\n/* 210: */ }",
"@Override\n\tpublic int getIdNguoiTao() {\n\t\treturn _keHoachKiemDemNuoc.getIdNguoiTao();\n\t}",
"public int getId()\r\n/* 75: */ {\r\n/* 76:110 */ return this.idAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI;\r\n/* 77: */ }",
"public int getIdDetalle_Ventaf() {\n return idDetalle_Ventaf;\n }",
"public void setId(int idNuevo)\n { \n this.id = idNuevo;\n }",
"public void setIdLocacion(Integer idLocacion);",
"public final int getElementId() {\n return elementId;\n }",
"public int getIdCandidatura(){\n return idCandidatura;\n }",
"@Override\n\tpublic int getIdNguoiDong() {\n\t\treturn _keHoachKiemDemNuoc.getIdNguoiDong();\n\t}",
"private Integer getId() { return this.id; }",
"public int getIdFornecedor(){\n\t return idFornecedor;\n\t}",
"public String getElementId() {\n return elementId;\n }",
"@Override\n\tpublic double getId()\n\t{\n\t\treturn id;\n\t}",
"public void setId_anneeScolaire(int id_anneeScolaire) {this.id_anneeScolaire = id_anneeScolaire;}",
"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 setIden(int iden) {\n this.iden = iden;\n }",
"public int getId() {return id;}",
"@Override\n\tpublic int getIdNguoiXuatBan() {\n\t\treturn _keHoachKiemDemNuoc.getIdNguoiXuatBan();\n\t}",
"public int getId(){\r\n return this.id;\r\n }",
"public HTMLDivElement getElementIdCreacionRegistro() { return this.$element_IdCreacionRegistro; }",
"public int getId()\r\n/* 69: */ {\r\n/* 70:103 */ return this.idAutorizacionEmpresaSRI;\r\n/* 71: */ }",
"public String getIdKlinik() {\n return idKlinik;\r\n }",
"@Override\n\t\tpublic long getId() {\n\t\t\treturn 0;\n\t\t}",
"private int getId() {\r\n\t\treturn id;\r\n\t}",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"public String getId() { return id; }",
"public String getId() { return id; }",
"public String getId() { return id; }",
"@Override\n\tpublic int sacameVida(ElementoAlien a) {\n\t\treturn 20;\n\t}",
"public Integer getIdAluguel() {\n\t\treturn idAluguel;\n\t}",
"public long getId() { return this.id; }",
"public String getIdVenta() {\n return idVenta;\n }",
"@Override\n public void setElementId(String arg0)\n {\n \n }",
"public Integer getaId() {\r\n return aId;\r\n }",
"public void setIdDetalle_Ventaf(int idDetalle_Ventaf) {\n this.idDetalle_Ventaf = idDetalle_Ventaf;\n }",
"Short getId();",
"public String getaId() {\n return aId;\n }",
"@Override\n public String getKey()\n {\n return id; \n }",
"public String getId()\r\n/* 14: */ {\r\n/* 15:14 */ return this.id;\r\n/* 16: */ }",
"public Integer getId() { return this.id; }",
"public void setIdDetalleComponenteCosto(int idDetalleComponenteCosto)\r\n/* 63: */ {\r\n/* 64: 87 */ this.idDetalleComponenteCosto = idDetalleComponenteCosto;\r\n/* 65: */ }",
"public int getId_docente() {\n return id_docente;\n }",
"@Override\r\n public int getId() {\n return id;\r\n }",
"public int id() {return id;}",
"public BigDecimal getIdNaturaleza() {\r\n return idNaturaleza;\r\n }",
"public long getIdVozilo() {\n return idVozilo;\n }",
"@Override\n\tpublic int getId(){\n\t\treturn id;\n\t}",
"public long getIdViaje() {\n\t\treturn idViaje;\n\t}",
"public int getId() {return Id;}",
"public int getIdfilial(){\r\n return idfilial;\r\n }",
"public Long id() { return this.id; }",
"public int getKAId() {\n return this.id;\n }",
"public void setId_pelanggan(String Id_Pelanggan){\r\n \r\n this.id_pelanggan = Id_Pelanggan;\r\n }",
"@Override\n\tpublic int getKiemDemVienId() {\n\t\treturn _keHoachKiemDemNuoc.getKiemDemVienId();\n\t}",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();"
] |
[
"0.69046175",
"0.68089217",
"0.6671145",
"0.66355187",
"0.6612562",
"0.6455987",
"0.64328724",
"0.640365",
"0.63739175",
"0.6355093",
"0.6316714",
"0.63149637",
"0.6299926",
"0.6294322",
"0.62822264",
"0.62766135",
"0.626",
"0.6233317",
"0.62289995",
"0.621402",
"0.62089455",
"0.6201301",
"0.6200869",
"0.6200637",
"0.6200637",
"0.6200637",
"0.6200637",
"0.6200637",
"0.6200637",
"0.6181709",
"0.6181298",
"0.61764777",
"0.6166532",
"0.6166209",
"0.6160394",
"0.6148182",
"0.61350393",
"0.6133055",
"0.6132947",
"0.6132947",
"0.6132947",
"0.6132947",
"0.6132947",
"0.6132947",
"0.6132947",
"0.6132947",
"0.6132947",
"0.6132947",
"0.6132947",
"0.6132947",
"0.6132947",
"0.6132947",
"0.6132947",
"0.6132947",
"0.6132947",
"0.6132947",
"0.6132947",
"0.61221665",
"0.61221665",
"0.61221665",
"0.6116146",
"0.6115629",
"0.6106691",
"0.6105965",
"0.6101607",
"0.60956955",
"0.6095664",
"0.60951483",
"0.6090822",
"0.60901487",
"0.6083729",
"0.6080433",
"0.6078477",
"0.6077229",
"0.60693526",
"0.60623676",
"0.6060603",
"0.6060296",
"0.605668",
"0.6049556",
"0.6045578",
"0.6044258",
"0.60442156",
"0.60417",
"0.60398287",
"0.60360634",
"0.60340184",
"0.60340184",
"0.60340184",
"0.60340184",
"0.60340184",
"0.60340184",
"0.60340184",
"0.60340184",
"0.60340184",
"0.60340184",
"0.60340184",
"0.60340184",
"0.60340184",
"0.60340184",
"0.60340184"
] |
0.0
|
-1
|
Nad svim preostalim elementima kolekcije poziva metodu procesora p process(Object value).
|
default void processRemaining(Processor<? super T> p) {
Objects.requireNonNull(p);
while(hasNextElement()) {
p.process(getNextElement());
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void process(Object value) {}",
"public void process(Object value) {\n\t\t//empty\n\t}",
"public Object caseProcessElement(ProcessElement object) {\n\t\treturn null;\n\t}",
"@Override\r\n \tpublic void process() {\n \t\t\r\n \t}",
"public interface ValueProcessor {\n public void process(Object original, String type, String value);\n }",
"public Object enterTransform(Object value) {\n return value;\n }",
"public void process() {\n\t}",
"public Object caseUma_Process(org.topcased.spem.uma.Process object) {\n\t\treturn null;\n\t}",
"public void process() {\n\n }",
"@ProcessElement public void process(ProcessContext c) {\n MyProduct elem = c.element();\n c.output(KV.of(elem.getId(), elem));\n }",
"public Object process(Izvod izvod) throws JAXBException, IOException,\r\n\t\t\tSAXException, Exception {\n\t\treturn processor.process(izvod);\r\n\t}",
"@Override\n\tpublic String process() {\n\t\treturn null;\n\t}",
"public Object caseProcess(org.topcased.ispem.Process object) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic void processing() {\n\n\t}",
"@ConfigOperation\n @Order(50)\n protected void execChangedValue() throws ProcessingException {\n }",
"@Override\r\n\tprotected void processExecute() {\n\r\n\t}",
"@Override\n public void processElement(ProcessContext processContext) {\n processContext.output(processContext.element().getKey());\n }",
"public void process();",
"public void setProcessWebElement(ProcessWebElement<T> processWebElement);",
"@Override\n\tpublic Map<String, Object> preProccess() {\n\t\treturn null;\n\t}",
"@Override\r\n\tprotected void process() {\n\t\tconsultarSustentoProxy.setCodigoActvidad(codigo_actividad);\r\n\t\tconsultarSustentoProxy.setCodigoCliente(codigo_cliente);\r\n\t\tconsultarSustentoProxy.setCodigoPLan(codigo_plan);\r\n\t\tconsultarSustentoProxy.execute();\r\n\t}",
"@Override\n public PageParam valideteProcess(PageParam model) throws KkmyException {\n return null;\n }",
"public Object caseProcessPackageableElement(ProcessPackageableElement object) {\n\t\treturn null;\n\t}",
"public void processing();",
"protected String proposeValue(String value)\r\n {\r\n logger.debug(\"Proposing value using paxos: \" + value);\r\n\r\n ByzPaxos paxos = new ByzPaxos();\r\n\r\n return startPaxos(paxos,value);\r\n\r\n }",
"public void processActualizar() {\n }",
"void process();",
"void process();",
"void process(InstrumentDefinition value);",
"@Override\n\t\t\tpublic void onProcess(int process) {\n\t\t\t}",
"public void processed(int i);",
"@Override\n\tpublic void process() throws Exception {\n\n\t}",
"@Override\n public Object preProcess() {\n return null;\n }",
"@Override\n\tpublic Result doProcessing() {\n\t\treturn doProcessing1();\n\t}",
"public static String getProcessedValue(String value) throws Exception {\r\n if (value.startsWith(\"$\")) {\r\n return UnitAction.GetData(value);\r\n }\r\n else if (value.startsWith(\"&\")) {\r\n return UnitAction.GetRunTimeData(value);\r\n } \r\n \r\n else if (value.equals(\"RANDOM_STRING\")) {\r\n return UnitAction.generateString(8);\r\n } \r\n \r\n else if (value.equals(\"CURRENT_DATE\")) {\r\n return UnitAction.getCurrentDate();\r\n } \r\n \r\n \r\n else\r\n return value;\r\n }",
"public Process getProcess(){\n\t\treturn p;\n\t}",
"public abstract void processComponent(T o);",
"public void processEliminar() {\n }",
"@Override\n\tpublic void processingInstruction() {\n\t\t\n\t}",
"public T caseCommon_Preprocess(at.jku.weiner.c.common.common.Preprocess object)\n\t{\n\t\treturn null;\n\t}",
"@Override\n\tpublic void process(Exchange arg0) throws Exception {\n\t\t\n\t}",
"public void impactoContra(Elemento elemento){}",
"public void map(Object key, Text value, Context context) throws IOException, InterruptedException{\n val = value.toString();\n\t\tarr = val.split(\"\\\\s+\");\n\t\tprova.set(Long.parseLong(arr[1]));\n\t\tcontext.write(prova,one);\n\t\t\n }",
"@Override\r\n\tpublic void process() {\n\t\tSystem.out.println(\"this is singleBOx \" + this.toString());\r\n\t}",
"@ProcessElement\n public void processElement(ProcessContext c) {\n Iterator<String> duplicates = c.element().getValue().iterator();\n\n // Shouldn't really have to check hasNext\n if (duplicates.hasNext()) {\n c.output(duplicates.next());\n }\n }",
"@Override\n\tpublic void processData() {\n\t\t\n\t}",
"@Override\n\tpublic Object process(Object input) {\n\t\treturn filter.process((Waveform2)input);\n\t}",
"public T casePreprocess(Preprocess object)\n\t{\n\t\treturn null;\n\t}",
"public void evaluate(ContainerValue cont, Value value, List<Value> result);",
"protected Object doGetValue() {\n\t\treturn value;\n\t}",
"public void processItem(OUT item)throws CrawlerException{\n processor.process(item);\n }",
"public Process getProcess() {\n return this.process;\n }",
"protected abstract SoyValue compute();",
"@Override\n\tpublic void forEach(Processor processor) {\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tprocessor.process(elements[i]);\n\t\t}\n\t}",
"public void process() throws Exception {\n\n }",
"@Override\n\tpublic void process(Page page) {\n\t\t\n\t}",
"public interface Processor {\n\n /**\n * Common key on the params map that uses/returns the process method\n */\n enum ParameterKeys {\n ID, BODY, LEFT, RIGHT, STOP_FLAG, RESULT\n }\n\n /**\n * It's the entry point to call the business logic execution on each Processor\n * @param params Map of params that is been use inside the Processor\n * @return the new state of the params after the business logic execution\n * @throws NullPointerException if the params is null, or an expected key inside the map\n * @throws IllegalArgumentException id the value of the param is not valid\n */\n Map<ParameterKeys, Object> process(final Map<ParameterKeys, Object> params) throws NullPointerException, IllegalArgumentException;\n}",
"@Override\n public void paso0() {\n n = graph.getNodeIndices().indexOf(actual);\n nodo = graph.getNodes().get(n);\n nodo.setEstado(Node.State.CURRENT);\n nodo.pintarNodo(g);\n // comprueba si es objetivo\n if (nodo.getEsObjetivo()) {\n // establece el objetivo encontrado\n miObjetivo = nodo.toString();\n // termina con exito\n Step = 4;\n } else {\n // se prepara para explorar los sucesores\n m = nodo.maxSucesores();\n j = 0;\n // siguiente paso\n Step = 1;\n }\n }",
"private void processContents(String key, Object value ) {\n\t\tif ( key.equals(\"class\") ) {\n\t\t\tprocessClass( (String) value );\n\t\t}\n\n\t\tif ( key.equals(\"inputs\") ) {\n\t\t\tfor( Object inputPairs : (ArrayList<String>) value ){\n\t\t\t\tprocessInputs( (Map) inputPairs );\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tCOMMAND_LINE_TOOL.setinputs( INPUTS );\n\t\t}\n\n\t\tif ( key.equals(\"outputs\") ) {\n\t\t\tfor( Object outputPairs : (ArrayList<String>) value ){\n\t\t\t\tprocessOutputs( (Map) outputPairs );\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tCOMMAND_LINE_TOOL.setoutputs( OUTPUTS );\n\t\t}\n\n\t\tif ( key.equals(\"baseCommand\") ) {\n\t\t\tCOMMAND_LINE_TOOL.setbaseCommand( removeBrackets( getFirstElementOfArrayList( (ArrayList) value ) ) );\n\t\t}\n\n\t\tif ( key.equals(\"stdin\") ) {\n\t\t\tCOMMAND_LINE_TOOL.setstdin( cleanStandardInput( (String) value ) );\n\t\t}\n\n\t\tif ( key.equals(\"stdout\") ) {\n\t\t\tCOMMAND_LINE_TOOL.setstdout( (String) value );\n\t\t}\n\n\n\t}",
"@Override\r\n\tpublic void process(ResultItems arg0, Task arg1) {\n\t\t\r\n\t}",
"@Override\n\tpublic void pausaParaComer() {\n\n\t}",
"@Override\n\tprotected Map<String, Object> executeProcess(Map<String, Object> params)\n\t\t\tthrows Exception {\n\t\tif (log.isDebugEnabled())log.debug(\"Ingresando a executeProcess\");\n\t\t//super.executeProceso();// (form, params);\n\t\t\n\t\treturn params;\n\t}",
"public Object leaveTransform(Object value) {\n return value;\n }",
"protected abstract Object evalValue() throws JspException;",
"private void setValueObject(Object object, Object value) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException, SecurityException, NoSuchMethodException{\n\t\tthis.methodSet.invoke(object, value);\n\t}",
"void visitContainerValue(ContainerValue value);",
"public void process(Object object)\r\n/* 28: */ {\r\n/* 29:26 */ System.out.println(\"Reciever received this signal from transmitter: \" + object.toString());\r\n/* 30: */ }",
"protected Object valueTranslator(Object value){\n\t\treturn value;\n\t}",
"public Object executar() throws TarefaException {\n\t\t\r\n\t\tCollection colecaoRotasParaExecucao = (Collection) getParametro(ConstantesSistema.COLECAO_UNIDADES_PROCESSAMENTO_BATCH);\r\n\t\tIterator iterator = colecaoRotasParaExecucao.iterator();\r\n\r\n\t\twhile (iterator.hasNext()) {\r\n\r\n\t\t\tInteger idRota = (Integer) iterator.next();\r\n\r\n\t\t\tSystem.out.println(\"ROTA GERAR CARTAS \" + idRota + \" *********************************************************\");\r\n\r\n\t\t\tenviarMensagemControladorBatch(\r\n\t\t\t\t\tConstantesJNDI.BATCH_GERAR_CARTAS_CAMPANHA_SOLIDARIEDADE_CRIANCA_PARA_NEGOCIACAO_A_VISTA_MDB,\r\n\t\t\t\t\tnew Object[]{idRota, this.getIdFuncionalidadeIniciada()});\r\n\t\t\t\r\n\t\t}\r\n\r\n\t\treturn null;\r\n\t}",
"private void handleResult(boolean changed, EvaluationAccessor result, EvaluationAccessor value, int index) {\n if (changed) {\n if (index >= 0) {\n result.addBoundContainerElement(value, index);\n } else {\n result.addBoundContainerElement(value.getVariable());\n }\n }\n }",
"public static final String getProcessValue() {\n\t\treturn VALUE;\n\t}",
"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}",
"public T caseExpression_ProcessRef(Expression_ProcessRef object)\r\n {\r\n return null;\r\n }",
"public KlijentPovezanaOsobaRs procitajSvePovezaneOsobePOVIJEST(KlijentPovezanaOsobaVo value) {\r\n return null;\r\n }",
"public Process() {\t// constructor with empty parameter\r\n\t\tthis.priority = -1;\t// int value will be -1\r\n \tthis.type = null;\t// String object initialized to null\r\n\t}",
"protected abstract boolean processElement(Element node, int uolId) throws\n PropertyException;",
"public void processInput() {\n\n\t}",
"@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \tSystem.out.println(\"---here---value-\");\n processRequest(request, response);\n \n }",
"Object getValue();",
"Object getValue();",
"Object getValue();",
"Object getValue();",
"Object getValue();",
"Object getValue();",
"Object getValue();",
"@Override\r\n\tpublic void process() {\n\t\tSystem.out.println(\"this is CompositeBOx \" + this.toString());\r\n\t\tfinal Iterator it = mBoxList.iterator();\r\n\t\twhile(it.hasNext())\r\n\t\t{\r\n\t\t\tIBox box = (IBox)it.next();\r\n\t\t\tbox.process();\r\n\t\t}\r\n\t}",
"public abstract boolean onProcess(JSONObject jSONObject, long j) throws Exception;",
"private Process(Device device, Vrf vrf) {\n\t\tthis.device = device;\n\t\tthis.adjacentProcesses = new HashSet<Process>();\n\t\tthis.vrf = vrf;\n\t}",
"protected E value(Position<Item<E>> p) {\n return p.getElement().getValue();\n }",
"public Process getProcess()\n {\n return proc;\n }",
"@ProcessElement\r\n\t\tpublic void processElement(ProcessContext c) throws Exception {\n\t\t\t\r\n\t\t\tString line = c.element();\r\n\t\t\tCSVParser csvParser = new CSVParser();\r\n\t\t\tString[] words = csvParser.parseLine(line);\r\n\t\t\t\r\n\t\t\tTableRow row = new TableRow();\t\t\t\r\n\t\t\tlogger.info(\"column size======>\" + columnList.size());\r\n\t\t\tfor (int i = 0; i < columnList.size(); i++) {\r\n\t\t\t\tlogger.info(\"column name ===>value\" + columnList.get(i) + words[i]);\r\n\t\t\t\t/*if (words[i].startsWith(\"\\\"\") && words[i].endsWith(\"\\\"\")) {\r\n\t\t\t\t\tcolumnValue = words[i].replace(\"\\\"\",\"\");\r\n\t\t\t\t}*/\r\n\t\t\t\trow.set(columnList.get(i), /*columnValue*/ words[i]);\r\n\t\t\t}\r\n\r\n\t\t\tc.output(row);\r\n\t\t}",
"@Override\n public void run() {\n\tprocess();\n }",
"Object visitValue(ValueNode node, Object state);",
"public void limpiarProcesoBusqueda() {\r\n parametroEstado = 1;\r\n parametroNombre = null;\r\n parametroApellido = null;\r\n parametroDocumento = null;\r\n parametroTipoDocumento = null;\r\n parametroCorreo = null;\r\n parametroUsuario = null;\r\n parametroEstado = 1;\r\n parametroGenero = 1;\r\n listaTrabajadores = null;\r\n inicializarFiltros();\r\n }",
"public interface Iprocessor {\n public void process(RoundEnvironment roundEnvironment, Element typeElement, Filer mfFiler, Elements elements, Messager messager);\n}",
"public void execute() throws ProcessException\r\n {\r\n \tdouble input = inputVar.getData().getDoubleValue(); \t\r\n \t\r\n \tswitch (interpolationMethod)\r\n \t{\r\n \t\tcase 1:\r\n \t\t\tcomputeInterpolatedValue1D(input);\r\n \t\t\tbreak; \t\t\t\r\n \t}\r\n \t\r\n \t//System.out.println(getName() + \": \" + input + \" -> \" + outputVars[0].getData().getDoubleValue());\r\n }",
"@Override\n\tprotected void processInput() {\n\t}",
"void process(N origin, TreeNodeProcessor<N> processor);",
"public void processInsertar() {\n }",
"@Override\n protected String process() {\n process.print();\n return \"hello world!!\";\n }",
"Process getProcess() {\n return process;\n }"
] |
[
"0.7581353",
"0.75429386",
"0.63299394",
"0.6136355",
"0.605297",
"0.5904673",
"0.58843464",
"0.5830139",
"0.57842165",
"0.5783841",
"0.5778165",
"0.57454205",
"0.5738115",
"0.57147014",
"0.57139057",
"0.5605797",
"0.5599594",
"0.5497583",
"0.5481822",
"0.54659516",
"0.5444317",
"0.5441547",
"0.54312253",
"0.5389047",
"0.5388759",
"0.5369335",
"0.5362262",
"0.5362262",
"0.5326646",
"0.5316402",
"0.5308891",
"0.52740854",
"0.5273067",
"0.52636737",
"0.52541274",
"0.5247688",
"0.52148104",
"0.5198789",
"0.51884073",
"0.5187888",
"0.5186908",
"0.515051",
"0.5126498",
"0.50887126",
"0.507318",
"0.50691223",
"0.5065609",
"0.50640774",
"0.5053274",
"0.5051722",
"0.50497246",
"0.50398827",
"0.5037455",
"0.50367373",
"0.5032943",
"0.5032174",
"0.5016384",
"0.5010833",
"0.4988304",
"0.49829707",
"0.49810022",
"0.49794886",
"0.49704888",
"0.49680236",
"0.49558255",
"0.49554136",
"0.49541909",
"0.49514863",
"0.49389878",
"0.4930188",
"0.4918141",
"0.49167338",
"0.49166712",
"0.49163258",
"0.4913004",
"0.49124223",
"0.49108666",
"0.4908662",
"0.49084163",
"0.49084163",
"0.49084163",
"0.49084163",
"0.49084163",
"0.49084163",
"0.49084163",
"0.49020886",
"0.4898877",
"0.4893488",
"0.489216",
"0.48850772",
"0.48835573",
"0.4883083",
"0.48811305",
"0.48761258",
"0.48755214",
"0.48721853",
"0.4866997",
"0.48665494",
"0.4864569",
"0.4864294",
"0.4863281"
] |
0.0
|
-1
|
Creates new form Times
|
public Times() {
initComponents();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setTimeCreate(Date timeCreate) {\n this.timeCreate = timeCreate;\n }",
"private static void setupTimePicker(LoopView timeHours, LoopView timeMins, LoopView timeTime) {\n timeHours.setItemsVisibleCount(5);\n timeHours.setNotLoop();\n //timeMins.setItems(timeMinsList);\n timeMins.setItemsVisibleCount(5);\n timeMins.setNotLoop();\n //timeTime.setItems(timeTimeList);\n timeTime.setItemsVisibleCount(5);\n timeTime.setNotLoop();\n }",
"TimeSpent createTimeSpent();",
"private void generateCheckInTimes() throws ParseException {\n \n int numToGen = (Integer)occurSpinner.getValue();\n SimpleDateFormat aSdf = Constants.CHECKIN_DATE_FORMAT;\n DefaultListModel theModel = (DefaultListModel)checkInTimeList.getModel();\n \n //Get the white listed times\n int startHour = (Integer)startHourSpinner.getValue();\n int startMinute = (Integer)startMinSpinner.getValue(); \n int endHour = (Integer)endHourSpinner.getValue(); \n int endMinute = (Integer)endMinSpinner.getValue(); \n \n //Convert to absolute times\n int startTime = startHour * 60 + startMinute;\n int endTime = endHour * 60 + endMinute;\n \n //Get the frequency\n TimeFreq freqObj = (TimeFreq)freqCombo.getSelectedItem();\n \n //Get the current date\n Calendar theCalendar = Calendar.getInstance();\n Date currentDate;\n if( theModel.isEmpty() ){\n currentDate = new Date();\n } else {\n String currentDateStr = (String)theModel.get( theModel.size() - 1 ); \n currentDate = Constants.CHECKIN_DATE_FORMAT.parse(currentDateStr);\n }\n \n //Set the time\n theCalendar.setTime( currentDate ); \n \n //If the freq is hourly then make sure the start time is after the current time\n int theFreq = freqObj.getType(); \n if( theFreq != TimeFreq.HOURLY ){\n \n //Calculate the range\n int range;\n if( endTime >= startTime ){\n\n range = endTime - startTime;\n\n } else {\n\n //If the start time is greater than the stop time then the range is\n //start to max and min to end\n range = maximumTime - startTime;\n range += endTime;\n\n }\n\n //Generate some dates\n for( int i = 0; i < numToGen; i++ ){\n\n //Get the random num\n float rand = aSR.nextFloat();\n int theRand = (int)(rand * range);\n\n //Get the new absolute time\n int newTime = theRand + startTime;\n if( newTime > maximumTime )\n newTime -= maximumTime;\n \n //Convert to hour and second\n int newHour = newTime / 60;\n int newMin = newTime % 60; \n\n //Everything but hourly\n theCalendar.set( Calendar.HOUR_OF_DAY, newHour);\n theCalendar.set( Calendar.MINUTE, newMin);\n theCalendar.add( theFreq, 1);\n \n //Add the time\n String aDate = aSdf.format( theCalendar.getTimeInMillis());\n theModel.addElement(aDate);\n }\n \n } else {\n \n int currHour = theCalendar.get( Calendar.HOUR_OF_DAY );\n int currSecond = theCalendar.get( Calendar.MINUTE );\n \n int currTime = currHour * 60 + currSecond;\n \n //Go to the next day\n //Generate some dates\n for( int i = 0; i < numToGen; i++ ){\n \n //Get the random num\n float rand = aSR.nextFloat();\n int theRand = (int)(rand * 30);\n\n if( currTime + 60 > endTime ){\n theCalendar.add( Calendar.DAY_OF_YEAR, 1);\n theCalendar.set( Calendar.HOUR_OF_DAY, startHour);\n theCalendar.set( Calendar.MINUTE, startMinute);\n } else {\n theCalendar.add( theFreq, 1); \n theCalendar.add( Calendar.MINUTE, theRand );\n }\n \n \n //Add the time\n String aDate = aSdf.format( theCalendar.getTimeInMillis());\n theModel.addElement(aDate);\n\n //Update time\n currHour = theCalendar.get( Calendar.HOUR_OF_DAY );\n currSecond = theCalendar.get( Calendar.MINUTE );\n currTime = currHour * 60 + currSecond;\n \n }\n } \n \n \n \n }",
"public void generateTimes() {\n\n\t\tLocalTime currentTime = PropertiesConfig.getMorningSessionBegin();\n\t\tfor (Talk talk : morningSession.getTalks()) {\n\t\t\ttalk.setTime(currentTime);\n\t\t\tcurrentTime = currentTime.plusMinutes(talk.getLength());\n\t\t}\n\n\t\tTalk lunch = new Talk(PropertiesConfig.LUNCH_TITLE);\n\t\tlunch.setTime(PropertiesConfig.getLunchBegin());\n\t\tlunchSession.addTalk(lunch);\n\n\t\tcurrentTime = PropertiesConfig.getAfternoonSessionBegin();\n\t\tfor (Talk talk : afternoonSession.getTalks()) {\n\t\t\ttalk.setTime(currentTime);\n\t\t\tcurrentTime = currentTime.plusMinutes(talk.getLength());\n\t\t}\n\n\t\tTalk meetEvent = new Talk(PropertiesConfig.MEET_EVENT_TITLE);\n\t\tmeetEvent.setTime(currentTime);\n\t\tmeetSession.addTalk(meetEvent);\n\t}",
"@Test\n public void createFormSceduleEntry(){\n ScheduleEntry entry = new ScheduleEntry(\"9;00AM\", new SystemCalendar(2018,4,25));\n }",
"public void setCreatetime(Date createtime) {\r\n this.createtime = createtime;\r\n }",
"public void setCreatetime(Date createtime) {\r\n this.createtime = createtime;\r\n }",
"public void setCreatetime(Date createtime) {\r\n this.createtime = createtime;\r\n }",
"public void addTimetable(String date, String slot, String room, String teacher, String classes) throws Exception;",
"public void setCreatetime(Date createtime) {\n this.createtime = createtime;\n }",
"public void setCreatetime(Date createtime) {\n this.createtime = createtime;\n }",
"public void setCreatetime(Date createtime) {\n this.createtime = createtime;\n }",
"public void setCreatetime(Date createtime) {\n this.createtime = createtime;\n }",
"public void setCreatetime(Date createtime) {\n this.createtime = createtime;\n }",
"public void setCreatetime(Date createtime) {\n this.createtime = createtime;\n }",
"public void setCreatetime(Date createtime) {\n this.createtime = createtime;\n }",
"public void setCreatetime(Date createtime) {\n this.createtime = createtime;\n }",
"Builder addTimeRequired(String value);",
"public void initializeTime() {\n hour = cal.get(Calendar.HOUR);\n min = cal.get(Calendar.MINUTE);\n\n time = (EditText) findViewById(R.id.textSetTime);\n time.setInputType(InputType.TYPE_NULL);\n\n //Set EditText text to be current time\n if(min < 10) {\n time.setText(hour + \":0\" + min);\n } else {\n time.setText(hour + \":\" + min);\n }\n\n time.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n picker = new TimePickerDialog(ControlCenterActivity.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker, int i, int i1) {\n if(i1 < 10) {\n time.setText(i + \":0\" + i1);\n } else {\n time.setText(i + \":\" + i1);\n }\n }\n }, hour, min, false);\n\n picker.show();\n }\n });\n }",
"public void setCreate_time(Date create_time) {\n this.create_time = create_time;\n }",
"public void setCreate_time(Date create_time) {\n this.create_time = create_time;\n }",
"public Times() {\n\t\ttimes = new ArrayList<Time>();\n\t}",
"public TimeField() {\n\t\tsuper('t', \"0 0\");\n\t}",
"public void setCreatetime(String createtime) {\n this.createtime = createtime;\n }",
"public void setCreatetime(String createtime) {\n this.createtime = createtime;\n }",
"public void setTime(){\r\n \r\n }",
"public FormInfoAdministration(Calendar newTTL) {\n if (newTTL.after(Calendar.getInstance())) {\n this.TTL = newTTL;\n } else {\n throw new IllegalArgumentException(\"Given date is not later than the current time!\");\n }\n \n this.forms = new ArrayList<>();\n }",
"private void setUpTimePickers() {\n timeText.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n MaterialTimePicker.Builder builder = new MaterialTimePicker.Builder();\n builder.setTitleText(\"Time Picker Title\");\n builder.setHour(12);\n builder.setMinute(0);\n\n final MaterialTimePicker timePicker = builder.build();\n\n timePicker.addOnPositiveButtonClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n timeChoice = LocalTime.of(timePicker.getHour(),timePicker.getMinute());\n String selectedTimeStr = timeChoice.format(DateTimeFormatter.ofPattern(\"kk:mm\"));\n timeText.setText(selectedTimeStr);\n }\n });\n\n timePicker.show(getSupportFragmentManager(),\"TimePicker\");\n }\n });\n\n }",
"private TimePicker createTimePicker() {\r\n\r\n TimePickerSettings timeSettings = new TimePickerSettings();\r\n timeSettings.initialTime = LocalTime.of(9, 0);\r\n timeSettings.setAllowKeyboardEditing(false);\r\n timeSettings.generatePotentialMenuTimes\r\n (TimePickerSettings.TimeIncrement.OneHour,\r\n null, null);\r\n\r\n TimePicker timePicker = new TimePicker(timeSettings);\r\n timeSettings.setVetoPolicy(new VetoTimes());\r\n\r\n return timePicker;\r\n\r\n }",
"public void setCreatetime(Long createtime) {\n this.createtime = createtime;\n }",
"public void setTimes(FerriesScheduleTimes Times) {\n this.Times.add(Times);\n }",
"public Time(int hour, int minute, int second){ //method in the initializer block\n setHour(hour);\n setMinute(minute);\n setSecond(second);\n}",
"private void submitForm(){\n String toast_message;\n\n int time = getValueOfField(R.id.at_editTextNumberSigned_timeValue);\n int easyNumber = getValueOfField(R.id.at_editTextNumberSigned_levelEasyValue);\n int mediumNumber = getValueOfField(R.id.at_editTextNumberSigned_levelMiddleValue);\n int highNumber = getValueOfField(R.id.at_editTextNumberSigned_levelHighValue);\n int hardcoreNumber = getValueOfField(R.id.at_editTextNumberSigned_levelExpertValue);\n\n // if time is between 0 and 1440 min\n if (time > 0){\n if(time < 24*60){\n // if numbers are positives\n if (easyNumber >= 0 && mediumNumber >= 0 && highNumber >= 0 && hardcoreNumber >= 0){\n\n // save data\n int id = this.controller.getLastIdTraining() + 1;\n\n ArrayList<Level> listLevel = new ArrayList<>();\n listLevel.add(new Level(\"EASY\", easyNumber));\n listLevel.add(new Level(\"MEDIUM\", mediumNumber));\n listLevel.add(new Level(\"HIGHT\", highNumber));\n listLevel.add(new Level(\"HARDCORE\", hardcoreNumber));\n\n Training training = new Training(id, inputCalendar.getTime(), time, listLevel);\n\n this.controller.AddTraining(training);\n\n // init values of Form\n initForm(null);\n\n // redirection to stats page\n Navigation.findNavController(getActivity(),\n R.id.nav_host_fragment).navigate(R.id.navigation_list_training);\n\n toast_message = \"L'entrainement a bien été ajouté !\";\n }else toast_message = \"Erreur:\\nToutes les valeurs de voies ne sont pas positive !\";\n }else toast_message = \"La durée ne doit pas exceder 1440 min.\";\n }else toast_message = \"La durée doit être supérieur à 0 min.\\n\";\n\n // Send alert\n Toast.makeText(getContext(), toast_message, Toast.LENGTH_LONG).show();\n }",
"public void setGmtCreate(Date gmtCreate) {\n this.gmtCreate = gmtCreate;\n }",
"public void setGmtCreate(Date gmtCreate) {\n this.gmtCreate = gmtCreate;\n }",
"public void setGmtCreate(Date gmtCreate) {\n this.gmtCreate = gmtCreate;\n }",
"public void setGmtCreate(Date gmtCreate) {\n this.gmtCreate = gmtCreate;\n }",
"public void setGmtCreate(Date gmtCreate) {\n this.gmtCreate = gmtCreate;\n }",
"public void setGmtCreate(Date gmtCreate) {\n this.gmtCreate = gmtCreate;\n }",
"public void setGmtCreate(Date gmtCreate) {\n this.gmtCreate = gmtCreate;\n }",
"public void setGmtCreate(Date gmtCreate) {\n this.gmtCreate = gmtCreate;\n }",
"public void setGmtCreate(Date gmtCreate) {\n this.gmtCreate = gmtCreate;\n }",
"public void setGmtCreate(Date gmtCreate) {\n this.gmtCreate = gmtCreate;\n }",
"public void setGmtCreate(Date gmtCreate) {\n this.gmtCreate = gmtCreate;\n }",
"public void setGmtCreate(Date gmtCreate) {\n this.gmtCreate = gmtCreate;\n }",
"public void setGmtCreate(Date gmtCreate) {\n this.gmtCreate = gmtCreate;\n }",
"public void setGmtCreate(Date gmtCreate) {\n this.gmtCreate = gmtCreate;\n }",
"public void setGmtCreate(Date gmtCreate) {\r\n this.gmtCreate = gmtCreate;\r\n }",
"@Override\n public void onClick(View v) {\n Calendar mcurrentTime = Calendar.getInstance();\n int hour = mcurrentTime.get(Calendar.HOUR_OF_DAY);\n int minute = mcurrentTime.get(Calendar.MINUTE);\n\n TimePickerDialog mTimePicker;\n mTimePicker = new TimePickerDialog(AddTripActivity.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker, int selectedHour, int selectedMinute) {\n String a = \"\" + selectedMinute;\n String b = \"\" + selectedHour;\n if(selectedMinute<10){\n a = \"0\"+selectedMinute;\n }\n if(selectedHour<10){\n b = \"0\"+selectedHour;\n }\n mTime.setText( b + \":\" + a);\n }\n }, hour, minute, true);\n mTimePicker.setTitle(\"Select Time\");\n mTimePicker.show();\n\n }",
"public void setCreateTime(Date createTime)\n/* */ {\n/* 184 */ this.createTime = createTime;\n/* */ }",
"public void setGmtCreate(Long gmtCreate) {\n this.gmtCreate = gmtCreate;\n }",
"@Test //ExSkip\n public void fieldTime() throws Exception {\n Document doc = new Document();\n DocumentBuilder builder = new DocumentBuilder(doc);\n\n // By default, time is displayed in the \"h:mm am/pm\" format.\n FieldTime field = insertFieldTime(builder, \"\");\n\n Assert.assertEquals(\" TIME \", field.getFieldCode());\n\n // We can use the \\@ flag to change the format of our displayed time.\n field = insertFieldTime(builder, \"\\\\@ HHmm\");\n\n Assert.assertEquals(\" TIME \\\\@ HHmm\", field.getFieldCode());\n\n // We can adjust the format to get TIME field to also display the date, according to the Gregorian calendar.\n field = insertFieldTime(builder, \"\\\\@ \\\"M/d/yyyy h mm:ss am/pm\\\"\");\n Assert.assertEquals(field.getFieldCode(), \" TIME \\\\@ \\\"M/d/yyyy h mm:ss am/pm\\\"\");\n\n doc.save(getArtifactsDir() + \"Field.TIME.docx\");\n testFieldTime(new Document(getArtifactsDir() + \"Field.TIME.docx\")); //ExSkip\n }",
"public AssignedTimes() {\n\t\t// TODO Auto-generated constructor stub\n\t}",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog43 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t43Hour43 = hourOfDay1;\n t43Minute43 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t43Hour43, t43Minute43);\n //set selected time on text view\n\n\n timeS22 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime22.setText(timeS22);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog43.updateTime(t43Hour43, t43Minute43);\n //show dialog\n timePickerDialog43.show();\n }",
"private void newEntry(final int startTime, final int endTime, boolean editExisting, double temperature) {\n if (!Utility.isCurrentlyOnline()) {\n Utility.showDisconnectedPopup();\n return;\n }\n AlertDialog.Builder newEntryDialog = new AlertDialog.Builder(new ContextThemeWrapper(this, android.R.style.Theme_DeviceDefault_Light_Dialog));\n LayoutInflater factory = LayoutInflater.from(this);\n mNewEntryView = factory.inflate(R.layout.new_schedule_entry, null);\n\n if (editExisting) {\n newEntryDialog.setTitle(\"Edit existing entry\");\n } else {\n newEntryDialog.setTitle(\"Create new schedule entry\");\n }\n\n // Load view elements.\n VerticalSeekBar seekBar = (VerticalSeekBar) mNewEntryView.findViewById(R.id.new_entry_seekBar);\n final TextView start = (TextView) mNewEntryView.findViewById(R.id.new_entry_start);\n final TextView end = (TextView) mNewEntryView.findViewById(R.id.new_entry_end);\n final TextView temp = (TextView) mNewEntryView.findViewById(R.id.new_entry_temperature);\n final CheckBox check = (CheckBox) mNewEntryView.findViewById(R.id.checkBox);\n\n // Fill view elements.\n start.setText((startTime > 9 ? startTime : \"0\" + startTime) + \":00\");\n end.setText((endTime > 9 ? endTime : \"0\" + endTime) + \":00\");\n temp.setText(temperature + \"°\");\n double progress = (temperature - Utility.LOWEST_TEMPERATURE) * 2 / Utility.TEMPERATURE_STEPS;\n seekBar.setProgress((int) (progress * seekBar.getMax()));\n\n start.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n mSettingStartTime = true;\n TimePickerDialog.newInstance(ScheduleActivity.this, startTime, 0, true).show(getFragmentManager(), \"timePicker\");\n }\n });\n\n end.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n mSettingStartTime = false;\n TimePickerDialog.newInstance(ScheduleActivity.this, endTime, 0, true).show(getFragmentManager(), \"timePicker\");\n }\n });\n\n seekBar.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {\n @Override\n public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n float value = progress / 2f;\n temp.setText(String.valueOf(value + Utility.LOWEST_TEMPERATURE) + \"°\");\n }\n\n @Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n }\n\n @Override\n public void onStopTrackingTouch(SeekBar seekBar) {\n }\n });\n\n newEntryDialog.setView(mNewEntryView);\n // Positive button onClickListener will be overwritten later for input checking.\n newEntryDialog.setPositiveButton(\"Submit\", null);\n newEntryDialog.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n });\n\n final AlertDialog newDialog = newEntryDialog.create();\n newDialog.show();\n newDialog.getButton(AlertDialog.BUTTON_POSITIVE).setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n // If endTime is after startTime, mShowingError is false, thus create the new entry,\n // otherwise, keep the dialog open.\n if (!mShowingError) {\n addScheduleEntry(start.getText().toString(),\n end.getText().toString(),\n temp.getText().toString(),\n check.isChecked());\n newDialog.dismiss();\n }\n }\n });\n }",
"void onSaveButtonClicked(int hour, int min, String time);",
"private void jadwalPertama(){\n jadwalPertamaEditText.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n c= Calendar.getInstance();\n int hour = c.get(Calendar.HOUR_OF_DAY);\n int minute = c.get(Calendar.MINUTE);\n\n tpd = new TimePickerDialog(IncubationForm.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n jadwalPertamaEditText.setText(hourOfDay + \":\" + minute);\n jadwal[0][0] = hourOfDay;\n jadwal[0][1] = minute;\n }\n }, hour, minute, true);\n tpd.show();\n }\n });\n }",
"public AddHour(java.awt.Frame parent, boolean modal)\n {\n super(parent, modal);\n initComponents();\n tblTimeSlots.setModel(TimeSlots.getActiveTimeSlotTableModelList());\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog42 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t42Hour42 = hourOfDay1;\n t42Minute42 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t42Hour42, t42Minute42);\n //set selected time on text view\n\n\n timeE21 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime21.setText(timeE21);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog42.updateTime(t42Hour42, t42Minute42);\n //show dialog\n timePickerDialog42.show();\n }",
"public void actionPerformed(ActionEvent e) {\n\t\t\t\tif (textField.getText().isEmpty() || textField_1.getText().isEmpty() || textField_2.getText().isEmpty()\r\n\t\t\t\t\t\t|| textField_3.getText().isEmpty() || textField_5.getText().isEmpty()) {\r\n\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Please fill all the blanks to set the time\", \"Warning!\",\r\n\t\t\t\t\t\t\tJOptionPane.WARNING_MESSAGE);\r\n\t\t\t\t}\r\n\t\t\t\t// time components must be in proper way\r\n\t\t\t\telse if (Integer.parseInt(textField.getText()) > 31 || Integer.parseInt(textField.getText()) <= 0\r\n\t\t\t\t\t\t|| Integer.parseInt(textField_1.getText()) > 23 || Integer.parseInt(textField_1.getText()) < 0\r\n\t\t\t\t\t\t|| Integer.parseInt(textField_3.getText()) > 59 || Integer.parseInt(textField_3.getText()) < 0\r\n\t\t\t\t\t\t|| Integer.parseInt(textField_2.getText()) > 12\r\n\t\t\t\t\t\t|| Integer.parseInt(textField_2.getText()) <= 0) {\r\n\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Please enter a valid date\", \"Warning!\",\r\n\t\t\t\t\t\t\tJOptionPane.WARNING_MESSAGE);\r\n\r\n\t\t\t\t}\r\n\t\t\t\t// if everything works perfectly, the values will be parsed to integer and\r\n\t\t\t\t// copied to respective variables\r\n\t\t\t\telse {\r\n\t\t\t\t\tminute = Integer.parseInt(textField_3.getText());\r\n\t\t\t\t\thour = Integer.parseInt(textField_1.getText());\r\n\t\t\t\t\tday = Integer.parseInt(textField.getText());\r\n\t\t\t\t\tmonth = Integer.parseInt(textField_2.getText()) - 1;\r\n\t\t\t\t\tyear = Integer.parseInt(textField_5.getText());\r\n\r\n\t\t\t\t\t// cal is the object of Calendar class, here the time components are set to the\r\n\t\t\t\t\t// object and it will be displayed on the frame.\r\n\t\t\t\t\t// String.format is used in order to display the time in proper way\r\n\t\t\t\t\tcal.set(year, month, day, hour, minute);\r\n\t\t\t\t\tsysTime.setText(String.format(\"%02d\", cal.get(Calendar.HOUR_OF_DAY)) + \":\"\r\n\t\t\t\t\t\t\t+ String.format(\"%02d\", cal.get(Calendar.MINUTE)));\r\n\t\t\t\t\tsysDate.setText(String.format(\"%02d\", cal.get(Calendar.DAY_OF_MONTH)) + \"/\"\r\n\t\t\t\t\t\t\t+ String.format(\"%02d\", (cal.get(Calendar.MONTH) + 1)) + \"/\"\r\n\t\t\t\t\t\t\t+ String.format(\"%02d\", cal.get(Calendar.YEAR)));\r\n\t\t\t\t\tsysWeekday.setText(cal.getDisplayName(Calendar.DAY_OF_WEEK, Calendar.LONG, Locale.ENGLISH));\r\n\t\t\t\t}\r\n\t\t\t}",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog19 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t19Hour19 = hourOfDay1;\n t19Minute19 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t19Hour19, t19Minute19);\n //set selected time on text view\n\n\n timeS10 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime10.setText(timeS10);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog19.updateTime(t19Hour19, t19Minute19);\n //show dialog\n timePickerDialog19.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog41 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t41Hour41 = hourOfDay1;\n t41Minute41 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t41Hour41, t41Minute41);\n //set selected time on text view\n\n\n timeS21 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime21.setText(timeS21);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog41.updateTime(t41Hour41, t41Minute41);\n //show dialog\n timePickerDialog41.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog18 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t18Hour18 = hourOfDay1;\n t18Minute18 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t18Hour18, t18Minute18);\n //set selected time on text view\n\n\n timeE9 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime9.setText(timeE9);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog18.updateTime(t18Hour18, t18Minute18);\n //show dialog\n timePickerDialog18.show();\n }",
"@TargetApi(Build.VERSION_CODES.KITKAT)\n @RequiresApi(api = Build.VERSION_CODES.KITKAT)\n public void createReservation() {\n Time timeObj = null;\n DateFormat formatter= new SimpleDateFormat(\"kk:mm\");\n try {\n timeObj = new Time(formatter.parse(time).getTime());\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n Bitmap generatedQR = generateQR();\n //Create reservation & save to Repository\n Reservation reservation = new Reservation(film, timeObj, listPlaces, generatedQR);\n Repository.addReservation(reservation);\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog13 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t13Hour13 = hourOfDay1;\n t13Minute13 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t13Hour13, t13Minute13);\n //set selected time on text view\n\n\n timeS7 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime7.setText(timeS7);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog13.updateTime(t13Hour13, t13Minute13);\n //show dialog\n timePickerDialog13.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog39 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t39Hour39 = hourOfDay1;\n t39Minute39 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t39Hour39, t39Minute39);\n //set selected time on text view\n\n\n timeS20 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime20.setText(timeS20);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog39.updateTime(t39Hour39, t39Minute39);\n //show dialog\n timePickerDialog39.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog40 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t40Hour40 = hourOfDay1;\n t40Minute40 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t40Hour40, t40Minute40);\n //set selected time on text view\n\n\n timeE20 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime20.setText(timeE20);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog40.updateTime(t40Hour40, t40Minute40);\n //show dialog\n timePickerDialog40.show();\n }",
"public Time_table() {\n initComponents();\n }",
"private static void addNewScheduledTour()\r\n {\r\n\t String tourID;\r\n\t String description;\r\n\t double admissionFee;\r\n\t String tourDate;\r\n\t int maxGroupSize;\r\n\t String tourLeader;\r\n\t boolean duplicateID = false;\r\n\t \r\n System.out.println(\"Add New Scheduled Tour Feature Selected!\");\r\n System.out.println(\"--------------------------------------\");\r\n \r\n System.out.print(\"Enter Tour ID: \");\r\n tourID = sc.nextLine();\r\n \r\n System.out.print(\"Enter Tour Description: \");\r\n description = sc.nextLine();\r\n \r\n System.out.print(\"Enter Admission Fee: \");\r\n admissionFee = sc.nextDouble();\r\n sc.nextLine();\r\n \r\n System.out.print(\"Enter Tour Date: \");\r\n tourDate = sc.nextLine();\r\n \r\n System.out.print(\"Enter Maximum Group Size: \");\r\n maxGroupSize = sc.nextInt();\r\n sc.nextLine();\r\n \r\n System.out.print(\"Enter Tour Leader: \");\r\n tourLeader = sc.nextLine();\r\n System.out.println();\r\n \r\n // check if tourID is already in use in the booking system\r\n for(int i = 0; i < attractionCount; i++)\r\n {\r\n \t if(attractionList[i].getAttractionID().equalsIgnoreCase(tourID))\r\n \t {\r\n \t\t duplicateID = true;\r\n \t\t System.out.print(\"Error! Attraction / Tour with this ID already exists!\");\r\n \t\t System.out.println();\r\n \t }\r\n }\r\n \r\n if(duplicateID == false)\r\n {\r\n \t attractionList[attractionCount] = new ScheduledTour(tourID, description,\r\n \t\t\t admissionFee, tourDate, maxGroupSize, tourLeader);\r\n \t attractionCount++;\r\n }\r\n }",
"public void setCreatTime(Date creatTime) {\n this.creatTime = creatTime;\n }",
"public void setCreatTime(Date creatTime) {\n this.creatTime = creatTime;\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog35 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t35Hour35 = hourOfDay1;\n t35Minute35 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t35Hour35, t35Minute35);\n //set selected time on text view\n\n\n timeS18 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime18.setText(timeS18);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog35.updateTime(t35Hour35, t35Minute35);\n //show dialog\n timePickerDialog35.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog49 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t49Hour49 = hourOfDay1;\n t49Minute49 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t49Hour49, t49Minute49);\n //set selected time on text view\n\n\n timeS25 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime25.setText(timeS25);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog49.updateTime(t49Hour49, t49Minute49);\n //show dialog\n timePickerDialog49.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog27 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t27Hour27 = hourOfDay1;\n t27Minute27 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t27Hour27, t27Minute27);\n //set selected time on text view\n\n\n timeS14 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime14.setText(timeS14);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog27.updateTime(t27Hour27, t27Minute27);\n //show dialog\n timePickerDialog27.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog45 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t45Hour45 = hourOfDay1;\n t45Minute45 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t45Hour45, t45Minute45);\n //set selected time on text view\n\n\n timeS23 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime23.setText(timeS23);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog45.updateTime(t45Hour45, t45Minute45);\n //show dialog\n timePickerDialog45.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog29 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t29Hour29 = hourOfDay1;\n t29Minute29 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t29Hour29, t29Minute29);\n //set selected time on text view\n\n\n timeS15 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime15.setText(timeS15);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog29.updateTime(t29Hour29, t29Minute29);\n //show dialog\n timePickerDialog29.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog9 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t9Hour9 = hourOfDay1;\n t9Minute9 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t9Hour9, t9Minute9);\n //set selected time on text view\n\n\n timeS5 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime5.setText(timeS5);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog9.updateTime(t9Hour9, t9Minute9);\n //show dialog\n timePickerDialog9.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog25 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t25Hour25 = hourOfDay1;\n t25Minute25 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t25Hour25, t25Minute25);\n //set selected time on text view\n\n\n timeS13 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime13.setText(timeS13);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog25.updateTime(t25Hour25, t25Minute25);\n //show dialog\n timePickerDialog25.show();\n }",
"private void fillInTime ( final String timeField, String time ) {\n waitForAngular();\n // Zero-pad the time for entry\n if ( time.length() == 7 ) {\n time = \"0\" + time;\n }\n\n driver.findElement( By.name( timeField ) ).clear();\n final WebElement timeElement = driver.findElement( By.name( timeField ) );\n timeElement.sendKeys( time.replace( \":\", \"\" ).replace( \" \", \"\" ) );\n }",
"public void setCreateTime(LocalDateTime timestamp) \n {\n createTime = timestamp;\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog31 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t31Hour31 = hourOfDay1;\n t31Minute31 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t31Hour31, t31Minute31);\n //set selected time on text view\n\n\n timeS16 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime16.setText(timeS16);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog31.updateTime(t31Hour31, t31Minute31);\n //show dialog\n timePickerDialog31.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog23 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t23Hour23 = hourOfDay1;\n t23Minute23 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t23Hour23, t23Minute23);\n //set selected time on text view\n\n\n timeS12 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime12.setText(timeS12);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog23.updateTime(t23Hour23, t23Minute23);\n //show dialog\n timePickerDialog23.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog20 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t20Hour20 = hourOfDay1;\n t20Minute20 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t20Hour20, t20Minute20);\n //set selected time on text view\n\n\n timeE10 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime10.setText(timeE10);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog20.updateTime(t20Hour20, t20Minute20);\n //show dialog\n timePickerDialog20.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog32 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t32Hour32 = hourOfDay1;\n t32Minute32 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t32Hour32, t32Minute32);\n //set selected time on text view\n\n\n timeE16 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime16.setText(timeE16);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog32.updateTime(t32Hour32, t32Minute32);\n //show dialog\n timePickerDialog32.show();\n }",
"public Timeslot() {\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog15 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t15Hour15 = hourOfDay1;\n t15Minute15 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t15Hour15, t15Minute15);\n //set selected time on text view\n\n\n timeS8 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime8.setText(timeS8);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog15.updateTime(t15Hour15, t15Minute15);\n //show dialog\n timePickerDialog15.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog37 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t37Hour37 = hourOfDay1;\n t37Minute37 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t37Hour37, t37Minute37);\n //set selected time on text view\n\n\n timeS19 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime19.setText(timeS19);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog37.updateTime(t37Hour37, t37Minute37);\n //show dialog\n timePickerDialog37.show();\n }",
"public void pickTime(View view) {\n\n DialogFragment newFragment = new TimePicker();\n newFragment.show(getFragmentManager(), \"timePicker\");\n\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog10 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t10Hour10 = hourOfDay1;\n t10Minute10 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t10Hour10, t10Minute10);\n //set selected time on text view\n\n\n timeE5 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime5.setText(timeE5);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog10.updateTime(t10Hour10, t10Minute10);\n //show dialog\n timePickerDialog10.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog34 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t34Hour34 = hourOfDay1;\n t34Minute34 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t34Hour34, t34Minute34);\n //set selected time on text view\n\n\n timeE17 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime17.setText(timeE17);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog34.updateTime(t34Hour34, t34Minute34);\n //show dialog\n timePickerDialog34.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog21 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t21Hour21 = hourOfDay1;\n t21Minute21 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t21Hour21, t21Minute21);\n //set selected time on text view\n\n\n timeS11 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime11.setText(timeS11);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog21.updateTime(t21Hour21, t21Minute21);\n //show dialog\n timePickerDialog21.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog3 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t3Hour3 = hourOfDay1;\n t3Minute3 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t3Hour3, t3Minute3);\n //set selected time on text view\n\n\n timeS2 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime2.setText(timeS2);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog3.updateTime(t3Hour3, t3Minute3);\n //show dialog\n timePickerDialog3.show();\n }",
"@Override\n public void onClick(View v) {\n Calendar mcurrentTime = Calendar.getInstance();\n int hour = mcurrentTime.get(Calendar.HOUR_OF_DAY);\n int minute = mcurrentTime.get(Calendar.MINUTE);\n TimePickerDialog mTimePicker;\n mTimePicker = new TimePickerDialog(AddRDV.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker, int selectedHour, int selectedMinute) {\n editTextHeur.setText(String.format(\"%02d\",selectedHour) + \":\" + String.format(\"%02d\" ,selectedMinute)+\":\"+\"00\");\n }\n }, hour, minute, true);//Yes 24 hour time\n mTimePicker.setTitle(\"Select time of your appointment\");\n mTimePicker.show();\n\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog16 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t16Hour16 = hourOfDay1;\n t16Minute16 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t16Hour16, t16Minute16);\n //set selected time on text view\n\n\n timeE8 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime8.setText(timeE8);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog16.updateTime(t16Hour16, t16Minute16);\n //show dialog\n timePickerDialog16.show();\n }",
"public void setCreatetime (java.lang.String createtime) {\n\t\tthis.createtime = createtime;\n\t}",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog46 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t46Hour46 = hourOfDay1;\n t46Minute46 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t46Hour46, t46Minute46);\n //set selected time on text view\n\n\n timeE23 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime23.setText(timeE23);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog46.updateTime(t46Hour46, t46Minute46);\n //show dialog\n timePickerDialog46.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog38 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t38Hour38 = hourOfDay1;\n t38Minute38 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t38Hour38, t38Minute38);\n //set selected time on text view\n\n\n timeE19 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime19.setText(timeE19);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog38.updateTime(t38Hour38, t38Minute38);\n //show dialog\n timePickerDialog38.show();\n }",
"@Override\n public void onClick(View v) {\n new TimePickerDialog(getActivity(), starttimepicker, trigger.getStarttime().get(Calendar.HOUR), trigger.getStarttime().get(Calendar.MINUTE), true).show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog33 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t33Hour33 = hourOfDay1;\n t33Minute33 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t33Hour33, t33Minute33);\n //set selected time on text view\n\n\n timeS17 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime17.setText(timeS17);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog33.updateTime(t33Hour33, t33Minute33);\n //show dialog\n timePickerDialog33.show();\n }"
] |
[
"0.6276896",
"0.58526474",
"0.5835241",
"0.5834118",
"0.5799181",
"0.5776271",
"0.5774322",
"0.5774322",
"0.5774322",
"0.5751003",
"0.57433736",
"0.57433736",
"0.57433736",
"0.57433736",
"0.57433736",
"0.57433736",
"0.57433736",
"0.57433736",
"0.5726464",
"0.57241714",
"0.5715887",
"0.5715887",
"0.5715464",
"0.569924",
"0.56942123",
"0.56942123",
"0.5666241",
"0.5605393",
"0.55890197",
"0.55546254",
"0.55375594",
"0.5531032",
"0.54969776",
"0.5492108",
"0.548707",
"0.548707",
"0.548707",
"0.548707",
"0.548707",
"0.548707",
"0.548707",
"0.548707",
"0.548707",
"0.548707",
"0.548707",
"0.548707",
"0.548707",
"0.548707",
"0.54742616",
"0.5473428",
"0.54481566",
"0.54442614",
"0.54352",
"0.54193956",
"0.5396263",
"0.5395272",
"0.5383716",
"0.53836286",
"0.53821146",
"0.5376224",
"0.5375563",
"0.53714347",
"0.537",
"0.53687614",
"0.5365044",
"0.5363417",
"0.5361514",
"0.53548676",
"0.535486",
"0.53547126",
"0.53544337",
"0.53544337",
"0.53540665",
"0.53494334",
"0.5346983",
"0.5344642",
"0.5344181",
"0.53428465",
"0.5342326",
"0.5340922",
"0.5340683",
"0.5338186",
"0.53380316",
"0.53338534",
"0.5332887",
"0.53309286",
"0.53286064",
"0.53269434",
"0.5322941",
"0.53188103",
"0.53154445",
"0.5314955",
"0.53118366",
"0.5311691",
"0.53101444",
"0.5302666",
"0.52987075",
"0.5298105",
"0.5296876",
"0.5296421"
] |
0.6144349
|
1
|
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() {
buttonGroup1 = new javax.swing.ButtonGroup();
jPanel1 = new javax.swing.JPanel();
jLabel1 = new javax.swing.JLabel();
jLabel2 = new javax.swing.JLabel();
jLabel3 = new javax.swing.JLabel();
jLabel4 = new javax.swing.JLabel();
TextPalmeirasc = new javax.swing.JTextField();
TextPalmeirasf = new javax.swing.JTextField();
jLabel6 = new javax.swing.JLabel();
TextSPc = new javax.swing.JTextField();
jLabel7 = new javax.swing.JLabel();
TextSPf = new javax.swing.JTextField();
TextFlaf = new javax.swing.JTextField();
jLabel8 = new javax.swing.JLabel();
TextFlac = new javax.swing.JTextField();
jLabel9 = new javax.swing.JLabel();
TextGrec = new javax.swing.JTextField();
TextGref = new javax.swing.JTextField();
jLabel5 = new javax.swing.JLabel();
jButton1 = new javax.swing.JButton();
jLabel10 = new javax.swing.JLabel();
Tnomes = new javax.swing.JTextField();
setClosable(true);
jLabel1.setText("Palmeiras");
jLabel2.setText("Sao Paulo");
jLabel3.setText("Flamengo");
jLabel4.setText("Gremio");
TextPalmeirasc.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
TextPalmeirascActionPerformed(evt);
}
});
TextPalmeirasf.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
TextPalmeirasfActionPerformed(evt);
}
});
jLabel6.setText("x");
TextSPc.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
TextSPcActionPerformed(evt);
}
});
jLabel7.setText("x");
TextSPf.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
TextSPfActionPerformed(evt);
}
});
TextFlaf.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
TextFlafActionPerformed(evt);
}
});
jLabel8.setText("x");
TextFlac.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
TextFlacActionPerformed(evt);
}
});
jLabel9.setText("x");
TextGrec.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
TextGrecActionPerformed(evt);
}
});
TextGref.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
TextGrefActionPerformed(evt);
}
});
jLabel5.setFont(new java.awt.Font("Papyrus", 0, 18)); // NOI18N
jLabel5.setText("Times");
jLabel5.setToolTipText("");
jButton1.setText("adicionar");
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
}
});
jLabel10.setText("Ano");
Tnomes.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
TnomesActionPerformed(evt);
}
});
javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
jPanel1.setLayout(jPanel1Layout);
jPanel1Layout.setHorizontalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
.addContainerGap()
.addComponent(jLabel10)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(Tnomes, javax.swing.GroupLayout.PREFERRED_SIZE, 63, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 35, Short.MAX_VALUE)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel5)
.addGroup(jPanel1Layout.createSequentialGroup()
.addGap(78, 78, 78)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 63, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 63, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
.addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, 63, Short.MAX_VALUE)))
.addGap(11, 11, 11)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(TextGrec)
.addComponent(TextPalmeirasc, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 34, Short.MAX_VALUE)
.addComponent(TextSPc)
.addComponent(TextFlac))
.addGap(18, 18, 18)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addGroup(jPanel1Layout.createSequentialGroup()
.addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 8, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(TextPalmeirasf, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(jPanel1Layout.createSequentialGroup()
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 8, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 8, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 8, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(TextSPf)
.addComponent(TextFlaf)
.addComponent(TextGref)))))
.addComponent(jButton1))
.addGap(79, 79, 79))
);
jPanel1Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {TextFlac, TextFlaf, TextGrec, TextGref, TextPalmeirasc, TextPalmeirasf, TextSPc, TextSPf});
jPanel1Layout.setVerticalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addGap(14, 14, 14)
.addComponent(jLabel5)
.addGap(18, 18, 18)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(TextPalmeirasc, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(TextPalmeirasf, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel6))
.addGap(18, 18, 18)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel7)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(TextSPc, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(TextSPf, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGap(18, 18, 18)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(TextFlac, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel8)
.addComponent(TextFlaf, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel9)
.addComponent(TextGref, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(TextGrec, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 122, Short.MAX_VALUE)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel10)
.addComponent(Tnomes, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(27, 27, 27))
);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addContainerGap())
);
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 RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }",
"public Soru1() {\n initComponents();\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 BloodDonationGUI() {\n initComponents();\n }",
"public quotaGUI() {\n initComponents();\n }",
"public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }",
"public PatientUI() {\n initComponents();\n }",
"public myForm() {\n\t\t\tinitComponents();\n\t\t}",
"public Oddeven() {\n initComponents();\n }",
"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 LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }",
"public kunde() {\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 MusteriEkle() {\n initComponents();\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 EnterDetailsGUI() {\n initComponents();\n }",
"public vpemesanan1() {\n initComponents();\n }",
"public Kost() {\n initComponents();\n }",
"public FormHorarioSSE() {\n initComponents();\n }",
"public UploadForm() {\n initComponents();\n }",
"public frmacceso() {\n initComponents();\n }",
"public HW3() {\n initComponents();\n }",
"public Managing_Staff_Main_Form() {\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 sinavlar2() {\n initComponents();\n }",
"public P0405() {\n initComponents();\n }",
"public IssueBookForm() {\n initComponents();\n }",
"public MiFrame2() {\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 CreateAccount_GUI() {\n initComponents();\n }",
"public POS1() {\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.73191476",
"0.72906625",
"0.72906625",
"0.72906625",
"0.72860986",
"0.7248112",
"0.7213479",
"0.72078276",
"0.7195841",
"0.71899796",
"0.71840525",
"0.7158498",
"0.71477973",
"0.7092748",
"0.70800966",
"0.70558053",
"0.69871384",
"0.69773406",
"0.69548076",
"0.69533914",
"0.6944929",
"0.6942576",
"0.69355655",
"0.6931378",
"0.6927896",
"0.69248974",
"0.6924723",
"0.69116884",
"0.6910487",
"0.6892381",
"0.68921053",
"0.6890637",
"0.68896896",
"0.68881863",
"0.68826133",
"0.68815064",
"0.6881078",
"0.68771756",
"0.6875212",
"0.68744373",
"0.68711984",
"0.6858978",
"0.68558776",
"0.6855172",
"0.6854685",
"0.685434",
"0.68525875",
"0.6851834",
"0.6851834",
"0.684266",
"0.6836586",
"0.6836431",
"0.6828333",
"0.68276715",
"0.68262815",
"0.6823921",
"0.682295",
"0.68167603",
"0.68164384",
"0.6809564",
"0.68086857",
"0.6807804",
"0.6807734",
"0.68067646",
"0.6802192",
"0.67943805",
"0.67934304",
"0.6791657",
"0.6789546",
"0.6789006",
"0.67878324",
"0.67877173",
"0.6781847",
"0.6765398",
"0.6765197",
"0.6764246",
"0.6756036",
"0.6755023",
"0.6751404",
"0.67508715",
"0.6743043",
"0.67387456",
"0.6736752",
"0.67356426",
"0.6732893",
"0.6726715",
"0.6726464",
"0.67196447",
"0.67157453",
"0.6714399",
"0.67140275",
"0.6708251",
"0.6707117",
"0.670393",
"0.6700697",
"0.66995865",
"0.66989213",
"0.6697588",
"0.66939527",
"0.66908985",
"0.668935"
] |
0.0
|
-1
|
Test if Query is properly formmatted
|
@Test
public void selectStatementSuccessful() throws SQLException {
assertNotNull(testConnection.selectStatement(con, "SELECT * FROM Employees;"));
assertNull(testConnection.selectStatement(con, "SELECT * FROM Emp;"));
//Test if RS is empty
assertTrue(testConnection.selectStatement(con, "SELECT * FROM Employees").next());
assertFalse(testConnection.selectStatement(con, "SELECT * FROM Employees WHERE email='x'").next());
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"boolean isIsQuery();",
"boolean hasQuery();",
"public void validateQuery(Query query) throws InvalidQueryException;",
"@Test\n\tpublic void isValidQueryTest() {\n\t\tString query1 = \"< nice & cool \";\n\t\tString query2 = \"( hello & !!cool )\";\n\t\tString query3 = \"( hello | !cool )\";\n\t\t\n\t\texception.expect(IllegalArgumentException.class);\n\t\tqueryTest.isValidQuery(query1);\n\t\tqueryTest.isValidQuery(query2);\n\n\t\texception = ExpectedException.none();\n\t\tqueryTest.isValidQuery(query3);\n\n\t\t// test num of brackets\n\t\tquery1 = \"( nice & cool )\";\n\t\tquery2 = \"( ( nice & cool )\";\n\t\tquery3 = \"( hello & my | ( name | is ) | bar & ( hi )\";\n\t\t\n\t\tqueryTest.isValidQuery(query1);\n\t\texception.expect(IllegalArgumentException.class);\n\t\tqueryTest.isValidQuery(query2);\n\t\tqueryTest.isValidQuery(query3);\n\t\t\n\t\t// test phrases (+ used to indicate phrase)\n\t\tquery1 = \"hello+hi+my\";\n\t\tquery2 = \"hello+contains+my\";\n\t\tquery3 = \"( my+name & hello | ( oh my ))\";\n\t\t\n\t\texception = ExpectedException.none();\n\t\tqueryTest.isValidQuery(query1);\n\t\tqueryTest.isValidQuery(query2);\n\t\tqueryTest.isValidQuery(queryTest.fixSpacing(query3));\n\t}",
"@Test\n\tpublic void badQueryTest() {\n\t\texception.expect(IllegalArgumentException.class);\n\t\t\n\t\t// numbers not allowed\n\t\tqueryTest.query(\"lfhgkljaflkgjlkjlkj9f8difj3j98ouijsflkedfj90\");\n\t\t// unbalanced brackets\n\t\tqueryTest.query(\"( hello & goodbye | goodbye ( or hello )\");\n\t\t// & ) not legal\n\t\tqueryTest.query(\"A hello & goodbye | goodbye ( or hello &)\");\n\t\t// unbalanced quote\n\t\tqueryTest.query(\"kdf ksdfj (\\\") kjdf\");\n\t\t// empty quotes\n\t\tqueryTest.query(\"kdf ksdfj (\\\"\\\") kjdf\");\n\t\t// invalid text in quotes\n\t\tqueryTest.query(\"kdf ksdfj \\\"()\\\" kjdf\");\n\t\t// double negation invalid (decision)\n\t\tqueryTest.query(\"!!and\");\n\t\t\n\t\t// gibberish\n\t\tqueryTest.query(\"kjlkfgj! ! ! !!! ! !\");\n\t\tqueryTest.query(\"klkjgi & df & | herllo\");\n\t\tqueryTest.query(\"kjdfkj &\");\n\t\t\n\t\t// single negation\n\t\tqueryTest.query(\"( ! )\");\n\t\tqueryTest.query(\"!\");\n\t\t\n\t\t// quotes and parenthesis interspersed\n\t\tqueryTest.query(\"our lives | coulda ( \\\" been so ) \\\" but momma had to \\\" it all up wow\\\"\");\n\t}",
"@Test(timeout = 4000)\n public void test058() throws Throwable {\n boolean boolean0 = SQLUtil.isQuery(\"select into\");\n assertFalse(boolean0);\n }",
"boolean isOQL();",
"@Test(timeout = 4000)\n public void test105() throws Throwable {\n boolean boolean0 = SQLUtil.isQuery(\"select into\");\n assertFalse(boolean0);\n }",
"boolean hasQueryMessage();",
"public void testQuery() {\n mActivity.runOnUiThread(\n new Runnable() {\n public void run() {\n //TODO: Should compare this against the db results directly.\n assertEquals(sendQuery(\"SFO\"), 7);\n assertEquals(sendQuery(\"RHV\"), 1);\n assertEquals(sendQuery(\"xyzzy\"), 0);\n }\n }\n );\n }",
"boolean hasQueryName();",
"@Test(timeout = 4000)\n public void test55() throws Throwable {\n boolean boolean0 = SQLUtil.isQuery(\"select into\");\n assertFalse(boolean0);\n }",
"@Test(timeout = 4000)\n public void test057() throws Throwable {\n boolean boolean0 = SQLUtil.isQuery(\"updatedeffult~nfo\");\n assertFalse(boolean0);\n }",
"@Test(timeout = 4000)\n public void test034() throws Throwable {\n boolean boolean0 = SQLUtil.isQuery(\"\");\n assertFalse(boolean0);\n }",
"boolean hasQueryLogicName();",
"private boolean isAdvancedQuery(String enteredQuery){\n try{\n Character firstChar = enteredQuery.charAt(0);\n Character secondChar = enteredQuery.charAt(1);\n\n return isSignOperator(firstChar.toString()) && secondChar.equals(' ');\n }catch (StringIndexOutOfBoundsException ex){\n return false;\n }\n }",
"@Test(timeout = 4000)\n public void test056() throws Throwable {\n boolean boolean0 = SQLUtil.isQuery(\"SELECT * FROM null WHERE delete = 'delete' AND delete = 'delete' AND delete = 'delete' AND delete = 'delete' AND delete = 'delete' AND delete = 'delete' AND delete = 'delete'\");\n assertTrue(boolean0);\n }",
"@Test\n public void createSqlQueryWithWhereSucceed()\n {\n // arrange\n // act\n QuerySpecification querySpecification = new QuerySpecificationBuilder(\"*\", QuerySpecificationBuilder.FromType.ENROLLMENTS).where(\"validWhere\").createSqlQuery();\n\n // assert\n Helpers.assertJson(querySpecification.toJson(), \"{\\\"query\\\":\\\"select * from enrollments where validWhere\\\"}\");\n }",
"public boolean shouldRewriteQueryFromText() {\n/* 87 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"private Boolean nonEmptyQuery(String query){\n\t\tBoolean isCorrect = false;\n\t\tString [] queryElements = query.split(\"--\");\n\t\tif(queryElements.length==2 && !queryElements[0].isEmpty() && !queryElements[1].isEmpty())\n\t\t\tisCorrect = true;\n\t\treturn isCorrect;\n\t}",
"protected boolean isQueryAvailable() {\n return query != null;\n }",
"protected boolean query() {\r\n\t\tqueryStr = new String(processQueryTitle(queryBk.getTitle()) + processQueryAuthor(queryBk.getCreator())\r\n\t\t\t\t+ processQueryPublisher(queryBk.getPublisher()));\r\n\t\tSystem.out.println(queryStr);\r\n\t\t// if edition is 'lastest' (coded '0'), no query is performed; and\r\n\t\t// return false.\r\n\t\tif (queryBk.parseEdition() == 0) {\r\n\t\t\treturn false;\r\n\t\t} // end if\r\n\r\n\t\t/*\r\n\t\t * The following section adds edition info to the query string if edition no. is\r\n\t\t * greater than one. By cataloging practice, for the first edition, probably\r\n\t\t * there is NO input on the associated MARC field. Considering this, edition\r\n\t\t * query string to Primo is NOT added if querying for the first edition or no\r\n\t\t * edition is specified.\r\n\t\t */\r\n\t\tif (queryBk.parseEdition() > 1) {\r\n\t\t\tqueryStr += processQueryEdition(queryBk.parseEdition());\r\n\t\t} // end if\r\n\r\n\t\t/*\r\n\t\t * Querying the Primo X-service; and invoking the matching processes (all done\r\n\t\t * by remoteQuery()).\r\n\t\t */\r\n\t\tif (strHandle.hasSomething(queryBk.getPublisher())) {\r\n\t\t\tif (remoteQuery(queryStr)) {\r\n\t\t\t\tmatch = true;\r\n\t\t\t\tsetBookInfo();\r\n\t\t\t\tcheckAVA(queryBk.parseVolume());\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\tmatch = false;\r\n\t\t\t} // end if\r\n\t\t} // end if\r\n\r\n\t\t/*\r\n\t\t * For various reasons, there are possibilities that the first query fails while\r\n\t\t * a match should be found. The follow work as remedy queries to ensure the\r\n\t\t * accuracy.\r\n\t\t */\r\n\r\n\t\tif (!match && strHandle.hasSomething(queryBk.getPublisher())) {\r\n\t\t\tqueryStr = new String(\r\n\t\t\t\t\tprocessQueryPublisher(queryBk.getPublisher()) + processQueryAuthor(queryBk.getCreator()));\r\n\t\t\tif (remoteQuery(queryStr)) {\r\n\t\t\t\tmatch = true;\r\n\t\t\t\tsetBookInfo();\r\n\t\t\t\tcheckAVA(queryBk.parseVolume());\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\tmatch = false;\r\n\t\t\t} // end if\r\n\t\t} // end if\r\n\r\n\t\tif (!match) {\r\n\t\t\tqueryStr = new String(processQueryTitle(queryBk.getTitle()) + processQueryAuthor(queryBk.getCreator()));\r\n\t\t\tif (remoteQuery(queryStr)) {\r\n\t\t\t\tmatch = true;\r\n\t\t\t\tsetBookInfo();\r\n\t\t\t\tcheckAVA(queryBk.parseVolume());\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\tmatch = false;\r\n\t\t\t} // end if\r\n\t\t} // end if\r\n\r\n\t\tif (!match) {\r\n\t\t\tqueryStr = new String(processQueryTitle(queryBk.getTitle()));\r\n\t\t\tif (remoteQuery(queryStr)) {\r\n\t\t\t\tmatch = true;\r\n\t\t\t\tsetBookInfo();\r\n\t\t\t\tcheckAVA(queryBk.parseVolume());\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\tmatch = false;\r\n\t\t\t} // end if\r\n\t\t} // end if\r\n\r\n\t\tif (!match && strHandle.hasSomething(queryBk.getPublishYear())) {\r\n\t\t\tqueryStr = new String(\r\n\t\t\t\t\tprocessQueryAuthor(queryBk.getCreator()) + processQueryYear(queryBk.getPublishYear()));\r\n\r\n\t\t\tif (remoteQuery(queryStr)) {\r\n\t\t\t\tmatch = true;\r\n\t\t\t\tsetBookInfo();\r\n\t\t\t\tcheckAVA(queryBk.parseVolume());\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\tmatch = false;\r\n\t\t\t} // end if\r\n\t\t} // end if\r\n\r\n\t\tif (!match) {\r\n\t\t\tqueryStr = new String(\r\n\t\t\t\t\tprocessQueryAuthor(queryBk.getCreator()) + processQueryTitleShort(queryBk.getTitle()));\r\n\t\t\tif (remoteQuery(queryStr)) {\r\n\t\t\t\tmatch = true;\r\n\t\t\t\tsetBookInfo();\r\n\t\t\t\tcheckAVA(queryBk.parseVolume());\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\tmatch = false;\r\n\t\t\t} // end if\r\n\t\t} // end if\r\n\r\n\t\t// Additional query for Chinese titles\r\n\r\n\t\tif (!match && (CJKStringHandling.isCJKString(queryBk.getTitle())\r\n\t\t\t\t|| CJKStringHandling.isCJKString(queryBk.getCreator())\r\n\t\t\t\t|| CJKStringHandling.isCJKString(queryBk.getPublisher()))) {\r\n\r\n\t\t\tqueryStr = new String(processQueryTitle(queryBk.getTitle()));\r\n\t\t\tif (remoteQuery(queryStr)) {\r\n\t\t\t\tmatch = true;\r\n\t\t\t\tsetBookInfo();\r\n\t\t\t\tcheckAVA(queryBk.parseVolume());\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\tmatch = false;\r\n\t\t\t} // end if\r\n\r\n\t\t\tif (!match && queryBk.parseEdition() != -1) {\r\n\t\t\t\tqueryStr = new String(\r\n\t\t\t\t\t\tprocessQueryTitle(queryBk.getTitle()) + processQueryEdition2(queryBk.parseEdition()));\r\n\t\t\t\tif (remoteQuery(queryStr)) {\r\n\t\t\t\t\tmatch = true;\r\n\t\t\t\t\tsetBookInfo();\r\n\t\t\t\t\tcheckAVA(queryBk.parseVolume());\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tmatch = false;\r\n\t\t\t\t} // end if\r\n\r\n\t\t\t\tif (!match && queryBk.parseEdition() != -1) {\r\n\t\t\t\t\tqueryStr = new String(\r\n\t\t\t\t\t\t\tprocessQueryTitle(queryBk.getTitle()) + processQueryEdition3(queryBk.parseEdition()));\r\n\t\t\t\t\tif (remoteQuery(queryStr)) {\r\n\t\t\t\t\t\tmatch = true;\r\n\t\t\t\t\t\tsetBookInfo();\r\n\t\t\t\t\t\tcheckAVA(queryBk.parseVolume());\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tmatch = false;\r\n\t\t\t\t\t} // end if\r\n\t\t\t\t} // end if\r\n\t\t\t} // end if\r\n\t\t} // end if\r\n\r\n\t\t// Additional check for ISO Document number in <search> <genernal> PNX\r\n\t\t// tag\r\n\t\tif (!match && !CJKStringHandling.isCJKString(queryBk.getTitle())) {\r\n\t\t\tqueryStr = new String(processQueryTitleISODoc(queryBk.getTitle()));\r\n\t\t\tif (remoteQuery(queryStr)) {\r\n\t\t\t\tmatch = true;\r\n\t\t\t\tsetBookInfo();\r\n\t\t\t\tcheckAVA(queryBk.parseVolume());\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\tmatch = false;\r\n\t\t\t\terrMsg += \"Query: No record found on Primo.\" + Config.QUERY_SETTING;\r\n\t\t\t} // end if\r\n\t\t} // end if\r\n\t\treturn false;\r\n\t}",
"public boolean hasQuery() {\n return fieldSetFlags()[8];\n }",
"@Test\n\tpublic void queryTest() {\n\t\tString query1 = \"(\\\"hello my name is\\\" & my | (!no & yes))\";\n\t\tString query2 = \"(hello & (\\\"yes sir\\\") | !no)\";\n\t\tString query3 = \"\\\"bob dylan\\\" ( big boy | toy ) & \\\"named troy\\\"\";\n\t\tString query4 = \"test \\\"quan what does\\\"\";\n\t\t\n\t\tString query1Result = \"hello+my+name+is my & !no yes & |\";\n\t\tString query2Result = \"hello yes+sir & !no |\";\n\t\tString query3Result = \"bob+dylan big boy & toy | & named+troy &\";\n\t\tString query4Result = \"test quan+what+does &\";\n\t\t\n\t\tassertEquals(query1Result, String.join(\" \", queryTest.getPostFix(query1)));\n\t\tassertEquals(query2Result, String.join(\" \", queryTest.getPostFix(query2)));\n\t\tassertEquals(query3Result, String.join(\" \", queryTest.getPostFix(query3)));\n\t\tassertEquals(query4Result, String.join(\" \", queryTest.getPostFix(query4)));\n\t}",
"public boolean isSetQuery() {\n return this.query != null;\n }",
"boolean isSQL();",
"@Test(timeout = 4000)\n public void test056() throws Throwable {\n boolean boolean0 = SQLUtil.isQuery(\"SELECT * FROM join SELECT * FROM as SELECT * FROM on SELECT * FROM .SELECT * FROM = SELECT * FROM .SELECT * FROM and SELECT * FROM .null = SELECT * FROM .null and SELECT * FROM .SELECT * FROM = SELECT * FROM .SELECT * FROM and SELECT * FROM .null = SELECT * FROM .null and SELECT * FROM .null = SELECT * FROM .null and SELECT * FROM .null = SELECT * FROM .null\");\n assertTrue(boolean0);\n }",
"public boolean isSetQuery() {\n return this.query != null;\n }",
"public boolean isSetQuery() {\n return this.query != null;\n }",
"@Test\n public void testDAM31201001() {\n // In this test case the where clause is specified in a common sql shared in multiple queries.\n testDAM30505001();\n }",
"@Test\n\tpublic void testQuery1() {\n\t}",
"private boolean isQueryNew() throws PipelineNodeException {\n\t\tthis.getCanonicalFormForParameters();\n\n\t\t// get the Id of an evenual existing query identical to the one which is\n\t\t// submitted\n\t\ttry {\n\n\t\t\tthis.queryId = QueryDao.getInstance().getIdentifierExistingQuery(\n\t\t\t\t\tnotification);\n\t\t} catch (Exception e) {\n\t\t\tnew ErrorHandler(notification, queryId, e.getMessage(), this\n\t\t\t\t\t.getClass().getName());\n\t\t\tthrow new PipelineNodeException(e.getMessage());\n\t\t}\n\t\treturn (null == queryId);\n\t}",
"protected abstract String getValidationQuery();",
"Query query();",
"@Test\n public void testBasicQuery() {\n final QueryCriteria qc = QueryCriteria.create();\n QueryGenerator generator = QueryGenerator.generator(FakeEntity.class, qc, \"a\");\n Assert.assertEquals(BAD_QUERY_GENERATED, \"\", generator.generate());\n Assert.assertEquals(BAD_QUERY_PARAMTERS, 0, generator.getParameterKeys().size());\n }",
"@Test\n public void createSqlQuerySucceed()\n {\n // arrange\n // act\n QuerySpecification querySpecification = new QuerySpecificationBuilder(\"*\", QuerySpecificationBuilder.FromType.ENROLLMENTS).createSqlQuery();\n\n // assert\n Helpers.assertJson(querySpecification.toJson(), \"{\\\"query\\\":\\\"select * from enrollments\\\"}\");\n }",
"boolean hasQueryId();",
"boolean hasQueryId();",
"public boolean testSql(String sql) {\n\t\tboolean flag = false;\n\t\tif(StringUtils.isNotBlank(sql)){\n\t\t\tIPersistenceDAO dao = getPersistenceDAO();\n\t\t\ttry {\n\t\t\t\tdao.execute(sql, null);\n\t\t\t\tflag = true;\n\t\t\t} catch (OptimusException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} finally{\n\t\t\t\treturn flag;\n\t\t\t}\n\t\t}\n\t\treturn flag;\n\t}",
"public boolean shouldRewriteQueryFromData() {\n/* 79 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"public static boolean isValidinput(String query){\r\n\t\tPattern regex = Pattern.compile(\"[$&+,:;=@#|]\");\r\n\t\tMatcher matcher = regex.matcher(query);\r\n\t\tif (matcher.find()){\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\telse{\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t}",
"public void testUsingQueriesFromQueryManger(){\n\t\tSet<String> names = testDataMap.keySet();\n\t\tUtils.prtObMess(this.getClass(), \"atm query\");\n\t\tDseInputQuery<BigDecimal> atmq = \n\t\t\t\tqm.getQuery(new AtmDiot());\n\t\tMap<String, ComplexQueryResult<BigDecimal>> bdResult = \n\t\t\t\tatmq.get(names, 1, TimeUnit.SECONDS);\n\t\tCollectionsStaticMethods.prtMapItems(bdResult);\n\n\t\tUtils.prtObMess(this.getClass(), \"vol query\");\n\t\tDseInputQuery<BigDecimal> volq = \n\t\t\t\tqm.getQuery(new VolDiotForTest());\n\t\tMap<String, ComplexQueryResult<BigDecimal>> dbResult = \n\t\t\t\tvolq.get(names, 1, TimeUnit.SECONDS);\n\t\tCollectionsStaticMethods.prtMapItems(dbResult);\n\t\n\t\tUtils.prtObMess(this.getClass(), \"integer query\");\n\t\tDseInputQuery<BigDecimal> strikeq = \n\t\t\t\tqm.getQuery(new StrikeDiotForTest());\n\t\tMap<String, ComplexQueryResult<BigDecimal>> strikeResult = \n\t\t\t\tstrikeq.get(names, 1, TimeUnit.SECONDS);\n\t\tCollectionsStaticMethods.prtMapItems(strikeResult);\n\t\n\t}",
"@Test(timeout = 4000)\n public void test055() throws Throwable {\n boolean boolean0 = SQLUtil.isQuery(\"alter table\");\n assertFalse(boolean0);\n }",
"@Test\n public void testQueryMore4() throws Exception {\n testQueryMore(true, false);\n }",
"public boolean hasQuery() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }",
"private String checkQuery(String query){\n\t\tif(query != null){\n\t\t\tString[] param = query.split(\"=\");\n\t\t\tif(param[0].equals(\"tenantID\")){\n\t\t\t\treturn param[1];\n\t\t\t}\n\t\t}\n\t\treturn \"\";\n\t}",
"@Test\n public void createSqlQueryWithWhereAndGroupBySucceed()\n {\n // arrange\n // act\n QuerySpecification querySpecification = new QuerySpecificationBuilder(\"*\", QuerySpecificationBuilder.FromType.ENROLLMENTS).where(\"validWhere\").groupBy(\"validGroupBy\").createSqlQuery();\n\n // assert\n Helpers.assertJson(querySpecification.toJson(), \"{\\\"query\\\":\\\"select * from enrollments where validWhere group by validGroupBy\\\"}\");\n }",
"private void checkInlineQueries() throws Exceptions.OsoException, Exceptions.InlineQueryFailedError {\n Ffi.Query nextQuery = ffiPolar.nextInlineQuery();\n while (nextQuery != null) {\n if (!new Query(nextQuery, host).hasMoreElements()) {\n String source = nextQuery.source();\n throw new Exceptions.InlineQueryFailedError(source);\n }\n nextQuery = ffiPolar.nextInlineQuery();\n }\n }",
"@Test\n public void whereStoreSucceed()\n {\n // arrange\n final String whereClause = \"validWhere\";\n // act\n QuerySpecificationBuilder querySpecificationBuilder = new QuerySpecificationBuilder(\"*\", QuerySpecificationBuilder.FromType.ENROLLMENTS).where(whereClause);\n\n // assert\n assertEquals(whereClause, Deencapsulation.getField(querySpecificationBuilder, \"where\"));\n }",
"boolean hasQueryTimeSec();",
"private void checkQuery(Class<? extends Containerable> objectClass, ObjectQuery q1object, String q2xml) throws Exception {\n\t\tdisplayText(\"Query 1:\");\n\t\tdisplayQuery(q1object);\n\t\tQueryType q1jaxb = toQueryType(q1object);\n\t\tdisplayQueryType(q1jaxb);\n\t\tString q1xml = toXml(q1jaxb);\n\t\tdisplayQueryXml(q1xml);\n//\t\tXMLAssert.assertXMLEqual(\"Serialized query is not correct: Expected:\\n\" + q2xml + \"\\n\\nReal:\\n\" + q1xml, q2xml, q1xml);\n\n\t\t// step 2 (parsing of Q2 + comparison)\n\t\tdisplayText(\"Query 2:\");\n\t\tdisplayQueryXml(q2xml);\n\t\tQueryType q2jaxb = toQueryType(q2xml);\n\t\tdisplayQueryType(q2jaxb);\n\t\tObjectQuery q2object = toObjectQuery(objectClass, q2jaxb);\n\t\tassertEquals(\"Reparsed query is not as original one (via toString)\", q1object.toString(), q2object.toString());\t// primitive way of comparing parsed queries\n\t\tassertTrue(\"Reparsed query is not as original one (via equivalent):\\nq1=\"+q1object+\"\\nq2=\"+q2object, q1object.equivalent(q2object));\n\t}",
"@Test(timeout = 4000)\n public void test113() throws Throwable {\n String[] stringArray0 = new String[20];\n String string0 = SQLUtil.renderWhereClause(stringArray0, stringArray0);\n assertEquals(\"null = null AND null = null AND null = null AND null = null AND null = null AND null = null AND null = null AND null = null AND null = null AND null = null AND null = null AND null = null AND null = null AND null = null AND null = null AND null = null AND null = null AND null = null AND null = null AND null = null\", string0);\n }",
"@Test\n public void queryTest() {\n // TODO: test query\n }",
"public boolean hasQuery() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }",
"public static void checkFormat(String queryString) throws WrongQueryFormatException {\n\t\tString filters[] = queryString.split(\" \");\n\t\tif (filters.length != 7)\n\t\t\tthrow new WrongQueryFormatException(\n\t\t\t\t\t\"the query should be in this format-- QUERY <IP_ADDRESS> <CPU_ID> <START_DATE> <START_HOUR:START_MIN> <END_DATE> <END_HOUR:END_MIN>\");\n\t\tif (!filters[0].equals(\"QUERY\") && !filters[0].equals(\"EXIT\"))\n\t\t\tthrow new WrongQueryFormatException(\"the query should either start with a 'QUERY' or type 'EXIT' to end\");\n\t\tif (!isAnIp(filters[1]))\n\t\t\tthrow new WrongQueryFormatException(\"the second argument must be an ip address\");\n\t\tif (!isCpuId(filters[2]))\n\t\t\tthrow new WrongQueryFormatException(\"the third argument must be a cpu id(0 or 1)\");\n\t\tisDateTime(filters);\n\t}",
"private static Boolean specialQueries(String query) throws ClassNotFoundException, InstantiationException, IllegalAccessException {\n clickList = false;\n //newCorpus = true;\n\n if (query.equals(\"q\")) {\n\n System.exit(0);\n return true;\n }\n\n String[] subqueries = query.split(\"\\\\s+\"); //split around white space\n\n if (subqueries[0].equals(\"stem\")) //first term in subqueries tells computer what to do \n {\n GUI.JListModel.clear();\n GUI.ResultsLabel.setText(\"\");\n TokenProcessor processor = new NewTokenProcessor();\n if (subqueries.length > 1) //user meant to stem the token not to search stem\n {\n List<String> stems = processor.processToken(subqueries[1]);\n\n //clears list and repopulates it \n String stem = \"Stem of query '\" + subqueries[1] + \"' is '\" + stems.get(0) + \"'\";\n\n GUI.ResultsLabel.setText(stem);\n\n return true;\n }\n\n } else if (subqueries[0].equals(\"vocab\")) {\n List<String> vocabList = Disk_posIndex.getVocabulary();\n GUI.JListModel.clear();\n GUI.ResultsLabel.setText(\"\");\n\n int vocabCount = 0;\n for (String v : vocabList) {\n if (vocabCount < 1000) {\n vocabCount++;\n GUI.JListModel.addElement(v);\n }\n }\n GUI.ResultsLabel.setText(\"Total size of vocabulary: \" + vocabCount);\n return true;\n }\n\n return false;\n }",
"public abstract String createQuery();",
"@Test\n public void testQueryMore3() throws Exception {\n testQueryMore(false, false);\n }",
"@Test\n public void executeValidSearch_notAllFields(){\n emptySearchFields();\n view.setFloor(1);\n view.setBedrooms(1);\n view.setBathrooms(1);\n presenter.doSearch();\n Assert.assertTrue(presenter.hasNextResult());\n }",
"@Test\n\tpublic void testQueryTypes() {\n\t\tfinal IntrospectionResult introspection = getIntrospection();\n\t\t// QueryType\n\t\tfinal IntrospectionFullType queryType = getFullType(introspection, schemaConfig.getQueryTypeName());\n\t\t// - check all queries are available\n\t\tfinal List<String> queryNames = new ArrayList<>();\n\t\tArrays.asList(Entity1.class, Entity2.class, Entity3.class, Entity4.class).stream().forEach(clazz -> {\n\t\t\tqueryNames.add(schemaConfig.getQueryGetByIdPrefix() + clazz.getSimpleName());\n\t\t\tqueryNames.add(schemaConfig.getQueryGetListPrefix() + clazz.getSimpleName());\n\t\t});\n\t\tqueryNames.forEach(queryName -> Assert.assertTrue(queryType.getFields().stream()\n\t\t\t\t.map(IntrospectionTypeField::getName).collect(Collectors.toList()).contains(queryName)));\n\n\t\t// - check one 'getSingle' query (other ones are built the same way)\n\t\tfinal IntrospectionTypeField getEntity1 = assertField(queryType, queryNames.get(0),\n\t\t\t\tIntrospectionTypeKindEnum.OBJECT, Entity1.class);\n\t\tAssert.assertEquals(1, getEntity1.getArgs().size());\n\t\tassertArg(getEntity1, \"id\", IntrospectionTypeKindEnum.NON_NULL, IntrospectionTypeKindEnum.SCALAR,\n\t\t\t\tScalars.GraphQLID.getName());\n\n\t\t// - check one 'getAll' query (other ones are built the same way)\n\t\tfinal IntrospectionTypeField getAllEntity1 = assertField(queryType, queryNames.get(1),\n\t\t\t\tIntrospectionTypeKindEnum.OBJECT,\n\t\t\t\tEntity1.class.getSimpleName() + schemaConfig.getQueryGetListOutputTypeNameSuffix());\n\t\tAssert.assertEquals(3, getAllEntity1.getArgs().size());\n\t\tassertArg(getAllEntity1, schemaConfig.getQueryGetListFilterAttributeName(),\n\t\t\t\tIntrospectionTypeKindEnum.INPUT_OBJECT,\n\t\t\t\tEntity1.class.getSimpleName() + schemaConfig.getQueryGetListFilterEntityTypeNameSuffix());\n\t\tassertArg(getAllEntity1, schemaConfig.getQueryGetListPagingAttributeName(),\n\t\t\t\tIntrospectionTypeKindEnum.INPUT_OBJECT, getPagingInputTypeName());\n\t\tassertArg(getAllEntity1, schemaConfig.getQueryGetListFilterAttributeOrderByName(),\n\t\t\t\tIntrospectionTypeKindEnum.LIST, IntrospectionTypeKindEnum.INPUT_OBJECT, getOrderByInputTypeName());\n\t}",
"boolean hasQueryAddress();",
"public static void testQuery() {\n\t\tParameters parameters = new Parameters();\r\n\t\tparameters.setUrl(\"VchicleServlet.json?action=pagequery\");\r\n\t\tparameters.setList(new ArrayList<NameValuePair>());\r\n\t\tparameters.getList().add(new BasicNameValuePair(\"pageSize\", \"2\"));\r\n\t\tparameters.getList().add(new BasicNameValuePair(\"currPage\", \"3\"));\r\n\t\t@SuppressWarnings(\"unused\")\r\n\t\tString string = (String) MainUtilityTools.execute(parameters);\r\n\t}",
"@Test(timeout = 4000)\n public void test02() throws Throwable {\n NetworkHandling.sendDataOnTcp((EvoSuiteLocalAddress) null, (byte[]) null);\n String string0 = SQLUtil.normalize(\" Y*-X>Nz.q@~K^o8Z]v\", false);\n assertEquals(\"Y * - X > Nz.q @ ~ K ^ o8Z ] v\", string0);\n \n boolean boolean0 = SQLUtil.isQuery(\"fwX.WrSyJ>:+F-&9\");\n assertFalse(boolean0);\n }",
"String query();",
"@Test\n public void testQueryMore1() throws Exception {\n testQueryMore(true, true);\n }",
"@Test(timeout = 4000)\n public void test137() throws Throwable {\n DefaultDBTable defaultDBTable0 = new DefaultDBTable();\n String[] stringArray0 = new String[0];\n String string0 = SQLUtil.renderQuery(defaultDBTable0, stringArray0, stringArray0);\n assertEquals(\"SELECT * FROM null WHERE \", string0);\n }",
"public void Query() {\n }",
"boolean hasQueryTimeNsec();",
"public boolean onQueryTextSubmit (String query) {\n return true;\n }",
"public void testNormalQueries()\r\n throws Exception\r\n {\r\n try\r\n {\r\n SCOMapTests.checkQuery(pmf,\r\n HashMap1.class,\r\n ContainerItem.class,\r\n rdbmsVendorID);\r\n }\r\n finally\r\n {\r\n clean(HashMap1.class);\r\n clean(ContainerItem.class);\r\n }\r\n }",
"@Test\n\tpublic void queryTest(){\n\t\tQueryableRequestSpecification queryableRequestSpecification = SpecificationQuerier.query(requestSpecification);\n\t\tSystem.out.println(\"Printing specification parameters: \" +queryableRequestSpecification.getBaseUri());\n\t}",
"@Test(timeout = 4000)\n public void test123() throws Throwable {\n DefaultDBTable defaultDBTable0 = new DefaultDBTable();\n String[] stringArray0 = new String[5];\n String string0 = SQLUtil.renderQuery(defaultDBTable0, stringArray0, stringArray0);\n assertEquals(\"SELECT * FROM null WHERE null = null AND null = null AND null = null AND null = null AND null = null\", string0);\n }",
"boolean hasQueryZone();",
"public void testRawQuery() {\n Random random = new Random();\n ContentValues values1 = makeServiceStateValues(random, mBaseDb);\n final long row1 = mBaseDb.insert(TBL_SERVICE_STATE, null, values1);\n ContentValues values2 = makeServiceStateValues(random, mBaseDb);\n final long row2 = mBaseDb.insert(TBL_SERVICE_STATE, null, values2);\n\n // query tuple\n ServiceStateTable table = new ServiceStateTable();\n String sql = \"SELECT * FROM \" + TBL_SERVICE_STATE + \" WHERE \" + COL_ID + \" = ?\";\n String[] selectionArgs = { String.valueOf(row1) };\n List<ServiceStateTuple> tuples = table.rawQuery(mTestContext, sql, selectionArgs);\n\n // verify values\n assertNotNull(tuples);\n // klocwork\n if (tuples == null) return;\n assertFalse(tuples.isEmpty());\n assertEquals(1, tuples.size());\n ServiceStateTuple tuple = tuples.get(0);\n assertValuesTuple(row1, values1, tuple);\n }",
"@Test(timeout = 4000)\n public void test110() throws Throwable {\n String[] stringArray0 = new String[7];\n stringArray0[2] = \"\";\n String string0 = SQLUtil.renderWhereClause(stringArray0, stringArray0);\n assertEquals(\"null = null AND null = null AND = '' AND null = null AND null = null AND null = null AND null = null\", string0);\n }",
"public boolean querySql(String sql){\r\n boolean result = true;\r\n try{\r\n stm = con.createStatement();\r\n rss = stm.executeQuery(sql);\r\n }catch(SQLException e){\r\n report = e.toString();\r\n result = false;\r\n }\r\n return result;\r\n }",
"@Test\n public void testQueryMore2() throws Exception {\n testQueryMore(false, true);\n }",
"@Test(timeout = 4000)\n public void test007() throws Throwable {\n String[] stringArray0 = new String[0];\n String string0 = SQLUtil.renderWhereClause(stringArray0, stringArray0);\n assertEquals(\"\", string0);\n }",
"@Test\n void testAndFilter() {\n Query q = newQueryFromEncoded(\"?query=trump\" +\n \"&model.type=all\" +\n \"&model.defaultIndex=text\" +\n \"&filter=%2B%28filterattribute%3Afrontpage_US_en-US%29\");\n assertEquals(\"AND text:trump |filterattribute:frontpage_US_en-US\",\n q.getModel().getQueryTree().toString());\n }",
"@Test(timeout = 4000)\n public void test003() throws Throwable {\n String[] stringArray0 = new String[0];\n String string0 = SQLUtil.renderWhereClause(stringArray0, stringArray0);\n assertEquals(\"\", string0);\n }",
"@Test(timeout = 4000)\n public void test003() throws Throwable {\n String[] stringArray0 = new String[0];\n String string0 = SQLUtil.renderWhereClause(stringArray0, stringArray0);\n assertEquals(\"\", string0);\n }",
"public void testQuery() {\n Random random = new Random();\n ContentValues values = makeServiceStateValues(random, mBaseDb);\n final long rowId = mBaseDb.insert(TBL_SERVICE_STATE, null, values);\n\n // query tuple\n ServiceStateTable table = new ServiceStateTable();\n List<ServiceStateTuple> tuples = table.query(mTestContext, null, null, null, null,\n null, null, null);\n\n // verify values\n assertNotNull(tuples);\n // klocwork\n if (tuples == null) return;\n assertFalse(tuples.isEmpty());\n assertEquals(1, tuples.size());\n ServiceStateTuple tuple = tuples.get(0);\n assertValuesTuple(rowId, values, tuple);\n }",
"@Test(timeout = 4000)\n public void test066() throws Throwable {\n String[] stringArray0 = new String[3];\n String string0 = SQLUtil.renderWhereClause(stringArray0, stringArray0);\n assertEquals(\"null = null AND null = null AND null = null\", string0);\n }",
"@Test(expected = IllegalArgumentException.class)\n public void testSearchQuery03() {\n ISearchQuery query = new SearchQuery(null, null, null, null);\n SearchOption option = new SearchOption();\n option.setStrategy(strategy);\n SearchResult result = searchService.search(query, option, raptorContext);\n Assert.assertEquals(result.getResultSize(), 1);\n }",
"@Test\r\n public void testGetQuery() {\r\n System.out.println(\"testGetQuery\");\r\n AddFuzzyColumnOperation instance = new AddFuzzyColumnOperation(null, \"test_repuestos\", \r\n \"example_autoincrement\",\r\n \"data\", 1);\r\n assertEquals(\"Query generado incorrecto.\",\r\n (\"INSERT INTO information_schema_fuzzy.columns\"\r\n + \" VALUES ('test_repuestos','example_autoincrement','data',1)\").toLowerCase(),\r\n instance.getQuery().toLowerCase());\r\n }",
"@Test(timeout = 4000)\n public void test001() throws Throwable {\n DefaultDBTable defaultDBTable0 = new DefaultDBTable(\"org.apache.derby.iapi.sql.execute.ExecutionContext\");\n String[] stringArray0 = new String[4];\n String string0 = SQLUtil.renderQuery(defaultDBTable0, stringArray0, stringArray0);\n assertEquals(\"SELECT * FROM org.apache.derby.iapi.sql.execute.ExecutionContext WHERE null = null AND null = null AND null = null AND null = null\", string0);\n }",
"@Override\n public boolean onQueryTextSubmit(String query) {\n Log.i(TAG, \"on query submit: \" + query);\n return true;\n }",
"@Override\n public boolean onQueryTextSubmit(String query) {\n queryMain = query;\n consultarDb();\n return true;\n }",
"@Test\n public void testSomeToStrings() {\n System.out.println(new JresBoolQuery()\n .must(new JresQueryStringQuery(\"stuff:true\").withDefaultOperator(\"AND\"))\n .should(\n new JresMatchQuery(\"color\", \"orange\"),\n new JresTermQuery(\"key\", \"abc123\")\n )\n .mustNot(new JresDisMaxQuery(\n new JresMatchQuery(\"color\", \"yellow\"),\n new JresMatchQuery(\"color\", \"green\")\n ))\n );\n }",
"CampusSearchQuery generateQuery();",
"boolean hasQueryVisibility();",
"@Test\n public void testUpdateQuery() {\n LayersViewController instance = LayersViewController.getDefault().init(null);\n String queryString1 = \"Type == 'Word'\";\n int index1 = 2;\n Query query1 = new Query(GraphElementType.VERTEX, \"Type == 'Event'\");\n instance.getVxQueryCollection().getQuery(index1).setQuery(query1);\n instance.getTxQueryCollection().getQuery(index1).setQuery(null);\n assertEquals(instance.getVxQueryCollection().getQuery(index1).getQueryString(), \"Type == 'Event'\");\n\n instance.updateQuery(queryString1, index1, \"Vertex Query: \");\n assertEquals(instance.getVxQueryCollection().getQuery(index1).getQueryString(), queryString1);\n\n String queryString2 = \"Type == 'Unknown'\";\n int index2 = 3;\n Query query2 = new Query(GraphElementType.TRANSACTION, \"Type == 'Network'\");\n instance.getTxQueryCollection().getQuery(index2).setQuery(query2);\n instance.getVxQueryCollection().getQuery(index2).setQuery(null);\n assertEquals(instance.getTxQueryCollection().getQuery(index2).getQueryString(), \"Type == 'Network'\");\n \n instance.updateQuery(queryString2, index2, \"Transaction Query: \");\n assertEquals(instance.getTxQueryCollection().getQuery(index2).getQueryString(), queryString2);\n\n }",
"@Override\n public boolean onQueryTextSubmit(String query) {\n return true;\n }",
"@Override\n public boolean onQueryTextSubmit(String query) {\n return true;\n }",
"public boolean onQueryTextSubmit(String query) {\n return false;\n }",
"@Test\n\tpublic void db_query_scale() throws Exception\n\t{\n\t\tTemplate t = T(\"<?for row in db.query('select 0.5 as x from dual')?><?print row.x > 0?><?end for?>\");\n\n\t\tConnection db = getDatabaseConnection();\n\n\t\tif (db != null)\n\t\t\tcheckOutput(\"True\", t, V(\"db\", db));\n\t}",
"@Test(timeout = 4000)\n public void test102() throws Throwable {\n StringBuilder stringBuilder0 = new StringBuilder(\"u\\\"lR>,*-okLM\");\n SQLUtil.addRequiredCondition(\"u\\\"lR>,*-okLM\", stringBuilder0);\n assertEquals(\"u\\\"lR>,*-okLM and u\\\"lR>,*-okLM\", stringBuilder0.toString());\n }",
"public abstract String debugQuery(Form staticQueryParametersAsForm)\n\t\t\tthrows Exception;",
"@Test\n public void testToString() {\n assertNotNull(create(mockQuery()).toString());\n }",
"@Test\n void testAndFilterWithoutExplicitIndex() {\n Query q = newQueryFromEncoded(\"?query=trump\" +\n \"&model.type=all\" +\n \"&model.defaultIndex=text\" +\n \"&filter=%2B%28filterTerm%29\");\n assertEquals(\"AND text:trump |text:filterTerm\",\n q.getModel().getQueryTree().toString());\n }",
"public boolean hasQueryName() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }"
] |
[
"0.739922",
"0.70575297",
"0.66679996",
"0.6564949",
"0.6542669",
"0.6515663",
"0.6510717",
"0.6496622",
"0.6484785",
"0.6453258",
"0.64394504",
"0.6438884",
"0.64364135",
"0.64351976",
"0.64176464",
"0.64151853",
"0.64038813",
"0.6397767",
"0.6375285",
"0.63744503",
"0.6368752",
"0.6367384",
"0.63473815",
"0.6346944",
"0.6336442",
"0.62743497",
"0.625133",
"0.623753",
"0.623753",
"0.6235129",
"0.62286305",
"0.621396",
"0.6199072",
"0.6161645",
"0.61514795",
"0.6145675",
"0.61192286",
"0.61192286",
"0.60959065",
"0.609589",
"0.608527",
"0.6066833",
"0.60612845",
"0.60250235",
"0.6017383",
"0.60047084",
"0.59908605",
"0.5986225",
"0.59860283",
"0.5975743",
"0.59734076",
"0.5948141",
"0.5945926",
"0.59440875",
"0.59243464",
"0.5912192",
"0.59098345",
"0.59000903",
"0.59000224",
"0.58958703",
"0.58884084",
"0.58755577",
"0.58666706",
"0.5848905",
"0.583344",
"0.5821399",
"0.5819975",
"0.58012563",
"0.57954335",
"0.5793198",
"0.5792466",
"0.5792465",
"0.5786922",
"0.5782579",
"0.5781652",
"0.5781368",
"0.5772718",
"0.57672656",
"0.57569927",
"0.57407165",
"0.57407165",
"0.5731361",
"0.5731201",
"0.5722947",
"0.57213914",
"0.57139176",
"0.5702061",
"0.56900084",
"0.5681452",
"0.56735903",
"0.56721437",
"0.56677985",
"0.5666415",
"0.5666415",
"0.5665345",
"0.5653401",
"0.5646607",
"0.5637449",
"0.5623039",
"0.5615406",
"0.5599955"
] |
0.0
|
-1
|
To turn off generation of API docs for certain roles, comment out
|
public static void main(String[] args) {
XmlToHtmlConverter x = new XmlToHtmlConverter();
x.populateForApi();
x.generateToc();
x.generateIndividualCommandPages();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n public boolean isRole() {\n return false;\n }",
"@Override\r\n\tpublic void list_privateWithoutViewPrivate() throws Exception {\n\t\tif (JavastravaApplicationConfig.STRAVA_ALLOWS_CHALLENGES_ENDPOINT) {\r\n\t\t\tsuper.list_privateWithoutViewPrivate();\r\n\t\t}\r\n\t}",
"private ExportRoles() {}",
"public void setRole(APIRole role) {\n this.role = role;\n }",
"@Test\n public void testDenyAccessWithRoleCondition() {\n denyAccessWithRoleCondition(false);\n }",
"public AsciiDocWriter role(Object role) { nnl(); return w(\"[.\", 1, role, \"]\"); }",
"@Override\n public void configure(WebSecurity web) throws Exception {\n web.ignoring().antMatchers(\"/v2/api-docs\", \"/configuration/ui\", \"/swagger-resources\",\n \"/configuration/security\", \"/swagger-ui.html\", \"/webjars/**\", \"/v2/swagger.json\");\n }",
"@Override\r\n public boolean canDisapprove(Document document) {\n return false;\r\n }",
"public TravelAuthorizationDocument() {\n super();\n }",
"@Override\n protected String requiredPutPermission() {\n return \"admin\";\n }",
"public void removeDocumenterRole()\r\n {\r\n getSemanticObject().removeProperty(swpres_documenterRole);\r\n }",
"boolean isOmitResourceId();",
"@WithMockUser(username = \"admin\", authorities = {\"ADMIN\"})\n @Test\n @DisplayName(\"Allowed get books requests for ADMIN role \")\n void getByAdmin() throws Exception {\n mockMvc.perform(get(\"/books\").with(csrf())).andExpect(status().isOk());\n }",
"@ApiModelProperty(value = \"The list of Software Statement roles\")\n\n\n public List<String> getRoles() {\n return roles;\n }",
"@GET\n @Path(\"/roles\")\n @Produces(MediaType.TEXT_PLAIN)\n @RolesAllowed(\"Subscriber\")\n public String helloRoles() {\n return sub;\n }",
"@Test\n public void testDenyAccessWithNegateRoleCondition() {\n denyAccessWithRoleCondition(true);\n }",
"@PreAuthorize(\"hasAuthority('ROLE_ADMIN')\")\n @RequestMapping\n public String admin() {\n return \"admin\";\n }",
"@Override\n public void configure(WebSecurity web) throws Exception {\n web.ignoring().antMatchers(\"/v2/api-docs\")//\n .antMatchers(\"/swagger-resources/**\")//\n .antMatchers(\"/swagger-ui.html\")//\n .antMatchers(\"/configuration/**\")//\n .antMatchers(\"/webjars/**\")//\n .antMatchers(\"/public\")\n \n // Un-secure H2 Database (for testing purposes, H2 console shouldn't be unprotected in production)\n .and()\n .ignoring()\n .antMatchers(\"/h2-console/**/**\");;\n }",
"@Override\r\n\tpublic void list_private() throws Exception {\n\t\tif (JavastravaApplicationConfig.STRAVA_ALLOWS_CHALLENGES_ENDPOINT) {\r\n\t\t\tsuper.list_private();\r\n\t\t}\r\n\t}",
"default void buildMainGenerateAPIDocumentation() {\n if (!bach().project().settings().tools().enabled(\"javadoc\")) return;\n say(\"Generate API documentation\");\n var api = bach().folders().workspace(\"documentation\", \"api\");\n bach().run(buildMainJavadoc(api)).requireSuccessful();\n bach().run(buildMainJavadocJar(api)).requireSuccessful();\n }",
"@RequestMapping(value = \"/admin/deny\")\r\n\tpublic String deny() {\r\n\t\treturn \"admin/deny\";\r\n\t}",
"public void removeAdminRole()\r\n {\r\n getSemanticObject().removeProperty(swpres_adminRole);\r\n }",
"@Test\n public void requestPassThroughForNoAuth() throws AmplifyException {\n final AuthorizationType mode = AuthorizationType.AMAZON_COGNITO_USER_POOLS;\n\n // NoAuth class does not have use @auth directive\n for (SubscriptionType subscriptionType : SubscriptionType.values()) {\n GraphQLRequest<NoAuth> originalRequest = createRequest(NoAuth.class, subscriptionType);\n GraphQLRequest<NoAuth> modifiedRequest = decorator.decorate(originalRequest, mode);\n assertEquals(originalRequest, modifiedRequest);\n }\n }",
"@Test\n public void conditionalOTPRoleSkip() {\n Map<String, String> config = new HashMap<>();\n config.put(SKIP_OTP_ROLE, \"otp_role\");\n config.put(DEFAULT_OTP_OUTCOME, FORCE);\n\n setConditionalOTPForm(config);\n\n //create role\n RoleRepresentation role = getOrCreateOTPRole();\n\n //add role to user\n List<RoleRepresentation> realmRoles = new ArrayList<>();\n realmRoles.add(role);\n testRealmResource().users().get(testUser.getId()).roles().realmLevel().add(realmRoles);\n\n //test OTP is skipped\n driver.navigate().to(oauth.getLoginFormUrl());\n testRealmLoginPage.form().login(testUser);\n assertCurrentUrlStartsWith(oauth.APP_AUTH_ROOT);\n }",
"public boolean systemAdminOnly()\n {\n return false;\n }",
"@Override\n public boolean requiresUser() {\n return false;\n }",
"@PreAuthorize(\"checkPermission('Legal Entity', 'Manage Legal Entities', {'view','create'})\")\n @GetMapping(\n produces = {\"application/json\"})\n @ResponseStatus(HttpStatus.OK)\n public void sampleEndpointThatRequiresUserToHavePermissionsToViewCreateLegalEnitites() {\n LOGGER.info(\"Preauthorize annotation have checked that user has permissions to view/create legal entities\");\n // continue custom implementation ...\n }",
"BasicRestAnnotation() {\n\t}",
"public void renderAudit(CoreSession session, DocumentModel doc, boolean unrestricted) throws ClientException;",
"public void invertAdminStatus() {\n this.isAdmin = !(this.isAdmin);\n }",
"@ApiModelProperty(required = true, value = \"The role that the place plays, e.g. \\\"UNI Site\\\", or \\\"ENNI Site\\\".\")\n @NotNull\n\n\n public String getRole() {\n return role;\n }",
"@Override\n\tpublic void requestLawyer() {\n\t\tSystem.out.println(\"xiaoming-requestLawyer\");\n\t}",
"public void setRoles(String roles) {\n this.roles = roles;\n }",
"@Test\n\tpublic void othersShouldNotBeAbleToLookAtLeonardsQueryByItsPrivateId() throws Exception {\n\t\tthis.mockMvc.perform(get(\"/user/me/queries/123456789\").accept(MediaType.APPLICATION_JSON)).\n\t\t\t\tandExpect(status().isForbidden());\n\t}",
"public void disableAccessRules() {\n\t\tm_parser.disableAccessRules();\n\t}",
"protected void disableRotation()\n\t{\n\t\tthis.rotationAllowed = false;\n\t}",
"void disable() {\n }",
"@Override\n protected String requiredDeletePermission() {\n return \"admin\";\n }",
"@Override\n\tprotected UnlockDoc httpGet(String type, String id, UnlockDoc doc) {\n\t\treturn null;\n\t}",
"@Override\n protected String requiredPostPermission() {\n return \"admin\";\n }",
"@Override\r\n\tpublic String definedRole() {\n\t\treturn DEF_ROLE;\r\n\t}",
"public JsonFactory disable(JsonGenerator.Feature f)\n/* */ {\n/* 644 */ this._generatorFeatures &= (f.getMask() ^ 0xFFFFFFFF);\n/* 645 */ return this;\n/* */ }",
"@Override\n\tpublic boolean isRole() {\n\t\treturn true;\n\t}",
"@Override\r\n\tpublic void setDisabled(boolean arg0) throws NotesApiException {\n\r\n\t}",
"public void setRole(String role)\n {\n _role=role;\n }",
"@Override\r\n\tpublic void getAllRole() {\n\t\tSystem.out.println(roles);\r\n\t\t\r\n\t}",
"ISModifyProvidedRole createISModifyProvidedRole();",
"@Override\n public boolean isDisableMetadataField() {\n return false;\n }",
"boolean writeMemberDocs(Model model, MemberShape member) {\n return member.getMemberTrait(model, DocumentationTrait.class)\n .map(DocumentationTrait::getValue)\n .map(docs -> {\n if (member.getMemberTrait(model, DeprecatedTrait.class).isPresent()) {\n docs = \"@deprecated\\n\\n\" + docs;\n }\n writeDocs(docs);\n return true;\n }).orElse(false);\n }",
"public void resetCreationRights() {\r\n creationRights = false;\r\n \r\n try {\r\n String[] roles = processModel.getCreationRoles();\r\n \r\n for (int i = 0; i < roles.length; i++) {\r\n if (roles[i].equals(currentRole))\r\n creationRights = true;\r\n }\r\n } catch (Exception e) {\r\n creationRights = false;\r\n }\r\n }",
"@Bean\n public Docket swaggerUserApi() {\n return new Docket(DocumentationType.SWAGGER_2)\n .groupName(\"yogurt v1\")\n .select()\n .apis(RequestHandlerSelectors.basePackage(\"com.yogurt.controller.v1.ap1\"))\n .paths(PathSelectors.any())\n .build()\n .apiInfo(apiInfo())\n .securitySchemes(Arrays.asList(apiKey()));\n }",
"@Override\r\n\tpublic boolean isDisabled() throws NotesApiException {\n\t\treturn false;\r\n\t}",
"private void revokeLogin(long studentID) throws Exception {\n String url = MASTER_URL + MEMBERS + studentID + \".api\";\n\n URL obj = new URL(url);\n HttpURLConnection con = (HttpURLConnection) obj.openConnection();\n con.setDoOutput(true);\n // request method\n con.setRequestMethod(\"PUT\");\n\n // request headers\n con.setRequestProperty(\"token\", USER_TOKEN);\n con.setRequestProperty(\"Content-Type\", \"application/x-www-form-urlencoded\");\n\n String data = \"user[login_enabled]=0\";\n\n OutputStreamWriter writer = new OutputStreamWriter(con.getOutputStream());\n\n writer.write(data);\n writer.close();\n\n con.getResponseCode();\n }",
"@RepositoryRestResource\n@PreAuthorize(\"hasRole('ADMIN')\")\npublic interface ServiceRepository extends JpaRepository<Service,String>{\n}",
"@Path(\"admin_area\")\n @GET\n @View(\"admin_page.jsp\")\n @RolesAllowed(\"admin\")\n public void sayRole(@Context SecurityContext securityContext) {\n\n logger.info(\"AdminRole :: \" + securityContext.isUserInRole(\"AdminRole\"));\n logger.info(\"admin :: \" + securityContext.isUserInRole(\"admin\"));\n logger.info(\"INFO :: \" + securityContext.isSecure());\n\n }",
"public boolean supportsPreemptiveAuthorization() {\n/* 225 */ return true;\n/* */ }",
"public interface PrivateApiRoutes {\n}",
"@DSComment(\"Package priviledge\")\n @DSBan(DSCat.DEFAULT_MODIFIER)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:56:28.347 -0500\", hash_original_method = \"72EE977944BFE2711990DF062DD76748\", hash_generated_method = \"C135F20F4FD32489ABF297ACDC7DAB20\")\n \n void interrupt(){\n }",
"void setShowRevokedStatus(boolean b);",
"@javax.annotation.Nullable\n @ApiModelProperty(value = \"Disallow annotation of this PDF.\")\n @JsonProperty(JSON_PROPERTY_DISALLOW_ANNOTATE)\n @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)\n\n public Boolean getDisallowAnnotate() {\n return disallowAnnotate;\n }",
"@Override\n\tpublic void requestLaw() {\n\t\tSystem.out.println(\"xiaoming-requestLaw\");\n\t}",
"@Test\n void getAllClientIdWithAccess_gaeAdmin() {\n AuthenticatedRegistrarAccessor registrarAccessor =\n new AuthenticatedRegistrarAccessor(\n GAE_ADMIN, ADMIN_CLIENT_ID, SUPPORT_GROUP, lazyGroupsConnection);\n\n assertThat(registrarAccessor.getAllClientIdWithRoles())\n .containsExactly(\n CLIENT_ID_WITH_CONTACT, ADMIN,\n CLIENT_ID_WITH_CONTACT, OWNER,\n\n REAL_CLIENT_ID_WITHOUT_CONTACT, ADMIN,\n\n OTE_CLIENT_ID_WITHOUT_CONTACT, ADMIN,\n OTE_CLIENT_ID_WITHOUT_CONTACT, OWNER,\n\n ADMIN_CLIENT_ID, ADMIN,\n ADMIN_CLIENT_ID, OWNER);\n verifyNoInteractions(lazyGroupsConnection);\n }",
"public PageRoleMstExample() {\n oredCriteria = new ArrayList<>();\n }",
"@Test\n public void testDefaultRoleWithinRoleList() {\n configure().roles();\n realmRolesPage.table().clickRole(Constants.DEFAULT_ROLES_ROLE_PREFIX + \"-test\");\n defaultRolesPage.assertCurrent();\n\n //test role edit button leads to Default Roles tab \n configure().roles();\n realmRolesPage.table().editRole(Constants.DEFAULT_ROLES_ROLE_PREFIX + \"-test\");\n defaultRolesPage.assertCurrent();\n\n //test delete default role doesn't work\n configure().roles();\n realmRolesPage.table().deleteRole(Constants.DEFAULT_ROLES_ROLE_PREFIX + \"-test\");\n assertTrue(realmRolesPage.table().containsRole(Constants.DEFAULT_ROLES_ROLE_PREFIX + \"-test\"));\n }",
"boolean noneGranted(String roles);",
"@Override\n public boolean isClientAuthEnabled() {\n return true;\n }",
"@Override\n public boolean shouldShowRequestPermissionRationale(@NonNull String permission) {\n return false;\n }",
"private void denyAccessWithRoleCondition(boolean negateOutput) {\n final String flowAlias = \"browser-deny\";\n final String userWithRole = \"test-user@localhost\";\n final String userWithoutRole = \"john-doh@localhost\";\n final String role = \"offline_access\";\n final String errorMessage = \"Your account doesn't have the required role\";\n\n Map<String, String> config = new HashMap<>();\n config.put(ConditionalRoleAuthenticatorFactory.CONDITIONAL_USER_ROLE, role);\n config.put(ConditionalRoleAuthenticatorFactory.CONF_NEGATE, Boolean.toString(negateOutput));\n\n Map<String, String> denyConfig = new HashMap<>();\n denyConfig.put(DenyAccessAuthenticatorFactory.ERROR_MESSAGE, errorMessage);\n\n configureBrowserFlowWithDenyAccessInConditionalFlow(flowAlias, ConditionalRoleAuthenticatorFactory.PROVIDER_ID, config, denyConfig);\n\n denyAccessInConditionalFlow(flowAlias,\n negateOutput ? userWithoutRole : userWithRole,\n negateOutput ? userWithRole : userWithoutRole,\n errorMessage\n );\n }",
"public void testUserIsBlogContributorByDefault() {\n rootBlog.removeProperty(SimpleBlog.BLOG_CONTRIBUTORS_KEY);\n assertTrue(rootBlog.isUserInRole(Constants.BLOG_CONTRIBUTOR_ROLE, \"user1\"));\n assertTrue(rootBlog.isUserInRole(Constants.BLOG_CONTRIBUTOR_ROLE, \"usern\"));\n }",
"@Override\n public String getRoleProperty() {\n return \"visibleAtRole.id\";\n }",
"@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:33:59.877 -0500\", hash_original_method = \"6B80070A6DD2FB0EB3D1E45B8D1F67CF\", hash_generated_method = \"2A1ECFC7445D74F90AF7029089D02160\")\n \nprivate Organizations() {}",
"@Test\n @DisplayName(\"Test Filtering of the properties field with no admin privileges\")\n void testFilterPrivilegedFields() throws Exception {\n logger.info(\"Testing filtering of properties field with no admin privileges\");\n\n replaceConfiguration(RESOURCE_DIR\n + \"/exporter/rest_filter_jdbc_privileged.yaml\",\n \"wls_datasource_state%7Bname%3D%22TestDataSource%22%7D%5B15s%5D\",\n \"Running, Suspended, Shutdown, Overloaded, Unknown\", \"TestDataSource\");\n }",
"private void authorize() {\r\n\r\n\t}",
"public void toggleAdvanced() {\r\n\t\tif (!isCurrentUserCanEditDepartmentSelection()) {\r\n\t\t\taddUnauthorizedActionMessage();\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tadvanced = !advanced;\r\n\t}",
"public void clearAuthorizationFrontEnd() {\n genClient.clear(CacheKey.authorizationFrontEnd);\n }",
"private void disablePhotoEditing() {\r\n isEditingPhotos = false;\r\n }",
"public void setAdmin( boolean admin )\n {\n this.admin = admin;\n }",
"public void setRole(String role) {\r\n this.role = role;\r\n }",
"@WithMockUser(username = \"user\", authorities = {\"USER\"})\n @Test\n @DisplayName(\"Forbidden delete book requests for USER role \")\n void deleteBookyUser() throws Exception {\n mockMvc.perform(delete(\"/books/3\").with(csrf())).andExpect(status().isForbidden());\n }",
"@Test\n @DisplayName(\"delete returns 403 when user is not admin\")\n void delete_Returns403_WhenUserIsNotAdmin() {\n Anime savedAnime = animeRepository.save(AnimeCreator.createAnimeToBeSaved());\n devDojoRepository.save(USER);\n \n ResponseEntity<Void> animeResponseEntity = testRestTemplateRoleUser.exchange(\n \"/animes/admin/{id}\",\n HttpMethod.DELETE,\n null,\n Void.class,\n savedAnime.getId()\n );\n\n Assertions.assertThat(animeResponseEntity).isNotNull();\n \n Assertions.assertThat(animeResponseEntity.getStatusCode()).isEqualTo(HttpStatus.FORBIDDEN);\n }",
"@Override\n\tprotected UnlockDoc httpDelete(String type, String id, UnlockDoc doc) {\n\t\treturn null;\n\t}",
"@Test\n void testGetRegistrarForUser_notInContacts_isAdmin_notReal() throws Exception {\n expectGetRegistrarSuccess(\n OTE_CLIENT_ID_WITHOUT_CONTACT,\n GAE_ADMIN,\n \"admin [email protected] has [OWNER, ADMIN] access to registrar OteRegistrar.\");\n verifyNoInteractions(lazyGroupsConnection);\n }",
"public void setWantClientAuth(boolean flag)\n {\n wantClientAuth = flag;\n }",
"public void clearSupportsPreauthOverage() {\n genClient.clear(CacheKey.supportsPreauthOverage);\n }",
"@Bean\n public Docket userApi() {\n return new Docket(DocumentationType.SWAGGER_2)\n .apiInfo(metaData())\n .select()\n .apis(RequestHandlerSelectors.basePackage(API_BASE_PACKAGE))\n .apis(RequestHandlerSelectors.any())\n .paths(PathSelectors.any())\n .build();\n }",
"public void setReadWriteOnMyLatestView()\n {\n \t m_acl = \tm_acl | (1<<2);\n }",
"@ApiStatus.Internal\n default boolean isListable() {\n \n return false;\n }",
"@Override\n\tprotected void createEditPolicies() {\n\t\tinstallEditPolicy(EditPolicy.LAYOUT_ROLE, new NoRCEditLayoutPolicy());\n\t\tinstallEditPolicy(EditPolicy.COMPONENT_ROLE, new NoRCDeletePolicy());\n\t\tinstallEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new NoRCEditCodePolicy());\n\t\tinstallEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new NoRCNodePolicy());\n\t}",
"List<View> getViewsToDisableInAccessibility();",
"private void setReadOnlyMode() {\n// mFileTitleEditText.setEnabled(false);\n// mDocContentEditText.setEnabled(false);\n mOpenFileId = null;\n }",
"private void setPermissions( String userId, ProposalDevelopmentDocument doc, Set<String> editModes ) {\n\t\tif ( editModes.contains( AuthorizationConstants.EditMode.FULL_ENTRY ) ) {\n\t\t\teditModes.add( \"modifyProposal\" );\n\t\t}\n\n\t\tif ( canExecuteTask( userId, doc, TaskName.ADD_BUDGET ) ) {\n\t\t\teditModes.add( \"addBudget\" );\n\t\t}\n\n\t\tif ( canExecuteTask( userId, doc, TaskName.OPEN_BUDGETS ) ) {\n\t\t\teditModes.add( \"openBudgets\" );\n\t\t}\n\n\t\tif ( canExecuteTask( userId, doc, TaskName.MODIFY_BUDGET ) ) {\n\t\t\teditModes.add( \"modifyProposalBudget\" );\n\t\t}\n\n\t\tif ( canExecuteTask( userId, doc, TaskName.MODIFY_PROPOSAL_ROLES ) ) {\n\t\t\teditModes.add( \"modifyPermissions\" );\n\t\t}\n\n\t\tif ( canExecuteTask( userId, doc, TaskName.ADD_NARRATIVE ) ) {\n\t\t\teditModes.add( \"addNarratives\" );\n\t\t}\n\n\t\tif ( canExecuteTask( userId, doc, TaskName.CERTIFY ) ) {\n\t\t\teditModes.add( \"certify\" );\n\t\t}\n\n\t\tif ( canExecuteTask( userId, doc, TaskName.MODIFY_NARRATIVE_STATUS ) ) {\n\t\t\teditModes.add( \"modifyNarrativeStatus\" );\n\t\t}\n\n\t\tif ( canExecuteTask( userId, doc, TaskName.PRINT_PROPOSAL ) ) {\n\t\t\teditModes.add( \"printProposal\" );\n\t\t}\n\n\t\tif ( canExecuteTask( userId, doc, TaskName.ALTER_PROPOSAL_DATA ) ) {\n\t\t\teditModes.add( \"alterProposalData\" );\n\t\t}\n\n\t\tif ( canExecuteTask( userId, doc, TaskName.SHOW_ALTER_PROPOSAL_DATA ) ) {\n\t\t\teditModes.add( \"showAlterProposalData\" );\n\t\t}\n\n\t\tif ( canExecuteTask( userId, doc, TaskName.SUBMIT_TO_SPONSOR ) ) {\n\t\t\teditModes.add( \"submitToSponsor\" );\n\t\t}\n\t\tif ( canExecuteTask( userId, doc, TaskName.MAINTAIN_PROPOSAL_HIERARCHY ) ) {\n\t\t\teditModes.add( \"maintainProposalHierarchy\" );\n\t\t}\n\n\t\tif ( canExecuteTask( userId, doc, TaskName.REJECT_PROPOSAL ) ) {\n\t\t\teditModes.add( TaskName.REJECT_PROPOSAL );\n\t\t}\n\n\t\tsetNarrativePermissions( userId, doc, editModes );\n\t}",
"@javax.annotation.Nullable\n @ApiModelProperty(value = \"Disallow modification of this PDF.\")\n @JsonProperty(JSON_PROPERTY_DISALLOW_MODIFY)\n @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)\n\n public Boolean getDisallowModify() {\n return disallowModify;\n }",
"@Override\n\tprotected UnlockDoc httpPut(String type, String id, UnlockDoc doc) {\n\t\treturn null;\n\t}",
"protected void createDocumentationAnnotations() {\n\t\tString source = \"http://www.polarsys.org/kitalpha/ecore/documentation\";\t\n\t\taddAnnotation\n\t\t (this, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"CompositeStructure aims at defining the common component approach composite structure pattern language (close to the UML Composite structure).\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"none\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"none\",\n\t\t\t \"constraints\", \"This package depends on the model FunctionalAnalysis.ecore\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockArchitecturePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Container package for BlockArchitecture elements\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Parent class for deriving specific architectures for each design phase\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedRequirementPkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain requirements\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain capabilities\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain interfaces\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain data\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisionedArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) list of allocation links to other architectures\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisioningArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) list of allocation links from other architectures to this one\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatedArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the BlockArchitectures that are allocated from this one\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatingArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to BlockArchitectures that allocate to this architecture\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"A modular unit that describes the structure of a system or element.\\r\\n[source: SysML specification v1.1]\",\n\t\t\t \"usage guideline\", \"n/a (abstract)\",\n\t\t\t \"used in levels\", \"n/a (abstract)\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain capabilities\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain interfaces\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain data\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedStateMachines(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to related state machines\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"A specialized kind of BlockArchitecture, serving as a parent class for the various architecture levels, from System analysis down to EPBS architecture\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"N/A (abstract)\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"An entity, with discrete structure within the system, that interacts with other Components of the system, thereby contributing at its lowest level to the system properties and characteristics.\\r\\n[source: Sys EM , ISO/IEC CD 15288]\",\n\t\t\t \"arcadia_description\", \"A component is a constituent part of the system, contributing to its behaviour, by interacting with other components and external actors, thereby contributing at its lowest level to the system properties and characteristics. Example: radio receiver, graphical user interface...\\r\\nDifferent kinds of components exist: see below (logical component, physical component...).\",\n\t\t\t \"usage guideline\", \"none\",\n\t\t\t \"used in levels\", \"n/a (abstract)\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"InterfaceUse relationships that are stored/owned under this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) interfaceUse relationships that involve this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the Interfaces being used by this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Interface implementation relationships that are stored/owned under this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) list of InterfaceImplementation links that involve this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the Interfaces being implemented by this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisionedComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) list of allocation links made from this component to other components\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisioningComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) list of allocation links from other components, to this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatedComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the components being allocated from this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the components allocating this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the Interfaces being provided by this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the Interfaces being required by this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the PhysicalPaths that are stored/owned by this physical component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Physical links contained in / owned by this Physical component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalLinkCategories(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractActorEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"An Actor models a type of role played by an entity that interacts with the subject (e.g., by exchanging signals and data),\\r\\nbut which is external to the subject (i.e., in the sense that an instance of an actor is not a part of the instance of its corresponding subject). \\r\\n\\r\\nActors may represent roles played by human users, external hardware, or other subjects.\\r\\nNote that an actor does not necessarily represent a specific physical entity but merely a particular facet (i.e., \\'role\\') of some entity\\r\\nthat is relevant to the specification of its associated use cases. Thus, a single physical instance may play the role of\\r\\nseveral different actors and, conversely, a given actor may be played by multiple different instances.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"usage guideline\", \"none\",\n\t\t\t \"used in levels\", \"n/a (abstract)\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"In SysML, a Part is an owned property of a Block\\r\\n[source: SysML glossary for SysML v1.0]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(computed) the provided interfaces associated to the classifier that this part represents\\r\\n[source: Capella study]\\r\\n\\r\\nThe interfaces that the component exposes to its environment.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(computed) the required interfaces associated to the classifier that this part represents\\r\\n[source: Capella study]\\r\\n\\r\\nThe interfaces that the component requires from other components in its environment in order to be able to offer\\r\\nits full set of provided functionality\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_OwnedDeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Deployment relationships that are stored/owned under this part\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (architectureAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Mediator class between BlockArchitecture elements, to represent an allocation link\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatedArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocated architecture\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the targets of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatingArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocating architecture\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the sources of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Mediator class between Component elements, representing the allocation link between these elements\\r\\n[source: Capella light-light study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatedComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocated component\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the targets of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatingComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocating component\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the targets of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"An entity, with discrete structure within the system, that interacts with other Components of the system, thereby contributing at its lowest level to the system properties and characteristics.\\r\\n[source: Sys EM , ISO/IEC CD 15288]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a (abstract)\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_DataComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"specifies whether or not this is a data component\\r\\n[source: Capella light-light study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_DataType(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"data type(s) associated to this component\\r\\n[source: Capella light-light study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_ParticipationsInCapabilityRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) the involvement relationships between this SystemComponent and CapabilityRealization elements\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfacePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"A container for Interface elements\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the interfaces that are owned by this Package\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfacePkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the packages of interfaces that are owned by this Package\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"An interface is a kind of classifier that represents a declaration of a set of coherent public features and obligations. An\\r\\ninterface specifies a contract; any instance of a classifier that realizes the interface must fulfill that contract.\\r\\n[source: UML superstructure v2.2]\\r\\n\\r\\nInterfaces are defined by functional and physical characteristics that exist at a common boundary with co-functioning items and allow systems, equipment, software, and system data to be compatible.\\r\\n[source: not precised]\\r\\n\\r\\nThat design feature of one piece of equipment that affects a design feature of another piece of equipment. \\r\\nAn interface can extend beyond the physical boundary between two items. (For example, the weight and center of gravity of one item can affect the interfacing item; however, the center of gravity is rarely located at the physical boundary.\\r\\nAn electrical interface generally extends to the first isolating element rather than terminating at a series of connector pins.)\",\n\t\t\t \"usage guideline\", \"In Capella, Interfaces are created to declare the nature of interactions between the System and external actors.\",\n\t\t\t \"used in levels\", \"system/logical/physical\",\n\t\t\t \"usage examples\", \"../img/usage_examples/external_interface_example.png\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_Mechanism(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"_todo_reviewed : cannot find the meaning of this attribute ? How to fill it ?\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"type\", \"_todo_reviewed : to be precised\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_Structural(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"type\", \"n/a\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ImplementorComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"references to the components that implement this interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_UserComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"references to the components that use this interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"references to the InterfaceImplementation elements, that act as mediators between this interface and its implementers\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"references to the InterfaceUse elements, that act as mediator classes between this interface and its users\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvisioningInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References to the InterfaceAllocation elements, acting as mediator classes between the interface and the elements to which/from which it is allocated\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References to the Interfaces that declare an allocation link to this Interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References to the components that declare an allocation link to this Interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ExchangeItems(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References to all exchange items allocated by the interface\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_OwnedExchangeItemAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References to allocations of exchange items\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceImplementationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Mediator class between an Interface and its implementor (typically a Component)\\r\\n[source: Capella study]\\r\\n\\r\\nAn InterfaceRealization is a specialized Realization relationship between a Classifier and an Interface. This relationship\\r\\nsignifies that the realizing classifier conforms to the contract specified by the Interface.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_InterfaceImplementor(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References the Component that owns this Interface implementation.\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_ImplementedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References the Interface specifying the conformance contract\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceUseEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Mediator class between an interface and its user (typically a Component)\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_InterfaceUser(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Component that uses the interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_UsedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Supplied interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (providedInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(not used)\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"n/a\",\n\t\t\t \"comment/notes\", \"not used/implemented as of Capella 1.0.3\",\n\t\t\t \"reference documentation\", \"n/a\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getProvidedInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References the Interface specifying the conformance contract\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (requiredInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(not used)\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"n/a\",\n\t\t\t \"comment/notes\", \"not used/implemented as of Capella\",\n\t\t\t \"reference documentation\", \"n/a\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getRequiredInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"The element(s) independent of the client element(s), in the same respect and the same dependency relationship\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Mediator class between an Interface and an element that allocates to/from it.\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocated interface\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the targets of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatingInterfaceAllocator(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocating interface\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the sources of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocatorEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Base class for elements that need to be involved in an allocation link to/from an Interface\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_OwnedInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the interface allocation links that are stored/owned under this interface allocator\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_ProvisionedInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) the interface allocation links involving this interface allocator\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_AllocatedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the Interfaces being allocated by this interface allocator\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (actorCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"support class to implement the link between an Actor and a CapabilityRealization\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"system, logical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Support class for implementation of the link between a CapabilityRealization and a SystemComponent\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"logical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentContextEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Base class for specific SystemContext, LogicalContext, PhysicalContext\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a (abstract)\",\n\t\t\t \"used in levels\", \"system,logical,physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (exchangeItemAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Allocation link between exchange items and interface that support them\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_SendProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"describes the default protocol used by the sender of the exchange item. It could be overrided by the protocol used by the given communication exchanger\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"type\", \"refer to CommunicationLinkProtocol definition\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_ReceiveProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"describes the default protocol used by the receiver of the exchange item. It could be overrided by the protocol used by the given communication exchanger\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"type\", \"refer to CommunicationLinkProtocol definition\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatedItem(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the exchange item that is being allocated by the interface\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatingInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the interface that allocated the given exchange item\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deployableElementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"characterizes a physical model element that is intended to be deployed on a given (physical) target\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeployableElement_DeployingLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the list of deployment specifications associated to this element, e.g. associations between this element and a physical location to which it is to be deployed\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deploymentTargetEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the physical target that will host a deployable element\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeploymentTarget_DeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the list of deployment specifications involving this physical target as the destination of the deployment\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractDeploymentLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the link between a physical element, and the physical target onto which it is deployed\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_DeployedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the physical element involved in this relationship, that is to be deployed on the target\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_Location(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the host where the source element involved in this relationship will be deployed\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPathInvolvedElementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"An involved element is a capella element that is, at least, involved in an involvement relationship with the role of the element that is involved\\r\\n[source:Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalArtifactEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"A physical artifact is any physical element in the physical architecture (component, port, link,...).\\r\\nThese artifacts will be part allocated to configuration items in the EPBS.\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalLinkEndEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"End of a physical link\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalLinkEnd_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Physical links that come in or out of this physical port\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalPathLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the base element for building a physical path : a link between two physical interfaces\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the representation of the physical medium connecting two physical interfaces\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_LinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the source(s) and destination(s) of this physical link\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedComponentExchangeFunctionalExchangeAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the allocations between component exchanges and functional exchanges, that are owned by this physical link\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedPhysicalLinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the physical link endpoints involved in this link\\r\\n\\r\\nA connector consists of at least two connector ends, each representing the participation of instances of the classifiers\\r\\ntyping the connectable elements attached to this end. The set of connector ends is ordered.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedPhysicalLinkRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizingPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEndEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"an endpoint of a physical link\\r\\n\\r\\nA connector end is an endpoint of a connector, which attaches the connector to a connectable element. Each connector\\r\\nend is part of one connector.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Port(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the port to which this communication endpoint is attached\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Part(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the part to which this connect endpoint is attached\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"n/a\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the specification of a given path of informations flowing across physical links and interfaces.\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"this is the equivalent for the physical architecture, of a functional chain defined at system level\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the list of steps of this physical path\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_OwnedPhysicalPathRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizedPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizingPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"n/a\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPortEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"A port on a physical component\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_OwnedPhysicalPortRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizedPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizingPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPortRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"n/a\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\n\t}",
"@GetMapping ( \"/patient/bloodSugar/viewJournal\" )\r\n @PreAuthorize ( \"hasRole('ROLE_PATIENT')\" )\r\n public String viewBloodSugarJournal () {\r\n return \"/patient/bloodSugar/viewJournal\";\r\n }",
"public interface DemoService {\n @RolesAllowed(\"ROLE_ADMIN\")\n List<UserEntity> findByUsername(String name);\n}",
"public void setAdmin(boolean admin) {\n this.admin = admin;\n }",
"protected void enableSecurityAdvisor() {\r\n\tif (osylSecurityService.getCurrentUserRole().equals(\r\n\t\tOsylSecurityService.SECURITY_ROLE_COURSE_INSTRUCTOR)\r\n\t\t|| osylSecurityService.getCurrentUserRole().equals(\r\n\t\t\tOsylSecurityService.SECURITY_ROLE_PROJECT_MAINTAIN)) {\r\n\t securityService.pushAdvisor(new SecurityAdvisor() {\r\n\t\tpublic SecurityAdvice isAllowed(String userId, String function,\r\n\t\t\tString reference) {\r\n\t\t return SecurityAdvice.ALLOWED;\r\n\t\t}\r\n\t });\r\n\t}\r\n }",
"@Test\n public void testAddDemotivatorPageAccessibleIFAuthorised(){\n \tFixtures.deleteAllModels();\n \tFixtures.loadModels(\"data/user.yml\");\n \t\n\t\t//Authenticating\n \tauthenticate();\n\n //Going to add Demotivator page\n \tResponse response = GET(\"/add\");\n \n assertNotNull(response);\n assertStatus(200, response);\n }",
"IParser setOmitResourceId(boolean theOmitResourceId);",
"public void setRole(String role) {\r\n this.role = role;\r\n }"
] |
[
"0.5740192",
"0.5514767",
"0.5488929",
"0.5477222",
"0.5457584",
"0.52873987",
"0.5242157",
"0.515689",
"0.5145018",
"0.5141049",
"0.5139951",
"0.513975",
"0.51369494",
"0.51223546",
"0.509969",
"0.5092693",
"0.5073344",
"0.50574476",
"0.50233734",
"0.5023185",
"0.5014221",
"0.49836838",
"0.49831566",
"0.49412817",
"0.49339235",
"0.49306735",
"0.48959038",
"0.4887214",
"0.48813516",
"0.48740417",
"0.48660347",
"0.48542798",
"0.48325026",
"0.4831487",
"0.48270017",
"0.48232803",
"0.4823057",
"0.48208016",
"0.4819575",
"0.48181644",
"0.4801696",
"0.4793109",
"0.47717503",
"0.47694904",
"0.4747819",
"0.47423083",
"0.4740931",
"0.47390062",
"0.4736419",
"0.47337776",
"0.4729105",
"0.4726937",
"0.47199547",
"0.4715246",
"0.4701173",
"0.46951804",
"0.46911067",
"0.46908575",
"0.46889475",
"0.4683267",
"0.46763587",
"0.4673597",
"0.4663503",
"0.46602577",
"0.46567747",
"0.4653852",
"0.46527135",
"0.46518373",
"0.4644718",
"0.46422216",
"0.4639029",
"0.46352053",
"0.463033",
"0.46279627",
"0.46270314",
"0.46269384",
"0.46236783",
"0.46225965",
"0.46135837",
"0.4612121",
"0.4610226",
"0.46056762",
"0.45999953",
"0.45982322",
"0.45960116",
"0.45909607",
"0.45907182",
"0.45879522",
"0.45876864",
"0.45820123",
"0.4576102",
"0.45733342",
"0.4572952",
"0.4571867",
"0.45712093",
"0.45705998",
"0.4568731",
"0.45636597",
"0.45609066",
"0.4560834",
"0.45588726"
] |
0.0
|
-1
|
Delete all data from h2 so each test can insert what it needs
|
@Before
public void init(){
List<Soda> sodaList = inventoryService.findAll();
for(Soda s: sodaList){
s.setCount(0);
inventoryService.save(s);
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@After\n public void tearDown() throws Exception {\n File dbFile = new File(\"./data/clinicmate.h2.db\");\n dbFile.delete();\n dbFile = new File(\"./data/clinicmate.trace.db\");\n dbFile.delete();\n }",
"@After\n public void tearDown() {\n try(Connection con = DB.sql2o.open()) {\n String deleteClientsQuery = \"DELETE FROM clients *;\";\n String deleteStylistsQuery = \"DELETE FROM stylists *;\";\n con.createQuery(deleteClientsQuery).executeUpdate();\n con.createQuery(deleteStylistsQuery).executeUpdate();\n }\n }",
"@AfterEach\n public void tearDown() {\n try {\n Statement stmtSelect = conn.createStatement();\n String sql1 = (\"DELETE FROM tirocinio WHERE CODTIROCINIO='999';\");\n stmtSelect.executeUpdate(sql1);\n String sql2 = (\"DELETE FROM tirocinante WHERE matricola='4859';\");\n stmtSelect.executeUpdate(sql2);\n String sql3 = (\"DELETE FROM enteconvenzionato WHERE partitaIva='11111111111';\");\n stmtSelect.executeUpdate(sql3);\n String sql4 = (\"DELETE FROM User WHERE email='[email protected]';\");\n stmtSelect.executeUpdate(sql4);\n String sql5 = (\"DELETE FROM User WHERE email='[email protected]';\");\n stmtSelect.executeUpdate(sql5);\n conn.commit();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"@After\n public void deleteAfterwards() {\n DBhandlerTest db = null;\n try {\n db = new DBhandlerTest();\n } catch (Exception e) {\n e.printStackTrace();\n }\n db.deleteTable();\n }",
"@Test\n public void shouldDeleteAllDataInDatabase(){\n }",
"@After\n\tpublic void tearDown() {\n\t\theroRepository.delete(HERO_ONE_KEY);\n\t\theroRepository.delete(HERO_TWO_KEY);\n\t\theroRepository.delete(HERO_THREE_KEY);\n\t\theroRepository.delete(HERO_FOUR_KEY);\n\t\theroRepository.delete(\"hero::counter\");\n\t}",
"@Override\n public void clearDB() throws Exception {\n hBaseOperation.deleteTable(this.dataTableNameString);\n hBaseOperation.createTable(this.dataTableNameString, this.columnFamily, numRegion);\n }",
"@AfterEach\n\tpublic void tearThis() throws SQLException {\n\t\tbookDaoImpl.delete(testBook);\n\t\tbranchDaoImpl.delete(testBranch);\n\t}",
"private static void deleteTest() throws SailException{\n\n\t\tString dir2 = \"repo-temp\";\n\t\tSail sail2 = new NativeStore(new File(dir2));\n\t\tsail2 = new IndexingSail(sail2, IndexManager.getInstance());\n\t\t\n//\t\tsail.initialize();\n\t\tsail2.initialize();\n\t\t\n//\t\tValueFactory factory = sail2.getValueFactory();\n//\t\tCloseableIteration<? extends Statement, SailException> statements = sail2\n//\t\t\t\t.getConnection().getStatements(null, null, null, false);\n\n\t\tSailConnection connection = sail2.getConnection();\n\n\t\tint cachesize = 1000;\n\t\tint cached = 0;\n\t\tlong count = 0;\n\t\tconnection.removeStatements(null, null, null, null);\n//\t\tconnection.commit();\n\t}",
"@Test\n public void teardown() throws SQLException {\n PreparedStatement ps = con.prepareStatement(\"delete from airline.user where username = \\\"username\\\";\");\n ps.executeUpdate();\n this.con.close();\n this.con = null;\n this.userDAO = null;\n this.testUser = null;\n }",
"@After\n public void tearDown() {\n jdbcTemplate.execute(\"DELETE FROM assessment_rubric;\" +\n \"DELETE FROM user_group;\" +\n \"DELETE FROM learning_process;\" +\n \"DELETE FROM learning_supervisor;\" +\n \"DELETE FROM learning_process_status;\" +\n \"DELETE FROM rubric_type;\" +\n \"DELETE FROM learning_student;\");\n }",
"@Override\r\n\tprotected void tearDown() throws Exception {\n\r\n\t\tdao.insert(\"delete from system.tables where table_id='0000001' and table_name='emp0'\");\r\n\t\tdao.insert(\"delete from system.tables where table_id='0000002' and table_name='dept0'\");\r\n\t\tdao.insert(\"delete from system.tables where table_id='0000003' and table_name='emp'\");\r\n\t\tdao.insert(\"delete from system.tables where table_id='0000004' and table_name='dept'\");\r\n\t\tdao.insert(\"delete from system.databases where database_id='00001' and database_name='database1'\");\r\n\t\tdao.insert(\"delete from system.databases where database_id='00002' and database_name='database2'\");\r\n\t\tdao.insert(\"delete from system.users where user_name='scott'\");\r\n\r\n\t\tdao.insert(\"commit\");\r\n//\t\tdao.disconnect();\r\n\t}",
"@After\r\n public void tearDown() {\r\n try {\r\n Connection conn=DriverManager.getConnection(\"jdbc:oracle:thin:@//localhost:1521/XE\",\"hr\",\"hr\");\r\n Statement stmt = conn.createStatement();\r\n stmt.execute(\"DELETE FROM Packages WHERE Pkg_Order_Id=-1\");\r\n stmt.execute(\"DELETE FROM Packages WHERE Pkg_Order_Id=-2\");\r\n } catch (Exception e) {System.out.println(e.getMessage());}\r\n }",
"private void clearData() {\n em.createQuery(\"delete from ViajeroEntity\").executeUpdate();\n }",
"private void deleteTestDataSet() {\n LOG.info(\"deleting test data set...\");\n try {\n Statement stmt = _conn.createStatement();\n stmt.executeUpdate(\"DELETE FROM tc8x_pks_person\");\n stmt.executeUpdate(\"DELETE FROM tc8x_pks_employee\");\n stmt.executeUpdate(\"DELETE FROM tc8x_pks_payroll\");\n stmt.executeUpdate(\"DELETE FROM tc8x_pks_address\");\n stmt.executeUpdate(\"DELETE FROM tc8x_pks_contract\");\n stmt.executeUpdate(\"DELETE FROM tc8x_pks_category\");\n stmt.executeUpdate(\"DELETE FROM tc8x_pks_project\");\n } catch (Exception e) {\n LOG.error(\"deleteTestDataSet: exception caught\", e);\n }\n }",
"@Override\n @After\n public void teardown() throws Exception {\n EveKitUserAccountProvider.getFactory()\n .runTransaction(() -> {\n EveKitUserAccountProvider.getFactory()\n .getEntityManager()\n .createQuery(\"DELETE FROM Opportunity \")\n .executeUpdate();\n });\n OrbitalProperties.setTimeGenerator(null);\n super.teardown();\n }",
"private boolean clearH2Database() {\n \tboolean result = false;\n\t\tCnfDao cnfDao = new CnfDao();\n\t\tcnfDao.setDbConnection(H2DatabaseAccess.getDbConnection());\n\n\t\ttry {\n\t\t\tresult = cnfDao.clearCnfTables();\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"ERROR, failed clear CNF tables in H2 database\");\n\t\t}\n\n\t\treturn result;\n\t}",
"@After\r\n public void tearDown(){\r\n \r\n Post post = entityManager.createNamedQuery(\"Post.fetchAllRecordsByUserId\", Post.class)\r\n .setParameter(\"value1\", 1l)\r\n .getSingleResult();\r\n \r\n assertNotNull(post);\r\n \r\n entityTransaction.begin();\r\n entityManager.remove(post);\r\n entityTransaction.commit();\r\n\r\n entityManager.close();\r\n }",
"@After\n public void clearup() {\n try {\n pm.close();\n DriverManager.getConnection(\"jdbc:derby:memory:test_db;drop=true\");\n } catch (SQLException se) {\n if (!se.getSQLState().equals(\"08006\")) {\n // SQLState 08006 indicates a success\n se.printStackTrace();\n }\n }\n }",
"@BeforeEach\n @AfterEach\n public void clearDatabase() {\n \taddressRepository.deleteAll();\n \tcartRepository.deleteAll();\n \tuserRepository.deleteAll();\n }",
"private void clearData() {\r\n em.createQuery(\"delete from MonitoriaEntity\").executeUpdate();\r\n }",
"@AfterEach\n\tvoid clearDatabase() {\n\t\t//Clear the table\n\t\taccountRepository.deleteAll();\n\t}",
"@Before\n public void setUp() {\n //clearDbData();//having some trouble\n }",
"@BeforeEach\n public void setUp() {\n EntityManager em = emf.createEntityManager();\n p1 = new Person(\"Kim\", \"Hansen\", \"123456789\");\n p2 = new Person(\"Pia\", \"Hansen\", \"111111111\");\n try {\n em.getTransaction().begin();\n em.createNamedQuery(\"Person.deleteAllRows\").executeUpdate();\n em.persist(p1);\n em.persist(p2);\n em.getTransaction().commit();\n } finally {\n em.close();\n }\n }",
"@After\n @Override\n public void tearDown() throws Exception {\n execute(\"alter table t1 set (\\\"blocks.read_only\\\" = false)\");\n execute(\"alter table t1 set (\\\"blocks.metadata\\\" = false)\");\n super.tearDown();\n }",
"@Before\n public void createAndFillTable() {\n try {\n DBhandler dBhandler = new DBhandler(h2DbConnection);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"@BeforeEach\n\tpublic void cleanDataBase()\n\t{\n\t\taddRepo.deleteAll()\n\t\t.as(StepVerifier::create) \n\t\t.verifyComplete();\n\t\t\n\t\tdomRepo.deleteAll()\n\t\t.as(StepVerifier::create) \n\t\t.verifyComplete();\n\t}",
"protected void tearDown() {\r\n instance = null;\r\n columnNames = null;\r\n }",
"@Override\n public void cleanUsersTable() {\n\n Session session = sessionFactory.openSession();\n Transaction tx = session.beginTransaction();\n session.createQuery(\"delete from User\").executeUpdate();\n tx.commit();\n System.out.println(\"HibCleaning users table\");\n session.close();\n\n }",
"public boolean removeH2() {\n\t\tboolean result = false;\n\n\t\tif (this.id > 0) {\n\n\t\t\ttry {\n\n\t\t\t\tmanager = Connection.connectToH2();\n\t\t\t\tmanager.getTransaction().begin();\n\n\t\t\t\tif (manager.createQuery(\"DELETE FROM Cancion WHERE id = \" + this.id).executeUpdate() == 1) {\n\t\t\t\t\tresult = true;\n\t\t\t\t}\n\n\t\t\t\tmanager.getTransaction().commit();\n\n\t\t\t} catch (Exception ex) {\n\t\t\t\tSystem.out.println(ex);\n\t\t\t}\n\t\t}\n\n\t\treturn result;\n\t}",
"public void setUp() {\n deleteAllRecords();\n }",
"@AfterEach\n public void tearDown() {\n objectStoreMetaDataService.findAll(ObjectStoreMetadata.class,\n (criteriaBuilder, objectStoreMetadataRoot) -> new Predicate[0],\n null, 0, 100).forEach(metadata -> {\n metadata.getDerivatives().forEach(derivativeService::delete);\n objectStoreMetaDataService.delete(metadata);\n });\n objectUploadService.delete(objectUpload);\n }",
"@org.junit.jupiter.api.Test\n void dropColision2() {\n String key = \"0\";\n String value =\"David\";\n String key2 = \"11\";\n String value2 =\"ferrero\";\n HashTable hashTable = new HashTable();\n hashTable.put(key,value);\n hashTable.put(key2,value2);\n hashTable.put(\"22\",\"hola\");\n hashTable.drop(\"11\");\n String esperado =\"bucket[0] = [0, David]\\n\" + \" -> [22, hola]\\n\";\n Assertions.assertEquals(esperado,hashTable.toString());\n int count = 2;\n Assertions.assertEquals(count,hashTable.count());\n }",
"@org.junit.jupiter.api.Test\n void dropColision3() {\n String key = \"0\";\n String value =\"David\";\n String key2 = \"11\";\n String value2 =\"ferrero\";\n HashTable hashTable = new HashTable();\n hashTable.put(key,value);\n hashTable.put(key2,value2);\n hashTable.put(\"22\",\"hola\");\n hashTable.drop(\"22\");\n String esperado =\"bucket[0] = [0, David]\\n\" + \" -> [11, ferrero]\\n\";\n Assertions.assertEquals(esperado,hashTable.toString());\n int count = 2;\n Assertions.assertEquals(count,hashTable.count());\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 }",
"@After\n public void tearDown() {\n userRepository.deleteAll();\n }",
"@org.junit.jupiter.api.Test\n void dropNormal() {\n String key = \"12345\";\n String value =\"David\";\n String key2 = \"21\";\n String value2 =\"ferrero\";\n HashTable hashTable = new HashTable();\n hashTable.put(key,value);\n hashTable.put(key2,value2);\n\n hashTable.drop(\"12345\");\n\n String esperado = \"bucket[15] = [21, ferrero]\\n\";\n Assertions.assertEquals(esperado,hashTable.toString());\n int count = 1;\n Assertions.assertEquals(count,hashTable.count());\n }",
"@BeforeClass\n public static void clean() {\n DatabaseTest.clean();\n }",
"@AfterClass\n\tpublic static void cleanIndex() {\n\t\tEntityTest et = new EntityTest(id, \"EntityTest\");\n\t\tRedisQuery.remove(et, id);\n\t}",
"H2 createH2();",
"@Override\n public void clearTable() {\n final var query = \"TRUNCATE TABLE piano_project.pianos\";\n try(final var statement = connection.createStatement()) {\n statement.executeUpdate(query);\n } catch (SQLException throwables) {\n throwables.printStackTrace();\n }\n }",
"@After\n public void cleanDatabaseTablesAfterTest() {\n databaseCleaner.clean();\n }",
"@Test\n public void testDeleteForSureClearsAllTableRowsFromMeta() throws IOException, InterruptedException {\n final TableName tableName = TableName.valueOf(name.getMethodName());\n final Admin admin = TestEnableTable.TEST_UTIL.getAdmin();\n final HTableDescriptor desc = new HTableDescriptor(tableName);\n desc.addFamily(new HColumnDescriptor(TestEnableTable.FAMILYNAME));\n try {\n TestEnableTable.createTable(TestEnableTable.TEST_UTIL, desc, HBaseTestingUtility.KEYS_FOR_HBA_CREATE_TABLE);\n } catch (Exception e) {\n e.printStackTrace();\n Assert.fail((\"Got an exception while creating \" + tableName));\n }\n // Now I have a nice table, mangle it by removing the HConstants.REGIONINFO_QUALIFIER_STR\n // content from a few of the rows.\n try (Table metaTable = TestEnableTable.TEST_UTIL.getConnection().getTable(META_TABLE_NAME)) {\n try (ResultScanner scanner = metaTable.getScanner(MetaTableAccessor.getScanForTableName(TestEnableTable.TEST_UTIL.getConnection(), tableName))) {\n for (Result result : scanner) {\n // Just delete one row.\n Delete d = new Delete(result.getRow());\n d.addColumn(CATALOG_FAMILY, REGIONINFO_QUALIFIER);\n TestEnableTable.LOG.info((\"Mangled: \" + d));\n metaTable.delete(d);\n break;\n }\n }\n admin.disableTable(tableName);\n TestEnableTable.TEST_UTIL.waitTableDisabled(tableName.getName());\n // Rely on the coprocessor based latch to make the operation synchronous.\n try {\n TestEnableTable.deleteTable(TestEnableTable.TEST_UTIL, tableName);\n } catch (Exception e) {\n e.printStackTrace();\n Assert.fail((\"Got an exception while deleting \" + tableName));\n }\n int rowCount = 0;\n try (ResultScanner scanner = metaTable.getScanner(MetaTableAccessor.getScanForTableName(TestEnableTable.TEST_UTIL.getConnection(), tableName))) {\n for (Result result : scanner) {\n TestEnableTable.LOG.info((\"Found when none expected: \" + result));\n rowCount++;\n }\n }\n Assert.assertEquals(0, rowCount);\n }\n }",
"@org.junit.jupiter.api.Test\n void drop1elementoColisionNoExiste() {\n String key = \"0\";\n String value =\"David\";\n HashTable hashTable = new HashTable();\n hashTable.put(key,value);\n hashTable.drop(\"11\");\n String esperado = \"bucket[0] = [0, David]\\n\";\n Assertions.assertEquals(esperado,hashTable.toString());\n int count = 1;\n Assertions.assertEquals(count,hashTable.count());\n }",
"@After\n public void tearDown() {\n addressDelete.setWhere(\"id = \"+addressModel1.getId());\n addressDelete.execute();\n\n addressDelete.setWhere(\"id = \"+addressModel2.getId());\n addressDelete.execute();\n\n addressDelete.setWhere(\"id = \"+addressModel3.getId());\n addressDelete.execute();\n\n\n personDelete.setWhere(\"id = \"+personModel1.getId());\n personDelete.execute();\n\n personDelete.setWhere(\"id = \"+personModel2.getId());\n personDelete.execute();\n\n personDelete.setWhere(\"id = \"+personModel3.getId());\n personDelete.execute();\n\n cityDelete.setWhere(\"id = \"+cityModel1.getId());\n cityDelete.execute();\n\n cityDelete.setWhere(\"id = \"+cityModel2.getId());\n cityDelete.execute();\n }",
"@org.junit.jupiter.api.Test\n void dropColision1() {\n String key = \"0\";\n String value =\"David\";\n String key2 = \"11\";\n String value2 =\"ferrero\";\n HashTable hashTable = new HashTable();\n hashTable.put(key,value);\n hashTable.put(key2,value2);\n hashTable.put(\"22\",\"hola\");\n hashTable.drop(\"0\");\n String esperado =\"bucket[0] = [11, ferrero]\\n\" + \" -> [22, hola]\\n\";\n Assertions.assertEquals(esperado,hashTable.toString());\n int count = 2;\n Assertions.assertEquals(count,hashTable.count());\n }",
"@After\n public void tearDown() {\n\t\trepository.delete(dummyUser);\n System.out.println(\"@After - tearDown\");\n }",
"@After\n\tpublic void testOut() {\n\t\tList<VehicleType> all = vehicleTypeService.getAll();\n\t\tfor (VehicleType vehicleType : all) {\n\t\t\tvehicleTypeService.delete(vehicleType.getId());\n\t\t}\n\t}",
"@Test\n @Prepare(autoImport = true, autoClearExistsData = true)\n public void testdeleteById() throws Exception {\n\n int[] ids = { 111123456, 111123457, 111123458, 111123459 };\n for (int id : ids) {\n inventoryOutDao.deleteById(id);\n }\n for (int id : ids) {\n assertNull(inventoryOutDao.getById(id));\n }\n\n // List<InventoryOutDO> list = inventoryOutDao.list(new\n // InventoryOutDO());\n // assertResultListSorted(list, \"id\");\n }",
"@org.junit.jupiter.api.Test\n void drop2ColisionesSeparados() {\n String key = \"0\";\n String value =\"David\";\n String key2 = \"11\";\n String value2 =\"ferrero\";\n HashTable hashTable = new HashTable();\n hashTable.put(key,value);\n hashTable.put(key2,value2);\n hashTable.put(\"22\",\"hola\");\n\n hashTable.drop(\"0\");\n hashTable.drop(\"22\");\n\n String esperado =\"bucket[0] = [11, ferrero]\\n\";\n Assertions.assertEquals(esperado,hashTable.toString());\n\n }",
"@Test\r\n public void saveUserShouldCreateNewRowInDB(){\n userDaoJDBCTemplate.delete(38);\r\n userDaoJDBCTemplate.delete(40);\r\n userDaoJDBCTemplate.deleteByName(\"admin3\");\r\n userDaoJDBCTemplate.deleteByName(\"admin4\");\r\n }",
"public void destroy() {\n //Write hit count to DB!!\n }",
"@BeforeEach\n public void setUp() {\n EntityManager em = emf.createEntityManager();\n try {\n em.getTransaction().begin();\n em.createNamedQuery(\"Movie.deleteAllRows\").executeUpdate();\n em.persist(m1);\n em.persist(m2);\n em.persist(m3);\n\n em.getTransaction().commit();\n } finally {\n em.close();\n }\n }",
"@After\n\tpublic void tearDown() throws Exception {\n\t\tfor (int i = 0; i < feedbacks.length; ++i) {\n\t\t\tfeedbacks[i] = null;\n\t\t}\n\t\tfeedbacks = null;\n\t\texecuteSQL(connection, \"test_files/stress/clear.sql\");\n\t\tconnection.close();\n\t\tconnection = null;\n\t}",
"@Test\n public void cleanWithRecycleBin() throws Exception {\n assertEquals(0, recycleBinCount());\n\n // in SYSTEM tablespace the recycle bin is deactivated\n jdbcTemplate.update(\"CREATE TABLE test_user (name VARCHAR(25) NOT NULL, PRIMARY KEY(name)) tablespace USERS\");\n jdbcTemplate.update(\"DROP TABLE test_user\");\n assertTrue(recycleBinCount() > 0);\n\n flyway.clean();\n assertEquals(0, recycleBinCount());\n }",
"@org.junit.jupiter.api.Test\n void drop2ColisionesJuntos() {\n String key = \"0\";\n String value =\"David\";\n String key2 = \"11\";\n String value2 =\"ferrero\";\n HashTable hashTable = new HashTable();\n hashTable.put(key,value);\n hashTable.put(key2,value2);\n hashTable.put(\"22\",\"hola\");\n\n hashTable.drop(\"0\");\n hashTable.drop(\"11\");\n\n String esperado =\"bucket[0] = [22, hola]\\n\";\n Assertions.assertEquals(esperado,hashTable.toString());\n\n }",
"@Override\n public void run() {\n\n String filename = \"PurgeTable\";\n\n PreparedStatement stmt1 = null;\n try {\n stmt1 = conn.prepareStatement(\"delete from \" + filename);\n stmt1.executeUpdate();\n System.out.println(\"Deletion successful\");\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n }",
"@BeforeEach\n public void setUp() {\n EntityManager em = emf.createEntityManager();\n try {\n em.getTransaction().begin();\n em.createNamedQuery(\"Cars.deleteAllCars\").executeUpdate();\n em.persist(c1);\n em.persist(c2); \n em.getTransaction().commit();\n } finally {\n em.close();\n }\n }",
"@BeforeEach\n public void setUp() {\n EntityManager em = emf.createEntityManager();\n\n try {\n em.getTransaction().begin();\n em.createQuery(\"DELETE FROM Book\").executeUpdate();\n em.createNamedQuery(\"RenameMe.deleteAllRows\").executeUpdate();\n em.persist(b1 = new Book(\"12312\", \"harry potter\", \"Gwenyth paltrow\", \"egmont\", \"1999\"));\n em.persist(b2 = new Book(\"8347\", \"harry potter2\", \"Gwenyth paltrow\", \"egmont\", \"1998\"));\n em.persist(b3 = new Book(\"1231\", \"harry potter3\", \"Gwenyth paltrow\", \"egmont\", \"1997\"));\n\n em.getTransaction().commit();\n } finally {\n em.close();\n }\n }",
"@Override\r\n\tpublic void clearDatabase() {\n\t\t\r\n\t}",
"public void delete() {\n \t\t try(Connection con = DB.sql2o.open()) {\n \t\t\t String sql = \"DELETE FROM sightings where id=:id\";\n\t\t\t con.createQuery(sql)\n\t\t\t.addParameter(\"id\", this.id)\n\t\t\t.executeUpdate();\n\n \t\t }\n \t }",
"@Test\n public void createHighScoreTableTest() {\n assertTrue(database.createHighScoreTable(testTable));\n database.clearTable(testTable);\n }",
"@After\n public void tearDown() throws Exception {\n if (!persistentDataStore) {\n datastore.deleteByQuery(datastore.newQuery());\n datastore.flush();\n datastore.close();\n }\n }",
"@After\n public void cleanup() {\n Ebean.deleteAll(userQuery.findList());\n Ebean.deleteAll(userOptionalQuery.findList());\n }",
"public static synchronized void cleanup() {\n if (defaultDataSourceInitialized) {\n // try to deregister bundled H2 driver\n try {\n final Enumeration<Driver> drivers = DriverManager.getDrivers();\n while (drivers.hasMoreElements()) {\n final Driver driver = drivers.nextElement();\n if (\"org.h2.Driver\".equals(driver.getClass().getCanonicalName())) {\n // deregister our bundled H2 driver\n LOG.info(\"Uninstalling bundled H2 driver\");\n DriverManager.deregisterDriver(driver);\n }\n }\n } catch (Exception e) {\n LOG.warn(\"Failed to deregister H2 driver\", e);\n }\n }\n \n dataSourcesByName.clear();\n for (int i = 0; i < dataSources.length; i++) {\n dataSources[i] = null;\n }\n for (int i = 0; i < dataSourcesNoTX.length; i++) {\n dataSourcesNoTX[i] = null;\n }\n globalDataSource = null;\n testDataSource = null;\n testDataSourceNoTX = null;\n }",
"@Override\n\tpublic void delete() {\n\t\tSystem.out.println(\"Mysql DB 서버에 접속해서 삭제를 하다.\");\n\t}",
"@Override\n public void setUp() {\n deleteTheDatabase();\n }",
"@Test\n public void testDeleteAllUserData() {\n storage().deleteAllUserData();\n createSomeUserData();\n Assertions.assertEquals(8, countStorageEntities());\n // ^ TODO Change to 9 after https://github.com/Apicurio/apicurio-registry/issues/1721\n // Delete all\n storage().deleteAllUserData();\n Assertions.assertEquals(0, countStorageEntities());\n }",
"@Test\n public void testDelete() throws Exception {\n System.out.println(\"delete\");\n Connection con = ConnexionMySQL.newConnexion();\n int size = Inscription.size(con);\n Timestamp timestamp = stringToTimestamp(\"2020/01/17 08:40:00\");\n Inscription result = Inscription.create(con, \"[email protected]\", timestamp);\n assertEquals(size + 1, Inscription.size(con));\n result.delete(con);\n assertEquals(size, Inscription.size(con));\n }",
"protected void tearDown() throws Exception {\n TestHelper.executeDBScript(TestHelper.SCRIPT_CLEAR);\n TestHelper.closeAllConnections();\n TestHelper.clearAllConfigurations();\n\n super.tearDown();\n }",
"@Test\n @JUnitTemporaryDatabase // Relies on specific IDs so we need a fresh database\n public void testDelete() throws Exception {\n createAndFlushServiceTypes();\n createAndFlushCategories();\n \n //Initialize the database\n ModelImporter mi = m_importer;\n String specFile = \"/tec_dump.xml.smalltest\";\n mi.importModelFromResource(new ClassPathResource(specFile));\n \n assertEquals(10, mi.getNodeDao().countAll());\n }",
"@After\n public void tearDown() throws Exception {\n databaseTester.onTearDown();\n }",
"@After\n public void after() throws IOException {\n spark.sql(String.format(\"DROP TABLE IF EXISTS %s\", baseTableName));\n }",
"@AfterEach\n public void tearDown() {\n if (topoPath != null) {\n try {\n Utils.forceDelete(topoPath.toString());\n } catch (IOException e) {\n // ignore...\n }\n }\n }",
"@After\r\n\tpublic void clean() {\r\n\t\tlistAllGrades.put(\"FinalGrade\", 9f);\r\n\t\tlistScoreMetricStudent.put(\"comment_lines_density\", 50f);\r\n\t\tlistScoreMetricStudent.put(\"complexity\", 13f);\r\n\t\tlistScoreMetricStudent.put(\"test_success_density\", 50f);\r\n\t\tlistScoreMetricStudent.put(\"tests\", 4f);\r\n\t\tlistScoreMetricStudent.put(\"test_success_density_teacher\", 0.75f);\r\n\t\tmapQuality.put(\"TestOfTeacher\", new ModelValue(50f));\r\n\t\tmapQuality.put(\"TestOfStudent\", new ModelValue(4f, 1f));\r\n\t\tmapQuality.put(\"Comments\", new ModelValue(25f, 1.5f));\r\n\t\tmapQuality.put(\"Complexity\", new ModelValue(20f, 1f));\r\n\t\tlistAllGrades.put(\"Comments\", 1f);\r\n\t\tlistLostPoints.put(\"Comments\", 1.5f);\r\n\t\ttry {\r\n\t\t\tSonarDataBase.getInstance().deleteTestAndScoreTeacher(99);\r\n\t\t} catch (ClassNotFoundException | SQLException | SonarqubeDataBaseException | 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}",
"public void clearDatabase(){\n\t\tem.createNativeQuery(\"DELETE FROM CAMINHO\").executeUpdate();\r\n\t\tem.createNativeQuery(\"DELETE FROM MAPA\").executeUpdate();\r\n\t\t\r\n\t\tlog.info(\"Limpou a base de dados\");\r\n\t\r\n\t}",
"@Override\r\n public void tearDown() throws Exception {\r\n super.tearDown();\r\n clearSqlLogHandler();\r\n }",
"public void deleteEntity2(Entity2 entity2) throws DaoException;",
"@Test\n public void testDeleteEntities() throws Exception {\n init();\n final AtlasEntity dbEntity = TestUtilsV2.createDBEntity();\n EntityMutationResponse dbCreationResponse = entityStore.createOrUpdate(new AtlasEntityStream(dbEntity), false);\n\n final AtlasEntity tableEntity = TestUtilsV2.createTableEntity(dbEntity);\n AtlasEntity.AtlasEntitiesWithExtInfo entitiesInfo = new AtlasEntity.AtlasEntitiesWithExtInfo(tableEntity);\n\n final AtlasEntity columnEntity1 = TestUtilsV2.createColumnEntity(tableEntity);\n entitiesInfo.addReferredEntity(columnEntity1);\n final AtlasEntity columnEntity2 = TestUtilsV2.createColumnEntity(tableEntity);\n entitiesInfo.addReferredEntity(columnEntity2);\n final AtlasEntity columnEntity3 = TestUtilsV2.createColumnEntity(tableEntity);\n entitiesInfo.addReferredEntity(columnEntity3);\n\n tableEntity.setAttribute(COLUMNS_ATTR_NAME, Arrays.asList(AtlasTypeUtil.getAtlasObjectId(columnEntity1),\n AtlasTypeUtil.getAtlasObjectId(columnEntity2),\n AtlasTypeUtil.getAtlasObjectId(columnEntity3)));\n\n init();\n\n final EntityMutationResponse tblCreationResponse = entityStore.createOrUpdate(new AtlasEntityStream(entitiesInfo), false);\n\n final AtlasEntityHeader column1Created = tblCreationResponse.getCreatedEntityByTypeNameAndAttribute(COLUMN_TYPE, NAME, (String) columnEntity1.getAttribute(NAME));\n final AtlasEntityHeader column2Created = tblCreationResponse.getCreatedEntityByTypeNameAndAttribute(COLUMN_TYPE, NAME, (String) columnEntity2.getAttribute(NAME));\n final AtlasEntityHeader column3Created = tblCreationResponse.getCreatedEntityByTypeNameAndAttribute(COLUMN_TYPE, NAME, (String) columnEntity3.getAttribute(NAME));\n\n // Retrieve the table entities from the Repository, to get their guids and the composite column guids.\n ITypedReferenceableInstance tableInstance = metadataService.getEntityDefinitionReference(TestUtils.TABLE_TYPE, NAME, (String) tableEntity.getAttribute(NAME));\n List<IReferenceableInstance> columns = (List<IReferenceableInstance>) tableInstance.get(COLUMNS_ATTR_NAME);\n\n //Delete column\n String colId = columns.get(0).getId()._getId();\n String tableId = tableInstance.getId()._getId();\n\n init();\n\n EntityMutationResponse deletionResponse = entityStore.deleteById(colId);\n assertEquals(deletionResponse.getDeletedEntities().size(), 1);\n assertEquals(deletionResponse.getDeletedEntities().get(0).getGuid(), colId);\n assertEquals(deletionResponse.getUpdatedEntities().size(), 1);\n assertEquals(deletionResponse.getUpdatedEntities().get(0).getGuid(), tableId);\n assertEntityDeleted(colId);\n\n final AtlasEntity.AtlasEntityWithExtInfo tableEntityCreated = entityStore.getById(tableId);\n assertDeletedColumn(tableEntityCreated);\n\n assertTestDisconnectUnidirectionalArrayReferenceFromClassType(\n (List<AtlasObjectId>) tableEntityCreated.getEntity().getAttribute(COLUMNS_ATTR_NAME), colId);\n\n //update by removing a column - col1\n final AtlasEntity tableEntity1 = TestUtilsV2.createTableEntity(dbEntity, (String) tableEntity.getAttribute(NAME));\n\n AtlasEntity.AtlasEntitiesWithExtInfo entitiesInfo1 = new AtlasEntity.AtlasEntitiesWithExtInfo(tableEntity1);\n final AtlasEntity columnEntity3New = TestUtilsV2.createColumnEntity(tableEntity1, (String) column3Created.getAttribute(NAME));\n tableEntity1.setAttribute(COLUMNS_ATTR_NAME, Arrays.asList(AtlasTypeUtil.getAtlasObjectId(columnEntity3New)));\n entitiesInfo1.addReferredEntity(columnEntity3New);\n\n init();\n deletionResponse = entityStore.createOrUpdate(new AtlasEntityStream(entitiesInfo1), false);\n\n assertEquals(deletionResponse.getDeletedEntities().size(), 1);\n assertEquals(deletionResponse.getDeletedEntities().get(0).getGuid(), column2Created.getGuid());\n assertEntityDeleted(colId);\n\n // Delete the table entities. The deletion should cascade to their composite columns.\n tableInstance = metadataService.getEntityDefinitionReference(TestUtils.TABLE_TYPE, NAME, (String) tableEntity.getAttribute(NAME));\n\n init();\n EntityMutationResponse tblDeletionResponse = entityStore.deleteById(tableInstance.getId()._getId());\n assertEquals(tblDeletionResponse.getDeletedEntities().size(), 2);\n\n final AtlasEntityHeader tableDeleted = tblDeletionResponse.getFirstDeletedEntityByTypeName(TABLE_TYPE);\n final AtlasEntityHeader colDeleted = tblDeletionResponse.getFirstDeletedEntityByTypeName(COLUMN_TYPE);\n\n // Verify that deleteEntities() response has guids for tables and their composite columns.\n Assert.assertTrue(tableDeleted.getGuid().equals(tableInstance.getId()._getId()));\n Assert.assertTrue(colDeleted.getGuid().equals(column3Created.getGuid()));\n\n // Verify that tables and their composite columns have been deleted from the graph Repository.\n assertEntityDeleted(tableDeleted.getGuid());\n assertEntityDeleted(colDeleted.getGuid());\n\n }",
"public void testSearchDeleteCreate() {\n doSearchDeleteCreate(session, \"/src/test/resources/profile/HeartRate.xml\", \"HSPC Heart Rate\");\n }",
"@AfterSuite\r\n\tpublic void tearDown()\r\n\t{\n extent.flush();\r\n\t}",
"void delData();",
"@After\n public void teardown() {\n for (UseTypeEntity thisEntity : entities) {\n me.deleteUseTypeEntity(thisEntity);\n }\n\n // clean up\n me = null;\n testEntity = null;\n entities = null;\n\n }",
"public void deleteTableRecords()\n {\n coronaRepository.deleteAll();\n }",
"public void clearDatabase() {\n\n\t\tObjectSet<Article> articles = db.query(Article.class);\n\t\tarticles.stream()\n\t\t\t.forEach(db::delete);\n\n\t\tObjectSet<CreditCard> creditCards = db.query(CreditCard.class);\n\t\tcreditCards.stream()\n\t\t\t.forEach(db::delete);\n\n\t\tObjectSet<Customer> customers = db.query(Customer.class);\n\t\tcustomers.stream()\n\t\t\t.forEach(db::delete);\n\n\t\tObjectSet<Order> orders = db.query(Order.class);\n\t\torders.stream()\n\t\t\t.forEach(db::delete);\n\n\t\tObjectSet<OrderDetail> orderDetails = db.query(OrderDetail.class);\n\t\torderDetails.stream()\n\t\t\t.forEach(db::delete);\n\t\t\n\t\tSystem.out.println(\"\\nBase de dades esborrada per complet\");\n\t}",
"@After\n public void tearDown() {\n fixture.cleanUp();\n }",
"@BeforeEach\n public void setUp() {\n EntityManager em = emf.createEntityManager();\n j1 = new Joke(1,\"dårlig joke 1\", \"type1\");\n j2 = new Joke(2,\"dårlig joke 2\", \"type2\");\n j3 = new Joke(3,\"dårlig joke 3\", \"type2\");\n try {\n em.getTransaction().begin();\n em.createQuery(\"DELETE from Joke\").executeUpdate();\n em.persist(j1);\n em.persist(j2);\n em.persist(j3);\n em.getTransaction().commit();\n } finally {\n em.close();\n }\n }",
"@BeforeEach\n void setUp(){\n DatabaseTwo database = DatabaseTwo.getInstance();\n database.runSQL(\"cleanAll.sql\");\n\n genericDao = new GenericDao(CompositionInstrument.class);\n }",
"public void eraseData() {\n LOG.warn(\"!! ERASING ALL DATA !!\");\n\n List<User> users = userRepo.getAll();\n List<Habit> habits = habitsRepo.getAll();\n List<Goal> goals = goalRepo.getAll();\n List<RecoverLink> recoverLinks = recoverLinkRepo.getAll();\n List<RegistrationLink> registrationLinks = registrationLinkRepo.getAll();\n List<FriendRequest> friendRequests = friendRequestRepo.getAll();\n\n try {\n LOG.warn(\"Erasing friend requests\");\n for (FriendRequest friendRequest : friendRequests) {\n friendRequestRepo.delete(friendRequest.getId());\n }\n LOG.warn(\"Erasing habits\");\n for (Habit habit : habits) {\n habitsRepo.delete(habit.getId());\n }\n LOG.warn(\"Erasing recovery links\");\n for (RecoverLink recoverLink : recoverLinks) {\n recoverLinkRepo.delete(recoverLink.getId());\n }\n LOG.warn(\"Erasing registration links\");\n for (RegistrationLink registrationLink : registrationLinks) {\n registrationLinkRepo.delete(registrationLink.getId());\n }\n LOG.warn(\"Removing all friendships :(\");\n for (User user : users) {\n List<User> friends = new ArrayList<>(user.getFriends());\n LOG.warn(\"Erasing friends for user with id={}\", user.getId());\n for (User friend : friends) {\n try {\n LOG.warn(\"Erasing friendship between {} and {}\", user.getId(), friend.getId());\n userRepo.removeFriends(user.getId(), friend.getId());\n } catch (Exception e) {\n LOG.error(e.getMessage());\n }\n }\n }\n LOG.warn(\"Erasing user and their user goals\");\n for (User user : users) {\n List<UserGoal> userGoals = new ArrayList<>(user.getUserGoals());\n LOG.warn(\"Erasing user goals for user with id={}\", user.getId());\n for (UserGoal userGoal : userGoals) {\n userRepo.removeUserGoal(user.getId(), userGoal.getId());\n }\n userRepo.delete(user.getId());\n }\n LOG.warn(\"Erasing goals\");\n for (Goal goal : goals) {\n goalRepo.delete(goal.getId());\n }\n LOG.warn(\"!! DATA ERASED SUCCESSFULLY !!\");\n } catch (RepoException e) {\n LOG.error(e.getMessage());\n e.printStackTrace();\n }\n }",
"static void emptyTable () {\n Session session = null;\n Transaction transaction = null;\n try {\n session = sessionFactory.openSession();\n transaction = session.beginTransaction();\n Query query = session.createQuery(\"DELETE from ReservationsEntity \");\n query.executeUpdate();\n Query query2 = session.createQuery(\"DELETE from OrdersEntity \");\n query2.executeUpdate();\n\n Query query3 = session.createQuery(\"DELETE from TablesEntity \");\n query3.executeUpdate();\n transaction.commit();\n }\n catch (Exception e)\n {\n if (transaction != null) {\n transaction.rollback();\n }\n throw e;\n } finally {\n if (session != null) {\n session.close();\n }\n }\n }",
"@AfterEach\n void dropAllTablesAfter() throws SQLException {\n Connection connPlayers = individualPlayerScraper.setNewConnection(\"playertest\");\n ResultSet rsTables = connPlayers.prepareStatement(\"SHOW TABLES\").executeQuery();\n while (rsTables.next()) {\n connPlayers.prepareStatement(\"DROP TABLE \" + rsTables.getString(1)).execute();\n }\n rsTables.close();\n connPlayers.close();\n }",
"public void clearDatabase() {\n new ExecutionEngine(this.database).execute(\"MATCH (n) OPTIONAL MATCH (n)-[r]-() DELETE r, n\");\n }",
"private void deleteHocSinh() {\n\t\tString username = (String) table1\n\t\t\t\t.getValueAt(table1.getSelectedRow(), 0);\n\t\thocsinhdao.deleteUser(username);\n\t}",
"@Before\n @After\n public void deleteTestTransactions() {\n if (sessionId == null) {\n getTestSession();\n }\n\n // No test transaction has been made yet, thus no need to delete anything.\n if (testTransactionId != null) {\n given()\n .header(\"X-session-ID\", sessionId)\n .delete(String.format(\"api/v1/transactions/%d\", testTransactionId));\n }\n\n if (clutterTransactionId != null) {\n given()\n .header(\"X-session-ID\", sessionId)\n .delete(String.format(\"api/v1/transactions/%d\", clutterTransactionId));\n }\n }",
"@After\n\tpublic void tearDown() throws Exception {\n\t\tydelseService.setEntityManager(null);\n\t}",
"@Override\n public void removeFromDb() {\n }",
"public void testDelete() {\n Random random = new Random();\n ContentValues values1 = makeServiceStateValues(random, mBaseDb);\n final long row1 = mBaseDb.insert(TBL_SERVICE_STATE, null, values1);\n ContentValues values2 = makeServiceStateValues(random, mBaseDb);\n final long row2 = mBaseDb.insert(TBL_SERVICE_STATE, null, values2);\n\n // delete row 1\n ServiceStateTable table = new ServiceStateTable();\n String whereClause = COL_ID + \" = ?\";\n String[] whereArgs = { String.valueOf(row1) };\n int deleted = table.delete(mTestContext, whereClause, whereArgs);\n assertEquals(1, deleted);\n\n // query verify using base db\n Cursor cursor = mBaseDb.query(TBL_SERVICE_STATE, null, null, null, null, null, null);\n assertValuesCursor(row2, values2, cursor);\n cursor.close();\n }",
"@Before\n public void setUp() throws Exception {\n String connectionString = \"jdbc:h2:mem:testing;INIT=RUNSCRIPT from 'classpath:db/create.sql'\";\n Sql2o sql2o = new Sql2o(connectionString, \"\", \"\");\n departmentDao = new Sql2oDepartmentDao(sql2o); //ignore me for now\n conn = sql2o.open(); //keep connection open through entire test so it does not get erased\n }",
"public void cleanUp();",
"public void cleanUp();",
"public void adm1() {\n\t\ttry { // Delete all table contents\n\t\t\tstatement = connection.createStatement();\n\t\t\tstatement.executeQuery(\"delete from PLANE\");\n\t\t\tstatement.executeQuery(\"delete from FLIGHT\");\n\t\t\tstatement.executeQuery(\"delete from PRICE\");\n\t\t\tstatement.executeQuery(\"delete from CUSTOMER\");\n\t\t\tstatement.executeQuery(\"delete from RESERVATION\");\n\t\t\tstatement.executeQuery(\"delete from DETAIL\");\n\t\t\tstatement.executeQuery(\"delete from OUR_DATE\");\n\t\t\tstatement.executeQuery(\"delete from AIRLINE\");\n\t\t} catch(SQLException Ex) {System.out.println(\"Error running the sample queries. Machine Error: \" + Ex.toString());}\n\t\tSystem.out.println(\"DATABASE ERASED\");\n\t}"
] |
[
"0.6671815",
"0.6521805",
"0.6399475",
"0.6378803",
"0.6370511",
"0.6332335",
"0.6312284",
"0.6298518",
"0.6298348",
"0.62835664",
"0.62475693",
"0.6224352",
"0.62145376",
"0.61657137",
"0.6094952",
"0.6088927",
"0.6078058",
"0.60736966",
"0.60432684",
"0.60116947",
"0.60110074",
"0.60103995",
"0.6007769",
"0.59880626",
"0.5984448",
"0.59750366",
"0.5971462",
"0.5970402",
"0.5959911",
"0.59482753",
"0.5843808",
"0.58433294",
"0.58390653",
"0.5812888",
"0.5808665",
"0.5784113",
"0.5781695",
"0.57728034",
"0.57645756",
"0.5751869",
"0.574708",
"0.57460684",
"0.57405573",
"0.5735691",
"0.5723936",
"0.5722355",
"0.5713512",
"0.56945",
"0.56927145",
"0.56842375",
"0.56836355",
"0.5674922",
"0.5668105",
"0.56502426",
"0.5637833",
"0.5611211",
"0.5608584",
"0.560813",
"0.5598679",
"0.5595447",
"0.55906475",
"0.5586374",
"0.5578855",
"0.5576876",
"0.55755204",
"0.5575318",
"0.55697113",
"0.5567692",
"0.55627924",
"0.5561576",
"0.5560833",
"0.55523753",
"0.55404586",
"0.5533576",
"0.5532114",
"0.5521915",
"0.5506883",
"0.5505999",
"0.5496599",
"0.5496266",
"0.5490415",
"0.5485324",
"0.5484719",
"0.54811877",
"0.5474217",
"0.54682434",
"0.5468186",
"0.5463945",
"0.54621",
"0.5460518",
"0.54518336",
"0.5448783",
"0.5440411",
"0.5435321",
"0.5433569",
"0.542204",
"0.5418527",
"0.54139566",
"0.5413706",
"0.5413706",
"0.5413626"
] |
0.0
|
-1
|
/Primero obtenemos el determiante
|
float determinante (){
//lo de adentro de la raiz
float det= (float)(Math.pow(b, 2)-4*a*c);
//(float) por que pow tiene valores por defecto de double
//entonces, hacemos casting: poniendole el (float) antes de
//toda la funcion.
return det;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\r\n\tpublic Dinero getDinero() {\n\t\treturn super.getDinero();\r\n\t}",
"Reserva Obtener();",
"public Nodo getNodoDerecho(){\n return der;\n }",
"public String obtenerDetalles(){\r\n return \"Nombre: \" + this.nombre + \", sueldo = \" + this.sueldo;\r\n }",
"private static void grabarYleerMedico() {\r\n\r\n\t\tMedico medico = new Medico(\"Manolo\", \"Garcia\", \"62\", \"casa\", \"2\", null);\r\n\t\tDTO<Medico> dtoMedico = new DTO<>(\"src/Almacen/medico.dat\");\r\n\t\tif (dtoMedico.grabar(medico) == true) {\r\n\t\t\tSystem.out.println(medico.getNombre());\r\n\t\t\tSystem.out.println(medico.getDireccion());\r\n\t\t\tSystem.out.println(\"Medico grabado\");\r\n\t\t}\r\n\t\t;\r\n\t\tMedico medicoLeer = dtoMedico.leer();\r\n\t\tSystem.out.println(medicoLeer);\r\n\t\tSystem.out.println(medicoLeer.getNombre());\r\n\t}",
"@Override\n\tpublic DevolucionPedido getDevolucionPedidoByName(String nameDevolucionPedido) {\n\t\treturn _devolucionPedidoDao.getDevolucionPedidoByName(nameDevolucionPedido);\n\t}",
"Debut getDebut();",
"@Override\n\tpublic int getDouleur() {\n\t\treturn intDouleur;\n\t}",
"public Vector<MakhlukHidup> get_daftar();",
"public String getDenumireExperienta(String id) {\n c = db.rawQuery(\"select denumire from experienta where id='\" + id + \"'\", new String[]{});\n StringBuffer buffer = new StringBuffer();\n while (c.moveToNext()) {\n String denumire = c.getString(0);\n buffer.append(\"\" + denumire);\n }\n return buffer.toString();\n }",
"public String getDia() {\n\t\treturn this.dia;\n\t}",
"public biz.belcorp.www.canonico.ffvv.vender.TPedidoDetalle[] getPedidoDetalle(){\n return localPedidoDetalle;\n }",
"public int getDificultad ()\n {\n //Pre:\n //Post: Devuelve el nivel de dificultad\n return dificultad;\n }",
"public Domaine getDomaine (){\r\n\t\treturn this.dm;\r\n\t}",
"public String MuestraSoloDNI() {\nString Muestra=\"\";\n\nif(getTipoCliente().equals(\"Docente\")) {\nMuestra=clienteDo.getDni();\n}else if(getTipoCliente().equalsIgnoreCase(\"Administrativo\")) {\nMuestra=clienteAd.getDni();\n}\nreturn Muestra;\n}",
"public String toString() {\r\n\t\t//return \"Desastre(\"\r\n\t\t\t\t//+ \")\";\r\n\t\treturn SReflect.getInnerClassName(getClass())+\r\n\t\t\t\t\" id=\"+getId()+\", estadoemergencia=\"+getEstadoEmergencia()+\", heridos=\"+getEstadoHeridos();\r\n\t}",
"public java.lang.String getIdentificadorODE()\r\n {\r\n return this.identificadorODE;\r\n }",
"@Override\n\tpublic int getDikte() {\n\t\treturn this.dikttte;\n\t}",
"public String getPuntoEmision()\r\n/* 124: */ {\r\n/* 125:207 */ return this.puntoEmision;\r\n/* 126: */ }",
"public IDado getDado() {\n\t\ttry {\r\n\t\t\treturn juego.getDado();\r\n\t\t} catch (RemoteException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}",
"public int getDebut() {\n\t\treturn this.debut;\n\t}",
"private static void grabarYllerPaciente() {\r\n\t\tPaciente paciente = new Paciente(\"Juan\", \"Garcia\", \"65\", \"casa\", \"2\", \"1998\");\r\n\t\tPaciente pacienteDos = new Paciente(\"MArta\", \"Garcia\", \"65\", \"casa\", \"3\", \"1998\");\r\n\t\tPaciente pacienteTres = new Paciente(\"MAria\", \"Garcia\", \"65\", \"casa\", \"4\", \"1998\");\r\n\t\tString ruta = paciente.getIdUnico();\r\n\t\tString rutaDos = pacienteDos.getIdUnico();\r\n\t\tString rutaTres = pacienteTres.getIdUnico();\r\n\t\tDTO<Paciente> dtoPacienteDos = new DTO<>(\"src/Almacen/\" + rutaDos + \".dat\");\r\n\t\tDTO<Paciente> dtoPaciente = new DTO<>(\"src/Almacen/\" + ruta + \".dat\");\r\n\t\tDTO<Paciente> dtoPacienteTres = new DTO<>(\"src/Almacen/\" + rutaTres + \".dat\");\r\n\t\tif (dtoPaciente.grabar(paciente) == true) {\r\n\r\n\t\t\tSystem.out.println(paciente.getNombre() + \" grabado\");\r\n\t\t}\r\n\t\t;\r\n\t\tif (dtoPacienteDos.grabar(pacienteDos) == true) {\r\n\r\n\t\t\tSystem.out.println(pacienteDos.getNombre() + \" grabado\");\r\n\t\t}\r\n\t\t;\r\n\t\tif (dtoPacienteTres.grabar(pacienteTres) == true) {\r\n\t\t\tSystem.out.println(pacienteTres.getNombre() + \" grabado\");\r\n\t\t}\r\n\t\t;\r\n\t\tPaciente pacienteLeer = dtoPaciente.leer();\r\n\t\tSystem.out.println(pacienteLeer);\r\n\t\tSystem.out.println(pacienteLeer.getNombre());\r\n\t}",
"@Override\n public String getDeskripsi() {\n return deskripsi;\n }",
"@Override\n public String getDeskripsi() {\n return deskripsi;\n }",
"public double getMontoDescuento(){\n return localMontoDescuento;\n }",
"private static void grabarYleerCirujano() {\r\n\t\tCirujano cirujano = new Cirujano(\"Raul\", \"NoSe\", \"67\", \"Piso\", \"4\", \"20\");\r\n\t\tDTO<Cirujano> dtoCirujano = new DTO<>(\"src/Almacen/cirujano.dat\");\r\n\t\tif (dtoCirujano.grabar(cirujano) == true) {\r\n\t\t\tSystem.out.println(cirujano.getNombre());\r\n\t\t\tSystem.out.println(cirujano.getDireccion());\r\n\t\t\tSystem.out.println(\"Cirujano grabado\");\r\n\t\t}\r\n\t\t;\r\n\r\n\t\tCirujano cirujanoLeer = dtoCirujano.leer();\r\n\t\tSystem.out.println(cirujanoLeer);\r\n\t\tSystem.out.println(cirujanoLeer.getNombre());\r\n\t}",
"public PuntoDeVenta getPuntoDeVenta()\r\n/* 140: */ {\r\n/* 141:162 */ return this.puntoDeVenta;\r\n/* 142: */ }",
"public String getIdentificacion()\r\n/* 123: */ {\r\n/* 124:223 */ return this.identificacion;\r\n/* 125: */ }",
"Object getDados(long id);",
"public String getDes() {\r\n return des;\r\n }",
"String getUnidade();",
"public int getDer() {\r\n\t\treturn der;\r\n\t}",
"public String getDenumireCaroserie(int id) {\n c = db.rawQuery(\"select denumire from caroserii where id='\" + id + \"'\", new String[]{});\n StringBuffer buffer = new StringBuffer();\n while (c.moveToNext()) {\n String denumire = c.getString(0);\n buffer.append(\"\" + denumire);\n }\n return buffer.toString();\n }",
"public void obtener() {\r\n \t\r\n \tif (raiz!=null)\r\n {\r\n int informacion = raiz.dato;\r\n raiz = raiz.sig;\r\n end = raiz;\r\n System.out.println(\"Obtenemos el dato de la cima: \"+informacion);\r\n }\r\n else\r\n {\r\n System.out.println(\"No hay datos en la pila\");\r\n }\r\n }",
"public java.lang.String getHora_desde();",
"public int getIdDetalleComponenteCosto()\r\n/* 58: */ {\r\n/* 59: 83 */ return this.idDetalleComponenteCosto;\r\n/* 60: */ }",
"public String getDenumireUtilizare(String id) {\n c = db.rawQuery(\"select denumire from utilizare where id='\" + id + \"'\", new String[]{});\n StringBuffer buffer = new StringBuffer();\n while (c.moveToNext()) {\n String denumire = c.getString(0);\n buffer.append(\"\" + denumire);\n }\n return buffer.toString();\n }",
"public double getMontoFacturadoSinDescuento(){\n return localMontoFacturadoSinDescuento;\n }",
"public Date getDeldte() {\r\n return deldte;\r\n }",
"java.lang.String getDeskNo();",
"public String getDenumireCombustibil(String id){\n c = db.rawQuery(\"select denumire from combustibil where id='\" + id + \"'\", new String[]{});\n StringBuffer buffer = new StringBuffer();\n while (c.moveToNext()) {\n String denumire = c.getString(0);\n buffer.append(\"\" + denumire);\n }\n return buffer.toString();\n }",
"public abstract String getDnForPerson(String inum);",
"public java.lang.String getDelb() {\r\n return localDelb;\r\n }",
"public long getDuree() {\n return duree;\n }",
"public String getEdificio ()\r\n {\r\n return this.edificio;\r\n }",
"public String getDes() {\n return des;\n }",
"public Hashtable getDecissions()\n {\n return m_decissions;\n }",
"public String getDPTitel(){\n\t\treturn this.m_sDPTitel;\n\t}",
"public String getDinas() {\n return this.dinas;\n }",
"public byte obtenerDano(){\n\treturn dano;\n }",
"public double getDescuentos(){\n return this.descuentos;\n }",
"private static void grabarYleerPaciente(Paciente paciente) {\r\n\t\tString ruta = paciente.getIdUnico();\r\n\t\tDTO<Paciente> dtoPaciente = new DTO<>(\"src/Almacen/\" + ruta + \".dat\");\r\n\t\tif (dtoPaciente.grabar(paciente) == true) {\r\n\t\t\tSystem.out.println(paciente.getNombre() + \" grabado\");\r\n\t\t}\r\n\t\t;\r\n\t\tPaciente pacienteLeer = dtoPaciente.leer();\r\n\t\tSystem.out.println(pacienteLeer);\r\n\t\tSystem.out.println(pacienteLeer.getNombre());\r\n\t\tSystem.out.println(pacienteLeer.getApellidos());\r\n\t\tSystem.out.println(pacienteLeer.getDireccion());\r\n\t\tSystem.out.println(pacienteLeer.getFechaDeNacimiento());\r\n\t\tSystem.out.println(pacienteLeer.getIdUnico());\r\n\t\tSystem.out.println(pacienteLeer.getTelefono());\r\n\t\tSystem.out.println(pacienteLeer.getTratamientos());\r\n\t}",
"public Nodo<T> getDerecho() {\n\t\treturn derecho;\n\t}",
"public String getEstablecimiento()\r\n/* 114: */ {\r\n/* 115:188 */ return this.establecimiento;\r\n/* 116: */ }",
"public void consultaDinero(){\r\n System.out.println(this.getMonto());\r\n }",
"public int getReferencia() {\n return referencia;\n }",
"com.soa.SolicitarCreditoDocument.SolicitarCredito getSolicitarCredito();",
"@Override\n\tpublic ArrayList<Domanda> getDomande() {\n\t\tDB db = getDB();\n\t\tArrayList<Domanda> domande = new ArrayList<Domanda>();\n\t\tMap<Long, Domanda> list = db.getTreeMap(\"domande\");\n\t\tfor(Map.Entry<Long, Domanda> domanda : list.entrySet())\n\t\t\tif(domanda.getValue() instanceof Domanda)\n\t\t\t\tdomande.add((Domanda)domanda.getValue());\n\t\treturn domande;\n\t}",
"public String obtenerDescripcionAtaque(){\n\treturn descripcionAtaque;\n }",
"public int getDificultad(){\n return dificultad;\n }",
"public int getIdFornecedor(){\n\t return idFornecedor;\n\t}",
"public int getId()\r\n/* 53: */ {\r\n/* 54: 79 */ return this.idDetalleComponenteCosto;\r\n/* 55: */ }",
"public String getD() {\n return d;\n }",
"public String getDenumireBuget(String id){\n c = db.rawQuery(\"select denumire from buget where id='\" + id + \"'\", new String[]{});\n StringBuffer buffer = new StringBuffer();\n while (c.moveToNext()) {\n String denumire = c.getString(0);\n buffer.append(\"\" + denumire);\n }\n return buffer.toString();\n }",
"public TipoDiscapacidad getTipoDiscapacidad()\r\n/* 224: */ {\r\n/* 225:410 */ return this.tipoDiscapacidad;\r\n/* 226: */ }",
"public String dameDescripcion(){\n return \"Este empleado tiene un id = \"+getId()+\" con un sueldo de \"+getSueldo();\n }",
"public java.lang.String getUnidadDeMedida() {\n return unidadDeMedida;\n }",
"public double getPeluangFK(){\n return fakultas[0];\n }",
"public int eleminardelInicio(){\n int elemento=inicio.dato;\n if(inicio==fin){\n inicio=fin=null;\n }else{\n inicio=inicio.siguiente;\n inicio.anterior=null; \n }\n return elemento;\n }",
"@Override\n\tpublic String detalheEleicao(Eleicao eleicao) throws RemoteException {\n\t\tString resultado = \"\";\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy:MM:dd hh:mm\");\n\t\tdataEleicao data_atual = textEditor.dataStringToData(dateFormat.format(new Date()));\n\t\tif (!data_atual.maior_data(textEditor.dataStringToData(eleicao.getDataInicio()))) {\n\t\t\tresultado += \"\\nTítulo eleição: \"+eleicao.getTitulo()+\" - Data início: \"+eleicao.getDataInicio()+\" - Data fim: \"+ eleicao.getDataFim();\n\t\t\tresultado += \"\\nEleição ainda não iniciada.\";\n\t\t\tfor(Candidatos candTemp: eleicao.getCandidatos()) {\n\t\t\t\tif(candTemp.getTipo().equalsIgnoreCase(\"lista\")) {\n\t\t\t\t\tLista lista = (Lista) candTemp;\n\t\t\t\t\tresultado += \"\\nNúmero candidato: \"+lista.getId()+\" - Nome lista: \"+lista.getNome()+\" Membros: \"+lista.getLista_pessoas();\n\t\t\t\t\tfor(PessoaLista pessoalista : lista.getLista_pessoas()) {\n\t\t\t\t\t\tresultado += \"\\n\\tCC: \"+pessoalista.getPessoa().getNcc()+\" - Cargo: \"+pessoalista.getCargo()+ \" - Nome: \"+pessoalista.getPessoa().getNome();\n\t\t\t\t\t}\n\t\t\t\t\tresultado += \"\\n\";\n\t\t\t\t}else {\n\t\t\t\t\tCandidatoIndividual cand = (CandidatoIndividual) candTemp;\n\t\t\t\t\tresultado += \"\\nNúmero candidato: \"+cand.getId()+\" - Nome: \"+cand.getPessoa().getNome()+\" - CC: \"+cand.getPessoa().getNcc();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tif (data_atual.maior_data(textEditor.dataStringToData(eleicao.getDataFim()))) {\n\t\t\t\tresultado += \"\\nTítulo eleição: \"+eleicao.getTitulo()+\" - Data início: \"+eleicao.getDataInicio()+\" - Data fim: \"+ eleicao.getDataFim();\n\t\t\t\tresultado += \"\\nEleição terminada.\";\n\t\t\t\tresultado += \"\\nVotos em branco/nulos: \"+eleicao.getnVotoBNA();\n\t\t\t\tfor(Candidatos candTemp: eleicao.getCandidatos()) {\n\t\t\t\t\tif(candTemp.getTipo().equalsIgnoreCase(\"lista\")) {\n\t\t\t\t\t\tLista lista = (Lista) candTemp;\n\t\t\t\t\t\tresultado += \"\\nNúmero candidato: \"+lista.getId()+\" - Nome lista: \"+lista.getNome()+\" Membros: \"+lista.getLista_pessoas()+\"Votos: \"+lista.getnVotos();\n\t\t\t\t\t\tresultado += \"\\n\";\n\t\t\t\t\t}else {\n\t\t\t\t\t\tCandidatoIndividual cand = (CandidatoIndividual) candTemp;\n\t\t\t\t\t\tresultado += \"\\nNúmero candidato: \"+cand.getId()+\" - Nome: \"+cand.getPessoa().getNome()+\" - CC: \"+cand.getPessoa().getNcc()+\" - Votos: \"+cand.getnVotos();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(eleicao.getDataInicio()+\"-\"+eleicao.getDataFim()+\": A decorrer\");\n\t\t\t}\n\t\t}\n\t\treturn resultado;\n\t\n\t}",
"public List<tipoDetalle> obtenerDetallesBD(){\n List<tipoDetalle> detalles=new ArrayList<>();\n try{\n //Obteniendo el ID del auto desde la activity de Mostrar_datos\n String idAuto;\n Bundle extras=getIntent().getExtras();\n if(extras!=null)\n {\n idAuto=extras.getString(\"id_auto\");\n Log.e(\"auto\",\"el auto id es= \"+idAuto);\n ResultSet rs = (ResultSet) TNT.mostrarDetalles(idAuto);\n while (rs.next()){\n detalles.add(new tipoDetalle(rs.getString(\"id\"), rs.getString(\"nombre\"), rs.getString(\"fecha_entrada\"), rs.getString(\"fecha_salida\"), rs.getString(\"fecha_terminacion\"), rs.getString(\"estado\"), rs.getString(\"descripcion\"), rs.getString(\"costo\")));\n }\n }\n }catch(SQLException e){\n Toast.makeText(getApplicationContext(),e.getMessage(),Toast.LENGTH_SHORT).show();\n }\n return detalles;\n }",
"private static int selectDernierIdUtilisateur() {\n SQLiteDatabase db = MoteurBD.getMoteurBD().getDb();\n //TODO devrais getter sur les interwebs\n Cursor c = db.rawQuery(\"select id from utilisateur order by id desc limit 1;\", null);\n try {\n return c.moveToFirst() ? c.getInt(0) : 1;\n }\n finally {\n c.close();\n }\n }",
"public String listarDetalhes() {\n\t\treturn this.detalhes();\n\t}",
"public int getIdDetalle_Ventaf() {\n return idDetalle_Ventaf;\n }",
"public int extraer ()\n {\n if (raiz!=null)\n {\n int informacion = raiz.edad;\n raiz = raiz.sig;\n return informacion;\n }\n else\n {\n System.out.println(\"La lista se encuentra vacia\");\n return 0;\n }\n }",
"public HTMLTableSectionElement getElementDetalle() { return this.$element_Detalle; }",
"public int getDificultat() {\r\n\t\treturn dificultat;\r\n\t}",
"public Integer getDevid() {\n return devid;\n }",
"public int getIDDETARQUEO() {\r\n return this.IDDETARQUEO;\r\n }",
"Documento getDocumento();",
"@Override\r\n\tpublic int getPuntuacion() {\n\t\treturn super.getPuntuacion();\r\n\t}",
"public String getDescripteur(TypeFichier type, int nbMots) {\n\t\tString descripteur1=descripteur.getDescripteurGenere(type, nbMots);\n\t\t//try {\n\t\t//Thread.sleep(4000);\n\t\t//\tthis.wait(40000);\n\t\t//} catch (Exception e) {\n\t\t// TODO: handle exception\n\t\t//}\n\t\t/*String descripteur1=*///descripteur.getDescripteurGenere(type, nbMots);\t\n\t\t//String descripteur1=threadLancementIndexation.getDescripteurGenere();\n\t\t//System.out.println(descripteur1);\n\t\treturn descripteur1;\n\t}",
"public void solicitudPisoAbajo(int pisoDesde) {\n\r\n\t\tAscensor ascensorDesignado = null;\r\n\t\tfor (int i=0;i<ascensores.length && ascensorDesignado==null;i++) {\r\n\t\t\tAscensor a = ascensores[i];\r\n\t\t\t\r\n\t\t\tif (a.piso() >= pisoDesde && a.direccion()==Direccion.abajo) {\r\n\t\t\t\tascensorDesignado = a;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif (ascensorDesignado==null) {\r\n\t\t\tascensorDesignado = ascensores[0];\r\n\t\t}\r\n\t\t\r\n\t\t//msgs(\"solicitudPisoAbajo ASIGNADO \" + ascensorDesignado + \" a piso \" + pisoDesde);\r\n\t\tsolicitudAscensor(ascensorDesignado, pisoDesde);\r\n\t}",
"public String getDebtor() {\n return debtor;\n }",
"java.lang.String getAdresa();",
"@Override\r\n\tpublic ArrayList<TransferUsuario> buscarDesarroladorDescuento(int descuento) {\n Transaction transaccion= TransactionManager.getInstance().nuevaTransaccion();\r\n transaccion.start();\r\n\t\t\r\n //Obtenemos el DAO\r\n \r\n Query query = factoriaQuery.getInstance().getQuery(Eventos.QUERY_DESARROLLADOR);\t\t \r\n ArrayList<TransferUsuario> ret= (ArrayList<TransferUsuario>) query.execute(descuento);\r\n \r\n TransactionManager.getInstance().eliminarTransaccion();\r\n \r\n return ret;\r\n\t}",
"public int getEdad();",
"public HTMLTableElement getElementDetalle() { return this.$element_Detalle; }",
"public NodoA desconectar(NodoA t){\n if(t != cabeza){\n t.getLigaDer().setLigaIzq(t.getLigaIzq());\n System.out.println(\"Direccion:\"+t+\" izquierdo:\"+t.getLigaIzq()+\" derecho:\"+t.getLigaDer());\n t.getLigaIzq().setLigaDer(t.getLigaDer());\n return t;\n }\n return null;\n }",
"public MakhlukHidup get_daftar(int i);",
"public String getFrecuencia() {\r\n return frecuencia;\r\n }",
"double getDiametro(){\n return raggio * 2;\n }",
"java.lang.String getNume();",
"java.lang.String getNume();",
"public String getAutorizacion()\r\n/* 134: */ {\r\n/* 135:226 */ return this.autorizacion;\r\n/* 136: */ }",
"public abstract java.lang.String getCod_dpto();",
"public int elimiarAlInicio(){\n int edad = inicio.edad;\n if(inicio==fin){\n inicio=fin=null;\n }else{\n inicio=inicio.siguiente;\n }\n return edad;\n }",
"public Integer geteDeptid() {\n return eDeptid;\n }",
"@Override//sobrescribir metodo\n public String getDescripcion(){\n return hamburguesa.getDescripcion()+\" + lechuga\";//retorna descripcion del oobj hamburguesa y le agrega +lechuga\n }",
"Objet getObjetAlloue();",
"public int getD() {\n\t\treturn d;\n\t}"
] |
[
"0.6478947",
"0.6460182",
"0.6419138",
"0.6358231",
"0.632612",
"0.624558",
"0.6184689",
"0.60741925",
"0.60436535",
"0.6035623",
"0.60086054",
"0.600666",
"0.59476936",
"0.59463644",
"0.5933198",
"0.5917916",
"0.5900632",
"0.58994883",
"0.58897984",
"0.58862156",
"0.5861031",
"0.58542496",
"0.58540803",
"0.58540803",
"0.58444583",
"0.5838752",
"0.5829853",
"0.5828919",
"0.58267164",
"0.582631",
"0.58189785",
"0.58161926",
"0.58151543",
"0.58123434",
"0.5802187",
"0.5798513",
"0.57884043",
"0.5785423",
"0.57758385",
"0.577067",
"0.5751374",
"0.5745464",
"0.57377887",
"0.5737355",
"0.5735733",
"0.57316047",
"0.5724072",
"0.57191575",
"0.5710863",
"0.57036996",
"0.5699706",
"0.56995445",
"0.56903225",
"0.5686145",
"0.56845814",
"0.5683338",
"0.5681244",
"0.5680311",
"0.5679799",
"0.56792086",
"0.5678681",
"0.56786394",
"0.56718177",
"0.56642455",
"0.56621075",
"0.5660065",
"0.565531",
"0.5651578",
"0.56500775",
"0.56484663",
"0.5638299",
"0.56366915",
"0.5635262",
"0.5631237",
"0.56296515",
"0.56280434",
"0.5620545",
"0.56195205",
"0.56173456",
"0.56114346",
"0.5607786",
"0.56071514",
"0.56016165",
"0.55959725",
"0.5594197",
"0.55905783",
"0.55903894",
"0.55820495",
"0.55676967",
"0.55665183",
"0.5565457",
"0.5563004",
"0.55628186",
"0.55628186",
"0.55612624",
"0.5557662",
"0.55515003",
"0.55509526",
"0.55506605",
"0.5546616",
"0.55463284"
] |
0.0
|
-1
|
Declarar un metodo publico
|
public String raiz1 (){
//primero, invocamos el determiante
float det=determinante(); //se asigna al determinante de arriba
String sol="raiz 1"; //la solucion la evuelve como string
if (det<0){
sol="Raiz imaginaria";
}else {
float r1= (float)(-b+ Math.sqrt(det) )/(2*a);
//tambien aplicamos casting pata Math, con (float)
sol="Raiz 1: "+r1; //texto + valor agregado
}
return sol;
//Uno para R1 y otro para R2
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void Ordenamiento() {\n\n\t}",
"private Public() {\n super(\"public\", null);\n }",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"public void inizializza() {\n Navigatore nav;\n Portale portale;\n\n super.inizializza();\n\n try { // prova ad eseguire il codice\n\n Modulo modulo = getModuloRisultati();\n modulo.inizializza();\n// Campo campo = modulo.getCampoChiave();\n// campo.setVisibileVistaDefault(false);\n// campo.setPresenteScheda(false);\n// Vista vista = modulo.getVistaDefault();\n// vista.getElement\n// Campo campo = vista.getCampo(modulo.getCampoChiave());\n\n\n\n /* aggiunge il Portale Navigatore al pannello placeholder */\n nav = this.getNavigatore();\n portale = nav.getPortaleNavigatore();\n this.getPanNavigatore().add(portale);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }",
"public void inicializar();",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"public void asignarVida();",
"@Override\n\tpublic boolean isPublic() {\n\t\treturn false;\n\t}",
"public void setPublic()\n {\n ensureLoaded();\n m_flags.setPublic();\n setModified(true);\n }",
"private UsineJoueur() {}",
"@Override\n public void pub() {\n // can only be public\n }",
"public void inizializza() {\n\n /* invoca il metodo sovrascritto della superclasse */\n super.inizializza();\n\n }",
"Petunia() {\r\n\t\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"public final void nonRedefinissableParEnfant(){\n\n }",
"protected void agregarUbicacion(){\n\n\n\n }",
"@Override\n\t\t\tpublic void visit(MethodDeclaration arg0, Object arg1) {\n\t\t\t\tif((arg0.getModifiers() & Modifier.PUBLIC) == Modifier.PUBLIC) {\n\t\t\t\t\t\tif(arg0.getName().substring(0, 3) == \"get\" || arg0.getName().substring(0, 3) == \"set\")\n\t\t\t\t\t\t\tpublicAcces.add(new Pair(arg0.getName() + \"( \"+planeL(arg0.getParameters()) +\") :\" + arg0.getType().toString(), Character.toLowerCase(arg0.getName().substring(3).charAt(0)) + (arg0.getName().substring(3).length() > 1 ? arg0.getName().substring(3).substring(1) : \"\")));\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tpublicAcces.add(new Pair(arg0.getName() + \"( \"+planeL(arg0.getParameters()) +\") :\" + arg0.getType().toString(), Character.toLowerCase(arg0.getName().substring(3).charAt(0)) + (arg0.getName().substring(3).length() > 1 ? arg0.getName().substring(3).substring(1) : \"\")));\n\t\t\t\t\t\tuses(arg0.getParameters());\n\t\t\t\t}\n\t\t\t\tsuper.visit(arg0, arg1);\n\t\t\t}",
"private void reposicionarPersonajes() {\n // TODO implement here\n }",
"public Oveja() {\r\n this.nombreOveja = \"Oveja\";\r\n }",
"public void estiloAcierto() {\r\n\t\t /**Bea y Jose**/\t\t\r\n \r\n\t}",
"@Override\n public String cualquierMetodo2() {\n return \"Método implementado en la clase hija viaje de incentivo\";\n }",
"private ControleurAcceuil(){ }",
"public void setPublicAccess(Boolean publicAccess) {\n this.publicAccess = publicAccess;\n }",
"public void checkPublic() {\n }",
"private void abrirVentanaChatPrivada() {\n\t\tthis.chatPublico = new MenuVentanaChat(\"Sala\", this, false);\n\t}",
"private void mostrarEmenta (){\n }",
"public void setIsPublic(boolean isPublic)\n {\n this.isPublic = isPublic;\n }",
"public void setPrivado(Boolean privado) {\n this.privado = privado;\n }",
"public void asetaTeksti(){\n }",
"@Override\n public void memoria() {\n \n }",
"private RepositorioOrdemServicoHBM() {\n\n\t}",
"public void setDescServicioPublico(Boolean descServicioPublico){\n this.descServicioPublico = descServicioPublico;\n }",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"public void sendeSpielfeld();",
"private DittaAutonoleggio(){\n \n }",
"private void limpiarDatos() {\n\t\t\n\t}",
"private QuadradoPerfeito() {\n }",
"public PrnPrivitakVo() {\r\n\t\tsuper();\r\n\t}",
"@Override\r\n\tpublic void crearVehiculo() {\n\t\t\r\n\t}",
"public interface IEstado {\n\n /**\n * Modifica el estado del objeto publicacion\n *\n * @return String\n */\n String ejecutarAccion();\n}",
"@Override\r\n\tpublic void horario() {\n\t\t\r\n\t}",
"@Override\n protected void adicionar(Funcionario funcionario) {\n\n }",
"void agregarVotoPlayLIst(Voto voto) throws ExceptionDao;",
"public void crearAutomovil(){\r\n automovil = new Vehiculo();\r\n automovil.setMarca(\"BMW\");\r\n automovil.setModelo(2010);\r\n automovil.setPlaca(\"TWS435\");\r\n }",
"protected void inicializar(){\n kr = new CreadorHojas(wp);\n jPanel1.add(wp,0); // inserta el workspace en el panel principal\n wp.insertarHoja(\"Hoja 1\");\n //wp.insertarHoja(\"Hoja 2\");\n //wp.insertarHoja(\"Hoja 3\");\n }",
"public interface Pasticcere {\r\n //No attributes\r\n public void accendiForno();\r\n}",
"public VentanaPrincipal() throws IOException {\n initComponents();\n buscador = new Busqueda();\n }",
"public void operar() {\n\t\tOperacionMetodoRef op2 = MetRefApp::referenciaMedodoStatic;\n\t\top2.saludar();\n\t}",
"public Alojamiento() {\r\n\t}",
"public void limpiarMemoria();",
"public AfiliadoVista() {\r\n }",
"void usada() {\n mazo.habilitarCartaEspecial(this);\n }",
"protected void creaPagine() {\n Pagina pag;\n Pannello pan;\n\n try { // prova ad eseguire il codice\n\n /* crea la pagina e aggiunge campi e pannelli */\n pag = this.addPagina(\"generale\");\n\n pan = PannelloFactory.orizzontale(this);\n pan.add(Cam.data);\n pan.add(Cam.importo.get());\n pan.add(Cam.note.get());\n pag.add(pan);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }",
"protected void elaboraPagina() {\n testoPagina = VUOTA;\n\n //header\n testoPagina += this.elaboraHead();\n\n //body\n testoPagina += this.elaboraBody();\n\n //footer\n //di fila nella stessa riga, senza ritorno a capo (se inizia con <include>)\n testoPagina += this.elaboraFooter();\n\n //--registra la pagina principale\n if (dimensioniValide()) {\n testoPagina = testoPagina.trim();\n\n if (pref.isBool(FlowCost.USA_DEBUG)) {\n testoPagina = titoloPagina + A_CAPO + testoPagina;\n titoloPagina = PAGINA_PROVA;\n }// end of if cycle\n\n //--nelle sottopagine non eseguo il controllo e le registro sempre (per adesso)\n if (checkPossoRegistrare(titoloPagina, testoPagina) || pref.isBool(FlowCost.USA_DEBUG)) {\n appContext.getBean(AQueryWrite.class, titoloPagina, testoPagina, summary);\n logger.info(\"Registrata la pagina: \" + titoloPagina);\n } else {\n logger.info(\"Non modificata la pagina: \" + titoloPagina);\n }// end of if/else cycle\n\n //--registra eventuali sottopagine\n if (usaBodySottopagine) {\n uploadSottoPagine();\n }// end of if cycle\n }// end of if cycle\n\n }",
"public VotacaoSegundoDia() {\n\n\t}",
"public void inicia() { \r\n\t\tventana=new VentanaMuestraServicios(this);\r\n\t\tventana.abre();\r\n\t}",
"public CrearQuedadaVista() {\n }",
"@Override\n public void mostrar(){\n super.mostrar(); //Para evitar que este metodo se prefiera antes que el de padre(por que tienen el mismo nombre)\n //lo llamamos con super\n System.out.println(\"Nro de Paginas: \" + this.nroPag);\n }",
"public DarAyudaAcceso() {\r\n }",
"private stendhal() {\n\t}",
"private ObiWanKenobi(){\n }",
"public void makePublic(String route) throws IOException {\n if (!hasRoute(route)) {\n throw new IllegalArgumentException(ROUTE+route+NOT_FOUND);\n }\n ServiceDef service = registry.get(route);\n if (service == null) {\n throw new IllegalArgumentException(ROUTE+route+NOT_FOUND);\n }\n if (service.isPrivate()) {\n // set it to public\n service.setPrivate(false);\n log.info(\"Converted {} to PUBLIC\", route);\n advertiseRoute(route);\n }\n }",
"@Override // Métodos que fazem a anulação\n\tpublic void vota() {\n\t\t\n\t}",
"public Propiedad(){\n\t}",
"public void datos_elegidos(){\n\n\n }",
"public MPaciente() {\r\n\t}",
"public VentanaPrincipal() {\n initComponents();\n editar = false;\n }",
"public boolean getIsPublic()\n {\n return isPublic;\n }",
"protected Asignatura()\r\n\t{}",
"public void limpiarCampos() {\n\t\ttema = new Tema();\n\t\ttemaSeleccionado = new Tema();\n\t\tmultimedia = new Multimedia();\n\t}",
"public ControladorPrueba() {\r\n }",
"public Plato(){\n\t\t\n\t}",
"public Transportista() {\n }",
"public AjusteSaldoAFavorRespuesta() {\n\t}",
"@Override\r\n\tprotected void agregarObjeto() {\r\n\t\t// opcion 1 es agregar nuevo justificativo\r\n\t\tthis.setTitle(\"PROCESOS - PERMISOS INDIVIDUALES (AGREGANDO)\");\r\n\t\tthis.opcion = 1;\r\n\t\tactivarFormulario();\r\n\t\tlimpiarTabla();\r\n\t\tthis.panelBotones.habilitar();\r\n\t}",
"public void mostrarPersona(){\r\n System.out.println(\"Nombre: \" + persona.getNombre());\r\n System.out.println(\"Cedula: \" + persona.getCedula());\r\n }",
"public SlanjePoruke() {\n }",
"public void altaUsuario();",
"@Override\r\n\tprotected void verificaUtentePrivilegiato() {\n\r\n\t}",
"public FiltroMicrorregiao() {\r\n }",
"public void crearPersona(){\r\n persona = new Persona();\r\n persona.setNombre(\"Jose\");\r\n persona.setCedula(12345678);\r\n }",
"public void setIsPublic( boolean isPublic )\n\t{\n\t\tthis.isPublic\t= isPublic;\n\t}",
"private void crearVista() {\n\t\tVista vista = Vista.getInstancia();\n\t\tvista.addObservador(this);\n\n\t}",
"public Persona()\n\t{\n\t\tnombre = \"--\"; //DEFINES POR DEFAULT LAS VARIABLES;\n\t\tapellido = \"--\"; //DEFINES POR DEFAULT LAS VARIABLES;\n\t\tedad = 0; //DEFINES POR DEFAULT LAS VARIABLES;\n\t\talias = \"--\"; //DEFINES POR DEFAULT LAS VARIABLES;\t\t\n\t}",
"@Override\n\tpublic void iniciar() {\n\t\t\n\t}",
"public Caso_de_uso () {\n }",
"@Override\n\tpublic void darMasaje() {\n\t\t\n\t}",
"public Polipara() {\n // Iniciar el programa cargando el archivo de propiedades si existe.\n\n if (this.validarSerializacion()) {\n int response = JOptionPane.showConfirmDialog(null, \"Hay una versión anterior de una copa,\\n\"\n + \"¿Desea cargar esa versión? (Al seleccionar \\\"No\\\", se eliminará el avance anterior y se cargará una copa nueva.)\");\n if (response == 0) {\n this.cargarSerializacion();\n } else {\n this.iniciarCopa();\n }\n } else {\n this.iniciarCopa();\n }\n }",
"public boolean isPublic() {\r\n\t\treturn isPublic;\r\n\t}",
"public PresentacionPartido(Object partido) {\n initComponents(partido);\n }",
"public void setIsPublic(Boolean isPublic) {\n\t\tthis.isPublic = isPublic;\n\t}",
"public void MieiOrdini()\r\n {\r\n getOrdini();\r\n\r\n }",
"public Boolean getDescServicioPublico(){\n return this.descServicioPublico;\n }",
"public void inicio(){\n }",
"public void myPublicMethod() {\n\t\t\n\t}",
"public void selecao () {}",
"public VPacientes() {\n initComponents();\n inicializar();\n }",
"@Override\r\n public void salir() {\n }",
"public IzvajalecZdravstvenihStoritev() {\n\t}",
"@Override\n public void buildPersonalidad() {\n this.personaje.setPersonalidad(\"Pacientes y estrategas.\");\n }",
"@Override\n protected void elaboraParametri() {\n super.elaboraParametri();\n titoloPagina = TITOLO_PAGINA;\n }"
] |
[
"0.6473567",
"0.6467128",
"0.63592935",
"0.6216035",
"0.6034508",
"0.5990438",
"0.5926763",
"0.5921301",
"0.59082276",
"0.58965117",
"0.58657455",
"0.5857958",
"0.5857889",
"0.58438355",
"0.58305085",
"0.58241075",
"0.5816187",
"0.5756648",
"0.575294",
"0.5749313",
"0.5746864",
"0.57267225",
"0.572075",
"0.57110935",
"0.56995326",
"0.5679484",
"0.5678742",
"0.564944",
"0.56430763",
"0.5635926",
"0.5625037",
"0.56223553",
"0.56218415",
"0.56172556",
"0.5609585",
"0.56091404",
"0.5595158",
"0.559501",
"0.55746126",
"0.55606705",
"0.5544632",
"0.5540974",
"0.553208",
"0.5527426",
"0.55259407",
"0.5517855",
"0.55159396",
"0.55093586",
"0.55005866",
"0.54993355",
"0.5495071",
"0.54913366",
"0.5488259",
"0.5485542",
"0.54837954",
"0.5475878",
"0.5475019",
"0.5471228",
"0.54701644",
"0.54692096",
"0.54660445",
"0.5464443",
"0.54617506",
"0.5449757",
"0.5444249",
"0.54409075",
"0.5439161",
"0.5434015",
"0.5433309",
"0.54278237",
"0.54241973",
"0.54233223",
"0.5421823",
"0.5420385",
"0.54194605",
"0.5417391",
"0.5415744",
"0.5413589",
"0.541312",
"0.5412571",
"0.5409087",
"0.53954536",
"0.538642",
"0.5383591",
"0.53832203",
"0.53825414",
"0.53801864",
"0.53793",
"0.53773534",
"0.53741884",
"0.5364214",
"0.53563166",
"0.53549325",
"0.5353316",
"0.53507096",
"0.53460354",
"0.53442943",
"0.5336108",
"0.5330405",
"0.5329608",
"0.5326314"
] |
0.0
|
-1
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.