|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object project35.mda.model.DataFieldModel project35.mda.model.ListFieldModel
public class ListFieldModel
Model data structure that describes a list field. Project35's model data structures are built up from a tree of records. A record can have a list field which in turn can reference one or more records. A list field can contain multiple subrecords. The list can be restricted to contain a number of types of subrecords
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.
Field Summary |
---|
Fields inherited from class project35.mda.model.DataFieldModel |
---|
containingRecord, isAttribute, isRequiredField |
Constructor Summary | |
---|---|
ListFieldModel()
indicates whether the list should accomodate IDREFS style of writing out references or a bunch of IDREF declarations |
Method Summary | |
---|---|
void |
addChild(java.lang.Object record)
Adds a subrecord to the list. |
void |
addChildren(java.util.ArrayList recordObjects)
for adding multiple items to a list |
java.lang.Object |
clone()
used to clone the list field |
boolean |
containsItemDisplayName(java.lang.String candidateDisplayName)
|
int |
getChildCount()
|
java.util.ArrayList |
getChildren()
|
java.lang.String[] |
getChildTypes()
|
java.lang.String |
getIDREFSAttributeName()
|
java.lang.String |
getIthFieldInstance()
this is used to help label child record models that may not have enough information to make a unique displayName |
boolean |
isListPopulated()
tells whether the list is populated or not; the result is usually used to control sensitivity of list field buttons such as "New", "Edit", "Delete" |
void |
removeAllChildren()
|
void |
removeAllChildren(java.lang.String childType)
|
void |
removeChild(java.lang.Object record)
Removes child from the list. |
void |
removeChildren(java.util.ArrayList objectsToDelete)
|
void |
resolveReferences()
|
void |
reviseChildList(java.util.ArrayList oldChildrenList,
java.util.ArrayList newChildrenList)
|
void |
setChildren(java.util.ArrayList children)
Sets the child subrecords of this list. |
void |
setChildTypes(java.lang.String[] childTypes)
|
void |
setIDREFSAttributeName(java.lang.String idRefsAttributeName)
|
void |
setSupportsReferencing(boolean supportsReferencing)
|
boolean |
supportsChildType(java.lang.String candidateChildType)
|
boolean |
supportsReferencing()
|
void |
updateDisplayName(java.lang.String oldName,
java.lang.String newName)
|
java.lang.String |
validate()
validates the list. |
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 ListFieldModel()
Method Detail |
---|
public boolean containsItemDisplayName(java.lang.String candidateDisplayName)
public java.lang.String getIthFieldInstance()
public int getChildCount()
public java.util.ArrayList getChildren()
public boolean isListPopulated()
public boolean supportsChildType(java.lang.String candidateChildType)
public java.lang.String[] getChildTypes()
public boolean supportsReferencing()
public java.lang.String getIDREFSAttributeName()
public void updateDisplayName(java.lang.String oldName, java.lang.String newName)
public void setIDREFSAttributeName(java.lang.String idRefsAttributeName)
public void setSupportsReferencing(boolean supportsReferencing)
public void reviseChildList(java.util.ArrayList oldChildrenList, java.util.ArrayList newChildrenList)
public void addChildren(java.util.ArrayList recordObjects)
public void addChild(java.lang.Object record)
record
- child record to be added to the listpublic void removeAllChildren(java.lang.String childType)
public void removeAllChildren()
public void removeChild(java.lang.Object record)
record
- child record to be removed from the listpublic void removeChildren(java.util.ArrayList objectsToDelete)
public void setChildren(java.util.ArrayList children)
children
- the list of subrecordspublic void setChildTypes(java.lang.String[] childTypes)
childTypes
- the child types this list can supportpublic void resolveReferences()
public java.lang.String validate()
public java.lang.Object clone()
clone
in class DataFieldModel
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |