How to change generated class name when create binding files.

I have a dtd file, which has lines like this:
<!ELEMENT rights (
     %plain-text;
     | rights.owner
     | rights.startdate
     | rights.enddate
     | rights.agent
     | rights.geography
     | rights.type
     | rights.limitations
     )*>
     <!ELEMENT rights.type (%plain-text;)*>
when i use xjc to create binding files, I got an error:
trying to create the same field twice: value.
I suspect that the reason is because the name of rights and rights.type.
so, i'd like to know how can i control the generated class name. for example, i want to generate a class RightTypeEle for element rights.type. how can do that?
btw, i use latest version of jaxb.
Thanks in advance.

hi Vincentq,
What function are you using to create the attachment?  Have you looked at SAP_WAPI_ATTACHMENT_ADD?
Cheers,
Sue

Similar Messages

  • How to change all class name on my java program?

    I want to change class name like this. This class name changes into a, b, c, d, e,.....
    MyClass m = new MyClass(); ------> a m = new a();
    MyClass2 m2 = new MyClass2(); ------> b m2 = new b();
    before I saw this code.
    I think it is can be using tool or program.
    anybody know?
    thanks in advance.

    Google for Java obfuscator

  • How to change the package name for a msg class

    Can anybody tell me how to change the package name for a message class.
    and how will it effect in the rerport?
    thanks in advance
    kp

    >>and how will it effect in the report?
    You wouldn't see any direct effect on the Report.. But if you transport the report to QA & leave the Message class in Dev, it might result in syntax issues & you will not be able to execute the report. Just ensure that both of them get transported to QA & you will be fine.
    ~Suresh

  • How to get UTF-8 encoding when create XML using DBMS_XMLGEN and UTL_FILE ?

    How to get UTF-8 encoding when create XML using DBMS_XMLGEN and UTL_FILE ?
    Hi,
    I do generate XML-Files by using DBMS_XMLGEN with output by UTL_FILE
    but it seems, the xml-Datafile I get on end is not really UTF-8 encoding
    ( f.ex. cannot verifying it correct in xmlspy )
    my dbms is
    NLS_CHARACTERSET          = WE8MSWIN1252
    NLS_NCHAR_CHARACTERSET     = AL16UTF16
    NLS_RDBMS_VERSION     = 10.2.0.1.0
    I do generate it in this matter :
    declare
    xmldoc CLOB;
    ctx number ;
    utl_file.file_type;
    begin
    -- generate fom xml-view :
    ctx := DBMS_XMLGEN.newContext('select xml from xml_View');
    DBMS_XMLGEN.setRowSetTag(ctx, null);
    DBMS_XMLGEN.setRowTag(ctx, null );
    DBMS_XMLGEN.SETCONVERTSPECIALCHARS(ctx,TRUE);
    -- create xml-file:
    xmldoc := DBMS_XMLGEN.getXML(ctx);
    -- put data to host-file:
    vblob_len := DBMS_LOB.getlength(xmldoc);
    DBMS_LOB.READ (xmldoc, vblob_len, 1, vBuffer);
    bHandle := utl_file.fopen(vPATH,vFileName,'W',32767);
    UTL_FILE.put_line(bHandle, vbuffer, FALSE);
    UTL_FILE.fclose(bHandle);
    end ;
    maybe while work UTL_FILE there is a change the encoding ?
    How can this solved ?
    Thank you
    Norbert
    Edited by: astramare on Feb 11, 2009 12:39 PM with database charsets

    Marco,
    I tryed to work with dbms_xslprocessor.clob2file,
    that works good,
    but what is in this matter with encoding UTF-8 ?
    in my understandig, the xmltyp created should be UTF8 (16),
    but when open the xml-file in xmlSpy as UTF-8,
    it is not well ( german caracter like Ä, Ö .. ):
    my dbms is
    NLS_CHARACTERSET = WE8MSWIN1252
    NLS_NCHAR_CHARACTERSET = AL16UTF16
    NLS_RDBMS_VERSION = 10.2.0.1.0
    -- test:
    create table nh_test ( s0 number, s1 varchar2(20) ) ;
    insert into nh_test (select 1,'hallo' from dual );
    insert into nh_test (select 2,'straße' from dual );
    insert into nh_test (select 3,'mäckie' from dual );
    insert into nh_test (select 4,'euro_€' from dual );
    commit;
    select * from nh_test ;
    S0     S1
    1     hallo
    1     hallo
    2     straße
    3     mäckie
    4     euro_€
    declare
    rc sys_refcursor;
    begin
    open rc FOR SELECT * FROM ( SELECT s0,s1 from nh_test );
    dbms_xslprocessor.clob2file( xmltype( rc ).getclobval( ) , 'XML_EXPORT_DIR','my_xml_file.xml');
    end;
    ( its the same when using output with DBMS_XMLDOM.WRITETOFILE )
    open in xmlSpy is:
    <?xml version="1.0"?>
    <ROWSET>
    <ROW>
    <S0>1</S0>
    <S1>hallo</S1>
    </ROW>
    <ROW>
    <S0>2</S0>
    <S1>straޥ</S1>
    </ROW>
    <ROW>
    <S0>3</S0>
    <S1>m㢫ie</S1>
    </ROW>
    <ROW>
    <S0>4</S0>
    <S1>euro_€</S1>
    </ROW>
    </ROWSET>
    regards
    Norbert

  • HT1428 How to change the account name in Mac OS X via a command line. I did a type-o on the account name. So instead of it saying "Company" it says "Comany"  for the account logon.

    How to change the account name in Mac OS X via a command line. When I created the account I mistyped the name. I have a management suite where I can execute remote scripts. I would like to run a script that changes the name from oldname to newname.
    None of these Macs have been used currently.
    Thank you,
    Brian

    If user account shortname, see Changing user account shortname

  • How to change the default JRE when there are several version of JRE in Sys

    How to change the default JRE when there are several version of JRE in System?
    i have installed j2sdk1.5.0 then installed j2ee1.4,then installed Weblogic6.1 which use jdk1.3
    Now the JRE is jdk1.3\bin
    When run class that was compiled with jdk1.5,throw:
    java.lang.UnsupportedClassVersionError
    How can i change the jre to 1.5?

    There is a workaround to move from 1.5 version to the older 1.4 version. But this could be specific to the browser setting the JRE version.
    Excerpts from sun docs:
    However, a user can still run older versions. To do so, launch the Java Plug-in Control Panel for the older version, then (re)select the browser in the Browser tab.
    Example:
    Assume you are running on Microsoft Windows with Microsoft Internet Explorer, have first installed version 1.4.2, then version 5.0, and you want to run 1.4.2.
    Go to the j2re1.4.2\bin directory where JRE 1.4.2 was installed. On a Windows default installation, this would be here: C:\Program Files\Java\j2re1.4.2\bin
    Double-click the jpicpl32.exe file located there. It will launch the control panel for 1.4.2.
    Select the Browser tab. Microsoft Internet Explorer might still appear to be set (checked). However, when 5.0 was installed, the registration of the 1.4.2 JRE with Internet Explorer was overwritten by the 5.0 JRE.
    If Microsoft Internet Explorer is shown as checked, uncheck it and click Apply. You will see a confirmation dialog stating that browser settings have changed.
    Check Microsoft Internet Explorer and click Apply. You should see a confirmation dialog.
    Restart the browser. It should now use the 1.4.2 JRE for conventional APPLET tags.
    Details are here
    http://java.sun.com/j2se/1.5.0/docs/guide/deployment/deployment-guide/jcp.html
    My system (Windows XP) has the version 1.5_09 set as the default. However i just installed JRE 1.5_06 and would like to revert back to _06 as the default JRE..
    Will update if i find more information

  • How to change "_review" at the end of the file name in Acrobat XI Pro

    For our business workflow, we need to be able to change the "_review" at the end of the file name when creating shared-review PDFs. Older versions of Acrobat Pro allowed me to customize the ending of the file name before it was saved as a shared review PDF. For example, when we send the initial review PDF, we append "_Review"; when we send a mark-up PDF (to capture changes before the next revision), we append "_Mark-Up". However, the XI Pro version does not (it automatically appends "_review" and doesn't give an option to change it).
    Is there something I need to configure in my settings to allow file name changes for shared-review PDFs?

    So why did you said that in your first posting? My glass sphere is out for cleaning...
    Instead of type c use strings and add spaces until they have the appropriate length.
    loop at outtab assigning <pout>.
      while strlen( <pout>-val ) < 135.
        concatenate <pout>-val `` into <pout>-val.
      endwhile.
    endloop.

  • How to change data source name and context root during deployment

    Hi,
    Env:
    WLS 10.1.3
    JDev 11.1.1.6
    Hudson
    I need to deploy two instances of my ADF application on the same development enviroment. We are using Hudson to deploy. My question is how to change data source name and application context root before second deployment.
    Kuba

    I don't believe there is an inbuilt facility to do this.
    Previously how I've done this is when checking files out using Hudson jovs, before the build I then use an Ant extension called XmlTask (http://www.oopsconsultancy.com/software/xmltask/) to modify the required XML files.
    Can I ask why you're doing this in the first place please? Multi-tenancy? 2 versions of the same app?
    CM.

  • How to Change Journal Header name to Custom Header Name while GL Importing?

    Hello Experts,
    I am in situation where customer wanted to keep their own journal header naming conventions to imported journals in Oracle GL for custom Journal sources.
    As I know while importing journals, Oracle Creates the Journal Name based on the below mentioned logic.
    "Journal Import creates a default journal entry name using the following format:
    (Optional User-Entered REFERENCE4)(Category Name)(Currency)
    (Currency Conversion Type, if applicable)
    (Currency Conversion Rate, if applicable)
    (Currency Conversion Date, if applicable) (Encumbrance Type ID, if applicable)
    (Budget VersionID, if applicable). If you enter a journal entry name,
    Journal Import prepends the first 25 characters of your journal entry name to
    the above format"
    But then How it is possible to only allow journal header Name to be used present in REFERENCE4 excluding all other string provided by Oracle? Instead of using omitted string custmoer wanted to keep their own parameters. Example - REFERENCE4.A.B.C etc.
    Is it possible to solve this using seeded setup or modifying some hook packages or anything else?
    As far as I know there can be one workaround to be use of updating journal header name after journal import being completed successfully for custom journal source. But only fear is Oracle doesnt allow updating the base table without API. Am I rght?
    So it would be really great if anyone of you can suggest the best solution or best possible workaround.
    Thanks

    Duplicate - How to Change Journal Header name to Custom Header Name while GL Importing?

  • Invalid change to class error when deploying EJB

    We have EJBs that were built by Webgain Visual Cafe and successfully deploy
    to WLS 5.1. We then use the WLE EJB Deployer Tool to build WLE container
    classes and deploy the same EJBs in WLE 5.1.
    One EJB does not deploy in WLE. The ULOG error message is:
    133929.EA-LAWSTUC!JavaServer.517: main: IJENGINE_CAT:150: ERROR: Invalid
    change to class service.Request
    133929.EA-LAWSTUC!JavaServer.517: main: EJB_CAT:29: ERROR: While deploying
    jar ServiceEJB : com.beasys.weblogic.classloader.RedeploymentException:
    ERROR: Invalid change to class service.Request
    133929.EA-LAWSTUC!JavaServer.517: Finalizer: IJENGINE_CAT:152: INFO: Closing
    jar C:\aj\ServiceEJB_WLE.jar
    Does anyone know what can cause an "invalid change to class" error when
    deploying to WLE 5.1? Especially since the EJB deploys successfully in
    WLS.
    Carl Lawstuen

    Reason: database keeps a reference of the class in JAVA$CLASS$MD5$TABLE table. This table keeps a refrence to all java classes loaded in database, and is present in each schema you deploy classes. That's the reason why if you change the application module name, you can load this classes. It instead keeps a reference if you use DROP JAVA CLASS command to drop a java class from de database. Use DROP JAVA command to clear the reference of the dropped classes when dropping it.
    You can see this table as a class dictionary of the database, and you don't have to handle this records manually.

  • Change of Class Name

    Here is an elementary dialog program that works perfect
    import javax.swing.JOptionPane;
    public class J004aAddDialog {
    public static void main(String[] args) {
    String firstNumber,
    secondNumber;
    int number1,
    number2,
    sum;
    firstNumber =
    JOptionPane.showInputDialog( "Enter first integer");
    secondNumber =
    JOptionPane.showInputDialog( "Enter second integer");
    number1 = Integer.parseInt( firstNumber);
    number2 = Integer.parseInt( secondNumber);
    sum = number1 + number2;
    JOptionPane.showMessageDialog ( null, "The sum is " + sum, "Results",
    JOptionPane.PLAIN_MESSAGE );
    System.exit ( 0 );
    2. Now, I change the class name to J004aAdddialog20090204 and save and compile accordingly
    javac J004aAddDialog20090204.java
    but it gives errros on running.
    3. What has gone wrong ?? The class name rules only say that it cannot begin with a digit and shouldn,t have spaces..

    flounder wrote:
    The JLS says this:
    Names of class types should be descriptive nouns or noun phrases, not overly long, in mixed case with the first letter of each word capitalized
    but it does not specify any restriction on length. I just tested a file with a name ~ 60 chars long. It compiled and ran fine. Once again what errors are you getting?My guess is that it's quite a bit longer. But of course the name of a class includes the name of package it exists in.
    The theoretical limit for a fully qualified classname is likely either Byte.MAX_VALUE (which seems low, especially in the light of the potential for deeply nested packages with long names) or Integer.MAX_VALUE (which would be insanely long of course, but theoretically possible when using code generators gone berserk).

  • How to install certifcate to tmg when create web listener

    how to install certifcate to tmg when create web listener

    Short comment that may help, if you've added the cert while the TMG MMC is open you need to refresh the MMC on the node second to the top (right-click on server/array name and select refresh) or simply restart the MMC.
    Then create the web listener as desired.
    As always you need a cert with the EKU of server authentication (regular web server cert will do) with the corresponding private key and the cert needs to be trusted on the computer where TMG is installed.
    Hth, Anders Janson Enfo Zipper

  • Change gmail outgoing name when sent from iphone4

    hi!
    so, i have my gmail account set up on iphone and it works all fine and peachy but...
    all my outgoing e-mails sent from iphone have my username displayed as outgoing name.
    (for example: say, my e-mail is [email protected] all my outgoing e-mails, sent from iphone display Pink Elephant as my name, which looks kind of awkward, when i'm replying to business related e-mails)
    just to be clear: when i go to Settings -> Mail, Contacts, Calendars -> GMAIL -> Account... it doesn't have the name field.
    it has:
    - email
    - server
    - domain
    - username
    - password
    - description
    and the option to use SSL. that's it.
    any ideas how to change the outgoing name?
    thanks!

    wjosten, the thing is - it has my name in gmail settings. i checked. it works fine, when i e-mail from a computer.
    changing it has no effect on my outgoing name, when i send from iphone.
    but thanks
    upd: yeah, what Leann said

  • How to Change the Alias name for Internet user in SU01 tr code through cod?

    Hi Guys,
                 My req is we have to change the Alias name(SU01 tr code) for the existing users thru code.So can anybody tell me how to change the Alias name like which we do it in SU01 tr code thru code or FM.?
                Is there any FM for tha changing Alias Name?
    Thanks,
    Gopi.

    Hello Gopi Anne ,
                                 You can use the following FM / BAPI :
    BAPI_USER_CHANGE
    MY_BAPI_USER_CHANGE
    For BAPI_USER_CHANGE :
    You need to make use of the IMPORT parameter :
    ALIAS     TYPE     BAPIALIAS                               User Name Alias
    ALIASX     LIKE     BAPIALIASX                               User alias change flag
    Thanks,
    Greetson

  • How to change the folder name in the web report.

    hi experts,
    can anybody give me the solution, how to change the folder name in the web report. any help is appreciated.
    waiting for ur favourable response.
    thanks
    suri

    Hi Tony,
    Yes, the business requires, only to change in the webreport only not in bex and roles. any suggestions will be helpful to me.
    thanks
    surendra

Maybe you are looking for

  • Accounting doc typelink with billing doc type

    Hi, I want to see the configuration settings to be done for the accounting document type whenever a Invoice is posted to accounting.Basically if a standard Invoice F2 is posted to accounting then an accounting doc type RV is created.So I would like t

  • Java.io.NotSerializableException when overwrite the JTable data into .txt

    hi everyone i had java.io.NotSerializableException: java.lang.reflect.Constructor error when overwrite the JTable data into .txt file. At the beginning, the code will be generate successfully and the jtable will be showing out with the data that been

  • Cannot Upgrade Trial to Paid Subscription

    When I try to upgrade my trial: ...and click Upgrade Now, I get an error message: Help. I do not want to have to create a new account from scratch and redo all the setup work I've already done. I want to upgrade my trial to a paid subscription. Adam

  • Printing 4 X 8 Photocards on D110 series

    Hello - I am really hoping that someone can help me with my problem. I just purchased a D110a Photosmart all-in one printer and am attempting to print some of the standard HP photocards - the HP Q7892A type as seen here: http://www.amazon.com/HP-Q789

  • Import Meta Challenge

    Your mission, should you choose to accept it.... I'm one, I know there are others. You know the tune: 30k-90k RAW images with meta data in the .xmp files. I'd use aperture but........ Can an automator action (or anything else besides one by one) be s