|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<RpcPacketFieldType> com.perforce.p4java.impl.mapbased.rpc.packet.RpcPacketFieldType
public enum RpcPacketFieldType
Defines the various Perforce RPC packet field types and associated methods. Mainly used to determine whether to treat a packet field value as a string or bytes; most fields are strings, but things like worKRec or depotRec fields are binary pass-throughs from the point of view of the client (they're state keys and / or state records used by the server).
Enum Constant Summary | |
---|---|
BINARY
Field is bytes, not interpreted. |
|
NONE
Field type is unknown. |
|
TEXT
Field is text; possibly UTF-8 encoded. |
Method Summary | |
---|---|
static RpcPacketFieldType |
getFieldType(String fieldName)
Return the field type associated with the passed-in name, if any. |
static RpcPacketFieldType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static RpcPacketFieldType[] |
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 |
---|
public static final RpcPacketFieldType NONE
public static final RpcPacketFieldType TEXT
public static final RpcPacketFieldType BINARY
Method Detail |
---|
public static RpcPacketFieldType[] values()
for (RpcPacketFieldType c : RpcPacketFieldType.values()) System.out.println(c);
public static RpcPacketFieldType valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic static RpcPacketFieldType getFieldType(String fieldName)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |