congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
XStreamImplicit.itemFieldName
Code IndexAdd Tabnine to your IDE (free)

How to use
itemFieldName
method
in
com.thoughtworks.xstream.annotations.XStreamImplicit

Best Java code snippets using com.thoughtworks.xstream.annotations.XStreamImplicit.itemFieldName (Showing top 9 results out of 315)

origin: com.thoughtworks.xstream/xstream

final String itemFieldName = implicitAnnotation.itemFieldName();
final String keyFieldName = implicitAnnotation.keyFieldName();
boolean isMap = Map.class.isAssignableFrom(field.getType());
origin: ovea-deprecated/jetty-session-redis

private void processImplicitAnnotation(final Field field) {
  final XStreamImplicit implicitAnnotation = field.getAnnotation(XStreamImplicit.class);
  if (implicitAnnotation != null) {
    if (implicitCollectionMapper == null) {
      throw new InitializationException("No "
        + ImplicitCollectionMapper.class.getName()
        + " available");
    }
    final String fieldName = field.getName();
    final String itemFieldName = implicitAnnotation.itemFieldName();
    Class itemType = null;
    final Type genericType = field.getGenericType();
    if (genericType instanceof ParameterizedType) {
      final Type typeArgument = ((ParameterizedType)genericType)
        .getActualTypeArguments()[0];
      itemType = getClass(typeArgument);
    }
    if (itemFieldName != null && !"".equals(itemFieldName)) {
      implicitCollectionMapper.add(
        field.getDeclaringClass(), fieldName, itemFieldName, itemType);
    } else {
      implicitCollectionMapper.add(field.getDeclaringClass(), fieldName, itemType);
    }
  }
}
origin: org.jvnet.hudson/xstream

private void processImplicitAnnotation(final Field field) {
  final XStreamImplicit implicitAnnotation = field.getAnnotation(XStreamImplicit.class);
  if (implicitAnnotation != null) {
    if (implicitCollectionMapper == null) {
      throw new InitializationException("No "
        + ImplicitCollectionMapper.class.getName()
        + " available");
    }
    final String fieldName = field.getName();
    final String itemFieldName = implicitAnnotation.itemFieldName();
    Class itemType = null;
    final Type genericType = field.getGenericType();
    if (genericType instanceof ParameterizedType) {
      final Type typeArgument = ((ParameterizedType)genericType)
        .getActualTypeArguments()[0];
      itemType = getClass(typeArgument);
    }
    if (itemFieldName != null && !"".equals(itemFieldName)) {
      implicitCollectionMapper.add(
        field.getDeclaringClass(), fieldName, itemFieldName, itemType);
    } else {
      implicitCollectionMapper.add(field.getDeclaringClass(), fieldName, itemType);
    }
  }
}
origin: x-stream/xstream

final String itemFieldName = implicitAnnotation.itemFieldName();
final String keyFieldName = implicitAnnotation.keyFieldName();
final boolean isMap = Map.class.isAssignableFrom(field.getType());
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.xstream-java8

final String itemFieldName = implicitAnnotation.itemFieldName();
final String keyFieldName = implicitAnnotation.keyFieldName();
boolean isMap = Map.class.isAssignableFrom(field.getType());
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.xstream

final String itemFieldName = implicitAnnotation.itemFieldName();
final String keyFieldName = implicitAnnotation.keyFieldName();
boolean isMap = Map.class.isAssignableFrom(field.getType());
origin: com.haulmont.thirdparty/xstream

final String itemFieldName = implicitAnnotation.itemFieldName();
final String keyFieldName = implicitAnnotation.keyFieldName();
boolean isMap = Map.class.isAssignableFrom(field.getType());
origin: org.sonatype.nexus.xstream/xstream

final String itemFieldName = implicitAnnotation.itemFieldName();
final String keyFieldName = implicitAnnotation.keyFieldName();
boolean isMap = Map.class.isAssignableFrom(field.getType());
origin: apache/servicemix-bundles

final String itemFieldName = implicitAnnotation.itemFieldName();
final String keyFieldName = implicitAnnotation.keyFieldName();
boolean isMap = Map.class.isAssignableFrom(field.getType());
com.thoughtworks.xstream.annotationsXStreamImplicititemFieldName

Popular methods of XStreamImplicit

  • <init>
  • keyFieldName

Popular in Java

  • Making http post requests using okhttp
  • setScale (BigDecimal)
  • getSystemService (Context)
  • putExtra (Intent)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now