com.unboundid.scim.sdk
Class FilterParser

java.lang.Object
  extended by com.unboundid.scim.sdk.FilterParser

public class FilterParser
extends Object

A parser for SCIM filter expressions.


Constructor Summary
FilterParser(String filterString)
          Create a new instance of a filter parser.
 
Method Summary
 SCIMFilter parse()
          Parse the filter provided in the constructor.
 Object readValue()
          Read a value at the current position.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilterParser

public FilterParser(String filterString)
Create a new instance of a filter parser.

Parameters:
filterString - The filter to be parsed.
Method Detail

parse

public SCIMFilter parse()
                 throws SCIMException
Parse the filter provided in the constructor.

Returns:
A parsed SCIM filter.
Throws:
SCIMException - If the filter string could not be parsed.

readValue

public Object readValue()
Read a value at the current position. A value can be a number, or a boolean value (the words true or false), or a string value in double quotes, using the same syntax as for JSON values. Whitespace before and after the value is consumed. The start of the value is saved in markPos.

Returns:
A Boolean, Double, Integer, Long or String representing the value at the current position, or null if the end of the input has already been reached.


Copyright © 2011-2012 UnboundID. All Rights Reserved.