src/include/common/syncml/parser/Parser.h

00001 /*
00002  * Funambol is a mobile platform developed by Funambol, Inc. 
00003  * Copyright (C) 2003 - 2007 Funambol, Inc.
00004  * 
00005  * This program is free software; you can redistribute it and/or modify it under
00006  * the terms of the GNU Affero General Public License version 3 as published by
00007  * the Free Software Foundation with the addition of the following permission 
00008  * added to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED
00009  * WORK IN WHICH THE COPYRIGHT IS OWNED BY FUNAMBOL, FUNAMBOL DISCLAIMS THE 
00010  * WARRANTY OF NON INFRINGEMENT  OF THIRD PARTY RIGHTS.
00011  * 
00012  * This program is distributed in the hope that it will be useful, but WITHOUT
00013  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
00014  * FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
00015  * details.
00016  * 
00017  * You should have received a copy of the GNU Affero General Public License 
00018  * along with this program; if not, see http://www.gnu.org/licenses or write to
00019  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
00020  * MA 02110-1301 USA.
00021  * 
00022  * You can contact Funambol, Inc. headquarters at 643 Bair Island Road, Suite 
00023  * 305, Redwood City, CA 94063, USA, or at email address info@funambol.com.
00024  * 
00025  * The interactive user interfaces in modified source and object code versions
00026  * of this program must display Appropriate Legal Notices, as required under
00027  * Section 5 of the GNU Affero General Public License version 3.
00028  * 
00029  * In accordance with Section 7(b) of the GNU Affero General Public License
00030  * version 3, these Appropriate Legal Notices must retain the display of the
00031  * "Powered by Funambol" logo. If the display of the logo is not reasonably 
00032  * feasible for technical reasons, the Appropriate Legal Notices must display
00033  * the words "Powered by Funambol".
00034  */
00035 
00036 
00037 #ifndef INCL_PARSER
00038 #define INCL_PARSER
00039 
00041 #include "base/fscapi.h"
00042 #include "base/util/utils.h"
00043 #include "base/util/XMLProcessor.h"
00044 #include "base/util/ArrayList.h"
00045 #include "syncml/core/ObjectDel.h"
00046 #include "base/globalsdef.h"
00047 
00048 BEGIN_NAMESPACE
00049 
00050 class Parser {
00051 
00052     // ---------------------------------------------------------- Public data
00053     public:
00054         static SyncML*          getSyncML           (const char* xml);
00055         static SyncHdr*         getSyncHdr          (const char* xml);
00056         static SyncBody*        getSyncBody         (const char* xml);
00057         static SessionID*       getSessionID        (const char* xml);
00058         static VerDTD*          getVerDTD           (const char* xml);
00059         static VerProto*        getVerProto         (const char* xml);
00060         static Target*          getTarget           (const char* xml);
00061         static Source*          getSource           (const char* xml);
00062         static Cred*            getCred             (const char* xml);
00063         static Anchor*          getAnchor           (const char* xml);
00064         static NextNonce*       getNextNonce        (const char* xml);
00065         static Mem*             getMem              (const char* xml);
00066         static ArrayList*       getEMI              (const char* xml);
00067         static Meta*            getMeta             (const char* xml);
00068         static MetInf*          getMetInf           (const char* xml);
00069         static Authentication*  getAuthentication   (const char* xml);
00070         static ArrayList*       getCommands         (const char* xml);
00071         static Alert*           getAlert            (const char* xml);
00072         static bool             getFinalMsg         (const char* xml);
00073         static int              getDataCode         (const char* xml);
00074         static Data*            getData             (const char* xml);
00075         static bool             getNoResp           (const char* xml);
00076         static bool             getNoResults        (const char* xml);
00077         static CmdID*           getCmdID            (const char* xml);
00078         static Item*            getItem             (const char* xml, const char* command = NULL);
00079         static ArrayList*       getItems            (const char* xml, const char* command = NULL);
00080         static ComplexData*     getComplexData      (const char* xml, const char* command = NULL);
00081         static bool             getMoreData         (const char* xml);
00082         static Status*          getStatus           (const char* xml);
00083         static DevInf*          getDevInf           (const char* xml);
00084         static TargetRef*       getTargetRef        (const char* xml);
00085         static SourceRef*       getSourceRef        (const char* xml);
00086         static ArrayList*       getTargetRefs       (const char* xml);
00087         static ArrayList*       getSourceRefs       (const char* xml);
00088         static Chal*            getChal             (const char* xml);
00089         static Map*             getMap              (const char* xml);
00090         static MapItem*         getMapItem          (const char* xml);
00091         static ArrayList*       getMapItems         (const char* xml);
00092         static Add*             getAdd              (const char* xml);
00093         static Sync*            getSync             (const char* xml);
00094         static Replace*         getReplace          (const char* xml);
00095         static Delete*          getDelete           (const char* xml);
00096         static Copy*            getCopy             (const char* xml);
00097         static Sequence*        getSequence         (const char* xml);
00098         static Atomic*          getAtomic           (const char* xml);
00099         static ArrayList*       getAdds             (const char* xml, const char* except);
00100         static ArrayList*       getReplaces         (const char* xml, const char* except);
00101         static ArrayList*       getDels             (const char* xml, const char* except);
00102         static ArrayList*       getCopies           (const char* xml, const char* except);
00103         static ArrayList*       getCommonCommandList(const char* xml, const char* except);
00104         static Get*             getGet              (const char* xml);
00105         static Put*             getPut              (const char* xml);
00106         static DataStore*       getDataStore        (const char* xml);
00107         static ContentTypeInfo* getContentTypeInfo  (const char* xml);
00108         static DSMem*           getDSMem            (const char* xml);
00109         static SyncCap*         getSyncCap          (const char* xml);
00110         static SyncType*        getSyncType         (const char* xml);
00111         static CTCap*           getCTCap            (const char* xml);
00112         static Ext*             getExt              (const char* xml);
00113         static Results*         getResult           (const char* xml);
00114         static Exec*            getExec             (const char* xml);
00115         static Search*          getSearch           (const char* xml);
00116         static ArrayList*       getSources          (const char* xml);
00117 };
00118 
00119 
00120 END_NAMESPACE
00121 
00123 #endif
00124 
00125 
00126 
00127 

Generated on Fri Jul 25 15:04:15 2008 for Funambol C++ Client Library by  doxygen 1.5.1