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
sequence
docstring
stringlengths
3
16k
docstring_tokens
sequence
sha
stringlengths
40
40
url
stringlengths
105
339
partition
stringclasses
1 value
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsacl6.java
nsacl6.enable
public static base_response enable(nitro_service client, String acl6name) throws Exception { nsacl6 enableresource = new nsacl6(); enableresource.acl6name = acl6name; return enableresource.perform_operation(client,"enable"); }
java
public static base_response enable(nitro_service client, String acl6name) throws Exception { nsacl6 enableresource = new nsacl6(); enableresource.acl6name = acl6name; return enableresource.perform_operation(client,"enable"); }
[ "public", "static", "base_response", "enable", "(", "nitro_service", "client", ",", "String", "acl6name", ")", "throws", "Exception", "{", "nsacl6", "enableresource", "=", "new", "nsacl6", "(", ")", ";", "enableresource", ".", "acl6name", "=", "acl6name", ";", "return", "enableresource", ".", "perform_operation", "(", "client", ",", "\"enable\"", ")", ";", "}" ]
Use this API to enable nsacl6 of given name.
[ "Use", "this", "API", "to", "enable", "nsacl6", "of", "given", "name", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsacl6.java#L1007-L1011
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsacl6.java
nsacl6.enable
public static base_responses enable(nitro_service client, String acl6name[]) throws Exception { base_responses result = null; if (acl6name != null && acl6name.length > 0) { nsacl6 enableresources[] = new nsacl6[acl6name.length]; for (int i=0;i<acl6name.length;i++){ enableresources[i] = new nsacl6(); enableresources[i].acl6name = acl6name[i]; } result = perform_operation_bulk_request(client, enableresources,"enable"); } return result; }
java
public static base_responses enable(nitro_service client, String acl6name[]) throws Exception { base_responses result = null; if (acl6name != null && acl6name.length > 0) { nsacl6 enableresources[] = new nsacl6[acl6name.length]; for (int i=0;i<acl6name.length;i++){ enableresources[i] = new nsacl6(); enableresources[i].acl6name = acl6name[i]; } result = perform_operation_bulk_request(client, enableresources,"enable"); } return result; }
[ "public", "static", "base_responses", "enable", "(", "nitro_service", "client", ",", "String", "acl6name", "[", "]", ")", "throws", "Exception", "{", "base_responses", "result", "=", "null", ";", "if", "(", "acl6name", "!=", "null", "&&", "acl6name", ".", "length", ">", "0", ")", "{", "nsacl6", "enableresources", "[", "]", "=", "new", "nsacl6", "[", "acl6name", ".", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "acl6name", ".", "length", ";", "i", "++", ")", "{", "enableresources", "[", "i", "]", "=", "new", "nsacl6", "(", ")", ";", "enableresources", "[", "i", "]", ".", "acl6name", "=", "acl6name", "[", "i", "]", ";", "}", "result", "=", "perform_operation_bulk_request", "(", "client", ",", "enableresources", ",", "\"enable\"", ")", ";", "}", "return", "result", ";", "}" ]
Use this API to enable nsacl6 resources of given names.
[ "Use", "this", "API", "to", "enable", "nsacl6", "resources", "of", "given", "names", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsacl6.java#L1025-L1036
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsacl6.java
nsacl6.disable
public static base_response disable(nitro_service client, nsacl6 resource) throws Exception { nsacl6 disableresource = new nsacl6(); disableresource.acl6name = resource.acl6name; return disableresource.perform_operation(client,"disable"); }
java
public static base_response disable(nitro_service client, nsacl6 resource) throws Exception { nsacl6 disableresource = new nsacl6(); disableresource.acl6name = resource.acl6name; return disableresource.perform_operation(client,"disable"); }
[ "public", "static", "base_response", "disable", "(", "nitro_service", "client", ",", "nsacl6", "resource", ")", "throws", "Exception", "{", "nsacl6", "disableresource", "=", "new", "nsacl6", "(", ")", ";", "disableresource", ".", "acl6name", "=", "resource", ".", "acl6name", ";", "return", "disableresource", ".", "perform_operation", "(", "client", ",", "\"disable\"", ")", ";", "}" ]
Use this API to disable nsacl6.
[ "Use", "this", "API", "to", "disable", "nsacl6", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsacl6.java#L1066-L1070
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsacl6.java
nsacl6.disable
public static base_responses disable(nitro_service client, String acl6name[]) throws Exception { base_responses result = null; if (acl6name != null && acl6name.length > 0) { nsacl6 disableresources[] = new nsacl6[acl6name.length]; for (int i=0;i<acl6name.length;i++){ disableresources[i] = new nsacl6(); disableresources[i].acl6name = acl6name[i]; } result = perform_operation_bulk_request(client, disableresources,"disable"); } return result; }
java
public static base_responses disable(nitro_service client, String acl6name[]) throws Exception { base_responses result = null; if (acl6name != null && acl6name.length > 0) { nsacl6 disableresources[] = new nsacl6[acl6name.length]; for (int i=0;i<acl6name.length;i++){ disableresources[i] = new nsacl6(); disableresources[i].acl6name = acl6name[i]; } result = perform_operation_bulk_request(client, disableresources,"disable"); } return result; }
[ "public", "static", "base_responses", "disable", "(", "nitro_service", "client", ",", "String", "acl6name", "[", "]", ")", "throws", "Exception", "{", "base_responses", "result", "=", "null", ";", "if", "(", "acl6name", "!=", "null", "&&", "acl6name", ".", "length", ">", "0", ")", "{", "nsacl6", "disableresources", "[", "]", "=", "new", "nsacl6", "[", "acl6name", ".", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "acl6name", ".", "length", ";", "i", "++", ")", "{", "disableresources", "[", "i", "]", "=", "new", "nsacl6", "(", ")", ";", "disableresources", "[", "i", "]", ".", "acl6name", "=", "acl6name", "[", "i", "]", ";", "}", "result", "=", "perform_operation_bulk_request", "(", "client", ",", "disableresources", ",", "\"disable\"", ")", ";", "}", "return", "result", ";", "}" ]
Use this API to disable nsacl6 resources of given names.
[ "Use", "this", "API", "to", "disable", "nsacl6", "resources", "of", "given", "names", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsacl6.java#L1075-L1086
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsacl6.java
nsacl6.rename
public static base_response rename(nitro_service client, nsacl6 resource, String new_acl6name) throws Exception { nsacl6 renameresource = new nsacl6(); renameresource.acl6name = resource.acl6name; return renameresource.rename_resource(client,new_acl6name); }
java
public static base_response rename(nitro_service client, nsacl6 resource, String new_acl6name) throws Exception { nsacl6 renameresource = new nsacl6(); renameresource.acl6name = resource.acl6name; return renameresource.rename_resource(client,new_acl6name); }
[ "public", "static", "base_response", "rename", "(", "nitro_service", "client", ",", "nsacl6", "resource", ",", "String", "new_acl6name", ")", "throws", "Exception", "{", "nsacl6", "renameresource", "=", "new", "nsacl6", "(", ")", ";", "renameresource", ".", "acl6name", "=", "resource", ".", "acl6name", ";", "return", "renameresource", ".", "rename_resource", "(", "client", ",", "new_acl6name", ")", ";", "}" ]
Use this API to rename a nsacl6 resource.
[ "Use", "this", "API", "to", "rename", "a", "nsacl6", "resource", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsacl6.java#L1107-L1111
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsacl6.java
nsacl6.get
public static nsacl6[] get(nitro_service service) throws Exception{ nsacl6 obj = new nsacl6(); nsacl6[] response = (nsacl6[])obj.get_resources(service); return response; }
java
public static nsacl6[] get(nitro_service service) throws Exception{ nsacl6 obj = new nsacl6(); nsacl6[] response = (nsacl6[])obj.get_resources(service); return response; }
[ "public", "static", "nsacl6", "[", "]", "get", "(", "nitro_service", "service", ")", "throws", "Exception", "{", "nsacl6", "obj", "=", "new", "nsacl6", "(", ")", ";", "nsacl6", "[", "]", "response", "=", "(", "nsacl6", "[", "]", ")", "obj", ".", "get_resources", "(", "service", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch all the nsacl6 resources that are configured on netscaler.
[ "Use", "this", "API", "to", "fetch", "all", "the", "nsacl6", "resources", "that", "are", "configured", "on", "netscaler", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsacl6.java#L1125-L1129
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsacl6.java
nsacl6.get
public static nsacl6 get(nitro_service service, String acl6name) throws Exception{ nsacl6 obj = new nsacl6(); obj.set_acl6name(acl6name); nsacl6 response = (nsacl6) obj.get_resource(service); return response; }
java
public static nsacl6 get(nitro_service service, String acl6name) throws Exception{ nsacl6 obj = new nsacl6(); obj.set_acl6name(acl6name); nsacl6 response = (nsacl6) obj.get_resource(service); return response; }
[ "public", "static", "nsacl6", "get", "(", "nitro_service", "service", ",", "String", "acl6name", ")", "throws", "Exception", "{", "nsacl6", "obj", "=", "new", "nsacl6", "(", ")", ";", "obj", ".", "set_acl6name", "(", "acl6name", ")", ";", "nsacl6", "response", "=", "(", "nsacl6", ")", "obj", ".", "get_resource", "(", "service", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch nsacl6 resource of given name .
[ "Use", "this", "API", "to", "fetch", "nsacl6", "resource", "of", "given", "name", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsacl6.java#L1141-L1146
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsacl6.java
nsacl6.get
public static nsacl6[] get(nitro_service service, String acl6name[]) throws Exception{ if (acl6name !=null && acl6name.length>0) { nsacl6 response[] = new nsacl6[acl6name.length]; nsacl6 obj[] = new nsacl6[acl6name.length]; for (int i=0;i<acl6name.length;i++) { obj[i] = new nsacl6(); obj[i].set_acl6name(acl6name[i]); response[i] = (nsacl6) obj[i].get_resource(service); } return response; } return null; }
java
public static nsacl6[] get(nitro_service service, String acl6name[]) throws Exception{ if (acl6name !=null && acl6name.length>0) { nsacl6 response[] = new nsacl6[acl6name.length]; nsacl6 obj[] = new nsacl6[acl6name.length]; for (int i=0;i<acl6name.length;i++) { obj[i] = new nsacl6(); obj[i].set_acl6name(acl6name[i]); response[i] = (nsacl6) obj[i].get_resource(service); } return response; } return null; }
[ "public", "static", "nsacl6", "[", "]", "get", "(", "nitro_service", "service", ",", "String", "acl6name", "[", "]", ")", "throws", "Exception", "{", "if", "(", "acl6name", "!=", "null", "&&", "acl6name", ".", "length", ">", "0", ")", "{", "nsacl6", "response", "[", "]", "=", "new", "nsacl6", "[", "acl6name", ".", "length", "]", ";", "nsacl6", "obj", "[", "]", "=", "new", "nsacl6", "[", "acl6name", ".", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "acl6name", ".", "length", ";", "i", "++", ")", "{", "obj", "[", "i", "]", "=", "new", "nsacl6", "(", ")", ";", "obj", "[", "i", "]", ".", "set_acl6name", "(", "acl6name", "[", "i", "]", ")", ";", "response", "[", "i", "]", "=", "(", "nsacl6", ")", "obj", "[", "i", "]", ".", "get_resource", "(", "service", ")", ";", "}", "return", "response", ";", "}", "return", "null", ";", "}" ]
Use this API to fetch nsacl6 resources of given names .
[ "Use", "this", "API", "to", "fetch", "nsacl6", "resources", "of", "given", "names", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsacl6.java#L1151-L1163
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/basic/service_dospolicy_binding.java
service_dospolicy_binding.get
public static service_dospolicy_binding[] get(nitro_service service, String name) throws Exception{ service_dospolicy_binding obj = new service_dospolicy_binding(); obj.set_name(name); service_dospolicy_binding response[] = (service_dospolicy_binding[]) obj.get_resources(service); return response; }
java
public static service_dospolicy_binding[] get(nitro_service service, String name) throws Exception{ service_dospolicy_binding obj = new service_dospolicy_binding(); obj.set_name(name); service_dospolicy_binding response[] = (service_dospolicy_binding[]) obj.get_resources(service); return response; }
[ "public", "static", "service_dospolicy_binding", "[", "]", "get", "(", "nitro_service", "service", ",", "String", "name", ")", "throws", "Exception", "{", "service_dospolicy_binding", "obj", "=", "new", "service_dospolicy_binding", "(", ")", ";", "obj", ".", "set_name", "(", "name", ")", ";", "service_dospolicy_binding", "response", "[", "]", "=", "(", "service_dospolicy_binding", "[", "]", ")", "obj", ".", "get_resources", "(", "service", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch service_dospolicy_binding resources of given name .
[ "Use", "this", "API", "to", "fetch", "service_dospolicy_binding", "resources", "of", "given", "name", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/basic/service_dospolicy_binding.java#L154-L159
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwprofile_csrftag_binding.java
appfwprofile_csrftag_binding.get
public static appfwprofile_csrftag_binding[] get(nitro_service service, String name) throws Exception{ appfwprofile_csrftag_binding obj = new appfwprofile_csrftag_binding(); obj.set_name(name); appfwprofile_csrftag_binding response[] = (appfwprofile_csrftag_binding[]) obj.get_resources(service); return response; }
java
public static appfwprofile_csrftag_binding[] get(nitro_service service, String name) throws Exception{ appfwprofile_csrftag_binding obj = new appfwprofile_csrftag_binding(); obj.set_name(name); appfwprofile_csrftag_binding response[] = (appfwprofile_csrftag_binding[]) obj.get_resources(service); return response; }
[ "public", "static", "appfwprofile_csrftag_binding", "[", "]", "get", "(", "nitro_service", "service", ",", "String", "name", ")", "throws", "Exception", "{", "appfwprofile_csrftag_binding", "obj", "=", "new", "appfwprofile_csrftag_binding", "(", ")", ";", "obj", ".", "set_name", "(", "name", ")", ";", "appfwprofile_csrftag_binding", "response", "[", "]", "=", "(", "appfwprofile_csrftag_binding", "[", "]", ")", "obj", ".", "get_resources", "(", "service", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch appfwprofile_csrftag_binding resources of given name .
[ "Use", "this", "API", "to", "fetch", "appfwprofile_csrftag_binding", "resources", "of", "given", "name", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwprofile_csrftag_binding.java#L219-L224
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnsview_binding.java
dnsview_binding.get
public static dnsview_binding get(nitro_service service, String viewname) throws Exception{ dnsview_binding obj = new dnsview_binding(); obj.set_viewname(viewname); dnsview_binding response = (dnsview_binding) obj.get_resource(service); return response; }
java
public static dnsview_binding get(nitro_service service, String viewname) throws Exception{ dnsview_binding obj = new dnsview_binding(); obj.set_viewname(viewname); dnsview_binding response = (dnsview_binding) obj.get_resource(service); return response; }
[ "public", "static", "dnsview_binding", "get", "(", "nitro_service", "service", ",", "String", "viewname", ")", "throws", "Exception", "{", "dnsview_binding", "obj", "=", "new", "dnsview_binding", "(", ")", ";", "obj", ".", "set_viewname", "(", "viewname", ")", ";", "dnsview_binding", "response", "=", "(", "dnsview_binding", ")", "obj", ".", "get_resource", "(", "service", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch dnsview_binding resource of given name .
[ "Use", "this", "API", "to", "fetch", "dnsview_binding", "resource", "of", "given", "name", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/dns/dnsview_binding.java#L114-L119
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsspparams.java
nsspparams.update
public static base_response update(nitro_service client, nsspparams resource) throws Exception { nsspparams updateresource = new nsspparams(); updateresource.basethreshold = resource.basethreshold; updateresource.throttle = resource.throttle; return updateresource.update_resource(client); }
java
public static base_response update(nitro_service client, nsspparams resource) throws Exception { nsspparams updateresource = new nsspparams(); updateresource.basethreshold = resource.basethreshold; updateresource.throttle = resource.throttle; return updateresource.update_resource(client); }
[ "public", "static", "base_response", "update", "(", "nitro_service", "client", ",", "nsspparams", "resource", ")", "throws", "Exception", "{", "nsspparams", "updateresource", "=", "new", "nsspparams", "(", ")", ";", "updateresource", ".", "basethreshold", "=", "resource", ".", "basethreshold", ";", "updateresource", ".", "throttle", "=", "resource", ".", "throttle", ";", "return", "updateresource", ".", "update_resource", "(", "client", ")", ";", "}" ]
Use this API to update nsspparams.
[ "Use", "this", "API", "to", "update", "nsspparams", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsspparams.java#L135-L140
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsspparams.java
nsspparams.unset
public static base_response unset(nitro_service client, nsspparams resource, String[] args) throws Exception{ nsspparams unsetresource = new nsspparams(); return unsetresource.unset_resource(client,args); }
java
public static base_response unset(nitro_service client, nsspparams resource, String[] args) throws Exception{ nsspparams unsetresource = new nsspparams(); return unsetresource.unset_resource(client,args); }
[ "public", "static", "base_response", "unset", "(", "nitro_service", "client", ",", "nsspparams", "resource", ",", "String", "[", "]", "args", ")", "throws", "Exception", "{", "nsspparams", "unsetresource", "=", "new", "nsspparams", "(", ")", ";", "return", "unsetresource", ".", "unset_resource", "(", "client", ",", "args", ")", ";", "}" ]
Use this API to unset the properties of nsspparams resource. Properties that need to be unset are specified in args array.
[ "Use", "this", "API", "to", "unset", "the", "properties", "of", "nsspparams", "resource", ".", "Properties", "that", "need", "to", "be", "unset", "are", "specified", "in", "args", "array", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsspparams.java#L146-L149
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsspparams.java
nsspparams.get
public static nsspparams get(nitro_service service) throws Exception{ nsspparams obj = new nsspparams(); nsspparams[] response = (nsspparams[])obj.get_resources(service); return response[0]; }
java
public static nsspparams get(nitro_service service) throws Exception{ nsspparams obj = new nsspparams(); nsspparams[] response = (nsspparams[])obj.get_resources(service); return response[0]; }
[ "public", "static", "nsspparams", "get", "(", "nitro_service", "service", ")", "throws", "Exception", "{", "nsspparams", "obj", "=", "new", "nsspparams", "(", ")", ";", "nsspparams", "[", "]", "response", "=", "(", "nsspparams", "[", "]", ")", "obj", ".", "get_resources", "(", "service", ")", ";", "return", "response", "[", "0", "]", ";", "}" ]
Use this API to fetch all the nsspparams resources that are configured on netscaler.
[ "Use", "this", "API", "to", "fetch", "all", "the", "nsspparams", "resources", "that", "are", "configured", "on", "netscaler", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsspparams.java#L154-L158
train
PeterisP/LVTagger
src/main/java/edu/stanford/nlp/util/CollectionUtils.java
CollectionUtils.asList
public static List<Integer> asList(int[] a) { List<Integer> result = new ArrayList<Integer>(a.length); for (int i = 0; i < a.length; i++) { result.add(Integer.valueOf(a[i])); } return result; }
java
public static List<Integer> asList(int[] a) { List<Integer> result = new ArrayList<Integer>(a.length); for (int i = 0; i < a.length; i++) { result.add(Integer.valueOf(a[i])); } return result; }
[ "public", "static", "List", "<", "Integer", ">", "asList", "(", "int", "[", "]", "a", ")", "{", "List", "<", "Integer", ">", "result", "=", "new", "ArrayList", "<", "Integer", ">", "(", "a", ".", "length", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "a", ".", "length", ";", "i", "++", ")", "{", "result", ".", "add", "(", "Integer", ".", "valueOf", "(", "a", "[", "i", "]", ")", ")", ";", "}", "return", "result", ";", "}" ]
Utils for making collections out of arrays of primitive types.
[ "Utils", "for", "making", "collections", "out", "of", "arrays", "of", "primitive", "types", "." ]
b3d44bab9ec07ace0d13612c448a6b7298c1f681
https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/util/CollectionUtils.java#L42-L48
train
PeterisP/LVTagger
src/main/java/edu/stanford/nlp/util/CollectionUtils.java
CollectionUtils.makeList
public static <T> List<T> makeList(T... items) { List<T> s = new ArrayList<T>(items.length); for (int i = 0; i < items.length; i++) { s.add(items[i]); } return s; }
java
public static <T> List<T> makeList(T... items) { List<T> s = new ArrayList<T>(items.length); for (int i = 0; i < items.length; i++) { s.add(items[i]); } return s; }
[ "public", "static", "<", "T", ">", "List", "<", "T", ">", "makeList", "(", "T", "...", "items", ")", "{", "List", "<", "T", ">", "s", "=", "new", "ArrayList", "<", "T", ">", "(", "items", ".", "length", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "items", ".", "length", ";", "i", "++", ")", "{", "s", ".", "add", "(", "items", "[", "i", "]", ")", ";", "}", "return", "s", ";", "}" ]
Returns a new List containing the given objects.
[ "Returns", "a", "new", "List", "containing", "the", "given", "objects", "." ]
b3d44bab9ec07ace0d13612c448a6b7298c1f681
https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/util/CollectionUtils.java#L60-L66
train
PeterisP/LVTagger
src/main/java/edu/stanford/nlp/util/CollectionUtils.java
CollectionUtils.asSet
public static <T> Set<T> asSet(T[] o) { return new HashSet<T>(Arrays.asList(o)); }
java
public static <T> Set<T> asSet(T[] o) { return new HashSet<T>(Arrays.asList(o)); }
[ "public", "static", "<", "T", ">", "Set", "<", "T", ">", "asSet", "(", "T", "[", "]", "o", ")", "{", "return", "new", "HashSet", "<", "T", ">", "(", "Arrays", ".", "asList", "(", "o", ")", ")", ";", "}" ]
Returns a new Set containing all the objects in the specified array.
[ "Returns", "a", "new", "Set", "containing", "all", "the", "objects", "in", "the", "specified", "array", "." ]
b3d44bab9ec07ace0d13612c448a6b7298c1f681
https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/util/CollectionUtils.java#L69-L71
train
PeterisP/LVTagger
src/main/java/edu/stanford/nlp/util/CollectionUtils.java
CollectionUtils.diff
public static <T> Collection<T> diff(Collection<T> list1, Collection<T> list2) { Collection<T> diff = new ArrayList<T>(); for (T t : list1) { if (!list2.contains(t)) { diff.add(t); } } return diff; }
java
public static <T> Collection<T> diff(Collection<T> list1, Collection<T> list2) { Collection<T> diff = new ArrayList<T>(); for (T t : list1) { if (!list2.contains(t)) { diff.add(t); } } return diff; }
[ "public", "static", "<", "T", ">", "Collection", "<", "T", ">", "diff", "(", "Collection", "<", "T", ">", "list1", ",", "Collection", "<", "T", ">", "list2", ")", "{", "Collection", "<", "T", ">", "diff", "=", "new", "ArrayList", "<", "T", ">", "(", ")", ";", "for", "(", "T", "t", ":", "list1", ")", "{", "if", "(", "!", "list2", ".", "contains", "(", "t", ")", ")", "{", "diff", ".", "add", "(", "t", ")", ";", "}", "}", "return", "diff", ";", "}" ]
all objects in list1 that are not in list2 @param <T> @param list1 First collection @param list2 Second collection @return The collection difference list1 - list2
[ "all", "objects", "in", "list1", "that", "are", "not", "in", "list2" ]
b3d44bab9ec07ace0d13612c448a6b7298c1f681
https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/util/CollectionUtils.java#L115-L123
train
PeterisP/LVTagger
src/main/java/edu/stanford/nlp/util/CollectionUtils.java
CollectionUtils.sampleWithoutReplacement
public static <E> Collection<E> sampleWithoutReplacement(Collection<E> c, int n) { return sampleWithoutReplacement(c, n, new Random()); }
java
public static <E> Collection<E> sampleWithoutReplacement(Collection<E> c, int n) { return sampleWithoutReplacement(c, n, new Random()); }
[ "public", "static", "<", "E", ">", "Collection", "<", "E", ">", "sampleWithoutReplacement", "(", "Collection", "<", "E", ">", "c", ",", "int", "n", ")", "{", "return", "sampleWithoutReplacement", "(", "c", ",", "n", ",", "new", "Random", "(", ")", ")", ";", "}" ]
Samples without replacement from a collection. @param c The collection to be sampled from @param n The number of samples to take @return a new collection with the sample
[ "Samples", "without", "replacement", "from", "a", "collection", "." ]
b3d44bab9ec07ace0d13612c448a6b7298c1f681
https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/util/CollectionUtils.java#L331-L333
train
PeterisP/LVTagger
src/main/java/edu/stanford/nlp/util/CollectionUtils.java
CollectionUtils.sampleWithReplacement
public static <E> Collection<E> sampleWithReplacement(Collection<E> c, int n) { return sampleWithReplacement(c, n, new Random()); }
java
public static <E> Collection<E> sampleWithReplacement(Collection<E> c, int n) { return sampleWithReplacement(c, n, new Random()); }
[ "public", "static", "<", "E", ">", "Collection", "<", "E", ">", "sampleWithReplacement", "(", "Collection", "<", "E", ">", "c", ",", "int", "n", ")", "{", "return", "sampleWithReplacement", "(", "c", ",", "n", ",", "new", "Random", "(", ")", ")", ";", "}" ]
Samples with replacement from a collection @param c The collection to be sampled from @param n The number of samples to take @return a new collection with the sample
[ "Samples", "with", "replacement", "from", "a", "collection" ]
b3d44bab9ec07ace0d13612c448a6b7298c1f681
https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/util/CollectionUtils.java#L377-L379
train
PeterisP/LVTagger
src/main/java/edu/stanford/nlp/util/CollectionUtils.java
CollectionUtils.compareLists
public static <T extends Comparable<T>> int compareLists(List<T> list1, List<T> list2) { if (list1 == null && list2 == null) return 0; if (list1 == null || list2 == null) { throw new IllegalArgumentException(); } int size1 = list1.size(); int size2 = list2.size(); int size = Math.min(size1, size2); for (int i = 0; i < size; i++) { int c = list1.get(i).compareTo(list2.get(i)); if (c != 0) return c; } if (size1 < size2) return -1; if (size1 > size2) return 1; return 0; }
java
public static <T extends Comparable<T>> int compareLists(List<T> list1, List<T> list2) { if (list1 == null && list2 == null) return 0; if (list1 == null || list2 == null) { throw new IllegalArgumentException(); } int size1 = list1.size(); int size2 = list2.size(); int size = Math.min(size1, size2); for (int i = 0; i < size; i++) { int c = list1.get(i).compareTo(list2.get(i)); if (c != 0) return c; } if (size1 < size2) return -1; if (size1 > size2) return 1; return 0; }
[ "public", "static", "<", "T", "extends", "Comparable", "<", "T", ">", ">", "int", "compareLists", "(", "List", "<", "T", ">", "list1", ",", "List", "<", "T", ">", "list2", ")", "{", "if", "(", "list1", "==", "null", "&&", "list2", "==", "null", ")", "return", "0", ";", "if", "(", "list1", "==", "null", "||", "list2", "==", "null", ")", "{", "throw", "new", "IllegalArgumentException", "(", ")", ";", "}", "int", "size1", "=", "list1", ".", "size", "(", ")", ";", "int", "size2", "=", "list2", ".", "size", "(", ")", ";", "int", "size", "=", "Math", ".", "min", "(", "size1", ",", "size2", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "size", ";", "i", "++", ")", "{", "int", "c", "=", "list1", ".", "get", "(", "i", ")", ".", "compareTo", "(", "list2", ".", "get", "(", "i", ")", ")", ";", "if", "(", "c", "!=", "0", ")", "return", "c", ";", "}", "if", "(", "size1", "<", "size2", ")", "return", "-", "1", ";", "if", "(", "size1", ">", "size2", ")", "return", "1", ";", "return", "0", ";", "}" ]
Provides a consistent ordering over lists. First compares by the first element. If that element is equal, the next element is considered, and so on.
[ "Provides", "a", "consistent", "ordering", "over", "lists", ".", "First", "compares", "by", "the", "first", "element", ".", "If", "that", "element", "is", "equal", "the", "next", "element", "is", "considered", "and", "so", "on", "." ]
b3d44bab9ec07ace0d13612c448a6b7298c1f681
https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/util/CollectionUtils.java#L442-L461
train
PeterisP/LVTagger
src/main/java/edu/stanford/nlp/util/CollectionUtils.java
CollectionUtils.toList
public static <T> List<T> toList(Iterable<T> items) { List<T> list = new ArrayList<T>(); addAll(list, items); return list; }
java
public static <T> List<T> toList(Iterable<T> items) { List<T> list = new ArrayList<T>(); addAll(list, items); return list; }
[ "public", "static", "<", "T", ">", "List", "<", "T", ">", "toList", "(", "Iterable", "<", "T", ">", "items", ")", "{", "List", "<", "T", ">", "list", "=", "new", "ArrayList", "<", "T", ">", "(", ")", ";", "addAll", "(", "list", ",", "items", ")", ";", "return", "list", ";", "}" ]
Create a list out of the items in the Iterable. @param <T> The type of items in the Iterable. @param items The items to be made into a list. @return A list consisting of the items of the Iterable, in the same order.
[ "Create", "a", "list", "out", "of", "the", "items", "in", "the", "Iterable", "." ]
b3d44bab9ec07ace0d13612c448a6b7298c1f681
https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/util/CollectionUtils.java#L510-L514
train
PeterisP/LVTagger
src/main/java/edu/stanford/nlp/util/CollectionUtils.java
CollectionUtils.toSet
public static <T> Set<T> toSet(Iterable<T> items) { Set<T> set = new HashSet<T>(); addAll(set, items); return set; }
java
public static <T> Set<T> toSet(Iterable<T> items) { Set<T> set = new HashSet<T>(); addAll(set, items); return set; }
[ "public", "static", "<", "T", ">", "Set", "<", "T", ">", "toSet", "(", "Iterable", "<", "T", ">", "items", ")", "{", "Set", "<", "T", ">", "set", "=", "new", "HashSet", "<", "T", ">", "(", ")", ";", "addAll", "(", "set", ",", "items", ")", ";", "return", "set", ";", "}" ]
Create a set out of the items in the Iterable. @param <T> The type of items in the Iterable. @param items The items to be made into a set. @return A set consisting of the items from the Iterable.
[ "Create", "a", "set", "out", "of", "the", "items", "in", "the", "Iterable", "." ]
b3d44bab9ec07ace0d13612c448a6b7298c1f681
https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/util/CollectionUtils.java#L525-L529
train
PeterisP/LVTagger
src/main/java/edu/stanford/nlp/util/CollectionUtils.java
CollectionUtils.addAll
public static <T> void addAll(Collection<T> collection, Iterable<? extends T> items) { for (T item : items) { collection.add(item); } }
java
public static <T> void addAll(Collection<T> collection, Iterable<? extends T> items) { for (T item : items) { collection.add(item); } }
[ "public", "static", "<", "T", ">", "void", "addAll", "(", "Collection", "<", "T", ">", "collection", ",", "Iterable", "<", "?", "extends", "T", ">", "items", ")", "{", "for", "(", "T", "item", ":", "items", ")", "{", "collection", ".", "add", "(", "item", ")", ";", "}", "}" ]
Add all the items from an iterable to a collection. @param <T> The type of items in the iterable and the collection @param collection The collection to which the items should be added. @param items The items to add to the collection.
[ "Add", "all", "the", "items", "from", "an", "iterable", "to", "a", "collection", "." ]
b3d44bab9ec07ace0d13612c448a6b7298c1f681
https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/util/CollectionUtils.java#L541-L545
train
PeterisP/LVTagger
src/main/java/edu/stanford/nlp/util/CollectionUtils.java
CollectionUtils.getNGrams
public static <T> List<List<T>> getNGrams(List<T> items, int minSize, int maxSize) { List<List<T>> ngrams = new ArrayList<List<T>>(); int listSize = items.size(); for (int i = 0; i < listSize; ++i) { for (int ngramSize = minSize; ngramSize <= maxSize; ++ngramSize) { if (i + ngramSize <= listSize) { List<T> ngram = new ArrayList<T>(); for (int j = i; j < i + ngramSize; ++j) { ngram.add(items.get(j)); } ngrams.add(ngram); } } } return ngrams; }
java
public static <T> List<List<T>> getNGrams(List<T> items, int minSize, int maxSize) { List<List<T>> ngrams = new ArrayList<List<T>>(); int listSize = items.size(); for (int i = 0; i < listSize; ++i) { for (int ngramSize = minSize; ngramSize <= maxSize; ++ngramSize) { if (i + ngramSize <= listSize) { List<T> ngram = new ArrayList<T>(); for (int j = i; j < i + ngramSize; ++j) { ngram.add(items.get(j)); } ngrams.add(ngram); } } } return ngrams; }
[ "public", "static", "<", "T", ">", "List", "<", "List", "<", "T", ">", ">", "getNGrams", "(", "List", "<", "T", ">", "items", ",", "int", "minSize", ",", "int", "maxSize", ")", "{", "List", "<", "List", "<", "T", ">>", "ngrams", "=", "new", "ArrayList", "<", "List", "<", "T", ">", ">", "(", ")", ";", "int", "listSize", "=", "items", ".", "size", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "listSize", ";", "++", "i", ")", "{", "for", "(", "int", "ngramSize", "=", "minSize", ";", "ngramSize", "<=", "maxSize", ";", "++", "ngramSize", ")", "{", "if", "(", "i", "+", "ngramSize", "<=", "listSize", ")", "{", "List", "<", "T", ">", "ngram", "=", "new", "ArrayList", "<", "T", ">", "(", ")", ";", "for", "(", "int", "j", "=", "i", ";", "j", "<", "i", "+", "ngramSize", ";", "++", "j", ")", "{", "ngram", ".", "add", "(", "items", ".", "get", "(", "j", ")", ")", ";", "}", "ngrams", ".", "add", "(", "ngram", ")", ";", "}", "}", "}", "return", "ngrams", ";", "}" ]
Get all sub-lists of the given list of the given sizes. For example: <pre> List&lt;String&gt; items = Arrays.asList(&quot;a&quot;, &quot;b&quot;, &quot;c&quot;, &quot;d&quot;); System.out.println(CollectionUtils.getNGrams(items, 1, 2)); </pre> would print out: <pre> [[a], [a, b], [b], [b, c], [c], [c, d], [d]] </pre> @param <T> The type of items contained in the list. @param items The list of items. @param minSize The minimum size of an ngram. @param maxSize The maximum size of an ngram. @return All sub-lists of the given sizes.
[ "Get", "all", "sub", "-", "lists", "of", "the", "given", "list", "of", "the", "given", "sizes", "." ]
b3d44bab9ec07ace0d13612c448a6b7298c1f681
https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/util/CollectionUtils.java#L573-L588
train
PeterisP/LVTagger
src/main/java/edu/stanford/nlp/util/CollectionUtils.java
CollectionUtils.flatten
public static <T> List<T> flatten(Collection<List<T>> nestedList) { List<T> result = new ArrayList<T>(); for (List<T> list : nestedList) { result.addAll(list); } return result; }
java
public static <T> List<T> flatten(Collection<List<T>> nestedList) { List<T> result = new ArrayList<T>(); for (List<T> list : nestedList) { result.addAll(list); } return result; }
[ "public", "static", "<", "T", ">", "List", "<", "T", ">", "flatten", "(", "Collection", "<", "List", "<", "T", ">", ">", "nestedList", ")", "{", "List", "<", "T", ">", "result", "=", "new", "ArrayList", "<", "T", ">", "(", ")", ";", "for", "(", "List", "<", "T", ">", "list", ":", "nestedList", ")", "{", "result", ".", "addAll", "(", "list", ")", ";", "}", "return", "result", ";", "}" ]
combines all the lists in a collection to a single list
[ "combines", "all", "the", "lists", "in", "a", "collection", "to", "a", "single", "list" ]
b3d44bab9ec07ace0d13612c448a6b7298c1f681
https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/util/CollectionUtils.java#L729-L735
train
PeterisP/LVTagger
src/main/java/edu/stanford/nlp/util/CollectionUtils.java
CollectionUtils.uniqueNonhashableObjects
public static <ObjType, Hashable> Collection<ObjType> uniqueNonhashableObjects(Collection<ObjType> objects, Function<ObjType, Hashable> customHasher) { Map<Hashable, ObjType> hashesToObjects = new HashMap<Hashable, ObjType>(); for (ObjType object : objects) { hashesToObjects.put(customHasher.apply(object), object); } return hashesToObjects.values(); }
java
public static <ObjType, Hashable> Collection<ObjType> uniqueNonhashableObjects(Collection<ObjType> objects, Function<ObjType, Hashable> customHasher) { Map<Hashable, ObjType> hashesToObjects = new HashMap<Hashable, ObjType>(); for (ObjType object : objects) { hashesToObjects.put(customHasher.apply(object), object); } return hashesToObjects.values(); }
[ "public", "static", "<", "ObjType", ",", "Hashable", ">", "Collection", "<", "ObjType", ">", "uniqueNonhashableObjects", "(", "Collection", "<", "ObjType", ">", "objects", ",", "Function", "<", "ObjType", ",", "Hashable", ">", "customHasher", ")", "{", "Map", "<", "Hashable", ",", "ObjType", ">", "hashesToObjects", "=", "new", "HashMap", "<", "Hashable", ",", "ObjType", ">", "(", ")", ";", "for", "(", "ObjType", "object", ":", "objects", ")", "{", "hashesToObjects", ".", "put", "(", "customHasher", ".", "apply", "(", "object", ")", ",", "object", ")", ";", "}", "return", "hashesToObjects", ".", "values", "(", ")", ";", "}" ]
Makes it possible to uniquify a collection of objects which are normally non-hashable. Alternatively, it lets you define an alternate hash function for them for limited-use hashing.
[ "Makes", "it", "possible", "to", "uniquify", "a", "collection", "of", "objects", "which", "are", "normally", "non", "-", "hashable", ".", "Alternatively", "it", "lets", "you", "define", "an", "alternate", "hash", "function", "for", "them", "for", "limited", "-", "use", "hashing", "." ]
b3d44bab9ec07ace0d13612c448a6b7298c1f681
https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/util/CollectionUtils.java#L742-L748
train
PeterisP/LVTagger
src/main/java/edu/stanford/nlp/util/CollectionUtils.java
CollectionUtils.containsAny
public static <T> boolean containsAny(Collection<T> collection, Collection<T> toCheck){ for(T c: toCheck){ if(collection.contains(c)) return true; } return false; }
java
public static <T> boolean containsAny(Collection<T> collection, Collection<T> toCheck){ for(T c: toCheck){ if(collection.contains(c)) return true; } return false; }
[ "public", "static", "<", "T", ">", "boolean", "containsAny", "(", "Collection", "<", "T", ">", "collection", ",", "Collection", "<", "T", ">", "toCheck", ")", "{", "for", "(", "T", "c", ":", "toCheck", ")", "{", "if", "(", "collection", ".", "contains", "(", "c", ")", ")", "return", "true", ";", "}", "return", "false", ";", "}" ]
if any item in toCheck is present in collection @param <T> @param collection @param toCheck @return
[ "if", "any", "item", "in", "toCheck", "is", "present", "in", "collection" ]
b3d44bab9ec07ace0d13612c448a6b7298c1f681
https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/util/CollectionUtils.java#L757-L764
train
PeterisP/LVTagger
src/main/java/edu/stanford/nlp/util/CollectionUtils.java
CollectionUtils.mode
public static <T> T mode(Collection<T> values) { Set<T> modes = modes(values); return modes.iterator().next(); }
java
public static <T> T mode(Collection<T> values) { Set<T> modes = modes(values); return modes.iterator().next(); }
[ "public", "static", "<", "T", ">", "T", "mode", "(", "Collection", "<", "T", ">", "values", ")", "{", "Set", "<", "T", ">", "modes", "=", "modes", "(", "values", ")", ";", "return", "modes", ".", "iterator", "(", ")", ".", "next", "(", ")", ";", "}" ]
Returns the mode in the Collection. If the Collection has multiple modes, this method picks one arbitrarily.
[ "Returns", "the", "mode", "in", "the", "Collection", ".", "If", "the", "Collection", "has", "multiple", "modes", "this", "method", "picks", "one", "arbitrarily", "." ]
b3d44bab9ec07ace0d13612c448a6b7298c1f681
https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/util/CollectionUtils.java#L832-L835
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/cr/crvserver_binding.java
crvserver_binding.get
public static crvserver_binding get(nitro_service service, String name) throws Exception{ crvserver_binding obj = new crvserver_binding(); obj.set_name(name); crvserver_binding response = (crvserver_binding) obj.get_resource(service); return response; }
java
public static crvserver_binding get(nitro_service service, String name) throws Exception{ crvserver_binding obj = new crvserver_binding(); obj.set_name(name); crvserver_binding response = (crvserver_binding) obj.get_resource(service); return response; }
[ "public", "static", "crvserver_binding", "get", "(", "nitro_service", "service", ",", "String", "name", ")", "throws", "Exception", "{", "crvserver_binding", "obj", "=", "new", "crvserver_binding", "(", ")", ";", "obj", ".", "set_name", "(", "name", ")", ";", "crvserver_binding", "response", "=", "(", "crvserver_binding", ")", "obj", ".", "get_resource", "(", "service", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch crvserver_binding resource of given name .
[ "Use", "this", "API", "to", "fetch", "crvserver_binding", "resource", "of", "given", "name", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/cr/crvserver_binding.java#L158-L163
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwprofile.java
appfwprofile.restore
public static base_response restore(nitro_service client, appfwprofile resource) throws Exception { appfwprofile restoreresource = new appfwprofile(); restoreresource.archivename = resource.archivename; return restoreresource.perform_operation(client,"restore"); }
java
public static base_response restore(nitro_service client, appfwprofile resource) throws Exception { appfwprofile restoreresource = new appfwprofile(); restoreresource.archivename = resource.archivename; return restoreresource.perform_operation(client,"restore"); }
[ "public", "static", "base_response", "restore", "(", "nitro_service", "client", ",", "appfwprofile", "resource", ")", "throws", "Exception", "{", "appfwprofile", "restoreresource", "=", "new", "appfwprofile", "(", ")", ";", "restoreresource", ".", "archivename", "=", "resource", ".", "archivename", ";", "return", "restoreresource", ".", "perform_operation", "(", "client", ",", "\"restore\"", ")", ";", "}" ]
Use this API to restore appfwprofile.
[ "Use", "this", "API", "to", "restore", "appfwprofile", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwprofile.java#L2267-L2271
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwprofile.java
appfwprofile.restore
public static base_responses restore(nitro_service client, appfwprofile resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { appfwprofile restoreresources[] = new appfwprofile[resources.length]; for (int i=0;i<resources.length;i++){ restoreresources[i] = new appfwprofile(); restoreresources[i].archivename = resources[i].archivename; } result = perform_operation_bulk_request(client, restoreresources,"restore"); } return result; }
java
public static base_responses restore(nitro_service client, appfwprofile resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { appfwprofile restoreresources[] = new appfwprofile[resources.length]; for (int i=0;i<resources.length;i++){ restoreresources[i] = new appfwprofile(); restoreresources[i].archivename = resources[i].archivename; } result = perform_operation_bulk_request(client, restoreresources,"restore"); } return result; }
[ "public", "static", "base_responses", "restore", "(", "nitro_service", "client", ",", "appfwprofile", "resources", "[", "]", ")", "throws", "Exception", "{", "base_responses", "result", "=", "null", ";", "if", "(", "resources", "!=", "null", "&&", "resources", ".", "length", ">", "0", ")", "{", "appfwprofile", "restoreresources", "[", "]", "=", "new", "appfwprofile", "[", "resources", ".", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "resources", ".", "length", ";", "i", "++", ")", "{", "restoreresources", "[", "i", "]", "=", "new", "appfwprofile", "(", ")", ";", "restoreresources", "[", "i", "]", ".", "archivename", "=", "resources", "[", "i", "]", ".", "archivename", ";", "}", "result", "=", "perform_operation_bulk_request", "(", "client", ",", "restoreresources", ",", "\"restore\"", ")", ";", "}", "return", "result", ";", "}" ]
Use this API to restore appfwprofile resources.
[ "Use", "this", "API", "to", "restore", "appfwprofile", "resources", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwprofile.java#L2276-L2287
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwprofile.java
appfwprofile.get
public static appfwprofile[] get(nitro_service service) throws Exception{ appfwprofile obj = new appfwprofile(); appfwprofile[] response = (appfwprofile[])obj.get_resources(service); return response; }
java
public static appfwprofile[] get(nitro_service service) throws Exception{ appfwprofile obj = new appfwprofile(); appfwprofile[] response = (appfwprofile[])obj.get_resources(service); return response; }
[ "public", "static", "appfwprofile", "[", "]", "get", "(", "nitro_service", "service", ")", "throws", "Exception", "{", "appfwprofile", "obj", "=", "new", "appfwprofile", "(", ")", ";", "appfwprofile", "[", "]", "response", "=", "(", "appfwprofile", "[", "]", ")", "obj", ".", "get_resources", "(", "service", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch all the appfwprofile resources that are configured on netscaler.
[ "Use", "this", "API", "to", "fetch", "all", "the", "appfwprofile", "resources", "that", "are", "configured", "on", "netscaler", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwprofile.java#L2292-L2296
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwprofile.java
appfwprofile.get
public static appfwprofile get(nitro_service service, String name) throws Exception{ appfwprofile obj = new appfwprofile(); obj.set_name(name); appfwprofile response = (appfwprofile) obj.get_resource(service); return response; }
java
public static appfwprofile get(nitro_service service, String name) throws Exception{ appfwprofile obj = new appfwprofile(); obj.set_name(name); appfwprofile response = (appfwprofile) obj.get_resource(service); return response; }
[ "public", "static", "appfwprofile", "get", "(", "nitro_service", "service", ",", "String", "name", ")", "throws", "Exception", "{", "appfwprofile", "obj", "=", "new", "appfwprofile", "(", ")", ";", "obj", ".", "set_name", "(", "name", ")", ";", "appfwprofile", "response", "=", "(", "appfwprofile", ")", "obj", ".", "get_resource", "(", "service", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch appfwprofile resource of given name .
[ "Use", "this", "API", "to", "fetch", "appfwprofile", "resource", "of", "given", "name", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwprofile.java#L2308-L2313
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/network/route6.java
route6.add
public static base_response add(nitro_service client, route6 resource) throws Exception { route6 addresource = new route6(); addresource.network = resource.network; addresource.gateway = resource.gateway; addresource.vlan = resource.vlan; addresource.weight = resource.weight; addresource.distance = resource.distance; addresource.cost = resource.cost; addresource.advertise = resource.advertise; addresource.msr = resource.msr; addresource.monitor = resource.monitor; addresource.td = resource.td; return addresource.add_resource(client); }
java
public static base_response add(nitro_service client, route6 resource) throws Exception { route6 addresource = new route6(); addresource.network = resource.network; addresource.gateway = resource.gateway; addresource.vlan = resource.vlan; addresource.weight = resource.weight; addresource.distance = resource.distance; addresource.cost = resource.cost; addresource.advertise = resource.advertise; addresource.msr = resource.msr; addresource.monitor = resource.monitor; addresource.td = resource.td; return addresource.add_resource(client); }
[ "public", "static", "base_response", "add", "(", "nitro_service", "client", ",", "route6", "resource", ")", "throws", "Exception", "{", "route6", "addresource", "=", "new", "route6", "(", ")", ";", "addresource", ".", "network", "=", "resource", ".", "network", ";", "addresource", ".", "gateway", "=", "resource", ".", "gateway", ";", "addresource", ".", "vlan", "=", "resource", ".", "vlan", ";", "addresource", ".", "weight", "=", "resource", ".", "weight", ";", "addresource", ".", "distance", "=", "resource", ".", "distance", ";", "addresource", ".", "cost", "=", "resource", ".", "cost", ";", "addresource", ".", "advertise", "=", "resource", ".", "advertise", ";", "addresource", ".", "msr", "=", "resource", ".", "msr", ";", "addresource", ".", "monitor", "=", "resource", ".", "monitor", ";", "addresource", ".", "td", "=", "resource", ".", "td", ";", "return", "addresource", ".", "add_resource", "(", "client", ")", ";", "}" ]
Use this API to add route6.
[ "Use", "this", "API", "to", "add", "route6", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/network/route6.java#L609-L622
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/network/route6.java
route6.add
public static base_responses add(nitro_service client, route6 resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { route6 addresources[] = new route6[resources.length]; for (int i=0;i<resources.length;i++){ addresources[i] = new route6(); addresources[i].network = resources[i].network; addresources[i].gateway = resources[i].gateway; addresources[i].vlan = resources[i].vlan; addresources[i].weight = resources[i].weight; addresources[i].distance = resources[i].distance; addresources[i].cost = resources[i].cost; addresources[i].advertise = resources[i].advertise; addresources[i].msr = resources[i].msr; addresources[i].monitor = resources[i].monitor; addresources[i].td = resources[i].td; } result = add_bulk_request(client, addresources); } return result; }
java
public static base_responses add(nitro_service client, route6 resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { route6 addresources[] = new route6[resources.length]; for (int i=0;i<resources.length;i++){ addresources[i] = new route6(); addresources[i].network = resources[i].network; addresources[i].gateway = resources[i].gateway; addresources[i].vlan = resources[i].vlan; addresources[i].weight = resources[i].weight; addresources[i].distance = resources[i].distance; addresources[i].cost = resources[i].cost; addresources[i].advertise = resources[i].advertise; addresources[i].msr = resources[i].msr; addresources[i].monitor = resources[i].monitor; addresources[i].td = resources[i].td; } result = add_bulk_request(client, addresources); } return result; }
[ "public", "static", "base_responses", "add", "(", "nitro_service", "client", ",", "route6", "resources", "[", "]", ")", "throws", "Exception", "{", "base_responses", "result", "=", "null", ";", "if", "(", "resources", "!=", "null", "&&", "resources", ".", "length", ">", "0", ")", "{", "route6", "addresources", "[", "]", "=", "new", "route6", "[", "resources", ".", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "resources", ".", "length", ";", "i", "++", ")", "{", "addresources", "[", "i", "]", "=", "new", "route6", "(", ")", ";", "addresources", "[", "i", "]", ".", "network", "=", "resources", "[", "i", "]", ".", "network", ";", "addresources", "[", "i", "]", ".", "gateway", "=", "resources", "[", "i", "]", ".", "gateway", ";", "addresources", "[", "i", "]", ".", "vlan", "=", "resources", "[", "i", "]", ".", "vlan", ";", "addresources", "[", "i", "]", ".", "weight", "=", "resources", "[", "i", "]", ".", "weight", ";", "addresources", "[", "i", "]", ".", "distance", "=", "resources", "[", "i", "]", ".", "distance", ";", "addresources", "[", "i", "]", ".", "cost", "=", "resources", "[", "i", "]", ".", "cost", ";", "addresources", "[", "i", "]", ".", "advertise", "=", "resources", "[", "i", "]", ".", "advertise", ";", "addresources", "[", "i", "]", ".", "msr", "=", "resources", "[", "i", "]", ".", "msr", ";", "addresources", "[", "i", "]", ".", "monitor", "=", "resources", "[", "i", "]", ".", "monitor", ";", "addresources", "[", "i", "]", ".", "td", "=", "resources", "[", "i", "]", ".", "td", ";", "}", "result", "=", "add_bulk_request", "(", "client", ",", "addresources", ")", ";", "}", "return", "result", ";", "}" ]
Use this API to add route6 resources.
[ "Use", "this", "API", "to", "add", "route6", "resources", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/network/route6.java#L627-L647
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/network/route6.java
route6.clear
public static base_response clear(nitro_service client, route6 resource) throws Exception { route6 clearresource = new route6(); clearresource.routetype = resource.routetype; return clearresource.perform_operation(client,"clear"); }
java
public static base_response clear(nitro_service client, route6 resource) throws Exception { route6 clearresource = new route6(); clearresource.routetype = resource.routetype; return clearresource.perform_operation(client,"clear"); }
[ "public", "static", "base_response", "clear", "(", "nitro_service", "client", ",", "route6", "resource", ")", "throws", "Exception", "{", "route6", "clearresource", "=", "new", "route6", "(", ")", ";", "clearresource", ".", "routetype", "=", "resource", ".", "routetype", ";", "return", "clearresource", ".", "perform_operation", "(", "client", ",", "\"clear\"", ")", ";", "}" ]
Use this API to clear route6.
[ "Use", "this", "API", "to", "clear", "route6", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/network/route6.java#L652-L656
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/network/route6.java
route6.clear
public static base_responses clear(nitro_service client, route6 resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { route6 clearresources[] = new route6[resources.length]; for (int i=0;i<resources.length;i++){ clearresources[i] = new route6(); clearresources[i].routetype = resources[i].routetype; } result = perform_operation_bulk_request(client, clearresources,"clear"); } return result; }
java
public static base_responses clear(nitro_service client, route6 resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { route6 clearresources[] = new route6[resources.length]; for (int i=0;i<resources.length;i++){ clearresources[i] = new route6(); clearresources[i].routetype = resources[i].routetype; } result = perform_operation_bulk_request(client, clearresources,"clear"); } return result; }
[ "public", "static", "base_responses", "clear", "(", "nitro_service", "client", ",", "route6", "resources", "[", "]", ")", "throws", "Exception", "{", "base_responses", "result", "=", "null", ";", "if", "(", "resources", "!=", "null", "&&", "resources", ".", "length", ">", "0", ")", "{", "route6", "clearresources", "[", "]", "=", "new", "route6", "[", "resources", ".", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "resources", ".", "length", ";", "i", "++", ")", "{", "clearresources", "[", "i", "]", "=", "new", "route6", "(", ")", ";", "clearresources", "[", "i", "]", ".", "routetype", "=", "resources", "[", "i", "]", ".", "routetype", ";", "}", "result", "=", "perform_operation_bulk_request", "(", "client", ",", "clearresources", ",", "\"clear\"", ")", ";", "}", "return", "result", ";", "}" ]
Use this API to clear route6 resources.
[ "Use", "this", "API", "to", "clear", "route6", "resources", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/network/route6.java#L661-L672
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/network/route6.java
route6.delete
public static base_response delete(nitro_service client, String network) throws Exception { route6 deleteresource = new route6(); deleteresource.network = network; return deleteresource.delete_resource(client); }
java
public static base_response delete(nitro_service client, String network) throws Exception { route6 deleteresource = new route6(); deleteresource.network = network; return deleteresource.delete_resource(client); }
[ "public", "static", "base_response", "delete", "(", "nitro_service", "client", ",", "String", "network", ")", "throws", "Exception", "{", "route6", "deleteresource", "=", "new", "route6", "(", ")", ";", "deleteresource", ".", "network", "=", "network", ";", "return", "deleteresource", ".", "delete_resource", "(", "client", ")", ";", "}" ]
Use this API to delete route6 of given name.
[ "Use", "this", "API", "to", "delete", "route6", "of", "given", "name", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/network/route6.java#L677-L681
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/network/route6.java
route6.delete
public static base_response delete(nitro_service client, route6 resource) throws Exception { route6 deleteresource = new route6(); deleteresource.network = resource.network; deleteresource.gateway = resource.gateway; deleteresource.vlan = resource.vlan; deleteresource.td = resource.td; return deleteresource.delete_resource(client); }
java
public static base_response delete(nitro_service client, route6 resource) throws Exception { route6 deleteresource = new route6(); deleteresource.network = resource.network; deleteresource.gateway = resource.gateway; deleteresource.vlan = resource.vlan; deleteresource.td = resource.td; return deleteresource.delete_resource(client); }
[ "public", "static", "base_response", "delete", "(", "nitro_service", "client", ",", "route6", "resource", ")", "throws", "Exception", "{", "route6", "deleteresource", "=", "new", "route6", "(", ")", ";", "deleteresource", ".", "network", "=", "resource", ".", "network", ";", "deleteresource", ".", "gateway", "=", "resource", ".", "gateway", ";", "deleteresource", ".", "vlan", "=", "resource", ".", "vlan", ";", "deleteresource", ".", "td", "=", "resource", ".", "td", ";", "return", "deleteresource", ".", "delete_resource", "(", "client", ")", ";", "}" ]
Use this API to delete route6.
[ "Use", "this", "API", "to", "delete", "route6", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/network/route6.java#L686-L693
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/network/route6.java
route6.delete
public static base_responses delete(nitro_service client, String network[]) throws Exception { base_responses result = null; if (network != null && network.length > 0) { route6 deleteresources[] = new route6[network.length]; for (int i=0;i<network.length;i++){ deleteresources[i] = new route6(); deleteresources[i].network = network[i]; } result = delete_bulk_request(client, deleteresources); } return result; }
java
public static base_responses delete(nitro_service client, String network[]) throws Exception { base_responses result = null; if (network != null && network.length > 0) { route6 deleteresources[] = new route6[network.length]; for (int i=0;i<network.length;i++){ deleteresources[i] = new route6(); deleteresources[i].network = network[i]; } result = delete_bulk_request(client, deleteresources); } return result; }
[ "public", "static", "base_responses", "delete", "(", "nitro_service", "client", ",", "String", "network", "[", "]", ")", "throws", "Exception", "{", "base_responses", "result", "=", "null", ";", "if", "(", "network", "!=", "null", "&&", "network", ".", "length", ">", "0", ")", "{", "route6", "deleteresources", "[", "]", "=", "new", "route6", "[", "network", ".", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "network", ".", "length", ";", "i", "++", ")", "{", "deleteresources", "[", "i", "]", "=", "new", "route6", "(", ")", ";", "deleteresources", "[", "i", "]", ".", "network", "=", "network", "[", "i", "]", ";", "}", "result", "=", "delete_bulk_request", "(", "client", ",", "deleteresources", ")", ";", "}", "return", "result", ";", "}" ]
Use this API to delete route6 resources of given names.
[ "Use", "this", "API", "to", "delete", "route6", "resources", "of", "given", "names", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/network/route6.java#L698-L709
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/network/route6.java
route6.delete
public static base_responses delete(nitro_service client, route6 resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { route6 deleteresources[] = new route6[resources.length]; for (int i=0;i<resources.length;i++){ deleteresources[i] = new route6(); deleteresources[i].network = resources[i].network; deleteresources[i].gateway = resources[i].gateway; deleteresources[i].vlan = resources[i].vlan; deleteresources[i].td = resources[i].td; } result = delete_bulk_request(client, deleteresources); } return result; }
java
public static base_responses delete(nitro_service client, route6 resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { route6 deleteresources[] = new route6[resources.length]; for (int i=0;i<resources.length;i++){ deleteresources[i] = new route6(); deleteresources[i].network = resources[i].network; deleteresources[i].gateway = resources[i].gateway; deleteresources[i].vlan = resources[i].vlan; deleteresources[i].td = resources[i].td; } result = delete_bulk_request(client, deleteresources); } return result; }
[ "public", "static", "base_responses", "delete", "(", "nitro_service", "client", ",", "route6", "resources", "[", "]", ")", "throws", "Exception", "{", "base_responses", "result", "=", "null", ";", "if", "(", "resources", "!=", "null", "&&", "resources", ".", "length", ">", "0", ")", "{", "route6", "deleteresources", "[", "]", "=", "new", "route6", "[", "resources", ".", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "resources", ".", "length", ";", "i", "++", ")", "{", "deleteresources", "[", "i", "]", "=", "new", "route6", "(", ")", ";", "deleteresources", "[", "i", "]", ".", "network", "=", "resources", "[", "i", "]", ".", "network", ";", "deleteresources", "[", "i", "]", ".", "gateway", "=", "resources", "[", "i", "]", ".", "gateway", ";", "deleteresources", "[", "i", "]", ".", "vlan", "=", "resources", "[", "i", "]", ".", "vlan", ";", "deleteresources", "[", "i", "]", ".", "td", "=", "resources", "[", "i", "]", ".", "td", ";", "}", "result", "=", "delete_bulk_request", "(", "client", ",", "deleteresources", ")", ";", "}", "return", "result", ";", "}" ]
Use this API to delete route6 resources.
[ "Use", "this", "API", "to", "delete", "route6", "resources", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/network/route6.java#L714-L728
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/network/route6.java
route6.update
public static base_response update(nitro_service client, route6 resource) throws Exception { route6 updateresource = new route6(); updateresource.network = resource.network; updateresource.gateway = resource.gateway; updateresource.vlan = resource.vlan; updateresource.weight = resource.weight; updateresource.distance = resource.distance; updateresource.cost = resource.cost; updateresource.advertise = resource.advertise; updateresource.msr = resource.msr; updateresource.monitor = resource.monitor; updateresource.td = resource.td; return updateresource.update_resource(client); }
java
public static base_response update(nitro_service client, route6 resource) throws Exception { route6 updateresource = new route6(); updateresource.network = resource.network; updateresource.gateway = resource.gateway; updateresource.vlan = resource.vlan; updateresource.weight = resource.weight; updateresource.distance = resource.distance; updateresource.cost = resource.cost; updateresource.advertise = resource.advertise; updateresource.msr = resource.msr; updateresource.monitor = resource.monitor; updateresource.td = resource.td; return updateresource.update_resource(client); }
[ "public", "static", "base_response", "update", "(", "nitro_service", "client", ",", "route6", "resource", ")", "throws", "Exception", "{", "route6", "updateresource", "=", "new", "route6", "(", ")", ";", "updateresource", ".", "network", "=", "resource", ".", "network", ";", "updateresource", ".", "gateway", "=", "resource", ".", "gateway", ";", "updateresource", ".", "vlan", "=", "resource", ".", "vlan", ";", "updateresource", ".", "weight", "=", "resource", ".", "weight", ";", "updateresource", ".", "distance", "=", "resource", ".", "distance", ";", "updateresource", ".", "cost", "=", "resource", ".", "cost", ";", "updateresource", ".", "advertise", "=", "resource", ".", "advertise", ";", "updateresource", ".", "msr", "=", "resource", ".", "msr", ";", "updateresource", ".", "monitor", "=", "resource", ".", "monitor", ";", "updateresource", ".", "td", "=", "resource", ".", "td", ";", "return", "updateresource", ".", "update_resource", "(", "client", ")", ";", "}" ]
Use this API to update route6.
[ "Use", "this", "API", "to", "update", "route6", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/network/route6.java#L733-L746
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/network/route6.java
route6.update
public static base_responses update(nitro_service client, route6 resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { route6 updateresources[] = new route6[resources.length]; for (int i=0;i<resources.length;i++){ updateresources[i] = new route6(); updateresources[i].network = resources[i].network; updateresources[i].gateway = resources[i].gateway; updateresources[i].vlan = resources[i].vlan; updateresources[i].weight = resources[i].weight; updateresources[i].distance = resources[i].distance; updateresources[i].cost = resources[i].cost; updateresources[i].advertise = resources[i].advertise; updateresources[i].msr = resources[i].msr; updateresources[i].monitor = resources[i].monitor; updateresources[i].td = resources[i].td; } result = update_bulk_request(client, updateresources); } return result; }
java
public static base_responses update(nitro_service client, route6 resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { route6 updateresources[] = new route6[resources.length]; for (int i=0;i<resources.length;i++){ updateresources[i] = new route6(); updateresources[i].network = resources[i].network; updateresources[i].gateway = resources[i].gateway; updateresources[i].vlan = resources[i].vlan; updateresources[i].weight = resources[i].weight; updateresources[i].distance = resources[i].distance; updateresources[i].cost = resources[i].cost; updateresources[i].advertise = resources[i].advertise; updateresources[i].msr = resources[i].msr; updateresources[i].monitor = resources[i].monitor; updateresources[i].td = resources[i].td; } result = update_bulk_request(client, updateresources); } return result; }
[ "public", "static", "base_responses", "update", "(", "nitro_service", "client", ",", "route6", "resources", "[", "]", ")", "throws", "Exception", "{", "base_responses", "result", "=", "null", ";", "if", "(", "resources", "!=", "null", "&&", "resources", ".", "length", ">", "0", ")", "{", "route6", "updateresources", "[", "]", "=", "new", "route6", "[", "resources", ".", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "resources", ".", "length", ";", "i", "++", ")", "{", "updateresources", "[", "i", "]", "=", "new", "route6", "(", ")", ";", "updateresources", "[", "i", "]", ".", "network", "=", "resources", "[", "i", "]", ".", "network", ";", "updateresources", "[", "i", "]", ".", "gateway", "=", "resources", "[", "i", "]", ".", "gateway", ";", "updateresources", "[", "i", "]", ".", "vlan", "=", "resources", "[", "i", "]", ".", "vlan", ";", "updateresources", "[", "i", "]", ".", "weight", "=", "resources", "[", "i", "]", ".", "weight", ";", "updateresources", "[", "i", "]", ".", "distance", "=", "resources", "[", "i", "]", ".", "distance", ";", "updateresources", "[", "i", "]", ".", "cost", "=", "resources", "[", "i", "]", ".", "cost", ";", "updateresources", "[", "i", "]", ".", "advertise", "=", "resources", "[", "i", "]", ".", "advertise", ";", "updateresources", "[", "i", "]", ".", "msr", "=", "resources", "[", "i", "]", ".", "msr", ";", "updateresources", "[", "i", "]", ".", "monitor", "=", "resources", "[", "i", "]", ".", "monitor", ";", "updateresources", "[", "i", "]", ".", "td", "=", "resources", "[", "i", "]", ".", "td", ";", "}", "result", "=", "update_bulk_request", "(", "client", ",", "updateresources", ")", ";", "}", "return", "result", ";", "}" ]
Use this API to update route6 resources.
[ "Use", "this", "API", "to", "update", "route6", "resources", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/network/route6.java#L751-L771
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/network/route6.java
route6.get
public static route6[] get(nitro_service service) throws Exception{ route6 obj = new route6(); route6[] response = (route6[])obj.get_resources(service); return response; }
java
public static route6[] get(nitro_service service) throws Exception{ route6 obj = new route6(); route6[] response = (route6[])obj.get_resources(service); return response; }
[ "public", "static", "route6", "[", "]", "get", "(", "nitro_service", "service", ")", "throws", "Exception", "{", "route6", "obj", "=", "new", "route6", "(", ")", ";", "route6", "[", "]", "response", "=", "(", "route6", "[", "]", ")", "obj", ".", "get_resources", "(", "service", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch all the route6 resources that are configured on netscaler.
[ "Use", "this", "API", "to", "fetch", "all", "the", "route6", "resources", "that", "are", "configured", "on", "netscaler", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/network/route6.java#L836-L840
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/network/route6.java
route6.get
public static route6[] get(nitro_service service, route6_args args) throws Exception{ route6 obj = new route6(); options option = new options(); option.set_args(nitro_util.object_to_string_withoutquotes(args)); route6[] response = (route6[])obj.get_resources(service, option); return response; }
java
public static route6[] get(nitro_service service, route6_args args) throws Exception{ route6 obj = new route6(); options option = new options(); option.set_args(nitro_util.object_to_string_withoutquotes(args)); route6[] response = (route6[])obj.get_resources(service, option); return response; }
[ "public", "static", "route6", "[", "]", "get", "(", "nitro_service", "service", ",", "route6_args", "args", ")", "throws", "Exception", "{", "route6", "obj", "=", "new", "route6", "(", ")", ";", "options", "option", "=", "new", "options", "(", ")", ";", "option", ".", "set_args", "(", "nitro_util", ".", "object_to_string_withoutquotes", "(", "args", ")", ")", ";", "route6", "[", "]", "response", "=", "(", "route6", "[", "]", ")", "obj", ".", "get_resources", "(", "service", ",", "option", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch all the route6 resources that are configured on netscaler. This uses route6_args which is a way to provide additional arguments while fetching the resources.
[ "Use", "this", "API", "to", "fetch", "all", "the", "route6", "resources", "that", "are", "configured", "on", "netscaler", ".", "This", "uses", "route6_args", "which", "is", "a", "way", "to", "provide", "additional", "arguments", "while", "fetching", "the", "resources", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/network/route6.java#L878-L884
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/audit/auditsyslogpolicy_vpnglobal_binding.java
auditsyslogpolicy_vpnglobal_binding.get
public static auditsyslogpolicy_vpnglobal_binding[] get(nitro_service service, String name) throws Exception{ auditsyslogpolicy_vpnglobal_binding obj = new auditsyslogpolicy_vpnglobal_binding(); obj.set_name(name); auditsyslogpolicy_vpnglobal_binding response[] = (auditsyslogpolicy_vpnglobal_binding[]) obj.get_resources(service); return response; }
java
public static auditsyslogpolicy_vpnglobal_binding[] get(nitro_service service, String name) throws Exception{ auditsyslogpolicy_vpnglobal_binding obj = new auditsyslogpolicy_vpnglobal_binding(); obj.set_name(name); auditsyslogpolicy_vpnglobal_binding response[] = (auditsyslogpolicy_vpnglobal_binding[]) obj.get_resources(service); return response; }
[ "public", "static", "auditsyslogpolicy_vpnglobal_binding", "[", "]", "get", "(", "nitro_service", "service", ",", "String", "name", ")", "throws", "Exception", "{", "auditsyslogpolicy_vpnglobal_binding", "obj", "=", "new", "auditsyslogpolicy_vpnglobal_binding", "(", ")", ";", "obj", ".", "set_name", "(", "name", ")", ";", "auditsyslogpolicy_vpnglobal_binding", "response", "[", "]", "=", "(", "auditsyslogpolicy_vpnglobal_binding", "[", "]", ")", "obj", ".", "get_resources", "(", "service", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch auditsyslogpolicy_vpnglobal_binding resources of given name .
[ "Use", "this", "API", "to", "fetch", "auditsyslogpolicy_vpnglobal_binding", "resources", "of", "given", "name", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/audit/auditsyslogpolicy_vpnglobal_binding.java#L132-L137
train
meertensinstituut/mtas
src/main/java/mtas/parser/cql/util/MtasCQLParserBasicSentenceCondition.java
MtasCQLParserBasicSentenceCondition.addWord
public void addWord(MtasCQLParserWordFullCondition w) throws ParseException { assert w.getCondition() .not() == false : "condition word should be positive in sentence definition"; if (!simplified) { partList.add(w); } else { throw new ParseException("already simplified"); } }
java
public void addWord(MtasCQLParserWordFullCondition w) throws ParseException { assert w.getCondition() .not() == false : "condition word should be positive in sentence definition"; if (!simplified) { partList.add(w); } else { throw new ParseException("already simplified"); } }
[ "public", "void", "addWord", "(", "MtasCQLParserWordFullCondition", "w", ")", "throws", "ParseException", "{", "assert", "w", ".", "getCondition", "(", ")", ".", "not", "(", ")", "==", "false", ":", "\"condition word should be positive in sentence definition\"", ";", "if", "(", "!", "simplified", ")", "{", "partList", ".", "add", "(", "w", ")", ";", "}", "else", "{", "throw", "new", "ParseException", "(", "\"already simplified\"", ")", ";", "}", "}" ]
Adds the word. @param w the w @throws ParseException the parse exception
[ "Adds", "the", "word", "." ]
f02ae730848616bd88b553efa7f9eddc32818e64
https://github.com/meertensinstituut/mtas/blob/f02ae730848616bd88b553efa7f9eddc32818e64/src/main/java/mtas/parser/cql/util/MtasCQLParserBasicSentenceCondition.java#L61-L69
train
meertensinstituut/mtas
src/main/java/mtas/parser/cql/util/MtasCQLParserBasicSentenceCondition.java
MtasCQLParserBasicSentenceCondition.addBasicSentence
public void addBasicSentence(MtasCQLParserBasicSentenceCondition s) throws ParseException { if (!simplified) { List<MtasCQLParserBasicSentencePartCondition> newWordList = s .getPartList(); partList.addAll(newWordList); } else { throw new ParseException("already simplified"); } }
java
public void addBasicSentence(MtasCQLParserBasicSentenceCondition s) throws ParseException { if (!simplified) { List<MtasCQLParserBasicSentencePartCondition> newWordList = s .getPartList(); partList.addAll(newWordList); } else { throw new ParseException("already simplified"); } }
[ "public", "void", "addBasicSentence", "(", "MtasCQLParserBasicSentenceCondition", "s", ")", "throws", "ParseException", "{", "if", "(", "!", "simplified", ")", "{", "List", "<", "MtasCQLParserBasicSentencePartCondition", ">", "newWordList", "=", "s", ".", "getPartList", "(", ")", ";", "partList", ".", "addAll", "(", "newWordList", ")", ";", "}", "else", "{", "throw", "new", "ParseException", "(", "\"already simplified\"", ")", ";", "}", "}" ]
Adds the basic sentence. @param s the s @throws ParseException the parse exception
[ "Adds", "the", "basic", "sentence", "." ]
f02ae730848616bd88b553efa7f9eddc32818e64
https://github.com/meertensinstituut/mtas/blob/f02ae730848616bd88b553efa7f9eddc32818e64/src/main/java/mtas/parser/cql/util/MtasCQLParserBasicSentenceCondition.java#L92-L101
train
meertensinstituut/mtas
src/main/java/mtas/parser/cql/util/MtasCQLParserBasicSentenceCondition.java
MtasCQLParserBasicSentenceCondition.setOccurence
public void setOccurence(int min, int max) throws ParseException { if (!simplified) { if ((min < 0) || (min > max) || (max < 1)) { throw new ParseException("Illegal number {" + min + "," + max + "}"); } if (min == 0) { optional = true; } minimumOccurence = Math.max(1, min); maximumOccurence = max; } else { throw new ParseException("already simplified"); } }
java
public void setOccurence(int min, int max) throws ParseException { if (!simplified) { if ((min < 0) || (min > max) || (max < 1)) { throw new ParseException("Illegal number {" + min + "," + max + "}"); } if (min == 0) { optional = true; } minimumOccurence = Math.max(1, min); maximumOccurence = max; } else { throw new ParseException("already simplified"); } }
[ "public", "void", "setOccurence", "(", "int", "min", ",", "int", "max", ")", "throws", "ParseException", "{", "if", "(", "!", "simplified", ")", "{", "if", "(", "(", "min", "<", "0", ")", "||", "(", "min", ">", "max", ")", "||", "(", "max", "<", "1", ")", ")", "{", "throw", "new", "ParseException", "(", "\"Illegal number {\"", "+", "min", "+", "\",\"", "+", "max", "+", "\"}\"", ")", ";", "}", "if", "(", "min", "==", "0", ")", "{", "optional", "=", "true", ";", "}", "minimumOccurence", "=", "Math", ".", "max", "(", "1", ",", "min", ")", ";", "maximumOccurence", "=", "max", ";", "}", "else", "{", "throw", "new", "ParseException", "(", "\"already simplified\"", ")", ";", "}", "}" ]
Sets the occurence. @param min the min @param max the max @throws ParseException the parse exception
[ "Sets", "the", "occurence", "." ]
f02ae730848616bd88b553efa7f9eddc32818e64
https://github.com/meertensinstituut/mtas/blob/f02ae730848616bd88b553efa7f9eddc32818e64/src/main/java/mtas/parser/cql/util/MtasCQLParserBasicSentenceCondition.java#L128-L141
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nspbr6.java
nspbr6.add
public static base_response add(nitro_service client, nspbr6 resource) throws Exception { nspbr6 addresource = new nspbr6(); addresource.name = resource.name; addresource.td = resource.td; addresource.action = resource.action; addresource.srcipv6 = resource.srcipv6; addresource.srcipop = resource.srcipop; addresource.srcipv6val = resource.srcipv6val; addresource.srcport = resource.srcport; addresource.srcportop = resource.srcportop; addresource.srcportval = resource.srcportval; addresource.destipv6 = resource.destipv6; addresource.destipop = resource.destipop; addresource.destipv6val = resource.destipv6val; addresource.destport = resource.destport; addresource.destportop = resource.destportop; addresource.destportval = resource.destportval; addresource.srcmac = resource.srcmac; addresource.protocol = resource.protocol; addresource.protocolnumber = resource.protocolnumber; addresource.vlan = resource.vlan; addresource.Interface = resource.Interface; addresource.priority = resource.priority; addresource.state = resource.state; addresource.msr = resource.msr; addresource.monitor = resource.monitor; addresource.nexthop = resource.nexthop; addresource.nexthopval = resource.nexthopval; addresource.nexthopvlan = resource.nexthopvlan; return addresource.add_resource(client); }
java
public static base_response add(nitro_service client, nspbr6 resource) throws Exception { nspbr6 addresource = new nspbr6(); addresource.name = resource.name; addresource.td = resource.td; addresource.action = resource.action; addresource.srcipv6 = resource.srcipv6; addresource.srcipop = resource.srcipop; addresource.srcipv6val = resource.srcipv6val; addresource.srcport = resource.srcport; addresource.srcportop = resource.srcportop; addresource.srcportval = resource.srcportval; addresource.destipv6 = resource.destipv6; addresource.destipop = resource.destipop; addresource.destipv6val = resource.destipv6val; addresource.destport = resource.destport; addresource.destportop = resource.destportop; addresource.destportval = resource.destportval; addresource.srcmac = resource.srcmac; addresource.protocol = resource.protocol; addresource.protocolnumber = resource.protocolnumber; addresource.vlan = resource.vlan; addresource.Interface = resource.Interface; addresource.priority = resource.priority; addresource.state = resource.state; addresource.msr = resource.msr; addresource.monitor = resource.monitor; addresource.nexthop = resource.nexthop; addresource.nexthopval = resource.nexthopval; addresource.nexthopvlan = resource.nexthopvlan; return addresource.add_resource(client); }
[ "public", "static", "base_response", "add", "(", "nitro_service", "client", ",", "nspbr6", "resource", ")", "throws", "Exception", "{", "nspbr6", "addresource", "=", "new", "nspbr6", "(", ")", ";", "addresource", ".", "name", "=", "resource", ".", "name", ";", "addresource", ".", "td", "=", "resource", ".", "td", ";", "addresource", ".", "action", "=", "resource", ".", "action", ";", "addresource", ".", "srcipv6", "=", "resource", ".", "srcipv6", ";", "addresource", ".", "srcipop", "=", "resource", ".", "srcipop", ";", "addresource", ".", "srcipv6val", "=", "resource", ".", "srcipv6val", ";", "addresource", ".", "srcport", "=", "resource", ".", "srcport", ";", "addresource", ".", "srcportop", "=", "resource", ".", "srcportop", ";", "addresource", ".", "srcportval", "=", "resource", ".", "srcportval", ";", "addresource", ".", "destipv6", "=", "resource", ".", "destipv6", ";", "addresource", ".", "destipop", "=", "resource", ".", "destipop", ";", "addresource", ".", "destipv6val", "=", "resource", ".", "destipv6val", ";", "addresource", ".", "destport", "=", "resource", ".", "destport", ";", "addresource", ".", "destportop", "=", "resource", ".", "destportop", ";", "addresource", ".", "destportval", "=", "resource", ".", "destportval", ";", "addresource", ".", "srcmac", "=", "resource", ".", "srcmac", ";", "addresource", ".", "protocol", "=", "resource", ".", "protocol", ";", "addresource", ".", "protocolnumber", "=", "resource", ".", "protocolnumber", ";", "addresource", ".", "vlan", "=", "resource", ".", "vlan", ";", "addresource", ".", "Interface", "=", "resource", ".", "Interface", ";", "addresource", ".", "priority", "=", "resource", ".", "priority", ";", "addresource", ".", "state", "=", "resource", ".", "state", ";", "addresource", ".", "msr", "=", "resource", ".", "msr", ";", "addresource", ".", "monitor", "=", "resource", ".", "monitor", ";", "addresource", ".", "nexthop", "=", "resource", ".", "nexthop", ";", "addresource", ".", "nexthopval", "=", "resource", ".", "nexthopval", ";", "addresource", ".", "nexthopvlan", "=", "resource", ".", "nexthopvlan", ";", "return", "addresource", ".", "add_resource", "(", "client", ")", ";", "}" ]
Use this API to add nspbr6.
[ "Use", "this", "API", "to", "add", "nspbr6", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nspbr6.java#L832-L862
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nspbr6.java
nspbr6.add
public static base_responses add(nitro_service client, nspbr6 resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { nspbr6 addresources[] = new nspbr6[resources.length]; for (int i=0;i<resources.length;i++){ addresources[i] = new nspbr6(); addresources[i].name = resources[i].name; addresources[i].td = resources[i].td; addresources[i].action = resources[i].action; addresources[i].srcipv6 = resources[i].srcipv6; addresources[i].srcipop = resources[i].srcipop; addresources[i].srcipv6val = resources[i].srcipv6val; addresources[i].srcport = resources[i].srcport; addresources[i].srcportop = resources[i].srcportop; addresources[i].srcportval = resources[i].srcportval; addresources[i].destipv6 = resources[i].destipv6; addresources[i].destipop = resources[i].destipop; addresources[i].destipv6val = resources[i].destipv6val; addresources[i].destport = resources[i].destport; addresources[i].destportop = resources[i].destportop; addresources[i].destportval = resources[i].destportval; addresources[i].srcmac = resources[i].srcmac; addresources[i].protocol = resources[i].protocol; addresources[i].protocolnumber = resources[i].protocolnumber; addresources[i].vlan = resources[i].vlan; addresources[i].Interface = resources[i].Interface; addresources[i].priority = resources[i].priority; addresources[i].state = resources[i].state; addresources[i].msr = resources[i].msr; addresources[i].monitor = resources[i].monitor; addresources[i].nexthop = resources[i].nexthop; addresources[i].nexthopval = resources[i].nexthopval; addresources[i].nexthopvlan = resources[i].nexthopvlan; } result = add_bulk_request(client, addresources); } return result; }
java
public static base_responses add(nitro_service client, nspbr6 resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { nspbr6 addresources[] = new nspbr6[resources.length]; for (int i=0;i<resources.length;i++){ addresources[i] = new nspbr6(); addresources[i].name = resources[i].name; addresources[i].td = resources[i].td; addresources[i].action = resources[i].action; addresources[i].srcipv6 = resources[i].srcipv6; addresources[i].srcipop = resources[i].srcipop; addresources[i].srcipv6val = resources[i].srcipv6val; addresources[i].srcport = resources[i].srcport; addresources[i].srcportop = resources[i].srcportop; addresources[i].srcportval = resources[i].srcportval; addresources[i].destipv6 = resources[i].destipv6; addresources[i].destipop = resources[i].destipop; addresources[i].destipv6val = resources[i].destipv6val; addresources[i].destport = resources[i].destport; addresources[i].destportop = resources[i].destportop; addresources[i].destportval = resources[i].destportval; addresources[i].srcmac = resources[i].srcmac; addresources[i].protocol = resources[i].protocol; addresources[i].protocolnumber = resources[i].protocolnumber; addresources[i].vlan = resources[i].vlan; addresources[i].Interface = resources[i].Interface; addresources[i].priority = resources[i].priority; addresources[i].state = resources[i].state; addresources[i].msr = resources[i].msr; addresources[i].monitor = resources[i].monitor; addresources[i].nexthop = resources[i].nexthop; addresources[i].nexthopval = resources[i].nexthopval; addresources[i].nexthopvlan = resources[i].nexthopvlan; } result = add_bulk_request(client, addresources); } return result; }
[ "public", "static", "base_responses", "add", "(", "nitro_service", "client", ",", "nspbr6", "resources", "[", "]", ")", "throws", "Exception", "{", "base_responses", "result", "=", "null", ";", "if", "(", "resources", "!=", "null", "&&", "resources", ".", "length", ">", "0", ")", "{", "nspbr6", "addresources", "[", "]", "=", "new", "nspbr6", "[", "resources", ".", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "resources", ".", "length", ";", "i", "++", ")", "{", "addresources", "[", "i", "]", "=", "new", "nspbr6", "(", ")", ";", "addresources", "[", "i", "]", ".", "name", "=", "resources", "[", "i", "]", ".", "name", ";", "addresources", "[", "i", "]", ".", "td", "=", "resources", "[", "i", "]", ".", "td", ";", "addresources", "[", "i", "]", ".", "action", "=", "resources", "[", "i", "]", ".", "action", ";", "addresources", "[", "i", "]", ".", "srcipv6", "=", "resources", "[", "i", "]", ".", "srcipv6", ";", "addresources", "[", "i", "]", ".", "srcipop", "=", "resources", "[", "i", "]", ".", "srcipop", ";", "addresources", "[", "i", "]", ".", "srcipv6val", "=", "resources", "[", "i", "]", ".", "srcipv6val", ";", "addresources", "[", "i", "]", ".", "srcport", "=", "resources", "[", "i", "]", ".", "srcport", ";", "addresources", "[", "i", "]", ".", "srcportop", "=", "resources", "[", "i", "]", ".", "srcportop", ";", "addresources", "[", "i", "]", ".", "srcportval", "=", "resources", "[", "i", "]", ".", "srcportval", ";", "addresources", "[", "i", "]", ".", "destipv6", "=", "resources", "[", "i", "]", ".", "destipv6", ";", "addresources", "[", "i", "]", ".", "destipop", "=", "resources", "[", "i", "]", ".", "destipop", ";", "addresources", "[", "i", "]", ".", "destipv6val", "=", "resources", "[", "i", "]", ".", "destipv6val", ";", "addresources", "[", "i", "]", ".", "destport", "=", "resources", "[", "i", "]", ".", "destport", ";", "addresources", "[", "i", "]", ".", "destportop", "=", "resources", "[", "i", "]", ".", "destportop", ";", "addresources", "[", "i", "]", ".", "destportval", "=", "resources", "[", "i", "]", ".", "destportval", ";", "addresources", "[", "i", "]", ".", "srcmac", "=", "resources", "[", "i", "]", ".", "srcmac", ";", "addresources", "[", "i", "]", ".", "protocol", "=", "resources", "[", "i", "]", ".", "protocol", ";", "addresources", "[", "i", "]", ".", "protocolnumber", "=", "resources", "[", "i", "]", ".", "protocolnumber", ";", "addresources", "[", "i", "]", ".", "vlan", "=", "resources", "[", "i", "]", ".", "vlan", ";", "addresources", "[", "i", "]", ".", "Interface", "=", "resources", "[", "i", "]", ".", "Interface", ";", "addresources", "[", "i", "]", ".", "priority", "=", "resources", "[", "i", "]", ".", "priority", ";", "addresources", "[", "i", "]", ".", "state", "=", "resources", "[", "i", "]", ".", "state", ";", "addresources", "[", "i", "]", ".", "msr", "=", "resources", "[", "i", "]", ".", "msr", ";", "addresources", "[", "i", "]", ".", "monitor", "=", "resources", "[", "i", "]", ".", "monitor", ";", "addresources", "[", "i", "]", ".", "nexthop", "=", "resources", "[", "i", "]", ".", "nexthop", ";", "addresources", "[", "i", "]", ".", "nexthopval", "=", "resources", "[", "i", "]", ".", "nexthopval", ";", "addresources", "[", "i", "]", ".", "nexthopvlan", "=", "resources", "[", "i", "]", ".", "nexthopvlan", ";", "}", "result", "=", "add_bulk_request", "(", "client", ",", "addresources", ")", ";", "}", "return", "result", ";", "}" ]
Use this API to add nspbr6 resources.
[ "Use", "this", "API", "to", "add", "nspbr6", "resources", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nspbr6.java#L867-L904
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nspbr6.java
nspbr6.renumber
public static base_response renumber(nitro_service client) throws Exception { nspbr6 renumberresource = new nspbr6(); return renumberresource.perform_operation(client,"renumber"); }
java
public static base_response renumber(nitro_service client) throws Exception { nspbr6 renumberresource = new nspbr6(); return renumberresource.perform_operation(client,"renumber"); }
[ "public", "static", "base_response", "renumber", "(", "nitro_service", "client", ")", "throws", "Exception", "{", "nspbr6", "renumberresource", "=", "new", "nspbr6", "(", ")", ";", "return", "renumberresource", ".", "perform_operation", "(", "client", ",", "\"renumber\"", ")", ";", "}" ]
Use this API to renumber nspbr6.
[ "Use", "this", "API", "to", "renumber", "nspbr6", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nspbr6.java#L909-L912
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nspbr6.java
nspbr6.renumber
public static base_responses renumber(nitro_service client, nspbr6 resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { nspbr6 renumberresources[] = new nspbr6[resources.length]; for (int i=0;i<resources.length;i++){ renumberresources[i] = new nspbr6(); } result = perform_operation_bulk_request(client, renumberresources,"renumber"); } return result; }
java
public static base_responses renumber(nitro_service client, nspbr6 resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { nspbr6 renumberresources[] = new nspbr6[resources.length]; for (int i=0;i<resources.length;i++){ renumberresources[i] = new nspbr6(); } result = perform_operation_bulk_request(client, renumberresources,"renumber"); } return result; }
[ "public", "static", "base_responses", "renumber", "(", "nitro_service", "client", ",", "nspbr6", "resources", "[", "]", ")", "throws", "Exception", "{", "base_responses", "result", "=", "null", ";", "if", "(", "resources", "!=", "null", "&&", "resources", ".", "length", ">", "0", ")", "{", "nspbr6", "renumberresources", "[", "]", "=", "new", "nspbr6", "[", "resources", ".", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "resources", ".", "length", ";", "i", "++", ")", "{", "renumberresources", "[", "i", "]", "=", "new", "nspbr6", "(", ")", ";", "}", "result", "=", "perform_operation_bulk_request", "(", "client", ",", "renumberresources", ",", "\"renumber\"", ")", ";", "}", "return", "result", ";", "}" ]
Use this API to renumber nspbr6 resources.
[ "Use", "this", "API", "to", "renumber", "nspbr6", "resources", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nspbr6.java#L917-L927
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nspbr6.java
nspbr6.update
public static base_response update(nitro_service client, nspbr6 resource) throws Exception { nspbr6 updateresource = new nspbr6(); updateresource.name = resource.name; updateresource.action = resource.action; updateresource.srcipv6 = resource.srcipv6; updateresource.srcipop = resource.srcipop; updateresource.srcipv6val = resource.srcipv6val; updateresource.srcport = resource.srcport; updateresource.srcportop = resource.srcportop; updateresource.srcportval = resource.srcportval; updateresource.destipv6 = resource.destipv6; updateresource.destipop = resource.destipop; updateresource.destipv6val = resource.destipv6val; updateresource.destport = resource.destport; updateresource.destportop = resource.destportop; updateresource.destportval = resource.destportval; updateresource.srcmac = resource.srcmac; updateresource.protocol = resource.protocol; updateresource.protocolnumber = resource.protocolnumber; updateresource.vlan = resource.vlan; updateresource.Interface = resource.Interface; updateresource.priority = resource.priority; updateresource.msr = resource.msr; updateresource.monitor = resource.monitor; updateresource.nexthop = resource.nexthop; updateresource.nexthopval = resource.nexthopval; updateresource.nexthopvlan = resource.nexthopvlan; return updateresource.update_resource(client); }
java
public static base_response update(nitro_service client, nspbr6 resource) throws Exception { nspbr6 updateresource = new nspbr6(); updateresource.name = resource.name; updateresource.action = resource.action; updateresource.srcipv6 = resource.srcipv6; updateresource.srcipop = resource.srcipop; updateresource.srcipv6val = resource.srcipv6val; updateresource.srcport = resource.srcport; updateresource.srcportop = resource.srcportop; updateresource.srcportval = resource.srcportval; updateresource.destipv6 = resource.destipv6; updateresource.destipop = resource.destipop; updateresource.destipv6val = resource.destipv6val; updateresource.destport = resource.destport; updateresource.destportop = resource.destportop; updateresource.destportval = resource.destportval; updateresource.srcmac = resource.srcmac; updateresource.protocol = resource.protocol; updateresource.protocolnumber = resource.protocolnumber; updateresource.vlan = resource.vlan; updateresource.Interface = resource.Interface; updateresource.priority = resource.priority; updateresource.msr = resource.msr; updateresource.monitor = resource.monitor; updateresource.nexthop = resource.nexthop; updateresource.nexthopval = resource.nexthopval; updateresource.nexthopvlan = resource.nexthopvlan; return updateresource.update_resource(client); }
[ "public", "static", "base_response", "update", "(", "nitro_service", "client", ",", "nspbr6", "resource", ")", "throws", "Exception", "{", "nspbr6", "updateresource", "=", "new", "nspbr6", "(", ")", ";", "updateresource", ".", "name", "=", "resource", ".", "name", ";", "updateresource", ".", "action", "=", "resource", ".", "action", ";", "updateresource", ".", "srcipv6", "=", "resource", ".", "srcipv6", ";", "updateresource", ".", "srcipop", "=", "resource", ".", "srcipop", ";", "updateresource", ".", "srcipv6val", "=", "resource", ".", "srcipv6val", ";", "updateresource", ".", "srcport", "=", "resource", ".", "srcport", ";", "updateresource", ".", "srcportop", "=", "resource", ".", "srcportop", ";", "updateresource", ".", "srcportval", "=", "resource", ".", "srcportval", ";", "updateresource", ".", "destipv6", "=", "resource", ".", "destipv6", ";", "updateresource", ".", "destipop", "=", "resource", ".", "destipop", ";", "updateresource", ".", "destipv6val", "=", "resource", ".", "destipv6val", ";", "updateresource", ".", "destport", "=", "resource", ".", "destport", ";", "updateresource", ".", "destportop", "=", "resource", ".", "destportop", ";", "updateresource", ".", "destportval", "=", "resource", ".", "destportval", ";", "updateresource", ".", "srcmac", "=", "resource", ".", "srcmac", ";", "updateresource", ".", "protocol", "=", "resource", ".", "protocol", ";", "updateresource", ".", "protocolnumber", "=", "resource", ".", "protocolnumber", ";", "updateresource", ".", "vlan", "=", "resource", ".", "vlan", ";", "updateresource", ".", "Interface", "=", "resource", ".", "Interface", ";", "updateresource", ".", "priority", "=", "resource", ".", "priority", ";", "updateresource", ".", "msr", "=", "resource", ".", "msr", ";", "updateresource", ".", "monitor", "=", "resource", ".", "monitor", ";", "updateresource", ".", "nexthop", "=", "resource", ".", "nexthop", ";", "updateresource", ".", "nexthopval", "=", "resource", ".", "nexthopval", ";", "updateresource", ".", "nexthopvlan", "=", "resource", ".", "nexthopvlan", ";", "return", "updateresource", ".", "update_resource", "(", "client", ")", ";", "}" ]
Use this API to update nspbr6.
[ "Use", "this", "API", "to", "update", "nspbr6", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nspbr6.java#L982-L1010
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nspbr6.java
nspbr6.update
public static base_responses update(nitro_service client, nspbr6 resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { nspbr6 updateresources[] = new nspbr6[resources.length]; for (int i=0;i<resources.length;i++){ updateresources[i] = new nspbr6(); updateresources[i].name = resources[i].name; updateresources[i].action = resources[i].action; updateresources[i].srcipv6 = resources[i].srcipv6; updateresources[i].srcipop = resources[i].srcipop; updateresources[i].srcipv6val = resources[i].srcipv6val; updateresources[i].srcport = resources[i].srcport; updateresources[i].srcportop = resources[i].srcportop; updateresources[i].srcportval = resources[i].srcportval; updateresources[i].destipv6 = resources[i].destipv6; updateresources[i].destipop = resources[i].destipop; updateresources[i].destipv6val = resources[i].destipv6val; updateresources[i].destport = resources[i].destport; updateresources[i].destportop = resources[i].destportop; updateresources[i].destportval = resources[i].destportval; updateresources[i].srcmac = resources[i].srcmac; updateresources[i].protocol = resources[i].protocol; updateresources[i].protocolnumber = resources[i].protocolnumber; updateresources[i].vlan = resources[i].vlan; updateresources[i].Interface = resources[i].Interface; updateresources[i].priority = resources[i].priority; updateresources[i].msr = resources[i].msr; updateresources[i].monitor = resources[i].monitor; updateresources[i].nexthop = resources[i].nexthop; updateresources[i].nexthopval = resources[i].nexthopval; updateresources[i].nexthopvlan = resources[i].nexthopvlan; } result = update_bulk_request(client, updateresources); } return result; }
java
public static base_responses update(nitro_service client, nspbr6 resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { nspbr6 updateresources[] = new nspbr6[resources.length]; for (int i=0;i<resources.length;i++){ updateresources[i] = new nspbr6(); updateresources[i].name = resources[i].name; updateresources[i].action = resources[i].action; updateresources[i].srcipv6 = resources[i].srcipv6; updateresources[i].srcipop = resources[i].srcipop; updateresources[i].srcipv6val = resources[i].srcipv6val; updateresources[i].srcport = resources[i].srcport; updateresources[i].srcportop = resources[i].srcportop; updateresources[i].srcportval = resources[i].srcportval; updateresources[i].destipv6 = resources[i].destipv6; updateresources[i].destipop = resources[i].destipop; updateresources[i].destipv6val = resources[i].destipv6val; updateresources[i].destport = resources[i].destport; updateresources[i].destportop = resources[i].destportop; updateresources[i].destportval = resources[i].destportval; updateresources[i].srcmac = resources[i].srcmac; updateresources[i].protocol = resources[i].protocol; updateresources[i].protocolnumber = resources[i].protocolnumber; updateresources[i].vlan = resources[i].vlan; updateresources[i].Interface = resources[i].Interface; updateresources[i].priority = resources[i].priority; updateresources[i].msr = resources[i].msr; updateresources[i].monitor = resources[i].monitor; updateresources[i].nexthop = resources[i].nexthop; updateresources[i].nexthopval = resources[i].nexthopval; updateresources[i].nexthopvlan = resources[i].nexthopvlan; } result = update_bulk_request(client, updateresources); } return result; }
[ "public", "static", "base_responses", "update", "(", "nitro_service", "client", ",", "nspbr6", "resources", "[", "]", ")", "throws", "Exception", "{", "base_responses", "result", "=", "null", ";", "if", "(", "resources", "!=", "null", "&&", "resources", ".", "length", ">", "0", ")", "{", "nspbr6", "updateresources", "[", "]", "=", "new", "nspbr6", "[", "resources", ".", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "resources", ".", "length", ";", "i", "++", ")", "{", "updateresources", "[", "i", "]", "=", "new", "nspbr6", "(", ")", ";", "updateresources", "[", "i", "]", ".", "name", "=", "resources", "[", "i", "]", ".", "name", ";", "updateresources", "[", "i", "]", ".", "action", "=", "resources", "[", "i", "]", ".", "action", ";", "updateresources", "[", "i", "]", ".", "srcipv6", "=", "resources", "[", "i", "]", ".", "srcipv6", ";", "updateresources", "[", "i", "]", ".", "srcipop", "=", "resources", "[", "i", "]", ".", "srcipop", ";", "updateresources", "[", "i", "]", ".", "srcipv6val", "=", "resources", "[", "i", "]", ".", "srcipv6val", ";", "updateresources", "[", "i", "]", ".", "srcport", "=", "resources", "[", "i", "]", ".", "srcport", ";", "updateresources", "[", "i", "]", ".", "srcportop", "=", "resources", "[", "i", "]", ".", "srcportop", ";", "updateresources", "[", "i", "]", ".", "srcportval", "=", "resources", "[", "i", "]", ".", "srcportval", ";", "updateresources", "[", "i", "]", ".", "destipv6", "=", "resources", "[", "i", "]", ".", "destipv6", ";", "updateresources", "[", "i", "]", ".", "destipop", "=", "resources", "[", "i", "]", ".", "destipop", ";", "updateresources", "[", "i", "]", ".", "destipv6val", "=", "resources", "[", "i", "]", ".", "destipv6val", ";", "updateresources", "[", "i", "]", ".", "destport", "=", "resources", "[", "i", "]", ".", "destport", ";", "updateresources", "[", "i", "]", ".", "destportop", "=", "resources", "[", "i", "]", ".", "destportop", ";", "updateresources", "[", "i", "]", ".", "destportval", "=", "resources", "[", "i", "]", ".", "destportval", ";", "updateresources", "[", "i", "]", ".", "srcmac", "=", "resources", "[", "i", "]", ".", "srcmac", ";", "updateresources", "[", "i", "]", ".", "protocol", "=", "resources", "[", "i", "]", ".", "protocol", ";", "updateresources", "[", "i", "]", ".", "protocolnumber", "=", "resources", "[", "i", "]", ".", "protocolnumber", ";", "updateresources", "[", "i", "]", ".", "vlan", "=", "resources", "[", "i", "]", ".", "vlan", ";", "updateresources", "[", "i", "]", ".", "Interface", "=", "resources", "[", "i", "]", ".", "Interface", ";", "updateresources", "[", "i", "]", ".", "priority", "=", "resources", "[", "i", "]", ".", "priority", ";", "updateresources", "[", "i", "]", ".", "msr", "=", "resources", "[", "i", "]", ".", "msr", ";", "updateresources", "[", "i", "]", ".", "monitor", "=", "resources", "[", "i", "]", ".", "monitor", ";", "updateresources", "[", "i", "]", ".", "nexthop", "=", "resources", "[", "i", "]", ".", "nexthop", ";", "updateresources", "[", "i", "]", ".", "nexthopval", "=", "resources", "[", "i", "]", ".", "nexthopval", ";", "updateresources", "[", "i", "]", ".", "nexthopvlan", "=", "resources", "[", "i", "]", ".", "nexthopvlan", ";", "}", "result", "=", "update_bulk_request", "(", "client", ",", "updateresources", ")", ";", "}", "return", "result", ";", "}" ]
Use this API to update nspbr6 resources.
[ "Use", "this", "API", "to", "update", "nspbr6", "resources", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nspbr6.java#L1015-L1050
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nspbr6.java
nspbr6.clear
public static base_response clear(nitro_service client) throws Exception { nspbr6 clearresource = new nspbr6(); return clearresource.perform_operation(client,"clear"); }
java
public static base_response clear(nitro_service client) throws Exception { nspbr6 clearresource = new nspbr6(); return clearresource.perform_operation(client,"clear"); }
[ "public", "static", "base_response", "clear", "(", "nitro_service", "client", ")", "throws", "Exception", "{", "nspbr6", "clearresource", "=", "new", "nspbr6", "(", ")", ";", "return", "clearresource", ".", "perform_operation", "(", "client", ",", "\"clear\"", ")", ";", "}" ]
Use this API to clear nspbr6.
[ "Use", "this", "API", "to", "clear", "nspbr6", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nspbr6.java#L1199-L1202
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nspbr6.java
nspbr6.apply
public static base_response apply(nitro_service client) throws Exception { nspbr6 applyresource = new nspbr6(); return applyresource.perform_operation(client,"apply"); }
java
public static base_response apply(nitro_service client) throws Exception { nspbr6 applyresource = new nspbr6(); return applyresource.perform_operation(client,"apply"); }
[ "public", "static", "base_response", "apply", "(", "nitro_service", "client", ")", "throws", "Exception", "{", "nspbr6", "applyresource", "=", "new", "nspbr6", "(", ")", ";", "return", "applyresource", ".", "perform_operation", "(", "client", ",", "\"apply\"", ")", ";", "}" ]
Use this API to apply nspbr6.
[ "Use", "this", "API", "to", "apply", "nspbr6", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nspbr6.java#L1222-L1225
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nspbr6.java
nspbr6.apply
public static base_responses apply(nitro_service client, nspbr6 resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { nspbr6 applyresources[] = new nspbr6[resources.length]; for (int i=0;i<resources.length;i++){ applyresources[i] = new nspbr6(); } result = perform_operation_bulk_request(client, applyresources,"apply"); } return result; }
java
public static base_responses apply(nitro_service client, nspbr6 resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { nspbr6 applyresources[] = new nspbr6[resources.length]; for (int i=0;i<resources.length;i++){ applyresources[i] = new nspbr6(); } result = perform_operation_bulk_request(client, applyresources,"apply"); } return result; }
[ "public", "static", "base_responses", "apply", "(", "nitro_service", "client", ",", "nspbr6", "resources", "[", "]", ")", "throws", "Exception", "{", "base_responses", "result", "=", "null", ";", "if", "(", "resources", "!=", "null", "&&", "resources", ".", "length", ">", "0", ")", "{", "nspbr6", "applyresources", "[", "]", "=", "new", "nspbr6", "[", "resources", ".", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "resources", ".", "length", ";", "i", "++", ")", "{", "applyresources", "[", "i", "]", "=", "new", "nspbr6", "(", ")", ";", "}", "result", "=", "perform_operation_bulk_request", "(", "client", ",", "applyresources", ",", "\"apply\"", ")", ";", "}", "return", "result", ";", "}" ]
Use this API to apply nspbr6 resources.
[ "Use", "this", "API", "to", "apply", "nspbr6", "resources", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nspbr6.java#L1230-L1240
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nspbr6.java
nspbr6.get
public static nspbr6[] get(nitro_service service) throws Exception{ nspbr6 obj = new nspbr6(); nspbr6[] response = (nspbr6[])obj.get_resources(service); return response; }
java
public static nspbr6[] get(nitro_service service) throws Exception{ nspbr6 obj = new nspbr6(); nspbr6[] response = (nspbr6[])obj.get_resources(service); return response; }
[ "public", "static", "nspbr6", "[", "]", "get", "(", "nitro_service", "service", ")", "throws", "Exception", "{", "nspbr6", "obj", "=", "new", "nspbr6", "(", ")", ";", "nspbr6", "[", "]", "response", "=", "(", "nspbr6", "[", "]", ")", "obj", ".", "get_resources", "(", "service", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch all the nspbr6 resources that are configured on netscaler.
[ "Use", "this", "API", "to", "fetch", "all", "the", "nspbr6", "resources", "that", "are", "configured", "on", "netscaler", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nspbr6.java#L1245-L1249
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nspbr6.java
nspbr6.get
public static nspbr6[] get(nitro_service service, nspbr6_args args) throws Exception{ nspbr6 obj = new nspbr6(); options option = new options(); option.set_args(nitro_util.object_to_string_withoutquotes(args)); nspbr6[] response = (nspbr6[])obj.get_resources(service, option); return response; }
java
public static nspbr6[] get(nitro_service service, nspbr6_args args) throws Exception{ nspbr6 obj = new nspbr6(); options option = new options(); option.set_args(nitro_util.object_to_string_withoutquotes(args)); nspbr6[] response = (nspbr6[])obj.get_resources(service, option); return response; }
[ "public", "static", "nspbr6", "[", "]", "get", "(", "nitro_service", "service", ",", "nspbr6_args", "args", ")", "throws", "Exception", "{", "nspbr6", "obj", "=", "new", "nspbr6", "(", ")", ";", "options", "option", "=", "new", "options", "(", ")", ";", "option", ".", "set_args", "(", "nitro_util", ".", "object_to_string_withoutquotes", "(", "args", ")", ")", ";", "nspbr6", "[", "]", "response", "=", "(", "nspbr6", "[", "]", ")", "obj", ".", "get_resources", "(", "service", ",", "option", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch all the nspbr6 resources that are configured on netscaler. This uses nspbr6_args which is a way to provide additional arguments while fetching the resources.
[ "Use", "this", "API", "to", "fetch", "all", "the", "nspbr6", "resources", "that", "are", "configured", "on", "netscaler", ".", "This", "uses", "nspbr6_args", "which", "is", "a", "way", "to", "provide", "additional", "arguments", "while", "fetching", "the", "resources", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nspbr6.java#L1262-L1268
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nspbr6.java
nspbr6.get
public static nspbr6 get(nitro_service service, String name) throws Exception{ nspbr6 obj = new nspbr6(); obj.set_name(name); nspbr6 response = (nspbr6) obj.get_resource(service); return response; }
java
public static nspbr6 get(nitro_service service, String name) throws Exception{ nspbr6 obj = new nspbr6(); obj.set_name(name); nspbr6 response = (nspbr6) obj.get_resource(service); return response; }
[ "public", "static", "nspbr6", "get", "(", "nitro_service", "service", ",", "String", "name", ")", "throws", "Exception", "{", "nspbr6", "obj", "=", "new", "nspbr6", "(", ")", ";", "obj", ".", "set_name", "(", "name", ")", ";", "nspbr6", "response", "=", "(", "nspbr6", ")", "obj", ".", "get_resource", "(", "service", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch nspbr6 resource of given name .
[ "Use", "this", "API", "to", "fetch", "nspbr6", "resource", "of", "given", "name", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nspbr6.java#L1273-L1278
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/stat/spillover/spilloverpolicy_stats.java
spilloverpolicy_stats.get
public static spilloverpolicy_stats[] get(nitro_service service) throws Exception{ spilloverpolicy_stats obj = new spilloverpolicy_stats(); spilloverpolicy_stats[] response = (spilloverpolicy_stats[])obj.stat_resources(service); return response; }
java
public static spilloverpolicy_stats[] get(nitro_service service) throws Exception{ spilloverpolicy_stats obj = new spilloverpolicy_stats(); spilloverpolicy_stats[] response = (spilloverpolicy_stats[])obj.stat_resources(service); return response; }
[ "public", "static", "spilloverpolicy_stats", "[", "]", "get", "(", "nitro_service", "service", ")", "throws", "Exception", "{", "spilloverpolicy_stats", "obj", "=", "new", "spilloverpolicy_stats", "(", ")", ";", "spilloverpolicy_stats", "[", "]", "response", "=", "(", "spilloverpolicy_stats", "[", "]", ")", "obj", ".", "stat_resources", "(", "service", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch the statistics of all spilloverpolicy_stats resources that are configured on netscaler.
[ "Use", "this", "API", "to", "fetch", "the", "statistics", "of", "all", "spilloverpolicy_stats", "resources", "that", "are", "configured", "on", "netscaler", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/stat/spillover/spilloverpolicy_stats.java#L151-L155
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/stat/spillover/spilloverpolicy_stats.java
spilloverpolicy_stats.get
public static spilloverpolicy_stats get(nitro_service service, String name) throws Exception{ spilloverpolicy_stats obj = new spilloverpolicy_stats(); obj.set_name(name); spilloverpolicy_stats response = (spilloverpolicy_stats) obj.stat_resource(service); return response; }
java
public static spilloverpolicy_stats get(nitro_service service, String name) throws Exception{ spilloverpolicy_stats obj = new spilloverpolicy_stats(); obj.set_name(name); spilloverpolicy_stats response = (spilloverpolicy_stats) obj.stat_resource(service); return response; }
[ "public", "static", "spilloverpolicy_stats", "get", "(", "nitro_service", "service", ",", "String", "name", ")", "throws", "Exception", "{", "spilloverpolicy_stats", "obj", "=", "new", "spilloverpolicy_stats", "(", ")", ";", "obj", ".", "set_name", "(", "name", ")", ";", "spilloverpolicy_stats", "response", "=", "(", "spilloverpolicy_stats", ")", "obj", ".", "stat_resource", "(", "service", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch statistics of spilloverpolicy_stats resource of given name .
[ "Use", "this", "API", "to", "fetch", "statistics", "of", "spilloverpolicy_stats", "resource", "of", "given", "name", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/stat/spillover/spilloverpolicy_stats.java#L169-L174
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwprofile_xmlvalidationurl_binding.java
appfwprofile_xmlvalidationurl_binding.get
public static appfwprofile_xmlvalidationurl_binding[] get(nitro_service service, String name) throws Exception{ appfwprofile_xmlvalidationurl_binding obj = new appfwprofile_xmlvalidationurl_binding(); obj.set_name(name); appfwprofile_xmlvalidationurl_binding response[] = (appfwprofile_xmlvalidationurl_binding[]) obj.get_resources(service); return response; }
java
public static appfwprofile_xmlvalidationurl_binding[] get(nitro_service service, String name) throws Exception{ appfwprofile_xmlvalidationurl_binding obj = new appfwprofile_xmlvalidationurl_binding(); obj.set_name(name); appfwprofile_xmlvalidationurl_binding response[] = (appfwprofile_xmlvalidationurl_binding[]) obj.get_resources(service); return response; }
[ "public", "static", "appfwprofile_xmlvalidationurl_binding", "[", "]", "get", "(", "nitro_service", "service", ",", "String", "name", ")", "throws", "Exception", "{", "appfwprofile_xmlvalidationurl_binding", "obj", "=", "new", "appfwprofile_xmlvalidationurl_binding", "(", ")", ";", "obj", ".", "set_name", "(", "name", ")", ";", "appfwprofile_xmlvalidationurl_binding", "response", "[", "]", "=", "(", "appfwprofile_xmlvalidationurl_binding", "[", "]", ")", "obj", ".", "get_resources", "(", "service", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch appfwprofile_xmlvalidationurl_binding resources of given name .
[ "Use", "this", "API", "to", "fetch", "appfwprofile_xmlvalidationurl_binding", "resources", "of", "given", "name", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/appfw/appfwprofile_xmlvalidationurl_binding.java#L351-L356
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/vpn/vpnvserver_responderpolicy_binding.java
vpnvserver_responderpolicy_binding.get
public static vpnvserver_responderpolicy_binding[] get(nitro_service service, String name) throws Exception{ vpnvserver_responderpolicy_binding obj = new vpnvserver_responderpolicy_binding(); obj.set_name(name); vpnvserver_responderpolicy_binding response[] = (vpnvserver_responderpolicy_binding[]) obj.get_resources(service); return response; }
java
public static vpnvserver_responderpolicy_binding[] get(nitro_service service, String name) throws Exception{ vpnvserver_responderpolicy_binding obj = new vpnvserver_responderpolicy_binding(); obj.set_name(name); vpnvserver_responderpolicy_binding response[] = (vpnvserver_responderpolicy_binding[]) obj.get_resources(service); return response; }
[ "public", "static", "vpnvserver_responderpolicy_binding", "[", "]", "get", "(", "nitro_service", "service", ",", "String", "name", ")", "throws", "Exception", "{", "vpnvserver_responderpolicy_binding", "obj", "=", "new", "vpnvserver_responderpolicy_binding", "(", ")", ";", "obj", ".", "set_name", "(", "name", ")", ";", "vpnvserver_responderpolicy_binding", "response", "[", "]", "=", "(", "vpnvserver_responderpolicy_binding", "[", "]", ")", "obj", ".", "get_resources", "(", "service", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch vpnvserver_responderpolicy_binding resources of given name .
[ "Use", "this", "API", "to", "fetch", "vpnvserver_responderpolicy_binding", "resources", "of", "given", "name", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/vpn/vpnvserver_responderpolicy_binding.java#L292-L297
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/responder/responderpolicy.java
responderpolicy.add
public static base_response add(nitro_service client, responderpolicy resource) throws Exception { responderpolicy addresource = new responderpolicy(); addresource.name = resource.name; addresource.rule = resource.rule; addresource.action = resource.action; addresource.undefaction = resource.undefaction; addresource.comment = resource.comment; addresource.logaction = resource.logaction; addresource.appflowaction = resource.appflowaction; return addresource.add_resource(client); }
java
public static base_response add(nitro_service client, responderpolicy resource) throws Exception { responderpolicy addresource = new responderpolicy(); addresource.name = resource.name; addresource.rule = resource.rule; addresource.action = resource.action; addresource.undefaction = resource.undefaction; addresource.comment = resource.comment; addresource.logaction = resource.logaction; addresource.appflowaction = resource.appflowaction; return addresource.add_resource(client); }
[ "public", "static", "base_response", "add", "(", "nitro_service", "client", ",", "responderpolicy", "resource", ")", "throws", "Exception", "{", "responderpolicy", "addresource", "=", "new", "responderpolicy", "(", ")", ";", "addresource", ".", "name", "=", "resource", ".", "name", ";", "addresource", ".", "rule", "=", "resource", ".", "rule", ";", "addresource", ".", "action", "=", "resource", ".", "action", ";", "addresource", ".", "undefaction", "=", "resource", ".", "undefaction", ";", "addresource", ".", "comment", "=", "resource", ".", "comment", ";", "addresource", ".", "logaction", "=", "resource", ".", "logaction", ";", "addresource", ".", "appflowaction", "=", "resource", ".", "appflowaction", ";", "return", "addresource", ".", "add_resource", "(", "client", ")", ";", "}" ]
Use this API to add responderpolicy.
[ "Use", "this", "API", "to", "add", "responderpolicy", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/responder/responderpolicy.java#L283-L293
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/responder/responderpolicy.java
responderpolicy.update
public static base_response update(nitro_service client, responderpolicy resource) throws Exception { responderpolicy updateresource = new responderpolicy(); updateresource.name = resource.name; updateresource.rule = resource.rule; updateresource.action = resource.action; updateresource.undefaction = resource.undefaction; updateresource.comment = resource.comment; updateresource.logaction = resource.logaction; updateresource.appflowaction = resource.appflowaction; return updateresource.update_resource(client); }
java
public static base_response update(nitro_service client, responderpolicy resource) throws Exception { responderpolicy updateresource = new responderpolicy(); updateresource.name = resource.name; updateresource.rule = resource.rule; updateresource.action = resource.action; updateresource.undefaction = resource.undefaction; updateresource.comment = resource.comment; updateresource.logaction = resource.logaction; updateresource.appflowaction = resource.appflowaction; return updateresource.update_resource(client); }
[ "public", "static", "base_response", "update", "(", "nitro_service", "client", ",", "responderpolicy", "resource", ")", "throws", "Exception", "{", "responderpolicy", "updateresource", "=", "new", "responderpolicy", "(", ")", ";", "updateresource", ".", "name", "=", "resource", ".", "name", ";", "updateresource", ".", "rule", "=", "resource", ".", "rule", ";", "updateresource", ".", "action", "=", "resource", ".", "action", ";", "updateresource", ".", "undefaction", "=", "resource", ".", "undefaction", ";", "updateresource", ".", "comment", "=", "resource", ".", "comment", ";", "updateresource", ".", "logaction", "=", "resource", ".", "logaction", ";", "updateresource", ".", "appflowaction", "=", "resource", ".", "appflowaction", ";", "return", "updateresource", ".", "update_resource", "(", "client", ")", ";", "}" ]
Use this API to update responderpolicy.
[ "Use", "this", "API", "to", "update", "responderpolicy", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/responder/responderpolicy.java#L370-L380
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/responder/responderpolicy.java
responderpolicy.update
public static base_responses update(nitro_service client, responderpolicy resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { responderpolicy updateresources[] = new responderpolicy[resources.length]; for (int i=0;i<resources.length;i++){ updateresources[i] = new responderpolicy(); updateresources[i].name = resources[i].name; updateresources[i].rule = resources[i].rule; updateresources[i].action = resources[i].action; updateresources[i].undefaction = resources[i].undefaction; updateresources[i].comment = resources[i].comment; updateresources[i].logaction = resources[i].logaction; updateresources[i].appflowaction = resources[i].appflowaction; } result = update_bulk_request(client, updateresources); } return result; }
java
public static base_responses update(nitro_service client, responderpolicy resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { responderpolicy updateresources[] = new responderpolicy[resources.length]; for (int i=0;i<resources.length;i++){ updateresources[i] = new responderpolicy(); updateresources[i].name = resources[i].name; updateresources[i].rule = resources[i].rule; updateresources[i].action = resources[i].action; updateresources[i].undefaction = resources[i].undefaction; updateresources[i].comment = resources[i].comment; updateresources[i].logaction = resources[i].logaction; updateresources[i].appflowaction = resources[i].appflowaction; } result = update_bulk_request(client, updateresources); } return result; }
[ "public", "static", "base_responses", "update", "(", "nitro_service", "client", ",", "responderpolicy", "resources", "[", "]", ")", "throws", "Exception", "{", "base_responses", "result", "=", "null", ";", "if", "(", "resources", "!=", "null", "&&", "resources", ".", "length", ">", "0", ")", "{", "responderpolicy", "updateresources", "[", "]", "=", "new", "responderpolicy", "[", "resources", ".", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "resources", ".", "length", ";", "i", "++", ")", "{", "updateresources", "[", "i", "]", "=", "new", "responderpolicy", "(", ")", ";", "updateresources", "[", "i", "]", ".", "name", "=", "resources", "[", "i", "]", ".", "name", ";", "updateresources", "[", "i", "]", ".", "rule", "=", "resources", "[", "i", "]", ".", "rule", ";", "updateresources", "[", "i", "]", ".", "action", "=", "resources", "[", "i", "]", ".", "action", ";", "updateresources", "[", "i", "]", ".", "undefaction", "=", "resources", "[", "i", "]", ".", "undefaction", ";", "updateresources", "[", "i", "]", ".", "comment", "=", "resources", "[", "i", "]", ".", "comment", ";", "updateresources", "[", "i", "]", ".", "logaction", "=", "resources", "[", "i", "]", ".", "logaction", ";", "updateresources", "[", "i", "]", ".", "appflowaction", "=", "resources", "[", "i", "]", ".", "appflowaction", ";", "}", "result", "=", "update_bulk_request", "(", "client", ",", "updateresources", ")", ";", "}", "return", "result", ";", "}" ]
Use this API to update responderpolicy resources.
[ "Use", "this", "API", "to", "update", "responderpolicy", "resources", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/responder/responderpolicy.java#L385-L402
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/responder/responderpolicy.java
responderpolicy.unset
public static base_response unset(nitro_service client, responderpolicy resource, String[] args) throws Exception{ responderpolicy unsetresource = new responderpolicy(); unsetresource.name = resource.name; return unsetresource.unset_resource(client,args); }
java
public static base_response unset(nitro_service client, responderpolicy resource, String[] args) throws Exception{ responderpolicy unsetresource = new responderpolicy(); unsetresource.name = resource.name; return unsetresource.unset_resource(client,args); }
[ "public", "static", "base_response", "unset", "(", "nitro_service", "client", ",", "responderpolicy", "resource", ",", "String", "[", "]", "args", ")", "throws", "Exception", "{", "responderpolicy", "unsetresource", "=", "new", "responderpolicy", "(", ")", ";", "unsetresource", ".", "name", "=", "resource", ".", "name", ";", "return", "unsetresource", ".", "unset_resource", "(", "client", ",", "args", ")", ";", "}" ]
Use this API to unset the properties of responderpolicy resource. Properties that need to be unset are specified in args array.
[ "Use", "this", "API", "to", "unset", "the", "properties", "of", "responderpolicy", "resource", ".", "Properties", "that", "need", "to", "be", "unset", "are", "specified", "in", "args", "array", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/responder/responderpolicy.java#L408-L412
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/responder/responderpolicy.java
responderpolicy.rename
public static base_response rename(nitro_service client, responderpolicy resource, String new_name) throws Exception { responderpolicy renameresource = new responderpolicy(); renameresource.name = resource.name; return renameresource.rename_resource(client,new_name); }
java
public static base_response rename(nitro_service client, responderpolicy resource, String new_name) throws Exception { responderpolicy renameresource = new responderpolicy(); renameresource.name = resource.name; return renameresource.rename_resource(client,new_name); }
[ "public", "static", "base_response", "rename", "(", "nitro_service", "client", ",", "responderpolicy", "resource", ",", "String", "new_name", ")", "throws", "Exception", "{", "responderpolicy", "renameresource", "=", "new", "responderpolicy", "(", ")", ";", "renameresource", ".", "name", "=", "resource", ".", "name", ";", "return", "renameresource", ".", "rename_resource", "(", "client", ",", "new_name", ")", ";", "}" ]
Use this API to rename a responderpolicy resource.
[ "Use", "this", "API", "to", "rename", "a", "responderpolicy", "resource", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/responder/responderpolicy.java#L451-L455
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/responder/responderpolicy.java
responderpolicy.get
public static responderpolicy[] get(nitro_service service) throws Exception{ responderpolicy obj = new responderpolicy(); responderpolicy[] response = (responderpolicy[])obj.get_resources(service); return response; }
java
public static responderpolicy[] get(nitro_service service) throws Exception{ responderpolicy obj = new responderpolicy(); responderpolicy[] response = (responderpolicy[])obj.get_resources(service); return response; }
[ "public", "static", "responderpolicy", "[", "]", "get", "(", "nitro_service", "service", ")", "throws", "Exception", "{", "responderpolicy", "obj", "=", "new", "responderpolicy", "(", ")", ";", "responderpolicy", "[", "]", "response", "=", "(", "responderpolicy", "[", "]", ")", "obj", ".", "get_resources", "(", "service", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch all the responderpolicy resources that are configured on netscaler.
[ "Use", "this", "API", "to", "fetch", "all", "the", "responderpolicy", "resources", "that", "are", "configured", "on", "netscaler", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/responder/responderpolicy.java#L469-L473
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/responder/responderpolicy.java
responderpolicy.get
public static responderpolicy get(nitro_service service, String name) throws Exception{ responderpolicy obj = new responderpolicy(); obj.set_name(name); responderpolicy response = (responderpolicy) obj.get_resource(service); return response; }
java
public static responderpolicy get(nitro_service service, String name) throws Exception{ responderpolicy obj = new responderpolicy(); obj.set_name(name); responderpolicy response = (responderpolicy) obj.get_resource(service); return response; }
[ "public", "static", "responderpolicy", "get", "(", "nitro_service", "service", ",", "String", "name", ")", "throws", "Exception", "{", "responderpolicy", "obj", "=", "new", "responderpolicy", "(", ")", ";", "obj", ".", "set_name", "(", "name", ")", ";", "responderpolicy", "response", "=", "(", "responderpolicy", ")", "obj", ".", "get_resource", "(", "service", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch responderpolicy resource of given name .
[ "Use", "this", "API", "to", "fetch", "responderpolicy", "resource", "of", "given", "name", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/responder/responderpolicy.java#L485-L490
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/ha/hanode_routemonitor6_binding.java
hanode_routemonitor6_binding.get
public static hanode_routemonitor6_binding[] get(nitro_service service, Long id) throws Exception{ hanode_routemonitor6_binding obj = new hanode_routemonitor6_binding(); obj.set_id(id); hanode_routemonitor6_binding response[] = (hanode_routemonitor6_binding[]) obj.get_resources(service); return response; }
java
public static hanode_routemonitor6_binding[] get(nitro_service service, Long id) throws Exception{ hanode_routemonitor6_binding obj = new hanode_routemonitor6_binding(); obj.set_id(id); hanode_routemonitor6_binding response[] = (hanode_routemonitor6_binding[]) obj.get_resources(service); return response; }
[ "public", "static", "hanode_routemonitor6_binding", "[", "]", "get", "(", "nitro_service", "service", ",", "Long", "id", ")", "throws", "Exception", "{", "hanode_routemonitor6_binding", "obj", "=", "new", "hanode_routemonitor6_binding", "(", ")", ";", "obj", ".", "set_id", "(", "id", ")", ";", "hanode_routemonitor6_binding", "response", "[", "]", "=", "(", "hanode_routemonitor6_binding", "[", "]", ")", "obj", ".", "get_resources", "(", "service", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch hanode_routemonitor6_binding resources of given name .
[ "Use", "this", "API", "to", "fetch", "hanode_routemonitor6_binding", "resources", "of", "given", "name", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ha/hanode_routemonitor6_binding.java#L199-L204
train
meertensinstituut/mtas
src/main/java/mtas/codec/MtasTerms.java
MtasTerms.getIndexInputList
public HashMap<String, IndexInput> getIndexInputList() { HashMap<String, IndexInput> clonedIndexInputList = new HashMap<String, IndexInput>(); for (Entry<String, IndexInput> entry : indexInputList.entrySet()) { clonedIndexInputList.put(entry.getKey(), entry.getValue().clone()); } return clonedIndexInputList; }
java
public HashMap<String, IndexInput> getIndexInputList() { HashMap<String, IndexInput> clonedIndexInputList = new HashMap<String, IndexInput>(); for (Entry<String, IndexInput> entry : indexInputList.entrySet()) { clonedIndexInputList.put(entry.getKey(), entry.getValue().clone()); } return clonedIndexInputList; }
[ "public", "HashMap", "<", "String", ",", "IndexInput", ">", "getIndexInputList", "(", ")", "{", "HashMap", "<", "String", ",", "IndexInput", ">", "clonedIndexInputList", "=", "new", "HashMap", "<", "String", ",", "IndexInput", ">", "(", ")", ";", "for", "(", "Entry", "<", "String", ",", "IndexInput", ">", "entry", ":", "indexInputList", ".", "entrySet", "(", ")", ")", "{", "clonedIndexInputList", ".", "put", "(", "entry", ".", "getKey", "(", ")", ",", "entry", ".", "getValue", "(", ")", ".", "clone", "(", ")", ")", ";", "}", "return", "clonedIndexInputList", ";", "}" ]
Gets the index input list. @return the index input list
[ "Gets", "the", "index", "input", "list", "." ]
f02ae730848616bd88b553efa7f9eddc32818e64
https://github.com/meertensinstituut/mtas/blob/f02ae730848616bd88b553efa7f9eddc32818e64/src/main/java/mtas/codec/MtasTerms.java#L184-L190
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/system/systementitydata.java
systementitydata.delete
public static base_response delete(nitro_service client, systementitydata resource) throws Exception { systementitydata deleteresource = new systementitydata(); deleteresource.type = resource.type; deleteresource.name = resource.name; deleteresource.alldeleted = resource.alldeleted; deleteresource.allinactive = resource.allinactive; deleteresource.datasource = resource.datasource; deleteresource.core = resource.core; return deleteresource.delete_resource(client); }
java
public static base_response delete(nitro_service client, systementitydata resource) throws Exception { systementitydata deleteresource = new systementitydata(); deleteresource.type = resource.type; deleteresource.name = resource.name; deleteresource.alldeleted = resource.alldeleted; deleteresource.allinactive = resource.allinactive; deleteresource.datasource = resource.datasource; deleteresource.core = resource.core; return deleteresource.delete_resource(client); }
[ "public", "static", "base_response", "delete", "(", "nitro_service", "client", ",", "systementitydata", "resource", ")", "throws", "Exception", "{", "systementitydata", "deleteresource", "=", "new", "systementitydata", "(", ")", ";", "deleteresource", ".", "type", "=", "resource", ".", "type", ";", "deleteresource", ".", "name", "=", "resource", ".", "name", ";", "deleteresource", ".", "alldeleted", "=", "resource", ".", "alldeleted", ";", "deleteresource", ".", "allinactive", "=", "resource", ".", "allinactive", ";", "deleteresource", ".", "datasource", "=", "resource", ".", "datasource", ";", "deleteresource", ".", "core", "=", "resource", ".", "core", ";", "return", "deleteresource", ".", "delete_resource", "(", "client", ")", ";", "}" ]
Use this API to delete systementitydata.
[ "Use", "this", "API", "to", "delete", "systementitydata", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/system/systementitydata.java#L353-L362
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/system/systementitydata.java
systementitydata.get
public static systementitydata[] get(nitro_service service, systementitydata_args args) throws Exception{ systementitydata obj = new systementitydata(); options option = new options(); option.set_args(nitro_util.object_to_string_withoutquotes(args)); systementitydata[] response = (systementitydata[])obj.get_resources(service, option); return response; }
java
public static systementitydata[] get(nitro_service service, systementitydata_args args) throws Exception{ systementitydata obj = new systementitydata(); options option = new options(); option.set_args(nitro_util.object_to_string_withoutquotes(args)); systementitydata[] response = (systementitydata[])obj.get_resources(service, option); return response; }
[ "public", "static", "systementitydata", "[", "]", "get", "(", "nitro_service", "service", ",", "systementitydata_args", "args", ")", "throws", "Exception", "{", "systementitydata", "obj", "=", "new", "systementitydata", "(", ")", ";", "options", "option", "=", "new", "options", "(", ")", ";", "option", ".", "set_args", "(", "nitro_util", ".", "object_to_string_withoutquotes", "(", "args", ")", ")", ";", "systementitydata", "[", "]", "response", "=", "(", "systementitydata", "[", "]", ")", "obj", ".", "get_resources", "(", "service", ",", "option", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch all the systementitydata resources that are configured on netscaler. This uses systementitydata_args which is a way to provide additional arguments while fetching the resources.
[ "Use", "this", "API", "to", "fetch", "all", "the", "systementitydata", "resources", "that", "are", "configured", "on", "netscaler", ".", "This", "uses", "systementitydata_args", "which", "is", "a", "way", "to", "provide", "additional", "arguments", "while", "fetching", "the", "resources", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/system/systementitydata.java#L378-L384
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/stat/dos/dos_stats.java
dos_stats.get
public static dos_stats get(nitro_service service, options option) throws Exception{ dos_stats obj = new dos_stats(); dos_stats[] response = (dos_stats[])obj.stat_resources(service,option); return response[0]; }
java
public static dos_stats get(nitro_service service, options option) throws Exception{ dos_stats obj = new dos_stats(); dos_stats[] response = (dos_stats[])obj.stat_resources(service,option); return response[0]; }
[ "public", "static", "dos_stats", "get", "(", "nitro_service", "service", ",", "options", "option", ")", "throws", "Exception", "{", "dos_stats", "obj", "=", "new", "dos_stats", "(", ")", ";", "dos_stats", "[", "]", "response", "=", "(", "dos_stats", "[", "]", ")", "obj", ".", "stat_resources", "(", "service", ",", "option", ")", ";", "return", "response", "[", "0", "]", ";", "}" ]
Use this API to fetch the statistics of all dos_stats resources that are configured on netscaler.
[ "Use", "this", "API", "to", "fetch", "the", "statistics", "of", "all", "dos_stats", "resources", "that", "are", "configured", "on", "netscaler", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/stat/dos/dos_stats.java#L160-L164
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/network/linkset.java
linkset.add
public static base_response add(nitro_service client, linkset resource) throws Exception { linkset addresource = new linkset(); addresource.id = resource.id; return addresource.add_resource(client); }
java
public static base_response add(nitro_service client, linkset resource) throws Exception { linkset addresource = new linkset(); addresource.id = resource.id; return addresource.add_resource(client); }
[ "public", "static", "base_response", "add", "(", "nitro_service", "client", ",", "linkset", "resource", ")", "throws", "Exception", "{", "linkset", "addresource", "=", "new", "linkset", "(", ")", ";", "addresource", ".", "id", "=", "resource", ".", "id", ";", "return", "addresource", ".", "add_resource", "(", "client", ")", ";", "}" ]
Use this API to add linkset.
[ "Use", "this", "API", "to", "add", "linkset", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/network/linkset.java#L106-L110
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/network/linkset.java
linkset.delete
public static base_response delete(nitro_service client, String id) throws Exception { linkset deleteresource = new linkset(); deleteresource.id = id; return deleteresource.delete_resource(client); }
java
public static base_response delete(nitro_service client, String id) throws Exception { linkset deleteresource = new linkset(); deleteresource.id = id; return deleteresource.delete_resource(client); }
[ "public", "static", "base_response", "delete", "(", "nitro_service", "client", ",", "String", "id", ")", "throws", "Exception", "{", "linkset", "deleteresource", "=", "new", "linkset", "(", ")", ";", "deleteresource", ".", "id", "=", "id", ";", "return", "deleteresource", ".", "delete_resource", "(", "client", ")", ";", "}" ]
Use this API to delete linkset of given name.
[ "Use", "this", "API", "to", "delete", "linkset", "of", "given", "name", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/network/linkset.java#L131-L135
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/network/linkset.java
linkset.get
public static linkset[] get(nitro_service service) throws Exception{ linkset obj = new linkset(); linkset[] response = (linkset[])obj.get_resources(service); return response; }
java
public static linkset[] get(nitro_service service) throws Exception{ linkset obj = new linkset(); linkset[] response = (linkset[])obj.get_resources(service); return response; }
[ "public", "static", "linkset", "[", "]", "get", "(", "nitro_service", "service", ")", "throws", "Exception", "{", "linkset", "obj", "=", "new", "linkset", "(", ")", ";", "linkset", "[", "]", "response", "=", "(", "linkset", "[", "]", ")", "obj", ".", "get_resources", "(", "service", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch all the linkset resources that are configured on netscaler.
[ "Use", "this", "API", "to", "fetch", "all", "the", "linkset", "resources", "that", "are", "configured", "on", "netscaler", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/network/linkset.java#L181-L185
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/network/linkset.java
linkset.get
public static linkset get(nitro_service service, String id) throws Exception{ linkset obj = new linkset(); obj.set_id(id); linkset response = (linkset) obj.get_resource(service); return response; }
java
public static linkset get(nitro_service service, String id) throws Exception{ linkset obj = new linkset(); obj.set_id(id); linkset response = (linkset) obj.get_resource(service); return response; }
[ "public", "static", "linkset", "get", "(", "nitro_service", "service", ",", "String", "id", ")", "throws", "Exception", "{", "linkset", "obj", "=", "new", "linkset", "(", ")", ";", "obj", ".", "set_id", "(", "id", ")", ";", "linkset", "response", "=", "(", "linkset", ")", "obj", ".", "get_resource", "(", "service", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch linkset resource of given name .
[ "Use", "this", "API", "to", "fetch", "linkset", "resource", "of", "given", "name", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/network/linkset.java#L197-L202
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsrollbackcmd.java
nsrollbackcmd.get
public static nsrollbackcmd get(nitro_service service) throws Exception{ nsrollbackcmd obj = new nsrollbackcmd(); nsrollbackcmd[] response = (nsrollbackcmd[])obj.get_resources(service); return response[0]; }
java
public static nsrollbackcmd get(nitro_service service) throws Exception{ nsrollbackcmd obj = new nsrollbackcmd(); nsrollbackcmd[] response = (nsrollbackcmd[])obj.get_resources(service); return response[0]; }
[ "public", "static", "nsrollbackcmd", "get", "(", "nitro_service", "service", ")", "throws", "Exception", "{", "nsrollbackcmd", "obj", "=", "new", "nsrollbackcmd", "(", ")", ";", "nsrollbackcmd", "[", "]", "response", "=", "(", "nsrollbackcmd", "[", "]", ")", "obj", ".", "get_resources", "(", "service", ")", ";", "return", "response", "[", "0", "]", ";", "}" ]
Use this API to fetch all the nsrollbackcmd resources that are configured on netscaler.
[ "Use", "this", "API", "to", "fetch", "all", "the", "nsrollbackcmd", "resources", "that", "are", "configured", "on", "netscaler", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsrollbackcmd.java#L113-L117
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsrollbackcmd.java
nsrollbackcmd.get
public static nsrollbackcmd[] get(nitro_service service, nsrollbackcmd_args args) throws Exception{ nsrollbackcmd obj = new nsrollbackcmd(); options option = new options(); option.set_args(nitro_util.object_to_string_withoutquotes(args)); nsrollbackcmd[] response = (nsrollbackcmd[])obj.get_resources(service, option); return response; }
java
public static nsrollbackcmd[] get(nitro_service service, nsrollbackcmd_args args) throws Exception{ nsrollbackcmd obj = new nsrollbackcmd(); options option = new options(); option.set_args(nitro_util.object_to_string_withoutquotes(args)); nsrollbackcmd[] response = (nsrollbackcmd[])obj.get_resources(service, option); return response; }
[ "public", "static", "nsrollbackcmd", "[", "]", "get", "(", "nitro_service", "service", ",", "nsrollbackcmd_args", "args", ")", "throws", "Exception", "{", "nsrollbackcmd", "obj", "=", "new", "nsrollbackcmd", "(", ")", ";", "options", "option", "=", "new", "options", "(", ")", ";", "option", ".", "set_args", "(", "nitro_util", ".", "object_to_string_withoutquotes", "(", "args", ")", ")", ";", "nsrollbackcmd", "[", "]", "response", "=", "(", "nsrollbackcmd", "[", "]", ")", "obj", ".", "get_resources", "(", "service", ",", "option", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch all the nsrollbackcmd resources that are configured on netscaler. This uses nsrollbackcmd_args which is a way to provide additional arguments while fetching the resources.
[ "Use", "this", "API", "to", "fetch", "all", "the", "nsrollbackcmd", "resources", "that", "are", "configured", "on", "netscaler", ".", "This", "uses", "nsrollbackcmd_args", "which", "is", "a", "way", "to", "provide", "additional", "arguments", "while", "fetching", "the", "resources", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nsrollbackcmd.java#L132-L138
train
meertensinstituut/mtas
src/main/java/mtas/solr/handler/component/util/MtasSolrComponentKwic.java
MtasSolrComponentKwic.getPositiveInteger
private int getPositiveInteger(String number) { try { return Math.max(0, Integer.parseInt(number)); } catch (NumberFormatException e) { return 0; } }
java
private int getPositiveInteger(String number) { try { return Math.max(0, Integer.parseInt(number)); } catch (NumberFormatException e) { return 0; } }
[ "private", "int", "getPositiveInteger", "(", "String", "number", ")", "{", "try", "{", "return", "Math", ".", "max", "(", "0", ",", "Integer", ".", "parseInt", "(", "number", ")", ")", ";", "}", "catch", "(", "NumberFormatException", "e", ")", "{", "return", "0", ";", "}", "}" ]
Gets the positive integer. @param number the number @return the positive integer
[ "Gets", "the", "positive", "integer", "." ]
f02ae730848616bd88b553efa7f9eddc32818e64
https://github.com/meertensinstituut/mtas/blob/f02ae730848616bd88b553efa7f9eddc32818e64/src/main/java/mtas/solr/handler/component/util/MtasSolrComponentKwic.java#L103-L109
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/cache/cachepolicylabel_binding.java
cachepolicylabel_binding.get
public static cachepolicylabel_binding get(nitro_service service, String labelname) throws Exception{ cachepolicylabel_binding obj = new cachepolicylabel_binding(); obj.set_labelname(labelname); cachepolicylabel_binding response = (cachepolicylabel_binding) obj.get_resource(service); return response; }
java
public static cachepolicylabel_binding get(nitro_service service, String labelname) throws Exception{ cachepolicylabel_binding obj = new cachepolicylabel_binding(); obj.set_labelname(labelname); cachepolicylabel_binding response = (cachepolicylabel_binding) obj.get_resource(service); return response; }
[ "public", "static", "cachepolicylabel_binding", "get", "(", "nitro_service", "service", ",", "String", "labelname", ")", "throws", "Exception", "{", "cachepolicylabel_binding", "obj", "=", "new", "cachepolicylabel_binding", "(", ")", ";", "obj", ".", "set_labelname", "(", "labelname", ")", ";", "cachepolicylabel_binding", "response", "=", "(", "cachepolicylabel_binding", ")", "obj", ".", "get_resource", "(", "service", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch cachepolicylabel_binding resource of given name .
[ "Use", "this", "API", "to", "fetch", "cachepolicylabel_binding", "resource", "of", "given", "name", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/cache/cachepolicylabel_binding.java#L114-L119
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/ssl/sslvserver_sslciphersuite_binding.java
sslvserver_sslciphersuite_binding.get
public static sslvserver_sslciphersuite_binding[] get(nitro_service service, String vservername) throws Exception{ sslvserver_sslciphersuite_binding obj = new sslvserver_sslciphersuite_binding(); obj.set_vservername(vservername); sslvserver_sslciphersuite_binding response[] = (sslvserver_sslciphersuite_binding[]) obj.get_resources(service); return response; }
java
public static sslvserver_sslciphersuite_binding[] get(nitro_service service, String vservername) throws Exception{ sslvserver_sslciphersuite_binding obj = new sslvserver_sslciphersuite_binding(); obj.set_vservername(vservername); sslvserver_sslciphersuite_binding response[] = (sslvserver_sslciphersuite_binding[]) obj.get_resources(service); return response; }
[ "public", "static", "sslvserver_sslciphersuite_binding", "[", "]", "get", "(", "nitro_service", "service", ",", "String", "vservername", ")", "throws", "Exception", "{", "sslvserver_sslciphersuite_binding", "obj", "=", "new", "sslvserver_sslciphersuite_binding", "(", ")", ";", "obj", ".", "set_vservername", "(", "vservername", ")", ";", "sslvserver_sslciphersuite_binding", "response", "[", "]", "=", "(", "sslvserver_sslciphersuite_binding", "[", "]", ")", "obj", ".", "get_resources", "(", "service", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch sslvserver_sslciphersuite_binding resources of given name .
[ "Use", "this", "API", "to", "fetch", "sslvserver_sslciphersuite_binding", "resources", "of", "given", "name", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ssl/sslvserver_sslciphersuite_binding.java#L173-L178
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/ssl/sslvserver_sslciphersuite_binding.java
sslvserver_sslciphersuite_binding.count
public static long count(nitro_service service, String vservername) throws Exception{ sslvserver_sslciphersuite_binding obj = new sslvserver_sslciphersuite_binding(); obj.set_vservername(vservername); options option = new options(); option.set_count(true); sslvserver_sslciphersuite_binding response[] = (sslvserver_sslciphersuite_binding[]) obj.get_resources(service,option); if (response != null) { return response[0].__count; } return 0; }
java
public static long count(nitro_service service, String vservername) throws Exception{ sslvserver_sslciphersuite_binding obj = new sslvserver_sslciphersuite_binding(); obj.set_vservername(vservername); options option = new options(); option.set_count(true); sslvserver_sslciphersuite_binding response[] = (sslvserver_sslciphersuite_binding[]) obj.get_resources(service,option); if (response != null) { return response[0].__count; } return 0; }
[ "public", "static", "long", "count", "(", "nitro_service", "service", ",", "String", "vservername", ")", "throws", "Exception", "{", "sslvserver_sslciphersuite_binding", "obj", "=", "new", "sslvserver_sslciphersuite_binding", "(", ")", ";", "obj", ".", "set_vservername", "(", "vservername", ")", ";", "options", "option", "=", "new", "options", "(", ")", ";", "option", ".", "set_count", "(", "true", ")", ";", "sslvserver_sslciphersuite_binding", "response", "[", "]", "=", "(", "sslvserver_sslciphersuite_binding", "[", "]", ")", "obj", ".", "get_resources", "(", "service", ",", "option", ")", ";", "if", "(", "response", "!=", "null", ")", "{", "return", "response", "[", "0", "]", ".", "__count", ";", "}", "return", "0", ";", "}" ]
Use this API to count sslvserver_sslciphersuite_binding resources configued on NetScaler.
[ "Use", "this", "API", "to", "count", "sslvserver_sslciphersuite_binding", "resources", "configued", "on", "NetScaler", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ssl/sslvserver_sslciphersuite_binding.java#L209-L219
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nssimpleacl.java
nssimpleacl.add
public static base_response add(nitro_service client, nssimpleacl resource) throws Exception { nssimpleacl addresource = new nssimpleacl(); addresource.aclname = resource.aclname; addresource.aclaction = resource.aclaction; addresource.td = resource.td; addresource.srcip = resource.srcip; addresource.destport = resource.destport; addresource.protocol = resource.protocol; addresource.ttl = resource.ttl; return addresource.add_resource(client); }
java
public static base_response add(nitro_service client, nssimpleacl resource) throws Exception { nssimpleacl addresource = new nssimpleacl(); addresource.aclname = resource.aclname; addresource.aclaction = resource.aclaction; addresource.td = resource.td; addresource.srcip = resource.srcip; addresource.destport = resource.destport; addresource.protocol = resource.protocol; addresource.ttl = resource.ttl; return addresource.add_resource(client); }
[ "public", "static", "base_response", "add", "(", "nitro_service", "client", ",", "nssimpleacl", "resource", ")", "throws", "Exception", "{", "nssimpleacl", "addresource", "=", "new", "nssimpleacl", "(", ")", ";", "addresource", ".", "aclname", "=", "resource", ".", "aclname", ";", "addresource", ".", "aclaction", "=", "resource", ".", "aclaction", ";", "addresource", ".", "td", "=", "resource", ".", "td", ";", "addresource", ".", "srcip", "=", "resource", ".", "srcip", ";", "addresource", ".", "destport", "=", "resource", ".", "destport", ";", "addresource", ".", "protocol", "=", "resource", ".", "protocol", ";", "addresource", ".", "ttl", "=", "resource", ".", "ttl", ";", "return", "addresource", ".", "add_resource", "(", "client", ")", ";", "}" ]
Use this API to add nssimpleacl.
[ "Use", "this", "API", "to", "add", "nssimpleacl", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nssimpleacl.java#L281-L291
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nssimpleacl.java
nssimpleacl.clear
public static base_response clear(nitro_service client) throws Exception { nssimpleacl clearresource = new nssimpleacl(); return clearresource.perform_operation(client,"clear"); }
java
public static base_response clear(nitro_service client) throws Exception { nssimpleacl clearresource = new nssimpleacl(); return clearresource.perform_operation(client,"clear"); }
[ "public", "static", "base_response", "clear", "(", "nitro_service", "client", ")", "throws", "Exception", "{", "nssimpleacl", "clearresource", "=", "new", "nssimpleacl", "(", ")", ";", "return", "clearresource", ".", "perform_operation", "(", "client", ",", "\"clear\"", ")", ";", "}" ]
Use this API to clear nssimpleacl.
[ "Use", "this", "API", "to", "clear", "nssimpleacl", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nssimpleacl.java#L318-L321
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nssimpleacl.java
nssimpleacl.delete
public static base_response delete(nitro_service client, nssimpleacl resource) throws Exception { nssimpleacl deleteresource = new nssimpleacl(); deleteresource.aclname = resource.aclname; return deleteresource.delete_resource(client); }
java
public static base_response delete(nitro_service client, nssimpleacl resource) throws Exception { nssimpleacl deleteresource = new nssimpleacl(); deleteresource.aclname = resource.aclname; return deleteresource.delete_resource(client); }
[ "public", "static", "base_response", "delete", "(", "nitro_service", "client", ",", "nssimpleacl", "resource", ")", "throws", "Exception", "{", "nssimpleacl", "deleteresource", "=", "new", "nssimpleacl", "(", ")", ";", "deleteresource", ".", "aclname", "=", "resource", ".", "aclname", ";", "return", "deleteresource", ".", "delete_resource", "(", "client", ")", ";", "}" ]
Use this API to delete nssimpleacl.
[ "Use", "this", "API", "to", "delete", "nssimpleacl", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nssimpleacl.java#L350-L354
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nssimpleacl.java
nssimpleacl.flush
public static base_response flush(nitro_service client, nssimpleacl resource) throws Exception { nssimpleacl flushresource = new nssimpleacl(); flushresource.estsessions = resource.estsessions; return flushresource.perform_operation(client,"flush"); }
java
public static base_response flush(nitro_service client, nssimpleacl resource) throws Exception { nssimpleacl flushresource = new nssimpleacl(); flushresource.estsessions = resource.estsessions; return flushresource.perform_operation(client,"flush"); }
[ "public", "static", "base_response", "flush", "(", "nitro_service", "client", ",", "nssimpleacl", "resource", ")", "throws", "Exception", "{", "nssimpleacl", "flushresource", "=", "new", "nssimpleacl", "(", ")", ";", "flushresource", ".", "estsessions", "=", "resource", ".", "estsessions", ";", "return", "flushresource", ".", "perform_operation", "(", "client", ",", "\"flush\"", ")", ";", "}" ]
Use this API to flush nssimpleacl.
[ "Use", "this", "API", "to", "flush", "nssimpleacl", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nssimpleacl.java#L391-L395
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nssimpleacl.java
nssimpleacl.get
public static nssimpleacl[] get(nitro_service service) throws Exception{ nssimpleacl obj = new nssimpleacl(); nssimpleacl[] response = (nssimpleacl[])obj.get_resources(service); return response; }
java
public static nssimpleacl[] get(nitro_service service) throws Exception{ nssimpleacl obj = new nssimpleacl(); nssimpleacl[] response = (nssimpleacl[])obj.get_resources(service); return response; }
[ "public", "static", "nssimpleacl", "[", "]", "get", "(", "nitro_service", "service", ")", "throws", "Exception", "{", "nssimpleacl", "obj", "=", "new", "nssimpleacl", "(", ")", ";", "nssimpleacl", "[", "]", "response", "=", "(", "nssimpleacl", "[", "]", ")", "obj", ".", "get_resources", "(", "service", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch all the nssimpleacl resources that are configured on netscaler.
[ "Use", "this", "API", "to", "fetch", "all", "the", "nssimpleacl", "resources", "that", "are", "configured", "on", "netscaler", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nssimpleacl.java#L416-L420
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nssimpleacl.java
nssimpleacl.get
public static nssimpleacl get(nitro_service service, String aclname) throws Exception{ nssimpleacl obj = new nssimpleacl(); obj.set_aclname(aclname); nssimpleacl response = (nssimpleacl) obj.get_resource(service); return response; }
java
public static nssimpleacl get(nitro_service service, String aclname) throws Exception{ nssimpleacl obj = new nssimpleacl(); obj.set_aclname(aclname); nssimpleacl response = (nssimpleacl) obj.get_resource(service); return response; }
[ "public", "static", "nssimpleacl", "get", "(", "nitro_service", "service", ",", "String", "aclname", ")", "throws", "Exception", "{", "nssimpleacl", "obj", "=", "new", "nssimpleacl", "(", ")", ";", "obj", ".", "set_aclname", "(", "aclname", ")", ";", "nssimpleacl", "response", "=", "(", "nssimpleacl", ")", "obj", ".", "get_resource", "(", "service", ")", ";", "return", "response", ";", "}" ]
Use this API to fetch nssimpleacl resource of given name .
[ "Use", "this", "API", "to", "fetch", "nssimpleacl", "resource", "of", "given", "name", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nssimpleacl.java#L432-L437
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nssimpleacl.java
nssimpleacl.get
public static nssimpleacl[] get(nitro_service service, String aclname[]) throws Exception{ if (aclname !=null && aclname.length>0) { nssimpleacl response[] = new nssimpleacl[aclname.length]; nssimpleacl obj[] = new nssimpleacl[aclname.length]; for (int i=0;i<aclname.length;i++) { obj[i] = new nssimpleacl(); obj[i].set_aclname(aclname[i]); response[i] = (nssimpleacl) obj[i].get_resource(service); } return response; } return null; }
java
public static nssimpleacl[] get(nitro_service service, String aclname[]) throws Exception{ if (aclname !=null && aclname.length>0) { nssimpleacl response[] = new nssimpleacl[aclname.length]; nssimpleacl obj[] = new nssimpleacl[aclname.length]; for (int i=0;i<aclname.length;i++) { obj[i] = new nssimpleacl(); obj[i].set_aclname(aclname[i]); response[i] = (nssimpleacl) obj[i].get_resource(service); } return response; } return null; }
[ "public", "static", "nssimpleacl", "[", "]", "get", "(", "nitro_service", "service", ",", "String", "aclname", "[", "]", ")", "throws", "Exception", "{", "if", "(", "aclname", "!=", "null", "&&", "aclname", ".", "length", ">", "0", ")", "{", "nssimpleacl", "response", "[", "]", "=", "new", "nssimpleacl", "[", "aclname", ".", "length", "]", ";", "nssimpleacl", "obj", "[", "]", "=", "new", "nssimpleacl", "[", "aclname", ".", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "aclname", ".", "length", ";", "i", "++", ")", "{", "obj", "[", "i", "]", "=", "new", "nssimpleacl", "(", ")", ";", "obj", "[", "i", "]", ".", "set_aclname", "(", "aclname", "[", "i", "]", ")", ";", "response", "[", "i", "]", "=", "(", "nssimpleacl", ")", "obj", "[", "i", "]", ".", "get_resource", "(", "service", ")", ";", "}", "return", "response", ";", "}", "return", "null", ";", "}" ]
Use this API to fetch nssimpleacl resources of given names .
[ "Use", "this", "API", "to", "fetch", "nssimpleacl", "resources", "of", "given", "names", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nssimpleacl.java#L442-L454
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nstimeout.java
nstimeout.update
public static base_response update(nitro_service client, nstimeout resource) throws Exception { nstimeout updateresource = new nstimeout(); updateresource.zombie = resource.zombie; updateresource.client = resource.client; updateresource.server = resource.server; updateresource.httpclient = resource.httpclient; updateresource.httpserver = resource.httpserver; updateresource.tcpclient = resource.tcpclient; updateresource.tcpserver = resource.tcpserver; updateresource.anyclient = resource.anyclient; updateresource.anyserver = resource.anyserver; updateresource.halfclose = resource.halfclose; updateresource.nontcpzombie = resource.nontcpzombie; updateresource.reducedfintimeout = resource.reducedfintimeout; updateresource.newconnidletimeout = resource.newconnidletimeout; return updateresource.update_resource(client); }
java
public static base_response update(nitro_service client, nstimeout resource) throws Exception { nstimeout updateresource = new nstimeout(); updateresource.zombie = resource.zombie; updateresource.client = resource.client; updateresource.server = resource.server; updateresource.httpclient = resource.httpclient; updateresource.httpserver = resource.httpserver; updateresource.tcpclient = resource.tcpclient; updateresource.tcpserver = resource.tcpserver; updateresource.anyclient = resource.anyclient; updateresource.anyserver = resource.anyserver; updateresource.halfclose = resource.halfclose; updateresource.nontcpzombie = resource.nontcpzombie; updateresource.reducedfintimeout = resource.reducedfintimeout; updateresource.newconnidletimeout = resource.newconnidletimeout; return updateresource.update_resource(client); }
[ "public", "static", "base_response", "update", "(", "nitro_service", "client", ",", "nstimeout", "resource", ")", "throws", "Exception", "{", "nstimeout", "updateresource", "=", "new", "nstimeout", "(", ")", ";", "updateresource", ".", "zombie", "=", "resource", ".", "zombie", ";", "updateresource", ".", "client", "=", "resource", ".", "client", ";", "updateresource", ".", "server", "=", "resource", ".", "server", ";", "updateresource", ".", "httpclient", "=", "resource", ".", "httpclient", ";", "updateresource", ".", "httpserver", "=", "resource", ".", "httpserver", ";", "updateresource", ".", "tcpclient", "=", "resource", ".", "tcpclient", ";", "updateresource", ".", "tcpserver", "=", "resource", ".", "tcpserver", ";", "updateresource", ".", "anyclient", "=", "resource", ".", "anyclient", ";", "updateresource", ".", "anyserver", "=", "resource", ".", "anyserver", ";", "updateresource", ".", "halfclose", "=", "resource", ".", "halfclose", ";", "updateresource", ".", "nontcpzombie", "=", "resource", ".", "nontcpzombie", ";", "updateresource", ".", "reducedfintimeout", "=", "resource", ".", "reducedfintimeout", ";", "updateresource", ".", "newconnidletimeout", "=", "resource", ".", "newconnidletimeout", ";", "return", "updateresource", ".", "update_resource", "(", "client", ")", ";", "}" ]
Use this API to update nstimeout.
[ "Use", "this", "API", "to", "update", "nstimeout", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nstimeout.java#L439-L455
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nstimeout.java
nstimeout.unset
public static base_response unset(nitro_service client, nstimeout resource, String[] args) throws Exception{ nstimeout unsetresource = new nstimeout(); return unsetresource.unset_resource(client,args); }
java
public static base_response unset(nitro_service client, nstimeout resource, String[] args) throws Exception{ nstimeout unsetresource = new nstimeout(); return unsetresource.unset_resource(client,args); }
[ "public", "static", "base_response", "unset", "(", "nitro_service", "client", ",", "nstimeout", "resource", ",", "String", "[", "]", "args", ")", "throws", "Exception", "{", "nstimeout", "unsetresource", "=", "new", "nstimeout", "(", ")", ";", "return", "unsetresource", ".", "unset_resource", "(", "client", ",", "args", ")", ";", "}" ]
Use this API to unset the properties of nstimeout resource. Properties that need to be unset are specified in args array.
[ "Use", "this", "API", "to", "unset", "the", "properties", "of", "nstimeout", "resource", ".", "Properties", "that", "need", "to", "be", "unset", "are", "specified", "in", "args", "array", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nstimeout.java#L461-L464
train
netscaler/nitro
src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nstimeout.java
nstimeout.get
public static nstimeout get(nitro_service service) throws Exception{ nstimeout obj = new nstimeout(); nstimeout[] response = (nstimeout[])obj.get_resources(service); return response[0]; }
java
public static nstimeout get(nitro_service service) throws Exception{ nstimeout obj = new nstimeout(); nstimeout[] response = (nstimeout[])obj.get_resources(service); return response[0]; }
[ "public", "static", "nstimeout", "get", "(", "nitro_service", "service", ")", "throws", "Exception", "{", "nstimeout", "obj", "=", "new", "nstimeout", "(", ")", ";", "nstimeout", "[", "]", "response", "=", "(", "nstimeout", "[", "]", ")", "obj", ".", "get_resources", "(", "service", ")", ";", "return", "response", "[", "0", "]", ";", "}" ]
Use this API to fetch all the nstimeout resources that are configured on netscaler.
[ "Use", "this", "API", "to", "fetch", "all", "the", "nstimeout", "resources", "that", "are", "configured", "on", "netscaler", "." ]
2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4
https://github.com/netscaler/nitro/blob/2a98692dcf4e4ec430c7d7baab8382e4ba5a35e4/src/main/java/com/citrix/netscaler/nitro/resource/config/ns/nstimeout.java#L469-L473
train
PeterisP/LVTagger
src/main/java/edu/stanford/nlp/ie/ListNERSequenceClassifier.java
ListNERSequenceClassifier.readEntries
private Map<String, Entry> readEntries(String mapping, boolean ignoreCase) { Map<String, Entry> entries = new HashMap<>(); try { // ms, 2010-10-05: try to load the file from the CLASSPATH first InputStream is = getClass().getClassLoader().getResourceAsStream(mapping); // if not found in the CLASSPATH, load from the file system if (is == null) is = new FileInputStream(mapping); BufferedReader rd = new BufferedReader(new InputStreamReader(is)); int lineCount = 0; for (String line; (line = rd.readLine()) != null; ) { lineCount ++; String[] split = line.split("\t"); if (split.length < 2 || split.length > 4) throw new RuntimeException("Provided mapping file is in wrong format"); if (split[1].trim().equalsIgnoreCase("AS")) System.err.println("ERRRR " + mapping + "|" + line + " at " + lineCount); String stringLine = split[1].trim(); if (ignoreCase) stringLine = stringLine.toLowerCase(); String[] words = stringLine.split("\\s+"); String type = split[0].trim(); Set<String> overwritableTypes = new HashSet<String>(); overwritableTypes.add(flags.backgroundSymbol); overwritableTypes.add(null); double priority = 0; List<String> tokens = new ArrayList<String>(); try { if (split.length >= 3) overwritableTypes.addAll(Arrays.asList(split[2].trim().split(","))); if (split.length == 4) priority = Double.parseDouble(split[3].trim()); for (String str : words) { tokens.add(str); } } catch(NumberFormatException e) { System.err.println("ERROR: Invalid line " + lineCount + " in regexner file " + mapping + ": \"" + line + "\"!"); throw e; } addEntry(words, type, priority, overwritableTypes); } rd.close(); is.close(); } catch (IOException e) { e.printStackTrace(); } return entries; }
java
private Map<String, Entry> readEntries(String mapping, boolean ignoreCase) { Map<String, Entry> entries = new HashMap<>(); try { // ms, 2010-10-05: try to load the file from the CLASSPATH first InputStream is = getClass().getClassLoader().getResourceAsStream(mapping); // if not found in the CLASSPATH, load from the file system if (is == null) is = new FileInputStream(mapping); BufferedReader rd = new BufferedReader(new InputStreamReader(is)); int lineCount = 0; for (String line; (line = rd.readLine()) != null; ) { lineCount ++; String[] split = line.split("\t"); if (split.length < 2 || split.length > 4) throw new RuntimeException("Provided mapping file is in wrong format"); if (split[1].trim().equalsIgnoreCase("AS")) System.err.println("ERRRR " + mapping + "|" + line + " at " + lineCount); String stringLine = split[1].trim(); if (ignoreCase) stringLine = stringLine.toLowerCase(); String[] words = stringLine.split("\\s+"); String type = split[0].trim(); Set<String> overwritableTypes = new HashSet<String>(); overwritableTypes.add(flags.backgroundSymbol); overwritableTypes.add(null); double priority = 0; List<String> tokens = new ArrayList<String>(); try { if (split.length >= 3) overwritableTypes.addAll(Arrays.asList(split[2].trim().split(","))); if (split.length == 4) priority = Double.parseDouble(split[3].trim()); for (String str : words) { tokens.add(str); } } catch(NumberFormatException e) { System.err.println("ERROR: Invalid line " + lineCount + " in regexner file " + mapping + ": \"" + line + "\"!"); throw e; } addEntry(words, type, priority, overwritableTypes); } rd.close(); is.close(); } catch (IOException e) { e.printStackTrace(); } return entries; }
[ "private", "Map", "<", "String", ",", "Entry", ">", "readEntries", "(", "String", "mapping", ",", "boolean", "ignoreCase", ")", "{", "Map", "<", "String", ",", "Entry", ">", "entries", "=", "new", "HashMap", "<>", "(", ")", ";", "try", "{", "// ms, 2010-10-05: try to load the file from the CLASSPATH first", "InputStream", "is", "=", "getClass", "(", ")", ".", "getClassLoader", "(", ")", ".", "getResourceAsStream", "(", "mapping", ")", ";", "// if not found in the CLASSPATH, load from the file system", "if", "(", "is", "==", "null", ")", "is", "=", "new", "FileInputStream", "(", "mapping", ")", ";", "BufferedReader", "rd", "=", "new", "BufferedReader", "(", "new", "InputStreamReader", "(", "is", ")", ")", ";", "int", "lineCount", "=", "0", ";", "for", "(", "String", "line", ";", "(", "line", "=", "rd", ".", "readLine", "(", ")", ")", "!=", "null", ";", ")", "{", "lineCount", "++", ";", "String", "[", "]", "split", "=", "line", ".", "split", "(", "\"\\t\"", ")", ";", "if", "(", "split", ".", "length", "<", "2", "||", "split", ".", "length", ">", "4", ")", "throw", "new", "RuntimeException", "(", "\"Provided mapping file is in wrong format\"", ")", ";", "if", "(", "split", "[", "1", "]", ".", "trim", "(", ")", ".", "equalsIgnoreCase", "(", "\"AS\"", ")", ")", "System", ".", "err", ".", "println", "(", "\"ERRRR \"", "+", "mapping", "+", "\"|\"", "+", "line", "+", "\" at \"", "+", "lineCount", ")", ";", "String", "stringLine", "=", "split", "[", "1", "]", ".", "trim", "(", ")", ";", "if", "(", "ignoreCase", ")", "stringLine", "=", "stringLine", ".", "toLowerCase", "(", ")", ";", "String", "[", "]", "words", "=", "stringLine", ".", "split", "(", "\"\\\\s+\"", ")", ";", "String", "type", "=", "split", "[", "0", "]", ".", "trim", "(", ")", ";", "Set", "<", "String", ">", "overwritableTypes", "=", "new", "HashSet", "<", "String", ">", "(", ")", ";", "overwritableTypes", ".", "add", "(", "flags", ".", "backgroundSymbol", ")", ";", "overwritableTypes", ".", "add", "(", "null", ")", ";", "double", "priority", "=", "0", ";", "List", "<", "String", ">", "tokens", "=", "new", "ArrayList", "<", "String", ">", "(", ")", ";", "try", "{", "if", "(", "split", ".", "length", ">=", "3", ")", "overwritableTypes", ".", "addAll", "(", "Arrays", ".", "asList", "(", "split", "[", "2", "]", ".", "trim", "(", ")", ".", "split", "(", "\",\"", ")", ")", ")", ";", "if", "(", "split", ".", "length", "==", "4", ")", "priority", "=", "Double", ".", "parseDouble", "(", "split", "[", "3", "]", ".", "trim", "(", ")", ")", ";", "for", "(", "String", "str", ":", "words", ")", "{", "tokens", ".", "add", "(", "str", ")", ";", "}", "}", "catch", "(", "NumberFormatException", "e", ")", "{", "System", ".", "err", ".", "println", "(", "\"ERROR: Invalid line \"", "+", "lineCount", "+", "\" in regexner file \"", "+", "mapping", "+", "\": \\\"\"", "+", "line", "+", "\"\\\"!\"", ")", ";", "throw", "e", ";", "}", "addEntry", "(", "words", ",", "type", ",", "priority", ",", "overwritableTypes", ")", ";", "}", "rd", ".", "close", "(", ")", ";", "is", ".", "close", "(", ")", ";", "}", "catch", "(", "IOException", "e", ")", "{", "e", ".", "printStackTrace", "(", ")", ";", "}", "return", "entries", ";", "}" ]
Creates a combined list of Entries using the provided mapping file, and sorts them by first by priority, then the number of tokens in the regex. @param mapping The path to a file of mappings @return a sorted list of Entries
[ "Creates", "a", "combined", "list", "of", "Entries", "using", "the", "provided", "mapping", "file", "and", "sorts", "them", "by", "first", "by", "priority", "then", "the", "number", "of", "tokens", "in", "the", "regex", "." ]
b3d44bab9ec07ace0d13612c448a6b7298c1f681
https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/ie/ListNERSequenceClassifier.java#L220-L268
train
PeterisP/LVTagger
src/main/java/edu/stanford/nlp/util/HashableCoreMap.java
HashableCoreMap.set
@Override public <VALUEBASE, VALUE extends VALUEBASE, KEY extends Key<CoreMap, VALUEBASE>> VALUE set(Class<KEY> key, VALUE value) { if (immutableKeys.contains(key)) { throw new HashableCoreMapException("Attempt to change value " + "of immutable field "+key.getSimpleName()); } return super.set(key, value); }
java
@Override public <VALUEBASE, VALUE extends VALUEBASE, KEY extends Key<CoreMap, VALUEBASE>> VALUE set(Class<KEY> key, VALUE value) { if (immutableKeys.contains(key)) { throw new HashableCoreMapException("Attempt to change value " + "of immutable field "+key.getSimpleName()); } return super.set(key, value); }
[ "@", "Override", "public", "<", "VALUEBASE", ",", "VALUE", "extends", "VALUEBASE", ",", "KEY", "extends", "Key", "<", "CoreMap", ",", "VALUEBASE", ">", ">", "VALUE", "set", "(", "Class", "<", "KEY", ">", "key", ",", "VALUE", "value", ")", "{", "if", "(", "immutableKeys", ".", "contains", "(", "key", ")", ")", "{", "throw", "new", "HashableCoreMapException", "(", "\"Attempt to change value \"", "+", "\"of immutable field \"", "+", "key", ".", "getSimpleName", "(", ")", ")", ";", "}", "return", "super", ".", "set", "(", "key", ",", "value", ")", ";", "}" ]
Sets the value associated with the given key; if the the key is one of the hashable keys, throws an exception. @throws HashableCoreMapException Attempting to set the value for an immutable, hashable key.
[ "Sets", "the", "value", "associated", "with", "the", "given", "key", ";", "if", "the", "the", "key", "is", "one", "of", "the", "hashable", "keys", "throws", "an", "exception", "." ]
b3d44bab9ec07ace0d13612c448a6b7298c1f681
https://github.com/PeterisP/LVTagger/blob/b3d44bab9ec07ace0d13612c448a6b7298c1f681/src/main/java/edu/stanford/nlp/util/HashableCoreMap.java#L73-L83
train