com.iphrase.runtime.query
Class Feature
java.lang.Object
|
+--com.iphrase.runtime.query.Feature
- Direct Known Subclasses:
- Constraint, Feature, SortFeature
- public class Feature
- extends java.lang.Object
Represent an iPhrase OneStep feature for a query request.
Constructor Summary |
Feature(java.lang.String id)
Construct a feature with id and no flags. |
Feature(java.lang.String id,
int flags)
Construct a feature with id and flags. |
Method Summary |
java.lang.String |
getId()
Get the feature id (aka name). |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Feature
public Feature(java.lang.String id)
- Construct a feature with id and no flags.
Note that this class and method provide no way to check the feature
id for validity.
- Parameters:
id
- unique String
identifier for feature in deployment
Feature
public Feature(java.lang.String id,
int flags)
- Construct a feature with id and flags.
- Parameters:
id
- unique String
identifier for feature in deploymentflags
- bitwise OR of Feature.Flags
values
getId
public java.lang.String getId()
- Get the feature id (aka name).
- Returns:
String
feature id