Package org.opengis.filter.identity

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


    }

    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

            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

        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

    }

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

        GmlObjectId id = (GmlObjectId) parse();

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

    }
   
    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

    }
   
    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

Related Classes of org.opengis.filter.identity.GmlObjectId

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.