本文整理汇总了Java中org.eclipse.che.dto.shared.JsonFieldName类的典型用法代码示例。如果您正苦于以下问题:Java JsonFieldName类的具体用法?Java JsonFieldName怎么用?Java JsonFieldName使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
JsonFieldName类属于org.eclipse.che.dto.shared包,在下文中一共展示了JsonFieldName类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getJsonFieldName
import org.eclipse.che.dto.shared.JsonFieldName; //导入依赖的package包/类
/**
* Get the name of the JSON field that corresponds to the given getter method in a DTO-annotated
* type.
*/
protected String getJsonFieldName(Method getterMethod) {
// First, check if a custom field name is defined for the getter
JsonFieldName fieldNameAnn = getterMethod.getAnnotation(JsonFieldName.class);
if (fieldNameAnn != null) {
String customFieldName = fieldNameAnn.value();
if (customFieldName != null && !customFieldName.isEmpty()) {
return customFieldName;
}
}
// If no custom name is given for the field, deduce it from the camel notation
return getFieldNameFromGetterName(getterMethod.getName());
}
示例2: getPullRequest
import org.eclipse.che.dto.shared.JsonFieldName; //导入依赖的package包/类
@JsonFieldName(PULL_REQUEST_FIELD)
PullRequest getPullRequest();
示例3: getId
import org.eclipse.che.dto.shared.JsonFieldName; //导入依赖的package包/类
@JsonFieldName("$id")
String getId();
示例4: getTheName
import org.eclipse.che.dto.shared.JsonFieldName; //导入依赖的package包/类
@JsonFieldName(THENAME_FIELD)
String getTheName();
示例5: getTheDefault
import org.eclipse.che.dto.shared.JsonFieldName; //导入依赖的package包/类
@JsonFieldName(THEDEFAULT_FIELD)
String getTheDefault();
示例6: getHtmlUrl
import org.eclipse.che.dto.shared.JsonFieldName; //导入依赖的package包/类
/**
* Get HTML URL.
*
* @return {@link String} HTML URL
*/
@JsonFieldName(HTML_URL_FIELD)
String getHtmlUrl();
示例7: getFullName
import org.eclipse.che.dto.shared.JsonFieldName; //导入依赖的package包/类
/**
* Get full name.
*
* @return {@link String} fullName
*/
@JsonFieldName(FULL_NAME_FIELD)
String getFullName();
示例8: getCreatedAt
import org.eclipse.che.dto.shared.JsonFieldName; //导入依赖的package包/类
/**
* Get created at.
*
* @return {@link String} createdAt
*/
@JsonFieldName(CREATED_AT_FIELD)
String getCreatedAt();
示例9: getHtmlUrl
import org.eclipse.che.dto.shared.JsonFieldName; //导入依赖的package包/类
/**
* Get pull request html URL.
*
* @return {@link String} html_url
*/
@JsonFieldName(HTML_URL_FIELD)
String getHtmlUrl();
示例10: getEtag
import org.eclipse.che.dto.shared.JsonFieldName; //导入依赖的package包/类
/**
* Get document etag.
*
* @return {@link String} etag
*/
@JsonFieldName(VSTS_DOCUMENT_ETAG)
String getEtag();
示例11: getAreaPath
import org.eclipse.che.dto.shared.JsonFieldName; //导入依赖的package包/类
/**
* Get resource System.AreaPath field.
*
* @return {@link String} areaPath
*/
@JsonFieldName(SYSTEM_AREA_PATH_FIELD)
String getAreaPath();
示例12: getTeamProject
import org.eclipse.che.dto.shared.JsonFieldName; //导入依赖的package包/类
/**
* Get resource System.TeamProject field.
*
* @return {@link String} teamProject
*/
@JsonFieldName(SYSTEM_TEAM_PROJECT_FIELD)
String getTeamProject();
示例13: getIterationPath
import org.eclipse.che.dto.shared.JsonFieldName; //导入依赖的package包/类
/**
* Get resource System.IterationPath field.
*
* @return {@link String} iterationPath
*/
@JsonFieldName(SYSTEM_ITERATION_PATH_FIELD)
String getIterationPath();
示例14: getWorkItemType
import org.eclipse.che.dto.shared.JsonFieldName; //导入依赖的package包/类
/**
* Get resource System.WorkItemType field.
*
* @return {@link String} workItemType
*/
@JsonFieldName(SYSTEM_WORK_ITEM_TYPE_FIELD)
String getWorkItemType();
示例15: getState
import org.eclipse.che.dto.shared.JsonFieldName; //导入依赖的package包/类
/**
* Get resource System.State field.
*
* @return {@link String} state
*/
@JsonFieldName(SYSTEM_STATE_FIELD)
String getState();