com.skype.api
Enum Skype.VALIDATERESULT

java.lang.Object
  extended by java.lang.Enum<Skype.VALIDATERESULT>
      extended by com.skype.api.Skype.VALIDATERESULT
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Skype.VALIDATERESULT>
Enclosing class:
Skype

public static enum Skype.VALIDATERESULT
extends java.lang.Enum<Skype.VALIDATERESULT>

A value of this type can be returned by one of the following methods (of Skype class): ValidateAvatar, ValidateProfileString, ValidatePassword.


Enum Constant Summary
CONTAINS_INVALID_CHAR
          Value contains illegal characters.
CONTAINS_INVALID_WORD
          Value contains invalid word.
CONTAINS_SPACE
          Value contains whitespace.
INVALID_FORMAT
          Value has invalid format.
NOT_VALIDATED
          Given property could not be validated.
SAME_AS_USERNAME
          Password cannot be the same as skypename.
STARTS_WITH_INVALID_CHAR
          Value starts with an invalid character.
TOO_LONG
          The value exceeds max size limit for the given property.
TOO_SHORT
          Password is too short.
TOO_SIMPLE
          Password is too simple.
VALIDATED_OK
          Avatar or profile string validation succeeded.
 
Method Summary
static Skype.VALIDATERESULT fromString(java.lang.String s)
           
static Skype.VALIDATERESULT get(int code)
           
 int getId()
           
static Skype.VALIDATERESULT valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Skype.VALIDATERESULT[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
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
 

Enum Constant Detail

NOT_VALIDATED

public static final Skype.VALIDATERESULT NOT_VALIDATED
Given property could not be validated. The length of the field was within limits and the value is assumed to be Ok. Your client should treat this value as equivalent to VALIDATED_OK.


VALIDATED_OK

public static final Skype.VALIDATERESULT VALIDATED_OK
Avatar or profile string validation succeeded.


TOO_SHORT

public static final Skype.VALIDATERESULT TOO_SHORT
Password is too short.


TOO_LONG

public static final Skype.VALIDATERESULT TOO_LONG
The value exceeds max size limit for the given property.


CONTAINS_INVALID_CHAR

public static final Skype.VALIDATERESULT CONTAINS_INVALID_CHAR
Value contains illegal characters.


CONTAINS_SPACE

public static final Skype.VALIDATERESULT CONTAINS_SPACE
Value contains whitespace.


SAME_AS_USERNAME

public static final Skype.VALIDATERESULT SAME_AS_USERNAME
Password cannot be the same as skypename.


INVALID_FORMAT

public static final Skype.VALIDATERESULT INVALID_FORMAT
Value has invalid format.


CONTAINS_INVALID_WORD

public static final Skype.VALIDATERESULT CONTAINS_INVALID_WORD
Value contains invalid word.


TOO_SIMPLE

public static final Skype.VALIDATERESULT TOO_SIMPLE
Password is too simple.


STARTS_WITH_INVALID_CHAR

public static final Skype.VALIDATERESULT STARTS_WITH_INVALID_CHAR
Value starts with an invalid character.

Method Detail

values

public static Skype.VALIDATERESULT[] 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 (Skype.VALIDATERESULT c : Skype.VALIDATERESULT.values())
    System.out.println(c);

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

valueOf

public static Skype.VALIDATERESULT valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getId

public int getId()

get

public static Skype.VALIDATERESULT get(int code)

fromString

public static Skype.VALIDATERESULT fromString(java.lang.String s)


Copyright © 2010, 2011 Skype Technologies. All Rights Reserved.