Class SchemaPath

java.lang.Object
org.dlese.dpc.schemedit.config.SchemaPath
All Implemented Interfaces:
Serializable

public class SchemaPath extends Object implements 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 Details

    • pathName

      public String pathName
      A short name (such as "url") that can be used to access the instance by name.
    • xpath

      public String xpath
      The xpath in the Schema to which this SchemaPath instance refers.
    • defaultValue

      public String defaultValue
      An optional default for this element
    • valueType

      public String valueType
      A String used to (somewhat informally) describe the type of the element
    • inputHelper

      public String inputHelper
    • initialFieldCollapse

      public String initialFieldCollapse
    • maxLen

      public int maxLen
    • requiredByCopyRecord

      public boolean requiredByCopyRecord
      Description of the Field
    • requiredByMinimalRecord

      public boolean requiredByMinimalRecord
      Is this element required by the copyRecord
    • readOnly

      public boolean readOnly
      Is 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 Parameter
      xpath - Description of the Parameter
      defaultValue - Description of the Parameter
      valueType - Description of the Parameter
      requiredByCopyRecord - Description of the Parameter
      readOnly - Description of the Parameter
      requiredByMinimalRecord - Description of the Parameter
    • SchemaPath

      public SchemaPath(org.dom4j.Element e)
      Constructor for the SchemaPath object
      Parameters:
      e - Description of the Parameter
  • Method Details

    • toString

      public String toString()
      Description of the Method
      Overrides:
      toString in class Object
      Returns:
      Description of the Return Value