Package org.mycore.services.fieldquery
Class MCRFieldBaseValue
java.lang.Object
org.mycore.services.fieldquery.MCRFieldBaseValue
- Direct Known Subclasses:
MCRQueryCondition
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuildXML()
Builds a XML representation of this field's valueReturns the field this value belongs togetValue()
Returns the value of the field as a Stringstatic MCRFieldBaseValue
Parses a XML representation of a field valuevoid
setFieldName
(String fieldName) void
Sets or updates the field valuetoString()
-
Field Details
-
fieldName
The field this value belongs to -
value
The fields's value, as a String
-
-
Constructor Details
-
MCRFieldBaseValue
public MCRFieldBaseValue() -
MCRFieldBaseValue
-
-
Method Details
-
setFieldName
-
getFieldName
Returns the field this value belongs to -
setValue
Sets or updates the field value- Parameters:
value
- the value
-
getValue
Returns the value of the field as a String- Returns:
- the value of the field as a String
-
buildXML
Builds a XML representation of this field's value- Returns:
- a 'field' element with attribute 'name' and the value as element content
-
parseXML
Parses a XML representation of a field value- Parameters:
xml
- the field value as XML element- Returns:
- the parsed MCRFieldValue object
-
toString
-