|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object project35.mda.model.DataFieldModel
public abstract class DataFieldModel
Project35's model data structure for describing a data field.
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 | |
---|---|
protected RecordModel |
containingRecord
the record that contains this field |
protected boolean |
isAttribute
is used to determine whether the field represents an attribute or element in an XML Schema |
protected boolean |
isRequiredField
indicates whether the field is optional or required |
Constructor Summary | |
---|---|
DataFieldModel()
|
Method Summary | |
---|---|
abstract java.lang.Object |
clone()
|
RecordModel |
getContainingRecord()
|
java.lang.String |
getContainingRecordClassName()
|
FieldViewType |
getFieldViewType()
|
java.net.URL |
getHelpLink()
Get the value of helpLink. |
java.lang.String |
getName()
Get the value of name. |
java.lang.String |
getNameSpacePrefix()
Get the value of nameSpacePrefix. |
java.lang.String |
getToolTip()
|
boolean |
isAttribute()
Get the value of isAttribute. |
boolean |
isContent()
Returns whether this EditFieldModel represents the content of an element or not. |
boolean |
isRequiredField()
|
protected void |
populateCloneAttributes(DataFieldModel original,
DataFieldModel copy)
used to clone itself |
void |
setAttribute(boolean isAttribute)
determines whether field should represent an XML attribute or XML element |
void |
setContainingRecord(RecordModel containingRecord)
sets the record that contains this field |
void |
setContent(boolean content)
Sets whether this EditFieldModel represents the content of an element or not. |
void |
setFieldViewType(FieldViewType fieldViewType)
sets the hint used to render this field model |
void |
setHelpLink(java.net.URL helpLink)
Set the value of helpLink. |
void |
setName(java.lang.String name)
Set the value of name. |
void |
setNameSpacePrefix(java.lang.String nameSpacePrefix)
Set the value of nameSpacePrefix. |
void |
setRequiredField(boolean isRequiredField)
sets whether the field is required or optional |
void |
setToolTipText(java.lang.String toolTipText)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected boolean isRequiredField
protected RecordModel containingRecord
protected boolean isAttribute
Constructor Detail |
---|
public DataFieldModel()
Method Detail |
---|
public java.lang.String getName()
public java.net.URL getHelpLink()
public boolean isRequiredField()
public FieldViewType getFieldViewType()
public RecordModel getContainingRecord()
public java.lang.String getContainingRecordClassName()
public java.lang.String getNameSpacePrefix()
public java.lang.String getToolTip()
public void setName(java.lang.String name)
name
- Value to assign to name.public void setHelpLink(java.net.URL helpLink)
helpLink
- Value to assign to helpLink.public void setRequiredField(boolean isRequiredField)
isRequiredField
- true if the field is required; otherwise the field is
optionalprotected void populateCloneAttributes(DataFieldModel original, DataFieldModel copy)
original
- the original recordcopy
- the copy of the original recordpublic void setFieldViewType(FieldViewType fieldViewType)
fieldViewType
- specifies the hint for rendering
the field modelpublic void setContainingRecord(RecordModel containingRecord)
containingRecord
- the record that contains the fieldpublic boolean isContent()
public void setContent(boolean content)
content
- The flag stating whether this EditFieldModel represents the content of an element or not.public boolean isAttribute()
public void setAttribute(boolean isAttribute)
isAttribute
- Value to assign to isAttribute.public void setNameSpacePrefix(java.lang.String nameSpacePrefix)
nameSpacePrefix
- Value to assign to nameSpacePrefix.public void setToolTipText(java.lang.String toolTipText)
public abstract java.lang.Object clone()
clone
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |