congrats Icon
New! Announcing our next generation AI code completions
Read here
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

    • Making http post requests using okhttp
    • getSupportFragmentManager (FragmentActivity)
    • getContentResolver (Context)
    • scheduleAtFixedRate (Timer)
    • SocketTimeoutException (java.net)
      This exception is thrown when a timeout expired on a socket read or accept operation.
    • Format (java.text)
      The base class for all formats. This is an abstract base class which specifies the protocol for clas
    • Manifest (java.util.jar)
      The Manifest class is used to obtain attribute information for a JarFile and its entries.
    • Reference (javax.naming)
    • FileUtils (org.apache.commons.io)
      General file manipulation utilities. Facilities are provided in the following areas: * writing to a
    • Location (org.springframework.beans.factory.parsing)
      Class that models an arbitrary location in a Resource.Typically used to track the location of proble
    • Top 17 Free Sublime Text Plugins
    Tabnine Logo
    • Products

      Search for Java codeSearch for JavaScript code
    • IDE Plugins

      IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
    • Company

      About UsContact UsCareers
    • Resources

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