Skip navigation links


com.fatwire.services.beans.entity
Enum DestinationBean.Type

java.lang.Object
  extended by java.lang.Enum<DestinationBean.Type>
      extended by com.fatwire.services.beans.entity.DestinationBean.Type

All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<DestinationBean.Type>
Enclosing class:
DestinationBean

public static enum DestinationBean.Type
extends java.lang.Enum<DestinationBean.Type>

Enumerates all the supported destination types.


Enum Constant Summary
CUSTOM
          Custom.
EXPORT
          Export to XML.
MIRROR
          Mirror Publishing.
REAL_TIME
          Real-time Publishing.
STATIC
          Static Publishing.

 

Method Summary
 java.lang.String getCode()
          Returns the code associated with this enum.
 java.lang.String getName()
           Returns the free-form name for this destination type.
 void setName(java.lang.String name)
          Sets a free-form name to this destination type.
static DestinationBean.Type toEnum(java.lang.String code)
          Returns an enum object, given the code, or null if there is no such supported code.
static DestinationBean.Type valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static DestinationBean.Type[] 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

CUSTOM

public static final DestinationBean.Type CUSTOM
Custom.

EXPORT

public static final DestinationBean.Type EXPORT
Export to XML.

MIRROR

public static final DestinationBean.Type MIRROR
Mirror Publishing.

REAL_TIME

public static final DestinationBean.Type REAL_TIME
Real-time Publishing.

STATIC

public static final DestinationBean.Type STATIC
Static Publishing.

Method Detail

values

public static DestinationBean.Type[] 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 (DestinationBean.Type c : DestinationBean.Type.values())
    System.out.println(c);
Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static DestinationBean.Type valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getCode

public java.lang.String getCode()
Returns the code associated with this enum.
Returns:
the code.

toEnum

public static DestinationBean.Type toEnum(java.lang.String code)
Returns an enum object, given the code, or null if there is no such supported code.
Parameters:
code - the code to match for, case-sensitive.
Returns:
the enum for this code, or null if there is no such supported code.

setName

public void setName(java.lang.String name)
Sets a free-form name to this destination type.
Parameters:
name - the free-form name to set.

getName

public java.lang.String getName()

Returns the free-form name for this destination type.

If the name is null, returns the code associated with this destination type.
Returns:
the free-form name, if not set, returns the code.

Skip navigation links


Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.