⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sync4jsource.java

📁 实现了SyncML无线同步协议
💻 JAVA
字号:
/** * Copyright (C) 2003-2004 Funambol * *  This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA  */package sync4j.server.engine;import org.apache.commons.lang.builder.ToStringBuilder;/** * This class represent an addressable SyncML source registered to Sync4j. * It is not intended to store specific SyncSource information. * * @author  Stefano Fornari @ Funambol *  * @version $Id: Sync4jSource.java,v 1.7 2004/04/13 09:35:29 luigia Exp $ */public class Sync4jSource {        private String uri;   // the source uri    private String config; // the source configuration file    private String sourceTypeId; // the source type id    private String sourceName; //the source name        /** Creates a new instance of Sync4jSyncSource */    public Sync4jSource() {        this(null, null, null, null);    }        public Sync4jSource(String uri, String config) {        this.uri    = uri   ;        this.config = config;    }    public Sync4jSource(String uri, String config, String sourceTypeId, String sourceName) {        this.uri    = uri   ;        this.config = config;        this.sourceTypeId = sourceTypeId;        this.sourceName = sourceName;    }        /** Getter for property uri.     * @return Value of property uri.     *     */    public String getUri() {        return uri;    }            /** Setter for property uri.     * @param name New value of property uri.     *     */    public void setUri(String uri) {        this.uri = uri;    }        /** Getter for property config.     * @return Value of property config.     *     */    public String getConfig() {        return config;    }        /** Setter for property config.     * @param config New value of property config.     *     */    public void setConfig(String config) {        this.config = config;    }        /** Getter for property sourceTypeId.     * @return Value of property sourceTypeId.     *     */    public String getSourceTypeId() {        return sourceTypeId;    }        /** Setter for property sourceTypeId.     * @param config New value of property sourceTypeId.     *     */    public void setSourceTypeId(String sourceTypeId) {        this.sourceTypeId = sourceTypeId;    }        /** Getter for property sourceName.     * @return Value of property sourceName.     *     */    public String getSourceName() {        return sourceName;    }        /** Setter for property sourceName.     * @param config New value of property sourceName.     *     */    public void setSourceName(String sourceName) {        this.sourceName = sourceName;    }            public String toString() {        ToStringBuilder sb = new ToStringBuilder(this);         sb.append("uri",     uri  );         sb.append("config", config);         sb.append("sourceTypeId", sourceTypeId);         sb.append("sourceName", sourceName);         return sb.toString();    }    }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -