trace/traceviewer/com.nokia.trace.dictionary/src/com/nokia/trace/dictionary/model/handlers/PathHandler.java
/*
* Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:
*
* Path handler
*
*/
package com.nokia.trace.dictionary.model.handlers;
import org.xml.sax.Attributes;
import com.nokia.trace.dictionary.model.DictionaryContentHandler;
import com.nokia.trace.dictionary.model.DictionaryDecodeModel;
import com.nokia.trace.dictionary.model.Path;
/**
* Path handler
*
*/
final class PathHandler extends BaseHandler {
/**
* Tag name this handler handles
*/
private static final String PATH_TAG = "path"; //$NON-NLS-1$
/**
* Constructor
*
* @param model
* the model
*/
PathHandler(DictionaryDecodeModel model) {
super(model, PATH_TAG);
}
/*
* (non-Javadoc)
*
* @see com.nokia.trace.dictionary.model.handlers.DictionaryHandler#
* processElement(org.xml.sax.Attributes)
*/
@Override
public void processStartElement(Attributes atts,
DictionaryContentHandler handler) {
Path path = new Path(atts.getValue(VAL));
// Set as previous path object so that file objects can refer to it
handler.getVariables().setPreviousPath(path);
}
}