Package org.refcodes.data.ext.corporate
Enum LogoPixmap
- java.lang.Object
-
- java.lang.Enum<LogoPixmap>
-
- org.refcodes.data.ext.corporate.LogoPixmap
-
- All Implemented Interfaces:
Serializable
,Comparable<LogoPixmap>
,org.refcodes.data.DataLocator
public enum LogoPixmap extends Enum<LogoPixmap> implements org.refcodes.data.DataLocator
TheLogoPixmap
defines the pixmaps which can be retrieved by the accordingLogoPixmapUrlFactory
andLogoPixmapInputStreamFactory
.- Author:
- steiner
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.refcodes.data.DataLocator
org.refcodes.data.DataLocator.DataLocatorBuilder<B extends org.refcodes.data.DataLocator.DataLocatorBuilder<B>>, org.refcodes.data.DataLocator.DataLocatorMutator, org.refcodes.data.DataLocator.DataLocatorProperty, org.refcodes.data.DataLocator.DataLocatorPropertyBuilder
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LogoPixmap
fromName(String aPixmapName)
Retrieves the enumeration element representing the given pixmap name (ignoring the case) or null if none was found.InputStream
getDataInputStream()
URL
getDataUrl()
static LogoPixmap
valueOf(String name)
Returns the enum constant of this type with the specified name.static LogoPixmap[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
REFCODES
public static final LogoPixmap REFCODES
-
FUNCODES
public static final LogoPixmap FUNCODES
-
COMCODES
public static final LogoPixmap COMCODES
-
-
Method Detail
-
values
public static LogoPixmap[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (LogoPixmap c : LogoPixmap.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LogoPixmap valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getDataUrl
public URL getDataUrl()
- Specified by:
getDataUrl
in interfaceorg.refcodes.data.DataLocator
-
getDataInputStream
public InputStream getDataInputStream()
- Specified by:
getDataInputStream
in interfaceorg.refcodes.data.DataLocator
-
fromName
public static LogoPixmap fromName(String aPixmapName)
Retrieves the enumeration element representing the given pixmap name (ignoring the case) or null if none was found.- Parameters:
aPixmapName
- The pixmap name for which to get the enumeration element.- Returns:
- The enumeration element determined or null if none matching was found.
-
-