public static enum PersistenceXMLLoader.AllowedProtocol extends Enum<PersistenceXMLLoader.AllowedProtocol>
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isJarProtocol(String protocol)
In case it is jar protocol
|
static boolean |
isValidProtocol(String protocol)
If provided protocol is within allowed protocol.
|
static PersistenceXMLLoader.AllowedProtocol |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PersistenceXMLLoader.AllowedProtocol[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PersistenceXMLLoader.AllowedProtocol WSJAR
public static final PersistenceXMLLoader.AllowedProtocol JAR
public static final PersistenceXMLLoader.AllowedProtocol ZIP
public static final PersistenceXMLLoader.AllowedProtocol FILE
public static final PersistenceXMLLoader.AllowedProtocol VFSZIP
public static final PersistenceXMLLoader.AllowedProtocol VFS
public static PersistenceXMLLoader.AllowedProtocol[] values()
for (PersistenceXMLLoader.AllowedProtocol c : PersistenceXMLLoader.AllowedProtocol.values()) System.out.println(c);
public static PersistenceXMLLoader.AllowedProtocol valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is nullpublic static boolean isJarProtocol(String protocol)
protocol - public static boolean isValidProtocol(String protocol)
protocol - protocolCopyright © 2015. All Rights Reserved.