Click here to Skip to main content
15,894,330 members
Articles / Containers / Virtual Machine

.NET/Java Interoperability using Service Interface and DTO Architecture Patterns

Rate me:
Please Sign up or sign in to vote.
4.73/5 (8 votes)
7 Feb 2011CPOL5 min read 49.6K   234   15  
This article shows you how to build a simple cross-platform interoperation solution between .NET and Java using the Service Interface and Data Transfer Object (DTO) architecture patterns
//Auto generated code
//Code generated by XXsd2Code<http://xxsd2code.sourceforge.net/> XXsd2Code.exe version 1.0.0
//For any comments/suggestions contact code generator author at asheesh.goja@gmail.com
//Auto generated code
 
package	CustomerOrderAndFulfillment.Contract;
 
//enumeration	FuzzyCondition
public enum	FuzzyCondition
{
	Hot("100"),
	VeryHot("200"),
	ExtremelyHot("300"),
	Cold("0")
			
	;
	private final String value;

	//private constructor
	FuzzyCondition(String value) 
	{	   this.value = value;}

	//fromValue
	public static FuzzyCondition fromValue(String value) 
	 {   
	   if (value != null) 
	   {   
	     for (FuzzyCondition v : values()) 
	     {   
	       if (v.value.equals(value)) 
	       {   
	         return v;   
	       }   
	     }   
	   }   
	   return null;   
	 } 

	//toString
	@Override
	public String toString() {   return value;}   
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect Cisco
United States United States
I work as a senior solutions software architect at Cisco.

Here is my work.

Comments and Discussions