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
run excel and run the enable auto refresh
Setting msExchMailboxSecurityDescr
iptor with VB.NET
Video Chat Capabilities
How to separate multiple email accounts into different data files in Outlook 2010
Windows Server 2008 R2 iSCSI Initiator and HP D2D CHAP issue
KMS Activation Multiple Keys
Mass user Migrate from LCS to OCS 2007
cannot reset Fortinet fortiWIFI 80C to factory settings
how do I select a list of records that exist multiple times only once in a table
WCF Problem: The private key is not present in the X.509 certificate.