Force JAXB  to use custom base class on a per complexType basis?

I know I can <superClass="Blah"> in <globalBindings> to make all classes use "Blah" as a super class. Is there a way to get a complexType to use its own user defined base class?
I'd like the JAXB compiler to generate the following classes for the schema below:
What I'd like JAXB compiler to create:
class A extends MyUserDefinedAbstractA{}...
class B extends MyUserDefinedAbstractB{};For my own base classes:
abstract class MyUserDefinedAbstractA {}
abstract class MyUserDefinedAbstractB {}Based on the following schema:
<complexType name="A"> .... </complexType>
<complexType name="B"> .... </complexType>What is the alternative if I can't do the above? I'd like the generated classes to more than just hold data. I'd like them to have methods that can operate on the data as well.
Regards,
Monty
Edited by: CuriousJorj on Jul 9, 2008 6:33 AM
Edited by: CuriousJorj on Jul 9, 2008 6:35 AM

There are some Safari extensions that can block JavaScript by domain, but you'll have to search for them.

Similar Messages

  • Using Custom Java Class - WorkflowRegistry.xml

    I am using a custom java class in workflow. While executing I am getting errot -
    com.waveset.util.WavesetException: Class com.LdapGroupMod is not a WorkflowApplication
    It seems from documentation that I need to add this in workflowregistry.xml file. I added the same like given below -
    <WorkflowApplication name='Workflow Name'
    class='com.LdapGroupMod'>
    <Comments>Nothing Here</Comments>
    </WorkflowApplication>Even tried restaring the application server but I am still getting same error. Any idea what needs to be done here? or I am missing smething?

    Well the first thing would be to read the workflowRegistry.xml file. The header talks about internal and external applications and so on. The crucial part is that any application registered must implement the WorkflowApplication interface (which I guess your class dont do)
    I gave up. I am totally baffled by the documentation. I admit it.
    What I did was to create an Script action in an Activity where the script used Xpress to invoke my class. It seems to work.

  • Creating users using custom made class/UI in portal

    This is what i have to achieve,
    I need to create an interface in portal which will,
    1. Create users in the OID where the users extend a class which i have created in OID with my custom attributes.
    2. Then create them in portal and then assign them to default groups which will depend on a parameter in the user creation form.
    From reading various documents in Metalink and OTN i have understood that the wwsec_api package allows us to do all this except that it is all for a user which will extend a predefined set of classes.
    So i decided to do this
    1.Make entries into the OID using the DBMS_LDAP package using commands like
    emp_vals(1) := p_first_name;
    DBMS_LDAP.populate_mod_array(emp_array,DBMS_LDAP.MOD_ADD,'firstName',emp_vals);
    retval := DBMS_LDAP.add_s(emp_session,emp_dn,emp_array);
    2.Fire the wwsec_api.add_portal_user to create the portal user and then activate and assign him to the default group after running the provsyns.sql file
    The problem i face is that i get errors when i execute the said procedure from any other schema other than portal.
    When the procedure is recreated in the portal schema and executed it works fine.
    So i decided to create the entire package in the portal schema itself.
    Now the problem i face is that the proc would execute fine on the sql prompt but fail when called from the form created in portal based on this procedure.
    I found out that the execution fails when the wwsec_api.xxx calls are made.
    The exceptions are not specific and have the error code 1 => user defined exception
    To have a workaround for this i directly inserted into the wwsec_person$ table with no values for the GUID column( I know this is not recommended but i gave it a try)
    The insert worked fine but i still had to set his default group.I tried updating the rows for the user to set the default_group column but there seems to be a trigger on it which causes the update to fail.
    Also when i check up the wwsec_person$ table there two rows for each user that i created ,one without the GUID/default_group and the other with the GUID/default_group.I guess this is because of the trigger.
    If i try using the wwsec_api.set_defaultgroup api, the proc fails.
    It is quite interesting to note that all the steps mentioned above, grant access to the user to portal.
    But the place it fails is while setting the default group for the same which is of prime importance to me.
    Also because I am inserting directly into the tables i have also to delete them when the user is deleted, this is because i again cannot execute the delete_portal_user in the wwsec_api package from the browser.
    Surprisingly the wwsec_api.create_list function works fine.
    Once i have created the users all the manipulations like changing group memberships etc become easy as i just modify the required details in the OID itself.
    What i need is a proper/safe way to do what i have just mentioned above.
    Please help out ASAP as this is urgent.
    Regards,
    KK

    Based on your requirements, you should go about things a little differently...
    You have written your custom DBMS_LDAP code to create and populate the user entry including your custom objectclasses - good.
    You don't need to create the user profile in the Portal schema at all.
    To set the default group, just set the orcldefaultprofilegroup attribute in the user entry in OID. This should be set to the DN of the default group.
    When the user logs on, his profile will automatically be created, and the default group will also sync up with the user entry in OID (patch required - 2830252).
    Also, you should have DIP provisioning running so that updates to the orcldefaultprofilegroup attribute in OID are subsequently conveyed to the portal schema. It will also take care of automatically deleting the user profile from the portal if the user is removed from OID.
    Please see the Portal Configuration Guide on how to enable and activate the Directory Integration Platform (DIP) provisioning integration between OID and Portal

  • JAXB::repeted use of attribute="class"

    i am trying to produce java object using jaxb for XSD, I even tried customise jaxb,but its only working for one class attribute. can anyone help me how to get around this problem.
    below is a part of Schema.
    <?xml version="1.0" encoding="UTF-8"?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <xsd:element name="Descriptor">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element ref="bridgeID" maxOccurs="unbounded"/>
    <xsd:element ref="resourceConn" maxOccurs="unbounded"/>
    <xsd:element ref="conn" maxOccurs="unbounded"/>
    </xsd:sequence>
    <xsd:attribute name="name" type="xsd:string" use="required"/>
    </xsd:complexType>
    </xsd:element>
    <xsd:element name="bridgeID">
    <xsd:complexType>
    <xsd:attribute name="name" type="xsd:string" use="required"/>
    <xsd:attribute name="class" type="xsd:string" use="required"/>
    </xsd:complexType>
    </xsd:element>
    <xsd:element name="resourceConn">
    <xsd:complexType>
    <xsd:attribute name="name" type="xsd:string" use="required"/>
    <xsd:attribute name="class" type="xsd:string" use="required"/>
    </xsd:complexType>
    </xsd:element>
    <xsd:element name="conn">
    <xsd:complexType>               
    <xsd:attribute name="class" type="xsd:string" use="required"/>
    <xsd:attribute name="host" type="xsd:string" use="required"/>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>
    ERROR
    [ERROR] Attempt to create a property having the same name as the reserved word "
    Class".
    line 81 of bridgedescriptor.xsd
    [ERROR] Attempt to create a property having the same name as the reserved word "
    Class".
    line 162 of bridgedescriptor.xsd
    [ERROR] Attempt to create a property having the same name as the reserved word "
    Class".
    line 212 of bridgedescriptor.xsd

    Attempt to create a property having the same name as the reserved word "
    Class".
    Select an attribute name other than class.
    <xsd:attribute name="class" type="xsd:string" use="required"/>

  • Use custom AS  Class in MXML

    Hi,
    I have a custom class which extend button, and parameters is
    needed in constructor.
    when I try to put the class in MXML as visual compoents such
    as <mx:customButton />
    ArgumentError: Error #1063: Argument count mismatch on ____
    Expected 0, got 1.
    Appearently the parameters for the constructor is missed. but
    how can i pass the parameters in the tag?
    Thanks in advances.
    C.

    You can't use arguments on the constructor in MXML. Aside of
    anything else, there's no way to pass them. Your options are - if
    you want to use the same component from AS and really want those
    constructor arguments, is to make them optional:
    public customButton(myArg:String=null)...
    The attributes specified in the MXML will be assigned to
    public properties by the same name once the instance has been
    created. So if you want to be able to say:
    <mx:customButton myArg="hello"/>
    You'll need to do something like:
    public class customButton extends Button{
    public var myArg:String;
    By the way it's conventional to use uppercase to start the
    name of a class, and lowercase to start the name of an instance. So
    it would be conventional to call your class CustomButton.
    Tim

  • Alternative to f:verbatim to use custom DIV classes?

    I have some pages with panelCustomizable facets containing simple HTML like so:
    <f:verbatim>
    <div class="tableClass">
    <table cellpadding="0" cellspacing="0">
    <tr>
    <td colspan="2"><h2>TABLE TITLE</h2></td>
    </tr>
    </f:verbatim>
    At runtime, in "*Edit mode*", when I try to "*Add Content*" - the page hangs with a message about "stopping long-running script" which point to core11.1.1.3.js line 4569
    By some trial and elimination - i think this is due to usage of f:verbatim tag- so whats the alternative?
    I could use included HTML snippets stored off the file system (as shown in Avitek sample) but the data will eventually be dynamic and coming from data controls - to which i want to add some formatted text

    Yannick - you are so right.
    I once added some plain text in Design view which automatically got wrapped in <f:verbatim> and I assumed all plain HTML needed it.
    Now this leads me to new exceptions which I will try to fix
    java.lang.NullPointerException
         at oracle.jbo.uicli.binding.JUMethodIteratorDef$JUMethodIteratorBinding.hasRefreshParametersChanged(JUMethodIteratorDef.java:541)
         at oracle.jbo.uicli.binding.JUMethodIteratorDef$JUMethodIteratorBinding.executeQueryIfNeeded(JUMethodIteratorDef.java:334)
         at oracle.adf.model.binding.DCBindingContainer.internalRefreshControl(DCBindingContainer.java:3185)
         at oracle.adf.model.binding.DCBindingContainer.refresh(DCBindingContainer.java:2845)
         at oracle.adf.controller.internal.binding.TaskFlowRegionController.doRegionRefresh(TaskFlowRegionController.java:227)
         at oracle.adf.controller.internal.binding.TaskFlowRegionController.refreshRegion(TaskFlowRegionController.java:119)
         at oracle.adf.model.binding.DCBindingContainer.internalRefreshControl(DCBindingContainer.java:3143)
         at oracle.adf.model.binding.DCBindingContainer.refresh(DCBindingContainer.java:2845)
         at oracle.adf.controller.internal.binding.TaskFlowRegionController.doRegionRefresh(TaskFlowRegionController.java:227)
         at oracle.adf.controller.internal.binding.TaskFlowRegionController.refreshRegion(TaskFlowRegionController.java:119)
    Edited by: new_to_webcenter on 24-Jan-2011 02:42

  • Creating data dictionary type using custom java class

    Hi Experts,
    I have a situation involving the TableSorter mechanism as described here:
    In order to do my sorting correctly, I've created my own Java class implementing the Comparable interface. Based on this class, I need to define my own data dictionary type to be used in a context/table.
    However, I cannot se how this could be achieved as standard Data Dictionary elements can only be based on simple built-in types. Any ideas?
    Kind regards,
    Rasmus Røjkjær Ørtoft

    Hi,
    have you tried to use the following steps while creating your attribute
    1) Right click on the context
    2) New->Attribute
    3) Manually-> Provide a name for the attribute
    4) Browse->Select java native type and select your class
    regards
    Ayyapparaj

  • How to use a particular GWIA on a per user basis

    Have recently had to enable the /flatforward and /realmailfrom switches on our primary GWIA, with interoperability with another in-house mail system. This has caused some "reply looping" issues from our groupwise users when then enable a "Out of office" rule to notify people they are not in the office. There is only one destination domain (internal.companyname.com) that we need the /flatforward & /realmail switches impletmented for.
    I think we can get around the problem with a 2nd GWIA. We turn off the /flatforward & /realmail switches on our primary GWIA. On the 2nd GWIA we enable those switches.
    Now I just need to figure out if there is a way to either
    1. Send all mail from GroupWise to internal.companyname.com thru the 2nd GWIA or
    2. All mail sent from a particular GW user (those who have a foward rule to internal.companyname.com) needs to be send thru the 2nd GWIA.
    Is there any easy way to do that? I know I can change each user's mail to in the forwarding rule from [email protected] to 2ndGWIA:[email protected], but I would rather be able to do it thru C1 or on admin utilitily, rather then having to login to each users GW mailbox to change the forwarding rule. Thanks for any help.

    On 26.02.2012 20:06, Mikemad wrote:
    > Is there any easy way to do that? I know I can change each user's mail
    > to in the forwarding rule from [email protected] to
    > 2ndGWIA:[email protected],
    That's the only way there is.
    CU,
    Massimo Rosen
    Novell Knowledge Partner
    No emails please!
    http://www.cfc-it.de

  • Flex/AS3 Best way to construct a derived class instance from an existing base class instance?

    What is the best way to handle the instantiation of a derived class from an existing base class.
    I have a base class which is being created via remote_object [RemoteClass alias] from the server.   I have other specialized classes that are derived from this baseclass, but serialization with the server always happens with the base class.     The base class has meta data that defines what the derived class is, for example
    [RemoteClass (alias="com.myco...')]
    public Class Base
         public var derivedType:String;
         public function Base()
    public Class Derived extends Base
         public "some other data"
         public function Derived()
    In my Cairgorm command which retrieves this object from ther server I want to do this:
    public function result (event: Object):void
        var baseInstance:Base = event.result;
         if (baseInstance.derivedType = "derived")
              var derivedInstance:Derived = new Derived( baseInstance );
    What is the most efficient way of doing this?   It appears to me that doing a deep-copy/clone and instantiation of the derived class is pretty inefficient as far as memory allocation and data movement via the copy.

    Thanks for the assistance.  Let me try to clarify.
    MY UI requires a number of composite classes.    The individual components of the composite classes are being transfered to/from the server at different times depending upone which component has changed state.    The construction of the composite classes from the base class happens in my clients business logic.
    Composition happens in a derived class; but server syncronization happens using the base class.    When I recieve the object from Blazeds through the remote object event, it is in the form of the base class.  I then need to instantiate the derived class and copy the elements of the base class into it (for later composite construction).   And likewise when sending the base class back to the server, I need to upcast the derived class to its base class.   But in this case just a mere upcast does not work.  I actually need to create a new base class and copy the attrbutes into it.  I believe this is limitation of how remoting works on Flex/AS3.
    My question is, what is the best way to turn my base class into it's derived class so further composite construction can take place.   The way I am currently doing it is to create a  load method on the base class, that takes the base class as on argument.  The load function, copies all of the instance attribute references from the base class to the target class.
    public Class Base
         public function Base()
         public function load(fromClass:Base)
        {  //  copy the references for all of the instance attributes from the fromClass to this class }
    Then,  after I recieve the base class from the server.   I create a new derived class and pass the base class into the load function like this:
                for (var i:int=0; i < event.result.length; i++) {
                    var derived:Derived = new Derived();
                    derived.load(event.result[i]);
    The drawbacks of this approach is that it now requires 2 extra instance creations per object serialization.   One on recieving the object from the server and one sending it to the server.    I assume copying references are pretty efficient.  But, there is probably some GC issues.     The worst of it is in code maintenance.   The load function now has to be manually maintained and kept in sync with the server class.
    It would be interesting to hear how others have solved this problem.      The server side is an existing application with around 2M LOC, so changing the code on the server is a non-starter.
    Thanks for your help.

  • Use of the class CL_PROXY_BASIS:::

    Hi all,
             can any one explain the use of the class CL_PROXY_BASIS ?

    Here the Basis release is 700 for the CRM system and as per my discussion with the Basis team it has to be upgraded to 710 using Support pack.
    However the class CL_PROXY_CLIENT as mentioned by you does not exsist.But as stated by you Nevertheless proxy classes generated in former releases using basis class CL_PROXY_BASIS are still working.Hence I think that the class CL_PROXY_BASIS iwill serve my requirement. The class CL_PROXY_BASIS is the old basis class of generated proxy classes for "service consumers".Here i am taking this class as a super class to build an object in order to talk to third party systems. Please provide your valuable input whether my approach is correct or not?

  • Error Smart Form Collections using various  Form Classes

    I want to add a Smart Form into a collection contianing two PDS's . 
    Before I add the Smart Form the collection works.
    The Collection is using customized form-class ZLSO_PWB_COVER and one PDF #1  is using standard form-class LSO_PWB_COVER and PDF #2 is using standard form-class LSO_PWB_CURRI_INFO.
    After I add the Smart Form into the collection, the process errors out.  
    Any ideas why by adding the Smart Form I would get an error?

    Solved myself.

  • What is customer  processin class..and its range...

    Please help me.....
    Customer  processing class be setup in the Range below.....
    60-70
    80-90
    70-80
    90-100.

    Hi Skiranth,
    By using customer processing classes, you can be able to group wage types in a different grouping than the standard ones. By this way, you can use VWTCL decision operation in your rules based on the processing class you maintain.
    E.g. Let's say you wanna group the wage types as being company-based and personnel-based. Then you maintain processing class 90 of all company-based wage types with 1 and all personnel-based wage types with 2. Then in a rule, you can process these wage types according to this grouping as follows:
    D  VWTCL 90
    1 ....
    2 ....
    ERROR
    Regards,
    Dilek

  • Is there a way to turn off "automatically declare stage instances" on a per-symbol basis?

    This would be an incredibly useful feature, and would eliminate 99% of those "1152: A conflict exists with inherited definition... in namespace public".
    Generally, this option is off for my main flash document, but in individual "lesson" swfs that I load into it, most of the content in those are not class-backed, so I leave "automatically declare stage instances" on at the document level (currently the only level to specify this option) for those lesson swfs.
    However, in one of those "lesson" swfs, there are two library symbols that I would like to have the same base class.  They have the same child instances with the same names, just with different sizes (e.g. one is a main idea with two fields, the other is the same thing, but the fields are bigger).  When I set both of these to use the "MainIdea" class as thier "base class" (defined in an external SWC, but not relevant here), I get the confict error, because Flash tries to generate it's own class for each object (inheriting from the base class I specified), but that base class already has those identifiers defined.
    So, ideally, I would like to be able to stop flash from trying to atomatically declare stage instances on those particular symbols that specify a base class.  In fact, it makes sense to me that for any symbol that's given an explicit base class, Flash Authoring should either never try to automatically declare stage instances (since the presense of a base class would imply the presense of pre-defined instance variables) or should give the developer the option at the symbol-level, so that this conflict would not occur.  Even when it does occur, it should be a warning rather than an error, since Flash Authoring could simply not re-define the variable if it already exists in the base class.
    A potential work around, which doesn't even work and which defeats the purpose of using a single shared base class for multiple symbols, is to actually define a unique class file for each symbol (which both inherit from the base class), so that Flash doesn't try to automatically declare stage instances for it, but Flash still tries to automatically generate stage instances.
    Final recommendation: I really think Flash would be much better off if the "automatically declare stage instances" option would resolve the conflicts itself by simply not declaring already-declared properties for symbols that use a defined class or base class.  Instead, it should just show a warning saying "I tried to automatically define a property for this stage instance, but it's base class already defined it, and that's ok!"

    Have a look at this YouTube movie, explaining how to replace the simple action by a oneliner standard action to prevent the playhead of being released:
    http://www.youtube.com/watch?v=M3nKi-DB6Fw&feature=plcp   sorry, but I cannot use the link button (to have a meaningful text) in Chrome.
    If you prefer readng:
    http://blog.lilybiri.com/why-choose-standard-over-simple-action
    Lilybiri

  • How to cause POJO data control to use custom base ViewObject class

    ADF 11.1.1.4
    We have a POJO data control that displays data in a table.  We can filter the table using the column filters and this performs in-memory filter.   If an exception occurs I see that it is using a ViewObject for the in-memory filtering because this shows up in the stack trace.
    oracle.jbo.server.ViewObjectImpl.rowQualifies(ViewObjectImpl.java:2811)
    It uses DCDataVO which extends ViewObjectImpl
    We have a Custom base view object defined that all our normal view objects inherit from, defined in Project Properties/BC/Base Classes
    Is there any way to make the DCDataVO also extend from  our Custom View Object that inherits from ViewObject so that we can override methods?  For example if I wanted to customize the rowQualifies method.
    In DCBeanDataControl.Java I see where it actually gets created.
    vo = DCDataVO.createViewObjectFromDef(vdef, this, getApplicationModule());

    So you have already overridden then rowQualifies() method in your custom base View Object ? Are you calling super in that ?
    Cheers
    AJ

  • Explizit using methods of base class

    when using a base class reference from an abstract class A and creating an object of subclass B
    A ref_A = new B();
    assuming we have implemented the method m() in A and B, then
    ref_a.m()
    calls Method m of subclass B
    (dynamic binding, fine)
    Is there a possibility to force explicitely the call of method m of superclass A.
    (i mean not a call from Method m in B with super())

    are you absolutely sure ?I am sure. Perhaps you are thinking of C++ (and if you're not, I am!) where you can write: ref_A.A::m(),
    but there's no way from the client code to do that in Java. If you really need to do this, your
    design of A should reflect it:
    public abstract class A {
        public final void mOldSchool() {...}
        public void m() { mOldSchool(); }
    public class B extends A {
        public void m() {...}
    }I agree with Kayaman, though: question your design. In the abstract, this is a shakey design.

Maybe you are looking for

  • Flash Player Crashes in QT linux platform

    Hi I have written a small web browser code, which will invoke the youtube  site using NPAPI plugin support. I successfully installed the flash  player. In windows as well as Linux machines . In Windows - I can able to compile the program as well as i

  • Import request to another system

    Dear experts, I have created a request with a number of sap objects, and i need to transport it to another company. In this company there is no basis-person to help me, so any help from you will be much appreciated. Is it necessary to have some kind

  • Regarding sap nstallation master startup

    i donot know installation of the IBM jdk1.4.2_18amd64.rpm when i trying executing command rpm -i IBM jdk1.4.2_18amd64.rpm from terminal. it saying that libxp.so.6 is required so where it can be download my system configuration is os: RHEL 5.0 process

  • JAAS Login Module Redirect to Iview

    I am having some difficulty getting a redirect to an Iview to work in our custom JAAS Login Module.  This code works in our current production environment, using Portal version EP6.0 SP2 Patch 35: callbacks[0] = new com.sap.security.api.logon.WebCall

  • Corrupted animation with duplicate stage elments.

    My animation seems to have corrupted, duplicating all the stage elements and putting all the actions code into one long single line of code. It runs OK in preview, and if I publish as standard, but if I publish as static html the animation is corrupt