org.simpleframework.xml.Root.<init>()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(5.9k)|赞(0)|评价(0)|浏览(215)

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

Root.<init>介绍

暂无

代码示例

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

/**
 * Internal events are {@link Event}s meant for JVM-local consumers.
 *  
 * <p>In particular, they are not to be broadcasted to external subscribers,
 * such as GUIs connected via WS, but only to the local event bus.
 *  
 * @author Philipp C. Heckel <philipp.heckel@gmail.com>
 */
@Root
public abstract class InternalEvent extends Event {
  // Marker
}

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

/**
 * A message is either a request or a response sent to 
 * or from the daemon. All messages must inherit from this
 * class. Messages can be serialized/deserialized using the
 * {@link MessageFactory}. 
 * 
 * @author Philipp C. Heckel <philipp.heckel@gmail.com>
 */
@Root(strict = false)
public abstract class Message {
  // Nothing here.
}

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

/**
 * External events are {@link Event}s meant for JVM-local and
 * external subscribers/consumers. 
 *  
 * <p>In particular, they might be broadcasted to external subscribers,
 * such as GUIs connected via WS.
 *  
 * @author Philipp C. Heckel <philipp.heckel@gmail.com>
 */
@Root
public abstract class ExternalEvent extends Event {
  // Marker
}

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

/**
 * Marker interface to indicate a result for a given {@link Operation}.
 * 
 * <p>{@link OperationOptions} are passed to an operation (similar to method parameters).
 * Onve an operation returns, it returns an instance of an operation result.
 * 
 * @see Operation
 * @see OperationOptions
 * @author Philipp C. Heckel <philipp.heckel@gmail.com>
 */
@Root(strict = false)
public interface OperationResult {
  // Marker interface for type safety
}

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

/**
 * Marker interface to indicate options and flags for any given {@link Operation}.
 * 
 * <p>Operation options are passed to an operation (similar to method parameters).
 * Onve an operation returns, it returns an instance of an {@link OperationResult}.
 * 
 * @see Operation
 * @see OperationResult
 * @author Philipp C. Heckel <philipp.heckel@gmail.com>
 */
@Root(strict = false)
public interface OperationOptions {
  // Marker interface for type safety
}

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

@Root(strict = false)
public abstract class Request extends Message {
  @Element(required = true)
  private int id;	
  
  public Request() {
    this.id = Math.abs(new Random().nextInt());
  }

  public int getId() {
    return id;
  }

  public void setId(int id) {
    this.id = id;
  }
}

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

@Root(name="status")
public class StatusOperationOptions implements OperationOptions {
  @Element(required = false)
  private boolean forceChecksum = false;

  @Element(required = false)
  private boolean delete = true;

  public boolean isForceChecksum() {
    return forceChecksum;
  }

  public void setForceChecksum(boolean forceChecksum) {
    this.forceChecksum = forceChecksum;
  }
  
  public boolean isDelete() {
    return delete;
  }

  public void setDelete(boolean delete) {
    this.delete = delete;
  }
}

代码示例来源:origin: Pay-Group/best-pay-sdk

@Data
  @Root(name = "xml")
  static class SandboxParam {

    @Element(name = "mch_id")
    private String mchId;

    @Element(name = "nonce_str")
    private String nonceStr;

    @Element(name = "sign")
    private String sign;

    public Map<String, String> buildMap() {
      Map<String, String> map = new HashMap<>();
      map.put("mch_id", this.mchId);
      map.put("nonce_str", this.nonceStr);
      return map;
    }
  }
}

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

@Root(strict = false)
public class UserTO {
  @Element(required = true)

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

@Root(name = "port", strict = false)
public class PortTO {
  @Element(name = "port", required = true)

代码示例来源:origin: Pay-Group/best-pay-sdk

/**
 * Created by lly835@163.com
 * 2018-05-17 11:32
 */
@Data
@Root(name = "xml", strict = false)
public class WxPaySandboxKeyResponse {

  @Element(name = "return_code")
  private String returnCode;

  @Element(name = "return_msg", required = false)
  private String returnMsg;

  @Element(name = "mch_id", required = false)
  private String mchId;

  @Element(name = "sandbox_signkey", required = false)
  private String sandboxSignkey;
}

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

@Root(strict = false)
public abstract class Response extends Message {
  @Element(required = true)

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

@Root(name = "appInfoResponse")
public class AppInfoResponse {
  @Element(name = "code", required = true)

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

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

代码示例来源:origin: Pay-Group/best-pay-sdk

/**
 * Created by 廖师兄
 * 2018-05-31 17:47
 */
@Data
@Root(name = "xml", strict = false)
public class WxOrderQueryRequest {

  @Element(name = "appid")
  private String appid;

  @Element(name = "mch_id")
  private String mchId;

  @Element(name = "transaction_id", required = false)
  private String transactionId;

  @Element(name = "out_trade_no", required = false)
  private String outTradeNo;

  @Element(name = "nonce_str")
  private String nonceStr;

  @Element(name = "sign")
  private String sign;

  @Element(name = "sign_type", required = false)
  private String signType;
}

代码示例来源:origin: Pay-Group/best-pay-sdk

@Root(name = "xml", strict = false)
public class WxPayUnifiedorderRequest {

代码示例来源:origin: Pay-Group/best-pay-sdk

@Root(name = "xml", strict = false)
public class WxPayRefundRequest {

代码示例来源:origin: Pay-Group/best-pay-sdk

@Root(name = "xml", strict = false)
public class WxPaySyncResponse {
  @Element(name = "return_code")

相关文章