@Override public void visit(ComboBoxDeclaration comboBox, MdaModel<JavaModel> target) { NabuccoAnnotation mappedFieldAnn = NabuccoAnnotationMapper.getInstance() .mapToAnnotation(comboBox.annotationDeclaration, NabuccoAnnotationType.MAPPED_FIELD); this.annotationList.add(mappedFieldAnn); super.visit(comboBox, target); }
@Override public void visit(ListPickerDeclaration picker, MdaModel<JavaModel> target) { NabuccoAnnotation mappedFieldAnn = NabuccoAnnotationMapper.getInstance() .mapToAnnotation(picker.annotationDeclaration, NabuccoAnnotationType.MAPPED_FIELD); this.annotationList.add(mappedFieldAnn); super.visit(picker, target); }
@Override public void visit(LabeledInputFieldDeclaration labeledInputField, MdaModel<JavaModel> target) { NabuccoAnnotation mappedFieldAnn = NabuccoAnnotationMapper.getInstance() .mapToAnnotation( labeledInputField.annotationDeclaration, NabuccoAnnotationType.MAPPED_FIELD); this.annotationList.add(mappedFieldAnn); super.visit(labeledInputField, target); }
@Override public void visit(DatatypeDeclaration datatypeDeclaration, MdaModel<JavaModel> target) { // only for the leading datatype NabuccoAnnotation leadingAnn = NabuccoAnnotationMapper.getInstance() .mapToAnnotation( datatypeDeclaration.annotationDeclaration, NabuccoAnnotationType.LEADING); if (leadingAnn != null) { this.datatypeDeclaration = datatypeDeclaration; } super.visit(datatypeDeclaration, target); }