com.trolltech.qt.core
Class QUrl.ParsingMode

java.lang.Object
  extended by java.lang.Enum
      extended by com.trolltech.qt.core.QUrl.ParsingMode
All Implemented Interfaces:
QtEnumerator, java.io.Serializable, java.lang.Comparable
Enclosing class:
QUrl

public static final class QUrl.ParsingMode
extends java.lang.Enum
implements QtEnumerator

The parsing mode controls the way QUrl parses strings. In TolerantMode , the parser corrects the following invalid input:

See Also:
Serialized Form

Field Summary
static QUrl.ParsingMode StrictMode
          Only valid URLs are accepted.
static QUrl.ParsingMode TolerantMode
          QUrl will try to correct some common errors in URLs.
 
Method Summary
static QUrl.ParsingMode resolve(int value)
          Returns the QUrl$ParsingMode constant with the specified int.
 int value()
          This function should return an integer value for the enum values of the enumeration that implements this interface.
static QUrl.ParsingMode valueOf(java.lang.String name)
           
static QUrl.ParsingMode[] values()
           
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

TolerantMode

public static final QUrl.ParsingMode TolerantMode
QUrl will try to correct some common errors in URLs. This mode is useful when processing URLs entered by users.


StrictMode

public static final QUrl.ParsingMode StrictMode
Only valid URLs are accepted. This mode is useful for general URL validation.

Method Detail

values

public static QUrl.ParsingMode[] values()

valueOf

public static QUrl.ParsingMode valueOf(java.lang.String name)

value

public int value()
This function should return an integer value for the enum values of the enumeration that implements this interface.

Specified by:
value in interface QtEnumerator

resolve

public static QUrl.ParsingMode resolve(int value)
Returns the QUrl$ParsingMode constant with the specified int.