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
VBA LDAP Query to retrieve all members of a group in active directory
Printing multiple divs using java script
Forefront TMG Malware and NIS inspection updates aren't working.
i have xenapp do i need xendesktop
Win RAR
How can I sync up two web servers using Windows Server 2008 or thus Windows Server 2008 has this function?
Error ORA-1722 when DAO is writing data to an Oracle 11g database
SharePoint 3.0 Central Administration not loading
Grab last two lab results
HP Dataprotector error "Automatic DR information could not be collected"