aspose 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
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.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: convert java classes to .xsd xml schema in eclise