public interface UifDefaultingService
| Modifier and Type | Method and Description |
|---|---|
Control |
deriveControlAttributeFromMetadata(AttributeDefinition attrDef)
Derives a UIF control from the information available on the passed in Data Dictionary
AttributeDefinition. |
String |
deriveHumanFriendlyNameFromPropertyName(String camelCasedName)
Helper method to allow reasonable names to be defaulted from class or property names.
|
InquiryView |
deriveInquiryViewFromMetadata(DataObjectEntry dataObjectEntry)
Build an instance of an
InquiryView for the given data object entry. |
LookupView |
deriveLookupViewFromMetadata(DataObjectEntry dataObjectEntry)
Build an instance of an
LookupView for the given data object entry. |
ValidCharactersConstraint |
deriveValidCharactersConstraint(AttributeDefinition attrDef)
Derives a default valid characters constraint definition given the metadata in the
AttributeDefinition |
Control deriveControlAttributeFromMetadata(AttributeDefinition attrDef)
AttributeDefinition.
Attempts to build reasonable defaults based on the data type and other metadata which has
been included.
If no special information is found in the metadata, it will return a standard/default text control.attrDef - attribute definitionString deriveHumanFriendlyNameFromPropertyName(String camelCasedName)
camelCasedName - property name, in camel caseValidCharactersConstraint deriveValidCharactersConstraint(AttributeDefinition attrDef)
AttributeDefinitionattrDef - attribute definitionValidCharactersConstraint object or null if no information in the AttributeDefinition suggests an appropriate default.InquiryView deriveInquiryViewFromMetadata(DataObjectEntry dataObjectEntry)
InquiryView for the given data object entry.
Information will be pulled from the DataObjectEntry and the embedded
DataObjectMetadata and DataObjectAttribute instances as needed.
In the present implementation, all non-hidden properties on the DataObjectEntry
will be added to the inquiry. Additionally, any collections on the object will be
displayed in their own sections.dataObjectEntry - data object entryLookupView deriveLookupViewFromMetadata(DataObjectEntry dataObjectEntry)
LookupView for the given data object entry.
Information will be pulled from the DataObjectEntry and the embedded
DataObjectMetadata and DataObjectAttribute instances as needed.
In the present implementation, all non-hidden properties on the DataObjectEntry
will be added to the lookup search criteria and results.dataObjectEntry - data object entryCopyright © 2005–2015 The Kuali Foundation. All rights reserved.