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
How to determine eclipse version?
About direct X / Open GL issue
how to find my Symantec pcAnywhere serial number
Ruby - Insert Struct to MySql
Is possible to just to use a wireless router to extend wireless access to wireless access points?
Multicast session fails to open on secondary site server.
How can I send HTML formatted emails to someone who signs up on my site
WIN Network on SBS 2K3 server has disappeared
Oracle Form 4.5 Update Allowed Problem
GUID of a ActiveX OCX