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

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

/*
 * 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;

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

    public final static String SUBTYPE_STRING = "string";

    /**
     * Constructs the String MetaAttribute
     */
    public StringAttribute(String name ) {
        super( SUBTYPE_STRING, name, DataTypes.STRING);
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy