org.netbeans.modules.queries/1 1.28

org.netbeans.api.queries
Enum SharabilityQuery.Sharability

java.lang.Object
  extended by java.lang.Enum<SharabilityQuery.Sharability>
      extended by org.netbeans.api.queries.SharabilityQuery.Sharability
All Implemented Interfaces:
Serializable, Comparable<SharabilityQuery.Sharability>
Enclosing class:
SharabilityQuery

public static enum SharabilityQuery.Sharability
extends Enum<SharabilityQuery.Sharability>

Sharability constants.

Since:
1.27

Enum Constant Summary
MIXED
          Constant indicating that a directory is sharable but files and directories recursively contained in it may or may not be sharable.
NOT_SHARABLE
          Constant indicating that the file or directory is not sharable.
SHARABLE
          Constant indicating that the file or directory is sharable.
UNKNOWN
          Constant indicating that nothing is known about whether a given file should be considered sharable or not.
 
Method Summary
static SharabilityQuery.Sharability valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SharabilityQuery.Sharability[] 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

UNKNOWN

public static final SharabilityQuery.Sharability UNKNOWN
Constant indicating that nothing is known about whether a given file should be considered sharable or not. A client should therefore behave in the safest way it can.


SHARABLE

public static final SharabilityQuery.Sharability SHARABLE
Constant indicating that the file or directory is sharable. In the case of a directory, this means that all files and directories recursively contained in this directory are also sharable.


NOT_SHARABLE

public static final SharabilityQuery.Sharability NOT_SHARABLE
Constant indicating that the file or directory is not sharable. In the case of a directory, this means that all files and directories recursively contained in this directory are also not sharable.


MIXED

public static final SharabilityQuery.Sharability MIXED
Constant indicating that a directory is sharable but files and directories recursively contained in it may or may not be sharable. A client interested in children of this directory should explicitly ask about each in turn.

Method Detail

values

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

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

valueOf

public static SharabilityQuery.Sharability 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
NullPointerException - if the argument is null

org.netbeans.modules.queries/1 1.28

Built on May 25 2012.  |  Portions Copyright 1997-2012 Oracle. All rights reserved.