org.overlord.sramp.ui.shared.types
Enum ArtifactFilter

java.lang.Object
  extended by java.lang.Enum<ArtifactFilter>
      extended by org.overlord.sramp.ui.shared.types.ArtifactFilter
All Implemented Interfaces:
Serializable, Comparable<ArtifactFilter>

public enum ArtifactFilter
extends Enum<ArtifactFilter>

Enum shared between the browse view and the remote query service to determine the currently active filter.

Author:
eric.wittmann@redhat.com

Enum Constant Summary
all
           
wsdl
           
xml
           
xsd
           
 
Method Summary
 String getCode()
           
 String getI18nKey()
           
 String getQueryBase()
           
static ArtifactFilter valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ArtifactFilter[] 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

all

public static final ArtifactFilter all

xml

public static final ArtifactFilter xml

xsd

public static final ArtifactFilter xsd

wsdl

public static final ArtifactFilter wsdl
Method Detail

values

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

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

valueOf

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

getCode

public String getCode()
Returns:
the code

getQueryBase

public String getQueryBase()
Returns:
the queryBase

getI18nKey

public String getI18nKey()
Returns:
the i18nKey


Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.