package org.picketlink.identity.federation.core.handler.config; import java.util.ArrayList; import java.util.Collections; import java.util.List; import org.picketlink.identity.federation.core.config.KeyValueType; /** * <p> * Java class for Handler complex type. * * <p> * The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType name="Handler"> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> * <element name="Option" type="{urn:picketlink:identity-federation:config:1.0}KeyValueType" maxOccurs="unbounded" minOccurs="0"/> * </sequence> * <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" /> * <attribute name="class" type="{http://www.w3.org/2001/XMLSchema}string" /> * </restriction> * </complexContent> * </complexType> * </pre> * * */ public class Handler { protected List<KeyValueType> option = new ArrayList<KeyValueType>(); protected String name; protected String clazz; public void add(KeyValueType kv) { this.option.add(kv); } public void remove(KeyValueType kv) { this.option.remove(kv); } /** * Gets the value of the option property. * <p> * Objects of the following type(s) are allowed in the list {@link KeyValueType } * * */ public List<KeyValueType> getOption() { return Collections.unmodifiableList(this.option); } /** * Gets the value of the name property. * * @return possible object is {@link String } * */ public String getName() { return name; } /** * Sets the value of the name property. * * @param value allowed object is {@link String } * */ public void setName(String value) { this.name = value; } /** * Gets the value of the clazz property. * * @return possible object is {@link String } * */ public String getClazz() { return clazz; } /** * Sets the value of the clazz property. * * @param value allowed object is {@link String } * */ public void setClazz(String value) { this.clazz = value; } }