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

Alachisoft.NCache.Common.Configuration.ConfigurationAttributeAttribute Maven / Gradle / Ivy

package Alachisoft.NCache.Common.Configuration;

//C# TO JAVA CONVERTER TODO TASK: Java annotations will not correspond to .NET attributes:
//[AttributeUsage(AttributeTargets.Property)]
public class ConfigurationAttributeAttribute extends ConfigurationAttributeBase {
    private String _attributeName;
    private String _appendedText = "";

    public ConfigurationAttributeAttribute(String attribName) {
        super(false, false);
        _attributeName = attribName;
    }

    public ConfigurationAttributeAttribute(String attribName, String appendedText) {
        this(attribName, false, false, appendedText);
        _attributeName = attribName;
    }

    public ConfigurationAttributeAttribute(String attribName, boolean isRequired, boolean isCollection, String appendedText) {
        super(isRequired, false);
        _attributeName = attribName;
        _appendedText = appendedText;
    }

    /**
     * Gets the attribute name.
     */
    public final String getAttributeName() {
        return _attributeName;
    }

    /**
     * Gets/sets the appended text.
     * A property value may have some appended extra text just for
     * describtion of the property e.g. size="250mb". Here 250 is the size
     * and mb is just for describtion that size is in mbs.
     */
    public final String getAppendedText() {
        return _appendedText;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy