Examples of GmlObjectId


Examples of org.opengis.filter.identity.GmlObjectId

    }
   
    public Object run( GetGmlObjectType request ) throws WFSException {
    
        //get the gml object id
        GmlObjectId id = request.getGmlObjectId();
       
        //set up the hints
        Hints hints = new Hints();
        if ( request.getTraverseXlinkDepth() != null ) {
           Integer depth =
View Full Code Here

Examples of org.opengis.filter.identity.GmlObjectId

    }

    public Object getProperty(Object object, QName name)
        throws Exception {
        if ("id".equals(name.getLocalPart())) {
            GmlObjectId id = (GmlObjectId) object;

            return id.getID();
        }

        return null;
    }
View Full Code Here

Examples of org.opengis.filter.identity.GmlObjectId

            req.setVersion("1.1.0");
            req.setHandle("testHandle");
            req.setOutputFormat("GML2");
            req.setTraverseXlinkDepth("3");
            req.setTraverseXlinkExpiry(BigInteger.valueOf(2));
            GmlObjectId gmlObjectId = filterFac.gmlObjectId("gmlid.1");
            req.setGmlObjectId(gmlObjectId);
        }
        final Document dom = encode(req, WFS.GetGmlObject);
        final Element root = dom.getDocumentElement();
        assertName(WFS.GetGmlObject, root);
        assertEquals("WFS", root.getAttribute("service"));
        assertEquals("1.1.0", root.getAttribute("version"));
        assertEquals("testHandle", root.getAttribute("handle"));
        assertEquals("GML2", root.getAttribute("outputFormat"));
        assertEquals("3", root.getAttribute("traverseXlinkDepth"));
        assertEquals("2", root.getAttribute("traverseXlinkExpiry"));
       
        Element gmlObjectId = getElementByQName(root, OGC.GmlObjectId);
        assertNotNull(gmlObjectId);
        assertEquals("gmlid.1", gmlObjectId.getAttributeNS(GML.NAMESPACE, GML.id.getLocalPart()));
    }
View Full Code Here

Examples of org.opengis.filter.identity.GmlObjectId

        assertEquals("GML3", getGmlObj.getOutputFormat());
        assertEquals("*", getGmlObj.getTraverseXlinkDepth());
        assertEquals(5, getGmlObj.getTraverseXlinkExpiry().intValue());

        // TODO: remove cast once the wfs-1.1.0 jar is deployed
        GmlObjectId gmlObjectId = (GmlObjectId) getGmlObj.getGmlObjectId();
        assertEquals("id1", gmlObjectId.getID());
    }
View Full Code Here

Examples of org.opengis.filter.identity.GmlObjectId

    }

    public void testParse() throws Exception {
        FilterMockData.gmlObjectId(document, document);

        GmlObjectId id = (GmlObjectId) parse();

        assertEquals("foo", id.toString());
    }
View Full Code Here

Examples of org.opengis.filter.identity.GmlObjectId

    }
   
    public Object run( GetGmlObjectType request ) throws WFSException {
    
        //get the gml object id
        GmlObjectId id = request.getGmlObjectId();
       
        //set up the hints
        Hints hints = new Hints();
        if ( request.getTraverseXlinkDepth() != null ) {
           Integer depth =
View Full Code Here

Examples of org.opengis.filter.identity.GmlObjectId

    }
   
    public Object run( GetGmlObjectType request ) throws WFSException {
    
        //get the gml object id
        GmlObjectId id = request.getGmlObjectId();
       
        //set up the hints
        Hints hints = new Hints();
        if ( request.getTraverseXlinkDepth() != null ) {
           Integer depth =
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.