repo stringlengths 7 58 | path stringlengths 12 218 | func_name stringlengths 3 140 | original_string stringlengths 73 34.1k | language stringclasses 1
value | code stringlengths 73 34.1k | code_tokens list | docstring stringlengths 3 16k | docstring_tokens list | sha stringlengths 40 40 | url stringlengths 105 339 | partition stringclasses 1
value |
|---|---|---|---|---|---|---|---|---|---|---|---|
UrielCh/ovh-java-sdk | ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java | ApiOvhTelephony.billingAccount_historyTollfreeConsumption_GET | public ArrayList<Date> billingAccount_historyTollfreeConsumption_GET(String billingAccount) throws IOException {
String qPath = "/telephony/{billingAccount}/historyTollfreeConsumption";
StringBuilder sb = path(qPath, billingAccount);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, ... | java | public ArrayList<Date> billingAccount_historyTollfreeConsumption_GET(String billingAccount) throws IOException {
String qPath = "/telephony/{billingAccount}/historyTollfreeConsumption";
StringBuilder sb = path(qPath, billingAccount);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, ... | [
"public",
"ArrayList",
"<",
"Date",
">",
"billingAccount_historyTollfreeConsumption_GET",
"(",
"String",
"billingAccount",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/telephony/{billingAccount}/historyTollfreeConsumption\"",
";",
"StringBuilder",
"sb",
"=",... | Previous tollfree bill
REST: GET /telephony/{billingAccount}/historyTollfreeConsumption
@param billingAccount [required] The name of your billingAccount | [
"Previous",
"tollfree",
"bill"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java#L4620-L4625 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java | ApiOvhTelephony.billingAccount_conference_serviceName_webAccess_POST | public OvhConferenceWebAccess billingAccount_conference_serviceName_webAccess_POST(String billingAccount, String serviceName, OvhConferenceWebAccessTypeEnum type) throws IOException {
String qPath = "/telephony/{billingAccount}/conference/{serviceName}/webAccess";
StringBuilder sb = path(qPath, billingAccount, serv... | java | public OvhConferenceWebAccess billingAccount_conference_serviceName_webAccess_POST(String billingAccount, String serviceName, OvhConferenceWebAccessTypeEnum type) throws IOException {
String qPath = "/telephony/{billingAccount}/conference/{serviceName}/webAccess";
StringBuilder sb = path(qPath, billingAccount, serv... | [
"public",
"OvhConferenceWebAccess",
"billingAccount_conference_serviceName_webAccess_POST",
"(",
"String",
"billingAccount",
",",
"String",
"serviceName",
",",
"OvhConferenceWebAccessTypeEnum",
"type",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/telephony/{bi... | Add a public web access to your conference
REST: POST /telephony/{billingAccount}/conference/{serviceName}/webAccess
@param type [required] The type of the conference web access : read or write
@param billingAccount [required] The name of your billingAccount
@param serviceName [required] | [
"Add",
"a",
"public",
"web",
"access",
"to",
"your",
"conference"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java#L4807-L4814 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java | ApiOvhTelephony.billingAccount_oldPhone_GET | public ArrayList<OvhPhone> billingAccount_oldPhone_GET(String billingAccount) throws IOException {
String qPath = "/telephony/{billingAccount}/oldPhone";
StringBuilder sb = path(qPath, billingAccount);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t16);
} | java | public ArrayList<OvhPhone> billingAccount_oldPhone_GET(String billingAccount) throws IOException {
String qPath = "/telephony/{billingAccount}/oldPhone";
StringBuilder sb = path(qPath, billingAccount);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t16);
} | [
"public",
"ArrayList",
"<",
"OvhPhone",
">",
"billingAccount_oldPhone_GET",
"(",
"String",
"billingAccount",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/telephony/{billingAccount}/oldPhone\"",
";",
"StringBuilder",
"sb",
"=",
"path",
"(",
"qPath",
"... | List old phones archived as they were not returned after an RMA
REST: GET /telephony/{billingAccount}/oldPhone
@param billingAccount [required] The name of your billingAccount | [
"List",
"old",
"phones",
"archived",
"as",
"they",
"were",
"not",
"returned",
"after",
"an",
"RMA"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java#L5006-L5011 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java | ApiOvhTelephony.billingAccount_billingAccountSite_POST | public void billingAccount_billingAccountSite_POST(String billingAccount, String billingAccountSite) throws IOException {
String qPath = "/telephony/{billingAccount}/billingAccountSite";
StringBuilder sb = path(qPath, billingAccount);
HashMap<String, Object>o = new HashMap<String, Object>();
addBody(o, "billing... | java | public void billingAccount_billingAccountSite_POST(String billingAccount, String billingAccountSite) throws IOException {
String qPath = "/telephony/{billingAccount}/billingAccountSite";
StringBuilder sb = path(qPath, billingAccount);
HashMap<String, Object>o = new HashMap<String, Object>();
addBody(o, "billing... | [
"public",
"void",
"billingAccount_billingAccountSite_POST",
"(",
"String",
"billingAccount",
",",
"String",
"billingAccountSite",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/telephony/{billingAccount}/billingAccountSite\"",
";",
"StringBuilder",
"sb",
"=",
... | Used to overwrite current billing account feature by the billing account site
REST: POST /telephony/{billingAccount}/billingAccountSite
@param billingAccountSite [required] Billing account site (master billing account)
@param billingAccount [required] The name of your billingAccount | [
"Used",
"to",
"overwrite",
"current",
"billing",
"account",
"feature",
"by",
"the",
"billing",
"account",
"site"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java#L5048-L5054 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java | ApiOvhTelephony.billingAccount_allowedCreditThreshold_GET | public ArrayList<OvhPrice> billingAccount_allowedCreditThreshold_GET(String billingAccount) throws IOException {
String qPath = "/telephony/{billingAccount}/allowedCreditThreshold";
StringBuilder sb = path(qPath, billingAccount);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t17)... | java | public ArrayList<OvhPrice> billingAccount_allowedCreditThreshold_GET(String billingAccount) throws IOException {
String qPath = "/telephony/{billingAccount}/allowedCreditThreshold";
StringBuilder sb = path(qPath, billingAccount);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t17)... | [
"public",
"ArrayList",
"<",
"OvhPrice",
">",
"billingAccount_allowedCreditThreshold_GET",
"(",
"String",
"billingAccount",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/telephony/{billingAccount}/allowedCreditThreshold\"",
";",
"StringBuilder",
"sb",
"=",
"... | Get the allowed creditThreshold for this billing account
REST: GET /telephony/{billingAccount}/allowedCreditThreshold
@param billingAccount [required] The name of your billingAccount | [
"Get",
"the",
"allowed",
"creditThreshold",
"for",
"this",
"billing",
"account"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java#L5330-L5335 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java | ApiOvhTelephony.billingAccount_screen_serviceName_screenLists_POST | public void billingAccount_screen_serviceName_screenLists_POST(String billingAccount, String serviceName, String callNumber, OvhScreenListNatureEnum nature, OvhScreenListTypeEnum type) throws IOException {
String qPath = "/telephony/{billingAccount}/screen/{serviceName}/screenLists";
StringBuilder sb = path(qPath, ... | java | public void billingAccount_screen_serviceName_screenLists_POST(String billingAccount, String serviceName, String callNumber, OvhScreenListNatureEnum nature, OvhScreenListTypeEnum type) throws IOException {
String qPath = "/telephony/{billingAccount}/screen/{serviceName}/screenLists";
StringBuilder sb = path(qPath, ... | [
"public",
"void",
"billingAccount_screen_serviceName_screenLists_POST",
"(",
"String",
"billingAccount",
",",
"String",
"serviceName",
",",
"String",
"callNumber",
",",
"OvhScreenListNatureEnum",
"nature",
",",
"OvhScreenListTypeEnum",
"type",
")",
"throws",
"IOException",
... | Create a new screen list rule
REST: POST /telephony/{billingAccount}/screen/{serviceName}/screenLists
@param type [required] The type of the generic screen list
@param nature [required] The nature of the generic screen list
@param callNumber [required] The callNumber of the generic screen list
@param billingAccount [r... | [
"Create",
"a",
"new",
"screen",
"list",
"rule"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java#L5431-L5439 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java | ApiOvhTelephony.billingAccount_number_serviceName_convertToLine_POST | public OvhOfferTask billingAccount_number_serviceName_convertToLine_POST(String billingAccount, String serviceName, String offer) throws IOException {
String qPath = "/telephony/{billingAccount}/number/{serviceName}/convertToLine";
StringBuilder sb = path(qPath, billingAccount, serviceName);
HashMap<String, Objec... | java | public OvhOfferTask billingAccount_number_serviceName_convertToLine_POST(String billingAccount, String serviceName, String offer) throws IOException {
String qPath = "/telephony/{billingAccount}/number/{serviceName}/convertToLine";
StringBuilder sb = path(qPath, billingAccount, serviceName);
HashMap<String, Objec... | [
"public",
"OvhOfferTask",
"billingAccount_number_serviceName_convertToLine_POST",
"(",
"String",
"billingAccount",
",",
"String",
"serviceName",
",",
"String",
"offer",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/telephony/{billingAccount}/number/{serviceName... | Schedule a conversion to line
REST: POST /telephony/{billingAccount}/number/{serviceName}/convertToLine
@param offer [required] The future offer of the converted number
@param billingAccount [required] The name of your billingAccount
@param serviceName [required] Name of the service | [
"Schedule",
"a",
"conversion",
"to",
"line"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java#L5680-L5687 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java | ApiOvhTelephony.billingAccount_number_serviceName_changeFeatureType_POST | public OvhTask billingAccount_number_serviceName_changeFeatureType_POST(String billingAccount, String serviceName, OvhTypeEnum featureType) throws IOException {
String qPath = "/telephony/{billingAccount}/number/{serviceName}/changeFeatureType";
StringBuilder sb = path(qPath, billingAccount, serviceName);
HashMap... | java | public OvhTask billingAccount_number_serviceName_changeFeatureType_POST(String billingAccount, String serviceName, OvhTypeEnum featureType) throws IOException {
String qPath = "/telephony/{billingAccount}/number/{serviceName}/changeFeatureType";
StringBuilder sb = path(qPath, billingAccount, serviceName);
HashMap... | [
"public",
"OvhTask",
"billingAccount_number_serviceName_changeFeatureType_POST",
"(",
"String",
"billingAccount",
",",
"String",
"serviceName",
",",
"OvhTypeEnum",
"featureType",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/telephony/{billingAccount}/number/{s... | Change the feature type of the phone number
REST: POST /telephony/{billingAccount}/number/{serviceName}/changeFeatureType
@param featureType [required] The new feature of the number
@param billingAccount [required] The name of your billingAccount
@param serviceName [required] Name of the service | [
"Change",
"the",
"feature",
"type",
"of",
"the",
"phone",
"number"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java#L5711-L5718 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java | ApiOvhTelephony.billingAccount_timeCondition_serviceName_condition_POST | public OvhTimeCondition billingAccount_timeCondition_serviceName_condition_POST(String billingAccount, String serviceName, OvhTimeConditionsDayEnum day, String hourBegin, String hourEnd, OvhTimeConditionsPolicyEnum policy) throws IOException {
String qPath = "/telephony/{billingAccount}/timeCondition/{serviceName}/co... | java | public OvhTimeCondition billingAccount_timeCondition_serviceName_condition_POST(String billingAccount, String serviceName, OvhTimeConditionsDayEnum day, String hourBegin, String hourEnd, OvhTimeConditionsPolicyEnum policy) throws IOException {
String qPath = "/telephony/{billingAccount}/timeCondition/{serviceName}/co... | [
"public",
"OvhTimeCondition",
"billingAccount_timeCondition_serviceName_condition_POST",
"(",
"String",
"billingAccount",
",",
"String",
"serviceName",
",",
"OvhTimeConditionsDayEnum",
"day",
",",
"String",
"hourBegin",
",",
"String",
"hourEnd",
",",
"OvhTimeConditionsPolicyEnu... | Create a new time condition rule
REST: POST /telephony/{billingAccount}/timeCondition/{serviceName}/condition
@param day [required] The day of the time condition
@param policy [required] The policy
@param hourBegin [required] The hour where the time condition begins (format : hhmm)
@param hourEnd [required] The hour w... | [
"Create",
"a",
"new",
"time",
"condition",
"rule"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java#L5805-L5815 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java | ApiOvhTelephony.billingAccount_timeCondition_serviceName_condition_id_DELETE | public void billingAccount_timeCondition_serviceName_condition_id_DELETE(String billingAccount, String serviceName, Long id) throws IOException {
String qPath = "/telephony/{billingAccount}/timeCondition/{serviceName}/condition/{id}";
StringBuilder sb = path(qPath, billingAccount, serviceName, id);
exec(qPath, "D... | java | public void billingAccount_timeCondition_serviceName_condition_id_DELETE(String billingAccount, String serviceName, Long id) throws IOException {
String qPath = "/telephony/{billingAccount}/timeCondition/{serviceName}/condition/{id}";
StringBuilder sb = path(qPath, billingAccount, serviceName, id);
exec(qPath, "D... | [
"public",
"void",
"billingAccount_timeCondition_serviceName_condition_id_DELETE",
"(",
"String",
"billingAccount",
",",
"String",
"serviceName",
",",
"Long",
"id",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/telephony/{billingAccount}/timeCondition/{serviceNa... | Delete the given screen list
REST: DELETE /telephony/{billingAccount}/timeCondition/{serviceName}/condition/{id}
@param billingAccount [required] The name of your billingAccount
@param serviceName [required]
@param id [required] Id of the object | [
"Delete",
"the",
"given",
"screen",
"list"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java#L5855-L5859 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java | ApiOvhTelephony.billingAccount_rsva_serviceName_scheduleRateCode_POST | public OvhDetailedRateCodeInformation billingAccount_rsva_serviceName_scheduleRateCode_POST(String billingAccount, String serviceName, String rateCode) throws IOException {
String qPath = "/telephony/{billingAccount}/rsva/{serviceName}/scheduleRateCode";
StringBuilder sb = path(qPath, billingAccount, serviceName);
... | java | public OvhDetailedRateCodeInformation billingAccount_rsva_serviceName_scheduleRateCode_POST(String billingAccount, String serviceName, String rateCode) throws IOException {
String qPath = "/telephony/{billingAccount}/rsva/{serviceName}/scheduleRateCode";
StringBuilder sb = path(qPath, billingAccount, serviceName);
... | [
"public",
"OvhDetailedRateCodeInformation",
"billingAccount_rsva_serviceName_scheduleRateCode_POST",
"(",
"String",
"billingAccount",
",",
"String",
"serviceName",
",",
"String",
"rateCode",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/telephony/{billingAccoun... | Schedule a new rate code for this sva
REST: POST /telephony/{billingAccount}/rsva/{serviceName}/scheduleRateCode
@param rateCode [required] The specified rate code
@param billingAccount [required] The name of your billingAccount
@param serviceName [required] | [
"Schedule",
"a",
"new",
"rate",
"code",
"for",
"this",
"sva"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java#L5951-L5958 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java | ApiOvhTelephony.billingAccount_rsva_serviceName_allowedRateCodes_GET | public ArrayList<OvhRateCodeInformation> billingAccount_rsva_serviceName_allowedRateCodes_GET(String billingAccount, String serviceName) throws IOException {
String qPath = "/telephony/{billingAccount}/rsva/{serviceName}/allowedRateCodes";
StringBuilder sb = path(qPath, billingAccount, serviceName);
String resp =... | java | public ArrayList<OvhRateCodeInformation> billingAccount_rsva_serviceName_allowedRateCodes_GET(String billingAccount, String serviceName) throws IOException {
String qPath = "/telephony/{billingAccount}/rsva/{serviceName}/allowedRateCodes";
StringBuilder sb = path(qPath, billingAccount, serviceName);
String resp =... | [
"public",
"ArrayList",
"<",
"OvhRateCodeInformation",
">",
"billingAccount_rsva_serviceName_allowedRateCodes_GET",
"(",
"String",
"billingAccount",
",",
"String",
"serviceName",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/telephony/{billingAccount}/rsva/{serv... | Compatible rate codes related to this value added service
REST: GET /telephony/{billingAccount}/rsva/{serviceName}/allowedRateCodes
@param billingAccount [required] The name of your billingAccount
@param serviceName [required] | [
"Compatible",
"rate",
"codes",
"related",
"to",
"this",
"value",
"added",
"service"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java#L6008-L6013 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java | ApiOvhTelephony.billingAccount_ovhPabx_serviceName_hunting_customStatus_POST | public OvhOvhPabxCustomStatus billingAccount_ovhPabx_serviceName_hunting_customStatus_POST(String billingAccount, String serviceName, String color, String description, String name) throws IOException {
String qPath = "/telephony/{billingAccount}/ovhPabx/{serviceName}/hunting/customStatus";
StringBuilder sb = path(q... | java | public OvhOvhPabxCustomStatus billingAccount_ovhPabx_serviceName_hunting_customStatus_POST(String billingAccount, String serviceName, String color, String description, String name) throws IOException {
String qPath = "/telephony/{billingAccount}/ovhPabx/{serviceName}/hunting/customStatus";
StringBuilder sb = path(q... | [
"public",
"OvhOvhPabxCustomStatus",
"billingAccount_ovhPabx_serviceName_hunting_customStatus_POST",
"(",
"String",
"billingAccount",
",",
"String",
"serviceName",
",",
"String",
"color",
",",
"String",
"description",
",",
"String",
"name",
")",
"throws",
"IOException",
"{",... | Create a new custom status
REST: POST /telephony/{billingAccount}/ovhPabx/{serviceName}/hunting/customStatus
@param name [required] The name of the status (Pause, Mission, etc...)
@param color [required] The color (in hexadecimal) of the status that will be displayed on agent banner web application
@param description ... | [
"Create",
"a",
"new",
"custom",
"status"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java#L6542-L6551 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java | ApiOvhTelephony.billingAccount_ovhPabx_serviceName_dialplan_dialplanId_extension_extensionId_conditionTime_POST | public OvhOvhPabxDialplanExtensionConditionTime billingAccount_ovhPabx_serviceName_dialplan_dialplanId_extension_extensionId_conditionTime_POST(String billingAccount, String serviceName, Long dialplanId, Long extensionId, Date timeFrom, Date timeTo, OvhOvhPabxDialplanExtensionConditionTimeWeekDayEnum weekDay) throws IO... | java | public OvhOvhPabxDialplanExtensionConditionTime billingAccount_ovhPabx_serviceName_dialplan_dialplanId_extension_extensionId_conditionTime_POST(String billingAccount, String serviceName, Long dialplanId, Long extensionId, Date timeFrom, Date timeTo, OvhOvhPabxDialplanExtensionConditionTimeWeekDayEnum weekDay) throws IO... | [
"public",
"OvhOvhPabxDialplanExtensionConditionTime",
"billingAccount_ovhPabx_serviceName_dialplan_dialplanId_extension_extensionId_conditionTime_POST",
"(",
"String",
"billingAccount",
",",
"String",
"serviceName",
",",
"Long",
"dialplanId",
",",
"Long",
"extensionId",
",",
"Date",
... | Create a new time condition for an extension
REST: POST /telephony/{billingAccount}/ovhPabx/{serviceName}/dialplan/{dialplanId}/extension/{extensionId}/conditionTime
@param timeTo [required] The time of the day when the extension will stop to be executed
@param timeFrom [required] The time of the day when the extensio... | [
"Create",
"a",
"new",
"time",
"condition",
"for",
"an",
"extension"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java#L7100-L7109 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java | ApiOvhTelephony.billingAccount_ovhPabx_serviceName_dialplan_dialplanId_extension_extensionId_rule_POST | public OvhOvhPabxDialplanExtensionRule billingAccount_ovhPabx_serviceName_dialplan_dialplanId_extension_extensionId_rule_POST(String billingAccount, String serviceName, Long dialplanId, Long extensionId, OvhOvhPabxDialplanExtensionRuleActionEnum action, String actionParam, Boolean negativeAction, Long position) throws ... | java | public OvhOvhPabxDialplanExtensionRule billingAccount_ovhPabx_serviceName_dialplan_dialplanId_extension_extensionId_rule_POST(String billingAccount, String serviceName, Long dialplanId, Long extensionId, OvhOvhPabxDialplanExtensionRuleActionEnum action, String actionParam, Boolean negativeAction, Long position) throws ... | [
"public",
"OvhOvhPabxDialplanExtensionRule",
"billingAccount_ovhPabx_serviceName_dialplan_dialplanId_extension_extensionId_rule_POST",
"(",
"String",
"billingAccount",
",",
"String",
"serviceName",
",",
"Long",
"dialplanId",
",",
"Long",
"extensionId",
",",
"OvhOvhPabxDialplanExtensi... | Create a new rule for an extension
REST: POST /telephony/{billingAccount}/ovhPabx/{serviceName}/dialplan/{dialplanId}/extension/{extensionId}/rule
@param actionParam [required] The parameter of the chosen action
@param action [required] The action made by the rule
@param position [required] The position of the rule in... | [
"Create",
"a",
"new",
"rule",
"for",
"an",
"extension"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java#L7312-L7322 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java | ApiOvhTelephony.billingAccount_ovhPabx_serviceName_dialplan_dialplanId_extension_POST | public OvhOvhPabxDialplanExtension billingAccount_ovhPabx_serviceName_dialplan_dialplanId_extension_POST(String billingAccount, String serviceName, Long dialplanId, Boolean enable, Long position, OvhSchedulerCategoryEnum schedulerCategory, OvhOvhPabxDialplanExtensionConditionScreenListTypeEnum screenListType) throws IO... | java | public OvhOvhPabxDialplanExtension billingAccount_ovhPabx_serviceName_dialplan_dialplanId_extension_POST(String billingAccount, String serviceName, Long dialplanId, Boolean enable, Long position, OvhSchedulerCategoryEnum schedulerCategory, OvhOvhPabxDialplanExtensionConditionScreenListTypeEnum screenListType) throws IO... | [
"public",
"OvhOvhPabxDialplanExtension",
"billingAccount_ovhPabx_serviceName_dialplan_dialplanId_extension_POST",
"(",
"String",
"billingAccount",
",",
"String",
"serviceName",
",",
"Long",
"dialplanId",
",",
"Boolean",
"enable",
",",
"Long",
"position",
",",
"OvhSchedulerCateg... | Create a new extension for a dialplan
REST: POST /telephony/{billingAccount}/ovhPabx/{serviceName}/dialplan/{dialplanId}/extension
@param enable [required] True to enable the extension
@param schedulerCategory [required] Additionnal conditions will be used from this chosen scheduler category
@param position [required]... | [
"Create",
"a",
"new",
"extension",
"for",
"a",
"dialplan"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java#L7351-L7361 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java | ApiOvhTelephony.billingAccount_ovhPabx_serviceName_dialplan_dialplanId_DELETE | public void billingAccount_ovhPabx_serviceName_dialplan_dialplanId_DELETE(String billingAccount, String serviceName, Long dialplanId) throws IOException {
String qPath = "/telephony/{billingAccount}/ovhPabx/{serviceName}/dialplan/{dialplanId}";
StringBuilder sb = path(qPath, billingAccount, serviceName, dialplanId)... | java | public void billingAccount_ovhPabx_serviceName_dialplan_dialplanId_DELETE(String billingAccount, String serviceName, Long dialplanId) throws IOException {
String qPath = "/telephony/{billingAccount}/ovhPabx/{serviceName}/dialplan/{dialplanId}";
StringBuilder sb = path(qPath, billingAccount, serviceName, dialplanId)... | [
"public",
"void",
"billingAccount_ovhPabx_serviceName_dialplan_dialplanId_DELETE",
"(",
"String",
"billingAccount",
",",
"String",
"serviceName",
",",
"Long",
"dialplanId",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/telephony/{billingAccount}/ovhPabx/{servic... | Delete the given dialplan
REST: DELETE /telephony/{billingAccount}/ovhPabx/{serviceName}/dialplan/{dialplanId}
@param billingAccount [required] The name of your billingAccount
@param serviceName [required]
@param dialplanId [required] | [
"Delete",
"the",
"given",
"dialplan"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java#L7401-L7405 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java | ApiOvhTelephony.billingAccount_ovhPabx_serviceName_dialplan_POST | public OvhOvhPabxDialplan billingAccount_ovhPabx_serviceName_dialplan_POST(String billingAccount, String serviceName, Boolean anonymousRejection, String name, OvhOvhPabxDialplanNumberPresentationEnum showCallerNumber, Long transferTimeout) throws IOException {
String qPath = "/telephony/{billingAccount}/ovhPabx/{serv... | java | public OvhOvhPabxDialplan billingAccount_ovhPabx_serviceName_dialplan_POST(String billingAccount, String serviceName, Boolean anonymousRejection, String name, OvhOvhPabxDialplanNumberPresentationEnum showCallerNumber, Long transferTimeout) throws IOException {
String qPath = "/telephony/{billingAccount}/ovhPabx/{serv... | [
"public",
"OvhOvhPabxDialplan",
"billingAccount_ovhPabx_serviceName_dialplan_POST",
"(",
"String",
"billingAccount",
",",
"String",
"serviceName",
",",
"Boolean",
"anonymousRejection",
",",
"String",
"name",
",",
"OvhOvhPabxDialplanNumberPresentationEnum",
"showCallerNumber",
","... | Create a new dialplan
REST: POST /telephony/{billingAccount}/ovhPabx/{serviceName}/dialplan
@param transferTimeout [required] The timeout (in seconds) when bridging calls
@param anonymousRejection [required] Reject (hangup) anonymous calls
@param name [required] The dialplan name
@param showCallerNumber [required] The... | [
"Create",
"a",
"new",
"dialplan"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java#L7432-L7442 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java | ApiOvhTelephony.billingAccount_ovhPabx_serviceName_menu_menuId_entry_POST | public OvhOvhPabxMenuEntry billingAccount_ovhPabx_serviceName_menu_menuId_entry_POST(String billingAccount, String serviceName, Long menuId, OvhOvhPabxIvrMenuEntryActionEnum action, String actionParam, String dtmf, Long position) throws IOException {
String qPath = "/telephony/{billingAccount}/ovhPabx/{serviceName}/m... | java | public OvhOvhPabxMenuEntry billingAccount_ovhPabx_serviceName_menu_menuId_entry_POST(String billingAccount, String serviceName, Long menuId, OvhOvhPabxIvrMenuEntryActionEnum action, String actionParam, String dtmf, Long position) throws IOException {
String qPath = "/telephony/{billingAccount}/ovhPabx/{serviceName}/m... | [
"public",
"OvhOvhPabxMenuEntry",
"billingAccount_ovhPabx_serviceName_menu_menuId_entry_POST",
"(",
"String",
"billingAccount",
",",
"String",
"serviceName",
",",
"Long",
"menuId",
",",
"OvhOvhPabxIvrMenuEntryActionEnum",
"action",
",",
"String",
"actionParam",
",",
"String",
... | Create a new menu entry
REST: POST /telephony/{billingAccount}/ovhPabx/{serviceName}/menu/{menuId}/entry
@param dtmf [required] The DTMF that triggers the action
@param position [required] The position of the entry in the menu
@param action [required] The action triggered by the DTMF
@param actionParam [required] The ... | [
"Create",
"a",
"new",
"menu",
"entry"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java#L7471-L7481 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java | ApiOvhTelephony.billingAccount_ovhPabx_serviceName_menu_menuId_entry_entryId_DELETE | public void billingAccount_ovhPabx_serviceName_menu_menuId_entry_entryId_DELETE(String billingAccount, String serviceName, Long menuId, Long entryId) throws IOException {
String qPath = "/telephony/{billingAccount}/ovhPabx/{serviceName}/menu/{menuId}/entry/{entryId}";
StringBuilder sb = path(qPath, billingAccount, ... | java | public void billingAccount_ovhPabx_serviceName_menu_menuId_entry_entryId_DELETE(String billingAccount, String serviceName, Long menuId, Long entryId) throws IOException {
String qPath = "/telephony/{billingAccount}/ovhPabx/{serviceName}/menu/{menuId}/entry/{entryId}";
StringBuilder sb = path(qPath, billingAccount, ... | [
"public",
"void",
"billingAccount_ovhPabx_serviceName_menu_menuId_entry_entryId_DELETE",
"(",
"String",
"billingAccount",
",",
"String",
"serviceName",
",",
"Long",
"menuId",
",",
"Long",
"entryId",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/telephony/... | Delete the given menu entry
REST: DELETE /telephony/{billingAccount}/ovhPabx/{serviceName}/menu/{menuId}/entry/{entryId}
@param billingAccount [required] The name of your billingAccount
@param serviceName [required]
@param menuId [required]
@param entryId [required] | [
"Delete",
"the",
"given",
"menu",
"entry"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java#L7524-L7528 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java | ApiOvhTelephony.billingAccount_ovhPabx_serviceName_menu_POST | public OvhOvhPabxMenu billingAccount_ovhPabx_serviceName_menu_POST(String billingAccount, String serviceName, Long greetSound, Long greetSoundTts, Long invalidSound, Long invalidSoundTts, String name) throws IOException {
String qPath = "/telephony/{billingAccount}/ovhPabx/{serviceName}/menu";
StringBuilder sb = pa... | java | public OvhOvhPabxMenu billingAccount_ovhPabx_serviceName_menu_POST(String billingAccount, String serviceName, Long greetSound, Long greetSoundTts, Long invalidSound, Long invalidSoundTts, String name) throws IOException {
String qPath = "/telephony/{billingAccount}/ovhPabx/{serviceName}/menu";
StringBuilder sb = pa... | [
"public",
"OvhOvhPabxMenu",
"billingAccount_ovhPabx_serviceName_menu_POST",
"(",
"String",
"billingAccount",
",",
"String",
"serviceName",
",",
"Long",
"greetSound",
",",
"Long",
"greetSoundTts",
",",
"Long",
"invalidSound",
",",
"Long",
"invalidSoundTts",
",",
"String",
... | Create a new menu
REST: POST /telephony/{billingAccount}/ovhPabx/{serviceName}/menu
@param greetSound [required] The id of the OvhPabxSound played to greet
@param invalidSound [required] The id of the OvhPabxSound played when the caller uses an invalid DTMF
@param invalidSoundTts [required] The text to speech sound pl... | [
"Create",
"a",
"new",
"menu"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java#L7600-L7611 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java | ApiOvhTelephony.billingAccount_ovhPabx_serviceName_tts_POST | public void billingAccount_ovhPabx_serviceName_tts_POST(String billingAccount, String serviceName, String text, OvhOvhPabxTtsVoiceEnum voice) throws IOException {
String qPath = "/telephony/{billingAccount}/ovhPabx/{serviceName}/tts";
StringBuilder sb = path(qPath, billingAccount, serviceName);
HashMap<String, Ob... | java | public void billingAccount_ovhPabx_serviceName_tts_POST(String billingAccount, String serviceName, String text, OvhOvhPabxTtsVoiceEnum voice) throws IOException {
String qPath = "/telephony/{billingAccount}/ovhPabx/{serviceName}/tts";
StringBuilder sb = path(qPath, billingAccount, serviceName);
HashMap<String, Ob... | [
"public",
"void",
"billingAccount_ovhPabx_serviceName_tts_POST",
"(",
"String",
"billingAccount",
",",
"String",
"serviceName",
",",
"String",
"text",
",",
"OvhOvhPabxTtsVoiceEnum",
"voice",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/telephony/{billing... | Create a new text to speech
REST: POST /telephony/{billingAccount}/ovhPabx/{serviceName}/tts
@param text [required]
@param voice [required]
@param billingAccount [required] The name of your billingAccount
@param serviceName [required] | [
"Create",
"a",
"new",
"text",
"to",
"speech"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java#L7680-L7687 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java | ApiOvhTelephony.billingAccount_voicemail_serviceName_greetings_POST | public Long billingAccount_voicemail_serviceName_greetings_POST(String billingAccount, String serviceName, OvhVoicemailMessageFolderGreetingEnum dir, String documentId) throws IOException {
String qPath = "/telephony/{billingAccount}/voicemail/{serviceName}/greetings";
StringBuilder sb = path(qPath, billingAccount,... | java | public Long billingAccount_voicemail_serviceName_greetings_POST(String billingAccount, String serviceName, OvhVoicemailMessageFolderGreetingEnum dir, String documentId) throws IOException {
String qPath = "/telephony/{billingAccount}/voicemail/{serviceName}/greetings";
StringBuilder sb = path(qPath, billingAccount,... | [
"public",
"Long",
"billingAccount_voicemail_serviceName_greetings_POST",
"(",
"String",
"billingAccount",
",",
"String",
"serviceName",
",",
"OvhVoicemailMessageFolderGreetingEnum",
"dir",
",",
"String",
"documentId",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=... | Upload a new sound for a specific greeting. Return a task id.
REST: POST /telephony/{billingAccount}/voicemail/{serviceName}/greetings
@param dir [required] Greeting voicemail directory
@param documentId [required] Get the /me/document uuid generated
@param billingAccount [required] The name of your billingAccount
@pa... | [
"Upload",
"a",
"new",
"sound",
"for",
"a",
"specific",
"greeting",
".",
"Return",
"a",
"task",
"id",
"."
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java#L7798-L7806 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java | ApiOvhTelephony.billingAccount_voicemail_serviceName_migrateOnNewVersion_POST | public void billingAccount_voicemail_serviceName_migrateOnNewVersion_POST(String billingAccount, String serviceName) throws IOException {
String qPath = "/telephony/{billingAccount}/voicemail/{serviceName}/migrateOnNewVersion";
StringBuilder sb = path(qPath, billingAccount, serviceName);
exec(qPath, "POST", sb.to... | java | public void billingAccount_voicemail_serviceName_migrateOnNewVersion_POST(String billingAccount, String serviceName) throws IOException {
String qPath = "/telephony/{billingAccount}/voicemail/{serviceName}/migrateOnNewVersion";
StringBuilder sb = path(qPath, billingAccount, serviceName);
exec(qPath, "POST", sb.to... | [
"public",
"void",
"billingAccount_voicemail_serviceName_migrateOnNewVersion_POST",
"(",
"String",
"billingAccount",
",",
"String",
"serviceName",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/telephony/{billingAccount}/voicemail/{serviceName}/migrateOnNewVersion\"",
... | Change the voicemail on a new version to manager greetings, directories and extra settings.
REST: POST /telephony/{billingAccount}/voicemail/{serviceName}/migrateOnNewVersion
@param billingAccount [required] The name of your billingAccount
@param serviceName [required] | [
"Change",
"the",
"voicemail",
"on",
"a",
"new",
"version",
"to",
"manager",
"greetings",
"directories",
"and",
"extra",
"settings",
"."
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java#L7878-L7882 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java | ApiOvhTelephony.billingAccount_voicemail_serviceName_directories_GET | public ArrayList<Long> billingAccount_voicemail_serviceName_directories_GET(String billingAccount, String serviceName, OvhVoicemailMessageFolderDirectoryEnum dir) throws IOException {
String qPath = "/telephony/{billingAccount}/voicemail/{serviceName}/directories";
StringBuilder sb = path(qPath, billingAccount, ser... | java | public ArrayList<Long> billingAccount_voicemail_serviceName_directories_GET(String billingAccount, String serviceName, OvhVoicemailMessageFolderDirectoryEnum dir) throws IOException {
String qPath = "/telephony/{billingAccount}/voicemail/{serviceName}/directories";
StringBuilder sb = path(qPath, billingAccount, ser... | [
"public",
"ArrayList",
"<",
"Long",
">",
"billingAccount_voicemail_serviceName_directories_GET",
"(",
"String",
"billingAccount",
",",
"String",
"serviceName",
",",
"OvhVoicemailMessageFolderDirectoryEnum",
"dir",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
... | Voicemail directory messages
REST: GET /telephony/{billingAccount}/voicemail/{serviceName}/directories
@param dir [required] Filter the value of dir property (=)
@param billingAccount [required] The name of your billingAccount
@param serviceName [required] | [
"Voicemail",
"directory",
"messages"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java#L7892-L7898 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java | ApiOvhTelephony.billingAccount_voicemail_serviceName_directories_id_move_POST | public void billingAccount_voicemail_serviceName_directories_id_move_POST(String billingAccount, String serviceName, Long id, OvhVoicemailMessageFolderDirectoryEnum dir) throws IOException {
String qPath = "/telephony/{billingAccount}/voicemail/{serviceName}/directories/{id}/move";
StringBuilder sb = path(qPath, bi... | java | public void billingAccount_voicemail_serviceName_directories_id_move_POST(String billingAccount, String serviceName, Long id, OvhVoicemailMessageFolderDirectoryEnum dir) throws IOException {
String qPath = "/telephony/{billingAccount}/voicemail/{serviceName}/directories/{id}/move";
StringBuilder sb = path(qPath, bi... | [
"public",
"void",
"billingAccount_voicemail_serviceName_directories_id_move_POST",
"(",
"String",
"billingAccount",
",",
"String",
"serviceName",
",",
"Long",
"id",
",",
"OvhVoicemailMessageFolderDirectoryEnum",
"dir",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"... | Move the message to another directory
REST: POST /telephony/{billingAccount}/voicemail/{serviceName}/directories/{id}/move
@param dir [required] Greeting voicemail directory
@param billingAccount [required] The name of your billingAccount
@param serviceName [required]
@param id [required] Id of the object | [
"Move",
"the",
"message",
"to",
"another",
"directory"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java#L7909-L7915 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java | ApiOvhTelephony.billingAccount_voicemail_serviceName_directories_id_download_GET | public OvhPcsFile billingAccount_voicemail_serviceName_directories_id_download_GET(String billingAccount, String serviceName, Long id, OvhServiceVoicemailAudioFormatEnum format) throws IOException {
String qPath = "/telephony/{billingAccount}/voicemail/{serviceName}/directories/{id}/download";
StringBuilder sb = pa... | java | public OvhPcsFile billingAccount_voicemail_serviceName_directories_id_download_GET(String billingAccount, String serviceName, Long id, OvhServiceVoicemailAudioFormatEnum format) throws IOException {
String qPath = "/telephony/{billingAccount}/voicemail/{serviceName}/directories/{id}/download";
StringBuilder sb = pa... | [
"public",
"OvhPcsFile",
"billingAccount_voicemail_serviceName_directories_id_download_GET",
"(",
"String",
"billingAccount",
",",
"String",
"serviceName",
",",
"Long",
"id",
",",
"OvhServiceVoicemailAudioFormatEnum",
"format",
")",
"throws",
"IOException",
"{",
"String",
"qPa... | Get a url to download the sound file
REST: GET /telephony/{billingAccount}/voicemail/{serviceName}/directories/{id}/download
@param format [required] File format wanted
@param billingAccount [required] The name of your billingAccount
@param serviceName [required]
@param id [required] Id of the object | [
"Get",
"a",
"url",
"to",
"download",
"the",
"sound",
"file"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java#L7926-L7932 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java | ApiOvhTelephony.billingAccount_voicemail_serviceName_settings_changePassword_POST | public void billingAccount_voicemail_serviceName_settings_changePassword_POST(String billingAccount, String serviceName, String password) throws IOException {
String qPath = "/telephony/{billingAccount}/voicemail/{serviceName}/settings/changePassword";
StringBuilder sb = path(qPath, billingAccount, serviceName);
... | java | public void billingAccount_voicemail_serviceName_settings_changePassword_POST(String billingAccount, String serviceName, String password) throws IOException {
String qPath = "/telephony/{billingAccount}/voicemail/{serviceName}/settings/changePassword";
StringBuilder sb = path(qPath, billingAccount, serviceName);
... | [
"public",
"void",
"billingAccount_voicemail_serviceName_settings_changePassword_POST",
"(",
"String",
"billingAccount",
",",
"String",
"serviceName",
",",
"String",
"password",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/telephony/{billingAccount}/voicemail/{... | Change the voicemail password. It must be 4 digit
REST: POST /telephony/{billingAccount}/voicemail/{serviceName}/settings/changePassword
@param password [required] The password
@param billingAccount [required] The name of your billingAccount
@param serviceName [required] | [
"Change",
"the",
"voicemail",
"password",
".",
"It",
"must",
"be",
"4",
"digit"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java#L7971-L7977 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java | ApiOvhTelephony.billingAccount_trunk_serviceName_externalDisplayedNumber_POST | public OvhTrunkExternalDisplayedNumber billingAccount_trunk_serviceName_externalDisplayedNumber_POST(String billingAccount, String serviceName, Boolean autoValidation, String number) throws IOException {
String qPath = "/telephony/{billingAccount}/trunk/{serviceName}/externalDisplayedNumber";
StringBuilder sb = pat... | java | public OvhTrunkExternalDisplayedNumber billingAccount_trunk_serviceName_externalDisplayedNumber_POST(String billingAccount, String serviceName, Boolean autoValidation, String number) throws IOException {
String qPath = "/telephony/{billingAccount}/trunk/{serviceName}/externalDisplayedNumber";
StringBuilder sb = pat... | [
"public",
"OvhTrunkExternalDisplayedNumber",
"billingAccount_trunk_serviceName_externalDisplayedNumber_POST",
"(",
"String",
"billingAccount",
",",
"String",
"serviceName",
",",
"Boolean",
"autoValidation",
",",
"String",
"number",
")",
"throws",
"IOException",
"{",
"String",
... | External displayed number creation for a given trunk
REST: POST /telephony/{billingAccount}/trunk/{serviceName}/externalDisplayedNumber
@param number [required] External displayed number to create, in international format
@param autoValidation [required] External displayed number auto-validation. Only available for pa... | [
"External",
"displayed",
"number",
"creation",
"for",
"a",
"given",
"trunk"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java#L8117-L8125 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java | ApiOvhTelephony.billingAccount_trunk_serviceName_externalDisplayedNumber_number_DELETE | public void billingAccount_trunk_serviceName_externalDisplayedNumber_number_DELETE(String billingAccount, String serviceName, String number) throws IOException {
String qPath = "/telephony/{billingAccount}/trunk/{serviceName}/externalDisplayedNumber/{number}";
StringBuilder sb = path(qPath, billingAccount, serviceN... | java | public void billingAccount_trunk_serviceName_externalDisplayedNumber_number_DELETE(String billingAccount, String serviceName, String number) throws IOException {
String qPath = "/telephony/{billingAccount}/trunk/{serviceName}/externalDisplayedNumber/{number}";
StringBuilder sb = path(qPath, billingAccount, serviceN... | [
"public",
"void",
"billingAccount_trunk_serviceName_externalDisplayedNumber_number_DELETE",
"(",
"String",
"billingAccount",
",",
"String",
"serviceName",
",",
"String",
"number",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/telephony/{billingAccount}/trunk/{s... | Delete an external displayed number for a given trunk
REST: DELETE /telephony/{billingAccount}/trunk/{serviceName}/externalDisplayedNumber/{number}
@param billingAccount [required] The name of your billingAccount
@param serviceName [required] Name of the service
@param number [required] External displayed number linke... | [
"Delete",
"an",
"external",
"displayed",
"number",
"for",
"a",
"given",
"trunk"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java#L8150-L8154 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java | ApiOvhTelephony.billingAccount_trunk_serviceName_externalDisplayedNumber_number_validate_POST | public OvhTrunkExternalDisplayedNumberValidation billingAccount_trunk_serviceName_externalDisplayedNumber_number_validate_POST(String billingAccount, String serviceName, String number) throws IOException {
String qPath = "/telephony/{billingAccount}/trunk/{serviceName}/externalDisplayedNumber/{number}/validate";
St... | java | public OvhTrunkExternalDisplayedNumberValidation billingAccount_trunk_serviceName_externalDisplayedNumber_number_validate_POST(String billingAccount, String serviceName, String number) throws IOException {
String qPath = "/telephony/{billingAccount}/trunk/{serviceName}/externalDisplayedNumber/{number}/validate";
St... | [
"public",
"OvhTrunkExternalDisplayedNumberValidation",
"billingAccount_trunk_serviceName_externalDisplayedNumber_number_validate_POST",
"(",
"String",
"billingAccount",
",",
"String",
"serviceName",
",",
"String",
"number",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=... | Generate a phone call for validation. Returned validation code should be typed when asked.
REST: POST /telephony/{billingAccount}/trunk/{serviceName}/externalDisplayedNumber/{number}/validate
@param billingAccount [required] The name of your billingAccount
@param serviceName [required] Name of the service
@param numbe... | [
"Generate",
"a",
"phone",
"call",
"for",
"validation",
".",
"Returned",
"validation",
"code",
"should",
"be",
"typed",
"when",
"asked",
"."
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java#L8164-L8169 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java | ApiOvhTelephony.billingAccount_transferSecurityDeposit_POST | public void billingAccount_transferSecurityDeposit_POST(String billingAccount, Long amount, String billingAccountDestination) throws IOException {
String qPath = "/telephony/{billingAccount}/transferSecurityDeposit";
StringBuilder sb = path(qPath, billingAccount);
HashMap<String, Object>o = new HashMap<String, Ob... | java | public void billingAccount_transferSecurityDeposit_POST(String billingAccount, Long amount, String billingAccountDestination) throws IOException {
String qPath = "/telephony/{billingAccount}/transferSecurityDeposit";
StringBuilder sb = path(qPath, billingAccount);
HashMap<String, Object>o = new HashMap<String, Ob... | [
"public",
"void",
"billingAccount_transferSecurityDeposit_POST",
"(",
"String",
"billingAccount",
",",
"Long",
"amount",
",",
"String",
"billingAccountDestination",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/telephony/{billingAccount}/transferSecurityDeposit... | Transfer security deposit between two billing accounts
REST: POST /telephony/{billingAccount}/transferSecurityDeposit
@param amount [required] The amount, in euros, you want to transfer
@param billingAccountDestination [required] The destination billing account
@param billingAccount [required] The name of your billing... | [
"Transfer",
"security",
"deposit",
"between",
"two",
"billing",
"accounts"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java#L8192-L8199 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java | ApiOvhTelephony.billingAccount_offerTask_GET | public ArrayList<Long> billingAccount_offerTask_GET(String billingAccount, OvhOfferTaskActionEnum action, OvhTaskStatusEnum status, OvhOfferTaskTypeEnum type) throws IOException {
String qPath = "/telephony/{billingAccount}/offerTask";
StringBuilder sb = path(qPath, billingAccount);
query(sb, "action", action);
... | java | public ArrayList<Long> billingAccount_offerTask_GET(String billingAccount, OvhOfferTaskActionEnum action, OvhTaskStatusEnum status, OvhOfferTaskTypeEnum type) throws IOException {
String qPath = "/telephony/{billingAccount}/offerTask";
StringBuilder sb = path(qPath, billingAccount);
query(sb, "action", action);
... | [
"public",
"ArrayList",
"<",
"Long",
">",
"billingAccount_offerTask_GET",
"(",
"String",
"billingAccount",
",",
"OvhOfferTaskActionEnum",
"action",
",",
"OvhTaskStatusEnum",
"status",
",",
"OvhOfferTaskTypeEnum",
"type",
")",
"throws",
"IOException",
"{",
"String",
"qPat... | Operations on a telephony service's offer
REST: GET /telephony/{billingAccount}/offerTask
@param action [required] Filter the value of action property (=)
@param type [required] Filter the value of type property (=)
@param status [required] Filter the value of status property (=)
@param billingAccount [required] The n... | [
"Operations",
"on",
"a",
"telephony",
"service",
"s",
"offer"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java#L8210-L8218 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java | ApiOvhTelephony.billingAccount_outplanNotification_POST | public OvhConsumptionThreshold billingAccount_outplanNotification_POST(String billingAccount, OvhOutplanNotificationBlockEnum block, String notifyEmail, Double percentage) throws IOException {
String qPath = "/telephony/{billingAccount}/outplanNotification";
StringBuilder sb = path(qPath, billingAccount);
HashMap... | java | public OvhConsumptionThreshold billingAccount_outplanNotification_POST(String billingAccount, OvhOutplanNotificationBlockEnum block, String notifyEmail, Double percentage) throws IOException {
String qPath = "/telephony/{billingAccount}/outplanNotification";
StringBuilder sb = path(qPath, billingAccount);
HashMap... | [
"public",
"OvhConsumptionThreshold",
"billingAccount_outplanNotification_POST",
"(",
"String",
"billingAccount",
",",
"OvhOutplanNotificationBlockEnum",
"block",
",",
"String",
"notifyEmail",
",",
"Double",
"percentage",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
... | Add an outplan notification on the billing account
REST: POST /telephony/{billingAccount}/outplanNotification
@param percentage [required] The notification percentage of maximum outplan
@param block [required] The blocking type of the associate lines
@param notifyEmail [required] Override the nichandle email for this ... | [
"Add",
"an",
"outplan",
"notification",
"on",
"the",
"billing",
"account"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java#L8328-L8337 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java | ApiOvhTelephony.billingAccount_historyRepaymentConsumption_POST | public OvhHistoryRepaymentConsumption billingAccount_historyRepaymentConsumption_POST(String billingAccount, String billingNumber) throws IOException {
String qPath = "/telephony/{billingAccount}/historyRepaymentConsumption";
StringBuilder sb = path(qPath, billingAccount);
HashMap<String, Object>o = new HashMap<S... | java | public OvhHistoryRepaymentConsumption billingAccount_historyRepaymentConsumption_POST(String billingAccount, String billingNumber) throws IOException {
String qPath = "/telephony/{billingAccount}/historyRepaymentConsumption";
StringBuilder sb = path(qPath, billingAccount);
HashMap<String, Object>o = new HashMap<S... | [
"public",
"OvhHistoryRepaymentConsumption",
"billingAccount_historyRepaymentConsumption_POST",
"(",
"String",
"billingAccount",
",",
"String",
"billingNumber",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/telephony/{billingAccount}/historyRepaymentConsumption\"",
... | Ask for a new repayment
REST: POST /telephony/{billingAccount}/historyRepaymentConsumption
@param billingNumber [required] The number of the bill
@param billingAccount [required] The name of your billingAccount | [
"Ask",
"for",
"a",
"new",
"repayment"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java#L8412-L8419 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java | ApiOvhTelephony.billingAccount_ddi_serviceName_changeDestination_POST | public OvhTask billingAccount_ddi_serviceName_changeDestination_POST(String billingAccount, String serviceName, String destination) throws IOException {
String qPath = "/telephony/{billingAccount}/ddi/{serviceName}/changeDestination";
StringBuilder sb = path(qPath, billingAccount, serviceName);
HashMap<String, Ob... | java | public OvhTask billingAccount_ddi_serviceName_changeDestination_POST(String billingAccount, String serviceName, String destination) throws IOException {
String qPath = "/telephony/{billingAccount}/ddi/{serviceName}/changeDestination";
StringBuilder sb = path(qPath, billingAccount, serviceName);
HashMap<String, Ob... | [
"public",
"OvhTask",
"billingAccount_ddi_serviceName_changeDestination_POST",
"(",
"String",
"billingAccount",
",",
"String",
"serviceName",
",",
"String",
"destination",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/telephony/{billingAccount}/ddi/{serviceName}... | Change the destination of the DDI
REST: POST /telephony/{billingAccount}/ddi/{serviceName}/changeDestination
@param destination [required] The destination
@param billingAccount [required] The name of your billingAccount
@param serviceName [required] | [
"Change",
"the",
"destination",
"of",
"the",
"DDI"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java#L8470-L8477 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java | ApiOvhTelephony.accessories_GET | public ArrayList<OvhAccessoryOffer> accessories_GET(OvhNumberCountryEnum country) throws IOException {
String qPath = "/telephony/accessories";
StringBuilder sb = path(qPath);
query(sb, "country", country);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t19);
} | java | public ArrayList<OvhAccessoryOffer> accessories_GET(OvhNumberCountryEnum country) throws IOException {
String qPath = "/telephony/accessories";
StringBuilder sb = path(qPath);
query(sb, "country", country);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t19);
} | [
"public",
"ArrayList",
"<",
"OvhAccessoryOffer",
">",
"accessories_GET",
"(",
"OvhNumberCountryEnum",
"country",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/telephony/accessories\"",
";",
"StringBuilder",
"sb",
"=",
"path",
"(",
"qPath",
")",
";",... | Get all available accessories
REST: GET /telephony/accessories
@param country [required] The country | [
"Get",
"all",
"available",
"accessories"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java#L8513-L8519 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java | ApiOvhTelephony.searchServices_GET | public ArrayList<OvhTelephonySearchService> searchServices_GET(String axiom) throws IOException {
String qPath = "/telephony/searchServices";
StringBuilder sb = path(qPath);
query(sb, "axiom", axiom);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t20);
} | java | public ArrayList<OvhTelephonySearchService> searchServices_GET(String axiom) throws IOException {
String qPath = "/telephony/searchServices";
StringBuilder sb = path(qPath);
query(sb, "axiom", axiom);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t20);
} | [
"public",
"ArrayList",
"<",
"OvhTelephonySearchService",
">",
"searchServices_GET",
"(",
"String",
"axiom",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/telephony/searchServices\"",
";",
"StringBuilder",
"sb",
"=",
"path",
"(",
"qPath",
")",
";",
... | Search a service with its domain, to get its billing account and type
REST: GET /telephony/searchServices
@param axiom [required] Filter the value of property (like) | [
"Search",
"a",
"service",
"with",
"its",
"domain",
"to",
"get",
"its",
"billing",
"account",
"and",
"type"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java#L8611-L8617 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java | ApiOvhTelephony.number_detailedZones_GET | public ArrayList<OvhNumberDetailedZone> number_detailedZones_GET(String axiom, OvhNumberCountryEnum country) throws IOException {
String qPath = "/telephony/number/detailedZones";
StringBuilder sb = path(qPath);
query(sb, "axiom", axiom);
query(sb, "country", country);
String resp = execN(qPath, "GET", sb.toS... | java | public ArrayList<OvhNumberDetailedZone> number_detailedZones_GET(String axiom, OvhNumberCountryEnum country) throws IOException {
String qPath = "/telephony/number/detailedZones";
StringBuilder sb = path(qPath);
query(sb, "axiom", axiom);
query(sb, "country", country);
String resp = execN(qPath, "GET", sb.toS... | [
"public",
"ArrayList",
"<",
"OvhNumberDetailedZone",
">",
"number_detailedZones_GET",
"(",
"String",
"axiom",
",",
"OvhNumberCountryEnum",
"country",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/telephony/number/detailedZones\"",
";",
"StringBuilder",
"s... | Get all available geographic zone with some details, from a country
REST: GET /telephony/number/detailedZones
@param axiom [required] Enter a part of a city name or a zip for specific zne returns
@param country [required] The country | [
"Get",
"all",
"available",
"geographic",
"zone",
"with",
"some",
"details",
"from",
"a",
"country"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java#L8643-L8650 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java | ApiOvhTelephony.number_specificNumbers_GET | public ArrayList<OvhSpecificNumber> number_specificNumbers_GET(OvhNumberCountryEnum country, String range, OvhNumberTypeEnum type, String zone) throws IOException {
String qPath = "/telephony/number/specificNumbers";
StringBuilder sb = path(qPath);
query(sb, "country", country);
query(sb, "range", range);
que... | java | public ArrayList<OvhSpecificNumber> number_specificNumbers_GET(OvhNumberCountryEnum country, String range, OvhNumberTypeEnum type, String zone) throws IOException {
String qPath = "/telephony/number/specificNumbers";
StringBuilder sb = path(qPath);
query(sb, "country", country);
query(sb, "range", range);
que... | [
"public",
"ArrayList",
"<",
"OvhSpecificNumber",
">",
"number_specificNumbers_GET",
"(",
"OvhNumberCountryEnum",
"country",
",",
"String",
"range",
",",
"OvhNumberTypeEnum",
"type",
",",
"String",
"zone",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\... | Get all available specific number from a country
REST: GET /telephony/number/specificNumbers
@param type [required] The type of number
@param country [required] The country
@param zone [required] The zone (geographic number)
@param range [required] The range (special number) | [
"Get",
"all",
"available",
"specific",
"number",
"from",
"a",
"country"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java#L8662-L8671 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java | ApiOvhTelephony.directories_cities_GET | public ArrayList<OvhCity> directories_cities_GET(OvhNumberCountryEnum country, String zipCode) throws IOException {
String qPath = "/telephony/directories/cities";
StringBuilder sb = path(qPath);
query(sb, "country", country);
query(sb, "zipCode", zipCode);
String resp = execN(qPath, "GET", sb.toString(), nul... | java | public ArrayList<OvhCity> directories_cities_GET(OvhNumberCountryEnum country, String zipCode) throws IOException {
String qPath = "/telephony/directories/cities";
StringBuilder sb = path(qPath);
query(sb, "country", country);
query(sb, "zipCode", zipCode);
String resp = execN(qPath, "GET", sb.toString(), nul... | [
"public",
"ArrayList",
"<",
"OvhCity",
">",
"directories_cities_GET",
"(",
"OvhNumberCountryEnum",
"country",
",",
"String",
"zipCode",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/telephony/directories/cities\"",
";",
"StringBuilder",
"sb",
"=",
"pa... | Get city informations from a zip code
REST: GET /telephony/directories/cities
@param country [required] The country of the city
@param zipCode [required] The zip code of the city | [
"Get",
"city",
"informations",
"from",
"a",
"zip",
"code"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java#L8695-L8702 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java | ApiOvhTelephony.directories_availableZipCodes_GET | public ArrayList<String> directories_availableZipCodes_GET(OvhNumberCountryEnum country, String number) throws IOException {
String qPath = "/telephony/directories/availableZipCodes";
StringBuilder sb = path(qPath);
query(sb, "country", country);
query(sb, "number", number);
String resp = execN(qPath, "GET", ... | java | public ArrayList<String> directories_availableZipCodes_GET(OvhNumberCountryEnum country, String number) throws IOException {
String qPath = "/telephony/directories/availableZipCodes";
StringBuilder sb = path(qPath);
query(sb, "country", country);
query(sb, "number", number);
String resp = execN(qPath, "GET", ... | [
"public",
"ArrayList",
"<",
"String",
">",
"directories_availableZipCodes_GET",
"(",
"OvhNumberCountryEnum",
"country",
",",
"String",
"number",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/telephony/directories/availableZipCodes\"",
";",
"StringBuilder",
... | Get all zip codes compatible for a number
REST: GET /telephony/directories/availableZipCodes
@param country [required] The country of the city
@param number [required] The number (can be a range terminated by XXXX) | [
"Get",
"all",
"zip",
"codes",
"compatible",
"for",
"a",
"number"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java#L8712-L8719 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java | ApiOvhTelephony.sounds_POST | public OvhSound sounds_POST(String description, String filename) throws IOException {
String qPath = "/telephony/sounds";
StringBuilder sb = path(qPath);
HashMap<String, Object>o = new HashMap<String, Object>();
addBody(o, "description", description);
addBody(o, "filename", filename);
String resp = exec(qPa... | java | public OvhSound sounds_POST(String description, String filename) throws IOException {
String qPath = "/telephony/sounds";
StringBuilder sb = path(qPath);
HashMap<String, Object>o = new HashMap<String, Object>();
addBody(o, "description", description);
addBody(o, "filename", filename);
String resp = exec(qPa... | [
"public",
"OvhSound",
"sounds_POST",
"(",
"String",
"description",
",",
"String",
"filename",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/telephony/sounds\"",
";",
"StringBuilder",
"sb",
"=",
"path",
"(",
"qPath",
")",
";",
"HashMap",
"<",
"... | Create a new sound
REST: POST /telephony/sounds
@param description [required] Sound description
@param filename [required] Sound filename | [
"Create",
"a",
"new",
"sound"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java#L8778-L8786 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java | ApiOvhTelephony.line_offer_phones_GET | public ArrayList<OvhLinePhone> line_offer_phones_GET(OvhNumberCountryEnum country, String offer) throws IOException {
String qPath = "/telephony/line/offer/phones";
StringBuilder sb = path(qPath);
query(sb, "country", country);
query(sb, "offer", offer);
String resp = execN(qPath, "GET", sb.toString(), null);... | java | public ArrayList<OvhLinePhone> line_offer_phones_GET(OvhNumberCountryEnum country, String offer) throws IOException {
String qPath = "/telephony/line/offer/phones";
StringBuilder sb = path(qPath);
query(sb, "country", country);
query(sb, "offer", offer);
String resp = execN(qPath, "GET", sb.toString(), null);... | [
"public",
"ArrayList",
"<",
"OvhLinePhone",
">",
"line_offer_phones_GET",
"(",
"OvhNumberCountryEnum",
"country",
",",
"String",
"offer",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/telephony/line/offer/phones\"",
";",
"StringBuilder",
"sb",
"=",
"p... | Get all available phone brands compatible with lines
REST: GET /telephony/line/offer/phones
@param offer [required] The selected offer
@param country [required] The country | [
"Get",
"all",
"available",
"phone",
"brands",
"compatible",
"with",
"lines"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java#L8866-L8873 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java | ApiOvhTelephony.fax_offers_GET | public ArrayList<OvhLineOffer> fax_offers_GET(OvhNumberCountryEnum country) throws IOException {
String qPath = "/telephony/fax/offers";
StringBuilder sb = path(qPath);
query(sb, "country", country);
String resp = execN(qPath, "GET", sb.toString(), null);
return convertTo(resp, t15);
} | java | public ArrayList<OvhLineOffer> fax_offers_GET(OvhNumberCountryEnum country) throws IOException {
String qPath = "/telephony/fax/offers";
StringBuilder sb = path(qPath);
query(sb, "country", country);
String resp = execN(qPath, "GET", sb.toString(), null);
return convertTo(resp, t15);
} | [
"public",
"ArrayList",
"<",
"OvhLineOffer",
">",
"fax_offers_GET",
"(",
"OvhNumberCountryEnum",
"country",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/telephony/fax/offers\"",
";",
"StringBuilder",
"sb",
"=",
"path",
"(",
"qPath",
")",
";",
"que... | Get all available fax offer compatible
REST: GET /telephony/fax/offers
@param country [required] The country | [
"Get",
"all",
"available",
"fax",
"offer",
"compatible"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java#L8984-L8990 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java | ApiOvhTelephony.spare_spare_replace_POST | public void spare_spare_replace_POST(String spare, String domain, String ip) throws IOException {
String qPath = "/telephony/spare/{spare}/replace";
StringBuilder sb = path(qPath, spare);
HashMap<String, Object>o = new HashMap<String, Object>();
addBody(o, "domain", domain);
addBody(o, "ip", ip);
exec(qPath... | java | public void spare_spare_replace_POST(String spare, String domain, String ip) throws IOException {
String qPath = "/telephony/spare/{spare}/replace";
StringBuilder sb = path(qPath, spare);
HashMap<String, Object>o = new HashMap<String, Object>();
addBody(o, "domain", domain);
addBody(o, "ip", ip);
exec(qPath... | [
"public",
"void",
"spare_spare_replace_POST",
"(",
"String",
"spare",
",",
"String",
"domain",
",",
"String",
"ip",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/telephony/spare/{spare}/replace\"",
";",
"StringBuilder",
"sb",
"=",
"path",
"(",
"qP... | Replace the phone by its spare. The broken phone became a spare if it was bought. An RMA is created if the broken phone is under securitydeposit.
REST: POST /telephony/spare/{spare}/replace
@param domain [required] The phone to replace by the spare
@param ip [required] Public ip of the phone
@param spare [required] Th... | [
"Replace",
"the",
"phone",
"by",
"its",
"spare",
".",
"The",
"broken",
"phone",
"became",
"a",
"spare",
"if",
"it",
"was",
"bought",
".",
"An",
"RMA",
"is",
"created",
"if",
"the",
"broken",
"phone",
"is",
"under",
"securitydeposit",
"."
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java#L9050-L9057 | train |
UrielCh/ovh-java-sdk | ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java | ApiOvhTelephony.spare_brands_GET | public ArrayList<String> spare_brands_GET() throws IOException {
String qPath = "/telephony/spare/brands";
StringBuilder sb = path(qPath);
String resp = execN(qPath, "GET", sb.toString(), null);
return convertTo(resp, t4);
} | java | public ArrayList<String> spare_brands_GET() throws IOException {
String qPath = "/telephony/spare/brands";
StringBuilder sb = path(qPath);
String resp = execN(qPath, "GET", sb.toString(), null);
return convertTo(resp, t4);
} | [
"public",
"ArrayList",
"<",
"String",
">",
"spare_brands_GET",
"(",
")",
"throws",
"IOException",
"{",
"String",
"qPath",
"=",
"\"/telephony/spare/brands\"",
";",
"StringBuilder",
"sb",
"=",
"path",
"(",
"qPath",
")",
";",
"String",
"resp",
"=",
"execN",
"(",
... | Get all available spare brands
REST: GET /telephony/spare/brands | [
"Get",
"all",
"available",
"spare",
"brands"
] | 6d531a40e56e09701943e334c25f90f640c55701 | https://github.com/UrielCh/ovh-java-sdk/blob/6d531a40e56e09701943e334c25f90f640c55701/ovh-java-sdk-telephony/src/main/java/net/minidev/ovh/api/ApiOvhTelephony.java#L9102-L9107 | train |
unic/neba | core/src/main/java/io/neba/core/resourcemodels/registration/ModelRegistry.java | ModelRegistry.removeResourceModels | void removeResourceModels(final Bundle bundle) {
this.logger.info("Removing resource models of bundle " + displayNameOf(bundle) + "...");
MatchedBundlesPredicate sourcesWithBundles = new MatchedBundlesPredicate(bundle);
for (Collection<OsgiModelSource<?>> values : this.typeNameToModelSourcesMap.... | java | void removeResourceModels(final Bundle bundle) {
this.logger.info("Removing resource models of bundle " + displayNameOf(bundle) + "...");
MatchedBundlesPredicate sourcesWithBundles = new MatchedBundlesPredicate(bundle);
for (Collection<OsgiModelSource<?>> values : this.typeNameToModelSourcesMap.... | [
"void",
"removeResourceModels",
"(",
"final",
"Bundle",
"bundle",
")",
"{",
"this",
".",
"logger",
".",
"info",
"(",
"\"Removing resource models of bundle \"",
"+",
"displayNameOf",
"(",
"bundle",
")",
"+",
"\"...\"",
")",
";",
"MatchedBundlesPredicate",
"sourcesWit... | Removes all resource models originating from the given bundle from this registry.
@param bundle must not be <code>null</code>. | [
"Removes",
"all",
"resource",
"models",
"originating",
"from",
"the",
"given",
"bundle",
"from",
"this",
"registry",
"."
] | 4d762e60112a1fcb850926a56a9843d5aa424c4b | https://github.com/unic/neba/blob/4d762e60112a1fcb850926a56a9843d5aa424c4b/core/src/main/java/io/neba/core/resourcemodels/registration/ModelRegistry.java#L311-L320 | train |
unic/neba | core/src/main/java/io/neba/core/resourcemodels/metadata/ResourceModelMetaDataRegistrar.java | ResourceModelMetaDataRegistrar.removeMetadataForModelsIn | public synchronized void removeMetadataForModelsIn(Bundle bundle) {
if (bundle == null) {
throw new IllegalArgumentException("method parameter bundle must not be null");
}
Map<Class<?>, ResourceModelMetadataHolder> newCache = copyCache();
Iterator<Map.Entry<Class<?>, Resourc... | java | public synchronized void removeMetadataForModelsIn(Bundle bundle) {
if (bundle == null) {
throw new IllegalArgumentException("method parameter bundle must not be null");
}
Map<Class<?>, ResourceModelMetadataHolder> newCache = copyCache();
Iterator<Map.Entry<Class<?>, Resourc... | [
"public",
"synchronized",
"void",
"removeMetadataForModelsIn",
"(",
"Bundle",
"bundle",
")",
"{",
"if",
"(",
"bundle",
"==",
"null",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"method parameter bundle must not be null\"",
")",
";",
"}",
"Map",
"<",... | Removes the metadata of all models contained in the provided bundle from the registrar.
@param bundle must not be <code>null</code> | [
"Removes",
"the",
"metadata",
"of",
"all",
"models",
"contained",
"in",
"the",
"provided",
"bundle",
"from",
"the",
"registrar",
"."
] | 4d762e60112a1fcb850926a56a9843d5aa424c4b | https://github.com/unic/neba/blob/4d762e60112a1fcb850926a56a9843d5aa424c4b/core/src/main/java/io/neba/core/resourcemodels/metadata/ResourceModelMetaDataRegistrar.java#L119-L133 | train |
unic/neba | core/src/main/java/io/neba/core/resourcemodels/metadata/MappedFieldMetaData.java | MappedFieldMetaData.isPropertyType | private static boolean isPropertyType(Class<?> type) {
return type.isPrimitive() ||
type == String.class ||
type == Date.class ||
type == Calendar.class ||
ClassUtils.wrapperToPrimitive(type) != null;
} | java | private static boolean isPropertyType(Class<?> type) {
return type.isPrimitive() ||
type == String.class ||
type == Date.class ||
type == Calendar.class ||
ClassUtils.wrapperToPrimitive(type) != null;
} | [
"private",
"static",
"boolean",
"isPropertyType",
"(",
"Class",
"<",
"?",
">",
"type",
")",
"{",
"return",
"type",
".",
"isPrimitive",
"(",
")",
"||",
"type",
"==",
"String",
".",
"class",
"||",
"type",
"==",
"Date",
".",
"class",
"||",
"type",
"==",
... | Whether a property cannot be represented by a resource but must stem
from a value map representing the properties of a resource. | [
"Whether",
"a",
"property",
"cannot",
"be",
"represented",
"by",
"a",
"resource",
"but",
"must",
"stem",
"from",
"a",
"value",
"map",
"representing",
"the",
"properties",
"of",
"a",
"resource",
"."
] | 4d762e60112a1fcb850926a56a9843d5aa424c4b | https://github.com/unic/neba/blob/4d762e60112a1fcb850926a56a9843d5aa424c4b/core/src/main/java/io/neba/core/resourcemodels/metadata/MappedFieldMetaData.java#L62-L68 | train |
unic/neba | core/src/main/java/io/neba/core/util/ConcurrentDistinctMultiValueMap.java | ConcurrentDistinctMultiValueMap.removeValue | public void removeValue(V value) {
if (value == null) {
throw new IllegalArgumentException("Method argument value must not be null.");
}
for (Collection<V> values : values()) {
values.remove(value);
}
} | java | public void removeValue(V value) {
if (value == null) {
throw new IllegalArgumentException("Method argument value must not be null.");
}
for (Collection<V> values : values()) {
values.remove(value);
}
} | [
"public",
"void",
"removeValue",
"(",
"V",
"value",
")",
"{",
"if",
"(",
"value",
"==",
"null",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"Method argument value must not be null.\"",
")",
";",
"}",
"for",
"(",
"Collection",
"<",
"V",
">",
... | Removes the given value from all collections stored under any key.
@param value must not be <code>null</code>. | [
"Removes",
"the",
"given",
"value",
"from",
"all",
"collections",
"stored",
"under",
"any",
"key",
"."
] | 4d762e60112a1fcb850926a56a9843d5aa424c4b | https://github.com/unic/neba/blob/4d762e60112a1fcb850926a56a9843d5aa424c4b/core/src/main/java/io/neba/core/util/ConcurrentDistinctMultiValueMap.java#L110-L117 | train |
unic/neba | spring/src/main/java/io/neba/spring/blueprint/ContextFailedHandler.java | ContextFailedHandler.onOsgiApplicationEvent | @Override
@Async
public void onOsgiApplicationEvent(OsgiBundleApplicationContextEvent event) {
// We need to use the generic OsgiBundleApplicationContextEvent here and test
// for instanceof since gemini-blueprint does not correctly determine
// the event type we are listening for.
... | java | @Override
@Async
public void onOsgiApplicationEvent(OsgiBundleApplicationContextEvent event) {
// We need to use the generic OsgiBundleApplicationContextEvent here and test
// for instanceof since gemini-blueprint does not correctly determine
// the event type we are listening for.
... | [
"@",
"Override",
"@",
"Async",
"public",
"void",
"onOsgiApplicationEvent",
"(",
"OsgiBundleApplicationContextEvent",
"event",
")",
"{",
"// We need to use the generic OsgiBundleApplicationContextEvent here and test",
"// for instanceof since gemini-blueprint does not correctly determine",
... | This method is executed asynchronously since the original extender thread may try to obtain a lock to the OSGi
framework's registry state during the stop while holding the event handling lock, which may result in a transitive
deadlock.
@param event can be <code>null</code>, in which case it is ignored. | [
"This",
"method",
"is",
"executed",
"asynchronously",
"since",
"the",
"original",
"extender",
"thread",
"may",
"try",
"to",
"obtain",
"a",
"lock",
"to",
"the",
"OSGi",
"framework",
"s",
"registry",
"state",
"during",
"the",
"stop",
"while",
"holding",
"the",
... | 4d762e60112a1fcb850926a56a9843d5aa424c4b | https://github.com/unic/neba/blob/4d762e60112a1fcb850926a56a9843d5aa424c4b/spring/src/main/java/io/neba/spring/blueprint/ContextFailedHandler.java#L47-L59 | train |
unic/neba | spring/src/main/java/io/neba/spring/blueprint/ContextShutdownHandler.java | ContextShutdownHandler.handleStop | void handleStop(Bundle bundle) {
if (bundle == null) {
throw new IllegalArgumentException("Method argument bundle must not be null.");
}
this.logger.info("Removing infrastructure for bundle: " + bundle + "...");
this.modelRegistrar.unregister(bundle);
this.di... | java | void handleStop(Bundle bundle) {
if (bundle == null) {
throw new IllegalArgumentException("Method argument bundle must not be null.");
}
this.logger.info("Removing infrastructure for bundle: " + bundle + "...");
this.modelRegistrar.unregister(bundle);
this.di... | [
"void",
"handleStop",
"(",
"Bundle",
"bundle",
")",
"{",
"if",
"(",
"bundle",
"==",
"null",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"Method argument bundle must not be null.\"",
")",
";",
"}",
"this",
".",
"logger",
".",
"info",
"(",
"\"Re... | We must guarantee the order in which the event is consumed by the
collaborators since subsequent operations may depend on the resulting
state.
@param bundle must not be <code>null</code>. | [
"We",
"must",
"guarantee",
"the",
"order",
"in",
"which",
"the",
"event",
"is",
"consumed",
"by",
"the",
"collaborators",
"since",
"subsequent",
"operations",
"may",
"depend",
"on",
"the",
"resulting",
"state",
"."
] | 4d762e60112a1fcb850926a56a9843d5aa424c4b | https://github.com/unic/neba/blob/4d762e60112a1fcb850926a56a9843d5aa424c4b/spring/src/main/java/io/neba/spring/blueprint/ContextShutdownHandler.java#L49-L59 | train |
unic/neba | core/src/main/java/io/neba/core/util/ReflectionUtil.java | ReflectionUtil.instantiateCollectionType | public static <K, T extends Collection<K>> Collection<K> instantiateCollectionType(Class<T> collectionType) {
return instantiateCollectionType(collectionType, DEFAULT_COLLECTION_SIZE);
} | java | public static <K, T extends Collection<K>> Collection<K> instantiateCollectionType(Class<T> collectionType) {
return instantiateCollectionType(collectionType, DEFAULT_COLLECTION_SIZE);
} | [
"public",
"static",
"<",
"K",
",",
"T",
"extends",
"Collection",
"<",
"K",
">",
">",
"Collection",
"<",
"K",
">",
"instantiateCollectionType",
"(",
"Class",
"<",
"T",
">",
"collectionType",
")",
"{",
"return",
"instantiateCollectionType",
"(",
"collectionType"... | Creates an instance with a default capacity.
@see #instantiateCollectionType(Class, int) | [
"Creates",
"an",
"instance",
"with",
"a",
"default",
"capacity",
"."
] | 4d762e60112a1fcb850926a56a9843d5aa424c4b | https://github.com/unic/neba/blob/4d762e60112a1fcb850926a56a9843d5aa424c4b/core/src/main/java/io/neba/core/util/ReflectionUtil.java#L160-L162 | train |
unic/neba | core/src/main/java/io/neba/core/util/ReflectionUtil.java | ReflectionUtil.methodsOf | public static List<Method> methodsOf(Class<?> type) {
if (type == null) {
throw new IllegalArgumentException("Method argument type must not be null");
}
List<Method> methods = new LinkedList<>();
Queue<Class<?>> classes = new LinkedList<>();
classes.add(type);
... | java | public static List<Method> methodsOf(Class<?> type) {
if (type == null) {
throw new IllegalArgumentException("Method argument type must not be null");
}
List<Method> methods = new LinkedList<>();
Queue<Class<?>> classes = new LinkedList<>();
classes.add(type);
... | [
"public",
"static",
"List",
"<",
"Method",
">",
"methodsOf",
"(",
"Class",
"<",
"?",
">",
"type",
")",
"{",
"if",
"(",
"type",
"==",
"null",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"Method argument type must not be null\"",
")",
";",
"}"... | All methods of the given type, its super types and interfaces, starting with the methods of
the given type.
@param type must not be <code>null</code>.
@return never <code>null</code> but rather an empty list. | [
"All",
"methods",
"of",
"the",
"given",
"type",
"its",
"super",
"types",
"and",
"interfaces",
"starting",
"with",
"the",
"methods",
"of",
"the",
"given",
"type",
"."
] | 4d762e60112a1fcb850926a56a9843d5aa424c4b | https://github.com/unic/neba/blob/4d762e60112a1fcb850926a56a9843d5aa424c4b/core/src/main/java/io/neba/core/util/ReflectionUtil.java#L171-L187 | train |
unic/neba | core/src/main/java/io/neba/core/resourcemodels/metadata/ResourceModelStatistics.java | ResourceModelStatistics.countMappingDuration | public ResourceModelStatistics countMappingDuration(int durationInMs) {
// The right-hand interval boundaries are pre-calculated. We start at the smallest (1) of the
// interval [0, 1). Thus, when our value is less than the boundary, we know it is in the current interval (i),
// as the right-han... | java | public ResourceModelStatistics countMappingDuration(int durationInMs) {
// The right-hand interval boundaries are pre-calculated. We start at the smallest (1) of the
// interval [0, 1). Thus, when our value is less than the boundary, we know it is in the current interval (i),
// as the right-han... | [
"public",
"ResourceModelStatistics",
"countMappingDuration",
"(",
"int",
"durationInMs",
")",
"{",
"// The right-hand interval boundaries are pre-calculated. We start at the smallest (1) of the",
"// interval [0, 1). Thus, when our value is less than the boundary, we know it is in the current inte... | Adds the mapping with the duration to the statistics.
@return this instance. | [
"Adds",
"the",
"mapping",
"with",
"the",
"duration",
"to",
"the",
"statistics",
"."
] | 4d762e60112a1fcb850926a56a9843d5aa424c4b | https://github.com/unic/neba/blob/4d762e60112a1fcb850926a56a9843d5aa424c4b/core/src/main/java/io/neba/core/resourcemodels/metadata/ResourceModelStatistics.java#L134-L149 | train |
unic/neba | core/src/main/java/io/neba/core/util/StringUtil.java | StringUtil.appendToAll | public static String[] appendToAll(String append, String[] appendTo) {
if (append == null) {
throw new IllegalArgumentException("Method argument append must not be null.");
}
if (appendTo == null) {
throw new IllegalArgumentException("Method argument to must not be null."... | java | public static String[] appendToAll(String append, String[] appendTo) {
if (append == null) {
throw new IllegalArgumentException("Method argument append must not be null.");
}
if (appendTo == null) {
throw new IllegalArgumentException("Method argument to must not be null."... | [
"public",
"static",
"String",
"[",
"]",
"appendToAll",
"(",
"String",
"append",
",",
"String",
"[",
"]",
"appendTo",
")",
"{",
"if",
"(",
"append",
"==",
"null",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"Method argument append must not be nul... | Appends the given String to all elements of the given array.
@param append must not be <code>null</code>.
@param appendTo must not be <code>null</code>.
@return a new array with all elements of the old array concatenated with the given string. | [
"Appends",
"the",
"given",
"String",
"to",
"all",
"elements",
"of",
"the",
"given",
"array",
"."
] | 4d762e60112a1fcb850926a56a9843d5aa424c4b | https://github.com/unic/neba/blob/4d762e60112a1fcb850926a56a9843d5aa424c4b/core/src/main/java/io/neba/core/util/StringUtil.java#L30-L44 | train |
thymeleaf/thymeleaf-extras-java8time | src/main/java/org/thymeleaf/extras/java8time/util/TemporalObjects.java | TemporalObjects.zonedTime | public static ChronoZonedDateTime zonedTime(final Object target, final ZoneId defaultZoneId) {
Validate.notNull(target, "Target cannot be null");
Validate.notNull(defaultZoneId, "ZoneId cannot be null");
if (target instanceof Instant) {
return ZonedDateTime.ofInstant((Instant) target... | java | public static ChronoZonedDateTime zonedTime(final Object target, final ZoneId defaultZoneId) {
Validate.notNull(target, "Target cannot be null");
Validate.notNull(defaultZoneId, "ZoneId cannot be null");
if (target instanceof Instant) {
return ZonedDateTime.ofInstant((Instant) target... | [
"public",
"static",
"ChronoZonedDateTime",
"zonedTime",
"(",
"final",
"Object",
"target",
",",
"final",
"ZoneId",
"defaultZoneId",
")",
"{",
"Validate",
".",
"notNull",
"(",
"target",
",",
"\"Target cannot be null\"",
")",
";",
"Validate",
".",
"notNull",
"(",
"... | Creates a Temporal object filling the missing fields of the provided time with default values.
@param target the temporal object to be converted
@param defaultZoneId the default value for ZoneId
@return a Temporal object | [
"Creates",
"a",
"Temporal",
"object",
"filling",
"the",
"missing",
"fields",
"of",
"the",
"provided",
"time",
"with",
"default",
"values",
"."
] | 2881348cccba5465b04e9aa1235b3be8cd358d75 | https://github.com/thymeleaf/thymeleaf-extras-java8time/blob/2881348cccba5465b04e9aa1235b3be8cd358d75/src/main/java/org/thymeleaf/extras/java8time/util/TemporalObjects.java#L99-L127 | train |
contentful/vault | core/src/main/java/com/contentful/vault/VaultDatabaseExporter.java | VaultDatabaseExporter.export | public boolean export(Context context, Class<?> spaceClass, String accessToken) {
successful = false;
final SpaceHelper helper = crateSpaceHelper(spaceClass);
final String outputPath = createOutputPath(helper);
final CountDownLatch countDownLatch = new CountDownLatch(1);
final Vault vault = Vault.... | java | public boolean export(Context context, Class<?> spaceClass, String accessToken) {
successful = false;
final SpaceHelper helper = crateSpaceHelper(spaceClass);
final String outputPath = createOutputPath(helper);
final CountDownLatch countDownLatch = new CountDownLatch(1);
final Vault vault = Vault.... | [
"public",
"boolean",
"export",
"(",
"Context",
"context",
",",
"Class",
"<",
"?",
">",
"spaceClass",
",",
"String",
"accessToken",
")",
"{",
"successful",
"=",
"false",
";",
"final",
"SpaceHelper",
"helper",
"=",
"crateSpaceHelper",
"(",
"spaceClass",
")",
"... | Use this method to export Contentful spaces into sqlite3 databases which can be imported later.
@param context Android (Robolectric?) Context for creating the sqlite database.
@param spaceClass Configured {@link Space} containing the name and the id of the space.
@param accessToken a CDA access token, used for re... | [
"Use",
"this",
"method",
"to",
"export",
"Contentful",
"spaces",
"into",
"sqlite3",
"databases",
"which",
"can",
"be",
"imported",
"later",
"."
] | c0e3186257dccc7eecb1541870eb1e19e358b41c | https://github.com/contentful/vault/blob/c0e3186257dccc7eecb1541870eb1e19e358b41c/core/src/main/java/com/contentful/vault/VaultDatabaseExporter.java#L31-L68 | train |
webjars/webjars-locator | src/main/java/org/webjars/RequireJS.java | RequireJS.generateSetupJavaScript | public static String generateSetupJavaScript(List<String> prefixes) {
Map<String, String> webJars = new WebJarAssetLocator().getWebJars();
return generateSetupJavaScript(prefixes, webJars);
} | java | public static String generateSetupJavaScript(List<String> prefixes) {
Map<String, String> webJars = new WebJarAssetLocator().getWebJars();
return generateSetupJavaScript(prefixes, webJars);
} | [
"public",
"static",
"String",
"generateSetupJavaScript",
"(",
"List",
"<",
"String",
">",
"prefixes",
")",
"{",
"Map",
"<",
"String",
",",
"String",
">",
"webJars",
"=",
"new",
"WebJarAssetLocator",
"(",
")",
".",
"getWebJars",
"(",
")",
";",
"return",
"ge... | Returns the JavaScript that is used to setup the RequireJS config.
This value is not cached.
@param prefixes A list of the prefixes to use in the `paths` part of the RequireJS config.
@return The JavaScript block that can be embedded or loaded in a <script> tag. | [
"Returns",
"the",
"JavaScript",
"that",
"is",
"used",
"to",
"setup",
"the",
"RequireJS",
"config",
".",
"This",
"value",
"is",
"not",
"cached",
"."
] | 8796fb3ff1b9ad5c0d433ecf63a60520c715e3a0 | https://github.com/webjars/webjars-locator/blob/8796fb3ff1b9ad5c0d433ecf63a60520c715e3a0/src/main/java/org/webjars/RequireJS.java#L81-L85 | train |
webjars/webjars-locator | src/main/java/org/webjars/RequireJS.java | RequireJS.generateSetupJson | public static Map<String, ObjectNode> generateSetupJson(List<Map.Entry<String, Boolean>> prefixes) {
Map<String, String> webJars = new WebJarAssetLocator().getWebJars();
Map<String, ObjectNode> jsonConfigs = new HashMap<>();
for (Map.Entry<String, String> webJar : webJars.entrySet()) {
... | java | public static Map<String, ObjectNode> generateSetupJson(List<Map.Entry<String, Boolean>> prefixes) {
Map<String, String> webJars = new WebJarAssetLocator().getWebJars();
Map<String, ObjectNode> jsonConfigs = new HashMap<>();
for (Map.Entry<String, String> webJar : webJars.entrySet()) {
... | [
"public",
"static",
"Map",
"<",
"String",
",",
"ObjectNode",
">",
"generateSetupJson",
"(",
"List",
"<",
"Map",
".",
"Entry",
"<",
"String",
",",
"Boolean",
">",
">",
"prefixes",
")",
"{",
"Map",
"<",
"String",
",",
"String",
">",
"webJars",
"=",
"new"... | Returns the JSON used to setup the RequireJS config for each WebJar in the CLASSPATH.
This value is not cached.
@param prefixes A list of the prefixes to use in the `paths` part of the RequireJS config with a boolean flag
indicating whether or not to include the version.
@return The JSON structured config for each Web... | [
"Returns",
"the",
"JSON",
"used",
"to",
"setup",
"the",
"RequireJS",
"config",
"for",
"each",
"WebJar",
"in",
"the",
"CLASSPATH",
".",
"This",
"value",
"is",
"not",
"cached",
"."
] | 8796fb3ff1b9ad5c0d433ecf63a60520c715e3a0 | https://github.com/webjars/webjars-locator/blob/8796fb3ff1b9ad5c0d433ecf63a60520c715e3a0/src/main/java/org/webjars/RequireJS.java#L221-L231 | train |
webjars/webjars-locator | src/main/java/org/webjars/RequireJS.java | RequireJS.requireJsConfigErrorMessage | private static String requireJsConfigErrorMessage(Map.Entry<String, String> webJar) {
return "Could not read WebJar RequireJS config for: " + webJar.getKey() + " " + webJar.getValue() + "\n" +
"Please file a bug at: http://github.com/webjars/" + webJar.getKey() + "/issues/new";
} | java | private static String requireJsConfigErrorMessage(Map.Entry<String, String> webJar) {
return "Could not read WebJar RequireJS config for: " + webJar.getKey() + " " + webJar.getValue() + "\n" +
"Please file a bug at: http://github.com/webjars/" + webJar.getKey() + "/issues/new";
} | [
"private",
"static",
"String",
"requireJsConfigErrorMessage",
"(",
"Map",
".",
"Entry",
"<",
"String",
",",
"String",
">",
"webJar",
")",
"{",
"return",
"\"Could not read WebJar RequireJS config for: \"",
"+",
"webJar",
".",
"getKey",
"(",
")",
"+",
"\" \"",
"+",
... | A generic error message for when the RequireJS config could not be parsed out of the WebJar's pom.xml meta-data.
@param webJar A tuple (artifactId -> version) representing the WebJar.
@return The error message. | [
"A",
"generic",
"error",
"message",
"for",
"when",
"the",
"RequireJS",
"config",
"could",
"not",
"be",
"parsed",
"out",
"of",
"the",
"WebJar",
"s",
"pom",
".",
"xml",
"meta",
"-",
"data",
"."
] | 8796fb3ff1b9ad5c0d433ecf63a60520c715e3a0 | https://github.com/webjars/webjars-locator/blob/8796fb3ff1b9ad5c0d433ecf63a60520c715e3a0/src/main/java/org/webjars/RequireJS.java#L551-L554 | train |
webjars/webjars-locator | src/main/java/org/webjars/RequireJS.java | RequireJS.getWebJarConfig | @Deprecated
public static String getWebJarConfig(Map.Entry<String, String> webJar) {
String webJarConfig = "";
// read the webJarConfigs
String filename = WebJarAssetLocator.WEBJARS_PATH_PREFIX + "/" + webJar.getKey() + "/" + webJar.getValue() + "/" + "webjars-requirejs.js";
InputSt... | java | @Deprecated
public static String getWebJarConfig(Map.Entry<String, String> webJar) {
String webJarConfig = "";
// read the webJarConfigs
String filename = WebJarAssetLocator.WEBJARS_PATH_PREFIX + "/" + webJar.getKey() + "/" + webJar.getValue() + "/" + "webjars-requirejs.js";
InputSt... | [
"@",
"Deprecated",
"public",
"static",
"String",
"getWebJarConfig",
"(",
"Map",
".",
"Entry",
"<",
"String",
",",
"String",
">",
"webJar",
")",
"{",
"String",
"webJarConfig",
"=",
"\"\"",
";",
"// read the webJarConfigs",
"String",
"filename",
"=",
"WebJarAssetL... | The legacy webJars-requirejs.js based RequireJS config for a WebJar.
@param webJar A tuple (artifactId -> version) representing the WebJar.
@return The contents of the webJars-requirejs.js file. | [
"The",
"legacy",
"webJars",
"-",
"requirejs",
".",
"js",
"based",
"RequireJS",
"config",
"for",
"a",
"WebJar",
"."
] | 8796fb3ff1b9ad5c0d433ecf63a60520c715e3a0 | https://github.com/webjars/webjars-locator/blob/8796fb3ff1b9ad5c0d433ecf63a60520c715e3a0/src/main/java/org/webjars/RequireJS.java#L606-L640 | train |
gwtbootstrap3/gwtbootstrap3 | gwtbootstrap3/src/main/java/org/gwtbootstrap3/client/ui/base/helper/EnumHelper.java | EnumHelper.fromStyleName | @SuppressWarnings("unchecked")
public static <E extends Enum<? extends Style.HasCssName>> E fromStyleName(final String styleName,
final Class<E> enumClass,
fi... | java | @SuppressWarnings("unchecked")
public static <E extends Enum<? extends Style.HasCssName>> E fromStyleName(final String styleName,
final Class<E> enumClass,
fi... | [
"@",
"SuppressWarnings",
"(",
"\"unchecked\"",
")",
"public",
"static",
"<",
"E",
"extends",
"Enum",
"<",
"?",
"extends",
"Style",
".",
"HasCssName",
">",
">",
"E",
"fromStyleName",
"(",
"final",
"String",
"styleName",
",",
"final",
"Class",
"<",
"E",
">",... | Returns first enum constant found in at space-separated list of style names.
@param styleName Space-separated list of styles
@param enumClass Type of enum
@param defaultValue Default value of no match was found
@param <E>
@return First enum constant found or default value | [
"Returns",
"first",
"enum",
"constant",
"found",
"in",
"at",
"space",
"-",
"separated",
"list",
"of",
"style",
"names",
"."
] | 54bdbd0b12ba7a436b278c007df960d1adf2e641 | https://github.com/gwtbootstrap3/gwtbootstrap3/blob/54bdbd0b12ba7a436b278c007df960d1adf2e641/gwtbootstrap3/src/main/java/org/gwtbootstrap3/client/ui/base/helper/EnumHelper.java#L39-L58 | train |
gwtbootstrap3/gwtbootstrap3 | gwtbootstrap3/src/main/java/org/gwtbootstrap3/client/ui/SimpleRadioButton.java | SimpleRadioButton.wrap | public static SimpleRadioButton wrap(Element element) {
// Assert that the element is attached.
assert Document.get().getBody().isOrHasChild(element);
SimpleRadioButton radioButton = new SimpleRadioButton(InputElement.as(element));
// Mark it attached and remember it for cleanup.
... | java | public static SimpleRadioButton wrap(Element element) {
// Assert that the element is attached.
assert Document.get().getBody().isOrHasChild(element);
SimpleRadioButton radioButton = new SimpleRadioButton(InputElement.as(element));
// Mark it attached and remember it for cleanup.
... | [
"public",
"static",
"SimpleRadioButton",
"wrap",
"(",
"Element",
"element",
")",
"{",
"// Assert that the element is attached.",
"assert",
"Document",
".",
"get",
"(",
")",
".",
"getBody",
"(",
")",
".",
"isOrHasChild",
"(",
"element",
")",
";",
"SimpleRadioButton... | Creates a SimpleRadioButton widget that wraps an existing <input
type='radio'> element.
This element must already be attached to the document. If the element is
removed from the document, you must call
{@link RootPanel#detachNow(Widget)}.
@param element
the element to be wrapped | [
"Creates",
"a",
"SimpleRadioButton",
"widget",
"that",
"wraps",
"an",
"existing",
"<",
";",
"input",
"type",
"=",
"radio",
">",
";",
"element",
"."
] | 54bdbd0b12ba7a436b278c007df960d1adf2e641 | https://github.com/gwtbootstrap3/gwtbootstrap3/blob/54bdbd0b12ba7a436b278c007df960d1adf2e641/gwtbootstrap3/src/main/java/org/gwtbootstrap3/client/ui/SimpleRadioButton.java#L66-L77 | train |
gwtbootstrap3/gwtbootstrap3 | gwtbootstrap3/src/main/java/org/gwtbootstrap3/client/ui/form/validator/AbstractValidator.java | AbstractValidator.createErrorList | public List<EditorError> createErrorList(Editor<T> editor, T value, String messageKey) {
List<EditorError> result = new ArrayList<EditorError>();
result.add(new BasicEditorError(editor, value, getInvalidMessage(messageKey)));
return result;
} | java | public List<EditorError> createErrorList(Editor<T> editor, T value, String messageKey) {
List<EditorError> result = new ArrayList<EditorError>();
result.add(new BasicEditorError(editor, value, getInvalidMessage(messageKey)));
return result;
} | [
"public",
"List",
"<",
"EditorError",
">",
"createErrorList",
"(",
"Editor",
"<",
"T",
">",
"editor",
",",
"T",
"value",
",",
"String",
"messageKey",
")",
"{",
"List",
"<",
"EditorError",
">",
"result",
"=",
"new",
"ArrayList",
"<",
"EditorError",
">",
"... | Creates the error list.
@param editor the editor
@param value the value
@param messageKey the message key
@return the list | [
"Creates",
"the",
"error",
"list",
"."
] | 54bdbd0b12ba7a436b278c007df960d1adf2e641 | https://github.com/gwtbootstrap3/gwtbootstrap3/blob/54bdbd0b12ba7a436b278c007df960d1adf2e641/gwtbootstrap3/src/main/java/org/gwtbootstrap3/client/ui/form/validator/AbstractValidator.java#L80-L84 | train |
gwtbootstrap3/gwtbootstrap3 | gwtbootstrap3/src/main/java/org/gwtbootstrap3/client/ui/base/mixin/DataTargetMixin.java | DataTargetMixin.ensureId | private void ensureId(final Element element) {
final String id = element.getId();
if (id == null || id.isEmpty()) {
element.setId(Document.get().createUniqueId());
}
} | java | private void ensureId(final Element element) {
final String id = element.getId();
if (id == null || id.isEmpty()) {
element.setId(Document.get().createUniqueId());
}
} | [
"private",
"void",
"ensureId",
"(",
"final",
"Element",
"element",
")",
"{",
"final",
"String",
"id",
"=",
"element",
".",
"getId",
"(",
")",
";",
"if",
"(",
"id",
"==",
"null",
"||",
"id",
".",
"isEmpty",
"(",
")",
")",
"{",
"element",
".",
"setId... | Ensures the given element has a non-empty id.
@param element The element being examined.
@see Document#createUniqueId() | [
"Ensures",
"the",
"given",
"element",
"has",
"a",
"non",
"-",
"empty",
"id",
"."
] | 54bdbd0b12ba7a436b278c007df960d1adf2e641 | https://github.com/gwtbootstrap3/gwtbootstrap3/blob/54bdbd0b12ba7a436b278c007df960d1adf2e641/gwtbootstrap3/src/main/java/org/gwtbootstrap3/client/ui/base/mixin/DataTargetMixin.java#L44-L49 | train |
gwtbootstrap3/gwtbootstrap3 | gwtbootstrap3/src/main/java/org/gwtbootstrap3/client/ui/base/helper/StyleHelper.java | StyleHelper.setHiddenOn | public static void setHiddenOn(final UIObject uiObject,
final DeviceSize deviceSize) {
// Split the enum up by _ to get the different devices
// Separates the SM_MD into [SM, MD] so we can add the right styles
final String[] deviceString = deviceSize.name().spl... | java | public static void setHiddenOn(final UIObject uiObject,
final DeviceSize deviceSize) {
// Split the enum up by _ to get the different devices
// Separates the SM_MD into [SM, MD] so we can add the right styles
final String[] deviceString = deviceSize.name().spl... | [
"public",
"static",
"void",
"setHiddenOn",
"(",
"final",
"UIObject",
"uiObject",
",",
"final",
"DeviceSize",
"deviceSize",
")",
"{",
"// Split the enum up by _ to get the different devices",
"// Separates the SM_MD into [SM, MD] so we can add the right styles",
"final",
"String",
... | Sets the ui object to be hidden on the device size
@param uiObject object to be hidden on the device size
@param deviceSize device size | [
"Sets",
"the",
"ui",
"object",
"to",
"be",
"hidden",
"on",
"the",
"device",
"size"
] | 54bdbd0b12ba7a436b278c007df960d1adf2e641 | https://github.com/gwtbootstrap3/gwtbootstrap3/blob/54bdbd0b12ba7a436b278c007df960d1adf2e641/gwtbootstrap3/src/main/java/org/gwtbootstrap3/client/ui/base/helper/StyleHelper.java#L145-L174 | train |
gwtbootstrap3/gwtbootstrap3 | gwtbootstrap3/src/main/java/org/gwtbootstrap3/client/ui/base/helper/StyleHelper.java | StyleHelper.setVisibleOn | public static void setVisibleOn(final UIObject uiObject,
final DeviceSize deviceSize) {
// Split the enum up by _ to get the different devices
// Separates the SM_MD into [SM, MD] so we can add the right styles
final String[] deviceString = deviceSize.name().s... | java | public static void setVisibleOn(final UIObject uiObject,
final DeviceSize deviceSize) {
// Split the enum up by _ to get the different devices
// Separates the SM_MD into [SM, MD] so we can add the right styles
final String[] deviceString = deviceSize.name().s... | [
"public",
"static",
"void",
"setVisibleOn",
"(",
"final",
"UIObject",
"uiObject",
",",
"final",
"DeviceSize",
"deviceSize",
")",
"{",
"// Split the enum up by _ to get the different devices",
"// Separates the SM_MD into [SM, MD] so we can add the right styles",
"final",
"String",
... | Sets the ui object to be visible on the device size
@param uiObject object to be visible on the device size
@param deviceSize device size | [
"Sets",
"the",
"ui",
"object",
"to",
"be",
"visible",
"on",
"the",
"device",
"size"
] | 54bdbd0b12ba7a436b278c007df960d1adf2e641 | https://github.com/gwtbootstrap3/gwtbootstrap3/blob/54bdbd0b12ba7a436b278c007df960d1adf2e641/gwtbootstrap3/src/main/java/org/gwtbootstrap3/client/ui/base/helper/StyleHelper.java#L182-L211 | train |
gwtbootstrap3/gwtbootstrap3 | gwtbootstrap3/src/main/java/org/gwtbootstrap3/client/ui/ScrollSpy.java | ScrollSpy.scrollSpy | public static ScrollSpy scrollSpy(final UIObject spyOn, final String selector) {
return new ScrollSpy(spyOn.getElement(), selector);
} | java | public static ScrollSpy scrollSpy(final UIObject spyOn, final String selector) {
return new ScrollSpy(spyOn.getElement(), selector);
} | [
"public",
"static",
"ScrollSpy",
"scrollSpy",
"(",
"final",
"UIObject",
"spyOn",
",",
"final",
"String",
"selector",
")",
"{",
"return",
"new",
"ScrollSpy",
"(",
"spyOn",
".",
"getElement",
"(",
")",
",",
"selector",
")",
";",
"}"
] | Attaches ScrollSpy to specified object with specified target selector.
@param spyOn Spy on this object
@param selector CSS selector of target element
@return ScrollSpy | [
"Attaches",
"ScrollSpy",
"to",
"specified",
"object",
"with",
"specified",
"target",
"selector",
"."
] | 54bdbd0b12ba7a436b278c007df960d1adf2e641 | https://github.com/gwtbootstrap3/gwtbootstrap3/blob/54bdbd0b12ba7a436b278c007df960d1adf2e641/gwtbootstrap3/src/main/java/org/gwtbootstrap3/client/ui/ScrollSpy.java#L86-L88 | train |
gwtbootstrap3/gwtbootstrap3 | gwtbootstrap3/src/main/java/org/gwtbootstrap3/client/ui/ScrollSpy.java | ScrollSpy.scrollSpy | public static ScrollSpy scrollSpy(final UIObject spyOn, final HasId target) {
return new ScrollSpy(spyOn.getElement(), target);
} | java | public static ScrollSpy scrollSpy(final UIObject spyOn, final HasId target) {
return new ScrollSpy(spyOn.getElement(), target);
} | [
"public",
"static",
"ScrollSpy",
"scrollSpy",
"(",
"final",
"UIObject",
"spyOn",
",",
"final",
"HasId",
"target",
")",
"{",
"return",
"new",
"ScrollSpy",
"(",
"spyOn",
".",
"getElement",
"(",
")",
",",
"target",
")",
";",
"}"
] | Attaches ScrollSpy to specified object with specified target element.
@param spyOn Spy on this object
@param target Target element having an ID
@return ScrollSpy | [
"Attaches",
"ScrollSpy",
"to",
"specified",
"object",
"with",
"specified",
"target",
"element",
"."
] | 54bdbd0b12ba7a436b278c007df960d1adf2e641 | https://github.com/gwtbootstrap3/gwtbootstrap3/blob/54bdbd0b12ba7a436b278c007df960d1adf2e641/gwtbootstrap3/src/main/java/org/gwtbootstrap3/client/ui/ScrollSpy.java#L97-L99 | train |
gwtbootstrap3/gwtbootstrap3 | gwtbootstrap3/src/main/java/org/gwtbootstrap3/client/ui/HelpBlock.java | HelpBlock.setIconType | public void setIconType(IconType type) {
IconType prevType = iconType;
iconType = type;
if (iconType != prevType && iconElement != null) {
iconElement.removeFromParent();
iconElement = null;
DomEvent.fireNativeEvent(Document.get().createChangeEvent(), this);
... | java | public void setIconType(IconType type) {
IconType prevType = iconType;
iconType = type;
if (iconType != prevType && iconElement != null) {
iconElement.removeFromParent();
iconElement = null;
DomEvent.fireNativeEvent(Document.get().createChangeEvent(), this);
... | [
"public",
"void",
"setIconType",
"(",
"IconType",
"type",
")",
"{",
"IconType",
"prevType",
"=",
"iconType",
";",
"iconType",
"=",
"type",
";",
"if",
"(",
"iconType",
"!=",
"prevType",
"&&",
"iconElement",
"!=",
"null",
")",
"{",
"iconElement",
".",
"remov... | Sets the icon type. If the icon type changes programatically then the
icon is removed from the dom and recreated.
@param type
the new icon type | [
"Sets",
"the",
"icon",
"type",
".",
"If",
"the",
"icon",
"type",
"changes",
"programatically",
"then",
"the",
"icon",
"is",
"removed",
"from",
"the",
"dom",
"and",
"recreated",
"."
] | 54bdbd0b12ba7a436b278c007df960d1adf2e641 | https://github.com/gwtbootstrap3/gwtbootstrap3/blob/54bdbd0b12ba7a436b278c007df960d1adf2e641/gwtbootstrap3/src/main/java/org/gwtbootstrap3/client/ui/HelpBlock.java#L134-L142 | train |
gwtbootstrap3/gwtbootstrap3 | gwtbootstrap3/src/main/java/org/gwtbootstrap3/client/ui/SimpleCheckBox.java | SimpleCheckBox.wrap | public static SimpleCheckBox wrap(Element element) {
// Assert that the element is attached.
assert Document.get().getBody().isOrHasChild(element);
SimpleCheckBox checkBox = new SimpleCheckBox(InputElement.as(element));
// Mark it attached and remember it for cleanup.
checkBox.... | java | public static SimpleCheckBox wrap(Element element) {
// Assert that the element is attached.
assert Document.get().getBody().isOrHasChild(element);
SimpleCheckBox checkBox = new SimpleCheckBox(InputElement.as(element));
// Mark it attached and remember it for cleanup.
checkBox.... | [
"public",
"static",
"SimpleCheckBox",
"wrap",
"(",
"Element",
"element",
")",
"{",
"// Assert that the element is attached.",
"assert",
"Document",
".",
"get",
"(",
")",
".",
"getBody",
"(",
")",
".",
"isOrHasChild",
"(",
"element",
")",
";",
"SimpleCheckBox",
"... | Creates a SimpleCheckBox widget that wraps an existing <input
type='checkbox'> element.
This element must already be attached to the document. If the element is
removed from the document, you must call
{@link RootPanel#detachNow(Widget)}.
@param element
the element to be wrapped | [
"Creates",
"a",
"SimpleCheckBox",
"widget",
"that",
"wraps",
"an",
"existing",
"<",
";",
"input",
"type",
"=",
"checkbox",
">",
";",
"element",
"."
] | 54bdbd0b12ba7a436b278c007df960d1adf2e641 | https://github.com/gwtbootstrap3/gwtbootstrap3/blob/54bdbd0b12ba7a436b278c007df960d1adf2e641/gwtbootstrap3/src/main/java/org/gwtbootstrap3/client/ui/SimpleCheckBox.java#L65-L76 | train |
gwtbootstrap3/gwtbootstrap3 | gwtbootstrap3/src/main/java/org/gwtbootstrap3/client/ui/Popover.java | Popover.call | private void call(final Element e, final String arg) {
JQuery.jQuery(e).popover(arg);
} | java | private void call(final Element e, final String arg) {
JQuery.jQuery(e).popover(arg);
} | [
"private",
"void",
"call",
"(",
"final",
"Element",
"e",
",",
"final",
"String",
"arg",
")",
"{",
"JQuery",
".",
"jQuery",
"(",
"e",
")",
".",
"popover",
"(",
"arg",
")",
";",
"}"
] | Call the native popover method with the given argument.
@param e the {@link Element}.
@param arg the arg | [
"Call",
"the",
"native",
"popover",
"method",
"with",
"the",
"given",
"argument",
"."
] | 54bdbd0b12ba7a436b278c007df960d1adf2e641 | https://github.com/gwtbootstrap3/gwtbootstrap3/blob/54bdbd0b12ba7a436b278c007df960d1adf2e641/gwtbootstrap3/src/main/java/org/gwtbootstrap3/client/ui/Popover.java#L114-L116 | train |
gwtbootstrap3/gwtbootstrap3 | gwtbootstrap3/src/main/java/org/gwtbootstrap3/client/ui/Popover.java | Popover.popover | private void popover(Element e, String content) {
e.setAttribute("data-content", content);
JQuery.jQuery(e).popover();
} | java | private void popover(Element e, String content) {
e.setAttribute("data-content", content);
JQuery.jQuery(e).popover();
} | [
"private",
"void",
"popover",
"(",
"Element",
"e",
",",
"String",
"content",
")",
"{",
"e",
".",
"setAttribute",
"(",
"\"data-content\"",
",",
"content",
")",
";",
"JQuery",
".",
"jQuery",
"(",
"e",
")",
".",
"popover",
"(",
")",
";",
"}"
] | Create the popover. | [
"Create",
"the",
"popover",
"."
] | 54bdbd0b12ba7a436b278c007df960d1adf2e641 | https://github.com/gwtbootstrap3/gwtbootstrap3/blob/54bdbd0b12ba7a436b278c007df960d1adf2e641/gwtbootstrap3/src/main/java/org/gwtbootstrap3/client/ui/Popover.java#L146-L149 | train |
gwtbootstrap3/gwtbootstrap3 | gwtbootstrap3/src/main/java/org/gwtbootstrap3/client/ui/base/mixin/AttributeMixin.java | AttributeMixin.setAttribute | public void setAttribute(final String attributeName, final String attributeValue) {
uiObject.getElement().setAttribute(attributeName, attributeValue);
} | java | public void setAttribute(final String attributeName, final String attributeValue) {
uiObject.getElement().setAttribute(attributeName, attributeValue);
} | [
"public",
"void",
"setAttribute",
"(",
"final",
"String",
"attributeName",
",",
"final",
"String",
"attributeValue",
")",
"{",
"uiObject",
".",
"getElement",
"(",
")",
".",
"setAttribute",
"(",
"attributeName",
",",
"attributeValue",
")",
";",
"}"
] | Sets the attribute on the UiObject
@param attributeName attribute name
@param attributeValue attribute value | [
"Sets",
"the",
"attribute",
"on",
"the",
"UiObject"
] | 54bdbd0b12ba7a436b278c007df960d1adf2e641 | https://github.com/gwtbootstrap3/gwtbootstrap3/blob/54bdbd0b12ba7a436b278c007df960d1adf2e641/gwtbootstrap3/src/main/java/org/gwtbootstrap3/client/ui/base/mixin/AttributeMixin.java#L40-L42 | train |
gwtbootstrap3/gwtbootstrap3 | gwtbootstrap3/src/main/java/org/gwtbootstrap3/client/ui/Pagination.java | Pagination.updatePaginationState | private void updatePaginationState(final SimplePager pager) {
for (int i = 0; i < getWidgetCount(); i++) {
if (i == 0) { //previous button
((AnchorListItem)getWidget(i)).setEnabled(pager.hasPreviousPage());
}
else if (i == getWidgetCount() - 1) { //next butto... | java | private void updatePaginationState(final SimplePager pager) {
for (int i = 0; i < getWidgetCount(); i++) {
if (i == 0) { //previous button
((AnchorListItem)getWidget(i)).setEnabled(pager.hasPreviousPage());
}
else if (i == getWidgetCount() - 1) { //next butto... | [
"private",
"void",
"updatePaginationState",
"(",
"final",
"SimplePager",
"pager",
")",
"{",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"getWidgetCount",
"(",
")",
";",
"i",
"++",
")",
"{",
"if",
"(",
"i",
"==",
"0",
")",
"{",
"//previous button... | This updates the current active page, and the enabled state
of the previous and next buttons in the Pagination based
on the state of the given SimplePager.
@param pager the SimplePager of the CellTable/DataGrid | [
"This",
"updates",
"the",
"current",
"active",
"page",
"and",
"the",
"enabled",
"state",
"of",
"the",
"previous",
"and",
"next",
"buttons",
"in",
"the",
"Pagination",
"based",
"on",
"the",
"state",
"of",
"the",
"given",
"SimplePager",
"."
] | 54bdbd0b12ba7a436b278c007df960d1adf2e641 | https://github.com/gwtbootstrap3/gwtbootstrap3/blob/54bdbd0b12ba7a436b278c007df960d1adf2e641/gwtbootstrap3/src/main/java/org/gwtbootstrap3/client/ui/Pagination.java#L139-L158 | train |
gwtbootstrap3/gwtbootstrap3 | gwtbootstrap3/src/main/java/org/gwtbootstrap3/client/ui/base/ComplexWidget.java | ComplexWidget.insert | public void insert(final Widget child, final int beforeIndex) {
insert(child, (Element) getElement(), beforeIndex, true);
} | java | public void insert(final Widget child, final int beforeIndex) {
insert(child, (Element) getElement(), beforeIndex, true);
} | [
"public",
"void",
"insert",
"(",
"final",
"Widget",
"child",
",",
"final",
"int",
"beforeIndex",
")",
"{",
"insert",
"(",
"child",
",",
"(",
"Element",
")",
"getElement",
"(",
")",
",",
"beforeIndex",
",",
"true",
")",
";",
"}"
] | Inserts a widget at a specific index
@param child - widget to be inserted
@param beforeIndex - index for the widget | [
"Inserts",
"a",
"widget",
"at",
"a",
"specific",
"index"
] | 54bdbd0b12ba7a436b278c007df960d1adf2e641 | https://github.com/gwtbootstrap3/gwtbootstrap3/blob/54bdbd0b12ba7a436b278c007df960d1adf2e641/gwtbootstrap3/src/main/java/org/gwtbootstrap3/client/ui/base/ComplexWidget.java#L59-L61 | train |
gwtbootstrap3/gwtbootstrap3 | gwtbootstrap3/src/main/java/org/gwtbootstrap3/client/ui/form/validator/GroupValidator.java | GroupValidator.add | public <T extends Widget & HasValidators<?>> void add(final T field) {
fields.put(field, field.validate(false));
if (field.isAttached()) {
updateStateAndNotify();
}
registrations.put(field, field.addValidationChangedHandler(new ValidationChangedHandler() {
@Overri... | java | public <T extends Widget & HasValidators<?>> void add(final T field) {
fields.put(field, field.validate(false));
if (field.isAttached()) {
updateStateAndNotify();
}
registrations.put(field, field.addValidationChangedHandler(new ValidationChangedHandler() {
@Overri... | [
"public",
"<",
"T",
"extends",
"Widget",
"&",
"HasValidators",
"<",
"?",
">",
">",
"void",
"add",
"(",
"final",
"T",
"field",
")",
"{",
"fields",
".",
"put",
"(",
"field",
",",
"field",
".",
"validate",
"(",
"false",
")",
")",
";",
"if",
"(",
"fi... | Adds a field to the group.
@param <T> the generic type
@param field the field | [
"Adds",
"a",
"field",
"to",
"the",
"group",
"."
] | 54bdbd0b12ba7a436b278c007df960d1adf2e641 | https://github.com/gwtbootstrap3/gwtbootstrap3/blob/54bdbd0b12ba7a436b278c007df960d1adf2e641/gwtbootstrap3/src/main/java/org/gwtbootstrap3/client/ui/form/validator/GroupValidator.java#L67-L81 | train |
gwtbootstrap3/gwtbootstrap3 | gwtbootstrap3/src/main/java/org/gwtbootstrap3/client/ui/form/validator/GroupValidator.java | GroupValidator.remove | public <T extends Widget & HasValidators<?>> boolean remove(final T field) {
fields.remove((HasValidators<?>) field);
HandlerRegistration reg = registrations.remove((HasValidators<?>) field);
if (reg != null) {
reg.removeHandler();
return true;
}
return fa... | java | public <T extends Widget & HasValidators<?>> boolean remove(final T field) {
fields.remove((HasValidators<?>) field);
HandlerRegistration reg = registrations.remove((HasValidators<?>) field);
if (reg != null) {
reg.removeHandler();
return true;
}
return fa... | [
"public",
"<",
"T",
"extends",
"Widget",
"&",
"HasValidators",
"<",
"?",
">",
">",
"boolean",
"remove",
"(",
"final",
"T",
"field",
")",
"{",
"fields",
".",
"remove",
"(",
"(",
"HasValidators",
"<",
"?",
">",
")",
"field",
")",
";",
"HandlerRegistratio... | Removes a field from the validation group.
@param <T> the generic type
@param field the field
@return true, if successful | [
"Removes",
"a",
"field",
"from",
"the",
"validation",
"group",
"."
] | 54bdbd0b12ba7a436b278c007df960d1adf2e641 | https://github.com/gwtbootstrap3/gwtbootstrap3/blob/54bdbd0b12ba7a436b278c007df960d1adf2e641/gwtbootstrap3/src/main/java/org/gwtbootstrap3/client/ui/form/validator/GroupValidator.java#L102-L110 | train |
gwtbootstrap3/gwtbootstrap3 | gwtbootstrap3/src/main/java/org/gwtbootstrap3/client/ui/Column.java | Column.setSize | public void setSize(final ColumnSize firstSize, final ColumnSize... otherSizes) {
addEnumVarargsValues(new ColumnSize[]{firstSize}, ColumnSize.class, true);
addEnumVarargsValues(otherSizes, ColumnSize.class, false);
} | java | public void setSize(final ColumnSize firstSize, final ColumnSize... otherSizes) {
addEnumVarargsValues(new ColumnSize[]{firstSize}, ColumnSize.class, true);
addEnumVarargsValues(otherSizes, ColumnSize.class, false);
} | [
"public",
"void",
"setSize",
"(",
"final",
"ColumnSize",
"firstSize",
",",
"final",
"ColumnSize",
"...",
"otherSizes",
")",
"{",
"addEnumVarargsValues",
"(",
"new",
"ColumnSize",
"[",
"]",
"{",
"firstSize",
"}",
",",
"ColumnSize",
".",
"class",
",",
"true",
... | Adds one or more additional column sizes.
@param firstSize Column size
@param otherSizes Additional column sizes | [
"Adds",
"one",
"or",
"more",
"additional",
"column",
"sizes",
"."
] | 54bdbd0b12ba7a436b278c007df960d1adf2e641 | https://github.com/gwtbootstrap3/gwtbootstrap3/blob/54bdbd0b12ba7a436b278c007df960d1adf2e641/gwtbootstrap3/src/main/java/org/gwtbootstrap3/client/ui/Column.java#L98-L101 | train |
gwtbootstrap3/gwtbootstrap3 | gwtbootstrap3/src/main/java/org/gwtbootstrap3/client/ui/base/RadioGroupBase.java | RadioGroupBase.getRadioChildren | protected Set<Radio> getRadioChildren(final Widget widget, final Set<Radio> c) {
Set<Radio> children = c;
if (children == null) {
children = new HashSet<Radio>();
}
if (widget instanceof Radio) {
children.add((Radio) widget);
} else if (widget instanceof H... | java | protected Set<Radio> getRadioChildren(final Widget widget, final Set<Radio> c) {
Set<Radio> children = c;
if (children == null) {
children = new HashSet<Radio>();
}
if (widget instanceof Radio) {
children.add((Radio) widget);
} else if (widget instanceof H... | [
"protected",
"Set",
"<",
"Radio",
">",
"getRadioChildren",
"(",
"final",
"Widget",
"widget",
",",
"final",
"Set",
"<",
"Radio",
">",
"c",
")",
"{",
"Set",
"<",
"Radio",
">",
"children",
"=",
"c",
";",
"if",
"(",
"children",
"==",
"null",
")",
"{",
... | Gets the radio children.
@param widget the widget
@param c the current children
@return the radio children | [
"Gets",
"the",
"radio",
"children",
"."
] | 54bdbd0b12ba7a436b278c007df960d1adf2e641 | https://github.com/gwtbootstrap3/gwtbootstrap3/blob/54bdbd0b12ba7a436b278c007df960d1adf2e641/gwtbootstrap3/src/main/java/org/gwtbootstrap3/client/ui/base/RadioGroupBase.java#L156-L175 | train |
gwtbootstrap3/gwtbootstrap3 | gwtbootstrap3/src/main/java/org/gwtbootstrap3/client/ui/base/RadioGroupBase.java | RadioGroupBase.updateChildren | protected void updateChildren() {
for (Radio child : getRadioChildren()) {
HandlerRegistration reg = valueChangedRegistrations.get(child);
if (reg == null) {
valueChangedRegistrations.put(child, child.addValueChangeHandler(changeHandler));
}
child.... | java | protected void updateChildren() {
for (Radio child : getRadioChildren()) {
HandlerRegistration reg = valueChangedRegistrations.get(child);
if (reg == null) {
valueChangedRegistrations.put(child, child.addValueChangeHandler(changeHandler));
}
child.... | [
"protected",
"void",
"updateChildren",
"(",
")",
"{",
"for",
"(",
"Radio",
"child",
":",
"getRadioChildren",
"(",
")",
")",
"{",
"HandlerRegistration",
"reg",
"=",
"valueChangedRegistrations",
".",
"get",
"(",
"child",
")",
";",
"if",
"(",
"reg",
"==",
"nu... | Update the radio children names. | [
"Update",
"the",
"radio",
"children",
"names",
"."
] | 54bdbd0b12ba7a436b278c007df960d1adf2e641 | https://github.com/gwtbootstrap3/gwtbootstrap3/blob/54bdbd0b12ba7a436b278c007df960d1adf2e641/gwtbootstrap3/src/main/java/org/gwtbootstrap3/client/ui/base/RadioGroupBase.java#L294-L302 | train |
gwtbootstrap3/gwtbootstrap3 | gwtbootstrap3/src/main/java/org/gwtbootstrap3/client/ui/Tooltip.java | Tooltip.call | private void call(final Element e, final String arg) {
JQuery.jQuery(e).tooltip(arg);
} | java | private void call(final Element e, final String arg) {
JQuery.jQuery(e).tooltip(arg);
} | [
"private",
"void",
"call",
"(",
"final",
"Element",
"e",
",",
"final",
"String",
"arg",
")",
"{",
"JQuery",
".",
"jQuery",
"(",
"e",
")",
".",
"tooltip",
"(",
"arg",
")",
";",
"}"
] | Call the native tooltip method with the given argument.
@param e the {@link Element}.
@param arg the arg | [
"Call",
"the",
"native",
"tooltip",
"method",
"with",
"the",
"given",
"argument",
"."
] | 54bdbd0b12ba7a436b278c007df960d1adf2e641 | https://github.com/gwtbootstrap3/gwtbootstrap3/blob/54bdbd0b12ba7a436b278c007df960d1adf2e641/gwtbootstrap3/src/main/java/org/gwtbootstrap3/client/ui/Tooltip.java#L96-L98 | train |
gwtbootstrap3/gwtbootstrap3 | gwtbootstrap3/src/main/java/org/gwtbootstrap3/client/ui/base/AbstractButtonGroup.java | AbstractButtonGroup.setName | @Override
public void setName(final String name) {
this.name = name;
if (name == null) {
return;
}
for (final Widget w : getChildren()) {
if (w instanceof HasName) {
((HasName) w).setName(name);
}
}
} | java | @Override
public void setName(final String name) {
this.name = name;
if (name == null) {
return;
}
for (final Widget w : getChildren()) {
if (w instanceof HasName) {
((HasName) w).setName(name);
}
}
} | [
"@",
"Override",
"public",
"void",
"setName",
"(",
"final",
"String",
"name",
")",
"{",
"this",
".",
"name",
"=",
"name",
";",
"if",
"(",
"name",
"==",
"null",
")",
"{",
"return",
";",
"}",
"for",
"(",
"final",
"Widget",
"w",
":",
"getChildren",
"(... | Convenience method that will set the name of all child widgets that can have a name
@param name Name of group
@see #add(com.google.gwt.user.client.ui.Widget) | [
"Convenience",
"method",
"that",
"will",
"set",
"the",
"name",
"of",
"all",
"child",
"widgets",
"that",
"can",
"have",
"a",
"name"
] | 54bdbd0b12ba7a436b278c007df960d1adf2e641 | https://github.com/gwtbootstrap3/gwtbootstrap3/blob/54bdbd0b12ba7a436b278c007df960d1adf2e641/gwtbootstrap3/src/main/java/org/gwtbootstrap3/client/ui/base/AbstractButtonGroup.java#L61-L74 | train |
cucumber-attic/gherkin2 | java/src/main/java/gherkin/formatter/JSONFormatter.java | JSONFormatter.getCurrentStep | private Map getCurrentStep(Phase phase) {
String target = phase.ordinal() <= Phase.match.ordinal()?Phase.match.name():Phase.result.name();
Map lastWithValue = null;
for (Map stepOrHook : getSteps()) {
if (stepOrHook.get(target) == null) {
return stepOrHook;
}... | java | private Map getCurrentStep(Phase phase) {
String target = phase.ordinal() <= Phase.match.ordinal()?Phase.match.name():Phase.result.name();
Map lastWithValue = null;
for (Map stepOrHook : getSteps()) {
if (stepOrHook.get(target) == null) {
return stepOrHook;
}... | [
"private",
"Map",
"getCurrentStep",
"(",
"Phase",
"phase",
")",
"{",
"String",
"target",
"=",
"phase",
".",
"ordinal",
"(",
")",
"<=",
"Phase",
".",
"match",
".",
"ordinal",
"(",
")",
"?",
"Phase",
".",
"match",
".",
"name",
"(",
")",
":",
"Phase",
... | In order to handle steps being added all at once, this method determines allows methods to
opperator correctly if
step
match
embedding
output
result
step
match
embedding
output
result
or if
step
step
match
embedding
output
result
match
embedding
output
result
is called
@return the correct step for the current oper... | [
"In",
"order",
"to",
"handle",
"steps",
"being",
"added",
"all",
"at",
"once",
"this",
"method",
"determines",
"allows",
"methods",
"to",
"opperator",
"correctly",
"if"
] | 6c8d2fa293bd40b0a67e8dc00cf2ea68dadce607 | https://github.com/cucumber-attic/gherkin2/blob/6c8d2fa293bd40b0a67e8dc00cf2ea68dadce607/java/src/main/java/gherkin/formatter/JSONFormatter.java#L62-L73 | train |
cucumber-attic/gherkin2 | java/src/main/java/gherkin/parser/FormatterListener.java | FormatterListener.syntaxError | public void syntaxError(String state, String event, List<String> legalEvents, String uri, Integer line) {
formatter.syntaxError(state, event, legalEvents, uri, line);
} | java | public void syntaxError(String state, String event, List<String> legalEvents, String uri, Integer line) {
formatter.syntaxError(state, event, legalEvents, uri, line);
} | [
"public",
"void",
"syntaxError",
"(",
"String",
"state",
",",
"String",
"event",
",",
"List",
"<",
"String",
">",
"legalEvents",
",",
"String",
"uri",
",",
"Integer",
"line",
")",
"{",
"formatter",
".",
"syntaxError",
"(",
"state",
",",
"event",
",",
"le... | Not part of the API. Used for testing only. | [
"Not",
"part",
"of",
"the",
"API",
".",
"Used",
"for",
"testing",
"only",
"."
] | 6c8d2fa293bd40b0a67e8dc00cf2ea68dadce607 | https://github.com/cucumber-attic/gherkin2/blob/6c8d2fa293bd40b0a67e8dc00cf2ea68dadce607/java/src/main/java/gherkin/parser/FormatterListener.java#L145-L147 | train |
phoenixnap/springmvc-raml-plugin | src/main/java/com/phoenixnap/oss/ramlplugin/raml2code/data/ApiBodyMetadata.java | ApiBodyMetadata.getCodeModel | public JCodeModel getCodeModel(String basePackage, String schemaLocation, Annotator annotator) {
if (type != null) {
return codeModel;
} else {
return SchemaHelper.buildBodyJCodeModel(schemaLocation, basePackage, name, schema, annotator);
}
} | java | public JCodeModel getCodeModel(String basePackage, String schemaLocation, Annotator annotator) {
if (type != null) {
return codeModel;
} else {
return SchemaHelper.buildBodyJCodeModel(schemaLocation, basePackage, name, schema, annotator);
}
} | [
"public",
"JCodeModel",
"getCodeModel",
"(",
"String",
"basePackage",
",",
"String",
"schemaLocation",
",",
"Annotator",
"annotator",
")",
"{",
"if",
"(",
"type",
"!=",
"null",
")",
"{",
"return",
"codeModel",
";",
"}",
"else",
"{",
"return",
"SchemaHelper",
... | Builds a JCodeModel for this body
@param basePackage
The package we will be using for the domain objects
@param schemaLocation
The location of this schema, will be used to create absolute
URIs for $ref tags eg "classpath:/"
@param annotator
JsonSchema2Pojo annotator. if null a default annotator will be
used
@return bu... | [
"Builds",
"a",
"JCodeModel",
"for",
"this",
"body"
] | 6387072317cd771eb7d6f30943f556ac20dd3c84 | https://github.com/phoenixnap/springmvc-raml-plugin/blob/6387072317cd771eb7d6f30943f556ac20dd3c84/src/main/java/com/phoenixnap/oss/ramlplugin/raml2code/data/ApiBodyMetadata.java#L151-L157 | train |
phoenixnap/springmvc-raml-plugin | src/main/java/com/phoenixnap/oss/ramlplugin/raml2code/helpers/RamlParser.java | RamlParser.extractControllers | public Set<ApiResourceMetadata> extractControllers(JCodeModel bodyCodeModel, RamlRoot raml) {
Set<ApiResourceMetadata> controllers = new LinkedHashSet<>();
if (raml == null) {
return controllers;
}
if (bodyCodeModel == null) {
bodyCodeModel = new JCodeModel();
}
Set<String> names = new LinkedHashSet... | java | public Set<ApiResourceMetadata> extractControllers(JCodeModel bodyCodeModel, RamlRoot raml) {
Set<ApiResourceMetadata> controllers = new LinkedHashSet<>();
if (raml == null) {
return controllers;
}
if (bodyCodeModel == null) {
bodyCodeModel = new JCodeModel();
}
Set<String> names = new LinkedHashSet... | [
"public",
"Set",
"<",
"ApiResourceMetadata",
">",
"extractControllers",
"(",
"JCodeModel",
"bodyCodeModel",
",",
"RamlRoot",
"raml",
")",
"{",
"Set",
"<",
"ApiResourceMetadata",
">",
"controllers",
"=",
"new",
"LinkedHashSet",
"<>",
"(",
")",
";",
"if",
"(",
"... | This method will extract a set of controllers from the RAML file. These
controllers will contain the metadata required by the code generator,
including name any annotations as well as conatining methods
@param bodyCodeModel
the code model containing body objects
@param raml
The raml document to be parsed
@return A set... | [
"This",
"method",
"will",
"extract",
"a",
"set",
"of",
"controllers",
"from",
"the",
"RAML",
"file",
".",
"These",
"controllers",
"will",
"contain",
"the",
"metadata",
"required",
"by",
"the",
"code",
"generator",
"including",
"name",
"any",
"annotations",
"as... | 6387072317cd771eb7d6f30943f556ac20dd3c84 | https://github.com/phoenixnap/springmvc-raml-plugin/blob/6387072317cd771eb7d6f30943f556ac20dd3c84/src/main/java/com/phoenixnap/oss/ramlplugin/raml2code/helpers/RamlParser.java#L60-L96 | train |
phoenixnap/springmvc-raml-plugin | src/main/java/com/phoenixnap/oss/ramlplugin/raml2code/helpers/RamlParser.java | RamlParser.checkResource | private Set<ApiResourceMetadata> checkResource(JCodeModel bodyCodeModel, String baseUrl, RamlResource resource,
ApiResourceMetadata controller, RamlRoot document) {
Set<ApiResourceMetadata> controllers = new LinkedHashSet<>();
// append resource URL to url.
String url = baseUrl + resource.getRelativeUri();
i... | java | private Set<ApiResourceMetadata> checkResource(JCodeModel bodyCodeModel, String baseUrl, RamlResource resource,
ApiResourceMetadata controller, RamlRoot document) {
Set<ApiResourceMetadata> controllers = new LinkedHashSet<>();
// append resource URL to url.
String url = baseUrl + resource.getRelativeUri();
i... | [
"private",
"Set",
"<",
"ApiResourceMetadata",
">",
"checkResource",
"(",
"JCodeModel",
"bodyCodeModel",
",",
"String",
"baseUrl",
",",
"RamlResource",
"resource",
",",
"ApiResourceMetadata",
"controller",
",",
"RamlRoot",
"document",
")",
"{",
"Set",
"<",
"ApiResour... | Recursive method to parse resources in a Raml File. It tries to go as
deep as possible before creating the root Resource. Once this is done,
methods and child resources will be relative to the root resource
@param bodyCodeModel
The code model containing body pojos
@param baseUrl
The url currently being checked. Used t... | [
"Recursive",
"method",
"to",
"parse",
"resources",
"in",
"a",
"Raml",
"File",
".",
"It",
"tries",
"to",
"go",
"as",
"deep",
"as",
"possible",
"before",
"creating",
"the",
"root",
"Resource",
".",
"Once",
"this",
"is",
"done",
"methods",
"and",
"child",
"... | 6387072317cd771eb7d6f30943f556ac20dd3c84 | https://github.com/phoenixnap/springmvc-raml-plugin/blob/6387072317cd771eb7d6f30943f556ac20dd3c84/src/main/java/com/phoenixnap/oss/ramlplugin/raml2code/helpers/RamlParser.java#L137-L178 | train |
phoenixnap/springmvc-raml-plugin | src/main/java/com/phoenixnap/oss/ramlplugin/raml2code/plugin/SpringMvcEndpointGeneratorMojo.java | SpringMvcEndpointGeneratorMojo.getAllReferencedTypeNames | private Set<String> getAllReferencedTypeNames(Set<ApiResourceMetadata> controllers) {
// TODO Add nested objects as well. For now only the top level objects
// are included
Set<String> parametersNames = controllers.stream().flatMap(resourceMetadata -> resourceMetadata.getParameters().stream())
.map(apiParamet... | java | private Set<String> getAllReferencedTypeNames(Set<ApiResourceMetadata> controllers) {
// TODO Add nested objects as well. For now only the top level objects
// are included
Set<String> parametersNames = controllers.stream().flatMap(resourceMetadata -> resourceMetadata.getParameters().stream())
.map(apiParamet... | [
"private",
"Set",
"<",
"String",
">",
"getAllReferencedTypeNames",
"(",
"Set",
"<",
"ApiResourceMetadata",
">",
"controllers",
")",
"{",
"// TODO Add nested objects as well. For now only the top level objects",
"// are included",
"Set",
"<",
"String",
">",
"parametersNames",
... | Fetches all referenced type names so as to not generate classes multiple
times
@param controllers
ApiResourceMetadata list
@return set of names | [
"Fetches",
"all",
"referenced",
"type",
"names",
"so",
"as",
"to",
"not",
"generate",
"classes",
"multiple",
"times"
] | 6387072317cd771eb7d6f30943f556ac20dd3c84 | https://github.com/phoenixnap/springmvc-raml-plugin/blob/6387072317cd771eb7d6f30943f556ac20dd3c84/src/main/java/com/phoenixnap/oss/ramlplugin/raml2code/plugin/SpringMvcEndpointGeneratorMojo.java#L328-L337 | train |
phoenixnap/springmvc-raml-plugin | src/main/java/com/phoenixnap/oss/ramlplugin/raml2code/rules/RamlLoader.java | RamlLoader.loadRamlFromFile | public static RamlRoot loadRamlFromFile(String ramlFileUrl) {
try {
return createRamlModelFactoryFor(ramlFileUrl).buildRamlRoot(ramlFileUrl);
} catch (NullPointerException npe) {
logger.error("File not found at {}", ramlFileUrl);
return null;
}
} | java | public static RamlRoot loadRamlFromFile(String ramlFileUrl) {
try {
return createRamlModelFactoryFor(ramlFileUrl).buildRamlRoot(ramlFileUrl);
} catch (NullPointerException npe) {
logger.error("File not found at {}", ramlFileUrl);
return null;
}
} | [
"public",
"static",
"RamlRoot",
"loadRamlFromFile",
"(",
"String",
"ramlFileUrl",
")",
"{",
"try",
"{",
"return",
"createRamlModelFactoryFor",
"(",
"ramlFileUrl",
")",
".",
"buildRamlRoot",
"(",
"ramlFileUrl",
")",
";",
"}",
"catch",
"(",
"NullPointerException",
"... | Loads a RAML document from a file. This method will
@param ramlFileUrl
The path to the file, this can either be a resource on the
class path (in which case the classpath: prefix should be
omitted) or a file on disk (in which case the file: prefix
should be included)
@return Built Raml model
@throws InvalidRamlResource... | [
"Loads",
"a",
"RAML",
"document",
"from",
"a",
"file",
".",
"This",
"method",
"will"
] | 6387072317cd771eb7d6f30943f556ac20dd3c84 | https://github.com/phoenixnap/springmvc-raml-plugin/blob/6387072317cd771eb7d6f30943f556ac20dd3c84/src/main/java/com/phoenixnap/oss/ramlplugin/raml2code/rules/RamlLoader.java#L55-L62 | train |
phoenixnap/springmvc-raml-plugin | src/main/java/com/phoenixnap/oss/ramlplugin/raml2code/data/ApiActionMetadata.java | ApiActionMetadata.doesActionTypeSupportRequestBody | private boolean doesActionTypeSupportRequestBody(RamlActionType target) {
return target.equals(RamlActionType.POST) || target.equals(RamlActionType.PUT) || target.equals(RamlActionType.PATCH)
|| target.equals(RamlActionType.DELETE);
} | java | private boolean doesActionTypeSupportRequestBody(RamlActionType target) {
return target.equals(RamlActionType.POST) || target.equals(RamlActionType.PUT) || target.equals(RamlActionType.PATCH)
|| target.equals(RamlActionType.DELETE);
} | [
"private",
"boolean",
"doesActionTypeSupportRequestBody",
"(",
"RamlActionType",
"target",
")",
"{",
"return",
"target",
".",
"equals",
"(",
"RamlActionType",
".",
"POST",
")",
"||",
"target",
".",
"equals",
"(",
"RamlActionType",
".",
"PUT",
")",
"||",
"target"... | Method to check if a specific action type supports payloads in the body
of the request
@param target
The target Verb to check
@return If true, the verb supports a payload in the request body | [
"Method",
"to",
"check",
"if",
"a",
"specific",
"action",
"type",
"supports",
"payloads",
"in",
"the",
"body",
"of",
"the",
"request"
] | 6387072317cd771eb7d6f30943f556ac20dd3c84 | https://github.com/phoenixnap/springmvc-raml-plugin/blob/6387072317cd771eb7d6f30943f556ac20dd3c84/src/main/java/com/phoenixnap/oss/ramlplugin/raml2code/data/ApiActionMetadata.java#L186-L189 | train |
phoenixnap/springmvc-raml-plugin | src/main/java/com/phoenixnap/oss/ramlplugin/raml2code/helpers/SchemaHelper.java | SchemaHelper.resolveSchema | public static String resolveSchema(String schema, RamlRoot document) {
if (document == null || schema == null || schema.indexOf("{") != -1) {
return null;
}
if (document.getSchemas() != null && !document.getSchemas().isEmpty()) {
for (Map<String, String> map : document.getSchemas()) {
if (map.containsKe... | java | public static String resolveSchema(String schema, RamlRoot document) {
if (document == null || schema == null || schema.indexOf("{") != -1) {
return null;
}
if (document.getSchemas() != null && !document.getSchemas().isEmpty()) {
for (Map<String, String> map : document.getSchemas()) {
if (map.containsKe... | [
"public",
"static",
"String",
"resolveSchema",
"(",
"String",
"schema",
",",
"RamlRoot",
"document",
")",
"{",
"if",
"(",
"document",
"==",
"null",
"||",
"schema",
"==",
"null",
"||",
"schema",
".",
"indexOf",
"(",
"\"{\"",
")",
"!=",
"-",
"1",
")",
"{... | Utility method that will return a schema if the identifier is valid and
exists in the raml file definition.
@param schema
The name of the schema to resolve
@param document
The Parent Raml Document
@return The full schema if contained in the raml document or null if not
found | [
"Utility",
"method",
"that",
"will",
"return",
"a",
"schema",
"if",
"the",
"identifier",
"is",
"valid",
"and",
"exists",
"in",
"the",
"raml",
"file",
"definition",
"."
] | 6387072317cd771eb7d6f30943f556ac20dd3c84 | https://github.com/phoenixnap/springmvc-raml-plugin/blob/6387072317cd771eb7d6f30943f556ac20dd3c84/src/main/java/com/phoenixnap/oss/ramlplugin/raml2code/helpers/SchemaHelper.java#L68-L80 | train |
phoenixnap/springmvc-raml-plugin | src/main/java/com/phoenixnap/oss/ramlplugin/raml2code/helpers/SchemaHelper.java | SchemaHelper.mapSimpleType | public static Class<?> mapSimpleType(RamlParamType param, String format, String rawType) {
switch (param) {
case BOOLEAN:
return Boolean.class;
case DATE:
return mapDateFormat(rawType);
case INTEGER: {
Class<?> fromFormat = mapNumberFromFormat(format);
if (fromFormat == Double.class) {
... | java | public static Class<?> mapSimpleType(RamlParamType param, String format, String rawType) {
switch (param) {
case BOOLEAN:
return Boolean.class;
case DATE:
return mapDateFormat(rawType);
case INTEGER: {
Class<?> fromFormat = mapNumberFromFormat(format);
if (fromFormat == Double.class) {
... | [
"public",
"static",
"Class",
"<",
"?",
">",
"mapSimpleType",
"(",
"RamlParamType",
"param",
",",
"String",
"format",
",",
"String",
"rawType",
")",
"{",
"switch",
"(",
"param",
")",
"{",
"case",
"BOOLEAN",
":",
"return",
"Boolean",
".",
"class",
";",
"ca... | Maps simple types supported by RAML into primitives and other simple Java
types
@param param
The Type to map
@param format
Number format specified
@param rawType
RAML type
@return The Java Class which maps to this Simple RAML ParamType or string
if one is not found | [
"Maps",
"simple",
"types",
"supported",
"by",
"RAML",
"into",
"primitives",
"and",
"other",
"simple",
"Java",
"types"
] | 6387072317cd771eb7d6f30943f556ac20dd3c84 | https://github.com/phoenixnap/springmvc-raml-plugin/blob/6387072317cd771eb7d6f30943f556ac20dd3c84/src/main/java/com/phoenixnap/oss/ramlplugin/raml2code/helpers/SchemaHelper.java#L95-L128 | train |
phoenixnap/springmvc-raml-plugin | src/main/java/com/phoenixnap/oss/ramlplugin/raml2code/helpers/SchemaHelper.java | SchemaHelper.extractTopItem | private static String extractTopItem(String searchString, String schema, int startIdx) {
String extracted = null;
int propIdx = schema.indexOf("\"properties\"", startIdx);
if (propIdx == -1) {
propIdx = Integer.MAX_VALUE;
}
// check for second
int idIdx = schema.indexOf("\"" + searchString + "\"", startI... | java | private static String extractTopItem(String searchString, String schema, int startIdx) {
String extracted = null;
int propIdx = schema.indexOf("\"properties\"", startIdx);
if (propIdx == -1) {
propIdx = Integer.MAX_VALUE;
}
// check for second
int idIdx = schema.indexOf("\"" + searchString + "\"", startI... | [
"private",
"static",
"String",
"extractTopItem",
"(",
"String",
"searchString",
",",
"String",
"schema",
",",
"int",
"startIdx",
")",
"{",
"String",
"extracted",
"=",
"null",
";",
"int",
"propIdx",
"=",
"schema",
".",
"indexOf",
"(",
"\"\\\"properties\\\"\"",
... | Extracts the value of a specified parameter in a schema
@param searchString
element to search for
@param schema
Schema as a string
@return the value or null if not found | [
"Extracts",
"the",
"value",
"of",
"a",
"specified",
"parameter",
"in",
"a",
"schema"
] | 6387072317cd771eb7d6f30943f556ac20dd3c84 | https://github.com/phoenixnap/springmvc-raml-plugin/blob/6387072317cd771eb7d6f30943f556ac20dd3c84/src/main/java/com/phoenixnap/oss/ramlplugin/raml2code/helpers/SchemaHelper.java#L261-L281 | train |
phoenixnap/springmvc-raml-plugin | src/main/java/com/phoenixnap/oss/ramlplugin/raml2code/helpers/SchemaHelper.java | SchemaHelper.buildBodyJCodeModel | public static JCodeModel buildBodyJCodeModel(String basePackage, String schemaLocation, String name, String schema,
Annotator annotator) {
JCodeModel codeModel = new JCodeModel();
SchemaStore schemaStore = new SchemaStore();
GenerationConfig config = Config.getPojoConfig();
if (config == null) {
config =... | java | public static JCodeModel buildBodyJCodeModel(String basePackage, String schemaLocation, String name, String schema,
Annotator annotator) {
JCodeModel codeModel = new JCodeModel();
SchemaStore schemaStore = new SchemaStore();
GenerationConfig config = Config.getPojoConfig();
if (config == null) {
config =... | [
"public",
"static",
"JCodeModel",
"buildBodyJCodeModel",
"(",
"String",
"basePackage",
",",
"String",
"schemaLocation",
",",
"String",
"name",
",",
"String",
"schema",
",",
"Annotator",
"annotator",
")",
"{",
"JCodeModel",
"codeModel",
"=",
"new",
"JCodeModel",
"(... | Builds a JCodeModel for classes that will be used as Request or Response
bodies
@param basePackage
The package we will be using for the domain objects
@param schemaLocation
The location of this schema, will be used to create absolute
URIs for $ref tags eg "classpath:/"
@param name
The class name
@param schema
The JSON... | [
"Builds",
"a",
"JCodeModel",
"for",
"classes",
"that",
"will",
"be",
"used",
"as",
"Request",
"or",
"Response",
"bodies"
] | 6387072317cd771eb7d6f30943f556ac20dd3c84 | https://github.com/phoenixnap/springmvc-raml-plugin/blob/6387072317cd771eb7d6f30943f556ac20dd3c84/src/main/java/com/phoenixnap/oss/ramlplugin/raml2code/helpers/SchemaHelper.java#L364-L404 | train |
phoenixnap/springmvc-raml-plugin | src/main/java/com/phoenixnap/oss/ramlplugin/raml2code/helpers/SchemaHelper.java | SchemaHelper.getGenerationConfig | public static GenerationConfig getGenerationConfig(Boolean generateBuilders, Boolean includeAdditionalProperties,
Boolean includeDynamicAccessors, Boolean useLongIntegers) {
return new DefaultGenerationConfig() {
@Override
public boolean isGenerateBuilders() { // set config option by
// overrid... | java | public static GenerationConfig getGenerationConfig(Boolean generateBuilders, Boolean includeAdditionalProperties,
Boolean includeDynamicAccessors, Boolean useLongIntegers) {
return new DefaultGenerationConfig() {
@Override
public boolean isGenerateBuilders() { // set config option by
// overrid... | [
"public",
"static",
"GenerationConfig",
"getGenerationConfig",
"(",
"Boolean",
"generateBuilders",
",",
"Boolean",
"includeAdditionalProperties",
",",
"Boolean",
"includeDynamicAccessors",
",",
"Boolean",
"useLongIntegers",
")",
"{",
"return",
"new",
"DefaultGenerationConfig"... | Returns a generation config with the supplied parameters. If any of these
parameters are supplied null, it will use the value defined in the
default configuration
@param generateBuilders
Enables or disables
{@link GenerationConfig#isGenerateBuilders()}
@param includeAdditionalProperties
Enables or disables
{@link Gene... | [
"Returns",
"a",
"generation",
"config",
"with",
"the",
"supplied",
"parameters",
".",
"If",
"any",
"of",
"these",
"parameters",
"are",
"supplied",
"null",
"it",
"will",
"use",
"the",
"value",
"defined",
"in",
"the",
"default",
"configuration"
] | 6387072317cd771eb7d6f30943f556ac20dd3c84 | https://github.com/phoenixnap/springmvc-raml-plugin/blob/6387072317cd771eb7d6f30943f556ac20dd3c84/src/main/java/com/phoenixnap/oss/ramlplugin/raml2code/helpers/SchemaHelper.java#L435-L476 | train |
phoenixnap/springmvc-raml-plugin | src/main/java/com/phoenixnap/oss/ramlplugin/raml2code/helpers/CodeModelHelper.java | CodeModelHelper.getElementAsString | public static String getElementAsString(JDeclaration type) {
StringBuilder builder = new StringBuilder();
JFormatter jFormatter = new JFormatter(new StringBuilderWriter(builder));
type.declare(jFormatter);
return builder.toString();
} | java | public static String getElementAsString(JDeclaration type) {
StringBuilder builder = new StringBuilder();
JFormatter jFormatter = new JFormatter(new StringBuilderWriter(builder));
type.declare(jFormatter);
return builder.toString();
} | [
"public",
"static",
"String",
"getElementAsString",
"(",
"JDeclaration",
"type",
")",
"{",
"StringBuilder",
"builder",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"JFormatter",
"jFormatter",
"=",
"new",
"JFormatter",
"(",
"new",
"StringBuilderWriter",
"(",
"builde... | Returns the string equivalent of the code model element
@param type
The element to stringify
@return the element as a string (generated code) | [
"Returns",
"the",
"string",
"equivalent",
"of",
"the",
"code",
"model",
"element"
] | 6387072317cd771eb7d6f30943f556ac20dd3c84 | https://github.com/phoenixnap/springmvc-raml-plugin/blob/6387072317cd771eb7d6f30943f556ac20dd3c84/src/main/java/com/phoenixnap/oss/ramlplugin/raml2code/helpers/CodeModelHelper.java#L48-L53 | train |
phoenixnap/springmvc-raml-plugin | src/main/java/com/phoenixnap/oss/ramlplugin/raml2code/interpreters/RamlTypeValidations.java | RamlTypeValidations.annotateFieldJSR303 | public void annotateFieldJSR303(JMethod getter, boolean addValidAnnotation) {
if (isRequired()) {
getter.annotate(NotNull.class);
}
if (StringUtils.hasText(getPattern())) {
JAnnotationUse annotation = getter.annotate(Pattern.class);
annotation.param("regexp", getPattern());
}
if (getMinLength() != nu... | java | public void annotateFieldJSR303(JMethod getter, boolean addValidAnnotation) {
if (isRequired()) {
getter.annotate(NotNull.class);
}
if (StringUtils.hasText(getPattern())) {
JAnnotationUse annotation = getter.annotate(Pattern.class);
annotation.param("regexp", getPattern());
}
if (getMinLength() != nu... | [
"public",
"void",
"annotateFieldJSR303",
"(",
"JMethod",
"getter",
",",
"boolean",
"addValidAnnotation",
")",
"{",
"if",
"(",
"isRequired",
"(",
")",
")",
"{",
"getter",
".",
"annotate",
"(",
"NotNull",
".",
"class",
")",
";",
"}",
"if",
"(",
"StringUtils"... | Adds validation annotations to the supplied method
@param getter
getter method to add validation annotation to
@param addValidAnnotation
if {@code @Valid} annotation dhould be added | [
"Adds",
"validation",
"annotations",
"to",
"the",
"supplied",
"method"
] | 6387072317cd771eb7d6f30943f556ac20dd3c84 | https://github.com/phoenixnap/springmvc-raml-plugin/blob/6387072317cd771eb7d6f30943f556ac20dd3c84/src/main/java/com/phoenixnap/oss/ramlplugin/raml2code/interpreters/RamlTypeValidations.java#L88-L120 | train |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.