org.sonar.wsclient.unmarshallers
Class AbstractUnmarshaller<M extends Model>

java.lang.Object
  extended by org.sonar.wsclient.unmarshallers.AbstractUnmarshaller<M>
All Implemented Interfaces:
Unmarshaller<M>
Direct Known Subclasses:
DependencyTreeUnmarshaller, DependencyUnmarshaller, EventUnmarshaller, FavouriteUnmarshaller, ManualMeasureUnmarshaller, MetricUnmarshaller, PluginUnmarshaller, ProfileUnmarshaller, PropertyUnmarshaller, ResourceSearchUnmarshaller, ResourceUnmarshaller, RuleUnmarshaller, SourceUnmarshaller, TimeMachineUnmarshaller, ViolationUnmarshaller

public abstract class AbstractUnmarshaller<M extends Model>
extends Object
implements Unmarshaller<M>


Constructor Summary
AbstractUnmarshaller()
           
 
Method Summary
protected abstract  M parse(Object elt)
           
 M toModel(String json)
           
 List<M> toModels(String json)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractUnmarshaller

public AbstractUnmarshaller()
Method Detail

toModel

public final M toModel(String json)
Specified by:
toModel in interface Unmarshaller<M extends Model>

toModels

public final List<M> toModels(String json)
Specified by:
toModels in interface Unmarshaller<M extends Model>

parse

protected abstract M parse(Object elt)


Copyright © 2009-2014 SonarSource. All Rights Reserved.