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

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

public enum ArtifactTypeFilter
extends Enum<ArtifactTypeFilter>

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

xml

public static final ArtifactTypeFilter xml

xsd

public static final ArtifactTypeFilter xsd

wsdl

public static final ArtifactTypeFilter wsdl

policy

public static final ArtifactTypeFilter policy

ext

public static final ArtifactTypeFilter ext

doc

public static final ArtifactTypeFilter doc
Method Detail

values

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

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

valueOf

public static ArtifactTypeFilter 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-2013 JBoss, a division of Red Hat. All Rights Reserved.