473,809 Members | 2,695 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to create a java "extends"/"implements " clause with xsd file and castor?

I hate to start the email with the "I'm new to this clause", but there
it is. I am understanding how the xsd files work and how the castor
SourceGenerator works. What I am not understanding is how the binding
of a complexType to another package in java works.

Basically I have in my .xsd file:
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefa ult="qualified" attributeFormDe fault="unqualif ied">
..
..
..
<xs:element name="my-Operation">
<xs:annotatio n>
<xs:documentati on>Root element</xs:documentatio n>
</xs:annotation>
<xs:complexType >
<xs:complexCont ent>
<xs:all>
<xs:element ref="my-Login" minOccurs="0"/>
<xs:element ref="my-Logoff" minOccurs="0"/>
</xs:all>
</xs:complexConte nt>
</xs:complexType>
</xs:element>

(I understand I am missing the binding stuff, but I feel as though
what I have attempted is completely wrong so I will save you all the
pain...)

What I would like to get is:
public class MyOperation implements com.myother.pac kage.MyInterfac e,
java.io.Seriali zable
{
....
}

Heck, at this point, I would forget the interface and use another
class instead:
public class MyOperation extends com.myother.pac kage.MyClass
implements java.io.Seriali zable
{
....
}
The extends/implements clauses are what I can not figure out how to
generate. I am also unsure of how the xs:schema tag would change for
binding. Please help, all comments/responses are generously
appreciated.
Thanks,
Stacey
Jul 20 '05 #1
0 2724

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
7876
by: sayoyo | last post by:
Hi, Is there some way that we can reuse a thread by replacing the runnable object of the thread? like a thread is not "alive" anymore, then we remove the runnable object(is it possible????) and then run it again. Thanks you very much Sayoyo
0
2373
by: Bo | last post by:
Hi The rectangles I draw in paint() always hide underneath the "Select one to launch" screen, while the string "Hello World" is drawn over the "to launch" screen. What am I doing wrong? jdk 1.4, midp 2.0 public class myCanvas extends Canvas{
1
1854
by: Christian Welzel | last post by:
Hi there! Currently i'm thinking about how to solve this problem: if (t3lib_div::int_from_ver(phpversion())<5000000) { // php4 class tx_lib_object extends tx_lib_selfAwareness {...} // } else { // php5
18
2598
by: pradeep84 | last post by:
hi all, i'm using the following code and i'm getting exception in thread "main" java.lang.nullpointerexception at the line which is in bold. help me to solve this problem import java.applet.*; import java.awt.*; import java.io.*; import javax.swing.*; import java.sql.*;
2
8739
by: HaifaCarina | last post by:
i have this unfinished java program and i can't figure out what is the problem.. please help... /** * @(#)Answer3.java * * * @author * @version 1.00 2008/1/17
2
2155
by: bugmenot2 | last post by:
Hi, i have a problem with my program not compiling. It says "(" Expected on line 31, when there is in fact a bracket there. Thanks in advance. import java.awt.*; import javax.swing.*;
2
2653
by: Richard Maher | last post by:
Hi, Can someone please tell me the strategy(ies) used by Java (the Security Manager or whatever) to determine if a given IP address conforms to the definition of the codebase from which an applet was retrieved? For example, if an Applet was loaded from mycluster.mydomain.com, and "mycluster" was a cluster alias that was using DNS load-balancing (or round-robin or a.n.other distribution technique) to distribute client connections among...
2
3366
JustRun
by: JustRun | last post by:
Hi, I'm new to Java "I loved it" and i'm stuck with a Chart Applet i'm trying to give the pie chart its values from my database. Actually the database class works when i tested it in main method buut when i put it inside the applet it gives me this "java.security.AccessControlException: access denied (java.util.PropertyPermission file.encoding read)" Also for the pie chart itself, it works fine as an application, but when i put it in...
0
9602
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10639
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10376
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10383
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10120
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9200
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7661
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5688
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4332
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.