|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mycore.services.fieldquery.MCRFieldDef
public class MCRFieldDef
A search field definition. For each field in the configuration file searchfields.xml there is one MCRFieldDef instance with attributes that represent the configuration in the xml file.
| Field Summary | |
|---|---|
static Namespace |
extns
|
static String |
FILE_ADDITIONAL_DATA
A keyword identifying that the source of the values of this field is the getAllAdditionalData() method of MCRFile |
static String |
FILE_METADATA
A keyword identifying that the source of the values of this field is the createXML() method of MCRFile |
static String |
FILE_TEXT_CONTENT
A keyword identifying that the source of the values of this field is the text content of the MCRFile, using text filter plug-ins. |
static String |
FILE_XML_CONTENT
A keyword identifying that the source of the values of this field is the XML content of the MCRFile |
static String |
OBJECT_CATEGORY
A keyword identifying that the source of the values of this field is a classification category that a MCRObject belongs to |
static String |
OBJECT_METADATA
A keyword identifying that the source of the values of this field is the createXML() method of MCRObject |
static String |
SEARCHER_HIT_METADATA
A keyword identifying that the source of the values of this field is the MCRSearcher that does the search, this means it is technical hit metadata added by the searcher when the query results are built. |
static Namespace |
xalanns
|
static String |
XML
A keyword identifying that the source of the values of this field is the XML content of a pure JDOM xml document |
| Constructor Summary | |
|---|---|
MCRFieldDef(String index,
Element def)
|
|
| Method Summary | |
|---|---|
static Element |
getConfigFile()
|
String |
getDataType()
Returns the data type of this field as defined in fieldtypes.xml |
static MCRFieldDef |
getDef(String name)
Returns the MCRFieldDef with the given name, or null if no such field is defined in searchfields.xml |
static List<MCRFieldDef> |
getFieldDefs(String index)
Returns all fields that belong to the given index |
String |
getIndex()
Returns the ID of the index this field belongs to |
String |
getName()
Returns the name of the field |
String |
getSource()
Returns a keyword identifying where the values of this field come from. |
(package private) Element |
getXSL()
Returns a stylesheet to build values for this field from XML source data |
boolean |
isAddable()
Returns true if this field should be added by searcher to hit |
boolean |
isSortable()
Returns true if this field can be used as sort criteria |
boolean |
isUsedForObjectType(String objectType)
Returns true if this field is used for this type of object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Namespace xalanns
public static final Namespace extns
public static final String OBJECT_METADATA
MCRObject.createXML(),
Constant Field Valuespublic static final String OBJECT_CATEGORY
MCRObject.createXML(),
Constant Field Valuespublic static final String FILE_METADATA
MCRFile.createXML(),
Constant Field Valuespublic static final String FILE_ADDITIONAL_DATA
MCRFilesystemNode.getAllAdditionalData(),
Constant Field Valuespublic static final String FILE_XML_CONTENT
MCRFile.getContentAsJDOM(),
Constant Field Valuespublic static final String XML
public static final String FILE_TEXT_CONTENT
public static final String SEARCHER_HIT_METADATA
| Constructor Detail |
|---|
public MCRFieldDef(String index,
Element def)
| Method Detail |
|---|
public static Element getConfigFile()
public static MCRFieldDef getDef(String name)
name - the name of the field
public static List<MCRFieldDef> getFieldDefs(String index)
index - the ID of the index
public String getIndex()
public String getName()
public String getDataType()
public boolean isSortable()
public boolean isAddable()
public boolean isUsedForObjectType(String objectType)
objectType - the type of objectpublic String getSource()
FILE_METADATA,
FILE_TEXT_CONTENT,
FILE_XML_CONTENT,
OBJECT_METADATA,
OBJECT_CATEGORY,
SEARCHER_HIT_METADATA,
XMLElement getXSL()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||