congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ScheduleExpressionTypeUtil.getType
Code IndexAdd Tabnine to your IDE (free)

How to use
getType
method
in
org.jboss.as.ejb3.timerservice.schedule.ScheduleExpressionTypeUtil

Best Java code snippets using org.jboss.as.ejb3.timerservice.schedule.ScheduleExpressionTypeUtil.getType (Showing top 4 results out of 315)

origin: wildfly/wildfly

protected void processListItem(String listItem) {
  // check what type of a value the list item is.
  // Each item in the list must be an individual attribute value or a range.
  // List items can not themselves be lists, wild-cards, or increments.
  ScheduleExpressionType listItemType = ScheduleExpressionTypeUtil.getType(listItem);
  switch (listItemType) {
    case SINGLE_VALUE:
      SingleValue singleVal = new SingleValue(listItem);
      this.processSingleValue(singleVal);
      return;
    case RANGE:
      RangeValue range = new RangeValue(listItem);
      this.processRangeValue(range);
      return;
    default:
      throw EjbLogger.EJB3_TIMER_LOGGER.invalidListValue(listItem);
  }
}
origin: wildfly/wildfly

public IntegerBasedExpression(String value) {
  this.origValue = value;
  this.scheduleExpressionType = ScheduleExpressionTypeUtil.getType(value);
  if (this.accepts(scheduleExpressionType) == false) {
    throw EjbLogger.EJB3_TIMER_LOGGER.invalidScheduleExpressionType(value, this.getClass().getName(), this.scheduleExpressionType.toString());
origin: org.jboss.as/jboss-as-ejb3

protected void processListItem(String listItem) {
  // check what type of a value the list item is.
  // Each item in the list must be an individual attribute value or a range.
  // List items can not themselves be lists, wild-cards, or increments.
  ScheduleExpressionType listItemType = ScheduleExpressionTypeUtil.getType(listItem);
  switch (listItemType) {
    case SINGLE_VALUE:
      SingleValue singleVal = new SingleValue(listItem);
      this.processSingleValue(singleVal);
      return;
    case RANGE:
      RangeValue range = new RangeValue(listItem);
      this.processRangeValue(range);
      return;
    default:
      throw MESSAGES.invalidListValue(listItem);
  }
}
origin: org.jboss.as/jboss-as-ejb3

public IntegerBasedExpression(String value) {
  this.origValue = value;
  this.scheduleExpressionType = ScheduleExpressionTypeUtil.getType(value);
  if (this.accepts(scheduleExpressionType) == false) {
    throw MESSAGES.invalidScheduleExpressionType(value,this.getClass().getName(),this.scheduleExpressionType.toString());
org.jboss.as.ejb3.timerservice.scheduleScheduleExpressionTypeUtilgetType

Javadoc

Returns the corresponding org.jboss.as.ejb3.timerservice.schedule.value.ScheduleExpressionType for the passed value

Popular methods of ScheduleExpressionTypeUtil

    Popular in Java

    • Reading from database using SQL prepared statement
    • setRequestProperty (URLConnection)
    • getResourceAsStream (ClassLoader)
    • orElseThrow (Optional)
      Return the contained value, if present, otherwise throw an exception to be created by the provided s
    • IOException (java.io)
      Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
    • ResourceBundle (java.util)
      ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
    • ThreadPoolExecutor (java.util.concurrent)
      An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
    • ImageIO (javax.imageio)
    • IsNull (org.hamcrest.core)
      Is the value null?
    • Scheduler (org.quartz)
      This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
    • Best plugins for Eclipse
    Tabnine Logo
    • Products

      Search for Java codeSearch for JavaScript code
    • IDE Plugins

      IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
    • Company

      About UsContact UsCareers
    • Resources

      FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
    Get Tabnine for your IDE now