Package org.jdom

Examples of org.jdom.DefaultJDOMFactory


    public JDomWriter(final Element container, final XmlFriendlyReplacer replacer) {
        this(container, new DefaultJDOMFactory(), (NameCoder)replacer);
    }

    public JDomWriter(final Element container) {
        this(container, new DefaultJDOMFactory());
    }
View Full Code Here


    public JDomWriter(JDOMFactory documentFactory) {
        this.documentFactory = documentFactory;
    }

    public JDomWriter(Element container) {
        this(container, new DefaultJDOMFactory());
    }
View Full Code Here

    public JDomWriter(Element container) {
        this(container, new DefaultJDOMFactory());
    }

    public JDomWriter() {
        this(new DefaultJDOMFactory());
    }
View Full Code Here

    // - Constructors -/
    // ----------------/

    public MavenJDOMWriter()
    {
        factory = new DefaultJDOMFactory();
        lineSeparator = "\n";
    } // -- org.apache.maven.model.io.jdom.MavenJDOMWriter()
View Full Code Here

    // - Constructors -/
    // ----------------/

    public MavenJDOMWriter()
    {
        factory = new DefaultJDOMFactory();
        lineSeparator = "\n";
    } // -- org.apache.maven.model.io.jdom.MavenJDOMWriter()
View Full Code Here

     * 'bounding box' parameter encloses.
     */
    @Test
    public void testBBEncloses() {
        // create request object
        JDOMFactory factory = new DefaultJDOMFactory();
        Element request = factory.element("request");
        Element anyE = factory.element("eastBL");
        anyE.addContent("55");
        request.addContent(anyE);
        Element anyW = factory.element("westBL");
        anyW.addContent("43");
        request.addContent(anyW);
        Element anyN = factory.element("northBL");
        anyN.addContent("12");
        request.addContent(anyN);
        Element anyS = factory.element("southBL");
        anyS.addContent("9");
        request.addContent(anyS);
        Element anyR = factory.element("relation");
        anyR.addContent("encloses");
        request.addContent(anyR);
        // build lucene query input
        LuceneQueryInput lQI = new LuceneQueryInput(request);
        // build lucene query
View Full Code Here

     * 'bounding box' parameter fullyEnclosedWithin.
     */
    @Test
    public void testBBFullyEnclosedWithin() {
        // create request object
        JDOMFactory factory = new DefaultJDOMFactory();
        Element request = factory.element("request");
        Element anyE = factory.element("eastBL");
        anyE.addContent("55");
        request.addContent(anyE);
        Element anyW = factory.element("westBL");
        anyW.addContent("43");
        request.addContent(anyW);
        Element anyN = factory.element("northBL");
        anyN.addContent("12");
        request.addContent(anyN);
        Element anyS = factory.element("southBL");
        anyS.addContent("9");
        request.addContent(anyS);
        Element anyR = factory.element("relation");
        anyR.addContent("fullyEnclosedWithin");
        request.addContent(anyR);
        // build lucene query input
        LuceneQueryInput lQI = new LuceneQueryInput(request);
        // build lucene query
View Full Code Here

     * 'bounding box' parameter fullyOutsideOf.
     */
    @Test
    public void testBBFullyOutsideOf() {
        // create request object
        JDOMFactory factory = new DefaultJDOMFactory();
        Element request = factory.element("request");
        Element anyE = factory.element("eastBL");
        anyE.addContent("55");
        request.addContent(anyE);
        Element anyW = factory.element("westBL");
        anyW.addContent("43");
        request.addContent(anyW);
        Element anyN = factory.element("northBL");
        anyN.addContent("30");
        request.addContent(anyN);
        Element anyS = factory.element("southBL");
        anyS.addContent("0");
        request.addContent(anyS);
        Element anyR = factory.element("relation");
        anyR.addContent("fullyOutsideOf");
        request.addContent(anyR);
        // build lucene query input
        LuceneQueryInput lQI = new LuceneQueryInput(request);
        // build lucene query
View Full Code Here

     * 'bounding box' parameter overlaps - standard values from search page.
     */
    @Test
    public void testBBOverlapsStandard() {
        // create request object
        JDOMFactory factory = new DefaultJDOMFactory();
        Element request = factory.element("request");
        Element anyE = factory.element("eastBL");
        anyE.addContent("180");
        request.addContent(anyE);
        Element anyW = factory.element("westBL");
        anyW.addContent("-180");
        request.addContent(anyW);
        Element anyN = factory.element("northBL");
        anyN.addContent("90");
        request.addContent(anyN);
        Element anyS = factory.element("southBL");
        anyS.addContent("-90");
        request.addContent(anyS);
        Element anyR = factory.element("relation");
        anyR.addContent("overlaps");
        request.addContent(anyR);
        // build lucene query input
        LuceneQueryInput lQI = new LuceneQueryInput(request);
        // build lucene query
View Full Code Here

     * </request>
     */
    @Test
    public void testRandomTest1() {
        // create request object
        JDOMFactory factory = new DefaultJDOMFactory();
        Element request = factory.element("request");

        Element anyT = factory.element("title");
        anyT.addContent("hoi");
        request.addContent(anyT);

        Element anySB = factory.element("sortBy");
        anySB.addContent("popularity");
        request.addContent(anySB);

        Element any = factory.element("any");
        request.addContent(any);

        Element anySM = factory.element("similarity");
        anySM.addContent("1");
        request.addContent(anySM);

        Element anyHP = factory.element("hitsPerPage");
        anyHP.addContent("10");
        request.addContent(anyHP);

        Element anyAS = factory.element("attrset");
        anyAS.addContent("geo");
        request.addContent(anyAS);

        Element anyG1 = factory.element("group");
        anyG1.addContent("0");
        request.addContent(anyG1);

        Element anyG2 = factory.element("group");
        anyG2.addContent("1");
        request.addContent(anyG2);


        Element anyE = factory.element("eastBL");
        anyE.addContent("180");
        request.addContent(anyE);
        Element anyW = factory.element("westBL");
        anyW.addContent("-180");
        request.addContent(anyW);
        Element anyN = factory.element("northBL");
        anyN.addContent("90");
        request.addContent(anyN);
        Element anyS = factory.element("southBL");
        anyS.addContent("-90");
        request.addContent(anyS);
        Element anyR = factory.element("relation");
        anyR.addContent("overlaps");
        request.addContent(anyR);
        // build lucene query input
        LuceneQueryInput lQI = new LuceneQueryInput(request);
        // build lucene query
View Full Code Here

TOP

Related Classes of org.jdom.DefaultJDOMFactory

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.