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

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

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

Mapper.getLocalConverter介绍

暂无

代码示例

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

public Converter getLocalConverter(Class definedIn, String fieldName) {
  return delegate.getLocalConverter(definedIn, fieldName);
}

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

public Converter getLocalConverter(Class definedIn, String fieldName) {
  return getLocalConverterMapper.getLocalConverter(definedIn, fieldName);
}

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

protected void marshallField(final MarshallingContext context, Object newObj, Field field) {
  Converter converter = mapper.getLocalConverter(field.getDeclaringClass(), field.getName());
  context.convertAnother(newObj, converter);
}

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

protected Object unmarshalField(final UnmarshallingContext context, final Object result, Class type, Field field) {
  Converter converter = mapper.getLocalConverter(field.getDeclaringClass(), field.getName());
  return context.convertAnother(result, type, converter);
}

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

protected Object unmarshallField(final UnmarshallingContext context, final Object result,
  Class type, Field field) {
  return context.convertAnother(
    result, type, mapper.getLocalConverter(field.getDeclaringClass(), field.getName()));
}

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

protected void marshallField(final MarshallingContext context, Object newObj, Field field) {
  context.convertAnother(
    newObj, mapper.getLocalConverter(field.getDeclaringClass(), field.getName()));
}

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

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

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

: (ConverterMatcher)mapper.getLocalConverter(definedIn, fieldName);
if (converter == null) {
  converter = lookup.lookupConverterForType(type);

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

@Override
public Converter getLocalConverter(final Class<?> definedIn, final String fieldName) {
  return getLocalConverterMapper.getLocalConverter(definedIn, fieldName);
}

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

public Converter getLocalConverter(Class definedIn, String fieldName) {
  return wrapped.getLocalConverter(definedIn, fieldName);
}

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

protected Object unmarshallField(final UnmarshallingContext context, final Object result, final Class<?> type,
    final Field field) {
  return context.convertAnother(result, type, mapper.getLocalConverter(field.getDeclaringClass(), field
    .getName()));
}

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

protected Object unmarshallField(final UnmarshallingContext context, final Object result,
  Class type, Field field) {
  return context.convertAnother(
    result, type, mapper.getLocalConverter(field.getDeclaringClass(), field.getName()));
}

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

protected Object unmarshallField(final UnmarshallingContext context, final Object result,
  Class type, Field field) {
  return context.convertAnother(
    result, type, mapper.getLocalConverter(field.getDeclaringClass(), field.getName()));
}

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

protected Object unmarshallField(final UnmarshallingContext context, final Object result,
  Class type, Field field) {
  return context.convertAnother(
    result, type, mapper.getLocalConverter(field.getDeclaringClass(), field.getName()));
}

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

protected Object unmarshalField(final UnmarshallingContext context, final Object result, Class type, Field field) {
  Converter converter = mapper.getLocalConverter(field.getDeclaringClass(), field.getName());
  return context.convertAnother(result, type, converter);
}

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

protected void marshallField(final MarshallingContext context, Object newObj, Field field) {
  Converter converter = mapper.getLocalConverter(field.getDeclaringClass(), field.getName());
  context.convertAnother(newObj, converter);
}

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

protected Object unmarshallField(final UnmarshallingContext context, final Object result,
  Class type, Field field) {
  return context.convertAnother(
    result, type, mapper.getLocalConverter(field.getDeclaringClass(), field.getName()));
}

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

protected void marshallField(final MarshallingContext context, Object newObj, Field field) {
  context.convertAnother(
    newObj, mapper.getLocalConverter(field.getDeclaringClass(), field.getName()));
}

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

protected void marshallField(final MarshallingContext context, Object newObj, Field field) {
  context.convertAnother(
    newObj, mapper.getLocalConverter(field.getDeclaringClass(), field.getName()));
}

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

protected void marshallField(final MarshallingContext context, Object newObj, Field field) {
  context.convertAnother(
    newObj, mapper.getLocalConverter(field.getDeclaringClass(), field.getName()));
}

相关文章