org.silverpeas.contribution
Enum ContributionStatus

java.lang.Object
  extended by java.lang.Enum<ContributionStatus>
      extended by org.silverpeas.contribution.ContributionStatus
All Implemented Interfaces:
Serializable, Comparable<ContributionStatus>

public enum ContributionStatus
extends Enum<ContributionStatus>

Defines the different possible status in which a contribution must be.


Enum Constant Summary
DRAFT
           
PENDING_VALIDATION
           
REFUSED
           
UNKNOWN
           
VALIDATED
           
 
Method Summary
static ContributionStatus from(String name)
           
 String getName()
           
 boolean isInDraft()
           
 boolean isPendingValidation()
           
 boolean isRefused()
           
 boolean isValidated()
           
static ContributionStatus valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ContributionStatus[] 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 ContributionStatus UNKNOWN

DRAFT

public static final ContributionStatus DRAFT

PENDING_VALIDATION

public static final ContributionStatus PENDING_VALIDATION

REFUSED

public static final ContributionStatus REFUSED

VALIDATED

public static final ContributionStatus VALIDATED
Method Detail

values

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

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

valueOf

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

getName

public String getName()

from

public static ContributionStatus from(String name)

isInDraft

public boolean isInDraft()

isRefused

public boolean isRefused()

isPendingValidation

public boolean isPendingValidation()

isValidated

public boolean isValidated()


Copyright © 2016 Silverpeas. All Rights Reserved.