Examples of IntegerType


Examples of org.apache.padaf.xmpbox.type.IntegerType

   *
   * @param value
   *            The version Id value to set
   */
  public void setPartValueWithInt(int value) {
    IntegerType part = new IntegerType(metadata, IDPREFIX, PART, value);
    addProperty(part);
  }
View Full Code Here

Examples of org.apache.padaf.xmpbox.type.IntegerType

   *
   * @param value
   *            The version Id property to set
   */
  public void setPartValue(Integer value) {
    IntegerType part = new IntegerType(metadata, IDPREFIX, PART, value);
    addProperty(part);
  }
View Full Code Here

Examples of org.apache.padaf.xmpbox.type.IntegerType

  public IntegerType getColorMode() {
    return (IntegerType) getProperty(localPrefix + COLOR_MODE);
  }
 
  public Integer getColorModeValue() {
    IntegerType tt = ((IntegerType) getProperty(localPrefix + COLOR_MODE));
    return tt == null ? null : tt.getValue();
  }
View Full Code Here

Examples of org.apache.padaf.xmpbox.type.IntegerType

    IntegerType tt = ((IntegerType) getProperty(localPrefix + COLOR_MODE));
    return tt == null ? null : tt.getValue();
  }
 
  public void setColorModeValue(String text) {
    addProperty(new IntegerType(metadata, localPrefix, COLOR_MODE, text));
  }
View Full Code Here

Examples of org.apache.padaf.xmpbox.type.IntegerType

  public IntegerType getUrgency() {
    return (IntegerType) getProperty(localPrefix + URGENCY);
  }
 
  public Integer getUrgencyValue() {
    IntegerType tt = ((IntegerType) getProperty(localPrefix + URGENCY));
    return tt == null ? null : tt.getValue();
  }
View Full Code Here

Examples of org.apache.padaf.xmpbox.type.IntegerType

    IntegerType tt = ((IntegerType) getProperty(localPrefix + URGENCY));
    return tt == null ? null : tt.getValue();
  }
 
  public void setUrgencyValue(String text) {
    addProperty(new IntegerType(metadata, localPrefix, URGENCY, text));
  }
View Full Code Here

Examples of org.apache.torque.test.dbobject.IntegerType

        varcharType.save();
        varcharType = new VarcharType();
        varcharType.setId("text");
        varcharType.save();

        IntegerType integerTypeNotNull = new IntegerType();
        integerTypeNotNull.setIntegerObjectValue(1);
        integerTypeNotNull.save();
        IntegerType integerTypeNull = new IntegerType();
        integerTypeNull.save();

        // check for comparison NOT_EQUAL and value null
        Criteria criteria = new Criteria();
        criteria.where(VarcharTypePeer.ID, null, Criteria.NOT_EQUAL)
            .and(VarcharTypePeer.VARCHAR_VALUE, null, Criteria.NOT_EQUAL);
        List<VarcharType> varcharResult = VarcharTypePeer.doSelect(criteria);
        assertEquals(1, varcharResult.size());
        assertEquals("text2", varcharResult.get(0).getId());

        criteria = new Criteria();
        criteria.where(IntegerTypePeer.ID, null, Criteria.NOT_EQUAL)
            .and(IntegerTypePeer.INTEGER_OBJECT_VALUE, null, Criteria.NOT_EQUAL);
        List<IntegerType> integerResult = IntegerTypePeer.doSelect(criteria);
        assertEquals(1, integerResult.size());
        assertEquals(integerTypeNotNull.getId(), integerResult.get(0).getId());

        // check for comparison EQUAL and value null
        criteria = new Criteria();
        criteria.where(VarcharTypePeer.VARCHAR_VALUE, null, Criteria.EQUAL);
        varcharResult = VarcharTypePeer.doSelect(criteria);
        assertEquals(1, varcharResult.size());
        assertEquals("text", varcharResult.get(0).getId());

        criteria = new Criteria();
        criteria.where(IntegerTypePeer.INTEGER_OBJECT_VALUE, null, Criteria.EQUAL);
        integerResult = IntegerTypePeer.doSelect(criteria);
        assertEquals(1, integerResult.size());
        assertEquals(integerTypeNull.getId(), integerResult.get(0).getId());
    }
View Full Code Here

Examples of org.apache.xmpbox.type.IntegerType

        return (IntegerType) getProperty(COLOR_MODE);
    }

    public Integer getColorMode()
    {
        IntegerType tt = ((IntegerType) getProperty(COLOR_MODE));
        return tt == null ? null : tt.getValue();
    }
View Full Code Here

Examples of org.apache.xmpbox.type.IntegerType

        return tt == null ? null : tt.getValue();
    }

    public void setColorMode(String text)
    {
        IntegerType tt = (IntegerType) instanciateSimple(COLOR_MODE, text);
        setColorModeProperty(tt);
    }
View Full Code Here

Examples of org.apache.xmpbox.type.IntegerType

        return (IntegerType) getProperty(URGENCY);
    }

    public Integer getUrgency()
    {
        IntegerType tt = ((IntegerType) getProperty(URGENCY));
        return tt == null ? null : tt.getValue();
    }
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.