本文整理了Java中com.thoughtworks.xstream.mapper.Mapper.attributeForAlias()
方法的一些代码示例,展示了Mapper.attributeForAlias()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Mapper.attributeForAlias()
方法的具体详情如下:
包路径:com.thoughtworks.xstream.mapper.Mapper
类名称: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));
}
}
}
内容来源于网络,如有侵权,请联系作者删除!