01: /*
02:
03: This software is OSI Certified Open Source Software.
04: OSI Certified is a certification mark of the Open Source Initiative.
05:
06: The license (Mozilla version 1.0) can be read at the MMBase site.
07: See http://www.MMBase.org/license
08:
09: */
10: package org.mmbase.bridge.util.xml.query;
11:
12: import org.mmbase.storage.search.StepField;
13: import org.w3c.dom.Element;
14:
15: /**
16: * Defines options for a field to index.
17: *
18: * @author Pierre van Rooden
19: * @version $Id: FieldDefinition.java,v 1.9 2007/08/06 10:02:58 michiel Exp $
20: * @since MMBase-1.8
21: * @javadoc
22: **/
23: public class FieldDefinition {
24:
25: /**
26: * Name of the field
27: * This is different from stepField.getFieldName(), because the field can be virtual, in which
28: * case it does have a name, but no stepfield.
29: */
30: public String fieldName = null;
31:
32: /**
33: * Reference to (a) definition of this field in the query.
34: */
35: public StepField stepField = null;
36:
37: public java.util.regex.Pattern optional = null;
38:
39: /**
40: * Constructor
41: */
42: public FieldDefinition() {
43: }
44:
45: /**
46: * Configures the field definition, using data from a DOM element
47: */
48: public void configure(Element fieldElement) {
49: }
50: }
|