本文整理了Java中javax.xml.bind.annotation.XmlType
类的一些代码示例,展示了XmlType
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XmlType
类的具体详情如下:
包路径:javax.xml.bind.annotation.XmlType
类名称:XmlType
暂无
代码示例来源:origin: jersey/jersey
/**
* The wrapper root document for multiple {@link Doc} elements.
* Created on: Jun 10, 2008<br>
*
* @author Martin Grotzke (martin.grotzke at freiheit.com)
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "applicationDocs", propOrder = {
"docs"
})
@XmlRootElement(name = "applicationDocs")
public class ApplicationDocs {
@XmlElement(name = "doc")
protected List<Doc> docs;
public List<Doc> getDocs() {
if (docs == null) {
docs = new ArrayList<>();
}
return this.docs;
}
}
代码示例来源:origin: spring-projects/spring-framework
localPart = annotation.name();
namespaceUri = annotation.namespace();
localPart = annotation.name();
namespaceUri = annotation.namespace();
代码示例来源:origin: hibernate/hibernate-orm
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "")
public static class JaxbHbmDefinition
implements Serializable
@XmlAttribute(name = "class", required = true)
protected String clazz;
代码示例来源:origin: jersey/jersey
/**
* The type for an element holding a string value.<br>
* Created on: Jun 17, 2008<br>
*
* @author Martin Grotzke (martin.grotzke at freiheit.com)
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "valueType", propOrder = {})
@XmlRootElement(name = "valueType")
public class XhtmlValueType {
@XmlValue
protected String value;
}
代码示例来源:origin: spring-projects/spring-framework
@XmlType
public static class Type {
@XmlAttribute
public String s = "Hello World";
}
代码示例来源:origin: hibernate/hibernate-orm
/**
* <p>Java class for emptyType complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="emptyType">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "emptyType")
public class EmptyType {
}
代码示例来源:origin: apache/nifi
/**
* Details of a funnel.
*/
@XmlType(name = "funnel")
public class FunnelDTO extends ComponentDTO {
public FunnelDTO() {
}
}
代码示例来源:origin: com.sun.xml.bind/jaxb-impl
String local="##default";
if(t!=null) {
nsUri = t.namespace();
local = t.name();
代码示例来源:origin: com.sun.xml.bind/jaxb-impl
public String name() {
return core.name();
}
代码示例来源:origin: com.sun.xml.bind/jaxb-impl
public String namespace() {
return core.namespace();
}
代码示例来源:origin: hibernate/hibernate-orm
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "")
public static class JaxbHbmReturnColumn
implements Serializable
@XmlAttribute(name = "name", required = true)
protected String name;
代码示例来源:origin: jersey/jersey
/**
* The type for an element holding a string value.<br>
* Created on: Jun 17, 2008<br>
*
* @author Martin Grotzke (martin.grotzke at freiheit.com)
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "valueType", propOrder = {})
@XmlRootElement(name = "valueType")
public class XhtmlValueType {
@XmlValue
protected String value;
}
代码示例来源:origin: opentripplanner/OpenTripPlanner
@XmlType
public class Entry {
@XmlAttribute
@JsonSerialize
public String key;
@XmlAttribute
@JsonSerialize
public String value;
public Entry() {
// empty constructor required by JAXB
}
public Entry(String key, String value) {
this.key = key;
this.value = value;
}
}
代码示例来源:origin: spring-projects/spring-framework
@XmlType
@SuppressWarnings("unused")
public static class DummyType {
private String s = "Hello";
}
代码示例来源:origin: jersey/jersey
/**
* The wrapper root document for multiple {@link Doc} elements.
* Created on: Jun 10, 2008<br>
*
* @author Martin Grotzke (martin.grotzke at freiheit.com)
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "applicationDocs", propOrder = {
"docs"
})
@XmlRootElement(name = "applicationDocs")
public class ApplicationDocs {
@XmlElement(name = "doc")
protected List<Doc> docs;
public List<Doc> getDocs() {
if (docs == null) {
docs = new ArrayList<>();
}
return this.docs;
}
}
代码示例来源:origin: hibernate/hibernate-orm
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "synchronize-type")
public class JaxbHbmSynchronizeType
implements Serializable
@XmlAttribute(name = "table", required = true)
protected String table;
代码示例来源:origin: jersey/jersey
/**
* The type for an element holding child nodes.<br>
* Created on: Jun 17, 2008<br>
*
* @author Martin Grotzke (martin.grotzke at freiheit.com)
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "foo", propOrder = {})
@XmlRootElement(name = "foo")
public class XhtmlElementType {
@XmlAnyElement
protected List<Object> any;
public List<Object> getChildNodes() {
if (any == null) {
any = new ArrayList<>();
}
return this.any;
}
}
代码示例来源:origin: spring-projects/spring-framework
@XmlType
public static class TestType {
public TestType() {
}
public TestType(String s) {
this.s = s;
}
@XmlAttribute
public String s = "Hello World";
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o instanceof TestType) {
TestType other = (TestType) o;
return this.s.equals(other.s);
}
return false;
}
@Override
public int hashCode() {
return s.hashCode();
}
}
代码示例来源:origin: spring-projects/spring-framework
/**
* @author Arjen Poutsma
*/
@javax.xml.bind.annotation.XmlType
public class XmlType {
}
代码示例来源:origin: org.springframework/spring-web
localPart = annotation.name();
namespaceUri = annotation.namespace();
localPart = annotation.name();
namespaceUri = annotation.namespace();
内容来源于网络,如有侵权,请联系作者删除!