com.u2d.element
Class Field
java.lang.Object
com.u2d.model.AbstractEObject
com.u2d.model.AbstractComplexEObject
com.u2d.element.ProgrammingElement
com.u2d.element.Member
com.u2d.element.Field
- All Implemented Interfaces:
- Searchable, ChangeNotifier, ComplexEObject, EObject, PostChangeNotifier, PropertyChangeNotifier, Typed, Viewable, PersistorListener, AppEventNotifier, Restrictable, ValidationNotifier, java.awt.datatransfer.Transferable, java.io.Serializable
- Direct Known Subclasses:
- AssociationField, CompositeField, IndexedField
public abstract class Field
- extends Member
- implements java.io.Serializable, Restrictable
- Author:
- Eitan Suez
- See Also:
- Serialized Form
| Fields inherited from class com.u2d.model.AbstractComplexEObject |
_associations, _changeSupport, _createdOn, _currentState, _editState, _nullState, _readState, _stateMap, _transientState, commandOrderEditState, commandOrderReadState, commandOrderTransientState, readOnly |
| Methods inherited from class com.u2d.model.AbstractComplexEObject |
addAppEventListener, addPropertyChangeListener, addPropertyChangeListener, association, cancelTransition, childFields, cleanCGILibEnhancer, clearEditor, command, command, commands, createInstance, defaultCommand, defaultCommandName, delete, doSave, field, fieldSublist, fireAppEventNotification, fireAppEventNotification, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getCreatedOn, getDeleted, getDeletedOn, getExpandableView, getFormView, getIconView, getID, getInequalities, getListItemView, getMainView, getState, getTabBodyView, getTransferData, getTransferDataFlavors, getTreeView, getView, iconLg, iconSm, initialize, isDataFlavorSupported, isEditableState, isEditState, isEmpty, isNullState, isTransientState, log, makeCopy, onBeforeCreate, onBeforeSave, onCreate, onDelete, onLoad, onSave, popState, pushState, removeAppEventListener, removePropertyChangeListener, removePropertyChangeListener, restoreCopy, restoredState, restoreState, save, saveCopy, setEditor, setEditState, setID, setNullState, setReadState, setStartState, setState, setState, setTransientState, setValue, setValue, startState, treeModel, type, validate |
| Methods inherited from class com.u2d.model.AbstractEObject |
addChangeListener, addPostChangeListener, addValidationListener, currentUser, field, fireStateChanged, fireValidationException, fireValidationException, hbmPersistor, parentObject, persistor, removeChangeListener, removePostChangeListener, removeValidationListener, setField, vmech |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
_clazz
protected java.lang.Class _clazz
_type
protected ComplexType _type
_getter
protected transient java.lang.reflect.Method _getter
_setter
protected transient java.lang.reflect.Method _setter
fieldOrder
public static java.lang.String[] fieldOrder
_sortPropertyName
protected java.lang.String _sortPropertyName
_sortable
protected boolean _sortable
_restrictEdit
protected boolean _restrictEdit
Field
public Field()
Field
public Field(FieldParent parent,
java.lang.String name)
throws java.beans.IntrospectionException
- Throws:
java.beans.IntrospectionException
Field
public Field(FieldParent parent,
java.beans.PropertyDescriptor descriptor)
init
protected void init(FieldParent parent,
java.beans.PropertyDescriptor descriptor)
reflectGet
public java.lang.Object reflectGet(EObject parent)
get
public abstract EObject get(ComplexEObject parent)
set
public abstract void set(ComplexEObject parent,
java.lang.Object value)
restore
public void restore(ComplexEObject parent,
java.lang.Object value)
getView
public abstract EView getView(ComplexEObject parent)
validate
public abstract int validate(ComplexEObject parent)
setState
public abstract void setState(ComplexEObject parent,
State state)
createInstance
public EObject createInstance()
setInherited
public void setInherited(boolean inherited)
isInherited
public boolean isInherited()
isAssociable
public boolean isAssociable()
isInterfaceType
public abstract boolean isInterfaceType()
isAbstract
public abstract boolean isAbstract()
fieldtype
public abstract ComplexType fieldtype()
- 1. lazy derivation of type from class avoids infinite recursion when harvesting
if this were placed eagerly in Field's constructor
2. named fieldtype() so as not to conflict with complexeobject.type() which now
has become a superclass of field
isAtomic
public boolean isAtomic()
isAggregate
public boolean isAggregate()
isChoice
public boolean isChoice()
isIndexed
public boolean isIndexed()
isComposite
public boolean isComposite()
isAssociation
public boolean isAssociation()
isSearchable
public boolean isSearchable()
setSearchable
public void setSearchable(boolean value)
getSortPropertyName
public java.lang.String getSortPropertyName()
isSortable
public boolean isSortable()
getJavaClass
public java.lang.Class getJavaClass()
getPath
public java.lang.String getPath()
getCleanPath
public java.lang.String getCleanPath()
getNaturalPath
public java.lang.String getNaturalPath()
getFullPath
public java.lang.String getFullPath()
isEmpty
public boolean isEmpty(ComplexEObject parent)
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals in class AbstractComplexEObject
toString
public java.lang.String toString()
- Overrides:
toString in class ProgrammingElement
copy
public Field copy()
throws java.beans.IntrospectionException
- Throws:
java.beans.IntrospectionException
forPath
public static Field forPath(java.lang.String fieldPath)
getCustomTypeImplementorClass
public static java.lang.Class getCustomTypeImplementorClass()
title
public Title title()
- Specified by:
title in interface EObject- Overrides:
title in class ProgrammingElement
isHidden
public boolean isHidden()
setHidden
public void setHidden(boolean hidden)
applyRestriction
public void applyRestriction(Restriction restriction)
- Specified by:
applyRestriction in interface Restrictable
liftRestriction
public void liftRestriction(Restriction restriction)
- Specified by:
liftRestriction in interface Restrictable
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
getRequired
public BooleanEO getRequired()
required
public boolean required()
getColsize
public IntEO getColsize()
colsize
public int colsize()
getDisplaysize
public IntEO getDisplaysize()
displaysize
public int displaysize()
setRequiredMethod
public void setRequiredMethod(java.lang.reflect.Method method)
getRequired
public Required getRequired(ComplexEObject parent)
isTabView
public boolean isTabView()
setTabView
public void setTabView(boolean isTabView)
applyMetadata
public void applyMetadata()