Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

convert java classes to .xsd xml schema in eclise

 
jim li
Ranch Hand
Posts: 180
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2187
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic