RE: implementing a custom interface

"Gillen, Paul" <[email protected]>
Newsgroups gmane.text.xml.xmlbeans.user
Message-ID <6A51CF4158562249906CB0F24DC99E444CD6AC90C6@GATUCEXCH03ASV.nscorp.ad.nscorp.com>
If I understand you correctly, in your XSD create a base type with the common attributes.  Create types for each of your 3 derived from the base type.  In your code you can refer to each as basetype and for specifics test with instanceof.

Paul Gillen
 
-----Original Message-----
From: Jason Berk [mailto:[email protected]] 
Sent: Friday, September 18, 2009 11:19 AM
To: [email protected]
Subject: implementing a custom interface

I have three types in my XSD: Savings, Checking, Certificate.

Is it possible to add something (to the .xsdconfig?) that makes all
three types implement an interface I created?

I want my beans to be like this:

Product
	getStaringBal()
	getEndingBal()

Savings implements Product
	getSavingsSpecificStuff()

Checking implements Product
	getCheckingSpecificStuff()

make sense?

Jason
Now serving Boiler Spirit with every purchase. Switch to the new Purdue debit card today. Show your pride and earn Scorecard Rewards on the side. Just sign for your purchases and score valuable rewards points you can use for travel, electronics or even cash. 



***This is a transmission from Purdue Employees Federal Credit
Union (PEFCU) and is intended solely for its authorized
recipient(s), and may contain information that is confidential
and or legally privileged.  If you are not an addressee, or the
employee or agent responsible for delivering it to an addressee,
you are hereby notified that any use, dissemination,
distribution, publication or copying of the information 
contained
in this email is strictly prohibited. If you have received this
transmission in error, please notify us by telephoning (765)
497-3328 or returning the email. You are then instructed to
delete the information from your computer.  Thank you for your
cooperation.***



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.