SubmitEvent.java :  » XML » jvxml-0.7.2 » org » jvoicexml » event » plain » jvxml » Java Open Source

Java Open Source » XML » jvxml 0.7.2 
jvxml 0.7.2 » org » jvoicexml » event » plain » jvxml » SubmitEvent.java
/*
 * File:    $HeadURL: https://jvoicexml.svn.sourceforge.net/svnroot/jvoicexml/trunk/org.jvoicexml/src/org/jvoicexml/interpreter/tagstrategy/SubmitStrategy.java $
 * Version: $LastChangedRevision: 558 $
 * Date:    $LastChangedDate: 2007-11-08 11:21:16 +0100 (Do, 08 Nov 2007) $
 * Author:  $LastChangedBy: schnelle $
 *
 * JVoiceXML - A free VoiceXML implementation.
 *
 * Copyright (C) 2008 JVoiceXML group - http://jvoicexml.sourceforge.net
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Library General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Library General Public License for more details.
 *
 * You should have received a copy of the GNU Library General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *
 */

package org.jvoicexml.event.plain.jvxml;

import org.jvoicexml.DocumentDescriptor;
import org.jvoicexml.event.PlainEvent;

/**
 * The FIA processed a <code>&lt;submit&gt;</code> event.
 *
 * @author Dirk Schnelle
 * @version $Revision: 248 $
 *
 * @since 0.7
 */
@SuppressWarnings("serial")
public final class SubmitEvent
        extends PlainEvent {
    /** The detail message. */
    public static final String EVENT_TYPE =
            SubmitEvent.class.getName();

    /** Descriptor of the next document. */
    private final DocumentDescriptor descriptor;

    /**
     * Constructs a new object.
     * @param documentDescriptor
     *        descriptor of the next document.
     */
    public SubmitEvent(final DocumentDescriptor documentDescriptor) {
        descriptor = documentDescriptor;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public String getEventType() {
        return EVENT_TYPE;
    }

    /**
     * Retrieves the descriptor of the next document.
     * @return descriptor of the next document.
     */
    public DocumentDescriptor getDocumentDescriptor() {
        return descriptor;
    }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.