Codota Logo
GuiceBeanProvider.writeProperty
Code IndexAdd Codota to your IDE (free)

How to use
writeProperty
method
in
org.apache.shindig.protocol.conversion.xstream.GuiceBeanProvider

Best Java code snippets using org.apache.shindig.protocol.conversion.xstream.GuiceBeanProvider.writeProperty (Showing top 5 results out of 315)

  • Common ways to obtain GuiceBeanProvider
private void myMethod () {
GuiceBeanProvider g =
  • Codota IconInjector injector;new GuiceBeanProvider(injector)
  • Smart code suggestions by Codota
}
origin: org.gatein.shindig/shindig-common

public Object unmarshal(final HierarchicalStreamReader reader,
  final UnmarshallingContext context) {
 final Object result = instantiateNewInstance(context);
 while (reader.hasMoreChildren()) {
  reader.moveDown();
  String propertyName = mapper.realMember(result.getClass(), reader
    .getNodeName());
  boolean propertyExistsInClass = beanProvider.propertyDefinedInClass(
    propertyName, result.getClass());
  if (propertyExistsInClass) {
   Class<?> type = determineType(reader, result, propertyName);
   Object value = context.convertAnother(result, type);
   beanProvider.writeProperty(result, propertyName, value);
  } else if (mapper.shouldSerializeMember(result.getClass(), propertyName)) {
   throw new ConversionException("Property '" + propertyName
     + "' not defined in class " + result.getClass().getName());
  }
  reader.moveUp();
 }
 return result;
}
origin: com.lmco.shindig/shindig-common

public Object unmarshal(final HierarchicalStreamReader reader,
  final UnmarshallingContext context) {
 final Object result = instantiateNewInstance(context);
 while (reader.hasMoreChildren()) {
  reader.moveDown();
  String propertyName = mapper.realMember(result.getClass(), reader
    .getNodeName());
  boolean propertyExistsInClass = beanProvider.propertyDefinedInClass(
    propertyName, result.getClass());
  if (propertyExistsInClass) {
   Class<?> type = determineType(reader, result, propertyName);
   Object value = context.convertAnother(result, type);
   beanProvider.writeProperty(result, propertyName, value);
  } else if (mapper.shouldSerializeMember(result.getClass(), propertyName)) {
   throw new ConversionException("Property '" + propertyName
     + "' not defined in class " + result.getClass().getName());
  }
  reader.moveUp();
 }
 return result;
}
origin: org.apache.shindig/shindig-common

public Object unmarshal(final HierarchicalStreamReader reader,
  final UnmarshallingContext context) {
 final Object result = instantiateNewInstance(context);
 while (reader.hasMoreChildren()) {
  reader.moveDown();
  String propertyName = mapper.realMember(result.getClass(), reader
    .getNodeName());
  boolean propertyExistsInClass = beanProvider.propertyDefinedInClass(
    propertyName, result.getClass());
  if (propertyExistsInClass) {
   Class<?> type = determineType(reader, result, propertyName);
   Object value = context.convertAnother(result, type);
   beanProvider.writeProperty(result, propertyName, value);
  } else if (mapper.shouldSerializeMember(result.getClass(), propertyName)) {
   throw new ConversionException("Property '" + propertyName
     + "' not defined in class " + result.getClass().getName());
  }
  reader.moveUp();
 }
 return result;
}
origin: org.wso2.org.apache.shindig/shindig-common

public Object unmarshal(final HierarchicalStreamReader reader,
  final UnmarshallingContext context) {
 final Object result = instantiateNewInstance(context);
 while (reader.hasMoreChildren()) {
  reader.moveDown();
  String propertyName = mapper.realMember(result.getClass(), reader
    .getNodeName());
  boolean propertyExistsInClass = beanProvider.propertyDefinedInClass(
    propertyName, result.getClass());
  if (propertyExistsInClass) {
   Class<?> type = determineType(reader, result, propertyName);
   Object value = context.convertAnother(result, type);
   beanProvider.writeProperty(result, propertyName, value);
  } else if (mapper.shouldSerializeMember(result.getClass(), propertyName)) {
   throw new ConversionException("Property '" + propertyName
     + "' not defined in class " + result.getClass().getName());
  }
  reader.moveUp();
 }
 return result;
}
origin: apache/shindig

public Object unmarshal(final HierarchicalStreamReader reader,
  final UnmarshallingContext context) {
 final Object result = instantiateNewInstance(context);
 while (reader.hasMoreChildren()) {
  reader.moveDown();
  String propertyName = mapper.realMember(result.getClass(), reader
    .getNodeName());
  boolean propertyExistsInClass = beanProvider.propertyDefinedInClass(
    propertyName, result.getClass());
  if (propertyExistsInClass) {
   Class<?> type = determineType(reader, result, propertyName);
   Object value = context.convertAnother(result, type);
   beanProvider.writeProperty(result, propertyName, value);
  } else if (mapper.shouldSerializeMember(result.getClass(), propertyName)) {
   throw new ConversionException("Property '" + propertyName
     + "' not defined in class " + result.getClass().getName());
  }
  reader.moveUp();
 }
 return result;
}
org.apache.shindig.protocol.conversion.xstreamGuiceBeanProviderwriteProperty

Popular methods of GuiceBeanProvider

  • <init>
  • canStreamProperty
  • getProperty
  • getPropertyType
  • getSerializableProperties
  • newInstance
  • propertyDefinedInClass
  • visitSerializableProperties
  • getNameMap

Popular in Java

  • Running tasks concurrently on multiple threads
  • onRequestPermissionsResult (Fragment)
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • getExternalFilesDir (Context)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now