javax.slee.profile.query
Class HasPrefix
java.lang.Object
javax.slee.profile.query.QueryExpression
javax.slee.profile.query.SimpleQueryExpression
javax.slee.profile.query.HasPrefix
- All Implemented Interfaces:
- java.io.Serializable
public final class HasPrefix
- extends SimpleQueryExpression
The HasPrefix class represents a dynamic query expression that
checks whether the value of a profile attribute is prefixed by a specified value.
This query expression can only be used with profile attributes of type
java.lang.String.
- See Also:
- Serialized Form
|
Constructor Summary |
HasPrefix(java.lang.String attrName,
java.lang.String attrValue)
Create a HasPrefix query expression. |
HasPrefix(java.lang.String attrName,
java.lang.String attrValue,
QueryCollator collator)
Create a HasPrefix query expression. |
|
Method Summary |
protected java.lang.String |
getRelation()
Get the symbol or other name for this expression relation to be used in the
toString output. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
HasPrefix
public HasPrefix(java.lang.String attrName,
java.lang.String attrValue)
- Create a
HasPrefix query expression. A profile will match
the expression criteria if the value specified by attrValue
argument is a prefix of the value of the attrName profile
attribute, as determined by String.startsWith(String).
- Parameters:
attrName - the name of the profile attribute to compare.attrValue - the value of the attribute to compare with.
- Throws:
java.lang.NullPointerException - if either argument is null.
HasPrefix
public HasPrefix(java.lang.String attrName,
java.lang.String attrValue,
QueryCollator collator)
- Create a
HasPrefix query expression. A profile will match
the expression criteria if the value specified by attrValue
argument is a prefix of the value of the attrName profile
attribute, as determined by Collator.equals(String, String),
where the collator is obtained from the specified QueryCollator.
- Parameters:
attrName - the name of the profile attribute to compare.attrValue - the value of the attribute to compare with.collator - the collator to use for the comparison. May be null.
- Throws:
java.lang.NullPointerException - if either attrName or
attrValue is null.
getRelation
protected java.lang.String getRelation()
- Description copied from class:
SimpleQueryExpression
- Get the symbol or other name for this expression relation to be used in the
toString output.
- Specified by:
getRelation in class SimpleQueryExpression
- Returns:
- the symbol or other name for this expression relation.
Copyright © 2008. All Rights Reserved.