Пример #1
0
 /** 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. */
 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 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);
 }