Package org.apache.xmpbox.type

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


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

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

        return (IntegerType) getProperty(URGENCY);
    }

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

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

    public void setUrgency(String s)
    {
        IntegerType tt = (IntegerType) instanciateSimple(URGENCY, s);
        setUrgencyProperty(tt);
    }
View Full Code Here

        setUrgencyProperty(tt);
    }

    public void setUrgency(Integer s)
    {
        IntegerType tt = (IntegerType) instanciateSimple(URGENCY, s);
        setUrgencyProperty(tt);
    }
View Full Code Here

     *            the rate value to set
     */
    public void setRating(Integer rate)
    {
        // addProperty(new IntegerType(metadata, localPrefix, RATING, rate));
        IntegerType tt = (IntegerType) instanciateSimple(RATING, rate);
        setRatingProperty(tt);

    }
View Full Code Here

     *
     * @return the Rating value
     */
    public Integer getRating()
    {
        IntegerType it = ((IntegerType) getProperty(RATING));
        return it == null ? null : it.getValue();
    }
View Full Code Here

    protected void testGetSetIntegerProperty() throws Exception
    {
        String setName = setMethod(property);
        String getName = getMethod(property);

        IntegerType it = new IntegerType(metadata, null, schema.getPrefix(), property, value);
        Method setMethod = schemaClass.getMethod(setName, IntegerType.class);
        Method getMethod = schemaClass.getMethod(getName);

        setMethod.invoke(schema, it);
        Integer found = ((IntegerType) getMethod.invoke(schema)).getValue();
View Full Code Here

        String intProp = "nsSchem:IntegerTestProp";
        Integer intPropVal = 5;
        schem.setIntegerPropertyValue(intProp, intPropVal);
        Assert.assertEquals(intPropVal, schem.getIntegerPropertyValue(intProp));

        IntegerType intType = parent.getTypeMapping().createInteger(null, "nsSchem", "intType", 5);
        schem.setIntegerProperty(intType);
        Assert.assertEquals(intType, schem.getIntegerProperty("intType"));

        // Check bad type verification
        boolean ok = false;
View Full Code Here

     * @param url
     *            DocumentId value to set
     */
    public void setSaveId(Integer url)
    {
        IntegerType tt = (IntegerType) instanciateSimple(SAVE_ID, url);
        setSaveIDProperty(tt);
    }
View Full Code Here

TOP

Related Classes of org.apache.xmpbox.type.IntegerType

Copyright © 2018 www.massapicom. 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.