File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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
Author

convert java classes to .xsd xml schema in eclise

jim li
Ranch Hand

Joined: May 20, 2008
Posts: 180
hi

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

@XmlAccessorType(XmlAccessType.FIELD)
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.

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: convert java classes to .xsd xml schema in eclise