blob: c9501ee936bc41b34d1a44d1ac0b176d80f67223 [file] [log] [blame]
/***************************************************************************************************
* Copyright (c) 2004, 2006 IBM Corporation and others. All rights reserved. This program and the
* accompanying materials are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors: IBM Corporation - initial API and implementation
**************************************************************************************************/
package org.eclipse.help.internal.xhtml;
import org.w3c.dom.Element;
public class UAInclude extends AbstractUAElement {
protected static final String TAG_INCLUDE = "include"; //$NON-NLS-1$
protected static final String ATT_PATH = "path"; //$NON-NLS-1$
/**
* boolean attribute, default is false.
*/
private static final String ATT_MERGE_STYLE = "merge-style"; //$NON-NLS-1$
private String path;
private boolean mergeStyle = false;
public UAInclude(Element element) {
path = getAttribute(element, ATT_PATH);
String mergeStyleString = getAttribute(element, ATT_MERGE_STYLE);
mergeStyle = (mergeStyleString != null && mergeStyleString.equalsIgnoreCase("true")) ? true : false; //$NON-NLS-1$
}
/**
* @return Returns the mergeStyle.
*/
public boolean getMergeStyle() {
return mergeStyle;
}
/**
* @return Returns the path.
*/
public String getPath() {
return path;
}
}