cn.signit.sdk.type
枚举 TransferType

java.lang.Object
  继承者 java.lang.Enum<TransferType>
      继承者 cn.signit.sdk.type.TransferType
所有已实现的接口:
Serializable, Comparable<TransferType>

public enum TransferType
extends Enum<TransferType>

文件传输类型.

从以下版本开始:
2.0.0
作者:
zhd

枚举常量摘要
BASE64
           
FILE_WSID
           
UNKNOWN
           
URL
           
 
方法摘要
 int getCode()
           
 String getDescription()
           
static TransferType parse(int code)
          根据枚举code值解析得到对应的枚举类型.
static TransferType parse(String name)
          根据枚举名称解析枚举类型(不区分大小写).
 void setCode(int code)
           
 void setDescription(String description)
           
static TransferType valueOf(String name)
          返回带有指定名称的该类型的枚举常量。
static TransferType[] values()
          按照声明该枚举类型的常量的顺序,返回 包含这些常量的数组。
 
从类 java.lang.Enum 继承的方法
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
从类 java.lang.Object 继承的方法
getClass, notify, notifyAll, wait, wait, wait
 

枚举常量详细信息

UNKNOWN

public static final TransferType UNKNOWN

BASE64

public static final TransferType BASE64

URL

public static final TransferType URL

FILE_WSID

public static final TransferType FILE_WSID
方法详细信息

values

public static TransferType[] values()
按照声明该枚举类型的常量的顺序,返回 包含这些常量的数组。该方法可用于迭代 常量,如下所示:
for (TransferType c : TransferType.values())
    System.out.println(c);


valueOf

public static TransferType valueOf(String name)
返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格。)

参数:
name - 要返回的枚举常量的名称。
返回:
返回带有指定名称的枚举常量
抛出:
如果该枚举类型没有带有指定名称的常量, - 则抛出 IllegalArgumentException

parse

public static TransferType parse(int code)
根据枚举code值解析得到对应的枚举类型.

参数:
code - 枚举状态码
返回:
对应的枚举类型
从以下版本开始:
1.0.0

parse

public static TransferType parse(String name)
根据枚举名称解析枚举类型(不区分大小写).

参数:
name - 枚举名称
返回:
对应的枚举类型
从以下版本开始:
1.0.0

getCode

public int getCode()

setCode

public void setCode(int code)

getDescription

public String getDescription()

setDescription

public void setDescription(String description)


Copyright © 2020. All rights reserved.