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

  • Running tasks concurrently on multiple threads
  • setContentView (Activity)
  • getApplicationContext (Context)
  • getSupportFragmentManager (FragmentActivity)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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