org.simpleframework.xml.Namespace类的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(9.8k)|赞(0)|评价(0)|浏览(142)

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

Namespace介绍

暂无

代码示例

代码示例来源:origin: syncany/syncany

@Root(strict = false)
@Namespace(reference = "http://syncany.org/ws/1")
public class BadRequestResponse extends Response {
  public BadRequestResponse() {
    super(400, -1, null); // Required
  }
  
  public BadRequestResponse(int requestId, String message) {
    super(400, requestId, message);
  }
}

代码示例来源:origin: org.simpleframework/simple-xml

/**
* This is use to apply for <code>NamespaceList</code> annotations 
* on the node. If there is no namespace list then this will return 
* and the node will be left unchanged. If however the namespace 
* list is not empty the the namespaces are added.
* 
* @param node this is the node to apply the namespace list to
*/
private void scope(OutputNode node) {
 NamespaceMap map = node.getNamespaces();
 
 for(Namespace next : scope) {
   String reference = next.reference();
   String prefix = next.prefix();
    
   map.setReference(reference, prefix);
 }
}

代码示例来源:origin: org.simpleframework/simple-xml

/**
  * This is use to apply the <code>Namespace</code> annotations on
  * the node. If there is no namespace then this will return and
  * the node will be left unchanged. If however the namespace is 
  * not null then the reference is applied to the specified node.
  * 
  * @param node this is the node to apply the namespace to
  */
  private void namespace(OutputNode node) {
   if(primary != null) {
     String reference = primary.reference();
          node.setReference(reference);
   }
  }
}

代码示例来源:origin: org.restlet.lib/org.simpleframework.simple-xml

/**
* This is use to apply for <code>NamespaceList</code> annotations 
* on the node. If there is no namespace list then this will return 
* and the node will be left unchanged. If however the namespace 
* list is not empty the the namespaces are added.
* 
* @param node this is the node to apply the namespace list to
*/
private void scope(OutputNode node) {
 NamespaceMap map = node.getNamespaces();
 
 for(Namespace next : scope) {
   String reference = next.reference();
   String prefix = next.prefix();
    
   map.setReference(reference, prefix);
 }
}

代码示例来源:origin: org.restlet.lib/org.simpleframework.simple-xml

/**
  * This is use to apply the <code>Namespace</code> annotations on
  * the node. If there is no namespace then this will return and
  * the node will be left unchanged. If however the namespace is 
  * not null then the reference is applied to the specified node.
  * 
  * @param node this is the node to apply the namespace to
  */
  private void namespace(OutputNode node) {
   if(primary != null) {
     String reference = primary.reference();
          node.setReference(reference);
   }
  }
}

代码示例来源:origin: syncany/syncany

@Root(strict = false)
@Namespace(reference = "http://syncany.org/ws/1")
public class AlreadySyncingResponse extends Response {
  public AlreadySyncingResponse() {
    super(400, -1, null); // Required
  }
  
  public AlreadySyncingResponse(int requestId, String message) {
    super(400, requestId, message);
  }
}

代码示例来源:origin: ngallagher/simplexml

/**
* This is use to apply for <code>NamespaceList</code> annotations 
* on the node. If there is no namespace list then this will return 
* and the node will be left unchanged. If however the namespace 
* list is not empty the the namespaces are added.
* 
* @param node this is the node to apply the namespace list to
*/
private void scope(OutputNode node) {
 NamespaceMap map = node.getNamespaces();
 
 for(Namespace next : scope) {
   String reference = next.reference();
   String prefix = next.prefix();
    
   map.setReference(reference, prefix);
 }
}

代码示例来源:origin: ngallagher/simplexml

/**
  * This is use to apply the <code>Namespace</code> annotations on
  * the node. If there is no namespace then this will return and
  * the node will be left unchanged. If however the namespace is 
  * not null then the reference is applied to the specified node.
  * 
  * @param node this is the node to apply the namespace to
  */
  private void namespace(OutputNode node) {
   if(primary != null) {
     String reference = primary.reference();
          node.setReference(reference);
   }
  }
}

代码示例来源:origin: syncany/syncany

