Tabnine Logo
GuiceBeanProvider.writeProperty
Code IndexAdd Tabnine 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)

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

  • Updating database using SQL prepared statement
  • scheduleAtFixedRate (Timer)
  • startActivity (Activity)
  • getExternalFilesDir (Context)
  • Menu (java.awt)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Top plugins for WebStorm
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