public DescribeProcess(WPSInfo wps, ApplicationContext context) { this.wps = wps; this.context = context; locale = Locale.getDefault(); //TODO: creating this ever time this operation is performed is sort of silly // some sort of singleton would be nice xsp = new XSProfile(); }
type = PRIMITIVE_TO_WRAPPER.get(type); Name typeName = xsp.name(type); if (typeName != null) { literal.setDataType(Ows11Util.type("xs:" + typeName.getLocalPart()));
type = PRIMITIVE_TO_WRAPPER.get(type); Name typeName = xsp.name(type); if ( typeName != null ) { literal.setDataType(Ows11Util.type("xs:" + typeName.getLocalPart()));
public DescribeProcess(WPSInfo wps, ApplicationContext context) { this.wps = wps; this.context = context; locale = Locale.getDefault(); // TODO: creating this ever time this operation is performed is sort of silly // some sort of singleton would be nice xsp = new XSProfile(); }
type = PRIMITIVE_TO_WRAPPER.get(type); Name typeName = xsp.name(type); if ( typeName != null ) { literal.setDataType( Ows11Util.type( typeName.getLocalPart() ) );
protected FeatureTypeSchemaBuilder(GeoServer gs) { this.gs = gs; this.catalog = gs.getCatalog(); this.resourceLoader = gs.getCatalog().getResourceLoader(); profiles = new ArrayList(); profiles.add(new XSProfile()); }
type = PRIMITIVE_TO_WRAPPER.get(type); Name typeName = xsp.name(type); if (typeName != null) { literal.setDataType(Ows11Util.type(typeName.getLocalPart()));
private QName guessValueType(Object value) { Class clazz = value.getClass(); List profiles = Arrays.asList(new Object[] {new XSProfile(), new GML3Profile()}); for (Iterator it = profiles.iterator(); it.hasNext(); ) { TypeMappingProfile profile = (TypeMappingProfile) it.next(); Name name = profile.name(clazz); if (name != null) { return new QName(name.getNamespaceURI(), name.getLocalPart()); } } return null; } }