5205N/A/*
5205N/A * CDDL HEADER START
5205N/A *
5205N/A * The contents of this file are subject to the terms of the
5205N/A * Common Development and Distribution License, Version 1.0 only
5205N/A * (the "License"). You may not use this file except in compliance
5205N/A * with the License.
5205N/A *
5205N/A * You can obtain a copy of the license at
5205N/A * trunk/opends/resource/legal-notices/OpenDS.LICENSE
5205N/A * or https://OpenDS.dev.java.net/OpenDS.LICENSE.
5205N/A * See the License for the specific language governing permissions
5205N/A * and limitations under the License.
5205N/A *
5205N/A * When distributing Covered Code, include this CDDL HEADER in each
5205N/A * file and include the License file at
5205N/A * trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
5205N/A * add the following below this CDDL HEADER, with the fields enclosed
5205N/A * by brackets "[]" replaced with your own identifying information:
5205N/A * Portions Copyright [yyyy] [name of copyright owner]
5205N/A *
5205N/A * CDDL HEADER END
5205N/A *
5205N/A *
5205N/A * Copyright 2006-2010 Sun Microsystems, Inc.
5205N/A */
5205N/Apackage org.opends.server.replication.plugin;
5205N/A
5205N/Aimport java.util.HashMap;
5205N/Aimport java.util.Set;
5205N/A
5205N/A
5205N/A/**
5205N/A * Used to store historical information.
5205N/A * Contain a map of AttrInfo for each options of a given attribute type.
5205N/A */
5205N/Apublic class AttrHistoricalWithOptions
5205N/A{
5205N/A private HashMap<Set<String> ,AttrHistorical> attributesInfo;
5205N/A
5205N/A /**
5205N/A * creates a new AttrInfoWithOptions.
5205N/A */
5205N/A public AttrHistoricalWithOptions()
5205N/A {
5205N/A attributesInfo = new HashMap<Set<String> ,AttrHistorical>();
5205N/A }
5205N/A
5205N/A /**
5205N/A * Get the info for a given option.
5205N/A *
5205N/A * @param options the options
5205N/A * @return the information
5205N/A */
5205N/A public AttrHistorical get(Set<String> options)
5205N/A {
5205N/A return attributesInfo.get(options);
5205N/A }
5205N/A
5205N/A /**
5205N/A * Associate some info to a given set of options.
5205N/A *
5205N/A * @param options the options
5205N/A * @param attrInfo the info to associate
5205N/A * @return the info to associate
5205N/A */
5205N/A public AttrHistorical put(Set<String> options, AttrHistorical attrInfo )
5205N/A {
5205N/A return attributesInfo.put(options, attrInfo);
5205N/A }
5205N/A
5205N/A /**
5205N/A * get the Attributes information associated to this object.
5205N/A * @return the set of informations
5205N/A */
5205N/A public HashMap<Set<String>, AttrHistorical> getAttributesInfo()
5205N/A {
5205N/A return attributesInfo;
5205N/A }
5205N/A}
5205N/A