Package net.opengis.cat.csw20

Examples of net.opengis.cat.csw20.QueryType


     * <!-- 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

    Parser parser = new Parser(new CSWConfiguration());

    @Test
    public void testParseCapabilitiesRequest() throws Exception {
        String capRequestPath = "GetCapabilities.xml";
        GetCapabilitiesType caps = (GetCapabilitiesType) parser.parse(getClass().getResourceAsStream(capRequestPath));
        assertEquals("CSW", caps.getService());
       
        List versions = caps.getAcceptVersions().getVersion();
        assertEquals("2.0.2", versions.get(0));
        assertEquals("2.0.0", versions.get(1));
        assertEquals("0.7.2", versions.get(2));
       
        List sections = caps.getSections().getSection();
        assertEquals("OperationsMetadata", sections.get(0));
    }
View Full Code Here

public class GetDomainTest {
    Parser parser = new Parser(new CSWConfiguration());
   
    @Test
    public void testParseGetDomainParameter() throws Exception {
        GetDomainType gd = (GetDomainType) parser.parse(getClass().getResourceAsStream(
                "GetDomainParameter.xml"));
        // check the attributes
        assertEquals("CSW", gd.getService());
        assertEquals("2.0.2", gd.getVersion());
       
        assertEquals("GetRecords.outputFormat", gd.getParameterName());
    }
View Full Code Here

        assertEquals("GetRecords.outputFormat", gd.getParameterName());
    }
   
    @Test
    public void testParseGetDomainProperty() throws Exception {
        GetDomainType gd = (GetDomainType) parser.parse(getClass().getResourceAsStream(
                "GetDomainProperty.xml"));
        // check the attributes
        assertEquals("CSW", gd.getService());
        assertEquals("2.0.2", gd.getVersion());
       
        assertEquals("foo", gd.getPropertyName());
    }
View Full Code Here

TOP

Related Classes of net.opengis.cat.csw20.QueryType

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.