Package net.opengis.wfs

Examples of net.opengis.wfs.NativeType


     */
    protected static final QName[] EMPTY_QNAMES = new QName[0];

    public void checkValidity(EObject element, Map featureTypeInfos)
        throws WFSTransactionException {
        NativeType nativ = (NativeType) element;

        if (!nativ.isSafeToIgnore()) {
            throw new WFSTransactionException("Native element:" + nativ.getVendorId()
                + " unsupported but marked as" + " unsafe to ignore", "InvalidParameterValue");
        }
    }
View Full Code Here


     *
     * @generated modifiable
     */
    public Object parse(ElementInstance instance, Node node, Object value)
        throws Exception {
        NativeType nativ = wfsfactory.createNativeType();

        //<xsd:attribute name="vendorId" type="xsd:string" use="required">
        nativ.setVendorId((String) node.getAttributeValue("vendorId"));

        //<xsd:attribute name="safeToIgnore" type="xsd:boolean" use="required">
        nativ.setSafeToIgnore(((Boolean) node.getAttributeValue("safeToIgnore")).booleanValue());

        return nativ;
    }
View Full Code Here

     */
    protected static final QName[] EMPTY_QNAMES = new QName[0];

    public void checkValidity(EObject element, Map featureTypeInfos)
        throws WFSTransactionException {
        NativeType nativ = (NativeType) element;

        if (!nativ.isSafeToIgnore()) {
            throw new WFSTransactionException("Native element:" + nativ.getVendorId()
                + " unsupported but marked as" + " unsafe to ignore", "InvalidParameterValue");
        }
    }
View Full Code Here

        public WFS11(EObject adaptee) {
            super(adaptee);
        }

        public static NativeType unadapt(Native nativ) {
            NativeType n = WfsFactory.eINSTANCE.createNativeType();
            n.setSafeToIgnore(nativ.isSafeToIgnore());
            n.setVendorId(nativ.getVendorId());
            //TODO: value
            return n;
        }
View Full Code Here

     *
     * @generated modifiable
     */
    public Object parse(ElementInstance instance, Node node, Object value)
        throws Exception {
        NativeType nativ = wfsfactory.createNativeType();

        //<xsd:attribute name="vendorId" type="xsd:string" use="required">
        nativ.setVendorId((String) node.getAttributeValue("vendorId"));

        //<xsd:attribute name="safeToIgnore" type="xsd:boolean" use="required">
        nativ.setSafeToIgnore(((Boolean) node.getAttributeValue("safeToIgnore")).booleanValue());
       
        //<xsd:any processContents="lax" namespace="##other" minOccurs="0"/>
        if (instance.getText() != null && instance.getText().length() != 0) {
            nativ.setValue(instance.getText());
        }
        return nativ;
    }
View Full Code Here

    }

  @Test
    public void testNativeType() throws Exception {
        Parser p = new Parser(getXmlConfiguration11());
        NativeType nativ = (NativeType) p.parse(
            new ByteArrayInputStream("<wfs:Native safeToIgnore='true' xmlns:wfs='http://www.opengis.net/wfs'>here is some text</wfs:Native>".getBytes()));

        assertEquals("here is some text", nativ.getValue());
    }
View Full Code Here

     *
     * @generated modifiable
     */
    public Object parse(ElementInstance instance, Node node, Object value)
        throws Exception {
        NativeType nativ = wfsfactory.createNativeType();

        //&lt;xsd:attribute name="vendorId" type="xsd:string" use="required"&gt;
        nativ.setVendorId((String) node.getAttributeValue("vendorId"));

        //&lt;xsd:attribute name="safeToIgnore" type="xsd:boolean" use="required"&gt;
        nativ.setSafeToIgnore(((Boolean) node.getAttributeValue("safeToIgnore")).booleanValue());

        return nativ;
    }
View Full Code Here

TOP

Related Classes of net.opengis.wfs.NativeType

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.