Mobile Tools for Java
Release 1.0

org.eclipse.mtj.core.library.model
Enum Visibility

java.lang.Object
  extended by java.lang.Enum<Visibility>
      extended by org.eclipse.mtj.core.library.model.Visibility
All Implemented Interfaces:
Serializable, Comparable<Visibility>

public enum Visibility
extends Enum<Visibility>

Since:
0.9.1

Enum Constant Summary
INTERNAL
          Will be available only for internal use
INVALID
          An invalid visibility
PUBLIC
          Will be available to all users.
 
Method Summary
static Visibility getFromString(String visibility)
          Gets a Visibility element that represents the visibility argument.
static Visibility valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Visibility[] 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

public static final Visibility PUBLIC
Will be available to all users.


INTERNAL

public static final Visibility INTERNAL
Will be available only for internal use


INVALID

public static final Visibility INVALID
An invalid visibility

Method Detail

values

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

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

valueOf

public static Visibility 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

getFromString

public static Visibility getFromString(String visibility)
Gets a Visibility element that represents the visibility argument.

Parameters:
visibility - a string that represents the visibility.
Returns:
the Visibility element.

Mobile Tools for Java
Release 1.0