Package org.apache.felix.cm.impl
Class SimpleFilter
java.lang.Object
org.apache.felix.cm.impl.SimpleFilter
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static ObjectcoerceType(Object lhs, String rhsString) private static booleanprivate static booleancompareApproximate(Object lhs, Object rhs) static booleancompareSubstring(List<String> pieces, String s) private static ListconvertArrayToList(Object array) This is an ugly utility method to convert an array of primitives to an array of primitive wrapper objects.getName()intgetValue()booleanmatches(Dictionary dict) static SimpleFilterparseSubstring(String value) private static Stringprivate static intskipWhitespace(String s, int startIdx) private static SimpleFilterprivate static StringtoDecodedString(String s, int startIdx, int endIdx) private static voidtoEncodedString(StringBuilder sb, Object o) toString()private voidprivate static voidtoString(StringBuilder sb, List list) static voidunparseSubstring(StringBuilder sb, List<String> pieces)
-
Field Details
-
MATCH_ALL
public static final int MATCH_ALL- See Also:
-
AND
public static final int AND- See Also:
-
OR
public static final int OR- See Also:
-
NOT
public static final int NOT- See Also:
-
EQ
public static final int EQ- See Also:
-
LTE
public static final int LTE- See Also:
-
GTE
public static final int GTE- See Also:
-
SUBSTRING
public static final int SUBSTRING- See Also:
-
PRESENT
public static final int PRESENT- See Also:
-
APPROX
public static final int APPROX- See Also:
-
m_name
-
m_value
-
m_op
private final int m_op -
STRING_CLASS
-
-
Constructor Details
-
SimpleFilter
-
-
Method Details
-
getName
-
getValue
-
getOperation
public int getOperation() -
toString
-
toString
-
toString
-
toDecodedString
-
toEncodedString
-
parse
- Throws:
org.osgi.framework.InvalidSyntaxException
-
subfilter
private static SimpleFilter subfilter(String filter, int startIdx, int endIdx) throws org.osgi.framework.InvalidSyntaxException - Throws:
org.osgi.framework.InvalidSyntaxException
-
parseSubstring
-
unparseSubstring
-
compareSubstring
-
skipWhitespace
-
matches
-
compare
-
compareApproximate
-
removeWhitespace
-
coerceType
- Throws:
Exception
-
convertArrayToList
This is an ugly utility method to convert an array of primitives to an array of primitive wrapper objects. This method simplifies processing LDAP filters since the special case of primitive arrays can be ignored.- Parameters:
array- An array of primitive types.- Returns:
- An corresponding array using pritive wrapper objects.
-