/** * Returns the user rating given by the user issued the request. * * @return user rating given by the user issued the request */ public Rating getRating() { return getExtension(Rating.class); }
/** * Returns whether it has the Sidewiki author id. * * @return whether it has the Sidewiki author id */ public boolean hasResourceId() { return hasExtension(ResourceId.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); } }
@Override public void declareExtensions(ExtensionProfile extProfile) { if (extProfile.isDeclared(SidewikiUserEntry.class)) { return; } super.declareExtensions(extProfile); extProfile.declare(SidewikiUserEntry.class, SidewikiAuthor.getDefaultDescription(false, true)); new SidewikiAuthor().declareExtensions(extProfile); }
@Override public void declareExtensions(ExtensionProfile extProfile) { if (extProfile.isDeclared(SidewikiUserEntry.class)) { return; } super.declareExtensions(extProfile); extProfile.declare(SidewikiUserEntry.class, SidewikiAuthor.getDefaultDescription(false, true)); new SidewikiAuthor().declareExtensions(extProfile); }
/** * Sets the user portrait thumbnail url. * * @param thumbnail user portrait thumbnail url or <code>null</code> to reset */ public void setThumbnail(SidewikiThumbnail thumbnail) { if (thumbnail == null) { removeExtension(SidewikiThumbnail.class); } else { setExtension(thumbnail); } }
@Override public void declareExtensions(ExtensionProfile extProfile) { if (extProfile.isDeclared(SidewikiEntry.class)) { return; } super.declareExtensions(extProfile); extProfile.declare(SidewikiEntry.class, SidewikiAuthor.getDefaultDescription(false, true)); new SidewikiAuthor().declareExtensions(extProfile); extProfile.declare(SidewikiEntry.class, Source.class); extProfile.declare(SidewikiEntry.class, new ExtensionDescription(Rating.class, new XmlNamespace("gd", "http://schemas.google.com/g/2005"), "rating", false, false, false)); extProfile.declare(SidewikiEntry.class, ResourceId.getDefaultDescription(true, false)); extProfile.declare(SidewikiEntry.class, Usefulness.class); }
/** * Returns whether it has the Sidewiki author description. * * @return whether it has the Sidewiki author description */ public boolean hasDescription() { return hasExtension(SidewikiUserDescription.class); }
/** * Returns the user portrait thumbnail url. * * @return user portrait thumbnail url */ public SidewikiThumbnail getThumbnail() { return getExtension(SidewikiThumbnail.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); } }
@Override public void declareExtensions(ExtensionProfile extProfile) { if (extProfile.isDeclared(SidewikiEntry.class)) { return; } super.declareExtensions(extProfile); extProfile.declare(SidewikiEntry.class, SidewikiAuthor.getDefaultDescription(false, true)); new SidewikiAuthor().declareExtensions(extProfile); extProfile.declare(SidewikiEntry.class, Source.class); extProfile.declare(SidewikiEntry.class, new ExtensionDescription(Rating.class, new XmlNamespace("gd", "http://schemas.google.com/g/2005"), "rating", false, false, false)); extProfile.declare(SidewikiEntry.class, ResourceId.getDefaultDescription(true, false)); extProfile.declare(SidewikiEntry.class, Usefulness.class); }
/** * Returns whether it has the entries number. * * @return whether it has the entries number */ public boolean hasNumEntries() { return hasExtension(EntriesNumber.class); }
/** * Returns the user portrait thumbnail url. * * @return user portrait thumbnail url */ public SidewikiThumbnail getThumbnail() { return getExtension(SidewikiThumbnail.class); }
/** * Sets the entries number. * * @param numEntries entries number or <code>null</code> to reset */ public void setNumEntries(EntriesNumber numEntries) { if (numEntries == null) { removeExtension(EntriesNumber.class); } else { setExtension(numEntries); } }
/** * Returns whether it has the user rating given by the user issued the * request. * * @return whether it has the user rating given by the user issued the request */ public boolean hasRating() { return hasExtension(Rating.class); }
/** * Returns the user rating given by the user issued the request. * * @return user rating given by the user issued the request */ public Rating getRating() { return getExtension(Rating.class); }
/** * Sets the user rating given by the user issued the request. * * @param rating user rating given 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 Sidewiki author description. * * @return whether it has the Sidewiki author description */ public boolean hasDescription() { return hasExtension(SidewikiUserDescription.class); }
/** * Returns the Sidewiki author id. * * @return Sidewiki author id */ public ResourceId getResourceId() { return getExtension(ResourceId.class); }
/** * Sets the entries number. * * @param numEntries entries number or <code>null</code> to reset */ public void setNumEntries(EntriesNumber numEntries) { if (numEntries == null) { removeExtension(EntriesNumber.class); } else { setExtension(numEntries); } }