org.eclipse.egit.github.core
Class Repository

java.lang.Object
  extended by org.eclipse.egit.github.core.Repository
All Implemented Interfaces:
Serializable, IRepositoryIdProvider

public class Repository
extends Object
implements IRepositoryIdProvider, Serializable

Repository model class

See Also:
Serialized Form

Constructor Summary
Repository()
           
 
Method Summary
 String generateId()
          Generate id for this repository
 String getCloneUrl()
           
 Date getCreatedAt()
           
 String getDescription()
           
 int getForks()
           
 String getGitUrl()
           
 String getHomepage()
           
 String getHtmlUrl()
           
 long getId()
           
 String getLanguage()
           
 String getMasterBranch()
           
 String getMirrorUrl()
           
 String getName()
           
 int getOpenIssues()
           
 User getOwner()
           
 Repository getParent()
           
 Date getPushedAt()
           
 int getSize()
           
 Repository getSource()
           
 String getSshUrl()
           
 String getSvnUrl()
           
 Date getUpdatedAt()
           
 String getUrl()
           
 int getWatchers()
           
 boolean isFork()
           
 boolean isHasDownloads()
           
 boolean isHasIssues()
           
 boolean isHasWiki()
           
 boolean isPrivate()
           
 Repository setCloneUrl(String cloneUrl)
           
 Repository setCreatedAt(Date createdAt)
           
 Repository setDescription(String description)
           
 Repository setFork(boolean fork)
           
 Repository setForks(int forks)
           
 Repository setGitUrl(String gitUrl)
           
 Repository setHasDownloads(boolean hasDownloads)
           
 Repository setHasIssues(boolean hasIssues)
           
 Repository setHasWiki(boolean hasWiki)
           
 Repository setHomepage(String homepage)
           
 Repository setHtmlUrl(String htmlUrl)
           
 Repository setId(long id)
           
 Repository setLanguage(String language)
           
 Repository setMasterBranch(String masterBranch)
           
 Repository setMirrorUrl(String mirrorUrl)
           
 Repository setName(String name)
           
 Repository setOpenIssues(int openIssues)
           
 Repository setOwner(User owner)
           
 Repository setParent(Repository parent)
           
 Repository setPrivate(boolean isPrivate)
           
 Repository setPushedAt(Date pushedAt)
           
 Repository setSize(int size)
           
 Repository setSource(Repository source)
           
 Repository setSshUrl(String sshUrl)
           
 Repository setSvnUrl(String svnUrl)
           
 Repository setUpdatedAt(Date updatedAt)
           
 Repository setUrl(String url)
           
 Repository setWatchers(int watchers)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Repository

public Repository()
Method Detail

isFork

public boolean isFork()
Returns:
fork

setFork

public Repository setFork(boolean fork)
Parameters:
fork -
Returns:
this repository

isHasDownloads

public boolean isHasDownloads()
Returns:
hasDownloads

setHasDownloads

public Repository setHasDownloads(boolean hasDownloads)
Parameters:
hasDownloads -
Returns:
this repository

isHasIssues

public boolean isHasIssues()
Returns:
hasIssues

setHasIssues

public Repository setHasIssues(boolean hasIssues)
Parameters:
hasIssues -
Returns:
this repository

isHasWiki

public boolean isHasWiki()
Returns:
hasWiki

setHasWiki

public Repository setHasWiki(boolean hasWiki)
Parameters:
hasWiki -
Returns:
this repository

isPrivate

public boolean isPrivate()
Returns:
isPrivate

setPrivate

public Repository setPrivate(boolean isPrivate)
Parameters:
isPrivate -
Returns:
this repository

getCreatedAt

public Date getCreatedAt()
Returns:
createdAt

setCreatedAt

public Repository setCreatedAt(Date createdAt)
Parameters:
createdAt -
Returns:
this rdateepository

getPushedAt

public Date getPushedAt()
Returns:
pushedAt

setPushedAt

