com.thoughtworks.xstream.mapper.Mapper.attributeForAlias()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(6.3k)|赞(0)|评价(0)|浏览(204)

本文整理了Java中com.thoughtworks.xstream.mapper.Mapper.attributeForAlias()方法的一些代码示例,展示了Mapper.attributeForAlias()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Mapper.attributeForAlias()方法的具体详情如下:
包路径:com.thoughtworks.xstream.mapper.Mapper
类名称:Mapper
方法名:attributeForAlias

Mapper.attributeForAlias介绍

[英]Returns the field name for an aliased attribute.
[中]

代码示例

代码示例来源:origin: jenkinsci/jenkins

public String attributeForAlias(String alias) {
  return delegate.attributeForAlias(alias);
}

代码示例来源:origin: jenkinsci/jenkins

/**
 * @deprecated since 1.3, use combination of {@link #realMember(Class, String)} and {@link #getConverterFromItemType(String, Class, Class)}
 */
@Deprecated
public String attributeForAlias(Class definedIn, String alias) {
  return delegate.attributeForAlias(definedIn, alias);
}

代码示例来源:origin: com.thoughtworks.xstream/xstream

/**
 * @deprecated As of 1.3, use combination of {@link #realMember(Class, String)} and
 *             {@link #getConverterFromItemType(String, Class, Class)}
 */
public String attributeForAlias(Class definedIn, String alias) {
  return attributeForAliasMapper.attributeForAlias(definedIn, alias);
}

代码示例来源:origin: com.thoughtworks.xstream/xstream

public String attributeForAlias(String alias) {
  return attributeForAliasMapper.attributeForAlias(alias);
}

代码示例来源:origin: jenkinsci/jenkins

String attrName = mapper.attributeForAlias(attrAlias);
Class classDefiningField = determineWhichClassDefinesField(reader);
boolean fieldExistsInClass = fieldDefinedInClass(result, attrName);

代码示例来源:origin: com.thoughtworks.xstream/xstream

.realMember(resultType, mapper.attributeForAlias(attrAlias));
Field field = reflectionProvider.getFieldOrNull(resultType, attrName);
if (field != null && shouldUnmarshalField(field)) {

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.xstream-java8

/**
 * @deprecated As of 1.3, use combination of {@link #realMember(Class, String)} and
 *             {@link #getConverterFromItemType(String, Class, Class)}
 */
public String attributeForAlias(Class definedIn, String alias) {
  return attributeForAliasMapper.attributeForAlias(definedIn, alias);
}

代码示例来源:origin: com.haulmont.thirdparty/xstream

/**
 * @deprecated As of 1.3, use combination of {@link #realMember(Class, String)} and {@link #getConverterFromItemType(String, Class, Class)} 
 */
public String attributeForAlias(Class definedIn, String alias) {
  return wrapped.attributeForAlias(definedIn, alias);
}

代码示例来源:origin: org.jvnet.hudson/xstream

/**
 * @deprecated since 1.3, use combination of {@link #realMember(Class, String)} and {@link #getConverterFromItemType(String, Class, Class)} 
 */
public String attributeForAlias(Class definedIn, String alias) {
  return wrapped.attributeForAlias(definedIn, alias);
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.xstream

/**
 * @deprecated As of 1.3, use combination of {@link #realMember(Class, String)} and
 *             {@link #getConverterFromItemType(String, Class, Class)}
 */
public String attributeForAlias(Class definedIn, String alias) {
  return attributeForAliasMapper.attributeForAlias(definedIn, alias);
}

代码示例来源:origin: org.sonatype.nexus.xstream/xstream

/**
 * @deprecated As of 1.3, use combination of {@link #realMember(Class, String)} and {@link #getConverterFromItemType(String, Class, Class)} 
 */
public String attributeForAlias(Class definedIn, String alias) {
  return wrapped.attributeForAlias(definedIn, alias);
}

代码示例来源:origin: x-stream/xstream

@Override
public String attributeForAlias(final String alias) {
  return attributeForAliasMapper.attributeForAlias(alias);
}

代码示例来源:origin: ovea-deprecated/jetty-session-redis

/**
 * @deprecated since 1.3, use combination of {@link #realMember(Class, String)} and {@link #getConverterFromItemType(String, Class, Class)} 
 */
public String attributeForAlias(Class definedIn, String alias) {
  return wrapped.attributeForAlias(definedIn, alias);
}

代码示例来源:origin: apache/servicemix-bundles

/**
 * @deprecated As of 1.3, use combination of {@link #realMember(Class, String)} and
 *             {@link #getConverterFromItemType(String, Class, Class)}
 */
public String attributeForAlias(Class definedIn, String alias) {
  return attributeForAliasMapper.attributeForAlias(definedIn, alias);
}

代码示例来源:origin: org.jenkins-ci.main/jenkins-core

/**
 * @deprecated since 1.3, use combination of {@link #realMember(Class, String)} and {@link #getConverterFromItemType(String, Class, Class)}
 */
@Deprecated
public String attributeForAlias(Class definedIn, String alias) {
  return delegate.attributeForAlias(definedIn, alias);
}

代码示例来源:origin: com.lmco.shindig/shindig-common

private Class<?> determineType(HierarchicalStreamReader reader,
   Object result, String fieldName) {
  final String classAttributeName = mapper.attributeForAlias("class");
  String classAttribute = reader.getAttribute(classAttributeName);
  if (classAttribute != null) {
   return mapper.realClass(classAttribute);
  } else {
   return mapper.defaultImplementationOf(beanProvider.getPropertyType(
     result, fieldName));
  }
 }
}

代码示例来源:origin: apache/shindig

private Class<?> determineType(HierarchicalStreamReader reader,
   Object result, String fieldName) {
  final String classAttributeName = mapper.attributeForAlias("class");
  String classAttribute = reader.getAttribute(classAttributeName);
  if (classAttribute != null) {
   return mapper.realClass(classAttribute);
  } else {
   return mapper.defaultImplementationOf(beanProvider.getPropertyType(
     result, fieldName));
  }
 }
}

代码示例来源:origin: org.gatein.shindig/shindig-common

private Class<?> determineType(HierarchicalStreamReader reader,
   Object result, String fieldName) {
  final String classAttributeName = mapper.attributeForAlias("class");
  String classAttribute = reader.getAttribute(classAttributeName);
  if (classAttribute != null) {
   return mapper.realClass(classAttribute);
  } else {
   return mapper.defaultImplementationOf(beanProvider.getPropertyType(
     result, fieldName));
  }
 }
}

代码示例来源:origin: org.apache.shindig/shindig-common

private Class<?> determineType(HierarchicalStreamReader reader,
   Object result, String fieldName) {
  final String classAttributeName = mapper.attributeForAlias("class");
  String classAttribute = reader.getAttribute(classAttributeName);
  if (classAttribute != null) {
   return mapper.realClass(classAttribute);
  } else {
   return mapper.defaultImplementationOf(beanProvider.getPropertyType(
     result, fieldName));
  }
 }
}

代码示例来源:origin: org.wso2.org.apache.shindig/shindig-common

private Class<?> determineType(HierarchicalStreamReader reader,
   Object result, String fieldName) {
  final String classAttributeName = mapper.attributeForAlias("class");
  String classAttribute = reader.getAttribute(classAttributeName);
  if (classAttribute != null) {
   return mapper.realClass(classAttribute);
  } else {
   return mapper.defaultImplementationOf(beanProvider.getPropertyType(
     result, fieldName));
  }
 }
}

相关文章