idx
int64
0
165k
question
stringlengths
73
5.81k
target
stringlengths
5
918
1,900
public static base_responses add ( nitro_service client , dnsaaaarec resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { dnsaaaarec addresources [ ] = new dnsaaaarec [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { addresourc...
Use this API to add dnsaaaarec resources .
1,901
public static base_response delete ( nitro_service client , dnsaaaarec resource ) throws Exception { dnsaaaarec deleteresource = new dnsaaaarec ( ) ; deleteresource . hostname = resource . hostname ; deleteresource . ipv6address = resource . ipv6address ; return deleteresource . delete_resource ( client ) ; }
Use this API to delete dnsaaaarec .
1,902
public static base_responses delete ( nitro_service client , String hostname [ ] ) throws Exception { base_responses result = null ; if ( hostname != null && hostname . length > 0 ) { dnsaaaarec deleteresources [ ] = new dnsaaaarec [ hostname . length ] ; for ( int i = 0 ; i < hostname . length ; i ++ ) { deleteresourc...
Use this API to delete dnsaaaarec resources of given names .
1,903
public static base_responses delete ( nitro_service client , dnsaaaarec resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { dnsaaaarec deleteresources [ ] = new dnsaaaarec [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { dele...
Use this API to delete dnsaaaarec resources .
1,904
public static dnsaaaarec [ ] get ( nitro_service service ) throws Exception { dnsaaaarec obj = new dnsaaaarec ( ) ; dnsaaaarec [ ] response = ( dnsaaaarec [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch all the dnsaaaarec resources that are configured on netscaler .
1,905
public static dnsaaaarec [ ] get ( nitro_service service , dnsaaaarec_args args ) throws Exception { dnsaaaarec obj = new dnsaaaarec ( ) ; options option = new options ( ) ; option . set_args ( nitro_util . object_to_string_withoutquotes ( args ) ) ; dnsaaaarec [ ] response = ( dnsaaaarec [ ] ) obj . get_resources ( se...
Use this API to fetch all the dnsaaaarec resources that are configured on netscaler . This uses dnsaaaarec_args which is a way to provide additional arguments while fetching the resources .
1,906
private String addIndexInputToList ( String name , IndexInput in , String postingsFormatName ) throws IOException { if ( indexInputList . get ( name ) != null ) { indexInputList . get ( name ) . close ( ) ; } if ( in != null ) { String localPostingsFormatName = postingsFormatName ; if ( localPostingsFormatName == null ...
Adds the index input to list .
1,907
public static appfwprofile_cookieconsistency_binding [ ] get ( nitro_service service , String name ) throws Exception { appfwprofile_cookieconsistency_binding obj = new appfwprofile_cookieconsistency_binding ( ) ; obj . set_name ( name ) ; appfwprofile_cookieconsistency_binding response [ ] = ( appfwprofile_cookieconsi...
Use this API to fetch appfwprofile_cookieconsistency_binding resources of given name .
1,908
public static rnatip_stats [ ] get ( nitro_service service , options option ) throws Exception { rnatip_stats obj = new rnatip_stats ( ) ; rnatip_stats [ ] response = ( rnatip_stats [ ] ) obj . stat_resources ( service , option ) ; return response ; }
Use this API to fetch the statistics of all rnatip_stats resources that are configured on netscaler .
1,909
public static rnatip_stats get ( nitro_service service , String Rnatip ) throws Exception { rnatip_stats obj = new rnatip_stats ( ) ; obj . set_Rnatip ( Rnatip ) ; rnatip_stats response = ( rnatip_stats ) obj . stat_resource ( service ) ; return response ; }
Use this API to fetch statistics of rnatip_stats resource of given name .
1,910
public static clusternodegroup_binding get ( nitro_service service , String name ) throws Exception { clusternodegroup_binding obj = new clusternodegroup_binding ( ) ; obj . set_name ( name ) ; clusternodegroup_binding response = ( clusternodegroup_binding ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch clusternodegroup_binding resource of given name .
1,911
public static lbvserver_servicegroupmember_binding [ ] get ( nitro_service service , String name ) throws Exception { lbvserver_servicegroupmember_binding obj = new lbvserver_servicegroupmember_binding ( ) ; obj . set_name ( name ) ; lbvserver_servicegroupmember_binding response [ ] = ( lbvserver_servicegroupmember_bin...
Use this API to fetch lbvserver_servicegroupmember_binding resources of given name .
1,912
public static void main ( String [ ] args ) { try { TreeFactory tf = new LabeledScoredTreeFactory ( ) ; Reader r = new BufferedReader ( new InputStreamReader ( new FileInputStream ( args [ 0 ] ) , "UTF-8" ) ) ; TreeReader tr = new PennTreeReader ( r , tf ) ; Tree t = tr . readTree ( ) ; while ( t != null ) { System . o...
Loads treebank data from first argument and prints it .
1,913
public static base_response clear ( nitro_service client , Interface resource ) throws Exception { Interface clearresource = new Interface ( ) ; clearresource . id = resource . id ; return clearresource . perform_operation ( client , "clear" ) ; }
Use this API to clear Interface .
1,914
public static base_responses clear ( nitro_service client , Interface resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { Interface clearresources [ ] = new Interface [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { clearreso...
Use this API to clear Interface resources .
1,915
public static base_response update ( nitro_service client , Interface resource ) throws Exception { Interface updateresource = new Interface ( ) ; updateresource . id = resource . id ; updateresource . speed = resource . speed ; updateresource . duplex = resource . duplex ; updateresource . flowctl = resource . flowctl...
Use this API to update Interface .
1,916
public static base_responses update ( nitro_service client , Interface resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { Interface updateresources [ ] = new Interface [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { updater...
Use this API to update Interface resources .
1,917
public static base_response unset ( nitro_service client , Interface resource , String [ ] args ) throws Exception { Interface unsetresource = new Interface ( ) ; unsetresource . id = resource . id ; return unsetresource . unset_resource ( client , args ) ; }
Use this API to unset the properties of Interface resource . Properties that need to be unset are specified in args array .
1,918
public static base_response enable ( nitro_service client , String id ) throws Exception { Interface enableresource = new Interface ( ) ; enableresource . id = id ; return enableresource . perform_operation ( client , "enable" ) ; }
Use this API to enable Interface of given name .
1,919
public static base_responses enable ( nitro_service client , String id [ ] ) throws Exception { base_responses result = null ; if ( id != null && id . length > 0 ) { Interface enableresources [ ] = new Interface [ id . length ] ; for ( int i = 0 ; i < id . length ; i ++ ) { enableresources [ i ] = new Interface ( ) ; e...
Use this API to enable Interface resources of given names .
1,920
public static base_response disable ( nitro_service client , String id ) throws Exception { Interface disableresource = new Interface ( ) ; disableresource . id = id ; return disableresource . perform_operation ( client , "disable" ) ; }
Use this API to disable Interface of given name .
1,921
public static base_responses disable ( nitro_service client , String id [ ] ) throws Exception { base_responses result = null ; if ( id != null && id . length > 0 ) { Interface disableresources [ ] = new Interface [ id . length ] ; for ( int i = 0 ; i < id . length ; i ++ ) { disableresources [ i ] = new Interface ( ) ...
Use this API to disable Interface resources of given names .
1,922
public static base_response reset ( nitro_service client , Interface resource ) throws Exception { Interface resetresource = new Interface ( ) ; resetresource . id = resource . id ; return resetresource . perform_operation ( client , "reset" ) ; }
Use this API to reset Interface .
1,923
public static base_responses reset ( nitro_service client , Interface resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { Interface resetresources [ ] = new Interface [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { resetreso...
Use this API to reset Interface resources .
1,924
public static Interface [ ] get ( nitro_service service ) throws Exception { Interface obj = new Interface ( ) ; Interface [ ] response = ( Interface [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch all the Interface resources that are configured on netscaler .
1,925
public static Interface get ( nitro_service service , String id ) throws Exception { Interface obj = new Interface ( ) ; obj . set_id ( id ) ; Interface response = ( Interface ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch Interface resource of given name .
1,926
public boolean containsKey ( Object key ) { Object value = deltaMap . get ( key ) ; if ( value == null ) { return originalMap . containsKey ( key ) ; } if ( value == removedValue ) { return false ; } return true ; }
This is more expensive .
1,927
public V get ( Object key ) { V deltaResult = deltaMap . get ( key ) ; if ( deltaResult == null ) { return originalMap . get ( key ) ; } if ( deltaResult == nullValue ) { return null ; } if ( deltaResult == removedValue ) { return null ; } return deltaResult ; }
This may cost twice what it would in the original Map .
1,928
@ SuppressWarnings ( "unchecked" ) public V put ( K key , V value ) { if ( value == null ) { return put ( key , ( V ) nullValue ) ; } V result = deltaMap . put ( key , value ) ; if ( result == null ) { return originalMap . get ( key ) ; } if ( result == nullValue ) { return null ; } if ( result == removedValue ) { retu...
This may cost twice what it would in the original Map because we have to find the original value for this key .
1,929
public static vpnvserver_cachepolicy_binding [ ] get ( nitro_service service , String name ) throws Exception { vpnvserver_cachepolicy_binding obj = new vpnvserver_cachepolicy_binding ( ) ; obj . set_name ( name ) ; vpnvserver_cachepolicy_binding response [ ] = ( vpnvserver_cachepolicy_binding [ ] ) obj . get_resources...
Use this API to fetch vpnvserver_cachepolicy_binding resources of given name .
1,930
public static base_response update ( nitro_service client , bridgetable resource ) throws Exception { bridgetable updateresource = new bridgetable ( ) ; updateresource . bridgeage = resource . bridgeage ; return updateresource . update_resource ( client ) ; }
Use this API to update bridgetable .
1,931
public static base_responses update ( nitro_service client , bridgetable resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { bridgetable updateresources [ ] = new bridgetable [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { u...
Use this API to update bridgetable resources .
1,932
public static base_response unset ( nitro_service client , bridgetable resource , String [ ] args ) throws Exception { bridgetable unsetresource = new bridgetable ( ) ; return unsetresource . unset_resource ( client , args ) ; }
Use this API to unset the properties of bridgetable resource . Properties that need to be unset are specified in args array .
1,933
public static base_responses unset ( nitro_service client , bridgetable resources [ ] , String [ ] args ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { bridgetable unsetresources [ ] = new bridgetable [ resources . length ] ; for ( int i = 0 ; i < resources . len...
Use this API to unset the properties of bridgetable resources . Properties that need to be unset are specified in args array .
1,934
public static base_response clear ( nitro_service client , bridgetable resource ) throws Exception { bridgetable clearresource = new bridgetable ( ) ; clearresource . vlan = resource . vlan ; clearresource . ifnum = resource . ifnum ; return clearresource . perform_operation ( client , "clear" ) ; }
Use this API to clear bridgetable .
1,935
public static base_responses clear ( nitro_service client , bridgetable resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { bridgetable clearresources [ ] = new bridgetable [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { cle...
Use this API to clear bridgetable resources .
1,936
public static bridgetable [ ] get ( nitro_service service ) throws Exception { bridgetable obj = new bridgetable ( ) ; bridgetable [ ] response = ( bridgetable [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch all the bridgetable resources that are configured on netscaler .
1,937
public static base_response update ( nitro_service client , nsdiameter resource ) throws Exception { nsdiameter updateresource = new nsdiameter ( ) ; updateresource . identity = resource . identity ; updateresource . realm = resource . realm ; updateresource . serverclosepropagation = resource . serverclosepropagation ...
Use this API to update nsdiameter .
1,938
public static base_response unset ( nitro_service client , nsdiameter resource , String [ ] args ) throws Exception { nsdiameter unsetresource = new nsdiameter ( ) ; return unsetresource . unset_resource ( client , args ) ; }
Use this API to unset the properties of nsdiameter resource . Properties that need to be unset are specified in args array .
1,939
public static nsdiameter get ( nitro_service service ) throws Exception { nsdiameter obj = new nsdiameter ( ) ; nsdiameter [ ] response = ( nsdiameter [ ] ) obj . get_resources ( service ) ; return response [ 0 ] ; }
Use this API to fetch all the nsdiameter resources that are configured on netscaler .
1,940
public static base_response add ( nitro_service client , gslbservice resource ) throws Exception { gslbservice addresource = new gslbservice ( ) ; addresource . servicename = resource . servicename ; addresource . cnameentry = resource . cnameentry ; addresource . ip = resource . ip ; addresource . servername = resourc...
Use this API to add gslbservice .
1,941
public static base_responses add ( nitro_service client , gslbservice resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { gslbservice addresources [ ] = new gslbservice [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { addreso...
Use this API to add gslbservice resources .
1,942
public static base_response delete ( nitro_service client , String servicename ) throws Exception { gslbservice deleteresource = new gslbservice ( ) ; deleteresource . servicename = servicename ; return deleteresource . delete_resource ( client ) ; }
Use this API to delete gslbservice of given name .
1,943
public static base_response update ( nitro_service client , gslbservice resource ) throws Exception { gslbservice updateresource = new gslbservice ( ) ; updateresource . servicename = resource . servicename ; updateresource . ipaddress = resource . ipaddress ; updateresource . publicip = resource . publicip ; updateres...
Use this API to update gslbservice .
1,944
public static base_responses update ( nitro_service client , gslbservice resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { gslbservice updateresources [ ] = new gslbservice [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { u...
Use this API to update gslbservice resources .
1,945
public static base_responses unset ( nitro_service client , gslbservice resources [ ] , String [ ] args ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { gslbservice unsetresources [ ] = new gslbservice [ resources . length ] ; for ( int i = 0 ; i < resources . len...
Use this API to unset the properties of gslbservice resources . Properties that need to be unset are specified in args array .
1,946
public static base_response rename ( nitro_service client , gslbservice resource , String new_servicename ) throws Exception { gslbservice renameresource = new gslbservice ( ) ; renameresource . servicename = resource . servicename ; return renameresource . rename_resource ( client , new_servicename ) ; }
Use this API to rename a gslbservice resource .
1,947
public static gslbservice [ ] get ( nitro_service service ) throws Exception { gslbservice obj = new gslbservice ( ) ; gslbservice [ ] response = ( gslbservice [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch all the gslbservice resources that are configured on netscaler .
1,948
public static gslbservice get ( nitro_service service , String servicename ) throws Exception { gslbservice obj = new gslbservice ( ) ; obj . set_servicename ( servicename ) ; gslbservice response = ( gslbservice ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch gslbservice resource of given name .
1,949
public static gslbservice [ ] get_filtered ( nitro_service service , filtervalue [ ] filter ) throws Exception { gslbservice obj = new gslbservice ( ) ; options option = new options ( ) ; option . set_filter ( filter ) ; gslbservice [ ] response = ( gslbservice [ ] ) obj . getfiltered ( service , option ) ; return resp...
Use this API to fetch filtered set of gslbservice resources . set the filter parameter values in filtervalue object .
1,950
public static aaaglobal_binding get ( nitro_service service ) throws Exception { aaaglobal_binding obj = new aaaglobal_binding ( ) ; aaaglobal_binding response = ( aaaglobal_binding ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch a aaaglobal_binding resource .
1,951
public static base_response add ( nitro_service client , clusterinstance resource ) throws Exception { clusterinstance addresource = new clusterinstance ( ) ; addresource . clid = resource . clid ; addresource . deadinterval = resource . deadinterval ; addresource . hellointerval = resource . hellointerval ; addresourc...
Use this API to add clusterinstance .
1,952
public static base_responses add ( nitro_service client , clusterinstance resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { clusterinstance addresources [ ] = new clusterinstance [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++...
Use this API to add clusterinstance resources .
1,953
public static base_response delete ( nitro_service client , Long clid ) throws Exception { clusterinstance deleteresource = new clusterinstance ( ) ; deleteresource . clid = clid ; return deleteresource . delete_resource ( client ) ; }
Use this API to delete clusterinstance of given name .
1,954
public static base_responses delete ( nitro_service client , clusterinstance resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { clusterinstance deleteresources [ ] = new clusterinstance [ resources . length ] ; for ( int i = 0 ; i < resources . length ...
Use this API to delete clusterinstance resources .
1,955
public static base_response update ( nitro_service client , clusterinstance resource ) throws Exception { clusterinstance updateresource = new clusterinstance ( ) ; updateresource . clid = resource . clid ; updateresource . deadinterval = resource . deadinterval ; updateresource . hellointerval = resource . hellointerv...
Use this API to update clusterinstance .
1,956
public static base_responses update ( nitro_service client , clusterinstance resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { clusterinstance updateresources [ ] = new clusterinstance [ resources . length ] ; for ( int i = 0 ; i < resources . length ...
Use this API to update clusterinstance resources .
1,957
public static base_response unset ( nitro_service client , clusterinstance resource , String [ ] args ) throws Exception { clusterinstance unsetresource = new clusterinstance ( ) ; unsetresource . clid = resource . clid ; return unsetresource . unset_resource ( client , args ) ; }
Use this API to unset the properties of clusterinstance resource . Properties that need to be unset are specified in args array .
1,958
public static base_responses unset ( nitro_service client , Long clid [ ] , String args [ ] ) throws Exception { base_responses result = null ; if ( clid != null && clid . length > 0 ) { clusterinstance unsetresources [ ] = new clusterinstance [ clid . length ] ; for ( int i = 0 ; i < clid . length ; i ++ ) { unsetreso...
Use this API to unset the properties of clusterinstance resources . Properties that need to be unset are specified in args array .
1,959
public static base_response enable ( nitro_service client , Long clid ) throws Exception { clusterinstance enableresource = new clusterinstance ( ) ; enableresource . clid = clid ; return enableresource . perform_operation ( client , "enable" ) ; }
Use this API to enable clusterinstance of given name .
1,960
public static base_responses enable ( nitro_service client , Long clid [ ] ) throws Exception { base_responses result = null ; if ( clid != null && clid . length > 0 ) { clusterinstance enableresources [ ] = new clusterinstance [ clid . length ] ; for ( int i = 0 ; i < clid . length ; i ++ ) { enableresources [ i ] = n...
Use this API to enable clusterinstance resources of given names .
1,961
public static base_response disable ( nitro_service client , Long clid ) throws Exception { clusterinstance disableresource = new clusterinstance ( ) ; disableresource . clid = clid ; return disableresource . perform_operation ( client , "disable" ) ; }
Use this API to disable clusterinstance of given name .
1,962
public static base_responses disable ( nitro_service client , Long clid [ ] ) throws Exception { base_responses result = null ; if ( clid != null && clid . length > 0 ) { clusterinstance disableresources [ ] = new clusterinstance [ clid . length ] ; for ( int i = 0 ; i < clid . length ; i ++ ) { disableresources [ i ] ...
Use this API to disable clusterinstance resources of given names .
1,963
public static clusterinstance [ ] get ( nitro_service service ) throws Exception { clusterinstance obj = new clusterinstance ( ) ; clusterinstance [ ] response = ( clusterinstance [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch all the clusterinstance resources that are configured on netscaler .
1,964
public static clusterinstance get ( nitro_service service , Long clid ) throws Exception { clusterinstance obj = new clusterinstance ( ) ; obj . set_clid ( clid ) ; clusterinstance response = ( clusterinstance ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch clusterinstance resource of given name .
1,965
public static clusterinstance [ ] get ( nitro_service service , Long clid [ ] ) throws Exception { if ( clid != null && clid . length > 0 ) { clusterinstance response [ ] = new clusterinstance [ clid . length ] ; clusterinstance obj [ ] = new clusterinstance [ clid . length ] ; for ( int i = 0 ; i < clid . length ; i +...
Use this API to fetch clusterinstance resources of given names .
1,966
public static vpnglobal_vpnnexthopserver_binding [ ] get ( nitro_service service ) throws Exception { vpnglobal_vpnnexthopserver_binding obj = new vpnglobal_vpnnexthopserver_binding ( ) ; vpnglobal_vpnnexthopserver_binding response [ ] = ( vpnglobal_vpnnexthopserver_binding [ ] ) obj . get_resources ( service ) ; retur...
Use this API to fetch a vpnglobal_vpnnexthopserver_binding resources .
1,967
public static appfwpolicy_csvserver_binding [ ] get ( nitro_service service , String name ) throws Exception { appfwpolicy_csvserver_binding obj = new appfwpolicy_csvserver_binding ( ) ; obj . set_name ( name ) ; appfwpolicy_csvserver_binding response [ ] = ( appfwpolicy_csvserver_binding [ ] ) obj . get_resources ( se...
Use this API to fetch appfwpolicy_csvserver_binding resources of given name .
1,968
public static vpnvserver_aaapreauthenticationpolicy_binding [ ] get ( nitro_service service , String name ) throws Exception { vpnvserver_aaapreauthenticationpolicy_binding obj = new vpnvserver_aaapreauthenticationpolicy_binding ( ) ; obj . set_name ( name ) ; vpnvserver_aaapreauthenticationpolicy_binding response [ ] ...
Use this API to fetch vpnvserver_aaapreauthenticationpolicy_binding resources of given name .
1,969
public static base_response Shutdown ( nitro_service client , shutdown resource ) throws Exception { shutdown Shutdownresource = new shutdown ( ) ; return Shutdownresource . perform_operation ( client ) ; }
Use this API to Shutdown shutdown .
1,970
public HashSet < String > getDataById ( String id ) throws IOException { if ( idToVersion . containsKey ( id ) ) { return get ( id ) ; } else { return null ; } }
Gets the data by id .
1,971
public Automaton getAutomatonById ( String id ) throws IOException { if ( idToVersion . containsKey ( id ) ) { List < BytesRef > bytesArray = new ArrayList < > ( ) ; Set < String > data = get ( id ) ; if ( data != null ) { Term term ; for ( String item : data ) { term = new Term ( "dummy" , item ) ; bytesArray . add ( ...
Gets the automaton by id .
1,972
public void deleteById ( String id ) { if ( idToVersion . containsKey ( id ) ) { String version = idToVersion . remove ( id ) ; expirationVersion . remove ( version ) ; versionToItem . remove ( version ) ; if ( collectionCachePath != null && ! collectionCachePath . resolve ( version ) . toFile ( ) . delete ( ) ) { log ...
Delete by id .
1,973
private String filterTag ( String tag ) { AttributeValues answerAV = TagSet . getTagSet ( ) . fromTag ( tag ) ; answerAV . removeNonlexicalAttributes ( ) ; return TagSet . getTagSet ( ) . toTag ( answerAV ) ; }
LV morphology helper functions
1,974
public static base_response update ( nitro_service client , ipv6 resource ) throws Exception { ipv6 updateresource = new ipv6 ( ) ; updateresource . ralearning = resource . ralearning ; updateresource . routerredirection = resource . routerredirection ; updateresource . ndbasereachtime = resource . ndbasereachtime ; up...
Use this API to update ipv6 .
1,975
public static base_response unset ( nitro_service client , ipv6 resource , String [ ] args ) throws Exception { ipv6 unsetresource = new ipv6 ( ) ; return unsetresource . unset_resource ( client , args ) ; }
Use this API to unset the properties of ipv6 resource . Properties that need to be unset are specified in args array .
1,976
public static ipv6 get ( nitro_service service ) throws Exception { ipv6 obj = new ipv6 ( ) ; ipv6 [ ] response = ( ipv6 [ ] ) obj . get_resources ( service ) ; return response [ 0 ] ; }
Use this API to fetch all the ipv6 resources that are configured on netscaler .
1,977
public static filterpolicy_binding get ( nitro_service service , String name ) throws Exception { filterpolicy_binding obj = new filterpolicy_binding ( ) ; obj . set_name ( name ) ; filterpolicy_binding response = ( filterpolicy_binding ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch filterpolicy_binding resource of given name .
1,978
public static base_response unset ( nitro_service client , coparameter resource , String [ ] args ) throws Exception { coparameter unsetresource = new coparameter ( ) ; return unsetresource . unset_resource ( client , args ) ; }
Use this API to unset the properties of coparameter resource . Properties that need to be unset are specified in args array .
1,979
public static base_response add ( nitro_service client , dbdbprofile resource ) throws Exception { dbdbprofile addresource = new dbdbprofile ( ) ; addresource . name = resource . name ; addresource . interpretquery = resource . interpretquery ; addresource . stickiness = resource . stickiness ; addresource . kcdaccount...
Use this API to add dbdbprofile .
1,980
public static base_responses add ( nitro_service client , dbdbprofile resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { dbdbprofile addresources [ ] = new dbdbprofile [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { addreso...
Use this API to add dbdbprofile resources .
1,981
public static base_response update ( nitro_service client , dbdbprofile resource ) throws Exception { dbdbprofile updateresource = new dbdbprofile ( ) ; updateresource . name = resource . name ; updateresource . interpretquery = resource . interpretquery ; updateresource . stickiness = resource . stickiness ; updateres...
Use this API to update dbdbprofile .
1,982
public static base_responses update ( nitro_service client , dbdbprofile resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { dbdbprofile updateresources [ ] = new dbdbprofile [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { u...
Use this API to update dbdbprofile resources .
1,983
public static dbdbprofile [ ] get ( nitro_service service ) throws Exception { dbdbprofile obj = new dbdbprofile ( ) ; dbdbprofile [ ] response = ( dbdbprofile [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch all the dbdbprofile resources that are configured on netscaler .
1,984
public static dbdbprofile get ( nitro_service service , String name ) throws Exception { dbdbprofile obj = new dbdbprofile ( ) ; obj . set_name ( name ) ; dbdbprofile response = ( dbdbprofile ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch dbdbprofile resource of given name .
1,985
public static dbdbprofile [ ] get_filtered ( nitro_service service , filtervalue [ ] filter ) throws Exception { dbdbprofile obj = new dbdbprofile ( ) ; options option = new options ( ) ; option . set_filter ( filter ) ; dbdbprofile [ ] response = ( dbdbprofile [ ] ) obj . getfiltered ( service , option ) ; return resp...
Use this API to fetch filtered set of dbdbprofile resources . set the filter parameter values in filtervalue object .
1,986
public Boolean checkType ( String type ) { if ( mtasPositionType == null ) { return false ; } else { return mtasPositionType . equals ( type ) ; } }
Check type .
1,987
public Integer getEnd ( ) { if ( mtasPositionType . equals ( POSITION_RANGE ) || mtasPositionType . equals ( POSITION_SET ) ) { return mtasPositionEnd ; } else if ( mtasPositionType . equals ( POSITION_SINGLE ) ) { return mtasPositionStart ; } else { return null ; } }
Gets the end .
1,988
public static wisite_farmname_binding [ ] get ( nitro_service service , String sitepath ) throws Exception { wisite_farmname_binding obj = new wisite_farmname_binding ( ) ; obj . set_sitepath ( sitepath ) ; wisite_farmname_binding response [ ] = ( wisite_farmname_binding [ ] ) obj . get_resources ( service ) ; return r...
Use this API to fetch wisite_farmname_binding resources of given name .
1,989
public static base_response add ( nitro_service client , cachepolicylabel resource ) throws Exception { cachepolicylabel addresource = new cachepolicylabel ( ) ; addresource . labelname = resource . labelname ; addresource . evaluates = resource . evaluates ; return addresource . add_resource ( client ) ; }
Use this API to add cachepolicylabel .
1,990
public static base_responses add ( nitro_service client , cachepolicylabel resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { cachepolicylabel addresources [ ] = new cachepolicylabel [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i...
Use this API to add cachepolicylabel resources .
1,991
public static cachepolicylabel [ ] get ( nitro_service service ) throws Exception { cachepolicylabel obj = new cachepolicylabel ( ) ; cachepolicylabel [ ] response = ( cachepolicylabel [ ] ) obj . get_resources ( service ) ; return response ; }
Use this API to fetch all the cachepolicylabel resources that are configured on netscaler .
1,992
public static cachepolicylabel get ( nitro_service service , String labelname ) throws Exception { cachepolicylabel obj = new cachepolicylabel ( ) ; obj . set_labelname ( labelname ) ; cachepolicylabel response = ( cachepolicylabel ) obj . get_resource ( service ) ; return response ; }
Use this API to fetch cachepolicylabel resource of given name .
1,993
public static authenticationldappolicy_authenticationvserver_binding [ ] get ( nitro_service service , String name ) throws Exception { authenticationldappolicy_authenticationvserver_binding obj = new authenticationldappolicy_authenticationvserver_binding ( ) ; obj . set_name ( name ) ; authenticationldappolicy_authent...
Use this API to fetch authenticationldappolicy_authenticationvserver_binding resources of given name .
1,994
public static dnszone_domain_binding [ ] get ( nitro_service service , String zonename ) throws Exception { dnszone_domain_binding obj = new dnszone_domain_binding ( ) ; obj . set_zonename ( zonename ) ; dnszone_domain_binding response [ ] = ( dnszone_domain_binding [ ] ) obj . get_resources ( service ) ; return respon...
Use this API to fetch dnszone_domain_binding resources of given name .
1,995
public static long count ( nitro_service service , String zonename ) throws Exception { dnszone_domain_binding obj = new dnszone_domain_binding ( ) ; obj . set_zonename ( zonename ) ; options option = new options ( ) ; option . set_count ( true ) ; dnszone_domain_binding response [ ] = ( dnszone_domain_binding [ ] ) ob...
Use this API to count dnszone_domain_binding resources configued on NetScaler .
1,996
public static lbvserver_rewritepolicy_binding [ ] get ( nitro_service service , String name ) throws Exception { lbvserver_rewritepolicy_binding obj = new lbvserver_rewritepolicy_binding ( ) ; obj . set_name ( name ) ; lbvserver_rewritepolicy_binding response [ ] = ( lbvserver_rewritepolicy_binding [ ] ) obj . get_reso...
Use this API to fetch lbvserver_rewritepolicy_binding resources of given name .
1,997
public static String ptb2Text ( String ptbText ) { StringBuilder sb = new StringBuilder ( ptbText . length ( ) ) ; PTB2TextLexer lexer = new PTB2TextLexer ( new StringReader ( ptbText ) ) ; try { for ( String token ; ( token = lexer . next ( ) ) != null ; ) { sb . append ( token ) ; } } catch ( IOException e ) { e . pr...
Returns a presentable version of the given PTB - tokenized text . PTB tokenization splits up punctuation and does various other things that makes simply joining the tokens with spaces look bad . So join the tokens with space and run it through this method to produce nice looking text . It s not perfect but it works pre...
1,998
public static int ptb2Text ( Reader ptbText , Writer w ) throws IOException { int numTokens = 0 ; PTB2TextLexer lexer = new PTB2TextLexer ( ptbText ) ; for ( String token ; ( token = lexer . next ( ) ) != null ; ) { numTokens ++ ; w . write ( token ) ; } return numTokens ; }
Writes a presentable version of the given PTB - tokenized text . PTB tokenization splits up punctuation and does various other things that makes simply joining the tokens with spaces look bad . So join the tokens with space and run it through this method to produce nice looking text . It s not perfect but it works pret...
1,999
public static < T extends HasWord > TokenizerFactory < T > factory ( LexedTokenFactory < T > factory , String options ) { return new PTBTokenizerFactory < T > ( factory , options ) ; }
Get a TokenizerFactory that does Penn Treebank tokenization . This is now the recommended factory method to use .