/** * Returns the Sidewiki entry source. * * @return Sidewiki entry source */ public Source getEntrySource() { return getExtension(Source.class); }
/** * Returns whether it has the Entry ratings given by all users and by the user * issued the request. * * @return whether it has the Entry ratings given by all users and by the user * issued the request */ public boolean hasRating() { return hasExtension(Rating.class); }
/** * Sets the Sidewiki entry source. * * @param entrySource Sidewiki entry source or <code>null</code> to reset */ public void setEntrySource(Source entrySource) { if (entrySource == null) { removeExtension(Source.class); } else { setExtension(entrySource); } }
/** * Default mutable constructor. */ public SidewikiEntry() { super(); setKind("sidewiki#sidewikiEntry"); }
/** * Default mutable constructor. */ public SidewikiEntry() { super(); setKind("sidewiki#sidewikiEntry"); }
/** * Sets the Sidewiki author id. * * @param resourceId Sidewiki author id or <code>null</code> to reset */ public void setResourceId(ResourceId resourceId) { if (resourceId == null) { removeExtension(ResourceId.class); } else { setExtension(resourceId); } }
/** * Returns whether it has the Entry ratings given by all users and by the user * issued the request. * * @return whether it has the Entry ratings given by all users and by the user * issued the request */ public boolean hasRating() { return hasExtension(Rating.class); }
/** * Returns the Entry ratings given by all users and by the user issued the * request. * * @return Entry ratings given by all users and by the user issued the request */ public Rating getRating() { return getExtension(Rating.class); }
/** * Sets the Sidewiki author id. * * @param resourceId Sidewiki author id or <code>null</code> to reset */ public void setResourceId(ResourceId resourceId) { if (resourceId == null) { removeExtension(ResourceId.class); } else { setExtension(resourceId); } }
/** * Returns whether it has the usefulness of entry. * * @return whether it has the usefulness of entry */ public boolean hasUsefulness() { return hasExtension(Usefulness.class); }
/** * Returns the Sidewiki entry source. * * @return Sidewiki entry source */ public Source getEntrySource() { return getExtension(Source.class); }
/** * Sets the usefulness of entry. * * @param usefulness usefulness of entry or <code>null</code> to reset */ public void setUsefulness(Usefulness usefulness) { if (usefulness == null) { removeExtension(Usefulness.class); } else { setExtension(usefulness); } }
/** * Returns whether it has the Sidewiki entry source. * * @return whether it has the Sidewiki entry source */ public boolean hasEntrySource() { return hasExtension(Source.class); }
/** * Returns the usefulness of entry. * * @return usefulness of entry */ public Usefulness getUsefulness() { return getExtension(Usefulness.class); }
/** * Sets the usefulness of entry. * * @param usefulness usefulness of entry or <code>null</code> to reset */ public void setUsefulness(Usefulness usefulness) { if (usefulness == null) { removeExtension(Usefulness.class); } else { setExtension(usefulness); } }
/** * Returns whether it has the Sidewiki entry source. * * @return whether it has the Sidewiki entry source */ public boolean hasEntrySource() { return hasExtension(Source.class); }
/** * Returns the Entry ratings given by all users and by the user issued the * request. * * @return Entry ratings given by all users and by the user issued the request */ public Rating getRating() { return getExtension(Rating.class); }
/** * Sets the Entry ratings given by all users and by the user issued the * request. * * @param rating Entry ratings given by all users and by the user issued the * request or <code>null</code> to reset */ public void setRating(Rating rating) { if (rating == null) { removeExtension(Rating.class); } else { setExtension(rating); } }
/** * Returns whether it has the usefulness of entry. * * @return whether it has the usefulness of entry */ public boolean hasUsefulness() { return hasExtension(Usefulness.class); }
/** * Returns the Sidewiki author id. * * @return Sidewiki author id */ public ResourceId getResourceId() { return getExtension(ResourceId.class); }