/** * Copyright (c) 2000-present Liferay, Inc. All rights reserved. * * This library is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the Free * Software Foundation; either version 2.1 of the License, or (at your option) * any later version. * * This library is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more * details. */ package com.liferay.portal.kernel.servlet.taglib.ui; import com.liferay.portal.kernel.model.BaseModel; import java.util.HashMap; import java.util.Map; /** * @author Sergio González */ public class BreadcrumbEntry { public BaseModel<?> getBaseModel() { return _baseModel; } public Map<String, Object> getData() { return _data; } public Object getData(String key) { return _data.get(key); } public String getTitle() { return _title; } public String getURL() { return _url; } public boolean isBrowsable() { return _browsable; } public void putData(String key, Object value) { if (_data == null) { _data = new HashMap<>(); } _data.put(key, value); } public void setBaseModel(BaseModel<?> baseModel) { _baseModel = baseModel; } public void setBrowsable(boolean browsable) { _browsable = browsable; } public void setData(Map<String, Object> data) { _data = data; } public void setTitle(String title) { _title = title; } public void setURL(String url) { _url = url; } private BaseModel<?> _baseModel; private boolean _browsable = true; private Map<String, Object> _data; private String _title; private String _url; }