Help needed to define a xsd for a java class that has initialization block
public class Employee{
public final static Boss boss1 = new Boss("George","Male");
public final static Boss boss2 = new Boss("Barbara",'Female");
public class Boss{
private String name ;
private String sex;
Boss(String name,String sex){
this.name = name;
this.sex = sex;
I am working on a wsdl first webservices.
Can someone come with an xsd for this two class.I am struggling to come with an xsd becuase of the initialization of boss1 and boss2
Please help.
thx
m
shet wrote:
I am struggling to come with an xsd becuase of the initialization of boss1 and boss2Why do you think that there is a dependecy of initialization to XSD development? Normally, you should only be creating the XSD to represent the class structure, not the runtime final value of instance member.
You will have to write the initilization logic in helper or utility classes.
Edited by: Adhir_Mehta on May 17, 2010 8:16 AM
Similar Messages
-
How define a global variable in a class that all the methods will recognize
hi friends,
i need to define a global variable in a class that all the methods will recognize it.
any suggestions?
thanks,
dana.Dera Dana,
In se24, create your own "Z" class.
Open the Attributes tab.
Insert your variable in the declaration part.
EQ:
Attribute Level Visibility Typing Associated Type Description
ITAB Instance Attribute Public Type Structure name Description
In the Layout of View page,
<phtmlb:formLayoutDropDownListBox id = "Dropdown"
label = "Drop Down"
table = "<%= controller->Itab %>"
nameOfKeyColumn = "CODE"
nameOfValueColumn = "VALUE"
selection = "<%= controller->feild to be selected %>"
/>
Hope this will be helpful
Regards,
Gokul.N -
Urgently need a Technical Specification Document for any java development
hi friends,
I urgently need a tech spec doc for any java developments , wanted to refer for creating templates for a product . Please help its very urgent.
ThanksHere are a couple of hundred technical specifications for a wide variety of Java development projects:
http://jcp.org/en/jsr/all -
What Malicious Software Removal Tool can I use for my Mac Book? I need do to do this for a College class.
You may find this User Tip on Viruses, Trojan Detection and Removal, as well as general Internet Security and Privacy, useful: The User Tip seeks to offer guidance on the main security threats and how to avoid them.
https://discussions.apple.com/docs/DOC-2435 -
Please Help - I am looking for an mp3 player that has the following features
Hi, I am looking for an mp3 player that has the following features:
1) Either a 30GB or more HDD, OR a sd OR a micro SD card slot for a 2GB card. (Note, I can buy an adapter so my sd cards fit into a compact flash slot. However, I did look at the Zen Vision M but I didn't see how to delete tracks from?my playlists.)
2) I need to be able to delete tracks in my playlists that I create in Windows Media Player (.wpl or .m3u format).
3) I need to be able to copy these updated playlists back to my pc, either with the usb cable or SD / microSD card.
Which products meet my needs? I li've in California, USA.
Thanks,
RickThanks! I did not know that. I have been looking for an mp3 player for a long time & did not realize the one I wanted was right in front of my nose! [ at Walmart]
-
XJC Tool - For building Java classes from Schema
Hi all,
I am using XJC tool for Building java classes from Schema.
Can we have any other tool for generating java classes from Schema?
Thanks in advance,
typurohitSolved my own problem and forgot to post the answer: the "xsd:import" is also considered as a targetNamespace, so each xsd:import needs a package specified as well when using oracg. It would be helpful if the Oracle documentation had stated that, but it does not point this out.
-
How to use junit for a java class in netbeans
hi friends,
im new to java(fresher) and i need step by step creation of junit class for a java class in net beans6.5.so anybody plz explain me in detail.......Hi venkatakrishna.chaithanya,
With NetBeans :
- hit F1 to get the Help screen;
- select the Search tab;
- enter the word junit;
- in the left pane, select *7 Creating a JUnit Test*;
- read the intructions displayed in the right pane. -
I work for a funeral home that has used Photoshop CS2 for years.
I work for a funeral home that has used Photoshop CS2 for years. Within this program, we were able to upload a background "file" with themes - i.e., spring flowers, fall leaves, etc. We would scan in pictures given to us by the deceased's family and "place" these on top of the background slide. We then used a software program, Nero, to create a slide show with music to play during the viewing. I've spent some time looking over the products and do not see one that will allow us to continue this very simple practice. I would appreciate the opportunity to speak to someone about this. Thank you.
Newer versions of Photoshop have new feature that CS2 does not have. However CC 2014 like CS2 does not have a slide show with sound feature. I have a Windows 7 Pro system. Have CS2, CS6, CC and CC 2014 installed. You need and Updated CS2 Installer to install CS2 on windows. CS2 is a 32 bit Photoshop there is no CS2 version that will run on new Mac computers their 64 Bit OS offered no 32bit options.
A $10 a month subscription will keep up to date with the latest Photoshop. Your other option is to buy CS6 for $700. CS6 is no longer supported it just marketed as is. -
Template for documenting Java classes
Could anyone suggest a website that provides a template for the correct format for documenting Java classes, and programs?
I have been told there is one on the Java website, but after hours of searching it I could not find the specific page for the template.
Thanks for the help!!!!!I assume u want to use the javadoc tool:
http://java.sun.com/j2se/javadoc/
http://java.sun.com/j2se/javadoc/writingdoccomments/index.html -
ConnectionException: Name space accessor for the java: name space has not b
Hi,
While running JUnti test cases I am getting the following. Can anyone help?
com.deere.u90.iaf.jdbc.connection.ConnectionException: Name space accessor for the java: name space has not been set. Possible cause is that the user is specifying a java: URL name in a JNDI Context method call but is not running in a J2EE client or server environment.
IAF JDBC Connection Management Framework exception in JNDI lookup of DataSource.
Source of configuration data = C:\starteam\JDPS - Software Delivery system\3123_CanDB\sds\WebContent\WEB-INF\classes\config\SDSConnectionManagerLocal.properties
Dynamic Properties = false
Property Name Suffix = SDS
Connection Pooling Enabled = true
JNDI Provider URL = corbaloc:iiop:wpuds90700.jdnet.deere.com:2811
DataSource Name = java:comp/env/jdbc/SDSDEVLDataSource
at com.deere.u90.iaf.jdbc.connection.ConnectionManager.initializeEnvironment(ConnectionManager.java:282)
at com.deere.u90.iaf.jdbc.connection.ConnectionManager.<init>(ConnectionManager.java:224)
at sds.view.intranet.servlets.SDSGenericServlet.getConnectionManager(SDSGenericServlet.java:192)
at junittest.ProgrammedECUAddComponentTest.setUp(ProgrammedECUAddComponentTest.java:75)
at junit.framework.TestCase.runBare(TestCase.java:125)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:392)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:276)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:167)
Thanks in advance,
DhirI also get the same problem, this is very tedious but if you edit the song somehow and re-save it then it will copy. Not sure what the problem is at all, tried contacting Apple about this to no avail.
-
How do I remove an alert for a calendar item that has long since been deleted? and yet goes off mysteriously, un-deletably, and un-editably every single ****** week !!
I have the same problem with my iPhone. I set up a recurring calendar event for every Thursday. That event is no longer happening during the summer, so I went in and chose one from the current month and selected Delete. Then it gve me two choices, one of which was to Delete All Future Events of this one, and that's what I chose. I figured, this way, I'll still be able to see the ones from the past, but won't have to see (or hear the alert) for the future ones.
The following week, my phone alerted me to the appointment, and even showed it on the initial screen, even though it wasn't in the calendar. I went in to the calendar and NOTHING was scheduled for that day. So why is this happening?
So I set up a new recurring event, for in the past, then went in and deleted all furture occurances, and it did the same thing... still alerted to an event that was no longer in the calendar.
I hope somebody else has found a fix, or at least a reason for why this is happening. -
Help needed in Finding Download location for Sun One Portal 7
Hi,
help needed for finding download location for Sun ONE Portal 7. I tried to find in Oracle Download page ,
http://www.oracle.com/us/sun/sun-products-map-075562.html, But unable to find.
Please share the link for download location.
I am totally new in Sun ONE Portal.
Thanks,
Edited by: 945439 on Oct 5, 2012 3:41 AMtry edelivery.oracle.com under sun products.
-
help need to update macbook pro operating system for school. has OS x 10.4.11 now
You can buy Snow Leopard 10.6 at this link,
http://store.apple.com/us/product/MC573Z/A/mac-os-x-106-snow-leopard -
Help needed on online theme creation for mobile phones
Hello everybody,
I want to create an web application which will create themes for different mobile phones. In that application end user can upload jpg/gif images of there choice and select the mobile phone make like Nokia and also the model number like 6030. After that they can create their desired theme by clicking on a button and also can download it.
My main problem is how to convert an image into a mobile phone theme (*.thm or *.nth or *.sis).
Can anybody give any suggestion on this matter?
Thanks in advance.
TanmoyHi everybody,
My main problem is how to convert an image into a mobile phone theme (*.thm or *.nth or *.sis).
Please give me any guideline that I can proceed.
Help needed.
Thanks in advance.
Tanmoy -
HELP: need to do version comparison for large no.of programs
i need to do version comparison for a large set of programs(approx.4000).anybody has any technique to do it fast,plz lemme knw.
Hi
try using this FM
/SDF/CMO_COMP_VERSION
AKB_VERSION_COMPARE
Regards
Shiva
Maybe you are looking for
-
How can I change annotation font in Preview?
Hi, To view PDF text files, I am using Preview, which seems to me far better than Adobe Pro. The only problem I have with Preview is the font size in "note" option in annotation function. It is just too small for me. Is there any way that I can chang
-
As I can control when a user leaves a program with the commando /n or other transaction code? Thanks.
-
Can't open Adobe Elements 10. Dialogue box states: Runtime Error.
Dialogue box further states: This application has requested Runtime to terminate it in an unusual way. I have attached a screen shot.
-
The track pad zoom feature doesn't work with the latest version of Firefox. It did on the previous version. I used to use Firefox as my default browser, but no longer use it very much due to the incompatibility of this version on my Macbook Pro.
-
Mail 5.3 OS X 10.7.5 Settings Problems
I am having a real problem with this version of Mail. 1. I cannot get my saved mail to show "To" who it was addressed. What is the setting I need? 2. In an attempt to find "To" I expanded the Headers. Now I cannot figure out how to Collapse the He