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
GridView update is not grabbing the new data when Updating
Changing number of NSPI connections on Windows 2008 Global Catalogs
get latest file in the directory in unix
Good free network Management software
implementing aixpert on aix
Operation Must Use an Updateable Query
can I use my hard drive with XP and data on it with a system with replaced motherboard ?
Editable dropdown list in ASP.net 3.5 using C#
Access 2010 option button value
Spoolsv.exe using up to 100% CPU