citysdk.tourism.client.requests.uri
Enum Operator
java.lang.Object
java.lang.Enum<Operator>
citysdk.tourism.client.requests.uri.Operator
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<Operator>
public enum Operator
- extends java.lang.Enum<Operator>
The operator used in the URI Template
- Author:
- Pedro Cruz
| Methods inherited from class java.lang.Enum |
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
NULL_OP
public static final Operator NULL_OP
DEFAULT_OP
public static final Operator DEFAULT_OP
PLUS_OP
public static final Operator PLUS_OP
SHARP_OP
public static final Operator SHARP_OP
DOT_OP
public static final Operator DOT_OP
SLASH_OP
public static final Operator SLASH_OP
SEMICOLON_OP
public static final Operator SEMICOLON_OP
QUERY_OP
public static final Operator QUERY_OP
FORM_OP
public static final Operator FORM_OP
values
public static Operator[] 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 (Operator c : Operator.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Operator 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
getOperator
public java.lang.String getOperator()
getSeparator
public java.lang.String getSeparator()
hasSeparator
public boolean hasSeparator()
isNamed
public boolean isNamed()
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Enum<Operator>
fromOpCode
public static Operator fromOpCode(java.lang.String op)