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 ); }
param1 = parseExpression( xmlStream ); nextElement( xmlStream ); param1 = parseExpression( xmlStream ); nextElement( xmlStream ); param1 = parseExpression( xmlStream ); nextElement( xmlStream ); param1 = parseExpression( xmlStream ); nextElement( xmlStream ); param1 = parseExpression( xmlStream ); nextElement( xmlStream ); param1 = parseExpression( xmlStream ); nextElement( xmlStream ); param1 = parseExpression( xmlStream ); nextElement( xmlStream ); param1 = parseExpression( xmlStream ); nextElement( xmlStream ); param1 = parseExpression( xmlStream ); nextElement( xmlStream ); param1 = parseExpression( xmlStream ); nextElement( xmlStream );
List<Expression> params = new ArrayList<Expression>(); while ( xmlStream.getEventType() == START_ELEMENT ) { params.add( parseExpression( xmlStream ) ); nextElement( xmlStream );
private static PropertyIsNil parsePropertyIsNilOperator( 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 ); } String nilReason = XMLStreamUtils.getAttributeValue( xmlStream, "nilReason" ); nextElement( xmlStream ); Expression param = parseExpression( xmlStream ); nextElement( xmlStream ); return new PropertyIsNil( param, nilReason, matchAction ); }
private static PropertyIsLike parsePropertyIsLikeOperator( XMLStreamReader xmlStream ) throws XMLStreamException { // this is a deegree extension over Filter 2.0.0 spec. (TODO should this be null, if not present?) Boolean matchCase = getAttributeValueAsBoolean( xmlStream, null, "matchCase", true ); // 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 ); } String wildCard = getRequiredAttributeValue( xmlStream, "wildCard" ); String singleChar = getRequiredAttributeValue( xmlStream, "singleChar" ); String escapeChar = getRequiredAttributeValue( xmlStream, "escapeChar" ); nextElement( xmlStream ); Expression value = parseExpression( xmlStream ); nextElement( xmlStream ); Expression pattern = parseExpression( xmlStream ); nextElement( xmlStream ); return new PropertyIsLike( value, pattern, wildCard, singleChar, escapeChar, matchCase, matchAction ); }
private static PropertyIsBetween parsePropertyIsBetweenOperator( XMLStreamReader xmlStream ) throws XMLStreamException { // this is a deegree extension over Filter 2.0.0 spec. (TODO should this be null, if not present?) Boolean matchCase = getAttributeValueAsBoolean( xmlStream, null, "matchCase", true ); // 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 expression = parseExpression( xmlStream ); nextElement( xmlStream ); xmlStream.require( START_ELEMENT, FES_NS, "LowerBoundary" ); nextElement( xmlStream ); Expression lowerBoundary = parseExpression( xmlStream ); nextElement( xmlStream ); nextElement( xmlStream ); xmlStream.require( START_ELEMENT, FES_NS, "UpperBoundary" ); nextElement( xmlStream ); Expression upperBoundary = parseExpression( xmlStream ); nextElement( xmlStream ); nextElement( xmlStream ); return new PropertyIsBetween( expression, lowerBoundary, upperBoundary, matchCase, matchAction ); }
Expression parameter1 = parseExpression( xmlStream ); XMLStreamUtils.requireNextTag( xmlStream, START_ELEMENT ); Expression parameter2 = parseExpression( xmlStream ); XMLStreamUtils.requireNextTag( xmlStream, END_ELEMENT );
final TemporalOperator.SubType type = checkTemporalOperatorName( xmlStream ); requireNextTag( xmlStream, START_ELEMENT ); final Expression param1 = parseExpression( xmlStream ); requireNextTag( xmlStream, START_ELEMENT ); Expression param2 = null; param2 = new Literal<TimeObject>( to, elName ); } else { param2 = parseExpression( xmlStream );