public static CodeType code(Name name) { CodeType code = f.createCodeType(); // code.setCodeSpace(name.getNamespaceURI()); // code.setValue(name.getLocalPart()); code.setValue(name.getURI()); return code; }
public Object convert(Object source, Class target) throws Exception { Name name = (Name) source; return name.getURI(); } };
public String getName() { return WFSContentComplexFeatureSource.this.getName().getURI(); }
public QName getName() { return new QName(name.getURI(), name.getLocalPart()); }
words.add(WFSContentComplexFeatureSource.this.getName().getURI());
public QName getName() { return new QName(name.getURI(), name.getLocalPart()); }
builder.setNamespaceURI(original.getName().getURI());
public LayerResource(Name name) { super(); this.name = name.getLocalPart(); this.uri = name.getURI(); }
public LayerResource(Name name) { super(); this.name = name.getLocalPart(); this.uri = name.getURI(); }
public String getName() { return WFSContentComplexFeatureSource.this.getName().getURI(); }
private Optional<Property> findCountryName(final Feature feature, final List<String> alternateNames) { final List<String> lowerCaseAlternateNames = alternateNames.stream() .map(String::toLowerCase).collect(Collectors.toList()); return feature.getProperties().stream().filter(property -> lowerCaseAlternateNames .contains(property.getName().getURI().toLowerCase())).findFirst(); }
public QName getName() { return new QName( name.getURI(), name.getLocalPart() ); }
public QName getName() { return new QName(name.getURI(), name.getLocalPart()); }
public QName getName() { return new QName( name.getURI(), name.getLocalPart() ); }
public QName getName() { return new QName(name.getURI(), name.getLocalPart()); }
/** * @see org.geotools.data.DataAccess#getFeatureSource(org.opengis.feature.type.Name) */ public SimpleFeatureSource getFeatureSource(Name typeName) throws IOException { Set<QName> featureTypeNames = wfs.getFeatureTypeNames(); final String namespaceURI = typeName.getNamespaceURI(); final String localPart = typeName.getLocalPart(); for (QName qname : featureTypeNames) { if (namespaceURI.equals(qname.getNamespaceURI()) && localPart.equals(qname.getLocalPart())) { String prefixedName = qname.getPrefix() + ":" + localPart; return getFeatureSource(prefixedName); } } throw new SchemaNotFoundException(typeName.getURI()); }
/** * @see DataAccess#getSchema(Name) * @see #getSchema(String) */ public SimpleFeatureType getSchema(Name name) throws IOException { Set<QName> featureTypeNames = wfs.getFeatureTypeNames(); String namespaceURI; String localPart; for (QName qname : featureTypeNames) { namespaceURI = name.getNamespaceURI(); localPart = name.getLocalPart(); if (namespaceURI.equals(qname.getNamespaceURI()) && localPart.equals(qname.getLocalPart())) { String prefixedName = qname.getPrefix() + ":" + localPart; return getSchema(prefixedName); } } throw new SchemaNotFoundException(name.getURI()); }
public void testNamesUnique() throws Exception { List<String> procs = new ArrayList<String>(); Set<String> uniqueProcs = new HashSet<String>(); for (ProcessFactory pf : Processors.getProcessFactories()) { for (Name name : pf.getNames()) { String procName = name.getURI(); procs.add(procName); uniqueProcs.add(procName); } } // remove duplicate names removeSingle(procs, uniqueProcs); if (procs.size() > 0) { System.out.println("Duplicate process names: " + procs); } assertTrue(procs.size() == 0); }
private void processDescription(ProcessFactory pf, Name identifier) { AttributesImpl attributes = new AttributesImpl(); attributes.addAttribute("", "wps:processVersion", "wps:processVersion", "", pf.getVersion(identifier)); attributes.addAttribute("", "statusSupported", "statusSupported", "", Boolean.toString(pf.supportsProgress(identifier))); start("ProcessDescription", attributes); element("ows:Identifier", identifier.getURI()); element("ows:Title", pf.getTitle(identifier).toString(this.locale)); element("ows:Abstract", pf.getDescription(identifier).toString(this.locale)); this.dataInputs(pf, identifier); this.processOutputs(pf, identifier); end("ProcessDescription"); }
@Override public void encode(Object o) throws IllegalArgumentException { List<AggregateTypeConfiguration> configs = (List<AggregateTypeConfiguration>) o; start("AggregateTypes", attributes("version", "1.0")); for (AggregateTypeConfiguration config : configs) { start("AggregateType", attributes("name", config.getName())); for (SourceType st : config.getSourceTypes()) { element("Source", null, attributes("store", st.getStoreName().getURI(), "type", st.getTypeName())); } end("AggregateType"); } end("AggregateTypes"); }