gpt4 book ai didi

com.google.gdata.util.common.xml.XmlNamespace.()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-19 18:32:40 27 4
gpt4 key购买 nike

本文整理了Java中com.google.gdata.util.common.xml.XmlNamespace.<init>()方法的一些代码示例,展示了XmlNamespace.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XmlNamespace.<init>()方法的具体详情如下:
包路径:com.google.gdata.util.common.xml.XmlNamespace
类名称:XmlNamespace
方法名:<init>

XmlNamespace.<init>介绍

[英]Constructs a new namespace with the specified namespace URI and no defined prefix alias.
[中]使用指定的命名空间URI和未定义的前缀别名构造新命名空间。

代码示例

代码示例来源:origin: com.google.gdata/gdata-core-1.0

/** SAX callback. */
@Override
public void startPrefixMapping(String alias, String uri) {
 Stack<NamespaceDecl> mapping = namespaceMap.get(alias);
 if (mapping == null) {
  mapping = new Stack<NamespaceDecl>();
  namespaceMap.put(alias, mapping);
 }
 XmlNamespace ns = new XmlNamespace(alias, uri);
 NamespaceDecl nsDecl = new NamespaceDecl(ns);
 mapping.push(nsDecl);
 elementNamespaces.add(ns);
}

代码示例来源:origin: com.google.gdata/gdata-core-1.0

/** SAX callback. */
@Override
public void startPrefixMapping(String alias, String uri) {
 Stack<NamespaceDecl> mapping = namespaceMap.get(alias);
 if (mapping == null) {
  mapping = new Stack<NamespaceDecl>();
  namespaceMap.put(alias, mapping);
 }
 XmlNamespace ns = new XmlNamespace(alias, uri);
 NamespaceDecl nsDecl = new NamespaceDecl(ns);
 mapping.push(nsDecl);
 elementNamespaces.add(ns);
}

代码示例来源:origin: com.mulesoft.google/google-api-gdata

@Override
public void declareExtensions(ExtensionProfile extProfile) {
 if (extProfile.isDeclared(TmsElement.class)) {
  return;
 }
 extProfile.declare(TmsElement.class, new ExtensionDescription(Link.class,
   new XmlNamespace("atom", "http://www.w3.org/2005/Atom"), "link", true,
   true, false));
}

代码示例来源:origin: com.mulesoft.google/google-api-gdata

@Override
public void declareExtensions(ExtensionProfile extProfile) {
 if (extProfile.isDeclared(GlossariesElement.class)) {
  return;
 }
 extProfile.declare(GlossariesElement.class,
   new ExtensionDescription(Link.class, new XmlNamespace("atom",
   "http://www.w3.org/2005/Atom"), "link", true, true, false));
}

代码示例来源:origin: com.google.gdata/gdata-java-client

@Override
public void declareExtensions(ExtensionProfile extProfile) {
 if (extProfile.isDeclared(TmsElement.class)) {
  return;
 }
 extProfile.declare(TmsElement.class, new ExtensionDescription(Link.class,
   new XmlNamespace("atom", "http://www.w3.org/2005/Atom"), "link", true,
   true, false));
}

代码示例来源:origin: com.mulesoft.google/google-api-gdata

@Override
public void declareExtensions(ExtensionProfile extProfile) {
 if (extProfile.isDeclared(AdditionalRoleSet.class)) {
  return;
 }
 extProfile.declare(AdditionalRoleSet.class,
   new ExtensionDescription(AdditionalRole.class, new XmlNamespace("gAcl",
   "http://schemas.google.com/acl/2007"), "additionalRole", false, true,
   false));
}

代码示例来源:origin: com.mulesoft.google/google-api-gdata

@Override
public void declareExtensions(ExtensionProfile extProfile) {
 if (extProfile.isDeclared(Event.class)) {
  return;
 }
 extProfile.declare(Event.class, new ExtensionDescription(When.class,
   new XmlNamespace("gd", "http://schemas.google.com/g/2005"), "when",
   true, false, false));
 new When().declareExtensions(extProfile);
}

代码示例来源:origin: com.google.gdata/gdata-contacts-3.0

@Override
public void declareExtensions(ExtensionProfile extProfile) {
 if (extProfile.isDeclared(Event.class)) {
  return;
 }
 extProfile.declare(Event.class, new ExtensionDescription(When.class,
   new XmlNamespace("gd", "http://schemas.google.com/g/2005"), "when",
   true, false, false));
 new When().declareExtensions(extProfile);
}

代码示例来源:origin: com.google.gdata/gdata-calendar-2.0

@Override
public void declareExtensions(ExtensionProfile extProfile) {
 if (extProfile.isDeclared(CalendarEventFeed.class)) {
  return;
 }
 super.declareExtensions(extProfile);
 extProfile.declare(CalendarEventFeed.class,
   new ExtensionDescription(TimeZoneProperty.class,
   new XmlNamespace("gCal", "http://schemas.google.com/gCal/2005"),
   "timezone", true, false, false));
 extProfile.declare(CalendarEventFeed.class, TimesCleanedProperty.class);
}

代码示例来源:origin: com.mulesoft.google/google-api-gdata

@Override
public void declareExtensions(ExtensionProfile extProfile) {
 if (extProfile.isDeclared(CalendarEventFeed.class)) {
  return;
 }
 super.declareExtensions(extProfile);
 extProfile.declare(CalendarEventFeed.class,
   new ExtensionDescription(TimeZoneProperty.class,
   new XmlNamespace("gCal", "http://schemas.google.com/gCal/2005"),
   "timezone", true, false, false));
 extProfile.declare(CalendarEventFeed.class, TimesCleanedProperty.class);
}

