/** * 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 suggested extension description. */ public static ExtensionDescription getDefaultDescription() { ExtensionDescription desc = new ExtensionDescription(); desc.setExtensionClass(BatchId.class); desc.setNamespace(Namespaces.batchNs); desc.setLocalName("id"); desc.setRepeatable(false); return desc; }
/** Returns the suggested extension description. */ public static ExtensionDescription getDefaultDescription() { ExtensionDescription desc = new ExtensionDescription(); desc.setExtensionClass(Email.class); desc.setNamespace(Namespaces.gNs); desc.setLocalName("email"); desc.setRepeatable(true); return desc; }
/** Returns the suggested extension description with configurable repeatability. */ public static ExtensionDescription getDefaultDescription(boolean repeatable) { ExtensionDescription desc = new ExtensionDescription(); desc.setExtensionClass(GeoPt.class); desc.setNamespace(Namespaces.gNs); desc.setLocalName("geoPt"); desc.setRepeatable(repeatable); return desc; }
static { EXTENSION_DESC.setExtensionClass(Rfc822Msg.class); EXTENSION_DESC.setNamespace(Namespaces.APPS_NAMESPACE); EXTENSION_DESC.setLocalName(EXTENSION_LOCAL_NAME); EXTENSION_DESC.setRepeatable(false); }
/** * 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(SitesLink.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(FormattedAddress.class); desc.setRequired(required); desc.setRepeatable(repeatable); return desc; }