|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mycore.services.fieldquery.MCRFieldType
public class MCRFieldType
Reads configuration file fieldtypes.xml and provides methods to check the operators allowed for a given type, to get the default search operator for that type, and so on.
| Constructor Summary | |
|---|---|
MCRFieldType()
|
|
| Method Summary | |
|---|---|
static List<String> |
getAllowedOperatorsForType(String fieldType)
Returns a list of search operators allowed for this type |
static String |
getDefaultOperator(String fieldType)
Returns the default search operator for this field type. |
static boolean |
isValidOperatorForType(String fieldType,
String operator)
Checks if the given search operator can be used for this field type |
static boolean |
isValidType(String fieldType)
Checks if the given field type is valid |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MCRFieldType()
| Method Detail |
|---|
public static boolean isValidType(String fieldType)
fieldType - the field type, e.g. "identifier"
public static boolean isValidOperatorForType(String fieldType,
String operator)
fieldType - the field type, e.g. "identifier"
public static String getDefaultOperator(String fieldType)
fieldType - the field type, e.g. "identifier"
public static List<String> getAllowedOperatorsForType(String fieldType)
fieldType - the field type, e.g. "identifier"
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||