@Override public Filter readFilter( XMLStreamReader xmlStream ) throws XMLParsingException, XMLStreamException { return Filter100XMLDecoder.parse( xmlStream ); }
try { streamWrapper.nextTag(); filter = Filter100XMLDecoder.parse( streamWrapper ); } catch ( XMLParsingException e ) { e.printStackTrace();
private Query parseLock100( OMElement lockElement ) { String handle = getNodeAsString( lockElement, new XPath( "@handle", nsContext ), null ); // TODO can there be an alias for the typeName ?? TypeName typeName = new TypeName( getRequiredNodeAsQName( lockElement, new XPath( "@typeName", nsContext ) ), null ); Filter filter = null; OMElement filterEl = lockElement.getFirstChildWithName( new QName( OGCNS, "Filter" ) ); if ( filterEl != null ) { try { // TODO remove usage of wrapper (necessary at the moment to work around problems with AXIOM's // XMLStreamReader) XMLStreamReader xmlStream = new XMLStreamReaderWrapper( filterEl.getXMLStreamReaderWithoutCaching(), null ); // skip START_DOCUMENT xmlStream.nextTag(); // TODO use filter 1.0.0 parser filter = Filter100XMLDecoder.parse( xmlStream ); } catch ( XMLStreamException e ) { e.printStackTrace(); throw new XMLParsingException( this, filterEl, e.getMessage() ); } } return new FilterQuery( handle, new TypeName[] { typeName }, null, null, null, null, filter ); }
filter = Filter100XMLDecoder.parse( xmlStream ); } catch ( XMLStreamException e ) { e.printStackTrace();
constraint = Filter100XMLDecoder.parse( xmlStream ); } else { String msg = Messages.get( "CSW_FILTER_VERSION_NOT_SPECIFIED", versionConstraint,
constraint = Filter100XMLDecoder.parse( xmlStream ); } else { String msg = Messages.get( "CSW_FILTER_VERSION_NOT_SPECIFIED", versionConstraint,
constraintUpdate = Filter110XMLDecoder.parse( xmlStream ); } else if ( versionConstraintUpdate.equals( new Version( 1, 0, 0 ) ) ) { constraintUpdate = Filter100XMLDecoder.parse( xmlStream ); } else { String msg = Messages.get( "CSW_FILTER_VERSION_NOT_SPECIFIED", versionConstraintUpdate,
constraintDelete = Filter100XMLDecoder.parse( xmlStream ); } else { String msg = Messages.get( "CSW_FILTER_VERSION_NOT_SPECIFIED", versionConstraint,