|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.caleigo.core.CompositeEntityDescriptor.CompositeFieldGroup.CompositeFieldDescriptor
The ICompositeFieldDescriptor wraps another field descriptor and in many ways acts as a proxy for it. It can be used to alter properties such as code and display names.
| Nested Class Summary | |
protected class |
CompositeEntityDescriptor.CompositeFieldGroup.CompositeFieldDescriptor.FieldRelationIterator
|
| Field Summary |
| Fields inherited from interface org.caleigo.core.IFieldDescriptor |
AUTOGEN, HIDDEN_FIELD, HINT_FIELD, IDENTITY_FIELD, INDEXED, NAME_FIELD, NATURAL_ORDER, OVERVIEW_FIELD, READ_ONLY_FIELD, REQUIRED |
| Constructor Summary | |
protected |
CompositeEntityDescriptor.CompositeFieldGroup.CompositeFieldDescriptor(IFieldDescriptor field,
java.lang.String codeName,
java.lang.String displayName,
int flags)
|
| Method Summary | |
boolean |
canValidate(IDataProvider dataProvider)
This method returns true if the called field descriptor can validate data described by the field in the context of the provided IDataProvider object. |
java.lang.String |
getCodeName()
Return the code name for the field. |
DataType |
getDataType()
Returns the data type for the field. |
java.lang.Object |
getDefaultValue()
Return the default value for the field or null if none is set. |
java.lang.String |
getDisplayName()
Returns the display name for the field. |
IEntityDescriptor |
getEntityDescriptor()
Access method that returns the entity descriptor that the described field is part of. |
ICompositeEntityDescriptor.ICompositeFieldGroup |
getFieldGroup()
|
java.util.Iterator |
getFieldRelations()
Access method that returns an iterator for all IFieldRelation objects that the called field descriptor is part of. |
int |
getLength()
Returns the length of the data type if the type is a scalar type. |
IFieldRelation |
getReferenceFieldRelation()
Access method that returns the field relation that the called field is a reference to. |
IFieldDescriptor |
getRemoteFieldDescriptor()
Access method to the wrapped/remote field descriptor. |
IFieldDescriptor |
getSourceFieldDescriptor()
Access method to the source field descriptor. |
java.lang.String |
getSourceName()
Returns the source name for the field. |
boolean |
isAutoGenerated()
Access method that returns true if the field is autogenerated or not. |
boolean |
isHiddenField()
Access method that returns true if the field is hidden, meaning that data of the fields type should never be displayed for the end-user. |
boolean |
isHintField()
Access method that returns true if the field is a suitable hint field for the entity it is a part of for the end-user. |
boolean |
isIdentityField()
Access method that returns true if the field is a part of the entity´s identity (primary key in a relational database). |
boolean |
isIndexed()
Access method that returns true if the field is a preferred field to qualify on. |
boolean |
isNameField()
Access method that returns true if the field is suitable name field to define the identify of the entity it is a part of for the end-user. |
boolean |
isNaturalOrder()
Access method that returns true if the field is the natural order field for the entities it is a part of. |
boolean |
isOverviewField()
Access method that returns true if the field is suitable for limited overview of the entity it is a part of. |
boolean |
isReadOnly()
Access method that returns true if the field as read-only meaning that data of the fields type should never be edited by the end-user. |
boolean |
isReferenceField()
Access method that returns true if the field is apart of an entity reference. |
boolean |
isRequired()
Access method that returns true if the field is required and allows null values or not. |
ValidationResult |
performBaseValidation(java.lang.Object dataValue)
Performs basic validations that are relevant for all fields like checking for null values in reguired field data. |
java.lang.String |
toString()
|
ValidationResult |
validateData(java.lang.Object data,
IDataProvider dataProvider)
This method validates the provided data object as described by the called field descriptor in the context of the provided IDataProvider object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
protected CompositeEntityDescriptor.CompositeFieldGroup.CompositeFieldDescriptor(IFieldDescriptor field,
java.lang.String codeName,
java.lang.String displayName,
int flags)
| Method Detail |
public java.lang.String getCodeName()
getCodeName in interface IFieldDescriptorpublic java.lang.String getSourceName()
getSourceName in interface IFieldDescriptorpublic java.lang.String getDisplayName()
getDisplayName in interface IFieldDescriptorpublic DataType getDataType()
getDataType in interface IFieldDescriptorpublic int getLength()
getLength in interface IFieldDescriptorpublic java.lang.Object getDefaultValue()
getDefaultValue in interface IFieldDescriptorpublic boolean isIdentityField()
IFieldDescriptor
isIdentityField in interface IFieldDescriptorpublic boolean isReferenceField()
IFieldDescriptor
isReferenceField in interface IFieldDescriptorpublic boolean isRequired()
IFieldDescriptor
isRequired in interface IFieldDescriptorpublic boolean isIndexed()
IFieldDescriptor
isIndexed in interface IFieldDescriptorpublic boolean isAutoGenerated()
IFieldDescriptor
isAutoGenerated in interface IFieldDescriptorpublic boolean isNameField()
IFieldDescriptor
isNameField in interface IFieldDescriptorpublic boolean isOverviewField()
IFieldDescriptor
isOverviewField in interface IFieldDescriptorpublic boolean isHintField()
IFieldDescriptor
isHintField in interface IFieldDescriptorpublic boolean isHiddenField()
IFieldDescriptor
isHiddenField in interface IFieldDescriptorpublic boolean isReadOnly()
IFieldDescriptor
isReadOnly in interface IFieldDescriptorpublic boolean isNaturalOrder()
isNaturalOrder in interface IFieldDescriptorpublic IEntityDescriptor getEntityDescriptor()
getEntityDescriptor in interface IFieldDescriptorpublic boolean canValidate(IDataProvider dataProvider)
canValidate in interface IFieldDescriptor
public ValidationResult validateData(java.lang.Object data,
IDataProvider dataProvider)
validateData in interface IFieldDescriptorpublic ValidationResult performBaseValidation(java.lang.Object dataValue)
public IFieldRelation getReferenceFieldRelation()
getReferenceFieldRelation in interface IFieldDescriptorpublic java.util.Iterator getFieldRelations()
getFieldRelations in interface IFieldDescriptorpublic IFieldDescriptor getRemoteFieldDescriptor()
public IFieldDescriptor getSourceFieldDescriptor()
getSourceFieldDescriptor in interface ICompositeEntityDescriptor.ICompositeFieldDescriptorpublic ICompositeEntityDescriptor.ICompositeFieldGroup getFieldGroup()
getFieldGroup in interface ICompositeEntityDescriptor.ICompositeFieldDescriptorpublic java.lang.String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||