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

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

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

Mapper.getConverterFromItemType介绍

暂无

代码示例

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

public SingleValueConverter getConverterFromItemType(String fieldName, Class type, Class definedIn) {
  return delegate.getConverterFromItemType(fieldName, type, definedIn);
}

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

/**
 * @deprecated since 1.3, use {@link #getConverterFromItemType(String, Class, Class)}
 */
@Deprecated
public SingleValueConverter getConverterFromItemType(String fieldName, Class type) {
  return delegate.getConverterFromItemType(fieldName, type);
}

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

/**
 * @deprecated since 1.3, use {@link #getConverterFromItemType(String, Class, Class)}
 */
@Deprecated
public SingleValueConverter getConverterFromItemType(Class type) {
  return delegate.getConverterFromItemType(type);
}

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

/**
 * @deprecated As of 1.3, use {@link #getConverterFromItemType(String, Class, Class)}
 */
public SingleValueConverter getConverterFromItemType(Class type) {
  return getConverterFromItemTypeMapper.getConverterFromItemType(type);
}

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

/**
 * @deprecated As of 1.3, use {@link #getConverterFromItemType(String, Class, Class)}
 */
public SingleValueConverter getConverterFromItemType(String fieldName, Class type) {
  return getConverterFromItemTypeMapper.getConverterFromItemType(fieldName, type);
}

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

public SingleValueConverter getConverterFromItemType(String fieldName, Class type, Class definedIn) {
  return getConverterFromItemTypeMapper.getConverterFromItemType(fieldName, type, definedIn);
}

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

public void visit(String fieldName, Class type, Class definedIn, Object value) {
    SingleValueConverter converter = mapper.getConverterFromItemType(fieldName, type, definedIn);
    if (converter == null) converter = mapper.getConverterFromItemType(fieldName, type);
    if (converter == null) converter = mapper.getConverterFromItemType(type);
    if (converter != null) {
      if (value != null) {
        final String str = converter.toString(value);
        if (str != null) {
          writer.addAttribute(mapper.aliasForAttribute(fieldName), str);
        }
      }
      seenAsAttributes.add(fieldName);
    }
  }
});

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

private SingleValueConverter getSingleValueConverter(Class type, String part) {
  SingleValueConverter conv = UseAttributeForEnumMapper.isEnum(type) ? enumMapper
    .getConverterFromItemType(null, type, null) : mapper().getConverterFromItemType(
    null, type, null);
  if (conv == null) {
    Converter converter = lookup.lookupConverterForType(type);
    if (converter instanceof SingleValueConverter) {
      conv = (SingleValueConverter)converter;
    } else {
      throw new ConversionException("No SingleValueConverter for " + part +  " available");
    }
  }
  return conv;
}

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

SingleValueConverter converter = mapper.getConverterFromItemType(
  fieldName, type, definedIn);
if (converter != null) {

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

Class type = field.getType();
if (converter == null) {
  converter = mapper.getConverterFromItemType(type);

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

final Class declaringClass = field.getDeclaringClass();
ConverterMatcher converter = UseAttributeForEnumMapper.isEnum(type)
  ? (ConverterMatcher)enumMapper.getConverterFromItemType(null, type, null)
  : (ConverterMatcher)mapper.getLocalConverter(declaringClass, fieldName);
if (converter == null) {

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

? (ConverterMatcher)enumMapper.getConverterFromItemType(null, type, null)
  : (ConverterMatcher)mapper.getLocalConverter(definedIn, fieldName);
if (converter == null) {

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

@Override
public SingleValueConverter getConverterFromItemType(final String fieldName, final Class<?> type,
    final Class<?> definedIn) {
  return getConverterFromItemTypeMapper.getConverterFromItemType(fieldName, type, definedIn);
}

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

/**
 * @deprecated since 1.3, use {@link #getConverterFromItemType(String, Class, Class)}
 */
public SingleValueConverter getConverterFromItemType(String fieldName, Class type) {
  return wrapped.getConverterFromItemType(fieldName, type);
}

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

/**
 * @deprecated As of 1.3, use {@link #getConverterFromItemType(String, Class, Class)}
 */
public SingleValueConverter getConverterFromItemType(String fieldName, Class type) {
  return wrapped.getConverterFromItemType(fieldName, type);
}

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

/**
 * @deprecated since 1.3, use {@link #getConverterFromItemType(String, Class, Class)}
 */
public SingleValueConverter getConverterFromItemType(String fieldName, Class type) {
  return wrapped.getConverterFromItemType(fieldName, type);
}

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

/**
 * @deprecated As of 1.3, use {@link #getConverterFromItemType(String, Class, Class)}
 */
public SingleValueConverter getConverterFromItemType(Class type) {
  return getConverterFromItemTypeMapper.getConverterFromItemType(type);
}

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

/**
 * @deprecated As of 1.3, use {@link #getConverterFromItemType(String, Class, Class)}
 */
public SingleValueConverter getConverterFromItemType(String fieldName, Class type) {
  return getConverterFromItemTypeMapper.getConverterFromItemType(fieldName, type);
}

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

/**
 * @deprecated since 1.3, use {@link #getConverterFromItemType(String, Class, Class)}
 */
@Deprecated
public SingleValueConverter getConverterFromItemType(String fieldName, Class type) {
  return delegate.getConverterFromItemType(fieldName, type);
}

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

/**
 * @deprecated since 1.3, use {@link #getConverterFromItemType(String, Class, Class)}
 */
@Deprecated
public SingleValueConverter getConverterFromItemType(Class type) {
  return delegate.getConverterFromItemType(type);
}

相关文章