public static CodeType code(CodeType value) { return code(value.getValue()); }
public static CodeType code(String value) { CodeType code = f.createCodeType(); code.setValue(value); return code; }
public static Name name(CodeType code) { // mushy translation, code type seems to never have a code space in practice if (code.getCodeSpace() != null) { return new NameImpl(code.getCodeSpace(), code.getValue()); } else { return name(code.getValue()); } }
@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.getIdentifier(), ws); return; } GetCoverageType gcov = parameter(operation, GetCoverageType.class); if (gcov != null) { if (gcov.getIdentifier() != null && gcov.getIdentifier().getValue() != null) { gcov.getIdentifier().setValue(qualifyName(gcov.getIdentifier().getValue(), ws)); } } } }
: ((LanguageStringType) serviceType.getTitle().get(0)).getValue(); setTitle(title); setName(serviceType.getServiceType().getValue());
@Override public Object parse(String value) throws Exception { CodeType result = Ows11Factory.eINSTANCE.createCodeType(); result.setValue(value); return result; } }
matrixSet.setCRS(tm.getSupportedCRS()); matrixSet.setWellKnownScaleSet(tm.getWellKnownScaleSet()); matrixSet.setIdentifier(tm.getIdentifier().getValue()); if (tm.getBoundingBox() != null) { matrixSet.setBbox(bbox2bbox(tm.getBoundingBox())); TileMatrix matrix = new TileMatrix(); matrix.setIdentifier(mat.getIdentifier().getValue()); matrix.setDenominator(mat.getScaleDenominator()); matrix.setMatrixHeight(mat.getMatrixHeight().intValue()); throw new ServiceException( "MatrixSet " + tm.getIdentifier().getValue() + ": unable to create CRS " + matrixSet.getCrs());
public static CodeType code(Name name) { CodeType code = f.createCodeType(); // code.setCodeSpace(name.getNamespaceURI()); // code.setValue(name.getLocalPart()); code.setValue(name.getURI()); return code; }
private WMTSLayer parseLayer(LayerType layerType) { String title = ((LanguageStringType) layerType.getTitle().get(0)).getValue(); WMTSLayer layer = new WMTSLayer(title); layer.setName(layerType.getIdentifier().getValue()); for (StyleType styleType : styles) { StyleImpl style = new StyleImpl(); style.setName(styleType.getIdentifier().getValue()); StringBuilder t = new StringBuilder(); for (Object title1 : styleType.getTitle()) { for (DimensionType dimensionType : dimensionList) { CodeType identifierType = dimensionType.getIdentifier(); String dimIdentifier = identifierType.getValue(); String dimDefault = dimensionType.getDefault();
@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; } }
public AbstractInputProvider(InputType input, ProcessParameterIO ppio) { this.input = input; this.ppio = ppio; this.inputId = input.getIdentifier().getValue(); }
@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; } }
public SimpleInputProvider(InputType input, ProcessParameterIO ppio, WPSExecutionManager executor, ApplicationContext context) { this.input = input; this.ppio = ppio; this.context = context; this.executor = executor; this.inputId = input.getIdentifier().getValue(); }
/** * Sets the id of the coverage to request. * * @param coverageId A coverage id * @return this builder */ public WCS2GetCoverageRequestBuilder coverageId(String coverageId) { getCoverageType.setCoverageId(coverageId); CodeType codeType = Ows11Factory.eINSTANCE.createCodeType(); codeType.setValue(coverageId); wcs111GetCoverage.setIdentifier(codeType); return this; }
public Object visit(ASTFieldSubset node, Object data) { FieldSubsetType fs = wcsf.createFieldSubsetType(); for (int i = 0; i < node.jjtGetNumChildren(); i++) { Node child = node.jjtGetChild(i); if(child instanceof ASTFieldId) { CodeType id = owsf.createCodeType(); id.setValue((String) child.jjtAccept(this, null)); fs.setIdentifier(id); } else if(child instanceof ASTInterpolation) { fs.setInterpolationType((String) child.jjtAccept(this, null)); } else if(child instanceof ASTAxisSubset) { fs.getAxisSubset().add(child.jjtAccept(this, null)); } } return fs; }
public Object visit(ASTFieldSubset node, Object data) { FieldSubsetType fs = wcsf.createFieldSubsetType(); for (int i = 0; i < node.jjtGetNumChildren(); i++) { Node child = node.jjtGetChild(i); if (child instanceof ASTFieldId) { CodeType id = owsf.createCodeType(); id.setValue((String) child.jjtAccept(this, null)); fs.setIdentifier(id); } else if (child instanceof ASTInterpolation) { fs.setInterpolationType((String) child.jjtAccept(this, null)); } else if (child instanceof ASTAxisSubset) { fs.getAxisSubset().add(child.jjtAccept(this, null)); } } return fs; }
public String getAttachmentFileName(Object value, Operation operation) { final GetCoverageType request = (GetCoverageType) operation.getParameters()[0]; final String identifier = request.getIdentifier().getValue(); return identifier.replace(':', '_') + ".eml"; }