org.zanata.client.commands
Enum PushPullType

java.lang.Object
  extended by java.lang.Enum<PushPullType>
      extended by org.zanata.client.commands.PushPullType
All Implemented Interfaces:
Serializable, Comparable<PushPullType>

public enum PushPullType
extends Enum<PushPullType>

Author:
Carlos Munoz camunoz@redhat.com

Enum Constant Summary
Both
          Push/Pull both Source and Translated documents
Source
          Push/Pull source documents only
Trans
          Push/Pull Translated documents only
 
Method Summary
static PushPullType fromString(String str)
          Parse a PushPullType value from a string case-insensitively, and disregarding leading and trailing spaces.
static PushPullType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static PushPullType[] 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

Source

public static final PushPullType Source
Push/Pull source documents only


Trans

public static final PushPullType Trans
Push/Pull Translated documents only


Both

public static final PushPullType Both
Push/Pull both Source and Translated documents

Method Detail

values

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

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

valueOf

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

fromString

public static PushPullType fromString(String str)
Parse a PushPullType value from a string case-insensitively, and disregarding leading and trailing spaces.

Parameters:
str - The string to parse.
Returns:
The parsed PushPullType enum value, or null if the string did not match a value.


Copyright © 2013 Zanata Project. All Rights Reserved.