blob: 6abdb9e86f07b4f2001792035210f8c285b67cd2 [file] [log] [blame]
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.commons.scxml2.model;
/**
* The class in this SCXML object model that corresponds to the
* <onentry> SCXML element, which is an optional property
* holding executable content to be run upon entering the parent
* State or Parallel.
*
*/
public class OnEntry extends Executable {
/**
* Serial version UID.
*/
private static final long serialVersionUID = 1L;
/**
* An indicator whether to raise the non-standard "entry.state.id" internal event after executing this OnEntry
*/
private Boolean raiseEvent;
/**
* Constructor.
*/
public OnEntry() {
}
/**
* Set the EnterableState parent.
*
* @param parent The parent to set.
*/
@Override
public final void setParent(final EnterableState parent) {
super.setParent(parent);
}
/**
* @return true if the non-standard internal "entry.state.id" event will be raised after executing this OnEntry
*/
public final boolean isRaiseEvent() {
return raiseEvent != null && raiseEvent;
}
/**
* @return The indicator whether to raise the non-standard "entry.state.id" internal event after executing
* this OnEntry. When null no event will be raised
*/
public final Boolean getRaiseEvent() {
return raiseEvent;
}
/**
* Set the indicator whether to raise the non-standard "entry.state.id" internal event after executing this OnEntry.
* @param raiseEvent The indicator, when null no event will be raised
*/
public final void setRaiseEvent(final Boolean raiseEvent) {
this.raiseEvent = raiseEvent;
}
}