javax.xml.bind.annotation.XmlType.<init>()方法的使用及代码示例

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

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

XmlType.<init>介绍

暂无

代码示例

代码示例来源: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: 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: spring-projects/spring-framework

@XmlType
public static class Type {
  @XmlAttribute
  public String s = "Hello World";
}

代码示例来源: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 = "")
public static class JaxbHbmDefinition
  implements Serializable
  @XmlAttribute(name = "class", required = true)
  protected String clazz;

代码示例来源:origin: hibernate/hibernate-orm

@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ConfigParameterContainer", propOrder = {
  "configParameters"
})
  @XmlElement(name = "param")
  protected List<JaxbHbmConfigParameterType> configParameters;

代码示例来源: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: 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: hibernate/hibernate-orm

@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "")
public static class JaxbHbmReturnColumn
  implements Serializable
  @XmlAttribute(name = "name", required = true)
  protected String name;

代码示例来源: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: com.sun.jersey/jersey-server

/**
 * The wrapper root document for multiple {@link Doc} elements.
 * Created on: Jun 10, 2008<br>
 * 
 * @author <a href="mailto:martin.grotzke@freiheit.com">Martin Grotzke</a>
 * @version $Id$
 */
@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<Doc>();
    }
    return this.docs;
  }
  
}

代码示例来源: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: hibernate/hibernate-orm

@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "synchronize-type")
public class JaxbHbmSynchronizeType
  implements Serializable
  @XmlAttribute(name = "table", required = true)
  protected String table;

代码示例来源: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: aol/micro-server

@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "exception")
@XmlType(name = "")
public class ExceptionWrapper {

  @XmlElement
  final String errorCode;

  @XmlElement
  final Object message;

  public ExceptionWrapper() {
    this.errorCode = null;
    this.message = null;
  }

  public ExceptionWrapper(final String errorCode, final Object content) {
    this.errorCode = errorCode;
    this.message = content;
  }

  public Object getMessage() {
    return message;
  }

}

代码示例来源: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: hibernate/hibernate-orm

@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "SubclassEntityBaseDefinition")
public abstract class JaxbHbmSubclassEntityBaseDefinition
  extends JaxbHbmEntityBaseDefinition
  @XmlAttribute(name = "extends")
  protected String _extends;

代码示例来源:origin: pentaho/pentaho-kettle

@XmlRootElement( name = "revision" )
@XmlAccessorType( XmlAccessType.FIELD )
@XmlType( name = "", propOrder = { "versionId", "creationDate", "login", "comment" } )
public class PurObjectRevision implements ObjectRevision, java.io.Serializable {
 @XmlElement( type = String.class )
 private Serializable versionId;

代码示例来源:origin: com.sun.jersey/jersey-server

/**
 * The type for an element holding a string value.<br>
 * Created on: Jun 17, 2008<br>
 * 
 * @author <a href="mailto:martin.grotzke@freiheit.com">Martin Grotzke</a>
 * @version $Id$
 */
@XmlAccessorType( XmlAccessType.FIELD )
@XmlType( name = "valueType", propOrder = { } )
@XmlRootElement( name = "valueType" )
public class XhtmlValueType {

  @XmlValue
  protected String value;
  
}

代码示例来源:origin: hibernate/hibernate-orm

@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "NaturalIdCacheType")
public class JaxbHbmNaturalIdCacheType
  implements Serializable
  @XmlAttribute(name = "region")
  protected String region;

相关文章