Tabnine Logo
GuiceBeanConverter$1.writeField
Code IndexAdd Tabnine to your IDE (free)

How to use
writeField
method
in
org.apache.shindig.protocol.conversion.xstream.GuiceBeanConverter$1

Best Java code snippets using org.apache.shindig.protocol.conversion.xstream.GuiceBeanConverter$1.writeField (Showing top 5 results out of 1,395)

origin: org.wso2.org.apache.shindig/shindig-common

public void visit(String propertyName, Class<?> fieldType,
  Class<?> definedIn, Object newObj) {
 if (newObj != null) {
  Mapper.ImplicitCollectionMapping mapping = mapper
    .getImplicitCollectionDefForFieldName(source.getClass(),
      propertyName);
  if (mapping != null) {
   if (mapping.getItemFieldName() != null) {
    Collection<?> list = (Collection<?>) newObj;
    for (Object obj : list) {
     writeField(propertyName, mapping.getItemFieldName(),
       mapping.getItemType(), definedIn, obj);
    }
   } else {
    context.convertAnother(newObj);
   }
  } else {
   writeField(propertyName, propertyName, fieldType, definedIn,
     newObj);
  }
 }
}
origin: com.lmco.shindig/shindig-common

public void visit(String propertyName, Class<?> fieldType,
  Class<?> definedIn, Object newObj) {
 if (newObj != null) {
  Mapper.ImplicitCollectionMapping mapping = mapper
    .getImplicitCollectionDefForFieldName(source.getClass(),
      propertyName);
  if (mapping != null) {
   if (mapping.getItemFieldName() != null) {
    Collection<?> list = (Collection<?>) newObj;
    for (Object obj : list) {
     writeField(propertyName, mapping.getItemFieldName(),
       mapping.getItemType(), definedIn, obj);
    }
   } else {
    context.convertAnother(newObj);
   }
  } else {
   writeField(propertyName, propertyName, fieldType, definedIn,
     newObj);
  }
 }
}
origin: org.apache.shindig/shindig-common

public void visit(String propertyName, Class<?> fieldType,
  Class<?> definedIn, Object newObj) {
 if (newObj != null) {
  Mapper.ImplicitCollectionMapping mapping = mapper
    .getImplicitCollectionDefForFieldName(source.getClass(),
      propertyName);
  if (mapping != null) {
   if (mapping.getItemFieldName() != null) {
    Collection<?> list = (Collection<?>) newObj;
    for (Object obj : list) {
     writeField(propertyName, mapping.getItemFieldName(),
       mapping.getItemType(), definedIn, obj);
    }
   } else {
    context.convertAnother(newObj);
   }
  } else {
   writeField(propertyName, propertyName, fieldType, definedIn,
     newObj);
  }
 }
}
origin: apache/shindig

public void visit(String propertyName, Class<?> fieldType,
  Class<?> definedIn, Object newObj) {
 if (newObj != null) {
  Mapper.ImplicitCollectionMapping mapping = mapper
    .getImplicitCollectionDefForFieldName(source.getClass(),
      propertyName);
  if (mapping != null) {
   if (mapping.getItemFieldName() != null) {
    Collection<?> list = (Collection<?>) newObj;
    for (Object obj : list) {
     writeField(propertyName, mapping.getItemFieldName(),
       mapping.getItemType(), definedIn, obj);
    }
   } else {
    context.convertAnother(newObj);
   }
  } else {
   writeField(propertyName, propertyName, fieldType, definedIn,
     newObj);
  }
 }
}
origin: org.gatein.shindig/shindig-common

public void visit(String propertyName, Class<?> fieldType,
  Class<?> definedIn, Object newObj) {
 if (newObj != null) {
  Mapper.ImplicitCollectionMapping mapping = mapper
    .getImplicitCollectionDefForFieldName(source.getClass(),
      propertyName);
  if (mapping != null) {
   if (mapping.getItemFieldName() != null) {
    Collection<?> list = (Collection<?>) newObj;
    for (Object obj : list) {
     writeField(propertyName, mapping.getItemFieldName(),
       mapping.getItemType(), definedIn, obj);
    }
   } else {
    context.convertAnother(newObj);
   }
  } else {
   writeField(propertyName, propertyName, fieldType, definedIn,
     newObj);
  }
 }
}
org.apache.shindig.protocol.conversion.xstreamGuiceBeanConverter$1writeField

Popular methods of GuiceBeanConverter$1

    Popular in Java

    • Reading from database using SQL prepared statement
    • getResourceAsStream (ClassLoader)
    • getSupportFragmentManager (FragmentActivity)
    • runOnUiThread (Activity)
    • VirtualMachine (com.sun.tools.attach)
      A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
    • FileReader (java.io)
      A specialized Reader that reads from a file in the file system. All read requests made by calling me
    • ResultSet (java.sql)
      An interface for an object which represents a database table entry, returned as the result of the qu
    • CountDownLatch (java.util.concurrent)
      A synchronization aid that allows one or more threads to wait until a set of operations being perfor
    • SSLHandshakeException (javax.net.ssl)
      The exception that is thrown when a handshake could not be completed successfully.
    • StringUtils (org.apache.commons.lang)
      Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
    • 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