Package org.objectweb.speedo.metadata

Examples of org.objectweb.speedo.metadata.SpeedoXMLDescriptor


        if (scp.getXmldescriptor().isEmpty())
            return;
        ArrayList except = new ArrayList();
        Collection xmls = scp.getXmldescriptor().values();
        for (Iterator itDesc = xmls.iterator(); itDesc.hasNext();) {
            SpeedoXMLDescriptor desc = (SpeedoXMLDescriptor) itDesc.next();
            for (Iterator itPack = desc.packages.values().iterator(); itPack.hasNext();) {
                SpeedoPackage sp = (SpeedoPackage) itPack.next();
                for (Iterator itclass = sp.classes.values().iterator(); itclass.hasNext();) {
                    SpeedoClass sc = (SpeedoClass) itclass.next();
                    Logger log = scp.loggerFactory.getLogger(LOGGER_NAME + '.' + sc.getFQName());
View Full Code Here


    private Set computeGeneratedClasses() {
        Set result = new TreeSet();
        Collection xmls = scp.getXmldescriptor().values();
        for (Iterator itDesc = xmls.iterator(); itDesc.hasNext();) {
            SpeedoXMLDescriptor desc = (SpeedoXMLDescriptor) itDesc.next();
            for (Iterator itPack = desc.packages.values().iterator(); itPack.hasNext();) {
                SpeedoPackage sp = (SpeedoPackage) itPack.next();
                for (Iterator itclass = sp.classes.values().iterator(); itclass.hasNext();) {
                    SpeedoClass sc = (SpeedoClass) itclass.next();
                    String name = sp.name + '.' + sc.name;
View Full Code Here

        logger.log(BasicLevel.DEBUG, "input: " + scp.input);
    logger.log(BasicLevel.DEBUG, "output: " + scp.output);
        toCompil = 0;
        for (Iterator itDesc = scp.getXmldescriptor().values().iterator(); itDesc.hasNext();) {
            SpeedoXMLDescriptor desc = (SpeedoXMLDescriptor) itDesc.next();
            for (Iterator itPack = desc.packages.values().iterator(); itPack.hasNext();) {
                SpeedoPackage sp = (SpeedoPackage) itPack.next();

                for (Iterator itclass = sp.classes.values().iterator(); itclass.hasNext();) {
                    SpeedoClass sc = (SpeedoClass) itclass.next();
View Full Code Here

            throw new SpeedoException(
                    "Impossible to initialize the VelocityEngine", e);
        }

        for (Iterator itDesc = scp.getXmldescriptor().values().iterator(); itDesc.hasNext();) {
            SpeedoXMLDescriptor desc = (SpeedoXMLDescriptor) itDesc.next();
            for (Iterator itPack = desc.packages.values().iterator(); itPack.hasNext();) {
                SpeedoPackage sp = (SpeedoPackage) itPack.next();
                //base directory for new files
                String baseDir = scp.output + fs + sp.name.replace('.', fs) + fs;
                for (Iterator itclass = sp.classes.values().iterator(); itclass.hasNext();) {
View Full Code Here

            throws SpeedoException {
        try {
            // parse the document
            Document document = parser.parse(scp.xmlDir + File.separator + xmlFile);
            //create a descriptor for the document
            SpeedoXMLDescriptor desc = new SpeedoXMLDescriptor(scp.smi);
            desc.xmlFile = xmlFile;
            //fill and return the file descriptor
            return (SpeedoXMLDescriptor) treatDocument(document, desc);
        } catch (SpeedoException e) {
            throw e;
View Full Code Here

    if (scp.getXmldescriptor().isEmpty()) {
          return;
        }
    try {
      for (Iterator itDesc = scp.getXmldescriptor().values().iterator(); itDesc.hasNext();) {
        SpeedoXMLDescriptor desc = (SpeedoXMLDescriptor) itDesc.next();
        serialize(desc);
      }
    } catch (SpeedoException e) {
            throw new SpeedoException("Error during serialization of meta information", e);
        }
View Full Code Here

TOP

Related Classes of org.objectweb.speedo.metadata.SpeedoXMLDescriptor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.