Looking for a Java Parser

Hi,
I'm working on a Web Service Project, and i'm trying to deploy Web Services dynamically. Now the problem is, that i have to adapt the Java src-files sometimes before the deployment (Like adding Annotations, Methods or just peaces of code into a Method. So what i'm looking for is some Sort of a Java Parser, that gives me information on where to insert the code i generated.
Simple example:
public class WSExample{
     public void doSomething(){
          //do something
//this class should be changed to something like this:
public class WSExample{
     @WebMethod       //Annotation added
     public void doSomething(){
          //do something
        //this Method is generated automatically
        @WebMethod
        public void doSomethingDifferent{
               //like establishing a connection to a different WS
}All i've found up to now are parser generators like antlr or javacc. But i couldn't find anything about how to use the generated parsers or even manipulate the parsed code, yet. I hope i don't have to write a parser or grammar myself. Maybe someone can link me to some useful tutorial, forum or whatever else might be helpful.

If you are using Sun's Java 1.4, you already have one. If you are using an ealier version, here are a couple of links:
Xerces is probably the most feature rich:
http://xml.apache.org/xerces2-j/index.html
GNU JAXP is also good and very small:
http://www.gnu.org/software/classpathx/jaxp/

Similar Messages

  • Looking for pure Java API to read metadata from an MP4 file.

    Hi, I am looking for a pure Java api that can read MP4 metadata. I have been trying to look online for one but have not found anything
    suitable. If there are no good api's, can someone point me to resources on how to parse metadata from an MP4, tutorials would be great
    as well. I have looked online for that as well but have not found much. Any help would be greatly appreciated.

    Cross posted
    http://www.java-forums.org/new-java/59652-looking-pure-java-api-read-metadata-mp4-file.html
    http://www.coderanch.com/t/580833/Streams/java/Looking-pure-Java-API-read
    http://stackoverflow.com/questions/10568588/looking-for-pure-java-api-to-read-metadata-from-an-mp4-file
    db

  • Looking for a java-based SDK that handles file conversion to PDF and TIF...

    Hi all,
    First off, this is my first posting so I'm not 100% sure where to post this topic. So please forgive me if I'm accidentally posting in the wrong location.
    My question deals with a project I am currently working on.
    I am looking for a java-based SDK that can meet the following requirements...
    1) convert all printable file-formats (i.e. JPEG, DOC, TXT, PPT, etc.) into PDF
    2) merge multiple PDFs into one PDF
    3) convert PDF to TIF or at least do some sort of conversion to TIF
    4) works in Java or some sort of web-based language
    5) free or relatively cheap
    Any advice/suggestions would be greatly appreciated.
    Thank you very much.

    I don't think you will get one API to do them all.
    Some helpful hints:
    [http://schmidt.devlib.org/java/libraries-pdf.html]
    [http://xmlgraphics.apache.org/fop/] (with the pdf-image extension, that I can't find now :shakefist)
    JAI

  • Looking for recommend Java Training

    I have just spent a better part of a week trying to work on a java issue.  We are running Netweaver 7.01 as our Java server to our BW systems.  These NW boxes are Java (stack) only servers.  I would like to get more up to speed on managing, debugging, monitoring, etc on the Java side of things.  I am not even sure I have the terminolgoy right!  What courses have you taken that you feel were effective?  Right now my role is DBA (Oracle) and backup R3 Admin.  As we move to a more Java rich environment I'd like to help fix things (vs bouncing the server all the time).  I feel lost in Visual Administrator.  I see to many courses that say "The course does not introduce Netweaver fundamentals and administrations." which is exactly what I feel I need.
    Thanks!
    Vince

    I was meant to go on a combination TEP10 course recently which covers the same contents as ADM200 and EP200, but that's hard to find (and was cancelled where I did find it). If you're just looking for the Java admin basics look at this course tree: https://training.sap.com/za/en/curriculum/adm_java-sap-system-administration-as-java-general-g/.
    ADM200 is almost certainly the one you want if you want the shortest (i.e. cheapest!) course focusing on just Java admin, though unfortunately I cannot yet speak from direct experience. Check out the curricula listed for yourself and don't forget to shop around the various SAP Education centres (that link is for South Africa but the curricula for the courses will be the same elsewhere as long as the version is the same). For example see this course tree from the US SAP Centre: https://training.sap.com/us/en/curriculum/ep_adm_us-portal-administration-us/. And don't forget that there are other combination courses like the TEP10 course (e.g. TADM10/TADM12) that might cover even more of what you're looking for - do some digging around to be sure of what you want.

  • Looking for the java default XML parser?

    Hey guys,
    I just wondering alot about the sometimes mentioned Java Default XML Parser. So I used xerces and it worked fine, but my program doesnt need the whole functionality of xerces and I want to save some space for the resulting project jar. The xerces parser is 1.1 MB huge and instead of xerces I could use the default SAX parser in the java API, I thought.
    Although it is mentioned in some books/documents I can not find it.
    Could you give me an exmaple with the XMLReaderFactory how to use the default parser?
    I would appreciate this alot!
    Thanks.

    Hey,
    yes that I tried before, because I read this too.. If I am doing this Im getting the error:
    Exception in thread "main" org.xml.sax.SAXException: System property org.xml.sax.driver not specified
         at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(XMLReaderFactory.java:90)
         at cfm.com.gui.GUIBuilder.buildGUIPage(GUIBuilder.java:51)
    ...So, this means that the JDK comes not with an default parser implementation I suggest.
    Hmm... stupid! I think I have to ship the xerces parser with my application... but its huge!
    Does anybody know what of the compelling parser are the lighweightest?
    Im gonna look for this answer too....
    Thanks.

  • I look for a "java client IRC applet"

    Hello every body and good hollydays!
    For long time, I looked for a open source java "client irc" applet.
    I have found one, but it does' n run! (it needs to be signed and unfortunatly
    I don't doing it !).
    Briefly i need links about all this subject.
    A great thanks.
    elias

    Search in google by "java client IRC applet" found many different links :-)

  • Looking for a trap parsing example

    Hello experts
    I want the MARS to analyze an SNMP trap from a custom device and I'm looking for an example for a trap message parsing. Would appreciate you help.
    TIA
    Iris

    Adomacro wrote:
    > Looking for a nice fusebox example, which i can use as
    base for developing applications..
    >
    > Please post help.
    >
    > thanks a bunch.
    http://www.fusebox.org/

  • Looking for a Java Runtime for lion 10.7.3

    Can somebody tell me, how to install a "java Runtime" on my lion 10.7.3
    Yesterday I updated to Lion, and now a lot of really important programs do not work anymore, always with the question:
    "Install a java runtime" - and when I do the suggested software update, it stop after a time with the message "No software available"
    What can I do?
    Thanks

    Alternatively launch the Java Preferences in the Applications/Utilities folder, that will prompt whether you want to install Java or not.
    Software update isn't showing you anything because Java needs to be installed first, which it isn't by default. You either go through the Java Prefernces or download and install manually. After that Software Update will notify you of future updates for Java, although if you do that today with above methods you'll have the latest version

  • I am looking for a Java workaround

    I am trying to find a Java workaround for the iPad 2 that will allow me to use the ALEKS online math program.  I have use Skyfire, iSwifter, and Cloud Browse.  Aleks is a Java based math program that when you login on your mac or pc it will load Java plugins to run the program.  I probably need a remote desktop app that will allow me to run Java.  I am wondering if someone has found a reasonable solution.

    Skyfire and iSwifter are Flash substitutes and will not handle Java. If Cloud Browse doesn't work with the Java-using site you need to run, the only other option is probably to use one of the remote control apps that allow you to take control of a computer that can run Java. There is no version of Java for the iPad.
    Regards.

  • I'm looking for JTreeOutputter.java - JDOM

    I want to use the JTreeOutputter class, but I can't find it.
    I want to represent a JDOM structure in a JTree, and this class should be able to do it.
    Can someone help me, http://cvs.jdom.org seems to be down and I can't find it elsewhere.
    Thanks.
    Jeroen Knoops - The Netherlands.

    I found the source code:
    Copyright (C) 2000 Brett McLaughlin & Jason Hunter.
    All rights reserved.
    Redistribution and use in source and binary forms, with or without
    modification, are permitted provided that the following conditions
    are met:
    1. Redistributions of source code must retain the above copyright
    notice, this list of conditions, and the following disclaimer.
    2. Redistributions in binary form must reproduce the above copyright
    notice, this list of conditions, and the disclaimer that follows
    these conditions in the documentation and/or other materials
    provided with the distribution.
    3. The name "JDOM" must not be used to endorse or promote products
    derived from this software without prior written permission. For
    written permission, please contact [email protected].
    4. Products derived from this software may not be called "JDOM", nor
    may "JDOM" appear in their name, without prior written permission
    from the JDOM Project Management ([email protected]).
    In addition, we request (but do not require) that you include in the
    end-user documentation provided with the redistribution and/or in the
    software itself an acknowledgement equivalent to the following:
    "This product includes software developed by the
    JDOM Project (http://www.jdom.org/)."
    Alternatively, the acknowledgment may be graphical using the logos
    available at http://www.jdom.org/images/logos.
    THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
    WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
    OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
    DISCLAIMED. IN NO EVENT SHALL THE JDOM AUTHORS OR THE PROJECT
    CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
    SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
    LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
    USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
    ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
    OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
    OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    SUCH DAMAGE.
    This software consists of voluntary contributions made by many
    individuals on behalf of the JDOM Project and was originally
    created by Brett McLaughlin and
    Jason Hunter . For more information on the
    JDOM Project, please see <http://www.jdom.org/>.
    * formatted with JxBeauty (c) [email protected]
    package  org.jdom.contrib.output;
    * A JTree outputter.
    * This outputter builds a JTree representation of the JDOM document for
    * easy visual navigation. This is a full rewrite of the JTreeOutputter
    * originally written by James Davies.
    * @author Matthew MacKenzie [[email protected]]
    import  java.util.Iterator;
    import  java.util.List;
    import  javax.swing.*;
    import  javax.swing.tree.DefaultMutableTreeNode;
    import  javax.swing.tree.TreeNode;
    import  org.jdom.input.SAXBuilder;
    import  org.jdom.Document;
    import  org.jdom.Attribute;
    import  org.jdom.Element;
    public class JTreeOutputter {
      public JTreeOutputter () {
      public JTreeOutputter (boolean toBeCompatible) {
        // just here to mimic the legacy JTreeOutputter
       * Output a Document.
       * @param Document The document to transform to TreeNode.
       * @param DefaultMutableTreeNode The root tree node.
       * @return void
      public void output (Document doc, DefaultMutableTreeNode root) {
        processElement(doc.getRootElement(), root);
       * Output an Element.
       * @param Element The element to transform to TreeNode.
       * @param DefaultMutableTreeNode The root tree node.
       * @return void
      public void output (Element el, DefaultMutableTreeNode root) {
        processElement(el, root);
      protected void processElement (Element el, DefaultMutableTreeNode dmtn) {
        DefaultMutableTreeNode dmtnLocal = new DefaultMutableTreeNode(el.getName());
        String elText = el.getTextNormalize();
        if (elText != null && !elText.equals("")) {
          dmtnLocal.add(new DefaultMutableTreeNode(elText));
        processAttributes(el, dmtnLocal);
        Iterator iter = el.getChildren().iterator();
        while (iter.hasNext()) {
          Element nextEl = (Element)iter.next();
          processElement(nextEl, dmtnLocal);
        dmtn.add(dmtnLocal);
      protected void processAttributes (Element el, DefaultMutableTreeNode dmtn) {
        Iterator atts = el.getAttributes().iterator();
        while (atts.hasNext()) {
          Attribute att = (Attribute)atts.next();
          DefaultMutableTreeNode node = new DefaultMutableTreeNode("@" + att.getName());
          node.add(new DefaultMutableTreeNode(att.getValue()));
          dmtn.add(node);
    }

  • Looking for a Java program which converts a Webpage (HTML) to Image file

    Dear Experts,
    I would like to convert a given URL (www.yahoo.com) to a yahoo.jpg image file.I
    have searched a lot about that but could not get any idea.Does anyone can help me in this regard.
    Tahnking you

    Try this pdf render: https://pdf-renderer.dev.java.net/

  • Looking for a Java tutor/mentor.

    Greetings. I've recently had quite a hard time figuring out the programing projects for my university computer science course. Seeing as how the teaching assistants aren't very helpful, I am in search of somebody who would be able to help me/discuss programs via email or AIM. Any help would be much appreciated as I am struggling with this class. Thanks.
    [email protected]

    Sorry, but seeing how I learnt this stuff myself, all you can do is pick up a book and start reading it. YOU need to put effort into it, it makes no sense that somebody else needs to jam the knowledge into your brain, the teaching assistants are only there to help you figure it out on your own by pointing you in the right direction.
    That said, if there are specific questions you have, might I suggest you ask those questions in the newbie section? People here will be glad to help you out or point you to articles that explain the subject you are struggling with.

  • Looking for sample java code for dvt:hierarchyViewer

    Hi.
    We currently use Jdeveloper 11g Build JDEVADF_11.1.1.1.0_GENERIC_090615.0017.5407
    Recently, we have seen some nice demos for Manager-Employees tree. Here is one @ http://jdevadf.oracle.com/dvt-faces-demo/faces/dvtTagGuide/ariaXml.jspx?_adf.ctrl-state=mmpgr9aco_4.
    If I construct hierarchyViewer from master-detail view objects, I can't achieve dynamic levels. So I believe I need to create a treeModel binding to recursively generate the hierarchy.
    Can someone kindly show me a working example for this implementation? Your help is highly appreciated. Now I have to reverse engineer it.
    Sam
    Edited by: user719281 on Sep 2, 2009 2:35 PM
    Edited by: user719281 on Sep 2, 2009 2:35 PM

    Hi Juan,
    Thanks for the quick reply. I already have a similar example http://blogs.oracle.com/shay/2009/07/exploring_the_hierarchy_viewer.html and I made my code work.
    However, I realize I must pre-define view objects (and their levels) to achieve this goal. What if I need to use managed bean to dynamically generate the hierarchy? In other words, the level of hierarchy is unknown at run time, the managed bean must be called recursively to generate the next level of nodes.
    In the current source code,
    <dvt:hierarchyViewer inlineStyle="width:100%;height:600px;" id="hv1"
    value="#{bindings.EventsView1. *treeModel* }"
    selectionListener="#{bindings.EventsView1. *treeModel* . *makeCurrent* }"
    layout="hier_horz_left">
    The hierarchyViewer seems to be built around treeModel but the closest I have found is Frank Nimphius's Re: Building a Tree Table using Recursive table
    Without recursive calling, i don't think I can get similar hierarchy in http://jdevadf.oracle.com/dvt-faces-demo/faces/dvtTagGuide/ariaXml.jspx?_adf.ctrl-state=rka5d3wx6_9. I have been investigating this for last few days. Correct me if I am wrong :-) Thanks again!
    sam
    Edited by: user719281 on Sep 1, 2009 5:17 PM
    Edited by: user719281 on Sep 1, 2009 5:18 PM

  • Looking for a Java USA Map class or applet

    Hi,
    I need to display a gif (or applet) of the USA and be able to color states different colors. Does anyone know of a simple class or applet that will do this?

    Email me
    [email protected]

  • Java parser for regular expression to java program

    Hi All,
    I am very new to parser technologies .I am looking for a (java)parser which can read the "regular expression" and can convert it into "java program".Please let me know is there any thing related to this.
    Thanks in advance.
    Your will be appriciate.
    Regards,
    Sai.

    Hi Jos,
    Thank you for your quick response .You're welcome.
    If you have any sample code or simple example for how to use those
    classes (Pattern,Match) ,will you please send me .It will be helpful for me.Jverd gave you two nice links already in his reply #3
    If there is any "open source" for parsering regular expressions.
    Please send me I am very new to parser technologies.Note that that Pattern class take care of all the parsing of REs, i.e. there's
    nothing 'interesting' left for you to do any parsing whatsoever. Can you
    elaborate a bit on what you exactly want to do and learn?
    kind regards,
    Jos

Maybe you are looking for

  • Multiple currency in PO/MIRO

    Hi Friends, In the PO, the vendor is from Japan, so the document currency is in Japan. But the freight condition currency is in MYR which we dont want to convert into JPY. Here the system converts all the condition type currencies into document corre

  • Opening a view from a link

    Hi,   I have a detail view(webdynpro) which I can open through a list report(webdynpro) or a link. The detail view opens successfully with data when I navigate from the list view. But when I pass the parameters through a link:    I pass the parameter

  • Portable Hardrive Won't Start or Mount

    Ok , I have a Western Digital Passport portable hard drive. I had it connected to my MacbookPro laptop when my comp froze so i held the power button and did a hard restart. Ever since then my Mac cannot detect this hardrive and it wont mount on my de

  • Lenovo IdeaPad Miix 2 (10") - Windows 8.1 Feature oder Lenovo-Tool?

    Hallo, nach Rücksprache mit dem Support habe ich Windows 8.1 Pro (32 Bit) installiert. Hierzu habe ich alle bestehenden Daten / Installationen gelöscht und Windows 8.1 vom USB-Stick neuinstalliert. Soweit hat auch alles super gepasst, wie mit dem Sup

  • Music player with multiple artist/genre support?

    Hi, Can anyone tell me if any of the available media players support multiple values for tags?  For example, a collaboration would be listed under both artists. I find I never use genres because they tend to be really broad, or I have far too many.