|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mycore.services.fieldquery.MCRFieldValue
public class MCRFieldValue
Represents the value of a field in a query. This can be a value that is part of the query results (hit sort data or meta data) or a value that is built when data is indexed.
| Constructor Summary | |
|---|---|
MCRFieldValue(MCRFieldDef field,
MCRFile file)
Creates a new field value |
|
MCRFieldValue(MCRFieldDef field,
String value)
Creates a new field value |
|
| Method Summary | |
|---|---|
Element |
buildXML()
Builds a XML representation of this field's value |
MCRFieldDef |
getField()
Returns the field this value belongs to |
MCRFile |
getFile()
Returns the MCRFile thats content should become the value of the field when indexing data |
String |
getValue()
Returns the value of the field as a String |
static MCRFieldValue |
parseXML(Element xml)
Parses a XML representation of a field value |
void |
setValue(String value)
Sets or updates the field value |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MCRFieldValue(MCRFieldDef field,
String value)
field - the field this value belongs tovalue - the value of the field, as a String
MCRFieldValue(MCRFieldDef field,
MCRFile file)
field - the field this value belongs tofile - the MCRFile thats content should become the value of the field
when indexing data| Method Detail |
|---|
public MCRFieldDef getField()
public void setValue(String value)
value - the value, whicht will be normalizedpublic String getValue()
getFile()public MCRFile getFile()
getValue()public Element buildXML()
public static MCRFieldValue parseXML(Element xml)
xml - the field value as XML element
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||