Hiya, I am looking for someone who is familiar with Castor XML to bind
XML to Java (and via versa).  Basically what I would like is for you to
take an example XML document, create the XML schema and either provide
the impl classes or provide a runnable example to make use of the class
generator.

I think this is fairly easy todo, that is if you are familiar with XML
schemas and the Castor XML bits.  I have looked over both, but have not
had time to get something working just yet.  There are entirely too many
things todo.  So it might seem like I am lazy, but really I am just
trying to do more with less time.

I am hoping to take this example and learn how the system works by it,
instead of spending countless hours in trail and error.

Are you down?  I hope so.  Let me know (don't worry I don't bite).
Attached is the example XML doc, which is for the JBoss/Console
configuration.

Thanks,

--jason
<?xml version="1.0" encoding="UTF-8"?>

<!--

ConsoleConfig config = Console.parseConfig(someXmlURL);
Console console = new Console(config);

// interactive mode
console.setInput(System.in);
console.setOutput(System.out);
console.setErrorOutput(System.err);
console.start();

// or

console.execute("twiddle invoke test:name=component");
console.execute("twiddle");
console.execute("about"); // error, not in context
console.execute("/about"); // works using abs path to command
console.execute("invoke test:name=component"); // works, twiddle is our context
console.execute(".."); // back to the parent context, in this case the root context
console.execute("twiddle");
console.execute("/"); // jump to the root context no matter where we are

// add global commands to manage pushing/poping command context location
// give commands read-only access to the path stack

// command context obj needs read only objects (remove is not valid), could use an
// interface to mark classes as read-only/immutable

-->

<jboss-console:config xmlns:jboss-console="http://jboss.org/xmlns/jboss-console";>

   <defaults>
     <context>
        <context-element name="Foo">Bar</context-element>
        <context-element name="Hi" class="some.class.with.default.constructor"/>
        <context-element name="Blah" factory-class="some.factory.class.with.default.constructor"/>
     </context>

     <properties>
        <property name="some.prop">some value</property>
        <property name="some.other.prop" value="some other value"/>
        <property name="log4j.configuration" value="resource://log4j-debug.properties"/>
        <property name="readline.impl" value="some.readline.impl.class"/>
        <property name="default.server.url" value="jnp://localhost:1099"/>
     </properties>
   </defaults>

   <security>
      <!-- figure this out eventualy, users and acl + encryption fluff -->
   </security>

   <commands>
 
      <global>
         <command name="help" class="org.jboss.console.command.HelpCommand"/>
         <command name="connect" class="org.jboss.console.command.ConnectCommand"/>
         <command name="exit" aliases="quit,bye" class="org.jboss.console.command.ExitCommand"/>
      </global>

     <command name="about" class="org.jboss.console.AboutCommand"/>
     <command name="version" class="org.jboss.console.VersionCommand"/>

     <command-set name="twiddle">
        <command name="get" class="org.jboss.console.twiddle.command.GetCommand" rentrant="false"/>

        <command name="invoke" class="org.jboss.console.twiddle.command.InvokeCommand">
           <command-param name="SomeParam">SomeValue</command-param>
        </command>

        <command-set name="misc">
           <command name="info" class="org.jboss.console.twiddle.command.InfoCommand"/>
        </command-set>
     </command-set>

     <command-set name="deployer">
        <command name="deploy" class="org.jboss.console.deployer.command.DeployCommand"/>
        <command name="undeploy" class="org.jboss.console.deployer.command.UndeployCommand"/>
        <command name="isdeployed" class="org.jboss.console.deployer.command.IsdeployedCommand"
		 filter-class="org.jboss.console.deployer.command.IsdeployedCommand$Filter"/>
     </command-set>

   </commands>

</jboss-console:config>

Reply via email to