All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.liferay.info.item.InfoItemClassDetails Maven / Gradle / Ivy

There is a newer version: 2024.q3.1
Show newest version
/**
 * SPDX-FileCopyrightText: (c) 2000 Liferay, Inc. https://liferay.com
 * SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
 */

package com.liferay.info.item;

import com.liferay.info.localized.InfoLocalizedValue;

import java.util.Locale;

/**
 * @author Jorge Ferrer
 */
public class InfoItemClassDetails {

	public InfoItemClassDetails(String className) {
		this(className, InfoLocalizedValue.modelResource(className));
	}

	public InfoItemClassDetails(
		String className, InfoLocalizedValue labelInfoLocalizedValue) {

		_className = className;
		_labelInfoLocalizedValue = labelInfoLocalizedValue;
	}

	public String getClassName() {
		return _className;
	}

	public String getLabel(Locale locale) {
		return _labelInfoLocalizedValue.getValue(locale);
	}

	public InfoLocalizedValue getLabelInfoLocalizedValue() {
		return _labelInfoLocalizedValue;
	}

	private final String _className;
	private final InfoLocalizedValue _labelInfoLocalizedValue;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy