Java 8 Any - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Java 8 Any class.

This code example shows how to use the following methods:extract_string, type
	    jtsLogger.logger.trace("ContextServerRequestInterceptorImpl.suspendContext ( "+request_info.operation()+" )");
	} 
 
	Any data = request_info.get_slot(_dataSlot);
 
	if ((data != null) && (data.type().kind().value() != TCKind._tk_null))
	{ 
	    String threadId = null;
	     
	    try 
	    { 
		if ((threadId = data.extract_string()) != null)
		{ 
		    ControlWrapper ctx = OTSImpleManager.current().contextManager().popAction(threadId);
 
		    OTSImpleManager.current().contextManager().purgeActions(threadId);
		     
		    if (ctx != null)
		    { 
			try 
4
CodeRank
Experience pair programming with AI  Get Codota for Java
This code example shows how to use the following methods:extract_string, type
	    jtsLogger.logger.trace("ContextServerRequestInterceptorImpl.suspendContext ( "+request_info.operation()+" )");
	} 
 
	Any data = request_info.get_slot(_dataSlot);
 
	if ((data != null) && (data.type().kind().value() != TCKind._tk_null))
	{ 
	    String threadId = null;
	     
	    try 
	    { 
		if ((threadId = data.extract_string()) != null)
		{ 
		    ControlWrapper ctx = OTSImpleManager.current().contextManager().popAction(threadId);
 
		    OTSImpleManager.current().contextManager().purgeActions(threadId);
		     
		    if (ctx != null)
		    { 
			try 
4
CodeRank
Experience pair programming with AI  Get Codota for Java
This code example shows how to use the following methods:extract_string, type
        trace_request("suspendContext", request_info);
	} 
 
	Any data = request_info.get_slot(_dataSlot);
 
	if ((data != null) && (data.type().kind().value() != TCKind._tk_null))
	{ 
	    String threadId = null;
 
	    try 
	    { 
		if ((threadId = data.extract_string()) != null)
		{ 
		    ControlWrapper ctx = OTSImpleManager.current().contextManager().popAction(threadId);
 
		    OTSImpleManager.current().contextManager().purgeActions(threadId);
		} 
	    } 
	    catch (BAD_OPERATION bex)
	    { 
4
CodeRank
Experience pair programming with AI  Get Codota for Java
This code example shows how to use the following methods:extract_string, type
        trace_request("suspendContext", request_info);
	} 
 
	Any data = request_info.get_slot(_dataSlot);
 
	if ((data != null) && (data.type().kind().value() != TCKind._tk_null))
	{ 
	    String threadId = null;
 
	    try 
	    { 
		if ((threadId = data.extract_string()) != null)
		{ 
		    ControlWrapper ctx = OTSImpleManager.current().contextManager().popAction(threadId);
 
		    OTSImpleManager.current().contextManager().purgeActions(threadId);
		} 
	    } 
	    catch (BAD_OPERATION bex)
	    { 
4
CodeRank
Experience pair programming with AI  Get Codota for Java
This code example shows how to use the following methods:extract_string, type
	    jtsLogger.logger.trace("ContextServerRequestInterceptorImpl.suspendContext ( "+request_info.operation()+" )");
	} 
 
	Any data = request_info.get_slot(_dataSlot);
 
	if ((data != null) && (data.type().kind().value() != TCKind._tk_null))
	{ 
	    String threadId = null;
	     
	    try 
	    { 
		if ((threadId = data.extract_string()) != null)
		{ 
		    ControlWrapper ctx = OTSImpleManager.current().contextManager().popAction(threadId);
 
		    OTSImpleManager.current().contextManager().purgeActions(threadId);
		     
		    if (ctx != null)
		    { 
			try 
4
CodeRank
Experience pair programming with AI  Get Codota for Java
This code example shows how to use the following methods:extract_Value
    public Policy create_policy(int type, Any value) throws PolicyError {
        if (type != POLICY_TYPE) {
            throw new PolicyError(org.omg.CORBA.BAD_POLICY.value);
        } 
 
        return new ClientPolicy((CSSConfig) value.extract_Value());
    } 
} 
4
CodeRank
Experience pair programming with AI  Get Codota for Java
This code example shows how to use the following methods:extract_string, type
        trace_request("suspendContext", request_info);
	} 
 
	Any data = request_info.get_slot(_dataSlot);
 
	if ((data != null) && (data.type().kind().value() != TCKind._tk_null))
	{ 
	    String threadId = null;
 
	    try 
	    { 
		if ((threadId = data.extract_string()) != null)
		{ 
		    //		    ControlWrapper ctx = OTSImpleManager.systemCurrent().contextManager().popAction(threadId); 
		    ControlWrapper ctx = OTSImpleManager.current().contextManager().popAction(threadId);
 
		    //		    OTSImpleManager.systemCurrent().contextManager().purgeActions(threadId); 
 
		    OTSImpleManager.current().contextManager().purgeActions(threadId);
		} 
4
CodeRank
Experience pair programming with AI  Get Codota for Java
This code example shows how to use the following methods:insert_Streamable
 
    public void clear() {         
    } 
     
    public void setIntoAny(Any value, CorbaStreamable stream, boolean output) {
        value.insert_Streamable(stream);
    } 
} 
4
CodeRank
Experience pair programming with AI  Get Codota for Java
This code example shows how to use the following methods:extract_Value
    public Policy create_policy(int type, Any value) throws PolicyError {
        if (type != POLICY_TYPE) {
            throw new PolicyError(org.omg.CORBA.BAD_POLICY.value);
        } 
 
        return new ServerPolicy((ServerPolicy.Config) value.extract_Value());
    } 
} 
4
CodeRank
Experience pair programming with AI  Get Codota for Java
This code example shows how to use the following methods:insert_Streamable
        return index;
    } 
 
 
    public static void insert(Any any, SystemException val) {
        any.insert_Streamable(new SystemExceptionHelper(val));
    } 
 
     
     
    //CHECKSTYLE:OFF  
    //NCSS is to high for this due to the massive switch statement 
    public static SystemException read(org.omg.CORBA.portable.InputStream in) {
 
        String id = in.read_string();
        int minor = in.read_ulong();
        org.omg.CORBA.CompletionStatus status = org.omg.CORBA.CompletionStatus.from_int(in.read_ulong());
 
        int n = binarySearch(IDS, id);
        SystemException ex = null;
4
CodeRank
Experience pair programming with AI  Get Codota for Java
See Code Examples for Java 8 Any Methods: