private static void export( PropertyIsNull operator, XMLStreamWriter writer ) throws XMLStreamException { writer.writeStartElement( FES_20_NS, "PropertyIsNull" ); export( operator.getPropertyName(), writer ); writer.writeEndElement(); }
private static PropertyIsNull parsePropertyIsNullOperator( XMLStreamReader xmlStream ) throws XMLStreamException { nextElement( xmlStream ); ValueReference propName = parsePropertyName( xmlStream ); nextElement( xmlStream ); return new PropertyIsNull( propName, null ); }
case PROPERTY_IS_NULL: PropertyIsNull pin = (PropertyIsNull) op; return new PropertyIsNull( copy( pin.getPropertyName() ), pin.getMatchAction() );
break; case PROPERTY_IS_NULL: export( ( (PropertyIsNull) operator ).getPropertyName(), writer ); break;
private static PropertyIsNull parsePropertyIsNullOperator( XMLStreamReader xmlStream ) throws XMLStreamException { nextElement( xmlStream ); ValueReference propName = parsePropertyName( xmlStream, false ); nextElement( xmlStream ); return new PropertyIsNull( propName, null ); }
PropertyIsNull propIsNull = (PropertyIsNull) op; SQLOperationBuilder builder = new SQLOperationBuilder( BOOLEAN ); builder.add( toProtoSQL( propIsNull.getPropertyName() ) ); builder.add( " IS NULL" ); sqlOper = builder.toOperation();
private static PropertyIsNull parsePropertyIsNullOperator( XMLStreamReader xmlStream ) throws XMLStreamException { // this is a deegree extension over Filter 2.0.0 spec. (TODO should this be null, if not present?) MatchAction matchAction = null; String s = XMLStreamUtils.getAttributeValue( xmlStream, "matchAction" ); if ( s != null ) { matchAction = parseMatchAction( xmlStream, s ); } nextElement( xmlStream ); Expression value = parseExpression( xmlStream ); nextElement( xmlStream ); return new PropertyIsNull( value, matchAction ); }
return new PropertyIsNotEqualTo( exs[0], exs[1], o.isMatchCase(), o.getMatchAction() ); case PROPERTY_IS_NULL: return new PropertyIsNull( exs[0], o.getMatchAction() );