Package org.dlese.dpc.schemedit.config
Class SchemaPath
java.lang.Object
org.dlese.dpc.schemedit.config.SchemaPath
- All Implemented Interfaces:
Serializable
Provides information about a schema element that is not expressed in the XML
Schema, but that is helpful in displaying and editing documents within a
framework.
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.
- Author:
- ostwald
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionAn optional default for this elementintA short name (such as "url") that can be used to access the instance by name.booleanIs this element required (by the indexer) to be present in all records?booleanDescription of the FieldbooleanIs this element required by the copyRecordA String used to (somewhat informally) describe the type of the elementThe xpath in the Schema to which this SchemaPath instance refers. -
Constructor Summary
ConstructorsConstructorDescriptionSchemaPath(String pathName, String xpath, String defaultValue, String valueType, String inputHelper, String initialFieldCollapse, boolean requiredByCopyRecord, boolean readOnly, boolean requiredByMinimalRecord) Constructor for the SchemaPath objectSchemaPath(org.dom4j.Element e) Constructor for the SchemaPath object -
Method Summary
-
Field Details
-
pathName
A short name (such as "url") that can be used to access the instance by name. -
xpath
The xpath in the Schema to which this SchemaPath instance refers. -
defaultValue
An optional default for this element -
valueType
A String used to (somewhat informally) describe the type of the element -
inputHelper
-
initialFieldCollapse
-
maxLen
public int maxLen -
requiredByCopyRecord
public boolean requiredByCopyRecordDescription of the Field -
requiredByMinimalRecord
public boolean requiredByMinimalRecordIs this element required by the copyRecord -
readOnly
public boolean readOnlyIs this element required (by the indexer) to be present in all records?
-
-
Constructor Details
-
SchemaPath
public SchemaPath(String pathName, String xpath, String defaultValue, String valueType, String inputHelper, String initialFieldCollapse, boolean requiredByCopyRecord, boolean readOnly, boolean requiredByMinimalRecord) Constructor for the SchemaPath object- Parameters:
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 Parameter
-
SchemaPath
public SchemaPath(org.dom4j.Element e) Constructor for the SchemaPath object- Parameters:
e- Description of the Parameter
-
-
Method Details