Examples of intValue()


Examples of org.odftoolkit.odfdom.dom.attribute.text.TextValueAttribute.intValue()

   * @return - the <code>Integer</code> , the value or <code>null</code>, if the attribute is not set and no default value defined.
   */
  public Integer getTextValueAttribute() {
    TextValueAttribute attr = (TextValueAttribute) getOdfAttribute(OdfDocumentNamespace.TEXT, "value");
    if (attr != null) {
      return Integer.valueOf(attr.intValue());
    }
    return null;
  }

  /**
 
View Full Code Here

Examples of org.opengis.parameter.ParameterValue.intValue()

        }
        // Fallback on the general case (others implementations)
        final ParameterValue numRowParam = parameters.parameter(numRow.getName().toString());
        final ParameterValue numColParam = parameters.parameter(numCol.getName().toString());
        final int numRow = numRowParam.intValue();
        final int numCol = numColParam.intValue();
        final Matrix matrix = MatrixFactory.create(numRow, numCol);
        final List<GeneralParameterValue> params = parameters.values();
        if (params != null) {
            for (final GeneralParameterValue param : params) {
                if (param==numRowParam || param==numColParam) {
View Full Code Here

Examples of org.openhab.core.library.types.DecimalType.intValue()

      break;
    case SOURCE_NUMBER:
      if (c instanceof DecimalType) {
        DecimalType sourceIdx = (DecimalType) c;
        String cmd = BenqProjectorSourceMapping
            .getStringFromMapping(sourceIdx.intValue());
        if (cmd.isEmpty() == false) {
          response = transport.sendCommandExpectResponse(cfg.mode
              .getItemModeCommandSetString(cmd));
          cmdSent = true;
        }
View Full Code Here

Examples of org.openhab.core.library.types.PercentType.intValue()

  @Override
  public Object commandToBinding(Command command, HmValueItem hmValueItem) {
    if (command.getClass() == IncreaseDecreaseType.class) {
      PercentType type = convertFromBinding(hmValueItem);

      int percent = type.intValue();
      percent += command.equals(IncreaseDecreaseType.INCREASE) ? 10 : -10;
      percent = (percent / 10) * 10;
      percent = Math.min(100, percent);
      percent = Math.max(0, percent);
      return convertToBinding(new PercentType(percent), hmValueItem);
View Full Code Here

Examples of org.openrdf.model.Literal.intValue()

      }

      Literal maxTripleTablesLit = model.filter(implNode, MAX_TRIPLE_TABLES, null).objectLiteral();
      if (maxTripleTablesLit != null) {
        try {
          setMaxTripleTables(maxTripleTablesLit.intValue());
        }
        catch (NumberFormatException e) {
          throw new StoreConfigException("Invalid value for maxTripleTables: " + maxTripleTablesLit);
        }
      }
View Full Code Here

Examples of org.openuri.mytest.Simplicity.intValue()

            cursor.setAttribute(new Name(null, "note"), "a smallish number");
            cursor.setText("143");
            cursor.toRoot();
            cursor.toFirstChild();
            Simplicity simp = (Simplicity)cursor.obj();
            System.err.println("The value of simplicity: " + simp.intValue());
            System.err.println("And a note: " + simp.getNote());
        }
        else
        {
            TestStore store = new TestStore(org.openuri.mytest.CustomerDocument.type);
View Full Code Here

Examples of org.pdfbox.cos.COSInteger.intValue()

    {
        int retval = 0;
        COSInteger ff = (COSInteger)getDictionary().getDictionaryObject( COSName.getPDFName( "Ff" ) );
        if( ff != null )
        {
            retval = ff.intValue();
        }
        return retval;
    }

    /**
 
View Full Code Here

Examples of org.pdfbox.cos.COSNumber.intValue()

     * @return The line dash pattern phase.
     */
    public int getPhaseStart()
    {
        COSNumber phase = (COSNumber)lineDashPattern.get( 1 );
        return phase.intValue();
    }

    /**
     * This will set the line dash pattern phase.
     *
 
View Full Code Here

Examples of org.richfaces.model.ScrollableTableDataModel.SimpleRowKey.intValue()

  public String takeSelection() {
    getSelectedCars().clear();
    Iterator<SimpleRowKey> iterator = getSelection().getKeys();
    while (iterator.hasNext()){
      SimpleRowKey key = iterator.next();
      getSelectedCars().add(getAllCars().get(key.intValue()));
    }
    return null;
  }

  public ArrayList<DemoInventoryItem> getSelectedCars() {
View Full Code Here

Examples of org.robovm.apple.foundation.NSNumber.intValue()

  @Override
  public int getInteger (String key) {
    NSNumber value = (NSNumber)nsDictionary.get(convertKey(key));
    if (value == null) return 0;
    return value.intValue();
  }

  @Override
  public long getLong (String key) {
    NSNumber value = (NSNumber)nsDictionary.get(convertKey(key));
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.