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

x33g5p2x  于2022-01-19 转载在 其他  
字(6.9k)|赞(0)|评价(0)|浏览(228)

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

Element.<init>介绍

暂无

代码示例

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

  1. public class LsFolderRequest extends FolderRequest {
  2. @Element(required = false)
  3. private LsOperationOptions options;
  4. public LsOperationOptions getOptions() {
  5. return options;
  6. }
  7. public void setOptions(OperationOptions options) {
  8. this.options = (LsOperationOptions)options;
  9. }
  10. }

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

  1. public class RestoreFolderRequest extends FolderRequest {
  2. @Element(required = true)
  3. private RestoreOperationOptions options;
  4. public RestoreOperationOptions getOptions() {
  5. return options;
  6. }
  7. public void setOptions(OperationOptions options) {
  8. this.options = (RestoreOperationOptions) options;
  9. }
  10. }

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

  1. public class ApplicationLinkShortenerResponse {
  2. @Element(name = "shortLinkId", required = true)
  3. private String shortLinkId;
  4. public String getShortLinkId() {
  5. return shortLinkId;
  6. }
  7. }

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

  1. public class LogFolderRequest extends FolderRequest {
  2. @Element(required = false)
  3. private LogOperationOptions options;
  4. public LogOperationOptions getOptions() {
  5. return options;
  6. }
  7. public void setOptions(OperationOptions options) {
  8. this.options = (LogOperationOptions)options;
  9. }
  10. }

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

  1. public class StatusFolderRequest extends FolderRequest {
  2. @Element(required = false)
  3. private StatusOperationOptions options;
  4. public StatusOperationOptions getOptions() {
  5. return options;
  6. }
  7. public void setOptions(OperationOptions options) {
  8. this.options = (StatusOperationOptions)options;
  9. }
  10. }

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

  1. public class GetFileHistoryFolderRequest extends FolderRequest {
  2. @Element(required = true)
  3. private String fileHistoryId;
  4. public String getFileHistoryId() {
  5. return fileHistoryId;
  6. }
  7. public void setFileHistoryId(String fileHistoryId) {
  8. this.fileHistoryId = fileHistoryId;
  9. }
  10. }

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

  1. public class GenlinkFolderRequest extends FolderRequest {
  2. @Element(required = false)
  3. private GenlinkOperationOptions options;
  4. public GenlinkOperationOptions getOptions() {
  5. return options;
  6. }
  7. public void setOptions(OperationOptions options) {
  8. this.options = (GenlinkOperationOptions) options;
  9. }
  10. }

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

  1. public class UpdateManagementRequest extends ManagementRequest {
  2. @Element(name = "options", required = true)
  3. private UpdateOperationOptions options;
  4. public UpdateManagementRequest() {
  5. // Nothing
  6. }
  7. public UpdateManagementRequest(UpdateOperationOptions options) {
  8. this.options = options;
  9. }
  10. public UpdateOperationOptions getOptions() {
  11. return options;
  12. }
  13. }

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

  1. public class LsRemoteOperationResult implements OperationResult {
  2. @Element(name = "unknownRemoteDatabases")
  3. private ArrayList<DatabaseRemoteFile> unknownRemoteDatabases;
  4. public LsRemoteOperationResult() {
  5. // Nothing.
  6. }
  7. public LsRemoteOperationResult(ArrayList<DatabaseRemoteFile> unknownRemoteDatabases) {
  8. this.unknownRemoteDatabases = unknownRemoteDatabases;
  9. }
  10. public List<DatabaseRemoteFile> getUnknownRemoteDatabases() {
  11. return unknownRemoteDatabases;
  12. }
  13. }

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

  1. public class ShowMessageExternalEvent extends ExternalEvent {
  2. @Element(name = "message", required = true)
  3. private String message;
  4. public ShowMessageExternalEvent() {
  5. // Nothing
  6. }
  7. public ShowMessageExternalEvent(String message) {
  8. this.message = message;
  9. }
  10. public String getMessage() {
  11. return message;
  12. }
  13. }

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

  1. public class ConfirmUserInteractionExternalEventResponse extends ExternalEventResponse {
  2. @Element(name = "result", required = true)
  3. private boolean result;
  4. public ConfirmUserInteractionExternalEventResponse() {
  5. // Nothing
  6. }
  7. public ConfirmUserInteractionExternalEventResponse(boolean result) {
  8. this.result = result;
  9. }
  10. public boolean getResult() {
  11. return result;
  12. }
  13. }

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

  1. public class ConnectManagementRequest extends ManagementRequest {
  2. @Element(name = "options", required = true)
  3. private ConnectOperationOptions options;
  4. public ConnectManagementRequest() {
  5. // Nothing
  6. }
  7. public ConnectManagementRequest(ConnectOperationOptions options) {
  8. this.options = options;
  9. }
  10. public ConnectOperationOptions getOptions() {
  11. return options;
  12. }
  13. }

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

  1. public class PluginManagementRequest extends ManagementRequest {
  2. @Element(name = "options", required = true)
  3. private PluginOperationOptions options;
  4. public PluginManagementRequest() {
  5. // Nothing
  6. }
  7. public PluginManagementRequest(PluginOperationOptions options) {
  8. this.options = options;
  9. }
  10. public PluginOperationOptions getOptions() {
  11. return options;
  12. }
  13. }

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

  1. public abstract class SyncExternalEvent extends ExternalEvent {
  2. @Element(required = true)
  3. private String root;
  4. public SyncExternalEvent() {
  5. // Nothing
  6. }
  7. public SyncExternalEvent(String root) {
  8. this.root = root;
  9. }
  10. public String getRoot() {
  11. return root;
  12. }
  13. }

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

  1. public class InitManagementRequest extends ManagementRequest {
  2. @Element(name = "options", required = true)
  3. private InitOperationOptions options;
  4. public InitManagementRequest() {
  5. // Nothing
  6. }
  7. public InitManagementRequest(InitOperationOptions options) {
  8. this.options = options;
  9. }
  10. public InitOperationOptions getOptions() {
  11. return options;
  12. }
  13. }

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

  1. public abstract class FolderRequest extends Request {
  2. @Element(required = true)
  3. private String root;
  4. public String getRoot() {
  5. return root;
  6. }
  7. public void setRoot(String root) {
  8. this.root = root;
  9. }
  10. public void setOptions(OperationOptions option) {
  11. // Nothing here
  12. }
  13. }

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

  1. public class GetPasswordUserInteractionExternalEventResponse extends ExternalEventResponse {
  2. @Element(name = "password", required = true)
  3. private String password;
  4. public GetPasswordUserInteractionExternalEventResponse() {
  5. // Nothing
  6. }
  7. public GetPasswordUserInteractionExternalEventResponse(String password) {
  8. this.password = password;
  9. }
  10. public String getPassword() {
  11. return password;
  12. }
  13. }

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

  1. public class LsRemoteEndSyncExternalEvent extends SyncExternalEvent {
  2. @Element(name = "hasChanges", required = true)
  3. private boolean hasChanges;
  4. public LsRemoteEndSyncExternalEvent() {
  5. this.hasChanges = false;
  6. }
  7. public LsRemoteEndSyncExternalEvent(String root, boolean hasChanges) {
  8. super(root);
  9. this.hasChanges = hasChanges;
  10. }
  11. public boolean hasChanges() {
  12. return hasChanges;
  13. }
  14. }

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

  1. public class StatusEndSyncExternalEvent extends SyncExternalEvent {
  2. @Element(name = "hasChanges", required = true)
  3. private boolean hasChanges;
  4. public StatusEndSyncExternalEvent() {
  5. this.hasChanges = false;
  6. }
  7. public StatusEndSyncExternalEvent(String root, boolean hasChanges) {
  8. super(root);
  9. this.hasChanges = hasChanges;
  10. }
  11. public boolean hasChanges() {
  12. return hasChanges;
  13. }
  14. }

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

  1. public static class AnotherDummyTransferSettings extends TransferSettings {
  2. @Element(required = true)
  3. public String noSetupAnnotation;
  4. @Element(required = true)
  5. @Setup(singular = true, visible = false)
  6. public String singularNonVisible;
  7. @Element(required = true)
  8. @Setup(callback = TransferPluginOptionCallback.class)
  9. public String someCallback;
  10. @Element(required = true)
  11. @Setup(callback = InvalidTransferPluginOptionCallback.class)
  12. public String someInvalidCallback;
  13. }

相关文章