
com.anrisoftware.resources.api.Resource Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of resources-api Show documentation
Show all versions of resources-api Show documentation
The public API of the resources project.
/*
* Copyright 2012-2016 Erwin Müller
*
* This file is part of resources-api.
*
* resources-api 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 3 of the License, or (at your
* option) any later version.
*
* resources-api 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 General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with resources-api. If not, see .
*/
package com.anrisoftware.resources.api;
import java.net.URL;
import java.util.Locale;
/**
* Base interface for a resource.
*
* @author Erwin Mueller, [email protected]
* @since 1.1
*/
public interface Resource {
/**
* Returns the name of this resource.
*
* @return the {@link String} name.
*/
String getName();
/**
* Returns the locale of the resource.
*
* @return the {@link Locale} of the resource.
*/
Locale getLocale();
/**
* Returns the URL of the resource.
*
* @return the {@link URL} of the resource.
*/
URL getURL();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy