Package net.opengis.wfs20.impl

Examples of net.opengis.wfs20.impl.EnvelopePropertyTypeImpl


        buildDocument(xml);
       
        GetPropertyValueType gf = (GetPropertyValueType) parse();
        assertNotNull(gf);
        assertEquals("foo", gf.getValueReference());
        QueryType q = (QueryType) gf.getAbstractQueryExpression();
        assertNotNull(q);
       
        assertEquals(new URI("epsg:4326"), q.getSrsName());
        assertEquals(1, q.getTypeNames().size());
        assertEquals(
            new QName("http://www.someserver.com/myns", "InWaterA_1M"), q.getTypeNames().get(0));
       
        Id f = (Id) q.getFilter();
        assertNotNull(f);
       
        assertEquals(1, f.getIdentifiers().size());
        assertEquals("InWaterA_1M.1234", f.getIdentifiers().iterator().next().getID());
    }
View Full Code Here


    @Override
    protected void encode(Encoder encoder, Object value, OutputStream output, Operation op)
        throws IOException, ServiceException {

        GetPropertyValueType request = (GetPropertyValueType) op.getParameters()[0];
        QueryType query = (QueryType) request.getAbstractQueryExpression();
        QName typeName = (QName) query.getTypeNames().get(0);
       
        NamespaceInfo ns = gs.getCatalog().getNamespaceByURI(typeName.getNamespaceURI());
       
        encoder.getNamespaces().declarePrefix(ns.getPrefix(), ns.getURI());
        encoder.encode(value, WFS.ValueCollection, output);
View Full Code Here

        this.mapping = mapping;

        // validate and initialise resolve options
        Hints hints = query.getHints();
        ResolveValueType resolveVal = (ResolveValueType) hints.get( Hints.RESOLVE );
        boolean resolve = ResolveValueType.ALL.equals(resolveVal) || ResolveValueType.LOCAL.equals(resolveVal);
        if (!resolve && resolveVal!=null && !ResolveValueType.NONE.equals(resolveVal)) {
            throw new IllegalArgumentException("Resolve:" + resolveVal.getName() + " is not supported in app-schema!");
        }
        Integer atd = (Integer) hints.get(Hints.ASSOCIATION_TRAVERSAL_DEPTH);
        resolveDepth = resolve ? atd==null? 0 : atd  : 0;
        resolveTimeOut = (Integer) hints.get( Hints.RESOLVE_TIMEOUT );
View Full Code Here

     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public void setResolve(ResolveValueType newResolve) {
        ResolveValueType oldResolve = resolve;
        resolve = newResolve == null ? RESOLVE_EDEFAULT : newResolve;
        boolean oldResolveESet = resolveESet;
        resolveESet = true;
        if (eNotificationRequired())
            eNotify(new ENotificationImpl(this, Notification.SET, Wfs20Package.PROPERTY_NAME_TYPE__RESOLVE, oldResolve, resolve, !oldResolveESet));
View Full Code Here

     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public void unsetResolve() {
        ResolveValueType oldResolve = resolve;
        boolean oldResolveESet = resolveESet;
        resolve = RESOLVE_EDEFAULT;
        resolveESet = false;
        if (eNotificationRequired())
            eNotify(new ENotificationImpl(this, Notification.UNSET, Wfs20Package.PROPERTY_NAME_TYPE__RESOLVE, oldResolve, RESOLVE_EDEFAULT, oldResolveESet));
View Full Code Here

     * <!-- begin-user-doc --> <!-- end-user-doc -->
     *
     * @generated
     */
    public void setResolve(ResolveValueType newResolve) {
        ResolveValueType oldResolve = resolve;
        resolve = newResolve == null ? RESOLVE_EDEFAULT : newResolve;
        boolean oldResolveESet = resolveESet;
        resolveESet = true;
        if (eNotificationRequired())
            eNotify(new ENotificationImpl(this, Notification.SET,
View Full Code Here

     * <!-- begin-user-doc --> <!-- end-user-doc -->
     *
     * @generated
     */
    public void unsetResolve() {
        ResolveValueType oldResolve = resolve;
        boolean oldResolveESet = resolveESet;
        resolve = RESOLVE_EDEFAULT;
        resolveESet = false;
        if (eNotificationRequired())
            eNotify(new ENotificationImpl(this, Notification.UNSET,
View Full Code Here

     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public void setResolve(ResolveValueType newResolve) {
        ResolveValueType oldResolve = resolve;
        resolve = newResolve == null ? RESOLVE_EDEFAULT : newResolve;
        boolean oldResolveESet = resolveESet;
        resolveESet = true;
        if (eNotificationRequired())
            eNotify(new ENotificationImpl(this, Notification.SET, Wfs20Package.GET_PROPERTY_VALUE_TYPE__RESOLVE, oldResolve, resolve, !oldResolveESet));
View Full Code Here

     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public void unsetResolve() {
        ResolveValueType oldResolve = resolve;
        boolean oldResolveESet = resolveESet;
        resolve = RESOLVE_EDEFAULT;
        resolveESet = false;
        if (eNotificationRequired())
            eNotify(new ENotificationImpl(this, Notification.UNSET, Wfs20Package.GET_PROPERTY_VALUE_TYPE__RESOLVE, oldResolve, RESOLVE_EDEFAULT, oldResolveESet));
View Full Code Here

     * <!-- begin-user-doc --> <!-- end-user-doc -->
     *
     * @generated
     */
    public void setResultType(ResultTypeType newResultType) {
        ResultTypeType oldResultType = resultType;
        resultType = newResultType == null ? RESULT_TYPE_EDEFAULT : newResultType;
        boolean oldResultTypeESet = resultTypeESet;
        resultTypeESet = true;
        if (eNotificationRequired())
            eNotify(new ENotificationImpl(this, Notification.SET,
View Full Code Here

TOP

Related Classes of net.opengis.wfs20.impl.EnvelopePropertyTypeImpl

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.