com.atlassian.bamboo.rest.model.adapters
Class PlanKeyRestKeyAdapter
java.lang.Object
javax.xml.bind.annotation.adapters.XmlAdapter<RestKey,PlanKey>
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PlanKeyRestKeyAdapter
public PlanKeyRestKeyAdapter()
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.