com.atlassian.bamboo.rest.model.adapters
Class PlanKeyRestKeyAdapter

java.lang.Object
  extended by javax.xml.bind.annotation.adapters.XmlAdapter<RestKey,PlanKey>
      extended by com.atlassian.bamboo.rest.model.adapters.PlanKeyRestKeyAdapter

public class PlanKeyRestKeyAdapter
extends XmlAdapter<RestKey,PlanKey>

Used to convert a PlanKey into a RestKey. This differs from the PlanKeyAdapter as it produces a raw string. In this case we need the outputted json to mimic the object so we actually need "myObject.key.key" to get the string out as opposed to "myObject.key" which the PlanKeyAdapter provides.


Constructor Summary
PlanKeyRestKeyAdapter()
           
 
Method Summary
 RestKey marshal(PlanKey key)
           
 PlanKey unmarshal(RestKey restKey)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlanKeyRestKeyAdapter

public PlanKeyRestKeyAdapter()
Method Detail

unmarshal

public PlanKey unmarshal(RestKey restKey)
                  throws Exception
Specified by:
unmarshal in class XmlAdapter<RestKey,PlanKey>
Throws:
Exception

marshal

public RestKey marshal(PlanKey key)
                throws Exception
Specified by:
marshal in class XmlAdapter<RestKey,PlanKey>
Throws:
Exception


Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.