com.atlassian.bamboo.plugins.hg.bitbucket.api.rest.entity.node
Class BitbucketNodeEntity
java.lang.Object
com.atlassian.bamboo.plugins.hg.bitbucket.api.rest.entity.node.BitbucketNodeEntity
public class BitbucketNodeEntity
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BitbucketNodeEntity
public BitbucketNodeEntity()
from
@NotNull
public static BitbucketNodeEntity from(@NotNull
com.opensymphony.webwork.dispatcher.json.JSONObject json)
- Convert plain JSON object to BitbucketNodeEntity.
TODO temporary solution until I find out to fully unmarshal Bitbucket's JSON REST reponse or https://bitbucket.org/site/master/issue/4219 will be fixed
Bitbucket's JSON response for some repositories can contain "null" instead of branch name:
"branchName" : {
"propertyA" : ...,
"propertyA" : ...,
"branch" : null,
}
while for majority it is:
"branchName" : {
"propertyA" : ...,
"propertyA" : ...,
"branch" : "branchName",
}
- Parameters:
json
- JSON object from Bitbucket's REST response
- Returns:
- BitbucketNodeEntity
orderingByBranchName
public static com.google.common.collect.Ordering<BitbucketNodeEntity> orderingByBranchName()
getBranch
public java.lang.String getBranch()
setBranch
public void setBranch(java.lang.String branch)
Copyright © 2012 Atlassian. All Rights Reserved.