trace/traceviewer/com.nokia.trace.dictionary/src/com/nokia/trace/dictionary/model/handlers/DictionaryHandler.java
changeset 11 5b9d4d8641ce
equal deleted inserted replaced
10:ed1c9f64298a 11:5b9d4d8641ce
       
     1 /*
       
     2  * Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). 
       
     3  * All rights reserved.
       
     4  * This component and the accompanying materials are made available
       
     5  * under the terms of "Eclipse Public License v1.0"
       
     6  * which accompanies this distribution, and is available
       
     7  * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8  *
       
     9  * Initial Contributors:
       
    10  * Nokia Corporation - initial contribution.
       
    11  *
       
    12  * Contributors:
       
    13  *
       
    14  * Description:
       
    15  *
       
    16  * Interface DictionaryHandler
       
    17  *
       
    18  */
       
    19 package com.nokia.trace.dictionary.model.handlers;
       
    20 
       
    21 import org.xml.sax.Attributes;
       
    22 
       
    23 import com.nokia.trace.dictionary.model.DecodeObject;
       
    24 import com.nokia.trace.dictionary.model.DictionaryContentHandler;
       
    25 
       
    26 /**
       
    27  * Interface DictionaryHandler
       
    28  * 
       
    29  */
       
    30 public interface DictionaryHandler {
       
    31 
       
    32 	/**
       
    33 	 * Gets the name of the handler, same as tag in decode file
       
    34 	 * 
       
    35 	 * @return the handler name
       
    36 	 */
       
    37 	public String getName();
       
    38 
       
    39 	/**
       
    40 	 * Processes start element
       
    41 	 * 
       
    42 	 * @param atts
       
    43 	 *            attributes
       
    44 	 * @param handler
       
    45 	 *            reference to content handler
       
    46 	 */
       
    47 	public void processStartElement(Attributes atts,
       
    48 			DictionaryContentHandler handler);
       
    49 
       
    50 	/**
       
    51 	 * Processes end element
       
    52 	 * 
       
    53 	 * @param elementContent
       
    54 	 *            elements contents
       
    55 	 * @param unFinishedObject
       
    56 	 *            unfinished object
       
    57 	 * @param handler
       
    58 	 *            dictionary content handler
       
    59 	 * @param parentObject
       
    60 	 *            parent decode object
       
    61 	 */
       
    62 	public void processEndElement(StringBuffer elementContent,
       
    63 			Object unFinishedObject, DictionaryContentHandler handler,
       
    64 			DecodeObject parentObject);
       
    65 }