net.sf.oval.constraint
Enum AssertURLCheck.URIScheme

java.lang.Object
  extended by java.lang.Enum<AssertURLCheck.URIScheme>
      extended by net.sf.oval.constraint.AssertURLCheck.URIScheme
All Implemented Interfaces:
Serializable, Comparable<AssertURLCheck.URIScheme>
Enclosing class:
AssertURLCheck

public static enum AssertURLCheck.URIScheme
extends Enum<AssertURLCheck.URIScheme>

http://en.wikipedia.org/wiki/URI_scheme

Author:
Sebastian Thomschke

Enum Constant Summary
FTP
           
HTTP
           
HTTPS
           
 
Method Summary
 String getScheme()
           
 String toString()
           
static AssertURLCheck.URIScheme valueOf(String name)
          Returns the enum constant of this type with the specified name.
static AssertURLCheck.URIScheme[] 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, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

FTP

public static final AssertURLCheck.URIScheme FTP

HTTP

public static final AssertURLCheck.URIScheme HTTP

HTTPS

public static final AssertURLCheck.URIScheme HTTPS
Method Detail

values

public static final AssertURLCheck.URIScheme[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(AssertURLCheck.URIScheme c : AssertURLCheck.URIScheme.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static AssertURLCheck.URIScheme 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 name

getScheme

public String getScheme()
Returns:
the scheme

toString

public String toString()
Overrides:
toString in class Enum<AssertURLCheck.URIScheme>


Copyright © 2005–2015 The OVal Development Team. All rights reserved.