Package net.opengis.cat.csw20.impl

Examples of net.opengis.cat.csw20.impl.HarvestResponseTypeImpl


     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public void setValue(ElementSetType newValue) {
        ElementSetType oldValue = value;
        value = newValue == null ? VALUE_EDEFAULT : newValue;
        boolean oldValueESet = valueESet;
        valueESet = true;
        if (eNotificationRequired())
            eNotify(new ENotificationImpl(this, Notification.SET, Csw20Package.ELEMENT_SET_NAME_TYPE__VALUE, oldValue, value, !oldValueESet));
View Full Code Here


     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public void unsetValue() {
        ElementSetType oldValue = value;
        boolean oldValueESet = valueESet;
        value = VALUE_EDEFAULT;
        valueESet = false;
        if (eNotificationRequired())
            eNotify(new ENotificationImpl(this, Notification.UNSET, Csw20Package.ELEMENT_SET_NAME_TYPE__VALUE, oldValue, VALUE_EDEFAULT, oldValueESet));
View Full Code Here

     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public void setElementSet(ElementSetType newElementSet) {
        ElementSetType oldElementSet = elementSet;
        elementSet = newElementSet == null ? ELEMENT_SET_EDEFAULT : newElementSet;
        boolean oldElementSetESet = elementSetESet;
        elementSetESet = true;
        if (eNotificationRequired())
            eNotify(new ENotificationImpl(this, Notification.SET, Csw20Package.SEARCH_RESULTS_TYPE__ELEMENT_SET, oldElementSet, elementSet, !oldElementSetESet));
View Full Code Here

     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public void unsetElementSet() {
        ElementSetType oldElementSet = elementSet;
        boolean oldElementSetESet = elementSetESet;
        elementSet = ELEMENT_SET_EDEFAULT;
        elementSetESet = false;
        if (eNotificationRequired())
            eNotify(new ENotificationImpl(this, Notification.UNSET, Csw20Package.SEARCH_RESULTS_TYPE__ELEMENT_SET, oldElementSet, ELEMENT_SET_EDEFAULT, oldElementSetESet));
View Full Code Here

                records = results.get(0);
            } else if (results.size() > 1) {
                records = new CompositeFeatureCollection(results);
            }

            ElementSetType elementSet = getElementSetName(request);

            CSWRecordsResult result = new CSWRecordsResult(elementSet,
                    request.getOutputSchema(), numberOfRecordsMatched, numberOfRecordsMatched, 0, timestamp, records);
            return result;
        } catch(IOException e) {
View Full Code Here

            throw new ServiceException("Request failed due to: " + e.getMessage(), e);
        }
    }
   
    private ElementSetType getElementSetName(GetRecordByIdType request) {
        ElementSetType elementSet = request.getElementSetName() != null ? request
                .getElementSetName().getValue() : null;
        if (elementSet == null) {
            // the default is "summary"
            elementSet = ElementSetType.SUMMARY;
        }
View Full Code Here

        }
        List<QName> typeNames = resolver.parseQNames(typeNamesString, namespaces);
        query.setTypeNames(typeNames);
       
        // handle the element set
        ElementSetType elementSet = (ElementSetType) kvp.remove("ELEMENTSETNAME");
        if (elementSet != null) {
            ElementSetNameType esn = Csw20Factory.eINSTANCE.createElementSetNameType();
            esn.setValue(elementSet);
            esn.setTypeNames(typeNames);
            query.setElementSetName(esn);
View Full Code Here

    }

    @Override
    public Object read(Object request, Map kvp, Map rawKvp) throws Exception {
     
      ElementSetType ent = (ElementSetType) kvp.get("elementsetname");
      if (ent != null) {
        ElementSetNameType esnt = Csw20Factory.eINSTANCE.createElementSetNameType();
        esnt.setValue(ent);
          kvp.put("elementsetname", esnt);
      }
View Full Code Here

                counts[i] = store.getRecordsCount(queries.get(i), Transaction.AUTO_COMMIT);
                numberOfRecordsMatched += counts[i];
            }
           

            ElementSetType elementSet = getElementSet(cswQuery);
   
            int numberOfRecordsReturned = 0;
            int nextRecord = 0;
            FeatureCollection records = null;
            if(resultType != ResultType.VALIDATE) {
View Full Code Here

            for (QName qn : query.getElementName()) {
                result.add(store.translateProperty(rd, Types.toTypeName(qn)));
            }
            return result;
        } else {
            ElementSetType elementSet = getElementSet(query);
            List<Name> properties = rd.getPropertiesForElementSet(elementSet);
            if(properties != null) {
                List<PropertyName> result = new ArrayList<PropertyName>();
                for (Name pn : properties) {
                    result.add(store.translateProperty(rd, pn));
View Full Code Here

TOP

Related Classes of net.opengis.cat.csw20.impl.HarvestResponseTypeImpl

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.