blob: 862de4089a5fe27b08dd5a5cfcf2a3aca8d67069 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2007, 2008 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:
* Tatsuya ISHIHARA - initial API and implementation
*******************************************************************************/
package org.eclipse.actf.model.dom.odf.chart.impl;
import org.eclipse.actf.model.dom.odf.base.ODFDocument;
import org.eclipse.actf.model.dom.odf.base.impl.ODFStylableElementImpl;
import org.eclipse.actf.model.dom.odf.chart.ChartConstants;
import org.eclipse.actf.model.dom.odf.chart.GridElement;
import org.w3c.dom.Element;
class GridElementImpl extends ODFStylableElementImpl implements GridElement {
private static final long serialVersionUID = 9015855390438998748L;
protected GridElementImpl(ODFDocument odfDoc, Element element) {
super(odfDoc, element);
}
public String getAttrChartClass() {
if (hasAttributeNS(ChartConstants.CHART_NAMESPACE_URI,
ChartConstants.ATTR_CLASS))
return getAttributeNS(ChartConstants.CHART_NAMESPACE_URI,
ChartConstants.ATTR_CLASS);
return null;
}
}