Package jeeves.server.dispatchers.guiservices

Examples of jeeves.server.dispatchers.guiservices.XmlFile


    for(String schema : schemaMan.getSchemas()) {
      try {
        Map<String, XmlFile> schemaInfo = schemaMan.getSchemaInfo(schema);

        for (Map.Entry<String, XmlFile> entry : schemaInfo.entrySet()) {
          XmlFile xf = entry.getValue();
          String fname = entry.getKey();
          Element response = xf.exec(new Element("junk"), context);
          response.setName(FilenameUtils.removeExtension(fname));
                    response.removeAttribute("noNamespaceSchemaLocation", Geonet.Namespaces.XSI);
          Element schemaElem = new Element(schema);
          schemaElem.addContent(response);
          schemas.addContent(schemaElem);
View Full Code Here


                config.setAttribute("name", name);
                config.setAttribute("base", base);
                config.setAttribute("file", fname);
                if (Log.isDebugEnabled(Geonet.SCHEMA_MANAGER))
                    Log.debug(Geonet.SCHEMA_MANAGER, "Adding XmlFile " + Xml.getString(config));
                XmlFile xf = new XmlFile(config, defaultLang, true);
                xfMap.put(fname, xf);
            } else {
                Log.warning(Geonet.SCHEMA_MANAGER, "Unable to load loc file: " + filePath);
            }
        }
View Full Code Here

    public static Element getHelp(SchemaManager scm, Element elem, String fileName, String schema,
            String name, String parent, String xpath, String isoType, ServiceContext context)
            throws Exception {

        XmlFile xf = scm.getSchemaInfo(schema).get(fileName);

        if (xf == null) {
            throw new OperationAbortedEx("File not found for : " + schema + "/" + fileName);
        }

        Element entries = xf.exec(new Element("junk"), context);

        Element result = checkEntries(scm, schema, entries, xpath, name, isoType, true);
        if (result == null) {
            result = checkEntries(scm, schema, entries, parent, name, isoType, true);
        }
View Full Code Here

    //---------------------------------------------------------------------------

    private GuiService getGuiService(String pack, Element elem) throws Exception {
        if (ConfigFile.Output.Child.XML.equals(elem.getName()))
            return new XmlFile(elem, defaultLang, defaultLocal);

        if (ConfigFile.Output.Child.CALL.equals(elem.getName()))
            return new Call(elem, pack, appPath);

        throw new IllegalArgumentException("Unknown GUI element : " + Xml.getString(elem));
View Full Code Here

TOP

Related Classes of jeeves.server.dispatchers.guiservices.XmlFile

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.