Esri Geoportal Server
1.0

com.esri.gpt.catalog.management
Enum MmdEnums.ApprovalStatus

java.lang.Object
  extended by java.lang.Enum<MmdEnums.ApprovalStatus>
      extended by com.esri.gpt.catalog.management.MmdEnums.ApprovalStatus
All Implemented Interfaces:
Serializable, Comparable<MmdEnums.ApprovalStatus>
Enclosing class:
MmdEnums

public static enum MmdEnums.ApprovalStatus
extends Enum<MmdEnums.ApprovalStatus>

An enumeration describing a metadata record's approval status.


Enum Constant Summary
any
          Any status.
approved
          Document was approved.
disapproved
          Document was disapproved.
draft
          Document is a draft
incomplete
          Document is incomplete.
posted
          Document was posted (default value).
reviewed
          Document was reviewed.
 
Method Summary
static MmdEnums.ApprovalStatus checkValue(String value)
          Checks the value of a String to determine the corresponding enum.
static MmdEnums.ApprovalStatus defaultValue()
          Returns the default value for the enum.
static boolean isPubliclyVisible(String value)
          Determines if a status String represents a publicly visible state.
static MmdEnums.ApprovalStatus valueOf(String name)
          Returns the enum constant of this type with the specified name.
static MmdEnums.ApprovalStatus[] 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

any

public static final MmdEnums.ApprovalStatus any
Any status.


posted

public static final MmdEnums.ApprovalStatus posted
Document was posted (default value).


incomplete

public static final MmdEnums.ApprovalStatus incomplete
Document is incomplete.


reviewed

public static final MmdEnums.ApprovalStatus reviewed
Document was reviewed.


approved

public static final MmdEnums.ApprovalStatus approved
Document was approved.


disapproved

public static final MmdEnums.ApprovalStatus disapproved
Document was disapproved.


draft

public static final MmdEnums.ApprovalStatus draft
Document is a draft

Method Detail

values

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

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

valueOf

public static MmdEnums.ApprovalStatus 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

checkValue

public static MmdEnums.ApprovalStatus checkValue(String value)
Checks the value of a String to determine the corresponding enum.

Parameters:
value - the string to check
Returns:
the corresponding enum (default is ApprovalStatus.posted)

defaultValue

public static MmdEnums.ApprovalStatus defaultValue()
Returns the default value for the enum.

Returns:
ApprovalStatus.posted

isPubliclyVisible

public static boolean isPubliclyVisible(String value)
Determines if a status String represents a publicly visible state.
ApprovalStatus.approved or ApprovalStatus.reviewed

Returns:
true if publicly visible

Esri Geoportal Server
1.0

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.