bulldog2011 / mxjc Goto Github PK
View Code? Open in Web Editor NEWxsd to ios objective-c and android java binding compiler based on jaxb xjc.
License: MIT License
xsd to ios objective-c and android java binding compiler based on jaxb xjc.
License: MIT License
Hi there,
We've been using mxjc to generate objective-c files for Pico based on our XSD file. Are there any plans to implement - (id)copyWithZone:(NSZone *)zone to the auto-generated files coming from mxjc? This could be very useful when using "copy" for your @Property declarations.
The workaround right now is to either manually implement copyWithZone after the files are generated (overwriting files becomes an issue with this route) or implementing a category that takes care of copyWithZone for that particular class.
Thanks!
Alex
No copy of realization of JAXBElement template
// Generated by xsd compiler for android/java
// DO NOT CHANGE!
package ws.schema;
import java.io.Serializable;
import com.leansoft.nano.annotation.*;
import javax.xml.bind.JAXBElement;
import java.util.List;
import org.w3c.dom.Element;
@com.leansoft.nano.annotation.RootElement(name = "InfoResponseData", namespace = "ws/schema")
public class InfoResponseData implements Serializable {
private static final long serialVersionUID = -1L;
@com.leansoft.nano.annotation.Element(name = "User")
@Order(value=0)
public User userInfo;
@com.leansoft.nano.annotation.Element
@Order(value=1)
public int errCode;
@AnyElement
@Order(value=2)
public JAXBElement<InfoExt> infoExt;
@AnyElement
@Order(value=3)
public List<Element> any;
}
Schema:
<xs:complexType name="InfoResponseData">
<xs:sequence>
<xs:element name="UserInfo" type="tns:User"/>
<xs:element name="errCode" type="xs:int"/>
<xs:element name="InfoExt" type="tns:InfoExt" nillable="true" minOccurs="0"/>
<xs:any processContents="skip" namespace="##other" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.