Examples of ordinal()


Examples of org.mongodb.morphia.mapping.validation.ConstraintViolation.Level.ordinal()

        }

        if (!ve.isEmpty()) {
            final ConstraintViolation worst = ve.iterator().next();
            final Level maxLevel = worst.getLevel();
            if (maxLevel.ordinal() >= Level.FATAL.ordinal()) {
                throw new ConstraintViolationException(ve);
            }

            // sort by class to make it more readable
            final List<LogLine> l = new ArrayList<LogLine>();
View Full Code Here

Examples of org.opengis.referencing.cs.AxisDirection.ordinal()

     * @return The direction from the above table, or {@code null} if the given direction was null.
     */
    public static AxisDirection absolute(final AxisDirection dir) {
        final AxisDirection opposite = opposite(dir);
        if (opposite != null) {
            if (opposite.ordinal() < dir.ordinal()) {
                return opposite;
            }
        }
        return dir;
    }
View Full Code Here

Examples of org.opengis.util.CodeList.ordinal()

                    return Integer.valueOf(1);
                return Integer.valueOf(0);
            }
            if (attr instanceof CodeList) {
                CodeList list = (CodeList) attr;
                return Integer.valueOf(list.ordinal()).toString();
            }
        }
        return null;
    }
   
View Full Code Here

Examples of org.pentaho.gwt.widgets.client.utils.TimeUtil.MonthOfYear.ordinal()

        hours.set( 0, 0 );

        jsJobTrigger.setType( "complexJobTrigger" ); //$NON-NLS-1$
        if ( monthOfYear != null ) {
          JsArrayInteger jsMonthsOfYear = (JsArrayInteger) JavaScriptObject.createArray();
          jsMonthsOfYear.set( 0, monthOfYear.ordinal() + 1 );
          jsJobTrigger.setMonthlyRecurrences( jsMonthsOfYear );
        }
        jsJobTrigger.setDayOfMonthRecurrences( jsDaysOfMonth );
        jsJobTrigger.setHourRecurrences( hours );
        jsJobTrigger.setMinuteRecurrences( minutes );
View Full Code Here

Examples of org.rhq.coregui.client.util.message.Message.Severity.ordinal()

        severityField.setSortNormalizer(new SortNormalizer() {
            @Override
            public Object normalize(ListGridRecord record, String fieldName) {
                try {
                    Severity severity = ((Message) record.getAttributeAsObject(FIELD_OBJECT)).getSeverity();
                    return Integer.valueOf(severity.ordinal());
                } catch (Throwable e) {
                    Log.error("Cannot get sort nomalizer", e);
                }
                return Integer.valueOf(0);
            }
View Full Code Here

Examples of org.richfaces.component.Mode.ordinal()

    UISortableControl control = (UISortableControl) component;
    Mode mode = control.getMode();
    if (mode == null) {
      mode = SERVER;
    }
    RendererCommand rendererCommand = commands[mode.ordinal()];
    if (rendererCommand != null) {
      rendererCommand.encodeMarkup(writer, context, control);
    }
   
  }
View Full Code Here

Examples of org.rssowl.ui.internal.CoolBarAdvisor.CoolBarMode.ordinal()

    fModeViewer.addSelectionChangedListener(new ISelectionChangedListener() {
      public void selectionChanged(SelectionChangedEvent event) {
        Object selection = ((IStructuredSelection) event.getSelection()).getFirstElement();
        CoolBarMode mode = (CoolBarMode) selection;
        fPreferences.putInteger(DefaultPreferences.TOOLBAR_MODE, mode.ordinal());
      }
    });

    fModeViewer.setInput(CoolBarAdvisor.CoolBarMode.values());
    fModeViewer.setSelection(new StructuredSelection(CoolBarMode.values()[fPreferences.getInteger(DefaultPreferences.TOOLBAR_MODE)]));
View Full Code Here

Examples of org.rssowl.ui.internal.OwlUI.Layout.ordinal()

      entityPreferences = Owl.getPreferenceService().getEntityScope(((FolderNewsMark) input.getMark()).getFolder());
    else
      entityPreferences = Owl.getPreferenceService().getEntityScope(input.getMark());

    if (entityPreferences.hasKey(DefaultPreferences.FV_LAYOUT)) {
      entityPreferences.putInteger(DefaultPreferences.FV_LAYOUT, newLayout.ordinal());
      entityPreferences.flush();

      /* Update Layout (on current feed view) */
      updateLayout();
    }
View Full Code Here

Examples of org.rssowl.ui.internal.actions.NavigationActionFactory.NavigationActionType.ordinal()

          NavigationActionType actionType = (NavigationActionType) data;
          NavigationAction action = new NavigationAction(actionType);
          action.init(fWindow);
          action.run(null);

          fPreferences.putInteger(fIsNext ? DefaultPreferences.DEFAULT_NEXT_ACTION : DefaultPreferences.DEFAULT_PREVIOUS_ACTION, actionType.ordinal());

          update(fIsNext ? CoolBarItem.NEXT : CoolBarItem.PREVIOUS, null, null, false);
        }
      }
    }
View Full Code Here

Examples of org.sonar.api.batch.sensor.issue.Issue.Severity.ordinal()

    value.put(issue.ruleKey().rule());
    Severity overridenSeverity = issue.overridenSeverity();
    if (overridenSeverity == null) {
      value.putNull();
    } else {
      value.put(overridenSeverity.ordinal());
    }
  }

  @Override
  public Object get(Value value, Class clazz, CoderContext context) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.