orbeon / orbeon-forms

Orbeon Forms is an open source web forms solution. It includes an XForms engine, the Form Builder web-based form editor, and the Form Runner runtime.
http://www.orbeon.com/
GNU Lesser General Public License v2.1
518 stars 220 forks source link

Reorganize Form Builder Scala code #3349

Open ebruchez opened 7 years ago

ebruchez commented 7 years ago

This code has a few issue:

Steps:

ebruchez commented 7 years ago

Use of fbf:* functions:

Function Name Uses Moved Use frf:
updateTemplatesFromDynamicIterationChange 1 [x] -
renameControlIterationIfNeeded 1 [x] -
renameControlIfNeededXPath 2 [x] -
updateMipAsAttributeOnlyXPath 3 [x] -
setRepeatPropertiesXPath 1 [x] -
selectCellForControlId 1 [x] -
writeAlertsAndValidationsAsXMLXPath 1 [x] -
setControlHelp 2 [x] -
setControlLHHAMediatype 1 [x] -
setControlItems 1 [x] -
setItemsetHTMLMediatype 2 [x] -
initializeGrids 2 [x] -
deleteSectionTemplateContentHolders 1 [x] -
publish 1 [x] -
findBlankLHHAHoldersAndElements 1 [x] -
nextIdsXPath 1 [x] -
getBindNameOrEmpty 1 [x] ?
defaultIterationName 3 [x] -
bindId 1 [x] Yes
controlNameFromId 13 [x] Yes
getContainerNameOrEmpty 1 [x] Yes
findControlByNameOrEmpty 7 [x] Yes
hasCustomIterationName 1 [x] -
findRepeatIterationNameOrEmpty 1 [x] Yes
getNormalizedMin 1 [x] -
getNormalizedMaxOrEmpty 1 [x] -
readMipAsAttributeOnlyOrEmpty 7 [x] -
getAllControlNamesXPath 2 [x] -
findBindByNameOrEmpty 2 [x] Yes
findNextContainer 2 [x] -
containerByIdXPath 1 [x] -
bindingForControlElementOrEmpty 2 [x] -
readDefaultAlertAsXML 1 [x] -
readValidationsAsXML 1 [x] -
getControlHelpOrEmpty 2 [x] -
isControlLHHAHTMLMediatype 1 [x] -
findNextControlId 2 [x] -
formInstanceRoot 4 [x] -
metadataInstanceRootOpt 4 [x] Yes
findDataHoldersXPath 2 [x] -
possibleAppearancesByControlNameAsXML 1 [x] -
isValidListOfMediatypeRanges 2 [x] -
findSchemaOrEmpty 1 [x] -
findSchemaPrefixOrEmpty 1 [x] -
countSections 1 [x] -
countRepeats 1 [x] -
countGrids 1 [x] -
countSectionTemplates 1 [x] -
countAllNonContainers 1 [x] -
countAllControls 1 [x] -
findControlBoundNodeByName 2 [x] -
isItemsetHTMLMediatype 1 [x] -
currentLangXPath 1 [x] -
getControlItemsGroupedByValue 1 [x] -
resourcesRoot 1 [x] -
iterateSelfAndDescendantBindsResourceHoldersXPath 1 [x] -
gridCanDoClasses 3 [x] -
hasEditor 1 [x] -
MinimalIEVersion 1 [x] -
isBrowserSupported 1 [x] -
alwaysShowRoles 1 [x] -
sectionCanDoClasses 1 [x] -
buildFormBuilderControlEffectiveIdOrEmpty 1 [x] -

Use of frf:* functions: