/** * * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated modifiable */ public Object parse(InstanceComponent instance, Object value) throws Exception { return InterpolationMethodType.get((String) value); } }
/** * * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated modifiable */ public Object parse(InstanceComponent instance, Object value) throws Exception { return CapabilitiesSectionType.get((String) value); } }
/** * * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated modifiable */ public Object parse(ElementInstance instance, Node node, Object value) throws Exception { DomainSubsetType domainSubset = Wcs10Factory.eINSTANCE.createDomainSubsetType(); SpatialSubsetType spatialSubset = (SpatialSubsetType) node.getChildValue("spatialSubset"); if (spatialSubset != null) domainSubset.setSpatialSubset(spatialSubset); return domainSubset; }
AxisSubsetType axis = Wcs10Factory.eINSTANCE.createAxisSubsetType(); if (attType.getName().equals("name")) axis.setName(attType.getText()); TypedLiteralType theValue = Wcs10Factory.eINSTANCE.createTypedLiteralType(); theValue.setValue((String) singleValue.getValue()); axis.getSingleValue().add(theValue); IntervalType range = Wcs10Factory.eINSTANCE.createIntervalType(); if (interval.getChild("min") != null) { TypedLiteralType theValue = Wcs10Factory.eINSTANCE.createTypedLiteralType(); theValue.setValue((String) interval.getChildValue("min")); range.setMin(theValue); TypedLiteralType theValue = Wcs10Factory.eINSTANCE.createTypedLiteralType(); theValue.setValue((String) interval.getChildValue("max")); range.setMax(theValue); TypedLiteralType theValue = Wcs10Factory.eINSTANCE.createTypedLiteralType(); theValue.setValue((String) interval.getChildValue("res")); range.setRes(theValue); range.setAtomic((Boolean) interval.getAttributeValue("atomic")); else range.setAtomic(false); axis.getInterval().add(range);
/** * * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated modifiable */ public Object parse(ElementInstance instance, Node node, Object value) throws Exception { SpatialSubsetType spatialSubset = Wcs10Factory.eINSTANCE.createSpatialSubsetType(); List<Node> envelopes = node.getChildren("Envelope"); for (Node envelopeNode : envelopes) { ReferencedEnvelope envelope = (ReferencedEnvelope) envelopeNode.getValue(); EnvelopeType env = Gml4wcsFactory.eINSTANCE.createEnvelopeType(); env.setSrsName(CRS.lookupIdentifier(envelope.getCoordinateReferenceSystem(), true)); DirectPositionType pos1 = Gml4wcsFactory.eINSTANCE.createDirectPositionType(); DirectPositionType pos2 = Gml4wcsFactory.eINSTANCE.createDirectPositionType(); pos1.setDimension(BigInteger.valueOf(2)); pos2.setDimension(BigInteger.valueOf(2)); pos1.setValue(Arrays.asList(envelope.getMinX(), envelope.getMinY())); pos2.setValue(Arrays.asList(envelope.getMaxX(), envelope.getMaxY())); env.getPos().add(pos1); env.getPos().add(pos2); spatialSubset.getEnvelope().add(envelope); } List<Node> gridsNode = node.getChildren("Grid"); for (Node grid : gridsNode) spatialSubset.getGrid().add(grid.getValue()); return spatialSubset; }
TimeSequenceType results = Wcs10Factory.eINSTANCE.createTimeSequenceType(); Date positionDate = ((Position) timePositionNode.getValue()).getDate(); timePosition.setValue(positionDate); results.getTimePosition().add(timePosition); TimePeriodType timePeriod = Wcs10Factory.eINSTANCE.createTimePeriodType(); TimePositionType beginPosition = Gml4wcsFactory.eINSTANCE.createTimePositionType(); endPosition.setValue(ending.getPosition().getDate()); timePeriod.setBeginPosition(beginPosition); timePeriod.setEndPosition(endPosition); results.getTimePeriod().add(timePeriod);
@Override protected void qualifyRequest( WorkspaceInfo ws, PublishedInfo l, Operation operation, Request request) { GetCapabilitiesType caps = parameter(operation, GetCapabilitiesType.class); if (caps != null) { return; } DescribeCoverageType dcov = parameter(operation, DescribeCoverageType.class); if (dcov != null) { qualifyLayerNames(dcov.getCoverage(), ws); return; } GetCoverageType gcov = parameter(operation, GetCoverageType.class); if (gcov != null) { qualifyName(gcov.getSourceCoverage(), ws); } } }
/** * Returns the '<em><b>Interpolation Method Type</b></em>' literal with the specified literal value. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public static InterpolationMethodType get(String literal) { for (int i = 0; i < VALUES_ARRAY.length; ++i) { InterpolationMethodType result = VALUES_ARRAY[i]; if (result.toString().equals(literal)) { return result; } } return null; }
/** * Returns the '<em><b>Interpolation Method Type</b></em>' literal with the specified name. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public static InterpolationMethodType getByName(String name) { for (int i = 0; i < VALUES_ARRAY.length; ++i) { InterpolationMethodType result = VALUES_ARRAY[i]; if (result.getName().equals(name)) { return result; } } return null; }
/** * Returns the '<em><b>Closure Type</b></em>' literal with the specified literal value. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public static ClosureType get(String literal) { for (int i = 0; i < VALUES_ARRAY.length; ++i) { ClosureType result = VALUES_ARRAY[i]; if (result.toString().equals(literal)) { return result; } } return null; }
/** * Returns the '<em><b>Capabilities Section Type</b></em>' literal with the specified literal value. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public static CapabilitiesSectionType get(String literal) { for (int i = 0; i < VALUES_ARRAY.length; ++i) { CapabilitiesSectionType result = VALUES_ARRAY[i]; if (result.toString().equals(literal)) { return result; } } return null; }
/** * Returns the '<em><b>Metadata Type Type</b></em>' literal with the specified name. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public static MetadataTypeType getByName(String name) { for (int i = 0; i < VALUES_ARRAY.length; ++i) { MetadataTypeType result = VALUES_ARRAY[i]; if (result.getName().equals(name)) { return result; } } return null; }
/** * Returns the '<em><b>Metadata Type Type</b></em>' literal with the specified literal value. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public static MetadataTypeType get(String literal) { for (int i = 0; i < VALUES_ARRAY.length; ++i) { MetadataTypeType result = VALUES_ARRAY[i]; if (result.toString().equals(literal)) { return result; } } return null; }
/** * Returns the '<em><b>Capabilities Section Type</b></em>' literal with the specified name. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public static CapabilitiesSectionType getByName(String name) { for (int i = 0; i < VALUES_ARRAY.length; ++i) { CapabilitiesSectionType result = VALUES_ARRAY[i]; if (result.getName().equals(name)) { return result; } } return null; }
/** * Returns the '<em><b>Closure Type</b></em>' literal with the specified name. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public static ClosureType getByName(String name) { for (int i = 0; i < VALUES_ARRAY.length; ++i) { ClosureType result = VALUES_ARRAY[i]; if (result.getName().equals(name)) { return result; } } return null; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public MetadataTypeType createMetadataTypeTypeFromString(EDataType eDataType, String initialValue) { MetadataTypeType result = MetadataTypeType.get(initialValue); if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); return result; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public ClosureType createClosureTypeFromString(EDataType eDataType, String initialValue) { ClosureType result = ClosureType.get(initialValue); if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); return result; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public CapabilitiesSectionType createCapabilitiesSectionTypeFromString(EDataType eDataType, String initialValue) { CapabilitiesSectionType result = CapabilitiesSectionType.get(initialValue); if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); return result; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public InterpolationMethodType createInterpolationMethodTypeFromString(EDataType eDataType, String initialValue) { InterpolationMethodType result = InterpolationMethodType.get(initialValue); if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); return result; }