Results 1 to 2 of 2
  1. #1
    Bender is offline Member
    Join Date
    Dec 2007
    Posts
    2
    Rep Power
    0

    Default Help for dynamic classes

    Hello, i have the following problem.
    I use Jaxb 2.0 to produse classes from an .xsd file( XML schema) and then let's say I need print the classes.
    How can I do this in dynamic way,so that it will work for every .xsd that I give?
    The names of the prodused classes can be found in the .xsd file as elements ,so I am thinking about parsing the .xsd either with sax/dom or manually and put the names on a vector or something.Then if I know the name I suppose I can call the classes.Is this solution good?What do you think?
    Any other way to do it?

  2. #2
    Bender is offline Member
    Join Date
    Dec 2007
    Posts
    2
    Rep Power
    0

    Default

    I will use reflection, I found it as the only possibly solution to call the classes after I create them in realtime

Similar Threads

  1. Dynamic Binding
    By javarishi in forum New To Java
    Replies: 3
    Last Post: 04-09-2008, 12:17 PM
  2. Dynamic DecimalFormatter
    By felixtfelix in forum New To Java
    Replies: 0
    Last Post: 03-17-2008, 05:16 PM
  3. how to generate dynamic pdf
    By valery in forum Advanced Java
    Replies: 1
    Last Post: 08-06-2007, 11:01 PM
  4. problems with Dynamic Xml
    By boy22 in forum XML
    Replies: 1
    Last Post: 07-24-2007, 01:10 AM
  5. dynamic update in swt
    By sandor in forum SWT / JFace
    Replies: 0
    Last Post: 05-14-2007, 09:32 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •