Codota Logo
InterfaceClassMapper
Code IndexAdd Codota to your IDE (free)

How to use
InterfaceClassMapper
in
org.apache.shindig.protocol.conversion.xstream

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
StringBuilder s =
  • Codota Iconnew StringBuilder()
  • Codota Iconnew StringBuilder(32)
  • Codota IconString str;new StringBuilder(str)
  • Smart code suggestions by Codota
}
origin: com.lmco.shindig/shindig-social-api

/**
 * {@inheritDoc}
 *
 * @see org.apache.shindig.protocol.conversion.BeanXStreamConverter#convertToString(java.lang.Object)
 */
@Override
public String convertToString(Object obj) {
 writerStack.reset();
 AtomFeed af = new AtomFeed(obj);
 XStreamConfiguration.ConverterConfig cc = converterMap.get(XStreamConfiguration.ConverterSet.DEFAULT);
 cc.mapper.setBaseObject(af); // thread safe method
 return cc.xstream.toXML(af);
}
origin: com.lmco.shindig/shindig-social-api

InterfaceClassMapper fmapper = new InterfaceClassMapper(writerStack,
  emapper,
  elementMappingList.get(c),
origin: org.apache.shindig/shindig-social-api

InterfaceClassMapper fmapper = new InterfaceClassMapper(writerStack,
  emapper,
  elementMappingList.get(c),
origin: org.apache.shindig/shindig-social-api

 /**
  * {@inheritDoc}
  *
  * @see org.apache.shindig.protocol.conversion.BeanXStreamConverter#convertToString(java.lang.Object)
  */
 @Override
 public String convertToString(Object obj) {
  writerStack.reset();
  AtomFeed af = new AtomFeed(obj);
  XStreamConfiguration.ConverterConfig cc = converterMap.get(XStreamConfiguration.ConverterSet.DEFAULT);
  cc.mapper.setBaseObject(af); // thread safe method

  return cc.xstream.toXML(af);
 }
}
origin: org.wso2.org.apache.shindig/shindig-social-api

InterfaceClassMapper fmapper = new InterfaceClassMapper(writerStack,
  emapper,
  elementMappingList.get(c),
origin: org.wso2.org.apache.shindig/shindig-social-api

 /**
  * {@inheritDoc}
  *
  * @see org.apache.shindig.protocol.conversion.BeanXStreamConverter#convertToString(java.lang.Object)
  */
 @Override
 public String convertToString(Object obj) {
  writerStack.reset();
  AtomFeed af = new AtomFeed(obj);
  XStreamConfiguration.ConverterConfig cc = converterMap.get(XStreamConfiguration.ConverterSet.DEFAULT);
  cc.mapper.setBaseObject(af); // thread safe method

  return cc.xstream.toXML(af);
 }
}
origin: org.wso2.org.apache.shindig/shindig-common

 XStreamConfiguration.ConverterConfig cc = converterMap
   .get(XStreamConfiguration.ConverterSet.COLLECTION);
 cc.mapper.setBaseObject(obj); // thread safe method
 String result = cc.xstream.toXML(obj);
 if (m.size() == 1) {
  Object s = m.values().iterator().next();
  cc.mapper.setBaseObject(s); // thread safe method
  String result = cc.xstream.toXML(s);
 XStreamConfiguration.ConverterConfig cc = converterMap
   .get(XStreamConfiguration.ConverterSet.MAP);
 cc.mapper.setBaseObject(obj); // thread safe method
 String result = cc.xstream.toXML(obj);
  .get(XStreamConfiguration.ConverterSet.DEFAULT);
cc.mapper.setBaseObject(obj); // thread safe method
String result = cc.xstream.toXML(obj);
origin: com.lmco.shindig/shindig-common

 if (m.size() == 1) {
  Object s = m.values().iterator().next();
  cc.mapper.setBaseObject(s); // thread safe method
  String result = cc.xstream.toXML(s);
 XStreamConfiguration.ConverterConfig cc = converterMap
   .get(XStreamConfiguration.ConverterSet.COLLECTION);
 cc.mapper.setBaseObject(obj); // thread safe method
 String result = cc.xstream.toXML(obj);
 XStreamConfiguration.ConverterConfig cc = converterMap
   .get(XStreamConfiguration.ConverterSet.MAP);
 cc.mapper.setBaseObject(obj); // thread safe method
 String result = cc.xstream.toXML(obj);
  .get(XStreamConfiguration.ConverterSet.DEFAULT);
cc.mapper.setBaseObject(obj); // thread safe method
String result = cc.xstream.toXML(obj);
origin: org.gatein.shindig/shindig-common

 if (m.size() == 1) {
  Object s = m.values().iterator().next();
  cc.mapper.setBaseObject(s); // thread safe method
  String result = cc.xstream.toXML(s);
 XStreamConfiguration.ConverterConfig cc = converterMap
   .get(XStreamConfiguration.ConverterSet.COLLECTION);
 cc.mapper.setBaseObject(obj); // thread safe method
 String result = cc.xstream.toXML(obj);
 XStreamConfiguration.ConverterConfig cc = converterMap
   .get(XStreamConfiguration.ConverterSet.MAP);
 cc.mapper.setBaseObject(obj); // thread safe method
 String result = cc.xstream.toXML(obj);
  .get(XStreamConfiguration.ConverterSet.DEFAULT);
cc.mapper.setBaseObject(obj); // thread safe method
String result = cc.xstream.toXML(obj);
origin: org.apache.shindig/shindig-common

 XStreamConfiguration.ConverterConfig cc = converterMap
   .get(XStreamConfiguration.ConverterSet.COLLECTION);
 cc.mapper.setBaseObject(obj); // thread safe method
 String result = cc.xstream.toXML(obj);
 if (m.size() == 1) {
  Object s = m.values().iterator().next();
  cc.mapper.setBaseObject(s); // thread safe method
  String result = cc.xstream.toXML(s);
 XStreamConfiguration.ConverterConfig cc = converterMap
   .get(XStreamConfiguration.ConverterSet.MAP);
 cc.mapper.setBaseObject(obj); // thread safe method
 String result = cc.xstream.toXML(obj);
  .get(XStreamConfiguration.ConverterSet.DEFAULT);
cc.mapper.setBaseObject(obj); // thread safe method
String result = cc.xstream.toXML(obj);
origin: apache/shindig

 XStreamConfiguration.ConverterConfig cc = converterMap
   .get(XStreamConfiguration.ConverterSet.COLLECTION);
 cc.mapper.setBaseObject(obj); // thread safe method
 String result = cc.xstream.toXML(obj);
 if (m.size() == 1) {
  Object s = m.values().iterator().next();
  cc.mapper.setBaseObject(s); // thread safe method
  String result = cc.xstream.toXML(s);
 XStreamConfiguration.ConverterConfig cc = converterMap
   .get(XStreamConfiguration.ConverterSet.MAP);
 cc.mapper.setBaseObject(obj); // thread safe method
 String result = cc.xstream.toXML(obj);
  .get(XStreamConfiguration.ConverterSet.DEFAULT);
cc.mapper.setBaseObject(obj); // thread safe method
String result = cc.xstream.toXML(obj);
org.apache.shindig.protocol.conversion.xstreamInterfaceClassMapper

Javadoc

The InterfaceClassMapper provides the central mapping of the XStream bean converter. It is used by XStream to determine the element names and classes being mapped. This is driven by a number of read only data structures that are injected on creation. The resolution of classes follow the inheritance model. To map all collections to an element we would use the Collection.class as the reference class and then ArrayList and Set would both be mapped to the same element.

Most used methods

  • setBaseObject
    Set the base object at the start of a serialization, this ensures that the base element type is appr
  • <init>
    Create an Interface Class Mapper with a configuration.

Popular in Java

  • Making http post requests using okhttp
  • notifyDataSetChanged (ArrayAdapter)
  • onCreateOptionsMenu (Activity)
  • getSystemService (Context)
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • Path (java.nio.file)
  • Properties (java.util)
    The Properties class represents a persistent set of properties. The Properties can be saved to a st
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Logger (org.slf4j)
    The main user interface to logging. It is expected that logging takes place through concrete impleme
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.This exception may include information for locating the er
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