br.mdarte.exemplo.academico.web.geral.consultarEstudante.ResultadoConsultaDetalhaEstudanteFormImpl.java Source code

Java tutorial

Introduction

Here is the source code for br.mdarte.exemplo.academico.web.geral.consultarEstudante.ResultadoConsultaDetalhaEstudanteFormImpl.java

Source

// license-header java merge-point
//
// Attention: Generated code! Do not modify by hand!
// Generated by: bpm4struts2/forms/ActionForm.java.vsl in andromda-bpm4struts-cartridge-coppetec.
//
package br.mdarte.exemplo.academico.web.geral.consultarEstudante;

import org.apache.struts.util.MessageResources;
import org.apache.struts.Globals;
import java.text.DecimalFormatSymbols;
import java.util.Locale;

public class ResultadoConsultaDetalhaEstudanteFormImpl
        extends br.mdarte.exemplo.academico.accessControl.LoginFormImpl implements java.io.Serializable {

    private final static DecimalFormatSymbols simbolosDecimais = new DecimalFormatSymbols(Locale.US);
    static {
        simbolosDecimais.setGroupingSeparator('.');
        simbolosDecimais.setDecimalSeparator(',');
    }

    private final static int TAMANHO_MAXIMO_LABEL_DESTINO = 250;

    private java.lang.Long idEstudante;

    public ResultadoConsultaDetalhaEstudanteFormImpl() {

    }

    /**
     * Resets the given <code>idEstudante</code>.
     */
    public void resetIdEstudante() {
        this.idEstudante = null;
    }

    public void setIdEstudante(java.lang.Long idEstudante) {
        this.idEstudante = idEstudante;
    }

    /**
     * 
     */
    public java.lang.Long getIdEstudante() {
        return this.idEstudante;
    }

    /**
     * @see org.apache.struts.validator.ValidatorForm#reset(org.apache.struts.action.ActionMapping,javax.servlet.http.HttpServletRequest)
     */
    public void reset(org.apache.struts.action.ActionMapping mapping,
            javax.servlet.http.HttpServletRequest request) {
    }

    /**
      * @see org.apache.struts.validator.ValidatorForm#resetCheckBoxes(org.apache.struts.action.ActionMapping,javax.servlet.http.HttpServletRequest)
      */
    public void resetCheckBoxes(org.apache.struts.action.ActionMapping mapping,
            javax.servlet.http.HttpServletRequest request) {
    }

    public java.lang.String toString() {
        org.apache.commons.lang.builder.ToStringBuilder builder = new org.apache.commons.lang.builder.ToStringBuilder(
                this);
        builder.append("idEstudante", this.idEstudante);
        return builder.toString();
    }

    /**
     * Allows you to clean all values from this form. Objects will be set to <code>null</code>, numeric values will be
     * set to zero and boolean values will be set to <code>false</code>. Backinglists for selectable fields will
     * also be set to <code>null</code>.
     */
    public void clean() {
        this.idEstudante = null;
    }

    /**
     * Override to provide population of current form with request parameters when validation fails.
     *
     * @see org.apache.struts.action.ActionForm#validate(org.apache.struts.action.ActionMapping, javax.servlet.http.HttpServletRequest)
     */
    public org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping,
            javax.servlet.http.HttpServletRequest request) {
        final org.apache.struts.action.ActionErrors errors = super.validate(mapping, request);
        if (errors != null && !errors.isEmpty()) {
            Object formObj = org.andromda.presentation.bpm4struts.PageSessionObjectUtil.getPageForm(request,
                    "ConsultaEstudanteUC.ResultadoConsulta");

            if (formObj != null) {
                try {
                    formObj.getClass()
                            .getMethod("resetCheckBoxes",
                                    new Class[] { org.apache.struts.action.ActionMapping.class,
                                            javax.servlet.http.HttpServletRequest.class })
                            .invoke(formObj, new Object[] { null, null });
                } catch (Exception e2) {
                    // ignoring
                }

                final java.util.Map parameters = new java.util.HashMap();
                for (final java.util.Enumeration names = request.getParameterNames(); names.hasMoreElements();) {
                    final String name = String.valueOf(names.nextElement());
                    parameters.put(name, request.getParameterValues(name));
                }
                try {
                    org.apache.commons.beanutils.BeanUtils.populate(formObj, parameters);
                } catch (java.lang.Exception populateException) {
                    // ignore if we have an exception here (we just don't populate).
                }
            }
        }
        return errors;
    }

    /** Verifica se o campo esta sendo exibido na tela */
    public boolean isFieldVisibleInOperationMode(String field, java.util.Collection modosOperacao) {
        String modoPermitido = null;
        java.util.StringTokenizer tokenizerModosPermitidos = null;
        java.util.StringTokenizer tokenizerModosPossuidos = null;

        return true;
    }

    public String getOperationModeKey() {
        return "geral/ConsultaEstudanteUC/ConsultaEstudanteUC.do";
    }

}