| File was renamed from opends/src/server/org/opends/server/replication/plugin/AttrInfoWithOptions.java |
| | |
| | | * CDDL HEADER END |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Copyright 2006-2010 Sun Microsystems, Inc. |
| | | */ |
| | | package org.opends.server.replication.plugin; |
| | | |
| | |
| | | * Used to store historical information. |
| | | * Contain a map of AttrInfo for each options of a given attribute type. |
| | | */ |
| | | public class AttrInfoWithOptions |
| | | public class AttrHistoricalWithOptions |
| | | { |
| | | private HashMap<Set<String> ,AttributeInfo> attributesInfo; |
| | | private HashMap<Set<String> ,AttrHistorical> attributesInfo; |
| | | |
| | | /** |
| | | * creates a new AttrInfoWithOptions. |
| | | */ |
| | | public AttrInfoWithOptions() |
| | | public AttrHistoricalWithOptions() |
| | | { |
| | | attributesInfo = new HashMap<Set<String> ,AttributeInfo>(); |
| | | attributesInfo = new HashMap<Set<String> ,AttrHistorical>(); |
| | | } |
| | | |
| | | /** |
| | |
| | | * @param options the options |
| | | * @return the information |
| | | */ |
| | | public AttributeInfo get(Set<String> options) |
| | | public AttrHistorical get(Set<String> options) |
| | | { |
| | | return attributesInfo.get(options); |
| | | } |
| | |
| | | * @param attrInfo the info to associate |
| | | * @return the info to associate |
| | | */ |
| | | public AttributeInfo put(Set<String> options, AttributeInfo attrInfo ) |
| | | public AttrHistorical put(Set<String> options, AttrHistorical attrInfo ) |
| | | { |
| | | return attributesInfo.put(options, attrInfo); |
| | | } |
| | |
| | | * get the Attributes information associated to this object. |
| | | * @return the set of informations |
| | | */ |
| | | public HashMap<Set<String>, AttributeInfo> getAttributesInfo() |
| | | public HashMap<Set<String>, AttrHistorical> getAttributesInfo() |
| | | { |
| | | return attributesInfo; |
| | | } |