public Repository setPushedAt(Date pushedAt)
Parameters:
pushedAt -
Returns:
this repository

getForks

public int getForks()
Returns:
forks

setForks

public Repository setForks(int forks)
Parameters:
forks -
Returns:
this repository

getOpenIssues

public int getOpenIssues()
Returns:
openIssues

setOpenIssues

public Repository setOpenIssues(int openIssues)
Parameters:
openIssues -
Returns:
this repository

getSize

public int getSize()
Returns:
size

setSize

public Repository setSize(int size)
Parameters:
size -
Returns:
this repository

getWatchers

public int getWatchers()
Returns:
watchers

setWatchers

public Repository setWatchers(int watchers)
Parameters:
watchers -
Returns:
this repository

getParent

public Repository getParent()
Returns:
parent

setParent

public Repository setParent(Repository parent)
Parameters:
parent -
Returns:
this repository

getSource

public Repository getSource()
Returns:
source

setSource

public Repository setSource(Repository source)
Parameters:
source -
Returns:
this repository

getCloneUrl

public String getCloneUrl()
Returns:
cloneUrl

setCloneUrl

public Repository setCloneUrl(String cloneUrl)
Parameters:
cloneUrl -
Returns:
this repository

getDescription

public String getDescription()
Returns:
description

setDescription

public Repository setDescription(String description)
Parameters:
description -
Returns:
this repository

getHomepage

public String getHomepage()
Returns:
homepage

setHomepage

public Repository setHomepage(String homepage)
Parameters:
homepage -
Returns:
this repository

getGitUrl

public String getGitUrl()
Returns:
gitUrl

setGitUrl

public Repository setGitUrl(String gitUrl)
Parameters:
gitUrl -
Returns:
this repository

getHtmlUrl

public String getHtmlUrl()
Returns:
htmlUrl

setHtmlUrl

public Repository setHtmlUrl(String htmlUrl)
Parameters:
htmlUrl -
Returns:
this repository

getLanguage

public String getLanguage()
Returns:
language

setLanguage

public Repository setLanguage(String language)
Parameters:
language -
Returns:
this repository

getMasterBranch

public String getMasterBranch()
Returns:
masterBranch

setMasterBranch

public Repository setMasterBranch(String masterBranch)
Parameters:
masterBranch -
Returns:
this repository

getMirrorUrl

public String getMirrorUrl()
Returns:
mirrorUrl

setMirrorUrl

public Repository setMirrorUrl(String mirrorUrl)
Parameters:
mirrorUrl -
Returns:
this repository

getName

public String getName()
Returns:
name

setName

public Repository setName(String name)
Parameters:
name -
Returns:
this repository

getSshUrl

public String getSshUrl()
Returns:
sshUrl

setSshUrl

public Repository setSshUrl(String sshUrl)
Parameters:
sshUrl -
Returns:
this repository

getSvnUrl

public String getSvnUrl()
Returns:
svnUrl

setSvnUrl

public Repository setSvnUrl(String svnUrl)
Parameters:
svnUrl -
Returns:
this repository

getUrl

public String getUrl()
Returns:
url

setUrl

public Repository setUrl(String url)
Parameters:
url -
Returns:
this repository

getOwner

public User getOwner()
Returns:
owner

setOwner

public Repository setOwner(User owner)
Parameters:
owner -
Returns:
this repository

getUpdatedAt

public Date getUpdatedAt()
Returns:
updatedAt

setUpdatedAt

public Repository setUpdatedAt(Date updatedAt)
Parameters:
updatedAt -
Returns:
this repository

getId

public long getId()
Returns:
id

setId

public Repository setId(long id)
Parameters:
id -
Returns:
this repository

generateId

public String generateId()
Generate id for this repository

Specified by:
generateId in interface IRepositoryIdProvider
Returns:
repository id
See Also:
IRepositoryIdProvider.generateId()


Copyright © 2012. All Rights Reserved.