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

org.fcrepo.server.security.xacml.util.Attribute Maven / Gradle / Ivy

There is a newer version: 3.8.1
Show newest version
package org.fcrepo.server.security.xacml.util;

import java.util.HashMap;
import java.util.Map;


/**
 * Encapsulates an attribute together with
 * name/value configuration items
 *
 * @author Stephen Bayliss
 * @version $Id$
 */
public class Attribute {
    private final Map options;

    public Attribute() {
        options = new HashMap();
    }
    public Attribute(Map options) {
        this.options = options;
    }
    /**
     * Get named config item for this attribute
     * @param optionName
     * @return
     */
    public String get(String optionName) {
        return options.get(optionName);
    }
    /**
     * Add or update a config item for this attribute
     * @param optionName
     * @param optionValue
     * @return
     */
    public String put(String optionName, String optionValue) {
        options.put(optionName, optionValue);
        return optionValue;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy