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
Cisco VPN client for Windows, use both RSA SecurID soft token and hard token
Vista Ultimate clone from HP to HP
Is there a tool to check to see who has enabled auto-forward in outlook
Microsoft VPN not connecting on some computers
How do i download my dreamweaver site to a different computer than the one I uploaded it on?
sql query help
Terminal Services lock down question
Can you tell what Server a Backup Exec agent was pashed out from
DHCP Client wont AutoStart
cgi procress page