/** * Returns the extension description, specifying whether it is required, and whether it is * repeatable. * * @param required whether it is required * @param repeatable whether it is repeatable * @return extension description */ public static ExtensionDescription getDefaultDescription(boolean required, boolean repeatable) { ExtensionDescription desc = ExtensionDescription.getDefaultDescription(SendAclNotificationsProperty.class); desc.setRequired(required); desc.setRepeatable(repeatable); return desc; }
/** * Returns the extension description, specifying whether it is required, and whether it is * repeatable. * * @param required whether it is required * @param repeatable whether it is repeatable * @return extension description */ public static ExtensionDescription getDefaultDescription(boolean required, boolean repeatable) { ExtensionDescription desc = ExtensionDescription.getDefaultDescription(SitesLink.class); desc.setRequired(required); desc.setRepeatable(repeatable); return desc; }
/** * Describes the tag to an {@link com.google.gdata.data.ExtensionProfile}. * * @param repeat if true, the description will be repeatable (MediaContent can be repeated when * inside MediaGroup, but not when inside BaseEntry.) */ public static ExtensionDescription getDefaultDescription(boolean repeat) { ExtensionDescription retval = ExtensionDescription.getDefaultDescription(MediaContent.class); retval.setRepeatable(repeat); return retval; }
/** * Returns the extension description, specifying whether it is required, and whether it is * repeatable. * * @param required whether it is required * @param repeatable whether it is repeatable * @return extension description */ public static ExtensionDescription getDefaultDescription(boolean required, boolean repeatable) { ExtensionDescription desc = ExtensionDescription.getDefaultDescription(FormattedAddress.class); desc.setRequired(required); desc.setRepeatable(repeatable); return desc; }