All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.draagon.meta.attr.IntAttribute Maven / Gradle / Ivy

The newest version!
/*
 * Copyright 2002 Draagon Software LLC. All Rights Reserved.
 *
 * This software is the proprietary information of Draagon Software LLC.
 * Use is subject to license terms.
 */
package com.draagon.meta.attr;

import com.draagon.meta.DataTypes;

/**
 * An Integer Attribute
 */
@SuppressWarnings("serial")
public class IntAttribute extends MetaAttribute {
    //private static Log log = LogFactory.getLog( StringAttribute.class );

    public final static String SUBTYPE_INT = "int";

    /**
     * Constructs the Integer MetaAttribute
     */
    public IntAttribute(String name ) {
        super( SUBTYPE_INT, name, DataTypes.INT);
    }

    /**
     * Manually create an Integer MetaAttribute with a value
     */
    public static IntAttribute create(String name, Integer value ) {
        IntAttribute a = new IntAttribute( name );
        a.setValue( value );
        return a;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy