|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<URITypeEnum> sk.uniba.euromath.tools.URITypeEnum
public enum URITypeEnum
Enumerates types of an URI address.
Enum Constant Summary | |
---|---|
INVALID
The URI is invalid - the construction of the URI Java object failed. |
|
LOCAL_URL
The URI is a URL pointing into the local filesystem. |
|
NON_LOCAL_URL
The URI is an URL but it is not on the local filesystem. |
|
OPAQUE
The URI is opaque, such as mailto:blah@blah.blah hence it
does not reference any file resource. |
Method Summary | |
---|---|
static URITypeEnum |
getURIType(String uri)
Returns the type of given URI. |
static URITypeEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static URITypeEnum[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final URITypeEnum LOCAL_URL
public static final URITypeEnum OPAQUE
mailto:blah@blah.blah
hence it
does not reference any file resource.
public static final URITypeEnum INVALID
public static final URITypeEnum NON_LOCAL_URL
http://www.blah.com/foo
.
Method Detail |
---|
public static final URITypeEnum[] values()
for(URITypeEnum c : URITypeEnum.values()) System.out.println(c);
public static URITypeEnum valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified namepublic static URITypeEnum getURIType(String uri)
uri
- the URI address to check.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |