Class ProxyListFieldModel

  extended by project35.mda.model.DataFieldModel
      extended by project35.mda.model.ListFieldModel
          extended by project35.mda.model.ProxyListFieldModel
All Implemented Interfaces:, java.lang.Cloneable

public class ProxyListFieldModel
extends ListFieldModel

Project35 was originally developed to read a model from an XML Schema. In the XML Schema, you can define a list in one place and reference it in multiple locations. When the XML Schema was parsed, the end result was a collection of record model factories. These factory constructs would be instantiated whenever a copy of the record was needed. To accommodate the feature of defining a list once and referencing it multiple times, the factory objects could end up containing references. It was necessary to later substitute these proxy list models for real ones. the proxy list models will contain a lot of the same information as the real ones.

Copyright (c) 2008 Kevin Garwood for Project35. The original code was developed by Kevin Garwood for the University of Manchester. Revisions have been made for Project35, a project that is independent of that institution. This code is licensed under the Academic Free License version 3.0. The code attribution for the original code is included here:

Copyright (c) Kevin Garwood and University of Manchester 2007. All rights reserved. Licensed under the Academic Free License version 3.0. For more information on the terms and conditions, please see the file "LICENSE" that is included in this distribution.

Kevin Garwood (
See Also:
Serialized Form

Field Summary
Fields inherited from class project35.mda.model.DataFieldModel
containingRecord, isAttribute, isRequiredField
Constructor Summary
Method Summary
 java.lang.Object clone()
          used to clone the list field
 java.lang.String getListFactoryName()
 boolean isMultipleValueList()
 void print()
 void setListFactoryName(java.lang.String listFactoryName)
          sets the name of the list factory
 void setMultipleValueList(boolean multipleValueList)
          sets whether the list can support one or multiple values
 java.lang.String validate()
          the class is obliged to have a validate routine but shouldn't return anything
Methods inherited from class project35.mda.model.ListFieldModel
addChild, addChildren, containsItemDisplayName, getChildCount, getChildren, getChildTypes, getIDREFSAttributeName, getIthFieldInstance, isListPopulated, removeAllChildren, removeAllChildren, removeChild, removeChildren, resolveReferences, reviseChildList, setChildren, setChildTypes, setIDREFSAttributeName, setSupportsReferencing, supportsChildType, supportsReferencing, updateDisplayName
Methods inherited from class project35.mda.model.DataFieldModel
getContainingRecord, getContainingRecordClassName, getFieldViewType, getHelpLink, getName, getNameSpacePrefix, getToolTip, isAttribute, isContent, isRequiredField, populateCloneAttributes, setAttribute, setContainingRecord, setContent, setFieldViewType, setHelpLink, setName, setNameSpacePrefix, setRequiredField, setToolTipText, toString
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail


public ProxyListFieldModel()
Method Detail


public java.lang.String getListFactoryName()
the name of the list factory represented by this proxy


public boolean isMultipleValueList()
true if the list can support multiple values; false if the list can only support one value.


public void setListFactoryName(java.lang.String listFactoryName)
sets the name of the list factory

listFactoryName - the name of the list factory


public void setMultipleValueList(boolean multipleValueList)
sets whether the list can support one or multiple values

multipleValueList - true if the list is meant to support multiple values


public java.lang.String validate()
the class is obliged to have a validate routine but shouldn't return anything

validate in class ListFieldModel
an error message if validation failed or null if no errors were found


public void print()


public java.lang.Object clone()
Description copied from class: ListFieldModel
used to clone the list field

clone in class ListFieldModel
object that is being cloned