public class SchemaPath
extends java.lang.Object
implements java.io.Serializable
For example, a SchemaPath provides information when a new metadata record is created or copied, such as which elements should be blanked out, which are required by the Indexer, and which should be displayed as read-only fields in the metadata editor.
SchemaPath instances are created by the FrameworkConfigReader
as it reads the
configuration file for a particular framework. These SchemaPath instances
are stored in a SchemaPathMap
structure, which is used mainly by the MetaDataFramework
class.
Modifier and Type | Field and Description |
---|---|
java.lang.String |
defaultValue
An optional default for this element
|
java.lang.String |
initialFieldCollapse |
java.lang.String |
inputHelper |
int |
maxLen |
java.lang.String |
pathName
A short name (such as "url") that can be used to access the instance by name.
|
boolean |
readOnly
Is this element required (by the indexer) to be present in all records?
|
boolean |
requiredByCopyRecord
Description of the Field
|
boolean |
requiredByMinimalRecord
Is this element required by the copyRecord
|
java.lang.String |
valueType
A String used to (somewhat informally) describe the type of the element
|
java.lang.String |
xpath
The xpath in the Schema to which this SchemaPath instance refers.
|
Constructor and Description |
---|
SchemaPath(org.dom4j.Element e)
Constructor for the SchemaPath object
|
SchemaPath(java.lang.String pathName,
java.lang.String xpath,
java.lang.String defaultValue,
java.lang.String valueType,
java.lang.String inputHelper,
java.lang.String initialFieldCollapse,
boolean requiredByCopyRecord,
boolean readOnly,
boolean requiredByMinimalRecord)
Constructor for the SchemaPath object
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toString()
Description of the Method
|
public java.lang.String pathName
public java.lang.String xpath
public java.lang.String defaultValue
public java.lang.String valueType
public java.lang.String inputHelper
public java.lang.String initialFieldCollapse
public int maxLen
public boolean requiredByCopyRecord
public boolean requiredByMinimalRecord
public boolean readOnly
public SchemaPath(java.lang.String pathName, java.lang.String xpath, java.lang.String defaultValue, java.lang.String valueType, java.lang.String inputHelper, java.lang.String initialFieldCollapse, boolean requiredByCopyRecord, boolean readOnly, boolean requiredByMinimalRecord)
pathName
- Description of the Parameterxpath
- Description of the ParameterdefaultValue
- Description of the ParametervalueType
- Description of the ParameterrequiredByCopyRecord
- Description of the ParameterreadOnly
- Description of the ParameterrequiredByMinimalRecord
- Description of the Parameterpublic SchemaPath(org.dom4j.Element e)
e
- Description of the Parameter