代码示例来源:origin: com.google.gdata/gdata-java-client

@Override
public void declareExtensions(ExtensionProfile extProfile) {
 if (extProfile.isDeclared(Event.class)) {
  return;
 }
 extProfile.declare(Event.class, new ExtensionDescription(When.class,
   new XmlNamespace("gd", "http://schemas.google.com/g/2005"), "when",
   true, false, false));
 new When().declareExtensions(extProfile);
}

代码示例来源:origin: com.mulesoft.google/google-api-gdata

@Override
public void declareExtensions(ExtensionProfile extProfile) {
 if (extProfile.isDeclared(PostEntry.class)) {
  return;
 }
 super.declareExtensions(extProfile);
 extProfile.declare(PostEntry.class,
   new ExtensionDescription(MediaThumbnail.class, new XmlNamespace("media",
   "http://search.yahoo.com/mrss/"), "thumbnail", false, false, false));
 extProfile.declare(PostEntry.class, Total.class);
}

代码示例来源:origin: com.google.gdata/gdata-java-client

@Override
public void declareExtensions(ExtensionProfile extProfile) {
 if (extProfile.isDeclared(PostEntry.class)) {
  return;
 }
 super.declareExtensions(extProfile);
 extProfile.declare(PostEntry.class,
   new ExtensionDescription(MediaThumbnail.class, new XmlNamespace("media",
   "http://search.yahoo.com/mrss/"), "thumbnail", false, false, false));
 extProfile.declare(PostEntry.class, Total.class);
}

代码示例来源:origin: com.google.gdata/gdata-java-client

@Override
public void declareExtensions(ExtensionProfile extProfile) {
 if (extProfile.isDeclared(CalendarEventFeed.class)) {
  return;
 }
 super.declareExtensions(extProfile);
 extProfile.declare(CalendarEventFeed.class,
   new ExtensionDescription(TimeZoneProperty.class,
   new XmlNamespace("gCal", "http://schemas.google.com/gCal/2005"),
   "timezone", true, false, false));
 extProfile.declare(CalendarEventFeed.class, TimesCleanedProperty.class);
}

代码示例来源:origin: com.google.gdata/gdata-java-client

@Override
public void declareExtensions(ExtensionProfile extProfile) {
 if (extProfile.isDeclared(FileCabinetPageEntry.class)) {
  return;
 }
 super.declareExtensions(extProfile);
 extProfile.declare(FileCabinetPageEntry.class,
   new ExtensionDescription(FeedLink.class, new XmlNamespace("gd",
   "http://schemas.google.com/g/2005"), "feedLink", true, false, false));
 new FeedLink().declareExtensions(extProfile);
}

代码示例来源:origin: com.google.gdata/gdata-contacts-3.0

@Override
public void declareExtensions(ExtensionProfile extProfile) {
 if (extProfile.isDeclared(ContactEntry.class)) {
  return;
 }
 super.declareExtensions(extProfile);
 extProfile.declare(ContactEntry.class,
   new ExtensionDescription(Deleted.class, new XmlNamespace("gd",
   "http://schemas.google.com/g/2005"), "deleted", false, false, false));
 extProfile.declare(ContactEntry.class,
   GroupMembershipInfo.getDefaultDescription(false, true));
}

代码示例来源:origin: com.mulesoft.google/google-api-gdata

@Override
public void declareExtensions(ExtensionProfile extProfile) {
 if (extProfile.isDeclared(FileCabinetPageEntry.class)) {
  return;
 }
 super.declareExtensions(extProfile);
 extProfile.declare(FileCabinetPageEntry.class,
   new ExtensionDescription(FeedLink.class, new XmlNamespace("gd",
   "http://schemas.google.com/g/2005"), "feedLink", true, false, false));
 new FeedLink().declareExtensions(extProfile);
}

代码示例来源:origin: com.mulesoft.google/google-api-gdata

@Override
public void declareExtensions(ExtensionProfile extProfile) {
 if (extProfile.isDeclared(AnnouncementsPageEntry.class)) {
  return;
 }
 super.declareExtensions(extProfile);
 extProfile.declare(AnnouncementsPageEntry.class,
   new ExtensionDescription(FeedLink.class, new XmlNamespace("gd",
   "http://schemas.google.com/g/2005"), "feedLink", true, false, false));
 new FeedLink().declareExtensions(extProfile);
}

代码示例来源:origin: com.google.gdata/gdata-java-client

@Override
public void declareExtensions(ExtensionProfile extProfile) {
 if (extProfile.isDeclared(ContactEntry.class)) {
  return;
 }
 super.declareExtensions(extProfile);
 extProfile.declare(ContactEntry.class,
   new ExtensionDescription(Deleted.class, new XmlNamespace("gd",
   "http://schemas.google.com/g/2005"), "deleted", false, false, false));
 extProfile.declare(ContactEntry.class,
   GroupMembershipInfo.getDefaultDescription(false, true));
}

代码示例来源:origin: com.mulesoft.google/google-api-gdata

@Override
public void declareExtensions(ExtensionProfile extProfile) {
 if (extProfile.isDeclared(ContactEntry.class)) {
  return;
 }
 super.declareExtensions(extProfile);
 extProfile.declare(ContactEntry.class,
   new ExtensionDescription(Deleted.class, new XmlNamespace("gd",
   "http://schemas.google.com/g/2005"), "deleted", false, false, false));
 extProfile.declare(ContactEntry.class,
   GroupMembershipInfo.getDefaultDescription(false, true));
 extProfile.declare(ContactEntry.class, YomiName.class);
}

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com