Forge - Shell API 1.2.0.Final

org.jboss.forge.resources
Enum ResourceFlag

java.lang.Object
  extended by java.lang.Enum<ResourceFlag>
      extended by org.jboss.forge.resources.ResourceFlag
All Implemented Interfaces:
Serializable, Comparable<ResourceFlag>

public enum ResourceFlag
extends Enum<ResourceFlag>

Author:
Mike Brock .

Enum Constant Summary
AmbiguouslyQualified
          The resource was qualified by an ambiguous qualifier (a wildcard) as opposed to being uniquely qualified.
File
          The resource is a physical file.
Leaf
          The resource is a leaf, and therefore has no children.
Node
          The resource represents a node, which contains or is at least capable of having children..
ProjectSourceFile
          The resource is a project source file.
ProjectTestSourceFile
          The resource is a test source file for the current project.
Prototype
          The resource instance is a Prototype (a factory instance).
 
Method Summary
static ResourceFlag valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ResourceFlag[] 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

Prototype

public static final ResourceFlag Prototype
The resource instance is a Prototype (a factory instance). This instance is maintained by the framework to spawn new instances, but does not actually represent a real resource.


AmbiguouslyQualified

public static final ResourceFlag AmbiguouslyQualified
The resource was qualified by an ambiguous qualifier (a wildcard) as opposed to being uniquely qualified.


Node

public static final ResourceFlag Node
The resource represents a node, which contains or is at least capable of having children..


Leaf

public static final ResourceFlag Leaf
The resource is a leaf, and therefore has no children.


File

public static final ResourceFlag File
The resource is a physical file.


ProjectSourceFile

public static final ResourceFlag ProjectSourceFile
The resource is a project source file.


ProjectTestSourceFile

public static final ResourceFlag ProjectTestSourceFile
The resource is a test source file for the current project.

Method Detail

values

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

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

valueOf

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

Forge - Shell API 1.2.0.Final

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.