本文整理了Java中org.simpleframework.xml.Namespace
类的一些代码示例,展示了Namespace
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Namespace
类的具体详情如下:
包路径:org.simpleframework.xml.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>
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* </restriction>
* </complexContent>
* </complexType>
* </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>
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* </restriction>
* </complexContent>
* </complexType>
* </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>
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* </restriction>
* </complexContent>
* </complexType>
* </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>
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* </restriction>
* </complexContent>
* </complexType>
* </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>
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* </restriction>
* </complexContent>
* </complexType>
* </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>
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* </restriction>
* </complexContent>
* </complexType>
* </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>
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* </restriction>
* </complexContent>
* </complexType>
* </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>
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* </restriction>
* </complexContent>
* </complexType>
* </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>
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* </restriction>
* </complexContent>
* </complexType>
* </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>
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@Root(name = "write-content")
@Namespace(prefix = "D", reference = "DAV:")
public class WriteContent implements SimplePrivilege {
}
内容来源于网络,如有侵权,请联系作者删除!