Package org.jdom

Examples of org.jdom.Element.detach()


        _summaryConfig = _luceneConfig.getTaxonomy().get(resultType);

        final Element summaryItemsEl = request.getChild(Geonet.SearchResult.SUMMARY_ITEMS);
        if (summaryItemsEl != null) {
            summaryItemsEl.detach();

            Map<String, FacetConfig> tmpConfig = new HashMap<String, FacetConfig>();
            String[] items = summaryItemsEl.getValue().split(",");

            for (String item : items) {
View Full Code Here


                }
            }
        });

        if (toMerge != null) {
            toMerge.detach();
            otherLanguages.remove(toMerge);
            for( Element element : (List<Element>) defaultLang.getChildren() ) {
                toInclude.add(element);
            }
            for( Element element : (List<Element>) toMerge.getChildren() ) {
View Full Code Here

        final Element citationEl = testMetadata.getChild("identificationInfo", GMD)
                .getChild("MD_DataIdentification", GMD)
                .getChild("citation", GMD)
                .getChild("CI_Citation", GMD);

        citationEl.detach();

        Element results = Xml.transform(testMetadata, getSchematronXsl().getPath(), params);
        assertEquals(1, countFailures(results));

        testMetadata.getChild("identificationInfo", GMD)
View Full Code Here

        //--- we must detach the element from its parent because the output dispatcher
        //--- links it to the root element
        //--- note that caching is not allowed in any case

        response.detach();

        return response;
    }

    //--------------------------------------------------------------------------
View Full Code Here

    if (OptionFlag.HIDE_ALL_KEY.isSet()) {
      return;
    }

    Element serialized = myIdeFacade.getProjectsData().serialize();
    serialized.detach();
    response.addContent(serialized);
  }
}
View Full Code Here

        }
        // Now we can detach the foreign markup elements
        Iterator fm = foreignMarkup.iterator();
        while (fm.hasNext()) {
            Element elem = (Element)fm.next();
            elem.detach();
        }
        return foreignMarkup;
    }

    protected Attribute getAttribute(Element e, String attributeName) {
View Full Code Here

        throws JDOMException, IOException, IllegalArgumentException, FeedException {
        // Parse entry into JDOM tree
        SAXBuilder builder = new SAXBuilder();
        Document entryDoc = builder.build(rd);
        Element fetchedEntryElement = entryDoc.getRootElement();
        fetchedEntryElement.detach();

        // Put entry into a JDOM document with 'feed' root so that Rome can handle it
        Feed feed = new Feed();
        feed.setFeedType("atom_1.0");
        WireFeedOutput wireFeedOutput = new WireFeedOutput();
View Full Code Here

                            actionConfiguration).toString())), actionConf);
                }
                int position = eActionConf.indexOf(actionConfiguration);
                eActionConf.removeContent(actionConfiguration); //replace with enhanced one
                Element eConfXml = XmlUtils.parseXml(actionConf.toXmlString(false));
                eConfXml.detach();
                eConfXml.setNamespace(actionNs);
                if (position > 0) {
                    eActionConf.addContent(position, eConfXml);
                }
                else {
View Full Code Here

               
                List children = schemaTypes.getChildren();
                while (children.size() > 0)
                {
                    Element child = (Element) children.get(0);
                    child.detach();
                   
                    if (child.getChildren().size() > 0)
                    {
                        Document inputDoc = new Document(child);
                        org.w3c.dom.Document doc = new DOMOutputter().output(inputDoc);
View Full Code Here

                Element schema = getSchema(xbeanType);
                String ns = xbeanType.getSchemaType().getNamespaceURI();
                if (!importedSchemas.contains(schema))
                {
                    schema.detach();
                    setSchema(ns, schema);
                   
                    importedSchemas.add(schema);
                }
            }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.