@Root(name="pluginListResponse")
@Namespace(reference="http://syncany.org/plugins/1/list")
public class PluginListResponse {
  @Element(name = "code", required = true)

代码示例来源:origin: thegrizzlylabs/sardine-android

@Root
@Namespace(prefix = "D", reference = "DAV:")
public class Protected {

  
}

代码示例来源:origin: thegrizzlylabs/sardine-android

/**
 * <p>Java class for anonymous complex type.</p>
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.</p>
 * 
 * <pre>
 * &lt;complexType&gt;
 *   &lt;complexContent&gt;
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
 *     &lt;/restriction&gt;
 *   &lt;/complexContent&gt;
 * &lt;/complexType&gt;
 * </pre>
 * 
 * 
 */
@Root
@Namespace(prefix = "D", reference = "DAV:")
public class Authenticated {

}

代码示例来源:origin: thegrizzlylabs/sardine-android

/**
 * <p>Java class for anonymous complex type.</p>
 *
 * <p>The following schema fragment specifies the expected content contained within this class.</p>
 * 
 * <pre>
 * &lt;complexType&gt;
 *   &lt;complexContent&gt;
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
 *     &lt;/restriction&gt;
 *   &lt;/complexContent&gt;
 * &lt;/complexType&gt;
 * </pre>
 * 
 * 
 */
@Root(name = "read")
@Namespace(prefix = "D", reference = "DAV:")
public class Read implements SimplePrivilege {

}

代码示例来源:origin: thegrizzlylabs/sardine-android

/**
 * <p>Java class for anonymous complex type.</p>
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.</p>
 * 
 * <pre>
 * &lt;complexType&gt;
 *   &lt;complexContent&gt;
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
 *     &lt;/restriction&gt;
 *   &lt;/complexContent&gt;
 * &lt;/complexType&gt;
 * </pre>
 * 
 * 
 */

@Root(name = "allprop")
@Namespace(prefix = "D", reference = "DAV:")
public class Allprop {

}

代码示例来源:origin: thegrizzlylabs/sardine-android

/**
 * <p>Java class for anonymous complex type.</p>
 *
 * <p>The following schema fragment specifies the expected content contained within this class.</p>
 * 
 * <pre>
 * &lt;complexType&gt;
 *   &lt;complexContent&gt;
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
 *     &lt;/restriction&gt;
 *   &lt;/complexContent&gt;
 * &lt;/complexType&gt;
 * </pre>
 * 
 * 
 */
@Root(name = "write-acl")
@Namespace(prefix = "D", reference = "DAV:")
public class WriteAcl implements SimplePrivilege {

}

代码示例来源:origin: thegrizzlylabs/sardine-android

/**
 * <p>Java class for anonymous complex type.</p>
 *
 * <p>The following schema fragment specifies the expected content contained within this class.</p>
 * 
 * <pre>
 * &lt;complexType&gt;
 *   &lt;complexContent&gt;
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
 *     &lt;/restriction&gt;
 *   &lt;/complexContent&gt;
 * &lt;/complexType&gt;
 * </pre>
 * 
 * 
 */
@Root
@Namespace(prefix = "D", reference = "DAV:")
public class Shared {

}

代码示例来源:origin: thegrizzlylabs/sardine-android

/**
 * <p>Java class for anonymous complex type.</p>
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.</p>
 * 
 * <pre>
 * &lt;complexType&gt;
 *   &lt;complexContent&gt;
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
 *     &lt;/restriction&gt;
 *   &lt;/complexContent&gt;
 * &lt;/complexType&gt;
 * </pre>
 * 
 * 
 */
@Root
@Namespace(prefix = "D", reference = "DAV:")
public class Collection {

}

代码示例来源:origin: thegrizzlylabs/sardine-android

/**
 * <p>Java class for anonymous complex type.</p>
 *
 * <p>The following schema fragment specifies the expected content contained within this class.</p>
 * 
 * <pre>
 * &lt;complexType&gt;
 *   &lt;complexContent&gt;
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
 *     &lt;/restriction&gt;
 *   &lt;/complexContent&gt;
 * &lt;/complexType&gt;
 * </pre>
 * 
 * 
 */
@Root
@Namespace(prefix = "D", reference = "DAV:")
public class Omit {

}

代码示例来源:origin: thegrizzlylabs/sardine-android

/**
 * <p>Java class for anonymous complex type.</p>
 *
 * <p>The following schema fragment specifies the expected content contained within this class.</p>
 * 
 * <pre>
 * &lt;complexType&gt;
 *   &lt;complexContent&gt;
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
 *     &lt;/restriction&gt;
 *   &lt;/complexContent&gt;
 * &lt;/complexType&gt;
 * </pre>
 * 
 * 
 */
@Root(name = "write-properties")
@Namespace(prefix = "D", reference = "DAV:")
public class WriteProperties implements SimplePrivilege {

}

代码示例来源:origin: thegrizzlylabs/sardine-android

/**
 * <p>Java class for anonymous complex type.</p>
 *
 * <p>The following schema fragment specifies the expected content contained within this class.</p>
 * 
 * <pre>
 * &lt;complexType&gt;
 *   &lt;complexContent&gt;
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
 *     &lt;/restriction&gt;
 *   &lt;/complexContent&gt;
 * &lt;/complexType&gt;
 * </pre>
 * 
 * 
 */
@Root
@Namespace(prefix = "D", reference = "DAV:")
public class Unauthenticated {

}

代码示例来源:origin: thegrizzlylabs/sardine-android

/**
 * <p>Java class for anonymous complex type.</p>
 *
 * <p>The following schema fragment specifies the expected content contained within this class.</p>
 * 
 * <pre>
 * &lt;complexType&gt;
 *   &lt;complexContent&gt;
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
 *     &lt;/restriction&gt;
 *   &lt;/complexContent&gt;
 * &lt;/complexType&gt;
 * </pre>
 * 
 * 
 */
@Root(name = "write-content")
@Namespace(prefix = "D", reference = "DAV:")
public class WriteContent implements SimplePrivilege {

}

相关文章

微信公众号

最新文章

更多

Namespace类方法