Microsoft
Software
Hardware
Network
Question : how to add a default constructor in my schema
Hello,
I'm trying to figure out how to modify my schema in order to create the MessageType class with a default empty constructor along with one that takes a String parameter. The below creates the class with the String param constructor, but I need an empty public one as well.
<xs:simpleType name="messageType">
<xs:restriction base="xs:string">
<xs:enumeration value="SMS" />
<xs:enumeration value="TAS" />
</xs:restriction>
</xs:simpleType>
creates the below:
// Constructor
protected MessageType(java.lang.Stri
ng value) {
_value_ = value;
_table_.put(_value_,this);
}
Answer : how to add a default constructor in my schema
just add parameterless constructor:
protected MessageType() {
_value_ = some default value...
_table_.put(_value_,this);
}
Random Solutions
DW & level of normalization
VFP 6 - Simple Grid on Form and run reports
EIGRP Traffic limited to 50% by default?
Seeking tool for scaling, resizing, and cropping uploaded images (javascript / php, etc)
DOS Batch Turnkey system for Win95
Transport-level error / (provider: TCP Provider, error: 0 - An existing connection was forcibly closed by the remote host.)
msoutlook 2007 data file do not compress
Modify Excel VBA to include a range of cells
Multiple trusted certificates on SBS 2008
WordPress - header and footer navigation has suddenly dissappeared