PropertyType pt = getType().getPropertyDeclaration( propName ); if ( value == null ) {
QName childEl = getChildElementStepAsQName( propName ); if ( childEl != null ) { PropertyType pt = ft.getPropertyDeclaration( childEl ); String idPrefix = gmlId + "_" + toIdPrefix( propName ); addProperties( props, pt, mapping, rs, idPrefix );
String id = idIter.next(); if ( typeIter.next().equals( propName.getLocalPart() ) ) { PropertyType pt = f.getType().getPropertyDeclaration( propName ); Property p = new GenericProperty( pt, new FeatureReference( ctx, "#" + id, null ) ); iter.add( p );
private void validatePropertyName( ValueReference propName, TypeName[] typeNames ) throws OWSException { // no check possible if feature type is unknown if ( typeNames.length > 0 ) { if ( propName.getAsQName() != null ) { if ( !isPrefixedAndBound( propName ) ) { repairSimpleUnqualified( propName, typeNames[0] ); } // check that the propName is indeed valid as belonging to serviced features QName name = getPropertyNameAsQName( propName ); if ( name != null ) { if ( typeNames.length == 1 ) { FeatureType ft = service.lookupFeatureType( typeNames[0].getFeatureTypeName() ); if ( ft.getPropertyDeclaration( name ) == null ) { // gml:boundedBy currently requires special treatment if ( !name.getLocalPart().equals( "boundedBy" ) ) { String msg = "Specified PropertyName '" + propName.getAsText() + "' (='" + name + "') does not exist for feature type '" + ft.getName() + "'."; throw new OWSException( msg, INVALID_PARAMETER_VALUE, "PropertyName" ); } } } // TODO really skip this check for join queries? } } else { // TODO property name may be an XPath and use aliases... } } }
PropertyType propDecl = ft.getPropertyDeclaration( propName ); if ( propDecl == null ) { property = parsePropertyDynamic( propName, xmlStream, activeCRS, ft, lastPropDecl, appSchema );
PropertyType pt = ft.getPropertyDeclaration( propName ); if ( pt == null ) { throw new OWSException( "Cannot update property '" + propName + "' of feature type '" + ft.getName()