jQuery in Action, 2nd edition*
The moose likes XML and Related Technologies and the fly likes convert java classes to .xsd xml schema in eclise Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "convert java classes to .xsd xml schema in eclise" Watch "convert java classes to .xsd xml schema in eclise" New topic

convert java classes to .xsd xml schema in eclise

jim li
Ranch Hand

Joined: May 20, 2008
Posts: 180

i have simple java class , and i want convert it to xml schema in eclipse , any suggestions?

public class Contract{

@XmlElement(required = true, nillable = false)
private String contractID;

@XmlElement(required = true, nillable = false)
protected String contractNumber;

@XmlElement(required = true, nillable = false)
protected Date startDate;

@XmlElement(required = true, nillable = false)
protected java.util.Date endDate;

@XmlElement(required = true, nillable = false)
protected java.sql.Date gracePeriodEndDate;

@XmlElement(required = true, nillable = false)
protected List<PlanItem> planItem;


(generate web service , and there will be a .xsd file with data type)
Jimmy Clark
Ranch Hand

Joined: Apr 16, 2008
Posts: 2187
Check out the Eclipse Modeling Framework (EMF) for building applications based on a data model.

I agree. Here's the link: http://aspose.com/file-tools
subject: convert java classes to .xsd xml schema in eclise
Similar Threads
web services client is not validating parameters
How to make Axis2 bottom-up webservice make minOccurs="1" nillable="false"
How to set minOccurs="1" in wsdl for an input parameter to web service method.
general web service definition question
Not able to get default value of XSD element in Java object