/* AWE - Amanzi Wireless Explorer * http://awe.amanzi.org * (C) 2008-2009, AmanziTel AB * * This library is provided under the terms of the Eclipse Public License * as described at http://www.eclipse.org/legal/epl-v10.html. Any use, * reproduction or distribution of the library constitutes recipient's * acceptance of this agreement. * * This library is distributed WITHOUT ANY WARRANTY; without even the * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. */ package org.amanzi.awe.nem.ui.wizard; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import org.amanzi.awe.nem.managers.properties.PropertyContainer; import org.amanzi.neo.nodetypes.INodeType; /** * TODO Purpose of * <p> * </p> * * @author Vladislav_Kondratenko * @since 1.0.0 */ public class NetworkDataContainer { private String name; private List<INodeType> structure; private Map<INodeType, List<PropertyContainer>> typeProperties = new HashMap<INodeType, List<PropertyContainer>>(); /** * @return Returns the name. */ public String getName() { return name; } /** * @param name The name to set. */ public void setName(String name) { this.name = name; } /** * @return Returns the structure. */ public List<INodeType> getStructure() { return structure; } public void putToTypeProperties(INodeType type, List<PropertyContainer> container) { typeProperties.put(type, container); } /** * @return Returns the typeProperties. */ public Map<INodeType, List<PropertyContainer>> getTypeProperties() { return typeProperties; } /** * @param structure The structure to set. */ public void setStructure(List<INodeType> structure) { this.structure = structure; } /** * @param structure The structure to set. */ public void setStructure(INodeType singleElement) { this.structure = new ArrayList<INodeType>(); structure.add(singleElement); } }