Package net.opengis.cat.csw20.impl

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


     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public NotificationChain basicSetEchoedRequest(EchoedRequestType newEchoedRequest, NotificationChain msgs) {
        EchoedRequestType oldEchoedRequest = echoedRequest;
        echoedRequest = newEchoedRequest;
        if (eNotificationRequired()) {
            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Csw20Package.ACKNOWLEDGEMENT_TYPE__ECHOED_REQUEST, oldEchoedRequest, newEchoedRequest);
            if (msgs == null) msgs = notification; else msgs.add(notification);
        }
View Full Code Here


     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public NotificationChain basicSetElementSetName(ElementSetNameType newElementSetName, NotificationChain msgs) {
        ElementSetNameType oldElementSetName = elementSetName;
        elementSetName = newElementSetName;
        if (eNotificationRequired()) {
            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Csw20Package.QUERY_TYPE__ELEMENT_SET_NAME, oldElementSetName, newElementSetName);
            if (msgs == null) msgs = notification; else msgs.add(notification);
        }
View Full Code Here

     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public NotificationChain basicSetElementSetName(ElementSetNameType newElementSetName, NotificationChain msgs) {
        ElementSetNameType oldElementSetName = elementSetName;
        elementSetName = newElementSetName;
        if (eNotificationRequired()) {
            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Csw20Package.GET_RECORD_BY_ID_TYPE__ELEMENT_SET_NAME, oldElementSetName, newElementSetName);
            if (msgs == null) msgs = notification; else msgs.add(notification);
        }
View Full Code Here

        expected.add(new QName(rimNamespace, "Classification"));
        expected.add(new QName(rimNamespace, "Association"));
        assertEquals(expected, query.getTypeNames());

        // the element set name
        ElementSetNameType esn = query.getElementSetName();
        expected.clear();
        expected.add(new QName(rimNamespace, "Service"));
        assertEquals(expected, esn.getTypeNames());
        assertEquals(ElementSetType.BRIEF, esn.getValue());
       
        // the sort by properties
        SortBy[] sorts = query.getSortBy();
        assertEquals(2, sorts.length);
        assertEquals("rim:foo", sorts[0].getPropertyName().getPropertyName());
View Full Code Here

        assertEquals("2.0.2", gr.getVersion());
        assertEquals("application/xml", gr.getOutputFormat());
        assertEquals("http://www.opengis.net/cat/csw/2.0.2", gr.getOutputSchema());
       
        // the element set name
        ElementSetNameType esn = gr.getElementSetName();
        assertEquals(ElementSetType.SUMMARY, esn.getValue());
       
        // the ids
        List<URI> ids = gr.getId();
        assertEquals(new URI("REC-10"), ids.get(0));
        assertEquals(new URI("REC-11"), ids.get(1));
View Full Code Here

        super(Csw20Factory.eINSTANCE, CSW.ElementSetNameType);
    }

    public Object parse(ElementInstance instance, Node node, Object value) throws Exception {
       
        ElementSetNameType result = (ElementSetNameType) createEObject(value);
        result.setValue(ElementSetType.get((String) value));
        Node typeNames = node.getAttribute("typeNames");
        if(typeNames != null) {
            result.setTypeNames((List<QName>) typeNames.getValue());
        }
       
       
        return result;
    }
View Full Code Here

        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);
        }
       
        // and the element names
        String elementNamesString = (String) kvp.remove("ELEMENTNAME");
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);
      }
     
      List<URI> idsuri = new ArrayList<URI>();
      String rawId = (String) kvp.get("id");
View Full Code Here

        expected.add(new QName(rimNamespace, "Classification"));
        expected.add(new QName(rimNamespace, "Association"));
        assertEquals(expected, query.getTypeNames());

        // the element set name
        ElementSetNameType esn = query.getElementSetName();
        expected.clear();
        expected.add(new QName(rimNamespace, "Service"));
        assertEquals(expected, esn.getTypeNames());
        assertEquals(ElementSetType.BRIEF, esn.getValue());
    }
View Full Code Here

     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public ElementSetType createElementSetTypeFromString(EDataType eDataType, String initialValue) {
        ElementSetType result = ElementSetType.get(initialValue);
        if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
        return result;
    }
View Full Code Here

TOP

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

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.