VdexReload 1.1.3 API

uk.ac.reload.editor.metadata.formview
Class MetadataFormModel

java.lang.Object
  extended byuk.ac.reload.editor.metadata.formview.MetadataFormModel

public class MetadataFormModel
extends java.lang.Object

The Metadata Form View Model This reads in a MD User Profile and provides the Elements and form view mappings


Field Summary
protected  MetadataHelperProfile _mdProfile
          The Metadata Helper Profile
protected  Metadata _metadata
          The Metadata Document
protected  MetadataSchemaController _schemaController
          The Metadata Schema Controller
 
Constructor Summary
MetadataFormModel()
          Default constructor
 
Method Summary
protected  MetadataField createElementWidget(ReloadSchemaElement schemaElement)
          Create a widget bound to an Element
 MetadataField createWidget(MetadataProfileElement profileElement)
          Create a suitable component for a Schema Element or Attribute
 MetadataProfileElement getRootElement()
          Get the Root Element of the Metadata Profile
 void setDocument(Metadata metadata)
          Update the Document
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_metadata

protected Metadata _metadata
The Metadata Document


_schemaController

protected MetadataSchemaController _schemaController
The Metadata Schema Controller


_mdProfile

protected MetadataHelperProfile _mdProfile
The Metadata Helper Profile

Constructor Detail

MetadataFormModel

public MetadataFormModel()
Default constructor

Method Detail

setDocument

public void setDocument(Metadata metadata)
Update the Document

Parameters:
metadata - the metadata document

getRootElement

public MetadataProfileElement getRootElement()
Get the Root Element of the Metadata Profile

Returns:
the root element of the metadata profile

createWidget

public MetadataField createWidget(MetadataProfileElement profileElement)
Create a suitable component for a Schema Element or Attribute

Parameters:
profileElement - The profileElement for which to make the widget
Returns:
The MetadataField Widget

createElementWidget

protected MetadataField createElementWidget(ReloadSchemaElement schemaElement)
Create a widget bound to an Element

Parameters:
schemaElement - The Element to Widgetise
Returns:
A MetadataField widget

VdexReload 1.1.3 API