project35.mda.model
Class ProxyListFieldModel
java.lang.Object
project35.mda.model.DataFieldModel
project35.mda.model.ListFieldModel
project35.mda.model.ProxyListFieldModel
- All Implemented Interfaces:
- java.io.Serializable, 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.
- Version:
- 1.0
- Author:
- Kevin Garwood (kgarwood@users.sourceforge.net)
- See Also:
- Serialized Form
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 |
ProxyListFieldModel
public ProxyListFieldModel()
getListFactoryName
public java.lang.String getListFactoryName()
- Returns:
- the name of the list factory represented by
this proxy
isMultipleValueList
public boolean isMultipleValueList()
- Returns:
- true if the list can support multiple values; false
if the list can only support one value.
setListFactoryName
public void setListFactoryName(java.lang.String listFactoryName)
- sets the name of the list factory
- Parameters:
listFactoryName
- the name of the list factory
setMultipleValueList
public void setMultipleValueList(boolean multipleValueList)
- sets whether the list can support one or multiple values
- Parameters:
multipleValueList
- true if the list is meant to support multiple values
validate
public java.lang.String validate()
- the class is obliged to have a validate routine but
shouldn't return anything
- Overrides:
validate
in class ListFieldModel
- Returns:
- an error message if validation failed or null if
no errors were found
print
public void print()
clone
public java.lang.Object clone()
- Description copied from class:
ListFieldModel
- used to clone the list field
- Overrides:
clone
in class ListFieldModel
- Returns:
- object that is being cloned