Package net.opengis.ows11

Examples of net.opengis.ows11.ValueType


     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public NotificationChain basicSetSpacing(ValueType newSpacing, NotificationChain msgs) {
        ValueType oldSpacing = spacing;
        spacing = newSpacing;
        if (eNotificationRequired()) {
            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Ows11Package.RANGE_TYPE__SPACING, oldSpacing, newSpacing);
            if (msgs == null) msgs = notification; else msgs.add(notification);
        }
View Full Code Here


                }
                if(lppio.getType().isEnum()) {
                  Object[] enumValues = lppio.getType().getEnumConstants();
                  AllowedValuesType allowed = owsf.createAllowedValuesType();
                  for (Object value : enumValues) {
                    ValueType vt = owsf.createValueType();
                    vt.setValue(value.toString());
            allowed.getValue().add(vt);
          }
                  literal.setAllowedValues(allowed);
                } else {
                  literal.setAnyValue( owsf.createAnyValueType() );
View Full Code Here

    }

    private void addAllowedValues(LiteralInputType literal, Object[] values) {
        AllowedValuesType allowed = owsf.createAllowedValuesType();
        for (Object value : values) {
            ValueType vt = owsf.createValueType();
            vt.setValue(value.toString());
            allowed.getValue().add(vt);
        }
        literal.setAllowedValues(allowed);
    }
View Full Code Here

    @SuppressWarnings("unchecked")
    public Object parse(String value) throws Exception {

        List<CodeType> values = new ArrayList<CodeType>();

        Ows11Factory owsFactory = new Ows11FactoryImpl();

        for(String str : (List<String>)KvpUtils.readFlat(value)) {
            CodeType codeType = owsFactory.createCodeType();
            codeType.setValue(str);
            values.add(codeType);
        }

        return values;
View Full Code Here

     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public NotificationChain basicSetDefaultValue(ValueType newDefaultValue, NotificationChain msgs) {
        ValueType oldDefaultValue = defaultValue;
        defaultValue = newDefaultValue;
        if (eNotificationRequired()) {
            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Ows20Package.UN_NAMED_DOMAIN_TYPE__DEFAULT_VALUE, oldDefaultValue, newDefaultValue);
            if (msgs == null) msgs = notification; else msgs.add(notification);
        }
View Full Code Here

     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public NotificationChain basicSetMinimumValue(ValueType newMinimumValue, NotificationChain msgs) {
        ValueType oldMinimumValue = minimumValue;
        minimumValue = newMinimumValue;
        if (eNotificationRequired()) {
            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Ows20Package.RANGE_TYPE__MINIMUM_VALUE, oldMinimumValue, newMinimumValue);
            if (msgs == null) msgs = notification; else msgs.add(notification);
        }
View Full Code Here

     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public NotificationChain basicSetMaximumValue(ValueType newMaximumValue, NotificationChain msgs) {
        ValueType oldMaximumValue = maximumValue;
        maximumValue = newMaximumValue;
        if (eNotificationRequired()) {
            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Ows20Package.RANGE_TYPE__MAXIMUM_VALUE, oldMaximumValue, newMaximumValue);
            if (msgs == null) msgs = notification; else msgs.add(notification);
        }
View Full Code Here

     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public NotificationChain basicSetSpacing(ValueType newSpacing, NotificationChain msgs) {
        ValueType oldSpacing = spacing;
        spacing = newSpacing;
        if (eNotificationRequired()) {
            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Ows20Package.RANGE_TYPE__SPACING, oldSpacing, newSpacing);
            if (msgs == null) msgs = notification; else msgs.add(notification);
        }
View Full Code Here

    dataDictionary.getDataField().add(dataField);
    Attribute classAttr = data.classAttribute();
    Enumeration values = classAttr.enumerateValues();

    while (values.hasMoreElements()) {
      ValueType valueType = _40Factory.eINSTANCE.createValueType();
      valueType.setValue(values.nextElement().toString());
      dataField.getValue().add(valueType);
    }

    Enumeration<?> helpInstances = data.enumerateInstances();
    while (helpInstances.hasMoreElements()) {
View Full Code Here

            dataFieldType.setDataType(associateDatatype(helpBox[2]))//DATATYPE
            dataFieldType.setName(helpBox[0])//String
            dataFieldType.setOptype(associateOptype(helpBox[1]))//OPTYPE
            if (dataFieldType.getOptype().equals(OPTYPE.CATEGORICAL)) {
              for (int j=3; j<helpBox.length; j++) {
                ValueType valueType = _40Factory.eINSTANCE.createValueType();
                valueType.setValue(helpBox[j]);
                dataFieldType.getValue().add(valueType);
              }
            }
            dataDictionary.getDataField().add(dataFieldType);
        }
View Full Code Here

TOP

Related Classes of net.opengis.ows11.ValueType

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.