blob: 06e5ba3879fa82e323a1b0e9714b2646454da99b [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2009, 2015 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.help.internal.index;
import org.eclipse.help.IIndexSubpath;
import org.eclipse.help.internal.UAElement;
import org.w3c.dom.Element;
public class IndexSubpath extends UAElement implements IIndexSubpath {
public static final String NAME = "subpath"; //$NON-NLS-1$
public static final String ATTRIBUTE_KEYWORD = "keyword"; //$NON-NLS-1$
public IndexSubpath(IIndexSubpath src) {
super(NAME, src);
setKeyword(src.getKeyword());
appendChildren(src.getChildren());
}
public IndexSubpath(Element src) {
super(src);
}
@Override
public String getKeyword() {
return getAttribute(ATTRIBUTE_KEYWORD);
}
public void setKeyword(String keyword) {
setAttribute(ATTRIBUTE_KEYWORD, keyword);
}
}