/** * Declare the extensions of the feeds for the Project Hosting GData API. */ private void declareExtensions() { new IssueCommentsFeed().declareExtensions(extProfile); new IssuesFeed().declareExtensions(extProfile); new ProjectsFeed().declareExtensions(extProfile); }
/** * Declare the extensions of the feeds for the Project Hosting Issue Tracker * Data API. */ private void declareExtensions() { new IssueCommentsFeed().declareExtensions(extProfile); new IssuesFeed().declareExtensions(extProfile); }
/** * Sets the username. * * @param username username or <code>null</code> to reset */ public void setUsername(Username username) { if (username == null) { removeExtension(Username.class); } else { setExtension(username); } }
/** * Sets the username. * * @param username username or <code>null</code> to reset */ public void setUsername(Username username) { if (username == null) { removeExtension(Username.class); } else { setExtension(username); } }
/** * Sets the id. * * @param id id or <code>null</code> to reset */ public void setId(Id id) { if (id == null) { removeExtension(Id.class); } else { setExtension(id); } }
/** * Returns the merged into. * * @return merged into */ public MergedInto getMergedInto() { return getExtension(MergedInto.class); }
/** * Sets the value. * * @param value value or <code>null</code> to reset */ public void setValue(Integer value) { throwExceptionIfImmutable(); this.value = value; }
/** * Returns the link that provides the URI of the full feed (without any query * parameters). * * @return Link that provides the URI of the full feed (without any query * parameters) or {@code null} for none. */ public Link getFeedLink() { return getLink(Link.Rel.FEED, Link.Type.ATOM); }
/** * Constructor (mutable or immutable). * * @param value immutable value or <code>null</code> for a mutable value */ public CcUpdate(String value) { super(ProjectHostingNamespace.ISSUES_NS, XML_NAME, null, value); setRequired(false); }
/** * Returns whether it has the username. * * @return whether it has the username */ public boolean hasUsername() { return hasExtension(Username.class); }
/** * Sets the count. * * @param count count or <code>null</code> to reset */ public void setCount(Integer count) { throwExceptionIfImmutable(); this.count = count; }
/** * Sets the id. * * @param id id or <code>null</code> to reset */ public void setId(Id id) { if (id == null) { removeExtension(Id.class); } else { setExtension(id); } }
/** * Returns whether it has the uri. * * @return whether it has the uri */ public boolean hasUri() { return hasExtension(Uri.class); }
/** * Returns the list of CCed users. * * @return list of CCed users */ public List<Cc> getCcs() { return getRepeatingExtension(Cc.class); }
/** * Returns whether it has the stars. * * @return whether it has the stars */ public boolean hasStars() { return hasExtension(Stars.class); }
/** * Returns the project. * * @return project */ public Project getProject() { return getExtension(Project.class); }
/** * Returns whether it has the id. * * @return whether it has the id */ public boolean hasId() { return hasExtension(Id.class); }
/** * Returns the project labels. * * @return project labels */ public List<ProjectLabel> getProjectLabels() { return getRepeatingExtension(ProjectLabel.class); }
/** * Sets the project. * * @param project project or <code>null</code> to reset */ public void setProject(Project project) { if (project == null) { removeExtension(Project.class); } else { setExtension(project); } }
/** * Returns the stars. * * @return stars */ public Stars getStars() { return getExtension(Stars.class); }