org.springframework.osgi
Class MockFilter
java.lang.Object
org.springframework.osgi.MockFilter
- All Implemented Interfaces:
- Filter
public class MockFilter
- extends Object
- implements Filter
Method Summary |
protected static String |
approxString(String input)
|
protected boolean |
compare_Boolean(int operation,
boolean boolval,
Object value2)
|
protected boolean |
compare_Byte(int operation,
byte byteval,
Object value2)
|
protected boolean |
compare_Character(int operation,
char charval,
Object value2)
|
protected boolean |
compare_Comparable(int operation,
Comparable value1,
Object value2)
|
protected boolean |
compare_Double(int operation,
double doubleval,
Object value2)
|
protected boolean |
compare_Float(int operation,
float floatval,
Object value2)
|
protected boolean |
compare_Integer(int operation,
int intval,
Object value2)
|
protected boolean |
compare_Long(int operation,
long longval,
Object value2)
|
protected boolean |
compare_ObjectArray(int operation,
Object[] array,
Object value2)
|
protected boolean |
compare_PrimitiveArray(int operation,
Class type,
Object primarray,
Object value2)
|
protected boolean |
compare_Short(int operation,
short shortval,
Object value2)
|
protected boolean |
compare_String(int operation,
String string,
Object value2)
|
protected boolean |
compare_Unknown(int operation,
Object value1,
Object value2)
|
protected boolean |
compare_Vector(int operation,
Vector vector,
Object value2)
|
protected boolean |
compare(int operation,
Object value1,
Object value2)
|
protected static String |
encodeValue(String value)
|
boolean |
equals(Object obj)
|
int |
hashCode()
|
boolean |
match(Dictionary dictionary)
|
boolean |
match(ServiceReference reference)
|
protected boolean |
match0(Dictionary properties)
|
boolean |
matchCase(Dictionary dictionary)
|
protected void |
setFilter(int operation,
String attr,
Object value)
|
String |
toString()
|
operation
protected int operation
EQUAL
protected static final int EQUAL
- See Also:
- Constant Field Values
APPROX
protected static final int APPROX
- See Also:
- Constant Field Values
GREATER
protected static final int GREATER
- See Also:
- Constant Field Values
LESS
protected static final int LESS
- See Also:
- Constant Field Values
PRESENT
protected static final int PRESENT
- See Also:
- Constant Field Values
SUBSTRING
protected static final int SUBSTRING
- See Also:
- Constant Field Values
AND
protected static final int AND
- See Also:
- Constant Field Values
OR
protected static final int OR
- See Also:
- Constant Field Values
NOT
protected static final int NOT
- See Also:
- Constant Field Values
attr
protected String attr
value
protected Object value
filter
protected String filter
topLevel
protected boolean topLevel
constructorType
protected static final Class[] constructorType
MockFilter
public MockFilter(String filter)
throws InvalidSyntaxException
- Throws:
InvalidSyntaxException
MockFilter
protected MockFilter()
match
public boolean match(ServiceReference reference)
- Specified by:
match
in interface Filter
match
public boolean match(Dictionary dictionary)
- Specified by:
match
in interface Filter
matchCase
public boolean matchCase(Dictionary dictionary)
- Specified by:
matchCase
in interface Filter
toString
public String toString()
- Specified by:
toString
in interface Filter
- Overrides:
toString
in class Object
equals
public boolean equals(Object obj)
- Specified by:
equals
in interface Filter
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Specified by:
hashCode
in interface Filter
- Overrides:
hashCode
in class Object
setFilter
protected void setFilter(int operation,
String attr,
Object value)
match0
protected boolean match0(Dictionary properties)
encodeValue
protected static String encodeValue(String value)
compare
protected boolean compare(int operation,
Object value1,
Object value2)
compare_Vector
protected boolean compare_Vector(int operation,
Vector vector,
Object value2)
compare_ObjectArray
protected boolean compare_ObjectArray(int operation,
Object[] array,
Object value2)
compare_PrimitiveArray
protected boolean compare_PrimitiveArray(int operation,
Class type,
Object primarray,
Object value2)
compare_String
protected boolean compare_String(int operation,
String string,
Object value2)
compare_Integer
protected boolean compare_Integer(int operation,
int intval,
Object value2)
compare_Long
protected boolean compare_Long(int operation,
long longval,
Object value2)
compare_Byte
protected boolean compare_Byte(int operation,
byte byteval,
Object value2)
compare_Short
protected boolean compare_Short(int operation,
short shortval,
Object value2)
compare_Character
protected boolean compare_Character(int operation,
char charval,
Object value2)
compare_Boolean
protected boolean compare_Boolean(int operation,
boolean boolval,
Object value2)
compare_Float
protected boolean compare_Float(int operation,
float floatval,
Object value2)
compare_Double
protected boolean compare_Double(int operation,
double doubleval,
Object value2)
compare_Comparable
protected boolean compare_Comparable(int operation,
Comparable value1,
Object value2)
compare_Unknown
protected boolean compare_Unknown(int operation,
Object value1,
Object value2)
approxString
protected static String approxString(String input)
Copyright © 2006-2007 Spring Framework. All Rights Reserved.