javax.xml.bind.annotation.XmlType类的使用及代码示例

x33g5p2x  于2022-02-02 转载在 其他  
字(5.5k)|赞(0)|评价(0)|浏览(366)

本文整理了Java中javax.xml.bind.annotation.XmlType类的一些代码示例,展示了XmlType类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XmlType类的具体详情如下:
包路径:javax.xml.bind.annotation.XmlType
类名称: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>
 * &lt;complexType name="emptyType"&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>
 * 
 * 
 */
@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();

相关文章